cista 1.2.0__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. cista/_version.py +1 -1
  2. cista/api.py +2 -2
  3. cista/app.py +6 -6
  4. cista/auth.py +12 -0
  5. cista/{wwwroot/assets/add-file-5a0702fe.js → frontend-build/assets/add-file-38ca9b7e.js} +1 -1
  6. cista/{wwwroot/assets/add-folder-1c5c47c6.js → frontend-build/assets/add-folder-f3d443e0.js} +1 -1
  7. cista/{wwwroot/assets/arrow-cab35945.js → frontend-build/assets/arrow-1760afa9.js} +1 -1
  8. cista/{wwwroot/assets/arrows-h-12b221f0.js → frontend-build/assets/arrows-h-31428902.js} +1 -1
  9. cista/{wwwroot/assets/arrows-v-b8ff8185.js → frontend-build/assets/arrows-v-781a1376.js} +1 -1
  10. cista/{wwwroot/assets/check-e4733b70.js → frontend-build/assets/check-02b34fcd.js} +1 -1
  11. cista/{wwwroot/assets/code-aec4eefb.js → frontend-build/assets/code-e2348499.js} +1 -1
  12. cista/{wwwroot/assets/copy-14f467a9.js → frontend-build/assets/copy-6bb3930b.js} +1 -1
  13. cista/{wwwroot/assets/create-file-d68a640f.js → frontend-build/assets/create-file-9e37b1d6.js} +1 -1
  14. cista/{wwwroot/assets/create-folder-7e7528a0.js → frontend-build/assets/create-folder-f68cfe1f.js} +1 -1
  15. cista/{wwwroot/assets/cross-0739a40a.js → frontend-build/assets/cross-d99708ee.js} +1 -1
  16. cista/{wwwroot/assets/disk-8c5530e3.js → frontend-build/assets/disk-68b87505.js} +1 -1
  17. cista/{wwwroot/assets/download-9e150acd.js → frontend-build/assets/download-60cf047e.js} +1 -1
  18. cista/{wwwroot/assets/exclamation-b0f9924c.js → frontend-build/assets/exclamation-ed20d895.js} +1 -1
  19. cista/{wwwroot/assets/eye-ed3ae907.js → frontend-build/assets/eye-4bdd3f22.js} +1 -1
  20. cista/{wwwroot/assets/find-f597334e.js → frontend-build/assets/find-8c04a16e.js} +1 -1
  21. cista/{wwwroot/assets/fullscreen-f8859869.js → frontend-build/assets/fullscreen-d5a124b1.js} +1 -1
  22. cista/{wwwroot/assets/github-631b099e.js → frontend-build/assets/github-ac1f3711.js} +1 -1
  23. cista/frontend-build/assets/index-0e34deb4.css +1 -0
  24. cista/frontend-build/assets/index-72c7a093.js +25 -0
  25. cista/{wwwroot/assets/info-bf79cac3.js → frontend-build/assets/info-7d74e0af.js} +1 -1
  26. cista/{wwwroot/assets/link-a01d99f9.js → frontend-build/assets/link-86f2038d.js} +1 -1
  27. cista/{wwwroot/assets/logo-f514b2f7.js → frontend-build/assets/logo-304a4977.js} +1 -1
  28. cista/{wwwroot/assets/loop-282a5a0a.js → frontend-build/assets/loop-094fa59f.js} +1 -1
  29. cista/{wwwroot/assets/menu-c4f0e3ff.js → frontend-build/assets/menu-5aa43550.js} +1 -1
  30. cista/{wwwroot/assets/next-2390879c.js → frontend-build/assets/next-73c63b6c.js} +1 -1
  31. cista/{wwwroot/assets/open-6ab73637.js → frontend-build/assets/open-83f85394.js} +1 -1
  32. cista/{wwwroot/assets/paste-47e2440d.js → frontend-build/assets/paste-32e42b20.js} +1 -1
  33. cista/{wwwroot/assets/pause-0a4fcf8b.js → frontend-build/assets/pause-530d4eda.js} +1 -1
  34. cista/{wwwroot/assets/pencil-c803cdf8.js → frontend-build/assets/pencil-3347872a.js} +1 -1
  35. cista/{wwwroot/assets/plus-af617ff3.js → frontend-build/assets/plus-57ce8823.js} +1 -1
  36. cista/{wwwroot/assets/previous-53072403.js → frontend-build/assets/previous-0b94b7ca.js} +1 -1
  37. cista/{wwwroot/assets/reload-0f4b1bef.js → frontend-build/assets/reload-b01bccf2.js} +1 -1
  38. cista/{wwwroot/assets/rename-fb99201e.js → frontend-build/assets/rename-aac51c4a.js} +1 -1
  39. cista/{wwwroot/assets/scissors-0f03967c.js → frontend-build/assets/scissors-4ab3f69f.js} +1 -1
  40. cista/{wwwroot/assets/shuffle-5f08a6d6.js → frontend-build/assets/shuffle-241453fb.js} +1 -1
  41. cista/{wwwroot/assets/signin-9ad9ac2c.js → frontend-build/assets/signin-fb2b835d.js} +1 -1
  42. cista/{wwwroot/assets/signout-355e61bd.js → frontend-build/assets/signout-ebb6ff80.js} +1 -1
  43. cista/{wwwroot/assets/skip-c73d3852.js → frontend-build/assets/skip-92b79bc0.js} +1 -1
  44. cista/{wwwroot/assets/spinner-37a835af.js → frontend-build/assets/spinner-8a1bf68f.js} +1 -1
  45. cista/{wwwroot/assets/stop-bb4b72ee.js → frontend-build/assets/stop-2cfb5705.js} +1 -1
  46. cista/{wwwroot/assets/trash-0d970049.js → frontend-build/assets/trash-7d469999.js} +1 -1
  47. cista/{wwwroot/assets/triangle-f05bb4fc.js → frontend-build/assets/triangle-40858029.js} +1 -1
  48. cista/{wwwroot/assets/unfullscreen-cacb8dcc.js → frontend-build/assets/unfullscreen-4710e51b.js} +1 -1
  49. cista/{wwwroot/assets/up-arrow-7856239a.js → frontend-build/assets/up-arrow-f20ea5cf.js} +1 -1
  50. cista/{wwwroot/assets/upload-cloud-99a0be1d.js → frontend-build/assets/upload-cloud-80e5a96d.js} +1 -1
  51. cista/{wwwroot/assets/user-37302509.js → frontend-build/assets/user-70db25a5.js} +1 -1
  52. cista/{wwwroot/assets/user-cog-8ed948ad.js → frontend-build/assets/user-cog-b8ed5882.js} +1 -1
  53. cista/{wwwroot/assets/volume-high-32add965.js → frontend-build/assets/volume-high-ea949028.js} +1 -1
  54. cista/{wwwroot/assets/volume-low-6d8d78a6.js → frontend-build/assets/volume-low-f29113a6.js} +1 -1
  55. cista/{wwwroot/assets/volume-medium-3c4b8dba.js → frontend-build/assets/volume-medium-ce4f8214.js} +1 -1
  56. cista/{wwwroot/assets/volume-mute-8a80e2fc.js → frontend-build/assets/volume-mute-3899fd69.js} +1 -1
  57. cista/{wwwroot/assets/window-1324ab59.js → frontend-build/assets/window-b176eb67.js} +1 -1
  58. cista/{wwwroot/assets/window-cross-b47e8de0.js → frontend-build/assets/window-cross-786863fe.js} +1 -1
  59. cista/{wwwroot/assets/wordwrap-a762bd10.js → frontend-build/assets/wordwrap-04a75e12.js} +1 -1
  60. cista/{wwwroot/assets/zoomin-c5a80f4b.js → frontend-build/assets/zoomin-4567de3c.js} +1 -1
  61. cista/{wwwroot/assets/zoomout-db5e9e0e.js → frontend-build/assets/zoomout-55239db5.js} +1 -1
  62. cista/{wwwroot → frontend-build}/index.html +3 -3
  63. cista/preview.py +63 -40
  64. cista/watching.py +2 -2
  65. {cista-1.2.0.dist-info → cista-1.3.0.dist-info}/METADATA +2 -2
  66. cista-1.3.0.dist-info/RECORD +85 -0
  67. {cista-1.2.0.dist-info → cista-1.3.0.dist-info}/WHEEL +1 -1
  68. cista/wwwroot/assets/index-2536c1be.js +0 -28
  69. cista/wwwroot/assets/index-e1368e9c.css +0 -1
  70. cista/wwwroot/assets/play-f93536e7.js +0 -1
  71. cista-1.2.0.dist-info/RECORD +0 -86
  72. /cista/{wwwroot → frontend-build}/assets/logo-97d1d7eb.svg +0 -0
  73. /cista/{wwwroot → frontend-build}/robots.txt +0 -0
  74. {cista-1.2.0.dist-info → cista-1.3.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,25 @@
1
+ var Kc=Object.defineProperty;var qc=(e,t,n)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kt=(e,t,n)=>(qc(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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
2
+ * @vue/shared v3.5.18
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Ho(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Se={},yn=[],ut=()=>{},Gc=()=>!1,Os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bo=e=>e.startsWith("onUpdate:"),De=Object.assign,jo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jc=Object.prototype.hasOwnProperty,be=(e,t)=>Jc.call(e,t),re=Array.isArray,bn=e=>cs(e)==="[object Map]",Ls=e=>cs(e)==="[object Set]",br=e=>cs(e)==="[object Date]",ue=e=>typeof e=="function",$e=e=>typeof e=="string",dt=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Wl=e=>(Re(e)||ue(e))&&ue(e.then)&&ue(e.catch),Ul=Object.prototype.toString,cs=e=>Ul.call(e),Yc=e=>cs(e).slice(8,-1),zl=e=>cs(e)==="[object Object]",Vo=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fn=Ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ds=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zc=/-(\w)/g,it=Ds(e=>e.replace(Zc,(t,n)=>n?n.toUpperCase():"")),Xc=/\B([A-Z])/g,Jt=Ds(e=>e.replace(Xc,"-$1").toLowerCase()),Fs=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qs=Ds(e=>e?`on${Fs(e)}`:""),Ut=(e,t)=>!Object.is(e,t),bs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bo=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qc=e=>{const t=$e(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const Ns=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ct(e){if(re(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=$e(s)?sa(s):Ct(s);if(o)for(const r in o)t[r]=o[r]}return t}else if($e(e)||Re(e))return e}const ea=/;(?![^(]*\))/g,ta=/:([^]+)/,na=/\/\*[^]*?\*\//g;function sa(e){const t={};return e.replace(na,"").split(ea).forEach(n=>{if(n){const s=n.split(ta);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Le(e){let t="";if($e(e))t=e;else if(re(e))for(let n=0;n<e.length;n++){const s=Le(e[n]);s&&(t+=s+" ")}else if(Re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function oa(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$e(t)&&(e.class=Le(t)),n&&(e.style=Ct(n)),e}const ra="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",la=Ho(ra);function Kl(e){return!!e||e===""}function ia(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Hs(e[s],t[s]);return n}function Hs(e,t){if(e===t)return!0;let n=br(e),s=br(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=dt(e),s=dt(t),n||s)return e===t;if(n=re(e),s=re(t),n||s)return n&&s?ia(e,t):!1;if(n=Re(e),s=Re(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const l in e){const i=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(i&&!c||!i&&c||!Hs(e[l],t[l]))return!1}}return String(e)===String(t)}function ql(e,t){return e.findIndex(n=>Hs(n,t))}const Gl=e=>!!(e&&e.__v_isRef===!0),xe=e=>$e(e)?e:e==null?"":re(e)||Re(e)&&(e.toString===Ul||!ue(e.toString))?Gl(e)?xe(e.value):JSON.stringify(e,Jl,2):String(e),Jl=(e,t)=>Gl(t)?Jl(e,t.value):bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[eo(s,r)+" =>"]=o,n),{})}:Ls(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>eo(n))}:dt(t)?eo(t):Re(t)&&!re(t)&&!zl(t)?String(t):t,eo=(e,t="")=>{var n;return dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.18
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Ue;class Yl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){++this._on===1&&(this.prevScope=Ue,Ue=this)}off(){this._on>0&&--this._on===0&&(Ue=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Zl(e){return new Yl(e)}function Xl(){return Ue}function ca(e,t=!1){Ue&&Ue.cleanups.push(e)}let Pe;const to=new WeakSet;class Ql{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ue&&Ue.active&&Ue.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,to.has(this)&&(to.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ti(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cr(this),ni(this);const t=Pe,n=ft;Pe=this,ft=!0;try{return this.fn()}finally{si(this),Pe=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zo(t);this.deps=this.depsTail=void 0,Cr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?to.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Co(this)&&this.run()}get dirty(){return Co(this)}}let ei=0,Nn,Hn;function ti(e,t=!1){if(e.flags|=8,t){e.next=Hn,Hn=e;return}e.next=Nn,Nn=e}function Wo(){ei++}function Uo(){if(--ei>0)return;if(Hn){let t=Hn;for(Hn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Nn;){let t=Nn;for(Nn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ni(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function si(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),zo(s),aa(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Co(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zn)||(e.globalVersion=Zn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Co(e))))return;e.flags|=2;const t=e.dep,n=Pe,s=ft;Pe=e,ft=!0;try{ni(e);const o=e.fn(e._value);(t.version===0||Ut(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Pe=n,ft=s,si(e),e.flags&=-3}}function zo(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)zo(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function aa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const ri=[];function It(){ri.push(ft),ft=!1}function Tt(){const e=ri.pop();ft=e===void 0?!0:e}function Cr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Pe;Pe=void 0;try{t()}finally{Pe=n}}}let Zn=0;class ua{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ko{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Pe||!ft||Pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Pe)n=this.activeLink=new ua(Pe,this),Pe.deps?(n.prevDep=Pe.depsTail,Pe.depsTail.nextDep=n,Pe.depsTail=n):Pe.deps=Pe.depsTail=n,li(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Pe.depsTail,n.nextDep=void 0,Pe.depsTail.nextDep=n,Pe.depsTail=n,Pe.deps===n&&(Pe.deps=s)}return n}trigger(t){this.version++,Zn++,this.notify(t)}notify(t){Wo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Uo()}}}function li(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)li(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ss=new WeakMap,rn=Symbol(""),xo=Symbol(""),Xn=Symbol("");function ze(e,t,n){if(ft&&Pe){let s=Ss.get(e);s||Ss.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new Ko),o.map=s,o.key=n),o.track()}}function Pt(e,t,n,s,o,r){const l=Ss.get(e);if(!l){Zn++;return}const i=c=>{c&&c.trigger()};if(Wo(),t==="clear")l.forEach(i);else{const c=re(e),a=c&&Vo(n);if(c&&n==="length"){const u=Number(s);l.forEach((f,d)=>{(d==="length"||d===Xn||!dt(d)&&d>=u)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),a&&i(l.get(Xn)),t){case"add":c?a&&i(l.get("length")):(i(l.get(rn)),bn(e)&&i(l.get(xo)));break;case"delete":c||(i(l.get(rn)),bn(e)&&i(l.get(xo)));break;case"set":bn(e)&&i(l.get(rn));break}}Uo()}function fa(e,t){const n=Ss.get(e);return n&&n.get(t)}function hn(e){const t=_e(e);return t===e?t:(ze(t,"iterate",Xn),rt(e)?t:t.map(Be))}function Bs(e){return ze(e=_e(e),"iterate",Xn),e}const da={__proto__:null,[Symbol.iterator](){return no(this,Symbol.iterator,Be)},concat(...e){return hn(this).concat(...e.map(t=>re(t)?hn(t):t))},entries(){return no(this,"entries",e=>(e[1]=Be(e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,n=>n.map(Be),arguments)},find(e,t){return St(this,"find",e,t,Be,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,Be,arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return so(this,"includes",e)},indexOf(...e){return so(this,"indexOf",e)},join(e){return hn(this).join(e)},lastIndexOf(...e){return so(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return In(this,"pop")},push(...e){return In(this,"push",e)},reduce(e,...t){return xr(this,"reduce",e,t)},reduceRight(e,...t){return xr(this,"reduceRight",e,t)},shift(){return In(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return In(this,"splice",e)},toReversed(){return hn(this).toReversed()},toSorted(e){return hn(this).toSorted(e)},toSpliced(...e){return hn(this).toSpliced(...e)},unshift(...e){return In(this,"unshift",e)},values(){return no(this,"values",Be)}};function no(e,t,n){const s=Bs(e),o=s[t]();return s!==e&&!rt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.value&&(r.value=n(r.value)),r}),o}const pa=Array.prototype;function St(e,t,n,s,o,r){const l=Bs(e),i=l!==e&&!rt(e),c=l[t];if(c!==pa[t]){const f=c.apply(e,r);return i?Be(f):f}let a=n;l!==e&&(i?a=function(f,d){return n.call(this,Be(f),d,e)}:n.length>2&&(a=function(f,d){return n.call(this,f,d,e)}));const u=c.call(l,a,s);return i&&o?o(u):u}function xr(e,t,n,s){const o=Bs(e);let r=n;return o!==e&&(rt(e)?n.length>3&&(r=function(l,i,c){return n.call(this,l,i,c,e)}):r=function(l,i,c){return n.call(this,l,Be(i),c,e)}),o[t](r,...s)}function so(e,t,n){const s=_e(e);ze(s,"iterate",Xn);const o=s[t](...n);return(o===-1||o===!1)&&Jo(n[0])?(n[0]=_e(n[0]),s[t](...n)):o}function In(e,t,n=[]){It(),Wo();const s=_e(e)[t].apply(e,n);return Uo(),Tt(),s}const ha=Ho("__proto__,__v_isRef,__isVue"),ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function ga(e){dt(e)||(e=String(e));const t=_e(this);return ze(t,"has",e),t.hasOwnProperty(e)}class ci{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Sa:di:r?fi:ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=re(t);if(!o){let c;if(l&&(c=da[n]))return c;if(n==="hasOwnProperty")return ga}const i=Reflect.get(t,n,Te(t)?t:s);return(dt(n)?ii.has(n):ha(n))||(o||ze(t,"get",n),r)?i:Te(i)?l&&Vo(n)?i:i.value:Re(i)?o?hi(i):xt(i):i}}class ai extends ci{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const c=qt(r);if(!rt(s)&&!qt(s)&&(r=_e(r),s=_e(s)),!re(t)&&Te(r)&&!Te(s))return c?!1:(r.value=s,!0)}const l=re(t)&&Vo(n)?Number(n)<t.length:be(t,n),i=Reflect.set(t,n,s,Te(t)?t:o);return t===_e(o)&&(l?Ut(s,r)&&Pt(t,"set",n,s):Pt(t,"add",n,s)),i}deleteProperty(t,n){const s=be(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Pt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!dt(n)||!ii.has(n))&&ze(t,"has",n),s}ownKeys(t){return ze(t,"iterate",re(t)?"length":rn),Reflect.ownKeys(t)}}class ma extends ci{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const va=new ai,_a=new ma,ya=new ai(!0);const ko=e=>e,gs=e=>Reflect.getPrototypeOf(e);function ba(e,t,n){return function(...s){const o=this.__v_raw,r=_e(o),l=bn(r),i=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,a=o[e](...s),u=n?ko:t?Es:Be;return!t&&ze(r,"iterate",c?xo:rn),{next(){const{value:f,done:d}=a.next();return d?{value:f,done:d}:{value:i?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function ms(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wa(e,t){const n={get(o){const r=this.__v_raw,l=_e(r),i=_e(o);e||(Ut(o,i)&&ze(l,"get",o),ze(l,"get",i));const{has:c}=gs(l),a=t?ko:e?Es:Be;if(c.call(l,o))return a(r.get(o));if(c.call(l,i))return a(r.get(i));r!==l&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ze(_e(o),"iterate",rn),Reflect.get(o,"size",o)},has(o){const r=this.__v_raw,l=_e(r),i=_e(o);return e||(Ut(o,i)&&ze(l,"has",o),ze(l,"has",i)),o===i?r.has(o):r.has(o)||r.has(i)},forEach(o,r){const l=this,i=l.__v_raw,c=_e(i),a=t?ko:e?Es:Be;return!e&&ze(c,"iterate",rn),i.forEach((u,f)=>o.call(r,a(u),a(f),l))}};return De(n,e?{add:ms("add"),set:ms("set"),delete:ms("delete"),clear:ms("clear")}:{add(o){!t&&!rt(o)&&!qt(o)&&(o=_e(o));const r=_e(this);return gs(r).has.call(r,o)||(r.add(o),Pt(r,"add",o,o)),this},set(o,r){!t&&!rt(r)&&!qt(r)&&(r=_e(r));const l=_e(this),{has:i,get:c}=gs(l);let a=i.call(l,o);a||(o=_e(o),a=i.call(l,o));const u=c.call(l,o);return l.set(o,r),a?Ut(r,u)&&Pt(l,"set",o,r):Pt(l,"add",o,r),this},delete(o){const r=_e(this),{has:l,get:i}=gs(r);let c=l.call(r,o);c||(o=_e(o),c=l.call(r,o)),i&&i.call(r,o);const a=r.delete(o);return c&&Pt(r,"delete",o,void 0),a},clear(){const o=_e(this),r=o.size!==0,l=o.clear();return r&&Pt(o,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ba(o,e,t)}),n}function qo(e,t){const n=wa(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(be(n,o)&&o in s?n:s,o,r)}const Ca={get:qo(!1,!1)},xa={get:qo(!1,!0)},ka={get:qo(!0,!1)};const ui=new WeakMap,fi=new WeakMap,di=new WeakMap,Sa=new WeakMap;function Ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ra(e){return e.__v_skip||!Object.isExtensible(e)?0:Ea(Yc(e))}function xt(e){return qt(e)?e:Go(e,!1,va,Ca,ui)}function pi(e){return Go(e,!1,ya,xa,fi)}function hi(e){return Go(e,!0,_a,ka,di)}function Go(e,t,n,s,o){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Ra(e);if(r===0)return e;const l=o.get(e);if(l)return l;const i=new Proxy(e,r===2?s:n);return o.set(e,i),i}function zt(e){return qt(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function Jo(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Yo(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&bo(e,"__v_skip",!0),e}const Be=e=>Re(e)?xt(e):e,Es=e=>Re(e)?hi(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function Q(e){return gi(e,!1)}function js(e){return gi(e,!0)}function gi(e,t){return Te(e)?e:new Ma(e,t)}class Ma{constructor(t,n){this.dep=new Ko,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_e(t),this._value=n?t:Be(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||rt(t)||qt(t);t=s?t:_e(t),Ut(t,n)&&(this._rawValue=t,this._value=s?t:Be(t),this.dep.trigger())}}function M(e){return Te(e)?e.value:e}const Pa={get:(e,t,n)=>t==="__v_raw"?e:M(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Te(o)&&!Te(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function mi(e){return zt(e)?e:new Proxy(e,Pa)}function pn(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=$a(e,n);return t}class Aa{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fa(_e(this._object),this._key)}}function $a(e,t,n){const s=e[t];return Te(s)?s:new Aa(e,t,n)}class Ia{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ko(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return ti(this,!0),!0}get value(){const t=this.dep.track();return oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ta(e,t,n=!1){let s,o;return ue(e)?s=e:(s=e.get,o=e.set),new Ia(s,o,n)}const vs={},Rs=new WeakMap;let tn;function Oa(e,t=!1,n=tn){if(n){let s=Rs.get(n);s||Rs.set(n,s=[]),s.push(e)}}function La(e,t,n=Se){const{immediate:s,deep:o,once:r,scheduler:l,augmentJob:i,call:c}=n,a=_=>o?_:rt(_)||o===!1||o===0?At(_,1):At(_);let u,f,d,h,k=!1,v=!1;if(Te(e)?(f=()=>e.value,k=rt(e)):zt(e)?(f=()=>a(e),k=!0):re(e)?(v=!0,k=e.some(_=>zt(_)||rt(_)),f=()=>e.map(_=>{if(Te(_))return _.value;if(zt(_))return a(_);if(ue(_))return c?c(_,2):_()})):ue(e)?t?f=c?()=>c(e,2):e:f=()=>{if(d){It();try{d()}finally{Tt()}}const _=tn;tn=u;try{return c?c(e,3,[h]):e(h)}finally{tn=_}}:f=ut,t&&o){const _=f,m=o===!0?1/0:o;f=()=>At(_(),m)}const $=Xl(),x=()=>{u.stop(),$&&$.active&&jo($.effects,u)};if(r&&t){const _=t;t=(...m)=>{_(...m),x()}}let S=v?new Array(e.length).fill(vs):vs;const b=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const m=u.run();if(o||k||(v?m.some((C,R)=>Ut(C,S[R])):Ut(m,S))){d&&d();const C=tn;tn=u;try{const R=[m,S===vs?void 0:v&&S[0]===vs?[]:S,h];S=m,c?c(t,3,R):t(...R)}finally{tn=C}}}else u.run()};return i&&i(b),u=new Ql(f),u.scheduler=l?()=>l(b,!1):b,h=_=>Oa(_,!1,u),d=u.onStop=()=>{const _=Rs.get(u);if(_){if(c)c(_,4);else for(const m of _)m();Rs.delete(u)}},t?s?b(!0):S=u.run():l?l(b.bind(null,!0),!0):u.run(),x.pause=u.pause.bind(u),x.resume=u.resume.bind(u),x.stop=x,x}function At(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Te(e))At(e.value,t,n);else if(re(e))for(let s=0;s<e.length;s++)At(e[s],t,n);else if(Ls(e)||bn(e))e.forEach(s=>{At(s,t,n)});else if(zl(e)){for(const s in e)At(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&At(e[s],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.18
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function as(e,t,n,s){try{return s?e(...s):e()}catch(o){us(o,t,n)}}function pt(e,t,n,s){if(ue(e)){const o=as(e,t,n,s);return o&&Wl(o)&&o.catch(r=>{us(r,t,n)}),o}if(re(e)){const o=[];for(let r=0;r<e.length;r++)o.push(pt(e[r],t,n,s));return o}}function us(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Se;if(t){let i=t.parent;const c=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,c,a)===!1)return}i=i.parent}if(r){It(),as(r,null,10,[e,c,a]),Tt();return}}Da(e,n,o,s,l)}function Da(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ye=[];let _t=-1;const wn=[];let Bt=null,vn=0;const vi=Promise.resolve();let Ms=null;function Ze(e){const t=Ms||vi;return e?t.then(this?e.bind(this):e):t}function Fa(e){let t=_t+1,n=Ye.length;for(;t<n;){const s=t+n>>>1,o=Ye[s],r=Qn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function Zo(e){if(!(e.flags&1)){const t=Qn(e),n=Ye[Ye.length-1];!n||!(e.flags&2)&&t>=Qn(n)?Ye.push(e):Ye.splice(Fa(t),0,e),e.flags|=1,_i()}}function _i(){Ms||(Ms=vi.then(bi))}function Na(e){re(e)?wn.push(...e):Bt&&e.id===-1?Bt.splice(vn+1,0,e):e.flags&1||(wn.push(e),e.flags|=1),_i()}function kr(e,t,n=_t+1){for(;n<Ye.length;n++){const s=Ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function yi(e){if(wn.length){const t=[...new Set(wn)].sort((n,s)=>Qn(n)-Qn(s));if(wn.length=0,Bt){Bt.push(...t);return}for(Bt=t,vn=0;vn<Bt.length;vn++){const n=Bt[vn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Bt=null,vn=0}}const Qn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bi(e){const t=ut;try{for(_t=0;_t<Ye.length;_t++){const n=Ye[_t];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),as(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;_t<Ye.length;_t++){const n=Ye[_t];n&&(n.flags&=-2)}_t=-1,Ye.length=0,yi(),Ms=null,(Ye.length||wn.length)&&bi()}}let Ve=null,wi=null;function Ps(e){const t=Ve;return Ve=e,wi=e&&e.type.__scopeId||null,t}function lt(e,t=Ve,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Nr(-1);const r=Ps(t);let l;try{l=e(...o)}finally{Ps(r),s._d&&Nr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function cn(e,t){if(Ve===null)return e;const n=Ks(Ve),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,l,i,c=Se]=t[o];r&&(ue(r)&&(r={mounted:r,updated:r}),r.deep&&At(l),s.push({dir:r,instance:n,value:l,oldValue:void 0,arg:i,modifiers:c}))}return e}function Zt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let l=0;l<o.length;l++){const i=o[l];r&&(i.oldValue=r[l].value);let c=i.dir[s];c&&(It(),pt(c,n,8,[e.el,i,e,t]),Tt())}}const Ci=Symbol("_vte"),xi=e=>e.__isTeleport,Bn=e=>e&&(e.disabled||e.disabled===""),Sr=e=>e&&(e.defer||e.defer===""),Er=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,So=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},ki={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,l,i,c,a){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:k,createText:v,createComment:$}}=a,x=Bn(t.props);let{shapeFlag:S,children:b,dynamicChildren:_}=t;if(e==null){const m=t.el=v(""),C=t.anchor=v("");h(m,n,s),h(C,n,s);const R=(w,F)=>{S&16&&(o&&o.isCE&&(o.ce._teleportTarget=w),u(b,w,F,o,r,l,i,c))},T=()=>{const w=t.target=So(t.props,k),F=Si(w,t,v,h);w&&(l!=="svg"&&Er(w)?l="svg":l!=="mathml"&&Rr(w)&&(l="mathml"),x||(R(w,F),ws(t,!1)))};x&&(R(n,C),ws(t,!0)),Sr(t.props)?(t.el.__isMounted=!1,Ge(()=>{T(),delete t.el.__isMounted},r)):T()}else{if(Sr(t.props)&&e.el.__isMounted===!1){Ge(()=>{ki.process(e,t,n,s,o,r,l,i,c,a)},r);return}t.el=e.el,t.targetStart=e.targetStart;const m=t.anchor=e.anchor,C=t.target=e.target,R=t.targetAnchor=e.targetAnchor,T=Bn(e.props),w=T?n:C,F=T?m:R;if(l==="svg"||Er(C)?l="svg":(l==="mathml"||Rr(C))&&(l="mathml"),_?(d(e.dynamicChildren,_,w,o,r,l,i),rr(e,t,!0)):c||f(e,t,w,F,o,r,l,i,!1),x)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_s(t,n,m,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=So(t.props,k);K&&_s(t,K,null,a,0)}else T&&_s(t,C,R,a,1);ws(t,x)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:l,children:i,anchor:c,targetStart:a,targetAnchor:u,target:f,props:d}=e;if(f&&(o(a),o(u)),r&&o(c),l&16){const h=r||!Bn(d);for(let k=0;k<i.length;k++){const v=i[k];s(v,t,n,h,!!v.dynamicChildren)}}},move:_s,hydrate:Ha};function _s(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:l,anchor:i,shapeFlag:c,children:a,props:u}=e,f=r===2;if(f&&s(l,t,n),(!f||Bn(u))&&c&16)for(let d=0;d<a.length;d++)o(a[d],t,n,2);f&&s(i,t,n)}function Ha(e,t,n,s,o,r,{o:{nextSibling:l,parentNode:i,querySelector:c,insert:a,createText:u}},f){const d=t.target=So(t.props,c);if(d){const h=Bn(t.props),k=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(l(e),t,i(e),n,s,o,r),t.targetStart=k,t.targetAnchor=k&&l(k);else{t.anchor=l(e);let v=k;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,d._lpa=t.targetAnchor&&l(t.targetAnchor);break}}v=l(v)}t.targetAnchor||Si(d,t,u,a),f(k&&l(k),t,d,n,s,o,r)}ws(t,h)}return t.anchor&&l(t.anchor)}const Xo=ki;function ws(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Si(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Ci]=r,e&&(s(o,e),s(r,e)),r}const jt=Symbol("_leaveCb"),ys=Symbol("_enterCb");function Ba(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Pn(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],Ei={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},Ri=e=>{const t=e.subTree;return t.component?Ri(t.component):t},ja={name:"BaseTransition",props:Ei,setup(e,{slots:t}){const n=zs(),s=Ba();return()=>{const o=t.default&&Ai(t.default(),!0);if(!o||!o.length)return;const r=Mi(o),l=_e(e),{mode:i}=l;if(s.isLeaving)return oo(r);const c=Mr(r);if(!c)return oo(r);let a=Eo(c,l,s,n,f=>a=f);c.type!==Ke&&es(c,a);let u=n.subTree&&Mr(n.subTree);if(u&&u.type!==Ke&&!nn(c,u)&&Ri(n).type!==Ke){let f=Eo(u,l,s,n);if(es(u,f),i==="out-in"&&c.type!==Ke)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},oo(r);i==="in-out"&&c.type!==Ke?f.delayLeave=(d,h,k)=>{const v=Pi(s,u);v[String(u.key)]=u,d[jt]=()=>{h(),d[jt]=void 0,delete a.delayedLeave,u=void 0},a.delayedLeave=()=>{k(),delete a.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function Mi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ke){t=n;break}}return t}const Va=ja;function Pi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Eo(e,t,n,s,o){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:k,onLeaveCancelled:v,onBeforeAppear:$,onAppear:x,onAfterAppear:S,onAppearCancelled:b}=t,_=String(e.key),m=Pi(n,e),C=(w,F)=>{w&&pt(w,s,9,F)},R=(w,F)=>{const K=F[1];C(w,F),re(w)?w.every(N=>N.length<=1)&&K():w.length<=1&&K()},T={mode:l,persisted:i,beforeEnter(w){let F=c;if(!n.isMounted)if(r)F=$||c;else return;w[jt]&&w[jt](!0);const K=m[_];K&&nn(e,K)&&K.el[jt]&&K.el[jt](),C(F,[w])},enter(w){let F=a,K=u,N=f;if(!n.isMounted)if(r)F=x||a,K=S||u,N=b||f;else return;let Z=!1;const ee=w[ys]=ae=>{Z||(Z=!0,ae?C(N,[w]):C(K,[w]),T.delayedLeave&&T.delayedLeave(),w[ys]=void 0)};F?R(F,[w,ee]):ee()},leave(w,F){const K=String(e.key);if(w[ys]&&w[ys](!0),n.isUnmounting)return F();C(d,[w]);let N=!1;const Z=w[jt]=ee=>{N||(N=!0,F(),ee?C(v,[w]):C(k,[w]),w[jt]=void 0,m[K]===e&&delete m[K])};m[K]=e,h?R(h,[w,Z]):Z()},clone(w){const F=Eo(w,t,n,s,o);return o&&o(F),F}};return T}function oo(e){if(fs(e))return e=Gt(e),e.children=null,e}function Mr(e){if(!fs(e))return xi(e.type)&&e.children?Mi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ue(n.default))return n.default()}}function es(e,t){e.shapeFlag&6&&e.component?(e.transition=t,es(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ai(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let l=e[r];const i=n==null?l.key:String(n)+String(l.key!=null?l.key:r);l.type===we?(l.patchFlag&128&&o++,s=s.concat(Ai(l.children,t,i))):(t||l.type!==Ke)&&s.push(i!=null?Gt(l,{key:i}):l)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function ve(e,t){return ue(e)?(()=>De({name:e.name},t,{setup:e}))():e}function Qo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function jn(e,t,n,s,o=!1){if(re(e)){e.forEach((k,v)=>jn(k,t&&(re(t)?t[v]:t),n,s,o));return}if(Cn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&jn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Ks(s.component):s.el,l=o?null:r,{i,r:c}=e,a=t&&t.r,u=i.refs===Se?i.refs={}:i.refs,f=i.setupState,d=_e(f),h=f===Se?()=>!1:k=>be(d,k);if(a!=null&&a!==c&&($e(a)?(u[a]=null,h(a)&&(f[a]=null)):Te(a)&&(a.value=null)),ue(c))as(c,i,12,[l,u]);else{const k=$e(c),v=Te(c);if(k||v){const $=()=>{if(e.f){const x=k?h(c)?f[c]:u[c]:c.value;o?re(x)&&jo(x,r):re(x)?x.includes(r)||x.push(r):k?(u[c]=[r],h(c)&&(f[c]=u[c])):(c.value=[r],e.k&&(u[e.k]=c.value))}else k?(u[c]=l,h(c)&&(f[c]=l)):v&&(c.value=l,e.k&&(u[e.k]=l))};l?($.id=-1,Ge($,n)):$()}}}const Pr=e=>e.nodeType===8;Ns().requestIdleCallback;Ns().cancelIdleCallback;function Wa(e,t){if(Pr(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Pr(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Cn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ua(e){ue(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,hydrate:r,timeout:l,suspensible:i=!0,onError:c}=e;let a=null,u,f=0;const d=()=>(f++,a=null,h()),h=()=>{let k;return a||(k=a=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),c)return new Promise(($,x)=>{c(v,()=>$(d()),()=>x(v),f+1)});throw v}).then(v=>k!==a&&a?a:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(k,v,$){let x=!1;(v.bu||(v.bu=[])).push(()=>x=!0);const S=()=>{x||$()},b=r?()=>{const _=r(S,m=>Wa(k,m));_&&(v.bum||(v.bum=[])).push(_)}:S;u?b():h().then(()=>!v.isUnmounted&&b())},get __asyncResolved(){return u},setup(){const k=je;if(Qo(k),u)return()=>ro(u,k);const v=b=>{a=null,us(b,k,13,!s)};if(i&&k.suspense||Sn)return h().then(b=>()=>ro(b,k)).catch(b=>(v(b),()=>s?se(s,{error:b}):null));const $=Q(!1),x=Q(),S=Q(!!o);return o&&setTimeout(()=>{S.value=!1},o),l!=null&&setTimeout(()=>{if(!$.value&&!x.value){const b=new Error(`Async component timed out after ${l}ms.`);v(b),x.value=b}},l),h().then(()=>{$.value=!0,k.parent&&fs(k.parent.vnode)&&k.parent.update()}).catch(b=>{v(b),x.value=b}),()=>{if($.value&&u)return ro(u,k);if(x.value&&s)return se(s,{error:x.value});if(n&&!S.value)return se(n)}}})}function ro(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,l=se(e,s,o);return l.ref=n,l.ce=r,delete t.vnode.ce,l}const fs=e=>e.type.__isKeepAlive;function za(e,t){$i(e,"a",t)}function Ka(e,t){$i(e,"da",t)}function $i(e,t,n=je){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Vs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)fs(o.parent.vnode)&&qa(s,t,n,o),o=o.parent}}function qa(e,t,n,s){const o=Vs(t,e,s,!0);an(()=>{jo(s[t],o)},n)}function Vs(e,t,n=je,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{It();const i=ps(n),c=pt(t,n,e,l);return i(),Tt(),c});return s?o.unshift(r):o.push(r),r}}const Lt=e=>(t,n=je)=>{(!Sn||e==="sp")&&Vs(e,(...s)=>t(...s),n)},Ga=Lt("bm"),Qe=Lt("m"),Ii=Lt("bu"),Ja=Lt("u"),Pn=Lt("bum"),an=Lt("um"),Ya=Lt("sp"),Za=Lt("rtg"),Xa=Lt("rtc");function Qa(e,t=je){Vs("ec",e,t)}const er="components";function Ti(e,t){return Li(er,e,!0,t)||e}const Oi=Symbol.for("v-ndc");function tr(e){return $e(e)?Li(er,e,!1)||e:e||Oi}function Li(e,t,n=!0,s=!1){const o=Ve||je;if(o){const r=o.type;if(e===er){const i=Nu(r,!1);if(i&&(i===t||i===it(t)||i===Fs(it(t))))return r}const l=Ar(o[e]||r[e],t)||Ar(o.appContext[e],t);return!l&&s?r:l}}function Ar(e,t){return e&&(e[t]||e[it(t)]||e[Fs(it(t))])}function An(e,t,n,s){let o;const r=n&&n[s],l=re(e);if(l||$e(e)){const i=l&&zt(e);let c=!1,a=!1;i&&(c=!rt(e),a=qt(e),e=Bs(e)),o=new Array(e.length);for(let u=0,f=e.length;u<f;u++)o[u]=t(c?a?Es(Be(e[u])):Be(e[u]):e[u],u,void 0,r&&r[u])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Re(e))if(e[Symbol.iterator])o=Array.from(e,(i,c)=>t(i,c,void 0,r&&r[c]));else{const i=Object.keys(e);o=new Array(i.length);for(let c=0,a=i.length;c<a;c++){const u=i[c];o[c]=t(e[u],u,c,r&&r[c])}}else o=[];return n&&(n[s]=o),o}function Di(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(re(s))for(let o=0;o<s.length;o++)e[s[o].name]=s[o].fn;else s&&(e[s.name]=s.key?(...o)=>{const r=s.fn(...o);return r&&(r.key=s.key),r}:s.fn)}return e}function Fe(e,t,n={},s,o){if(Ve.ce||Ve.parent&&Cn(Ve.parent)&&Ve.parent.ce)return t!=="default"&&(n.name=t),I(),me(we,null,[se("slot",n,s&&s())],64);let r=e[t];r&&r._c&&(r._d=!1),I();const l=r&&Fi(r(n)),i=n.key||l&&l.key,c=me(we,{key:(i&&!dt(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||(s?s():[]),l&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function Fi(e){return e.some(t=>ns(t)?!(t.type===Ke||t.type===we&&!Fi(t.children)):!0)?e:null}const Ro=e=>e?nc(e)?Ks(e):Ro(e.parent):null,Vn=De(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=>Ro(e.parent),$root:e=>Ro(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>nr(e),$forceUpdate:e=>e.f||(e.f=()=>{Zo(e.update)}),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>Cu.bind(e)}),lo=(e,t)=>e!==Se&&!e.__isScriptSetup&&be(e,t),eu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:l,type:i,appContext:c}=e;let a;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(lo(s,t))return l[t]=1,s[t];if(o!==Se&&be(o,t))return l[t]=2,o[t];if((a=e.propsOptions[0])&&be(a,t))return l[t]=3,r[t];if(n!==Se&&be(n,t))return l[t]=4,n[t];Mo&&(l[t]=0)}}const u=Vn[t];let f,d;if(u)return t==="$attrs"&&ze(e.attrs,"get",""),u(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==Se&&be(n,t))return l[t]=4,n[t];if(d=c.config.globalProperties,be(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return lo(o,t)?(o[t]=n,!0):s!==Se&&be(s,t)?(s[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},l){let i;return!!n[l]||e!==Se&&be(e,l)||lo(t,l)||(i=r[0])&&be(i,l)||be(s,l)||be(Vn,l)||be(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ni(){return tu().slots}function tu(e){const t=zs();return t.setupContext||(t.setupContext=oc(t))}function $r(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function nu(e){const t=nr(e),n=e.proxy,s=e.ctx;Mo=!1,t.beforeCreate&&Ir(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:l,watch:i,provide:c,inject:a,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:k,activated:v,deactivated:$,beforeDestroy:x,beforeUnmount:S,destroyed:b,unmounted:_,render:m,renderTracked:C,renderTriggered:R,errorCaptured:T,serverPrefetch:w,expose:F,inheritAttrs:K,components:N,directives:Z,filters:ee}=t;if(a&&su(a,s,null),l)for(const Y in l){const ce=l[Y];ue(ce)&&(s[Y]=ce.bind(n))}if(o){const Y=o.call(n,n);Re(Y)&&(e.data=xt(Y))}if(Mo=!0,r)for(const Y in r){const ce=r[Y],Ae=ue(ce)?ce.bind(n,n):ue(ce.get)?ce.get.bind(n,n):ut,He=!ue(ce)&&ue(ce.set)?ce.set.bind(n):ut,fe=he({get:Ae,set:He});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>fe.value,set:Oe=>fe.value=Oe})}if(i)for(const Y in i)Hi(i[Y],s,n,Y);if(c){const Y=ue(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(ce=>{Je(ce,Y[ce])})}u&&Ir(u,e,"c");function le(Y,ce){re(ce)?ce.forEach(Ae=>Y(Ae.bind(n))):ce&&Y(ce.bind(n))}if(le(Ga,f),le(Qe,d),le(Ii,h),le(Ja,k),le(za,v),le(Ka,$),le(Qa,T),le(Xa,C),le(Za,R),le(Pn,S),le(an,_),le(Ya,w),re(F))if(F.length){const Y=e.exposed||(e.exposed={});F.forEach(ce=>{Object.defineProperty(Y,ce,{get:()=>n[ce],set:Ae=>n[ce]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});m&&e.render===ut&&(e.render=m),K!=null&&(e.inheritAttrs=K),N&&(e.components=N),Z&&(e.directives=Z),w&&Qo(e)}function su(e,t,n=ut){re(e)&&(e=Po(e));for(const s in e){const o=e[s];let r;Re(o)?"default"in o?r=Ee(o.from||s,o.default,!0):r=Ee(o.from||s):r=Ee(o),Te(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[s]=r}}function Ir(e,t,n){pt(re(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Hi(e,t,n,s){let o=s.includes(".")?Yi(n,s):()=>n[s];if($e(e)){const r=t[e];ue(r)&&$t(o,r)}else if(ue(e))$t(o,e.bind(n));else if(Re(e))if(re(e))e.forEach(r=>Hi(r,t,n,s));else{const r=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(r)&&$t(o,r,e)}}function nr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,i=r.get(t);let c;return i?c=i:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(a=>As(c,a,l,!0)),As(c,t,l)),Re(t)&&r.set(t,c),c}function As(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&As(e,r,n,!0),o&&o.forEach(l=>As(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=ou[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const ou={data:Tr,props:Or,emits:Or,methods:Ln,computed:Ln,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:Ln,directives:Ln,watch:lu,provide:Tr,inject:ru};function Tr(e,t){return t?e?function(){return De(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function ru(e,t){return Ln(Po(e),Po(t))}function Po(e){if(re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qe(e,t){return e?[...new Set([].concat(e,t))]:t}function Ln(e,t){return e?De(Object.create(null),e,t):t}function Or(e,t){return e?re(e)&&re(t)?[...new Set([...e,...t])]:De(Object.create(null),$r(e),$r(t??{})):t}function lu(e,t){if(!e)return t;if(!t)return e;const n=De(Object.create(null),e);for(const s in t)n[s]=qe(e[s],t[s]);return n}function Bi(){return{app:null,config:{isNativeTag:Gc,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 iu=0;function cu(e,t){return function(s,o=null){ue(s)||(s=De({},s)),o!=null&&!Re(o)&&(o=null);const r=Bi(),l=new WeakSet,i=[];let c=!1;const a=r.app={_uid:iu++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Bu,get config(){return r.config},set config(u){},use(u,...f){return l.has(u)||(u&&ue(u.install)?(l.add(u),u.install(a,...f)):ue(u)&&(l.add(u),u(a,...f))),a},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),a},component(u,f){return f?(r.components[u]=f,a):r.components[u]},directive(u,f){return f?(r.directives[u]=f,a):r.directives[u]},mount(u,f,d){if(!c){const h=a._ceVNode||se(s,o);return h.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,u):e(h,u,d),c=!0,a._container=u,u.__vue_app__=a,Ks(h.component)}},onUnmount(u){i.push(u)},unmount(){c&&(pt(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(u,f){return r.provides[u]=f,a},runWithContext(u){const f=ln;ln=a;try{return u()}finally{ln=f}}};return a}}let ln=null;function Je(e,t){if(je){let n=je.provides;const s=je.parent&&je.parent.provides;s===n&&(n=je.provides=Object.create(s)),n[e]=t}}function Ee(e,t,n=!1){const s=zs();if(s||ln){let o=ln?ln._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ue(t)?t.call(s&&s.proxy):t}}function au(){return!!(zs()||ln)}const ji={},Vi=()=>Object.create(ji),Wi=e=>Object.getPrototypeOf(e)===ji;function uu(e,t,n,s=!1){const o={},r=Vi();e.propsDefaults=Object.create(null),Ui(e,t,o,r);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=s?o:pi(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function fu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:l}}=e,i=_e(o),[c]=e.propsOptions;let a=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Ws(e.emitsOptions,d))continue;const h=t[d];if(c)if(be(r,d))h!==r[d]&&(r[d]=h,a=!0);else{const k=it(d);o[k]=Ao(c,i,k,h,e,!1)}else h!==r[d]&&(r[d]=h,a=!0)}}}else{Ui(e,t,o,r)&&(a=!0);let u;for(const f in i)(!t||!be(t,f)&&((u=Jt(f))===f||!be(t,u)))&&(c?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=Ao(c,i,f,void 0,e,!0)):delete o[f]);if(r!==i)for(const f in r)(!t||!be(t,f))&&(delete r[f],a=!0)}a&&Pt(e.attrs,"set","")}function Ui(e,t,n,s){const[o,r]=e.propsOptions;let l=!1,i;if(t)for(let c in t){if(Fn(c))continue;const a=t[c];let u;o&&be(o,u=it(c))?!r||!r.includes(u)?n[u]=a:(i||(i={}))[u]=a:Ws(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,l=!0)}if(r){const c=_e(n),a=i||Se;for(let u=0;u<r.length;u++){const f=r[u];n[f]=Ao(o,c,f,a[f],e,!be(a,f))}}return l}function Ao(e,t,n,s,o,r){const l=e[n];if(l!=null){const i=be(l,"default");if(i&&s===void 0){const c=l.default;if(l.type!==Function&&!l.skipFactory&&ue(c)){const{propsDefaults:a}=o;if(n in a)s=a[n];else{const u=ps(o);s=a[n]=c.call(null,t),u()}}else s=c;o.ce&&o.ce._setProp(n,s)}l[0]&&(r&&!i?s=!1:l[1]&&(s===""||s===Jt(n))&&(s=!0))}return s}const du=new WeakMap;function zi(e,t,n=!1){const s=n?du:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,l={},i=[];let c=!1;if(!ue(e)){const u=f=>{c=!0;const[d,h]=zi(f,t,!0);De(l,d),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return Re(e)&&s.set(e,yn),yn;if(re(r))for(let u=0;u<r.length;u++){const f=it(r[u]);Lr(f)&&(l[f]=Se)}else if(r)for(const u in r){const f=it(u);if(Lr(f)){const d=r[u],h=l[f]=re(d)||ue(d)?{type:d}:De({},d),k=h.type;let v=!1,$=!0;if(re(k))for(let x=0;x<k.length;++x){const S=k[x],b=ue(S)&&S.name;if(b==="Boolean"){v=!0;break}else b==="String"&&($=!1)}else v=ue(k)&&k.name==="Boolean";h[0]=v,h[1]=$,(v||be(h,"default"))&&i.push(f)}}const a=[l,i];return Re(e)&&s.set(e,a),a}function Lr(e){return e[0]!=="$"&&!Fn(e)}const sr=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",or=e=>re(e)?e.map(yt):[yt(e)],pu=(e,t,n)=>{if(t._n)return t;const s=lt((...o)=>or(t(...o)),n);return s._c=!1,s},Ki=(e,t,n)=>{const s=e._ctx;for(const o in e){if(sr(o))continue;const r=e[o];if(ue(r))t[o]=pu(o,r,s);else if(r!=null){const l=or(r);t[o]=()=>l}}},qi=(e,t)=>{const n=or(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(const s in t)(n||!sr(s))&&(e[s]=t[s])},hu=(e,t,n)=>{const s=e.slots=Vi();if(e.vnode.shapeFlag&32){const o=t.__;o&&bo(s,"__",o,!0);const r=t._;r?(Gi(s,t,n),n&&bo(s,"_",r,!0)):Ki(t,s)}else t&&qi(e,t)},gu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,l=Se;if(s.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:Gi(o,t,n):(r=!t.$stable,Ki(t,o)),l=t}else t&&(qi(e,t),l={default:1});if(r)for(const i in o)!sr(i)&&l[i]==null&&delete o[i]},Ge=Pu;function mu(e){return vu(e)}function vu(e,t){const n=Ns();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:l,createText:i,createComment:c,setText:a,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=ut,insertStaticContent:k}=e,v=(p,g,E,O=null,P=null,L=null,U=void 0,V=null,j=!!g.dynamicChildren)=>{if(p===g)return;p&&!nn(p,g)&&(O=y(p),Oe(p,P,L,!0),p=null),g.patchFlag===-2&&(j=!1,g.dynamicChildren=null);const{type:H,ref:oe,shapeFlag:z}=g;switch(H){case Us:$(p,g,E,O);break;case Ke:x(p,g,E,O);break;case ao:p==null&&S(g,E,O,U);break;case we:N(p,g,E,O,P,L,U,V,j);break;default:z&1?m(p,g,E,O,P,L,U,V,j):z&6?Z(p,g,E,O,P,L,U,V,j):(z&64||z&128)&&H.process(p,g,E,O,P,L,U,V,j,W)}oe!=null&&P?jn(oe,p&&p.ref,L,g||p,!g):oe==null&&p&&p.ref!=null&&jn(p.ref,null,L,p,!0)},$=(p,g,E,O)=>{if(p==null)s(g.el=i(g.children),E,O);else{const P=g.el=p.el;g.children!==p.children&&a(P,g.children)}},x=(p,g,E,O)=>{p==null?s(g.el=c(g.children||""),E,O):g.el=p.el},S=(p,g,E,O)=>{[p.el,p.anchor]=k(p.children,g,E,O,p.el,p.anchor)},b=({el:p,anchor:g},E,O)=>{let P;for(;p&&p!==g;)P=d(p),s(p,E,O),p=P;s(g,E,O)},_=({el:p,anchor:g})=>{let E;for(;p&&p!==g;)E=d(p),o(p),p=E;o(g)},m=(p,g,E,O,P,L,U,V,j)=>{g.type==="svg"?U="svg":g.type==="math"&&(U="mathml"),p==null?C(g,E,O,P,L,U,V,j):w(p,g,P,L,U,V,j)},C=(p,g,E,O,P,L,U,V)=>{let j,H;const{props:oe,shapeFlag:z,transition:X,dirs:ie}=p;if(j=p.el=l(p.type,L,oe&&oe.is,oe),z&8?u(j,p.children):z&16&&T(p.children,j,null,O,P,io(p,L),U,V),ie&&Zt(p,null,O,"created"),R(j,p,p.scopeId,U,O),oe){for(const Me in oe)Me!=="value"&&!Fn(Me)&&r(j,Me,null,oe[Me],L,O);"value"in oe&&r(j,"value",null,oe.value,L),(H=oe.onVnodeBeforeMount)&&mt(H,O,p)}ie&&Zt(p,null,O,"beforeMount");const ge=_u(P,X);ge&&X.beforeEnter(j),s(j,g,E),((H=oe&&oe.onVnodeMounted)||ge||ie)&&Ge(()=>{H&&mt(H,O,p),ge&&X.enter(j),ie&&Zt(p,null,O,"mounted")},P)},R=(p,g,E,O,P)=>{if(E&&h(p,E),O)for(let L=0;L<O.length;L++)h(p,O[L]);if(P){let L=P.subTree;if(g===L||Xi(L.type)&&(L.ssContent===g||L.ssFallback===g)){const U=P.vnode;R(p,U,U.scopeId,U.slotScopeIds,P.parent)}}},T=(p,g,E,O,P,L,U,V,j=0)=>{for(let H=j;H<p.length;H++){const oe=p[H]=V?Vt(p[H]):yt(p[H]);v(null,oe,g,E,O,P,L,U,V)}},w=(p,g,E,O,P,L,U)=>{const V=g.el=p.el;let{patchFlag:j,dynamicChildren:H,dirs:oe}=g;j|=p.patchFlag&16;const z=p.props||Se,X=g.props||Se;let ie;if(E&&Xt(E,!1),(ie=X.onVnodeBeforeUpdate)&&mt(ie,E,g,p),oe&&Zt(g,p,E,"beforeUpdate"),E&&Xt(E,!0),(z.innerHTML&&X.innerHTML==null||z.textContent&&X.textContent==null)&&u(V,""),H?F(p.dynamicChildren,H,V,E,O,io(g,P),L):U||ce(p,g,V,null,E,O,io(g,P),L,!1),j>0){if(j&16)K(V,z,X,E,P);else if(j&2&&z.class!==X.class&&r(V,"class",null,X.class,P),j&4&&r(V,"style",z.style,X.style,P),j&8){const ge=g.dynamicProps;for(let Me=0;Me<ge.length;Me++){const Ce=ge[Me],Xe=z[Ce],We=X[Ce];(We!==Xe||Ce==="value")&&r(V,Ce,Xe,We,P,E)}}j&1&&p.children!==g.children&&u(V,g.children)}else!U&&H==null&&K(V,z,X,E,P);((ie=X.onVnodeUpdated)||oe)&&Ge(()=>{ie&&mt(ie,E,g,p),oe&&Zt(g,p,E,"updated")},O)},F=(p,g,E,O,P,L,U)=>{for(let V=0;V<g.length;V++){const j=p[V],H=g[V],oe=j.el&&(j.type===we||!nn(j,H)||j.shapeFlag&198)?f(j.el):E;v(j,H,oe,null,O,P,L,U,!0)}},K=(p,g,E,O,P)=>{if(g!==E){if(g!==Se)for(const L in g)!Fn(L)&&!(L in E)&&r(p,L,g[L],null,P,O);for(const L in E){if(Fn(L))continue;const U=E[L],V=g[L];U!==V&&L!=="value"&&r(p,L,V,U,P,O)}"value"in E&&r(p,"value",g.value,E.value,P)}},N=(p,g,E,O,P,L,U,V,j)=>{const H=g.el=p?p.el:i(""),oe=g.anchor=p?p.anchor:i("");let{patchFlag:z,dynamicChildren:X,slotScopeIds:ie}=g;ie&&(V=V?V.concat(ie):ie),p==null?(s(H,E,O),s(oe,E,O),T(g.children||[],E,oe,P,L,U,V,j)):z>0&&z&64&&X&&p.dynamicChildren?(F(p.dynamicChildren,X,E,P,L,U,V),(g.key!=null||P&&g===P.subTree)&&rr(p,g,!0)):ce(p,g,E,oe,P,L,U,V,j)},Z=(p,g,E,O,P,L,U,V,j)=>{g.slotScopeIds=V,p==null?g.shapeFlag&512?P.ctx.activate(g,E,O,U,j):ee(g,E,O,P,L,U,j):ae(p,g,j)},ee=(p,g,E,O,P,L,U)=>{const V=p.component=Ou(p,O,P);if(fs(p)&&(V.ctx.renderer=W),Lu(V,!1,U),V.asyncDep){if(P&&P.registerDep(V,le,U),!p.el){const j=V.subTree=se(Ke);x(null,j,g,E),p.placeholder=j.el}}else le(V,p,g,E,P,L,U)},ae=(p,g,E)=>{const O=g.component=p.component;if(Ru(p,g,E))if(O.asyncDep&&!O.asyncResolved){Y(O,g,E);return}else O.next=g,O.update();else g.el=p.el,O.vnode=g},le=(p,g,E,O,P,L,U)=>{const V=()=>{if(p.isMounted){let{next:z,bu:X,u:ie,parent:ge,vnode:Me}=p;{const et=Ji(p);if(et){z&&(z.el=Me.el,Y(p,z,U)),et.asyncDep.then(()=>{p.isUnmounted||V()});return}}let Ce=z,Xe;Xt(p,!1),z?(z.el=Me.el,Y(p,z,U)):z=Me,X&&bs(X),(Xe=z.props&&z.props.onVnodeBeforeUpdate)&&mt(Xe,ge,z,Me),Xt(p,!0);const We=co(p),at=p.subTree;p.subTree=We,v(at,We,f(at.el),y(at),p,P,L),z.el=We.el,Ce===null&&Mu(p,We.el),ie&&Ge(ie,P),(Xe=z.props&&z.props.onVnodeUpdated)&&Ge(()=>mt(Xe,ge,z,Me),P)}else{let z;const{el:X,props:ie}=g,{bm:ge,m:Me,parent:Ce,root:Xe,type:We}=p,at=Cn(g);if(Xt(p,!1),ge&&bs(ge),!at&&(z=ie&&ie.onVnodeBeforeMount)&&mt(z,Ce,g),Xt(p,!0),X&&ke){const et=()=>{p.subTree=co(p),ke(X,p.subTree,p,P,null)};at&&We.__asyncHydrate?We.__asyncHydrate(X,p,et):et()}else{Xe.ce&&Xe.ce._def.shadowRoot!==!1&&Xe.ce._injectChildStyle(We);const et=p.subTree=co(p);v(null,et,E,O,p,P,L),g.el=et.el}if(Me&&Ge(Me,P),!at&&(z=ie&&ie.onVnodeMounted)){const et=g;Ge(()=>mt(z,Ce,et),P)}(g.shapeFlag&256||Ce&&Cn(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&p.a&&Ge(p.a,P),p.isMounted=!0,g=E=O=null}};p.scope.on();const j=p.effect=new Ql(V);p.scope.off();const H=p.update=j.run.bind(j),oe=p.job=j.runIfDirty.bind(j);oe.i=p,oe.id=p.uid,j.scheduler=()=>Zo(oe),Xt(p,!0),H()},Y=(p,g,E)=>{g.component=p;const O=p.vnode.props;p.vnode=g,p.next=null,fu(p,g.props,O,E),gu(p,g.children,E),It(),kr(p),Tt()},ce=(p,g,E,O,P,L,U,V,j=!1)=>{const H=p&&p.children,oe=p?p.shapeFlag:0,z=g.children,{patchFlag:X,shapeFlag:ie}=g;if(X>0){if(X&128){He(H,z,E,O,P,L,U,V,j);return}else if(X&256){Ae(H,z,E,O,P,L,U,V,j);return}}ie&8?(oe&16&&te(H,P,L),z!==H&&u(E,z)):oe&16?ie&16?He(H,z,E,O,P,L,U,V,j):te(H,P,L,!0):(oe&8&&u(E,""),ie&16&&T(z,E,O,P,L,U,V,j))},Ae=(p,g,E,O,P,L,U,V,j)=>{p=p||yn,g=g||yn;const H=p.length,oe=g.length,z=Math.min(H,oe);let X;for(X=0;X<z;X++){const ie=g[X]=j?Vt(g[X]):yt(g[X]);v(p[X],ie,E,null,P,L,U,V,j)}H>oe?te(p,P,L,!0,!1,z):T(g,E,O,P,L,U,V,j,z)},He=(p,g,E,O,P,L,U,V,j)=>{let H=0;const oe=g.length;let z=p.length-1,X=oe-1;for(;H<=z&&H<=X;){const ie=p[H],ge=g[H]=j?Vt(g[H]):yt(g[H]);if(nn(ie,ge))v(ie,ge,E,null,P,L,U,V,j);else break;H++}for(;H<=z&&H<=X;){const ie=p[z],ge=g[X]=j?Vt(g[X]):yt(g[X]);if(nn(ie,ge))v(ie,ge,E,null,P,L,U,V,j);else break;z--,X--}if(H>z){if(H<=X){const ie=X+1,ge=ie<oe?g[ie].el:O;for(;H<=X;)v(null,g[H]=j?Vt(g[H]):yt(g[H]),E,ge,P,L,U,V,j),H++}}else if(H>X)for(;H<=z;)Oe(p[H],P,L,!0),H++;else{const ie=H,ge=H,Me=new Map;for(H=ge;H<=X;H++){const tt=g[H]=j?Vt(g[H]):yt(g[H]);tt.key!=null&&Me.set(tt.key,H)}let Ce,Xe=0;const We=X-ge+1;let at=!1,et=0;const $n=new Array(We);for(H=0;H<We;H++)$n[H]=0;for(H=ie;H<=z;H++){const tt=p[H];if(Xe>=We){Oe(tt,P,L,!0);continue}let gt;if(tt.key!=null)gt=Me.get(tt.key);else for(Ce=ge;Ce<=X;Ce++)if($n[Ce-ge]===0&&nn(tt,g[Ce])){gt=Ce;break}gt===void 0?Oe(tt,P,L,!0):($n[gt-ge]=H+1,gt>=et?et=gt:at=!0,v(tt,g[gt],E,null,P,L,U,V,j),Xe++)}const vr=at?yu($n):yn;for(Ce=vr.length-1,H=We-1;H>=0;H--){const tt=ge+H,gt=g[tt],_r=g[tt+1],yr=tt+1<oe?_r.el||_r.placeholder:O;$n[H]===0?v(null,gt,E,yr,P,L,U,V,j):at&&(Ce<0||H!==vr[Ce]?fe(gt,E,yr,2):Ce--)}}},fe=(p,g,E,O,P=null)=>{const{el:L,type:U,transition:V,children:j,shapeFlag:H}=p;if(H&6){fe(p.component.subTree,g,E,O);return}if(H&128){p.suspense.move(g,E,O);return}if(H&64){U.move(p,g,E,W);return}if(U===we){s(L,g,E);for(let z=0;z<j.length;z++)fe(j[z],g,E,O);s(p.anchor,g,E);return}if(U===ao){b(p,g,E);return}if(O!==2&&H&1&&V)if(O===0)V.beforeEnter(L),s(L,g,E),Ge(()=>V.enter(L),P);else{const{leave:z,delayLeave:X,afterLeave:ie}=V,ge=()=>{p.ctx.isUnmounted?o(L):s(L,g,E)},Me=()=>{z(L,()=>{ge(),ie&&ie()})};X?X(L,ge,Me):Me()}else s(L,g,E)},Oe=(p,g,E,O=!1,P=!1)=>{const{type:L,props:U,ref:V,children:j,dynamicChildren:H,shapeFlag:oe,patchFlag:z,dirs:X,cacheIndex:ie}=p;if(z===-2&&(P=!1),V!=null&&(It(),jn(V,null,E,p,!0),Tt()),ie!=null&&(g.renderCache[ie]=void 0),oe&256){g.ctx.deactivate(p);return}const ge=oe&1&&X,Me=!Cn(p);let Ce;if(Me&&(Ce=U&&U.onVnodeBeforeUnmount)&&mt(Ce,g,p),oe&6)D(p.component,E,O);else{if(oe&128){p.suspense.unmount(E,O);return}ge&&Zt(p,null,g,"beforeUnmount"),oe&64?p.type.remove(p,g,E,W,O):H&&!H.hasOnce&&(L!==we||z>0&&z&64)?te(H,g,E,!1,!0):(L===we&&z&384||!P&&oe&16)&&te(j,g,E),O&&ct(p)}(Me&&(Ce=U&&U.onVnodeUnmounted)||ge)&&Ge(()=>{Ce&&mt(Ce,g,p),ge&&Zt(p,null,g,"unmounted")},E)},ct=p=>{const{type:g,el:E,anchor:O,transition:P}=p;if(g===we){J(E,O);return}if(g===ao){_(p);return}const L=()=>{o(E),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(p.shapeFlag&1&&P&&!P.persisted){const{leave:U,delayLeave:V}=P,j=()=>U(E,L);V?V(p.el,L,j):j()}else L()},J=(p,g)=>{let E;for(;p!==g;)E=d(p),o(p),p=E;o(g)},D=(p,g,E)=>{const{bum:O,scope:P,job:L,subTree:U,um:V,m:j,a:H,parent:oe,slots:{__:z}}=p;Dr(j),Dr(H),O&&bs(O),oe&&re(z)&&z.forEach(X=>{oe.renderCache[X]=void 0}),P.stop(),L&&(L.flags|=8,Oe(U,p,g,E)),V&&Ge(V,g),Ge(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},te=(p,g,E,O=!1,P=!1,L=0)=>{for(let U=L;U<p.length;U++)Oe(p[U],g,E,O,P)},y=p=>{if(p.shapeFlag&6)return y(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=d(p.anchor||p.el),E=g&&g[Ci];return E?d(E):g};let q=!1;const B=(p,g,E)=>{p==null?g._vnode&&Oe(g._vnode,null,null,!0):v(g._vnode||null,p,g,null,null,null,E),g._vnode=p,q||(q=!0,kr(),yi(),q=!1)},W={p:v,um:Oe,m:fe,r:ct,mt:ee,mc:T,pc:ce,pbc:F,n:y,o:e};let de,ke;return t&&([de,ke]=t(W)),{render:B,hydrate:de,createApp:cu(B,de)}}function io({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _u(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rr(e,t,n=!1){const s=e.children,o=t.children;if(re(s)&&re(o))for(let r=0;r<s.length;r++){const l=s[r];let i=o[r];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[r]=Vt(o[r]),i.el=l.el),!n&&i.patchFlag!==-2&&rr(l,i)),i.type===Us&&(i.el=l.el),i.type===Ke&&!i.el&&(i.el=l.el)}}function yu(e){const t=e.slice(),n=[0];let s,o,r,l,i;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(o=n[n.length-1],e[o]<a){t[s]=o,n.push(s);continue}for(r=0,l=n.length-1;r<l;)i=r+l>>1,e[n[i]]<a?r=i+1:l=i;a<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function Ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ji(t)}function Dr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const bu=Symbol.for("v-scx"),wu=()=>Ee(bu);function Ot(e,t){return lr(e,null,t)}function $t(e,t,n){return lr(e,t,n)}function lr(e,t,n=Se){const{immediate:s,deep:o,flush:r,once:l}=n,i=De({},n),c=t&&s||!t&&r!=="post";let a;if(Sn){if(r==="sync"){const h=wu();a=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=ut,h.resume=ut,h.pause=ut,h}}const u=je;i.call=(h,k,v)=>pt(h,u,k,v);let f=!1;r==="post"?i.scheduler=h=>{Ge(h,u&&u.suspense)}:r!=="sync"&&(f=!0,i.scheduler=(h,k)=>{k?h():Zo(h)}),i.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=La(e,t,i);return Sn&&(a?a.push(d):c&&d()),d}function Cu(e,t,n){const s=this.proxy,o=$e(e)?e.includes(".")?Yi(s,e):()=>s[e]:e.bind(s,s);let r;ue(t)?r=t:(r=t.handler,n=t);const l=ps(this),i=lr(o,r.bind(s),n);return l(),i}function Yi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const xu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${Jt(t)}Modifiers`];function ku(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Se;let o=n;const r=t.startsWith("update:"),l=r&&xu(s,t.slice(7));l&&(l.trim&&(o=n.map(u=>$e(u)?u.trim():u)),l.number&&(o=n.map(wo)));let i,c=s[i=Qs(t)]||s[i=Qs(it(t))];!c&&r&&(c=s[i=Qs(Jt(t))]),c&&pt(c,e,6,o);const a=s[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,pt(a,e,6,o)}}function Zi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let l={},i=!1;if(!ue(e)){const c=a=>{const u=Zi(a,t,!0);u&&(i=!0,De(l,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!i?(Re(e)&&s.set(e,null),null):(re(r)?r.forEach(c=>l[c]=null):De(l,r),Re(e)&&s.set(e,l),l)}function Ws(e,t){return!e||!Os(t)?!1:(t=t.slice(2).replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,Jt(t))||be(e,t))}function co(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:l,attrs:i,emit:c,render:a,renderCache:u,props:f,data:d,setupState:h,ctx:k,inheritAttrs:v}=e,$=Ps(e);let x,S;try{if(n.shapeFlag&4){const _=o||s,m=_;x=yt(a.call(m,_,u,f,h,d,k)),S=i}else{const _=t;x=yt(_.length>1?_(f,{attrs:i,slots:l,emit:c}):_(f,null)),S=t.props?i:Su(i)}}catch(_){Wn.length=0,us(_,e,1),x=se(Ke)}let b=x;if(S&&v!==!1){const _=Object.keys(S),{shapeFlag:m}=b;_.length&&m&7&&(r&&_.some(Bo)&&(S=Eu(S,r)),b=Gt(b,S,!1,!0))}return n.dirs&&(b=Gt(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&es(b,n.transition),x=b,Ps($),x}const Su=e=>{let t;for(const n in e)(n==="class"||n==="style"||Os(n))&&((t||(t={}))[n]=e[n]);return t},Eu=(e,t)=>{const n={};for(const s in e)(!Bo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ru(e,t,n){const{props:s,children:o,component:r}=e,{props:l,children:i,patchFlag:c}=t,a=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Fr(s,l,a):!!l;if(c&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(l[d]!==s[d]&&!Ws(a,d))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Fr(s,l,a):!0:!!l;return!1}function Fr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!Ws(n,r))return!0}return!1}function Mu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Xi=e=>e.__isSuspense;function Pu(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):Na(e)}const we=Symbol.for("v-fgt"),Us=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),ao=Symbol.for("v-stc"),Wn=[];let nt=null;function I(e=!1){Wn.push(nt=e?null:[])}function Au(){Wn.pop(),nt=Wn[Wn.length-1]||null}let ts=1;function Nr(e,t=!1){ts+=e,e<0&&nt&&t&&(nt.hasOnce=!0)}function Qi(e){return e.dynamicChildren=ts>0?nt||yn:null,Au(),ts>0&&nt&&nt.push(e),e}function G(e,t,n,s,o,r){return Qi(A(e,t,n,s,o,r,!0))}function me(e,t,n,s,o){return Qi(se(e,t,n,s,o,!0))}function ns(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const ec=({key:e})=>e??null,Cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Te(e)||ue(e)?{i:Ve,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,o=null,r=e===we?0:1,l=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ec(t),ref:t&&Cs(t),scopeId:wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ve};return i?(ir(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=$e(n)?8:16),ts>0&&!l&&nt&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&nt.push(c),c}const se=$u;function $u(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Oi)&&(e=Ke),ns(e)){const i=Gt(e,t,!0);return n&&ir(i,n),ts>0&&!r&&nt&&(i.shapeFlag&6?nt[nt.indexOf(e)]=i:nt.push(i)),i.patchFlag=-2,i}if(Hu(e)&&(e=e.__vccOpts),t){t=tc(t);let{class:i,style:c}=t;i&&!$e(i)&&(t.class=Le(i)),Re(c)&&(Jo(c)&&!re(c)&&(c=De({},c)),t.style=Ct(c))}const l=$e(e)?1:Xi(e)?128:xi(e)?64:Re(e)?4:ue(e)?2:0;return A(e,t,n,s,o,l,r,!0)}function tc(e){return e?Jo(e)||Wi(e)?De({},e):e:null}function Gt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:l,children:i,transition:c}=e,a=t?$s(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ec(a),ref:t&&t.ref?n&&r?re(r)?r.concat(Cs(t)):[r,Cs(t)]:Cs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&es(u,c.clone(u)),u}function ds(e=" ",t=0){return se(Us,null,e,t)}function pe(e="",t=!1){return t?(I(),me(Ke,null,e)):se(Ke,null,e)}function yt(e){return e==null||typeof e=="boolean"?se(Ke):re(e)?se(we,null,e.slice()):ns(e)?Vt(e):se(Us,null,String(e))}function Vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function ir(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ir(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Wi(t)?t._ctx=Ve:o===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:Ve},n=32):(t=String(t),s&64?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function $s(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Le([t.class,s.class]));else if(o==="style")t.style=Ct([t.style,s.style]);else if(Os(o)){const r=t[o],l=s[o];l&&r!==l&&!(re(r)&&r.includes(l))&&(t[o]=r?[].concat(r,l):l)}else o!==""&&(t[o]=s[o])}return t}function mt(e,t,n,s=null){pt(e,t,7,[n,s])}const Iu=Bi();let Tu=0;function Ou(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Iu,r={uid:Tu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zi(s,o),emitsOptions:Zi(s,o),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:s.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ku.bind(null,r),e.ce&&e.ce(r),r}let je=null;const zs=()=>je||Ve;let Is,$o;{const e=Ns(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(l=>l(r)):o[0](r)}};Is=t("__VUE_INSTANCE_SETTERS__",n=>je=n),$o=t("__VUE_SSR_SETTERS__",n=>Sn=n)}const ps=e=>{const t=je;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},Hr=()=>{je&&je.scope.off(),Is(null)};function nc(e){return e.vnode.shapeFlag&4}let Sn=!1;function Lu(e,t=!1,n=!1){t&&$o(t);const{props:s,children:o}=e.vnode,r=nc(e);uu(e,s,r,t),hu(e,o,n||t);const l=r?Du(e,t):void 0;return t&&$o(!1),l}function Du(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,eu);const{setup:s}=n;if(s){It();const o=e.setupContext=s.length>1?oc(e):null,r=ps(e),l=as(s,e,0,[e.props,o]),i=Wl(l);if(Tt(),r(),(i||e.sp)&&!Cn(e)&&Qo(e),i){if(l.then(Hr,Hr),t)return l.then(c=>{Br(e,c,t)}).catch(c=>{us(c,e,0)});e.asyncDep=l}else Br(e,l,t)}else sc(e,t)}function Br(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=mi(t)),sc(e,n)}let jr;function sc(e,t,n){const s=e.type;if(!e.render){if(!t&&jr&&!s.render){const o=s.template||nr(e).template;if(o){const{isCustomElement:r,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:c}=s,a=De(De({isCustomElement:r,delimiters:i},l),c);s.render=jr(o,a)}}e.render=s.render||ut}{const o=ps(e);It();try{nu(e)}finally{Tt(),o()}}}const Fu={get(e,t){return ze(e,"get",""),e[t]}};function oc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Fu),slots:e.slots,emit:e.emit,expose:t}}function Ks(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mi(Yo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vn)return Vn[n](e)},has(t,n){return n in t||n in Vn}})):e.proxy}function Nu(e,t=!0){return ue(e)?e.displayName||e.name:e.name||t&&e.__name}function Hu(e){return ue(e)&&"__vccOpts"in e}const he=(e,t)=>Ta(e,t,Sn);function un(e,t,n){const s=arguments.length;return s===2?Re(t)&&!re(t)?ns(t)?se(e,null,[t]):se(e,t):se(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ns(n)&&(n=[n]),se(e,t,n))}const Bu="3.5.18";/**
14
+ * @vue/runtime-dom v3.5.18
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let Io;const Vr=typeof window<"u"&&window.trustedTypes;if(Vr)try{Io=Vr.createPolicy("vue",{createHTML:e=>e})}catch{}const rc=Io?e=>Io.createHTML(e):e=>e,ju="http://www.w3.org/2000/svg",Vu="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,Wr=Mt&&Mt.createElement("template"),Wu={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 o=t==="svg"?Mt.createElementNS(ju,e):t==="mathml"?Mt.createElementNS(Vu,e):n?Mt.createElement(e,{is:n}):Mt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const l=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Wr.innerHTML=rc(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Wr.content;if(s==="svg"||s==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Dt="transition",Tn="animation",ss=Symbol("_vtc"),lc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Uu=De({},Ei,lc),zu=e=>(e.displayName="Transition",e.props=Uu,e),Ku=zu((e,{slots:t})=>un(Va,qu(e),t)),Qt=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ur=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function qu(e){const t={};for(const N in e)N in lc||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:a=l,appearToClass:u=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,k=Gu(o),v=k&&k[0],$=k&&k[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:b,onLeave:_,onLeaveCancelled:m,onBeforeAppear:C=x,onAppear:R=S,onAppearCancelled:T=b}=t,w=(N,Z,ee,ae)=>{N._enterCancelled=ae,en(N,Z?u:i),en(N,Z?a:l),ee&&ee()},F=(N,Z)=>{N._isLeaving=!1,en(N,f),en(N,h),en(N,d),Z&&Z()},K=N=>(Z,ee)=>{const ae=N?R:S,le=()=>w(Z,N,ee);Qt(ae,[Z,le]),zr(()=>{en(Z,N?c:r),Et(Z,N?u:i),Ur(ae)||Kr(Z,s,v,le)})};return De(t,{onBeforeEnter(N){Qt(x,[N]),Et(N,r),Et(N,l)},onBeforeAppear(N){Qt(C,[N]),Et(N,c),Et(N,a)},onEnter:K(!1),onAppear:K(!0),onLeave(N,Z){N._isLeaving=!0;const ee=()=>F(N,Z);Et(N,f),N._enterCancelled?(Et(N,d),Jr()):(Jr(),Et(N,d)),zr(()=>{N._isLeaving&&(en(N,f),Et(N,h),Ur(_)||Kr(N,s,$,ee))}),Qt(_,[N,ee])},onEnterCancelled(N){w(N,!1,void 0,!0),Qt(b,[N])},onAppearCancelled(N){w(N,!0,void 0,!0),Qt(T,[N])},onLeaveCancelled(N){F(N),Qt(m,[N])}})}function Gu(e){if(e==null)return null;if(Re(e))return[uo(e.enter),uo(e.leave)];{const t=uo(e);return[t,t]}}function uo(e){return Qc(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ss]||(e[ss]=new Set)).add(t)}function en(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ss];n&&(n.delete(t),n.size||(e[ss]=void 0))}function zr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ju=0;function Kr(e,t,n,s){const o=e._endId=++Ju,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:l,timeout:i,propCount:c}=Yu(e,t);if(!l)return s();const a=l+"end";let u=0;const f=()=>{e.removeEventListener(a,d),r()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u<c&&f()},i+1),e.addEventListener(a,d)}function Yu(e,t){const n=window.getComputedStyle(e),s=k=>(n[k]||"").split(", "),o=s(`${Dt}Delay`),r=s(`${Dt}Duration`),l=qr(o,r),i=s(`${Tn}Delay`),c=s(`${Tn}Duration`),a=qr(i,c);let u=null,f=0,d=0;t===Dt?l>0&&(u=Dt,f=l,d=r.length):t===Tn?a>0&&(u=Tn,f=a,d=c.length):(f=Math.max(l,a),u=f>0?l>a?Dt:Tn:null,d=u?u===Dt?r.length:c.length:0);const h=u===Dt&&/\b(transform|all)(,|$)/.test(s(`${Dt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function qr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Gr(n)+Gr(e[s])))}function Gr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jr(){return document.body.offsetHeight}function Zu(e,t,n){const s=e[ss];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yr=Symbol("_vod"),Xu=Symbol("_vsh"),Qu=Symbol(""),ef=/(^|;)\s*display\s*:/;function tf(e,t,n){const s=e.style,o=$e(n);let r=!1;if(n&&!o){if(t)if($e(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&xs(s,i,"")}else for(const l in t)n[l]==null&&xs(s,l,"");for(const l in n)l==="display"&&(r=!0),xs(s,l,n[l])}else if(o){if(t!==n){const l=s[Qu];l&&(n+=";"+l),s.cssText=n,r=ef.test(n)}}else t&&e.removeAttribute("style");Yr in e&&(e[Yr]=r?s.display:"",e[Xu]&&(s.display="none"))}const Zr=/\s*!important$/;function xs(e,t,n){if(re(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=nf(e,t);Zr.test(n)?e.setProperty(Jt(s),n.replace(Zr,""),"important"):e[s]=n}}const Xr=["Webkit","Moz","ms"],fo={};function nf(e,t){const n=fo[t];if(n)return n;let s=it(t);if(s!=="filter"&&s in e)return fo[t]=s;s=Fs(s);for(let o=0;o<Xr.length;o++){const r=Xr[o]+s;if(r in e)return fo[t]=r}return t}const Qr="http://www.w3.org/1999/xlink";function el(e,t,n,s,o,r=la(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qr,t.slice(6,t.length)):e.setAttributeNS(Qr,t,n):n==null||r&&!Kl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":dt(n)?String(n):n)}function tl(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?rc(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const i=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(i!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Kl(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(o||t)}function sn(e,t,n,s){e.addEventListener(t,n,s)}function sf(e,t,n,s){e.removeEventListener(t,n,s)}const nl=Symbol("_vei");function of(e,t,n,s,o=null){const r=e[nl]||(e[nl]={}),l=r[t];if(s&&l)l.value=s;else{const[i,c]=rf(t);if(s){const a=r[t]=af(s,o);sn(e,i,a,c)}else l&&(sf(e,i,l,c),r[t]=void 0)}}const sl=/(?:Once|Passive|Capture)$/;function rf(e){let t;if(sl.test(e)){t={};let s;for(;s=e.match(sl);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jt(e.slice(2)),t]}let po=0;const lf=Promise.resolve(),cf=()=>po||(lf.then(()=>po=0),po=Date.now());function af(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;pt(uf(s,n.value),t,5,[s])};return n.value=e,n.attached=cf(),n}function uf(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ol=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ff=(e,t,n,s,o,r)=>{const l=o==="svg";t==="class"?Zu(e,s,l):t==="style"?tf(e,n,s):Os(t)?Bo(t)||of(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):df(e,t,s,l))?(tl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&el(e,t,s,l,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!$e(s))?tl(e,it(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),el(e,t,s,l))};function df(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ol(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ol(t)&&$e(n)?!1:t in e}const Ts=e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?n=>bs(t,n):t};function pf(e){e.target.composing=!0}function rl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xn=Symbol("_assign"),os={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[xn]=Ts(o);const r=s||o.props&&o.props.type==="number";sn(e,t?"change":"input",l=>{if(l.target.composing)return;let i=e.value;n&&(i=i.trim()),r&&(i=wo(i)),e[xn](i)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",pf),sn(e,"compositionend",rl),sn(e,"change",rl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},l){if(e[xn]=Ts(l),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?wo(e.value):e.value,c=t??"";i!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===c)||(e.value=c))}},ic={deep:!0,created(e,t,n){e[xn]=Ts(n),sn(e,"change",()=>{const s=e._modelValue,o=hf(e),r=e.checked,l=e[xn];if(re(s)){const i=ql(s,o),c=i!==-1;if(r&&!c)l(s.concat(o));else if(!r&&c){const a=[...s];a.splice(i,1),l(a)}}else if(Ls(s)){const i=new Set(s);r?i.add(o):i.delete(o),l(i)}else l(cc(e,r))})},mounted:ll,beforeUpdate(e,t,n){e[xn]=Ts(n),ll(e,t,n)}};function ll(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(re(t))o=ql(t,s.props.value)>-1;else if(Ls(t))o=t.has(s.props.value);else{if(t===n)return;o=Hs(t,cc(e,!0))}e.checked!==o&&(e.checked=o)}function hf(e){return"_value"in e?e._value:e.value}function cc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gf=["ctrl","shift","alt","meta"],mf={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)=>gf.some(n=>e[`${n}Key`]&&!t.includes(n))},Ne=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let l=0;l<t.length;l++){const i=mf[t[l]];if(i&&i(o,t))return}return e(o,...r)})},vf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=Jt(o.key);if(t.some(l=>l===r||vf[l]===r))return e(o)})},_f=De({patchProp:ff},Wu);let il;function ac(){return il||(il=mu(_f))}const cl=(...e)=>{ac().render(...e)},yf=(...e)=>{const t=ac().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=wf(s);if(!o)return;const r=t._component;!ue(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const l=n(o,!1,bf(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t};function bf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wf(e){return $e(e)?document.querySelector(e):e}var Cf=!1;/*!
18
+ * pinia v2.3.1
19
+ * (c) 2025 Eduardo San Martin Morote
20
+ * @license MIT
21
+ */let uc;const qs=e=>uc=e,fc=Symbol();function To(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Un;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Un||(Un={}));function xf(){const e=Zl(!0),t=e.run(()=>Q({}));let n=[],s=[];const o=Yo({install(r){qs(o),o._a=r,r.provide(fc,o),r.config.globalProperties.$pinia=o,s.forEach(l=>n.push(l)),s=[]},use(r){return!this._a&&!Cf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const dc=()=>{};function al(e,t,n,s=dc){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Xl()&&ca(o),o}function gn(e,...t){e.slice().forEach(n=>{n(...t)})}const kf=e=>e(),ul=Symbol(),ho=Symbol();function Oo(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],o=e[n];To(o)&&To(s)&&e.hasOwnProperty(n)&&!Te(s)&&!zt(s)?e[n]=Oo(o,s):e[n]=s}return e}const Sf=Symbol();function Ef(e){return!To(e)||!e.hasOwnProperty(Sf)}const{assign:Ht}=Object;function Rf(e){return!!(Te(e)&&e.effect)}function Mf(e,t,n,s){const{state:o,actions:r,getters:l}=t,i=n.state.value[e];let c;function a(){i||(n.state.value[e]=o?o():{});const u=pn(n.state.value[e]);return Ht(u,r,Object.keys(l||{}).reduce((f,d)=>(f[d]=Yo(he(()=>{qs(n);const h=n._s.get(e);return l[d].call(h,h)})),f),{}))}return c=pc(e,a,t,n,s,!0),c}function pc(e,t,n={},s,o,r){let l;const i=Ht({actions:{}},n),c={deep:!0};let a,u,f=[],d=[],h;const k=s.state.value[e];!r&&!k&&(s.state.value[e]={}),Q({});let v;function $(T){let w;a=u=!1,typeof T=="function"?(T(s.state.value[e]),w={type:Un.patchFunction,storeId:e,events:h}):(Oo(s.state.value[e],T),w={type:Un.patchObject,payload:T,storeId:e,events:h});const F=v=Symbol();Ze().then(()=>{v===F&&(a=!0)}),u=!0,gn(f,w,s.state.value[e])}const x=r?function(){const{state:w}=n,F=w?w():{};this.$patch(K=>{Ht(K,F)})}:dc;function S(){l.stop(),f=[],d=[],s._s.delete(e)}const b=(T,w="")=>{if(ul in T)return T[ho]=w,T;const F=function(){qs(s);const K=Array.from(arguments),N=[],Z=[];function ee(Y){N.push(Y)}function ae(Y){Z.push(Y)}gn(d,{args:K,name:F[ho],store:m,after:ee,onError:ae});let le;try{le=T.apply(this&&this.$id===e?this:m,K)}catch(Y){throw gn(Z,Y),Y}return le instanceof Promise?le.then(Y=>(gn(N,Y),Y)).catch(Y=>(gn(Z,Y),Promise.reject(Y))):(gn(N,le),le)};return F[ul]=!0,F[ho]=w,F},_={_p:s,$id:e,$onAction:al.bind(null,d),$patch:$,$reset:x,$subscribe(T,w={}){const F=al(f,T,w.detached,()=>K()),K=l.run(()=>$t(()=>s.state.value[e],N=>{(w.flush==="sync"?u:a)&&T({storeId:e,type:Un.direct,events:h},N)},Ht({},c,w)));return F},$dispose:S},m=xt(_);s._s.set(e,m);const R=(s._a&&s._a.runWithContext||kf)(()=>s._e.run(()=>(l=Zl()).run(()=>t({action:b}))));for(const T in R){const w=R[T];if(Te(w)&&!Rf(w)||zt(w))r||(k&&Ef(w)&&(Te(w)?w.value=k[T]:Oo(w,k[T])),s.state.value[e][T]=w);else if(typeof w=="function"){const F=b(w,T);R[T]=F,i.actions[T]=w}}return Ht(m,R),Ht(_e(m),R),Object.defineProperty(m,"$state",{get:()=>s.state.value[e],set:T=>{$(w=>{Ht(w,T)})}}),s._p.forEach(T=>{Ht(m,l.run(()=>T({store:m,app:s._a,pinia:s,options:i})))}),k&&r&&n.hydrate&&n.hydrate(m.$state,k),a=!0,u=!0,m}/*! #__NO_SIDE_EFFECTS__ */function Pf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function l(i,c){const a=au();return i=i||(a?Ee(fc,null):null),i&&qs(i),i=uc,i._s.has(s)||(r?pc(s,t,o,i):Mf(s,o,i)),i._s.get(s)}return l.$id=s,l}const Af={class:"statustext"},$f={key:0,class:"index"},If={class:"filename"},Tf={key:0,class:"percent"},Of={key:1,class:"position"},Lf={class:"speed"},Df=ve({__name:"TransferBar",props:{status:{}},emits:["cancel"],setup(e){const t=e,n=he(()=>t.status.xfer/t.status.total*100),s=he(()=>{let r=t.status.statbytes/t.status.statdur/1e3;const l=(Date.now()-t.status.tlast)/1e3;return l>5/r?0:l>1/r?1/l:r}),o=he(()=>s.value?s.value.toFixed(s.value<10?1:0)+" MB/s":"stalled");return(r,l)=>r.status.total?(I(),G("div",{key:0,class:"transferprogress",style:Ct(`background: linear-gradient(to right, var(--bar) 0, var(--bar) ${n.value}%, var(--nobar) ${n.value}%, var(--nobar) 100%);`)},[A("div",Af,[r.status.filecount>1?(I(),G("span",$f," ["+xe(r.status.fileidx)+"/"+xe(r.status.filecount)+"] ",1)):pe("",!0),A("span",If,[ds(xe(r.status.filename.split("/").pop())+" ",1),r.status.filesize>1e7?(I(),G("span",Tf,xe((r.status.filepos/r.status.filesize*100).toFixed(0)+" %"),1)):pe("",!0)]),r.status.total>1e7?(I(),G("span",Of,xe((r.status.xfer/1e6).toFixed(0)+" / "+(r.status.total/1e6).toFixed(0)+" MB"),1)):pe("",!0),A("span",Lf,xe(o.value),1),A("button",{class:"close",onClick:l[0]||(l[0]=i=>r.$emit("cancel"))},"❌")])],4)):pe("",!0)}});const st=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Ff=st(Df,[["__scopeId","data-v-fc92216f"]]),Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function hc(e,t){return I(),G("svg",Nf,t[0]||(t[0]=[A("path",{d:"M32 18.45 16 6.03 0 18.45V13.4L16 .96 32 13.4zM28 18v12h-8v-8h-8v8H4V18l12-9z"},null,-1)]))}const gc={render:hc},Hf=Object.freeze(Object.defineProperty({__proto__:null,default:gc,render:hc},Symbol.toStringTag,{value:"Module"}));/*!
22
+ * vue-router v4.5.1
23
+ * (c) 2025 Eduardo San Martin Morote
24
+ * @license MIT
25
+ */const _n=typeof document<"u";function mc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Bf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&mc(e.default)}const ye=Object.assign;function go(e,t){const n={};for(const s in t){const o=t[s];n[s]=ht(o)?o.map(e):e(o)}return n}const zn=()=>{},ht=Array.isArray,vc=/#/g,jf=/&/g,Vf=/\//g,Wf=/=/g,Uf=/\?/g,_c=/\+/g,zf=/%5B/g,Kf=/%5D/g,yc=/%5E/g,qf=/%60/g,bc=/%7B/g,Gf=/%7C/g,wc=/%7D/g,Jf=/%20/g;function cr(e){return encodeURI(""+e).replace(Gf,"|").replace(zf,"[").replace(Kf,"]")}function Yf(e){return cr(e).replace(bc,"{").replace(wc,"}").replace(yc,"^")}function Lo(e){return cr(e).replace(_c,"%2B").replace(Jf,"+").replace(vc,"%23").replace(jf,"%26").replace(qf,"`").replace(bc,"{").replace(wc,"}").replace(yc,"^")}function Zf(e){return Lo(e).replace(Wf,"%3D")}function Xf(e){return cr(e).replace(vc,"%23").replace(Uf,"%3F")}function Qf(e){return e==null?"":Xf(e).replace(Vf,"%2F")}function rs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ed=/\/$/,td=e=>e.replace(ed,"");function mo(e,t,n="/"){let s,o={},r="",l="";const i=t.indexOf("#");let c=t.indexOf("?");return i<c&&i>=0&&(c=-1),c>-1&&(s=t.slice(0,c),r=t.slice(c+1,i>-1?i:t.length),o=e(r)),i>-1&&(s=s||t.slice(0,i),l=t.slice(i,t.length)),s=rd(s??t,n),{fullPath:s+(r&&"?")+r+l,path:s,query:o,hash:rs(l)}}function nd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sd(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&En(t.matched[s],n.matched[o])&&Cc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function En(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!od(e[n],t[n]))return!1;return!0}function od(e,t){return ht(e)?dl(e,t):ht(t)?dl(t,e):e===t}function dl(e,t){return ht(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function rd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,l,i;for(l=0;l<s.length;l++)if(i=s[l],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(l).join("/")}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ls;(function(e){e.pop="pop",e.push="push"})(ls||(ls={}));var Kn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Kn||(Kn={}));function ld(e){if(!e)if(_n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),td(e)}const id=/^[^#]+#/;function cd(e,t){return e.replace(id,"#")+t}function ad(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 Gs=()=>({left:window.scrollX,top:window.scrollY});function ud(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ad(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function pl(e,t){return(history.state?history.state.position-t:-1)+e}const Do=new Map;function fd(e,t){Do.set(e,t)}function dd(e){const t=Do.get(e);return Do.delete(e),t}let pd=()=>location.protocol+"//"+location.host;function xc(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(i);return c[0]!=="/"&&(c="/"+c),fl(c,"")}return fl(n,e)+s+o}function hd(e,t,n,s){let o=[],r=[],l=null;const i=({state:d})=>{const h=xc(e,location),k=n.value,v=t.value;let $=0;if(d){if(n.value=h,t.value=d,l&&l===k){l=null;return}$=v?d.position-v.position:0}else s(h);o.forEach(x=>{x(n.value,k,{delta:$,type:ls.pop,direction:$?$>0?Kn.forward:Kn.back:Kn.unknown})})};function c(){l=n.value}function a(d){o.push(d);const h=()=>{const k=o.indexOf(d);k>-1&&o.splice(k,1)};return r.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Gs()}),"")}function f(){for(const d of r)d();r=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function hl(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?Gs():null}}function gd(e){const{history:t,location:n}=window,s={value:xc(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,a,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:pd()+e+c;try{t[u?"replaceState":"pushState"](a,"",d),o.value=a}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function l(c,a){const u=ye({},t.state,hl(o.value.back,c,o.value.forward,!0),a,{position:o.value.position});r(c,u,!0),s.value=c}function i(c,a){const u=ye({},o.value,t.state,{forward:c,scroll:Gs()});r(u.current,u,!0);const f=ye({},hl(s.value,c,null),{position:u.position+1},a);r(c,f,!1),s.value=c}return{location:s,state:o,push:i,replace:l}}function md(e){e=ld(e);const t=gd(e),n=hd(e,t.state,t.location,t.replace);function s(r,l=!0){l||n.pauseListeners(),history.go(r)}const o=ye({location:"",base:e,go:s,createHref:cd.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function vd(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),md(e)}function _d(e){return typeof e=="string"||e&&typeof e=="object"}function kc(e){return typeof e=="string"||typeof e=="symbol"}const Sc=Symbol("");var gl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gl||(gl={}));function Rn(e,t){return ye(new Error,{type:e,[Sc]:!0},t)}function Rt(e,t){return e instanceof Error&&Sc in e&&(t==null||!!(e.type&t))}const ml="[^/]+?",yd={sensitive:!1,strict:!1,start:!0,end:!0},bd=/[.+*?^${}()[\]/\\]/g;function wd(e,t){const n=ye({},yd,t),s=[];let o=n.start?"^":"";const r=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(o+="/");for(let f=0;f<a.length;f++){const d=a[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(bd,"\\$&"),h+=40;else if(d.type===1){const{value:k,repeatable:v,optional:$,regexp:x}=d;r.push({name:k,repeatable:v,optional:$});const S=x||ml;if(S!==ml){h+=10;try{new RegExp(`(${S})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${k}" (${S}): `+_.message)}}let b=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(b=$&&a.length<2?`(?:/${b})`:"/"+b),$&&(b+="?"),o+=b,h+=20,$&&(h+=-8),v&&(h+=-20),S===".*"&&(h+=-50)}u.push(h)}s.push(u)}if(n.strict&&n.end){const a=s.length-1;s[a][s[a].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const l=new RegExp(o,n.sensitive?"":"i");function i(a){const u=a.match(l),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",k=r[d-1];f[k.name]=h&&k.repeatable?h.split("/"):h}return f}function c(a){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:k,repeatable:v,optional:$}=h,x=k in a?a[k]:"";if(ht(x)&&!v)throw new Error(`Provided param "${k}" is an array but it is not repeatable (* or + modifiers)`);const S=ht(x)?x.join("/"):x;if(!S)if($)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${k}"`);u+=S}}return u||"/"}return{re:l,score:s,keys:r,parse:i,stringify:c}}function Cd(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 Ec(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=Cd(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(vl(s))return 1;if(vl(o))return-1}return o.length-s.length}function vl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xd={type:0,value:""},kd=/[a-zA-Z0-9_]/;function Sd(e){if(!e)return[[]];if(e==="/")return[[xd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${a}": ${h}`)}let n=0,s=n;const o=[];let r;function l(){r&&o.push(r),r=[]}let i=0,c,a="",u="";function f(){a&&(n===0?r.push({type:0,value:a}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function d(){a+=c}for(;i<e.length;){if(c=e[i++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(a&&f(),l()):c===":"?(f(),n=1):d();break;case 4:d(),n=s;break;case 1:c==="("?n=2:kd.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${a}"`),f(),l(),o}function Ed(e,t,n){const s=wd(Sd(e.path),n),o=ye(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Rd(e,t){const n=[],s=new Map;t=wl({strict:!1,end:!0,sensitive:!1},t);function o(f){return s.get(f)}function r(f,d,h){const k=!h,v=yl(f);v.aliasOf=h&&h.record;const $=wl(t,f),x=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const m of _)x.push(yl(ye({},v,{components:h?h.record.components:v.components,path:m,aliasOf:h?h.record:v})))}let S,b;for(const _ of x){const{path:m}=_;if(d&&m[0]!=="/"){const C=d.record.path,R=C[C.length-1]==="/"?"":"/";_.path=d.record.path+(m&&R+m)}if(S=Ed(_,d,$),h?h.alias.push(S):(b=b||S,b!==S&&b.alias.push(S),k&&f.name&&!bl(S)&&l(f.name)),Rc(S)&&c(S),v.children){const C=v.children;for(let R=0;R<C.length;R++)r(C[R],S,h&&h.children[R])}h=h||S}return b?()=>{l(b)}:zn}function l(f){if(kc(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function i(){return n}function c(f){const d=Ad(f,n);n.splice(d,0,f),f.record.name&&!bl(f)&&s.set(f.record.name,f)}function a(f,d){let h,k={},v,$;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Rn(1,{location:f});$=h.record.name,k=ye(_l(d.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&_l(f.params,h.keys.map(b=>b.name))),v=h.stringify(k)}else if(f.path!=null)v=f.path,h=n.find(b=>b.re.test(v)),h&&(k=h.parse(v),$=h.record.name);else{if(h=d.name?s.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw Rn(1,{location:f,currentLocation:d});$=h.record.name,k=ye({},d.params,f.params),v=h.stringify(k)}const x=[];let S=h;for(;S;)x.unshift(S.record),S=S.parent;return{name:$,path:v,params:k,matched:x,meta:Pd(x)}}e.forEach(f=>r(f));function u(){n.length=0,s.clear()}return{addRoute:r,resolve:a,removeRoute:l,clearRoutes:u,getRoutes:i,getRecordMatcher:o}}function _l(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function yl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Md(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Md(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 bl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pd(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function wl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Ad(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;Ec(e,t[r])<0?s=r:n=r+1}const o=$d(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function $d(e){let t=e;for(;t=t.parent;)if(Rc(t)&&Ec(e,t)===0)return t}function Rc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Id(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<s.length;++o){const r=s[o].replace(_c," "),l=r.indexOf("="),i=rs(l<0?r:r.slice(0,l)),c=l<0?null:rs(r.slice(l+1));if(i in t){let a=t[i];ht(a)||(a=t[i]=[a]),a.push(c)}else t[i]=c}return t}function Cl(e){let t="";for(let n in e){const s=e[n];if(n=Zf(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(ht(s)?s.map(r=>r&&Lo(r)):[s&&Lo(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Td(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ht(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Od=Symbol(""),xl=Symbol(""),Js=Symbol(""),Mc=Symbol(""),Fo=Symbol("");function On(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,s,o,r=l=>l()){const l=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,c)=>{const a=d=>{d===!1?c(Rn(4,{from:n,to:t})):d instanceof Error?c(d):_d(d)?c(Rn(2,{from:t,to:d})):(l&&s.enterCallbacks[o]===l&&typeof d=="function"&&l.push(d),i())},u=r(()=>e.call(s&&s.instances[o],t,n,a));let f=Promise.resolve(u);e.length<3&&(f=f.then(a)),f.catch(d=>c(d))})}function vo(e,t,n,s,o=r=>r()){const r=[];for(const l of e)for(const i in l.components){let c=l.components[i];if(!(t!=="beforeRouteEnter"&&!l.instances[i]))if(mc(c)){const u=(c.__vccOpts||c)[t];u&&r.push(Wt(u,n,s,l,i,o))}else{let a=c();r.push(()=>a.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${i}" at "${l.path}"`);const f=Bf(u)?u.default:u;l.mods[i]=u,l.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&Wt(h,n,s,l,i,o)()}))}}return r}function kl(e){const t=Ee(Js),n=Ee(Mc),s=he(()=>{const c=M(e.to);return t.resolve(c)}),o=he(()=>{const{matched:c}=s.value,{length:a}=c,u=c[a-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(En.bind(null,u));if(d>-1)return d;const h=Sl(c[a-2]);return a>1&&Sl(u)===h&&f[f.length-1].path!==h?f.findIndex(En.bind(null,c[a-2])):d}),r=he(()=>o.value>-1&&Hd(n.params,s.value.params)),l=he(()=>o.value>-1&&o.value===n.matched.length-1&&Cc(n.params,s.value.params));function i(c={}){if(Nd(c)){const a=t[M(e.replace)?"replace":"push"](M(e.to)).catch(zn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:s,href:he(()=>s.value.href),isActive:r,isExactActive:l,navigate:i}}function Ld(e){return e.length===1?e[0]:e}const Dd=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:kl,setup(e,{slots:t}){const n=xt(kl(e)),{options:s}=Ee(Js),o=he(()=>({[El(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[El(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Ld(t.default(n));return e.custom?r:un("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Fd=Dd;function Nd(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 Hd(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!ht(o)||o.length!==s.length||s.some((r,l)=>r!==o[l]))return!1}return!0}function Sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const El=(e,t,n)=>e??t??n,Bd=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ee(Fo),o=he(()=>e.route||s.value),r=Ee(xl,0),l=he(()=>{let a=M(r);const{matched:u}=o.value;let f;for(;(f=u[a])&&!f.components;)a++;return a}),i=he(()=>o.value.matched[l.value]);Je(xl,he(()=>l.value+1)),Je(Od,i),Je(Fo,o);const c=Q();return $t(()=>[c.value,i.value,e.name],([a,u,f],[d,h,k])=>{u&&(u.instances[f]=a,h&&h!==u&&a&&a===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),a&&u&&(!h||!En(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(v=>v(a))},{flush:"post"}),()=>{const a=o.value,u=e.name,f=i.value,d=f&&f.components[u];if(!d)return Rl(n.default,{Component:d,route:a});const h=f.props[u],k=h?h===!0?a.params:typeof h=="function"?h(a):h:null,$=un(d,ye({},k,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return Rl(n.default,{Component:$,route:a})||$}}});function Rl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Pc=Bd;function jd(e){const t=Rd(e.routes,e),n=e.parseQuery||Id,s=e.stringifyQuery||Cl,o=e.history,r=On(),l=On(),i=On(),c=js(Ft);let a=Ft;_n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=go.bind(null,y=>""+y),f=go.bind(null,Qf),d=go.bind(null,rs);function h(y,q){let B,W;return kc(y)?(B=t.getRecordMatcher(y),W=q):W=y,t.addRoute(W,B)}function k(y){const q=t.getRecordMatcher(y);q&&t.removeRoute(q)}function v(){return t.getRoutes().map(y=>y.record)}function $(y){return!!t.getRecordMatcher(y)}function x(y,q){if(q=ye({},q||c.value),typeof y=="string"){const g=mo(n,y,q.path),E=t.resolve({path:g.path},q),O=o.createHref(g.fullPath);return ye(g,E,{params:d(E.params),hash:rs(g.hash),redirectedFrom:void 0,href:O})}let B;if(y.path!=null)B=ye({},y,{path:mo(n,y.path,q.path).path});else{const g=ye({},y.params);for(const E in g)g[E]==null&&delete g[E];B=ye({},y,{params:f(g)}),q.params=f(q.params)}const W=t.resolve(B,q),de=y.hash||"";W.params=u(d(W.params));const ke=nd(s,ye({},y,{hash:Yf(de),path:W.path})),p=o.createHref(ke);return ye({fullPath:ke,hash:de,query:s===Cl?Td(y.query):y.query||{}},W,{redirectedFrom:void 0,href:p})}function S(y){return typeof y=="string"?mo(n,y,c.value.path):ye({},y)}function b(y,q){if(a!==y)return Rn(8,{from:q,to:y})}function _(y){return R(y)}function m(y){return _(ye(S(y),{replace:!0}))}function C(y){const q=y.matched[y.matched.length-1];if(q&&q.redirect){const{redirect:B}=q;let W=typeof B=="function"?B(y):B;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=S(W):{path:W},W.params={}),ye({query:y.query,hash:y.hash,params:W.path!=null?{}:y.params},W)}}function R(y,q){const B=a=x(y),W=c.value,de=y.state,ke=y.force,p=y.replace===!0,g=C(B);if(g)return R(ye(S(g),{state:typeof g=="object"?ye({},de,g.state):de,force:ke,replace:p}),q||B);const E=B;E.redirectedFrom=q;let O;return!ke&&sd(s,W,B)&&(O=Rn(16,{to:E,from:W}),fe(W,W,!0,!1)),(O?Promise.resolve(O):F(E,W)).catch(P=>Rt(P)?Rt(P,2)?P:He(P):ce(P,E,W)).then(P=>{if(P){if(Rt(P,2))return R(ye({replace:p},S(P.to),{state:typeof P.to=="object"?ye({},de,P.to.state):de,force:ke}),q||E)}else P=N(E,W,!0,p,de);return K(E,W,P),P})}function T(y,q){const B=b(y,q);return B?Promise.reject(B):Promise.resolve()}function w(y){const q=J.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(y):y()}function F(y,q){let B;const[W,de,ke]=Vd(y,q);B=vo(W.reverse(),"beforeRouteLeave",y,q);for(const g of W)g.leaveGuards.forEach(E=>{B.push(Wt(E,y,q))});const p=T.bind(null,y,q);return B.push(p),te(B).then(()=>{B=[];for(const g of r.list())B.push(Wt(g,y,q));return B.push(p),te(B)}).then(()=>{B=vo(de,"beforeRouteUpdate",y,q);for(const g of de)g.updateGuards.forEach(E=>{B.push(Wt(E,y,q))});return B.push(p),te(B)}).then(()=>{B=[];for(const g of ke)if(g.beforeEnter)if(ht(g.beforeEnter))for(const E of g.beforeEnter)B.push(Wt(E,y,q));else B.push(Wt(g.beforeEnter,y,q));return B.push(p),te(B)}).then(()=>(y.matched.forEach(g=>g.enterCallbacks={}),B=vo(ke,"beforeRouteEnter",y,q,w),B.push(p),te(B))).then(()=>{B=[];for(const g of l.list())B.push(Wt(g,y,q));return B.push(p),te(B)}).catch(g=>Rt(g,8)?g:Promise.reject(g))}function K(y,q,B){i.list().forEach(W=>w(()=>W(y,q,B)))}function N(y,q,B,W,de){const ke=b(y,q);if(ke)return ke;const p=q===Ft,g=_n?history.state:{};B&&(W||p?o.replace(y.fullPath,ye({scroll:p&&g&&g.scroll},de)):o.push(y.fullPath,de)),c.value=y,fe(y,q,B,p),He()}let Z;function ee(){Z||(Z=o.listen((y,q,B)=>{if(!D.listening)return;const W=x(y),de=C(W);if(de){R(ye(de,{replace:!0,force:!0}),W).catch(zn);return}a=W;const ke=c.value;_n&&fd(pl(ke.fullPath,B.delta),Gs()),F(W,ke).catch(p=>Rt(p,12)?p:Rt(p,2)?(R(ye(S(p.to),{force:!0}),W).then(g=>{Rt(g,20)&&!B.delta&&B.type===ls.pop&&o.go(-1,!1)}).catch(zn),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ce(p,W,ke))).then(p=>{p=p||N(W,ke,!1),p&&(B.delta&&!Rt(p,8)?o.go(-B.delta,!1):B.type===ls.pop&&Rt(p,20)&&o.go(-1,!1)),K(W,ke,p)}).catch(zn)}))}let ae=On(),le=On(),Y;function ce(y,q,B){He(y);const W=le.list();return W.length?W.forEach(de=>de(y,q,B)):console.error(y),Promise.reject(y)}function Ae(){return Y&&c.value!==Ft?Promise.resolve():new Promise((y,q)=>{ae.add([y,q])})}function He(y){return Y||(Y=!y,ee(),ae.list().forEach(([q,B])=>y?B(y):q()),ae.reset()),y}function fe(y,q,B,W){const{scrollBehavior:de}=e;if(!_n||!de)return Promise.resolve();const ke=!B&&dd(pl(y.fullPath,0))||(W||!B)&&history.state&&history.state.scroll||null;return Ze().then(()=>de(y,q,ke)).then(p=>p&&ud(p)).catch(p=>ce(p,y,q))}const Oe=y=>o.go(y);let ct;const J=new Set,D={currentRoute:c,listening:!0,addRoute:h,removeRoute:k,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:v,resolve:x,options:e,push:_,replace:m,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:r.add,beforeResolve:l.add,afterEach:i.add,onError:le.add,isReady:Ae,install(y){const q=this;y.component("RouterLink",Fd),y.component("RouterView",Pc),y.config.globalProperties.$router=q,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>M(c)}),_n&&!ct&&c.value===Ft&&(ct=!0,_(o.location).catch(de=>{}));const B={};for(const de in Ft)Object.defineProperty(B,de,{get:()=>c.value[de],enumerable:!0});y.provide(Js,q),y.provide(Mc,pi(B)),y.provide(Fo,c);const W=y.unmount;J.add(y),y.unmount=function(){J.delete(y),J.size<1&&(a=Ft,Z&&Z(),Z=null,c.value=Ft,ct=!1,Y=!1),W()}}};function te(y){return y.reduce((q,B)=>q.then(()=>w(B)),Promise.resolve())}return D}function Vd(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let l=0;l<r;l++){const i=t.matched[l];i&&(e.matched.find(a=>En(a,i))?s.push(i):n.push(i));const c=e.matched[l];c&&(t.matched.find(a=>En(a,c))||o.push(c))}return[n,s,o]}function ar(){return Ee(Js)}function Ac(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 $c(e){const t=new Date(e*1e3),n=new Date,s=t.getTime()-n.getTime(),o=Math.abs(s),r=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(o<=5e3)return"now";if(o<=6e4)return r.format(Math.round(s/1e3),"second").replace(" ago","").replaceAll(" "," ");if(o<=36e5)return r.format(Math.round(s/6e4),"minute").replace("utes","").replace("ute","").replaceAll(" "," ");if(o<=864e5)return r.format(Math.round(s/36e5),"hour").replaceAll(" "," ");if(o<=6048e5)return r.format(Math.round(s/864e5),"day").replaceAll(" "," ");let l=t.toLocaleDateString("en-ie",{weekday:"short",year:"numeric",month:"short",day:"numeric"}).replace("Sept","Sep");return l.length===14&&(l=l.replace(" ","  ")),l=l.replaceAll(" "," ").replace(" "," "),l=l.slice(0,-4)+l.slice(-2),l}const Mn=new Intl.Collator("en",{sensitivity:"base",numeric:!0,usage:"search"});function Wd(e){return"^"+e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase()+"$"}function Ud(e){const t=e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return{based:t,words:t.split(/\s+/)}}function zd(e,t){const{based:n,words:s}=t;return e.includes(n)||s&&s.every(o=>e.includes(o))}class ur{constructor(t={}){kt(this,"_name","");kt(this,"loc","");kt(this,"key","");kt(this,"size",0);kt(this,"mtime",0);kt(this,"haystack","");kt(this,"dir",!1);Object.assign(this,t)}get name(){return this._name}set name(t){if(t.includes("/")||t.startsWith("."))throw Error(`Invalid name: ${t}`);this._name=t,this.haystack=Wd(t)}get sizedisp(){return Ac(this.size)}get modified(){return $c(this.mtime)}get url(){const t=this.loc?`${this.loc}/${this.name}`:this.name;return this.dir?"/#/"+`${t}/`.replaceAll("#","%23"):`/files/${t}`.replaceAll("?","%3F").replaceAll("#","%23")}get urlrouter(){return this.url.replace(/^\/#/,"")}get img(){return this.dir?!1:["jpg","jpeg","png","gif","webp","avif","heic","heif","svg"].includes(this.ext)}get previewable(){return this.dir?!1:this.img?!0:["mp4","mkv","webm","ogg","mp3","flac","aac","pdf"].includes(this.ext)}get previewurl(){return this.url.replace(/^\/files/,"/preview")}get ext(){const t=this.name.lastIndexOf(".");return t===-1||t===this.name.length-1?"":this.name.slice(t+1).toLowerCase()}}class Kd{async get(t){const n=await fetch(t,{method:"GET",headers:{accept:"application/json"}});let s;try{s=await n.json()}catch{throw new Nt(n.status,`🛑 ${n.status} ${n.statusText}`)}if("error"in s)throw new Nt(s.error.code,s.error.message);return s}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 o;try{o=await s.json()}catch{throw new Nt(s.status,`🛑 ${s.status} ${s.statusText}`)}if("error"in o)throw new Nt(o.error.code,o.error.message);return o}async put(t,n){const s=await fetch(t,{method:"PUT",headers:{accept:"application/json","content-type":"application/json"},body:n!==void 0?JSON.stringify(n):void 0});let o;try{o=await s.json()}catch{throw new Nt(s.status,`🛑 ${s.status} ${s.statusText}`)}if("error"in o)throw new Nt(o.error.code,o.error.message);return o}async delete(t){const n=await fetch(t,{method:"DELETE",headers:{accept:"application/json"}});let s;try{s=await n.json()}catch{throw new Nt(n.status,`🛑 ${n.status} ${n.statusText}`)}if("error"in s)throw new Nt(s.error.code,s.error.message);return s}}const Yt=new Kd;class Nt extends Error{constructor(n,s){super(s);kt(this,"code");this.code=n}}const qd="/login",Gd="/logout",Jd="/password-change";async function Yd(e,t){return await Yt.post(qd,{username:e,password:t})}async function Zd(){return await Yt.post(Gd)}async function Xd(e,t,n){return await Yt.post(Jd,{username:e,passwordChange:t,password:n})}const Ys="/users";async function Qd(){return await Yt.get(Ys)}async function Ml(e,t,n){return await Yt.post(Ys,{username:e,password:t,privileged:n})}async function Pl(e,t){return await Yt.put(`${Ys}/${e}`,t)}async function Al(e){return await Yt.delete(`${Ys}/${e}`)}async function ep(e){return await Yt.put("/config/public",{public:e})}const is="/api/control",tp="/api/upload",np="/api/watch";let bt=[],ks=500,qn=null;const sp=()=>{const e=localStorage["cista-files"];if(!e)return!1;const t=Ie();try{return bt=JSON.parse(e),t.updateRoot(bt),console.log(`Loaded session with ${bt.length} items cached`),!0}catch(n){return console.log("Loading session failed",n),!1}},Ic=()=>{localStorage["cista-files"]=JSON.stringify(bt)},fn=(e,t)=>{const n=new WebSocket(new URL(e,location.origin.replace(/^http/,"ws")));for(const[s,o]of Object.entries(t))n.addEventListener(s,o);return n},fr=()=>{on!==null&&(clearTimeout(on),on=null);const e=Ie();e.error!=="Reconnecting..."&&(e.error="Connecting..."),console.log(e.error),qn=fn(np,{message:rp,close:Tc}),qn.addEventListener("message",t=>{if(e.connected)return;const n=JSON.parse(t.data);if("error"in n){n.error.code===401?(e.user.isLoggedIn=!1,e.dialog="login"):e.error=n.error.message;return}"server"in n&&(console.log("Connected to backend",n),e.server=n.server,e.connected=!0,ks=500,e.error="",n.user?e.login(n.user.username,n.user.privileged):e.isUserLogged&&e.logout(),!n.server.public&&!n.user&&(e.dialog="login"))})},op=()=>{qn&&(qn.close(),qn=null)};let on=null;const Tc=e=>{const t=Ie();if(t.connected&&(console.warn("Disconnected from server",e),t.connected=!1,t.error="Reconnecting..."),on!==null&&clearTimeout(on),t.dialog==="login"){on=setTimeout(Tc,100);return}ks=Math.min(5e3,ks+500),on=setTimeout(fr,ks)},rp=e=>{const t=JSON.parse(e.data);switch(!0){case!!t.root:lp(t);break;case!!t.update:ip(t);break;case!!t.space:console.log("Watch space",t.space);break;case!!t.error:cp(t);break}};function lp({root:e}){const t=Ie();console.log("Watch root",e),t.updateRoot(e),bt=e,Ic()}function ip(e){const t=Ie(),n=e.update;if(console.log("Watch update",n),!bt)return console.error("Watch update before root");let s=[],o=0;for(const[r,l]of n)r==="k"?(s.push(...bt.slice(o,o+l)),o+=l):r==="d"?o+=l:r==="i"?s.push(...l):console.log("Unknown update action",r,l);if(o!=bt.length)throw Error(`Tree update out of sync, number of entries mismatch: got ${o}, expected ${bt.length}, new tree ${s.length}`);t.updateRoot(s),bt=s,Ic()}function cp(e){const t=Ie();if(e.error.code===401){t.user.isLoggedIn=!1,t.dialog="login";return}}const Oc={name:(e,t)=>Mn.compare(e.name,t.name),modified:(e,t)=>t.mtime-e.mtime,size:(e,t)=>t.size-e.size},Lc=(e,t)=>{if(!t)return e;const n=[...e];return n.sort(Oc[t]),n},ap=(e,t)=>{if(!t)return e;const n=Oc[t],s=new Map;for(const i of e){const c=i.loc;s.has(c)||s.set(c,[]),s.get(c).push(i)}for(const i of s.values())i.sort(n);const o=new Map;for(const[i,c]of s)o.set(i,c[0]);const r=[...s.keys()].sort((i,c)=>t==="name"?Mn.compare(i,c):n(o.get(i),o.get(c))),l=[];for(const i of r)l.push(...s.get(i));return l},Ie=Pf({id:"main",state:()=>({document:js([]),selected:new Set([]),query:"",fileExplorer:null,error:"",connected:!1,cursor:"",server:{},dialog:"",uprogress:{},dprogress:{},prefs:{gallery:!1,sortListing:"",sortFiltered:""},user:{username:"",privileged:!1,isLoggedIn:!1}}),persist:{paths:["prefs","cursor","selected"],serializer:{deserialize:e=>{const t=JSON.parse(e);return t.selected=new Set(t.selected),t},serialize:e=>(e.selected=Array.from(e.selected),JSON.stringify(e))}},actions:{updateRoot(e){const t=[];let n=[];for(const[s,o,r,l,i,c]of e)n=n.slice(0,s-1),t.push(new ur({name:o,loc:s?n.join("/"):"/",key:r,size:i,mtime:l,dir:!c})),n.push(o);this.document=t},login(e,t){this.user.username=e,this.user.privileged=t,this.user.isLoggedIn=!0,this.dialog="",this.connected||fr()},loginDialog(){this.dialog="login"},async logout(){console.log("Logout"),await Zd(),this.$reset(),localStorage.clear(),history.go()},toggleSort(e){this.query?this.prefs.sortFiltered=this.prefs.sortFiltered===e?"":e:this.prefs.sortListing=this.prefs.sortListing===e?"":e},sort(e){this.query?this.prefs.sortFiltered=e:this.prefs.sortListing=e},focusBreadcrumb(){document.querySelector(".breadcrumb").focus()},cancelDownloads(){location.reload()},cancelUploads(){location.reload()}},getters:{sortOrder(){return this.query?this.prefs.sortFiltered:this.prefs.sortListing},isUserLogged(){return this.user.isLoggedIn},recentDocuments(){return Lc(this.document,"modified")},selectedFiles(){const e=this.selected,t=new Set,n={missing:new Set,docs:{},keys:[],recursive:[]};for(const r of this.document)e.has(r.key)&&(t.add(r.key),n.keys.push(r.key),n.docs[r.key]=r);for(const r of e)t.has(r)||n.missing.add(r);const s=new Set;function o(r,l,i){if(!i.dir&&s.has(r))throw Error(`Multiple selections conflict for: ${r}`);s.add(r),n.recursive.push([r,l,i])}for(const r of n.keys){const l=n.docs[r],i=l.loc?`${l.loc}/${l.name}`:l.name,c=l.loc.length;o(l.name,i,l);for(const a of this.document)if(a.loc===i||a.loc.startsWith(i)&&a.loc[i.length]==="/"){const u=a.loc?`${a.loc}/${a.name}`:a.name,f=u.slice(c);o(f,u,a)}}return n.recursive.sort((r,l)=>Mn.compare(r[0],l[0])),n}}}),Dc=e=>{const t=Ie(),n=e.join("/");return t.document.some(s=>(s.loc?`${s.loc}/${s.name}`:s.name)===n)},up=["aria-current"],fp=["href","aria-current","onClick","title"],dr=ve({__name:"BreadCrumb",props:{path:{},primary:{type:Boolean}},setup(e){const t=ar(),n=[],s=(u,f)=>{f&&(n[u]=f)};Ii(()=>{n.length=1});const o=e,r=Q([]),l=u=>u==o.path.length?"location":void 0,i=()=>{Ze(()=>{const u=o.path.length;u<n.length&&n[u].focus()})},c=u=>{if(!n[u])throw Error(`No link at index ${u} (path: ${o.path})`);const d=u?`/${r.value.slice(0,u).join("/")}/`:"/",h=r.value.length?`/${r.value.join("/")}/`:"/",k=decodeURIComponent(location.hash.slice(1).split("//")[0]),v=d.replaceAll("?","%3F").replaceAll("#","%23");l(u)?(r.value.splice(u),t.push(v)):h.startsWith(k)?t.replace(v):t.push(v)},a=u=>{const f=o.path.length+u;f<0||f>r.value.length||c(f)};return Ot(()=>{const u=r.value.slice(0,o.path.length);if(!u.every((d,h)=>d===o.path[h]))r.value=o.path;else if(o.path.length>u.length)r.value=u.concat(o.path.slice(u.length));else for(let d=o.path.length;d<r.value.length;++d)if(!Dc(r.value.slice(0,d+1))){r.value=r.value.slice(0,d);break}o.primary&&Ze(()=>{const d=document.activeElement;(!d||[...n,document.body].includes(d))&&i()})}),(u,f)=>(I(),G("nav",{class:"breadcrumb","aria-label":"Breadcrumb",onKeydown:[f[1]||(f[1]=kn(Ne(d=>a(-1),["stop"]),["left"])),f[2]||(f[2]=kn(Ne(d=>a(1),["stop"]),["right"]))],onKeyup:f[3]||(f[3]=kn(d=>a(0),["enter"])),onFocus:i,tabindex:"0"},[A("a",{href:"#/",ref:d=>s(0,d),class:Le(["home",{current:!!l(0)}]),"aria-current":l(0),onClick:f[0]||(f[0]=Ne(d=>c(0),["prevent"])),title:"/"},[(I(),me(tr(M(gc))))],10,up),(I(!0),G(we,null,An(r.value,(d,h)=>(I(),G("a",{key:h,href:`/#/${r.value.slice(0,h+1).join("/")}/`,class:Le({current:!!l(h+1)}),"aria-current":l(h+1),onClick:Ne(k=>c(h+1),["prevent"]),ref_for:!0,ref:k=>s(h+1,k),title:`/${r.value.slice(0,h+1).join("/")}`},xe(d),11,fp))),128))],32))}});const dp="modulepreload",pp=function(e){return"/"+e},$l={},ne=function(t,n,s){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=pp(r),r in $l)return;$l[r]=!0;const l=r.endsWith(".css"),i=l?'[rel="stylesheet"]':"";if(!!s)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===r&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${i}`))return;const a=document.createElement("link");if(a.rel=l?"stylesheet":dp,l||(a.as="script",a.crossOrigin=""),a.href=r,document.head.appendChild(a),l)return new Promise((u,f)=>{a.addEventListener("load",u),a.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r})},hp=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},gp={class:"action-button"},Zs=ve({__name:"SvgButton",props:{name:{}},setup(e){const t=e,n=Ua(()=>hp(Object.assign({"../assets/svg/add-file.svg":()=>ne(()=>import("./add-file-38ca9b7e.js"),[]),"../assets/svg/add-folder.svg":()=>ne(()=>import("./add-folder-f3d443e0.js"),[]),"../assets/svg/arrow.svg":()=>ne(()=>import("./arrow-1760afa9.js"),[]),"../assets/svg/arrows-h.svg":()=>ne(()=>import("./arrows-h-31428902.js"),[]),"../assets/svg/arrows-v.svg":()=>ne(()=>import("./arrows-v-781a1376.js"),[]),"../assets/svg/check.svg":()=>ne(()=>import("./check-02b34fcd.js"),[]),"../assets/svg/code.svg":()=>ne(()=>import("./code-e2348499.js"),[]),"../assets/svg/cog.svg":()=>ne(()=>Promise.resolve().then(()=>eh),void 0),"../assets/svg/copy.svg":()=>ne(()=>import("./copy-6bb3930b.js"),[]),"../assets/svg/create-file.svg":()=>ne(()=>import("./create-file-9e37b1d6.js"),[]),"../assets/svg/create-folder.svg":()=>ne(()=>import("./create-folder-f68cfe1f.js"),[]),"../assets/svg/cross.svg":()=>ne(()=>import("./cross-d99708ee.js"),[]),"../assets/svg/disk.svg":()=>ne(()=>import("./disk-68b87505.js"),[]),"../assets/svg/download.svg":()=>ne(()=>import("./download-60cf047e.js"),[]),"../assets/svg/exclamation.svg":()=>ne(()=>import("./exclamation-ed20d895.js"),[]),"../assets/svg/eye.svg":()=>ne(()=>import("./eye-4bdd3f22.js"),[]),"../assets/svg/find.svg":()=>ne(()=>import("./find-8c04a16e.js"),[]),"../assets/svg/fullscreen.svg":()=>ne(()=>import("./fullscreen-d5a124b1.js"),[]),"../assets/svg/github.svg":()=>ne(()=>import("./github-ac1f3711.js"),[]),"../assets/svg/home.svg":()=>ne(()=>Promise.resolve().then(()=>Hf),void 0),"../assets/svg/info.svg":()=>ne(()=>import("./info-7d74e0af.js"),[]),"../assets/svg/link.svg":()=>ne(()=>import("./link-86f2038d.js"),[]),"../assets/svg/logo.svg":()=>ne(()=>import("./logo-304a4977.js"),[]),"../assets/svg/loop.svg":()=>ne(()=>import("./loop-094fa59f.js"),[]),"../assets/svg/menu.svg":()=>ne(()=>import("./menu-5aa43550.js"),[]),"../assets/svg/next.svg":()=>ne(()=>import("./next-73c63b6c.js"),[]),"../assets/svg/open.svg":()=>ne(()=>import("./open-83f85394.js"),[]),"../assets/svg/paste.svg":()=>ne(()=>import("./paste-32e42b20.js"),[]),"../assets/svg/pause.svg":()=>ne(()=>import("./pause-530d4eda.js"),[]),"../assets/svg/pencil.svg":()=>ne(()=>import("./pencil-3347872a.js"),[]),"../assets/svg/play.svg":()=>ne(()=>Promise.resolve().then(()=>dh),void 0),"../assets/svg/plus.svg":()=>ne(()=>import("./plus-57ce8823.js"),[]),"../assets/svg/previous.svg":()=>ne(()=>import("./previous-0b94b7ca.js"),[]),"../assets/svg/reload.svg":()=>ne(()=>import("./reload-b01bccf2.js"),[]),"../assets/svg/rename.svg":()=>ne(()=>import("./rename-aac51c4a.js"),[]),"../assets/svg/scissors.svg":()=>ne(()=>import("./scissors-4ab3f69f.js"),[]),"../assets/svg/shuffle.svg":()=>ne(()=>import("./shuffle-241453fb.js"),[]),"../assets/svg/signin.svg":()=>ne(()=>import("./signin-fb2b835d.js"),[]),"../assets/svg/signout.svg":()=>ne(()=>import("./signout-ebb6ff80.js"),[]),"../assets/svg/skip.svg":()=>ne(()=>import("./skip-92b79bc0.js"),[]),"../assets/svg/spinner.svg":()=>ne(()=>import("./spinner-8a1bf68f.js"),[]),"../assets/svg/stop.svg":()=>ne(()=>import("./stop-2cfb5705.js"),[]),"../assets/svg/trash.svg":()=>ne(()=>import("./trash-7d469999.js"),[]),"../assets/svg/triangle.svg":()=>ne(()=>import("./triangle-40858029.js"),[]),"../assets/svg/unfullscreen.svg":()=>ne(()=>import("./unfullscreen-4710e51b.js"),[]),"../assets/svg/up-arrow.svg":()=>ne(()=>import("./up-arrow-f20ea5cf.js"),[]),"../assets/svg/upload-cloud.svg":()=>ne(()=>import("./upload-cloud-80e5a96d.js"),[]),"../assets/svg/user-cog.svg":()=>ne(()=>import("./user-cog-b8ed5882.js"),[]),"../assets/svg/user.svg":()=>ne(()=>import("./user-70db25a5.js"),[]),"../assets/svg/volume-high.svg":()=>ne(()=>import("./volume-high-ea949028.js"),[]),"../assets/svg/volume-low.svg":()=>ne(()=>import("./volume-low-f29113a6.js"),[]),"../assets/svg/volume-medium.svg":()=>ne(()=>import("./volume-medium-ce4f8214.js"),[]),"../assets/svg/volume-mute.svg":()=>ne(()=>import("./volume-mute-3899fd69.js"),[]),"../assets/svg/window-cross.svg":()=>ne(()=>import("./window-cross-786863fe.js"),[]),"../assets/svg/window.svg":()=>ne(()=>import("./window-b176eb67.js"),[]),"../assets/svg/wordwrap.svg":()=>ne(()=>import("./wordwrap-04a75e12.js"),[]),"../assets/svg/zoomin.svg":()=>ne(()=>import("./zoomin-4567de3c.js"),[]),"../assets/svg/zoomout.svg":()=>ne(()=>import("./zoomout-55239db5.js"),[])}),`../assets/svg/${t.name}.svg`));return(s,o)=>(I(),G("button",gp,[(I(),me(tr(M(n)))),Fe(s.$slots,"default")]))}});const mp=ve({__name:"UploadButton",props:{path:Array},setup(e){const t=Q(),n=Q(),s=Ie(),o=e;function r(_){var T;const m=Array.from(((T=_.clipboardData)==null?void 0:T.items)??[]),C=[],R=[];for(const w of m){if(w.kind!=="file")continue;const F=w.webkitGetAsEntry();if(F!=null&&F.isFile){const K=w.getAsFile();K&&C.push(K)}else F!=null&&F.isDirectory&&R.push(F)}if(C.length||R.length){_.preventDefault(),c(C);for(const w of R)l(w,`${o.path.join("/")}/${w.name}`)}}const l=async(_,m)=>{const C=_.createReader(),R=await new Promise(w=>C.readEntries(w)),T=[];for(const w of R){const F=`${m}/${w.name}`;if(w.isFile){const K=await new Promise(N=>w.file(N));T.push({file:K,cloudName:F,cloudPos:0})}else w.isDirectory&&await l(w,F)}T.length&&a(T)};function i(_){var R;_.preventDefault();const m=_.target,C=Array.from(((R=m??_.dataTransfer)==null?void 0:R.files)??[]);m&&(m.value=""),C.length&&c(C)}const c=_=>{const m=o.path.join("/");let C=[];for(const R of _)C.push({file:R,cloudName:m+"/"+(R.webkitRelativePath||R.name),cloudPos:0});a(C)},a=_=>{const m=_.filter(C=>C.cloudName.includes("/."));m.length&&(s.error="Won't upload dotfiles",console.log("Dotfiles omitted",m),_=_.filter(C=>!C.cloudName.includes("/."))),_.length&&(_.sort((C,R)=>Mn.compare(C.cloudName,R.cloudName)),v=[...v,..._],k(_),b())},u={total:0,xfer:0,t0:0,tlast:0,statbytes:0,statdur:0,files:[],filestart:0,fileidx:0,filecount:0,filename:"",filesize:0,filepos:0,status:"idle"};s.uprogress={...u},setInterval(()=>{Date.now()-s.uprogress.tlast>3e3?(s.uprogress.statbytes=0,s.uprogress.statdur=1):(s.uprogress.statbytes*=.9,s.uprogress.statdur*=.9)},100);const f=({name:_,size:m,start:C,end:R})=>{if(_!==s.uprogress.filename)return;const T=Date.now();s.uprogress.xfer=s.uprogress.filestart+R,s.uprogress.filepos=R,s.uprogress.statbytes+=R-C,s.uprogress.statdur+=T-s.uprogress.tlast,s.uprogress.tlast=T,R===m&&(s.uprogress.filestart+=m,d(),++s.uprogress.fileidx>=s.uprogress.filecount&&h())},d=()=>{const _=s.uprogress.files.shift();if(!_)return h();s.uprogress.filepos=0,s.uprogress.filesize=_.file.size,s.uprogress.filename=_.cloudName},h=()=>{Object.assign(s.uprogress,u),s.uprogress.t0=Date.now(),s.uprogress.tlast=s.uprogress.t0+1},k=_=>{s.uprogress.files.length===0&&h(),s.uprogress.total+=_.reduce((m,C)=>m+C.file.size,0),s.uprogress.filecount+=_.length,s.uprogress.files=[...s.uprogress.files,..._],d()};let v=[];const $=async()=>await new Promise(_=>{const m=fn(tp,{open(C){_(m)},error(C){console.error("Upload socket error",C),s.error="Upload socket error"},message(C){const R=JSON.parse(C.data);if("error"in R){console.error("Upload socket error",R.error),s.error=R.error.message;return}R.status==="ack"?f(R.req):console.log("Unknown upload response",R)}});m.sendMsg=C=>m.send(JSON.stringify(C)),m.sendData=async C=>{s.uprogress.status="uploading",await new Promise(R=>{const T=setInterval(()=>{m.bufferedAmount>1048576||(R(void 0),clearInterval(T))},1)}),s.uprogress.status="processing",m.send(C)}}),x=async()=>{const _=await $();for(;v.length;){const m=v[0],C=m.cloudPos,R=Math.min(m.file.size,C+(1<<20)),T={name:m.cloudName,size:m.file.size,start:C,end:R},w=m.file.slice(C,R);m.cloudPos=R,_.sendMsg(T),await _.sendData(w),m.cloudPos===m.file.size&&v.shift()}v.length&&b(),s.uprogress.status="idle",S=!1};let S=!1;const b=()=>{S===!1&&(S=setTimeout(()=>{S=!0,x()},0))};return Qe(()=>{addEventListener("dragover",i),addEventListener("drop",i),addEventListener("paste",r)}),an(()=>{removeEventListener("paste",r),removeEventListener("dragover",i),removeEventListener("drop",i)}),(_,m)=>{const C=Zs;return I(),G(we,null,[A("template",null,[A("input",{ref_key:"fileInput",ref:t,onChange:i,type:"file",multiple:""},null,544),A("input",{ref_key:"folderInput",ref:n,onChange:i,type:"file",webkitdirectory:""},null,544)]),se(C,{name:"add-file","data-tooltip":"Upload files",onClick:m[0]||(m[0]=R=>t.value.click())}),se(C,{name:"add-folder","data-tooltip":"Upload folder",onClick:m[1]||(m[1]=R=>n.value.click())})],64)}}});let Kt=null;function vp(){return Kt!==null}function _p(e){Kt&&Fc(),Kt=e}function Il(e){e===Kt&&(Kt=null)}function Fc(){Kt&&(Kt.closeMenu(),Kt=null)}const wt={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultZoom:1,defaultAdjustPadding:{x:0,y:10}};function Gn(e,t){let n=e.offsetTop;return e.offsetParent!=null&&e.offsetParent!=t&&(n-=e.offsetParent.scrollTop,n+=Gn(e.offsetParent,t)),n}function Jn(e,t){let n=e.offsetLeft;return e.offsetParent!=null&&e.offsetParent!=t&&(n-=e.offsetParent.scrollLeft,n+=Jn(e.offsetParent,t)),n}function yp(e,t,n,s){return{x:Jn(e,s)+t,y:Gn(e,s)+n}}const _o="mx-menu-default-container",bp="mx-menu-container-";let wp=0;function Nc(e){const{getContainer:t,zIndex:n}=e;if(t){const o=typeof t=="function"?t():t;if(o){let r=o.getAttribute("id");return r||(r=bp+wp++,o.setAttribute("id",r)),{eleId:r,container:o,isNew:!1}}}let s=document.getElementById(_o);return s||(s=document.createElement("div"),s.setAttribute("id",_o),s.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(s)),s.style.zIndex=(n==null?void 0:n.toString())||wt.defaultZindex.toString(),{eleId:_o,container:s,isNew:!0}}function Cp(e){let t=0;for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t=(t<<5)-t+s,t|=0}return t}function Tl(e){return typeof e=="number"?`${e}px`:e}const vt=ve({props:{vnode:{type:null},data:{type:null,default:null}},setup(e){const{vnode:t,data:n}=pn(e);return()=>typeof t.value=="function"?t.value(n.value):t.value}});function xp(e,t){const n={...e};return delete n[t],n}var kp=Object.defineProperty,Sp=(e,t,n)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ol=(e,t,n)=>Sp(e,typeof t!="symbol"?t+"":t,n);class Ll{constructor(t,n){Ol(this,"x",0),Ol(this,"y",0),this.x=t||0,this.y=n||0}set(t,n){this.x=t,this.y=n}substract(t){this.x-=t.x,this.y-=t.y}}function Dl(e){const{onDown:t,onMove:n,onUp:s}=e,o=new Ll,r=new Ll;let l;function i(a){a.stopPropagation(),r.set(a.x,a.y),r.substract(o),n(o,r,a,l)}function c(a){s(a,l),o.set(0,0),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c)}return(a,u)=>t(a,u)?(l=u,o.set(a.x,a.y),document.addEventListener("mousemove",i),document.addEventListener("mouseup",c),a.stopPropagation(),!0):!1}function Ep(e,t){let n=0;return{start(){n>0&&clearInterval(n),n=setInterval(()=>{n=0,t()},e)},stop(){n>0&&(clearInterval(n),n=0)}}}const Dn=[],Fl=Ep(100,()=>{for(const e of Dn)e()});function Rp(e,t,n,s){let o=0,r=0;function l(){e.value&&(t&&o!==e.value.offsetWidth&&t(e.value.offsetWidth),n&&r!==e.value.offsetHeight&&n(e.value.offsetHeight),s&&(o!==e.value.offsetWidth||r!==e.value.offsetHeight)&&s(e.value.offsetWidth,e.value.offsetHeight),o=e.value.offsetWidth,r=e.value.offsetHeight)}return{startResizeChecker(){Fl.start(),Dn.push(l)},stopResizeChecker(){const i=Dn.indexOf(l);i>=0&&Dn.splice(i,1),Dn.length===0&&Fl.stop()}}}const Nl=140,Mp=70,Pp=ve({__name:"ScrollRect",props:{scroll:{type:String,default:"both"},scrollBarAlwaysShow:{type:Boolean,default:!1},scrollBarBackgroundClickable:{type:Boolean,default:!1},height:{type:Number,default:void 0},width:{type:Number,default:void 0},maxHeight:{type:Number,default:void 0},maxWidth:{type:Number,default:void 0},containerClass:{type:String,default:""},containerStyle:{type:null}},emits:["scroll","resized"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=Q(),l=Q(),i=Q(),c=Q(),a=Q(),u=Q(),f=Q(!1),d=he(()=>s.scroll==="horizontal"||s.scroll==="both"),h=he(()=>s.scroll==="vertical"||s.scroll==="both"),k=xt({show:!1,size:0,sizeRaw:0,pos:0}),v=xt({show:!1,size:0,sizeRaw:0,pos:0});let $=0,x=0,S=0,b=0,_=null;const m={attributes:!0,childList:!0};function C(){if(r.value){if(k.show){const D=r.value.offsetWidth/r.value.scrollWidth;k.sizeRaw=D*r.value.offsetWidth,k.size=D*100,k.pos=r.value.scrollLeft/(r.value.scrollWidth-r.value.offsetWidth)*(100-k.size),D>=1&&(k.show=!1)}if(v.show){const D=r.value.offsetHeight/r.value.scrollHeight;v.sizeRaw=D*r.value.offsetHeight,v.size=D*100,v.pos=r.value.scrollTop/(r.value.scrollHeight-r.value.offsetHeight)*(100-v.size),D>=1&&(v.show=!1)}o("scroll",r.value.scrollLeft,r.value.scrollTop)}}function R(D=!1){if(!r.value)return;let te=d.value,y=h.value;const q=te&&($!==r.value.scrollWidth||S!==r.value.offsetWidth),B=h&&(x!==r.value.scrollHeight||b!==r.value.offsetHeight);if(!D&&!q&&!B)return;const W=window.getComputedStyle(r.value);(W.overflow==="hidden"||W.overflowX==="hidden")&&(te=!1),(W.overflow==="hidden"||W.overflowY==="hidden")&&(y=!1),k.show=te,v.show=y,C(),S=r.value.offsetWidth,b=r.value.offsetHeight,$=r.value.scrollWidth,x=r.value.scrollHeight,o("resized",$,x)}function T(D){var te;s.scroll=="horizontal"&&(D.deltaMode==0&&((te=r.value)==null||te.scrollTo({left:r.value.scrollLeft+(D.deltaY>0?Nl:-140),behavior:"smooth"})),D.preventDefault(),D.stopPropagation())}function w(D){var te;D.deltaMode==0&&((te=r.value)==null||te.scrollTo({left:r.value.scrollLeft+(D.deltaY>0?Nl:-140),behavior:"smooth"}),D.preventDefault(),D.stopPropagation())}function F(D){var te;D.deltaMode==0&&((te=r.value)==null||te.scrollTo({top:r.value.scrollTop+(D.deltaY>0?Mp:-70),behavior:"smooth"}),D.preventDefault(),D.stopPropagation())}let K=0,N=0,Z=0,ee=0;const ae=Dl({onDown(D){return!i.value||!a.value?!1:(K=D.offsetX,N=D.x-D.offsetX-a.value.offsetLeft,D.preventDefault(),f.value=!0,!0)},onMove(D,te,y){r.value&&i.value&&(Ae(y.x-K-N),y.preventDefault(),y.stopPropagation())},onUp(){f.value=!1}}),le=Dl({onDown(D){return!c.value||!u.value?!1:(Z=D.offsetY,ee=D.y-D.offsetY-u.value.offsetTop,D.preventDefault(),f.value=!0,!0)},onMove(D,te,y){r.value&&c.value&&(He(y.y-Z-ee),y.preventDefault(),y.stopPropagation())},onUp(){f.value=!1}});function Y(D){r.value&&(r.value.scrollLeft=D/100*(r.value.scrollWidth-r.value.offsetWidth))}function ce(D){r.value&&(r.value.scrollLeft=D/100*(r.value.scrollHeight-r.value.offsetHeight))}function Ae(D){r.value&&(r.value.scrollLeft=D/(r.value.offsetWidth-k.sizeRaw)*(r.value.scrollWidth-r.value.offsetWidth))}function He(D){r.value&&(r.value.scrollTop=D/(r.value.offsetHeight-v.sizeRaw)*(r.value.scrollHeight-r.value.offsetHeight))}function fe(D){s.scrollBarBackgroundClickable&&Ae(D.offsetX-k.sizeRaw/2)}function Oe(D){s.scrollBarBackgroundClickable&&He(D.offsetY-v.sizeRaw/2)}const{startResizeChecker:ct,stopResizeChecker:J}=Rp(r,()=>R(),()=>R());return Qe(()=>{Ze(()=>{setTimeout(()=>R(!0),200),R(!0),ct(),_=new MutationObserver(()=>R()),_.observe(r.value,m)})}),Pn(()=>{J(),_&&(_.disconnect(),_=null)}),t({refreshScrollState(){R(!0)},getScrollContainer(){return r.value},scrollTo(D,te){var y;(y=r.value)==null||y.scrollTo(D,te)},scrollToTop(){var D;(D=r.value)==null||D.scrollTo(0,0)},scrollToBottom(){var D;(D=r.value)==null||D.scrollTo(r.value.scrollWidth,r.value.scrollHeight)}}),(D,te)=>(I(),G("div",{ref_key:"scrollrect",ref:l,class:Le(["vue-scroll-rect",e.scrollBarAlwaysShow?"always-show-scrollbar":"",e.scrollBarBackgroundClickable?"background-clickable":"",f.value?"dragging":""]),style:Ct({width:e.width?`${e.width}px`:void 0,height:e.height?`${e.height}px`:void 0}),onWheel:T},[A("div",{ref_key:"container",ref:r,class:Le(["scroll-content",e.scroll,e.containerClass]),style:Ct({maxWidth:e.maxWidth?`${e.maxWidth}px`:void 0,maxHeight:e.maxHeight?`${e.maxHeight}px`:void 0,...e.containerStyle}),onScroll:C},[Fe(D.$slots,"default")],38),k.show?Fe(D.$slots,"scrollBarX",{key:0,scrollBarValue:k,onScroll:Y},()=>[A("div",{ref_key:"scrollBarRefX",ref:i,class:"scrollbar horizontal",onClick:fe,onWheel:w},[A("div",{class:"thumb",ref_key:"scrollBarThumbRefX",ref:a,style:Ct({left:`${k.pos}%`,width:`${k.size}%`}),onMousedown:te[0]||(te[0]=(...y)=>M(ae)&&M(ae)(...y)),onWheel:w},null,36)],544)]):pe("",!0),v.show?Fe(D.$slots,"scrollBarY",{key:1,scrollBarValue:v,onScroll:ce},()=>[v.show?(I(),G("div",{key:0,ref_key:"scrollBarRefY",ref:c,class:"scrollbar vertical",onClick:Oe,onWheel:F},[A("div",{class:"thumb",ref_key:"scrollBarThumbRefY",ref:u,style:Ct({top:`${v.pos}%`,height:`${v.size}%`}),onMousedown:te[1]||(te[1]=(...y)=>M(le)&&M(le)(...y)),onWheel:F},null,36)],544)):pe("",!0)]):pe("",!0)],38))}}),pr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Ap={},$p={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},Ip=A("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1),Tp=[Ip];function Op(e,t){return I(),G("svg",$p,Tp)}const Lp=pr(Ap,[["render",Op]]),Dp={},Fp={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},Np=A("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1),Hp=[Np];function Bp(e,t){return I(),G("svg",Fp,Hp)}const jp=pr(Dp,[["render",Bp]]),Vp={class:"mx-item-row"},Wp=["xlink:href"],Up={key:1,class:"label"},zp={class:"mx-item-row"},Kp={class:"mx-shortcut"},hr=ve({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(e,{expose:t,emit:n}){const s=e,o=n,{clickHandler:r,clickClose:l,clickableWhenHasChildren:i,disabled:c,hidden:a,label:u,icon:f,iconFontClass:d,showRightArrow:h,shortcut:k,hasChildren:v}=pn(s),$=Q(!1),x=Q(!1),S=Q(),b=Ee("globalOptions"),_=Ee("globalHasSlot"),m=Ee("globalRenderSlot"),C=Ee("globalCloseMenu"),R=Ee("menuContext"),T=he(()=>typeof u.value=="string"?u.value:typeof u.value=="function"?Cp(u.value.toString()):"MenuItem[unknow]");Je("MenuItemName",T);const w={getSubMenuInstance:()=>{},showSubMenu:()=>$.value?(R.markActiveMenuItem(w,!0),!0):v.value?(K(),!0):!1,hideSubMenu:()=>{R.closeOtherSubMenu()},isDisabledOrHidden:()=>c.value||a.value,getElement:()=>S.value,focus:()=>x.value=!0,blur:()=>x.value=!1,click:F};Je("menuItemInstance",w),Qe(()=>{R.isMenuItemDataCollectedFlag()?Ze(()=>{let ee=0;const ae=R.getElement();if(ae){let le=0;for(let Y=0;Y<ae.children.length;Y++){const ce=ae.children[Y];if(ce.getAttribute("data-type")==="ContextMenuItem"){if(ce===S.value){ee=le;break}le++}}}R.addChildMenuItem(w,ee)}):R.addChildMenuItem(w)}),Pn(()=>{R.removeChildMenuItem(w)});function F(ee){if(!c.value){if(ee){const ae=ee.target;if(ae.classList.contains("mx-context-no-clickable")||b.value.ignoreClickClassName&&ae.classList.contains(b.value.ignoreClickClassName))return;if(b.value.clickCloseClassName&&ae.classList.contains(b.value.clickCloseClassName)){ee.stopPropagation(),C(s.rawMenuItem);return}}v.value?i.value?(typeof r.value=="function"&&r.value(ee),o("click",ee)):$.value||K():(typeof r.value=="function"&&r.value(ee),o("click",ee),l.value&&C(s.rawMenuItem))}}function K(ee){x.value=!1,R.checkCloseOtherSubMenuTimeOut()||R.closeOtherSubMenu(),c.value||(R.markActiveMenuItem(w),v.value&&(ee||R.markThisOpenedByKeyBoard(),R.addOpenedSubMenu(N),$.value=!0,Ze(()=>o("subMenuOpen",w))))}function N(){x.value=!1,$.value=!1,o("subMenuClose",w)}function Z(){return{disabled:c.value,label:u.value,icon:f.value,iconFontClass:d.value,showRightArrow:h.value,clickClose:l.value,clickableWhenHasChildren:i.value,shortcut:k.value,theme:b.value.theme,isOpen:$,hasChildren:v,onClick:F,onMouseEnter:K,closeMenu:C}}return t(w),(ee,ae)=>M(a)?pe("",!0):(I(),G("div",{key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:S,"data-type":"ContextMenuItem"},[M(_)("itemRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemRender",Z())},null,8,["vnode"])):e.customRender?(I(),me(M(vt),{key:1,vnode:e.customRender,data:Z()},null,8,["vnode","data"])):(I(),G("div",{key:2,class:Le(["mx-context-menu-item",M(c)?"disabled":"",x.value?"keyboard-focus":"",e.customClass?" "+e.customClass:"",$.value?"open":""]),onClick:F,onMouseenter:K},[Fe(ee.$slots,"default",{},()=>[A("div",Vp,[A("div",{class:Le(["mx-icon-placeholder",e.preserveIconWidth?"preserve-width":""])},[Fe(ee.$slots,"icon",{},()=>[M(_)("itemIconRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemIconRender",Z())},null,8,["vnode"])):typeof e.svgIcon=="string"&&e.svgIcon?(I(),G("svg",$s({key:1,class:"icon svg"},e.svgProps),[A("use",{"xlink:href":e.svgIcon},null,8,Wp)],16)):typeof M(f)!="string"?(I(),me(M(vt),{key:2,vnode:M(f),data:M(f)},null,8,["vnode","data"])):typeof M(f)=="string"&&M(f)!==""?(I(),G("i",{key:3,class:Le(M(f)+" icon "+M(d)+" "+M(b).iconFontClass)},null,2)):pe("",!0)]),e.checked?Fe(ee.$slots,"check",{key:0},()=>[M(_)("itemCheckRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemCheckRender",Z())},null,8,["vnode"])):pe("",!0),se(Lp)]):pe("",!0)],2),Fe(ee.$slots,"label",{},()=>[M(_)("itemLabelRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemLabelRender",Z())},null,8,["vnode"])):typeof M(u)=="string"?(I(),G("span",Up,xe(M(u)),1)):(I(),me(M(vt),{key:2,vnode:M(u),data:M(u)},null,8,["vnode","data"]))])]),A("div",zp,[M(k)||ee.$slots.shortcut?Fe(ee.$slots,"shortcut",{key:0},()=>[M(_)("itemShortcutRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemShortcutRender",Z())},null,8,["vnode"])):pe("",!0),A("span",Kp,xe(M(k)),1)]):pe("",!0),M(h)?Fe(ee.$slots,"rightArrow",{key:1},()=>[M(_)("itemRightArrowRender")?(I(),me(M(vt),{key:0,vnode:()=>M(m)("itemRightArrowRender",Z())},null,8,["vnode"])):pe("",!0),se(jp)]):pe("",!0)])])],34)),Fe(ee.$slots,"submenu",{context:w,show:$.value})],512))}}),qp=ve({name:"ContextMenuSperator",components:{VNodeRender:vt},setup(){const e=Ee("globalHasSlot"),t=Ee("globalRenderSlot");return{globalHasSlot:e,globalRenderSlot:t}}}),Gp={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function Jp(e,t,n,s,o,r){const l=Ti("VNodeRender");return e.globalHasSlot("separatorRender")?(I(),me(l,{key:0,vnode:()=>e.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(I(),G("div",Gp))}const Yn=pr(qp,[["render",Jp]]),gr=ve({__name:"ContextSubMenu",props:{items:{type:Object,default:null},show:{type:Boolean,default:!1},maxHeight:{type:Number,default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"},parentMenuItemContext:{type:Object,default:null}},emits:["closeAnimFinished"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=Q(!1),l=Ee("globalGetMenuHostId",""),i=Ee("menuContext"),c=Ee("globalOptions");Ee("globalHasSlot"),Ee("globalRenderSlot");const a=Q("UnknowOrRoot"),u=Ee("MenuItemName",a),{zIndex:f,getParentWidth:d,getParentHeight:h,getZoom:k}=i,{adjustPosition:v}=pn(s),$=Q(),x=Q(),S=Q(),b=[],_=Ee("globalSetCurrentSubMenu"),m=[];let C=null,R=0;function T(){C&&C.blur()}function w(J,D){if(J){for(let te=D!==void 0?D:0;te<m.length;te++)if(!m[te].isDisabledOrHidden()){F(te);break}}else for(let te=D!==void 0?D:m.length-1;te>=0;te--)if(!m[te].isDisabledOrHidden()){F(te);break}}function F(J){if(C&&T(),J!==void 0&&(C=m[Math.max(0,Math.min(J,m.length-1))]),!C)return;C.focus();const D=C.getElement();D&&D.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}function K(){_(N)}const N={el:S,name:u,isTopLevel:()=>i.getParentContext()===null,closeSelfAndActiveParent:()=>{const J=ae.getParentContext();if(J){J.closeOtherSubMenu();const D=J.getSubMenuInstanceContext();if(D)return D.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var J;return(J=ae.getParentContext())==null?void 0:J.closeOtherSubMenu()},moveCurrentItemFirst:()=>w(!0),moveCurrentItemLast:()=>w(!1),moveCurrentItemDown:()=>w(!0,C?m.indexOf(C)+1:0),moveCurrentItemUp:()=>w(!1,C?m.indexOf(C)-1:0),focusCurrentItem:()=>F(),openCurrentItemSubMenu:()=>C?C==null?void 0:C.showSubMenu():!1,triggerCurrentItemClick:J=>C==null?void 0:C.click(J)};let Z=!1,ee=!1;const ae={zIndex:f+1,container:i.container,adjustPadding:c.value.adjustPadding||wt.defaultAdjustPadding,getParentWidth:()=>{var J;return((J=S.value)==null?void 0:J.offsetWidth)||0},getParentHeight:()=>{var J;return((J=S.value)==null?void 0:J.offsetHeight)||0},getPositon:()=>[fe.value.x,fe.value.y],getZoom:()=>c.value.zoom||wt.defaultZoom,addOpenedSubMenu(J){b.push(J)},closeOtherSubMenu(){b.forEach(J=>J()),b.splice(0,b.length),_(N)},checkCloseOtherSubMenuTimeOut(){return R?(clearTimeout(R),R=0,!0):!1},closeOtherSubMenuWithTimeOut(){R=setTimeout(()=>{R=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(J,D)=>{D===void 0?m.push(J):m.splice(D,0,J)},removeChildMenuItem:J=>{m.splice(m.indexOf(J),1),J.getSubMenuInstance=()=>{}},markActiveMenuItem:(J,D=!1)=>{T(),C=J,D&&F()},markThisOpenedByKeyBoard:()=>{Z=!0},isOpenedByKeyBoardFlag:()=>Z?(Z=!1,!0):!1,isMenuItemDataCollectedFlag:()=>ee,getElement:()=>S.value||null,getParentContext:()=>i,getSubMenuInstanceContext:()=>N};Je("menuContext",ae);const le={getChildItem:J=>m[J],getMenuDimensions:()=>x.value?{width:x.value.offsetWidth,height:x.value.offsetHeight}:{width:0,height:0},getSubmenuRoot:()=>x.value,getMenu:()=>S.value,getScrollValue:()=>{var J,D;return((D=(J=$.value)==null?void 0:J.getScrollContainer())==null?void 0:D.scrollTop)||0},setScrollValue:J=>{var D;return(D=$.value)==null?void 0:D.scrollTo(0,J)},getScrollHeight:()=>ce.value,adjustPosition:()=>{Oe()},getMaxHeight:()=>Ae.value,getPosition:()=>fe.value,setPosition:(J,D)=>{fe.value.x=J,fe.value.y=D}},Y=Ee("menuItemInstance",void 0);Y&&(Y.getSubMenuInstance=()=>le);const ce=Q(0),Ae=Q(0),He=Q(!1),fe=Q({x:0,y:0});function Oe(){Ze(()=>{const J=S.value,D=x.value;if(J&&D&&$.value){const{container:te}=i,y=(d==null?void 0:d())??0,q=(h==null?void 0:h())??0,B=getComputedStyle(D),W=parseFloat(B.paddingLeft),de=parseFloat(B.paddingTop),ke=q>0?de:0,p=document.documentElement.scrollHeight/k(),g=document.documentElement.scrollWidth/k(),E=Math.min(g,te.offsetWidth),O=Math.min(p,te.offsetHeight);let P=Jn(J,te),L=Gn(J,te);s.direction.includes("l")?fe.value.x-=J.offsetWidth+W:s.direction.includes("r")?fe.value.x+=y+W:(fe.value.x+=y/2,fe.value.x-=(J.offsetWidth+W)/2),s.direction.includes("t")?fe.value.y-=(J.offsetHeight+de*2)/k():s.direction.includes("b")?fe.value.y-=de/k():fe.value.y-=(J.offsetHeight+de)/2/k(),Ze(()=>{var U,V;P=Jn(J,te),L=Gn(J,te);const j=((V=(U=$.value)==null?void 0:U.getScrollContainer())==null?void 0:V.scrollHeight)||0,H=s.maxHeight;ce.value=s.maxHeight?Math.min(j,s.maxHeight):j;const oe=P+J.offsetWidth-E,z=L+ce.value+ke*2-O;if(He.value=z>0,v.value&&oe>0){const X=y+J.offsetWidth-W,ie=P;X>ie?fe.value.x-=ie:fe.value.x-=X}if(He.value){if(v.value){const X=z,ie=L;X>ie?fe.value.y-=ie-ke:fe.value.y-=X-ke}Ae.value=O-(fe.value.y+de)}else Ae.value=H||0})}})}function ct(){var J;const D=(J=s.parentMenuItemContext)==null?void 0:J.getElement();if(D){const te=Jn(D,i.container),y=Gn(D,i.container);fe.value.x=te,fe.value.y=y}else{const[te,y]=i.getPositon();fe.value.x=te,fe.value.y=y}Ze(()=>{var te;_(N),(te=S.value)==null||te.focus({preventScroll:!0}),i.isOpenedByKeyBoardFlag()&&Ze(()=>w(!0)),ee=!0}),Oe()}return $t(()=>s.show,J=>{J&&ct()}),Qe(()=>{r.value=!0,s.show?ct():Oe()}),Pn(()=>{r.value=!1,Y&&(Y.getSubMenuInstance=()=>{})}),t(le),(J,D)=>{const te=Ti("ContextSubMenu",!0);return r.value?(I(),me(Xo,{key:0,to:`#${M(l)}`},[se(Ku,$s({appear:""},M(c).menuTransitionProps||{duration:10},{onAfterLeave:D[0]||(D[0]=y=>o("closeAnimFinished"))}),{default:lt(()=>[e.show?(I(),G("div",$s({key:0,ref_key:"submenuRoot",ref:x},J.$attrs,{class:["mx-context-menu",M(c).customClass?M(c).customClass:"",M(c).theme??""],style:{maxWidth:e.maxWidth?M(Tl)(e.maxWidth):`${M(wt).defaultMaxWidth}px`,minWidth:e.minWidth?M(Tl)(e.minWidth):`${M(wt).defaultMinWidth}px`,zIndex:M(f),left:`${fe.value.x}px`,top:`${fe.value.y}px`},"data-type":"ContextSubMenu",onClick:K}),[se(M(Pp),{ref_key:"scrollRectRef",ref:$,scroll:"vertical",maxHeight:Ae.value,containerClass:"mx-context-menu-scroll"},{default:lt(()=>[A("div",{class:Le(["mx-context-menu-items"]),ref_key:"menu",ref:S},[Fe(J.$slots,"default",{},()=>[(I(!0),G(we,null,An(e.items,(y,q)=>(I(),G(we,{key:q},[y.hidden!==!0&&y.divided==="up"?(I(),me(Yn,{key:0})):pe("",!0),y.hidden!==!0&&y.divided==="self"?(I(),me(Yn,{key:1})):(I(),me(hr,{key:2,clickHandler:y.onClick?B=>y.onClick(B):void 0,disabled:typeof y.disabled=="object"?y.disabled.value:y.disabled,hidden:typeof y.hidden=="object"?y.hidden.value:y.hidden,icon:y.icon,iconFontClass:y.iconFontClass,svgIcon:y.svgIcon,svgProps:y.svgProps,label:y.label,customRender:y.customRender,customClass:y.customClass,checked:typeof y.checked=="object"?y.checked.value:y.checked,shortcut:y.shortcut,clickClose:y.clickClose,clickableWhenHasChildren:y.clickableWhenHasChildren,preserveIconWidth:y.preserveIconWidth!==void 0?y.preserveIconWidth:M(c).preserveIconWidth,showRightArrow:y.children&&y.children.length>0,hasChildren:y.children&&y.children.length>0,rawMenuItem:y,onSubMenuOpen:B=>{var W;return(W=y.onSubMenuOpen)==null?void 0:W.call(y,B)},onSubMenuClose:B=>{var W;return(W=y.onSubMenuClose)==null?void 0:W.call(y,B)}},Di({_:2},[y.children&&y.children.length>0?{name:"submenu",fn:lt(({context:B,show:W})=>[se(te,{show:W,parentMenuItemContext:B,items:y.children,maxWidth:y.maxWidth,minWidth:y.minWidth,maxHeight:y.maxHeight,adjustPosition:y.adjustSubMenuPosition!==void 0?y.adjustSubMenuPosition:M(c).adjustPosition,direction:y.direction!==void 0?y.direction:M(c).direction},null,8,["show","parentMenuItemContext","items","maxWidth","minWidth","maxHeight","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),y.hidden!==!0&&(y.divided==="down"||y.divided===!0)?(I(),me(Yn,{key:3})):pe("",!0)],64))),128))])],512)]),_:3},8,["maxHeight"])],16)):pe("",!0)]),_:3},16)],8,["to"])):pe("",!0)}}}),Hc=ve({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:null,default:null},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(e,{expose:t,emit:n}){const s=e,o=n,r=Ni(),l=Q(),{options:i,show:c,container:a}=pn(s);Qe(()=>{c.value&&d()}),Pn(()=>{$()}),$t(c,C=>{C?d():(Il(u),$())});const u={closeMenu:h,isClosed:k,getMenuRef:()=>l.value,getMenuDimensions:()=>{var C;return((C=l.value)==null?void 0:C.getMenuDimensions())??{width:0,height:0}}};let f=!1;function d(){v(),_p(u)}function h(C){f=!0,o("close",C),i.value.menuTransitionProps||o("closeAnimFinished"),Il(u)}function k(){return f}function v(){setTimeout(()=>{document.addEventListener("click",_,!0),document.addEventListener("contextmenu",_,!0),document.addEventListener("scroll",b,!0),!s.isFullScreenContainer&&a.value&&a.value.addEventListener("scroll",b,!0),i.value.keyboardControl!==!1&&document.addEventListener("keydown",S,!0)},50)}function $(){document.removeEventListener("contextmenu",_,!0),document.removeEventListener("click",_,!0),document.removeEventListener("scroll",b,!0),!s.isFullScreenContainer&&a.value&&a.value.removeEventListener("scroll",b,!0),i.value.keyboardControl!==!1&&document.removeEventListener("keydown",S,!0)}const x=Q();Je("globalSetCurrentSubMenu",C=>x.value=C),Je("globalGetMenuHostId",a.value.id);function S(C){var R,T,w,F,K,N,Z,ee,ae,le,Y,ce,Ae;let He=!0;switch(C.key){case"Escape":{((R=x.value)==null?void 0:R.isTopLevel())===!1?(T=x.value)==null||T.closeCurrentSubMenu():h();break}case"ArrowDown":(w=x.value)==null||w.moveCurrentItemDown();break;case"ArrowUp":(F=x.value)==null||F.moveCurrentItemUp();break;case"Home":(K=x.value)==null||K.moveCurrentItemFirst();break;case"End":(N=x.value)==null||N.moveCurrentItemLast();break;case"ArrowLeft":{(Z=x.value)!=null&&Z.closeSelfAndActiveParent()||(ae=(ee=i.value).onKeyFocusMoveLeft)==null||ae.call(ee);break}case"ArrowRight":(le=x.value)!=null&&le.openCurrentItemSubMenu()||(ce=(Y=i.value).onKeyFocusMoveRight)==null||ce.call(Y);break;case"Enter":(Ae=x.value)==null||Ae.triggerCurrentItemClick(C);break;default:He=!1;break}He&&x.value&&(C.stopPropagation(),C.preventDefault())}function b(C){i.value.closeWhenScroll!==!1&&m(C.target,null)}function _(C){m(C.target,C)}function m(C,R){for(var T,w;C;){if(C.classList&&C.classList.contains("mx-context-menu"))return;C=C.parentNode}R?i.value.clickCloseOnOutside!==!1?($(),h()):(w=(T=i.value).onClickOnOutside)==null||w.call(T,R):($(),h())}return Je("globalOptions",i),Je("globalCloseMenu",h),Je("globalIsFullScreenContainer",s.isFullScreenContainer),Je("globalHasSlot",C=>r[C]!==void 0),Je("globalRenderSlot",(C,R)=>Fe(r,C,{...R},()=>[un("span","Render slot failed")],!1)),Je("menuContext",{zIndex:i.value.zIndex||wt.defaultZindex,container:a.value,adjustPadding:{x:0,y:0},getZoom:()=>i.value.zoom||wt.defaultZoom,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[i.value.x,i.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),t(u),(C,R)=>(I(),me(gr,{ref_key:"submenuInstance",ref:l,show:M(c),items:M(i).items,adjustPosition:M(i).adjustPosition,maxWidth:M(i).maxWidth||M(wt).defaultMaxWidth,minWidth:M(i).minWidth||M(wt).defaultMinWidth,maxHeight:M(i).maxHeight,direction:M(i).direction||M(wt).defaultDirection,onCloseAnimFinished:R[0]||(R[0]=T=>o("closeAnimFinished"))},{default:lt(()=>[Fe(C.$slots,"default")]),_:3},8,["show","items","adjustPosition","maxWidth","minWidth","maxHeight","direction"]))}}),Yp=ve({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(e,{expose:t,emit:n}){const s=n,o=e,{options:r,show:l}=pn(o),{isNew:i,container:c,eleId:a}=Nc(r.value),u=Q(null),f=Ni();function d(h){var k,v;s("update:show",!1),s("close"),(v=(k=r.value).onClose)==null||v.call(k,h)}return t({closeMenu:()=>s("update:show",!1),isClosed:()=>!l.value,getMenuRef:()=>{var h;return(h=u.value)==null?void 0:h.getMenuRef()},getMenuDimensions:()=>{var h;return((h=u.value)==null?void 0:h.getMenuDimensions())??{width:0,height:0}}}),(h,k)=>(I(),me(Xo,{to:`#${M(a)}`},[se(Hc,{ref_key:"menuRef",ref:u,options:M(r),show:M(l),container:M(c),isFullScreenContainer:!M(i),onClose:d},Di({_:2},[An(M(f),(v,$)=>({name:$,fn:lt(x=>[Fe(h.$slots,$,oa(tc(x)))])}))]),1032,["options","show","container","isFullScreenContainer"])],8,["to"]))}}),Zp=ve({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxHeight:{type:[String,Number],default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(e,t){const n=Ee("globalOptions"),{adjustSubMenuPosition:s,maxWidth:o,minWidth:r,maxHeight:l}=pn(e),i=typeof s.value<"u"?s.value:n.value.adjustPosition,c=Q(),a=Q();return t.expose({getSubMenuRef:()=>c.value,getMenuItemRef:()=>a.value}),()=>un(hr,{...e,ref:a,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,maxHeight:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof t.slots.default!==void 0},t.slots.default?{submenu:u=>un(gr,{ref:c,show:u.show,maxWidth:o.value,minWidth:r.value,maxHeight:l.value,adjustPosition:i,parentMenuItemContext:u.context},{default:t.slots.default}),...xp(t.slots,"default")}:t.slots)}});function Xp(e,t,n,s){const o=Q(!0),r=un(Hc,{options:e,show:o,container:t,isFullScreenContainer:!n,onCloseAnimFinished:()=>{cl(null,t)},onClose:l=>{var i;(i=e.onClose)==null||i.call(e,l),o.value=!1}},s);return cl(r,t),r.component}function Hl(e,t){const n=Nc(e);return Xp(e,n.container,n.isNew,t).exposed}const Xs={install(e){e.config.globalProperties.$contextmenu=Hl,e.component("ContextMenu",Yp),e.component("ContextMenuItem",hr),e.component("ContextMenuGroup",Zp),e.component("ContextMenuSperator",Yn),e.component("ContextMenuSeparator",Yn),e.component("ContextSubMenu",gr)},showContextMenu(e,t){return Hl(e,t)},isAnyContextMenuOpen(){return vp()},closeContextMenu:Fc,transformMenuPosition:yp},Qp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Bc(e,t){return I(),G("svg",Qp,t[0]||(t[0]=[A("path",{d:"M223.97 175A81 81 0 0 0 143 256c0 44.7 36.27 81.03 80.97 81.03 44.72 0 80.72-36.34 80.72-81.03 0-44.73-36-81-80.8-81zM386.3 302.53l-14.58 35.16 29.47 57.8-36.1 36.1-59.3-28-35.2 14.4-17.87 54.6-2.28 7.24h-51L177.4 418.2l-35.17-14.5-57.9 29.4-36.1-36.1 27.97-59.2-14.47-35.12L0 282.6v-51l61.7-22.1 14.5-35.1-25.96-51.23-3.43-6.72 36.1-36.03 59.3 27.92 35.1-14.5 17.9-54.6 2.3-7.24h51l22.1 61.73 35.07 14.52 58.04-29.4 36.06 36.03-27.96 59.2 14.42 35.17 61.8 20.13v50.97l-61.67 22.18z"},null,-1)]))}const jc={render:Bc},eh=Object.freeze(Object.defineProperty({__proto__:null,default:jc,render:Bc},Symbol.toStringTag,{value:"Module"})),th={key:0,class:"empty-container"},nh={key:0},sh={key:1},oh={key:2},rh={key:3},lh={key:4},ih=ve({__name:"EmptyFolder",props:{path:{},documents:{}},setup(e){const t=Ie(),n=e;return(s,o)=>!n.path||s.documents.length===0?(I(),G("div",th,[(I(),me(tr(M(jc)),{class:"cog"})),M(t).connected?M(t).document.length===0?(I(),G("p",sh,"Waiting for File List")):M(t).query?(I(),G("p",oh,"No matches!")):M(Dc)(n.path)?(I(),G("p",lh,"Empty folder")):(I(),G("p",rh,"Folder not found")):(I(),G("p",nh,"No Connection"))])):pe("",!0)}});const ch=st(ih,[["__scopeId","data-v-4b42804b"]]),ah=["checked"],uh=ve({__name:"SelectBox",props:{doc:{}},setup(e){const t=Ie();return(n,s)=>(I(),G("input",{type:"checkbox",tabindex:"-1",checked:M(t).selected.has(n.doc.key),onClick:s[0]||(s[0]=Ne(()=>{},["stop"])),onChange:s[1]||(s[1]=o=>{o.target.checked?M(t).selected.add(n.doc.key):M(t).selected.delete(n.doc.key)})},null,40,ah))}}),No=ve({__name:"FileRenameInput",props:{doc:{},rename:{type:Function},exit:{type:Function}},setup(e){const t=Q(null),n=Q("");Qe(()=>{n.value=s.doc.name;const r=n.value.lastIndexOf(".");Ze(()=>{t.value.focus(),t.value.setSelectionRange(0,r>0?r:n.value.length)})});const s=e,o=()=>{s.exit(),!(s.doc.key!=="new"&&(n.value===s.doc.name||n.value.length===0))&&s.rename(s.doc,n.value)};return(r,l)=>cn((I(),G("input",{ref_key:"input",ref:t,id:"FileRenameInput",type:"text",autocorrect:"off","onUpdate:modelValue":l[0]||(l[0]=i=>n.value=i),onBlur:l[1]||(l[1]=(...i)=>r.exit&&r.exit(...i)),onKeyup:[l[2]||(l[2]=kn((...i)=>r.exit&&r.exit(...i),["esc"])),kn(o,["enter"])]},null,544)),[[os,n.value]])}});const fh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function Vc(e,t){return I(),G("svg",fh,t[0]||(t[0]=[A("path",{d:"m6 4 20 12L6 28z"},null,-1)]))}const Wc={render:Vc},dh=Object.freeze(Object.defineProperty({__proto__:null,default:Wc,render:Vc},Symbol.toStringTag,{value:"Module"})),ph=["src"],hh=["src"],gh={key:2,class:"folder icon"},mh={key:3,class:"video-container"},vh=["src","poster"],_h={class:"play-overlay"},yh={key:4,class:"audio icon"},bh=["src"],wh={key:5,class:"archive icon"},Ch=ve({__name:"MediaPreview",props:{doc:{},quality:{}},setup(e,{expose:t}){const n=Q(null),s=Q(null),o=he(()=>n.value||s.value),r=he(()=>`${l.doc.previewurl}?${l.quality}&t=${l.doc.mtime}`),l=e,i=()=>{o.value&&(o.value.controls=!0,o.value.setAttribute("data-playing",""))},c=()=>{o.value&&(o.value.controls=!1,o.value.removeAttribute("data-playing"))};let a=null;const u=()=>{if(!o.value)return;o.value.load();const v=Array.from(document.querySelectorAll("video, audio"));if(v.length===0)return;let $=null;for(const x in v)if(v[x]===(a||o.value)){$=v[+x+1]||v[0];break}if($)if($.tagName==="VIDEO"&&document.fullscreenElement===o.value){const x=o.value,S=$;if(x===S){S.play();return}a||x.addEventListener("fullscreenchange",b=>{a&&(a.currentTime=x.currentTime,a.click(),x.paused||a.play(),a=null,x.src=l.doc.url,x.poster=r.value,c())},{once:!0}),a=S,x.src=S.src,x.poster="",x.play()}else document.exitFullscreen(),$.click()};t({play(){if(!o.value)return!1;if(o.value.paused){o.value.play();for(const v of Array.from(document.querySelectorAll("video, audio")))v!==o.value&&v.pause()}else o.value.pause();return!0},media:o});const f=()=>["mkv","mp4","webm","mov","avi"].includes(l.doc.ext),d=()=>["mp3","flac","ogg","aac"].includes(l.doc.ext),h=()=>["zip","tar","gz","bz2","xz","7z","rar"].includes(l.doc.ext),k=()=>["bmp","ico","tif","tiff","heic","heif","pdf","epub","mobi"].includes(l.doc.ext)||l.doc.size>5e5&&["avif","webp","png","jpg","jpeg"].includes(l.doc.ext);return(v,$)=>k()?(I(),G("img",{key:0,src:`${v.doc.previewurl}?${v.quality}&t=${v.doc.mtime}`,alt:""},null,8,ph)):v.doc.img?(I(),G("img",{key:1,src:v.doc.url,alt:""},null,8,hh)):v.doc.dir?(I(),G("span",gh)):f()?(I(),G("div",mh,[A("video",{ref_key:"vid",ref:s,src:v.doc.url,poster:r.value,preload:"none",onPlay:i,onPause:c,onEnded:u,onSeeking:$[0]||($[0]=x=>o.value.play())},null,40,vh),A("div",_h,[se(M(Wc))])])):d()?(I(),G("div",yh,[A("audio",{ref_key:"aud",ref:n,src:v.doc.url,class:"icon",preload:"none",onPlay:i,onPause:c,onEnded:u,onSeeking:$[1]||($[1]=x=>o.value.play())},null,40,bh)])):h()?(I(),G("span",wh)):(I(),G("span",{key:6,class:Le(["file icon",`ext-${v.doc.ext}`])},null,2))}});const xh=st(Ch,[["__scopeId","data-v-94490488"]]);let yo=!1,mn=null;const kh=ve({__name:"CursorTooltip",props:{text:{},delay:{}},setup(e,{expose:t}){const n=e,s=Q(!1),o=Q(0),r=Q(0);let l=null;const i=he(()=>({left:`${o.value+12}px`,top:`${r.value+12}px`}));return t({startHover:f=>{o.value=f.clientX,r.value=f.clientY,mn&&(clearTimeout(mn),mn=null);const d=yo?0:n.delay??800;l=setTimeout(()=>{s.value=!0,yo=!0},d)},updatePosition:f=>{o.value=f.clientX,r.value=f.clientY},endHover:()=>{l&&(clearTimeout(l),l=null),s.value=!1,mn&&clearTimeout(mn),mn=setTimeout(()=>{yo=!1},500)}}),(f,d)=>(I(),me(Xo,{to:"body"},[s.value?(I(),G("div",{key:0,class:"cursor-tooltip",style:Ct(i.value)},[Fe(f.$slots,"default",{},void 0,!0)],4)):pe("",!0)]))}});const Uc=st(kh,[["__scopeId","data-v-f7ce2cf7"]]),Sh=["id","href"],Eh={class:"tooltip-name"},Rh={class:"tooltip-details"},Mh=ve({__name:"GalleryFigure",props:{doc:{},editing:{}},setup(e){const t=Ie(),n=e,s=Q(null),o=Q(null),r=he(()=>n.doc.key),l=i=>{s.value.play()&&i.preventDefault(),t.cursor=n.doc.key};return(i,c)=>{const a=No,u=uh;return I(),G("a",{id:`file-${i.doc.key}`,href:i.doc.url,tabindex:"-1",class:Le({file:!i.doc.dir,folder:i.doc.dir,cursor:M(t).cursor===i.doc.key}),onContextmenu:c[3]||(c[3]=Ne(()=>{},["stop"])),onFocus:c[4]||(c[4]=Ne(f=>M(t).cursor=i.doc.key,["stop"])),onClick:l,onMouseenter:c[5]||(c[5]=(...f)=>{var d,h;return((d=o.value)==null?void 0:d.startHover)&&((h=o.value)==null?void 0:h.startHover(...f))}),onMousemove:c[6]||(c[6]=(...f)=>{var d,h;return((d=o.value)==null?void 0:d.updatePosition)&&((h=o.value)==null?void 0:h.updatePosition(...f))}),onMouseleave:c[7]||(c[7]=(...f)=>{var d,h;return((d=o.value)==null?void 0:d.endHover)&&((h=o.value)==null?void 0:h.endHover(...f))})},[A("figure",null,[Fe(i.$slots,"default",{},void 0,!0),se(xh,{ref_key:"m",ref:s,doc:i.doc,tabindex:"-1",quality:"sz=512",class:"figcontent"},null,8,["doc"]),c[9]||(c[9]=A("div",{class:"titlespacer"},null,-1)),A("figcaption",{onClick:c[1]||(c[1]=Ne(()=>{},["prevent"])),onContextmenu:c[2]||(c[2]=Ne(f=>i.$emit("menu",f),["prevent"]))},[i.editing?(I(),me(a,{key:0,doc:i.doc,rename:i.editing.rename,exit:i.editing.exit},null,8,["doc","rename","exit"])):(I(),G(we,{key:1},[se(u,{doc:i.doc,onClick:c[0]||(c[0]=f=>M(t).cursor=i.doc.key)},null,8,["doc"]),A("span",null,xe(i.doc.name),1),c[8]||(c[8]=A("div",{class:"namespacer"},null,-1))],64))],32)]),se(Uc,{ref_key:"tooltip",ref:o,text:r.value},{default:lt(()=>[A("div",Eh,xe(i.doc.name),1),A("div",Rh,xe(i.doc.modified)+" — "+xe(i.doc.sizedisp),1)]),_:1},8,["text"])],42,Sh)}}});const Ph=st(Mh,[["__scopeId","data-v-91479c1d"]]),Ah=ve({__name:"Gallery",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Ie(),o=ar(),r=js(null),l=()=>{r.value=null},i=(m,C)=>{const R=m.name,T=fn(is,{message(w){const F=JSON.parse(w.data);"error"in F?(console.error("Rename failed",F.error.message,F.error),m.name=R):console.log("Rename succeeded",F)}});T.onopen=()=>{T.send(JSON.stringify({op:"rename",path:`${m.loc}/${R}`,to:C}))},m.name=C},c=Q(),a=Q(1),u=()=>{c.value&&(a.value=getComputedStyle(c.value).gridTemplateColumns.split(" ").length)},f=he(()=>a.value);t({newFolder(){const m=Math.floor(Date.now()/1e3);r.value=new ur({loc:b.value,key:"new",name:"New Folder",dir:!0,mtime:m,size:0}),s.cursor=r.value.key},toggleSelectAll(){console.log("Select"),S.value=!S.value},toggleSortColumn(m){const C=["","name","modified","size",""][m];C&&s.toggleSort(C)},isCursor(){return s.cursor&&r.value===null},cursorRename(){r.value=n.documents.find(m=>m.key===s.cursor)??null},cursorSelect(){const m=s.cursor;m&&(s.selected.has(m)?s.selected.delete(m):s.selected.add(m),this.cursorMove(1,null))},up(m){this.cursorMove(-f.value,m)},down(m){this.cursorMove(f.value,m)},left(m){this.cursorMove(-1,m)},right(m){this.cursorMove(1,m)},cursorMove(m,C){var ae;const R=!!(C!=null&&C.shiftKey),T=n.documents;if(T.length===0){s.cursor="";return}const w=T.length,F=(le,Y)=>(le%Y+Y)%Y,K=(le,Y)=>F(le+Y,w+1),N=s.cursor?T.findIndex(le=>le.key===s.cursor):w;if(C&&N===0&&C.key==="ArrowLeft"||C&&N===w-1&&C.key==="ArrowRight")return;let Z;N===w?Z=m>0?0:w-1:(Z=K(N,m),(Math.abs(m)>=w||Math.sign(m)!==Math.sign(Z-N))&&(Z=w)),s.cursor=((ae=T[Z])==null?void 0:ae.key)??"";const ee=s.cursor?document.getElementById(`file-${s.cursor}`):"";if(R){let[le,Y]=m>0?[N,Z]:[Z,N];for(let ce=le;ce!==Y;ce=K(ce,1)){if(ce===w)continue;const Ae=T[ce].key;s.selected.has(Ae)?s.selected.delete(Ae):s.selected.add(Ae)}}k=ee,h||(h=setTimeout(()=>{k&&k.scrollIntoView({block:"center",behavior:"smooth"}),h=null},300)),Z===w&&d()}});const d=()=>{const m=document.querySelector(".breadcrumb");m&&m.focus()};let h=null,k=null;Ot(()=>{var m;if(s.cursor&&s.cursor!==((m=r.value)==null?void 0:m.key)&&(r.value=null),r.value&&(s.cursor=r.value.key),s.cursor){const C=document.querySelector(`#file-${s.cursor}`);C&&(C.focus(),C.scrollIntoView({block:"center",behavior:"smooth"}))}}),Ot(()=>{!n.documents.length&&s.cursor&&(s.cursor="",d())});let v=null;Qe(()=>{const m=document.querySelector(".cursor");m&&(m.scrollIntoView({block:"center",behavior:"instant"}),m.focus()),u(),c.value&&(v=new ResizeObserver(u),v.observe(c.value))}),an(()=>{v==null||v.disconnect()});const $=(m,C)=>{const R=fn(is,{open(){R.send(JSON.stringify({op:"mkdir",path:`${m.loc}/${C}`}))},message(T){const w=JSON.parse(T.data);"error"in w?(console.error("Mkdir failed",w.error.message,w.error),r.value=null):(console.log("mkdir",w),o.push(m.urlrouter))}});m.name=C,m.key=crypto.randomUUID()},x=m=>{const C=n.documents,R=C[m].loc;return m===0?R!==b.value:R!==C[m-1].loc};he({get:()=>n.documents.length>0&&n.documents.some(m=>s.selected.has(m.key))&&!S.value,set:m=>{}});const S=he({get:()=>n.documents.length>0&&n.documents.every(m=>s.selected.has(m.key)),set:m=>{console.log("Setting allSelected",m);for(const C of n.documents)m?s.selected.add(C.key):s.selected.delete(C.key)}}),b=he(()=>n.path.join("/")),_=(m,C)=>{s.cursor=C.key,Xs.showContextMenu({x:m.x,y:m.y,items:[{label:"Rename",onClick:()=>{r.value=C}}]})};return(m,C)=>{var w;const R=Ph,T=dr;return n.documents.length||r.value?(I(),G("div",{key:0,class:"gallery",ref_key:"gallery",ref:c},[((w=r.value)==null?void 0:w.key)==="new"?(I(),me(R,{doc:r.value,key:r.value.key,editing:{rename:$,exit:l}},null,8,["doc","editing"])):pe("",!0),(I(!0),G(we,null,An(m.documents,(F,K)=>(I(),G(we,{key:F.key},[x(K)?(I(),me(T,{key:0,path:F.loc?F.loc.split("/"):[],class:"folder-indicator"},null,8,["path"])):pe("",!0),se(R,{doc:F,editing:r.value===F?{rename:i,exit:l}:null,onMenu:N=>_(N,F),class:Le({"folder-start":x(K)})},null,8,["doc","editing","onMenu","class"])],64))),128))],512)):pe("",!0)}}});const $h=st(Ah,[["__scopeId","data-v-f76ebc2f"]]),Ih=ve({__name:"FileSize",props:{doc:{}},setup(e){const t=he(()=>{const s=n.doc.sizedisp.split(" ").slice(-1)[0];return+s?"bytes":s}),n=e;return(s,o)=>(I(),G("td",{class:Le(["size right",t.value])},xe(s.doc.sizedisp),3))}});const Th=st(Ih,[["__scopeId","data-v-0f1301ed"]]),Oh={class:"modified right"},Lh=["datetime"],Dh=ve({__name:"FileModified",props:{doc:{},now:{}},setup(e){const t=e,n=Q(null),s=he(()=>(t.now,$c(t.doc.mtime))),o=he(()=>new Date(1e3*t.doc.mtime).toISOString().replace(".000Z","Z")),r=he(()=>o.value.replace("T"," ").replace("Z"," UTC"));return(l,i)=>(I(),G("td",Oh,[A("time",{datetime:o.value,onMouseenter:i[0]||(i[0]=(...c)=>{var a,u;return((a=n.value)==null?void 0:a.startHover)&&((u=n.value)==null?void 0:u.startHover(...c))}),onMousemove:i[1]||(i[1]=(...c)=>{var a,u;return((a=n.value)==null?void 0:a.updatePosition)&&((u=n.value)==null?void 0:u.updatePosition(...c))}),onMouseleave:i[2]||(i[2]=(...c)=>{var a,u;return((a=n.value)==null?void 0:a.endHover)&&((u=n.value)==null?void 0:u.endHover(...c))})},xe(s.value),41,Lh),se(Uc,{ref_key:"tooltip",ref:n,text:r.value},{default:lt(()=>[ds(xe(r.value),1)]),_:1},8,["text"])]))}}),Fh={key:0},Nh={class:"selection"},Hh=["indeterminate"],Bh={key:0,class:"folder"},jh={class:"name"},Vh={key:0,class:"folder-change"},Wh={colspan:"5"},Uh=["id","onClick","onContextmenu"],zh=["onClick"],Kh=["checked","onChange"],qh={class:"name"},Gh=["href","onFocus"],Jh=["onClick"],Yh={class:"menu"},Zh=["onClick"],Xh={key:1,class:"summary"},Qh={colspan:"3",class:"right"},eg={class:"size right"},tg=ve({__name:"FileExplorer",props:{path:{},documents:{}},setup(e,{expose:t}){const n=e,s=Ie(),o=ar(),r=js(null),l=(b,_)=>{const m=b.name,C=fn(is,{message(R){const T=JSON.parse(R.data);"error"in T?(console.error("Rename failed",T.error.message,T.error),b.name=m):console.log("Rename succeeded",T)}});C.onopen=()=>{C.send(JSON.stringify({op:"rename",path:`${b.loc}/${m}`,to:_}))},b.name=_};t({newFolder(){console.log("New folder");const b=Math.floor(Date.now()/1e3);r.value=new ur({loc:x.value,key:"new",name:"New Folder",dir:!0,mtime:b,size:0}),s.cursor=r.value.key},toggleSelectAll(){console.log("Select"),$.value=!$.value},isCursor(){return s.cursor&&r.value===null},cursorRename(){r.value=n.documents.find(b=>b.key===s.cursor)??null},cursorSelect(){const b=s.cursor;b&&(s.selected.has(b)?s.selected.delete(b):s.selected.add(b),this.cursorMove(1,null))},up(b){this.cursorMove(-1,b)},down(b){this.cursorMove(1,b)},left(b){o.back()},right(b){const _=document.querySelector(`#file-${s.cursor} a`);_&&_.click()},cursorMove(b,_){var Z;const m=!!(_!=null&&_.shiftKey),C=n.documents;if(C.length===0){s.cursor="";return}const R=C.length,T=(ee,ae)=>(ee%ae+ae)%ae,w=(ee,ae)=>T(ee+ae,R+1),F=s.cursor?C.findIndex(ee=>ee.key===s.cursor):C.length,K=w(F,b);s.cursor=((Z=C[K])==null?void 0:Z.key)??"";const N=s.cursor?document.getElementById(`file-${s.cursor}`):"";if(m){let[ee,ae]=b>0?[F,K]:[K,F];for(let le=ee;le!==ae;le=w(le,1)){if(le===R)continue;const Y=C[le].key;s.selected.has(Y)?s.selected.delete(Y):s.selected.add(Y)}}a=N,c||(c=setTimeout(()=>{a&&a.scrollIntoView({block:"center",behavior:"smooth"}),c=null},300)),K===R&&i()}});const i=()=>{const b=document.querySelector(".breadcrumb");b&&b.focus()};let c=null,a=null;Ot(()=>{var b,_;if(s.cursor&&s.cursor!==((b=r.value)==null?void 0:b.key)&&(r.value=null),r.value&&(s.cursor=(_=r.value)==null?void 0:_.key),s.cursor){const m=document.querySelector(`#file-${s.cursor} .name a`);m&&m.focus()}}),Ot(()=>{!n.documents.length&&s.cursor&&(s.cursor="",i())});let u=Q(0),f=null;const d=()=>{u.value=Math.floor(Date.now()/1e3)};Qe(()=>{d(),f=setInterval(d,1e3);const b=document.querySelector(".cursor");b&&(b.scrollIntoView({block:"center",behavior:"instant"}),b.focus())}),an(()=>{clearInterval(f)});const h=(b,_)=>{const m=fn(is,{open(){m.send(JSON.stringify({op:"mkdir",path:`${b.loc}/${_}`}))},message(C){const R=JSON.parse(C.data);"error"in R?(console.error("Mkdir failed",R.error.message,R.error),r.value=null):(console.log("mkdir",R),o.push(b.urlrouter))}});b.name=_,b.key=crypto.randomUUID()},k=b=>{const _=n.documents,m=_[b].loc;return b===0?m!==x.value:m!==_[b-1].loc},v=he({get:()=>n.documents.length>0&&n.documents.some(b=>s.selected.has(b.key))&&!$.value,set:b=>{}}),$=he({get:()=>n.documents.length>0&&n.documents.every(b=>s.selected.has(b.key)),set:b=>{console.log("Setting allSelected",b);for(const _ of n.documents)b?s.selected.add(_.key):s.selected.delete(_.key)}}),x=he(()=>n.path.join("/")),S=(b,_)=>{s.cursor=_.key,Xs.showContextMenu({x:b.x,y:b.y,items:[{label:"Rename",onClick:()=>{r.value=_}}]})};return(b,_)=>{var T;const m=Dh,C=Th,R=dr;return n.documents.length||r.value?(I(),G("table",Fh,[A("thead",null,[A("tr",null,[A("th",Nh,[cn(A("input",{type:"checkbox",tabindex:"-1","onUpdate:modelValue":_[0]||(_[0]=w=>$.value=w),indeterminate:v.value},null,8,Hh),[[ic,$.value]])]),A("th",{class:Le(["sortcolumn",{sortactive:M(s).sortOrder==="name"}]),onClick:_[1]||(_[1]=w=>M(s).toggleSort("name"))},"Name",2),A("th",{class:Le(["sortcolumn modified right",{sortactive:M(s).sortOrder==="modified"}]),onClick:_[2]||(_[2]=w=>M(s).toggleSort("modified"))},"Modified",2),A("th",{class:Le(["sortcolumn size right",{sortactive:M(s).sortOrder==="size"}]),onClick:_[3]||(_[3]=w=>M(s).toggleSort("size"))},"Size",2),_[5]||(_[5]=A("th",{class:"menu"},null,-1))])]),A("tbody",null,[((T=r.value)==null?void 0:T.key)==="new"?(I(),G("tr",Bh,[_[6]||(_[6]=A("td",{class:"selection"},null,-1)),A("td",jh,[se(No,{doc:r.value,rename:h,exit:()=>{r.value=null}},null,8,["doc","exit"])]),se(m,{doc:r.value,now:M(u)},null,8,["doc","now"]),se(C,{doc:r.value},null,8,["doc"]),_[7]||(_[7]=A("td",{class:"menu"},null,-1))])):pe("",!0),(I(!0),G(we,null,An(b.documents,(w,F)=>(I(),G(we,{key:w.key},[k(F)?(I(),G("tr",Vh,[A("th",Wh,[se(R,{path:w.loc?w.loc.split("/"):[]},null,8,["path"])])])):pe("",!0),A("tr",{id:`file-${w.key}`,class:Le({file:!w.dir,folder:w.dir,cursor:M(s).cursor===w.key}),onClick:K=>M(s).cursor=M(s).cursor===w.key?"":w.key,onContextmenu:Ne(K=>S(K,w),["prevent"])},[A("td",{class:"selection",onClick:Ne(K=>M(s).cursor=M(s).cursor===w.key?w.key:"",["stop"])},[A("input",{type:"checkbox",tabindex:"-1",checked:M(s).selected.has(w.key),onChange:K=>K.target.checked?M(s).selected.add(w.key):M(s).selected.delete(w.key)},null,40,Kh)],8,zh),A("td",qh,[r.value===w?(I(),me(No,{key:0,doc:w,rename:l,exit:()=>{r.value=null}},null,8,["doc","exit"])):(I(),G(we,{key:1},[A("a",{href:w.url,tabindex:"-1",onContextmenu:_[4]||(_[4]=Ne(()=>{},["stop"])),onFocus:Ne(K=>M(s).cursor=w.key,["stop"])},xe(w.name),41,Gh),M(s).cursor==w.key?(I(),G("button",{key:0,tabindex:"-1",class:"rename-button",onClick:()=>r.value=w},"🖊️",8,Jh)):pe("",!0)],64))]),se(m,{doc:w,now:M(u)},null,8,["doc","now"]),se(C,{doc:w},null,8,["doc"]),A("td",Yh,[A("button",{tabindex:"-1",onClick:Ne(K=>S(K,w),["stop"])},"⋮",8,Zh)])],42,Uh)],64))),128)),n.documents.length>1?(I(),G("tr",Xh,[A("td",Qh,xe(n.documents.length)+" items",1),A("td",eg,xe(M(Ac)(n.documents.reduce((w,F)=>w+F.size,0))),1),_[8]||(_[8]=A("td",{class:"menu"},null,-1))])):pe("",!0)])])):pe("",!0)}}});const ng=st(tg,[["__scopeId","data-v-31e892ed"]]),sg=ve({__name:"ExplorerView",props:{path:{},query:{}},setup(e){const t=Ie(),n=Q(),s=e,o=he(()=>{const r=s.path.join("/"),l=s.query;if(!l)return Lc(t.document.filter(d=>d.loc===r),t.prefs.sortListing);const i=Ud(l);let c=100,a=[];for(const d of t.recentDocuments)if(zd(d.haystack,i)&&(a.push(d),--c===0))break;const u=r+"/",f=t.prefs.sortFiltered;return f?ap(a,f):(a.sort((d,h)=>(h.loc===r)-(d.loc===r)||(h.loc.slice(0,u.length)===u)-(d.loc.slice(0,u.length)===u)||Mn.compare(d.loc,h.loc)||(d.type==="file")-(h.type==="file")||h.name.includes(l)-d.name.includes(l)||Mn.compare(d.name,h.name)),a)});return Ot(()=>{t.fileExplorer=n.value,t.query=s.query}),$t([()=>s.path.join("/"),()=>t.document.length],([r,l],[i,c])=>{r===i&&c!==void 0&&c>0||(t.prefs.gallery=o.value.some(a=>a.previewable))},{immediate:!0}),(r,l)=>{const i=$h,c=ch;return I(),G(we,null,[M(t).prefs.gallery?(I(),me(i,{ref_key:"fileExplorer",ref:n,key:`gallery-${M(dn).currentRoute.value.path}`,path:s.path,documents:o.value},null,8,["path","documents"])):(I(),me(ng,{ref_key:"fileExplorer",ref:n,key:`explorer-${M(dn).currentRoute.value.path}`,path:s.path,documents:o.value},null,8,["path","documents"])),se(c,{documents:o.value,path:s.path},null,8,["documents","path"])],64)}}});const og=st(sg,[["__scopeId","data-v-f7875394"]]),dn=jd({history:vd("/"),routes:[{path:"/:pathMatch(.*)*",name:"explorer",component:og}]}),rg={class:"headermain buttons"},lg=["value"],ig=ve({__name:"HeaderMain",props:{path:{},query:{}},setup(e,{expose:t}){const n=Ie(),s=Q(!1),o=Q(),r=Q(),l=e,i=f=>{if(!s.value)return;s.value=!1,document.querySelector(".breadcrumb").focus(),c(f)},c=f=>{const d=f.target.value;let h=l.path.join("/");h=h?`/${h}`:"";const v=(d?`${h}//${d}`:h||"/").replaceAll("?","%3F").replaceAll("#","%23");!l.query&&d?dn.push(v):dn.replace(v)},a=f=>{if(s.value=!s.value,!s.value)return i(f);Ze(()=>{const d=o.value;d&&d.focus()})};Ot(()=>{l.query&&(s.value=!0)});const u=f=>{const d=[];d.push({label:"Change Password",onClick:()=>{n.dialog="settings"}}),n.user.privileged&&d.push({label:"Admin Settings",onClick:()=>{n.dialog="usermgmt"}}),n.user.isLoggedIn?d.push({label:`Logout ${n.user.username??""}`,onClick:()=>n.logout()}):d.push({label:"Login",onClick:()=>n.loginDialog()}),Xs.showContextMenu({x:f.target.getBoundingClientRect().right,y:f.target.getBoundingClientRect().bottom,items:d})};return t({toggleSearchInput:a,closeSearch:i}),(f,d)=>{const h=mp,k=Zs;return I(),G("nav",rg,[M(n).error?(I(),G(we,{key:0},[A("div",{class:"error-message",onClick:d[0]||(d[0]=v=>M(n).error="")},xe(M(n).error),1),d[3]||(d[3]=A("div",{class:"smallgap"},null,-1))],64)):pe("",!0),se(h,{path:l.path},null,8,["path"]),se(k,{name:"create-folder","data-tooltip":"New folder",onClick:d[1]||(d[1]=()=>{console.log("New",M(n).fileExplorer),M(n).fileExplorer.newFolder(),console.log("Done")})}),Fe(f.$slots,"default",{},void 0,!0),d[4]||(d[4]=A("div",{class:"spacer smallgap"},null,-1)),s.value?(I(),G("input",{key:1,ref_key:"search",ref:o,type:"search",value:f.query,onInput:c,placeholder:"Find files",class:"margin-input"},null,40,lg)):pe("",!0),se(k,{ref_key:"searchButton",ref:r,name:"find",onClick:Ne(a,["prevent"])},null,512),se(k,{name:"eye",onClick:d[2]||(d[2]=v=>M(n).prefs.gallery=!M(n).prefs.gallery)}),se(k,{name:"cog",onClick:u})])}}});const cg=st(ig,[["__scopeId","data-v-f1d3ff25"]]),ag=ve({__name:"DownloadButton",setup(e){const t=Ie(),n={total:0,xfer:0,t0:0,tlast:0,statbytes:0,statdur:0,files:[],filestart:0,fileidx:0,filecount:0,filename:"",filesize:0,filepos:0,status:"idle"};t.dprogress={...n},setInterval(()=>{Date.now()-t.dprogress.tlast>3e3?(t.dprogress.statbytes=0,t.dprogress.statdur=1):(t.dprogress.statbytes*=.9,t.dprogress.statdur*=.9)},100);const s=()=>{Object.assign(t.dprogress,n),t.dprogress.t0=Date.now(),t.dprogress.tlast=t.dprogress.t0+1},o=i=>{const c=document.createElement("a");c.href=i,c.download="",c.click()},r=async(i,c)=>{let a="",u=c;console.log("Downloading to filesystem",i.recursive);for(const[f,d,h]of i.recursive)h.dir||(t.dprogress.files.push(f),++t.dprogress.filecount,t.dprogress.total+=h.size);for(const[f,d,h]of i.recursive){a&&!f.startsWith(a+"/")&&(a="",u=c);const k=f.slice(a.length);for(const x of k.split("/").slice(0,h.dir?void 0:-1))if(x){a+=`${x}/`;try{u=await u.getDirectoryHandle(x.normalize("NFC"),{create:!0})}catch(S){throw console.error("Failed to create directory",a,S),new Error(`Failed to create directory ${a}: ${S}`)}console.log("Created",a)}if(h.dir)continue;const v=f.split("/").pop().normalize("NFC");let $;try{$=await u.getFileHandle(v,{create:!0})}catch(x){throw console.error("Failed to create file",f,d,a+v,x),new Error(`Failed to create file ${a+v}: ${x}`)}try{const x=await $.createWritable(),S=`/files/${f}`;console.log("Fetching",S);const b=await fetch(S);if(!b.ok)throw t.error=`Failed to download ${S}: ${b.status} ${b.statusText}`,new Error(`Failed to download ${S}: ${b.status} ${b.statusText}`);if(b.body){++t.dprogress.fileidx;const _=b.body.getReader();for(await x.truncate(0),t.error="Direct download.",t.dprogress.tlast=Date.now();;){const{value:m,done:C}=await _.read();if(C)break;await x.write(m);const R=Date.now(),T=m.byteLength;t.dprogress.xfer+=T,t.dprogress.filepos+=T,t.dprogress.statbytes+=T,t.dprogress.statdur+=R-t.dprogress.tlast,t.dprogress.tlast=R}}await x.close(),console.log("Saved",a+v)}catch(x){throw console.error("Failed to write file",a+v,x),new Error(`Failed to write file ${a+v}: ${x}`)}}s()},l=async()=>{const i=t.selectedFiles;if(console.log("Download",i),i.keys.length===0){console.warn("Attempted download but no files found. Missing selected keys:",i.missing),t.error="No existing files selected",t.selected.clear();return}const c=i.recursive.filter(([u,f,d])=>!d.dir);if(c.length===1)return t.selected.clear(),t.error="Single file via browser downloads",o(`/files/${c[0][1]}`);if("showDirectoryPicker"in window)try{const u=await window.showDirectoryPicker({startIn:"downloads",mode:"readwrite"});await r(i,u),t.selected.clear();return}catch(u){console.error("Download to folder aborted",u)}console.log("Falling back to zip download");const a=i.keys.length===1?i.docs[i.keys[0]].name:"download";o(`/zip/${Array.from(i.keys).join("+")}/${a}.zip`),t.error="Downloading as ZIP via browser downloads",t.selected.clear()};return(i,c)=>{const a=Zs;return I(),me(a,{name:"download","data-tooltip":"Download",onClick:l})}}}),ug={class:"select-text"},fg=ve({__name:"HeaderSelected",props:{path:Array},setup(e){const t=Ie(),n=e,s=he(()=>n.path.join("/")),o=(r,l)=>{const i=t.selectedFiles,c={op:r,sel:i.keys.map(u=>{const f=i.docs[u];return f.loc?`${f.loc}/${f.name}`:f.name})};l!==void 0&&(c.dst=l);const a=fn(is,{message(u){const f=JSON.parse(u.data);if("error"in f){console.error("Control socket error",c,f.error),t.error=f.error.message;return}else if(f.status==="ack"){console.log("Control ack OK",f),a.close(),t.selected.clear();return}else console.log("Unknown control response",c,f)}});a.onopen=()=>{a.send(JSON.stringify(c))}};return(r,l)=>{const i=ag,c=Zs;return M(t).selected.size?(I(),G(we,{key:0},[l[4]||(l[4]=A("div",{class:"smallgap"},null,-1)),A("p",ug,xe(M(t).selected.size)+" selected ➤",1),se(i),se(c,{name:"copy","data-tooltip":"Copy here",onClick:l[0]||(l[0]=a=>o("cp",s.value))}),se(c,{name:"paste","data-tooltip":"Move here",onClick:l[1]||(l[1]=a=>o("mv",s.value))}),se(c,{name:"trash","data-tooltip":"Delete ⚠️",onClick:l[2]||(l[2]=a=>o("rm"))}),A("button",{class:"action-button unselect","data-tooltip":"Unselect all",onClick:l[3]||(l[3]=a=>M(t).selected.clear())},"❌")],64)):pe("",!0)}}});const dg=["id"],pg={key:0},mr=ve({__name:"ModalDialog",props:{title:{},name:{}},setup(e,{expose:t}){const n=Q(null),s=Ie(),o=()=>{n.value.close(),s.dialog=""},r=e,l=()=>{s.dialog=r.name,setTimeout(()=>{n.value.showModal(),Ze(()=>{const i=n.value.querySelector("input");i&&i.focus()})},0)};return t({show:l,close:o}),Ot(()=>{n.value&&l()}),(i,c)=>M(s).dialog===i.name?(I(),G("dialog",{key:0,ref_key:"dialog",ref:n,id:r.name,onKeydown:kn(o,["escape"])},[r.title?(I(),G("h1",pg,xe(r.title),1)):pe("",!0),A("div",null,[Fe(i.$slots,"default",{},()=>[c[0]||(c[0]=ds(" Dialog with no content ",-1)),A("button",{onClick:o},"OK")])])],40,dg)):pe("",!0)}});const hg={class:"login-container"},gg={class:"error-text"},mg={class:"dialog-buttons"},vg=ve({__name:"SettingsModal",setup(e){const t=Q(!1),n=Ie(),s=Q(),o=Q(),r=xt({passwordChange:"",password:"",error:""}),l=()=>{r.passwordChange="",r.password="",r.error="",n.dialog=""},i=async c=>{c.preventDefault();try{if(r.error="",r.passwordChange){if(!r.password){r.error="⚠️ Current password is required",o.value.focus();return}await Xd(n.user.username,r.passwordChange,r.password)}l()}catch(a){const u=a;r.error=u.message||"🛑 Unknown error"}finally{t.value=!1}};return(c,a)=>{const u=mr;return I(),me(u,{name:"settings",title:"Settings"},{default:lt(()=>[A("form",null,[M(n).user.isLoggedIn?(I(),G(we,{key:0},[a[5]||(a[5]=A("h3",null,"Update your authentication",-1)),A("div",hg,[a[2]||(a[2]=A("label",{for:"username"},"New password:",-1)),cn(A("input",{ref_key:"passwordChange",ref:s,id:"passwordChange",type:"password",autocomplete:"new-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":a[0]||(a[0]=f=>r.passwordChange=f)},null,512),[[os,r.passwordChange]]),a[3]||(a[3]=A("label",{for:"password"},"Current password:",-1)),cn(A("input",{ref_key:"password",ref:o,id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off","onUpdate:modelValue":a[1]||(a[1]=f=>r.password=f)},null,512),[[os,r.password]])]),A("h3",gg,xe(r.error||" "),1),A("div",mg,[A("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:l}),a[4]||(a[4]=A("div",{class:"spacer"},null,-1)),A("input",{id:"submit",type:"submit",value:"Submit",class:"button",onClick:Ne(i,["prevent"])})])],64)):(I(),G(we,{key:1},[a[7]||(a[7]=A("p",null,"No settings are available because you have not logged in.",-1)),A("div",{class:"dialog-buttons"},[a[6]||(a[6]=A("div",{class:"spacer"},null,-1)),A("input",{id:"close",type:"reset",value:"Close",class:"button",onClick:l})])],64))])]),_:1})}}});const _g=st(vg,[["__scopeId","data-v-8df784f7"]]),yg={class:"login-container"},bg={class:"error-text"},wg=ve({__name:"LoginModal",setup(e){const t=Q(!1),n=Ie(),s=xt({username:"",password:"",error:""}),o=async()=>{try{s.error="",t.value=!0;const r=await Yd(s.username,s.password);n.login(r.data.username,!!r.data.privileged)}catch(r){const l=r;s.error=l.message||"🛑 Unknown error"}finally{t.value=!1}};return(r,l)=>{const i=mr;return I(),me(i,{name:"login",title:"Authentication required"},{default:lt(()=>[A("form",{onSubmit:Ne(o,["prevent"])},[A("div",yg,[l[2]||(l[2]=A("label",{for:"username"},"Username:",-1)),cn(A("input",{id:"username",name:"username",autocomplete:"username",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":l[0]||(l[0]=c=>s.username=c)},null,512),[[os,s.username]]),l[3]||(l[3]=A("label",{for:"password"},"Password:",-1)),cn(A("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",spellcheck:"false",autocorrect:"off",required:"","onUpdate:modelValue":l[1]||(l[1]=c=>s.password=c)},null,512),[[os,s.password]])]),A("h3",bg,xe(s.error||" "),1),l[4]||(l[4]=A("div",{class:"dialog-buttons"},[A("div",{class:"spacer"}),A("input",{id:"submit",type:"submit",value:"Login",class:"button-login"})],-1))],32)]),_:1})}}});const Cg=st(wg,[["__scopeId","data-v-06fdc161"]]),xg={key:0,class:"loading"},kg={key:1},Sg={class:"form-row"},Eg={class:"user-table"},Rg=["checked","onChange","disabled"],Mg=["onClick"],Pg=["onClick"],Ag=["onClick","disabled"],$g={class:"error-text"},Ig=ve({__name:"UserManagementModal",setup(e){const t=Ie(),n=Q(!0),s=Q([]),o=Q(""),r=Q(""),l=Q("📋"),i=xt({public:!1}),c=()=>{t.dialog="",o.value="",r.value=""},a=async()=>{try{n.value=!0;const x=await Qd();s.value=x.users}catch(x){const S=x;o.value=S.message||"Failed to load users"}finally{n.value=!1}},u=async()=>{const x=window.prompt("Enter username for new user:");if(!(!x||!x.trim()))try{o.value="",r.value="";const S=await Ml(x.trim(),void 0,!1);await a(),S.password&&(r.value=`User ${x.trim()} created. Password: ${S.password}`)}catch(S){const b=S;o.value=b.message||"Failed to add user"}},f=async(x,S)=>{const b=S.target;try{o.value="",await Pl(x.username,{privileged:b.checked}),x.privileged=b.checked}catch(_){const m=_;o.value=m.message||"Failed to update user",b.checked=x.privileged}},d=async x=>{const S=window.prompt("Enter new username:",x.username);if(!(!S||!S.trim()||S.trim()===x.username))try{o.value="",r.value="";const b=await Ml(S.trim(),void 0,x.privileged);await Al(x.username),await a(),b.password&&(r.value=`User renamed to ${S.trim()}. New password: ${b.password}`)}catch(b){const _=b;o.value=_.message||"Failed to rename user"}},h=async x=>{if(confirm(`Reset password for ${x.username}? A new password will be generated.`))try{o.value="",r.value="";const S=await Pl(x.username,{password:""});S.password&&(r.value=`Password reset for ${x.username}. New password: ${S.password}`)}catch(S){const b=S;o.value=b.message||"Failed to reset password"}},k=async x=>{if(confirm(`Delete user ${x}?`))try{o.value="",await Al(x),await a()}catch(S){const b=S;o.value=b.message||"Failed to delete user"}},v=async(x=!1)=>{const S=r.value.match(/(?:Password|New password): (.+)/);if(S)if(await navigator.clipboard.writeText(S[1]),x){l.value="✅ Copied!";const b=r.value.replace(/(?:Password|New password): .+/,"Password copied to clipboard!");r.value=b,setTimeout(()=>{r.value="",l.value="📋"},3e3)}else r.value=""},$=async()=>{try{o.value="",r.value="",await ep(i.public),t.server.public=i.public,r.value="Server settings updated"}catch(x){const S=x;o.value=S.message||"Failed to update settings"}};return Qe(()=>{i.public=t.server.public,a()}),$t(()=>t.server.public,x=>{i.public=x}),(x,S)=>{const b=mr;return I(),me(b,{name:"usermgmt",title:"Admin Settings"},{default:lt(()=>[n.value?(I(),G("div",xg,"Loading...")):(I(),G("div",kg,[S[5]||(S[5]=A("h3",null,"Server Settings",-1)),A("div",Sg,[cn(A("input",{id:"publicServer",type:"checkbox","onUpdate:modelValue":S[0]||(S[0]=_=>i.public=_),onChange:$},null,544),[[ic,i.public]]),S[3]||(S[3]=A("label",{for:"publicServer"},"Publicly accessible without any user account.",-1))]),S[6]||(S[6]=A("h3",null,"Users",-1)),A("button",{onClick:u,class:"button",title:"Add new user"},"➕ Add User"),r.value?(I(),G("div",{key:0,class:"success-message",onClick:S[2]||(S[2]=_=>v(!1))},[ds(xe(r.value)+" ",1),r.value.includes("Password:")||r.value.includes("New password:")?(I(),G("button",{key:0,onClick:S[1]||(S[1]=Ne(_=>v(!0),["stop"])),class:"button small",title:"Copy to clipboard"},xe(l.value),1)):pe("",!0)])):pe("",!0),A("table",Eg,[S[4]||(S[4]=A("thead",null,[A("tr",null,[A("th",null,"Username"),A("th",null,"Admin"),A("th",null,"Actions")])],-1)),A("tbody",null,[(I(!0),G(we,null,An(s.value,_=>(I(),G("tr",{key:_.username},[A("td",null,xe(_.username),1),A("td",null,[A("input",{type:"checkbox",checked:_.privileged,onChange:m=>f(_,m),disabled:_.username===M(t).user.username},null,40,Rg)]),A("td",null,[A("button",{onClick:m=>d(_),class:"button small",title:"Rename user"},"✏️",8,Mg),A("button",{onClick:m=>h(_),class:"button small",title:"Reset password"},"🔑",8,Pg),A("button",{onClick:m=>k(_.username),class:"button small danger",disabled:_.username===M(t).user.username,title:"Delete user"},"🗑️",8,Ag)])]))),128))])]),A("h3",$g,xe(o.value||" "),1),A("div",{class:"dialog-buttons"},[A("button",{onClick:c,class:"button"},"Close")])]))]),_:1})}}});const Tg=st(Ig,[["__scopeId","data-v-785778fe"]]),Og=ve({__name:"App",setup(e){const t=Ie(),n=he(()=>{const l=decodeURIComponent(dn.currentRoute.value.path).split("//"),i=l[0].split("/").filter(a=>a!==""),c=l.slice(1).join("//");return{path:l[0],pathList:i,query:c}});Ot(()=>{document.title=n.value.path.replace(/\/$/,"").split("/").pop()||t.server.name||"Cista Storage"}),Qe(sp),Qe(fr),an(op);const s=Q(null);let o=null;const r=l=>{if(t.dialog){o&&(clearTimeout(o),o=null);return}const i=t.fileExplorer;if(!i)return;const c=i.isCursor(),a=l.target.tagName==="INPUT",u=l.type==="keyup";if(l.repeat){(l.key==="ArrowUp"||l.key==="ArrowDown"||l.key==="ArrowLeft"||l.key==="ArrowRight"||c&&l.code==="Space")&&(a||l.preventDefault());return}let f="";if(!a&&l.key.startsWith("Arrow"))f=l.key.slice(5).toLowerCase();else if(!u&&l.key==="f"&&(l.ctrlKey||l.metaKey))s.value.toggleSearchInput();else if(!a&&u&&l.key==="/")s.value.toggleSearchInput();else if(u&&l.key==="Escape")t.error="",s.value.closeSearch(l),t.focusBreadcrumb();else if(!a&&u&&l.key==="Backspace")dn.back();else if(!a&&!u&&l.key==="a"&&(l.ctrlKey||l.metaKey))i.toggleSelectAll();else if(!a&&u&&l.key==="g")t.prefs.gallery=!t.prefs.gallery;else if(!a&&u&&(l.code==="Backquote"||l.key==="1"||l.key==="2"||l.key==="3"))t.sort(["","name","modified","size"][+l.key||0]);else if(!a&&c&&u&&!l.ctrlKey&&(l.key==="F2"||l.key==="r"))i.cursorRename();else if(!a&&c&&l.code==="Space")u&&!l.altKey&&!l.ctrlKey&&i.cursorSelect();else return;l.preventDefault(),o&&(clearTimeout(o),o=null);let d;switch(f){case"up":d=()=>i.up(l);break;case"down":d=()=>i.down(l);break;case"left":d=()=>i.left(l);break;case"right":d=()=>i.right(l);break}if(d&&!u){const k=l.altKey?20:100;d(),o=setTimeout(()=>{o=setInterval(d,k)},200-k)}};return Qe(()=>{window.addEventListener("keydown",r),window.addEventListener("keyup",r)}),an(()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",r)}),(l,i)=>{const c=Cg,a=_g,u=fg,f=cg,d=dr,h=Ff;return I(),G(we,null,[se(c),se(a),se(Tg),A("header",null,[se(f,{ref_key:"headerMain",ref:s,path:n.value.pathList,query:n.value.query},{default:lt(()=>[se(u,{path:n.value.pathList},null,8,["path"])]),_:1},8,["path","query"]),se(d,{path:n.value.pathList,primary:""},null,8,["path"])]),A("main",null,[se(M(Pc),{path:n.value.pathList,query:n.value.query},null,8,["path","query"])]),A("footer",null,[se(h,{status:M(t).uprogress,onCancel:M(t).cancelUploads,class:"upload"},null,8,["status","onCancel"]),se(h,{status:M(t).dprogress,onCancel:M(t).cancelDownloads,class:"download"},null,8,["status","onCancel"])])],64)}}});function Lg(e){return typeof e=="object"&&e!==null}function Bl(e,t){return e=Lg(e)?e:Object.create(null),new Proxy(e,{get(n,s,o){return s==="key"?Reflect.get(n,s,o):Reflect.get(n,s,o)||Reflect.get(t,s,o)}})}function Dg(e,t){return t.reduce((n,s)=>n==null?void 0:n[s],e)}function Fg(e,t,n){return t.slice(0,-1).reduce((s,o)=>/^(__proto__)$/.test(o)?{}:s[o]=s[o]||{},e)[t[t.length-1]]=n,e}function Ng(e,t){return t.reduce((n,s)=>{const o=s.split(".");return Fg(n,o,Dg(e,o))},{})}function Hg(e,t){return n=>{var s;try{const{storage:o=localStorage,beforeRestore:r=void 0,afterRestore:l=void 0,serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},key:c=t.$id,paths:a=null,debug:u=!1}=n;return{storage:o,beforeRestore:r,afterRestore:l,serializer:i,key:((s=e.key)!=null?s:f=>f)(typeof c=="string"?c:c(t.$id)),paths:a,debug:u}}catch(o){return n.debug&&console.error("[pinia-plugin-persistedstate]",o),null}}}function jl(e,{storage:t,serializer:n,key:s,debug:o}){try{const r=t==null?void 0:t.getItem(s);r&&e.$patch(n==null?void 0:n.deserialize(r))}catch(r){o&&console.error("[pinia-plugin-persistedstate]",r)}}function Vl(e,{storage:t,serializer:n,key:s,paths:o,debug:r}){try{const l=Array.isArray(o)?Ng(e,o):e;t.setItem(s,n.serialize(l))}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function Bg(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:s=n},store:o,pinia:r}=t;if(!s)return;if(!(o.$id in r.state.value)){const i=r._s.get(o.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const l=(Array.isArray(s)?s.map(i=>Bl(i,e)):[Bl(s,e)]).map(Hg(e,o)).filter(Boolean);o.$persist=()=>{l.forEach(i=>{Vl(o.$state,i)})},o.$hydrate=({runHooks:i=!0}={})=>{l.forEach(c=>{const{beforeRestore:a,afterRestore:u}=c;i&&(a==null||a(t)),jl(o,c),i&&(u==null||u(t))})},l.forEach(i=>{const{beforeRestore:c,afterRestore:a}=i;c==null||c(t),jl(o,i),a==null||a(t),o.$subscribe((u,f)=>{Vl(f,i)},{detached:!0})})}}var jg=Bg();const hs=yf(Og);hs.config.errorHandler=e=>{console.log(e)};const zc=xf();zc.use(jg);hs.use(zc);hs.use(dn);hs.use(Xs);hs.mount("#app");export{A as a,G as c,I as o};
@@ -1 +1 @@
1
- import{o,c as t,a as c}from"./index-2536c1be.js";const n={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 34 34"};function r(l,e){return o(),t("svg",n,e[0]||(e[0]=[c("path",{d:"M16 .6C7.5.6.6 7.6.6 16c0 8.5 7 15.4 15.4 15.4 8.5 0 15.4-7 15.4-15.4C31.4 7.5 24.4.6 16 .6m1.4 5.6c1.5 0 2 1 2 1.8 0 1.3-1 2.4-2.7 2.4-1.4 0-2-.7-2-2 0-.8.8-2.2 2.7-2.2m-3.8 19c-1 0-1.8-.6-1-3.4l1-4.8c.3-.8.4-1 0-1-.2 0-1.5.5-2.3 1l-.5-1c2.5-2 5.3-3 6.6-3q1.5 0 .6 3l-1.3 5c-.2 1 0 1.2 0 1.2.4 0 1.4-.3 2.4-1l1 .7c-2.4 2-5 3-6 3z"},null,-1)]))}const a={render:r};export{a as default,r as render};
1
+ import{o,c as t,a as c}from"./index-72c7a093.js";const n={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 34 34"};function r(l,e){return o(),t("svg",n,e[0]||(e[0]=[c("path",{d:"M16 .6C7.5.6.6 7.6.6 16c0 8.5 7 15.4 15.4 15.4 8.5 0 15.4-7 15.4-15.4C31.4 7.5 24.4.6 16 .6m1.4 5.6c1.5 0 2 1 2 1.8 0 1.3-1 2.4-2.7 2.4-1.4 0-2-.7-2-2 0-.8.8-2.2 2.7-2.2m-3.8 19c-1 0-1.8-.6-1-3.4l1-4.8c.3-.8.4-1 0-1-.2 0-1.5.5-2.3 1l-.5-1c2.5-2 5.3-3 6.6-3q1.5 0 .6 3l-1.3 5c-.2 1 0 1.2 0 1.2.4 0 1.4-.3 2.4-1l1 .7c-2.4 2-5 3-6 3z"},null,-1)]))}const a={render:r};export{a as default,r as render};
@@ -1 +1 @@
1
- import{o as t,c,a as s}from"./index-2536c1be.js";const o={xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512"};function n(r,e){return t(),c("svg",o,e[0]||(e[0]=[s("path",{d:"M384 128h-69c24 16 46.5 44.5 53.5 64h15c32.5 0 64 32 64 64s-32.5 64-64 64h-96c-31.5 0-64-32-64-64 0-11.5 3.5-22.5 9-32H164c-2.5 10.5-4 21-4 32 0 64 63.5 128 127.5 128H384c64 0 128-64 128-128s-64-128-128-128M143.5 320h-15c-32.5 0-64-32-64-64s32.5-64 64-64h96c31.5 0 64 32 64 64 0 11.5-3.5 22.5-9 32H348c2.5-10.5 4-21 4-32 0-64-63.5-128-127.5-128H128C64 128 0 192 0 256s64 128 128 128h69c-24-16-46.5-44.5-53.5-64"},null,-1)]))}const a={render:n};export{a as default,n as render};
1
+ import{o as t,c,a as s}from"./index-72c7a093.js";const o={xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512"};function n(r,e){return t(),c("svg",o,e[0]||(e[0]=[s("path",{d:"M384 128h-69c24 16 46.5 44.5 53.5 64h15c32.5 0 64 32 64 64s-32.5 64-64 64h-96c-31.5 0-64-32-64-64 0-11.5 3.5-22.5 9-32H164c-2.5 10.5-4 21-4 32 0 64 63.5 128 127.5 128H384c64 0 128-64 128-128s-64-128-128-128M143.5 320h-15c-32.5 0-64-32-64-64s32.5-64 64-64h96c31.5 0 64 32 64 64 0 11.5-3.5 22.5-9 32H348c2.5-10.5 4-21 4-32 0-64-63.5-128-127.5-128H128C64 128 0 192 0 256s64 128 128 128h69c-24-16-46.5-44.5-53.5-64"},null,-1)]))}const a={render:n};export{a as default,n as render};
@@ -1 +1 @@
1
- import{o as l,c as o,a as e}from"./index-2536c1be.js";const r={xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512"};function h(n,t){return l(),o("svg",r,t[0]||(t[0]=[e("rect",{width:"512",height:"512",fill:"#26b",rx:"64",ry:"64"},null,-1),e("path",{fill:"#fff",d:"M381 298h-84V167h-66L339 35l108 132h-66zm-168-84h-84v131H63l108 132 108-132h-66z"},null,-1)]))}const a={render:h};export{a as default,h as render};
1
+ import{o as l,c as o,a as e}from"./index-72c7a093.js";const r={xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512"};function h(n,t){return l(),o("svg",r,t[0]||(t[0]=[e("rect",{width:"512",height:"512",fill:"#26b",rx:"64",ry:"64"},null,-1),e("path",{fill:"#fff",d:"M381 298h-84V167h-66L339 35l108 132h-66zm-168-84h-84v131H63l108 132 108-132h-66z"},null,-1)]))}const a={render:h};export{a as default,h as render};
@@ -1 +1 @@
1
- import{o,c as t,a as r}from"./index-2536c1be.js";const s={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36"};function c(n,e){return o(),t("svg",s,e[0]||(e[0]=[r("path",{d:"m23.53 8.44 3.13-3.13v9.4h-9.38l4.3-4.3C20.18 8.94 18.18 8 16 8c-4.45 0-8 3.56-8 8s3.55 8 8 8c3.5 0 6.5-2.2 7.55-5.3h2.75c-1.2 4.6-5.3 8-10.3 8-5.9 0-10.64-4.83-10.64-10.7S10.1 5.3 15.96 5.3c2.95 0 5.63 1.2 7.57 3.14"},null,-1)]))}const l={render:c};export{l as default,c as render};
1
+ import{o,c as t,a as r}from"./index-72c7a093.js";const s={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36"};function c(n,e){return o(),t("svg",s,e[0]||(e[0]=[r("path",{d:"m23.53 8.44 3.13-3.13v9.4h-9.38l4.3-4.3C20.18 8.94 18.18 8 16 8c-4.45 0-8 3.56-8 8s3.55 8 8 8c3.5 0 6.5-2.2 7.55-5.3h2.75c-1.2 4.6-5.3 8-10.3 8-5.9 0-10.64-4.83-10.64-10.7S10.1 5.3 15.96 5.3c2.95 0 5.63 1.2 7.57 3.14"},null,-1)]))}const l={render:c};export{l as default,c as render};
@@ -1 +1 @@
1
- import{o as t,c as o,a as s}from"./index-2536c1be.js";const n={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 0 24 32"};function r(c,e){return t(),o("svg",n,e[0]||(e[0]=[s("path",{d:"M16 21.3c1.4 0 2.7 1.3 2.7 2.7s-1.3 2.7-2.7 2.7-2.7-1.3-2.7-2.7 1.3-2.7 2.7-2.7m0-8c1.4 0 2.7 1.3 2.7 2.7s-1.3 2.7-2.7 2.7-2.7-1.3-2.7-2.7 1.3-2.7 2.7-2.7m0-2.6c-1.4 0-2.7-1.3-2.7-2.7s1.3-2.7 2.7-2.7 2.7 1.3 2.7 2.7-1.3 2.7-2.7 2.7"},null,-1)]))}const l={render:r};export{l as default,r as render};
1
+ import{o as t,c as o,a as s}from"./index-72c7a093.js";const n={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 0 24 32"};function r(c,e){return t(),o("svg",n,e[0]||(e[0]=[s("path",{d:"M16 21.3c1.4 0 2.7 1.3 2.7 2.7s-1.3 2.7-2.7 2.7-2.7-1.3-2.7-2.7 1.3-2.7 2.7-2.7m0-8c1.4 0 2.7 1.3 2.7 2.7s-1.3 2.7-2.7 2.7-2.7-1.3-2.7-2.7 1.3-2.7 2.7-2.7m0-2.6c-1.4 0-2.7-1.3-2.7-2.7s1.3-2.7 2.7-2.7 2.7 1.3 2.7 2.7-1.3 2.7-2.7 2.7"},null,-1)]))}const l={render:r};export{l as default,r as render};