const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OnboardingWrapper-BsOJSH8d.js","assets/OnboardingWrapper-BHmgMze2.css","assets/RootRedirect-_cfWJoe8.js","assets/useOnboarding-BgpIyX9l.js","assets/RootRedirect-DU0Atc8N.css","assets/Login-CJkTG_B-.js","assets/loginTransition-Bm4PAghQ.js","assets/Login-DRIS0ldM.css","assets/OnboardingIntro-CsYM21xo.js","assets/OnboardingIntro-CuS0o5GQ.css","assets/OnboardingOptions-BEL4MhY9.js","assets/OnboardingDid-Cr_ec55a.js","assets/OnboardingDid-BxUaq9s9.css","assets/OnboardingVerify-P3nJC3Zw.js","assets/Kiosk-CEZdJvXG.js","assets/Kiosk-3Tm3M7Cs.css","assets/Dashboard-Byxe5sIJ.js","assets/AppSession-Cw_auYBr.js","assets/AppSession-DK48XcUX.css","assets/ControllerIndicator.vue_vue_type_script_setup_true_lang-DH-pMX35.js","assets/web5Badge-C9_VaejO.js","assets/mesh-DgF5cqYW.js","assets/Dashboard-C4e6Zldy.css","assets/Home-BM_tfGHm.js","assets/api-CHkUAu4g.js","assets/goals-f4yPn45c.js","assets/filebrowser-client-DRXM9PC4.js","assets/Home-DFbCs8LP.css","assets/Apps-JbZuzA3H.js","assets/Apps-NkvfRZrs.css","assets/AppDetails-DfPGLgac.js","assets/AppDetails-DjlSPTt1.css","assets/Marketplace-dnuGfUDf.js","assets/useMarketplaceApp-BxXpq2aX.js","assets/Marketplace-BasZfUkN.css","assets/MarketplaceAppDetails-DhlIl2UT.js","assets/Cloud-BkxOai3U.js","assets/CloudFolder-8jSNyq3F.js","assets/Federation-BIPGM17A.js","assets/transport-B_E2RH1i.js","assets/Federation-gSEt_uL4.css","assets/Mesh-CPUFszgS.js","assets/Mesh-Dr5A9OgS.css","assets/Web5-DcuUNKso.js","assets/Credentials-DP_VdhTb.js","assets/Credentials-BgvGHu_K.css","assets/Settings-a5XTzOeo.js","assets/aiPermissions-sblnS_DK.js","assets/GoalDetail-BDM8F7F1.js","assets/GoalDetail-gx_165AC.css","assets/Chat-BLEXivD6.js","assets/Chat-_Y5LN8Cp.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Di(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Me={},as=[],zt=()=>{},Cc=()=>!1,Jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mi=e=>e.startsWith("onUpdate:"),Xe=Object.assign,Fi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cd=Object.prototype.hasOwnProperty,Re=(e,t)=>Cd.call(e,t),le=Array.isArray,ls=e=>rr(e)==="[object Map]",vs=e=>rr(e)==="[object Set]",ba=e=>rr(e)==="[object Date]",me=e=>typeof e=="function",We=e=>typeof e=="string",Jt=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",kc=e=>(Le(e)||me(e))&&me(e.then)&&me(e.catch),xc=Object.prototype.toString,rr=e=>xc.call(e),kd=e=>rr(e).slice(8,-1),Tc=e=>rr(e)==="[object Object]",Qr=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ns=Di(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},xd=/-\w/g,ft=Zr(e=>e.replace(xd,t=>t.slice(1).toUpperCase())),Td=/\B([A-Z])/g,In=Zr(e=>e.replace(Td,"-$1").toLowerCase()),eo=Zr(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=Zr(e=>e?`on${eo(e)}`:""),Kt=(e,t)=>!Object.is(e,t),wr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},to=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Id=e=>{const t=We(e)?Number(e):NaN;return isNaN(t)?e:t};let wa;const no=()=>wa||(wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tt(e){if(le(e)){const t={};for(let n=0;n{if(n){const s=n.split(Pd);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function $e(e){let t="";if(We(e))t=e;else if(le(e))for(let n=0;nys(n,t))}const Pc=e=>!!(e&&e.__v_isRef===!0),Se=e=>We(e)?e:e==null?"":le(e)||Le(e)&&(e.toString===xc||!me(e.toString))?Pc(e)?Se(e.value):JSON.stringify(e,Lc,2):String(e),Lc=(e,t)=>Pc(t)?Lc(e,t.value):ls(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Eo(s,o)+" =>"]=r,n),{})}:vs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:Jt(t)?Eo(t):Le(t)&&!le(t)&&!Tc(t)?String(t):t,Eo=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let rt;class Nc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(rt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(Ds){let t=Ds;for(Ds=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Os;){let t=Os;for(Os=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function $c(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Wi(s),$d(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function zo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Uc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Uc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hs)||(e.globalVersion=Hs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!zo(e))))return;e.flags|=2;const t=e.dep,n=Fe,s=It;Fe=e,It=!0;try{$c(e);const r=e.fn(e._value);(t.version===0||Kt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Fe=n,It=s,Bc(e),e.flags&=-3}}function Wi(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Wi(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $d(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let It=!0;const Vc=[];function un(){Vc.push(It),It=!1}function fn(){const e=Vc.pop();It=e===void 0?!0:e}function Ea(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Fe;Fe=void 0;try{t()}finally{Fe=n}}}let Hs=0;class Bd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hi{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(!Fe||!It||Fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Fe)n=this.activeLink=new Bd(Fe,this),Fe.deps?(n.prevDep=Fe.depsTail,Fe.depsTail.nextDep=n,Fe.depsTail=n):Fe.deps=Fe.depsTail=n,Wc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Fe.depsTail,n.nextDep=void 0,Fe.depsTail.nextDep=n,Fe.depsTail=n,Fe.deps===n&&(Fe.deps=s)}return n}trigger(t){this.version++,Hs++,this.notify(t)}notify(t){Ui();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vi()}}}function Wc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Wc(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Rr=new WeakMap,Kn=Symbol(""),Xo=Symbol(""),js=Symbol("");function ot(e,t,n){if(It&&Fe){let s=Rr.get(e);s||Rr.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Hi),r.map=s,r.key=n),r.track()}}function sn(e,t,n,s,r,o){const i=Rr.get(e);if(!i){Hs++;return}const a=l=>{l&&l.trigger()};if(Ui(),t==="clear")i.forEach(a);else{const l=le(e),c=l&&Qr(n);if(l&&n==="length"){const u=Number(s);i.forEach((f,d)=>{(d==="length"||d===js||!Jt(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(js)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Kn)),ls(e)&&a(i.get(Xo)));break;case"delete":l||(a(i.get(Kn)),ls(e)&&a(i.get(Xo)));break;case"set":ls(e)&&a(i.get(Kn));break}}Vi()}function Ud(e,t){const n=Rr.get(e);return n&&n.get(t)}function Zn(e){const t=Ce(e);return t===e?t:(ot(t,"iterate",js),bt(e)?t:t.map(Rt))}function so(e){return ot(e=Ce(e),"iterate",js),e}function Ht(e,t){return dn(e)?us(ln(e)?Rt(t):t):Rt(t)}const Vd={__proto__:null,[Symbol.iterator](){return So(this,Symbol.iterator,e=>Ht(this,e))},concat(...e){return Zn(this).concat(...e.map(t=>le(t)?Zn(t):t))},entries(){return So(this,"entries",e=>(e[1]=Ht(this,e[1]),e))},every(e,t){return Qt(this,"every",e,t,void 0,arguments)},filter(e,t){return Qt(this,"filter",e,t,n=>n.map(s=>Ht(this,s)),arguments)},find(e,t){return Qt(this,"find",e,t,n=>Ht(this,n),arguments)},findIndex(e,t){return Qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qt(this,"findLast",e,t,n=>Ht(this,n),arguments)},findLastIndex(e,t){return Qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Co(this,"includes",e)},indexOf(...e){return Co(this,"indexOf",e)},join(e){return Zn(this).join(e)},lastIndexOf(...e){return Co(this,"lastIndexOf",e)},map(e,t){return Qt(this,"map",e,t,void 0,arguments)},pop(){return Es(this,"pop")},push(...e){return Es(this,"push",e)},reduce(e,...t){return Aa(this,"reduce",e,t)},reduceRight(e,...t){return Aa(this,"reduceRight",e,t)},shift(){return Es(this,"shift")},some(e,t){return Qt(this,"some",e,t,void 0,arguments)},splice(...e){return Es(this,"splice",e)},toReversed(){return Zn(this).toReversed()},toSorted(e){return Zn(this).toSorted(e)},toSpliced(...e){return Zn(this).toSpliced(...e)},unshift(...e){return Es(this,"unshift",e)},values(){return So(this,"values",e=>Ht(this,e))}};function So(e,t,n){const s=so(e),r=s[t]();return s!==e&&!bt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Wd=Array.prototype;function Qt(e,t,n,s,r,o){const i=so(e),a=i!==e&&!bt(e),l=i[t];if(l!==Wd[t]){const f=l.apply(e,o);return a?Rt(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,Ht(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,s);return a&&r?r(u):u}function Aa(e,t,n,s){const r=so(e),o=r!==e&&!bt(e);let i=n,a=!1;r!==e&&(o?(a=s.length===0,i=function(c,u,f){return a&&(a=!1,c=Ht(e,c)),n.call(this,c,Ht(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const l=r[t](i,...s);return a?Ht(e,l):l}function Co(e,t,n){const s=Ce(e);ot(s,"iterate",js);const r=s[t](...n);return(r===-1||r===!1)&&ro(n[0])?(n[0]=Ce(n[0]),s[t](...n)):r}function Es(e,t,n=[]){un(),Ui();const s=Ce(e)[t].apply(e,n);return Vi(),fn(),s}const Hd=Di("__proto__,__v_isRef,__isVue"),Hc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt));function jd(e){Jt(e)||(e=String(e));const t=Ce(this);return ot(t,"has",e),t.hasOwnProperty(e)}class jc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ep:Yc:o?qc:Gc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=le(t);if(!r){let l;if(i&&(l=Vd[n]))return l;if(n==="hasOwnProperty")return jd}const a=Reflect.get(t,n,Ve(t)?t:s);if((Jt(n)?Hc.has(n):Hd(n))||(r||ot(t,"get",n),o))return a;if(Ve(a)){const l=i&&Qr(n)?a:a.value;return r&&Le(l)?Pr(l):l}return Le(a)?r?Pr(a):_s(a):a}}class Kc extends jc{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=le(t)&&Qr(n);if(!this._isShallow){const c=dn(o);if(!bt(s)&&!dn(s)&&(o=Ce(o),s=Ce(s)),!i&&Ve(o)&&!Ve(s))return c||(o.value=s),!0}const a=i?Number(n)e,fr=e=>Reflect.getPrototypeOf(e);function zd(e,t,n){return function(...s){const r=this.__v_raw,o=Ce(r),i=ls(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...s),u=n?Jo:t?us:Rt;return!t&&ot(o,"iterate",l?Xo:Kn),Xe(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function dr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Xd(e,t){const n={get(r){const o=this.__v_raw,i=Ce(o),a=Ce(r);e||(Kt(r,a)&&ot(i,"get",r),ot(i,"get",a));const{has:l}=fr(i),c=t?Jo:e?us:Rt;if(l.call(i,r))return c(o.get(r));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&ot(Ce(r),"iterate",Kn),r.size},has(r){const o=this.__v_raw,i=Ce(o),a=Ce(r);return e||(Kt(r,a)&&ot(i,"has",r),ot(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const i=this,a=i.__v_raw,l=Ce(a),c=t?Jo:e?us:Rt;return!e&&ot(l,"iterate",Kn),a.forEach((u,f)=>r.call(o,c(u),c(f),i))}};return Xe(n,e?{add:dr("add"),set:dr("set"),delete:dr("delete"),clear:dr("clear")}:{add(r){const o=Ce(this),i=fr(o),a=Ce(r),l=!t&&!bt(r)&&!dn(r)?a:r;return i.has.call(o,l)||Kt(r,l)&&i.has.call(o,r)||Kt(a,l)&&i.has.call(o,a)||(o.add(l),sn(o,"add",l,l)),this},set(r,o){!t&&!bt(o)&&!dn(o)&&(o=Ce(o));const i=Ce(this),{has:a,get:l}=fr(i);let c=a.call(i,r);c||(r=Ce(r),c=a.call(i,r));const u=l.call(i,r);return i.set(r,o),c?Kt(o,u)&&sn(i,"set",r,o):sn(i,"add",r,o),this},delete(r){const o=Ce(this),{has:i,get:a}=fr(o);let l=i.call(o,r);l||(r=Ce(r),l=i.call(o,r)),a&&a.call(o,r);const c=o.delete(r);return l&&sn(o,"delete",r,void 0),c},clear(){const r=Ce(this),o=r.size!==0,i=r.clear();return o&&sn(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=zd(r,e,t)}),n}function ji(e,t){const n=Xd(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Re(n,r)&&r in s?n:s,r,o)}const Jd={get:ji(!1,!1)},Qd={get:ji(!1,!0)},Zd={get:ji(!0,!1)};const Gc=new WeakMap,qc=new WeakMap,Yc=new WeakMap,ep=new WeakMap;function tp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function np(e){return e.__v_skip||!Object.isExtensible(e)?0:tp(kd(e))}function _s(e){return dn(e)?e:Ki(e,!1,Gd,Jd,Gc)}function zc(e){return Ki(e,!1,Yd,Qd,qc)}function Pr(e){return Ki(e,!0,qd,Zd,Yc)}function Ki(e,t,n,s,r){if(!Le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=np(e);if(o===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function ln(e){return dn(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function ro(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Gi(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&Ic(e,"__v_skip",!0),e}const Rt=e=>Le(e)?_s(e):e,us=e=>Le(e)?Pr(e):e;function Ve(e){return e?e.__v_isRef===!0:!1}function G(e){return Jc(e,!1)}function Xc(e){return Jc(e,!0)}function Jc(e,t){return Ve(e)?e:new sp(e,t)}class sp{constructor(t,n){this.dep=new Hi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:Rt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||bt(t)||dn(t);t=s?t:Ce(t),Kt(t,n)&&(this._rawValue=t,this._value=s?t:Rt(t),this.dep.trigger())}}function he(e){return Ve(e)?e.value:e}const rp={get:(e,t,n)=>t==="__v_raw"?e:he(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ve(r)&&!Ve(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Qc(e){return ln(e)?e:new Proxy(e,rp)}function op(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=ap(e,n);return t}class ip{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Ce(t);let r=!0,o=t;if(!le(t)||!Qr(String(n)))do r=!ro(o)||bt(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=he(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ve(this._raw[this._key])){const n=this._object[this._key];if(Ve(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ud(this._raw,this._key)}}function ap(e,t,n){return new ip(e,t,n)}class lp{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Hi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return Fc(this,!0),!0}get value(){const t=this.dep.track();return Uc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cp(e,t,n=!1){let s,r;return me(e)?s=e:(s=e.get,r=e.set),new lp(s,r,n)}const pr={},Lr=new WeakMap;let $n;function up(e,t=!1,n=$n){if(n){let s=Lr.get(n);s||Lr.set(n,s=[]),s.push(e)}}function fp(e,t,n=Me){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:a,call:l}=n,c=S=>r?S:bt(S)||r===!1||r===0?rn(S,1):rn(S);let u,f,d,p,b=!1,h=!1;if(Ve(e)?(f=()=>e.value,b=bt(e)):ln(e)?(f=()=>c(e),b=!0):le(e)?(h=!0,b=e.some(S=>ln(S)||bt(S)),f=()=>e.map(S=>{if(Ve(S))return S.value;if(ln(S))return c(S);if(me(S))return l?l(S,2):S()})):me(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){un();try{d()}finally{fn()}}const S=$n;$n=u;try{return l?l(e,3,[p]):e(p)}finally{$n=S}}:f=zt,t&&r){const S=f,O=r===!0?1/0:r;f=()=>rn(S(),O)}const E=Oc(),v=()=>{u.stop(),E&&E.active&&Fi(E.effects,u)};if(o&&t){const S=t;t=(...O)=>{S(...O),v()}}let w=h?new Array(e.length).fill(pr):pr;const C=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const O=u.run();if(r||b||(h?O.some((D,k)=>Kt(D,w[k])):Kt(O,w))){d&&d();const D=$n;$n=u;try{const k=[O,w===pr?void 0:h&&w[0]===pr?[]:w,p];w=O,l?l(t,3,k):t(...k)}finally{$n=D}}}else u.run()};return a&&a(C),u=new Dc(f),u.scheduler=i?()=>i(C,!1):C,p=S=>up(S,!1,u),d=u.onStop=()=>{const S=Lr.get(u);if(S){if(l)l(S,4);else for(const O of S)O();Lr.delete(u)}},t?s?C(!0):w=u.run():i?i(C.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function rn(e,t=1/0,n){if(t<=0||!Le(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ve(e))rn(e.value,t,n);else if(le(e))for(let s=0;s{rn(s,t,n)});else if(Tc(e)){for(const s in e)rn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rn(e[s],t,n)}return e}function or(e,t,n,s){try{return s?e(...s):e()}catch(r){oo(r,t,n)}}function Pt(e,t,n,s){if(me(e)){const r=or(e,t,n,s);return r&&kc(r)&&r.catch(o=>{oo(o,t,n)}),r}if(le(e)){const r=[];for(let o=0;o>>1,r=ct[s],o=Ks(r);o=Ks(n)?ct.push(e):ct.splice(pp(t),0,e),e.flags|=1,eu()}}function eu(){Nr||(Nr=Zc.then(nu))}function hp(e){le(e)?cs.push(...e):wn&&e.id===-1?wn.splice(ns+1,0,e):e.flags&1||(cs.push(e),e.flags|=1),eu()}function Sa(e,t,n=Vt+1){for(;nKs(n)-Ks(s));if(cs.length=0,wn){wn.push(...t);return}for(wn=t,ns=0;nse.id==null?e.flags&2?-1:1/0:e.id;function nu(e){try{for(Vt=0;Vt{s._d&&Fr(-1);const o=Or(t);let i;try{i=e(...r)}finally{Or(o),s._d&&Fr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Yi(e,t){if(vt===null)return e;const n=co(vt),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&me(t)?t.call(s&&s.proxy):t}}function mp(){return!!(ar()||Gn)}const gp=Symbol.for("v-scx"),vp=()=>wt(gp);function qe(e,t,n){return ru(e,t,n)}function ru(e,t,n=Me){const{immediate:s,deep:r,flush:o,once:i}=n,a=Xe({},n),l=t&&s||!t&&o!=="post";let c;if(Ys){if(o==="sync"){const p=vp();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=zt,p.resume=zt,p.pause=zt,p}}const u=it;a.call=(p,b,h)=>Pt(p,u,b,h);let f=!1;o==="post"?a.scheduler=p=>{st(p,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,b)=>{b?p():qi(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=fp(e,t,a);return Ys&&(c?c.push(d):l&&d()),d}function yp(e,t,n){const s=this.proxy,r=We(e)?e.includes(".")?ou(s,e):()=>s[e]:e.bind(s,s);let o;me(t)?o=t:(o=t.handler,n=t);const i=lr(this),a=ru(r,o.bind(s),n);return i(),a}function ou(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,Ms=e=>e&&(e.disabled||e.disabled===""),Ca=e=>e&&(e.defer||e.defer===""),ka=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xa=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qo=(e,t)=>{const n=e&&e.to;return We(n)?t?t(n):null:n},lu={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:b,createText:h,createComment:E}}=c,v=Ms(t.props);let{shapeFlag:w,children:C,dynamicChildren:S}=t;if(e==null){const O=t.el=h(""),D=t.anchor=h("");p(O,n,s),p(D,n,s);const k=(P,q)=>{w&16&&u(C,P,q,r,o,i,a,l)},I=()=>{const P=t.target=Qo(t.props,b),q=Zo(P,t,h,p);P&&(i!=="svg"&&ka(P)?i="svg":i!=="mathml"&&xa(P)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(P),v||(k(P,q),Ar(t,!1)))};v&&(k(n,D),Ar(t,!0)),Ca(t.props)?(t.el.__isMounted=!1,st(()=>{I(),delete t.el.__isMounted},o)):I()}else{if(Ca(t.props)&&e.el.__isMounted===!1){st(()=>{lu.process(e,t,n,s,r,o,i,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,D=t.target=e.target,k=t.targetAnchor=e.targetAnchor,I=Ms(e.props),P=I?n:D,q=I?O:k;if(i==="svg"||ka(D)?i="svg":(i==="mathml"||xa(D))&&(i="mathml"),S?(d(e.dynamicChildren,S,P,r,o,i,a),Zi(e,t,!0)):l||f(e,t,P,q,r,o,i,a,!1),v)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hr(t,n,O,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Y=t.target=Qo(t.props,b);Y&&hr(t,Y,null,c,0)}else I&&hr(t,D,k,c,1);Ar(t,v)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(r(c),r(u)),o&&r(l),i&16){const p=o||!Ms(d);for(let b=0;b{e.isMounted=!0}),Ot(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],uu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},fu=e=>{const t=e.subTree;return t.component?fu(t.component):t},bp={name:"BaseTransition",props:uu,setup(e,{slots:t}){const n=ar(),s=cu();return()=>{const r=t.default&&zi(t.default(),!0);if(!r||!r.length)return;const o=du(r),i=Ce(e),{mode:a}=i;if(s.isLeaving)return ko(o);const l=Ta(o);if(!l)return ko(o);let c=Gs(l,i,s,n,f=>c=f);l.type!==ut&&Xn(l,c);let u=n.subTree&&Ta(n.subTree);if(u&&u.type!==ut&&!Un(u,l)&&fu(n).type!==ut){let f=Gs(u,i,s,n);if(Xn(u,f),a==="out-in"&&l.type!==ut)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},ko(o);a==="in-out"&&l.type!==ut?f.delayLeave=(d,p,b)=>{const h=pu(s,u);h[String(u.key)]=u,d[Wt]=()=>{p(),d[Wt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{b(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function du(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ut){t=n;break}}return t}const wp=bp;function pu(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Gs(e,t,n,s,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:b,onLeaveCancelled:h,onBeforeAppear:E,onAppear:v,onAfterAppear:w,onAppearCancelled:C}=t,S=String(e.key),O=pu(n,e),D=(P,q)=>{P&&Pt(P,s,9,q)},k=(P,q)=>{const Y=q[1];D(P,q),le(P)?P.every(B=>B.length<=1)&&Y():P.length<=1&&Y()},I={mode:i,persisted:a,beforeEnter(P){let q=l;if(!n.isMounted)if(o)q=E||l;else return;P[Wt]&&P[Wt](!0);const Y=O[S];Y&&Un(e,Y)&&Y.el[Wt]&&Y.el[Wt](),D(q,[P])},enter(P){if(O[S]===e)return;let q=c,Y=u,B=f;if(!n.isMounted)if(o)q=v||c,Y=w||u,B=C||f;else return;let ae=!1;P[As]=ve=>{ae||(ae=!0,ve?D(B,[P]):D(Y,[P]),I.delayedLeave&&I.delayedLeave(),P[As]=void 0)};const re=P[As].bind(null,!1);q?k(q,[P,re]):re()},leave(P,q){const Y=String(e.key);if(P[As]&&P[As](!0),n.isUnmounting)return q();D(d,[P]);let B=!1;P[Wt]=re=>{B||(B=!0,q(),re?D(h,[P]):D(b,[P]),P[Wt]=void 0,O[Y]===e&&delete O[Y])};const ae=P[Wt].bind(null,!1);O[Y]=e,p?k(p,[P,ae]):ae()},clone(P){const q=Gs(P,t,n,s,r);return r&&r(q),q}};return I}function ko(e){if(io(e))return e=xn(e),e.children=null,e}function Ta(e){if(!io(e))return au(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&me(n.default))return n.default()}}function Xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zi(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;oFs(h,t&&(le(t)?t[E]:t),n,s,r));return}if($s(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Fs(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?co(s.component):s.el,i=r?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Me?a.refs={}:a.refs,f=a.setupState,d=Ce(f),p=f===Me?Cc:h=>Ia(u,h)?!1:Re(d,h),b=(h,E)=>!(E&&Ia(u,E));if(c!=null&&c!==l){if(Ra(t),We(c))u[c]=null,p(c)&&(f[c]=null);else if(Ve(c)){const h=t;b(c,h.k)&&(c.value=null),h.k&&(u[h.k]=null)}}if(me(l))or(l,a,12,[i,u]);else{const h=We(l),E=Ve(l);if(h||E){const v=()=>{if(e.f){const w=h?p(l)?f[l]:u[l]:b()||!e.k?l.value:u[e.k];if(r)le(w)&&Fi(w,o);else if(le(w))w.includes(o)||w.push(o);else if(h)u[l]=[o],p(l)&&(f[l]=u[l]);else{const C=[o];b(l,e.k)&&(l.value=C),e.k&&(u[e.k]=C)}}else h?(u[l]=i,p(l)&&(f[l]=i)):E&&(b(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i))};if(i){const w=()=>{v(),Dr.delete(e)};w.id=-1,Dr.set(e,w),st(w,n)}else Ra(e),v()}}}function Ra(e){const t=Dr.get(e);t&&(t.flags|=8,Dr.delete(e))}no().requestIdleCallback;no().cancelIdleCallback;const $s=e=>!!e.type.__asyncLoader,io=e=>e.type.__isKeepAlive;function Ep(e,t){mu(e,"a",t)}function Ap(e,t){mu(e,"da",t)}function mu(e,t,n=it){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ao(t,s,n),n){let r=n.parent;for(;r&&r.parent;)io(r.parent.vnode)&&Sp(s,t,n,r),r=r.parent}}function Sp(e,t,n,s){const r=ao(t,e,s,!0);Xi(()=>{Fi(s[t],r)},n)}function ao(e,t,n=it,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{un();const a=lr(n),l=Pt(t,n,e,i);return a(),fn(),l});return s?r.unshift(o):r.push(o),o}}const hn=e=>(t,n=it)=>{(!Ys||e==="sp")&&ao(e,(...s)=>t(...s),n)},Cp=hn("bm"),ht=hn("m"),kp=hn("bu"),gu=hn("u"),Ot=hn("bum"),Xi=hn("um"),xp=hn("sp"),Tp=hn("rtg"),Ip=hn("rtc");function Rp(e,t=it){ao("ec",e,t)}const vu="components";function yu(e,t){return bu(vu,e,!0,t)||e}const _u=Symbol.for("v-ndc");function $w(e){return We(e)?bu(vu,e,!1)||e:e||_u}function bu(e,t,n=!0,s=!1){const r=vt||it;if(r){const o=r.type;{const a=hh(o,!1);if(a&&(a===t||a===ft(t)||a===eo(ft(t))))return o}const i=Pa(r[e]||o[e],t)||Pa(r.appContext[e],t);return!i&&s?o:i}}function Pa(e,t){return e&&(e[t]||e[ft(t)]||e[eo(ft(t))])}function Gt(e,t,n,s){let r;const o=n&&n[s],i=le(e);if(i||We(e)){const a=i&&ln(e);let l=!1,c=!1;a&&(l=!bt(e),c=dn(e),e=so(e)),r=new Array(e.length);for(let u=0,f=e.length;ut(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,c=a.length;le?Bu(e)?co(e):ei(e.parent):null,Bs=Xe(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=>ei(e.parent),$root:e=>ei(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Eu(e),$forceUpdate:e=>e.f||(e.f=()=>{qi(e.update)}),$nextTick:e=>e.n||(e.n=Jn.bind(e.proxy)),$watch:e=>yp.bind(e)}),xo=(e,t)=>e!==Me&&!e.__isScriptSetup&&Re(e,t),Pp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(xo(s,t))return i[t]=1,s[t];if(r!==Me&&Re(r,t))return i[t]=2,r[t];if(Re(o,t))return i[t]=3,o[t];if(n!==Me&&Re(n,t))return i[t]=4,n[t];ti&&(i[t]=0)}}const c=Bs[t];let u,f;if(c)return t==="$attrs"&&ot(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Me&&Re(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,Re(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return xo(r,t)?(r[t]=n,!0):s!==Me&&Re(s,t)?(s[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},a){let l;return!!(n[a]||e!==Me&&a[0]!=="$"&&Re(e,a)||xo(t,a)||Re(o,a)||Re(s,a)||Re(Bs,a)||Re(r.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function La(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ti=!0;function Lp(e){const t=Eu(e),n=e.proxy,s=e.ctx;ti=!1,t.beforeCreate&&Na(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:b,activated:h,deactivated:E,beforeDestroy:v,beforeUnmount:w,destroyed:C,unmounted:S,render:O,renderTracked:D,renderTriggered:k,errorCaptured:I,serverPrefetch:P,expose:q,inheritAttrs:Y,components:B,directives:ae,filters:re}=t;if(c&&Np(c,s,null),i)for(const N in i){const W=i[N];me(W)&&(s[N]=W.bind(n))}if(r){const N=r.call(n,n);Le(N)&&(e.data=_s(N))}if(ti=!0,o)for(const N in o){const W=o[N],X=me(W)?W.bind(n,n):me(W.get)?W.get.bind(n,n):zt,ge=!me(W)&&me(W.set)?W.set.bind(n):zt,j=pe({get:X,set:ge});Object.defineProperty(s,N,{enumerable:!0,configurable:!0,get:()=>j.value,set:K=>j.value=K})}if(a)for(const N in a)wu(a[N],s,n,N);if(l){const N=me(l)?l.call(n):l;Reflect.ownKeys(N).forEach(W=>{Er(W,N[W])})}u&&Na(u,e,"c");function ce(N,W){le(W)?W.forEach(X=>N(X.bind(n))):W&&N(W.bind(n))}if(ce(Cp,f),ce(ht,d),ce(kp,p),ce(gu,b),ce(Ep,h),ce(Ap,E),ce(Rp,I),ce(Ip,D),ce(Tp,k),ce(Ot,w),ce(Xi,S),ce(xp,P),le(q))if(q.length){const N=e.exposed||(e.exposed={});q.forEach(W=>{Object.defineProperty(N,W,{get:()=>n[W],set:X=>n[W]=X,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===zt&&(e.render=O),Y!=null&&(e.inheritAttrs=Y),B&&(e.components=B),ae&&(e.directives=ae),P&&hu(e)}function Np(e,t,n=zt){le(e)&&(e=ni(e));for(const s in e){const r=e[s];let o;Le(r)?"default"in r?o=wt(r.from||s,r.default,!0):o=wt(r.from||s):o=wt(r),Ve(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Na(e,t,n){Pt(le(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function wu(e,t,n,s){let r=s.includes(".")?ou(n,s):()=>n[s];if(We(e)){const o=t[e];me(o)&&qe(r,o)}else if(me(e))qe(r,e.bind(n));else if(Le(e))if(le(e))e.forEach(o=>wu(o,t,n,s));else{const o=me(e.handler)?e.handler.bind(n):t[e.handler];me(o)&&qe(r,o,e)}}function Eu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>Mr(l,c,i,!0)),Mr(l,t,i)),Le(t)&&o.set(t,l),l}function Mr(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Mr(e,o,n,!0),r&&r.forEach(i=>Mr(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Op[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Op={data:Oa,props:Da,emits:Da,methods:Rs,computed:Rs,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Rs,directives:Rs,watch:Mp,provide:Oa,inject:Dp};function Oa(e,t){return t?e?function(){return Xe(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function Dp(e,t){return Rs(ni(e),ni(t))}function ni(e){if(le(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ft(t)}Modifiers`]||e[`${In(t)}Modifiers`];function Up(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Me;let r=n;const o=t.startsWith("update:"),i=o&&Bp(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>We(u)?u.trim():u)),i.number&&(r=n.map(to)));let a,l=s[a=wo(t)]||s[a=wo(ft(t))];!l&&o&&(l=s[a=wo(In(t))]),l&&Pt(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Pt(c,e,6,r)}}const Vp=new WeakMap;function Su(e,t,n=!1){const s=n?Vp:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!me(e)){const l=c=>{const u=Su(c,t,!0);u&&(a=!0,Xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Le(e)&&s.set(e,null),null):(le(o)?o.forEach(l=>i[l]=null):Xe(i,o),Le(e)&&s.set(e,i),i)}function lo(e,t){return!e||!Jr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,In(t))||Re(e,t))}function Ma(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:b,inheritAttrs:h}=e,E=Or(e);let v,w;try{if(n.shapeFlag&4){const S=r||s,O=S;v=jt(c.call(O,S,u,f,p,d,b)),w=a}else{const S=t;v=jt(S.length>1?S(f,{attrs:a,slots:i,emit:l}):S(f,null)),w=t.props?a:Wp(a)}}catch(S){Us.length=0,oo(S,e,1),v=de(ut)}let C=v;if(w&&h!==!1){const S=Object.keys(w),{shapeFlag:O}=C;S.length&&O&7&&(o&&S.some(Mi)&&(w=Hp(w,o)),C=xn(C,w,!1,!0))}return n.dirs&&(C=xn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Xn(C,n.transition),v=C,Or(E),v}const Wp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jr(n))&&((t||(t={}))[n]=e[n]);return t},Hp=(e,t)=>{const n={};for(const s in e)(!Mi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function jp(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Fa(s,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fObject.create(ku),Tu=e=>Object.getPrototypeOf(e)===ku;function Gp(e,t,n,s=!1){const r={},o=xu();e.propsDefaults=Object.create(null),Iu(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:zc(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function qp(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=Ce(r),[l]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Ru(f,t,!0);Xe(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Le(e)&&s.set(e,as),as;if(le(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Qi=e=>le(e)?e.map(jt):[jt(e)],zp=(e,t,n)=>{if(t._n)return t;const s=Ye((...r)=>Qi(t(...r)),n);return s._c=!1,s},Pu=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ji(r))continue;const o=e[r];if(me(o))t[r]=zp(r,o,s);else if(o!=null){const i=Qi(o);t[r]=()=>i}}},Lu=(e,t)=>{const n=Qi(t);e.slots.default=()=>n},Nu=(e,t,n)=>{for(const s in t)(n||!Ji(s))&&(e[s]=t[s])},Xp=(e,t,n)=>{const s=e.slots=xu();if(e.vnode.shapeFlag&32){const r=t._;r?(Nu(s,t,n),n&&Ic(s,"_",r,!0)):Pu(t,s)}else t&&Lu(e,t)},Jp=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=Me;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Nu(r,t,n):(o=!t.$stable,Pu(t,r)),i=t}else t&&(Lu(e,t),i={default:1});if(o)for(const a in r)!Ji(a)&&i[a]==null&&delete r[a]},st=nh;function Qp(e){return Zp(e)}function Zp(e,t){const n=no();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=zt,insertStaticContent:b}=e,h=(y,A,R,$=null,V=null,U=null,m=void 0,g=null,x=!!A.dynamicChildren)=>{if(y===A)return;y&&!Un(y,A)&&($=M(y),K(y,V,U,!0),y=null),A.patchFlag===-2&&(x=!1,A.dynamicChildren=null);const{type:L,ref:Q,shapeFlag:H}=A;switch(L){case ir:E(y,A,R,$);break;case ut:v(y,A,R,$);break;case Sr:y==null&&w(A,R,$,m);break;case Be:B(y,A,R,$,V,U,m,g,x);break;default:H&1?O(y,A,R,$,V,U,m,g,x):H&6?ae(y,A,R,$,V,U,m,g,x):(H&64||H&128)&&L.process(y,A,R,$,V,U,m,g,x,se)}Q!=null&&V?Fs(Q,y&&y.ref,U,A||y,!A):Q==null&&y&&y.ref!=null&&Fs(y.ref,null,U,y,!0)},E=(y,A,R,$)=>{if(y==null)s(A.el=a(A.children),R,$);else{const V=A.el=y.el;A.children!==y.children&&c(V,A.children)}},v=(y,A,R,$)=>{y==null?s(A.el=l(A.children||""),R,$):A.el=y.el},w=(y,A,R,$)=>{[y.el,y.anchor]=b(y.children,A,R,$,y.el,y.anchor)},C=({el:y,anchor:A},R,$)=>{let V;for(;y&&y!==A;)V=d(y),s(y,R,$),y=V;s(A,R,$)},S=({el:y,anchor:A})=>{let R;for(;y&&y!==A;)R=d(y),r(y),y=R;r(A)},O=(y,A,R,$,V,U,m,g,x)=>{if(A.type==="svg"?m="svg":A.type==="math"&&(m="mathml"),y==null)D(A,R,$,V,U,m,g,x);else{const L=y.el&&y.el._isVueCE?y.el:null;try{L&&L._beginPatch(),P(y,A,V,U,m,g,x)}finally{L&&L._endPatch()}}},D=(y,A,R,$,V,U,m,g)=>{let x,L;const{props:Q,shapeFlag:H,transition:T,dirs:F}=y;if(x=y.el=i(y.type,U,Q&&Q.is,Q),H&8?u(x,y.children):H&16&&I(y.children,x,null,$,V,To(y,U),m,g),F&&On(y,null,$,"created"),k(x,y,y.scopeId,m,$),Q){for(const ue in Q)ue!=="value"&&!Ns(ue)&&o(x,ue,null,Q[ue],U,$);"value"in Q&&o(x,"value",null,Q.value,U),(L=Q.onVnodeBeforeMount)&&Ft(L,$,y)}F&&On(y,null,$,"beforeMount");const ne=eh(V,T);ne&&T.beforeEnter(x),s(x,A,R),((L=Q&&Q.onVnodeMounted)||ne||F)&&st(()=>{L&&Ft(L,$,y),ne&&T.enter(x),F&&On(y,null,$,"mounted")},V)},k=(y,A,R,$,V)=>{if(R&&p(y,R),$)for(let U=0;U<$.length;U++)p(y,$[U]);if(V){let U=V.subTree;if(A===U||Mu(U.type)&&(U.ssContent===A||U.ssFallback===A)){const m=V.vnode;k(y,m,m.scopeId,m.slotScopeIds,V.parent)}}},I=(y,A,R,$,V,U,m,g,x=0)=>{for(let L=x;L{const g=A.el=y.el;let{patchFlag:x,dynamicChildren:L,dirs:Q}=A;x|=y.patchFlag&16;const H=y.props||Me,T=A.props||Me;let F;if(R&&Dn(R,!1),(F=T.onVnodeBeforeUpdate)&&Ft(F,R,A,y),Q&&On(A,y,R,"beforeUpdate"),R&&Dn(R,!0),(H.innerHTML&&T.innerHTML==null||H.textContent&&T.textContent==null)&&u(g,""),L?q(y.dynamicChildren,L,g,R,$,To(A,V),U):m||W(y,A,g,null,R,$,To(A,V),U,!1),x>0){if(x&16)Y(g,H,T,R,V);else if(x&2&&H.class!==T.class&&o(g,"class",null,T.class,V),x&4&&o(g,"style",H.style,T.style,V),x&8){const ne=A.dynamicProps;for(let ue=0;ue{F&&Ft(F,R,A,y),Q&&On(A,y,R,"updated")},$)},q=(y,A,R,$,V,U,m)=>{for(let g=0;g{if(A!==R){if(A!==Me)for(const U in A)!Ns(U)&&!(U in R)&&o(y,U,A[U],null,V,$);for(const U in R){if(Ns(U))continue;const m=R[U],g=A[U];m!==g&&U!=="value"&&o(y,U,g,m,V,$)}"value"in R&&o(y,"value",A.value,R.value,V)}},B=(y,A,R,$,V,U,m,g,x)=>{const L=A.el=y?y.el:a(""),Q=A.anchor=y?y.anchor:a("");let{patchFlag:H,dynamicChildren:T,slotScopeIds:F}=A;F&&(g=g?g.concat(F):F),y==null?(s(L,R,$),s(Q,R,$),I(A.children||[],R,Q,V,U,m,g,x)):H>0&&H&64&&T&&y.dynamicChildren&&y.dynamicChildren.length===T.length?(q(y.dynamicChildren,T,R,V,U,m,g),(A.key!=null||V&&A===V.subTree)&&Zi(y,A,!0)):W(y,A,R,Q,V,U,m,g,x)},ae=(y,A,R,$,V,U,m,g,x)=>{A.slotScopeIds=g,y==null?A.shapeFlag&512?V.ctx.activate(A,R,$,m,x):re(A,R,$,V,U,m,x):ve(y,A,x)},re=(y,A,R,$,V,U,m)=>{const g=y.component=ch(y,$,V);if(io(y)&&(g.ctx.renderer=se),uh(g,!1,m),g.asyncDep){if(V&&V.registerDep(g,ce,m),!y.el){const x=g.subTree=de(ut);v(null,x,A,R),y.placeholder=x.el}}else ce(g,y,A,R,V,U,m)},ve=(y,A,R)=>{const $=A.component=y.component;if(jp(y,A,R))if($.asyncDep&&!$.asyncResolved){N($,A,R);return}else $.next=A,$.update();else A.el=y.el,$.vnode=A},ce=(y,A,R,$,V,U,m)=>{const g=()=>{if(y.isMounted){let{next:H,bu:T,u:F,parent:ne,vnode:ue}=y;{const xt=Ou(y);if(xt){H&&(H.el=ue.el,N(y,H,m)),xt.asyncDep.then(()=>{st(()=>{y.isUnmounted||L()},V)});return}}let Ee=H,He;Dn(y,!1),H?(H.el=ue.el,N(y,H,m)):H=ue,T&&wr(T),(He=H.props&&H.props.onVnodeBeforeUpdate)&&Ft(He,ne,H,ue),Dn(y,!0);const De=Ma(y),At=y.subTree;y.subTree=De,h(At,De,f(At.el),M(At),y,V,U),H.el=De.el,Ee===null&&Kp(y,De.el),F&&st(F,V),(He=H.props&&H.props.onVnodeUpdated)&&st(()=>Ft(He,ne,H,ue),V)}else{let H;const{el:T,props:F}=A,{bm:ne,m:ue,parent:Ee,root:He,type:De}=y,At=$s(A);Dn(y,!1),ne&&wr(ne),!At&&(H=F&&F.onVnodeBeforeMount)&&Ft(H,Ee,A),Dn(y,!0);{He.ce&&He.ce._hasShadowRoot()&&He.ce._injectChildStyle(De,y.parent?y.parent.type:void 0);const xt=y.subTree=Ma(y);h(null,xt,R,$,y,V,U),A.el=xt.el}if(ue&&st(ue,V),!At&&(H=F&&F.onVnodeMounted)){const xt=A;st(()=>Ft(H,Ee,xt),V)}(A.shapeFlag&256||Ee&&$s(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&y.a&&st(y.a,V),y.isMounted=!0,A=R=$=null}};y.scope.on();const x=y.effect=new Dc(g);y.scope.off();const L=y.update=x.run.bind(x),Q=y.job=x.runIfDirty.bind(x);Q.i=y,Q.id=y.uid,x.scheduler=()=>qi(Q),Dn(y,!0),L()},N=(y,A,R)=>{A.component=y;const $=y.vnode.props;y.vnode=A,y.next=null,qp(y,A.props,$,R),Jp(y,A.children,R),un(),Sa(y),fn()},W=(y,A,R,$,V,U,m,g,x=!1)=>{const L=y&&y.children,Q=y?y.shapeFlag:0,H=A.children,{patchFlag:T,shapeFlag:F}=A;if(T>0){if(T&128){ge(L,H,R,$,V,U,m,g,x);return}else if(T&256){X(L,H,R,$,V,U,m,g,x);return}}F&8?(Q&16&&oe(L,V,U),H!==L&&u(R,H)):Q&16?F&16?ge(L,H,R,$,V,U,m,g,x):oe(L,V,U,!0):(Q&8&&u(R,""),F&16&&I(H,R,$,V,U,m,g,x))},X=(y,A,R,$,V,U,m,g,x)=>{y=y||as,A=A||as;const L=y.length,Q=A.length,H=Math.min(L,Q);let T;for(T=0;TQ?oe(y,V,U,!0,!1,H):I(A,R,$,V,U,m,g,x,H)},ge=(y,A,R,$,V,U,m,g,x)=>{let L=0;const Q=A.length;let H=y.length-1,T=Q-1;for(;L<=H&&L<=T;){const F=y[L],ne=A[L]=x?nn(A[L]):jt(A[L]);if(Un(F,ne))h(F,ne,R,null,V,U,m,g,x);else break;L++}for(;L<=H&&L<=T;){const F=y[H],ne=A[T]=x?nn(A[T]):jt(A[T]);if(Un(F,ne))h(F,ne,R,null,V,U,m,g,x);else break;H--,T--}if(L>H){if(L<=T){const F=T+1,ne=FT)for(;L<=H;)K(y[L],V,U,!0),L++;else{const F=L,ne=L,ue=new Map;for(L=ne;L<=T;L++){const mt=A[L]=x?nn(A[L]):jt(A[L]);mt.key!=null&&ue.set(mt.key,L)}let Ee,He=0;const De=T-ne+1;let At=!1,xt=0;const ws=new Array(De);for(L=0;L=De){K(mt,V,U,!0);continue}let Mt;if(mt.key!=null)Mt=ue.get(mt.key);else for(Ee=ne;Ee<=T;Ee++)if(ws[Ee-ne]===0&&Un(mt,A[Ee])){Mt=Ee;break}Mt===void 0?K(mt,V,U,!0):(ws[Mt-ne]=L+1,Mt>=xt?xt=Mt:At=!0,h(mt,A[Mt],R,null,V,U,m,g,x),He++)}const va=At?th(ws):as;for(Ee=va.length-1,L=De-1;L>=0;L--){const mt=ne+L,Mt=A[mt],ya=A[mt+1],_a=mt+1{const{el:U,type:m,transition:g,children:x,shapeFlag:L}=y;if(L&6){j(y.component.subTree,A,R,$);return}if(L&128){y.suspense.move(A,R,$);return}if(L&64){m.move(y,A,R,se);return}if(m===Be){s(U,A,R);for(let H=0;Hg.enter(U),V);else{const{leave:H,delayLeave:T,afterLeave:F}=g,ne=()=>{y.ctx.isUnmounted?r(U):s(U,A,R)},ue=()=>{U._isLeaving&&U[Wt](!0),H(U,()=>{ne(),F&&F()})};T?T(U,ne,ue):ue()}else s(U,A,R)},K=(y,A,R,$=!1,V=!1)=>{const{type:U,props:m,ref:g,children:x,dynamicChildren:L,shapeFlag:Q,patchFlag:H,dirs:T,cacheIndex:F}=y;if(H===-2&&(V=!1),g!=null&&(un(),Fs(g,null,R,y,!0),fn()),F!=null&&(A.renderCache[F]=void 0),Q&256){A.ctx.deactivate(y);return}const ne=Q&1&&T,ue=!$s(y);let Ee;if(ue&&(Ee=m&&m.onVnodeBeforeUnmount)&&Ft(Ee,A,y),Q&6)we(y.component,R,$);else{if(Q&128){y.suspense.unmount(R,$);return}ne&&On(y,null,A,"beforeUnmount"),Q&64?y.type.remove(y,A,R,se,$):L&&!L.hasOnce&&(U!==Be||H>0&&H&64)?oe(L,A,R,!1,!0):(U===Be&&H&384||!V&&Q&16)&&oe(x,A,R),$&&ie(y)}(ue&&(Ee=m&&m.onVnodeUnmounted)||ne)&&st(()=>{Ee&&Ft(Ee,A,y),ne&&On(y,null,A,"unmounted")},R)},ie=y=>{const{type:A,el:R,anchor:$,transition:V}=y;if(A===Be){Ae(R,$);return}if(A===Sr){S(y);return}const U=()=>{r(R),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(y.shapeFlag&1&&V&&!V.persisted){const{leave:m,delayLeave:g}=V,x=()=>m(R,U);g?g(y.el,U,x):x()}else U()},Ae=(y,A)=>{let R;for(;y!==A;)R=d(y),r(y),y=R;r(A)},we=(y,A,R)=>{const{bum:$,scope:V,job:U,subTree:m,um:g,m:x,a:L}=y;Ba(x),Ba(L),$&&wr($),V.stop(),U&&(U.flags|=8,K(m,y,A,R)),g&&st(g,A),st(()=>{y.isUnmounted=!0},A)},oe=(y,A,R,$=!1,V=!1,U=0)=>{for(let m=U;m{if(y.shapeFlag&6)return M(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const A=d(y.anchor||y.el),R=A&&A[iu];return R?d(R):A};let ee=!1;const J=(y,A,R)=>{let $;y==null?A._vnode&&(K(A._vnode,null,null,!0),$=A._vnode.component):h(A._vnode||null,y,A,null,null,null,R),A._vnode=y,ee||(ee=!0,Sa($),tu(),ee=!1)},se={p:h,um:K,m:j,r:ie,mt:re,mc:I,pc:W,pbc:q,n:M,o:e};return{render:J,hydrate:void 0,createApp:$p(J)}}function To({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Dn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function eh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zi(e,t,n=!1){const s=e.children,r=t.children;if(le(s)&&le(r))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Ou(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ou(t)}function Ba(e){if(e)for(let t=0;te.__isSuspense;function nh(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):hp(e)}const Be=Symbol.for("v-fgt"),ir=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),Sr=Symbol.for("v-stc"),Us=[];let yt=null;function z(e=!1){Us.push(yt=e?null:[])}function sh(){Us.pop(),yt=Us[Us.length-1]||null}let qs=1;function Fr(e,t=!1){qs+=e,e<0&&yt&&t&&(yt.hasOnce=!0)}function Fu(e){return e.dynamicChildren=qs>0?yt||as:null,sh(),qs>0&&yt&&yt.push(e),e}function Z(e,t,n,s,r,o){return Fu(_(e,t,n,s,r,o,!0))}function dt(e,t,n,s,r){return Fu(de(e,t,n,s,r,!0))}function $r(e){return e?e.__v_isVNode===!0:!1}function Un(e,t){return e.type===t.type&&e.key===t.key}const $u=({key:e})=>e??null,Cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?We(e)||Ve(e)||me(e)?{i:vt,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,r=null,o=e===Be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$u(t),ref:t&&Cr(t),scopeId:su,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:vt};return a?(ea(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=We(n)?8:16),qs>0&&!i&&yt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&yt.push(l),l}const de=rh;function rh(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===_u)&&(e=ut),$r(e)){const a=xn(e,t,!0);return n&&ea(a,n),qs>0&&!o&&yt&&(a.shapeFlag&6?yt[yt.indexOf(e)]=a:yt.push(a)),a.patchFlag=-2,a}if(mh(e)&&(e=e.__vccOpts),t){t=oh(t);let{class:a,style:l}=t;a&&!We(a)&&(t.class=$e(a)),Le(l)&&(ro(l)&&!le(l)&&(l=Xe({},l)),t.style=Tt(l))}const i=We(e)?1:Mu(e)?128:au(e)?64:Le(e)?4:me(e)?2:0;return _(e,t,n,s,r,i,o,!0)}function oh(e){return e?ro(e)||Tu(e)?Xe({},e):e:null}function xn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?ih(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$u(c),ref:t&&t.ref?n&&o?le(o)?o.concat(Cr(t)):[o,Cr(t)]:Cr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Xn(u,l.clone(u)),u}function kn(e=" ",t=0){return de(ir,null,e,t)}function Bw(e,t){const n=de(Sr,null,e);return n.staticCount=t,n}function be(e="",t=!1){return t?(z(),dt(ut,null,e)):de(ut,null,e)}function jt(e){return e==null||typeof e=="boolean"?de(ut):le(e)?de(Be,null,e.slice()):$r(e)?nn(e):de(ir,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function ea(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ea(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Tu(t)?t._ctx=vt:r===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:vt},n=32):(t=String(t),s&64?(n=16,t=[kn(t)]):n=8);e.children=t,e.shapeFlag|=n}function ih(...e){const t={};for(let n=0;nit||vt;let Br,ri;{const e=no(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Br=t("__VUE_INSTANCE_SETTERS__",n=>it=n),ri=t("__VUE_SSR_SETTERS__",n=>Ys=n)}const lr=e=>{const t=it;return Br(e),e.scope.on(),()=>{e.scope.off(),Br(t)}},Ua=()=>{it&&it.scope.off(),Br(null)};function Bu(e){return e.vnode.shapeFlag&4}let Ys=!1;function uh(e,t=!1,n=!1){t&&ri(t);const{props:s,children:r}=e.vnode,o=Bu(e);Gp(e,s,o,t),Xp(e,r,n||t);const i=o?fh(e,t):void 0;return t&&ri(!1),i}function fh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pp);const{setup:s}=n;if(s){un();const r=e.setupContext=s.length>1?ph(e):null,o=lr(e),i=or(s,e,0,[e.props,r]),a=kc(i);if(fn(),o(),(a||e.sp)&&!$s(e)&&hu(e),a){if(i.then(Ua,Ua),t)return i.then(l=>{Va(e,l)}).catch(l=>{oo(l,e,0)});e.asyncDep=i}else Va(e,i)}else Uu(e)}function Va(e,t,n){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Le(t)&&(e.setupState=Qc(t)),Uu(e)}function Uu(e,t,n){const s=e.type;e.render||(e.render=s.render||zt);{const r=lr(e);un();try{Lp(e)}finally{fn(),r()}}}const dh={get(e,t){return ot(e,"get",""),e[t]}};function ph(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,dh),slots:e.slots,emit:e.emit,expose:t}}function co(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qc(Gi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Bs)return Bs[n](e)},has(t,n){return n in t||n in Bs}})):e.proxy}function hh(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function mh(e){return me(e)&&"__vccOpts"in e}const pe=(e,t)=>cp(e,t,Ys);function cr(e,t,n){try{Fr(-1);const s=arguments.length;return s===2?Le(t)&&!le(t)?$r(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&$r(n)&&(n=[n]),de(e,t,n))}finally{Fr(1)}}const gh="3.5.30";let oi;const Wa=typeof window<"u"&&window.trustedTypes;if(Wa)try{oi=Wa.createPolicy("vue",{createHTML:e=>e})}catch{}const Vu=oi?e=>oi.createHTML(e):e=>e,vh="http://www.w3.org/2000/svg",yh="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,Ha=tn&&tn.createElement("template"),_h={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?tn.createElementNS(vh,e):t==="mathml"?tn.createElementNS(yh,e):n?tn.createElement(e,{is:n}):tn.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ha.innerHTML=Vu(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Ha.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},mn="transition",Ss="animation",fs=Symbol("_vtc"),Wu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Hu=Xe({},uu,Wu),bh=e=>(e.displayName="Transition",e.props=Hu,e),tt=bh((e,{slots:t})=>cr(wp,ju(e),t)),Mn=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},ja=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function ju(e){const t={};for(const B in e)B in Wu||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,b=wh(r),h=b&&b[0],E=b&&b[1],{onBeforeEnter:v,onEnter:w,onEnterCancelled:C,onLeave:S,onLeaveCancelled:O,onBeforeAppear:D=v,onAppear:k=w,onAppearCancelled:I=C}=t,P=(B,ae,re,ve)=>{B._enterCancelled=ve,_n(B,ae?u:a),_n(B,ae?c:i),re&&re()},q=(B,ae)=>{B._isLeaving=!1,_n(B,f),_n(B,p),_n(B,d),ae&&ae()},Y=B=>(ae,re)=>{const ve=B?k:w,ce=()=>P(ae,B,re);Mn(ve,[ae,ce]),Ka(()=>{_n(ae,B?l:o),Ut(ae,B?u:a),ja(ve)||Ga(ae,s,h,ce)})};return Xe(t,{onBeforeEnter(B){Mn(v,[B]),Ut(B,o),Ut(B,i)},onBeforeAppear(B){Mn(D,[B]),Ut(B,l),Ut(B,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(B,ae){B._isLeaving=!0;const re=()=>q(B,ae);Ut(B,f),B._enterCancelled?(Ut(B,d),ii(B)):(ii(B),Ut(B,d)),Ka(()=>{B._isLeaving&&(_n(B,f),Ut(B,p),ja(S)||Ga(B,s,E,re))}),Mn(S,[B,re])},onEnterCancelled(B){P(B,!1,void 0,!0),Mn(C,[B])},onAppearCancelled(B){P(B,!0,void 0,!0),Mn(I,[B])},onLeaveCancelled(B){q(B),Mn(O,[B])}})}function wh(e){if(e==null)return null;if(Le(e))return[Io(e.enter),Io(e.leave)];{const t=Io(e);return[t,t]}}function Io(e){return Id(e)}function Ut(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fs]||(e[fs]=new Set)).add(t)}function _n(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function Ka(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Eh=0;function Ga(e,t,n,s){const r=e._endId=++Eh,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=Ku(e,t);if(!i)return s();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),o()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[b]||"").split(", "),r=s(`${mn}Delay`),o=s(`${mn}Duration`),i=qa(r,o),a=s(`${Ss}Delay`),l=s(`${Ss}Duration`),c=qa(a,l);let u=null,f=0,d=0;t===mn?i>0&&(u=mn,f=i,d=o.length):t===Ss?c>0&&(u=Ss,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?mn:Ss:null,d=u?u===mn?o.length:l.length:0);const p=u===mn&&/\b(?:transform|all)(?:,|$)/.test(s(`${mn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function qa(e,t){for(;e.lengthYa(n)+Ya(e[s])))}function Ya(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ii(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ah(e,t,n){const s=e[fs];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ur=Symbol("_vod"),Gu=Symbol("_vsh"),Uw={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Cs(e,!0),s.enter(e)):s.leave(e,()=>{Cs(e,!1)}):Cs(e,t))},beforeUnmount(e,{value:t}){Cs(e,t)}};function Cs(e,t){e.style.display=t?e[Ur]:"none",e[Gu]=!t}const Sh=Symbol(""),Ch=/(?:^|;)\s*display\s*:/;function kh(e,t,n){const s=e.style,r=We(n);let o=!1;if(n&&!r){if(t)if(We(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&kr(s,a,"")}else for(const i in t)n[i]==null&&kr(s,i,"");for(const i in n)i==="display"&&(o=!0),kr(s,i,n[i])}else if(r){if(t!==n){const i=s[Sh];i&&(n+=";"+i),s.cssText=n,o=Ch.test(n)}}else t&&e.removeAttribute("style");Ur in e&&(e[Ur]=o?s.display:"",e[Gu]&&(s.display="none"))}const za=/\s*!important$/;function kr(e,t,n){if(le(n))n.forEach(s=>kr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=xh(e,t);za.test(n)?e.setProperty(In(s),n.replace(za,""),"important"):e[s]=n}}const Xa=["Webkit","Moz","ms"],Ro={};function xh(e,t){const n=Ro[t];if(n)return n;let s=ft(t);if(s!=="filter"&&s in e)return Ro[t]=s;s=eo(s);for(let r=0;rPo||(Ph.then(()=>Po=0),Po=Date.now());function Nh(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Pt(Oh(s,n.value),t,5,[s])};return n.value=e,n.attached=Lh(),n}function Oh(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const nl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dh=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Ah(e,s,i):t==="style"?kh(e,n,s):Jr(t)?Mi(t)||Ih(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mh(e,t,s,i))?(Za(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qa(e,t,s,i,o,t!=="value")):e._isVueCE&&(Fh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!We(s)))?Za(e,ft(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Qa(e,t,s,i))};function Mh(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&nl(t)&&me(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return nl(t)&&We(n)?!1:t in e}function Fh(e,t){const n=e._def.props;if(!n)return!1;const s=ft(t);return Array.isArray(n)?n.some(r=>ft(r)===s):Object.keys(n).some(r=>ft(r)===s)}const qu=new WeakMap,Yu=new WeakMap,Vr=Symbol("_moveCb"),sl=Symbol("_enterCb"),$h=e=>(delete e.props.mode,e),Bh=$h({name:"TransitionGroup",props:Xe({},Hu,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ar(),s=cu();let r,o;return gu(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!jh(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(Vh),r.forEach(Wh);const a=r.filter(Hh);ii(n.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Ut(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[Vr]=d=>{d&&d.target!==c||(!d||d.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Vr]=null,_n(c,i))};c.addEventListener("transitionend",f)}),r=[]}),()=>{const i=Ce(e),a=ju(i);let l=i.tag||Be;if(r=[],o)for(let c=0;c{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=Ku(s);return o.removeChild(s),i}const ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return le(t)?n=>wr(t,n):t};function Kh(e){e.target.composing=!0}function rl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cn=Symbol("_assign");function ol(e,t,n){return t&&(e=e.trim()),n&&(e=to(e)),e}const Xu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[cn]=ds(r);const o=s||r.props&&r.props.type==="number";An(e,t?"change":"input",i=>{i.target.composing||e[cn](ol(e.value,n,o))}),(n||o)&&An(e,"change",()=>{e.value=ol(e.value,n,o)}),t||(An(e,"compositionstart",Kh),An(e,"compositionend",rl),An(e,"change",rl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[cn]=ds(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?to(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===l)||(e.value=l))}},Gh={deep:!0,created(e,t,n){e[cn]=ds(n),An(e,"change",()=>{const s=e._modelValue,r=zs(e),o=e.checked,i=e[cn];if(le(s)){const a=$i(s,r),l=a!==-1;if(o&&!l)i(s.concat(r));else if(!o&&l){const c=[...s];c.splice(a,1),i(c)}}else if(vs(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(Ju(e,o))})},mounted:il,beforeUpdate(e,t,n){e[cn]=ds(n),il(e,t,n)}};function il(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(le(t))r=$i(t,s.props.value)>-1;else if(vs(t))r=t.has(s.props.value);else{if(t===n)return;r=ys(t,Ju(e,!0))}e.checked!==r&&(e.checked=r)}const Vw={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=vs(t);An(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?to(zs(i)):zs(i));e[cn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Jn(()=>{e._assigning=!1})}),e[cn]=ds(s)},mounted(e,{value:t}){al(e,t)},beforeUpdate(e,t,n){e[cn]=ds(n)},updated(e,{value:t}){e._assigning||al(e,t)}};function al(e,t){const n=e.multiple,s=le(t);if(!(n&&!s&&!vs(t))){for(let r=0,o=e.options.length;rString(c)===String(a)):i.selected=$i(t,a)>-1}else i.selected=t.has(a);else if(ys(zs(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}function Ju(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qh=["ctrl","shift","alt","meta"],Yh={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)=>qh.some(n=>e[`${n}Key`]&&!t.includes(n))},Tn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=In(r.key);if(t.some(i=>i===o||zh[i]===o))return e(r)}))},Xh=Xe({patchProp:Dh},_h);let ll;function Jh(){return ll||(ll=Qp(Xh))}const Qh=((...e)=>{const t=Jh().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=em(s);if(!r)return;const o=t._component;!me(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Zh(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Zh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function em(e){return We(e)?document.querySelector(e):e}let Zu;const uo=e=>Zu=e,ef=Symbol();function ai(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vs||(Vs={}));function tm(){const e=Bi(!0),t=e.run(()=>G({}));let n=[],s=[];const r=Gi({install(o){uo(r),r._a=o,o.provide(ef,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const tf=()=>{};function cl(e,t,n,s=tf){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&Oc()&&Fd(r),r}function es(e,...t){e.forEach(n=>{n(...t)})}const nm=e=>e(),ul=Symbol(),Lo=Symbol();function li(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];ai(r)&&ai(s)&&e.hasOwnProperty(n)&&!Ve(s)&&!ln(s)?e[n]=li(r,s):e[n]=s}return e}const sm=Symbol();function rm(e){return!ai(e)||!Object.prototype.hasOwnProperty.call(e,sm)}const{assign:bn}=Object;function om(e){return!!(Ve(e)&&e.effect)}function im(e,t,n,s){const{state:r,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const u=op(n.state.value[e]);return bn(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gi(pe(()=>{uo(n);const p=n._s.get(e);return i[d].call(p,p)})),f),{}))}return l=nf(e,c,t,n,s,!0),l}function nf(e,t,n={},s,r,o){let i;const a=bn({actions:{}},n),l={deep:!0};let c,u,f=new Set,d=new Set,p;const b=s.state.value[e];!o&&!b&&(s.state.value[e]={});let h;function E(I){let P;c=u=!1,typeof I=="function"?(I(s.state.value[e]),P={type:Vs.patchFunction,storeId:e,events:p}):(li(s.state.value[e],I),P={type:Vs.patchObject,payload:I,storeId:e,events:p});const q=h=Symbol();Jn().then(()=>{h===q&&(c=!0)}),u=!0,es(f,P,s.state.value[e])}const v=o?function(){const{state:P}=n,q=P?P():{};this.$patch(Y=>{bn(Y,q)})}:tf;function w(){i.stop(),f.clear(),d.clear(),s._s.delete(e)}const C=(I,P="")=>{if(ul in I)return I[Lo]=P,I;const q=function(){uo(s);const Y=Array.from(arguments),B=new Set,ae=new Set;function re(N){B.add(N)}function ve(N){ae.add(N)}es(d,{args:Y,name:q[Lo],store:O,after:re,onError:ve});let ce;try{ce=I.apply(this&&this.$id===e?this:O,Y)}catch(N){throw es(ae,N),N}return ce instanceof Promise?ce.then(N=>(es(B,N),N)).catch(N=>(es(ae,N),Promise.reject(N))):(es(B,ce),ce)};return q[ul]=!0,q[Lo]=P,q},S={_p:s,$id:e,$onAction:cl.bind(null,d),$patch:E,$reset:v,$subscribe(I,P={}){const q=cl(f,I,P.detached,()=>Y()),Y=i.run(()=>qe(()=>s.state.value[e],B=>{(P.flush==="sync"?u:c)&&I({storeId:e,type:Vs.direct,events:p},B)},bn({},l,P)));return q},$dispose:w},O=_s(S);s._s.set(e,O);const k=(s._a&&s._a.runWithContext||nm)(()=>s._e.run(()=>(i=Bi()).run(()=>t({action:C}))));for(const I in k){const P=k[I];if(Ve(P)&&!om(P)||ln(P))o||(b&&rm(P)&&(Ve(P)?P.value=b[I]:li(P,b[I])),s.state.value[e][I]=P);else if(typeof P=="function"){const q=C(P,I);k[I]=q,a.actions[I]=P}}return bn(O,k),bn(Ce(O),k),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:I=>{E(P=>{bn(P,I)})}}),s._p.forEach(I=>{bn(O,i.run(()=>I({store:O,app:s._a,pinia:s,options:a})))}),b&&o&&n.hydrate&&n.hydrate(O.$state,b),c=!0,u=!0,O}function Qn(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,a){const l=mp();return i=i||(l?wt(ef,null):null),i&&uo(i),i=Zu,i._s.has(e)||(r?nf(e,t,s,i):im(e,s,i)),i._s.get(e)}return o.$id=e,o}const am="modulepreload",lm=function(e){return"/"+e},fl={},_e=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");r=l(n.map(c=>{if(c=lm(c),c in fl)return;fl[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":am,u||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((p,b)=>{d.addEventListener("load",p),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};const ss=typeof document<"u";function sf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sf(e.default)}const Te=Object.assign;function No(e,t){const n={};for(const s in t){const r=t[s];n[s]=Lt(r)?r.map(e):e(r)}return n}const Ws=()=>{},Lt=Array.isArray;function dl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const rf=/#/g,um=/&/g,fm=/\//g,dm=/=/g,pm=/\?/g,of=/\+/g,hm=/%5B/g,mm=/%5D/g,af=/%5E/g,gm=/%60/g,lf=/%7B/g,vm=/%7C/g,cf=/%7D/g,ym=/%20/g;function ta(e){return e==null?"":encodeURI(""+e).replace(vm,"|").replace(hm,"[").replace(mm,"]")}function _m(e){return ta(e).replace(lf,"{").replace(cf,"}").replace(af,"^")}function ci(e){return ta(e).replace(of,"%2B").replace(ym,"+").replace(rf,"%23").replace(um,"%26").replace(gm,"`").replace(lf,"{").replace(cf,"}").replace(af,"^")}function bm(e){return ci(e).replace(dm,"%3D")}function wm(e){return ta(e).replace(rf,"%23").replace(pm,"%3F")}function Em(e){return wm(e).replace(fm,"%2F")}function Xs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Am=/\/$/,Sm=e=>e.replace(Am,"");function Oo(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),o=t.slice(l,a>0?a:t.length),r=e(o.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Tm(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Xs(i)}}function Cm(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function km(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&ps(t.matched[s],n.matched[r])&&uf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ps(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function uf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!xm(e[n],t[n]))return!1;return!0}function xm(e,t){return Lt(e)?hl(e,t):Lt(t)?hl(t,e):e?.valueOf()===t?.valueOf()}function hl(e,t){return Lt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Tm(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ui=(function(e){return e.pop="pop",e.push="push",e})({}),Do=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Im(e){if(!e)if(ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sm(e)}const Rm=/^[^#]+#/;function Pm(e,t){return e.replace(Rm,"#")+t}function Lm(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const fo=()=>({left:window.scrollX,top:window.scrollY});function Nm(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Lm(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ml(e,t){return(history.state?history.state.position-t:-1)+e}const fi=new Map;function Om(e,t){fi.set(e,t)}function Dm(e){const t=fi.get(e);return fi.delete(e),t}function Mm(e){return typeof e=="string"||e&&typeof e=="object"}function ff(e){return typeof e=="string"||typeof e=="symbol"}let je=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const df=Symbol("");je.MATCHER_NOT_FOUND+"",je.NAVIGATION_GUARD_REDIRECT+"",je.NAVIGATION_ABORTED+"",je.NAVIGATION_CANCELLED+"",je.NAVIGATION_DUPLICATED+"";function hs(e,t){return Te(new Error,{type:e,[df]:!0},t)}function Zt(e,t){return e instanceof Error&&df in e&&(t==null||!!(e.type&t))}const Fm=["params","query","hash"];function $m(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Fm)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Bm(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&ci(r)):[s&&ci(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Um(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Lt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Vm=Symbol(""),vl=Symbol(""),po=Symbol(""),na=Symbol(""),di=Symbol("");function ks(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function En(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(hs(je.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):Mm(d)?l(hs(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(i&&s.enterCallbacks[r]===i&&typeof d=="function"&&i.push(d),a())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function Mo(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(sf(l)){const c=(l.__vccOpts||l)[t];c&&o.push(En(c,n,s,i,a,r))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=cm(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&En(d,n,s,i,a,r)()}))}}return o}function Wm(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ips(c,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>ps(c,l))||r.push(l))}return[n,s,r]}let Hm=()=>location.protocol+"//"+location.host;function pf(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,a=r.slice(i);return a[0]!=="/"&&(a="/"+a),pl(a,"")}return pl(n,e)+s+r}function jm(e,t,n,s){let r=[],o=[],i=null;const a=({state:d})=>{const p=pf(e,location),b=n.value,h=t.value;let E=0;if(d){if(n.value=p,t.value=d,i&&i===b){i=null;return}E=h?d.position-h.position:0}else s(p);r.forEach(v=>{v(n.value,b,{delta:E,type:ui.pop,direction:E?E>0?Do.forward:Do.back:Do.unknown})})};function l(){i=n.value}function c(d){r.push(d);const p=()=>{const b=r.indexOf(d);b>-1&&r.splice(b,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Te({},d.state,{scroll:fo()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:f}}function yl(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?fo():null}}function Km(e){const{history:t,location:n}=window,s={value:pf(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Hm()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),r.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){o(l,Te({},t.state,yl(r.value.back,l,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=l}function a(l,c){const u=Te({},r.value,t.state,{forward:l,scroll:fo()});o(u.current,u,!0),o(l,Te({},yl(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:r,push:a,replace:i}}function Gm(e){e=Im(e);const t=Km(e),n=jm(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Te({location:"",base:e,go:s,createHref:Pm.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Hn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Je=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Je||{});const qm={type:Hn.Static,value:""},Ym=/[a-zA-Z0-9_]/;function zm(e){if(!e)return[[]];if(e==="/")return[[qm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Je.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,c="",u="";function f(){c&&(n===Je.Static?o.push({type:Hn.Static,value:c}):n===Je.Param||n===Je.ParamRegExp||n===Je.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Hn.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;at.length?t.length===1&&t[0]===lt.Static+lt.Segment?1:-1:0}function hf(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const eg={strict:!1,end:!0,sensitive:!1};function tg(e,t,n){const s=Qm(zm(e.path),n),r=Te(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ng(e,t){const n=[],s=new Map;t=dl(eg,t);function r(f){return s.get(f)}function o(f,d,p){const b=!p,h=El(f);h.aliasOf=p&&p.record;const E=dl(t,f),v=[h];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const O of S)v.push(El(Te({},h,{components:p?p.record.components:h.components,path:O,aliasOf:p?p.record:h})))}let w,C;for(const S of v){const{path:O}=S;if(d&&O[0]!=="/"){const D=d.record.path,k=D[D.length-1]==="/"?"":"/";S.path=d.record.path+(O&&k+O)}if(w=tg(S,d,E),p?p.alias.push(w):(C=C||w,C!==w&&C.alias.push(w),b&&f.name&&!Al(w)&&i(f.name)),mf(w)&&l(w),h.children){const D=h.children;for(let k=0;k{i(C)}:Ws}function i(f){if(ff(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=og(f,n);n.splice(d,0,f),f.record.name&&!Al(f)&&s.set(f.record.name,f)}function c(f,d){let p,b={},h,E;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw hs(je.MATCHER_NOT_FOUND,{location:f});E=p.record.name,b=Te(wl(d.params,p.keys.filter(C=>!C.optional).concat(p.parent?p.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&wl(f.params,p.keys.map(C=>C.name))),h=p.stringify(b)}else if(f.path!=null)h=f.path,p=n.find(C=>C.re.test(h)),p&&(b=p.parse(h),E=p.record.name);else{if(p=d.name?s.get(d.name):n.find(C=>C.re.test(d.path)),!p)throw hs(je.MATCHER_NOT_FOUND,{location:f,currentLocation:d});E=p.record.name,b=Te({},d.params,f.params),h=p.stringify(b)}const v=[];let w=p;for(;w;)v.unshift(w.record),w=w.parent;return{name:E,path:h,params:b,matched:v,meta:rg(v)}}e.forEach(f=>o(f));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function wl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function El(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function sg(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Al(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rg(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function og(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;hf(e,t[o])<0?s=o:n=o+1}const r=ig(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ig(e){let t=e;for(;t=t.parent;)if(mf(t)&&hf(e,t)===0)return t}function mf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sl(e){const t=wt(po),n=wt(na),s=pe(()=>{const l=he(e.to);return t.resolve(l)}),r=pe(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(ps.bind(null,u));if(d>-1)return d;const p=Cl(l[c-2]);return c>1&&Cl(u)===p&&f[f.length-1].path!==p?f.findIndex(ps.bind(null,l[c-2])):d}),o=pe(()=>r.value>-1&&fg(n.params,s.value.params)),i=pe(()=>r.value>-1&&r.value===n.matched.length-1&&uf(n.params,s.value.params));function a(l={}){if(ug(l)){const c=t[he(e.replace)?"replace":"push"](he(e.to)).catch(Ws);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:pe(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function ag(e){return e.length===1?e[0]:e}const lg=Ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Sl,setup(e,{slots:t}){const n=_s(Sl(e)),{options:s}=wt(po),r=pe(()=>({[kl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[kl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&ag(t.default(n));return e.custom?o:cr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),cg=lg;function ug(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fg(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Lt(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Cl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kl=(e,t,n)=>e??t??n,dg=Ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=wt(di),r=pe(()=>e.route||s.value),o=wt(vl,0),i=pe(()=>{let c=he(o);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=pe(()=>r.value.matched[i.value]);Er(vl,pe(()=>i.value+1)),Er(Vm,a),Er(di,r);const l=G();return qe(()=>[l.value,a.value,e.name],([c,u,f],[d,p,b])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!ps(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return xl(n.default,{Component:d,route:c});const p=f.props[u],b=p?p===!0?c.params:typeof p=="function"?p(c):p:null,E=cr(d,Te({},b,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return xl(n.default,{Component:E,route:c})||E}}});function xl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pg=dg;function hg(e){const t=ng(e.routes,e),n=e.parseQuery||Bm,s=e.stringifyQuery||gl,r=e.history,o=ks(),i=ks(),a=ks(),l=Xc(gn);let c=gn;ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=No.bind(null,M=>""+M),f=No.bind(null,Em),d=No.bind(null,Xs);function p(M,ee){let J,se;return ff(M)?(J=t.getRecordMatcher(M),se=ee):se=M,t.addRoute(se,J)}function b(M){const ee=t.getRecordMatcher(M);ee&&t.removeRoute(ee)}function h(){return t.getRoutes().map(M=>M.record)}function E(M){return!!t.getRecordMatcher(M)}function v(M,ee){if(ee=Te({},ee||l.value),typeof M=="string"){const R=Oo(n,M,ee.path),$=t.resolve({path:R.path},ee),V=r.createHref(R.fullPath);return Te(R,$,{params:d($.params),hash:Xs(R.hash),redirectedFrom:void 0,href:V})}let J;if(M.path!=null)J=Te({},M,{path:Oo(n,M.path,ee.path).path});else{const R=Te({},M.params);for(const $ in R)R[$]==null&&delete R[$];J=Te({},M,{params:f(R)}),ee.params=f(ee.params)}const se=t.resolve(J,ee),ye=M.hash||"";se.params=u(d(se.params));const y=Cm(s,Te({},M,{hash:_m(ye),path:se.path})),A=r.createHref(y);return Te({fullPath:y,hash:ye,query:s===gl?Um(M.query):M.query||{}},se,{redirectedFrom:void 0,href:A})}function w(M){return typeof M=="string"?Oo(n,M,l.value.path):Te({},M)}function C(M,ee){if(c!==M)return hs(je.NAVIGATION_CANCELLED,{from:ee,to:M})}function S(M){return k(M)}function O(M){return S(Te(w(M),{replace:!0}))}function D(M,ee){const J=M.matched[M.matched.length-1];if(J&&J.redirect){const{redirect:se}=J;let ye=typeof se=="function"?se(M,ee):se;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=w(ye):{path:ye},ye.params={}),Te({query:M.query,hash:M.hash,params:ye.path!=null?{}:M.params},ye)}}function k(M,ee){const J=c=v(M),se=l.value,ye=M.state,y=M.force,A=M.replace===!0,R=D(J,se);if(R)return k(Te(w(R),{state:typeof R=="object"?Te({},ye,R.state):ye,force:y,replace:A}),ee||J);const $=J;$.redirectedFrom=ee;let V;return!y&&km(s,se,J)&&(V=hs(je.NAVIGATION_DUPLICATED,{to:$,from:se}),j(se,se,!0,!1)),(V?Promise.resolve(V):q($,se)).catch(U=>Zt(U)?Zt(U,je.NAVIGATION_GUARD_REDIRECT)?U:ge(U):W(U,$,se)).then(U=>{if(U){if(Zt(U,je.NAVIGATION_GUARD_REDIRECT))return k(Te({replace:A},w(U.to),{state:typeof U.to=="object"?Te({},ye,U.to.state):ye,force:y}),ee||$)}else U=B($,se,!0,A,ye);return Y($,se,U),U})}function I(M,ee){const J=C(M,ee);return J?Promise.reject(J):Promise.resolve()}function P(M){const ee=Ae.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(M):M()}function q(M,ee){let J;const[se,ye,y]=Wm(M,ee);J=Mo(se.reverse(),"beforeRouteLeave",M,ee);for(const R of se)R.leaveGuards.forEach($=>{J.push(En($,M,ee))});const A=I.bind(null,M,ee);return J.push(A),oe(J).then(()=>{J=[];for(const R of o.list())J.push(En(R,M,ee));return J.push(A),oe(J)}).then(()=>{J=Mo(ye,"beforeRouteUpdate",M,ee);for(const R of ye)R.updateGuards.forEach($=>{J.push(En($,M,ee))});return J.push(A),oe(J)}).then(()=>{J=[];for(const R of y)if(R.beforeEnter)if(Lt(R.beforeEnter))for(const $ of R.beforeEnter)J.push(En($,M,ee));else J.push(En(R.beforeEnter,M,ee));return J.push(A),oe(J)}).then(()=>(M.matched.forEach(R=>R.enterCallbacks={}),J=Mo(y,"beforeRouteEnter",M,ee,P),J.push(A),oe(J))).then(()=>{J=[];for(const R of i.list())J.push(En(R,M,ee));return J.push(A),oe(J)}).catch(R=>Zt(R,je.NAVIGATION_CANCELLED)?R:Promise.reject(R))}function Y(M,ee,J){a.list().forEach(se=>P(()=>se(M,ee,J)))}function B(M,ee,J,se,ye){const y=C(M,ee);if(y)return y;const A=ee===gn,R=ss?history.state:{};J&&(se||A?r.replace(M.fullPath,Te({scroll:A&&R&&R.scroll},ye)):r.push(M.fullPath,ye)),l.value=M,j(M,ee,J,A),ge()}let ae;function re(){ae||(ae=r.listen((M,ee,J)=>{if(!we.listening)return;const se=v(M),ye=D(se,we.currentRoute.value);if(ye){k(Te(ye,{replace:!0,force:!0}),se).catch(Ws);return}c=se;const y=l.value;ss&&Om(ml(y.fullPath,J.delta),fo()),q(se,y).catch(A=>Zt(A,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?A:Zt(A,je.NAVIGATION_GUARD_REDIRECT)?(k(Te(w(A.to),{force:!0}),se).then(R=>{Zt(R,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===ui.pop&&r.go(-1,!1)}).catch(Ws),Promise.reject()):(J.delta&&r.go(-J.delta,!1),W(A,se,y))).then(A=>{A=A||B(se,y,!1),A&&(J.delta&&!Zt(A,je.NAVIGATION_CANCELLED)?r.go(-J.delta,!1):J.type===ui.pop&&Zt(A,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Y(se,y,A)}).catch(Ws)}))}let ve=ks(),ce=ks(),N;function W(M,ee,J){ge(M);const se=ce.list();return se.length?se.forEach(ye=>ye(M,ee,J)):console.error(M),Promise.reject(M)}function X(){return N&&l.value!==gn?Promise.resolve():new Promise((M,ee)=>{ve.add([M,ee])})}function ge(M){return N||(N=!M,re(),ve.list().forEach(([ee,J])=>M?J(M):ee()),ve.reset()),M}function j(M,ee,J,se){const{scrollBehavior:ye}=e;if(!ss||!ye)return Promise.resolve();const y=!J&&Dm(ml(M.fullPath,0))||(se||!J)&&history.state&&history.state.scroll||null;return Jn().then(()=>ye(M,ee,y)).then(A=>A&&Nm(A)).catch(A=>W(A,M,ee))}const K=M=>r.go(M);let ie;const Ae=new Set,we={currentRoute:l,listening:!0,addRoute:p,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:h,resolve:v,options:e,push:S,replace:O,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ce.add,isReady:X,install(M){M.component("RouterLink",cg),M.component("RouterView",pg),M.config.globalProperties.$router=we,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>he(l)}),ss&&!ie&&l.value===gn&&(ie=!0,S(r.location).catch(se=>{}));const ee={};for(const se in gn)Object.defineProperty(ee,se,{get:()=>l.value[se],enumerable:!0});M.provide(po,we),M.provide(na,zc(ee)),M.provide(di,l);const J=M.unmount;Ae.add(M),M.unmount=function(){Ae.delete(M),Ae.size<1&&(c=gn,ae&&ae(),ae=null,l.value=gn,ie=!1,N=!1),J()}}};function oe(M){return M.reduce((ee,J)=>ee.then(()=>P(J)),Promise.resolve())}return we}function ho(){return wt(po)}function gf(e){return wt(na)}const mg="/assets/img/bg-intro.jpg",gg="/assets/video/video-intro.mp4?v=7",vg="/assets/img/logo-archipelago.svg",yg={class:"block w-full h-full logo-svg",viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Neode"},_g=["x","y","width","height"],bg=Ze({__name:"AnimatedLogo",props:{size:{default:"sm"},noBorder:{type:Boolean,default:!1},fit:{type:Boolean,default:!1}},setup(e){const t=e,n=t.fit?"w-full h-full max-w-full max-h-full":t.size==="xl"?"w-48 h-48 sm:w-64 sm:h-64 md:w-80 md:h-80":t.size==="lg"?"w-32 h-32 sm:w-48 sm:h-48":"w-14 h-14",s=[{x:357.614,y:318,w:71.007,h:70.936},{x:436.152,y:318,w:72.082,h:70.936},{x:515.766,y:318,w:72.082,h:70.936},{x:595.379,y:318,w:71.007,h:70.936},{x:595.379,y:396.46,w:71.007,h:72.011},{x:673.917,y:396.46,w:72.083,h:72.011},{x:278,y:475.994,w:72.083,h:72.012},{x:357.614,y:475.994,w:71.007,h:72.012},{x:436.152,y:475.994,w:72.082,h:72.012},{x:515.766,y:475.994,w:72.082,h:72.012},{x:595.379,y:475.994,w:71.007,h:72.012},{x:673.917,y:475.994,w:72.083,h:72.012},{x:278,y:555.529,w:72.083,h:70.936},{x:357.614,y:555.529,w:71.007,h:70.936},{x:595.379,y:555.529,w:71.007,h:70.936},{x:673.917,y:555.529,w:72.083,h:70.936},{x:357.614,y:633.989,w:71.007,h:72.011},{x:436.152,y:633.989,w:72.082,h:72.011},{x:515.766,y:633.989,w:72.082,h:72.011},{x:595.379,y:633.989,w:71.007,h:72.011}],r=[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900];return(o,i)=>(z(),Z("div",{class:$e(["flex-shrink-0 inline-block overflow-hidden",[he(n),!e.noBorder&&"logo-gradient-border"]])},[(z(),Z("svg",yg,[i[0]||(i[0]=_("rect",{width:"1024",height:"1024",fill:"#030202"},null,-1)),(z(),Z(Be,null,Gt(s,(a,l)=>_("rect",{key:l,x:a.x,y:a.y,width:a.w,height:a.h,fill:"white",class:"logo-square",style:Tt({"--delay":r[l]+"ms"})},null,12,_g)),64))]))],2))}}),Dt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},wg=Dt(bg,[["__scopeId","data-v-13794b4c"]]),Eg={class:"logo-gradient-border screensaver-logo-cycle relative w-48 h-48 sm:w-64 sm:h-64 md:w-80 md:h-80 flex items-center justify-center overflow-hidden"},Ag={class:"screensaver-logo-squares absolute inset-[3px] flex items-center justify-center"},Sg=Ze({__name:"ScreensaverLogo",setup(e){return(t,n)=>(z(),Z("div",Eg,[_("div",Ag,[de(wg,{size:"xl","no-border":"",fit:""})])]))}}),vf=Dt(Sg,[["__scopeId","data-v-d3543a5f"]]);let qt=null,qn=null,Vn=null;function mo(){return qt}function Cg(){if(qt)return qt;try{const e=window.AudioContext||window.webkitAudioContext;return e?(qt=new e,qt):null}catch{return null}}const kg="/assets/audio/cosmic-updrift.mp3",xg="/assets/audio/loop-start.mp3";function Tl(){const e=mo();if(e){try{e.state==="suspended"&&e.resume()}catch{return}fetch(xg).then(t=>t.arrayBuffer()).then(t=>e.decodeAudioData(t)).then(t=>{const n=e.createBufferSource();n.buffer=t;const s=e.createGain();s.gain.value=.5,n.connect(s),s.connect(e.destination),n.start(0)}).catch(()=>{})}}function Il(){const e=Cg();e?.state==="suspended"&&e.resume().catch(()=>{})}function Rl(){const e=mo();if(!e)return;try{e.state==="suspended"&&e.resume().catch(()=>{})}catch{return}Tg();const t=new Audio(kg);t.loop=!0;const n=e,s=n.createMediaElementSource(t),r=n.createGain();r.gain.value=.25,s.connect(r),r.connect(n.destination),Vn=r,qn=t,t.play().catch(()=>{})}function Tg(){if(qn){if(Vn&&qt){const e=qt.currentTime;Vn.gain.setValueAtTime(Vn.gain.value,e),Vn.gain.linearRampToValueAtTime(.001,e+.2)}setTimeout(()=>{qn?.pause(),qn=null,Vn=null},220)}}function Ig(){qn&&(qn.pause(),qn=null,Vn=null),os(),qt&&(qt.close().catch(()=>{}),qt=null)}function Rg(){const e=new Audio("/assets/audio/pop.mp3");e.volume=.6,e.play().catch(()=>{})}function Ww(){const e=new Audio("/assets/audio/woosh.mp3");e.volume=.5,e.play().catch(()=>{})}function Hw(){const e=new Audio("/assets/audio/typing.mp3");e.volume=.6,e.play().catch(()=>{})}let Sn=null;const Pg="/assets/audio/intro-typing.mp3";function Lg(){os(),Sn=new Audio(Pg),Sn.volume=.5,Sn.loop=!0,Sn.play().catch(()=>{})}function os(){Sn&&(Sn.pause(),Sn.currentTime=0,Sn=null)}const Ng="/assets/audio/welcome-noderunner.mp3";function Pl(){const e=new Audio(Ng);e.volume=.9,e.play().catch(()=>{})}function yf(){const e=mo();if(!e)return;try{e.state==="suspended"&&e.resume()}catch{return}const t=e.currentTime,n=e.createOscillator(),s=e.createGain();n.type="sine",n.frequency.setValueAtTime(1200,t),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.06,t+.002),s.gain.exponentialRampToValueAtTime(.001,t+.04),n.connect(s),s.connect(e.destination),n.start(t),n.stop(t+.04)}function jw(){const e=mo();if(!e)return;try{e.state==="suspended"&&e.resume()}catch{return}const t=e.currentTime,n=[{freq:55,dur:.35,gain:.4,attack:.02},{freq:82,dur:.28,gain:.25,attack:.03},{freq:110,dur:.22,gain:.15,attack:.04},{freq:165,dur:.18,gain:.1,attack:.05}];for(let s=0;s{(we||oe)&&Y.value?(Y.value.paused&&Y.value.play().catch(M=>{}),ve||(ve=()=>{(f.value||b.value)&&Y.value&&Y.value.play().catch(()=>{})},Y.value.addEventListener("pause",ve))):ve&&Y.value&&(Y.value.removeEventListener("pause",ve),ve=null)}),qe(f,we=>{we&&Y.value&&Y.value.play().catch(oe=>{})}),qe(r,we=>{if(!we&&Y.value){const oe=Y.value.currentTime,M=!Y.value.paused;sessionStorage.setItem("video_intro_currentTime",oe.toString()),sessionStorage.setItem("video_intro_wasPlaying",M.toString()),sessionStorage.setItem("video_intro_playbackRate",Y.value.playbackRate.toString())}});let ce=null;qe([f,b],([we,oe])=>{(we||oe)&&Y.value?ce=window.setInterval(()=>{Y.value&&!Y.value.paused&&(sessionStorage.setItem("video_intro_currentTime",Y.value.currentTime.toString()),sessionStorage.setItem("video_intro_wasPlaying","true"),sessionStorage.setItem("video_intro_playbackRate",Y.value.playbackRate.toString()))},50):ce&&(clearInterval(ce),ce=null)});const N=localStorage.getItem("neode_intro_seen")==="1",W=window.location.pathname.startsWith("/dashboard"),X=N||W;!N&&W&&localStorage.setItem("neode_intro_seen","1");function ge(){a.value=!0,i.value||yf()}function j(){!o.value||i.value||(Il(),Rg(),i.value=!0,setTimeout(()=>{o.value=!1,i.value=!1,Ae()},1e3))}function K(){Il(),ie()}function ie(){B&&(clearTimeout(B),B=null),c.value=!0,u.value=!0,f.value=!0,p.value=!0,os(),Tl(),Rl(),Pl(),os(),k.value=!1,I.value=!1,P.value=!1,q.value=!1,re(()=>{l.value=.3},0),re(()=>{d.value=!0,p.value=!1},4850),re(()=>{b.value=!0},5500),re(()=>{f.value=!1},6e3),re(()=>{l.value=1},9e3),re(()=>{re(()=>{r.value=!1,document.body.classList.add("splash-complete"),localStorage.setItem("neode_intro_seen","1"),n("complete")},500)},9500)}function Ae(){function we(ye,y,A,R){const $=s[ye];let V=0;y.value="",A.value=!0;function U(){V===0&&Lg(),V<$.length?(y.value=$.slice(0,V+1),V++,B=setTimeout(U,qg)):(os(),A.value=!1,B=setTimeout(R,Yg))}U()}function oe(){h.value=!0,we(0,C,k,M)}function M(){E.value=!0,we(1,S,I,ee)}function ee(){v.value=!0,we(2,O,P,J)}function J(){w.value=!0,we(3,D,q,()=>{q.value=!1,u.value=!0,B=setTimeout(se,800)})}function se(){c.value=!0,f.value=!0,p.value=!0,os(),Tl(),Rl(),Pl(),Y.value&&Y.value.play().catch(ye=>{}),l.value=.3,re(()=>{d.value=!0,p.value=!1},4850),re(()=>{b.value=!0},5500),re(()=>{f.value=!1},6e3),re(()=>{l.value=1},9e3),re(()=>{Y.value&&!Y.value.paused&&(sessionStorage.setItem("video_intro_currentTime",Y.value.currentTime.toString()),sessionStorage.setItem("video_intro_wasPlaying","true")),r.value=!1,document.body.classList.add("splash-complete"),localStorage.setItem("neode_intro_seen","1"),n("complete")},9500)}B=setTimeout(oe,500)}return ht(()=>{X&&(r.value=!1,document.body.classList.add("splash-complete"),n("complete"))}),Ot(()=>{B&&(clearTimeout(B),B=null);for(const we of ae)clearTimeout(we);ae.length=0,ce&&(clearInterval(ce),ce=null)}),(we,oe)=>(z(),dt(tt,{name:"splash-fade"},{default:Ye(()=>[r.value?(z(),Z("div",Og,[f.value||b.value?(z(),Z("video",{key:0,ref_key:"videoElement",ref:Y,class:"absolute inset-0 w-full h-full object-cover",style:Tt({opacity:l.value,transform:"scale(1)",transition:"opacity 1.2s ease-out"}),autoplay:"",loop:"",muted:"",playsinline:"",preload:"auto",poster:mg},[...oe[1]||(oe[1]=[_("source",{src:gg,type:"video/mp4"},null,-1),_("div",{class:"absolute inset-0",style:{backgroundImage:"url(/assets/img/bg-intro.jpg)",backgroundSize:"auto 100vh",backgroundPosition:"center top",backgroundRepeat:"no-repeat"}},null,-1)])],4)):(z(),Z("div",{key:1,class:"absolute inset-0",style:Tt({backgroundImage:"url(/assets/img/bg-intro.jpg)",backgroundSize:"auto 100vh",backgroundPosition:"center top",backgroundRepeat:"no-repeat",opacity:l.value,transform:"scale(1)",transition:"opacity 1.2s ease-out"})},null,4)),de(tt,{name:"fade"},{default:Ye(()=>[c.value?be("",!0):(z(),Z("div",{key:0,class:$e(["absolute inset-0 z-10 flex items-center justify-center transition-opacity duration-800",{"opacity-0":u.value}])},[_("div",Dg,[h.value?(z(),Z("div",{key:0,class:$e(["flex items-start mb-4 sm:mb-6 opacity-0",{"opacity-100":h.value}])},[oe[2]||(oe[2]=_("span",{class:"text-[#fbbf24] mr-3 sm:mr-6 flex-shrink-0"},">",-1)),_("span",Mg,Se(C.value),1),k.value?(z(),Z("span",Fg)):be("",!0)],2)):be("",!0),E.value?(z(),Z("div",{key:1,class:$e(["flex items-start mb-4 sm:mb-6 opacity-0",{"opacity-100":E.value}])},[oe[3]||(oe[3]=_("span",{class:"text-[#fbbf24] mr-3 sm:mr-6 flex-shrink-0"},">",-1)),_("span",$g,Se(S.value),1),I.value?(z(),Z("span",Bg)):be("",!0)],2)):be("",!0),v.value?(z(),Z("div",{key:2,class:$e(["flex items-start mb-4 sm:mb-6 opacity-0",{"opacity-100":v.value}])},[oe[4]||(oe[4]=_("span",{class:"text-[#fbbf24] mr-3 sm:mr-6 flex-shrink-0"},">",-1)),_("span",Ug,Se(O.value),1),P.value?(z(),Z("span",Vg)):be("",!0)],2)):be("",!0),w.value?(z(),Z("div",{key:3,class:$e(["flex items-start mb-8 sm:mb-12 opacity-0",{"opacity-100":w.value}])},[oe[5]||(oe[5]=_("span",{class:"text-[#fbbf24] mr-3 sm:mr-6 flex-shrink-0"},">",-1)),_("span",Wg,Se(D.value),1),q.value?(z(),Z("span",Hg)):be("",!0)],2)):be("",!0)])],2))]),_:1}),de(tt,{name:"welcome-fade"},{default:Ye(()=>[f.value?(z(),Z("div",{key:0,class:$e(["absolute inset-0 z-[15] flex items-center justify-center font-mono text-3xl sm:text-4xl md:text-5xl px-4",{"welcome-fade-out":d.value}])},[_("div",jg,[_("span",{class:$e(["text-white",{"typing-text":p.value}])}," Welcome Noderunner ",2)])],2)):be("",!0)]),_:1}),de(tt,{name:"logo-zoom"},{default:Ye(()=>[b.value?(z(),Z("div",Kg,[...oe[6]||(oe[6]=[_("img",{src:vg,alt:"Archipelago",class:"w-[min(80vw,900px)] max-w-[90vw] h-auto filter drop-shadow-[0_6px_24px_rgba(0,0,0,0.35)] m-5 object-contain logo-zoom-bounce"},null,-1)])])):be("",!0)]),_:1}),o.value?(z(),Z("div",{key:2,class:$e(["absolute inset-0 z-[100] flex items-center justify-center cursor-pointer overflow-hidden",i.value?"tap-overlay-zoom-out":"bg-black/40"]),onClick:j},[_("div",Gg,[_("span",{class:$e(["tap-to-start-text font-archipelago font-extrabold text-6xl sm:text-7xl md:text-8xl lg:text-9xl tracking-widest uppercase whitespace-nowrap select-none transition-opacity duration-300",{"opacity-0":i.value}])}," Enter to Exit ",2),_("div",{class:$e(["tap-to-start-logo absolute transition-transform duration-300 ease-out",[{"tap-logo-launch":i.value},{"scale-110":a.value&&!i.value}]]),onMouseenter:ge,onMouseleave:oe[0]||(oe[0]=M=>a.value=!1)},[_("div",{class:$e(["intro-logo-viz-ring",{"intro-logo-viz-visible":a.value&&!i.value}])},[(z(),Z(Be,null,Gt(48,M=>_("div",{key:M-1,class:"intro-logo-viz-segment",style:Tt({"--segment-deg":`${(M-1)/48*360}deg`,"--segment-index":M-1})},null,4)),64))],2),de(vf)],34)])],2)):be("",!0),!c.value&&!o.value?(z(),Z("button",{key:3,onClick:K,class:"absolute bottom-8 right-8 z-20 bg-black/60 border border-white/30 text-white/70 font-mono text-xs px-4 py-2 rounded backdrop-blur-[10px] hover:bg-black/80 hover:text-white/90 hover:border-white/50 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-300"}," Skip Intro ")):be("",!0)])):be("",!0)]),_:1}))}}),Xg=Dt(zg,[["__scopeId","data-v-a2a8c942"]]),Jg='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function ur(e,t,n,s){const r=s?.restoreFocusRef;qe(t,a=>{a&&r&&(r.value=document.activeElement)});function o(){const a=e.value;return a?Array.from(a.querySelectorAll(Jg)).filter(l=>l.offsetParent!==null):[]}function i(a){if(t.value){if(a.key==="Escape"){r?.value?.focus?.(),n(),a.preventDefault(),a.stopPropagation();return}if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(a.key)){const l=o();if(l.length===0)return;const c=document.activeElement,u=c?l.indexOf(c):-1;let f;a.key==="ArrowDown"||a.key==="ArrowRight"?f=u0?u-1:l.length-1,l[f]?.focus(),a.preventDefault(),a.stopPropagation()}}}ht(()=>{window.addEventListener("keydown",i,!0)}),Ot(()=>{window.removeEventListener("keydown",i,!0)})}const Qg=Ze({__name:"PWAUpdatePrompt",setup(e){const t=G(!1);let n=null;const s=G(null);ht(()=>{if("serviceWorker"in navigator){navigator.serviceWorker.addEventListener("controllerchange",()=>{window.location.reload()});const i=async()=>{const a=await navigator.serviceWorker.getRegistration();a&&await a.update()};setInterval(i,300*1e3),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&i()}),navigator.serviceWorker.getRegistration().then(a=>{a&&a.addEventListener("updatefound",()=>{const l=a.installing;l&&l.addEventListener("statechange",()=>{l.state==="installed"&&navigator.serviceWorker.controller&&(t.value=!0,n=async()=>{l.state==="installed"&&a.waiting&&a.waiting.postMessage({type:"SKIP_WAITING"})})})})})}}),ur(s,t,r);function r(){t.value=!1}async function o(){n&&await n()}return(i,a)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"modal"},{default:Ye(()=>[t.value?(z(),Z("div",{key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center p-4",onClick:Tn(r,["self"])},[a[4]||(a[4]=_("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm"},null,-1)),_("div",{ref_key:"modalRef",ref:s,class:"glass-card p-6 max-w-md w-full relative z-10",onClick:a[0]||(a[0]=Tn(()=>{},["stop"]))},[_("div",{class:"flex items-start justify-between gap-4 mb-4"},[a[2]||(a[2]=_("h3",{class:"text-xl font-semibold text-white"},"Update Available",-1)),_("button",{onClick:r,class:"p-2 rounded-lg hover:bg-white/10 text-white/70 hover:text-white transition-colors","aria-label":"Dismiss"},[...a[1]||(a[1]=[_("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),a[3]||(a[3]=_("p",{class:"text-white/80 mb-6"}," A new version of Archipelago is available. Update now to get the latest features and fixes. ",-1)),_("div",{class:"flex gap-3 justify-end"},[_("button",{onClick:r,class:"px-4 py-2 glass-button rounded-lg text-sm font-medium"}," Later "),_("button",{onClick:o,class:"px-4 py-2 glass-button glass-button-sm rounded-lg text-sm font-medium"}," Update Now ")])],512)])):be("",!0)]),_:1})]))}}),Zg="/assets/icon/pwa-192x192-v2.png",ev={key:0,class:"fixed bottom-4 left-4 right-4 md:left-auto md:right-6 md:bottom-6 md:max-w-sm z-[9998]"},Fo="archipelago_pwa_install_dismissed",tv=Ze({__name:"PWAInstallPrompt",setup(e){const t=G(!1);let n=null;ht(()=>{if(sessionStorage.getItem(Fo)==="1"||window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone)return;const o=i=>{i.preventDefault(),n=i,t.value=!0};window.addEventListener("beforeinstallprompt",o),window.__beforeinstallpromptHandler=o}),Ot(()=>{window.removeEventListener("beforeinstallprompt",window.__beforeinstallpromptHandler)});function s(){t.value=!1,sessionStorage.setItem(Fo,"1")}async function r(){if(!n)return;const i=(await n.prompt())?.outcome??"dismissed";t.value=!1,n=null,i==="accepted"&&sessionStorage.removeItem(Fo)}return(o,i)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"fade"},{default:Ye(()=>[t.value?(z(),Z("div",ev,[_("div",{class:"glass-card p-4 flex items-center gap-4 shadow-xl"},[i[0]||(i[0]=_("img",{src:Zg,alt:"Archipelago",class:"w-14 h-14 rounded-xl shrink-0"},null,-1)),i[1]||(i[1]=_("div",{class:"flex-1 min-w-0"},[_("p",{class:"text-white font-medium"},"Install Archipelago"),_("p",{class:"text-white/70 text-sm"},"Add to your home screen for quick access")],-1)),_("div",{class:"flex gap-2 shrink-0"},[_("button",{onClick:s,class:"px-3 py-2 text-sm text-white/70 hover:text-white transition-colors"}," Not now "),_("button",{onClick:r,class:"px-4 py-2 glass-button glass-button-sm rounded-lg text-sm font-medium"}," Install ")])])])):be("",!0)]),_:1})]))}}),nv=Dt(tv,[["__scopeId","data-v-f40ced58"]]);function pn(e){return Array.isArray?Array.isArray(e):wf(e)==="[object Array]"}function sv(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rv(e){return e==null?"":sv(e)}function Yt(e){return typeof e=="string"}function _f(e){return typeof e=="number"}function ov(e){return e===!0||e===!1||iv(e)&&wf(e)=="[object Boolean]"}function bf(e){return typeof e=="object"}function iv(e){return bf(e)&&e!==null}function gt(e){return e!=null}function $o(e){return!e.trim().length}function wf(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const av="Incorrect 'index' type",lv=e=>`Invalid value for key ${e}`,cv=e=>`Pattern length exceeds max of ${e}.`,uv=e=>`Missing ${e} property in key`,fv=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ll=Object.prototype.hasOwnProperty;class dv{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let r=Ef(s);this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ef(e){let t=null,n=null,s=null,r=1,o=null;if(Yt(e)||pn(e))s=e,t=Nl(e),n=pi(e);else{if(!Ll.call(e,"name"))throw new Error(uv("name"));const i=e.name;if(s=i,Ll.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(fv(i));t=Nl(i),n=pi(i),o=e.getFn}return{path:t,id:n,weight:r,src:s,getFn:o}}function Nl(e){return pn(e)?e:e.split(".")}function pi(e){return pn(e)?e.join("."):e}function pv(e,t){let n=[],s=!1;const r=(o,i,a)=>{if(gt(o))if(!i[a])n.push(o);else{let l=i[a];const c=o[l];if(!gt(c))return;if(a===i.length-1&&(Yt(c)||_f(c)||ov(c)))n.push(rv(c));else if(pn(c)){s=!0;for(let u=0,f=c.length;ue.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Yt(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Yt(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let i=r.getFn?r.getFn(t):this.getFn(t,r.path);if(gt(i)){if(pn(i)){let a=[];const l=[{nestedArrIndex:-1,value:i}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(gt(u))if(Yt(u)&&!$o(u)){let f={v:u,i:c,n:this.norm.get(u)};a.push(f)}else pn(u)&&u.forEach((f,d)=>{l.push({nestedArrIndex:d,value:f})})}s.$[o]=a}else if(Yt(i)&&!$o(i)){let a={v:i,n:this.norm.get(i)};s.$[o]=a}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Af(e,t,{getFn:n=fe.getFn,fieldNormWeight:s=fe.fieldNormWeight}={}){const r=new sa({getFn:n,fieldNormWeight:s});return r.setKeys(e.map(Ef)),r.setSources(t),r.create(),r}function bv(e,{getFn:t=fe.getFn,fieldNormWeight:n=fe.fieldNormWeight}={}){const{keys:s,records:r}=e,o=new sa({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(r),o}function mr(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:r=fe.distance,ignoreLocation:o=fe.ignoreLocation}={}){const i=t/e.length;if(o)return i;const a=Math.abs(s-n);return r?i+a/r:a?1:i}function wv(e=[],t=fe.minMatchCharLength){let n=[],s=-1,r=-1,o=0;for(let i=e.length;o=t&&n.push([s,r]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const Wn=32;function Ev(e,t,n,{location:s=fe.location,distance:r=fe.distance,threshold:o=fe.threshold,findAllMatches:i=fe.findAllMatches,minMatchCharLength:a=fe.minMatchCharLength,includeMatches:l=fe.includeMatches,ignoreLocation:c=fe.ignoreLocation}={}){if(t.length>Wn)throw new Error(cv(Wn));const u=t.length,f=e.length,d=Math.max(0,Math.min(s,f));let p=o,b=d;const h=a>1||l,E=h?Array(f):[];let v;for(;(v=e.indexOf(t,b))>-1;){let k=mr(t,{currentLocation:v,expectedLocation:d,distance:r,ignoreLocation:c});if(p=Math.min(k,p),b=v+u,h){let I=0;for(;I=q;re-=1){let ve=re-1,ce=n[e.charAt(ve)];if(h&&(E[ve]=+!!ce),B[re]=(B[re+1]<<1|1)&ce,k&&(B[re]|=(w[re+1]|w[re])<<1|1|w[re+1]),B[re]&O&&(C=mr(t,{errors:k,currentLocation:ve,expectedLocation:d,distance:r,ignoreLocation:c}),C<=p)){if(p=C,b=ve,b<=d)break;q=Math.max(1,2*d-b)}}if(mr(t,{errors:k+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:c})>p)break;w=B}const D={isMatch:b>=0,score:Math.max(.001,C)};if(h){const k=wv(E,a);k.length?l&&(D.indices=k):D.isMatch=!1}return D}function Av(e){let t={};for(let n=0,s=e.length;ne.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class Sf{constructor(t,{location:n=fe.location,threshold:s=fe.threshold,distance:r=fe.distance,includeMatches:o=fe.includeMatches,findAllMatches:i=fe.findAllMatches,minMatchCharLength:a=fe.minMatchCharLength,isCaseSensitive:l=fe.isCaseSensitive,ignoreDiacritics:c=fe.ignoreDiacritics,ignoreLocation:u=fe.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u},t=l?t:t.toLowerCase(),t=c?Wr(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const f=(p,b)=>{this.chunks.push({pattern:p,alphabet:Av(p),startIndex:b})},d=this.pattern.length;if(d>Wn){let p=0;const b=d%Wn,h=d-b;for(;p{const{isMatch:w,score:C,indices:S}=Ev(t,h,E,{location:o+v,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:c,includeMatches:r,ignoreLocation:u});w&&(p=!0),d+=C,w&&S&&(f=[...f,...S])});let b={isMatch:p,score:p?d/this.chunks.length:1};return p&&r&&(b.indices=f),b}}class Rn{constructor(t){this.pattern=t}static isMultiMatch(t){return Ol(t,this.multiRegex)}static isSingleMatch(t){return Ol(t,this.singleRegex)}search(){}}function Ol(e,t){const n=e.match(t);return n?n[1]:null}class Sv extends Rn{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Cv extends Rn{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class kv extends Rn{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class xv extends Rn{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Tv extends Rn{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Iv extends Rn{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Cf extends Rn{constructor(t,{location:n=fe.location,threshold:s=fe.threshold,distance:r=fe.distance,includeMatches:o=fe.includeMatches,findAllMatches:i=fe.findAllMatches,minMatchCharLength:a=fe.minMatchCharLength,isCaseSensitive:l=fe.isCaseSensitive,ignoreDiacritics:c=fe.ignoreDiacritics,ignoreLocation:u=fe.ignoreLocation}={}){super(t),this._bitapSearch=new Sf(t,{location:n,threshold:s,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class kf extends Rn{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const r=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,r.push([s,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const hi=[Sv,kf,kv,xv,Iv,Tv,Cv,Cf],Dl=hi.length,Rv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Pv="|";function Lv(e,t={}){return e.split(Pv).map(n=>{let s=n.trim().split(Rv).filter(o=>o&&!!o.trim()),r=[];for(let o=0,i=s.length;o!!(e[Hr.AND]||e[Hr.OR]),Mv=e=>!!e[vi.PATH],Fv=e=>!pn(e)&&bf(e)&&!yi(e),Ml=e=>({[Hr.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function xf(e,t,{auto:n=!0}={}){const s=r=>{let o=Object.keys(r);const i=Mv(r);if(!i&&o.length>1&&!yi(r))return s(Ml(r));if(Fv(r)){const l=i?r[vi.PATH]:o[0],c=i?r[vi.PATTERN]:r[l];if(!Yt(c))throw new Error(lv(l));const u={keyId:pi(l),pattern:c};return n&&(u.searcher=gi(c,t)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=r[l];pn(c)&&c.forEach(u=>{a.children.push(s(u))})}),a};return yi(e)||(e=Ml(e)),s(e)}function $v(e,{ignoreFieldNorm:t=fe.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:o,score:i})=>{const a=r?r.weight:null;s*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(t?1:o))}),n.score=s})}function Bv(e,t){const n=e.matches;t.matches=[],gt(n)&&n.forEach(s=>{if(!gt(s.indices)||!s.indices.length)return;const{indices:r,value:o}=s;let i={indices:r,value:o};s.key&&(i.key=s.key.src),s.idx>-1&&(i.refIndex=s.idx),t.matches.push(i)})}function Uv(e,t){t.score=e.score}function Vv(e,t,{includeMatches:n=fe.includeMatches,includeScore:s=fe.includeScore}={}){const r=[];return n&&r.push(Bv),s&&r.push(Uv),e.map(o=>{const{idx:i}=o,a={item:t[i],refIndex:i};return r.length&&r.forEach(l=>{l(o,a)}),a})}class bs{constructor(t,n={},s){this.options={...fe,...n},this.options.useExtendedSearch,this._keyStore=new dv(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof sa))throw new Error(av);this._myIndex=n||Af(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){gt(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,r=this._docs.length;s-1&&(l=l.slice(0,n)),Vv(l,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(t){const n=gi(t,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:o,i,n:a})=>{if(!gt(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&r.push({item:o,idx:i,matches:[{score:c,value:o,norm:a,indices:u}]})}),r}_searchLogical(t){const n=xf(t,this.options),s=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:d}=a,p=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:d});return p&&p.length?[{idx:c,item:l,matches:p}]:[]}const u=[];for(let f=0,d=a.children.length;f{if(gt(a)){let c=s(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},i.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),i}_searchObjectList(t){const n=gi(t,this.options),{keys:s,records:r}=this._myIndex,o=[];return r.forEach(({$:i,i:a})=>{if(!gt(i))return;let l=[];s.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:i[u],searcher:n}))}),l.length&&o.push({idx:a,item:i,matches:l})}),o}_findMatches({key:t,value:n,searcher:s}){if(!gt(n))return[];let r=[];if(pn(n))n.forEach(({v:o,i,n:a})=>{if(!gt(o))return;const{isMatch:l,score:c,indices:u}=s.searchIn(o);l&&r.push({score:c,key:t,value:o,idx:i,norm:a,indices:u})});else{const{v:o,n:i}=n,{isMatch:a,score:l,indices:c}=s.searchIn(o);a&&r.push({score:l,key:t,value:o,norm:i,indices:c})}return r}}bs.version="7.1.0";bs.createIndex=Af;bs.parseIndex=bv;bs.config=fe;bs.parseQuery=xf;Dv(Ov);let gr=null;function Wv(){if(gr)return gr;try{return gr=new(window.AudioContext||window.webkitAudioContext),gr}catch{return null}}function Bo(e,t,n,s,r="sine",o=0){const i=e.createOscillator(),a=e.createGain();i.connect(a),a.connect(e.destination),a.gain.setValueAtTime(0,e.currentTime),a.gain.linearRampToValueAtTime(s,e.currentTime+.01),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+n),i.frequency.value=t,i.type=r,i.start(e.currentTime+o),i.stop(e.currentTime+o+n)}function et(e="move"){if(e==="move"){const n=new Audio("/assets/audio/arrows.mp3");n.volume=.5,n.play().catch(()=>{});return}if(e==="select"||e==="action"){const n=new Audio("/assets/audio/enter.mp3");n.volume=.5,n.play().catch(()=>{});return}const t=Wv();if(t){try{t.state==="suspended"&&t.resume()}catch{return}e==="back"&&(Bo(t,440,.06,.08,"sine"),Bo(t,330,.08,.05,"sine",.03),Bo(t,220,.1,.04,"triangle",.05))}}const Fl="archipelago-spotlight-recent",$l=8,jr=Qn("spotlight",()=>{const e=G(!1),t=G(0),n=G([]);function s(){try{const p=localStorage.getItem(Fl);if(p){const b=JSON.parse(p);n.value=b.slice(0,$l)}else n.value=[]}catch{n.value=[]}}function r(p){const b={...p,timestamp:Date.now()},h=n.value.filter(E=>!(E.id===p.id&&E.type===p.type));n.value=[b,...h].slice(0,$l);try{localStorage.setItem(Fl,JSON.stringify(n.value))}catch{}}function o(){e.value=!0,t.value=0,s(),et("action")}function i(){e.value=!1,t.value=0}function a(){e.value?i():o()}function l(p){t.value=p}const c=_s({show:!1,title:"",content:"",relatedPath:void 0}),u=G(null);function f(p){u.value=document.activeElement,c.show=!0,c.title=p.title,c.content=p.content,c.relatedPath=p.relatedPath}function d(){u.value?.focus?.(),u.value=null,c.show=!1}return{isOpen:e,selectedIndex:t,recentItems:n,open:o,close:i,toggle:a,setSelectedIndex:l,addRecentItem:r,loadRecentItems:s,helpModal:c,showHelpModal:f,closeHelpModal:d}}),Js=Qn("cli",()=>{const e=G(!1);function t(){e.value=!0,et("action")}function n(){e.value=!1}function s(){const r=e.value;e.value=!r,r||et("action")}return{isOpen:e,open:t,close:n,toggle:s}});var Hv=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var o in r)r.hasOwnProperty(o)&&(s[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function s(){this.constructor=t}t.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})(),jv=Object.prototype.hasOwnProperty;function _i(e,t){return jv.call(e,t)}function bi(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&s<=57){t++;continue}return!1}return!0}function Bn(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Tf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ei(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&d===void 0&&(c[p]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&b(t,0,e,d)),u++,Array.isArray(c)){if(p==="-")p=c.length;else{if(n&&!wi(p))throw new Ke("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);wi(p)&&(p=~~p)}if(u>=f){if(n&&t.op==="add"&&p>c.length)throw new Ke("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var i=Gv[t.op].call(t,c,p,e);if(i.test===!1)throw new Ke("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}}else if(u>=f){var i=is[t.op].call(t,c,p,e);if(i.test===!1)throw new Ke("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}if(c=c[p],n&&u0)throw new Ke('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Ke("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Ke("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ei(e.value))throw new Ke("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var r=e.path.split("/").length,o=s.split("/").length;if(r!==o+1&&r!==o)throw new Ke("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==s)throw new Ke("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},a=Rf([i],n);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ke("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Ke("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function Rf(e,t,n){try{if(!Array.isArray(e))throw new Ke("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)go(_t(t),_t(e),n||!0);else{n=n||Gr;for(var s=0;s0&&(e.patches=[],e.callback&&e.callback(s)),s}function oa(e,t,n,s,r){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=bi(t),i=bi(e),a=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(_i(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?oa(u,f,n,s+"/"+Bn(c),r):u!==f&&(r&&n.push({op:"test",path:s+"/"+Bn(c),value:_t(u)}),n.push({op:"replace",path:s+"/"+Bn(c),value:_t(f)}))}else Array.isArray(e)===Array.isArray(t)?(r&&n.push({op:"test",path:s+"/"+Bn(c),value:_t(u)}),n.push({op:"remove",path:s+"/"+Bn(c)}),a=!0):(r&&n.push({op:"test",path:s,value:e}),n.push({op:"replace",path:s,value:t}))}if(!(!a&&o.length==i.length))for(var l=0;l"u"||(this.visibilityChangeHandler=()=>{document.visibilityState==="visible"&&this.shouldReconnect&&(!this.ws||this.ws.readyState!==WebSocket.OPEN)&&(this.reconnectAttempts=0,this.connect().catch(t=>{}))},document.addEventListener("visibilitychange",this.visibilityChangeHandler),this.onlineHandler=()=>{this.shouldReconnect&&(!this.ws||this.ws.readyState!==WebSocket.OPEN)&&(this.reconnectAttempts=0,this.connect().catch(t=>{}))},window.addEventListener("online",this.onlineHandler))}connect(){return new Promise((t,n)=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){t();return}if(this.ws&&this.ws.readyState===WebSocket.CONNECTING){const a=setInterval(()=>{this.ws?this.ws.readyState===WebSocket.OPEN?(clearInterval(a),t()):(this.ws.readyState===WebSocket.CLOSED||this.ws.readyState===WebSocket.CLOSING)&&(clearInterval(a),n(new Error("Connection closed during connect"))):(clearInterval(a),n(new Error("WebSocket was cleared")))},100);setTimeout(()=>{clearInterval(a),this.ws&&this.ws.readyState!==WebSocket.OPEN&&n(new Error("Connection timeout"))},5e3);return}if(this.ws&&(this.ws.readyState===WebSocket.CLOSING||this.ws.readyState===WebSocket.CLOSED)&&(this.ws=null),this.ws){t();return}this.shouldReconnect!==!1&&(this.shouldReconnect=!0);const s=window.location.protocol==="https:"?"wss:":"ws:",r=window.location.host,o=`${s}//${r}${this.url}`;this.setConnectionState("connecting"),this.ws=new WebSocket(o);const i=setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.CONNECTING&&(this.ws.close(),n(new Error("Connection timeout")))},3e3);this.ws.onopen=()=>{clearTimeout(i),this.reconnectAttempts=0,this.lastMessageTime=Date.now(),this.setConnectionState("connected"),this.startHeartbeat(),t()},this.ws.onerror=a=>{clearTimeout(i)},this.ws.onmessage=a=>{this.lastMessageTime=Date.now();try{const l=JSON.parse(a.data);this.callbacks.forEach(c=>c(l))}catch{}},this.ws.onclose=a=>{if(clearTimeout(i),this.stopHeartbeat(),this.setConnectionState("disconnected"),this.ws=null,!!this.shouldReconnect)if(this.reconnectAttempts{this.shouldReconnect&&(!l&&!c&&this.reconnectAttempts++,this.connect().catch(b=>{}))};d===0?p():this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,p()},d)}else this.shouldReconnect=!1}})}subscribe(t){return this.callbacks.add(t),()=>{this.callbacks.delete(t)}}get state(){return this._state}onConnectionStateChange(t){return this.connectionStateCallbacks.add(t),()=>{this.connectionStateCallbacks.delete(t)}}setConnectionState(t){this._state=t,this.connectionStateCallbacks.forEach(n=>n(t))}startHeartbeat(){this.stopHeartbeat(),this.pingTimer=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN)try{this.ws.send(JSON.stringify({type:"ping"}))}catch{}},this.pingInterval),this.heartbeatTimer=setInterval(()=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN){this.stopHeartbeat();return}if(Date.now()-this.lastMessageTime>3e5){this.ws.close();return}},this.heartbeatInterval)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null),this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null)}disconnect(){if(this.shouldReconnect=!1,this.reconnectAttempts=0,this.setConnectionState("disconnecting"),this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws){this.ws.onclose=null,this.ws.onerror=null;try{this.ws.close()}catch{}this.ws=null}}reset(){this.disconnect(),this.callbacks.clear(),this.visibilityChangeHandler&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null),this.onlineHandler&&(window.removeEventListener("online",this.onlineHandler),this.onlineHandler=null)}isConnected(){return this.ws?.readyState===WebSocket.OPEN}}let vn=null;function ry(){if(typeof window>"u")return vn||(vn=new xr),vn;const e=window.__archipelago_ws_client;return e&&e instanceof xr&&e.isConnected()?(vn=e,e):(vn||(vn=new xr,typeof window<"u"&&(window.__archipelago_ws_client=vn)),vn)}let ts=null;const Fn=(()=>{if(ts)return ts;try{return ts=ry(),ts}catch{return ts=new xr,ts}})();function oy(e,t){if(!Array.isArray(t)||t.length===0)return e;try{return go(e,t,!1,!1).newDocument}catch{return e}}function iy(){const e=document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/);return e?e[1]:null}class ay{baseUrl;constructor(t="/rpc/v1"){this.baseUrl=t}async call(t){const{method:n,params:s={},timeout:r=3e4}=t,o=3;for(let i=0;ia.abort(),r);try{const c={"Content-Type":"application/json"},u=iy();u&&(c["X-CSRF-Token"]=u);const f=await fetch(this.baseUrl,{method:"POST",credentials:"include",headers:c,body:JSON.stringify({method:n,params:s}),signal:a.signal});if(clearTimeout(l),!f.ok){if(f.status===401&&n!=="auth.login")throw window.location.href="/login",new Error("Session expired");const p=new Error(`HTTP ${f.status}: ${f.statusText}`);if((f.status===502||f.status===503)&&isetTimeout(h,600*(i+1)));continue}throw p}const d=await f.json();if(d.error)throw new Error(d.error.message||"RPC Error");return d.result}catch(c){if(clearTimeout(l),c instanceof Error){if(c.name==="AbortError"){const d=new Error("Request timeout");if(isetTimeout(p,600*(i+1)));continue}throw d}const u=c.message;if(/502|503|Bad Gateway|fetch|network/i.test(u)&&isetTimeout(d,600*(i+1)));continue}throw c}throw new Error("Unknown error occurred")}}throw new Error("Request failed after retries")}async login(t){return this.call({method:"auth.login",params:{password:t}})}async loginTotp(t){return this.call({method:"auth.login.totp",params:{code:t}})}async loginBackup(t){return this.call({method:"auth.login.backup",params:{code:t}})}async totpSetupBegin(t){return this.call({method:"auth.totp.setup.begin",params:{password:t}})}async totpSetupConfirm(t){return this.call({method:"auth.totp.setup.confirm",params:t})}async totpDisable(t,n){return this.call({method:"auth.totp.disable",params:{password:t,code:n}})}async totpStatus(){return this.call({method:"auth.totp.status",params:{}})}async changePassword(t){return this.call({method:"auth.changePassword",params:{currentPassword:t.currentPassword,newPassword:t.newPassword,alsoChangeSsh:t.alsoChangeSsh??!0}})}async logout(){return this.call({method:"auth.logout",params:{}})}async completeOnboarding(){return this.call({method:"auth.onboardingComplete",params:{}})}async isOnboardingComplete(){return this.call({method:"auth.isOnboardingComplete",params:{}})}async resetOnboarding(){return this.call({method:"auth.resetOnboarding",params:{}})}async getNodeDid(){return this.call({method:"node.did",params:{}})}async signChallenge(t){return this.call({method:"node.signChallenge",params:{challenge:t}})}async createBackup(t){return this.call({method:"node.createBackup",params:{passphrase:t}})}async resolveDid(t){return this.call({method:"identity.resolve-did",params:t?{did:t}:{}})}async createPresentation(t){return this.call({method:"identity.create-presentation",params:{holder_id:t.holderId,credential_ids:t.credentialIds}})}async verifyPresentation(t){return this.call({method:"identity.verify-presentation",params:{presentation:t}})}async createPsbt(t){return this.call({method:"lnd.create-psbt",params:{outputs:t.outputs,fee_rate_sat_per_vbyte:t.feeRateSatPerVbyte??10}})}async finalizePsbt(t){return this.call({method:"lnd.finalize-psbt",params:{signed_psbt_base64:t}})}async publishNostrIdentity(){return this.call({method:"node.nostr-publish",params:{}})}async getNostrPubkey(){return this.call({method:"node.nostr-pubkey",params:{}})}async listPeers(){return this.call({method:"node-list-peers",params:{}})}async addPeer(t){return this.call({method:"node-add-peer",params:t})}async removePeer(t){return this.call({method:"node-remove-peer",params:{pubkey:t}})}async sendMessageToPeer(t,n){return this.call({method:"node-send-message",params:{onion:t,message:n},timeout:9e4})}async checkPeerReachable(t){return this.call({method:"node-check-peer",params:{onion:t},timeout:35e3})}async getReceivedMessages(){return this.call({method:"node-messages-received",params:{}})}async discoverNodes(){return this.call({method:"node-nostr-discover",params:{},timeout:2e4})}async getTorAddress(){return this.call({method:"node.tor-address",params:{}})}async torListServices(){return this.call({method:"tor.list-services"})}async torRotateService(t){return this.call({method:"tor.rotate-service",params:{name:t}})}async torToggleApp(t,n){return this.call({method:"tor.toggle-app",params:{app_id:t,enabled:n}})}async torCleanupRotated(){return this.call({method:"tor.cleanup-rotated"})}async verifyNostrRevoked(){return this.call({method:"node-nostr-verify-revoked",params:{},timeout:25e3})}async echo(t){return this.call({method:"server.echo",params:{message:t}})}async getSystemTime(){return this.call({method:"server.time",params:{}})}async getMetrics(){return this.call({method:"server.metrics",params:{}})}async updateServer(t){return this.call({method:"server.update",params:{"marketplace-url":t}})}async detectUsbDevices(){return this.call({method:"system.detect-usb-devices",params:{}})}async restartServer(){return this.call({method:"server.restart",params:{}})}async shutdownServer(){return this.call({method:"server.shutdown",params:{}})}async installPackage(t,n,s){return this.call({method:"package.install",params:{id:t,"marketplace-url":n,version:s}})}async uninstallPackage(t){return this.call({method:"package.uninstall",params:{id:t}})}async startPackage(t){return this.call({method:"package.start",params:{id:t}})}async stopPackage(t){return this.call({method:"package.stop",params:{id:t}})}async restartPackage(t){return this.call({method:"package.restart",params:{id:t}})}async getMarketplace(t){return this.call({method:"marketplace.get",params:{url:t}})}async federationInvite(){return this.call({method:"federation.invite",params:{}})}async federationJoin(t){return this.call({method:"federation.join",params:{code:t}})}async federationListNodes(){return this.call({method:"federation.list-nodes",params:{}})}async federationRemoveNode(t){return this.call({method:"federation.remove-node",params:{did:t}})}async federationSetTrust(t,n){return this.call({method:"federation.set-trust",params:{did:t,trust_level:n}})}async federationSyncState(){return this.call({method:"federation.sync-state",params:{},timeout:12e4})}async federationDeployApp(t){return this.call({method:"federation.deploy-app",params:{did:t.did,app_id:t.appId,version:t.version??"latest",marketplace_url:t.marketplaceUrl??""},timeout:18e4})}async vpnStatus(){return this.call({method:"vpn.status",params:{}})}async vpnConfigure(t){return this.call({method:"vpn.configure",params:t,timeout:6e4})}async vpnDisconnect(){return this.call({method:"vpn.disconnect",params:{}})}async marketplaceDiscover(){return this.call({method:"marketplace.discover",params:{},timeout:3e4})}async dnsStatus(){return this.call({method:"network.dns-status",params:{}})}async configureDns(t){return this.call({method:"network.configure-dns",params:t})}async diskStatus(){return this.call({method:"system.disk-status"})}async diskCleanup(){return this.call({method:"system.disk-cleanup",timeout:6e4})}}const Ne=new ay,ia=Qn("app",()=>{const e=G(null),t=G(localStorage.getItem("neode-auth")==="true"),n=G(!1),s=G(!1),r=G(!1),o=G(null);let i=!1,a=!1;const l=pe(()=>e.value?.["server-info"]),c=pe(()=>e.value?.["package-data"]||{}),u=pe(()=>e.value?.["peer-health"]||{}),f=pe(()=>e.value?.ui),d=pe(()=>l.value?.name||"Archipelago"),p=pe(()=>l.value?.["status-info"]?.restarting||!1),b=pe(()=>l.value?.["status-info"]?.["shutting-down"]||!1),h=pe(()=>!n.value||p.value||b.value);async function E(N){r.value=!0,o.value=null;try{const W=await Ne.login(N);return W&&W.requires_totp?{requires_totp:!0}:(t.value=!0,a=!0,localStorage.setItem("neode-auth","true"),await S(),C().catch(X=>{}),{})}catch(W){throw o.value=W instanceof Error?W.message:"Login failed",W}finally{r.value=!1}}async function v(){t.value=!0,a=!0,localStorage.setItem("neode-auth","true"),await S(),C().catch(N=>{})}async function w(){try{await Ne.logout()}catch{}finally{t.value=!1,a=!1,localStorage.removeItem("neode-auth"),e.value=null,i=!1,Fn.disconnect(),n.value=!1,s.value=!1}}async function C(){try{if(s.value=!0,i||(i=!0,Fn.onConnectionStateChange(N=>{n.value=N==="connected",s.value=N==="connecting"}),Fn.subscribe(N=>{if(N?.type==="initial"&&N?.data)e.value=N.data,n.value=!0,s.value=!1;else if(N?.data&&N?.rev!==void 0)e.value=N.data,n.value=!0,s.value=!1;else if(e.value&&N?.patch)try{e.value=oy(e.value,N.patch),n.value||(n.value=!0,s.value=!1)}catch{}})),Fn.isConnected()){n.value=!0,s.value=!1;return}await Fn.connect(),Fn.isConnected()&&(n.value=!0,s.value=!1)}catch{s.value=!0,n.value=!1}}async function S(){e.value={"server-info":{id:"",version:"",name:null,pubkey:"","status-info":{restarting:!1,"shutting-down":!1,updated:!1,"backup-progress":null,"update-progress":null},"lan-address":null,"tor-address":null,unread:0,"wifi-ssids":[],"zram-enabled":!1},"package-data":{},ui:{name:null,"ack-welcome":"",marketplace:{"selected-hosts":[],"known-hosts":{}},theme:"dark"}}}async function O(){if(!localStorage.getItem("neode-auth"))return!1;try{return await Ne.call({method:"server.echo",params:{message:"ping"}}),t.value=!0,a=!0,await S(),C().catch(N=>{s.value=!0}),!0}catch{return localStorage.removeItem("neode-auth"),t.value=!1,a=!1,i=!1,n.value=!1,s.value=!1,Fn.disconnect(),!1}}function D(){return t.value&&!a}async function k(N,W,X){return Ne.installPackage(N,W,X)}async function I(N){return Ne.uninstallPackage(N)}async function P(N){return Ne.startPackage(N)}async function q(N){return Ne.stopPackage(N)}async function Y(N){return Ne.restartPackage(N)}async function B(N){return Ne.updateServer(N)}async function ae(){return Ne.restartServer()}async function re(){return Ne.shutdownServer()}async function ve(){return Ne.getMetrics()}async function ce(N){return Ne.getMarketplace(N)}return{data:e,isAuthenticated:t,isConnected:n,isReconnecting:s,isLoading:r,error:o,serverInfo:l,packages:c,peerHealth:u,uiData:f,serverName:d,isRestarting:p,isShuttingDown:b,isOffline:h,login:E,completeLoginAfterTotp:v,logout:w,checkSession:O,needsSessionValidation:D,connectWebSocket:C,installPackage:k,uninstallPackage:I,startPackage:P,stopPackage:q,restartPackage:Y,updateServer:B,restartServer:ae,shutdownServer:re,getMetrics:ve,getMarketplace:ce}}),zn=hg({history:Gm(),routes:[{path:"/",component:()=>_e(()=>import("./OnboardingWrapper-BsOJSH8d.js"),__vite__mapDeps([0,1])),meta:{public:!0},children:[{path:"",component:()=>_e(()=>import("./RootRedirect-_cfWJoe8.js"),__vite__mapDeps([2,3,4]))},{path:"login",name:"login",component:()=>_e(()=>import("./Login-CJkTG_B-.js"),__vite__mapDeps([5,6,7]))},{path:"onboarding/intro",name:"onboarding-intro",component:()=>_e(()=>import("./OnboardingIntro-CsYM21xo.js"),__vite__mapDeps([8,9]))},{path:"onboarding/options",name:"onboarding-options",component:()=>_e(()=>import("./OnboardingOptions-BEL4MhY9.js"),__vite__mapDeps([10,3]))},{path:"onboarding/path",name:"onboarding-path",component:()=>_e(()=>import("./OnboardingPath-BE4wazNB.js"),[])},{path:"onboarding/did",name:"onboarding-did",component:()=>_e(()=>import("./OnboardingDid-Cr_ec55a.js"),__vite__mapDeps([11,12]))},{path:"onboarding/identity",name:"onboarding-identity",component:()=>_e(()=>import("./OnboardingIdentity-i_e-4MVD.js"),[])},{path:"onboarding/backup",name:"onboarding-backup",component:()=>_e(()=>import("./OnboardingBackup-DGLHJlqA.js"),[])},{path:"onboarding/verify",name:"onboarding-verify",component:()=>_e(()=>import("./OnboardingVerify-P3nJC3Zw.js"),__vite__mapDeps([13,3]))},{path:"onboarding/done",name:"onboarding-done",component:()=>_e(()=>import("./OnboardingDone-D8gm2WWx.js"),[])}]},{path:"/recovery",name:"recovery",component:()=>_e(()=>import("./KioskRecovery-DsarIru9.js"),[]),meta:{public:!0}},{path:"/kiosk",name:"kiosk",component:()=>_e(()=>import("./Kiosk-CEZdJvXG.js"),__vite__mapDeps([14,15])),meta:{public:!0}},{path:"/dashboard",component:()=>_e(()=>import("./Dashboard-Byxe5sIJ.js"),__vite__mapDeps([16,17,18,6,19,20,21,22])),children:[{path:"",name:"home",component:()=>_e(()=>import("./Home-BM_tfGHm.js"),__vite__mapDeps([23,6,24,25,26,27]))},{path:"apps",name:"apps",component:()=>_e(()=>import("./Apps-JbZuzA3H.js"),__vite__mapDeps([28,24,29]))},{path:"apps/:id",name:"app-details",component:()=>_e(()=>import("./AppDetails-DfPGLgac.js"),__vite__mapDeps([30,24,31]))},{path:"apps/lnd/channels",name:"lightning-channels",component:()=>_e(()=>import("./LightningChannels-BTRz5y8m.js"),[])},{path:"marketplace",name:"marketplace",component:()=>_e(()=>import("./Marketplace-dnuGfUDf.js"),__vite__mapDeps([32,33,34]))},{path:"marketplace/:id",name:"marketplace-app-detail",component:()=>_e(()=>import("./MarketplaceAppDetails-DhlIl2UT.js"),__vite__mapDeps([35,33]))},{path:"cloud",name:"cloud",component:()=>_e(()=>import("./Cloud-BkxOai3U.js"),__vite__mapDeps([36,26]))},{path:"cloud/peers/:peerId?",name:"peer-files",component:()=>_e(()=>import("./PeerFiles-qTLuUhI-.js"),[]),props:!0},{path:"cloud/:folderId",name:"cloud-folder",component:()=>_e(()=>import("./CloudFolder-8jSNyq3F.js"),__vite__mapDeps([37,26]))},{path:"server",name:"server",component:()=>_e(()=>import("./Server-BNJJbUQb.js"),[])},{path:"monitoring",name:"monitoring",component:()=>_e(()=>import("./Monitoring-Bmi1t-3N.js"),[])},{path:"server/federation",name:"federation",component:()=>_e(()=>import("./Federation-BIPGM17A.js"),__vite__mapDeps([38,39,40]))},{path:"mesh",name:"mesh",component:()=>_e(()=>import("./Mesh-CPUFszgS.js"),__vite__mapDeps([41,21,39,42]))},{path:"web5",name:"web5",component:()=>_e(()=>import("./Web5-DcuUNKso.js"),__vite__mapDeps([43,20,24]))},{path:"web5/credentials",name:"credentials",component:()=>_e(()=>import("./Credentials-DP_VdhTb.js"),__vite__mapDeps([44,45]))},{path:"settings",name:"settings",component:()=>_e(()=>import("./Settings-a5XTzOeo.js"),__vite__mapDeps([46,47,19]))},{path:"settings/update",name:"system-update",component:()=>_e(()=>import("./SystemUpdate-DAjulYB4.js"),[])},{path:"goals/:goalId",name:"goal-detail",component:()=>_e(()=>import("./GoalDetail-BDM8F7F1.js"),__vite__mapDeps([48,25,49]))},{path:"chat",name:"chat",component:()=>_e(()=>import("./Chat-BLEXivD6.js"),__vite__mapDeps([50,47,26,51]))},{path:"app-session/:appId",name:"app-session",component:()=>_e(()=>import("./AppSession-Cw_auYBr.js"),__vite__mapDeps([17,18]))},{path:"containers",redirect:()=>({path:"/dashboard/apps"})},{path:"containers/:id",redirect:e=>({path:`/dashboard/apps/${e.params.id}`})}]},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>_e(()=>import("./NotFound-D22kjDbC.js"),[])}]}),ly=8e3;async function Ul(e){try{return await Promise.race([e.checkSession(),new Promise(t=>setTimeout(()=>t(!1),ly))])}catch{return!1}}zn.beforeEach(async(e,t,n)=>{const s=ia();if(e.meta.public){if(e.path==="/login"&&s.isAuthenticated){const o=e.query.redirect||"/dashboard";if(s.needsSessionValidation()){n(),Ul(s).then(i=>{i&&zn.replace(o).catch(()=>{})});return}n(o);return}n();return}if(s.needsSessionValidation()){n(),s.checkSession().then(o=>{o||zn.replace({path:"/login",query:{redirect:e.fullPath}}).catch(()=>{})});return}if(!s.isAuthenticated){if(await Ul(s)){n();return}n({path:"/login",query:{redirect:e.fullPath}});return}!s.isConnected&&!s.isReconnecting&&s.connectWebSocket().catch(o=>{}),n()});zn.afterEach((e,t)=>{e.path.startsWith("/dashboard")&&!t.path.startsWith("/dashboard")&&Ig()});zn.afterEach(e=>{(e.path==="/dashboard"||e.path==="/dashboard/")&&Jn(()=>{setTimeout(()=>{const t=document.querySelector('[data-controller-zone="sidebar"] a[href="/dashboard"], [data-controller-zone="sidebar"] a[href="/dashboard/"]');t&&t.focus()},150)})});const cy=new Set(["23000","3000","2342","8123","8082","8085","3001","9001"]);function uy(e){try{const t=new URL(e);return cy.has(t.port)}catch{return!1}}const fy={81:"nginx-proxy-manager",3e3:"grafana",3001:"uptime-kuma",8080:"endurain",8081:"lnd",8082:"vaultwarden",8083:"filebrowser",8085:"nextcloud",8096:"jellyfin",8123:"homeassistant",8240:"tailscale",8334:"bitcoin-knots",8888:"searxng",9e3:"portainer",9001:"penpot",9980:"onlyoffice",11434:"ollama",2283:"immich",23e3:"btcpay-server",2342:"photoprism",4080:"mempool",8175:"fedimint",8176:"fedimint-gateway",3100:"dwn",18081:"nostr-rs-relay",7777:"indeedhub",50002:"electrumx"},Pf="neode_nostr_approved_origins";function Lf(){try{const e=localStorage.getItem(Pf);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}function dy(e){const t=Lf();t.add(e),localStorage.setItem(Pf,JSON.stringify([...t]))}const py="archipelago_app_display_mode",qr=Qn("appLauncher",()=>{const e=G(!1),t=G(""),n=G(""),s=G(null),r=G(!1);let o=null;const i=G(null);function a(E){(localStorage.getItem(py)||"panel")==="panel"?i.value=E:(i.value=null,zn.push({name:"app-session",params:{appId:E}}))}function l(){i.value=null}function c(E){const v=u(E.url);if(v){a(v);return}if(E.openInNewTab||uy(E.url)){window.open(E.url,"_blank","noopener,noreferrer");return}o=document.activeElement||null,t.value=E.url,n.value=E.title,e.value=!0}function u(E){try{const v=new URL(E),w=fy[v.port];return w||{"botfights.net":"botfights","nwnn.l484.com":"nwnn","484.kitchen":"484-kitchen","cta.tx1138.com":"call-the-operator","present.l484.com":"arch-presentation","syntropy.institute":"syntropy-institute","teeminuszero.net":"t-zero","nostrudel.ninja":"nostrudel"}[v.hostname]||null}catch{return null}}function f(){const E=o;o=null,e.value=!1,t.value="",n.value="",E&&typeof E.focus=="function"&&requestAnimationFrame(()=>{E.focus()})}function d(E){s.value&&(s.value.resolve(E),s.value=null),r.value=!1}function p(){s.value&&(s.value.reject(),s.value=null),r.value=!1}function b(E,v,w,C){return new Promise((S,O)=>{s.value={appName:E,method:v,eventKind:w,content:C,resolve:S,reject:O},r.value=!0})}async function h(E){if(!E.data||E.data.type!=="nostr-request")return;const{id:v,method:w,params:C}=E.data,S=E.source;if(!S)return;const O=t.value||"unknown",k="archipelago_app_identity_"+(t.value||"").replace(/[^a-z0-9]/gi,"_");let I=null;try{const P=localStorage.getItem(k);P&&(I=JSON.parse(P).id||null)}catch{}try{let P;if(w==="getPublicKey")I?P=(await Ne.call({method:"identity.get",params:{id:I}})).nostr_pubkey:P=(await Ne.call({method:"node.nostr-pubkey"})).nostr_pubkey;else if(w==="signEvent"){if(!Lf().has(O)){const Y=C?.event?.kind,B=C?.event?.content;try{await b(n.value||"App","signEvent",Y,B)&&dy(O)}catch{S.postMessage({type:"nostr-response",id:v,error:"User denied signing request"},"*");return}}I?P=await Ne.call({method:"identity.nostr-sign",params:{id:I,event:C.event}}):P=await Ne.call({method:"node.nostr-sign",params:{event:C.event}})}else if(w==="getRelays")P={};else if(w==="nip04.encrypt")P=(await Ne.call({method:"identity.nostr-encrypt-nip04",params:{id:I||void 0,pubkey:C.pubkey,plaintext:C.plaintext}})).ciphertext;else if(w==="nip04.decrypt")P=(await Ne.call({method:"identity.nostr-decrypt-nip04",params:{id:I||void 0,pubkey:C.pubkey,ciphertext:C.ciphertext}})).plaintext;else if(w==="nip44.encrypt")P=(await Ne.call({method:"identity.nostr-encrypt-nip44",params:{id:I||void 0,pubkey:C.pubkey,plaintext:C.plaintext}})).ciphertext;else if(w==="nip44.decrypt")P=(await Ne.call({method:"identity.nostr-decrypt-nip44",params:{id:I||void 0,pubkey:C.pubkey,ciphertext:C.ciphertext}})).plaintext;else throw new Error(`Unsupported NIP-07 method: ${w}`);S.postMessage({type:"nostr-response",id:v,result:P},"*")}catch(P){const q=P instanceof Error?P.message:"Unknown error";S.postMessage({type:"nostr-response",id:v,error:q},"*")}}return qe(e,E=>{E?window.addEventListener("message",h):window.removeEventListener("message",h)}),{isOpen:e,url:t,title:n,open:c,openSession:a,close:f,closePanel:l,panelAppId:i,showConsent:r,consentRequest:s,approveConsent:d,denyConsent:p}}),Ps=[{id:"navigate",label:"Navigate",items:[{id:"home",label:"Home",path:"/dashboard"},{id:"apps",label:"My Apps",path:"/dashboard/apps"},{id:"marketplace",label:"App Store",path:"/dashboard/marketplace"},{id:"cloud",label:"Cloud",path:"/dashboard/cloud"},{id:"server",label:"Network",path:"/dashboard/server"},{id:"web5",label:"Web5",path:"/dashboard/web5"},{id:"settings",label:"Settings",path:"/dashboard/settings"}]},{id:"learn",label:"Learn",items:[{id:"getting-started",label:"Getting Started",content:"Welcome to Archipelago! To get started: 1) Flash the Archipelago ISO to a USB drive using Balena Etcher or dd. 2) Boot your hardware from the USB. 3) The installer partitions your disk, installs the OS, and reboots automatically. 4) On first boot, open a browser and navigate to your node's IP address. 5) Complete the onboarding wizard — set a password, create your first identity (DID), and choose your setup path. Your node is now ready to install apps, connect to Bitcoin, and join the sovereign web.",relatedPath:"/dashboard"},{id:"bitcoin-basics",label:"Bitcoin Basics",content:"Bitcoin is a decentralized digital currency. Your node validates transactions and maintains the blockchain locally. Install Bitcoin Knots from the App Store to run a full node. Initial sync takes 2-3 days depending on hardware and internet speed. Once synced, your node independently verifies every transaction without trusting any third party.",relatedPath:"/dashboard/server"},{id:"lightning-network",label:"Lightning Network",content:"Lightning enables instant, low-fee payments. Install LND from the App Store (requires Bitcoin Knots). After installation, open channels with other nodes to send and receive payments. Use the Lightning Channels view to manage channels, check inbound/outbound liquidity, and monitor your routing fees. Channels require an on-chain transaction to open and close.",relatedPath:"/dashboard/apps"},{id:"app-store-guide",label:"Installing & Managing Apps",content:"Open the App Store (marketplace icon) to browse available apps. Click Install to download and start an app. Some apps have dependencies — Electrs requires Bitcoin, BTCPay requires LND, Mempool requires both Bitcoin and Electrs. The system handles these automatically. After installation, apps appear in My Apps. Click an app to open it in an overlay or new tab. Use the app detail page to start, stop, restart, or uninstall apps.",relatedPath:"/dashboard/marketplace"},{id:"identity-guide",label:"Your Digital Identity (DIDs)",content:"Archipelago creates a sovereign digital identity (DID) during onboarding. DIDs are cryptographic keypairs that prove your identity without any company in the middle. You can create multiple identities for different purposes — Personal, Business, or Anonymous. Each identity can sign messages, issue verifiable credentials, and authenticate with services like Indeehub. Manage identities in the Web5 view.",relatedPath:"/dashboard/web5"},{id:"networking-guide",label:"Connecting with Peers",content:'Archipelago nodes can discover and connect with each other over Tor. In Web5, set your node visibility to "Discoverable" to let other nodes find you via Nostr. Accept connection requests from peers you trust. Once connected, you can message peers, share content, and exchange ecash payments — all over encrypted Tor connections. Your .onion address is shown in Settings.',relatedPath:"/dashboard/web5"},{id:"content-sharing",label:"Sharing Content",content:"Share files and media with connected peers through the Content section in Web5. Add content from your Cloud storage, set it as free or paid (ecash-gated), and connected peers can browse and access your catalog. For paid content, peers pay with ecash micropayments — the sats appear in your wallet instantly.",relatedPath:"/dashboard/web5"},{id:"self-hosting",label:"Self-Hosting",content:"Archipelago runs your services locally. Your data stays on your hardware, giving you full control and privacy. No cloud subscriptions, no data harvesting, no service shutdowns. You own your node, your data, and your identity. Back up your node regularly using the backup feature in Settings.",relatedPath:"/dashboard"},{id:"troubleshooting",label:"Troubleshooting FAQ",content:"Common issues: 1) App won't start — check disk space in Settings > Server. 2) Bitcoin not syncing — ensure port 8333 is reachable; check network diagnostics. 3) Can't connect to peers — verify Tor is running (Settings > Network). 4) UI is slow — some views load data from multiple sources; check server resources. 5) Lost password — use the backup recovery key created during onboarding. 6) Container errors — try stopping and restarting the app, or uninstall and reinstall.",relatedPath:"/dashboard/settings"}]},{id:"actions",label:"Actions",items:[{id:"open-cli",label:"Open CLI",path:"__cli__"},{id:"install-app",label:"Install an App",path:"/dashboard/marketplace"},{id:"manage-apps",label:"Manage My Apps",path:"/dashboard/apps"},{id:"network-settings",label:"Network Settings",path:"/dashboard/server"},{id:"backup",label:"Backup & Recovery",path:"/dashboard/settings"}]},{id:"goals",label:"Quick Start Goals",items:[{id:"goal-shop",label:"Open a Shop",path:"/dashboard/goals/open-a-shop"},{id:"goal-payments",label:"Accept Payments",path:"/dashboard/goals/accept-payments"},{id:"goal-photos",label:"Store My Photos",path:"/dashboard/goals/store-photos"},{id:"goal-files",label:"Store My Files",path:"/dashboard/goals/store-files"},{id:"goal-lightning",label:"Run a Lightning Node",path:"/dashboard/goals/run-lightning-node"},{id:"goal-identity",label:"Create My Identity",path:"/dashboard/goals/create-identity"},{id:"goal-backup",label:"Back Up Everything",path:"/dashboard/goals/back-up-everything"}]}];function hy(){const e=[];for(const t of Ps){const n=t.id==="navigate"?"navigate":t.id==="learn"?"learn":t.id==="goals"?"goal":"action";for(const s of t.items)e.push({id:s.id,label:s.label,path:s.path,type:n,section:t.label,content:s.content,relatedPath:s.relatedPath})}return e}const my={class:"flex items-center gap-3 px-4 py-3 border-b border-white/10"},gy={class:"flex-1 flex items-center gap-3 min-w-0"},vy={class:"flex-1 overflow-y-auto max-h-[60vh] min-h-[200px]"},yy={key:0,class:"p-2 border-b border-white/10"},_y=["onClick"],by={class:"text-white/90"},wy={class:"text-xs text-white/40"},Ey={key:0,class:"p-2"},Ay=["onClick"],Sy={class:"text-white/90"},Cy={class:"text-xs text-white/40"},ky={key:1,class:"p-8 text-center text-white/50"},xy={class:"px-3 py-2 text-xs font-medium text-white/50 uppercase tracking-wider"},Ty=["onClick"],Iy={class:"text-white/90"},Vl="archipelago-spotlight-position",Ry=Ze({__name:"SpotlightSearch",setup(e){const t=ho(),n=jr(),s=Js(),r=ia(),o=qr(),i=G(null),a=G(null),l=G(null),c=G(""),u=G(!1),f=G(null),d=hy(),p=pe(()=>{const N=r.packages;return Object.entries(N).map(([W,X])=>({id:`app-${W}`,label:X.manifest?.title||W,path:`__launch_app__:${W}`,type:"action",section:"Installed Apps"}))}),b=pe(()=>[...d,...p.value]),h=pe(()=>new bs(b.value,{keys:["label","section"],threshold:.4})),E=pe(()=>{const N=c.value.trim();return N?h.value.search(N).map(X=>X.item):[]}),v=pe(()=>!c.value.trim()&&n.recentItems.length>0?n.recentItems.length:0),w=pe(()=>c.value.trim()?E.value.length:v.value+b.value.length),C=pe(()=>{const N=S.value;return N?{transform:`translate(${N.x}px, ${N.y}px)`,margin:0}:{}}),S=G(null);function O(){try{const N=localStorage.getItem(Vl);if(N){const W=JSON.parse(N);S.value={x:W.x??0,y:W.y??0}}else S.value=null}catch{S.value=null}}function D(N,W){S.value={x:N,y:W};try{localStorage.setItem(Vl,JSON.stringify({x:N,y:W}))}catch{}}function k(N,W){let X=0;for(const ge of Ps){if(ge.id===N)return X+W;X+=ge.items.length}return-1}function I(N){const W=n.selectedIndex;return N===W?"bg-amber-500/20 text-amber-200":"hover:bg-white/10 text-white/90"}function P(N){const W=r.packages[N];if(!W)return;let X=W.installed?.["interface-addresses"]?.main?.["lan-address"];X&&X.includes("localhost")&&(X=X.replace("localhost",window.location.hostname)),X?o.open({url:X,title:W.manifest?.title||N}):t.push(`/dashboard/apps/${N}`).catch(()=>{})}function q(N){n.addRecentItem({id:N.id,label:N.label,path:N.path,type:N.type}),n.close(),N.path?.startsWith("__launch_app__:")?P(N.path.replace("__launch_app__:","")):N.path==="__cli__"?s.open():N.path?t.push(N.path):N.content&&n.showHelpModal({title:N.label,content:N.content,relatedPath:N.relatedPath})}function Y(N,W){const X=N.id==="navigate"?"navigate":N.id==="learn"?"learn":"action";n.addRecentItem({id:W.id,label:W.label,path:W.path,type:X}),n.close(),W.path?.startsWith("__launch_app__:")?P(W.path.replace("__launch_app__:","")):W.path==="__cli__"?s.open():W.path?t.push(W.path):W.content&&n.showHelpModal({title:W.label,content:W.content,relatedPath:W.relatedPath})}function B(N){if(n.close(),N.path?.startsWith("__launch_app__:")){P(N.path.replace("__launch_app__:",""));return}if(N.path==="__cli__"){s.open();return}if(N.path){t.push(N.path);return}if(N.type==="learn")for(const W of Ps){const X=W.items.find(ge=>ge.id===N.id);if(X?.content){n.showHelpModal({title:X.label,content:X.content,relatedPath:X.relatedPath});return}}}function ae(N){if(N.key==="Escape"){n.close(),N.preventDefault(),N.stopPropagation();return}if(N.key==="ArrowDown"){N.preventDefault(),n.setSelectedIndex(Math.min(n.selectedIndex+1,Math.max(0,w.value-1)));return}if(N.key==="ArrowUp"){N.preventDefault(),n.setSelectedIndex(Math.max(n.selectedIndex-1,0));return}if(N.key==="Enter"){N.preventDefault();const W=n.selectedIndex;if(c.value.trim()){const j=E.value[W];j&&q(j);return}if(Wn.isOpen,N=>{N&&(c.value="",O(),Jn(()=>{i.value?.focus(),n.setSelectedIndex(0)}))}),qe([c,E],()=>{n.setSelectedIndex(0)}),ht(()=>{O(),window.addEventListener("mousemove",ve),window.addEventListener("mouseup",ce)}),Ot(()=>{window.removeEventListener("mousemove",ve),window.removeEventListener("mouseup",ce)}),(N,W)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"spotlight"},{default:Ye(()=>[he(n).isOpen?(z(),Z("div",{key:0,class:"fixed inset-0 z-[2500] flex items-center justify-center p-4",onClick:W[1]||(W[1]=Tn(X=>he(n).close(),["self"]))},[W[7]||(W[7]=_("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm"},null,-1)),_("div",{ref_key:"panelRef",ref:a,class:"glass-card w-full max-w-2xl relative z-10 overflow-hidden flex flex-col",style:Tt(C.value),onMousedown:re},[_("div",my,[_("div",{ref_key:"dragHandleRef",ref:l,class:$e(["flex items-center justify-center w-8 h-8 rounded cursor-grab hover:bg-white/10 transition-colors shrink-0",{"cursor-grabbing":u.value}]),title:"Drag to move"},[...W[2]||(W[2]=[_("svg",{class:"w-4 h-4 text-white/50",fill:"currentColor",viewBox:"0 0 24 24"},[_("path",{d:"M8 6h2v2H8V6zm0 5h2v2H8v-2zm0 5h2v2H8v-2zm5-10h2v2h-2V6zm0 5h2v2h-2v-2zm0 5h2v2h-2v-2z"})],-1)])],2),_("div",gy,[W[3]||(W[3]=_("svg",{class:"w-5 h-5 text-white/60 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),Yi(_("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":W[0]||(W[0]=X=>c.value=X),type:"text",placeholder:"Search or type a command...",class:"flex-1 bg-transparent text-white placeholder-white/50 outline-none text-base",onKeydown:ae},null,544),[[Xu,c.value]])]),W[4]||(W[4]=_("kbd",{class:"hidden sm:inline-flex px-2 py-1 text-xs text-white/50 bg-white/10 rounded"},"Esc",-1))]),_("div",vy,[!c.value.trim()&&he(n).recentItems.length>0?(z(),Z("div",yy,[W[5]||(W[5]=_("div",{class:"px-3 py-2 text-xs font-medium text-white/50 uppercase tracking-wider"},"Recent",-1)),(z(!0),Z(Be,null,Gt(he(n).recentItems,(X,ge)=>(z(),Z("button",{key:`recent-${X.id}-${X.timestamp}`,type:"button",class:$e(["w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-left transition-colors",I(ge)]),onClick:j=>B(X)},[_("span",by,Se(X.label),1),_("span",wy,Se(X.type),1)],10,_y))),128))])):be("",!0),c.value.trim()?(z(),Z(Be,{key:1},[E.value.length>0?(z(),Z("div",Ey,[(z(!0),Z(Be,null,Gt(E.value,(X,ge)=>(z(),Z("button",{key:X.id+X.section,type:"button",class:$e(["w-full flex items-center justify-between gap-3 px-3 py-2.5 rounded-lg text-left transition-colors",I(ge)]),onClick:j=>q(X)},[_("span",Sy,Se(X.label),1),_("span",Cy,Se(X.section),1)],10,Ay))),128))])):(z(),Z("div",ky,' No results for "'+Se(c.value)+'" ',1))],64)):(z(!0),Z(Be,{key:2},Gt(he(Ps),X=>(z(),Z("div",{key:X.id,class:"p-2"},[_("div",xy,Se(X.label),1),(z(!0),Z(Be,null,Gt(X.items,(ge,j)=>(z(),Z("button",{key:ge.id,type:"button",class:$e(["w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-left transition-colors",I(v.value+k(X.id,j))]),onClick:K=>Y(X,ge)},[_("span",Iy,Se(ge.label),1)],10,Ty))),128))]))),128)),W[6]||(W[6]=_("div",{class:"p-2 border-t border-white/10"},[_("div",{class:"px-3 py-2 text-xs font-medium text-white/50 uppercase tracking-wider"},"AI Assistant"),_("div",{class:"px-3 py-3 rounded-lg bg-white/5 text-white/50 text-sm"}," Coming soon — ask questions about your node, apps, and Bitcoin. ")],-1))])],36)])):be("",!0)]),_:1})]))}}),Py=Dt(Ry,[["__scopeId","data-v-48971291"]]),Ly={class:"flex items-center gap-3 px-4 py-3 border-b border-white/10"},Ny={class:"flex-1 overflow-hidden flex flex-col min-h-0"},Oy={key:0,class:"flex-1 flex flex-col min-h-0 p-4 bg-black/80 rounded-b-lg font-mono text-sm"},Dy={class:"flex items-center gap-2 shrink-0"},My={key:1,class:"flex-1 overflow-y-auto p-4 space-y-4"},Fy={class:"space-y-3"},$y={class:"p-3 rounded-lg bg-white/5 font-mono text-sm"},By={class:"flex items-center gap-2 flex-wrap"},Uy={class:"text-green-400 break-all"},Vy={class:"p-3 rounded-lg bg-white/5 text-sm space-y-1"},Wy={class:"flex flex-col gap-1.5 text-white/80"},Hy={class:"flex justify-between gap-4"},jy={class:"font-mono text-green-400"},Wl="archipelago-cli-position",Ky=Ze({__name:"CLIPopup",setup(e){const t=Js(),n=G(null),s=G(null),r=G(null),o=G(null),i=G(!1),a=G(""),l=G(` ╔═══════════════════════════════════════════════════════════╗ ║ 🏝️ ARCHIPELAGO BITCOIN NODE OS ║ ║ Your sovereign Bitcoin infrastructure ║ ╚═══════════════════════════════════════════════════════════╝ System Status: ───────────────────────────────────────────────────────────── Mode: 🟢 Installed Podman: 🟢 Installed Bitcoin: 🟢 Running (blocks: syncing) Lightning: 🟡 Stopped Main Menu: ───────────────────────────────────────────────────────────── r) Refresh - Update IP/status w) Open Web UI - Launch graphical interface 1) Install to Disk - Permanently install Archipelago 2) Setup Bitcoin Core - Configure Bitcoin full node 3) Setup Lightning (LND) - Configure Lightning Network 4) Setup BTCPay Server - Bitcoin payment processor 5) View Logs - Monitor running services 6) Network Settings - Configure networking 7) System Info - View system information q) Quit `),c=G(!1),u=G(null),f=G(null),d=!1,p=pe(()=>window.location.hostname),b=pe(()=>`ssh archipelago@${p.value}`),h=pe(()=>{const k=f.value;return k?{transform:`translate(${k.x}px, ${k.y}px)`,margin:0}:{}});function E(){try{const k=localStorage.getItem(Wl);if(k){const I=JSON.parse(k);f.value={x:I.x??0,y:I.y??0}}else f.value=null}catch{f.value=null}}function v(k,I){f.value={x:k,y:I};try{localStorage.setItem(Wl,JSON.stringify({x:k,y:I}))}catch{}}function w(){const k=a.value.trim();if(!k)return;l.value+=` archipelago@node ~ $ ${k} `;const I=k.toLowerCase();I==="r"||I==="refresh"?l.value+=` Status refreshed. `:I==="w"||I.startsWith("web")?l.value+=` Opening Web UI... (press C to return to CLI) `:I==="q"||I==="quit"||I==="exit"?(l.value+=` Goodbye! 🏝️ `,t.close()):I==="help"||I==="?"?l.value+=` Type r, w, 1-7, or q. Press C to switch to Web UI. `:l.value+=` Unknown command. Type 'help' or 'r' for menu. `,a.value="",Jn(()=>{r.value?.scrollTo({top:r.value.scrollHeight,behavior:"smooth"})})}async function C(){try{await navigator.clipboard.writeText(b.value),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{const k=document.createElement("textarea");k.value=b.value,document.body.appendChild(k),k.select(),document.execCommand("copy"),document.body.removeChild(k),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}}function S(k){if(!s.value?.contains(k.target)||(c.value=!0,!n.value?.getBoundingClientRect()))return;const P=f.value?.x??0,q=f.value?.y??0;u.value={x:k.clientX,y:k.clientY,panelX:P,panelY:q}}function O(k){if(!u.value)return;const I=k.clientX-u.value.x,P=k.clientY-u.value.y;v(u.value.panelX+I,u.value.panelY+P)}function D(){c.value=!1,u.value=null}return ur(n,pe(()=>t.isOpen),()=>t.close()),qe(()=>t.isOpen,k=>{k&&E()}),ht(()=>{E(),window.addEventListener("mousemove",O),window.addEventListener("mouseup",D)}),Ot(()=>{window.removeEventListener("mousemove",O),window.removeEventListener("mouseup",D)}),(k,I)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"cli-popup"},{default:Ye(()=>[he(t).isOpen?(z(),Z("div",{key:0,class:"fixed inset-0 z-[2500] flex items-center justify-center p-4",onClick:I[1]||(I[1]=Tn(P=>he(t).close(),["self"]))},[I[16]||(I[16]=_("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm"},null,-1)),_("div",{ref_key:"panelRef",ref:n,class:"glass-card w-full max-w-2xl relative z-10 overflow-hidden flex flex-col",style:Tt(h.value),onMousedown:S},[_("div",Ly,[_("div",{ref_key:"dragHandleRef",ref:s,class:$e(["flex items-center justify-center w-8 h-8 rounded cursor-grab hover:bg-white/10 transition-colors shrink-0",{"cursor-grabbing":c.value}]),title:"Drag to move"},[...I[2]||(I[2]=[_("svg",{class:"w-4 h-4 text-white/50",fill:"currentColor",viewBox:"0 0 24 24"},[_("path",{d:"M8 6h2v2H8V6zm0 5h2v2H8v-2zm0 5h2v2H8v-2zm5-10h2v2h-2V6zm0 5h2v2h-2v-2zm0 5h2v2h-2v-2z"})],-1)])],2),I[3]||(I[3]=_("div",{class:"flex items-center gap-3 flex-1 min-w-0"},[_("svg",{class:"w-5 h-5 text-white/60 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})]),_("span",{class:"text-white font-medium"},"CLI Access")],-1)),I[4]||(I[4]=_("kbd",{class:"hidden sm:inline-flex px-2 py-1 text-xs text-white/50 bg-white/10 rounded"},"Esc",-1))]),_("div",Ny,[he(d)?(z(),Z("div",Oy,[_("div",{ref_key:"outputRef",ref:r,class:"flex-1 overflow-y-auto text-green-400/90 whitespace-pre-wrap break-words mb-2 min-h-0"},Se(l.value),513),_("div",Dy,[I[5]||(I[5]=_("span",{class:"text-amber-400"},"archipelago@node",-1)),I[6]||(I[6]=_("span",{class:"text-white/60"},"~",-1)),I[7]||(I[7]=_("span",{class:"text-white/40"},"$",-1)),Yi(_("input",{ref_key:"cliInputRef",ref:o,"onUpdate:modelValue":I[0]||(I[0]=P=>a.value=P),type:"text",class:"flex-1 bg-transparent text-white outline-none border-none",placeholder:" ",onKeydown:Qu(w,["enter"])},null,544),[[Xu,a.value]])])])):(z(),Z("div",My,[I[15]||(I[15]=_("p",{class:"text-white/80 text-sm"}," Connect to this node via SSH to access the command line. Use the same host as this web interface. ",-1)),_("div",Fy,[_("div",$y,[I[8]||(I[8]=_("div",{class:"text-white/50 text-xs uppercase tracking-wider mb-2"},"SSH Command",-1)),_("div",By,[_("code",Uy,Se(b.value),1),_("button",{type:"button",class:"shrink-0 px-2 py-1 rounded bg-white/10 text-white/80 hover:bg-white/20 hover:text-white text-xs transition-colors",onClick:C},Se(i.value?"Copied!":"Copy"),1)])]),_("div",Vy,[I[12]||(I[12]=_("div",{class:"text-white/50 text-xs uppercase tracking-wider mb-2"},"Connection Details",-1)),_("div",Wy,[_("div",Hy,[I[9]||(I[9]=_("span",{class:"text-white/50"},"Host",-1)),_("span",jy,Se(p.value),1)]),I[10]||(I[10]=_("div",{class:"flex justify-between gap-4"},[_("span",{class:"text-white/50"},"User"),_("span",{class:"font-mono"},"archipelago")],-1)),I[11]||(I[11]=_("div",{class:"flex justify-between gap-4"},[_("span",{class:"text-white/50"},"Password"),_("span",{class:"font-mono"},"archipelago")],-1))])]),I[13]||(I[13]=_("p",{class:"text-white/50 text-xs"}," From the terminal menu you can install to disk, configure Bitcoin, Lightning, view logs, and more. ",-1)),I[14]||(I[14]=_("p",{class:"text-white/40 text-xs"},[kn(" Tip: Press "),_("kbd",{class:"px-1.5 py-0.5 rounded bg-white/10 font-mono text-[10px]"},"F"),kn(" to open this anytime. ")],-1))])]))])],36)])):be("",!0)]),_:1})]))}}),Gy=Dt(Ky,[["__scopeId","data-v-bbd51259"]]),qy={class:"space-y-3 mb-6"},Yy={class:"bg-black/20 rounded-xl border border-white/10 p-3"},zy={class:"text-white text-sm font-medium"},Xy={class:"bg-black/20 rounded-xl border border-white/10 p-3"},Jy={class:"text-white text-sm font-medium"},Qy={key:0,class:"bg-black/20 rounded-xl border border-white/10 p-3"},Zy={class:"text-white/80 text-sm font-mono break-all"},e0={key:1,class:"bg-black/20 rounded-xl border border-white/10 p-3"},t0={class:"text-white text-sm font-medium"},n0={class:"text-white/50"},s0={class:"flex items-center gap-2 mb-4 cursor-pointer"},r0=Ze({__name:"NostrSignConsent",props:{show:{type:Boolean},appName:{},method:{},eventKind:{},content:{}},emits:["approve","deny"],setup(e,{emit:t}){const n={0:"Metadata",1:"Short Text Note",2:"Recommend Relay",3:"Contacts",4:"Encrypted DM",5:"Event Deletion",6:"Repost",7:"Reaction",9734:"Zap Request",9735:"Zap Receipt",10002:"Relay List",30023:"Long-form Content"},s=e,r=t,o=G(null),i=G(!1);ur(o,pe(()=>s.show),()=>r("deny"));const a=pe(()=>s.content?s.content.length>200?s.content.slice(0,200)+"...":s.content:""),l=pe(()=>s.eventKind===void 0?"":n[s.eventKind]??"Unknown");function c(){r("approve",i.value)}function u(){r("deny")}return(f,d)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"modal"},{default:Ye(()=>[e.show?(z(),Z("div",{key:0,class:"fixed inset-0 z-[3000] flex items-center justify-center p-4",onClick:u},[d[9]||(d[9]=_("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm"},null,-1)),_("div",{ref_key:"modalRef",ref:o,onClick:d[1]||(d[1]=Tn(()=>{},["stop"])),class:"glass-card p-6 max-w-md w-full relative z-10"},[_("div",{class:"flex items-start justify-between gap-4 mb-4"},[d[3]||(d[3]=_("h3",{class:"text-xl font-semibold text-white"},"Nostr Signing Request",-1)),_("button",{onClick:u,class:"p-2 rounded-lg hover:bg-white/10 text-white/70 hover:text-white transition-colors","aria-label":"Close"},[...d[2]||(d[2]=[_("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),_("div",qy,[_("div",Yy,[d[4]||(d[4]=_("p",{class:"text-white/50 text-xs uppercase tracking-wider mb-1"},"App",-1)),_("p",zy,Se(e.appName),1)]),_("div",Xy,[d[5]||(d[5]=_("p",{class:"text-white/50 text-xs uppercase tracking-wider mb-1"},"Method",-1)),_("p",Jy,Se(e.method),1)]),a.value?(z(),Z("div",Qy,[d[6]||(d[6]=_("p",{class:"text-white/50 text-xs uppercase tracking-wider mb-1"},"Content",-1)),_("p",Zy,Se(a.value),1)])):be("",!0),e.eventKind!==void 0?(z(),Z("div",e0,[d[7]||(d[7]=_("p",{class:"text-white/50 text-xs uppercase tracking-wider mb-1"},"Event Kind",-1)),_("p",t0,[kn(Se(e.eventKind)+" ",1),_("span",n0,"("+Se(l.value)+")",1)])])):be("",!0)]),_("label",s0,[Yi(_("input",{"onUpdate:modelValue":d[0]||(d[0]=p=>i.value=p),type:"checkbox",class:"w-4 h-4 rounded border-white/30 bg-white/10 text-orange-400 focus:ring-orange-400/50"},null,512),[[Gh,i.value]]),d[8]||(d[8]=_("span",{class:"text-white/70 text-sm"},"Remember for this app",-1))]),_("div",{class:"flex gap-3"},[_("button",{onClick:u,class:"glass-button flex-1 py-2.5 rounded-lg text-sm font-medium"}," Deny "),_("button",{onClick:c,class:"glass-button flex-1 py-2.5 rounded-lg text-sm font-medium text-orange-400 border-orange-400/30"}," Approve ")])],512)])):be("",!0)]),_:1})]))}}),o0=Dt(r0,[["__scopeId","data-v-a101a920"]]),i0=["aria-label"],a0={class:"relative mb-6 flex flex-col items-center"},l0={class:"nostr-hero"},c0={class:"nostr-viz-ring"},u0={class:"glass-card p-4 space-y-2 max-h-[50vh] overflow-y-auto",role:"radiogroup","aria-label":"Available identities"},f0={key:0,class:"flex items-center justify-center py-8"},d0={key:1,class:"text-center py-8"},p0=["aria-checked","aria-label","onClick"],h0={class:"flex items-center gap-3"},m0={class:"text-sm font-bold"},g0={class:"flex-1 min-w-0"},v0={class:"flex items-center gap-2"},y0={class:"text-white font-semibold text-sm truncate"},_0={key:0,class:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white/60"},b0={class:"mt-0.5"},w0={key:0,class:"text-white/35 text-xs font-mono truncate"},E0={key:1,class:"text-red-400/60 text-xs"},A0={class:"shrink-0"},S0={key:0,class:"w-5 h-5 rounded-full bg-white/15 flex items-center justify-center"},C0={key:1,class:"w-5 h-5 rounded-full bg-white/5"},k0={class:"flex gap-3 mt-4"},x0=["disabled"],T0=Ze({__name:"NostrIdentityPicker",props:{show:{type:Boolean},appName:{}},emits:["select","cancel"],setup(e,{emit:t}){const n=e,s=t,r=G(null),o=G([]),i=G(null),a=G(!1);ur(r,pe(()=>n.show),()=>s("cancel"));const l=pe(()=>o.value.find(b=>b.id===i.value)?.nostr_pubkey!=null);qe(()=>n.show,async p=>{p&&await c()}),ht(()=>{n.show&&c()});async function c(){a.value=!0;try{const p=await Ne.call({method:"identity.list"});o.value=p.identities||[];const b=o.value.find(h=>h.is_default&&h.nostr_pubkey)||o.value.find(h=>h.nostr_pubkey);b&&(i.value=b.id)}catch{o.value=[]}finally{a.value=!1}}function u(){const p=o.value.find(b=>b.id===i.value);p&&s("select",p)}function f(p){return p.length<=20?p:p.slice(0,12)+"..."+p.slice(-6)}function d(p){switch(p){case"business":return"bg-blue-500/15 text-blue-400";case"anonymous":return"bg-purple-500/15 text-purple-400";default:return"bg-white/10 text-white/80"}}return(p,b)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"identity-picker"},{default:Ye(()=>[e.show?(z(),Z("div",{key:0,class:"fixed inset-0 z-[3100] flex items-center justify-center p-4",onClick:b[2]||(b[2]=h=>p.$emit("cancel"))},[b[10]||(b[10]=_("div",{class:"absolute inset-0 bg-black/40 backdrop-blur-2xl"},null,-1)),_("div",{ref_key:"modalRef",ref:r,onClick:b[1]||(b[1]=Tn(()=>{},["stop"])),role:"dialog","aria-modal":"true","aria-label":`Select identity for ${e.appName}`,class:"relative z-10 w-full max-w-lg"},[_("div",a0,[_("div",l0,[_("div",c0,[(z(),Z(Be,null,Gt(48,(h,E)=>_("div",{key:E,class:"nostr-viz-segment",style:Tt({"--seg-i":E,"--seg-deg":`${E/48*360}deg`})},null,4)),64))]),b[3]||(b[3]=_("div",{class:"nostr-glass-border"},[_("div",{class:"nostr-glass-inner"},[_("svg",{viewBox:"0 0 122.88 88.39",width:"42",height:"30",xmlns:"http://www.w3.org/2000/svg",class:"nostr-cinema-svg"},[_("path",{fill:"#FAFAFA","fill-rule":"evenodd","clip-rule":"evenodd",d:"M87.51,21.16c5.26,1.45,10.79,1.84,16.58,1.18c1.42-0.16,2.81-0.35,4.16-0.53c6.46-0.84,11.86-1.32,13.78,3.52 c3.39,8.55-4.28,27.07-8.32,34.56c-8.32,15.43-24.9,32.69-44.08,27.57c-2.99-0.8-5.68-2.1-8.08-3.86 c6.3-3.51,11.28-8.9,15.13-15.24l-0.01,0.02c4.77,0.26,9.73,2.78,14.27,5.44c0.33-5.99-5.46-9.97-10.62-12.45 c4.14-9.29,6.33-19.72,7.01-29.03C87.53,29.46,87.64,25.53,87.51,21.16L87.51,21.16z M2.61,6.51c1.56-1.48,3.92-1.87,6.6-1.7 c5.03,0.31,10.23,1.86,15.11,3.18c10.61,2.86,20.99,1.93,31.1-2.74c1.36-0.63,2.69-1.28,3.98-1.9C65.56,0.37,70.8-1.9,74.31,2.3 c6.21,7.42,4.68,28.44,3.13,37.25c-3.2,18.15-14.03,40.87-34.88,42.1c-11.06,0.65-20.49-5.57-28.61-17.32 c-5.17-8-8.9-16.22-11.18-24.67C1.13,33.5-2.46,11.34,2.61,6.51L2.61,6.51z M12.94,34.3c-1.91-0.5-3.01-1.12-3.38-1.85 c-1.47-2.92,10.66-10.29,19.22-3.52C40.95,38.4,17.26,35.58,12.94,34.3L12.94,34.3z M32.63,62.79c-3.23-2.31-4.96-5.16-5.9-9.02 c10.67,5.4,20.66,5.01,29.96-2.42c-0.37,3.29-1.44,6.24-3.28,8.83C47.98,67.83,40.04,68.08,32.63,62.79L32.63,62.79z M67.07,30.06 c1.79-0.84,2.76-1.65,2.99-2.44c0.92-3.14-12.35-8.19-19.54,0.03C40.27,39.18,63.06,32.1,67.07,30.06L67.07,30.06z M90.82,42.07 c5.04-4.04,11.94-3.22,16.74,0.73c1.22,1.01,4.57,3.95,2.64,5.56c-0.53,0.44-1.41,0.69-2.63,0.75c-2.98,0.34-7.32-0.28-10.78-1.71 C94.07,46.3,92.01,44.83,90.82,42.07L90.82,42.07z"})])])],-1))]),b[4]||(b[4]=_("h2",{class:"mt-5 text-lg font-semibold text-white"},"Select Identity",-1)),b[5]||(b[5]=_("p",{class:"mt-1 text-white/25 tracking-widest uppercase",style:{"font-size":"10px"}},"Nostr authentication protocol",-1))]),_("div",u0,[a.value?(z(),Z("div",f0,[...b[6]||(b[6]=[_("svg",{class:"animate-spin h-6 w-6 text-white/40",viewBox:"0 0 24 24",fill:"none"},[_("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),_("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),_("span",{class:"ml-3 text-white/60 text-sm"},"Loading identities...",-1)])])):o.value.length===0?(z(),Z("div",d0,[...b[7]||(b[7]=[_("p",{class:"text-white/50 text-sm"},"No identities found.",-1),_("p",{class:"text-white/30 text-xs mt-1"},"Create one in Settings → Credentials",-1)])])):be("",!0),(z(!0),Z(Be,null,Gt(o.value,h=>(z(),Z("button",{key:h.id,type:"button",role:"radio","aria-checked":i.value===h.id,"aria-label":`Identity: ${h.name}`,class:$e(["w-full text-left p-3 rounded-lg transition-all duration-200",i.value===h.id?"bg-white/10 ring-1 ring-white/20":"bg-white/[0.03] hover:bg-white/[0.06]"]),onClick:E=>i.value=h.id},[_("div",h0,[_("div",{class:$e(["w-9 h-9 rounded-lg flex items-center justify-center shrink-0",d(h.purpose)])},[_("span",m0,Se(h.name.charAt(0).toUpperCase()),1)],2),_("div",g0,[_("div",v0,[_("span",y0,Se(h.name),1),h.is_default?(z(),Z("span",_0,"default")):be("",!0)]),_("div",b0,[h.nostr_npub?(z(),Z("span",w0,Se(f(h.nostr_npub)),1)):(z(),Z("span",E0,"No Nostr key"))])]),_("div",A0,[i.value===h.id?(z(),Z("div",S0,[...b[8]||(b[8]=[_("div",{class:"w-2.5 h-2.5 rounded-full bg-white/70"},null,-1)])])):(z(),Z("div",C0))])])],10,p0))),128))]),_("div",k0,[_("button",{onClick:b[0]||(b[0]=h=>p.$emit("cancel")),class:"glass-button flex-1 py-3 rounded-lg text-sm font-medium text-white/70"}," Cancel "),_("button",{onClick:u,disabled:!i.value||!l.value,class:$e(["flex-1 py-3 rounded-lg text-sm font-semibold transition-all duration-200 disabled:opacity-30 disabled:cursor-not-allowed",i.value&&l.value?"bg-white/10 text-white hover:bg-white/15":"bg-white/[0.03] text-white/40"])}," Authenticate ",10,x0)]),b[9]||(b[9]=_("p",{class:"mt-3 text-center text-[10px] text-white/20 tracking-widest"}," NIP-07 · SECP256K1 · Signed locally ",-1))],8,i0)])):be("",!0)]),_:1})]))}}),I0=Dt(T0,[["__scopeId","data-v-c00f5290"]]),R0={class:"sticky top-0 z-10 flex items-center gap-3 border-b border-white/10 px-4 py-3 bg-black/60 backdrop-blur-md md:bg-transparent md:backdrop-blur-none"},P0={class:"flex-1 truncate text-sm font-medium text-white/90"},L0=["disabled"],N0={class:"relative flex-1 min-h-0 bg-black/40 overflow-hidden"},O0={key:0,class:"absolute inset-0 z-10 flex items-center justify-center bg-black/40"},D0=["src"],M0={key:0,class:"absolute inset-0 z-10 flex flex-col items-center justify-center"},F0={key:0,class:"absolute inset-0 z-20 flex items-center justify-center bg-black/70 backdrop-blur-sm"},$0={class:"bg-black/80 border border-white/15 rounded-2xl p-6 w-full max-w-sm mx-4 shadow-2xl"},B0={class:"flex items-center gap-3 mb-4"},U0={class:"text-white/50 text-xs"},V0={class:"space-y-2 mb-4"},W0={class:"flex justify-between items-center p-3 bg-white/5 rounded-lg"},H0={class:"text-orange-400 font-bold text-lg"},j0={key:0,class:"flex justify-between items-center p-3 bg-white/5 rounded-lg"},K0={class:"text-white/80 text-sm truncate ml-2"},G0={class:"flex justify-between items-center p-3 bg-white/5 rounded-lg"},q0={class:"text-white/80 text-sm capitalize"},Y0={key:0,class:"mb-3 p-2 bg-red-500/15 border border-red-500/20 rounded-lg"},z0={class:"text-red-400 text-xs"},X0={class:"flex gap-3"},J0=["disabled"],Hl="archipelago_app_identity_",Q0=Ze({__name:"AppLauncherOverlay",setup(e){const t=qr(),n=G(null),s=G(null),r=G(0),o=G(!1),i=G(!0),a=G(!1),l=G(!1);function c(j){try{const K=Hl+j.replace(/[^a-z0-9]/gi,"_"),ie=localStorage.getItem(K);return ie?JSON.parse(ie):null}catch{return null}}function u(j,K){try{const ie=Hl+j.replace(/[^a-z0-9]/gi,"_");localStorage.setItem(ie,JSON.stringify(K))}catch{}}function f(j){l.value=!1,t.url&&u(t.url,j),d(j)}async function d(j){try{const K=`archipelago-identity:${Date.now()}`,ie=await Ne.call({method:"identity.sign",params:{id:j.id,message:K}}),Ae=s.value;if(!Ae?.contentWindow)return;Ae.contentWindow.postMessage({type:"archipelago:identity",did:j.did,name:j.name,pubkey:j.pubkey,nostr_pubkey:j.nostr_pubkey||null,nostr_npub:j.nostr_npub||null,challenge:K,signature:ie.signature},"*")}catch{}}let p=null,b=null;function h(){p&&(clearTimeout(p),p=null),b&&(clearTimeout(b),b=null)}const E=G(null),v=G(!1),w=G(""),C=G("");function S(){o.value=!0,i.value=!0,a.value=!1,h(),r.value++,p=setTimeout(()=>{i.value&&(i.value=!1,a.value=!0)},15e3)}function O(){t.url&&window.open(t.url,"_blank","noopener,noreferrer")}function D(){O(),t.close()}function k(){B(),o.value=!1,i.value=!1,Y(),p&&(clearTimeout(p),p=null),b=setTimeout(P,2e3)}function I(){h(),i.value=!1,a.value=!0}function P(){try{const j=s.value;if(!j)return;const K=j.contentDocument;if(!K)return;const ie=K.body;(!ie||ie.children.length===0&&ie.innerText.trim()==="")&&(a.value=!0)}catch{}}function q(j){return j.includes("indeehub")||j.includes("indeedhub")}async function Y(){if(!t.url||!q(t.url))return;const j=c(t.url);if(j){await d(j);return}l.value=!0}function B(){try{const j=s.value?.contentDocument;if(!j)return;const K=j.createElement("style");K.textContent=` * { -ms-overflow-style: none; scrollbar-width: none; } *::-webkit-scrollbar { display: none; } `,j.head.appendChild(K),j.addEventListener("keydown",ie=>{ie.key==="Escape"&&(ie.preventDefault(),window.parent.postMessage({type:"app-launcher-escape"},"*"))})}catch{}}const ae=["glass-card","w-full h-full","md:max-w-[calc(100vw-5rem)] md:max-h-[calc(100vh-5rem)]"];function re(j){j.key==="Escape"&&t.isOpen&&(t.close(),j.preventDefault(),j.stopPropagation())}function ve(j){j.data?.type==="app-launcher-escape"&&t.isOpen&&t.close(),j.data?.type==="archipelago:identity:request"&&t.isOpen&&Y(),j.data?.type==="archipelago:payment-request"&&t.isOpen&&ce(j)}function ce(j){const K=j.data;if(!K.amount_sats||typeof K.amount_sats!="number"||K.amount_sats<=0){N(j.origin,K.request_id,!1,"Invalid amount");return}E.value={request_id:K.request_id||`pay-${Date.now()}`,amount_sats:K.amount_sats,memo:K.memo,method:K.method||"auto",invoice:K.invoice,address:K.address},C.value=j.origin,w.value="",v.value=!1}function N(j,K,ie,Ae,we){const oe=s.value;oe?.contentWindow&&oe.contentWindow.postMessage({type:"archipelago:payment-response",request_id:K,success:ie,error:Ae||null,receipt:we||null},j||"*")}async function W(){if(!E.value||v.value)return;v.value=!0,w.value="";const j=E.value,K=ge(j);try{let ie={};if(K==="ecash"){const Ae=await Ne.call({method:"wallet.ecash-send",params:{amount_sats:j.amount_sats}});ie={method:"ecash",token:Ae.token,amount_sats:Ae.amount_sats}}else if(K==="lightning")if(j.invoice){const Ae=await Ne.call({method:"lnd.payinvoice",params:{payment_request:j.invoice}});ie={method:"lightning",payment_hash:Ae.payment_hash,amount_sats:Ae.amount_sats}}else ie={method:"lightning",payment_request:(await Ne.call({method:"lnd.createinvoice",params:{amount_sats:j.amount_sats,memo:j.memo||""}})).payment_request,amount_sats:j.amount_sats};else{if(!j.address){w.value="No Bitcoin address provided for on-chain payment";return}ie={method:"onchain",txid:(await Ne.call({method:"lnd.sendcoins",params:{addr:j.address,amount:j.amount_sats}})).txid,amount_sats:j.amount_sats}}N(C.value,j.request_id,!0,void 0,ie),E.value=null}catch(ie){const Ae=ie instanceof Error?ie.message:"Payment failed";w.value=Ae}finally{v.value=!1}}function X(){E.value&&(N(C.value,E.value.request_id,!1,"Payment denied by user"),E.value=null)}function ge(j){return j.method&&j.method!=="auto"?j.method:j.invoice?"lightning":j.address?"onchain":j.amount_sats<1e3?"ecash":j.amount_sats>5e5?"onchain":"lightning"}return qe(()=>t.isOpen,j=>{j?(i.value=!0,a.value=!1,h(),p=setTimeout(()=>{i.value&&(i.value=!1,a.value=!0)},15e3),n.value?.focus()):(o.value=!1,i.value=!0,a.value=!1,h(),E.value&&X())}),ht(()=>{window.addEventListener("keydown",re,!0),window.addEventListener("message",ve)}),Ot(()=>{h(),window.removeEventListener("keydown",re,!0),window.removeEventListener("message",ve)}),(j,K)=>(z(),Z(Be,null,[(z(),dt(Nt,{to:"body"},[de(tt,{name:"app-launcher"},{default:Ye(()=>[he(t).isOpen?(z(),Z("div",{key:0,class:"fixed inset-0 z-[2400] flex items-center justify-center p-0 md:p-10",onClick:K[1]||(K[1]=Tn(ie=>he(t).close(),["self"]))},[K[18]||(K[18]=_("div",{class:"app-launcher-backdrop absolute inset-0 bg-black/60 backdrop-blur-md"},null,-1)),_("div",{class:$e(["app-launcher-panel relative z-10 flex flex-col overflow-hidden rounded-none md:rounded-2xl shadow-2xl",ae])},[_("div",R0,[K[6]||(K[6]=_("div",{class:"hidden md:flex items-center justify-center w-8 h-8 shrink-0 rounded cursor-grab hover:bg-white/10 transition-colors"},[_("svg",{class:"w-4 h-4 text-white/50",fill:"currentColor",viewBox:"0 0 24 24"},[_("path",{d:"M8 6h2v2H8V6zm0 5h2v2H8v-2zm0 5h2v2H8v-2zm5-10h2v2h-2V6zm0 5h2v2h-2v-2zm0 5h2v2h-2v-2z"})])],-1)),_("span",P0,Se(he(t).title||"App"),1),_("button",{type:"button",class:"flex items-center justify-center w-9 h-9 rounded-lg hover:bg-white/15 text-white/70 hover:text-white transition-colors disabled:opacity-70","aria-label":"Refresh",disabled:o.value,onClick:S},[(z(),Z("svg",{class:$e(["w-5 h-5 transition-transform duration-300",{"animate-spin":o.value}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...K[3]||(K[3]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)])],2))],8,L0),_("button",{type:"button",class:"flex items-center justify-center w-9 h-9 rounded-lg hover:bg-white/15 text-white/70 hover:text-white transition-colors","aria-label":"Open in new tab",title:"Open in new tab",onClick:O},[...K[4]||(K[4]=[_("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)])]),_("button",{ref_key:"closeBtnRef",ref:n,type:"button",class:"flex items-center justify-center w-9 h-9 rounded-lg hover:bg-white/15 text-white/70 hover:text-white transition-colors","aria-label":"Close",onClick:K[0]||(K[0]=ie=>he(t).close())},[...K[5]||(K[5]=[_("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],512),K[7]||(K[7]=_("kbd",{class:"hidden sm:inline-flex px-2 py-1 text-xs text-white/50 bg-white/10 rounded"},"Esc",-1))]),_("div",N0,[de(tt,{name:"content-fade"},{default:Ye(()=>[i.value?(z(),Z("div",O0,[...K[8]||(K[8]=[_("svg",{class:"animate-spin h-8 w-8 text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[_("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),_("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):be("",!0)]),_:1}),he(t).url&&!a.value?(z(),Z("iframe",{ref_key:"iframeRef",ref:s,key:r.value,src:he(t).url,class:"absolute inset-0 w-full h-full border-0 iframe-scrollbar-hide",title:"App content",onLoad:k,onError:I},null,40,D0)):be("",!0),de(tt,{name:"content-fade"},{default:Ye(()=>[a.value&&!i.value?(z(),Z("div",M0,[_("div",{class:"text-center px-8"},[K[10]||(K[10]=_("div",{class:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-white/5 border border-white/10 flex items-center justify-center"},[_("svg",{class:"w-8 h-8 text-white/40",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M3 8V6a2 2 0 012-2h14a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2v-2m0-8h18M3 8v8m18-8v8"})])],-1)),K[11]||(K[11]=_("h3",{class:"text-lg font-semibold text-white mb-2"},"Can't display in frame",-1)),K[12]||(K[12]=_("p",{class:"text-white/50 text-sm mb-6"},[kn("This app doesn't support embedded viewing."),_("br"),kn("Please open it in a new tab instead.")],-1)),_("button",{onClick:D,class:"glass-button px-6 py-3 rounded-lg text-sm font-semibold inline-flex items-center gap-2"},[...K[9]||(K[9]=[_("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1),kn(" Open in new tab ",-1)])])])])):be("",!0)]),_:1}),de(tt,{name:"content-fade"},{default:Ye(()=>[E.value?(z(),Z("div",F0,[_("div",$0,[_("div",B0,[K[14]||(K[14]=_("div",{class:"w-10 h-10 rounded-lg bg-orange-500/20 flex items-center justify-center"},[_("svg",{class:"w-5 h-5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})])],-1)),_("div",null,[K[13]||(K[13]=_("h3",{class:"text-white font-semibold text-sm"},"Payment Request",-1)),_("p",U0,Se(he(t).title||"App")+" wants to make a payment",1)])]),_("div",V0,[_("div",W0,[K[15]||(K[15]=_("span",{class:"text-white/60 text-sm"},"Amount",-1)),_("span",H0,Se(E.value.amount_sats.toLocaleString())+" sats",1)]),E.value.memo?(z(),Z("div",j0,[K[16]||(K[16]=_("span",{class:"text-white/60 text-sm"},"Memo",-1)),_("span",K0,Se(E.value.memo),1)])):be("",!0),_("div",G0,[K[17]||(K[17]=_("span",{class:"text-white/60 text-sm"},"Method",-1)),_("span",q0,Se(E.value.method||"auto"),1)])]),w.value?(z(),Z("div",Y0,[_("p",z0,Se(w.value),1)])):be("",!0),_("div",X0,[_("button",{onClick:X,class:"flex-1 px-4 py-2.5 bg-white/5 border border-white/10 rounded-lg text-sm text-white/70 hover:bg-white/10 transition-colors"}," Deny "),_("button",{onClick:W,disabled:v.value,class:"flex-1 px-4 py-2.5 bg-orange-500/20 border border-orange-500/30 rounded-lg text-sm font-medium text-orange-300 hover:bg-orange-500/30 transition-colors disabled:opacity-50"},Se(v.value?"Paying...":"Approve"),9,J0)])])])):be("",!0)]),_:1})])])])):be("",!0)]),_:1})])),de(o0,{show:he(t).showConsent,"app-name":he(t).consentRequest?.appName??"",method:he(t).consentRequest?.method??"","event-kind":he(t).consentRequest?.eventKind,content:he(t).consentRequest?.content,onApprove:he(t).approveConsent,onDeny:he(t).denyConsent},null,8,["show","app-name","method","event-kind","content","onApprove","onDeny"]),de(I0,{show:l.value,"app-name":he(t).title||"App",onSelect:f,onCancel:K[2]||(K[2]=ie=>l.value=!1)},null,8,["show","app-name"])],64))}}),Z0=Dt(Q0,[["__scopeId","data-v-f9ce16c6"]]),Cn=G([]);let e_=0;function Uo(e,t="info",n=3e3){const s=e_++;Cn.value.push({id:s,message:e,variant:t,dismissing:!1}),n>0&&setTimeout(()=>Nf(s),n),Cn.value.length>5&&Cn.value.shift()}function Nf(e){const t=Cn.value.findIndex(n=>n.id===e);t!==-1&&(Cn.value[t].dismissing=!0,setTimeout(()=>{Cn.value=Cn.value.filter(n=>n.id!==e)},300))}function t_(){return{toasts:Pr(Cn),success:e=>Uo(e,"success"),error:e=>Uo(e,"error"),info:e=>Uo(e,"info"),dismiss:Nf}}const n_={class:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 pointer-events-none max-w-sm w-full"},s_=["onClick"],r_={class:"w-5 h-5 shrink-0 flex items-center justify-center"},o_={key:0,class:"w-5 h-5 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},i_={key:1,class:"w-5 h-5 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},a_={key:2,class:"w-5 h-5 text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},l_={class:"text-sm text-white/90 flex-1"},c_=Ze({__name:"ToastStack",setup(e){const{toasts:t,dismiss:n}=t_();function s(r){switch(r){case"success":return"bg-black/70 border-green-500/30 backdrop-blur-md";case"error":return"bg-black/70 border-red-500/30 backdrop-blur-md";default:return"bg-black/70 border-blue-500/30 backdrop-blur-md"}}return(r,o)=>(z(),dt(Nt,{to:"body"},[_("div",n_,[de(Uh,{name:"toast-stack"},{default:Ye(()=>[(z(!0),Z(Be,null,Gt(he(t),i=>(z(),Z("div",{key:i.id,class:$e(["toast-stack-item pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-xl border cursor-pointer",s(i.variant)]),onClick:a=>he(n)(i.id)},[_("div",r_,[i.variant==="success"?(z(),Z("svg",o_,[...o[0]||(o[0]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):i.variant==="error"?(z(),Z("svg",i_,[...o[1]||(o[1]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])])):(z(),Z("svg",a_,[...o[2]||(o[2]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])]))]),_("span",l_,Se(i.message),1)],10,s_))),128))]),_:1})])]))}}),u_=Dt(c_,[["__scopeId","data-v-57c85976"]]),f_=180*1e3,Of=Qn("screensaver",()=>{const e=G(!1);let t=null;function n(){e.value=!0,o()}function s(){e.value=!1,r()}function r(){o(),t=setTimeout(()=>{t=null,e.value=!0},f_)}function o(){t&&(clearTimeout(t),t=null)}return{isActive:e,activate:n,deactivate:s,resetInactivityTimer:r,clearInactivityTimer:o}}),d_={class:"screensaver-content"},p_={class:"screensaver-viz-ring"},h_={class:"screensaver-logo-wrapper"},jl=48,m_=Ze({__name:"Screensaver",setup(e){const t=Of();function n(r){const o=r/jl*360;return{"--segment-index":r,"--segment-deg":`${o}deg`}}function s(r){t.isActive&&(t.deactivate(),r.preventDefault())}return ht(()=>{window.addEventListener("keydown",s)}),Ot(()=>{window.removeEventListener("keydown",s)}),(r,o)=>(z(),dt(Nt,{to:"body"},[de(tt,{name:"screensaver"},{default:Ye(()=>[he(t).isActive?(z(),Z("div",{key:0,class:"screensaver-container fixed inset-0 z-[3000] bg-black cursor-pointer",onClick:o[0]||(o[0]=i=>he(t).deactivate()),onKeydown:o[1]||(o[1]=Qu(i=>he(t).deactivate(),["escape"]))},[_("div",d_,[_("div",p_,[(z(),Z(Be,null,Gt(jl,(i,a)=>_("div",{key:a,class:"screensaver-viz-segment",style:Tt(n(a))},null,4)),64))]),_("div",h_,[de(vf)])])],32)):be("",!0)]),_:1})]))}}),g_=Dt(m_,[["__scopeId","data-v-c0a3e6df"]]),v_={class:"flex items-start justify-between gap-4 mb-4"},y_={class:"text-xl font-semibold text-white"},__={class:"text-white/80 prose prose-invert max-w-none"},b_={class:"whitespace-pre-wrap"},w_={key:0,class:"mt-4"},E_=Ze({__name:"HelpGuideModal",props:{show:{type:Boolean},title:{},content:{},relatedPath:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,r=G(null);return ur(r,pe(()=>n.show),()=>s("close")),(o,i)=>{const a=yu("router-link");return z(),dt(Nt,{to:"body"},[de(tt,{name:"modal"},{default:Ye(()=>[e.show?(z(),Z("div",{key:0,class:"fixed inset-0 z-[3000] flex items-center justify-center p-4",onClick:i[3]||(i[3]=l=>o.$emit("close"))},[i[6]||(i[6]=_("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-sm"},null,-1)),_("div",{ref_key:"modalRef",ref:r,onClick:i[2]||(i[2]=Tn(()=>{},["stop"])),class:"glass-card p-6 max-w-lg w-full relative z-10 max-h-[80vh] overflow-y-auto"},[_("div",v_,[_("h3",y_,Se(e.title),1),_("button",{onClick:i[0]||(i[0]=l=>o.$emit("close")),class:"p-2 rounded-lg hover:bg-white/10 text-white/70 hover:text-white transition-colors","aria-label":"Close"},[...i[4]||(i[4]=[_("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),_("div",__,[_("p",b_,Se(e.content),1)]),e.relatedPath?(z(),Z("div",w_,[de(a,{to:e.relatedPath,class:"inline-flex items-center gap-2 px-4 py-2 glass-button rounded-lg text-sm font-medium",onClick:i[1]||(i[1]=l=>o.$emit("close"))},{default:Ye(()=>[...i[5]||(i[5]=[kn(" Go to related page ",-1),_("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),_:1},8,["to"])])):be("",!0)],512)])):be("",!0)]),_:1})])}}}),A_=Qn("controller",()=>{const e=G(!1),t=G(0);function n(r){e.value=r}function s(r){t.value=r,e.value=r>0}return{isActive:e,gamepadCount:t,setActive:n,setGamepadCount:s}}),S_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"[data-controller-focus]","[data-controller-container]"].join(", ");function Yr(e=document){return Array.from(e.querySelectorAll(S_)).filter(t=>!t.hasAttribute("disabled")&&t.offsetParent!==null&&!t.hasAttribute("data-controller-ignore")&&!t.closest("[data-controller-ignore]"))}function Vo(e){const t=document.querySelector(`[data-controller-zone="${e}"]`);return t?Yr(t):[]}function xs(e,t){return e?!!e.closest(`[data-controller-zone="${t}"]`):!1}function Kl(e){return Yr(e).filter(t=>t!==e&&!t.hasAttribute("data-controller-container"))}function Gl(e){if(!e)return!1;const t=e.closest("[data-controller-container]");return!!t&&t!==e}function ql(e,t,n){const s=e.getBoundingClientRect(),r=s.left+s.width/2,o=s.top+s.height/2,i=50,a=t.filter(c=>{if(c===e)return!1;const u=c.getBoundingClientRect();switch(n){case"left":return u.right<=s.left+i;case"right":return u.left>=s.right-i;case"up":return u.bottom<=s.top+i;case"down":return u.top>=s.bottom-i;default:return!1}});if(a.length===0)return null;const l=a.map(c=>{const u=c.getBoundingClientRect(),f=u.left+u.width/2,d=u.top+u.height/2;let p,b;switch(n){case"left":case"right":p=Math.max(0,Math.min(s.bottom,u.bottom)-Math.max(s.top,u.top)),b=Math.abs(f-r);break;case"up":case"down":p=Math.max(0,Math.min(s.right,u.right)-Math.max(s.left,u.left)),b=Math.abs(d-o);break;default:p=0,b=1/0}return{el:c,overlap:p,dist:b}});return l.sort((c,u)=>u.overlap!==c.overlap?u.overlap-c.overlap:c.dist-u.dist),l[0]?.el??null}function C_(e){const t=gf(),n=ho(),s=A_(),r=G(!1),o=G(0);qe([r,o],()=>{s.setActive(r.value),s.setGamepadCount(o.value)},{immediate:!0});let i=null,a=null;function l(){const h=navigator.getGamepads?.(),E=h?Array.from(h).filter(v=>v?.connected).length:0;E!==o.value&&(o.value=E,r.value=E>0)}function c(h){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Escape"].includes(h.key))return;const v=h.target;if((v.tagName==="INPUT"||v.tagName==="TEXTAREA")&&h.key!=="Escape")return;const C=Yr(document),S=C.indexOf(document.activeElement),O=document.activeElement;if(h.key==="Escape"){if(qr().isOpen){qr().close(),h.preventDefault(),h.stopPropagation();return}if(jr().isOpen){jr().close(),h.preventDefault(),h.stopPropagation();return}if(Js().isOpen){Js().close(),h.preventDefault(),h.stopPropagation();return}if(Gl(O)){const P=O.closest("[data-controller-container]");if(P&&P.tabIndex>=0){et("back"),P.focus(),P.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}}if(/\/apps\/[^/]+$|\/marketplace\/[^/]+$|\/cloud\/[^/]+$/.test(t.path)){et("back"),window.history.back(),h.preventDefault();return}const I=Vo("sidebar")[0];if(I&&xs(O,"main")){et("back"),I.focus(),I.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}et("back"),window.history.back(),h.preventDefault();return}if(h.key==="Enter"){if(S>=0&&C[S]){const D=C[S];if(D.hasAttribute("data-controller-container")){if(D.hasAttribute("data-controller-install")){const P=D.querySelector("[data-controller-install-btn]:not([disabled])");if(P){et("action"),P.click(),h.preventDefault();return}}if(D.hasAttribute("data-controller-launch")){const P=D.querySelector("[data-controller-launch-btn]:not([disabled])");if(P){et("action"),P.click(),h.preventDefault();return}}const I=Kl(D)[0];if(I){et("action"),I.focus(),I.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}}et("action"),D.click()}h.preventDefault();return}if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(h.key)){r.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{r.value=o.value>0},3e3);const D=Vo("sidebar"),k=Vo("main"),I=D.length>0&&k.length>0,P=document.querySelector('[data-controller-zone="main"]'),q=/^\/dashboard(\/)?$/.test(t.path),Y=/^\/dashboard\/(apps|marketplace)(\/|$)/.test(t.path),B=/^\/dashboard\/cloud(\/|$)/.test(t.path),ae=/^\/dashboard\/server(\/|$)/.test(t.path),re=/^\/dashboard\/web5(\/|$)/.test(t.path),ve=/^\/dashboard\/settings(\/|$)/.test(t.path),ce=P?.querySelector("[data-controller-container]"),N=P?.querySelector("[data-controller-main-entry]"),W=N?Yr(N)[0]:null,X=(q||Y||B||ae||re||ve)&&ce?ce:W??k[0];if(h.key==="ArrowRight"&&I&&xs(O,"sidebar")&&X){et("move"),X.focus(),X.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}if(I&&xs(O,"main")){const ie=h.key==="ArrowLeft"?"left":h.key==="ArrowRight"?"right":h.key==="ArrowUp"?"up":"down",Ae=ql(O,k,ie);if(Ae){et("move"),Ae.focus(),Ae.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}if(h.key==="ArrowLeft"&&ie==="left"){const M=document.querySelector('[data-controller-zone="sidebar"]')?.querySelector(".nav-tab-active")??D[0];if(M){et("move"),M.focus(),M.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}}}if(Gl(O)){const ie=O.closest("[data-controller-container]");if(ie){const Ae=Kl(ie),we=h.key==="ArrowLeft"?"left":h.key==="ArrowRight"?"right":h.key==="ArrowUp"?"up":"down",oe=ql(O,Ae,we);if(oe){et("move"),oe.focus(),oe.scrollIntoView({block:"nearest",behavior:"smooth"}),h.preventDefault();return}}}if(xs(O,"sidebar")){const ie=D.indexOf(O);if(ie>=0){const Ae=h.key==="ArrowDown";let we;Ae?we=ie>=D.length-1?0:ie+1:we=ie<=0?D.length-1:ie-1;const oe=D[we];if(oe&&oe!==O){if(et("move"),oe.focus(),oe.scrollIntoView({block:"nearest",behavior:"smooth"}),oe.tagName==="A"){const M=oe.getAttribute?.("href");M&&M.startsWith("/")&&n.push(M).catch(()=>{})}h.preventDefault();return}}}let ge=S;const j=h.key==="ArrowDown"||h.key==="ArrowRight";if(C.length===0)return;S<0?ge=j?0:C.length-1:(ge=j?S+1:S-1,ge<0&&(ge=C.length-1),ge>=C.length&&(ge=0));const K=C[ge];if(K){if(et("move"),K.focus(),K.scrollIntoView({block:"nearest",behavior:"smooth"}),xs(K,"sidebar")&&(h.key==="ArrowUp"||h.key==="ArrowDown")){const ie=K.getAttribute?.("href");ie&&ie.startsWith("/")&&K.tagName==="A"&&n.push(ie).catch(()=>{})}h.preventDefault()}}}function u(){l()}function f(){const h=navigator.getGamepads?.();o.value=h?Array.from(h).filter(E=>E?.connected).length:1,r.value=!0}function d(){const h=navigator.getGamepads?.();o.value=h?Array.from(h).filter(E=>E?.connected).length:0,r.value=o.value>0}function p(h){let E=h?.parentElement;for(;E;){const w=getComputedStyle(E).overflowY;if((w==="auto"||w==="scroll")&&E.scrollHeight>E.clientHeight)return E;E=E.parentElement}return null}function b(h){const E=document.activeElement;if(!E)return;const v=p(E);v&&(h.deltaY!==0&&(v.scrollTop+=h.deltaY,h.preventDefault()),h.deltaX!==0&&v.scrollWidth>v.clientWidth&&(v.scrollLeft+=h.deltaX,h.preventDefault()))}return ht(()=>{l(),window.addEventListener("keydown",c,!0),window.addEventListener("wheel",b,{passive:!1}),window.addEventListener("gamepadconnected",f),window.addEventListener("gamepaddisconnected",d),a=setInterval(u,500)}),Ot(()=>{window.removeEventListener("keydown",c,!0),window.removeEventListener("wheel",b),window.removeEventListener("gamepadconnected",f),window.removeEventListener("gamepaddisconnected",d),a&&clearInterval(a),i&&clearTimeout(i)}),{isControllerActive:r,gamepadCount:o}}const k_=3e4,vr=G([]),yn=G(0),Wo=G(!1),Ho=G({show:!1,text:""});let Ts=null;function x_(){const e=ho(),t=pe(()=>Math.max(0,vr.value.length-yn.value));async function n(){Wo.value=!0;try{const l=(await Ne.getReceivedMessages()).messages||[];if(vr.value=l,l.length>yn.value&&yn.value>0){const c=l.length-yn.value,u=l[l.length-1];Ho.value={show:!0,text:(c===1?u?.message:null)??`${c} new messages`},yn.value=l.length}else yn.value=l.length}catch(a){if(a instanceof Error&&/401|Unauthorized/i.test(a.message)){r();return}}finally{Wo.value=!1}}function s(){Ts||(n(),Ts=setInterval(n,k_))}function r(){Ts&&(clearInterval(Ts),Ts=null)}function o(){yn.value=vr.value.length}function i(){Ho.value={show:!1,text:""},o(),e.push({path:"/dashboard/web5",query:{tab:"messages"}})}return{receivedMessages:vr,lastMessageCount:yn,loadingMessages:Wo,toastMessage:Ho,unreadCount:t,loadReceivedMessages:n,startPolling:s,stopPolling:r,markAsRead:o,dismissToastAndOpenMessages:i}}const jo="archipelago-ui-mode",T_=Qn("uiMode",()=>{const e=G(t());function t(){const l=localStorage.getItem(jo);return l==="gamer"||l==="easy"||l==="chat"?l:"gamer"}function n(l){l&&["gamer","easy","chat"].includes(l)&&(e.value=l,localStorage.setItem(jo,l))}function s(l){e.value=l,localStorage.setItem(jo,l)}function r(){const l=["easy","gamer"],c=l.indexOf(e.value),u=l[(c>=0?c+1:0)%l.length];return s(u),u}const o=pe(()=>e.value==="gamer"),i=pe(()=>e.value==="easy"),a=pe(()=>e.value==="chat");return{mode:e,setMode:s,cycleMode:r,syncFromBackend:n,isGamer:o,isEasy:i,isChat:a}}),I_={id:"app"},R_={class:"flex items-start gap-3"},P_={class:"min-w-0 flex-1"},L_={class:"mt-0.5 text-sm text-white/70 line-clamp-2"},N_=Ze({__name:"App",setup(e){const t=ho(),n=Of(),s=jr(),r=Js(),o=ia(),i=T_(),a=x_(),l=a.toastMessage;C_(),qe(()=>o.isAuthenticated,h=>{h?(a.startPolling(),n.resetInactivityTimer()):(a.stopPolling(),l.value={show:!1,text:""},n.clearInactivityTimer(),n.deactivate())},{immediate:!0});function c(){o.isAuthenticated&&!n.isActive&&n.resetInactivityTimer()}function u(h){const v=navigator.platform.toUpperCase().includes("MAC")?h.metaKey:h.ctrlKey,w=h.target,C=w.tagName==="INPUT"||w.tagName==="TEXTAREA"||w.isContentEditable;if(v&&h.key==="k"){h.preventDefault(),s.toggle();return}if((h.key==="f"||h.key==="F")&&!C&&!v&&!h.altKey){h.preventDefault(),r.toggle();return}if(v&&!C&&o.isAuthenticated){if(h.key==="1"){h.preventDefault(),i.setMode("easy"),t.push("/dashboard");return}if(h.key==="2"){h.preventDefault(),i.setMode("gamer"),t.push("/dashboard");return}if(h.key==="3"){h.preventDefault(),t.push("/dashboard/chat");return}}if(v&&(h.key==="m"||h.key==="M")&&!C&&o.isAuthenticated){h.preventDefault(),i.cycleMode(),t.push("/dashboard");return}(h.key==="s"||h.key==="S")&&!C&&o.isAuthenticated&&!n.isActive&&(h.preventDefault(),n.activate()),C&&h.key.length===1&&!h.ctrlKey&&!h.metaKey&&!h.altKey&&yf()}const f=gf(),d=G(!0),p=G(!1);ht(async()=>{window.addEventListener("keydown",u,!0),window.addEventListener("mousemove",c),window.addEventListener("mousedown",c),window.addEventListener("keydown",c),window.addEventListener("touchstart",c);const h=localStorage.getItem("neode_intro_seen")==="1",E=f.path!=="/";(h||E)&&(d.value=!1,document.body.classList.add("splash-complete"),await t.isReady(),p.value=!0)}),Ot(()=>{window.removeEventListener("keydown",u,!0),window.removeEventListener("mousemove",c),window.removeEventListener("mousedown",c),window.removeEventListener("keydown",c),window.removeEventListener("touchstart",c)});async function b(){d.value=!1,document.body.classList.add("splash-complete"),p.value=!0,sessionStorage.setItem("archipelago_from_splash","1");try{const{isOnboardingComplete:h}=await _e(async()=>{const{isOnboardingComplete:w}=await import("./useOnboarding-BgpIyX9l.js");return{isOnboardingComplete:w}},[]),v=await h()?"/login":"/onboarding/intro";t.push(v).catch(()=>{})}catch{t.push("/onboarding/intro").catch(()=>{})}}return(h,E)=>{const v=yu("RouterView");return z(),Z("div",I_,[d.value?(z(),dt(Xg,{key:0,onComplete:b})):be("",!0),!d.value&&p.value?(z(),dt(v,{key:1})):be("",!0),de(Py),de(Gy),de(Z0),de(u_),de(g_),de(E_,{show:he(s).helpModal.show,title:he(s).helpModal.title,content:he(s).helpModal.content,"related-path":he(s).helpModal.relatedPath,onClose:E[0]||(E[0]=w=>he(s).closeHelpModal())},null,8,["show","title","content","related-path"]),de(Qg),de(nv),(z(),dt(Nt,{to:"body"},[de(tt,{name:"toast"},{default:Ye(()=>[he(l).show?(z(),Z("div",{key:0,onClick:E[1]||(E[1]=(...w)=>he(a).dismissToastAndOpenMessages&&he(a).dismissToastAndOpenMessages(...w)),class:"fixed top-20 right-4 left-4 z-[100] w-auto max-w-md cursor-pointer rounded-xl p-4 transition-all hover:border-white/30 hover:shadow-2xl md:top-6 md:right-6 md:left-auto md:max-w-md toast-glass"},[_("div",R_,[E[4]||(E[4]=_("div",{class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-orange-500/20"},[_("svg",{class:"h-5 w-5 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})])],-1)),_("div",P_,[E[2]||(E[2]=_("p",{class:"text-sm font-medium text-white"},"New message",-1)),_("p",L_,Se(he(l).text),1),E[3]||(E[3]=_("p",{class:"mt-1 text-xs text-orange-400"},"Click to view",-1))])])])):be("",!0)]),_:1})]))])}}}),O_=(e,t,n)=>{const s=e[t];return s?typeof s=="function"?s():Promise.resolve(s):new Promise((r,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};function D_(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const zr=typeof window<"u",Pn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),M_=(e,t,n)=>F_({l:e,k:t,s:n}),F_=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ze=e=>typeof e=="number"&&isFinite(e),Df=e=>aa(e)==="[object Date]",ms=e=>aa(e)==="[object RegExp]",vo=e=>ke(e)&&Object.keys(e).length===0,Qe=Object.assign,$_=Object.create,Oe=(e=null)=>$_(e);let Yl;const jn=()=>Yl||(Yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Oe());function zl(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Xl(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function B_(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${Xl(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${Xl(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript:")}),e}const U_=Object.prototype.hasOwnProperty;function kt(e,t){return U_.call(e,t)}const Ge=Array.isArray,Ue=e=>typeof e=="function",te=e=>typeof e=="string",xe=e=>typeof e=="boolean",Pe=e=>e!==null&&typeof e=="object",V_=e=>Pe(e)&&Ue(e.then)&&Ue(e.catch),Mf=Object.prototype.toString,aa=e=>Mf.call(e),ke=e=>aa(e)==="[object Object]",W_=e=>e==null?"":Ge(e)||ke(e)&&e.toString===Mf?JSON.stringify(e,null,2):String(e);function la(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const yr=e=>!Pe(e)||Ge(e);function Tr(e,t){if(yr(e)||yr(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Pe(s[o])&&!Pe(r[o])&&(r[o]=Array.isArray(s[o])?[]:Oe()),yr(r[o])||yr(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function H_(e,t,n){return{line:e,column:t,offset:n}}function Si(e,t,n){return{start:e,end:t}}const Ie={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},j_=17;function yo(e,t,n={}){const{domain:s,messages:r,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function K_(e){throw e}const $t=" ",G_="\r",nt=` `,q_="\u2028",Y_="\u2029";function z_(e){const t=e;let n=0,s=1,r=1,o=0;const i=k=>t[k]===G_&&t[k+1]===nt,a=k=>t[k]===nt,l=k=>t[k]===Y_,c=k=>t[k]===q_,u=k=>i(k)||a(k)||l(k)||c(k),f=()=>n,d=()=>s,p=()=>r,b=()=>o,h=k=>i(k)||l(k)||c(k)?nt:t[k],E=()=>h(n),v=()=>h(n+o);function w(){return o=0,u(n)&&(s++,r=0),i(n)&&n++,n++,r++,t[n]}function C(){return i(n+o)&&o++,o++,t[n+o]}function S(){n=0,s=1,r=1,o=0}function O(k=0){o=k}function D(){const k=n+o;for(;k!==n;)w();o=0}return{index:f,line:d,column:p,peekOffset:b,charAt:h,currentChar:E,currentPeek:v,next:w,peek:C,reset:S,resetPeek:O,skipToPeek:D}}const en=void 0,X_=".",Jl="'",J_="tokenizer";function Q_(e,t={}){const n=t.location!==!1,s=z_(e),r=()=>s.index(),o=()=>H_(s.line(),s.column(),s.index()),i=o(),a=r(),l={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(m,g,x,...L){const Q=c();if(g.column+=x,g.offset+=x,u){const H=n?Si(Q.startLoc,g):null,T=yo(m,H,{domain:J_,args:L});u(T)}}function d(m,g,x){m.endLoc=o(),m.currentType=g;const L={type:g};return n&&(L.loc=Si(m.startLoc,m.endLoc)),x!=null&&(L.value=x),L}const p=m=>d(m,13);function b(m,g){return m.currentChar()===g?(m.next(),g):(f(Ie.EXPECTED_TOKEN,o(),0,g),"")}function h(m){let g="";for(;m.currentPeek()===$t||m.currentPeek()===nt;)g+=m.currentPeek(),m.peek();return g}function E(m){const g=h(m);return m.skipToPeek(),g}function v(m){if(m===en)return!1;const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function w(m){if(m===en)return!1;const g=m.charCodeAt(0);return g>=48&&g<=57}function C(m,g){const{currentType:x}=g;if(x!==2)return!1;h(m);const L=v(m.currentPeek());return m.resetPeek(),L}function S(m,g){const{currentType:x}=g;if(x!==2)return!1;h(m);const L=m.currentPeek()==="-"?m.peek():m.currentPeek(),Q=w(L);return m.resetPeek(),Q}function O(m,g){const{currentType:x}=g;if(x!==2)return!1;h(m);const L=m.currentPeek()===Jl;return m.resetPeek(),L}function D(m,g){const{currentType:x}=g;if(x!==7)return!1;h(m);const L=m.currentPeek()===".";return m.resetPeek(),L}function k(m,g){const{currentType:x}=g;if(x!==8)return!1;h(m);const L=v(m.currentPeek());return m.resetPeek(),L}function I(m,g){const{currentType:x}=g;if(!(x===7||x===11))return!1;h(m);const L=m.currentPeek()===":";return m.resetPeek(),L}function P(m,g){const{currentType:x}=g;if(x!==9)return!1;const L=()=>{const H=m.currentPeek();return H==="{"?v(m.peek()):H==="@"||H==="|"||H===":"||H==="."||H===$t||!H?!1:H===nt?(m.peek(),L()):Y(m,!1)},Q=L();return m.resetPeek(),Q}function q(m){h(m);const g=m.currentPeek()==="|";return m.resetPeek(),g}function Y(m,g=!0){const x=(Q=!1,H="")=>{const T=m.currentPeek();return T==="{"||T==="@"||!T?Q:T==="|"?!(H===$t||H===nt):T===$t?(m.peek(),x(!0,$t)):T===nt?(m.peek(),x(!0,nt)):!0},L=x();return g&&m.resetPeek(),L}function B(m,g){const x=m.currentChar();return x===en?en:g(x)?(m.next(),x):null}function ae(m){const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36}function re(m){return B(m,ae)}function ve(m){const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36||g===45}function ce(m){return B(m,ve)}function N(m){const g=m.charCodeAt(0);return g>=48&&g<=57}function W(m){return B(m,N)}function X(m){const g=m.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function ge(m){return B(m,X)}function j(m){let g="",x="";for(;g=W(m);)x+=g;return x}function K(m){let g="";for(;;){const x=m.currentChar();if(x==="\\"){const L=m.peek();L==="{"||L==="}"||L==="@"||L==="|"||L==="\\"?(g+=x+L,m.next(),m.next()):(m.resetPeek(),g+=x,m.next())}else{if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===$t||x===nt)if(Y(m))g+=x,m.next();else{if(q(m))break;g+=x,m.next()}else g+=x,m.next()}}return g}function ie(m){E(m);let g="",x="";for(;g=ce(m);)x+=g;const L=m.currentChar();if(L&&L!=="}"&&L!==en&&L!==$t&&L!==nt&&L!==" "){const Q=se(m);return f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,x+Q),x+Q}return m.currentChar()===en&&f(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),x}function Ae(m){E(m);let g="";return m.currentChar()==="-"?(m.next(),g+=`-${j(m)}`):g+=j(m),m.currentChar()===en&&f(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),g}function we(m){return m!==Jl&&m!==nt}function oe(m){E(m),b(m,"'");let g="",x="";for(;g=B(m,we);)g==="\\"?x+=M(m):x+=g;const L=m.currentChar();return L===nt||L===en?(f(Ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),L===nt&&(m.next(),b(m,"'")),x):(b(m,"'"),x)}function M(m){const g=m.currentChar();switch(g){case"\\":case"'":return m.next(),`\\${g}`;case"u":return ee(m,g,4);case"U":return ee(m,g,6);default:return f(Ie.UNKNOWN_ESCAPE_SEQUENCE,o(),0,g),""}}function ee(m,g,x){b(m,g);let L="";for(let Q=0;Q{const L=m.currentChar();return L==="{"||L==="@"||L==="|"||L==="("||L===")"||!L||L===$t?x:(x+=L,m.next(),g(x))};return g("")}function A(m){E(m);const g=b(m,"|");return E(m),g}function R(m,g){let x=null;switch(m.currentChar()){case"{":return g.braceNest>=1&&f(Ie.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),m.next(),x=d(g,2,"{"),E(m),g.braceNest++,x;case"}":return g.braceNest>0&&g.currentType===2&&f(Ie.EMPTY_PLACEHOLDER,o(),0),m.next(),x=d(g,3,"}"),g.braceNest--,g.braceNest>0&&E(m),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),x;case"@":return g.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),x=$(m,g)||p(g),g.braceNest=0,x;default:{let Q=!0,H=!0,T=!0;if(q(m))return g.braceNest>0&&f(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),x=d(g,1,A(m)),g.braceNest=0,g.inLinked=!1,x;if(g.braceNest>0&&(g.currentType===4||g.currentType===5||g.currentType===6))return f(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),g.braceNest=0,V(m,g);if(Q=C(m,g))return x=d(g,4,ie(m)),E(m),x;if(H=S(m,g))return x=d(g,5,Ae(m)),E(m),x;if(T=O(m,g))return x=d(g,6,oe(m)),E(m),x;if(!Q&&!H&&!T)return x=d(g,12,se(m)),f(Ie.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,x.value),E(m),x;break}}return x}function $(m,g){const{currentType:x}=g;let L=null;const Q=m.currentChar();switch((x===7||x===8||x===11||x===9)&&(Q===nt||Q===$t)&&f(Ie.INVALID_LINKED_FORMAT,o(),0),Q){case"@":return m.next(),L=d(g,7,"@"),g.inLinked=!0,L;case".":return E(m),m.next(),d(g,8,".");case":":return E(m),m.next(),d(g,9,":");default:return q(m)?(L=d(g,1,A(m)),g.braceNest=0,g.inLinked=!1,L):D(m,g)||I(m,g)?(E(m),$(m,g)):k(m,g)?(E(m),d(g,11,ye(m))):P(m,g)?(E(m),Q==="{"?R(m,g)||L:d(g,10,y(m))):(x===7&&f(Ie.INVALID_LINKED_FORMAT,o(),0),g.braceNest=0,g.inLinked=!1,V(m,g))}}function V(m,g){let x={type:13};if(g.braceNest>0)return R(m,g)||p(g);if(g.inLinked)return $(m,g)||p(g);switch(m.currentChar()){case"{":return R(m,g)||p(g);case"}":return f(Ie.UNBALANCED_CLOSING_BRACE,o(),0),m.next(),d(g,3,"}");case"@":return $(m,g)||p(g);default:{if(q(m))return x=d(g,1,A(m)),g.braceNest=0,g.inLinked=!1,x;if(Y(m))return d(g,0,K(m));break}}return x}function U(){const{currentType:m,offset:g,startLoc:x,endLoc:L}=l;return l.lastType=m,l.lastOffset=g,l.lastStartLoc=x,l.lastEndLoc=L,l.offset=r(),l.startLoc=o(),s.currentChar()===en?d(l,13):V(s,l)}return{nextToken:U,currentOffset:r,currentPosition:o,context:c}}const Z_="parser",eb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,tb=/\\([\\@{}|])/g;function nb(e,t){return t}function sb(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function rb(e={}){const t=e.location!==!1,{onError:n}=e;function s(v,w,C,S,...O){const D=v.currentPosition();if(D.offset+=S,D.column+=S,n){const k=t?Si(C,D):null,I=yo(w,k,{domain:Z_,args:O});n(I)}}function r(v,w,C){const S={type:v};return t&&(S.start=w,S.end=w,S.loc={start:C,end:C}),S}function o(v,w,C,S){t&&(v.end=w,v.loc&&(v.loc.end=C))}function i(v,w){const C=v.context(),S=r(3,C.offset,C.startLoc);return S.value=w.replace(tb,nb),o(S,v.currentOffset(),v.currentPosition()),S}function a(v,w){const C=v.context(),{lastOffset:S,lastStartLoc:O}=C,D=r(5,S,O);return D.index=parseInt(w,10),v.nextToken(),o(D,v.currentOffset(),v.currentPosition()),D}function l(v,w){const C=v.context(),{lastOffset:S,lastStartLoc:O}=C,D=r(4,S,O);return D.key=w,v.nextToken(),o(D,v.currentOffset(),v.currentPosition()),D}function c(v,w){const C=v.context(),{lastOffset:S,lastStartLoc:O}=C,D=r(9,S,O);return D.value=w.replace(eb,sb),v.nextToken(),o(D,v.currentOffset(),v.currentPosition()),D}function u(v){const w=v.nextToken(),C=v.context(),{lastOffset:S,lastStartLoc:O}=C,D=r(8,S,O);return w.type!==11?(s(v,Ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),D.value="",o(D,S,O),{nextConsumeToken:w,node:D}):(w.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Bt(w)),D.value=w.value||"",o(D,v.currentOffset(),v.currentPosition()),{node:D})}function f(v,w){const C=v.context(),S=r(7,C.offset,C.startLoc);return S.value=w,o(S,v.currentOffset(),v.currentPosition()),S}function d(v){const w=v.context(),C=r(6,w.offset,w.startLoc);let S=v.nextToken();if(S.type===8){const O=u(v);C.modifier=O.node,S=O.nextConsumeToken||v.nextToken()}switch(S.type!==9&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(S)),S=v.nextToken(),S.type===2&&(S=v.nextToken()),S.type){case 10:S.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(S)),C.key=f(v,S.value||"");break;case 4:S.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(S)),C.key=l(v,S.value||"");break;case 5:S.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(S)),C.key=a(v,S.value||"");break;case 6:S.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(S)),C.key=c(v,S.value||"");break;default:{s(v,Ie.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const O=v.context(),D=r(7,O.offset,O.startLoc);return D.value="",o(D,O.offset,O.startLoc),C.key=D,o(C,O.offset,O.startLoc),{nextConsumeToken:S,node:C}}}return o(C,v.currentOffset(),v.currentPosition()),{node:C}}function p(v){const w=v.context(),C=w.currentType===1?v.currentOffset():w.offset,S=w.currentType===1?w.endLoc:w.startLoc,O=r(2,C,S);O.items=[];let D=null;do{const P=D||v.nextToken();switch(D=null,P.type){case 0:P.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(P)),O.items.push(i(v,P.value||""));break;case 5:P.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(P)),O.items.push(a(v,P.value||""));break;case 4:P.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(P)),O.items.push(l(v,P.value||""));break;case 6:P.value==null&&s(v,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Bt(P)),O.items.push(c(v,P.value||""));break;case 7:{const q=d(v);O.items.push(q.node),D=q.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const k=w.currentType===1?w.lastOffset:v.currentOffset(),I=w.currentType===1?w.lastEndLoc:v.currentPosition();return o(O,k,I),O}function b(v,w,C,S){const O=v.context();let D=S.items.length===0;const k=r(1,w,C);k.cases=[],k.cases.push(S);do{const I=p(v);D||(D=I.items.length===0),k.cases.push(I)}while(O.currentType!==13);return D&&s(v,Ie.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),o(k,v.currentOffset(),v.currentPosition()),k}function h(v){const w=v.context(),{offset:C,startLoc:S}=w,O=p(v);return w.currentType===13?O:b(v,C,S,O)}function E(v){const w=Q_(v,Qe({},e)),C=w.context(),S=r(0,C.offset,C.startLoc);return t&&S.loc&&(S.loc.source=v),S.body=h(w),e.onCacheKey&&(S.cacheKey=e.onCacheKey(v)),C.currentType!==13&&s(w,Ie.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,v[C.offset]||""),o(S,w.currentOffset(),w.currentPosition()),S}return{parse:E}}function Bt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ob(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Ql(e,t){for(let n=0;nZl(n)),e}function Zl(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function l(h,E){i.code+=h}function c(h,E=!0){const v=E?s:"";l(r?v+" ".repeat(h):v)}function u(h=!0){const E=++i.indentLevel;h&&c(E)}function f(h=!0){const E=--i.indentLevel;h&&c(E)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function cb(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),gs(e,t.key),t.modifier?(e.push(", "),gs(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ub(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o{const n=te(t.mode)?t.mode:"normal",s=te(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=lb(e,{filename:s,breakLineCode:r,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${la(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),gs(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function hb(e,t={}){const n=Qe({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,a=rb(n).parse(e);return s?(o&&ab(a),r&&rs(a),{ast:a,code:""}):(ib(a,n),pb(a,n))}function mb(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(jn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(jn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Xt(e){return Pe(e)&&ua(e)===0&&(kt(e,"b")||kt(e,"body"))}const Ff=["b","body"];function gb(e){return Ln(e,Ff)}const $f=["c","cases"];function vb(e){return Ln(e,$f,[])}const Bf=["s","static"];function yb(e){return Ln(e,Bf)}const Uf=["i","items"];function _b(e){return Ln(e,Uf,[])}const Vf=["t","type"];function ua(e){return Ln(e,Vf)}const Wf=["v","value"];function _r(e,t){const n=Ln(e,Wf);if(n!=null)return n;throw Zs(t)}const Hf=["m","modifier"];function bb(e){return Ln(e,Hf)}const jf=["k","key"];function wb(e){const t=Ln(e,jf);if(t)return t;throw Zs(6)}function Ln(e,t,n){for(let s=0;sEb(n,e)}function Eb(e,t){const n=gb(t);if(n==null)throw Zs(0);if(ua(n)===1){const o=vb(n);return e.plural(o.reduce((i,a)=>[...i,ec(e,a)],[]))}else return ec(e,n)}function ec(e,t){const n=yb(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=_b(t).reduce((r,o)=>[...r,Ci(e,o)],[]);return e.normalize(s)}}function Ci(e,t){const n=ua(t);switch(n){case 3:return _r(t,n);case 9:return _r(t,n);case 4:{const s=t;if(kt(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(kt(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Zs(n)}case 5:{const s=t;if(kt(s,"i")&&ze(s.i))return e.interpolate(e.list(s.i));if(kt(s,"index")&&ze(s.index))return e.interpolate(e.list(s.index));throw Zs(n)}case 6:{const s=t,r=bb(s),o=wb(s);return e.linked(Ci(e,o),r?Ci(e,r):void 0,e.type)}case 7:return _r(t,n);case 8:return _r(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ab=e=>e;let br=Oe();function Sb(e,t={}){let n=!1;const s=t.onError||K_;return t.onError=r=>{n=!0,s(r)},{...hb(e,t),detectError:n}}function Cb(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&te(e)){xe(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||Ab)(e),r=br[s];if(r)return r;const{ast:o,detectError:i}=Sb(e,{...t,location:!1,jit:!0}),a=Ko(o);return i?a:br[s]=a}else{const n=e.cacheKey;if(n){const s=br[n];return s||(br[n]=Ko(e))}else return Ko(e)}}let er=null;function kb(e){er=e}function xb(e,t,n){er&&er.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Tb=Ib("function:translate");function Ib(e){return t=>er&&er.emit(e,t)}const on={INVALID_ARGUMENT:j_,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Rb=24;function an(e){return yo(e,null,void 0)}function fa(e,t){return t.locale!=null?tc(t.locale):tc(e.locale)}let Go;function tc(e){if(te(e))return e;if(Ue(e)){if(e.resolvedOnce&&Go!=null)return Go;if(e.constructor.name==="Function"){const t=e();if(V_(t))throw an(on.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Go=t}else throw an(on.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw an(on.NOT_SUPPORT_LOCALE_TYPE)}function Pb(e,t,n){return[...new Set([n,...Ge(t)?t:Pe(t)?Object.keys(t):te(t)?[t]:[n]])]}function ki(e,t,n){const s=te(n)?n:tr,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let i=[n];for(;Ge(i);)i=nc(o,i,t);const a=Ge(t)||!ke(t)?t:t.default?t.default:null;i=te(a)?[a]:a,Ge(i)&&nc(o,i,!1),r.__localeChainCache.set(s,o)}return o}function nc(e,t,n){let s=!0;for(let r=0;r{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),r++},d[3]=()=>{if(r>0)r--,s=4,d[0]();else{if(r=0,i===void 0||(i=$b(i),i===!1))return!1;d[1]()}};function p(){const b=e[n+1];if(s===5&&b==="'"||s===6&&b==='"')return n++,a="\\"+b,d[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=Fb(o),f=Nn[s],c=f[l]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=o,u()===!1))))return;if(s===7)return t}}const sc=new Map;function Ub(e,t){return Pe(e)?e[t]:null}function Vb(e,t){if(!Pe(e))return null;let n=sc.get(t);if(n||(n=Bb(t),n&&sc.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Hb(){return{upper:(e,t)=>t==="text"&&te(e)?e.toUpperCase():t==="vnode"&&Pe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&te(e)?e.toLowerCase():t==="vnode"&&Pe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&te(e)?rc(e):t==="vnode"&&Pe(e)&&"__v_isVNode"in e?rc(e.children):e}}let Gf;function jb(e){Gf=e}let qf;function Kb(e){qf=e}let Yf;function Gb(e){Yf=e}let zf=null;const qb=e=>{zf=e},Yb=()=>zf;let Xf=null;const oc=e=>{Xf=e},zb=()=>Xf;let ic=0;function Xb(e={}){const t=Ue(e.onWarn)?e.onWarn:D_,n=te(e.version)?e.version:Wb,s=te(e.locale)||Ue(e.locale)?e.locale:tr,r=Ue(s)?tr:s,o=Ge(e.fallbackLocale)||ke(e.fallbackLocale)||te(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,i=ke(e.messages)?e.messages:qo(r),a=ke(e.datetimeFormats)?e.datetimeFormats:qo(r),l=ke(e.numberFormats)?e.numberFormats:qo(r),c=Qe(Oe(),e.modifiers,Hb()),u=e.pluralRules||Oe(),f=Ue(e.missing)?e.missing:null,d=xe(e.missingWarn)||ms(e.missingWarn)?e.missingWarn:!0,p=xe(e.fallbackWarn)||ms(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,h=!!e.unresolving,E=Ue(e.postTranslation)?e.postTranslation:null,v=ke(e.processor)?e.processor:null,w=xe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,S=Ue(e.messageCompiler)?e.messageCompiler:Gf,O=Ue(e.messageResolver)?e.messageResolver:qf||Ub,D=Ue(e.localeFallbacker)?e.localeFallbacker:Yf||Pb,k=Pe(e.fallbackContext)?e.fallbackContext:void 0,I=e,P=Pe(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,q=Pe(I.__numberFormatters)?I.__numberFormatters:new Map,Y=Pe(I.__meta)?I.__meta:{};ic++;const B={version:n,cid:ic,locale:s,fallbackLocale:o,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:b,unresolving:h,postTranslation:E,processor:v,warnHtmlMessage:w,escapeParameter:C,messageCompiler:S,messageResolver:O,localeFallbacker:D,fallbackContext:k,onWarn:t,__meta:Y};return B.datetimeFormats=a,B.numberFormats=l,B.__datetimeFormatters=P,B.__numberFormatters=q,__INTLIFY_PROD_DEVTOOLS__&&xb(B,n,Y),B}const qo=e=>({[e]:Oe()});function da(e,t,n,s,r){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,r);return te(a)?a:t}else return t}function Is(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Jb(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qb(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s{Jf.includes(l)?i[l]=n[l]:o[l]=n[l]}),te(s)?o.locale=s:ke(s)&&(i=s),ke(r)&&(i=r),[o.key||"",a,o,i]}function lc(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function cc(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e;if(!ze(t[0]))return Xr;const[l,c,u,f]=Ti(...t),d=xe(u.missingWarn)?u.missingWarn:e.missingWarn;xe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,b=fa(e,u),h=i(e,r,b);if(!te(l)||l==="")return new Intl.NumberFormat(b.replace(/!/g,""),f).format(c);let E={},v,w=null;const C="number format";for(let D=0;D{Qf.includes(l)?i[l]=n[l]:o[l]=n[l]}),te(s)?o.locale=s:ke(s)&&(i=s),ke(r)&&(i=r),[o.key||"",a,o,i]}function uc(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Zb=e=>e,ew=e=>"",tw="text",nw=e=>e.length===0?"":la(e),sw=W_;function Yo(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function rw(e){const t=ze(e.pluralIndex)?e.pluralIndex:-1;return ze(e.named?.count)?e.named.count:ze(e.named?.n)?e.named.n:t}function ow(e={}){const t=e.locale,n=rw(e),s=te(t)&&Ue(e.pluralRules?.[t])?e.pluralRules[t]:Yo,r=s===Yo?void 0:Yo,o=v=>v[s(n,v.length,r)],i=e.list||[],a=v=>i[v],l=e.named||Oe();ze(e.pluralIndex)&&(l.count||=e.pluralIndex,l.n||=e.pluralIndex);const c=v=>l[v];function u(v,w){const C=Ue(e.messages)?e.messages(v,!!w):Pe(e.messages)?e.messages[v]:!1;return C||(e.parent?e.parent.message(v):ew)}const f=v=>e.modifiers?e.modifiers[v]:Zb,d=Ue(e.processor?.normalize)?e.processor.normalize:nw,p=Ue(e.processor?.interpolate)?e.processor.interpolate:sw,b=te(e.processor?.type)?e.processor.type:tw,E={list:a,named:c,plural:o,linked:(v,...w)=>{const[C,S]=w;let O="text",D="";w.length===1?Pe(C)?(D=C.modifier||D,O=C.type||O):te(C)&&(D=C||D):w.length===2&&(te(C)&&(D=C||D),te(S)&&(O=S||O));const k=u(v,!0)(E),I=k===""||k===void 0?v:k,P=O==="vnode"&&Ge(I)&&D?I[0]:I;return D?f(D)(P,O):P},message:u,type:b,interpolate:p,normalize:d,values:Qe(Oe(),i,l)};return E}const fc=()=>"",Ct=e=>Ue(e);function dc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:i,messages:a}=e,[l,c]=Ii(...t),u=xe(c.missingWarn)?c.missingWarn:e.missingWarn,f=xe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=xe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,b=te(c.default)||xe(c.default)?xe(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,h=n||b!=null&&(te(b)||Ue(b)),E=fa(e,c);d&&iw(c);let[v,w,C]=p?[l,E,a[E]||Oe()]:Zf(e,l,E,i,f,u),S=v,O=l;if(!p&&!(te(S)||Xt(S)||Ct(S))&&h&&(S=b,O=S),!p&&(!(te(S)||Xt(S)||Ct(S))||!te(w)))return r?_o:l;let D=!1;const k=()=>{D=!0},I=Ct(S)?S:ed(e,l,w,S,O,k);if(D)return S;const P=cw(e,w,C,c),q=ow(P),Y=aw(e,I,q);let B=s?s(Y,l):Y;if(d&&te(B)&&(B=B_(B)),__INTLIFY_PROD_DEVTOOLS__){const ae={timestamp:Date.now(),key:te(l)?l:Ct(S)?S.key:"",locale:w||(Ct(S)?S.locale:""),format:te(S)?S:Ct(S)?S.source:"",message:B};ae.meta=Qe({},e.__meta,Yb()||{}),Tb(ae)}return B}function iw(e){Ge(e.list)?e.list=e.list.map(t=>te(t)?zl(t):t):Pe(e.named)&&Object.keys(e.named).forEach(t=>{te(e.named[t])&&(e.named[t]=zl(e.named[t]))})}function Zf(e,t,n,s,r,o){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,s,n);let f=Oe(),d,p=null;const b="translate";for(let h=0;hs);return c.locale=n,c.key=t,c}const l=i(s,lw(e,n,r,s,a,o));return l.locale=n,l.key=t,l.source=s,l}function aw(e,t,n){return t(n)}function Ii(...e){const[t,n,s]=e,r=Oe();if(!te(t)&&!ze(t)&&!Ct(t)&&!Xt(t))throw an(on.INVALID_ARGUMENT);const o=ze(t)?String(t):(Ct(t),t);return ze(n)?r.plural=n:te(n)?r.default=n:ke(n)&&!vo(n)?r.named=n:Ge(n)&&(r.list=n),ze(s)?r.plural=s:te(s)?r.default=s:ke(s)&&Qe(r,s),[o,r]}function lw(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:i=>{throw o&&o(i),i},onCacheKey:i=>M_(t,n,i)}}function cw(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:r,pluralRules:o,messages:(p,b)=>{let h=i(n,p);if(h==null&&(u||b)){const[,,E]=Zf(u||e,p,t,a,l,c);h=i(E,p)}if(te(h)||Xt(h)){let E=!1;const w=ed(e,p,t,h,p,()=>{E=!0});return E?fc:w}else return Ct(h)?h:fc}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),ze(s.plural)&&(d.pluralIndex=s.plural),d}mb();const uw="11.3.0";function fw(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(jn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(jn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(jn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(jn().__INTLIFY_PROD_DEVTOOLS__=!1)}const pt={UNEXPECTED_RETURN_TYPE:Rb,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Et(e,...t){return yo(e,null,void 0)}const Ri=Pn("__translateVNode"),Pi=Pn("__datetimeParts"),Li=Pn("__numberParts"),td=Pn("__setPluralRules"),nd=Pn("__injectWithOption"),Ni=Pn("__dispose");function nr(e){if(!Pe(e)||Xt(e))return e;for(const t in e)if(kt(e,t))if(!t.includes("."))Pe(e[t])&&nr(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||Oe(),Tr(c,i[l])):Tr(c,i)}else te(a)&&Tr(JSON.parse(a),i)}),r==null&&o)for(const a in i)kt(i,a)&&nr(i[a]);return i}function sd(e){return e.type}function rd(e,t,n){let s=Pe(t.messages)?t.messages:Oe();"__i18nGlobal"in n&&(s=pa(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Pe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Pe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function pc(e){return de(ir,null,e,0)}function sr(){return ar()}const hc="__INTLIFY_META__",mc=()=>[],dw=()=>!1;let gc=0;function vc(e){return((t,n,s,r)=>e(n,s,sr()||void 0,r))}const pw=()=>{const e=sr();let t=null;return e&&(t=sd(e)[hc])?{[hc]:t}:null};function ha(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=zr?G:Xc;let i=xe(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:te(e.locale)?e.locale:tr),l=o(t&&i?t.fallbackLocale.value:te(e.fallbackLocale)||Ge(e.fallbackLocale)||ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=o(pa(a.value,e)),u=o(ke(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=o(ke(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:xe(e.missingWarn)||ms(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:xe(e.fallbackWarn)||ms(e.fallbackWarn)?e.fallbackWarn:!0,b=t?t.fallbackRoot:xe(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,E=Ue(e.missing)?e.missing:null,v=Ue(e.missing)?vc(e.missing):null,w=Ue(e.postTranslation)?e.postTranslation:null,C=t?t.warnHtmlMessage:xe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const O=t?t.modifiers:ke(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,k;k=(()=>{s&&oc(null);const T={version:uw,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:O,pluralRules:D,missing:v===null?void 0:v,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:C,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=u.value,T.numberFormats=f.value,T.__datetimeFormatters=ke(k)?k.__datetimeFormatters:void 0,T.__numberFormatters=ke(k)?k.__numberFormatters:void 0;const F=Xb(T);return s&&oc(F),F})(),Is(k,a.value,l.value);function P(){return[a.value,l.value,c.value,u.value,f.value]}const q=pe({get:()=>a.value,set:T=>{k.locale=T,a.value=T}}),Y=pe({get:()=>l.value,set:T=>{k.fallbackLocale=T,l.value=T,Is(k,a.value,T)}}),B=pe(()=>c.value),ae=pe(()=>u.value),re=pe(()=>f.value);function ve(){return Ue(w)?w:null}function ce(T){w=T,k.postTranslation=T}function N(){return E}function W(T){T!==null&&(v=vc(T)),E=T,k.missing=v}const X=(T,F,ne,ue,Ee,He)=>{P();let De;try{__INTLIFY_PROD_DEVTOOLS__,s||(k.fallbackContext=t?zb():void 0),De=T(k)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(k.fallbackContext=void 0)}if(ne!=="translate exists"&&ze(De)&&De===_o||ne==="translate exists"&&!De){const[At,xt]=F();return t&&b?ue(t):Ee(At)}else{if(He(De))return De;throw Et(pt.UNEXPECTED_RETURN_TYPE)}};function ge(...T){return X(F=>Reflect.apply(dc,null,[F,...T]),()=>Ii(...T),"translate",F=>Reflect.apply(F.t,F,[...T]),F=>F,F=>te(F))}function j(...T){const[F,ne,ue]=T;if(ue&&!Pe(ue))throw Et(pt.INVALID_ARGUMENT);return ge(F,ne,Qe({resolvedMessage:!0},ue||{}))}function K(...T){return X(F=>Reflect.apply(ac,null,[F,...T]),()=>xi(...T),"datetime format",F=>Reflect.apply(F.d,F,[...T]),()=>Xr,F=>te(F)||Ge(F))}function ie(...T){return X(F=>Reflect.apply(cc,null,[F,...T]),()=>Ti(...T),"number format",F=>Reflect.apply(F.n,F,[...T]),()=>Xr,F=>te(F)||Ge(F))}function Ae(T){return T.map(F=>te(F)||ze(F)||xe(F)?pc(String(F)):F)}const oe={normalize:Ae,interpolate:T=>T,type:"vnode"};function M(...T){return X(F=>{let ne;const ue=F;try{ue.processor=oe,ne=Reflect.apply(dc,null,[ue,...T])}finally{ue.processor=null}return ne},()=>Ii(...T),"translate",F=>F[Ri](...T),F=>[pc(F)],F=>Ge(F))}function ee(...T){return X(F=>Reflect.apply(cc,null,[F,...T]),()=>Ti(...T),"number format",F=>F[Li](...T),mc,F=>te(F)||Ge(F))}function J(...T){return X(F=>Reflect.apply(ac,null,[F,...T]),()=>xi(...T),"datetime format",F=>F[Pi](...T),mc,F=>te(F)||Ge(F))}function se(T){D=T,k.pluralRules=D}function ye(T,F){return X(()=>{if(!T)return!1;const ne=te(F)?F:a.value,ue=te(F)?[ne]:ki(k,l.value,ne);for(let Ee=0;Ee[T],"translate exists",ne=>Reflect.apply(ne.te,ne,[T,F]),dw,ne=>xe(ne))}function y(T){let F=null;const ne=ki(k,l.value,a.value);for(let ue=0;ue{i&&(a.value=T,k.locale=T,Is(k,a.value,l.value))}),qe(t.fallbackLocale,T=>{i&&(l.value=T,k.fallbackLocale=T,Is(k,a.value,l.value))}));const H={id:gc,locale:q,fallbackLocale:Y,get inheritLocale(){return i},set inheritLocale(T){i=T,T&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Is(k,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:B,get modifiers(){return O},get pluralRules(){return D||{}},get isGlobal(){return s},get missingWarn(){return d},set missingWarn(T){d=T,k.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(T){p=T,k.fallbackWarn=p},get fallbackRoot(){return b},set fallbackRoot(T){b=T},get fallbackFormat(){return h},set fallbackFormat(T){h=T,k.fallbackFormat=h},get warnHtmlMessage(){return C},set warnHtmlMessage(T){C=T,k.warnHtmlMessage=T},get escapeParameter(){return S},set escapeParameter(T){S=T,k.escapeParameter=T},t:ge,getLocaleMessage:R,setLocaleMessage:$,mergeLocaleMessage:V,getPostTranslationHandler:ve,setPostTranslationHandler:ce,getMissingHandler:N,setMissingHandler:W,[td]:se};return H.datetimeFormats=ae,H.numberFormats=re,H.rt=j,H.te=ye,H.tm=A,H.d=K,H.n=ie,H.getDateTimeFormat=U,H.setDateTimeFormat=m,H.mergeDateTimeFormat=g,H.getNumberFormat=x,H.setNumberFormat=L,H.mergeNumberFormat=Q,H[nd]=n,H[Ri]=M,H[Pi]=J,H[Li]=ee,H}function hw(e){const t=te(e.locale)?e.locale:tr,n=te(e.fallbackLocale)||Ge(e.fallbackLocale)||ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Ue(e.missing)?e.missing:void 0,r=xe(e.silentTranslationWarn)||ms(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=xe(e.silentFallbackWarn)||ms(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=xe(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=ke(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Ue(e.postTranslation)?e.postTranslation:void 0,f=te(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,p=xe(e.sync)?e.sync:!0;let b=e.messages;if(ke(e.sharedMessages)){const O=e.sharedMessages;b=Object.keys(O).reduce((k,I)=>{const P=k[I]||(k[I]={});return Qe(P,O[I]),k},b||{})}const{__i18n:h,__root:E,__injectWithOption:v}=e,w=e.datetimeFormats,C=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:n,messages:b,flatJson:S,datetimeFormats:w,numberFormats:C,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:E,__injectWithOption:v}}function Oi(e={}){const t=ha(hw(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return xe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=xe(r)?!r:r},get silentFallbackWarn(){return xe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=xe(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function mw(e,t,n){return{beforeCreate(){const s=sr();if(!s)throw Et(pt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=yc(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Oi(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=yc(e,r);else{this.$i18n=Oi({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&rd(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=sr();if(!s)throw Et(pt.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function yc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[td](t.pluralizationRules||e.pluralizationRules);const n=pa(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const ma={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function gw({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===Be?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Oe())}function od(){return Be}const vw=Ze({name:"i18n-t",props:Qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ze(e)||!isNaN(e)}},ma),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||ga({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),i=Oe();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=te(e.plural)?+e.plural:e.plural);const a=gw(t,o),l=r[Ri](e.keypath,a,i),c=Qe(Oe(),s),u=te(e.tag)||Pe(e.tag)?e.tag:od();return cr(u,c,l)}}}),_c=vw;function yw(e){return Ge(e)&&!te(e[0])}function id(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const i={part:!0};let a=Oe();e.locale&&(i.locale=e.locale),te(e.format)?i.key=e.format:Pe(e.format)&&(te(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>n.includes(p)?Qe(Oe(),d,{[p]:e.format[p]}):d,Oe()));const l=s(e.value,i,a);let c=[i.key];Ge(l)?c=l.map((d,p)=>{const b=r[d.type],h=b?b({[d.type]:d.value,index:p,parts:l}):[d.value];return yw(h)&&(h[0].key=`${d.type}-${p}`),h}):te(l)&&(c=[l]);const u=Qe(Oe(),o),f=te(e.tag)||Pe(e.tag)?e.tag:od();return cr(f,u,c)}}const _w=Ze({name:"i18n-n",props:Qe({value:{type:Number,required:!0},format:{type:[String,Object]}},ma),setup(e,t){const n=e.i18n||ga({useScope:e.scope,__useComponent:!0});return id(e,t,Qf,(...s)=>n[Li](...s))}}),bc=_w;function bw(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function ww(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw Et(pt.UNEXPECTED_ERROR);const c=bw(e,a.$),u=wc(l);return[Reflect.apply(c.t,c,[...Ec(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);zr&&(i.__i18nWatcher=qe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{zr&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=wc(a);i.textContent=Reflect.apply(l.t,l,[...Ec(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function wc(e){if(te(e))return{path:e};if(ke(e)){if(!("path"in e))throw Et(pt.REQUIRED_VALUE,"path");return e}else throw Et(pt.INVALID_VALUE)}function Ec(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,i={},a=s||{};return te(n)&&(i.locale=n),ze(r)&&(i.plural=r),ze(o)&&(i.plural=o),[t,a,i]}function Ew(e,t,...n){const s=ke(n[0])?n[0]:{};(!xe(s.globalInstall)||s.globalInstall)&&([_c.name,"I18nT"].forEach(o=>e.component(o,_c)),[bc.name,"I18nN"].forEach(o=>e.component(o,bc)),[Sc.name,"I18nD"].forEach(o=>e.component(o,Sc))),e.directive("t",ww(t))}const Aw=Pn("global-vue-i18n");function Sw(e={}){const t=__VUE_I18N_LEGACY_API__&&xe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=xe(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=Cw(e,t),i=Pn("");function a(f){return s.get(f)||null}function l(f,d){s.set(f,d)}function c(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,u),ke(d[0])){const h=d[0];u.__composerExtend=h.__composerExtend,u.__vueI18nExtend=h.__vueI18nExtend}let p=null;!t&&n&&(p=Nw(f,u.global)),__VUE_I18N_FULL_INSTALL__&&Ew(f,u,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(mw(o,o.__composer,u));const b=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),b()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function ga(e={}){const t=sr();if(t==null)throw Et(pt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Et(pt.NOT_INSTALLED);const n=kw(t),s=Tw(n),r=sd(t),o=xw(e,r);if(o==="global")return rd(s,e,r),s;if(o==="parent"){let l=Iw(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Qe({},e);"__i18n"in r&&(l.__i18n=r.__i18n),s&&(l.__root=s),a=ha(l),i.__composerExtend&&(a[Ni]=i.__composerExtend(a)),Pw(i,t,a),i.__setInstance(t,a)}return a}function Cw(e,t){const n=Bi(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Oi(e)):n.run(()=>ha(e));if(s==null)throw Et(pt.UNEXPECTED_ERROR);return[n,s]}function kw(e){const t=wt(e.isCE?Aw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Et(e.isCE?pt.NOT_INSTALLED_WITH_PROVIDE:pt.UNEXPECTED_ERROR);return t}function xw(e,t){return vo(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Tw(e){return e.mode==="composition"?e.global:e.global.__composer}function Iw(e,t,n=!1){let s=null;const r=t.root;let o=Rw(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(s=a.__composer,n&&s&&!s[nd]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Rw(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Pw(e,t,n){ht(()=>{},t),Xi(()=>{const s=n;e.__deleteInstance(t);const r=s[Ni];r&&(r(),delete s[Ni])},t)}const Lw=["locale","fallbackLocale","availableLocales"],Ac=["t","rt","d","n","tm","te"];function Nw(e,t){const n=Object.create(null);return Lw.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Et(pt.UNEXPECTED_ERROR);const i=Ve(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,Ac.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Et(pt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,Ac.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Ow=Ze({name:"i18n-d",props:Qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ma),setup(e,t){const n=e.i18n||ga({useScope:e.scope,__useComponent:!0});return id(e,t,Jf,(...s)=>n[Pi](...s))}}),Sc=Ow;fw();jb(Cb);Kb(Vb);Gb(ki);if(__INTLIFY_PROD_DEVTOOLS__){const e=jn();e.__INTLIFY__=!0,kb(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const ad={cancel:"Cancel",save:"Save",close:"Close",copy:"Copy",copied:"Copied",copiedBang:"Copied!",loading:"Loading...",retry:"Retry",refresh:"Refresh",install:"Install",installing:"Installing...",uninstall:"Uninstall",uninstalling:"Uninstalling...",start:"Start",stop:"Stop",restart:"Restart",launch:"Launch",starting:"Starting...",stopping:"Stopping...",send:"Send",sending:"Sending...",back:"Back",done:"Done",manage:"Manage",connect:"Connect",connecting:"Connecting...",disconnect:"Disconnect",running:"running",stopped:"stopped",exited:"exited",healthy:"Healthy",elevated:"Elevated",critical:"Critical",connected:"Connected",disconnected:"Disconnected",active:"Active",inactive:"Inactive",synced:"Synced",enabled:"Enabled",disabled:"Disabled",dismiss:"Dismiss",apply:"Apply",configure:"Configure",export:"Export",delete:"Delete",remove:"Remove",error:"Error",version:"Version",status:"Status",category:"Category",developer:"Developer",license:"License",never:"Never",notAvailable:"Not Available",goBack:"Go back",skipToContent:"Skip to main content",continue:"Continue",verify:"Verify",create:"Create",restore:"Restore",disabling:"Disabling...",creating:"Creating...",restoring:"Restoring...",manageUpdates:"Manage Updates",enableAll:"Enable All",networkDiagnostics:"Network Diagnostics",network:"Network",saveConfiguration:"Save Configuration",sendTest:"Send Test"},ld={title:"Welcome to Archipelago",setupTitle:"Set Up Your Node",twoFactorTitle:"Two-Factor Authentication",password:"Password",confirmPassword:"Confirm Password",enterPasswordPlaceholder:"Enter your password",enterPasswordSetup:"Enter a password (min 8 characters)",confirmPasswordPlaceholder:"Confirm your password",setupButton:"Set Up Node",settingUp:"Setting up...",loginButton:"Login",loggingIn:"Logging in...",verifyButton:"Verify",verifying:"Verifying...",useAuthCode:"Use authenticator code",useBackupCode:"Use a backup code instead",totpInstruction:"Enter the 6-digit code from your authenticator app",totpPlaceholder:"000000",backupCodePlaceholder:"XXXX-XXXX",serverStarting:"Server starting up...",replayIntro:"Replay Intro",onboarding:"Onboarding",resetting:"Resetting...",recoveryNote:"Password recovery requires SSH access to the server.",errorMinLength:"Password must be at least 8 characters",errorMismatch:"Passwords do not match",errorServerStarting:"Server is starting up. Please try again in a moment.",errorSetupFailed:"Setup failed. Please try again.",errorLoginFailed:"Login failed. Please check your password.",errorInvalidCode:"Invalid code. Please try again.",totpLabel:"Two-factor authentication code"},cd={title:"Welcome Noderunner",subtitle:"Here's an overview of your sovereign life",dashboardTab:"Dashboard",setupTab:"Setup",myApps:"My Apps",myAppsDesc:"Manage your installed applications",cloud:"Cloud",cloudDesc:"Cloud services and storage",network:"Network",networkDesc:"Network infrastructure and Web3 services",web5:"Web5",web5Desc:"Decentralized identity and data protocols",system:"System",quickStartGoals:"Quick Start Goals",quickStartDesc:"Not sure where to start? Try a guided setup.",installed:"Installed",runningLabel:"Running",storageUsed:"Storage Used",folders:"Folders",servicesStatus:"Services Status",connectivity:"Connectivity",runningApps:"Running Apps",didStatus:"DID Status",dwnSync:"DWN Sync",credentials:"Credentials",cpu:"CPU",ram:"RAM",disk:"Disk",browseStore:"Browse Store",manageApps:"Manage Apps",viewFolders:"View Folders",uploadFiles:"Upload Files",manageNetwork:"Manage Network",manageWeb5:"Manage Web5",openAI:"Open AI Assistant",noApps:"No Apps",allRunning:"All Running",systemMonitoring:"System monitoring",updateAvailable:"Update Available: v{version}",updateNow:"Update Now",goToApps:"Go to Apps",goToCloud:"Go to Cloud",goToNetwork:"Go to Network",goToWeb5:"Go to Web5",goToSettings:"Go to Settings"},ud={title:"My Apps",subtitle:"Manage your installed applications",searchPlaceholder:"Search installed apps...",noAppsTitle:"No Apps Installed",noAppsMessage:"Get started by browsing the app store",browseAppStore:"Browse App Store",noResults:'No apps matching "{query}"',uninstallTitle:"Uninstall App?",uninstallConfirm:"Are you sure you want to uninstall {name}? This will remove the app and stop its container.",dismissError:"Dismiss error",searchLabel:"Search installed apps"},fd={title:"Settings",subtitle:"Configure your Archipelago experience",account:"Account",interfaceMode:"Interface Mode",claudeAuth:"Claude Authentication",aiDataAccess:"AI Data Access",serverName:"Server Name",sessionStatus:"Session Status",yourDid:"Your DID",onionAddress:"Node .onion Address",loggedIn:"Currently logged in",didHelper:"Decentralized identifier for passwordless auth",onionHelper:"Onion address for node interface and peer discovery over Tor",changePassword:"Change Password",enable2fa:"Enable 2FA",disable2fa:"Disable 2FA",logout:"Logout",loggingOut:"Logging out...",twoFactorAuth:"Two-Factor Authentication",twoFaProtect:"Protect your account with an authenticator app",changePasswordTitle:"Change Password",changePasswordDesc:"Updates both web login and SSH access. Use a strong password (12+ chars, upper, lower, digit, special).",currentPassword:"Current Password",newPassword:"New Password",confirmNewPassword:"Confirm New Password",passwordPlaceholder:"12+ chars, upper, lower, digit, special",updateSshCheckbox:"Also update SSH password (recommended)",updatePassword:"Update Password",updatingPassword:"Updating...",setup2faTitle:"Two-Factor Authentication",setup2faPasswordPrompt:"Enter your password to begin setup.",scanQrCode:"Scan QR Code",scanQrInstruction:"Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.), then enter the 6-digit code.",manualEntryKey:"Manual entry key:",verifyAndEnable:"Verify & Enable",saveBackupCodes:"Save Your Backup Codes",backupCodesInstruction:"Store these codes safely. Each can be used once if you lose access to your authenticator app.",copyAllCodes:"Copy All Codes",disable2faTitle:"Disable Two-Factor Authentication",disable2faDesc:"Enter your password and a current TOTP code to disable 2FA.",authenticatorCode:"Authenticator Code",webhooks:"Webhooks",webhooksDesc:"Get notified when important events happen on your node",webhookUrl:"Webhook URL",webhookUrlPlaceholder:"https://example.com/webhook",webhookSecret:"Secret (for HMAC signing)",webhookSecretPlaceholder:"Optional shared secret",webhookEvents:"Events",containerCrash:"Container Crash",updateAvailableEvent:"Update Available",diskWarning:"Disk Warning",backupComplete:"Backup Complete",saveWebhook:"Save",savingWebhook:"Saving...",testWebhook:"Test",testingWebhook:"Testing...",webhookSaved:"Webhook configuration saved",webhookTestSent:"Test webhook sent successfully",systemUpdates:"System Updates",backup:"Backup & Restore",backupDesc:"Back up your node data to external storage",createBackup:"Create Backup",creatingBackup:"Creating...",restoreBackup:"Restore Backup",deleteBackup:"Delete backup",backupCreated:"Backup created successfully",sendMessage:"Send Message",sendMessageTitle:"Send Broadcast Message",messagePlaceholder:"Enter your message...",messageSent:"Message sent",claudeConnected:"Connected to Claude",claudeDisconnected:"Not connected",claudeApiKey:"API Key",claudeApiKeyPlaceholder:"Enter your Anthropic API key",claudeSave:"Save Key",advancedMode:"Advanced Mode",beginnerMode:"Beginner Mode",advancedModeDesc:"Show all system controls and developer tools",beginnerModeDesc:"Simplified interface with guided experience",networkSettings:"Network Settings",torEnabled:"Tor Enabled",torAddress:"Tor Address",interfaceModeDesc:"Choose how you want to interact with your node.",claudeAuthDesc:"Connect your Claude Max account to enable AI chat features.",connectionStatus:"Connection Status",notConnected:"Not connected",reAuthenticate:"Re-authenticate",loginWithClaude:"Login with Claude",aiDataAccessDesc:"Control what data the AI assistant can see. All categories are off by default.",enableAllDesc:"Grant access to all data categories at once",systemUpdatesDesc:"Check for and install software updates",webhookNotifications:"Webhook Notifications",webhookNotificationsDesc:"Get push notifications for critical events via webhook",enableWebhooks:"Enable webhooks",disableWebhooks:"Disable webhooks",webhookUrlLabel:"Webhook URL",webhookSecretLabel:"Secret (optional, for HMAC-SHA256 signing)",eventsToNotify:"Events to notify",containerCrashDesc:"A running container stops unexpectedly",updateAvailableDesc:"A new system or app update is ready",diskWarningDesc:"Disk usage exceeds warning threshold",backupCompleteDesc:"A scheduled or manual backup finishes",backupRestoreDesc:"Encrypted backups of your identity, settings, and data",loadingBackups:"Loading backups...",noBackups:"No backups yet. Create one to protect your node data.",systemBackup:"System Backup",createEncryptedBackup:"Create Encrypted Backup",encryptionPassphrase:"Encryption Passphrase",enterPassphrase:"Enter a strong passphrase",descriptionOptional:"Description (optional)",descriptionPlaceholder:"e.g. Before update",restoreBackupTitle:"Restore Backup",restoreWarning:"This will overwrite current node data. Make sure you have the correct passphrase.",enterBackupPassphrase:"Enter backup passphrase",networkDesc:"Network connectivity, UPnP, and diagnostics",webhookSecretPlaceholderFull:"Shared secret for payload signing",backupCreatedSuccess:"Backup created successfully",backupCreateFailed:"Failed to create backup",backupVerifiedOk:"Backup verified — integrity OK",backupVerifyFailed:"Verification failed: {error}",backupVerifyRequestFailed:"Verification request failed",backupRestored:"Backup restored. Restart may be needed.",backupRestoreFailed:"Restore failed — check passphrase",backupDeleted:"Backup deleted",backupDeleteFailed:"Failed to delete backup",noUsbDrives:"No mounted USB drives found. Insert and mount a USB drive first.",backupCopiedToUsb:"Backup copied to {path}",backupUsbFailed:"Failed to copy backup to USB",deleteBackupConfirm:"Delete this backup permanently?",verifyPassphrasePrompt:"Enter backup passphrase to verify:",webhookSaveFailed:"Failed to save webhook configuration",webhookTestFailed:"Test failed: webhook not sent",webhookSendFailed:"Failed to send test webhook",passwordAllFieldsRequired:"All fields are required",passwordMismatch:"New passwords do not match",passwordUpdatedSuccess:"Password updated successfully. Use the new password for login and SSH.",passwordChangeFailed:"Failed to change password",passwordMinLength:"Password must be at least 12 characters",passwordNeedUppercase:"Password must contain at least one uppercase letter",passwordNeedLowercase:"Password must contain at least one lowercase letter",passwordNeedDigit:"Password must contain at least one digit",passwordNeedSpecial:"Password must contain at least one special character (!@#$%^&* etc.)",setupFailed:"Setup failed",verificationFailed:"Verification failed",disableFailed:"Failed to disable 2FA",copyToUsb:"Copy to USB",diskSpaceWarning:"Disk Space Warning",modeEasy:"Easy",modeEasyDesc:"Goal-based interface. Choose what you want to do, and the system handles the rest.",modePro:"Pro",modeProDesc:"Full control over all services. Configure everything manually with all technical details.",modeChat:"AIUI",modeChatDesc:"Conversational AI interface. Manage your node through natural language. Coming soon."},dd={title:"App Store",subtitle:"Discover and install apps for your new sovereign life",curatedTab:"Curated",communityTab:"Community",nostrCommunityTab:"Nostr Community",filterByCategory:"Filter by Category",searchPlaceholder:"Search apps...",downloading:"Downloading...",alreadyInstalled:"Already Installed",queryingRelays:"Querying Nostr relays for apps...",noCommunityApps:"No community apps discovered yet.",noResults:'No apps found in {category} matching "{query}"',noResultsCategory:"No apps found in {category}",noResultsSearch:'No apps matching "{query}"',all:"All",community:"Community",commerce:"Commerce",money:"Money",data:"Data",homeCategory:"Home",auto:"Auto",networking:"Networking",other:"Other",searchApps:"Search apps",percentComplete:"{percent}% complete"},pd={mainNav:"Main navigation",mobileNav:"Mobile navigation"},hd={close:"Close",aiuiConnected:"AIUI connected",closeAssistant:"Close AI Assistant",loadingAssistant:"Loading AI assistant...",aiAssistant:"AI Assistant",notConfigured:"AI Assistant needs to be enabled before use.",deployCta:"Go to Settings to configure your AI provider API key, then return here to start chatting."},md={title:"Web5",subtitle:"Decentralized identity and data protocols",profitsHelper:"Earn networking profits by hosting decentralized services",networkingProfits:"Networking Profits",didStatus:"DID Status",walletConnection:"Wallet Connection",wallet:"Wallet",walletSubtitle:"On-chain, Lightning & Ecash",nostrRelays:"Nostr Relays",connectedNodes:"Connected Nodes",bitcoinDomains:"Bitcoin Domain Names",domainsSubtitle:"NIP-05 verified identities",copyDid:"Copy",viewDidDocument:"View",createDid:"Create DID",creatingDid:"Creating...",manageDomains:"Manage Domains",relaysConnected:"{count} connected",peersKnown:"{count} peer(s) known",findNodes:"Find Nodes",sendMessage:"Send Message",sendMessageTitle:"Send Message (over Tor)",to:"To",selectPeer:"Select a peer...",message:"Message",messagePlaceholder:"Type your message...",didDocument:"DID Document",addContent:"Add Content",addContentTitle:"Add Content",createIdentity:"Create Identity",createIdentityTitle:"Create Identity",deleteIdentity:"Delete Identity",deleteIdentityTitle:"Delete Identity",sendBitcoin:"Send Bitcoin",sendBitcoinTitle:"Send Bitcoin",receiveBitcoin:"Receive Bitcoin",receiveBitcoinTitle:"Receive Bitcoin",domains:"Domains",domainsTitle:"Domains",relays:"Relays",relaysTitle:"Relays",totalEarned:"Total Earned",monthlyAvg:"Monthly Avg",ecashBalance:"Ecash Balance",onChain:"On-chain",lightning:"Lightning",ecash:"Ecash",identityName:"Identity Name",identityNamePlaceholder:"Enter identity name",contentTitle:"Title",contentTitlePlaceholder:"Enter content title",amount:"Amount",amountPlaceholder:"Enter amount in sats",address:"Address",addressPlaceholder:"Enter Bitcoin address",deleteIdentityConfirm:"Are you sure you want to delete this identity? This action cannot be undone.",confirm:"Confirm",noRelays:"No relays connected",noDomains:"No domains configured",addRelay:"Add Relay",addDomain:"Add Domain",relayUrl:"Relay URL",relayUrlPlaceholder:"wss://relay.example.com",domainName:"Domain Name",domainNamePlaceholder:"user{'@'}example.com",peerNodesDescription:"Peer nodes discovered via Nostr. Messages sent over Tor.",nodeVisibility:"Node Visibility",nodeVisibilityDesc:"Control how other nodes can discover you",yourTorAddress:"Your Tor address",discoverableWarning:"Making your node discoverable lets other Archipelago users find and connect with you.",noPeers:"No peers yet. Add a peer manually or use Discover to find nodes on Nostr.",noMessages:"No messages yet. Messages from peers will appear here.",noRequests:"No pending connection requests.",accept:"Accept",reject:"Reject",discovering:"Discovering...",discoverNodes:"Discover Nodes on Nostr",refreshMessages:"Refresh Messages",refreshRequests:"Refresh Requests",torServices:"Tor Services",torServicesDesc:"Hidden services exposing your apps over Tor",noTorServices:"No Tor hidden services configured.",content:"Content",contentDesc:"Share and browse content with peers over Tor",noSharedContent:"No shared content",addFilesToShare:"Add files to share with connected peers.",browse:"Browse",connectingToPeer:"Connecting to peer over Tor...",selectPeerToBrowse:"Select a peer to browse",choosePeerDesc:"Choose a connected peer to see their shared content.",peerNoContent:"This peer has no shared content.",identities:"Identities",identitiesDesc:"Sovereign digital identities (DID:key)",noIdentities:"No identities yet",createFirstIdentity:"Create your first sovereign digital identity.",deleting:"Deleting...",decentralizedWebNode:"Decentralized Web Node",dwnDescription:"Personal data store with DID-based access control",manageDwn:"Manage DWN",syncing:"Syncing...",syncNow:"Sync Now",verifiableCredentials:"Verifiable Credentials",verifiableCredentialsDesc:"Issue and manage W3C Verifiable Credentials",noCredentials:"No credentials issued yet",messageSent:"Message sent over Tor!",failedToSend:"Failed to send",pasteInvoice:"Paste a Lightning invoice (BOLT11)",enterBitcoinAddress:"Enter a Bitcoin address",sendFailed:"Send failed",broadcastViaHwWallet:"Broadcast via hardware wallet",broadcastFailed:"Broadcast failed",psbtCopied:"PSBT copied!",enterAmount:"Enter an amount",pasteEcashToken:"Paste an ecash token",receiveFailed:"Receive failed",ecashTokenCopied:"Ecash token copied",contentAdded:"Content added",failedToAddContent:"Failed to add content",contentRemoved:"Content removed",failedToRemoveContent:"Failed to remove content",failedToUpdatePricing:"Failed to update pricing",failedToUpdatePrice:"Failed to update price",failedToConnectPeer:"Failed to connect to peer",onionAddressCopied:"Onion address copied",streamUrlCopied:"Stream URL copied",playerError:"Unable to load media. The content may only be accessible over Tor.",connectionAccepted:"Connection accepted",failedToAcceptRequest:"Failed to accept request",requestRejected:"Request rejected",failedToRejectRequest:"Failed to reject request",visibilitySetTo:"Visibility set to {level}",failedToUpdateVisibility:"Failed to update visibility",didCopied:"DID copied to clipboard",defaultIdentityUpdated:"Default identity updated",failedToSetDefault:"Failed to set default",identityCreated:"Identity created",failedToCreateIdentity:"Failed to create identity",identityDeleted:"Identity deleted",failedToDeleteIdentity:"Failed to delete identity",registrationFailed:"Registration failed",removeFailed:"Remove failed",failedToAddRelay:"Failed to add relay",failedToRemoveRelay:"Failed to remove relay",failedToToggleRelay:"Failed to toggle relay",downloadUrlCopied:"Download URL copied",hardwareWalletDetected:"Hardware Wallet Detected",namesRegistered:"Names Registered",expiringSoon:"Expiring Soon",nostrRelaysDesc:"Decentralized social networking relays",relaysConnectedLabel:"Relays Connected",totalRelays:"Total Relays",freeAccessDesc:"Available to all peers for free",peersOnlyAccessDesc:"Available only to connected peers",signWithHwWallet:"Sign with Hardware Wallet",createsPsbt:"Creates a PSBT for external signing",generateFreshAddress:"Generate a fresh Bitcoin address",registerNewName:"Register New Name",verifyNip05:"Verify NIP-05",peers:"Peers",messages:"Messages",requests:"Requests",myContent:"My Content",browsePeers:"Browse Peers",verified:"Verified",invalid:"Invalid",stream:"Stream",download:"Download"},gd={backToApps:"Back to My Apps",backToStore:"Back to App Store",screenshots:"Screenshots",screenshotPlaceholder:"Screenshot placeholders - images coming soon",about:"About {name}",features:"Features",information:"Information",requirements:"Requirements",ram:"RAM",ramDesc:"Minimum 512MB",storage:"Storage",storageDesc:"~100MB",links:"Links",website:"Website",sourceCode:"Source Code",documentation:"Documentation",services:"Services",guardian:"Guardian",gateway:"Gateway",access:"Access",lan:"LAN",tor:"Tor",requiresTor:"Requires Tor Browser",channels:"Channels",uninstallTitle:"Uninstall App?",uninstallConfirm:"Are you sure you want to uninstall {name}? This will remove the app and stop its container.",notFoundTitle:"App Not Found",notFoundMessage:"The requested application could not be found",installed:"Installed",noLaunchUrl:"No launch URL available for this app yet"},vd={back:"Back",subtitle:"Container details and management",containerInfo:"Container Information",actions:"Actions",logs:"Logs",containerId:"Container ID",image:"Image",state:"State",created:"Created",startContainer:"Start Container",stopContainer:"Stop Container",loadingLogs:"Loading logs...",noLogs:"No logs available"},yd={backToStore:"Back to App Store",screenshots:"Screenshots",screenshotPlaceholder:"Screenshot placeholders - images coming soon",about:"About {name}",features:"Features",information:"Information",requirements:"Requirements",noRequirements:"No additional dependencies required",installRequirements:"Install Requirements",links:"Links",downloadPackage:"Download Package",installed:"Installed",notInstalled:"Not Installed",open:"Open",loadingDetails:"Loading app details...",notFoundTitle:"App Not Found",notFoundMessage:"The requested application could not be found in the marketplace",installFailed:"Installation Failed",depRunning:"Running",depStopped:"Installed but stopped",depNotInstalled:"Not installed"},_d={backToGoals:"Back to Goals",notFound:"Goal not found.",stepOf:"Step {current} of {total}",notStarted:"Not Started",inProgress:"In Progress",completed:"Completed",syncTitle:"Sovereignty takes a little patience",syncMessage:"Your Bitcoin node is syncing the entire blockchain so you don't have to trust anyone else. This takes 2-3 days on first run. Meanwhile, you can explore your node, set up your identity, or back up your keys.",installApp:"Install {name}",openAndConfigure:"Open & Configure",iveDoneThis:"I've Done This",complete:"Complete",allSet:"All Set!",goalReady:"{title} is ready to go.",viewMyServices:"View My Services"},bd={title:"Monitoring",subtitle:"Real-time system metrics and container resource usage",cpuUsage:"CPU Usage (%)",memoryUsage:"Memory Usage (%)",networkIo:"Network I/O (bytes)",rpcLatency:"RPC Latency (ms)",alertHistory:"Alert History",hideConfig:"Hide Config",noAlerts:"No alerts fired",containerResources:"Container Resources",noContainerMetrics:"No container metrics available",systemHealth:"System Health",load:"Load:",exportCsv:"Export CSV",exportJson:"Export JSON",diskUsage:"Disk Usage",ramUsage:"RAM Usage",containerCrash:"Container Crash",rpcLatencySpike:"RPC Latency Spike",sslCertExpiry:"SSL Cert Expiry",refreshFooter:"Refreshing every 5 seconds",wsConnections:"WS connections: {count}",cpu:"CPU",memory:"Memory",network:"Network"},wd={title:"System Update",subtitle:"Manage software updates for your Archipelago node",currentSystem:"Current System",updateAvailable:"Update Available",upToDate:"System is up to date",downloading:"Downloading Update...",applying:"Applying Update...",updateSchedule:"Update Schedule",actions:"Actions",lastChecked:"Last Checked",new:"New",changelog:"Changelog",componentsToUpdate:"{count} component(s) to update",manualOnly:"Manual Only",manualOnlyDesc:"Never check automatically. You control when to check and install updates.",dailyCheck:"Daily Check",dailyCheckDesc:"Check for updates once per day. You decide when to install.",autoApply:"Auto-Apply",autoApplyDesc:"Check daily and automatically install updates at 3 AM. Service restarts as needed.",downloadUpdate:"Download Update",applyUpdate:"Apply Update",checkForUpdates:"Check for Updates",checking:"Checking...",rollback:"Rollback to Previous",backToSettings:"Back to Settings",percentComplete:"{percent}% complete",applyWarning:"Installing components and restarting services. Do not power off.",applyTitle:"Apply Update?",applyMessage:"The backend service will restart. This may take a moment.",rollbackTitle:"Rollback Version?",rollbackMessage:"This will restore the previous version. The backend service will restart.",applyNow:"Apply Now",rollbackButton:"Rollback",upToDateMessage:"Your system is up to date. No updates available. Your system is running the latest version.",checkFailed:"Failed to check for updates. Check your internet connection.",downloadSuccess:"Downloaded {count} component(s) ({size}MB)",downloadFailed:"Download failed. Please try again.",applySuccess:"Update applied. The service will restart momentarily.",applyFailed:"Failed to apply update. You can try again or rollback.",rollbackSuccess:"Rolled back to previous version. Service will restart.",rollbackFailed:"Rollback failed."},Ed={pressEsc:"Press ESC to exit",online:"Online",offline:"Offline",escHint:"Press ESC to exit apps",navHint:"Use arrow keys to navigate"},Ad={title:"Archipelago Recovery",subtitle:"Kiosk failsafe — no authentication required",serverAddress:"Server Address",webUi:"Web UI: http://{address}",scanForMobile:"Scan for mobile access",backend:"Backend",unreachable:"Unreachable",containers:"Containers",goToLogin:"Go to Login",lastChecked:"Last checked: {time}"},Sd={common:ad,login:ld,home:cd,apps:ud,settings:fd,marketplace:dd,dashboard:pd,chat:hd,web5:md,appDetails:gd,containerDetails:vd,marketplaceDetails:yd,goalDetail:_d,monitoring:bd,systemUpdate:wd,kiosk:Ed,kioskRecovery:Ad},Dw=Object.freeze(Object.defineProperty({__proto__:null,appDetails:gd,apps:ud,chat:hd,common:ad,containerDetails:vd,dashboard:pd,default:Sd,goalDetail:_d,home:cd,kiosk:Ed,kioskRecovery:Ad,login:ld,marketplace:dd,marketplaceDetails:yd,monitoring:bd,settings:fd,systemUpdate:wd,web5:md},Symbol.toStringTag,{value:"Module"})),Kw=[{code:"en",name:"English",flag:"🇬🇧"},{code:"es",name:"Español",flag:"🇪🇸"}],Ir=typeof localStorage<"u"?localStorage.getItem("neode_locale"):null,Ls=Sw({legacy:!1,locale:Ir||"en",fallbackLocale:"en",messages:{en:Sd}});async function Mw(e){if(e==="en"){Ls.global.locale="en",localStorage.setItem("neode_locale","en");return}if(!Ls.global.availableLocales.includes(e)){const t=await O_(Object.assign({"./locales/en.json":()=>_e(()=>Promise.resolve().then(()=>Dw),void 0),"./locales/es.json":()=>_e(()=>import("./es-BeSu-8Qq.js"),[])}),`./locales/${e}.json`,3);Ls.global.setLocaleMessage(e,t.default)}Ls.global.locale=e,localStorage.setItem("neode_locale",e)}Ir&&Ir!=="en"&&Mw(Ir);const bo=Qh(N_),Fw=tm();bo.use(Fw);bo.use(zn);bo.use(Ls);bo.mount("#app");export{Qn as $,Ot as A,Ne as B,wg as C,Se as D,he as E,Be as F,be as G,Xu as H,Qu as I,kn as J,Rg as K,Tg as L,Ww as M,Bw as N,Xi as O,Gt as P,qr as Q,Js as R,T_ as S,tt as T,cg as U,pg as V,jw as W,Jn as X,_s as Y,Hw as Z,mg as _,_ as a,ur as a0,Nt as a1,Gh as a2,Vw as a3,x_ as a4,_e as a5,Kw as a6,Mw as a7,A_ as a8,I0 as a9,Tn as b,Z as c,Ze as d,gg as e,$e as f,Yi as g,de as h,Ye as i,pe as j,Il as k,yu as l,dt as m,Tt as n,ht as o,$w as p,z as q,G as r,Rl as s,Dt as t,gf as u,Uw as v,qe as w,ho as x,ga as y,ia as z};