10 lines
110 KiB
JavaScript
10 lines
110 KiB
JavaScript
var $i=Object.defineProperty;var Li=(e,t,n)=>t in e?$i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ur=(e,t,n)=>(Li(e,typeof t!="symbol"?t+"":t,n),n);(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 Ms(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ce={},At=[],De=()=>{},Di=()=>!1,Fi=/^on[^a-z]/,Dn=e=>Fi.test(e),$s=e=>e.startsWith("onUpdate:"),ye=Object.assign,Ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ji=Object.prototype.hasOwnProperty,Q=(e,t)=>ji.call(e,t),U=Array.isArray,kt=e=>fn(e)==="[object Map]",Fn=e=>fn(e)==="[object Set]",ar=e=>fn(e)==="[object Date]",z=e=>typeof e=="function",me=e=>typeof e=="string",tn=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",po=e=>le(e)&&z(e.then)&&z(e.catch),ho=Object.prototype.toString,fn=e=>ho.call(e),Ni=e=>fn(e).slice(8,-1),mo=e=>fn(e)==="[object Object]",Ds=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=Ms(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vi=/-(\w)/g,ze=jn(e=>e.replace(Vi,(t,n)=>n?n.toUpperCase():"")),Ui=/\B([A-Z])/g,wt=jn(e=>e.replace(Ui,"-$1").toLowerCase()),Nn=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ss=jn(e=>e?`on${Nn(e)}`:""),nn=(e,t)=>!Object.is(e,t),xn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ps=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fr;const hs=()=>fr||(fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fs(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=me(s)?Wi(s):Fs(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(me(e))return e;if(le(e))return e}}const Bi=/;(?![^(]*\))/g,Hi=/:([^]+)/,Ki=/\/\*[^]*?\*\//g;function Wi(e){const t={};return e.replace(Ki,"").split(Bi).forEach(n=>{if(n){const s=n.split(Hi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function vt(e){let t="";if(me(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=vt(e[n]);s&&(t+=s+" ")}else if(le(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const zi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qi=Ms(zi);function go(e){return!!e||e===""}function Ji(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Vn(e[s],t[s]);return n}function Vn(e,t){if(e===t)return!0;let n=ar(e),s=ar(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=tn(e),s=tn(t),n||s)return e===t;if(n=U(e),s=U(t),n||s)return n&&s?Ji(e,t):!1;if(n=le(e),s=le(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Vn(e[i],t[i]))return!1}}return String(e)===String(t)}function _o(e,t){return e.findIndex(n=>Vn(n,t))}const Ke=e=>me(e)?e:e==null?"":U(e)||le(e)&&(e.toString===ho||!z(e.toString))?JSON.stringify(e,vo,2):String(e),vo=(e,t)=>t&&t.__v_isRef?vo(e,t.value):kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()]}:le(t)&&!U(t)&&!mo(t)?String(t):t;let Ae;class yo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function bo(e){return new yo(e)}function Qi(e,t=Ae){t&&t.active&&t.effects.push(e)}function Eo(){return Ae}function Yi(e){Ae&&Ae.cleanups.push(e)}const js=e=>{const t=new Set(e);return t.w=0,t.n=0,t},wo=e=>(e.w&ut)>0,xo=e=>(e.n&ut)>0,Xi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ut},Zi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];wo(r)&&!xo(r)?r.delete(e):t[n++]=r,r.w&=~ut,r.n&=~ut}t.length=n}},Cn=new WeakMap;let zt=0,ut=1;const ms=30;let $e;const bt=Symbol(""),gs=Symbol("");class Ns{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Qi(this,s)}run(){if(!this.active)return this.fn();let t=$e,n=ot;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=$e,$e=this,ot=!0,ut=1<<++zt,zt<=ms?Xi(this):dr(this),this.fn()}finally{zt<=ms&&Zi(this),ut=1<<--zt,$e=this.parent,ot=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(dr(this),this.onStop&&this.onStop(),this.active=!1)}}function dr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ot=!0;const Ro=[];function Vt(){Ro.push(ot),ot=!1}function Ut(){const e=Ro.pop();ot=e===void 0?!0:e}function Oe(e,t,n){if(ot&&$e){let s=Cn.get(e);s||Cn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=js()),Po(r)}}function Po(e,t){let n=!1;zt<=ms?xo(e)||(e.n|=ut,n=!wo(e)):n=!e.has($e),n&&(e.add($e),$e.deps.push(e))}function Ye(e,t,n,s,r,o){const i=Cn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&U(e)){const c=Number(s);i.forEach((u,a)=>{(a==="length"||a>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":U(e)?Ds(n)&&l.push(i.get("length")):(l.push(i.get(bt)),kt(e)&&l.push(i.get(gs)));break;case"delete":U(e)||(l.push(i.get(bt)),kt(e)&&l.push(i.get(gs)));break;case"set":kt(e)&&l.push(i.get(bt));break}if(l.length===1)l[0]&&_s(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);_s(js(c))}}function _s(e,t){const n=U(e)?e:[...e];for(const s of n)s.computed&&pr(s);for(const s of n)s.computed||pr(s)}function pr(e,t){(e!==$e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Gi(e,t){var n;return(n=Cn.get(e))==null?void 0:n.get(t)}const el=Ms("__proto__,__v_isRef,__isVue"),Oo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tn)),tl=Vs(),nl=Vs(!1,!0),sl=Vs(!0),hr=rl();function rl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let o=0,i=this.length;o<i;o++)Oe(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Y)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Vt();const s=Y(this)[t].apply(this,n);return Ut(),s}}),e}function ol(e){const t=Y(this);return Oe(t,"has",e),t.hasOwnProperty(e)}function Vs(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?El:ko:t?Ao:Io).get(s))return s;const i=U(s);if(!e){if(i&&Q(hr,r))return Reflect.get(hr,r,o);if(r==="hasOwnProperty")return ol}const l=Reflect.get(s,r,o);return(tn(r)?Oo.has(r):el(r))||(e||Oe(s,"get",r),t)?l:ae(l)?i&&Ds(r)?l:l.value:le(l)?e?Mo(l):Bt(l):l}}const il=Co(),ll=Co(!0);function Co(e=!1){return function(n,s,r,o){let i=n[s];if(Mt(i)&&ae(i)&&!ae(r))return!1;if(!e&&(!Sn(r)&&!Mt(r)&&(i=Y(i),r=Y(r)),!U(n)&&ae(i)&&!ae(r)))return i.value=r,!0;const l=U(n)&&Ds(s)?Number(s)<n.length:Q(n,s),c=Reflect.set(n,s,r,o);return n===Y(o)&&(l?nn(r,i)&&Ye(n,"set",s,r):Ye(n,"add",s,r)),c}}function cl(e,t){const n=Q(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Ye(e,"delete",t,void 0),s}function ul(e,t){const n=Reflect.has(e,t);return(!tn(t)||!Oo.has(t))&&Oe(e,"has",t),n}function al(e){return Oe(e,"iterate",U(e)?"length":bt),Reflect.ownKeys(e)}const So={get:tl,set:il,deleteProperty:cl,has:ul,ownKeys:al},fl={get:sl,set(e,t){return!0},deleteProperty(e,t){return!0}},dl=ye({},So,{get:nl,set:ll}),Us=e=>e,Un=e=>Reflect.getPrototypeOf(e);function gn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),o=Y(t);n||(t!==o&&Oe(r,"get",t),Oe(r,"get",o));const{has:i}=Un(r),l=s?Us:n?Ks:sn;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function _n(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&Oe(s,"has",e),Oe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function vn(e,t=!1){return e=e.__v_raw,!t&&Oe(Y(e),"iterate",bt),Reflect.get(e,"size",e)}function mr(e){e=Y(e);const t=Y(this);return Un(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function gr(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Un(n);let o=s.call(n,e);o||(e=Y(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?nn(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function _r(e){const t=Y(this),{has:n,get:s}=Un(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ye(t,"delete",e,void 0),o}function vr(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function yn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=Y(i),c=t?Us:e?Ks:sn;return!e&&Oe(l,"iterate",bt),i.forEach((u,a)=>s.call(r,c(u),c(a),o))}}function bn(e,t,n){return function(...s){const r=this.__v_raw,o=Y(r),i=kt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?Us:t?Ks:sn;return!t&&Oe(o,"iterate",c?gs:bt),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:l?[a(d[0]),a(d[1])]:a(d),done:h}},[Symbol.iterator](){return this}}}}function et(e){return function(...t){return e==="delete"?!1:this}}function pl(){const e={get(o){return gn(this,o)},get size(){return vn(this)},has:_n,add:mr,set:gr,delete:_r,clear:vr,forEach:yn(!1,!1)},t={get(o){return gn(this,o,!1,!0)},get size(){return vn(this)},has:_n,add:mr,set:gr,delete:_r,clear:vr,forEach:yn(!1,!0)},n={get(o){return gn(this,o,!0)},get size(){return vn(this,!0)},has(o){return _n.call(this,o,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:yn(!0,!1)},s={get(o){return gn(this,o,!0,!0)},get size(){return vn(this,!0)},has(o){return _n.call(this,o,!0)},add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear"),forEach:yn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=bn(o,!1,!1),n[o]=bn(o,!0,!1),t[o]=bn(o,!1,!0),s[o]=bn(o,!0,!0)}),[e,n,t,s]}const[hl,ml,gl,_l]=pl();function Bs(e,t){const n=t?e?_l:gl:e?ml:hl;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,o)}const vl={get:Bs(!1,!1)},yl={get:Bs(!1,!0)},bl={get:Bs(!0,!1)},Io=new WeakMap,Ao=new WeakMap,ko=new WeakMap,El=new WeakMap;function wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xl(e){return e.__v_skip||!Object.isExtensible(e)?0:wl(Ni(e))}function Bt(e){return Mt(e)?e:Hs(e,!1,So,vl,Io)}function To(e){return Hs(e,!1,dl,yl,Ao)}function Mo(e){return Hs(e,!0,fl,bl,ko)}function Hs(e,t,n,s,r){if(!le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=xl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function it(e){return Mt(e)?it(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function $o(e){return it(e)||Mt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function Bn(e){return On(e,"__v_skip",!0),e}const sn=e=>le(e)?Bt(e):e,Ks=e=>le(e)?Mo(e):e;function Lo(e){ot&&$e&&(e=Y(e),Po(e.dep||(e.dep=js())))}function Do(e,t){e=Y(e);const n=e.dep;n&&_s(n)}function ae(e){return!!(e&&e.__v_isRef===!0)}function fe(e){return Fo(e,!1)}function Rl(e){return Fo(e,!0)}function Fo(e,t){return ae(e)?e:new Pl(e,t)}class Pl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:sn(t)}get value(){return Lo(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||Mt(t);t=n?t:Y(t),nn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:sn(t),Do(this))}}function de(e){return ae(e)?e.value:e}const Ol={get:(e,t,n)=>de(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function jo(e){return it(e)?e:new Proxy(e,Ol)}function Cl(e){const t=U(e)?new Array(e.length):{};for(const n in e)t[n]=Il(e,n);return t}class Sl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Gi(Y(this._object),this._key)}}function Il(e,t,n){const s=e[t];return ae(s)?s:new Sl(e,t,n)}class Al{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ns(t,()=>{this._dirty||(this._dirty=!0,Do(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return Lo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function kl(e,t,n=!1){let s,r;const o=z(e);return o?(s=e,r=De):(s=e.get,r=e.set),new Al(s,r,o||!r,n)}function lt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){dn(o,t,n)}return r}function Fe(e,t,n,s){if(z(e)){const o=lt(e,t,n,s);return o&&po(o)&&o.catch(i=>{dn(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(Fe(e[o],t,n,s));return r}function dn(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=n;for(;o;){const u=o.ec;if(u){for(let a=0;a<u.length;a++)if(u[a](e,i,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){lt(c,null,10,[e,i,l]);return}}Tl(e,n,r,s)}function Tl(e,t,n,s=!0){console.error(e)}let rn=!1,vs=!1;const we=[];let We=0;const Tt=[];let Qe=null,mt=0;const No=Promise.resolve();let Ws=null;function pn(e){const t=Ws||No;return e?t.then(this?e.bind(this):e):t}function Ml(e){let t=We+1,n=we.length;for(;t<n;){const s=t+n>>>1;on(we[s])<e?t=s+1:n=s}return t}function Hn(e){(!we.length||!we.includes(e,rn&&e.allowRecurse?We+1:We))&&(e.id==null?we.push(e):we.splice(Ml(e.id),0,e),Vo())}function Vo(){!rn&&!vs&&(vs=!0,Ws=No.then(Bo))}function $l(e){const t=we.indexOf(e);t>We&&we.splice(t,1)}function Ll(e){U(e)?Tt.push(...e):(!Qe||!Qe.includes(e,e.allowRecurse?mt+1:mt))&&Tt.push(e),Vo()}function yr(e,t=rn?We+1:0){for(;t<we.length;t++){const n=we[t];n&&n.pre&&(we.splice(t,1),t--,n())}}function Uo(e){if(Tt.length){const t=[...new Set(Tt)];if(Tt.length=0,Qe){Qe.push(...t);return}for(Qe=t,Qe.sort((n,s)=>on(n)-on(s)),mt=0;mt<Qe.length;mt++)Qe[mt]();Qe=null,mt=0}}const on=e=>e.id==null?1/0:e.id,Dl=(e,t)=>{const n=on(e)-on(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Bo(e){vs=!1,rn=!0,we.sort(Dl);const t=De;try{for(We=0;We<we.length;We++){const n=we[We];n&&n.active!==!1&<(n,null,14)}}finally{We=0,we.length=0,Uo(),rn=!1,Ws=null,(we.length||Tt.length)&&Bo()}}function Fl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ce;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const a=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:h}=s[a]||ce;h&&(r=n.map(g=>me(g)?g.trim():g)),d&&(r=n.map(ps))}let l,c=s[l=ss(t)]||s[l=ss(ze(t))];!c&&o&&(c=s[l=ss(wt(t))]),c&&Fe(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fe(u,e,6,r)}}function Ho(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!z(e)){const c=u=>{const a=Ho(u,t,!0);a&&(l=!0,ye(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(le(e)&&s.set(e,null),null):(U(o)?o.forEach(c=>i[c]=null):ye(i,o),le(e)&&s.set(e,i),i)}function Kn(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,wt(t))||Q(e,t))}let be=null,Wn=null;function In(e){const t=be;return be=e,Wn=e&&e.type.__scopeId||null,t}function zn(e){Wn=e}function qn(){Wn=null}function zs(e,t=be,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ar(-1);const o=In(t);let i;try{i=e(...r)}finally{In(o),s._d&&Ar(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function rs(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:c,emit:u,render:a,renderCache:d,data:h,setupState:g,ctx:v,inheritAttrs:x}=e;let T,k;const S=In(e);try{if(n.shapeFlag&4){const L=r||s;T=He(a.call(L,L,d,o,g,h,v)),k=c}else{const L=t;T=He(L.length>1?L(o,{attrs:c,slots:l,emit:u}):L(o,null)),k=t.props?c:jl(c)}}catch(L){Xt.length=0,dn(L,e,1),T=J(at)}let W=T;if(k&&x!==!1){const L=Object.keys(k),{shapeFlag:P}=W;L.length&&P&7&&(i&&L.some($s)&&(k=Nl(k,i)),W=$t(W,k))}return n.dirs&&(W=$t(W),W.dirs=W.dirs?W.dirs.concat(n.dirs):n.dirs),n.transition&&(W.transition=n.transition),T=W,In(S),T}const jl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dn(n))&&((t||(t={}))[n]=e[n]);return t},Nl=(e,t)=>{const n={};for(const s in e)(!$s(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Vl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?br(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;d<a.length;d++){const h=a[d];if(i[h]!==s[h]&&!Kn(u,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?br(s,i,u):!0:!!i;return!1}function br(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Kn(n,o))return!0}return!1}function Ul({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Bl=e=>e.__isSuspense;function Hl(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Ll(e)}function ln(e,t){return qs(e,null,t)}const En={};function Jt(e,t,n){return qs(e,t,n)}function qs(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=ce){var l;const c=Eo()===((l=ge)==null?void 0:l.scope)?ge:null;let u,a=!1,d=!1;if(ae(e)?(u=()=>e.value,a=Sn(e)):it(e)?(u=()=>e,s=!0):U(e)?(d=!0,a=e.some(L=>it(L)||Sn(L)),u=()=>e.map(L=>{if(ae(L))return L.value;if(it(L))return yt(L);if(z(L))return lt(L,c,2)})):z(e)?t?u=()=>lt(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return h&&h(),Fe(e,c,3,[g])}:u=De,t&&s){const L=u;u=()=>yt(L())}let h,g=L=>{h=S.onStop=()=>{lt(L,c,4)}},v;if(Dt)if(g=De,t?n&&Fe(t,c,3,[u(),d?[]:void 0,g]):u(),r==="sync"){const L=Lc();v=L.__watcherHandles||(L.__watcherHandles=[])}else return De;let x=d?new Array(e.length).fill(En):En;const T=()=>{if(S.active)if(t){const L=S.run();(s||a||(d?L.some((P,$)=>nn(P,x[$])):nn(L,x)))&&(h&&h(),Fe(t,c,3,[L,x===En?void 0:d&&x[0]===En?[]:x,g]),x=L)}else S.run()};T.allowRecurse=!!t;let k;r==="sync"?k=T:r==="post"?k=()=>Pe(T,c&&c.suspense):(T.pre=!0,c&&(T.id=c.uid),k=()=>Hn(T));const S=new Ns(u,k);t?n?T():x=S.run():r==="post"?Pe(S.run.bind(S),c&&c.suspense):S.run();const W=()=>{S.stop(),c&&c.scope&&Ls(c.scope.effects,S)};return v&&v.push(W),W}function Kl(e,t,n){const s=this.proxy,r=me(e)?e.includes(".")?Ko(s,e):()=>s[e]:e.bind(s,s);let o;z(t)?o=t:(o=t.handler,n=t);const i=ge;Lt(this);const l=qs(r,o.bind(s),n);return i?Lt(i):Et(),l}function Ko(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function yt(e,t){if(!le(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ae(e))yt(e.value,t);else if(U(e))for(let n=0;n<e.length;n++)yt(e[n],t);else if(Fn(e)||kt(e))e.forEach(n=>{yt(n,t)});else if(mo(e))for(const n in e)yt(e[n],t);return e}function An(e,t){const n=be;if(n===null)return e;const s=Zn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,l,c,u=ce]=t[o];i&&(z(i)&&(i={mounted:i,updated:i}),i.deep&&yt(l),r.push({dir:i,instance:s,value:l,oldValue:void 0,arg:c,modifiers:u}))}return e}function dt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let c=l.dir[s];c&&(Vt(),Fe(c,n,8,[e.el,l,e,t]),Ut())}}function Ce(e,t){return z(e)?(()=>ye({name:e.name},t,{setup:e}))():e}const Qt=e=>!!e.type.__asyncLoader;function Wo(e){z(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:l}=e;let c=null,u,a=0;const d=()=>(a++,c=null,h()),h=()=>{let g;return c||(g=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((x,T)=>{l(v,()=>x(d()),()=>T(v),a+1)});throw v}).then(v=>g!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return u},setup(){const g=ge;if(u)return()=>os(u,g);const v=S=>{c=null,dn(S,g,13,!s)};if(i&&g.suspense||Dt)return h().then(S=>()=>os(S,g)).catch(S=>(v(S),()=>s?J(s,{error:S}):null));const x=fe(!1),T=fe(),k=fe(!!r);return r&&setTimeout(()=>{k.value=!1},r),o!=null&&setTimeout(()=>{if(!x.value&&!T.value){const S=new Error(`Async component timed out after ${o}ms.`);v(S),T.value=S}},o),h().then(()=>{x.value=!0,g.parent&&Js(g.parent.vnode)&&Hn(g.parent.update)}).catch(S=>{v(S),T.value=S}),()=>{if(x.value&&u)return os(u,g);if(T.value&&s)return J(s,{error:T.value});if(n&&!k.value)return J(n)}}})}function os(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=J(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Js=e=>e.type.__isKeepAlive;function Wl(e,t){zo(e,"a",t)}function zl(e,t){zo(e,"da",t)}function zo(e,t,n=ge){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Jn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Js(r.parent.vnode)&&ql(s,t,n,r),r=r.parent}}function ql(e,t,n,s){const r=Jn(t,e,s,!0);Qs(()=>{Ls(s[t],r)},n)}function Jn(e,t,n=ge,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Vt(),Lt(n);const l=Fe(t,n,e,i);return Et(),Ut(),l});return s?r.unshift(o):r.push(o),o}}const Xe=e=>(t,n=ge)=>(!Dt||e==="sp")&&Jn(e,(...s)=>t(...s),n),Jl=Xe("bm"),Qn=Xe("m"),Ql=Xe("bu"),Yl=Xe("u"),Xl=Xe("bum"),Qs=Xe("um"),Zl=Xe("sp"),Gl=Xe("rtg"),ec=Xe("rtc");function tc(e,t=ge){Jn("ec",e,t)}const qo="components",Jo=Symbol.for("v-ndc");function Qo(e){return me(e)?nc(qo,e,!1)||e:e||Jo}function nc(e,t,n=!0,s=!1){const r=be||ge;if(r){const o=r.type;if(e===qo){const l=Tc(o,!1);if(l&&(l===t||l===ze(t)||l===Nn(ze(t))))return o}const i=Er(r[e]||o[e],t)||Er(r.appContext[e],t);return!i&&s?o:i}}function Er(e,t){return e&&(e[t]||e[ze(t)]||e[Nn(ze(t))])}function Yo(e,t,n,s){let r;const o=n&&n[s];if(U(e)||me(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(le(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];r[l]=t(e[u],u,l,o&&o[l])}}else r=[];return n&&(n[s]=r),r}function Ys(e,t,n={},s,r){if(be.isCE||be.parent&&Qt(be.parent)&&be.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),ne();const i=o&&Xo(o(n)),l=xt(_e,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Xo(e){return e.some(t=>Tn(t)?!(t.type===at||t.type===_e&&!Xo(t.children)):!0)?e:null}const ys=e=>e?ui(e)?Zn(e)||e.proxy:ys(e.parent):null,Yt=ye(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=>ys(e.parent),$root:e=>ys(e.root),$emit:e=>e.emit,$options:e=>Xs(e),$forceUpdate:e=>e.f||(e.f=()=>Hn(e.update)),$nextTick:e=>e.n||(e.n=pn.bind(e.proxy)),$watch:e=>Kl.bind(e)}),is=(e,t)=>e!==ce&&!e.__isScriptSetup&&Q(e,t),sc={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(is(s,t))return i[t]=1,s[t];if(r!==ce&&Q(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&Q(u,t))return i[t]=3,o[t];if(n!==ce&&Q(n,t))return i[t]=4,n[t];bs&&(i[t]=0)}}const a=Yt[t];let d,h;if(a)return t==="$attrs"&&Oe(e,"get",t),a(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ce&&Q(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return is(r,t)?(r[t]=n,!0):s!==ce&&Q(s,t)?(s[t]=n,!0):Q(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,propsOptions:o}},i){let l;return!!n[i]||e!==ce&&Q(e,i)||is(t,i)||(l=o[0])&&Q(l,i)||Q(s,i)||Q(Yt,i)||Q(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wr(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let bs=!0;function rc(e){const t=Xs(e),n=e.proxy,s=e.ctx;bs=!1,t.beforeCreate&&xr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:d,mounted:h,beforeUpdate:g,updated:v,activated:x,deactivated:T,beforeDestroy:k,beforeUnmount:S,destroyed:W,unmounted:L,render:P,renderTracked:$,renderTriggered:Z,errorCaptured:I,serverPrefetch:B,expose:se,inheritAttrs:pe,components:Se,directives:ke,filters:ft}=t;if(u&&oc(u,s,null),i)for(const oe in i){const G=i[oe];z(G)&&(s[oe]=G.bind(n))}if(r){const oe=r.call(n,n);le(oe)&&(e.data=Bt(oe))}if(bs=!0,o)for(const oe in o){const G=o[oe],qe=z(G)?G.bind(n,n):z(G.get)?G.get.bind(n,n):De,Ge=!z(G)&&z(G.set)?G.set.bind(n):De,Ve=ve({get:qe,set:Ge});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Re=>Ve.value=Re})}if(l)for(const oe in l)Zo(l[oe],s,n,oe);if(c){const oe=z(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(G=>{Rn(G,oe[G])})}a&&xr(a,e,"c");function X(oe,G){U(G)?G.forEach(qe=>oe(qe.bind(n))):G&&oe(G.bind(n))}if(X(Jl,d),X(Qn,h),X(Ql,g),X(Yl,v),X(Wl,x),X(zl,T),X(tc,I),X(ec,$),X(Gl,Z),X(Xl,S),X(Qs,L),X(Zl,B),U(se))if(se.length){const oe=e.exposed||(e.exposed={});se.forEach(G=>{Object.defineProperty(oe,G,{get:()=>n[G],set:qe=>n[G]=qe})})}else e.exposed||(e.exposed={});P&&e.render===De&&(e.render=P),pe!=null&&(e.inheritAttrs=pe),Se&&(e.components=Se),ke&&(e.directives=ke)}function oc(e,t,n=De){U(e)&&(e=Es(e));for(const s in e){const r=e[s];let o;le(r)?"default"in r?o=je(r.from||s,r.default,!0):o=je(r.from||s):o=je(r),ae(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function xr(e,t,n){Fe(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zo(e,t,n,s){const r=s.includes(".")?Ko(n,s):()=>n[s];if(me(e)){const o=t[e];z(o)&&Jt(r,o)}else if(z(e))Jt(r,e.bind(n));else if(le(e))if(U(e))e.forEach(o=>Zo(o,t,n,s));else{const o=z(e.handler)?e.handler.bind(n):t[e.handler];z(o)&&Jt(r,o,e)}}function Xs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>kn(c,u,i,!0)),kn(c,t,i)),le(t)&&o.set(t,c),c}function kn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&kn(e,o,n,!0),r&&r.forEach(i=>kn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=ic[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ic={data:Rr,props:Pr,emits:Pr,methods:qt,computed:qt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:qt,directives:qt,watch:cc,provide:Rr,inject:lc};function Rr(e,t){return t?e?function(){return ye(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function lc(e,t){return qt(Es(e),Es(t))}function Es(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function qt(e,t){return e?ye(Object.create(null),e,t):t}function Pr(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ye(Object.create(null),wr(e),wr(t??{})):t}function cc(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const s in t)n[s]=xe(e[s],t[s]);return n}function Go(){return{app:null,config:{isNativeTag:Di,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uc=0;function ac(e,t){return function(s,r=null){z(s)||(s=ye({},s)),r!=null&&!le(r)&&(r=null);const o=Go(),i=new Set;let l=!1;const c=o.app={_uid:uc++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Dc,get config(){return o.config},set config(u){},use(u,...a){return i.has(u)||(u&&z(u.install)?(i.add(u),u.install(c,...a)):z(u)&&(i.add(u),u(c,...a))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,a){return a?(o.components[u]=a,c):o.components[u]},directive(u,a){return a?(o.directives[u]=a,c):o.directives[u]},mount(u,a,d){if(!l){const h=J(s,r);return h.appContext=o,a&&t?t(h,u):e(h,u,d),l=!0,c._container=u,u.__vue_app__=c,Zn(h.component)||h.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,a){return o.provides[u]=a,c},runWithContext(u){cn=c;try{return u()}finally{cn=null}}};return c}}let cn=null;function Rn(e,t){if(ge){let n=ge.provides;const s=ge.parent&&ge.parent.provides;s===n&&(n=ge.provides=Object.create(s)),n[e]=t}}function je(e,t,n=!1){const s=ge||be;if(s||cn){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:cn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&z(t)?t.call(s&&s.proxy):t}}function fc(){return!!(ge||be||cn)}function dc(e,t,n,s=!1){const r={},o={};On(o,Xn,1),e.propsDefaults=Object.create(null),ei(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:To(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function pc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=Y(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d<a.length;d++){let h=a[d];if(Kn(e.emitsOptions,h))continue;const g=t[h];if(c)if(Q(o,h))g!==o[h]&&(o[h]=g,u=!0);else{const v=ze(h);r[v]=ws(c,l,v,g,e,!1)}else g!==o[h]&&(o[h]=g,u=!0)}}}else{ei(e,t,r,o)&&(u=!0);let a;for(const d in l)(!t||!Q(t,d)&&((a=wt(d))===d||!Q(t,a)))&&(c?n&&(n[d]!==void 0||n[a]!==void 0)&&(r[d]=ws(c,l,d,void 0,e,!0)):delete r[d]);if(o!==l)for(const d in o)(!t||!Q(t,d))&&(delete o[d],u=!0)}u&&Ye(e,"set","$attrs")}function ei(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(wn(c))continue;const u=t[c];let a;r&&Q(r,a=ze(c))?!o||!o.includes(a)?n[a]=u:(l||(l={}))[a]=u:Kn(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(o){const c=Y(n),u=l||ce;for(let a=0;a<o.length;a++){const d=o[a];n[d]=ws(r,c,d,u[d],e,!Q(u,d))}}return i}function ws(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=Q(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&z(c)){const{propsDefaults:u}=r;n in u?s=u[n]:(Lt(r),s=u[n]=c.call(null,t),Et())}else s=c}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===wt(n))&&(s=!0))}return s}function ti(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let c=!1;if(!z(e)){const a=d=>{c=!0;const[h,g]=ti(d,t,!0);ye(i,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return le(e)&&s.set(e,At),At;if(U(o))for(let a=0;a<o.length;a++){const d=ze(o[a]);Or(d)&&(i[d]=ce)}else if(o)for(const a in o){const d=ze(a);if(Or(d)){const h=o[a],g=i[d]=U(h)||z(h)?{type:h}:ye({},h);if(g){const v=Ir(Boolean,g.type),x=Ir(String,g.type);g[0]=v>-1,g[1]=x<0||v<x,(v>-1||Q(g,"default"))&&l.push(d)}}}const u=[i,l];return le(e)&&s.set(e,u),u}function Or(e){return e[0]!=="$"}function Cr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Sr(e,t){return Cr(e)===Cr(t)}function Ir(e,t){return U(t)?t.findIndex(n=>Sr(n,e)):z(t)&&Sr(t,e)?0:-1}const ni=e=>e[0]==="_"||e==="$stable",Zs=e=>U(e)?e.map(He):[He(e)],hc=(e,t,n)=>{if(t._n)return t;const s=zs((...r)=>Zs(t(...r)),n);return s._c=!1,s},si=(e,t,n)=>{const s=e._ctx;for(const r in e){if(ni(r))continue;const o=e[r];if(z(o))t[r]=hc(r,o,s);else if(o!=null){const i=Zs(o);t[r]=()=>i}}},ri=(e,t)=>{const n=Zs(t);e.slots.default=()=>n},mc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),On(t,"_",n)):si(t,e.slots={})}else e.slots={},t&&ri(e,t);On(e.slots,Xn,1)},gc=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ce;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ye(r,t),!n&&l===1&&delete r._):(o=!t.$stable,si(t,r)),i=t}else t&&(ri(e,t),i={default:1});if(o)for(const l in r)!ni(l)&&!(l in i)&&delete r[l]};function xs(e,t,n,s,r=!1){if(U(e)){e.forEach((h,g)=>xs(h,t&&(U(t)?t[g]:t),n,s,r));return}if(Qt(s)&&!r)return;const o=s.shapeFlag&4?Zn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===ce?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==c&&(me(u)?(a[u]=null,Q(d,u)&&(d[u]=null)):ae(u)&&(u.value=null)),z(c))lt(c,l,12,[i,a]);else{const h=me(c),g=ae(c);if(h||g){const v=()=>{if(e.f){const x=h?Q(d,c)?d[c]:a[c]:c.value;r?U(x)&&Ls(x,o):U(x)?x.includes(o)||x.push(o):h?(a[c]=[o],Q(d,c)&&(d[c]=a[c])):(c.value=[o],e.k&&(a[e.k]=c.value))}else h?(a[c]=i,Q(d,c)&&(d[c]=i)):g&&(c.value=i,e.k&&(a[e.k]=i))};i?(v.id=-1,Pe(v,n)):v()}}}const Pe=Hl;function _c(e){return vc(e)}function vc(e,t){const n=hs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:d,nextSibling:h,setScopeId:g=De,insertStaticContent:v}=e,x=(f,p,m,_=null,b=null,E=null,A=!1,R=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!Kt(f,p)&&(_=y(f),Re(f,b,E,!0),f=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:w,ref:N,shapeFlag:D}=p;switch(w){case Yn:T(f,p,m,_);break;case at:k(f,p,m,_);break;case ls:f==null&&S(p,m,_,A);break;case _e:Se(f,p,m,_,b,E,A,R,O);break;default:D&1?P(f,p,m,_,b,E,A,R,O):D&6?ke(f,p,m,_,b,E,A,R,O):(D&64||D&128)&&w.process(f,p,m,_,b,E,A,R,O,C)}N!=null&&b&&xs(N,f&&f.ref,E,p||f,!p)},T=(f,p,m,_)=>{if(f==null)s(p.el=l(p.children),m,_);else{const b=p.el=f.el;p.children!==f.children&&u(b,p.children)}},k=(f,p,m,_)=>{f==null?s(p.el=c(p.children||""),m,_):p.el=f.el},S=(f,p,m,_)=>{[f.el,f.anchor]=v(f.children,p,m,_,f.el,f.anchor)},W=({el:f,anchor:p},m,_)=>{let b;for(;f&&f!==p;)b=h(f),s(f,m,_),f=b;s(p,m,_)},L=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=h(f),r(f),f=m;r(p)},P=(f,p,m,_,b,E,A,R,O)=>{A=A||p.type==="svg",f==null?$(p,m,_,b,E,A,R,O):B(f,p,b,E,A,R,O)},$=(f,p,m,_,b,E,A,R)=>{let O,w;const{type:N,props:D,shapeFlag:V,transition:H,dirs:q}=f;if(O=f.el=i(f.type,E,D&&D.is,D),V&8?a(O,f.children):V&16&&I(f.children,O,null,_,b,E&&N!=="foreignObject",A,R),q&&dt(f,null,_,"created"),Z(O,f,f.scopeId,A,_),D){for(const re in D)re!=="value"&&!wn(re)&&o(O,re,null,D[re],E,f.children,_,b,Ee);"value"in D&&o(O,"value",null,D.value),(w=D.onVnodeBeforeMount)&&Be(w,_,f)}q&&dt(f,null,_,"beforeMount");const ie=(!b||b&&!b.pendingBranch)&&H&&!H.persisted;ie&&H.beforeEnter(O),s(O,p,m),((w=D&&D.onVnodeMounted)||ie||q)&&Pe(()=>{w&&Be(w,_,f),ie&&H.enter(O),q&&dt(f,null,_,"mounted")},b)},Z=(f,p,m,_,b)=>{if(m&&g(f,m),_)for(let E=0;E<_.length;E++)g(f,_[E]);if(b){let E=b.subTree;if(p===E){const A=b.vnode;Z(f,A,A.scopeId,A.slotScopeIds,b.parent)}}},I=(f,p,m,_,b,E,A,R,O=0)=>{for(let w=O;w<f.length;w++){const N=f[w]=R?st(f[w]):He(f[w]);x(null,N,p,m,_,b,E,A,R)}},B=(f,p,m,_,b,E,A)=>{const R=p.el=f.el;let{patchFlag:O,dynamicChildren:w,dirs:N}=p;O|=f.patchFlag&16;const D=f.props||ce,V=p.props||ce;let H;m&&pt(m,!1),(H=V.onVnodeBeforeUpdate)&&Be(H,m,p,f),N&&dt(p,f,m,"beforeUpdate"),m&&pt(m,!0);const q=b&&p.type!=="foreignObject";if(w?se(f.dynamicChildren,w,R,m,_,q,E):A||G(f,p,R,null,m,_,q,E,!1),O>0){if(O&16)pe(R,p,D,V,m,_,b);else if(O&2&&D.class!==V.class&&o(R,"class",null,V.class,b),O&4&&o(R,"style",D.style,V.style,b),O&8){const ie=p.dynamicProps;for(let re=0;re<ie.length;re++){const he=ie[re],Me=D[he],Ot=V[he];(Ot!==Me||he==="value")&&o(R,he,Me,Ot,b,f.children,m,_,Ee)}}O&1&&f.children!==p.children&&a(R,p.children)}else!A&&w==null&&pe(R,p,D,V,m,_,b);((H=V.onVnodeUpdated)||N)&&Pe(()=>{H&&Be(H,m,p,f),N&&dt(p,f,m,"updated")},_)},se=(f,p,m,_,b,E,A)=>{for(let R=0;R<p.length;R++){const O=f[R],w=p[R],N=O.el&&(O.type===_e||!Kt(O,w)||O.shapeFlag&70)?d(O.el):m;x(O,w,N,null,_,b,E,A,!0)}},pe=(f,p,m,_,b,E,A)=>{if(m!==_){if(m!==ce)for(const R in m)!wn(R)&&!(R in _)&&o(f,R,m[R],null,A,p.children,b,E,Ee);for(const R in _){if(wn(R))continue;const O=_[R],w=m[R];O!==w&&R!=="value"&&o(f,R,w,O,A,p.children,b,E,Ee)}"value"in _&&o(f,"value",m.value,_.value)}},Se=(f,p,m,_,b,E,A,R,O)=>{const w=p.el=f?f.el:l(""),N=p.anchor=f?f.anchor:l("");let{patchFlag:D,dynamicChildren:V,slotScopeIds:H}=p;H&&(R=R?R.concat(H):H),f==null?(s(w,m,_),s(N,m,_),I(p.children,m,N,b,E,A,R,O)):D>0&&D&64&&V&&f.dynamicChildren?(se(f.dynamicChildren,V,m,b,E,A,R),(p.key!=null||b&&p===b.subTree)&&oi(f,p,!0)):G(f,p,m,N,b,E,A,R,O)},ke=(f,p,m,_,b,E,A,R,O)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?b.ctx.activate(p,m,_,A,O):ft(p,m,_,b,E,A,O):Te(f,p,O)},ft=(f,p,m,_,b,E,A)=>{const R=f.component=Cc(f,_,b);if(Js(f)&&(R.ctx.renderer=C),Sc(R),R.asyncDep){if(b&&b.registerDep(R,X),!f.el){const O=R.subTree=J(at);k(null,O,p,m)}return}X(R,f,p,m,b,E,A)},Te=(f,p,m)=>{const _=p.component=f.component;if(Vl(f,p,m))if(_.asyncDep&&!_.asyncResolved){oe(_,p,m);return}else _.next=p,$l(_.update),_.update();else p.el=f.el,_.vnode=p},X=(f,p,m,_,b,E,A)=>{const R=()=>{if(f.isMounted){let{next:N,bu:D,u:V,parent:H,vnode:q}=f,ie=N,re;pt(f,!1),N?(N.el=q.el,oe(f,N,A)):N=q,D&&xn(D),(re=N.props&&N.props.onVnodeBeforeUpdate)&&Be(re,H,N,q),pt(f,!0);const he=rs(f),Me=f.subTree;f.subTree=he,x(Me,he,d(Me.el),y(Me),f,b,E),N.el=he.el,ie===null&&Ul(f,he.el),V&&Pe(V,b),(re=N.props&&N.props.onVnodeUpdated)&&Pe(()=>Be(re,H,N,q),b)}else{let N;const{el:D,props:V}=p,{bm:H,m:q,parent:ie}=f,re=Qt(p);if(pt(f,!1),H&&xn(H),!re&&(N=V&&V.onVnodeBeforeMount)&&Be(N,ie,p),pt(f,!0),D&&ee){const he=()=>{f.subTree=rs(f),ee(D,f.subTree,f,b,null)};re?p.type.__asyncLoader().then(()=>!f.isUnmounted&&he()):he()}else{const he=f.subTree=rs(f);x(null,he,m,_,f,b,E),p.el=he.el}if(q&&Pe(q,b),!re&&(N=V&&V.onVnodeMounted)){const he=p;Pe(()=>Be(N,ie,he),b)}(p.shapeFlag&256||ie&&Qt(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&Pe(f.a,b),f.isMounted=!0,p=m=_=null}},O=f.effect=new Ns(R,()=>Hn(w),f.scope),w=f.update=()=>O.run();w.id=f.uid,pt(f,!0),w()},oe=(f,p,m)=>{p.component=f;const _=f.vnode.props;f.vnode=p,f.next=null,pc(f,p.props,_,m),gc(f,p.children,m),Vt(),yr(),Ut()},G=(f,p,m,_,b,E,A,R,O=!1)=>{const w=f&&f.children,N=f?f.shapeFlag:0,D=p.children,{patchFlag:V,shapeFlag:H}=p;if(V>0){if(V&128){Ge(w,D,m,_,b,E,A,R,O);return}else if(V&256){qe(w,D,m,_,b,E,A,R,O);return}}H&8?(N&16&&Ee(w,b,E),D!==w&&a(m,D)):N&16?H&16?Ge(w,D,m,_,b,E,A,R,O):Ee(w,b,E,!0):(N&8&&a(m,""),H&16&&I(D,m,_,b,E,A,R,O))},qe=(f,p,m,_,b,E,A,R,O)=>{f=f||At,p=p||At;const w=f.length,N=p.length,D=Math.min(w,N);let V;for(V=0;V<D;V++){const H=p[V]=O?st(p[V]):He(p[V]);x(f[V],H,m,null,b,E,A,R,O)}w>N?Ee(f,b,E,!0,!1,D):I(p,m,_,b,E,A,R,O,D)},Ge=(f,p,m,_,b,E,A,R,O)=>{let w=0;const N=p.length;let D=f.length-1,V=N-1;for(;w<=D&&w<=V;){const H=f[w],q=p[w]=O?st(p[w]):He(p[w]);if(Kt(H,q))x(H,q,m,null,b,E,A,R,O);else break;w++}for(;w<=D&&w<=V;){const H=f[D],q=p[V]=O?st(p[V]):He(p[V]);if(Kt(H,q))x(H,q,m,null,b,E,A,R,O);else break;D--,V--}if(w>D){if(w<=V){const H=V+1,q=H<N?p[H].el:_;for(;w<=V;)x(null,p[w]=O?st(p[w]):He(p[w]),m,q,b,E,A,R,O),w++}}else if(w>V)for(;w<=D;)Re(f[w],b,E,!0),w++;else{const H=w,q=w,ie=new Map;for(w=q;w<=V;w++){const Ie=p[w]=O?st(p[w]):He(p[w]);Ie.key!=null&&ie.set(Ie.key,w)}let re,he=0;const Me=V-q+1;let Ot=!1,ir=0;const Ht=new Array(Me);for(w=0;w<Me;w++)Ht[w]=0;for(w=H;w<=D;w++){const Ie=f[w];if(he>=Me){Re(Ie,b,E,!0);continue}let Ue;if(Ie.key!=null)Ue=ie.get(Ie.key);else for(re=q;re<=V;re++)if(Ht[re-q]===0&&Kt(Ie,p[re])){Ue=re;break}Ue===void 0?Re(Ie,b,E,!0):(Ht[Ue-q]=w+1,Ue>=ir?ir=Ue:Ot=!0,x(Ie,p[Ue],m,null,b,E,A,R,O),he++)}const lr=Ot?yc(Ht):At;for(re=lr.length-1,w=Me-1;w>=0;w--){const Ie=q+w,Ue=p[Ie],cr=Ie+1<N?p[Ie+1].el:_;Ht[w]===0?x(null,Ue,m,cr,b,E,A,R,O):Ot&&(re<0||w!==lr[re]?Ve(Ue,m,cr,2):re--)}}},Ve=(f,p,m,_,b=null)=>{const{el:E,type:A,transition:R,children:O,shapeFlag:w}=f;if(w&6){Ve(f.component.subTree,p,m,_);return}if(w&128){f.suspense.move(p,m,_);return}if(w&64){A.move(f,p,m,C);return}if(A===_e){s(E,p,m);for(let D=0;D<O.length;D++)Ve(O[D],p,m,_);s(f.anchor,p,m);return}if(A===ls){W(f,p,m);return}if(_!==2&&w&1&&R)if(_===0)R.beforeEnter(E),s(E,p,m),Pe(()=>R.enter(E),b);else{const{leave:D,delayLeave:V,afterLeave:H}=R,q=()=>s(E,p,m),ie=()=>{D(E,()=>{q(),H&&H()})};V?V(E,q,ie):ie()}else s(E,p,m)},Re=(f,p,m,_=!1,b=!1)=>{const{type:E,props:A,ref:R,children:O,dynamicChildren:w,shapeFlag:N,patchFlag:D,dirs:V}=f;if(R!=null&&xs(R,null,m,f,!0),N&256){p.ctx.deactivate(f);return}const H=N&1&&V,q=!Qt(f);let ie;if(q&&(ie=A&&A.onVnodeBeforeUnmount)&&Be(ie,p,f),N&6)mn(f.component,m,_);else{if(N&128){f.suspense.unmount(m,_);return}H&&dt(f,null,p,"beforeUnmount"),N&64?f.type.remove(f,p,m,b,C,_):w&&(E!==_e||D>0&&D&64)?Ee(w,p,m,!1,!0):(E===_e&&D&384||!b&&N&16)&&Ee(O,p,m),_&&Rt(f)}(q&&(ie=A&&A.onVnodeUnmounted)||H)&&Pe(()=>{ie&&Be(ie,p,f),H&&dt(f,null,p,"unmounted")},m)},Rt=f=>{const{type:p,el:m,anchor:_,transition:b}=f;if(p===_e){Pt(m,_);return}if(p===ls){L(f);return}const E=()=>{r(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:A,delayLeave:R}=b,O=()=>A(m,E);R?R(f.el,E,O):O()}else E()},Pt=(f,p)=>{let m;for(;f!==p;)m=h(f),r(f),f=m;r(p)},mn=(f,p,m)=>{const{bum:_,scope:b,update:E,subTree:A,um:R}=f;_&&xn(_),b.stop(),E&&(E.active=!1,Re(A,f,p,m)),R&&Pe(R,p),Pe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ee=(f,p,m,_=!1,b=!1,E=0)=>{for(let A=E;A<f.length;A++)Re(f[A],p,m,_,b)},y=f=>f.shapeFlag&6?y(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),M=(f,p,m)=>{f==null?p._vnode&&Re(p._vnode,null,null,!0):x(p._vnode||null,f,p,null,null,null,m),yr(),Uo(),p._vnode=f},C={p:x,um:Re,m:Ve,r:Rt,mt:ft,mc:I,pc:G,pbc:se,n:y,o:e};let j,ee;return t&&([j,ee]=t(C)),{render:M,hydrate:j,createApp:ac(M,j)}}function pt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function oi(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=st(r[o]),l.el=i.el),n||oi(i,l)),l.type===Yn&&(l.el=i.el)}}function yc(e){const t=e.slice(),n=[0];let s,r,o,i,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<u?o=l+1:i=l;u<e[n[o]]&&(o>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}const bc=e=>e.__isTeleport,_e=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),ls=Symbol.for("v-stc"),Xt=[];let Le=null;function ne(e=!1){Xt.push(Le=e?null:[])}function Ec(){Xt.pop(),Le=Xt[Xt.length-1]||null}let un=1;function Ar(e){un+=e}function ii(e){return e.dynamicChildren=un>0?Le||At:null,Ec(),un>0&&Le&&Le.push(e),e}function ue(e,t,n,s,r,o){return ii(K(e,t,n,s,r,o,!0))}function xt(e,t,n,s,r){return ii(J(e,t,n,s,r,!0))}function Tn(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const Xn="__vInternal",li=({key:e})=>e??null,Pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||ae(e)||z(e)?{i:be,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,s=0,r=null,o=e===_e?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&li(t),ref:t&&Pn(t),scopeId:Wn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:be};return l?(Gs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=me(n)?8:16),un>0&&!i&&Le&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Le.push(c),c}const J=wc;function wc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Jo)&&(e=at),Tn(e)){const l=$t(e,t,!0);return n&&Gs(l,n),un>0&&!o&&Le&&(l.shapeFlag&6?Le[Le.indexOf(e)]=l:Le.push(l)),l.patchFlag|=-2,l}if(Mc(e)&&(e=e.__vccOpts),t){t=xc(t);let{class:l,style:c}=t;l&&!me(l)&&(t.class=vt(l)),le(c)&&($o(c)&&!U(c)&&(c=ye({},c)),t.style=Fs(c))}const i=me(e)?1:Bl(e)?128:bc(e)?64:le(e)?4:z(e)?2:0;return K(e,t,n,s,r,i,o,!0)}function xc(e){return e?$o(e)||Xn in e?ye({},e):e:null}function $t(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?Rc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&li(l),ref:t&&t.ref?n&&r?U(r)?r.concat(Pn(t)):[r,Pn(t)]:Pn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ci(e=" ",t=0){return J(Yn,null,e,t)}function ct(e="",t=!1){return t?(ne(),xt(at,null,e)):J(at,null,e)}function He(e){return e==null||typeof e=="boolean"?J(at):U(e)?J(_e,null,e.slice()):typeof e=="object"?st(e):J(Yn,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function Gs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Gs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Xn in t)?t._ctx=be:r===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:be},n=32):(t=String(t),s&64?(n=16,t=[ci(t)]):n=8);e.children=t,e.shapeFlag|=n}function Rc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=vt([t.class,s.class]));else if(r==="style")t.style=Fs([t.style,s.style]);else if(Dn(r)){const o=t[r],i=s[r];i&&o!==i&&!(U(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Be(e,t,n,s=null){Fe(e,t,7,[n,s])}const Pc=Go();let Oc=0;function Cc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Pc,o={uid:Oc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new yo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ti(s,r),emitsOptions:Ho(s,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:s.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Fl.bind(null,o),e.ce&&e.ce(o),o}let ge=null,er,Ct,kr="__VUE_INSTANCE_SETTERS__";(Ct=hs()[kr])||(Ct=hs()[kr]=[]),Ct.push(e=>ge=e),er=e=>{Ct.length>1?Ct.forEach(t=>t(e)):Ct[0](e)};const Lt=e=>{er(e),e.scope.on()},Et=()=>{ge&&ge.scope.off(),er(null)};function ui(e){return e.vnode.shapeFlag&4}let Dt=!1;function Sc(e,t=!1){Dt=t;const{props:n,children:s}=e.vnode,r=ui(e);dc(e,n,r,t),mc(e,s);const o=r?Ic(e,t):void 0;return Dt=!1,o}function Ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bn(new Proxy(e.ctx,sc));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?kc(e):null;Lt(e),Vt();const o=lt(s,e,0,[e.props,r]);if(Ut(),Et(),po(o)){if(o.then(Et,Et),t)return o.then(i=>{Tr(e,i,t)}).catch(i=>{dn(i,e,0)});e.asyncDep=o}else Tr(e,o,t)}else ai(e,t)}function Tr(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:le(t)&&(e.setupState=jo(t)),ai(e,n)}let Mr;function ai(e,t,n){const s=e.type;if(!e.render){if(!t&&Mr&&!s.render){const r=s.template||Xs(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ye(ye({isCustomElement:o,delimiters:l},i),c);s.render=Mr(r,u)}}e.render=s.render||De}Lt(e),Vt(),rc(e),Ut(),Et()}function Ac(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Oe(e,"get","$attrs"),t[n]}}))}function kc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ac(e)},slots:e.slots,emit:e.emit,expose:t}}function Zn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(jo(Bn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yt)return Yt[n](e)},has(t,n){return n in t||n in Yt}}))}function Tc(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Mc(e){return z(e)&&"__vccOpts"in e}const ve=(e,t)=>kl(e,t,Dt);function fi(e,t,n){const s=arguments.length;return s===2?le(t)&&!U(t)?Tn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Tn(n)&&(n=[n]),J(e,t,n))}const $c=Symbol.for("v-scx"),Lc=()=>je($c),Dc="3.3.4",Fc="http://www.w3.org/2000/svg",gt=typeof document<"u"?document:null,$r=gt&>.createElement("template"),jc={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?gt.createElementNS(Fc,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.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{$r.innerHTML=s?`<svg>${e}</svg>`:e;const l=$r.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Nc(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Vc(e,t,n){const s=e.style,r=me(n);if(n&&!r){if(t&&!me(t))for(const o in t)n[o]==null&&Rs(s,o,"");for(const o in n)Rs(s,o,n[o])}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Lr=/\s*!important$/;function Rs(e,t,n){if(U(n))n.forEach(s=>Rs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Uc(e,t);Lr.test(n)?e.setProperty(wt(s),n.replace(Lr,""),"important"):e[s]=n}}const Dr=["Webkit","Moz","ms"],cs={};function Uc(e,t){const n=cs[t];if(n)return n;let s=ze(t);if(s!=="filter"&&s in e)return cs[t]=s;s=Nn(s);for(let r=0;r<Dr.length;r++){const o=Dr[r]+s;if(o in e)return cs[t]=o}return t}const Fr="http://www.w3.org/1999/xlink";function Bc(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Fr,t.slice(6,t.length)):e.setAttributeNS(Fr,t,n);else{const o=qi(t);n==null||o&&!go(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Hc(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const u=l==="OPTION"?e.getAttribute("value"):e.value,a=n??"";u!==a&&(e.value=a),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=go(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function _t(e,t,n,s){e.addEventListener(t,n,s)}function Kc(e,t,n,s){e.removeEventListener(t,n,s)}function Wc(e,t,n,s,r=null){const o=e._vei||(e._vei={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=zc(t);if(s){const u=o[t]=Qc(s,r);_t(e,l,u,c)}else i&&(Kc(e,l,i,c),o[t]=void 0)}}const jr=/(?:Once|Passive|Capture)$/;function zc(e){let t;if(jr.test(e)){t={};let s;for(;s=e.match(jr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wt(e.slice(2)),t]}let us=0;const qc=Promise.resolve(),Jc=()=>us||(qc.then(()=>us=0),us=Date.now());function Qc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Fe(Yc(s,n.value),t,5,[s])};return n.value=e,n.attached=Jc(),n}function Yc(e,t){if(U(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 Nr=/^on[a-z]/,Xc=(e,t,n,s,r=!1,o,i,l,c)=>{t==="class"?Nc(e,s,r):t==="style"?Vc(e,n,s):Dn(t)?$s(t)||Wc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,s,r))?Hc(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Bc(e,t,s,r))};function Zc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Nr.test(t)&&z(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Nr.test(t)&&me(n)?!1:t in e}const Mn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>xn(t,n):t};function Gc(e){e.target.composing=!0}function Vr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ps={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Mn(r);const o=s||r.props&&r.props.type==="number";_t(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=ps(l)),e._assign(l)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Gc),_t(e,"compositionend",Vr),_t(e,"change",Vr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=Mn(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&ps(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},eu={deep:!0,created(e,t,n){e._assign=Mn(n),_t(e,"change",()=>{const s=e._modelValue,r=tu(e),o=e.checked,i=e._assign;if(U(s)){const l=_o(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const u=[...s];u.splice(l,1),i(u)}}else if(Fn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(di(e,o))})},mounted:Ur,beforeUpdate(e,t,n){e._assign=Mn(n),Ur(e,t,n)}};function Ur(e,{value:t,oldValue:n},s){e._modelValue=t,U(t)?e.checked=_o(t,s.props.value)>-1:Fn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Vn(t,di(e,!0)))}function tu(e){return"_value"in e?e._value:e.value}function di(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nu=["ctrl","shift","alt","meta"],su={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)=>nu.some(n=>e[`${n}Key`]&&!t.includes(n))},ht=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const o=su[t[r]];if(o&&o(n,t))return}return e(n,...s)},ru={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Os=(e,t)=>n=>{if(!("key"in n))return;const s=wt(n.key);if(t.some(r=>r===s||ru[r]===s))return e(n)},ou=ye({patchProp:Xc},jc);let Br;function iu(){return Br||(Br=_c(ou))}const lu=(...e)=>{const t=iu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=cu(s);if(!r)return;const o=t._component;!z(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function cu(e){return me(e)?document.querySelector(e):e}var uu=!1;/*!
|
||
* pinia v2.1.6
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let pi;const Gn=e=>pi=e,hi=Symbol();function Cs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Zt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zt||(Zt={}));function au(){const e=bo(!0),t=e.run(()=>fe({}));let n=[],s=[];const r=Bn({install(o){Gn(r),r._a=o,o.provide(hi,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!uu?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const mi=()=>{};function Hr(e,t,n,s=mi){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&Eo()&&Yi(r),r}function St(e,...t){e.slice().forEach(n=>{n(...t)})}const fu=e=>e();function Ss(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];Cs(r)&&Cs(s)&&e.hasOwnProperty(n)&&!ae(s)&&!it(s)?e[n]=Ss(r,s):e[n]=s}return e}const du=Symbol();function pu(e){return!Cs(e)||!e.hasOwnProperty(du)}const{assign:nt}=Object;function hu(e){return!!(ae(e)&&e.effect)}function mu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=r?r():{});const a=Cl(n.state.value[e]);return nt(a,o,Object.keys(i||{}).reduce((d,h)=>(d[h]=Bn(ve(()=>{Gn(n);const g=n._s.get(e);return i[h].call(g,g)})),d),{}))}return c=gi(e,u,t,n,s,!0),c}function gi(e,t,n={},s,r,o){let i;const l=nt({actions:{}},n),c={deep:!0};let u,a,d=[],h=[],g;const v=s.state.value[e];!o&&!v&&(s.state.value[e]={}),fe({});let x;function T(I){let B;u=a=!1,typeof I=="function"?(I(s.state.value[e]),B={type:Zt.patchFunction,storeId:e,events:g}):(Ss(s.state.value[e],I),B={type:Zt.patchObject,payload:I,storeId:e,events:g});const se=x=Symbol();pn().then(()=>{x===se&&(u=!0)}),a=!0,St(d,B,s.state.value[e])}const k=o?function(){const{state:B}=n,se=B?B():{};this.$patch(pe=>{nt(pe,se)})}:mi;function S(){i.stop(),d=[],h=[],s._s.delete(e)}function W(I,B){return function(){Gn(s);const se=Array.from(arguments),pe=[],Se=[];function ke(X){pe.push(X)}function ft(X){Se.push(X)}St(h,{args:se,name:I,store:P,after:ke,onError:ft});let Te;try{Te=B.apply(this&&this.$id===e?this:P,se)}catch(X){throw St(Se,X),X}return Te instanceof Promise?Te.then(X=>(St(pe,X),X)).catch(X=>(St(Se,X),Promise.reject(X))):(St(pe,Te),Te)}}const L={_p:s,$id:e,$onAction:Hr.bind(null,h),$patch:T,$reset:k,$subscribe(I,B={}){const se=Hr(d,I,B.detached,()=>pe()),pe=i.run(()=>Jt(()=>s.state.value[e],Se=>{(B.flush==="sync"?a:u)&&I({storeId:e,type:Zt.direct,events:g},Se)},nt({},c,B)));return se},$dispose:S},P=Bt(L);s._s.set(e,P);const $=s._a&&s._a.runWithContext||fu,Z=s._e.run(()=>(i=bo(),$(()=>i.run(t))));for(const I in Z){const B=Z[I];if(ae(B)&&!hu(B)||it(B))o||(v&&pu(B)&&(ae(B)?B.value=v[I]:Ss(B,v[I])),s.state.value[e][I]=B);else if(typeof B=="function"){const se=W(I,B);Z[I]=se,l.actions[I]=B}}return nt(P,Z),nt(Y(P),Z),Object.defineProperty(P,"$state",{get:()=>s.state.value[e],set:I=>{T(B=>{nt(B,I)})}}),s._p.forEach(I=>{nt(P,i.run(()=>I({store:P,app:s._a,pinia:s,options:l})))}),v&&o&&n.hydrate&&n.hydrate(P.$state,v),u=!0,a=!0,P}function gu(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,c){const u=fc();return l=l||(u?je(hi,null):null),l&&Gn(l),l=pi,l._s.has(s)||(o?gi(s,t,r,l):mu(s,r,l)),l._s.get(s)}return i.$id=s,i}const _u="modulepreload",vu=function(e){return"/"+e},Kr={},F=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=vu(o),o in Kr)return;Kr[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!s)for(let a=r.length-1;a>=0;a--){const d=r[a];if(d.href===o&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":_u,i||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),i)return new Promise((a,d)=>{u.addEventListener("load",a),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},yu={class:"breadcrumb"},bu={href:"#/"},Eu=["href"],wu=Ce({__name:"BreadCrumb",props:{path:{}},setup(e){const t=e,n=Wo(()=>F(()=>import("./home-44e69561.js"),[]));return(s,r)=>(ne(),ue("div",yu,[K("a",bu,[(ne(),xt(Qo(de(n))))]),(ne(!0),ue(_e,null,Yo(t.path,(o,i)=>(ne(),ue("a",{key:i,href:`/#/${t.path.slice(0,i+1).join("/")}/`},Ke(o),9,Eu))),128))]))}});const xu=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Ru={class:"action-button"},Pu=Ce({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=Wo(()=>xu(Object.assign({"../assets/svg/add-file.svg":()=>F(()=>import("./add-file-860b0008.js"),[]),"../assets/svg/add-folder.svg":()=>F(()=>import("./add-folder-46075955.js"),[]),"../assets/svg/arrow.svg":()=>F(()=>import("./arrow-d1d93a71.js"),[]),"../assets/svg/arrows-h.svg":()=>F(()=>import("./arrows-h-a25d1e88.js"),[]),"../assets/svg/arrows-v.svg":()=>F(()=>import("./arrows-v-84510588.js"),[]),"../assets/svg/check.svg":()=>F(()=>import("./check-314a71f1.js"),[]),"../assets/svg/code.svg":()=>F(()=>import("./code-7ddd03ee.js"),[]),"../assets/svg/cog.svg":()=>F(()=>import("./cog-0600c910.js"),[]),"../assets/svg/copy.svg":()=>F(()=>import("./copy-b2c1f092.js"),[]),"../assets/svg/create-file.svg":()=>F(()=>import("./create-file-a0087f06.js"),[]),"../assets/svg/create-folder.svg":()=>F(()=>import("./create-folder-ee73f2da.js"),[]),"../assets/svg/cross.svg":()=>F(()=>import("./cross-ee8a27f3.js"),[]),"../assets/svg/disk.svg":()=>F(()=>import("./disk-fb827eb0.js"),[]),"../assets/svg/download.svg":()=>F(()=>import("./download-9e198838.js"),[]),"../assets/svg/exclamation.svg":()=>F(()=>import("./exclamation-1bb88697.js"),[]),"../assets/svg/eye.svg":()=>F(()=>import("./eye-ccbaef38.js"),[]),"../assets/svg/find.svg":()=>F(()=>import("./find-c89145a7.js"),[]),"../assets/svg/fullscreen.svg":()=>F(()=>import("./fullscreen-f50b5fd6.js"),[]),"../assets/svg/github.svg":()=>F(()=>import("./github-89189e12.js"),[]),"../assets/svg/home.svg":()=>F(()=>import("./home-44e69561.js"),[]),"../assets/svg/info.svg":()=>F(()=>import("./info-e0567137.js"),[]),"../assets/svg/link.svg":()=>F(()=>import("./link-3aa23063.js"),[]),"../assets/svg/logo.svg":()=>F(()=>import("./logo-d2990a75.js"),[]),"../assets/svg/loop.svg":()=>F(()=>import("./loop-d068db71.js"),[]),"../assets/svg/menu.svg":()=>F(()=>import("./menu-695d1201.js"),[]),"../assets/svg/next.svg":()=>F(()=>import("./next-a6561c6e.js"),[]),"../assets/svg/open.svg":()=>F(()=>import("./open-d708c568.js"),[]),"../assets/svg/paste.svg":()=>F(()=>import("./paste-472b462e.js"),[]),"../assets/svg/pause.svg":()=>F(()=>import("./pause-0977a845.js"),[]),"../assets/svg/pencil.svg":()=>F(()=>import("./pencil-c1143bcd.js"),[]),"../assets/svg/play.svg":()=>F(()=>import("./play-127b97fe.js"),[]),"../assets/svg/plus.svg":()=>F(()=>import("./plus-af1460f6.js"),[]),"../assets/svg/previous.svg":()=>F(()=>import("./previous-aa9f1db1.js"),[]),"../assets/svg/reload.svg":()=>F(()=>import("./reload-bad5d91e.js"),[]),"../assets/svg/rename.svg":()=>F(()=>import("./rename-e3e7c6aa.js"),[]),"../assets/svg/scissors.svg":()=>F(()=>import("./scissors-a9893c7e.js"),[]),"../assets/svg/shuffle.svg":()=>F(()=>import("./shuffle-b7e0bde0.js"),[]),"../assets/svg/signin.svg":()=>F(()=>import("./signin-24d369e8.js"),[]),"../assets/svg/signout.svg":()=>F(()=>import("./signout-f1b0e166.js"),[]),"../assets/svg/skip.svg":()=>F(()=>import("./skip-14475311.js"),[]),"../assets/svg/spinner.svg":()=>F(()=>import("./spinner-ddd43494.js"),[]),"../assets/svg/stop.svg":()=>F(()=>import("./stop-028796ed.js"),[]),"../assets/svg/trash.svg":()=>F(()=>import("./trash-40fecd4a.js"),[]),"../assets/svg/triangle.svg":()=>F(()=>import("./triangle-5644bafa.js"),[]),"../assets/svg/unfullscreen.svg":()=>F(()=>import("./unfullscreen-bf1b34e4.js"),[]),"../assets/svg/up-arrow.svg":()=>F(()=>import("./up-arrow-8053177d.js"),[]),"../assets/svg/upload-cloud.svg":()=>F(()=>import("./upload-cloud-5bac4102.js"),[]),"../assets/svg/user-cog.svg":()=>F(()=>import("./user-cog-e07cbff8.js"),[]),"../assets/svg/user.svg":()=>F(()=>import("./user-73831f8e.js"),[]),"../assets/svg/volume-high.svg":()=>F(()=>import("./volume-high-61ebfe68.js"),[]),"../assets/svg/volume-low.svg":()=>F(()=>import("./volume-low-9fb3aa11.js"),[]),"../assets/svg/volume-medium.svg":()=>F(()=>import("./volume-medium-267760fd.js"),[]),"../assets/svg/volume-mute.svg":()=>F(()=>import("./volume-mute-60511f65.js"),[]),"../assets/svg/window-cross.svg":()=>F(()=>import("./window-cross-4b0726a9.js"),[]),"../assets/svg/window.svg":()=>F(()=>import("./window-10debaaa.js"),[]),"../assets/svg/wordwrap.svg":()=>F(()=>import("./wordwrap-57ccda1a.js"),[]),"../assets/svg/zoomin.svg":()=>F(()=>import("./zoomin-f3157dc9.js"),[]),"../assets/svg/zoomout.svg":()=>F(()=>import("./zoomout-78193f58.js"),[])}),`../assets/svg/${t.name}.svg`));return(s,r)=>(ne(),ue("button",Ru,[(ne(),xt(Qo(de(n)))),Ys(s.$slots,"default",{},void 0,!0)]))}});const hn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},tr=hn(Pu,[["__scopeId","data-v-4f4f7fe2"]]);function _i(e){if(e===0)return"empty";for(const t of[null,"kB","MB","GB","TB","PB","EB"]){if(e<1e4)return e.toLocaleString().replace(","," ")+(t?` ${t}`:"");e=Math.round(e/1e3)}return"huge"}function Is(e){const t=new Date(e*1e3),n=new Date,s=t.getTime()-n.getTime(),r=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(Math.abs(s)<=5e3)return"now";if(Math.abs(s)<=6e4)return r.format(Math.round(s/1e3),"second");if(Math.abs(s)<=36e5)return r.format(Math.round(s/6e4),"minute");if(Math.abs(s)<=864e5)return r.format(Math.round(s/36e5),"hour");if(Math.abs(s)<=6048e5)return r.format(Math.round(s/864e5),"day");const o=t.toLocaleDateString("us",{weekday:"short",year:"numeric",month:"short",day:"numeric"}).replace("Sept","Sep");return(o.length===16?o:o.replace(", ",", ")).replaceAll(" "," ")}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});var vi=nr.localeIncludes=void 0,Ou=["position","locales"];function Cu(e,t){if(e==null)return{};var n=Su(e,t),s,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)s=o[r],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function Su(e,t){if(e==null)return{};var n={},s=Object.keys(e),r,o;for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var Iu=function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.position,o=r===void 0?0:r,i=s.locales,l=Cu(s,Ou);if(t==null||n===void 0||n===null)throw new Error("localeIncludes requires at least 2 parameters");for(var c=t.length,u=n.length,a=c-u,d=o;d<=a;d++)if(t.substring(d,d+u).localeCompare(n,i,l)===0)return!0;return!1};vi=nr.localeIncludes=Iu;const Ze=gu({id:"documents",state:()=>({root:{},document:[],selected:new Set,uploadingDocuments:[],uploadCount:0,wsWatch:void 0,wsUpload:void 0,fileExplorer:null,error:"",user:{username:"",privileged:!1,isLoggedIn:!1,isOpenLoginModal:!1}}),actions:{updateTable(e){const t=[];for(const[n,s]of Object.entries(e)){const{id:r,size:o,mtime:i}=s,l={name:n,key:r,size:o,sizedisp:_i(o),mtime:i,modified:Is(i),type:"dir"in s?"folder":"file"};t.push(l)}t.sort((n,s)=>n.type===s.type?n.name.localeCompare(s.name,void 0,{numeric:!0,sensitivity:"base"}):n.type==="folder"?-1:1),this.document=t},setFilter(e){if(e==="")return this.updateTable({});function t(r,o){if("dir"in r)for(const[i,l]of Object.entries(r.dir)){const c=`${o}/${i}`;if(vi(i,e,{usage:"search",numeric:!0,sensitivity:"base"})&&(s[c.slice(1)]=l,!--n))throw Error("Too many matches");t(l,c)}}let n=100;const s={};try{t(this.root,"")}catch(r){if(r.message!=="Too many matches")throw r}this.updateTable(s)},setActualDocument(e){e=decodeURIComponent(e);let t=this.root;const n=[];try{for(const s of e.split("/").slice(1))if(s){if(!("dir"in t))throw Error("Target folder not available");n.push(s),t=t.dir[s]}}catch(s){console.error("Cannot show requested folder",e,n.join("/"),s)}if(!("dir"in t)){this.document=[];return}this.updateTable(t.dir)},updateUploadingDocuments(e,t){for(const n of this.uploadingDocuments)n.key===e&&(n.progress=t)},pushUploadingDocuments(e){this.uploadCount++;const t={key:this.uploadCount,name:e,progress:0};return this.uploadingDocuments.push(t),t},deleteUploadingDocument(e){this.uploadingDocuments=this.uploadingDocuments.filter(t=>t.key!==e)},updateModified(){for(const e of this.document)"mtime"in e&&(e.modified=Is(e.mtime))},login(e,t){this.user.username=e,this.user.privileged=t,this.user.isLoggedIn=!0,this.user.isOpenLoginModal=!1}},getters:{mainDocument(){return this.document},isUserLogged(){return this.user.isLoggedIn},selectedFiles(){function e(s,r,o){if("dir"in s)for(const[i,l]of Object.entries(s.dir)){const c=r?`${r}/${i}`:i;let u=o;t.has(l.id)&&!o?(n.selected.add(l.id),n.rootdir[i]=l,u=i):o&&(u=`${o}/${i}`),u&&(n.entries[l.id]=l,n.fullpath[l.id]=c,n.relpath[l.id]=u,n.ids.push(l.id),"dir"in l||(n.url[l.id]=`/files/${c}`)),e(l,c,u)}}const t=this.selected,n={selected:new Set,missing:new Set,rootdir:{},entries:{},fullpath:{},relpath:{},url:{},ids:[]};e(this.root,"","");for(const s of t)n.selected.has(s)||n.missing.add(s);return n.ids.sort((s,r)=>n.relpath[s].localeCompare(n.relpath[r],void 0,{numeric:!0,sensitivity:"base"})),n}}}),Au=Ce({__name:"UploadButton",setup(e){const t=fe(),n=fe(),s=Ze(),r=a=>i(),o=fe(!1),i=a=>{o.value||(o.value=!0)};async function l(a,d,h){const g=new FileReader,v=new Promise(T=>g.onload=T);g.readAsArrayBuffer(a.slice(d,h));const x=await v;if(x.target&&x.target instanceof FileReader)return x.target.result;throw new Error("Error loading file")}async function c(a,d,h){const g=s.wsUpload;if(g){const v=await l(a,d,h);g.send(JSON.stringify({name:a.name,size:a.size,start:d,end:h})),g.send(v)}}async function u(a){const d=a.target,h=1<<20;if(d&&d.files&&d.files.length>0){const g=d.files[0],v=Math.ceil(g.size/h),x=s.pushUploadingDocuments(g.name);r();for(let T=0;T<v;T++){const k=T*h,S=Math.min(g.size,k+h);await c(g,k,S),console.log("progress: "+100*(T+1)/v),console.log("Num Chunks: "+v),s.updateUploadingDocuments(x.key,100*(T+1)/v)}}}return(a,d)=>{const h=tr;return ne(),ue(_e,null,[K("template",null,[K("input",{ref_key:"fileUploadButton",ref:t,onChange:u,class:"upload-input",type:"file",multiple:""},null,544),K("input",{ref_key:"folderUploadButton",ref:n,onChange:u,class:"upload-input",type:"file",webkitdirectory:""},null,544)]),J(h,{name:"add-file",onClick:d[0]||(d[0]=g=>t.value.click())}),J(h,{name:"add-folder",onClick:d[1]||(d[1]=g=>n.value.click())})],64)}}}),ku=e=>(zn("data-v-5fac5f71"),e=e(),qn(),e),Tu={class:"buttons"},Mu=ku(()=>K("div",{class:"spacer"},null,-1)),$u=["onKeyup"],Lu=Ce({__name:"HeaderMain",setup(e,{expose:t}){const n=Ze(),s=fe(!1),r=fe(),o=fe(),i=()=>{s.value=!s.value,pn(()=>{const c=r.value;c?c.focus():o.value&&o.value.blur(),l()})},l=()=>{var c;n.setFilter(((c=r.value)==null?void 0:c.value)??"")};return t({toggleSearchInput:i}),(c,u)=>{const a=Au,d=tr;return ne(),ue("nav",null,[K("div",Tu,[J(a),J(d,{name:"create-folder",onClick:u[0]||(u[0]=()=>de(n).fileExplorer.newFolder())}),Ys(c.$slots,"default",{},void 0,!0),Mu,s.value?(ne(),ue("input",{key:0,ref_key:"search",ref:r,type:"search",class:"margin-input",onKeyup:Os(i,["esc"]),onInput:l},null,40,$u)):ct("",!0),J(d,{ref_key:"searchButton",ref:o,name:"find",onClick:i},null,512),J(d,{name:"cog",onClick:u[1]||(u[1]=h=>console.log("TODO open settings"))})])])}}});const Du=hn(Lu,[["__scopeId","data-v-5fac5f71"]]);function Ft(e,t){const n=new URL(e,location.origin.replace(/^http/,"ws")),s=new WebSocket(n);return s.onmessage=t,s}const Fu=e=>(zn("data-v-54db91c1"),e=e(),qn(),e),ju=Fu(()=>K("div",{class:"smallgap"},null,-1)),Nu={class:"select-text"},Vu=Ce({__name:"HeaderSelected",props:{path:Array},setup(e){const t=e,n=Ze(),s=ve(()=>t.path.join("/")),r=(c,u)=>{const a=n.selectedFiles,d={op:c,sel:a.ids.filter(g=>a.selected.has(g)).map(g=>a.fullpath[g])};u!==void 0&&(d.dst=u);const h=Ft("/api/control",g=>{const v=JSON.parse(g.data);if("error"in v){console.error("Control socket error",d,v.error);return}else if(v.status==="ack"){console.log("Control ack OK",v),h.close(),n.selected.clear();return}else console.log("Unknown control respons",d,v)});h.onopen=()=>{h.send(JSON.stringify(d))}},o=c=>{const u=document.createElement("a");u.href=c,u.download="",u.click()},i=async(c,u)=>{let a="",d=u,h=[];for(const g of c.ids)h.push(c.relpath[g]);console.log("Downloading to filesystem",h);for(const g of c.ids){const v=c.relpath[g],x=c.url[g];v.startsWith(a)||(a="",d=u);const T=v.slice(a.length);for(const P of T.split("/").slice(0,x?-1:void 0)){a+=`${P}/`;try{d=await d.getDirectoryHandle(P.normalize("NFC"),{create:!0})}catch($){console.error("Failed to create directory",a,$);return}console.log("Created",a)}if(!x)continue;const k=v.split("/").pop().normalize("NFC");let S;try{S=await d.getFileHandle(k,{create:!0})}catch(P){console.error("Failed to create file",a+k,P);return}const W=await S.createWritable();console.log("Fetching",x);const L=await fetch(x);if(!L.ok)throw new Error(`Failed to download ${x}: ${L.status} ${L.statusText}`);L.body?await L.body.pipeTo(W):(await W.truncate(0),await W.close()),console.log("Saved",a+k)}},l=async()=>{const c=n.selectedFiles;if(console.log("Download",c),c.selected.size===0){console.warn("Attempted download but no files found. Missing:",c.missing),n.selected.clear();return}const u=Object.values(c.url);if(u.length===1)return n.selected.clear(),o(u[0]);if("showDirectoryPicker"in window)try{const a=await window.showDirectoryPicker({startIn:"downloads",mode:"readwrite"});i(c,a).then(()=>{n.selected.clear()});return}catch(a){console.error("Download to folder aborted",a)}o(`/zip/${Array.from(c.selected).join("+")}/download.zip`),n.selected.clear()};return(c,u)=>{const a=tr;return de(n).selected.size?(ne(),ue(_e,{key:0},[ju,K("p",Nu,Ke(de(n).selected.size)+" selected ➤",1),J(a,{name:"download",onClick:l}),J(a,{name:"copy",onClick:u[0]||(u[0]=d=>r("cp",s.value))}),J(a,{name:"paste",onClick:u[1]||(u[1]=d=>r("mv",s.value))}),J(a,{name:"trash",onClick:u[2]||(u[2]=d=>r("rm"))}),K("button",{onClick:u[3]||(u[3]=d=>de(n).selected.clear())},"❌")],64)):ct("",!0)}}});const Uu=hn(Vu,[["__scopeId","data-v-54db91c1"]]),Bu={key:0},Hu=K("button",{onclick:"dialog.close()"},"OK",-1),Ku=Ce({__name:"ModalDialog",props:{title:{default:""}},setup(e){const t=e,n=fe(null);return Qn(()=>{n.value.showModal()}),(s,r)=>(ne(),ue("dialog",{ref_key:"dialog",ref:n},[t.title?(ne(),ue("h1",Bu,Ke(t.title),1)):ct("",!0),K("div",null,[Ys(s.$slots,"default",{},()=>[ci(" Dialog with no content "),Hu])])],512))}});class Wu{async post(t,n){const s=await fetch(t,{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:n!==void 0?JSON.stringify(n):void 0});let r;try{r=await s.json()}catch{throw new Wr(s.status,`HTTP ${s.status} ${s.statusText}`)}if("error"in r)throw new Wr(r.error.code,r.error.message);return r}}const yi=new Wu;class Wr extends Error{constructor(n,s){super(s);ur(this,"code");this.code=n}}const zu="/login",qu="/logout ";async function Ju(e,t){return await yi.post(zu,{username:e,password:t})}async function Qu(){return await yi.post(qu)}const sr=e=>(zn("data-v-0167bcf4"),e=e(),qn(),e),Yu=["onSubmit"],Xu={class:"login-container"},Zu=sr(()=>K("label",{for:"username"},"Username:",-1)),Gu=sr(()=>K("label",{for:"password"},"Password:",-1)),ea={key:0,class:"error-text"},ta=sr(()=>K("input",{id:"submit",type:"submit",class:"button-login"},null,-1)),na=Ce({__name:"LoginModal",setup(e){const t=fe(!1),n=Ze(),s=async()=>{try{await Qu()}finally{location.reload()}},r=Bt({username:"",password:"",error:""}),o=async()=>{try{r.error="",t.value=!0;const i=await Ju(r.username,r.password);console.log("Logged in",i),n.login(i.username,!!i.privileged)}catch(i){const l=i;l.name&&(r.error=l.message)}finally{t.value=!1}};return(i,l)=>{const c=Ku;return ne(),ue(_e,null,[de(n).isUserLogged?(ne(),ue("button",{key:0,onClick:s,class:"action-button"}," Logout "+Ke(de(n).user.username),1)):ct("",!0),de(n).user.isOpenLoginModal?(ne(),xt(c,{key:1,title:"Login"},{default:zs(()=>[K("form",{onSubmit:ht(o,["prevent"])},[K("div",Xu,[Zu,An(K("input",{id:"username",name:"username",autocomplete:"username",required:"","onUpdate:modelValue":l[0]||(l[0]=u=>r.username=u)},null,512),[[Ps,r.username]]),Gu,An(K("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":l[1]||(l[1]=u=>r.password=u)},null,512),[[Ps,r.password]])]),r.error.length>0?(ne(),ue("h3",ea,Ke(r.error),1)):ct("",!0),ta],40,Yu)]),_:1})):ct("",!0)],64)}}});const sa=hn(na,[["__scopeId","data-v-0167bcf4"]]);/*!
|
||
* vue-router v4.2.4
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const It=typeof window<"u";function ra(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const te=Object.assign;function as(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ne(r)?r.map(e):e(r)}return n}const Gt=()=>{},Ne=Array.isArray,oa=/\/$/,ia=e=>e.replace(oa,"");function fs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=aa(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function la(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ca(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&jt(t.matched[s],n.matched[r])&&bi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ua(e[n],t[n]))return!1;return!0}function ua(e,t){return Ne(e)?qr(e,t):Ne(t)?qr(t,e):e===t}function qr(e,t){return Ne(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function aa(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,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var an;(function(e){e.pop="pop",e.push="push"})(an||(an={}));var en;(function(e){e.back="back",e.forward="forward",e.unknown=""})(en||(en={}));function fa(e){if(!e)if(It){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ia(e)}const da=/^[^#]+#/;function pa(e,t){return e.replace(da,"#")+t}function ha(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 es=()=>({left:window.pageXOffset,top:window.pageYOffset});function ma(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=ha(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Jr(e,t){return(history.state?history.state.position-t:-1)+e}const As=new Map;function ga(e,t){As.set(e,t)}function _a(e){const t=As.get(e);return As.delete(e),t}let va=()=>location.protocol+"//"+location.host;function Ei(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),zr(c,"")}return zr(n,e)+s+r}function ya(e,t,n,s){let r=[],o=[],i=null;const l=({state:h})=>{const g=Ei(e,location),v=n.value,x=t.value;let T=0;if(h){if(n.value=g,t.value=h,i&&i===v){i=null;return}T=x?h.position-x.position:0}else s(g);r.forEach(k=>{k(n.value,v,{delta:T,type:an.pop,direction:T?T>0?en.forward:en.back:en.unknown})})};function c(){i=n.value}function u(h){r.push(h);const g=()=>{const v=r.indexOf(h);v>-1&&r.splice(v,1)};return o.push(g),g}function a(){const{history:h}=window;h.state&&h.replaceState(te({},h.state,{scroll:es()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function Qr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?es():null}}function ba(e){const{history:t,location:n}=window,s={value:Ei(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(c,u,a){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:va()+e+c;try{t[a?"replaceState":"pushState"](u,"",h),r.value=u}catch(g){console.error(g),n[a?"replace":"assign"](h)}}function i(c,u){const a=te({},t.state,Qr(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,a,!0),s.value=c}function l(c,u){const a=te({},r.value,t.state,{forward:c,scroll:es()});o(a.current,a,!0);const d=te({},Qr(s.value,c,null),{position:a.position+1},u);o(c,d,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ea(e){e=fa(e);const t=ba(e),n=ya(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:pa.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}function wa(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ea(e)}function xa(e){return typeof e=="string"||e&&typeof e=="object"}function wi(e){return typeof e=="string"||typeof e=="symbol"}const tt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xi=Symbol("");var Yr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Yr||(Yr={}));function Nt(e,t){return te(new Error,{type:e,[xi]:!0},t)}function Je(e,t){return e instanceof Error&&xi in e&&(t==null||!!(e.type&t))}const Xr="[^/]+?",Ra={sensitive:!1,strict:!1,start:!0,end:!0},Pa=/[.+*?^${}()[\]/\\]/g;function Oa(e,t){const n=te({},Ra,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const h=u[d];let g=40+(n.sensitive?.25:0);if(h.type===0)d||(r+="/"),r+=h.value.replace(Pa,"\\$&"),g+=40;else if(h.type===1){const{value:v,repeatable:x,optional:T,regexp:k}=h;o.push({name:v,repeatable:x,optional:T});const S=k||Xr;if(S!==Xr){g+=10;try{new RegExp(`(${S})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${v}" (${S}): `+L.message)}}let W=x?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;d||(W=T&&u.length<2?`(?:/${W})`:"/"+W),T&&(W+="?"),r+=W,g+=20,T&&(g+=-8),x&&(g+=-20),S===".*"&&(g+=-50)}a.push(g)}s.push(a)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const a=u.match(i),d={};if(!a)return null;for(let h=1;h<a.length;h++){const g=a[h]||"",v=o[h-1];d[v.name]=g&&v.repeatable?g.split("/"):g}return d}function c(u){let a="",d=!1;for(const h of e){(!d||!a.endsWith("/"))&&(a+="/"),d=!1;for(const g of h)if(g.type===0)a+=g.value;else if(g.type===1){const{value:v,repeatable:x,optional:T}=g,k=v in u?u[v]:"";if(Ne(k)&&!x)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const S=Ne(k)?k.join("/"):k;if(!S)if(T)h.length<2&&(a.endsWith("/")?a=a.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);a+=S}}return a||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Ca(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Sa(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Ca(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Zr(s))return 1;if(Zr(r))return-1}return r.length-s.length}function Zr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ia={type:0,value:""},Aa=/[a-zA-Z0-9_]/;function ka(e){if(!e)return[[]];if(e==="/")return[[Ia]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(u&&d(),i()):c===":"?(d(),n=1):h();break;case 4:h(),n=s;break;case 1:c==="("?n=2:Aa.test(c)?h():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=3:a+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),r}function Ta(e,t,n){const s=Oa(ka(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 Ma(e,t){const n=[],s=new Map;t=to({strict:!1,end:!0,sensitive:!1},t);function r(a){return s.get(a)}function o(a,d,h){const g=!h,v=$a(a);v.aliasOf=h&&h.record;const x=to(t,a),T=[v];if("alias"in a){const W=typeof a.alias=="string"?[a.alias]:a.alias;for(const L of W)T.push(te({},v,{components:h?h.record.components:v.components,path:L,aliasOf:h?h.record:v}))}let k,S;for(const W of T){const{path:L}=W;if(d&&L[0]!=="/"){const P=d.record.path,$=P[P.length-1]==="/"?"":"/";W.path=d.record.path+(L&&$+L)}if(k=Ta(W,d,x),h?h.alias.push(k):(S=S||k,S!==k&&S.alias.push(k),g&&a.name&&!eo(k)&&i(a.name)),v.children){const P=v.children;for(let $=0;$<P.length;$++)o(P[$],k,h&&h.children[$])}h=h||k,(k.record.components&&Object.keys(k.record.components).length||k.record.name||k.record.redirect)&&c(k)}return S?()=>{i(S)}:Gt}function i(a){if(wi(a)){const d=s.get(a);d&&(s.delete(a),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(a);d>-1&&(n.splice(d,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function l(){return n}function c(a){let d=0;for(;d<n.length&&Sa(a,n[d])>=0&&(a.record.path!==n[d].record.path||!Ri(a,n[d]));)d++;n.splice(d,0,a),a.record.name&&!eo(a)&&s.set(a.record.name,a)}function u(a,d){let h,g={},v,x;if("name"in a&&a.name){if(h=s.get(a.name),!h)throw Nt(1,{location:a});x=h.record.name,g=te(Gr(d.params,h.keys.filter(S=>!S.optional).map(S=>S.name)),a.params&&Gr(a.params,h.keys.map(S=>S.name))),v=h.stringify(g)}else if("path"in a)v=a.path,h=n.find(S=>S.re.test(v)),h&&(g=h.parse(v),x=h.record.name);else{if(h=d.name?s.get(d.name):n.find(S=>S.re.test(d.path)),!h)throw Nt(1,{location:a,currentLocation:d});x=h.record.name,g=te({},d.params,a.params),v=h.stringify(g)}const T=[];let k=h;for(;k;)T.unshift(k.record),k=k.parent;return{name:x,path:v,params:g,matched:T,meta:Da(T)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Gr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $a(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:La(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function La(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 eo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Da(e){return e.reduce((t,n)=>te(t,n.meta),{})}function to(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Ri(e,t){return t.children.some(n=>n===e||Ri(e,n))}const Pi=/#/g,Fa=/&/g,ja=/\//g,Na=/=/g,Va=/\?/g,Oi=/\+/g,Ua=/%5B/g,Ba=/%5D/g,Ci=/%5E/g,Ha=/%60/g,Si=/%7B/g,Ka=/%7C/g,Ii=/%7D/g,Wa=/%20/g;function rr(e){return encodeURI(""+e).replace(Ka,"|").replace(Ua,"[").replace(Ba,"]")}function za(e){return rr(e).replace(Si,"{").replace(Ii,"}").replace(Ci,"^")}function ks(e){return rr(e).replace(Oi,"%2B").replace(Wa,"+").replace(Pi,"%23").replace(Fa,"%26").replace(Ha,"`").replace(Si,"{").replace(Ii,"}").replace(Ci,"^")}function qa(e){return ks(e).replace(Na,"%3D")}function Ja(e){return rr(e).replace(Pi,"%23").replace(Va,"%3F")}function Qa(e){return e==null?"":Ja(e).replace(ja,"%2F")}function $n(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ya(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(Oi," "),i=o.indexOf("="),l=$n(i<0?o:o.slice(0,i)),c=i<0?null:$n(o.slice(i+1));if(l in t){let u=t[l];Ne(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function no(e){let t="";for(let n in e){const s=e[n];if(n=qa(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ne(s)?s.map(o=>o&&ks(o)):[s&&ks(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Xa(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ne(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Za=Symbol(""),so=Symbol(""),ts=Symbol(""),Ai=Symbol(""),Ts=Symbol("");function Wt(){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 rt(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const c=d=>{d===!1?l(Nt(4,{from:n,to:t})):d instanceof Error?l(d):xa(d)?l(Nt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},u=e.call(s&&s.instances[r],t,n,c);let a=Promise.resolve(u);e.length<3&&(a=a.then(c)),a.catch(d=>l(d))})}function ds(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(Ga(l)){const u=(l.__vccOpts||l)[t];u&&r.push(rt(u,n,s,o,i))}else{let c=l();r.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=ra(u)?u.default:u;o.components[i]=a;const h=(a.__vccOpts||a)[t];return h&&rt(h,n,s,o,i)()}))}}return r}function Ga(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ro(e){const t=je(ts),n=je(Ai),s=ve(()=>t.resolve(de(e.to))),r=ve(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const h=d.findIndex(jt.bind(null,a));if(h>-1)return h;const g=oo(c[u-2]);return u>1&&oo(a)===g&&d[d.length-1].path!==g?d.findIndex(jt.bind(null,c[u-2])):h}),o=ve(()=>r.value>-1&&sf(n.params,s.value.params)),i=ve(()=>r.value>-1&&r.value===n.matched.length-1&&bi(n.params,s.value.params));function l(c={}){return nf(c)?t[de(e.replace)?"replace":"push"](de(e.to)).catch(Gt):Promise.resolve()}return{route:s,href:ve(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const ef=Ce({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"}},useLink:ro,setup(e,{slots:t}){const n=Bt(ro(e)),{options:s}=je(ts),r=ve(()=>({[io(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[io(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:fi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),tf=ef;function nf(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 sf(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(!Ne(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function oo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const io=(e,t,n)=>e??t??n,rf=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=je(Ts),r=ve(()=>e.route||s.value),o=je(so,0),i=ve(()=>{let u=de(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=ve(()=>r.value.matched[i.value]);Rn(so,ve(()=>i.value+1)),Rn(Za,l),Rn(Ts,r);const c=fe();return Jt(()=>[c.value,l.value,e.name],([u,a,d],[h,g,v])=>{a&&(a.instances[d]=u,g&&g!==a&&u&&u===h&&(a.leaveGuards.size||(a.leaveGuards=g.leaveGuards),a.updateGuards.size||(a.updateGuards=g.updateGuards))),u&&a&&(!g||!jt(a,g)||!h)&&(a.enterCallbacks[d]||[]).forEach(x=>x(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,h=d&&d.components[a];if(!h)return lo(n.default,{Component:h,route:u});const g=d.props[a],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,T=fi(h,te({},v,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return lo(n.default,{Component:T,route:u})||T}}});function lo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ki=rf;function of(e){const t=Ma(e.routes,e),n=e.parseQuery||Ya,s=e.stringifyQuery||no,r=e.history,o=Wt(),i=Wt(),l=Wt(),c=Rl(tt);let u=tt;It&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=as.bind(null,y=>""+y),d=as.bind(null,Qa),h=as.bind(null,$n);function g(y,M){let C,j;return wi(y)?(C=t.getRecordMatcher(y),j=M):j=y,t.addRoute(j,C)}function v(y){const M=t.getRecordMatcher(y);M&&t.removeRoute(M)}function x(){return t.getRoutes().map(y=>y.record)}function T(y){return!!t.getRecordMatcher(y)}function k(y,M){if(M=te({},M||c.value),typeof y=="string"){const m=fs(n,y,M.path),_=t.resolve({path:m.path},M),b=r.createHref(m.fullPath);return te(m,_,{params:h(_.params),hash:$n(m.hash),redirectedFrom:void 0,href:b})}let C;if("path"in y)C=te({},y,{path:fs(n,y.path,M.path).path});else{const m=te({},y.params);for(const _ in m)m[_]==null&&delete m[_];C=te({},y,{params:d(m)}),M.params=d(M.params)}const j=t.resolve(C,M),ee=y.hash||"";j.params=a(h(j.params));const f=la(s,te({},y,{hash:za(ee),path:j.path})),p=r.createHref(f);return te({fullPath:f,hash:ee,query:s===no?Xa(y.query):y.query||{}},j,{redirectedFrom:void 0,href:p})}function S(y){return typeof y=="string"?fs(n,y,c.value.path):te({},y)}function W(y,M){if(u!==y)return Nt(8,{from:M,to:y})}function L(y){return Z(y)}function P(y){return L(te(S(y),{replace:!0}))}function $(y){const M=y.matched[y.matched.length-1];if(M&&M.redirect){const{redirect:C}=M;let j=typeof C=="function"?C(y):C;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=S(j):{path:j},j.params={}),te({query:y.query,hash:y.hash,params:"path"in j?{}:y.params},j)}}function Z(y,M){const C=u=k(y),j=c.value,ee=y.state,f=y.force,p=y.replace===!0,m=$(C);if(m)return Z(te(S(m),{state:typeof m=="object"?te({},ee,m.state):ee,force:f,replace:p}),M||C);const _=C;_.redirectedFrom=M;let b;return!f&&ca(s,j,C)&&(b=Nt(16,{to:_,from:j}),Ve(j,j,!0,!1)),(b?Promise.resolve(b):se(_,j)).catch(E=>Je(E)?Je(E,2)?E:Ge(E):G(E,_,j)).then(E=>{if(E){if(Je(E,2))return Z(te({replace:p},S(E.to),{state:typeof E.to=="object"?te({},ee,E.to.state):ee,force:f}),M||_)}else E=Se(_,j,!0,p,ee);return pe(_,j,E),E})}function I(y,M){const C=W(y,M);return C?Promise.reject(C):Promise.resolve()}function B(y){const M=Pt.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(y):y()}function se(y,M){let C;const[j,ee,f]=lf(y,M);C=ds(j.reverse(),"beforeRouteLeave",y,M);for(const m of j)m.leaveGuards.forEach(_=>{C.push(rt(_,y,M))});const p=I.bind(null,y,M);return C.push(p),Ee(C).then(()=>{C=[];for(const m of o.list())C.push(rt(m,y,M));return C.push(p),Ee(C)}).then(()=>{C=ds(ee,"beforeRouteUpdate",y,M);for(const m of ee)m.updateGuards.forEach(_=>{C.push(rt(_,y,M))});return C.push(p),Ee(C)}).then(()=>{C=[];for(const m of f)if(m.beforeEnter)if(Ne(m.beforeEnter))for(const _ of m.beforeEnter)C.push(rt(_,y,M));else C.push(rt(m.beforeEnter,y,M));return C.push(p),Ee(C)}).then(()=>(y.matched.forEach(m=>m.enterCallbacks={}),C=ds(f,"beforeRouteEnter",y,M),C.push(p),Ee(C))).then(()=>{C=[];for(const m of i.list())C.push(rt(m,y,M));return C.push(p),Ee(C)}).catch(m=>Je(m,8)?m:Promise.reject(m))}function pe(y,M,C){l.list().forEach(j=>B(()=>j(y,M,C)))}function Se(y,M,C,j,ee){const f=W(y,M);if(f)return f;const p=M===tt,m=It?history.state:{};C&&(j||p?r.replace(y.fullPath,te({scroll:p&&m&&m.scroll},ee)):r.push(y.fullPath,ee)),c.value=y,Ve(y,M,C,p),Ge()}let ke;function ft(){ke||(ke=r.listen((y,M,C)=>{if(!mn.listening)return;const j=k(y),ee=$(j);if(ee){Z(te(ee,{replace:!0}),j).catch(Gt);return}u=j;const f=c.value;It&&ga(Jr(f.fullPath,C.delta),es()),se(j,f).catch(p=>Je(p,12)?p:Je(p,2)?(Z(p.to,j).then(m=>{Je(m,20)&&!C.delta&&C.type===an.pop&&r.go(-1,!1)}).catch(Gt),Promise.reject()):(C.delta&&r.go(-C.delta,!1),G(p,j,f))).then(p=>{p=p||Se(j,f,!1),p&&(C.delta&&!Je(p,8)?r.go(-C.delta,!1):C.type===an.pop&&Je(p,20)&&r.go(-1,!1)),pe(j,f,p)}).catch(Gt)}))}let Te=Wt(),X=Wt(),oe;function G(y,M,C){Ge(y);const j=X.list();return j.length?j.forEach(ee=>ee(y,M,C)):console.error(y),Promise.reject(y)}function qe(){return oe&&c.value!==tt?Promise.resolve():new Promise((y,M)=>{Te.add([y,M])})}function Ge(y){return oe||(oe=!y,ft(),Te.list().forEach(([M,C])=>y?C(y):M()),Te.reset()),y}function Ve(y,M,C,j){const{scrollBehavior:ee}=e;if(!It||!ee)return Promise.resolve();const f=!C&&_a(Jr(y.fullPath,0))||(j||!C)&&history.state&&history.state.scroll||null;return pn().then(()=>ee(y,M,f)).then(p=>p&&ma(p)).catch(p=>G(p,y,M))}const Re=y=>r.go(y);let Rt;const Pt=new Set,mn={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,hasRoute:T,getRoutes:x,resolve:k,options:e,push:L,replace:P,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:X.add,isReady:qe,install(y){const M=this;y.component("RouterLink",tf),y.component("RouterView",ki),y.config.globalProperties.$router=M,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>de(c)}),It&&!Rt&&c.value===tt&&(Rt=!0,L(r.location).catch(ee=>{}));const C={};for(const ee in tt)Object.defineProperty(C,ee,{get:()=>c.value[ee],enumerable:!0});y.provide(ts,M),y.provide(Ai,To(C)),y.provide(Ts,c);const j=y.unmount;Pt.add(y),y.unmount=function(){Pt.delete(y),Pt.size<1&&(u=tt,ke&&ke(),ke=null,c.value=tt,Rt=!1,oe=!1),j()}}};function Ee(y){return y.reduce((M,C)=>M.then(()=>B(C)),Promise.resolve())}return mn}function lf(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>jt(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>jt(u,c))||r.push(c))}return[n,s,r]}function cf(){return je(ts)}const Ti="/api/watch",uf="/api/upload";class af{constructor(t=Ze()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch("error"in n&&(n.error.code===401?(this.store.user.isLoggedIn=!1,this.store.user.isOpenLoginModal=!0):this.store.error=n.error.message,setTimeout(()=>{this.store.wsWatch=Ft(Ti,this.handleWebSocketMessage)},1e3)),!0){case!!n.root:this.handleRootMessage(n);break;case!!n.update:this.handleUpdateMessage(n);break;case!!n.space:console.log("Watch space",n.space);break;case!!n.error:this.handleError(n);break}}handleRootMessage({root:t}){console.log("Watch root",t),this.store&&this.store.root&&(this.store.user.isLoggedIn=!0,this.store.root=t)}handleUpdateMessage(t){var s,r;console.log("Watch update",t.update);let n=this.store.root;for(const o of t.update){if(o.deleted){delete n.dir[o.name];break}o.name!==void 0&&(n=(s=n.dir)[r=o.name]||(s[r]={})),o.id!==void 0&&(n.id=o.id),o.size!==void 0&&(n.size=o.size),o.mtime!==void 0&&(n.mtime=o.mtime),o.dir!==void 0&&(n.dir=o.dir)}}handleError(t){if(t.error.code===401){this.store.user.isOpenLoginModal=!0,this.store.user.isLoggedIn=!1;return}}}class ff{constructor(t=Ze()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.written:this.handleWrittenMessage(n);break}}handleWrittenMessage(t){console.log("Written message",t.written)}}const df=["onKeyup"],co=Ce({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=e,n=fe(null),s=fe("");Qn(()=>{s.value=t.doc.name;const o=s.value.lastIndexOf(".");pn(()=>{n.value.focus(),n.value.setSelectionRange(0,o>0?o:s.value.length)})});const r=()=>{t.exit(),!(t.doc.key!=="new"&&(s.value===t.doc.name||s.value.length===0))&&t.rename(t.doc,s.value)};return(o,i)=>An((ne(),ue("input",{ref_key:"input",ref:n,id:"FileRenameInput",type:"text","onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),onKeyup:[i[1]||(i[1]=Os((...l)=>o.exit&&o.exit(...l),["esc"])),Os(r,["enter"])]},null,40,df)),[[Ps,s.value]])}});const or=e=>(zn("data-v-0ca7b6c6"),e=e(),qn(),e),pf={class:"selection"},hf=["indeterminate"],mf=or(()=>K("th",{class:"menu"},null,-1)),gf={key:0,class:"folder"},_f=or(()=>K("td",{class:"selection"},null,-1)),vf={class:"name"},yf={class:"modified right"},bf={class:"size right"},Ef=or(()=>K("td",{class:"menu"},null,-1)),wf=["id","onClick","onContextmenu"],xf=["onClick"],Rf=["checked","onChange"],Pf={class:"name"},Of=["href","onFocus"],Cf=["onClick"],Sf={class:"modified right"},If={class:"size right"},Af={class:"menu"},kf=["onClick"],Tf={key:1,class:"empty-container"},Mf=Ce({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Ze(),r=cf(),o=ve(()=>n.path.join("/")),i=ve(()=>`/files/${o.value}`),l=P=>P.type==="folder"?`#${o.value}/${P.name}/`:`${i.value}/${P.name}`,c=fe(null),u=fe(null),a=(P,$)=>{const Z=P.name,I=Ft("/api/control",B=>{const se=JSON.parse(B.data);"error"in se?(console.error("Rename failed",se.error.message,se.error),P.name=Z):console.log("Rename succeeded",se)});I.onopen=()=>{I.send(JSON.stringify({op:"rename",path:`${decodeURIComponent(o.value)}/${Z}`,to:$}))},P.name=$};t({newFolder(){const P=Date.now()/1e3;u.value={key:"new",name:"New Folder",type:"folder",mtime:P,size:0,sizedisp:_i(0),modified:Is(P)}},toggleSelectAll(){console.log("Select"),W.value=!W.value},toggleSortColumn(P){v(["","name","modified","size",""][P])},isCursor(){return c.value!==null&&u.value===null},cursorRename(){u.value=c.value},cursorSelect(){console.log("select",s.selected);const P=c.value;P&&(s.selected.has(P.key)?s.selected.delete(P.key):s.selected.add(P.key))},cursorMove(P){const $=k(n.documents);if($.length===0){c.value=null;return}const Z=(se,pe)=>(se%pe+pe)%pe,I=c.value!==null?$.indexOf(c.value):-1;c.value=$[Z(I+P,$.length+1)]??null,h=document.getElementById(`file-${c.value.key}`),d||(d=setTimeout(()=>{h.scrollIntoView({block:"center",behavior:"smooth"}),d=null},300))}});let d=null,h=null;ln(()=>{if(c.value){const P=document.querySelector(`#file-${c.value.key} .name a`);P&&P.focus()}});const g=(P,$)=>{const Z=Ft("/api/control",I=>{const B=JSON.parse(I.data);"error"in B?(console.error("Mkdir failed",B.error.message,B.error),u.value=null):(console.log("mkdir",B),r.push(`/${o.value}/${$}/`))});Z.onopen=()=>{Z.send(JSON.stringify({op:"mkdir",path:`${decodeURIComponent(o.value)}/${$}`}))},P.name=$},v=P=>{x.value=x.value===P?"":P},x=fe(""),T={name:(P,$)=>P.name.localeCompare($.name,void 0,{numeric:!0,sensitivity:"base"}),modified:(P,$)=>$.mtime-P.mtime,size:(P,$)=>$.size-P.size},k=P=>{const $=T[x.value],Z=[...P];return $&&Z.sort($),Z},S=ve({get:()=>n.documents.length>0&&n.documents.some(P=>s.selected.has(P.key))&&!W.value,set:P=>{}}),W=ve({get:()=>n.documents.length>0&&n.documents.every(P=>s.selected.has(P.key)),set:P=>{console.log("Setting allSelected",P);for(const $ of n.documents)P?s.selected.add($.key):s.selected.delete($.key)}});ln(()=>{c.value&&c.value!==u.value&&(u.value=null),u.value&&(c.value=u.value)});const L=(P,$)=>{console.log("Context menu",P,$)};return(P,$)=>{var Z;return n.documents.length||u.value?(ne(),ue("table",{key:0,onBlur:$[6]||($[6]=I=>c.value=null)},[K("thead",null,[K("tr",null,[K("th",pf,[An(K("input",{type:"checkbox",tabindex:"-1","onUpdate:modelValue":$[0]||($[0]=I=>W.value=I),indeterminate:S.value},null,8,hf),[[eu,W.value]])]),K("th",{class:vt(["sortcolumn",{sortactive:x.value==="name"}]),onClick:$[1]||($[1]=I=>v("name"))}," Name ",2),K("th",{class:vt(["sortcolumn modified right",{sortactive:x.value==="modified"}]),onClick:$[2]||($[2]=I=>v("modified"))}," Modified ",2),K("th",{class:vt(["sortcolumn size right",{sortactive:x.value==="size"}]),onClick:$[3]||($[3]=I=>v("size"))}," Size ",2),mf])]),K("tbody",null,[((Z=u.value)==null?void 0:Z.key)==="new"?(ne(),ue("tr",gf,[_f,K("td",vf,[J(co,{doc:u.value,rename:g,exit:()=>{u.value=null}},null,8,["doc","exit"])]),K("td",yf,Ke(u.value.modified),1),K("td",bf,Ke(u.value.sizedisp),1),Ef])):ct("",!0),(ne(!0),ue(_e,null,Yo(k(n.documents),I=>(ne(),ue("tr",{key:I.key,id:`file-${I.key}`,class:vt({file:I.type==="file",folder:I.type==="folder",cursor:c.value===I}),onClick:B=>c.value=c.value===I?null:I,onContextmenu:ht(B=>L(B,I),["prevent"])},[K("td",{class:"selection",onClick:ht(B=>c.value=c.value===I?I:null,["stop"])},[K("input",{type:"checkbox",tabindex:"-1",checked:de(s).selected.has(I.key),onChange:B=>B.target.checked?de(s).selected.add(I.key):de(s).selected.delete(I.key)},null,40,Rf)],8,xf),K("td",Pf,[u.value===I?(ne(),xt(co,{key:0,doc:I,rename:a,exit:()=>{u.value=null}},null,8,["doc","exit"])):(ne(),ue(_e,{key:1},[K("a",{href:l(I),tabindex:"-1",onContextmenu:$[4]||($[4]=ht(()=>{},["stop"])),onClick:$[5]||($[5]=ht(()=>{},["stop"])),onFocus:ht(B=>c.value=I,["stop"])},Ke(I.name),41,Of),c.value==I?(ne(),ue("button",{key:0,class:"rename-button",onClick:()=>u.value=I},"🖊️",8,Cf)):ct("",!0)],64))]),K("td",Sf,Ke(I.modified),1),K("td",If,Ke(I.sizedisp),1),K("td",Af,[K("button",{tabindex:"-1",onClick:ht(B=>{c.value=I,L(B,I)},["stop"])}," ⋮ ",8,kf)])],42,wf))),128))])],32)):(ne(),ue("div",Tf,"Nothing to see here"))}}});const $f=hn(Mf,[["__scopeId","data-v-0ca7b6c6"]]),Lf=Ce({__name:"ExplorerView",props:{path:Array},setup(e){const t=e,n=Ze(),s=fe();return ln(()=>{n.fileExplorer=s.value}),ln(async()=>{const r=new String(Ln.currentRoute.value.path);n.setActualDocument(r.toString())}),(r,o)=>{const i=$f;return ne(),xt(i,{ref_key:"fileExplorer",ref:s,key:de(Ln).currentRoute.value.path,path:t.path,documents:de(n).mainDocument},null,8,["path","documents"])}}}),Ln=of({history:wa("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:Lf}]}),Df=Ce({__name:"App",setup(e){const t=Ze(),n=ve(()=>{const l=decodeURIComponent(Ln.currentRoute.value.path),c=l.split("/").filter(u=>u!=="");return{path:l,pathList:c}});setInterval(t.updateModified,1e3),ln(()=>{const l=new af,c=new ff,u=Ft(Ti,l.handleWebSocketMessage),a=Ft(uf,c.handleWebSocketMessage);t.wsWatch=u,t.wsUpload=a});const s=fe(null);let r=0,o=null;const i=l=>{if(l.repeat){(l.key==="ArrowUp"||l.key==="ArrowDown")&&l.preventDefault();return}const c=t.fileExplorer.isCursor(),u=l.type==="keyup";if(l.key==="ArrowUp")r=u?0:l.altKey?-10:-1;else if(l.key==="ArrowDown")r=u?0:l.altKey?10:1;else if(!u&&l.key==="f"&&(l.ctrlKey||l.metaKey))s.value.toggleSearchInput();else if(!u&&l.key==="a"&&(l.ctrlKey||l.metaKey))t.fileExplorer.toggleSelectAll();else if(c&&u&&(l.key==="1"||l.key==="2"||l.key==="3"))t.fileExplorer.toggleSortColumn(+l.key);else if(c&&u&&!l.ctrlKey&&(l.key==="F2"||l.key==="r"))t.fileExplorer.cursorRename();else if(c&&l.code==="Space")u&&!l.altKey&&!l.ctrlKey&&t.fileExplorer.cursorSelect();else return;if(l.preventDefault(),!r){o&&(clearInterval(o),o=null);return}if(!o){t.fileExplorer.cursorMove(r);const a=200,d=30;o=setTimeout(()=>o=setInterval(()=>{t.fileExplorer.cursorMove(r)},d),a-d)}};return Qn(()=>{window.addEventListener("keydown",i),window.addEventListener("keyup",i)}),Qs(()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",i)}),(l,c)=>{const u=sa,a=Uu,d=Du,h=wu;return ne(),ue(_e,null,[J(u),K("header",null,[J(d,{ref_key:"headerMain",ref:s},{default:zs(()=>[J(a,{path:n.value.pathList},null,8,["path"])]),_:1},512),J(h,{path:n.value.pathList},null,8,["path"])]),K("main",null,[J(de(ki),{path:n.value.pathList},null,8,["path"])])],64)}}});function Ff(e){return typeof e=="object"&&e!==null}function uo(e,t){return e=Ff(e)?e:Object.create(null),new Proxy(e,{get(n,s,r){return s==="key"?Reflect.get(n,s,r):Reflect.get(n,s,r)||Reflect.get(t,s,r)}})}function jf(e,t){return t.reduce((n,s)=>n==null?void 0:n[s],e)}function Nf(e,t,n){return t.slice(0,-1).reduce((s,r)=>/^(__proto__)$/.test(r)?{}:s[r]=s[r]||{},e)[t[t.length-1]]=n,e}function Vf(e,t){return t.reduce((n,s)=>{const r=s.split(".");return Nf(n,r,jf(e,r))},{})}function ao(e,{storage:t,serializer:n,key:s,debug:r}){try{const o=t==null?void 0:t.getItem(s);o&&e.$patch(n==null?void 0:n.deserialize(o))}catch(o){r&&console.error(o)}}function fo(e,{storage:t,serializer:n,key:s,paths:r,debug:o}){try{const i=Array.isArray(r)?Vf(e,r):e;t.setItem(s,n.serialize(i))}catch(i){o&&console.error(i)}}function Uf(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:s=n},store:r,pinia:o}=t;if(!s)return;if(!(r.$id in o.state.value)){const l=o._s.get(r.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const i=(Array.isArray(s)?s.map(l=>uo(l,e)):[uo(s,e)]).map(({storage:l=localStorage,beforeRestore:c=null,afterRestore:u=null,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},key:d=r.$id,paths:h=null,debug:g=!1})=>{var v;return{storage:l,beforeRestore:c,afterRestore:u,serializer:a,key:((v=e.key)!=null?v:x=>x)(typeof d=="string"?d:d(r.$id)),paths:h,debug:g}});r.$persist=()=>{i.forEach(l=>{fo(r.$state,l)})},r.$hydrate=({runHooks:l=!0}={})=>{i.forEach(c=>{const{beforeRestore:u,afterRestore:a}=c;l&&(u==null||u(t)),ao(r,c),l&&(a==null||a(t))})},i.forEach(l=>{const{beforeRestore:c,afterRestore:u}=l;c==null||c(t),ao(r,l),u==null||u(t),r.$subscribe((a,d)=>{fo(d,l)},{detached:!0})})}}var Bf=Uf();const ns=lu(Df);ns.config.errorHandler=e=>{console.log(e)};const Mi=au();Mi.use(Bf);ns.use(Mi);ns.use(Ln);ns.mount("#app");export{K as a,ue as c,ne as o};
|