mirror of
https://git-qiuchenly.yltfspace.com/QiuChenly/corepatch
synced 2025-11-25 05:40:27 +08:00
96 lines
212 KiB
JavaScript
96 lines
212 KiB
JavaScript
(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 i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).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)}})();/**
|
||
* @vue/shared v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function sr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const we={},cn=[],_t=()=>{},hl=()=>!1,Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),or=e=>e.startsWith("onUpdate:"),Pe=Object.assign,rr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Dc=Object.prototype.hasOwnProperty,me=(e,t)=>Dc.call(e,t),Y=Array.isArray,un=e=>Yn(e)==="[object Map]",Hs=e=>Yn(e)==="[object Set]",Pr=e=>Yn(e)==="[object Date]",se=e=>typeof e=="function",Ee=e=>typeof e=="string",Ct=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",gl=e=>(be(e)||se(e))&&se(e.then)&&se(e.catch),ml=Object.prototype.toString,Yn=e=>ml.call(e),Nc=e=>Yn(e).slice(8,-1),vl=e=>Yn(e)==="[object Object]",ir=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,In=sr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fc=/-\w/g,nt=Vs(e=>e.replace(Fc,t=>t.slice(1).toUpperCase())),Uc=/\B([A-Z])/g,on=Vs(e=>e.replace(Uc,"-$1").toLowerCase()),qs=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),fo=Vs(e=>e?`on${qs(e)}`:""),Bt=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},yl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Es=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jc=e=>{const t=Ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Ir;const zs=()=>Ir||(Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ks(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Ee(s)?qc(s):Ks(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(Ee(e)||be(e))return e}const Bc=/;(?![^(]*\))/g,Hc=/:([^]+)/,Vc=/\/\*[^]*?\*\//g;function qc(e){const t={};return e.replace(Vc,"").split(Bc).forEach(n=>{if(n){const s=n.split(Hc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function oe(e){let t="";if(Ee(e))t=e;else if(Y(e))for(let n=0;n<e.length;n++){const s=oe(e[n]);s&&(t+=s+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const zc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Kc=sr(zc);function bl(e){return!!e||e===""}function Wc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ws(e[s],t[s]);return n}function Ws(e,t){if(e===t)return!0;let n=Pr(e),s=Pr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ct(e),s=Ct(t),n||s)return e===t;if(n=Y(e),s=Y(t),n||s)return n&&s?Wc(e,t):!1;if(n=be(e),s=be(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 i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Ws(e[i],t[i]))return!1}}return String(e)===String(t)}function Gc(e,t){return e.findIndex(n=>Ws(n,t))}const _l=e=>!!(e&&e.__v_isRef===!0),V=e=>Ee(e)?e:e==null?"":Y(e)||be(e)&&(e.toString===ml||!se(e.toString))?_l(e)?V(e.value):JSON.stringify(e,wl,2):String(e),wl=(e,t)=>_l(t)?wl(e,t.value):un(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[po(s,r)+" =>"]=o,n),{})}:Hs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>po(n))}:Ct(t)?po(t):be(t)&&!Y(t)&&!vl(t)?String(t):t,po=(e,t="")=>{var n;return Ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Ke;class Cl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.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=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){++this._on===1&&(this.prevScope=Ke,Ke=this)}off(){this._on>0&&--this._on===0&&(Ke=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 Jc(e){return new Cl(e)}function Qc(){return Ke}let Se;const ho=new WeakSet;class Sl{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,Ke&&Ke.active&&Ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ho.has(this)&&(ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||El(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Lr(this),Tl(this);const t=Se,n=it;Se=this,it=!0;try{return this.fn()}finally{Al(this),Se=t,it=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)cr(t);this.deps=this.depsTail=void 0,Lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$o(this)&&this.run()}get dirty(){return $o(this)}}let xl=0,Ln,Mn;function El(e,t=!1){if(e.flags|=8,t){e.next=Mn,Mn=e;return}e.next=Ln,Ln=e}function lr(){xl++}function ar(){if(--xl>0)return;if(Mn){let t=Mn;for(Mn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ln;){let t=Ln;for(Ln=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 Tl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Al(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),cr(s),Zc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function $o(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vn)||(e.globalVersion=Vn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$o(e))))return;e.flags|=2;const t=e.dep,n=Se,s=it;Se=e,it=!0;try{Tl(e);const o=e.fn(e._value);(t.version===0||Bt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Se=n,it=s,Al(e),e.flags&=-3}}function cr(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)cr(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let it=!0;const kl=[];function $t(){kl.push(it),it=!1}function Pt(){const e=kl.pop();it=e===void 0?!0:e}function Lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Se;Se=void 0;try{t()}finally{Se=n}}}let Vn=0;class Xc{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 ur{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(!Se||!it||Se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Se)n=this.activeLink=new Xc(Se,this),Se.deps?(n.prevDep=Se.depsTail,Se.depsTail.nextDep=n,Se.depsTail=n):Se.deps=Se.depsTail=n,Ol(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=Se.depsTail,n.nextDep=void 0,Se.depsTail.nextDep=n,Se.depsTail=n,Se.deps===n&&(Se.deps=s)}return n}trigger(t){this.version++,Vn++,this.notify(t)}notify(t){lr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ar()}}}function Ol(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)Ol(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Po=new WeakMap,tn=Symbol(""),Io=Symbol(""),qn=Symbol("");function Le(e,t,n){if(it&&Se){let s=Po.get(e);s||Po.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new ur),o.map=s,o.key=n),o.track()}}function kt(e,t,n,s,o,r){const i=Po.get(e);if(!i){Vn++;return}const l=a=>{a&&a.trigger()};if(lr(),t==="clear")i.forEach(l);else{const a=Y(e),u=a&&ir(n);if(a&&n==="length"){const c=Number(s);i.forEach((f,d)=>{(d==="length"||d===qn||!Ct(d)&&d>=c)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(qn)),t){case"add":a?u&&l(i.get("length")):(l(i.get(tn)),un(e)&&l(i.get(Io)));break;case"delete":a||(l(i.get(tn)),un(e)&&l(i.get(Io)));break;case"set":un(e)&&l(i.get(tn));break}}ar()}function rn(e){const t=he(e);return t===e?t:(Le(t,"iterate",qn),tt(e)?t:t.map(Ie))}function Gs(e){return Le(e=he(e),"iterate",qn),e}const Yc={__proto__:null,[Symbol.iterator](){return go(this,Symbol.iterator,Ie)},concat(...e){return rn(this).concat(...e.map(t=>Y(t)?rn(t):t))},entries(){return go(this,"entries",e=>(e[1]=Ie(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(Ie),arguments)},find(e,t){return St(this,"find",e,t,Ie,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,Ie,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 mo(this,"includes",e)},indexOf(...e){return mo(this,"indexOf",e)},join(e){return rn(this).join(e)},lastIndexOf(...e){return mo(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return xn(this,"pop")},push(...e){return xn(this,"push",e)},reduce(e,...t){return Mr(this,"reduce",e,t)},reduceRight(e,...t){return Mr(this,"reduceRight",e,t)},shift(){return xn(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return xn(this,"splice",e)},toReversed(){return rn(this).toReversed()},toSorted(e){return rn(this).toSorted(e)},toSpliced(...e){return rn(this).toSpliced(...e)},unshift(...e){return xn(this,"unshift",e)},values(){return go(this,"values",Ie)}};function go(e,t,n){const s=Gs(e),o=s[t]();return s!==e&&!tt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const eu=Array.prototype;function St(e,t,n,s,o,r){const i=Gs(e),l=i!==e&&!tt(e),a=i[t];if(a!==eu[t]){const f=a.apply(e,r);return l?Ie(f):f}let u=n;i!==e&&(l?u=function(f,d){return n.call(this,Ie(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=a.call(i,u,s);return l&&o?o(c):c}function Mr(e,t,n,s){const o=Gs(e);let r=n;return o!==e&&(tt(e)?n.length>3&&(r=function(i,l,a){return n.call(this,i,l,a,e)}):r=function(i,l,a){return n.call(this,i,Ie(l),a,e)}),o[t](r,...s)}function mo(e,t,n){const s=he(e);Le(s,"iterate",qn);const o=s[t](...n);return(o===-1||o===!1)&&pr(n[0])?(n[0]=he(n[0]),s[t](...n)):o}function xn(e,t,n=[]){$t(),lr();const s=he(e)[t].apply(e,n);return ar(),Pt(),s}const tu=sr("__proto__,__v_isRef,__isVue"),$l=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ct));function nu(e){Ct(e)||(e=String(e));const t=he(this);return Le(t,"has",e),t.hasOwnProperty(e)}class Pl{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?du:Dl:r?Ml:Ll).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=Y(t);if(!o){let a;if(i&&(a=Yc[n]))return a;if(n==="hasOwnProperty")return nu}const l=Reflect.get(t,n,Ne(t)?t:s);if((Ct(n)?$l.has(n):tu(n))||(o||Le(t,"get",n),r))return l;if(Ne(l)){const a=i&&ir(n)?l:l.value;return o&&be(a)?Mo(a):a}return be(l)?o?Mo(l):Js(l):l}}class Il extends Pl{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const a=Ht(r);if(!tt(s)&&!Ht(s)&&(r=he(r),s=he(s)),!Y(t)&&Ne(r)&&!Ne(s))return a||(r.value=s),!0}const i=Y(t)&&ir(n)?Number(n)<t.length:me(t,n),l=Reflect.set(t,n,s,Ne(t)?t:o);return t===he(o)&&(i?Bt(s,r)&&kt(t,"set",n,s):kt(t,"add",n,s)),l}deleteProperty(t,n){const s=me(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&kt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Ct(n)||!$l.has(n))&&Le(t,"has",n),s}ownKeys(t){return Le(t,"iterate",Y(t)?"length":tn),Reflect.ownKeys(t)}}class su extends Pl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ou=new Il,ru=new su,iu=new Il(!0);const Lo=e=>e,ls=e=>Reflect.getPrototypeOf(e);function lu(e,t,n){return function(...s){const o=this.__v_raw,r=he(o),i=un(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),c=n?Lo:t?Ts:Ie;return!t&&Le(r,"iterate",a?Io:tn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function as(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function au(e,t){const n={get(o){const r=this.__v_raw,i=he(r),l=he(o);e||(Bt(o,l)&&Le(i,"get",o),Le(i,"get",l));const{has:a}=ls(i),u=t?Lo:e?Ts:Ie;if(a.call(i,o))return u(r.get(o));if(a.call(i,l))return u(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Le(he(o),"iterate",tn),o.size},has(o){const r=this.__v_raw,i=he(r),l=he(o);return e||(Bt(o,l)&&Le(i,"has",o),Le(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=he(l),u=t?Lo:e?Ts:Ie;return!e&&Le(a,"iterate",tn),l.forEach((c,f)=>o.call(r,u(c),u(f),i))}};return Pe(n,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(o){!t&&!tt(o)&&!Ht(o)&&(o=he(o));const r=he(this);return ls(r).has.call(r,o)||(r.add(o),kt(r,"add",o,o)),this},set(o,r){!t&&!tt(r)&&!Ht(r)&&(r=he(r));const i=he(this),{has:l,get:a}=ls(i);let u=l.call(i,o);u||(o=he(o),u=l.call(i,o));const c=a.call(i,o);return i.set(o,r),u?Bt(r,c)&&kt(i,"set",o,r):kt(i,"add",o,r),this},delete(o){const r=he(this),{has:i,get:l}=ls(r);let a=i.call(r,o);a||(o=he(o),a=i.call(r,o)),l&&l.call(r,o);const u=r.delete(o);return a&&kt(r,"delete",o,void 0),u},clear(){const o=he(this),r=o.size!==0,i=o.clear();return r&&kt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=lu(o,e,t)}),n}function fr(e,t){const n=au(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(me(n,o)&&o in s?n:s,o,r)}const cu={get:fr(!1,!1)},uu={get:fr(!1,!0)},fu={get:fr(!0,!1)};const Ll=new WeakMap,Ml=new WeakMap,Dl=new WeakMap,du=new WeakMap;function pu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hu(e){return e.__v_skip||!Object.isExtensible(e)?0:pu(Nc(e))}function Js(e){return Ht(e)?e:dr(e,!1,ou,cu,Ll)}function Nl(e){return dr(e,!1,iu,uu,Ml)}function Mo(e){return dr(e,!0,ru,fu,Dl)}function dr(e,t,n,s,o){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=hu(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function fn(e){return Ht(e)?fn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function tt(e){return!!(e&&e.__v_isShallow)}function pr(e){return e?!!e.__v_raw:!1}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function Fl(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&yl(e,"__v_skip",!0),e}const Ie=e=>be(e)?Js(e):e,Ts=e=>be(e)?Mo(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function Q(e){return jl(e,!1)}function Ul(e){return jl(e,!0)}function jl(e,t){return Ne(e)?e:new gu(e,t)}class gu{constructor(t,n){this.dep=new ur,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:he(t),this._value=n?t:Ie(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||tt(t)||Ht(t);t=s?t:he(t),Bt(t,n)&&(this._rawValue=t,this._value=s?t:Ie(t),this.dep.trigger())}}function W(e){return Ne(e)?e.value:e}const mu={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ne(o)&&!Ne(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Bl(e){return fn(e)?e:new Proxy(e,mu)}class vu{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ur(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return El(this,!0),!0}get value(){const t=this.dep.track();return Rl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yu(e,t,n=!1){let s,o;return se(e)?s=e:(s=e.get,o=e.set),new vu(s,o,n)}const cs={},As=new WeakMap;let Zt;function bu(e,t=!1,n=Zt){if(n){let s=As.get(n);s||As.set(n,s=[]),s.push(e)}}function _u(e,t,n=we){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=n,u=P=>o?P:tt(P)||o===!1||o===0?Ot(P,1):Ot(P);let c,f,d,h,v=!1,b=!1;if(Ne(e)?(f=()=>e.value,v=tt(e)):fn(e)?(f=()=>u(e),v=!0):Y(e)?(b=!0,v=e.some(P=>fn(P)||tt(P)),f=()=>e.map(P=>{if(Ne(P))return P.value;if(fn(P))return u(P);if(se(P))return a?a(P,2):P()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){$t();try{d()}finally{Pt()}}const P=Zt;Zt=c;try{return a?a(e,3,[h]):e(h)}finally{Zt=P}}:f=_t,t&&o){const P=f,G=o===!0?1/0:o;f=()=>Ot(P(),G)}const y=Qc(),x=()=>{c.stop(),y&&y.active&&rr(y.effects,c)};if(r&&t){const P=t;t=(...G)=>{P(...G),x()}}let S=b?new Array(e.length).fill(cs):cs;const k=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const G=c.run();if(o||v||(b?G.some((I,M)=>Bt(I,S[M])):Bt(G,S))){d&&d();const I=Zt;Zt=c;try{const M=[G,S===cs?void 0:b&&S[0]===cs?[]:S,h];S=G,a?a(t,3,M):t(...M)}finally{Zt=I}}}else c.run()};return l&&l(k),c=new Sl(f),c.scheduler=i?()=>i(k,!1):k,h=P=>bu(P,!1,c),d=c.onStop=()=>{const P=As.get(c);if(P){if(a)a(P,4);else for(const G of P)G();As.delete(c)}},t?s?k(!0):S=c.run():i?i(k.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function Ot(e,t=1/0,n){if(t<=0||!be(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ne(e))Ot(e.value,t,n);else if(Y(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(Hs(e)||un(e))e.forEach(s=>{Ot(s,t,n)});else if(vl(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function es(e,t,n,s){try{return s?e(...s):e()}catch(o){Qs(o,t,n)}}function at(e,t,n,s){if(se(e)){const o=es(e,t,n,s);return o&&gl(o)&&o.catch(r=>{Qs(r,t,n)}),o}if(Y(e)){const o=[];for(let r=0;r<e.length;r++)o.push(at(e[r],t,n,s));return o}}function Qs(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||we;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,a,u)===!1)return}l=l.parent}if(r){$t(),es(r,null,10,[e,a,u]),Pt();return}}wu(e,n,o,s,i)}function wu(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Be=[];let yt=-1;const dn=[];let Nt=null,ln=0;const Hl=Promise.resolve();let Rs=null;function gn(e){const t=Rs||Hl;return e?t.then(this?e.bind(this):e):t}function Cu(e){let t=yt+1,n=Be.length;for(;t<n;){const s=t+n>>>1,o=Be[s],r=zn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function hr(e){if(!(e.flags&1)){const t=zn(e),n=Be[Be.length-1];!n||!(e.flags&2)&&t>=zn(n)?Be.push(e):Be.splice(Cu(t),0,e),e.flags|=1,Vl()}}function Vl(){Rs||(Rs=Hl.then(zl))}function Su(e){Y(e)?dn.push(...e):Nt&&e.id===-1?Nt.splice(ln+1,0,e):e.flags&1||(dn.push(e),e.flags|=1),Vl()}function Dr(e,t,n=yt+1){for(;n<Be.length;n++){const s=Be[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Be.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ql(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>zn(n)-zn(s));if(dn.length=0,Nt){Nt.push(...t);return}for(Nt=t,ln=0;ln<Nt.length;ln++){const n=Nt[ln];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Nt=null,ln=0}}const zn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zl(e){try{for(yt=0;yt<Be.length;yt++){const t=Be[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),es(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Be.length;yt++){const t=Be[yt];t&&(t.flags&=-2)}yt=-1,Be.length=0,ql(),Rs=null,(Be.length||dn.length)&&zl()}}let Qe=null,Kl=null;function ks(e){const t=Qe;return Qe=e,Kl=e&&e.type.__scopeId||null,t}function At(e,t=Qe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ps(-1);const r=ks(t);let i;try{i=e(...o)}finally{ks(r),s._d&&Ps(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Vt(e,t){if(Qe===null)return e;const n=to(Qe),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=we]=t[o];r&&(se(r)&&(r={mounted:r,updated:r}),r.deep&&Ot(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Wt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[s];a&&($t(),at(a,n,8,[e.el,l,e,t]),Pt())}}const Wl=Symbol("_vte"),Gl=e=>e.__isTeleport,Dn=e=>e&&(e.disabled||e.disabled===""),Nr=e=>e&&(e.defer||e.defer===""),Fr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ur=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Do=(e,t)=>{const n=e&&e.to;return Ee(n)?t?t(n):null:n},Jl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:b,createComment:y}}=u,x=Dn(t.props);let{shapeFlag:S,children:k,dynamicChildren:P}=t;if(e==null){const G=t.el=b(""),I=t.anchor=b("");h(G,n,s),h(I,n,s);const M=(C,O)=>{S&16&&c(k,C,O,o,r,i,l,a)},A=()=>{const C=t.target=Do(t.props,v),O=Zl(C,t,b,h);C&&(i!=="svg"&&Fr(C)?i="svg":i!=="mathml"&&Ur(C)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(C),x||(M(C,O),hs(t,!1)))};x&&(M(n,I),hs(t,!0)),Nr(t.props)?(t.el.__isMounted=!1,je(()=>{A(),delete t.el.__isMounted},r)):A()}else{if(Nr(t.props)&&e.el.__isMounted===!1){je(()=>{Jl.process(e,t,n,s,o,r,i,l,a,u)},r);return}t.el=e.el,t.targetStart=e.targetStart;const G=t.anchor=e.anchor,I=t.target=e.target,M=t.targetAnchor=e.targetAnchor,A=Dn(e.props),C=A?n:I,O=A?G:M;if(i==="svg"||Fr(I)?i="svg":(i==="mathml"||Ur(I))&&(i="mathml"),P?(d(e.dynamicChildren,P,C,o,r,i,l),vr(e,t,!0)):a||f(e,t,C,O,o,r,i,l,!1),x)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):us(t,n,G,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Do(t.props,v);F&&us(t,F,null,u,0)}else A&&us(t,I,M,u,1);hs(t,x)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(o(u),o(c)),r&&o(a),i&16){const h=r||!Dn(d);for(let v=0;v<l.length;v++){const b=l[v];s(b,t,n,h,!!b.dynamicChildren)}}},move:us,hydrate:xu};function us(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,f=r===2;if(f&&s(i,t,n),(!f||Dn(c))&&a&16)for(let d=0;d<u.length;d++)o(u[d],t,n,2);f&&s(l,t,n)}function xu(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},f){function d(b,y,x,S){y.anchor=f(i(b),y,l(b),n,s,o,r),y.targetStart=x,y.targetAnchor=S}const h=t.target=Do(t.props,a),v=Dn(t.props);if(h){const b=h._lpa||h.firstChild;if(t.shapeFlag&16)if(v)d(e,t,b,b&&i(b));else{t.anchor=i(e);let y=b;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}t.targetAnchor||Zl(h,t,c,u),f(b&&i(b),t,h,n,s,o,r)}hs(t,v)}else v&&t.shapeFlag&16&&d(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Ql=Jl;function hs(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 Zl(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Wl]=r,e&&(s(o,e),s(r,e)),r}const Rt=Symbol("_leaveCb"),fs=Symbol("_enterCb");function Eu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return st(()=>{e.isMounted=!0}),ra(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],Xl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Yl=e=>{const t=e.subTree;return t.component?Yl(t.component):t},Tu={name:"BaseTransition",props:Xl,setup(e,{slots:t}){const n=Ra(),s=Eu();return()=>{const o=t.default&&na(t.default(),!0);if(!o||!o.length)return;const r=ea(o),i=he(e),{mode:l}=i;if(s.isLeaving)return vo(r);const a=jr(r);if(!a)return vo(r);let u=No(a,i,s,n,f=>u=f);a.type!==He&&Kn(a,u);let c=n.subTree&&jr(n.subTree);if(c&&c.type!==He&&!Xt(c,a)&&Yl(n).type!==He){let f=No(c,i,s,n);if(Kn(c,f),l==="out-in"&&a.type!==He)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},vo(r);l==="in-out"&&a.type!==He?f.delayLeave=(d,h,v)=>{const b=ta(s,c);b[String(c.key)]=c,d[Rt]=()=>{h(),d[Rt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function ea(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==He){t=n;break}}return t}const Au=Tu;function ta(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 No(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:y,onAppear:x,onAfterAppear:S,onAppearCancelled:k}=t,P=String(e.key),G=ta(n,e),I=(C,O)=>{C&&at(C,s,9,O)},M=(C,O)=>{const F=O[1];I(C,O),Y(C)?C.every(U=>U.length<=1)&&F():C.length<=1&&F()},A={mode:i,persisted:l,beforeEnter(C){let O=a;if(!n.isMounted)if(r)O=y||a;else return;C[Rt]&&C[Rt](!0);const F=G[P];F&&Xt(e,F)&&F.el[Rt]&&F.el[Rt](),I(O,[C])},enter(C){let O=u,F=c,U=f;if(!n.isMounted)if(r)O=x||u,F=S||c,U=k||f;else return;let ie=!1;const le=C[fs]=xe=>{ie||(ie=!0,xe?I(U,[C]):I(F,[C]),A.delayedLeave&&A.delayedLeave(),C[fs]=void 0)};O?M(O,[C,le]):le()},leave(C,O){const F=String(e.key);if(C[fs]&&C[fs](!0),n.isUnmounting)return O();I(d,[C]);let U=!1;const ie=C[Rt]=le=>{U||(U=!0,O(),le?I(b,[C]):I(v,[C]),C[Rt]=void 0,G[F]===e&&delete G[F])};G[F]=e,h?M(h,[C,ie]):ie()},clone(C){const O=No(C,t,n,s,o);return o&&o(O),O}};return A}function vo(e){if(Zs(e))return e=qt(e),e.children=null,e}function jr(e){if(!Zs(e))return Gl(e.type)&&e.children?ea(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&&se(n.default))return n.default()}}function Kn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Kn(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 na(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===$e?(i.patchFlag&128&&o++,s=s.concat(na(i.children,t,l))):(t||i.type!==He)&&s.push(l!=null?qt(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function Fe(e,t){return se(e)?Pe({name:e.name},t,{setup:e}):e}function sa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Os=new WeakMap;function Nn(e,t,n,s,o=!1){if(Y(e)){e.forEach((v,b)=>Nn(v,t&&(Y(t)?t[b]:t),n,s,o));return}if(Fn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Nn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?to(s.component):s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,c=l.refs===we?l.refs={}:l.refs,f=l.setupState,d=he(f),h=f===we?hl:v=>me(d,v);if(u!=null&&u!==a){if(Br(t),Ee(u))c[u]=null,h(u)&&(f[u]=null);else if(Ne(u)){u.value=null;const v=t;v.k&&(c[v.k]=null)}}if(se(a))es(a,l,12,[i,c]);else{const v=Ee(a),b=Ne(a);if(v||b){const y=()=>{if(e.f){const x=v?h(a)?f[a]:c[a]:a.value;if(o)Y(x)&&rr(x,r);else if(Y(x))x.includes(r)||x.push(r);else if(v)c[a]=[r],h(a)&&(f[a]=c[a]);else{const S=[r];a.value=S,e.k&&(c[e.k]=S)}}else v?(c[a]=i,h(a)&&(f[a]=i)):b&&(a.value=i,e.k&&(c[e.k]=i))};if(i){const x=()=>{y(),Os.delete(e)};x.id=-1,Os.set(e,x),je(x,n)}else Br(e),y()}}}function Br(e){const t=Os.get(e);t&&(t.flags|=8,Os.delete(e))}zs().requestIdleCallback;zs().cancelIdleCallback;const Fn=e=>!!e.type.__asyncLoader,Zs=e=>e.type.__isKeepAlive;function Ru(e,t){oa(e,"a",t)}function ku(e,t){oa(e,"da",t)}function oa(e,t,n=Me){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Zs(o.parent.vnode)&&Ou(s,t,n,o),o=o.parent}}function Ou(e,t,n,s){const o=Xs(t,e,s,!0);ts(()=>{rr(s[t],o)},n)}function Xs(e,t,n=Me,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{$t();const l=ns(n),a=at(t,n,e,i);return l(),Pt(),a});return s?o.unshift(r):o.push(r),r}}const It=e=>(t,n=Me)=>{(!Gn||e==="sp")&&Xs(e,(...s)=>t(...s),n)},$u=It("bm"),st=It("m"),Pu=It("bu"),Iu=It("u"),ra=It("bum"),ts=It("um"),Lu=It("sp"),Mu=It("rtg"),Du=It("rtc");function Nu(e,t=Me){Xs("ec",e,t)}const ia="components";function Hr(e,t){return aa(ia,e,!0,t)||e}const la=Symbol.for("v-ndc");function Fu(e){return Ee(e)?aa(ia,e,!1)||e:e||la}function aa(e,t,n=!0,s=!1){const o=Qe||Me;if(o){const r=o.type;{const l=Tf(r,!1);if(l&&(l===t||l===nt(t)||l===qs(nt(t))))return r}const i=Vr(o[e]||r[e],t)||Vr(o.appContext[e],t);return!i&&s?r:i}}function Vr(e,t){return e&&(e[t]||e[nt(t)]||e[qs(nt(t))])}function mn(e,t,n,s){let o;const r=n,i=Y(e);if(i||Ee(e)){const l=i&&fn(e);let a=!1,u=!1;l&&(a=!tt(e),u=Ht(e),e=Gs(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(a?u?Ts(Ie(e[c])):Ie(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(be(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];o[a]=t(e[c],c,a,r)}}else o=[];return o}const Fo=e=>e?ka(e)?to(e):Fo(e.parent):null,Un=Pe(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=>Fo(e.parent),$root:e=>Fo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ua(e),$forceUpdate:e=>e.f||(e.f=()=>{hr(e.update)}),$nextTick:e=>e.n||(e.n=gn.bind(e.proxy)),$watch:e=>rf.bind(e)}),yo=(e,t)=>e!==we&&!e.__isScriptSetup&&me(e,t),Uu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const h=i[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(yo(s,t))return i[t]=1,s[t];if(o!==we&&me(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&me(u,t))return i[t]=3,r[t];if(n!==we&&me(n,t))return i[t]=4,n[t];Uo&&(i[t]=0)}}const c=Un[t];let f,d;if(c)return t==="$attrs"&&Le(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==we&&me(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return yo(o,t)?(o[t]=n,!0):s!==we&&me(s,t)?(s[t]=n,!0):me(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,type:i}},l){let a,u;return!!(n[l]||e!==we&&l[0]!=="$"&&me(e,l)||yo(t,l)||(a=r[0])&&me(a,l)||me(s,l)||me(Un,l)||me(o.config.globalProperties,l)||(u=i.__cssModules)&&u[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function qr(e){return Y(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Uo=!0;function ju(e){const t=ua(e),n=e.proxy,s=e.ctx;Uo=!1,t.beforeCreate&&zr(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:b,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:k,unmounted:P,render:G,renderTracked:I,renderTriggered:M,errorCaptured:A,serverPrefetch:C,expose:O,inheritAttrs:F,components:U,directives:ie,filters:le}=t;if(u&&Bu(u,s,null),i)for(const pe in i){const ae=i[pe];se(ae)&&(s[pe]=ae.bind(n))}if(o){const pe=o.call(n,n);be(pe)&&(e.data=Js(pe))}if(Uo=!0,r)for(const pe in r){const ae=r[pe],Xe=se(ae)?ae.bind(n,n):se(ae.get)?ae.get.bind(n,n):_t,ft=!se(ae)&&se(ae.set)?ae.set.bind(n):_t,ke=ye({get:Xe,set:ft});Object.defineProperty(s,pe,{enumerable:!0,configurable:!0,get:()=>ke.value,set:Te=>ke.value=Te})}if(l)for(const pe in l)ca(l[pe],s,n,pe);if(a){const pe=se(a)?a.call(n):a;Reflect.ownKeys(pe).forEach(ae=>{gs(ae,pe[ae])})}c&&zr(c,e,"c");function fe(pe,ae){Y(ae)?ae.forEach(Xe=>pe(Xe.bind(n))):ae&&pe(ae.bind(n))}if(fe($u,f),fe(st,d),fe(Pu,h),fe(Iu,v),fe(Ru,b),fe(ku,y),fe(Nu,A),fe(Du,I),fe(Mu,M),fe(ra,S),fe(ts,P),fe(Lu,C),Y(O))if(O.length){const pe=e.exposed||(e.exposed={});O.forEach(ae=>{Object.defineProperty(pe,ae,{get:()=>n[ae],set:Xe=>n[ae]=Xe,enumerable:!0})})}else e.exposed||(e.exposed={});G&&e.render===_t&&(e.render=G),F!=null&&(e.inheritAttrs=F),U&&(e.components=U),ie&&(e.directives=ie),C&&sa(e)}function Bu(e,t,n=_t){Y(e)&&(e=jo(e));for(const s in e){const o=e[s];let r;be(o)?"default"in o?r=lt(o.from||s,o.default,!0):r=lt(o.from||s):r=lt(o),Ne(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function zr(e,t,n){at(Y(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ca(e,t,n,s){let o=s.includes(".")?Ca(n,s):()=>n[s];if(Ee(e)){const r=t[e];se(r)&&wt(o,r)}else if(se(e))wt(o,e.bind(n));else if(be(e))if(Y(e))e.forEach(r=>ca(r,t,n,s));else{const r=se(e.handler)?e.handler.bind(n):t[e.handler];se(r)&&wt(o,r,e)}}function ua(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>$s(a,u,i,!0)),$s(a,t,i)),be(t)&&r.set(t,a),a}function $s(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&$s(e,r,n,!0),o&&o.forEach(i=>$s(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Hu[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Hu={data:Kr,props:Wr,emits:Wr,methods:Pn,computed:Pn,beforeCreate:Ue,created:Ue,beforeMount:Ue,mounted:Ue,beforeUpdate:Ue,updated:Ue,beforeDestroy:Ue,beforeUnmount:Ue,destroyed:Ue,unmounted:Ue,activated:Ue,deactivated:Ue,errorCaptured:Ue,serverPrefetch:Ue,components:Pn,directives:Pn,watch:qu,provide:Kr,inject:Vu};function Kr(e,t){return t?e?function(){return Pe(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Vu(e,t){return Pn(jo(e),jo(t))}function jo(e){if(Y(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ue(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?Pe(Object.create(null),e,t):t}function Wr(e,t){return e?Y(e)&&Y(t)?[...new Set([...e,...t])]:Pe(Object.create(null),qr(e),qr(t??{})):t}function qu(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const s in t)n[s]=Ue(e[s],t[s]);return n}function fa(){return{app:null,config:{isNativeTag:hl,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 zu=0;function Ku(e,t){return function(s,o=null){se(s)||(s=Pe({},s)),o!=null&&!be(o)&&(o=null);const r=fa(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:zu++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Rf,get config(){return r.config},set config(c){},use(c,...f){return i.has(c)||(c&&se(c.install)?(i.add(c),c.install(u,...f)):se(c)&&(i.add(c),c(u,...f))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,f){return f?(r.components[c]=f,u):r.components[c]},directive(c,f){return f?(r.directives[c]=f,u):r.directives[c]},mount(c,f,d){if(!a){const h=u._ceVNode||B(s,o);return h.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),e(h,c,d),a=!0,u._container=c,c.__vue_app__=u,to(h.component)}},onUnmount(c){l.push(c)},unmount(){a&&(at(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return r.provides[c]=f,u},runWithContext(c){const f=pn;pn=u;try{return c()}finally{pn=f}}};return u}}let pn=null;function gs(e,t){if(Me){let n=Me.provides;const s=Me.parent&&Me.parent.provides;s===n&&(n=Me.provides=Object.create(s)),n[e]=t}}function lt(e,t,n=!1){const s=Ra();if(s||pn){let o=pn?pn._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&&se(t)?t.call(s&&s.proxy):t}}const da={},pa=()=>Object.create(da),ha=e=>Object.getPrototypeOf(e)===da;function Wu(e,t,n,s=!1){const o={},r=pa();e.propsDefaults=Object.create(null),ga(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Nl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Gu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=he(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Ys(e.emitsOptions,d))continue;const h=t[d];if(a)if(me(r,d))h!==r[d]&&(r[d]=h,u=!0);else{const v=nt(d);o[v]=Bo(a,l,v,h,e,!1)}else h!==r[d]&&(r[d]=h,u=!0)}}}else{ga(e,t,o,r)&&(u=!0);let c;for(const f in l)(!t||!me(t,f)&&((c=on(f))===f||!me(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=Bo(a,l,f,void 0,e,!0)):delete o[f]);if(r!==l)for(const f in r)(!t||!me(t,f))&&(delete r[f],u=!0)}u&&kt(e.attrs,"set","")}function ga(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(In(a))continue;const u=t[a];let c;o&&me(o,c=nt(a))?!r||!r.includes(c)?n[c]=u:(l||(l={}))[c]=u:Ys(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,i=!0)}if(r){const a=he(n),u=l||we;for(let c=0;c<r.length;c++){const f=r[c];n[f]=Bo(o,a,f,u[f],e,!me(u,f))}}return i}function Bo(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=me(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&se(a)){const{propsDefaults:u}=o;if(n in u)s=u[n];else{const c=ns(o);s=u[n]=a.call(null,t),c()}}else s=a;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===on(n))&&(s=!0))}return s}const Ju=new WeakMap;function ma(e,t,n=!1){const s=n?Ju:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!se(e)){const c=f=>{a=!0;const[d,h]=ma(f,t,!0);Pe(i,d),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return be(e)&&s.set(e,cn),cn;if(Y(r))for(let c=0;c<r.length;c++){const f=nt(r[c]);Gr(f)&&(i[f]=we)}else if(r)for(const c in r){const f=nt(c);if(Gr(f)){const d=r[c],h=i[f]=Y(d)||se(d)?{type:d}:Pe({},d),v=h.type;let b=!1,y=!0;if(Y(v))for(let x=0;x<v.length;++x){const S=v[x],k=se(S)&&S.name;if(k==="Boolean"){b=!0;break}else k==="String"&&(y=!1)}else b=se(v)&&v.name==="Boolean";h[0]=b,h[1]=y,(b||me(h,"default"))&&l.push(f)}}const u=[i,l];return be(e)&&s.set(e,u),u}function Gr(e){return e[0]!=="$"&&!In(e)}const gr=e=>e==="_"||e==="_ctx"||e==="$stable",mr=e=>Y(e)?e.map(bt):[bt(e)],Qu=(e,t,n)=>{if(t._n)return t;const s=At((...o)=>mr(t(...o)),n);return s._c=!1,s},va=(e,t,n)=>{const s=e._ctx;for(const o in e){if(gr(o))continue;const r=e[o];if(se(r))t[o]=Qu(o,r,s);else if(r!=null){const i=mr(r);t[o]=()=>i}}},ya=(e,t)=>{const n=mr(t);e.slots.default=()=>n},ba=(e,t,n)=>{for(const s in t)(n||!gr(s))&&(e[s]=t[s])},Zu=(e,t,n)=>{const s=e.slots=pa();if(e.vnode.shapeFlag&32){const o=t._;o?(ba(s,t,n),n&&yl(s,"_",o,!0)):va(t,s)}else t&&ya(e,t)},Xu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=we;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:ba(o,t,n):(r=!t.$stable,va(t,o)),i=t}else t&&(ya(e,t),i={default:1});if(r)for(const l in o)!gr(l)&&i[l]==null&&delete o[l]},je=hf;function Yu(e){return ef(e)}function ef(e,t){const n=zs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=_t,insertStaticContent:v}=e,b=(g,m,_,T=null,$=null,E=null,q=void 0,H=null,j=!!m.dynamicChildren)=>{if(g===m)return;g&&!Xt(g,m)&&(T=R(g),Te(g,$,E,!0),g=null),m.patchFlag===-2&&(j=!1,m.dynamicChildren=null);const{type:D,ref:ee,shapeFlag:K}=m;switch(D){case eo:y(g,m,_,T);break;case He:x(g,m,_,T);break;case ms:g==null&&S(m,_,T,q);break;case $e:U(g,m,_,T,$,E,q,H,j);break;default:K&1?G(g,m,_,T,$,E,q,H,j):K&6?ie(g,m,_,T,$,E,q,H,j):(K&64||K&128)&&D.process(g,m,_,T,$,E,q,H,j,Z)}ee!=null&&$?Nn(ee,g&&g.ref,E,m||g,!m):ee==null&&g&&g.ref!=null&&Nn(g.ref,null,E,g,!0)},y=(g,m,_,T)=>{if(g==null)s(m.el=l(m.children),_,T);else{const $=m.el=g.el;m.children!==g.children&&u($,m.children)}},x=(g,m,_,T)=>{g==null?s(m.el=a(m.children||""),_,T):m.el=g.el},S=(g,m,_,T)=>{[g.el,g.anchor]=v(g.children,m,_,T,g.el,g.anchor)},k=({el:g,anchor:m},_,T)=>{let $;for(;g&&g!==m;)$=d(g),s(g,_,T),g=$;s(m,_,T)},P=({el:g,anchor:m})=>{let _;for(;g&&g!==m;)_=d(g),o(g),g=_;o(m)},G=(g,m,_,T,$,E,q,H,j)=>{m.type==="svg"?q="svg":m.type==="math"&&(q="mathml"),g==null?I(m,_,T,$,E,q,H,j):C(g,m,$,E,q,H,j)},I=(g,m,_,T,$,E,q,H)=>{let j,D;const{props:ee,shapeFlag:K,transition:X,dirs:ne}=g;if(j=g.el=i(g.type,E,ee&&ee.is,ee),K&8?c(j,g.children):K&16&&A(g.children,j,null,T,$,bo(g,E),q,H),ne&&Wt(g,null,T,"created"),M(j,g,g.scopeId,q,T),ee){for(const Ce in ee)Ce!=="value"&&!In(Ce)&&r(j,Ce,null,ee[Ce],E,T);"value"in ee&&r(j,"value",null,ee.value,E),(D=ee.onVnodeBeforeMount)&&mt(D,T,g)}ne&&Wt(g,null,T,"beforeMount");const de=tf($,X);de&&X.beforeEnter(j),s(j,m,_),((D=ee&&ee.onVnodeMounted)||de||ne)&&je(()=>{D&&mt(D,T,g),de&&X.enter(j),ne&&Wt(g,null,T,"mounted")},$)},M=(g,m,_,T,$)=>{if(_&&h(g,_),T)for(let E=0;E<T.length;E++)h(g,T[E]);if($){let E=$.subTree;if(m===E||xa(E.type)&&(E.ssContent===m||E.ssFallback===m)){const q=$.vnode;M(g,q,q.scopeId,q.slotScopeIds,$.parent)}}},A=(g,m,_,T,$,E,q,H,j=0)=>{for(let D=j;D<g.length;D++){const ee=g[D]=H?Ft(g[D]):bt(g[D]);b(null,ee,m,_,T,$,E,q,H)}},C=(g,m,_,T,$,E,q)=>{const H=m.el=g.el;let{patchFlag:j,dynamicChildren:D,dirs:ee}=m;j|=g.patchFlag&16;const K=g.props||we,X=m.props||we;let ne;if(_&&Gt(_,!1),(ne=X.onVnodeBeforeUpdate)&&mt(ne,_,m,g),ee&&Wt(m,g,_,"beforeUpdate"),_&&Gt(_,!0),(K.innerHTML&&X.innerHTML==null||K.textContent&&X.textContent==null)&&c(H,""),D?O(g.dynamicChildren,D,H,_,T,bo(m,$),E):q||ae(g,m,H,null,_,T,bo(m,$),E,!1),j>0){if(j&16)F(H,K,X,_,$);else if(j&2&&K.class!==X.class&&r(H,"class",null,X.class,$),j&4&&r(H,"style",K.style,X.style,$),j&8){const de=m.dynamicProps;for(let Ce=0;Ce<de.length;Ce++){const ve=de[Ce],qe=K[ve],ze=X[ve];(ze!==qe||ve==="value")&&r(H,ve,qe,ze,$,_)}}j&1&&g.children!==m.children&&c(H,m.children)}else!q&&D==null&&F(H,K,X,_,$);((ne=X.onVnodeUpdated)||ee)&&je(()=>{ne&&mt(ne,_,m,g),ee&&Wt(m,g,_,"updated")},T)},O=(g,m,_,T,$,E,q)=>{for(let H=0;H<m.length;H++){const j=g[H],D=m[H],ee=j.el&&(j.type===$e||!Xt(j,D)||j.shapeFlag&198)?f(j.el):_;b(j,D,ee,null,T,$,E,q,!0)}},F=(g,m,_,T,$)=>{if(m!==_){if(m!==we)for(const E in m)!In(E)&&!(E in _)&&r(g,E,m[E],null,$,T);for(const E in _){if(In(E))continue;const q=_[E],H=m[E];q!==H&&E!=="value"&&r(g,E,H,q,$,T)}"value"in _&&r(g,"value",m.value,_.value,$)}},U=(g,m,_,T,$,E,q,H,j)=>{const D=m.el=g?g.el:l(""),ee=m.anchor=g?g.anchor:l("");let{patchFlag:K,dynamicChildren:X,slotScopeIds:ne}=m;ne&&(H=H?H.concat(ne):ne),g==null?(s(D,_,T),s(ee,_,T),A(m.children||[],_,ee,$,E,q,H,j)):K>0&&K&64&&X&&g.dynamicChildren?(O(g.dynamicChildren,X,_,$,E,q,H),(m.key!=null||$&&m===$.subTree)&&vr(g,m,!0)):ae(g,m,_,ee,$,E,q,H,j)},ie=(g,m,_,T,$,E,q,H,j)=>{m.slotScopeIds=H,g==null?m.shapeFlag&512?$.ctx.activate(m,_,T,q,j):le(m,_,T,$,E,q,j):xe(g,m,j)},le=(g,m,_,T,$,E,q)=>{const H=g.component=wf(g,T,$);if(Zs(g)&&(H.ctx.renderer=Z),Cf(H,!1,q),H.asyncDep){if($&&$.registerDep(H,fe,q),!g.el){const j=H.subTree=B(He);x(null,j,m,_),g.placeholder=j.el}}else fe(H,g,m,_,$,E,q)},xe=(g,m,_)=>{const T=m.component=g.component;if(df(g,m,_))if(T.asyncDep&&!T.asyncResolved){pe(T,m,_);return}else T.next=m,T.update();else m.el=g.el,T.vnode=m},fe=(g,m,_,T,$,E,q)=>{const H=()=>{if(g.isMounted){let{next:K,bu:X,u:ne,parent:de,vnode:Ce}=g;{const ht=_a(g);if(ht){K&&(K.el=Ce.el,pe(g,K,q)),ht.asyncDep.then(()=>{g.isUnmounted||H()});return}}let ve=K,qe;Gt(g,!1),K?(K.el=Ce.el,pe(g,K,q)):K=Ce,X&&ps(X),(qe=K.props&&K.props.onVnodeBeforeUpdate)&&mt(qe,de,K,Ce),Gt(g,!0);const ze=Qr(g),pt=g.subTree;g.subTree=ze,b(pt,ze,f(pt.el),R(pt),g,$,E),K.el=ze.el,ve===null&&pf(g,ze.el),ne&&je(ne,$),(qe=K.props&&K.props.onVnodeUpdated)&&je(()=>mt(qe,de,K,Ce),$)}else{let K;const{el:X,props:ne}=m,{bm:de,m:Ce,parent:ve,root:qe,type:ze}=g,pt=Fn(m);Gt(g,!1),de&&ps(de),!pt&&(K=ne&&ne.onVnodeBeforeMount)&&mt(K,ve,m),Gt(g,!0);{qe.ce&&qe.ce._def.shadowRoot!==!1&&qe.ce._injectChildStyle(ze);const ht=g.subTree=Qr(g);b(null,ht,_,T,g,$,E),m.el=ht.el}if(Ce&&je(Ce,$),!pt&&(K=ne&&ne.onVnodeMounted)){const ht=m;je(()=>mt(K,ve,ht),$)}(m.shapeFlag&256||ve&&Fn(ve.vnode)&&ve.vnode.shapeFlag&256)&&g.a&&je(g.a,$),g.isMounted=!0,m=_=T=null}};g.scope.on();const j=g.effect=new Sl(H);g.scope.off();const D=g.update=j.run.bind(j),ee=g.job=j.runIfDirty.bind(j);ee.i=g,ee.id=g.uid,j.scheduler=()=>hr(ee),Gt(g,!0),D()},pe=(g,m,_)=>{m.component=g;const T=g.vnode.props;g.vnode=m,g.next=null,Gu(g,m.props,T,_),Xu(g,m.children,_),$t(),Dr(g),Pt()},ae=(g,m,_,T,$,E,q,H,j=!1)=>{const D=g&&g.children,ee=g?g.shapeFlag:0,K=m.children,{patchFlag:X,shapeFlag:ne}=m;if(X>0){if(X&128){ft(D,K,_,T,$,E,q,H,j);return}else if(X&256){Xe(D,K,_,T,$,E,q,H,j);return}}ne&8?(ee&16&&Ye(D,$,E),K!==D&&c(_,K)):ee&16?ne&16?ft(D,K,_,T,$,E,q,H,j):Ye(D,$,E,!0):(ee&8&&c(_,""),ne&16&&A(K,_,T,$,E,q,H,j))},Xe=(g,m,_,T,$,E,q,H,j)=>{g=g||cn,m=m||cn;const D=g.length,ee=m.length,K=Math.min(D,ee);let X;for(X=0;X<K;X++){const ne=m[X]=j?Ft(m[X]):bt(m[X]);b(g[X],ne,_,null,$,E,q,H,j)}D>ee?Ye(g,$,E,!0,!1,K):A(m,_,T,$,E,q,H,j,K)},ft=(g,m,_,T,$,E,q,H,j)=>{let D=0;const ee=m.length;let K=g.length-1,X=ee-1;for(;D<=K&&D<=X;){const ne=g[D],de=m[D]=j?Ft(m[D]):bt(m[D]);if(Xt(ne,de))b(ne,de,_,null,$,E,q,H,j);else break;D++}for(;D<=K&&D<=X;){const ne=g[K],de=m[X]=j?Ft(m[X]):bt(m[X]);if(Xt(ne,de))b(ne,de,_,null,$,E,q,H,j);else break;K--,X--}if(D>K){if(D<=X){const ne=X+1,de=ne<ee?m[ne].el:T;for(;D<=X;)b(null,m[D]=j?Ft(m[D]):bt(m[D]),_,de,$,E,q,H,j),D++}}else if(D>X)for(;D<=K;)Te(g[D],$,E,!0),D++;else{const ne=D,de=D,Ce=new Map;for(D=de;D<=X;D++){const Je=m[D]=j?Ft(m[D]):bt(m[D]);Je.key!=null&&Ce.set(Je.key,D)}let ve,qe=0;const ze=X-de+1;let pt=!1,ht=0;const Sn=new Array(ze);for(D=0;D<ze;D++)Sn[D]=0;for(D=ne;D<=K;D++){const Je=g[D];if(qe>=ze){Te(Je,$,E,!0);continue}let gt;if(Je.key!=null)gt=Ce.get(Je.key);else for(ve=de;ve<=X;ve++)if(Sn[ve-de]===0&&Xt(Je,m[ve])){gt=ve;break}gt===void 0?Te(Je,$,E,!0):(Sn[gt-de]=D+1,gt>=ht?ht=gt:pt=!0,b(Je,m[gt],_,null,$,E,q,H,j),qe++)}const kr=pt?nf(Sn):cn;for(ve=kr.length-1,D=ze-1;D>=0;D--){const Je=de+D,gt=m[Je],Or=m[Je+1],$r=Je+1<ee?Or.el||Or.placeholder:T;Sn[D]===0?b(null,gt,_,$r,$,E,q,H,j):pt&&(ve<0||D!==kr[ve]?ke(gt,_,$r,2):ve--)}}},ke=(g,m,_,T,$=null)=>{const{el:E,type:q,transition:H,children:j,shapeFlag:D}=g;if(D&6){ke(g.component.subTree,m,_,T);return}if(D&128){g.suspense.move(m,_,T);return}if(D&64){q.move(g,m,_,Z);return}if(q===$e){s(E,m,_);for(let K=0;K<j.length;K++)ke(j[K],m,_,T);s(g.anchor,m,_);return}if(q===ms){k(g,m,_);return}if(T!==2&&D&1&&H)if(T===0)H.beforeEnter(E),s(E,m,_),je(()=>H.enter(E),$);else{const{leave:K,delayLeave:X,afterLeave:ne}=H,de=()=>{g.ctx.isUnmounted?o(E):s(E,m,_)},Ce=()=>{E._isLeaving&&E[Rt](!0),K(E,()=>{de(),ne&&ne()})};X?X(E,de,Ce):Ce()}else s(E,m,_)},Te=(g,m,_,T=!1,$=!1)=>{const{type:E,props:q,ref:H,children:j,dynamicChildren:D,shapeFlag:ee,patchFlag:K,dirs:X,cacheIndex:ne}=g;if(K===-2&&($=!1),H!=null&&($t(),Nn(H,null,_,g,!0),Pt()),ne!=null&&(m.renderCache[ne]=void 0),ee&256){m.ctx.deactivate(g);return}const de=ee&1&&X,Ce=!Fn(g);let ve;if(Ce&&(ve=q&&q.onVnodeBeforeUnmount)&&mt(ve,m,g),ee&6)Kt(g.component,_,T);else{if(ee&128){g.suspense.unmount(_,T);return}de&&Wt(g,null,m,"beforeUnmount"),ee&64?g.type.remove(g,m,_,Z,T):D&&!D.hasOnce&&(E!==$e||K>0&&K&64)?Ye(D,m,_,!1,!0):(E===$e&&K&384||!$&&ee&16)&&Ye(j,m,_),T&&dt(g)}(Ce&&(ve=q&&q.onVnodeUnmounted)||de)&&je(()=>{ve&&mt(ve,m,g),de&&Wt(g,null,m,"unmounted")},_)},dt=g=>{const{type:m,el:_,anchor:T,transition:$}=g;if(m===$e){rt(_,T);return}if(m===ms){P(g);return}const E=()=>{o(_),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(g.shapeFlag&1&&$&&!$.persisted){const{leave:q,delayLeave:H}=$,j=()=>q(_,E);H?H(g.el,E,j):j()}else E()},rt=(g,m)=>{let _;for(;g!==m;)_=d(g),o(g),g=_;o(m)},Kt=(g,m,_)=>{const{bum:T,scope:$,job:E,subTree:q,um:H,m:j,a:D}=g;Jr(j),Jr(D),T&&ps(T),$.stop(),E&&(E.flags|=8,Te(q,g,m,_)),H&&je(H,m),je(()=>{g.isUnmounted=!0},m)},Ye=(g,m,_,T=!1,$=!1,E=0)=>{for(let q=E;q<g.length;q++)Te(g[q],m,_,T,$)},R=g=>{if(g.shapeFlag&6)return R(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const m=d(g.anchor||g.el),_=m&&m[Wl];return _?d(_):m};let J=!1;const z=(g,m,_)=>{g==null?m._vnode&&Te(m._vnode,null,null,!0):b(m._vnode||null,g,m,null,null,null,_),m._vnode=g,J||(J=!0,Dr(),ql(),J=!1)},Z={p:b,um:Te,m:ke,r:dt,mt:le,mc:A,pc:ae,pbc:O,n:R,o:e};return{render:z,hydrate:void 0,createApp:Ku(z)}}function bo({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 Gt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vr(e,t,n=!1){const s=e.children,o=t.children;if(Y(s)&&Y(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=Ft(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&vr(i,l)),l.type===eo&&l.patchFlag!==-1&&(l.el=i.el),l.type===He&&!l.el&&(l.el=i.el)}}function nf(e){const t=e.slice(),n=[0];let s,o,r,i,l;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<u?r=l+1:i=l;u<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function _a(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_a(t)}function Jr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sf=Symbol.for("v-scx"),of=()=>lt(sf);function wt(e,t,n){return wa(e,t,n)}function wa(e,t,n=we){const{immediate:s,deep:o,flush:r,once:i}=n,l=Pe({},n),a=t&&s||!t&&r!=="post";let u;if(Gn){if(r==="sync"){const h=of();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=_t,h.resume=_t,h.pause=_t,h}}const c=Me;l.call=(h,v,b)=>at(h,c,v,b);let f=!1;r==="post"?l.scheduler=h=>{je(h,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(h,v)=>{v?h():hr(h)}),l.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=_u(e,t,l);return Gn&&(u?u.push(d):a&&d()),d}function rf(e,t,n){const s=this.proxy,o=Ee(e)?e.includes(".")?Ca(s,e):()=>s[e]:e.bind(s,s);let r;se(t)?r=t:(r=t.handler,n=t);const i=ns(this),l=wa(o,r.bind(s),n);return i(),l}function Ca(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 lf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nt(t)}Modifiers`]||e[`${on(t)}Modifiers`];function af(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||we;let o=n;const r=t.startsWith("update:"),i=r&&lf(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>Ee(c)?c.trim():c)),i.number&&(o=n.map(Es)));let l,a=s[l=fo(t)]||s[l=fo(nt(t))];!a&&r&&(a=s[l=fo(on(t))]),a&&at(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,at(u,e,6,o)}}const cf=new WeakMap;function Sa(e,t,n=!1){const s=n?cf:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!se(e)){const a=u=>{const c=Sa(u,t,!0);c&&(l=!0,Pe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(be(e)&&s.set(e,null),null):(Y(r)?r.forEach(a=>i[a]=null):Pe(i,r),be(e)&&s.set(e,i),i)}function Ys(e,t){return!e||!Bs(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,on(t))||me(e,t))}function Qr(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:v,inheritAttrs:b}=e,y=ks(e);let x,S;try{if(n.shapeFlag&4){const P=o||s,G=P;x=bt(u.call(G,P,c,f,h,d,v)),S=l}else{const P=t;x=bt(P.length>1?P(f,{attrs:l,slots:i,emit:a}):P(f,null)),S=t.props?l:uf(l)}}catch(P){jn.length=0,Qs(P,e,1),x=B(He)}let k=x;if(S&&b!==!1){const P=Object.keys(S),{shapeFlag:G}=k;P.length&&G&7&&(r&&P.some(or)&&(S=ff(S,r)),k=qt(k,S,!1,!0))}return n.dirs&&(k=qt(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Kn(k,n.transition),x=k,ks(y),x}const uf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bs(n))&&((t||(t={}))[n]=e[n]);return t},ff=(e,t)=>{const n={};for(const s in e)(!or(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function df(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Zr(s,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==s[d]&&!Ys(u,d))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Zr(s,i,u):!0:!!i;return!1}function Zr(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]&&!Ys(n,r))return!0}return!1}function pf({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 xa=e=>e.__isSuspense;function hf(e,t){t&&t.pendingBranch?Y(e)?t.effects.push(...e):t.effects.push(e):Su(e)}const $e=Symbol.for("v-fgt"),eo=Symbol.for("v-txt"),He=Symbol.for("v-cmt"),ms=Symbol.for("v-stc"),jn=[];let Ze=null;function L(e=!1){jn.push(Ze=e?null:[])}function gf(){jn.pop(),Ze=jn[jn.length-1]||null}let Wn=1;function Ps(e,t=!1){Wn+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function Ea(e){return e.dynamicChildren=Wn>0?Ze||cn:null,gf(),Wn>0&&Ze&&Ze.push(e),e}function N(e,t,n,s,o,r){return Ea(p(e,t,n,s,o,r,!0))}function Ve(e,t,n,s,o){return Ea(B(e,t,n,s,o,!0))}function Is(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Ta=({key:e})=>e??null,vs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ee(e)||Ne(e)||se(e)?{i:Qe,r:e,k:t,f:!!n}:e:null);function p(e,t=null,n=null,s=0,o=null,r=e===$e?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ta(t),ref:t&&vs(t),scopeId:Kl,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:Qe};return l?(yr(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Ee(n)?8:16),Wn>0&&!i&&Ze&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ze.push(a),a}const B=mf;function mf(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===la)&&(e=He),Is(e)){const l=qt(e,t,!0);return n&&yr(l,n),Wn>0&&!r&&Ze&&(l.shapeFlag&6?Ze[Ze.indexOf(e)]=l:Ze.push(l)),l.patchFlag=-2,l}if(Af(e)&&(e=e.__vccOpts),t){t=vf(t);let{class:l,style:a}=t;l&&!Ee(l)&&(t.class=oe(l)),be(a)&&(pr(a)&&!Y(a)&&(a=Pe({},a)),t.style=Ks(a))}const i=Ee(e)?1:xa(e)?128:Gl(e)?64:be(e)?4:se(e)?2:0;return p(e,t,n,s,o,i,r,!0)}function vf(e){return e?pr(e)||ha(e)?Pe({},e):e:null}function qt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?yf(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ta(u),ref:t&&t.ref?n&&r?Y(r)?r.concat(vs(t)):[r,vs(t)]:vs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$e?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Kn(c,a.clone(c)),c}function ue(e=" ",t=0){return B(eo,null,e,t)}function Aa(e,t){const n=B(ms,null,e);return n.staticCount=t,n}function ce(e="",t=!1){return t?(L(),Ve(He,null,e)):B(He,null,e)}function bt(e){return e==null||typeof e=="boolean"?B(He):Y(e)?B($e,null,e.slice()):Is(e)?Ft(e):B(eo,null,String(e))}function Ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function yr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Y(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),yr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!ha(t)?t._ctx=Qe:o===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Qe},n=32):(t=String(t),s&64?(n=16,t=[ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function yf(...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=oe([t.class,s.class]));else if(o==="style")t.style=Ks([t.style,s.style]);else if(Bs(o)){const r=t[o],i=s[o];i&&r!==i&&!(Y(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function mt(e,t,n,s=null){at(e,t,7,[n,s])}const bf=fa();let _f=0;function wf(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||bf,r={uid:_f++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Cl(!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:ma(s,o),emitsOptions:Sa(s,o),emit:null,emitted:null,propsDefaults:we,inheritAttrs:s.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,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=af.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const Ra=()=>Me||Qe;let Ls,Ho;{const e=zs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Ho=t("__VUE_SSR_SETTERS__",n=>Gn=n)}const ns=e=>{const t=Me;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Xr=()=>{Me&&Me.scope.off(),Ls(null)};function ka(e){return e.vnode.shapeFlag&4}let Gn=!1;function Cf(e,t=!1,n=!1){t&&Ho(t);const{props:s,children:o}=e.vnode,r=ka(e);Wu(e,s,r,t),Zu(e,o,n||t);const i=r?Sf(e,t):void 0;return t&&Ho(!1),i}function Sf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uu);const{setup:s}=n;if(s){$t();const o=e.setupContext=s.length>1?Ef(e):null,r=ns(e),i=es(s,e,0,[e.props,o]),l=gl(i);if(Pt(),r(),(l||e.sp)&&!Fn(e)&&sa(e),l){if(i.then(Xr,Xr),t)return i.then(a=>{Yr(e,a)}).catch(a=>{Qs(a,e,0)});e.asyncDep=i}else Yr(e,i)}else Oa(e)}function Yr(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=Bl(t)),Oa(e)}function Oa(e,t,n){const s=e.type;e.render||(e.render=s.render||_t);{const o=ns(e);$t();try{ju(e)}finally{Pt(),o()}}}const xf={get(e,t){return Le(e,"get",""),e[t]}};function Ef(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xf),slots:e.slots,emit:e.emit,expose:t}}function to(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bl(Fl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Un)return Un[n](e)},has(t,n){return n in t||n in Un}})):e.proxy}function Tf(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Af(e){return se(e)&&"__vccOpts"in e}const ye=(e,t)=>yu(e,t,Gn);function zt(e,t,n){try{Ps(-1);const s=arguments.length;return s===2?be(t)&&!Y(t)?Is(t)?B(e,null,[t]):B(e,t):B(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Is(n)&&(n=[n]),B(e,t,n))}finally{Ps(1)}}const Rf="3.5.22";/**
|
||
* @vue/runtime-dom v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Vo;const ei=typeof window<"u"&&window.trustedTypes;if(ei)try{Vo=ei.createPolicy("vue",{createHTML:e=>e})}catch{}const $a=Vo?e=>Vo.createHTML(e):e=>e,kf="http://www.w3.org/2000/svg",Of="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,ti=Tt&&Tt.createElement("template"),$f={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"?Tt.createElementNS(kf,e):t==="mathml"?Tt.createElementNS(Of,e):n?Tt.createElement(e,{is:n}):Tt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{ti.innerHTML=$a(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=ti.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",En="animation",Jn=Symbol("_vtc"),Pa={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},Pf=Pe({},Xl,Pa),If=e=>(e.displayName="Transition",e.props=Pf,e),Ia=If((e,{slots:t})=>zt(Au,Lf(e),t)),Jt=(e,t=[])=>{Y(e)?e.forEach(n=>n(...t)):e&&e(...t)},ni=e=>e?Y(e)?e.some(t=>t.length>1):e.length>1:!1;function Lf(e){const t={};for(const U in e)U in Pa||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=Mf(o),b=v&&v[0],y=v&&v[1],{onBeforeEnter:x,onEnter:S,onEnterCancelled:k,onLeave:P,onLeaveCancelled:G,onBeforeAppear:I=x,onAppear:M=S,onAppearCancelled:A=k}=t,C=(U,ie,le,xe)=>{U._enterCancelled=xe,Qt(U,ie?c:l),Qt(U,ie?u:i),le&&le()},O=(U,ie)=>{U._isLeaving=!1,Qt(U,f),Qt(U,h),Qt(U,d),ie&&ie()},F=U=>(ie,le)=>{const xe=U?M:S,fe=()=>C(ie,U,le);Jt(xe,[ie,fe]),si(()=>{Qt(ie,U?a:r),xt(ie,U?c:l),ni(xe)||oi(ie,s,b,fe)})};return Pe(t,{onBeforeEnter(U){Jt(x,[U]),xt(U,r),xt(U,i)},onBeforeAppear(U){Jt(I,[U]),xt(U,a),xt(U,u)},onEnter:F(!1),onAppear:F(!0),onLeave(U,ie){U._isLeaving=!0;const le=()=>O(U,ie);xt(U,f),U._enterCancelled?(xt(U,d),li(U)):(li(U),xt(U,d)),si(()=>{U._isLeaving&&(Qt(U,f),xt(U,h),ni(P)||oi(U,s,y,le))}),Jt(P,[U,le])},onEnterCancelled(U){C(U,!1,void 0,!0),Jt(k,[U])},onAppearCancelled(U){C(U,!0,void 0,!0),Jt(A,[U])},onLeaveCancelled(U){O(U),Jt(G,[U])}})}function Mf(e){if(e==null)return null;if(be(e))return[_o(e.enter),_o(e.leave)];{const t=_o(e);return[t,t]}}function _o(e){return jc(e)}function xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Jn]||(e[Jn]=new Set)).add(t)}function Qt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Jn];n&&(n.delete(t),n.size||(e[Jn]=void 0))}function si(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Df=0;function oi(e,t,n,s){const o=e._endId=++Df,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=Nf(e,t);if(!i)return s();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),r()},d=h=>{h.target===e&&++c>=a&&f()};setTimeout(()=>{c<a&&f()},l+1),e.addEventListener(u,d)}function Nf(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),o=s(`${Mt}Delay`),r=s(`${Mt}Duration`),i=ri(o,r),l=s(`${En}Delay`),a=s(`${En}Duration`),u=ri(l,a);let c=null,f=0,d=0;t===Mt?i>0&&(c=Mt,f=i,d=r.length):t===En?u>0&&(c=En,f=u,d=a.length):(f=Math.max(i,u),c=f>0?i>u?Mt:En:null,d=c?c===Mt?r.length:a.length:0);const h=c===Mt&&/\b(?:transform|all)(?:,|$)/.test(s(`${Mt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function ri(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ii(n)+ii(e[s])))}function ii(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function li(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ff(e,t,n){const s=e[Jn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ms=Symbol("_vod"),La=Symbol("_vsh"),Ds={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ms]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Tn(e,!0),s.enter(e)):s.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e[Ms]:"none",e[La]=!t}const Uf=Symbol(""),jf=/(?:^|;)\s*display\s*:/;function Bf(e,t,n){const s=e.style,o=Ee(n);let r=!1;if(n&&!o){if(t)if(Ee(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ys(s,l,"")}else for(const i in t)n[i]==null&&ys(s,i,"");for(const i in n)i==="display"&&(r=!0),ys(s,i,n[i])}else if(o){if(t!==n){const i=s[Uf];i&&(n+=";"+i),s.cssText=n,r=jf.test(n)}}else t&&e.removeAttribute("style");Ms in e&&(e[Ms]=r?s.display:"",e[La]&&(s.display="none"))}const ai=/\s*!important$/;function ys(e,t,n){if(Y(n))n.forEach(s=>ys(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hf(e,t);ai.test(n)?e.setProperty(on(s),n.replace(ai,""),"important"):e[s]=n}}const ci=["Webkit","Moz","ms"],wo={};function Hf(e,t){const n=wo[t];if(n)return n;let s=nt(t);if(s!=="filter"&&s in e)return wo[t]=s;s=qs(s);for(let o=0;o<ci.length;o++){const r=ci[o]+s;if(r in e)return wo[t]=r}return t}const ui="http://www.w3.org/1999/xlink";function fi(e,t,n,s,o,r=Kc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ui,t.slice(6,t.length)):e.setAttributeNS(ui,t,n):n==null||r&&!bl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Ct(n)?String(n):n)}function di(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?$a(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=bl(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Yt(e,t,n,s){e.addEventListener(t,n,s)}function Vf(e,t,n,s){e.removeEventListener(t,n,s)}const pi=Symbol("_vei");function qf(e,t,n,s,o=null){const r=e[pi]||(e[pi]={}),i=r[t];if(s&&i)i.value=s;else{const[l,a]=zf(t);if(s){const u=r[t]=Gf(s,o);Yt(e,l,u,a)}else i&&(Vf(e,l,i,a),r[t]=void 0)}}const hi=/(?:Once|Passive|Capture)$/;function zf(e){let t;if(hi.test(e)){t={};let s;for(;s=e.match(hi);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let Co=0;const Kf=Promise.resolve(),Wf=()=>Co||(Kf.then(()=>Co=0),Co=Date.now());function Gf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;at(Jf(s,n.value),t,5,[s])};return n.value=e,n.attached=Wf(),n}function Jf(e,t){if(Y(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 gi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qf=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Ff(e,s,i):t==="style"?Bf(e,n,s):Bs(t)?or(t)||qf(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zf(e,t,s,i))?(di(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fi(e,t,s,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ee(s))?di(e,nt(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fi(e,t,s,i))};function Zf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&gi(t)&&se(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 gi(t)&&Ee(n)?!1:t in e}const Ns=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Y(t)?n=>ps(t,n):t};function Xf(e){e.target.composing=!0}function mi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hn=Symbol("_assign"),Ma={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[hn]=Ns(o);const r=s||o.props&&o.props.type==="number";Yt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=Es(l)),e[hn](l)}),n&&Yt(e,"change",()=>{e.value=e.value.trim()}),t||(Yt(e,"compositionstart",Xf),Yt(e,"compositionend",mi),Yt(e,"change",mi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[hn]=Ns(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Es(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===a)||(e.value=a))}},Da={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=Hs(t);Yt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Es(Fs(i)):Fs(i));e[hn](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,gn(()=>{e._assigning=!1})}),e[hn]=Ns(s)},mounted(e,{value:t}){vi(e,t)},beforeUpdate(e,t,n){e[hn]=Ns(n)},updated(e,{value:t}){e._assigning||vi(e,t)}};function vi(e,t){const n=e.multiple,s=Y(t);if(!(n&&!s&&!Hs(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Fs(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=Gc(t,l)>-1}else i.selected=t.has(l);else if(Ws(Fs(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fs(e){return"_value"in e?e._value:e.value}const Yf=["ctrl","shift","alt","meta"],ed={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)=>Yf.some(n=>e[`${n}Key`]&&!t.includes(n))},jt=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let i=0;i<t.length;i++){const l=ed[t[i]];if(l&&l(o,t))return}return e(o,...r)})},td=Pe({patchProp:Qf},$f);let yi;function nd(){return yi||(yi=Yu(td))}const sd=(...e)=>{const t=nd().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=rd(s);if(!o)return;const r=t._component;!se(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,od(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function od(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rd(e){return Ee(e)?document.querySelector(e):e}/*!
|
||
* pinia v2.3.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const id=Symbol();var bi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bi||(bi={}));function ld(){const e=Jc(!0),t=e.run(()=>Q({}));let n=[],s=[];const o=Fl({install(r){o._a=r,r.provide(id,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return this._a?n.push(r):s.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}function Na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ad}=Object.prototype,{getPrototypeOf:br}=Object,{iterator:no,toStringTag:Fa}=Symbol,so=(e=>t=>{const n=ad.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ut=e=>(e=e.toLowerCase(),t=>so(t)===e),oo=e=>t=>typeof t===e,{isArray:wn}=Array,vn=oo("undefined");function ss(e){return e!==null&&!vn(e)&&e.constructor!==null&&!vn(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ua=ut("ArrayBuffer");function cd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ua(e.buffer),t}const ud=oo("string"),We=oo("function"),ja=oo("number"),os=e=>e!==null&&typeof e=="object",fd=e=>e===!0||e===!1,bs=e=>{if(so(e)!=="object")return!1;const t=br(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fa in e)&&!(no in e)},dd=e=>{if(!os(e)||ss(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},pd=ut("Date"),hd=ut("File"),gd=ut("Blob"),md=ut("FileList"),vd=e=>os(e)&&We(e.pipe),yd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=so(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},bd=ut("URLSearchParams"),[_d,wd,Cd,Sd]=["ReadableStream","Request","Response","Headers"].map(ut),xd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),wn(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(ss(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let l;for(s=0;s<i;s++)l=r[s],t.call(null,e[l],l,e)}}function Ba(e,t){if(ss(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ha=e=>!vn(e)&&e!==en;function qo(){const{caseless:e,skipUndefined:t}=Ha(this)&&this||{},n={},s=(o,r)=>{const i=e&&Ba(n,r)||r;bs(n[i])&&bs(o)?n[i]=qo(n[i],o):bs(o)?n[i]=qo({},o):wn(o)?n[i]=o.slice():(!t||!vn(o))&&(n[i]=o)};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&rs(arguments[o],s);return n}const Ed=(e,t,n,{allOwnKeys:s}={})=>(rs(t,(o,r)=>{n&&We(o)?e[r]=Na(o,n):e[r]=o},{allOwnKeys:s}),e),Td=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ad=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Rd=(e,t,n,s)=>{let o,r,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)i=o[r],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&br(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Od=e=>{if(!e)return null;if(wn(e))return e;let t=e.length;if(!ja(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$d=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&br(Uint8Array)),Pd=(e,t)=>{const s=(e&&e[no]).call(e);let o;for(;(o=s.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},Id=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Ld=ut("HTMLFormElement"),Md=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),_i=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Dd=ut("RegExp"),Va=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};rs(n,(o,r)=>{let i;(i=t(o,r,e))!==!1&&(s[r]=i||o)}),Object.defineProperties(e,s)},Nd=e=>{Va(e,(t,n)=>{if(We(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(We(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Fd=(e,t)=>{const n={},s=o=>{o.forEach(r=>{n[r]=!0})};return wn(e)?s(e):s(String(e).split(t)),n},Ud=()=>{},jd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Bd(e){return!!(e&&We(e.append)&&e[Fa]==="FormData"&&e[no])}const Hd=e=>{const t=new Array(10),n=(s,o)=>{if(os(s)){if(t.indexOf(s)>=0)return;if(ss(s))return s;if(!("toJSON"in s)){t[o]=s;const r=wn(s)?[]:{};return rs(s,(i,l)=>{const a=n(i,o+1);!vn(a)&&(r[l]=a)}),t[o]=void 0,r}}return s};return n(e,0)},Vd=ut("AsyncFunction"),qd=e=>e&&(os(e)||We(e))&&We(e.then)&&We(e.catch),qa=((e,t)=>e?setImmediate:t?((n,s)=>(en.addEventListener("message",({source:o,data:r})=>{o===en&&r===n&&s.length&&s.shift()()},!1),o=>{s.push(o),en.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",We(en.postMessage)),zd=typeof queueMicrotask<"u"?queueMicrotask.bind(en):typeof process<"u"&&process.nextTick||qa,Kd=e=>e!=null&&We(e[no]),w={isArray:wn,isArrayBuffer:Ua,isBuffer:ss,isFormData:yd,isArrayBufferView:cd,isString:ud,isNumber:ja,isBoolean:fd,isObject:os,isPlainObject:bs,isEmptyObject:dd,isReadableStream:_d,isRequest:wd,isResponse:Cd,isHeaders:Sd,isUndefined:vn,isDate:pd,isFile:hd,isBlob:gd,isRegExp:Dd,isFunction:We,isStream:vd,isURLSearchParams:bd,isTypedArray:$d,isFileList:md,forEach:rs,merge:qo,extend:Ed,trim:xd,stripBOM:Td,inherits:Ad,toFlatObject:Rd,kindOf:so,kindOfTest:ut,endsWith:kd,toArray:Od,forEachEntry:Pd,matchAll:Id,isHTMLForm:Ld,hasOwnProperty:_i,hasOwnProp:_i,reduceDescriptors:Va,freezeMethods:Nd,toObjectSet:Fd,toCamelCase:Md,noop:Ud,toFiniteNumber:jd,findKey:Ba,global:en,isContextDefined:Ha,isSpecCompliantForm:Bd,toJSONObject:Hd,isAsyncFn:Vd,isThenable:qd,setImmediate:qa,asap:zd,isIterable:Kd};function re(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(re,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const za=re.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}});Object.defineProperties(re,Ka);Object.defineProperty(za,"isAxiosError",{value:!0});re.from=(e,t,n,s,o,r)=>{const i=Object.create(za);w.toFlatObject(e,i,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",a=t==null&&e?e.code:t;return re.call(i,l,a,n,s,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",r&&Object.assign(i,r),i};const Wd=null;function zo(e){return w.isPlainObject(e)||w.isArray(e)}function Wa(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,t,n){return e?e.concat(t).map(function(o,r){return o=Wa(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function Gd(e){return w.isArray(e)&&!e.some(zo)}const Jd=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function ro(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,y){return!w.isUndefined(y[b])});const s=n.metaTokens,o=n.visitor||c,r=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(w.isDate(v))return v.toISOString();if(w.isBoolean(v))return v.toString();if(!a&&w.isBlob(v))throw new re("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(v)||w.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,b,y){let x=v;if(v&&!y&&typeof v=="object"){if(w.endsWith(b,"{}"))b=s?b:b.slice(0,-2),v=JSON.stringify(v);else if(w.isArray(v)&&Gd(v)||(w.isFileList(v)||w.endsWith(b,"[]"))&&(x=w.toArray(v)))return b=Wa(b),x.forEach(function(k,P){!(w.isUndefined(k)||k===null)&&t.append(i===!0?wi([b],P,r):i===null?b:b+"[]",u(k))}),!1}return zo(v)?!0:(t.append(wi(y,b,r),u(v)),!1)}const f=[],d=Object.assign(Jd,{defaultVisitor:c,convertValue:u,isVisitable:zo});function h(v,b){if(!w.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(v),w.forEach(v,function(x,S){(!(w.isUndefined(x)||x===null)&&o.call(t,x,w.isString(S)?S.trim():S,b,d))===!0&&h(x,b?b.concat(S):[S])}),f.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Ci(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function _r(e,t){this._pairs=[],e&&ro(e,this,t)}const Ga=_r.prototype;Ga.append=function(t,n){this._pairs.push([t,n])};Ga.toString=function(t){const n=t?function(s){return t.call(this,s,Ci)}:Ci;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Qd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ja(e,t,n){if(!t)return e;const s=n&&n.encode||Qd;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let r;if(o?r=o(t,n):r=w.isURLSearchParams(t)?t.toString():new _r(t,n).toString(s),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Si{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zd=typeof URLSearchParams<"u"?URLSearchParams:_r,Xd=typeof FormData<"u"?FormData:null,Yd=typeof Blob<"u"?Blob:null,ep={isBrowser:!0,classes:{URLSearchParams:Zd,FormData:Xd,Blob:Yd},protocols:["http","https","file","blob","url","data"]},wr=typeof window<"u"&&typeof document<"u",Ko=typeof navigator=="object"&&navigator||void 0,tp=wr&&(!Ko||["ReactNative","NativeScript","NS"].indexOf(Ko.product)<0),np=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sp=wr&&window.location.href||"http://localhost",op=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wr,hasStandardBrowserEnv:tp,hasStandardBrowserWebWorkerEnv:np,navigator:Ko,origin:sp},Symbol.toStringTag,{value:"Module"})),De={...op,...ep};function rp(e,t){return ro(e,new De.classes.URLSearchParams,{visitor:function(n,s,o,r){return De.isNode&&w.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function ip(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lp(e){const t={},n=Object.keys(e);let s;const o=n.length;let r;for(s=0;s<o;s++)r=n[s],t[r]=e[r];return t}function Za(e){function t(n,s,o,r){let i=n[r++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=r>=n.length;return i=!i&&w.isArray(o)?o.length:i,a?(w.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!l):((!o[i]||!w.isObject(o[i]))&&(o[i]=[]),t(n,s,o[i],r)&&w.isArray(o[i])&&(o[i]=lp(o[i])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(s,o)=>{t(ip(s),o,n,0)}),n}return null}function ap(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const is={transitional:Qa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,r=w.isObject(t);if(r&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Za(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return rp(t,this.formSerializer).toString();if((l=w.isFileList(t))||s.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ro(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return r||o?(n.setContentType("application/json",!1),ap(t)):t}],transformResponse:[function(t){const n=this.transitional||is.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(s&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?re.from(l,re.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{is.headers[e]={}});const cp=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),up=e=>{const t={};let n,s,o;return e&&e.split(`
|
||
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||t[n]&&cp[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},xi=Symbol("internals");function An(e){return e&&String(e).trim().toLowerCase()}function _s(e){return e===!1||e==null?e:w.isArray(e)?e.map(_s):String(e)}function fp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const dp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function So(e,t,n,s,o){if(w.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(s))return t.indexOf(s)!==-1;if(w.isRegExp(s))return s.test(t)}}function pp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function hp(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,r,i){return this[s].call(this,t,o,r,i)},configurable:!0})})}let Ge=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function r(l,a,u){const c=An(a);if(!c)throw new Error("header name must be a non-empty string");const f=w.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||a]=_s(l))}const i=(l,a)=>w.forEach(l,(u,c)=>r(u,c,a));if(w.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(w.isString(t)&&(t=t.trim())&&!dp(t))i(up(t),n);else if(w.isObject(t)&&w.isIterable(t)){let l={},a,u;for(const c of t){if(!w.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(a=l[u])?w.isArray(a)?[...a,c[1]]:[a,c[1]]:c[1]}i(l,n)}else t!=null&&r(n,t,s);return this}get(t,n){if(t=An(t),t){const s=w.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return fp(o);if(w.isFunction(n))return n.call(this,o,s);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=An(t),t){const s=w.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||So(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function r(i){if(i=An(i),i){const l=w.findKey(s,i);l&&(!n||So(s,s[l],l,n))&&(delete s[l],o=!0)}}return w.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!t||So(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,s={};return w.forEach(this,(o,r)=>{const i=w.findKey(s,r);if(i){n[i]=_s(o),delete n[r];return}const l=t?pp(r):String(r).trim();l!==r&&delete n[r],n[l]=_s(o),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&w.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[xi]=this[xi]={accessors:{}}).accessors,o=this.prototype;function r(i){const l=An(i);s[l]||(hp(o,i),s[l]=!0)}return w.isArray(t)?t.forEach(r):r(t),this}};Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});w.freezeMethods(Ge);function xo(e,t){const n=this||is,s=t||n,o=Ge.from(s.headers);let r=s.data;return w.forEach(e,function(l){r=l.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Xa(e){return!!(e&&e.__CANCEL__)}function Cn(e,t,n){re.call(this,e??"canceled",re.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Cn,re,{__CANCEL__:!0});function Ya(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=s[r];i||(i=u),n[o]=a,s[o]=u;let f=r,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function vp(e,t){let n=0,s=1e3/t,o,r;const i=(u,c=Date.now())=>{n=c,o=null,r&&(clearTimeout(r),r=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=s?i(u,c):(o=u,r||(r=setTimeout(()=>{r=null,i(o)},s-f)))},()=>o&&i(o)]}const Us=(e,t,n=3)=>{let s=0;const o=mp(50,250);return vp(r=>{const i=r.loaded,l=r.lengthComputable?r.total:void 0,a=i-s,u=o(a),c=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&c?(l-i)/u:void 0,event:r,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Ei=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ti=e=>(...t)=>w.asap(()=>e(...t)),yp=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,bp=De.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),w.isString(s)&&i.push("path="+s),w.isString(o)&&i.push("domain="+o),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _p(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ec(e,t,n){let s=!_p(t);return e&&(s||n==!1)?wp(e,t):t}const Ai=e=>e instanceof Ge?{...e}:e;function sn(e,t){t=t||{};const n={};function s(u,c,f,d){return w.isPlainObject(u)&&w.isPlainObject(c)?w.merge.call({caseless:d},u,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function o(u,c,f,d){if(w.isUndefined(c)){if(!w.isUndefined(u))return s(void 0,u,f,d)}else return s(u,c,f,d)}function r(u,c){if(!w.isUndefined(c))return s(void 0,c)}function i(u,c){if(w.isUndefined(c)){if(!w.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function l(u,c,f){if(f in t)return s(u,c);if(f in e)return s(void 0,u)}const a={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c,f)=>o(Ai(u),Ai(c),f,!0)};return w.forEach(Object.keys({...e,...t}),function(c){const f=a[c]||o,d=f(e[c],t[c],c);w.isUndefined(d)&&f!==l||(n[c]=d)}),n}const tc=e=>{const t=sn({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:r,headers:i,auth:l}=t;if(t.headers=i=Ge.from(i),t.url=Ja(ec(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),w.isFormData(n)){if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(w.isFunction(n.getHeaders)){const a=n.getHeaders(),u=["content-type","content-length"];Object.entries(a).forEach(([c,f])=>{u.includes(c.toLowerCase())&&i.set(c,f)})}}if(De.hasStandardBrowserEnv&&(s&&w.isFunction(s)&&(s=s(t)),s||s!==!1&&yp(t.url))){const a=o&&r&&bp.read(r);a&&i.set(o,a)}return t},Cp=typeof XMLHttpRequest<"u",Sp=Cp&&function(e){return new Promise(function(n,s){const o=tc(e);let r=o.data;const i=Ge.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=o,c,f,d,h,v;function b(){h&&h(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function x(){if(!y)return;const k=Ge.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),G={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};Ya(function(M){n(M),b()},function(M){s(M),b()},G),y=null}"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(s(new re("Request aborted",re.ECONNABORTED,e,y)),y=null)},y.onerror=function(P){const G=P&&P.message?P.message:"Network Error",I=new re(G,re.ERR_NETWORK,e,y);I.event=P||null,s(I),y=null},y.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const G=o.transitional||Qa;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),s(new re(P,G.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,y)),y=null},r===void 0&&i.setContentType(null),"setRequestHeader"in y&&w.forEach(i.toJSON(),function(P,G){y.setRequestHeader(G,P)}),w.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),l&&l!=="json"&&(y.responseType=o.responseType),u&&([d,v]=Us(u,!0),y.addEventListener("progress",d)),a&&y.upload&&([f,h]=Us(a),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=k=>{y&&(s(!k||k.type?new Cn(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const S=gp(o.url);if(S&&De.protocols.indexOf(S)===-1){s(new re("Unsupported protocol "+S+":",re.ERR_BAD_REQUEST,e));return}y.send(r||null)})},xp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const r=function(u){if(!o){o=!0,l();const c=u instanceof Error?u:this.reason;s.abort(c instanceof re?c:new Cn(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,r(new re(`timeout ${t} of ms exceeded`,re.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(r):u.removeEventListener("abort",r)}),e=null)};e.forEach(u=>u.addEventListener("abort",r));const{signal:a}=s;return a.unsubscribe=()=>w.asap(l),a}},Ep=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},Tp=async function*(e,t){for await(const n of Ap(e))yield*Ep(n,t)},Ap=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Ri=(e,t,n,s)=>{const o=Tp(e,t);let r=0,i,l=a=>{i||(i=!0,s&&s(a))};return new ReadableStream({async pull(a){try{const{done:u,value:c}=await o.next();if(u){l(),a.close();return}let f=c.byteLength;if(n){let d=r+=f;n(d)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),o.return()}},{highWaterMark:2})},ki=64*1024,{isFunction:ds}=w,Rp=(({Request:e,Response:t})=>({Request:e,Response:t}))(w.global),{ReadableStream:Oi,TextEncoder:$i}=w.global,Pi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kp=e=>{e=w.merge.call({skipUndefined:!0},Rp,e);const{fetch:t,Request:n,Response:s}=e,o=t?ds(t):typeof fetch=="function",r=ds(n),i=ds(s);if(!o)return!1;const l=o&&ds(Oi),a=o&&(typeof $i=="function"?(v=>b=>v.encode(b))(new $i):async v=>new Uint8Array(await new n(v).arrayBuffer())),u=r&&l&&Pi(()=>{let v=!1;const b=new n(De.origin,{body:new Oi,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),c=i&&l&&Pi(()=>w.isReadableStream(new s("").body)),f={stream:c&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!f[v]&&(f[v]=(b,y)=>{let x=b&&b[v];if(x)return x.call(b);throw new re(`Response type '${v}' is not supported`,re.ERR_NOT_SUPPORT,y)})});const d=async v=>{if(v==null)return 0;if(w.isBlob(v))return v.size;if(w.isSpecCompliantForm(v))return(await new n(De.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(w.isArrayBufferView(v)||w.isArrayBuffer(v))return v.byteLength;if(w.isURLSearchParams(v)&&(v=v+""),w.isString(v))return(await a(v)).byteLength},h=async(v,b)=>{const y=w.toFiniteNumber(v.getContentLength());return y??d(b)};return async v=>{let{url:b,method:y,data:x,signal:S,cancelToken:k,timeout:P,onDownloadProgress:G,onUploadProgress:I,responseType:M,headers:A,withCredentials:C="same-origin",fetchOptions:O}=tc(v),F=t||fetch;M=M?(M+"").toLowerCase():"text";let U=xp([S,k&&k.toAbortSignal()],P),ie=null;const le=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let xe;try{if(I&&u&&y!=="get"&&y!=="head"&&(xe=await h(A,x))!==0){let ke=new n(b,{method:"POST",body:x,duplex:"half"}),Te;if(w.isFormData(x)&&(Te=ke.headers.get("content-type"))&&A.setContentType(Te),ke.body){const[dt,rt]=Ei(xe,Us(Ti(I)));x=Ri(ke.body,ki,dt,rt)}}w.isString(C)||(C=C?"include":"omit");const fe=r&&"credentials"in n.prototype,pe={...O,signal:U,method:y.toUpperCase(),headers:A.normalize().toJSON(),body:x,duplex:"half",credentials:fe?C:void 0};ie=r&&new n(b,pe);let ae=await(r?F(ie,O):F(b,pe));const Xe=c&&(M==="stream"||M==="response");if(c&&(G||Xe&&le)){const ke={};["status","statusText","headers"].forEach(Kt=>{ke[Kt]=ae[Kt]});const Te=w.toFiniteNumber(ae.headers.get("content-length")),[dt,rt]=G&&Ei(Te,Us(Ti(G),!0))||[];ae=new s(Ri(ae.body,ki,dt,()=>{rt&&rt(),le&&le()}),ke)}M=M||"text";let ft=await f[w.findKey(f,M)||"text"](ae,v);return!Xe&&le&&le(),await new Promise((ke,Te)=>{Ya(ke,Te,{data:ft,headers:Ge.from(ae.headers),status:ae.status,statusText:ae.statusText,config:v,request:ie})})}catch(fe){throw le&&le(),fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,v,ie),{cause:fe.cause||fe}):re.from(fe,fe&&fe.code,v,ie)}}},Op=new Map,nc=e=>{let t=e?e.env:{};const{fetch:n,Request:s,Response:o}=t,r=[s,o,n];let i=r.length,l=i,a,u,c=Op;for(;l--;)a=r[l],u=c.get(a),u===void 0&&c.set(a,u=l?new Map:kp(t)),c=u;return u};nc();const Wo={http:Wd,xhr:Sp,fetch:{get:nc}};w.forEach(Wo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ii=e=>`- ${e}`,$p=e=>w.isFunction(e)||e===null||e===!1,sc={getAdapter:(e,t)=>{e=w.isArray(e)?e:[e];const{length:n}=e;let s,o;const r={};for(let i=0;i<n;i++){s=e[i];let l;if(o=s,!$p(s)&&(o=Wo[(l=String(s)).toLowerCase()],o===void 0))throw new re(`Unknown adapter '${l}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;r[l||"#"+i]=o}if(!o){const i=Object.entries(r).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
||
`+i.map(Ii).join(`
|
||
`):" "+Ii(i[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Wo};function Eo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cn(null,e)}function Li(e){return Eo(e),e.headers=Ge.from(e.headers),e.data=xo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sc.getAdapter(e.adapter||is.adapter,e)(e).then(function(s){return Eo(e),s.data=xo.call(e,e.transformResponse,s),s.headers=Ge.from(s.headers),s},function(s){return Xa(s)||(Eo(e),s&&s.response&&(s.response.data=xo.call(e,e.transformResponse,s.response),s.response.headers=Ge.from(s.response.headers))),Promise.reject(s)})}const oc="1.12.2",io={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{io[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Mi={};io.transitional=function(t,n,s){function o(r,i){return"[Axios v"+oc+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,l)=>{if(t===!1)throw new re(o(i," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!Mi[i]&&(Mi[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,i,l):!0}};io.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Pp(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const r=s[o],i=t[r];if(i){const l=e[r],a=l===void 0||i(l,r,e);if(a!==!0)throw new re("option "+r+" must be "+a,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+r,re.ERR_BAD_OPTION)}}const ws={assertOptions:Pp,validators:io},vt=ws.validators;let nn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Si,response:new Si}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const r=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
||
`+r):s.stack=r}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&ws.assertOptions(s,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:ws.assertOptions(o,{encode:vt.function,serialize:vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ws.assertOptions(n,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&w.merge(r.common,r[n.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),n.headers=Ge.concat(i,r);const l=[];let a=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(a=a&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,f=0,d;if(!a){const v=[Li.bind(this),void 0];for(v.unshift(...l),v.push(...u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=l.length;let h=n;for(;f<d;){const v=l[f++],b=l[f++];try{h=v(h)}catch(y){b.call(this,y);break}}try{c=Li.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=sn(this.defaults,t);const n=ec(t.baseURL,t.url,t.allowAbsoluteUrls);return Ja(n,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){nn.prototype[t]=function(n,s){return this.request(sn(s||{},{method:t,url:n,data:(s||{}).data}))}});w.forEach(["post","put","patch"],function(t){function n(s){return function(r,i,l){return this.request(sn(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}nn.prototype[t]=n(),nn.prototype[t+"Form"]=n(!0)});let Ip=class rc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(o=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](o);s._listeners=null}),this.promise.then=o=>{let r;const i=new Promise(l=>{s.subscribe(l),r=l}).then(o);return i.cancel=function(){s.unsubscribe(r)},i},t(function(r,i,l){s.reason||(s.reason=new Cn(r,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rc(function(o){t=o}),cancel:t}}};function Lp(e){return function(n){return e.apply(null,n)}}function Mp(e){return w.isObject(e)&&e.isAxiosError===!0}const Go={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Go).forEach(([e,t])=>{Go[t]=e});function ic(e){const t=new nn(e),n=Na(nn.prototype.request,t);return w.extend(n,nn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ic(sn(e,o))},n}const Re=ic(is);Re.Axios=nn;Re.CanceledError=Cn;Re.CancelToken=Ip;Re.isCancel=Xa;Re.VERSION=oc;Re.toFormData=ro;Re.AxiosError=re;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=Lp;Re.isAxiosError=Mp;Re.mergeConfig=sn;Re.AxiosHeaders=Ge;Re.formToJSON=e=>Za(w.isHTMLForm(e)?new FormData(e):e);Re.getAdapter=sc.getAdapter;Re.HttpStatusCode=Go;Re.default=Re;const{Axios:a2,AxiosError:c2,CanceledError:u2,isCancel:f2,CancelToken:d2,VERSION:p2,all:h2,Cancel:g2,isAxiosError:m2,spread:v2,toFormData:y2,AxiosHeaders:b2,HttpStatusCode:_2,formToJSON:w2,getAdapter:C2,mergeConfig:S2}=Re,Oe=Re.create({baseURL:"/api",timeout:12e4});function Dp(e){var o,r,i,l,a,u;const t=e;if(!t)return null;const n=((o=t.response)==null?void 0:o.status)&&t.response.status>=500,s=t.code==="ERR_NETWORK"||t.code==="ECONNREFUSED"||t.code==="ERR_CONNECTION_REFUSED"||((r=t.message)==null?void 0:r.includes("Network Error"))||((i=t.message)==null?void 0:i.includes("Connection refused"));if(n||s){let c="无法连接到后端服务,请确保服务已启动";return n&&(c=`服务器错误 (${(l=t.response)==null?void 0:l.status}): 内部服务器错误`),{isConnectionError:!0,message:c,code:t.code,requestUrl:(a=t.config)==null?void 0:a.url,statusCode:(u=t.response)==null?void 0:u.status}}return null}class Ae{static async getApps(){return(await Oe.get("/apps")).data}static async getApp(t){return(await Oe.get(`/apps/${t}`)).data}static getAppIconUrl(t){return`/api/apps/icon/${t}`}static async updateApp(t){return(await Oe.post(`/apps/${t}/update`)).data}static async getConfig(){return(await Oe.get("/config")).data}static async getStatus(){return(await Oe.get("/status")).data}static async getStoreApps(){return(await Oe.get("/store/apps")).data}static async getAppVersions(t){return(await Oe.get(`/apps/${t}/versions`)).data.data}static async checkAppUpdate(t){try{const n=await Oe.get(`/apps/${t}/check-update`);return n.data.data.hasUpdate?n.data.data.latestVersion:null}catch(n){return console.error("检查更新失败:",n),null}}static async startDownload(t,n){return(await Oe.post("/download/start",{url:t,fileName:n})).data}static async pauseDownload(t){await Oe.post(`/download/${t}/pause`)}static async resumeDownload(t){await Oe.post(`/download/${t}/resume`)}static async getDownloadTask(t){return(await Oe.get(`/download/${t}`)).data}static async getAllDownloads(){return(await Oe.get("/downloads")).data}static async deleteDownload(t){await Oe.delete(`/download/${t}`)}static async openDownloadFile(t){await Oe.post(`/download/${t}/open`)}static async getAllSettings(){return(await Oe.get("/settings")).data.data}static async updateSettings(t){await Oe.post("/settings",t)}static async validatePath(t){return(await Oe.get("/validate-path",{params:{path:t}})).data.data}}function Cr(){const e=Q("auto"),t=Q(!1),n=ye(()=>e.value==="auto"?t.value:e.value==="dark"),s=()=>{if(typeof window<"u"){const h=window.matchMedia("(prefers-color-scheme: dark)");t.value=h.matches}};let o=null;const r=h=>{t.value=h.matches},i=()=>{if(typeof document<"u"){const h=document.documentElement;n.value?h.setAttribute("data-theme","dark"):h.removeAttribute("data-theme")}},l=h=>{typeof localStorage<"u"&&localStorage.setItem("hayaku-theme",h)},a=()=>{if(typeof localStorage<"u"){const h=localStorage.getItem("hayaku-theme");if(h&&["light","dark","auto"].includes(h))return h}return"auto"},u=()=>{e.value==="auto"?e.value="dark":e.value==="dark"?e.value="light":e.value="auto",l(e.value)},c=h=>{e.value=h,l(h)},f=()=>{e.value=a(),s(),typeof window<"u"&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",r)),i()},d=()=>{o&&o.removeEventListener("change",r)};return wt(n,()=>{i()},{immediate:!0}),wt(e,()=>{i()}),st(()=>{f()}),ts(()=>{d()}),{theme:e,isDark:n,toggleTheme:u,setTheme:c,systemPrefersDark:t}}const Np={class:"text-mask"},Fp={"stroke-miterlimit":"10",style:{"fill-rule":"nonzero","clip-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"},version:"1.1",viewBox:"0 0 365 280","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Up=Fe({__name:"SplashScreen",emits:["complete"],setup(e,{emit:t}){const{isDark:n}=Cr(),s=t,o=Q(!0),r=Q(1),i=ye(()=>`stage-${r.value}`);return st(()=>{setTimeout(()=>{r.value=2},500),setTimeout(()=>{r.value=3},2500),setTimeout(()=>{r.value=4},4500),setTimeout(()=>{r.value=5},6500),setTimeout(()=>{r.value=6},8500),setTimeout(()=>{r.value=7},12e3),setTimeout(()=>{r.value=8},13e3),setTimeout(()=>{o.value=!1,s("complete")},14500)}),(l,a)=>o.value?(L(),N("div",{key:0,class:oe(["splash-screen",i.value])},[p("div",{class:oe(["black-background",{hidden:r.value>=5}])},null,2),p("div",{class:oe(["white-background",{visible:r.value>=6}])},null,2),p("div",{class:oe(["theme-overlay",{visible:r.value>=8,"dark-theme":W(n)}])},null,2),p("div",{class:oe(["gradient-background",{visible:r.value>=2,hidden:r.value>=5}])},[...a[0]||(a[0]=[p("div",{class:"blur-gradient gradient-1"},null,-1),p("div",{class:"blur-gradient gradient-2"},null,-1),p("div",{class:"blur-gradient gradient-3"},null,-1)])],2),p("div",{class:oe(["glass-layer",{visible:r.value>=2,hidden:r.value>=5}])},null,2),p("div",{class:oe(["splash-content",{hidden:r.value>=5}])},[p("div",Np,[p("h1",{class:oe(["author-name",{reveal:r.value>=3}])},"QiuChenly",2)]),p("p",{class:oe(["subtitle",{reveal:r.value>=4}])},[...a[1]||(a[1]=[p("span",{class:"word"},"诚意",-1),p("span",{class:"word"},"巨献",-1)])],2)],2),p("div",{class:oe(["yuanshen-logo",{reveal:r.value>=6,fadeout:r.value>=7}])},[(L(),N("svg",Fp,[...a[2]||(a[2]=[p("defs",null,null,-1),p("g",{id:"レイヤー-2-コピー"},[p("path",{d:"M300.129 3.96878C299.043 3.79118 298.934 6.23188 298.934 6.23188C298.934 6.23188 294.584 41.0931 290.542 56.3035C285.651 74.7105 271.306 76.8915 271.306 76.8915C271.306 76.8915 269.618 77.0025 269.545 78.1175C269.473 79.2315 271.148 79.3435 271.148 79.3435C271.148 79.3435 277.387 81.1955 284.884 83.6495C291.736 85.8915 294.932 95.6505 295.791 98.6735C283.211 98.6275 270.597 98.4715 269.985 98.2025C268.675 97.6245 255.932 91.6455 250.812 92.4185C247.898 92.8585 247.386 95.1215 247.386 95.1215L246.914 166.63C246.914 166.63 246.794 170.386 246.914 170.59C247.831 172.151 256.678 171.005 261.813 166.724C265.796 163.403 270.389 158.709 272.343 156.666C272.908 156.075 272.931 156.002 273.506 155.628C274.081 155.254 275.455 155.408 275.455 155.408L296.137 155.314C295.533 157.233 292.302 167.238 288.059 169.207C284.274 170.963 269.891 176.814 269.891 176.814C269.891 176.814 268.804 177.501 268.822 178.102C268.841 178.703 269.985 179.202 269.985 179.202C269.985 179.202 285.693 186.076 289.725 200.419C293.728 214.66 298.589 275.039 298.589 275.039C298.589 275.039 299.27 276.67 299.877 276.736C300.484 276.802 301.166 275.039 301.166 275.039C301.166 275.039 304.022 220.171 311.067 199.539C318.181 178.706 328.984 179.831 328.984 179.831C328.984 179.831 331.631 179.263 331.592 178.008C331.554 176.753 328.952 176.373 328.952 176.373C328.952 176.373 319.046 174.7 311.602 169.458C305.975 165.497 304.686 158.118 304.372 155.283L324.269 155.188C324.269 155.188 325.462 155.15 325.903 155.283C326.344 155.415 326.336 155.68 326.815 156.446C328.186 158.64 331.475 163.277 336.496 166.221C343.267 170.192 350.307 171.491 351.866 170.904C353.426 170.318 353.123 168.735 353.123 168.735C353.123 168.735 353.152 113.095 353.155 110.366C353.158 107.637 359.041 104.402 359.001 101.974C358.961 99.5455 341.868 91.2665 338.665 91.5385C330.359 92.2435 328.258 97.7585 325.998 98.3285C325.125 98.5475 314.113 98.5825 304.121 98.6105C304.877 95.6275 307.285 87.9435 313.047 85.1895C321.11 81.3365 328.826 79.1545 328.826 79.1545C328.826 79.1545 330.659 78.9745 330.618 78.1805C330.577 77.3855 328.826 77.1115 328.826 77.1115C328.826 77.1115 317.339 72.2415 313.833 66.0785C304.4 49.4975 301.575 6.20048 301.575 6.20048C301.575 6.20048 301.214 4.14638 300.129 3.96878ZM275.643 103.828L293.402 103.86C293.402 103.86 294.77 103.851 294.943 104.142C295.115 104.434 295.192 104.745 294.628 106.091C293.396 109.034 290.829 114.227 287.022 117.47C283.351 120.597 278.524 121.907 275.675 122.436C274.217 122.707 274.327 122.553 273.726 122.247C273.125 121.942 273.254 121.241 273.254 121.242L273.192 107.16C273.192 107.16 273.017 105.414 273.632 104.583C274.246 103.751 275.643 103.828 275.643 103.828ZM324.08 103.828C324.08 103.828 325.481 103.756 326.092 104.583C326.667 105.361 326.532 107.129 326.532 107.129C326.531 107.137 326.532 107.173 326.532 107.191L326.469 121.242C326.469 121.242 326.591 121.946 325.998 122.247C325.396 122.553 325.506 122.707 324.049 122.436C321.2 121.907 316.373 120.597 312.702 117.47C308.895 114.227 306.328 109.034 305.095 106.091C304.531 104.745 304.64 104.434 304.812 104.142C304.977 103.865 306.321 103.86 306.321 103.86C306.324 103.86 306.334 103.86 306.352 103.86L324.08 103.828ZM274.386 130.734C274.617 130.688 274.946 130.693 275.675 130.828C278.524 131.357 283.351 132.667 287.022 135.795C290.829 139.038 293.396 144.23 294.628 147.173C295.192 148.52 295.115 148.862 294.943 149.153C294.77 149.444 293.402 149.405 293.402 149.405L275.643 149.468C275.643 149.468 274.246 149.545 273.632 148.713C273.017 147.882 273.192 146.136 273.192 146.136L273.254 132.054C273.254 132.054 273.125 131.353 273.726 131.048C274.027 130.896 274.155 130.781 274.386 130.734ZM325.337 130.734C325.569 130.781 325.697 130.896 325.998 131.048C326.599 131.353 326.469 132.054 326.469 132.054L326.532 146.136C326.532 146.136 326.706 147.882 326.092 148.713C325.477 149.545 324.08 149.468 324.08 149.468L306.321 149.405C306.321 149.405 304.953 149.444 304.781 149.153C304.608 148.862 304.531 148.52 305.095 147.173C306.328 144.23 308.895 139.037 312.702 135.795C316.373 132.668 321.2 131.357 324.049 130.828C324.777 130.693 325.106 130.688 325.337 130.734ZM42.6054 49.1055C41.9365 49.1255 41.8511 50.0795 41.8511 50.0795C41.8511 50.0795 40.4852 60.0595 34.9046 66.9585C30.4399 72.4785 15.4167 76.3255 15.4167 76.3255C15.4167 76.3255 14.712 76.5765 14.8194 77.0485C14.9269 77.5205 15.3852 77.6775 15.3852 77.6775C15.3852 77.6775 21.3446 79.9625 25.5692 81.8895C29.0641 83.4825 28.8696 84.9065 28.8696 84.9065C28.8696 84.9065 31.2354 137.519 29.4354 147.519C27.6354 157.519 27.0166 161.946 19.44 174.11C14.3388 182.301 9.38522 188.684 7.37003 191.209C6.76463 191.968 7.08713 192.121 7.08713 192.121C7.08713 192.121 7.00162 192.249 7.99873 191.932C12.9086 190.372 28.2899 184.847 38.3307 174.142C50.4106 161.263 52.1751 152.698 55.1469 141.578C58.1186 130.458 56.0584 84.4035 56.0584 84.4035C56.0584 84.4035 56.8375 82.6075 58.6673 81.4175C60.497 80.2275 63.6335 80.4745 63.6335 80.4745L110.53 80.6005C110.346 80.7735 102.523 88.1145 102.358 88.4265C102.191 88.7425 102.154 90.9345 102.452 91.3185C102.75 91.7025 110.003 98.1045 109.022 98.1395C108.04 98.1745 89.9499 98.6675 86.5159 97.8875C83.0819 97.1085 73.9108 93.6435 72.3088 93.5185C69.7927 93.3235 66.9402 93.1475 66.4938 93.1105C65.0617 92.9905 63.739 93.8805 63.2249 94.9965C62.7108 96.1125 62.5596 153.314 63.2878 154.34C64.016 155.365 68.6818 154.83 74.2576 152.642C79.8334 150.454 83.6139 146.504 85.3849 145.947C85.6349 145.868 97.3289 145.57 97.3289 145.57C97.3289 145.57 100.39 145.82 101.132 146.387C101.875 146.954 101.572 149.939 101.572 149.939L101.572 204.537C101.572 204.537 101.482 205.222 101.981 206.171C102.479 207.121 103.507 206.353 104.527 206.077C107.315 205.323 111.829 203.838 116.282 200.136C122.366 195.08 124.63 190.585 125.932 186.652C127.235 182.718 125.123 148.194 126.246 146.544C126.413 146.3 126.89 145.881 127.409 145.696C127.929 145.51 136.5 145.614 137.405 145.633C138.31 145.652 138.707 145.521 138.945 146.01C139.158 146.446 139.082 148.641 139.039 150.442C139.018 151.323 139.428 151.909 139.699 152.014C139.97 152.118 140.568 152.56 141.208 152.548C145.639 152.466 162.568 151.894 164.122 147.142C164.754 145.211 164.408 109.563 164.562 108.606C164.716 107.648 168.473 105.681 168.931 102.728C169.153 101.298 163.527 98.5085 157.71 95.5305C153.958 93.6095 149.565 92.5265 147.84 92.3875C145.781 92.2215 143.123 94.0415 141.46 95.6875C140.257 96.8785 139.948 98.0275 138.976 98.0765C135.209 98.2675 120.119 98.3505 118.608 98.2025C117.098 98.0535 125.166 91.5265 125.335 91.3505C125.504 91.1735 125.682 89.0235 125.366 88.5845C125.052 88.1465 117.568 80.6595 117.508 80.6005L189.802 80.7885C189.802 80.7885 196.846 82.2845 201.086 86.3525C204.418 89.5485 207.133 97.9805 206.681 98.2655C206.229 98.5495 176.343 98.0385 175.658 98.3905C174.354 99.0625 173.64 100.608 173.646 101.471C173.655 102.688 174.058 103.75 174.652 103.828C177.638 104.219 193.043 103.915 196.529 103.828C196.936 103.818 198.389 104.069 198.729 104.394C199.069 104.719 198.855 106.971 198.855 106.971L198.792 205.92C198.792 205.92 198.77 206.948 199.169 207.146C199.568 207.343 199.777 207.569 201.275 206.894C204.006 205.663 208.423 203.34 211.553 199.916C216.401 194.615 217.158 192.463 218.405 186.683C219.653 180.903 218.971 117.312 218.971 117.313C218.971 117.313 218.901 114.569 219.16 114.169C219.418 113.769 219.977 113.824 219.977 113.824L239.936 113.918C239.936 113.918 243.349 113.411 244.054 111.623C244.759 109.835 243.268 107.317 243.268 107.317C243.268 107.317 241.426 103.955 237.39 98.6425C234.79 95.2185 230.143 89.0175 228.118 89.0865C222.95 89.2635 213.785 98.2025 213.785 98.2025C213.785 98.2025 211.406 98.6565 211.019 98.2655C210.631 97.8735 212.008 91.2185 218.091 85.2835C224.175 79.3485 235.002 78.2425 235.002 78.2425C235.002 78.2425 237.267 78.0555 237.202 77.1745C237.136 76.2935 234.939 76.2945 234.939 76.2945C234.939 76.2945 222.516 73.2005 217.462 67.8385C211.224 61.2205 209.667 51.0855 209.667 51.0855C209.667 51.0855 209.435 49.0775 208.63 49.1365C207.825 49.1955 207.781 51.0855 207.781 51.0855C207.781 51.0855 205.027 62.4965 201.683 66.6755C197.236 72.2355 191.405 73.1825 191.405 73.1825L59.5788 73.4335C59.5788 73.4335 52.2067 71.0755 48.7976 64.8525C46.1625 60.0425 43.5484 50.0795 43.5484 50.0795C43.5484 50.0795 43.2744 49.0855 42.6054 49.1055ZM90.2249 104.08L136.902 104.08C136.902 104.08 137.95 104.112 138.473 104.677C138.997 105.242 139.008 106.343 139.008 106.343L139.228 137.649C139.228 137.649 139.129 138.997 138.599 139.598C138.07 140.199 137.153 139.975 137.153 139.975L90.1939 139.975C90.1939 139.975 89.3039 139.761 88.8739 139.378C88.4429 138.994 88.4649 138.435 88.4649 138.435L88.4339 127.622C88.4339 127.622 88.2299 126.493 88.9049 125.893C89.5799 125.294 89.4289 125.219 91.1369 125.233C100.387 125.312 130.271 125.525 133.036 125.045C134.715 124.753 131.312 119.845 129.484 119.387C127.656 118.929 89.5969 119.576 89.5969 119.576C89.5969 119.576 88.9709 119.581 88.6849 119.293C88.3989 119.004 88.4339 118.413 88.4339 118.413L88.3709 105.903C88.3709 105.903 88.2839 104.915 88.7479 104.457C89.2119 103.998 90.2249 104.08 90.2249 104.08ZM192.725 109.172L177.606 109.297C177.606 109.297 177.313 109.259 176.632 109.957C175.952 110.656 175.972 111.089 175.972 111.089L176.129 167.981C176.129 167.981 175.962 168.524 175.878 168.83C173.358 167.037 170.376 165.189 166.448 163.549C155.587 159.014 146.206 157.106 141.617 157.043C137.027 156.979 139.823 162.429 137.185 165.184C135.802 166.627 132.112 167.295 129.955 168.264C127.997 169.144 130.741 172.853 130.741 172.853C130.741 172.853 162.271 177.483 164.688 182.44C166.587 186.335 144.913 191.188 142.56 191.744C140.206 192.3 139.35 194.558 141.962 194.384C145.915 194.121 152.984 192.76 159.753 191.084C167.539 189.483 176.286 186.727 182.321 181.811C195.598 170.996 194.297 150.159 194.297 150.159L194.14 110.303C194.14 110.303 194.08 109.776 193.731 109.486C193.382 109.195 192.725 109.172 192.725 109.172ZM225.383 123.19C225.383 123.19 224.121 123.154 223.592 123.599L223.152 125.045L222.994 164.178C222.994 164.178 222.886 164.796 223.403 165.215C223.92 165.634 224.173 165.647 224.692 165.529C226.375 165.146 229.54 164.124 232.927 161.38C237.357 157.792 240.058 153.283 240.848 151.479C240.965 151.212 240.816 124.259 240.816 124.259C240.816 124.259 240.692 123.672 240.282 123.41C239.872 123.149 239.182 123.19 239.182 123.19L225.383 123.19ZM85.2899 156.948C80.7008 157.012 71.3199 158.888 60.4589 163.423C49.5979 167.959 44.1478 174.521 43.957 175.116C43.7662 175.712 43.9934 183.106 54.7697 187.28C62.5155 190.281 78.2662 193.846 84.9449 194.29C87.5569 194.463 86.7009 192.174 84.3469 191.618C81.994 191.062 60.3203 186.209 62.2191 182.314C64.6356 177.357 96.1659 172.727 96.1659 172.727C96.1659 172.727 98.9099 169.019 96.9519 168.138C94.7949 167.169 91.1049 166.502 89.7219 165.058C87.0839 162.303 89.8799 156.885 85.2899 156.948Z",fill:"#000000","fill-rule":"nonzero",opacity:"1",stroke:"none"})],-1)])]))],2)],2)):ce("",!0)}}),ot=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},jp=ot(Up,[["__scopeId","data-v-5702a337"]]),lc=/^[a-z0-9]+(-[a-z0-9]+)*$/,lo=(e,t,n,s="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const l=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:s,prefix:a,name:l};return t&&!Cs(u)?null:u}const r=o[0],i=r.split("-");if(i.length>1){const l={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!Cs(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:r};return t&&!Cs(l,n)?null:l}return null},Cs=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,ac=Object.freeze({left:0,top:0,width:16,height:16}),js=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ao=Object.freeze({...ac,...js}),Jo=Object.freeze({...ao,body:"",hidden:!1});function Bp(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Di(e,t){const n=Bp(e,t);for(const s in Jo)s in js?s in e&&!(s in n)&&(n[s]=js[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Hp(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const l=s[i]&&s[i].parent,a=l&&r(l);a&&(o[i]=[l].concat(a))}return o[i]}return Object.keys(n).concat(Object.keys(s)).forEach(r),o}function Vp(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(l){r=Di(s[l]||o[l],r)}return i(t),n.forEach(i),Di(e,r)}function cc(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const s=Hp(e);for(const o in s){const r=s[o];r&&(t(o,Vp(e,o,r)),n.push(o))}return n}const qp={provider:"",aliases:{},not_found:{},...ac};function To(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function uc(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!To(e,qp))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!To(r,Jo))return null}const s=t.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o||typeof i!="string"||!n[i]&&!s[i]||!To(r,Jo))return null}return t}const Ni=Object.create(null);function zp(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function yn(e,t){const n=Ni[e]||(Ni[e]=Object.create(null));return n[t]||(n[t]=zp(e,t))}function fc(e,t){return uc(t)?cc(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Kp(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Qn=!1;function dc(e){return typeof e=="boolean"&&(Qn=e),Qn}function Wp(e){const t=typeof e=="string"?lo(e,!0,Qn):e;if(t){const n=yn(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Gp(e,t){const n=lo(e,!0,Qn);if(!n)return!1;const s=yn(n.provider,n.prefix);return t?Kp(s,n.name,t):(s.missing.add(n.name),!0)}function Jp(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Qn&&!t&&!e.prefix){let o=!1;return uc(e)&&(e.prefix="",cc(e,(r,i)=>{Gp(r,i)&&(o=!0)})),o}const n=e.prefix;if(!Cs({prefix:n,name:"a"}))return!1;const s=yn(t,n);return!!fc(s,e)}const pc=Object.freeze({width:null,height:null}),hc=Object.freeze({...pc,...js}),Qp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Fi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(Qp);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=Zp.test(r);for(;;){if(i){const l=parseFloat(r);isNaN(l)?o.push(r):o.push(Math.ceil(l*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function Xp(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const o=e.indexOf(">",s),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function Yp(e,t){return e?"<defs>"+e+"</defs>"+t:t}function eh(e,t,n){const s=Xp(e);return Yp(s.defs,t+s.content+n)}const th=e=>e==="unset"||e==="undefined"||e==="none";function nh(e,t){const n={...ao,...e},s={...hc,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(b=>{const y=[],x=b.hFlip,S=b.vFlip;let k=b.rotate;x?S?k+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):S&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let P;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:P=o.height/2+o.top,y.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:P=o.width/2+o.left,y.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}k%2===1&&(o.left!==o.top&&(P=o.left,o.left=o.top,o.top=P),o.width!==o.height&&(P=o.width,o.width=o.height,o.height=P)),y.length&&(r=eh(r,'<g transform="'+y.join(" ")+'">',"</g>"))});const i=s.width,l=s.height,a=o.width,u=o.height;let c,f;i===null?(f=l===null?"1em":l==="auto"?u:l,c=Fi(f,a/u)):(c=i==="auto"?a:i,f=l===null?Fi(c,u/a):l==="auto"?u:l);const d={},h=(b,y)=>{th(y)||(d[b]=y.toString())};h("width",c),h("height",f);const v=[o.left,o.top,a,u];return d.viewBox=v.join(" "),{attributes:d,viewBox:v,body:r}}const sh=/\sid="(\S+)"/g,oh="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rh=0;function ih(e,t=oh){const n=[];let s;for(;s=sh.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(rh++).toString(),l=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Qo=Object.create(null);function lh(e,t){Qo[e]=t}function Zo(e){return Qo[e]||Qo[""]}function Sr(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const xr=Object.create(null),Rn=["https://api.simplesvg.com","https://api.unisvg.com"],Ss=[];for(;Rn.length>0;)Rn.length===1||Math.random()>.5?Ss.push(Rn.shift()):Ss.push(Rn.pop());xr[""]=Sr({resources:["https://api.iconify.design"].concat(Ss)});function ah(e,t){const n=Sr(t);return n===null?!1:(xr[e]=n,!0)}function Er(e){return xr[e]}const ch=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ui=ch();function uh(e,t){const n=Er(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=t+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function fh(e){return e===404}const dh=(e,t,n)=>{const s=[],o=uh(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},l=0;return n.forEach((a,u)=>{l+=a.length+1,l>=o&&u>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},l=a.length),i.icons.push(a)}),s.push(i),s};function ph(e){if(typeof e=="string"){const t=Er(e);if(t)return t.path}return"/"}const hh=(e,t,n)=>{if(!Ui){n("abort",424);return}let s=ph(t.provider);switch(t.type){case"icons":{const r=t.prefix,l=t.icons.join(","),a=new URLSearchParams({icons:l});s+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Ui(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(fh(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},gh={prepare:dh,send:hh};function mh(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return e.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,l=o.name,a=n[r]||(n[r]=Object.create(null)),u=a[i]||(a[i]=yn(r,i));let c;l in u.icons?c=t.loaded:i===""||u.missing.has(l)?c=t.missing:c=t.pending;const f={provider:r,prefix:i,name:l};c.push(f)}),t}function gc(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function vh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,o=e.prefix;t.forEach(r=>{const i=r.icons,l=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:s,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:s,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==l&&(n||gc([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let yh=0;function bh(e,t,n){const s=yh++,o=gc.bind(null,n,s);if(!t.pending.length)return o;const r={id:s,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function _h(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?lo(o,t,n):o;r&&s.push(r)}),s}var wh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ch(e,t,n,s){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let I=e.resources.slice(0);for(i=[];I.length>1;){const M=Math.floor(Math.random()*I.length);i.push(I[M]),I=I.slice(0,M).concat(I.slice(M+1))}i=i.concat(I)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const l=Date.now();let a="pending",u=0,c,f=null,d=[],h=[];typeof s=="function"&&h.push(s);function v(){f&&(clearTimeout(f),f=null)}function b(){a==="pending"&&(a="aborted"),v(),d.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),d=[]}function y(I,M){M&&(h=[]),typeof I=="function"&&h.push(I)}function x(){return{startTime:l,payload:t,status:a,queriesSent:u,queriesPending:d.length,subscribe:y,abort:b}}function S(){a="failed",h.forEach(I=>{I(void 0,c)})}function k(){d.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),d=[]}function P(I,M,A){const C=M!=="success";switch(d=d.filter(O=>O!==I),a){case"pending":break;case"failed":if(C||!e.dataAfterTimeout)return;break;default:return}if(M==="abort"){c=A,S();return}if(C){c=A,d.length||(i.length?G():S());return}if(v(),k(),!e.random){const O=e.resources.indexOf(I.resource);O!==-1&&O!==e.index&&(e.index=O)}a="completed",h.forEach(O=>{O(A)})}function G(){if(a!=="pending")return;v();const I=i.shift();if(I===void 0){if(d.length){f=setTimeout(()=>{v(),a==="pending"&&(k(),S())},e.timeout);return}S();return}const M={status:"pending",resource:I,callback:(A,C)=>{P(M,A,C)}};d.push(M),u++,f=setTimeout(G,e.rotate),n(I,t,M.callback)}return setTimeout(G),x}function mc(e){const t={...wh,...e};let n=[];function s(){n=n.filter(l=>l().status==="pending")}function o(l,a,u){const c=Ch(t,l,a,(f,d)=>{s(),u&&u(f,d)});return n.push(c),c}function r(l){return n.find(a=>l(a))||null}return{query:o,find:r,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:s}}function ji(){}const Ao=Object.create(null);function Sh(e){if(!Ao[e]){const t=Er(e);if(!t)return;const n=mc(t),s={config:t,redundancy:n};Ao[e]=s}return Ao[e]}function xh(e,t,n){let s,o;if(typeof e=="string"){const r=Zo(e);if(!r)return n(void 0,424),ji;o=r.send;const i=Sh(e);i&&(s=i.redundancy)}else{const r=Sr(e);if(r){s=mc(r);const i=e.resources?e.resources[0]:"",l=Zo(i);l&&(o=l.send)}}return!s||!o?(n(void 0,424),ji):s.query(t,o,n)().abort}function Bi(){}function Eh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,vh(e)}))}function Th(e){const t=[],n=[];return e.forEach(s=>{(s.match(lc)?t:n).push(s)}),{valid:t,invalid:n}}function kn(e,t,n){function s(){const o=e.pendingIcons;t.forEach(r=>{o&&o.delete(r),e.icons[r]||e.missing.add(r)})}if(n&&typeof n=="object")try{if(!fc(e,n).length){s();return}}catch(o){console.error(o)}s(),Eh(e)}function Hi(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Ah(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const r=e.loadIcon;if(e.loadIcons&&(o.length>1||!r)){Hi(e.loadIcons(o,s,n),c=>{kn(e,o,c)});return}if(r){o.forEach(c=>{const f=r(c,s,n);Hi(f,d=>{const h=d?{prefix:s,icons:{[c]:d}}:null;kn(e,[c],h)})});return}const{valid:i,invalid:l}=Th(o);if(l.length&&kn(e,l,null),!i.length)return;const a=s.match(lc)?Zo(n):null;if(!a){kn(e,i,null);return}a.prepare(n,s,i).forEach(c=>{xh(n,c,f=>{kn(e,c.icons,f)})})}))}const Rh=(e,t)=>{const n=_h(e,!0,dc()),s=mh(n);if(!s.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(s.loaded,s.missing,s.pending,Bi)}),()=>{a=!1}}const o=Object.create(null),r=[];let i,l;return s.pending.forEach(a=>{const{provider:u,prefix:c}=a;if(c===l&&u===i)return;i=u,l=c,r.push(yn(u,c));const f=o[u]||(o[u]=Object.create(null));f[c]||(f[c]=[])}),s.pending.forEach(a=>{const{provider:u,prefix:c,name:f}=a,d=yn(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][c].push(f))}),r.forEach(a=>{const u=o[a.provider][a.prefix];u.length&&Ah(a,u)}),t?bh(t,s,r):Bi};function kh(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in pc?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const Oh=/[\s,]+/;function $h(e,t){t.split(Oh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ph(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:s(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return t}function Ih(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Lh(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Mh(e){return"data:image/svg+xml,"+Lh(e)}function Dh(e){return'url("'+Mh(e)+'")'}const Vi={...hc,inline:!1},Nh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Fh={display:"inline-block"},Xo={backgroundColor:"currentColor"},vc={backgroundColor:"transparent"},qi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zi={webkitMask:Xo,mask:Xo,background:vc};for(const e in zi){const t=zi[e];for(const n in qi)t[e+n]=qi[n]}const xs={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";xs[e+"-flip"]=t,xs[e.slice(0,1)+"-flip"]=t,xs[e+"Flip"]=t});function Ki(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Wi=(e,t)=>{const n=kh(Vi,t),s={...Nh},o=t.mode||"svg",r={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let b in t){const y=t[b];if(y!==void 0)switch(b){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[b]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&$h(n,y);break;case"color":r.color=y;break;case"rotate":typeof y=="string"?n[b]=Ph(y):typeof y=="number"&&(n[b]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete s["aria-hidden"];break;default:{const x=xs[b];x?(y===!0||y==="true"||y===1)&&(n[x]=!0):Vi[b]===void 0&&(s[b]=y)}}}const a=nh(e,n),u=a.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...l},Object.assign(s,u);let b=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),s.innerHTML=ih(a.body,y?()=>y+"ID"+b++:"iconifyVue"),zt("svg",s)}const{body:c,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:c.indexOf("currentColor")!==-1),v=Ih(c,{...u,width:f+"",height:d+""});return s.style={...r,"--svg":Dh(v),width:Ki(u.width),height:Ki(u.height),...Fh,...h?Xo:vc,...l},zt("span",s)};dc(!0);lh("",gh);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Jp(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;ah(n,o)||console.error(s)}catch{console.error(s)}}}}const Uh={...ao,body:""},jh=Fe((e,{emit:t})=>{const n=Q(null);function s(){var u,c;n.value&&((c=(u=n.value).abort)==null||c.call(u),n.value=null)}const o=Q(!!e.ssr),r=Q(""),i=Ul(null);function l(){const u=e.icon;if(typeof u=="object"&&u!==null&&typeof u.body=="string")return r.value="",{data:u};let c;if(typeof u!="string"||(c=lo(u,!1,!0))===null)return null;let f=Wp(c);if(!f){const v=n.value;return(!v||v.name!==u)&&(f===null?n.value={name:u}:n.value={name:u,abort:Rh([c],a)}),null}s(),r.value!==u&&(r.value=u,gn(()=>{t("load",u)}));const d=e.customise;if(d){f=Object.assign({},f);const v=d(f.body,c.name,c.prefix,c.provider);typeof v=="string"&&(f.body=v)}const h=["iconify"];return c.prefix!==""&&h.push("iconify--"+c.prefix),c.provider!==""&&h.push("iconify--"+c.provider),{data:f,classes:h}}function a(){var c;const u=l();u?u.data!==((c=i.value)==null?void 0:c.data)&&(i.value=u):i.value=null}return o.value?a():st(()=>{o.value=!0,a()}),wt(()=>e.icon,a),ts(s),()=>{const u=i.value;if(!u)return Wi(Uh,e);let c=e;return u.classes&&(c={...e,class:u.classes.join(" ")}),Wi({...ao,...u.data},c)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),te=Fe({__name:"IconifyIcon",props:{icon:{},className:{}},setup(e){return(t,n)=>(L(),Ve(W(jh),{icon:e.icon,class:oe(e.className)},null,8,["icon","class"]))}});function Bh(){const e=Q(!1),t=Q({title:"",message:"",type:"warning",confirmText:"确认",cancelText:"取消"});let n=null;return{visible:e,config:t,show:i=>(t.value={...t.value,...i},e.value=!0,new Promise(l=>{n=l})),handleConfirm:()=>{e.value=!1,n&&(n(!0),n=null)},handleCancel:()=>{e.value=!1,n&&(n(!1),n=null)}}}const Hh={key:0,class:"dialog-icon"},Vh={class:"dialog-title"},qh={class:"dialog-message"},zh={class:"dialog-actions"},Kh=Fe({__name:"ConfirmDialog",props:{visible:{type:Boolean},title:{},message:{},type:{default:"warning"},confirmText:{default:"确认"},cancelText:{default:"取消"},showIcon:{type:Boolean,default:!0}},emits:["confirm","cancel","update:visible"],setup(e,{emit:t}){const n=e,s=t,o=ye(()=>({info:"mdi:information",warning:"mdi:alert",danger:"mdi:alert-circle"})[n.type]),r=ye(()=>({info:"btn-primary",warning:"btn-warning",danger:"btn-error"})[n.type]),i=()=>{s("confirm"),s("update:visible",!1)},l=()=>{s("cancel"),s("update:visible",!1)};return(a,u)=>(L(),Ve(Ql,{to:"body"},[B(Ia,{name:"fade"},{default:At(()=>[e.visible?(L(),N("div",{key:0,class:"confirm-dialog-overlay",onClick:jt(l,["self"])},[p("div",{class:oe(["confirm-dialog",`type-${e.type}`])},[e.showIcon?(L(),N("div",Hh,[B(te,{icon:o.value},null,8,["icon"])])):ce("",!0),p("h3",Vh,V(e.title),1),p("p",qh,V(e.message),1),p("div",zh,[e.cancelText?(L(),N("button",{key:0,class:"btn btn-outline",onClick:l},V(e.cancelText),1)):ce("",!0),p("button",{class:oe(["btn",r.value]),onClick:i},V(e.confirmText),3)])],2)])):ce("",!0)]),_:1})]))}}),yc=ot(Kh,[["__scopeId","data-v-06d5569c"]]),Wh={class:"setup-wizard"},Gh={class:"wizard-card"},Jh={class:"steps-indicator"},Qh={key:0,class:"wizard-content step-1"},Zh={class:"setting-group"},Xh={class:"setting-label"},Yh={class:"path-input-group"},e1={key:0,class:"setting-error"},t1={class:"quick-options"},n1=["onClick"],s1={key:1,class:"wizard-content step-2"},o1={class:"setting-group"},r1={class:"setting-label"},i1={class:"wizard-actions"},l1=["disabled"],a1=Fe({__name:"SetupWizard",emits:["complete"],setup(e,{emit:t}){const n=t,s=Q(1),o=Q(""),r=Q(""),i=Q(3),l=Q(!0),a=Q(!0),{visible:u,config:c,show:f,handleConfirm:d,handleCancel:h}=Bh(),v=ye(()=>o.value.trim().length>0&&!r.value);st(()=>{setTimeout(()=>{a.value=!1},100)});const b=[{label:"Downloads",value:"/Users/用户/Downloads/Hayaku/",icon:"mdi:folder-download"},{label:"Desktop",value:"/Users/用户/Desktop/Hayaku/",icon:"mdi:desktop-classic"},{label:"自定义",value:"",icon:"mdi:folder-cog"}],y=()=>{if(r.value="",!!o.value.trim()){if(o.value.includes("~")){r.value="路径不能包含 ~ 符号,请使用完整路径(例如:/Users/你的用户名/Downloads/Hayaku/)";return}if(!o.value.startsWith("/")){r.value="路径必须是绝对路径,以 / 开头";return}o.value.endsWith("/")||(r.value="路径必须以 / 结尾")}},x=async()=>{await f({title:"路径格式说明",message:"请输入完整的绝对路径(不能使用 ~ 符号),例如:/Users/你的用户名/Downloads/Hayaku/。注意:必须以 / 开头并以 / 结尾",type:"info",confirmText:"我知道了",cancelText:""})},S=()=>{d()},k=()=>{h()},P=async()=>{if(s.value<2&&o.value&&!r.value)try{const M=await Ae.validatePath(o.value);if(!M.exists){r.value="目录不存在,请选择有效的目录";return}if(!M.isDirectory){r.value="所选路径不是目录";return}s.value++}catch(M){console.error("验证路径失败:",M),r.value="无法验证目录是否存在"}},G=()=>{s.value>1&&s.value--},I=async()=>{try{await Ae.updateSettings({download_path:o.value,concurrent_downloads:i.value.toString(),auto_check_update:l.value?"true":"false"}),n("complete")}catch(M){console.error("保存配置失败:",M),alert("保存配置失败,请重试")}};return(M,A)=>(L(),N("div",Wh,[p("div",{class:oe(["white-overlay",{"fade-out":!a.value}])},null,2),p("div",{class:oe(["starfield-layer",{visible:!a.value}])},null,2),p("div",{class:oe(["glass-blur-layer",{visible:!a.value}])},null,2),A[15]||(A[15]=Aa('<div class="wizard-background" data-v-68f4ce85><div class="gradient-orb orb-1" data-v-68f4ce85></div><div class="gradient-orb orb-2" data-v-68f4ce85></div><div class="gradient-orb orb-3" data-v-68f4ce85></div><div class="gradient-orb orb-4" data-v-68f4ce85></div><div class="gradient-orb orb-5" data-v-68f4ce85></div><div class="gradient-orb orb-6" data-v-68f4ce85></div><div class="gradient-orb orb-7" data-v-68f4ce85></div><div class="gradient-orb orb-8" data-v-68f4ce85></div><div class="gradient-orb orb-9" data-v-68f4ce85></div><div class="gradient-orb orb-10" data-v-68f4ce85></div><div class="gradient-orb orb-11" data-v-68f4ce85></div><div class="gradient-orb orb-12" data-v-68f4ce85></div><div class="gradient-orb orb-13" data-v-68f4ce85></div><div class="gradient-orb orb-14" data-v-68f4ce85></div><div class="gradient-orb orb-15" data-v-68f4ce85></div></div>',1)),p("div",Gh,[A[14]||(A[14]=p("div",{class:"wizard-header"},[p("h1",{class:"wizard-title"},"欢迎使用"),p("p",{class:"wizard-subtitle"},"让我们先进行简单的配置")],-1)),p("div",Jh,[p("div",{class:oe(["step",{active:s.value===1}])},[...A[2]||(A[2]=[p("div",{class:"step-circle"},"1",-1),p("span",null,"下载路径",-1)])],2),A[4]||(A[4]=p("div",{class:"step-line"},null,-1)),p("div",{class:oe(["step",{active:s.value===2}])},[...A[3]||(A[3]=[p("div",{class:"step-circle"},"2",-1),p("span",null,"偏好设置",-1)])],2)]),s.value===1?(L(),N("div",Qh,[p("div",Zh,[p("label",Xh,[B(te,{icon:"mdi:folder-download"}),A[5]||(A[5]=ue(" 输入默认下载位置 ",-1))]),p("div",Yh,[Vt(p("input",{ref:"pathInputRef","onUpdate:modelValue":A[0]||(A[0]=C=>o.value=C),type:"text",class:"path-input",placeholder:"/Users/你的用户名/Downloads/Hayaku/",onInput:y},null,544),[[Ma,o.value]]),p("button",{class:"browse-btn",onClick:x},[B(te,{icon:"mdi:help-circle"}),A[6]||(A[6]=ue(" 帮助 ",-1))])]),A[7]||(A[7]=p("p",{class:"setting-hint"},"请输入完整的绝对路径,不能使用 ~ 符号",-1)),r.value?(L(),N("p",e1,V(r.value),1)):ce("",!0)]),p("div",t1,[A[8]||(A[8]=p("p",{class:"quick-label"},"快速选择:",-1)),(L(),N($e,null,mn(b,C=>p("button",{key:C.value,class:"quick-option",onClick:O=>{o.value=C.value,y()}},[B(te,{icon:C.icon},null,8,["icon"]),ue(" "+V(C.label),1)],8,n1)),64))])])):s.value===2?(L(),N("div",s1,[p("div",o1,[p("label",r1,[B(te,{icon:"mdi:download-multiple"}),A[9]||(A[9]=ue(" 最大并发下载数 ",-1))]),Vt(p("select",{"onUpdate:modelValue":A[1]||(A[1]=C=>i.value=C),class:"setting-select"},[...A[10]||(A[10]=[p("option",{value:1},"1个(较慢但稳定)",-1),p("option",{value:3},"3个(推荐)",-1),p("option",{value:5},"5个(快速)",-1)])],512),[[Da,i.value]])])])):ce("",!0),p("div",i1,[s.value>1?(L(),N("button",{key:0,class:"btn btn-secondary",onClick:G},[B(te,{icon:"mdi:arrow-left"}),A[11]||(A[11]=ue(" 上一步 ",-1))])):ce("",!0),s.value<2?(L(),N("button",{key:1,class:"btn btn-primary",onClick:P,disabled:!v.value},[A[12]||(A[12]=ue(" 下一步 ",-1)),B(te,{icon:"mdi:arrow-right"})],8,l1)):(L(),N("button",{key:2,class:"btn btn-primary btn-finish",onClick:I},[B(te,{icon:"mdi:check"}),A[13]||(A[13]=ue(" 完成设置 ",-1))]))])]),B(yc,{visible:W(u),title:W(c).title,message:W(c).message,type:W(c).type,confirmText:W(c).confirmText,cancelText:W(c).cancelText,onConfirm:S,onCancel:k},null,8,["visible","title","message","type","confirmText","cancelText"])]))}}),c1=ot(a1,[["__scopeId","data-v-68f4ce85"]]),u1={class:"error-card"},f1={class:"error-icon-container"},d1={key:0,class:"error-details"},p1={class:"detail-item"},h1={class:"detail-value"},g1={key:0,class:"detail-item detail-status"},m1={class:"tech-details"},v1={key:0,class:"tech-content"},y1={class:"tech-item"},b1={class:"tech-value"},_1={class:"tech-item"},w1={class:"tech-value"},C1={class:"tech-item"},S1={class:"tech-value"},x1=Fe({__name:"ErrorPage",props:{errorMessage:{},errorCode:{},requestUrl:{},statusCode:{}},emits:["retry"],setup(e,{emit:t}){const{isDark:n}=Cr(),s=t,o=Q(!1),r=()=>{s("retry")},i=l=>l&&l>=500?"status-5xx":"";return(l,a)=>(L(),N("div",{class:oe(["error-page",{"light-theme":!W(n)}])},[a[9]||(a[9]=Aa('<div class="background-layer" data-v-3fb3f07d><div class="gradient-orb orb-1" data-v-3fb3f07d></div><div class="gradient-orb orb-2" data-v-3fb3f07d></div><div class="gradient-orb orb-3" data-v-3fb3f07d></div><div class="gradient-orb orb-4" data-v-3fb3f07d></div><div class="gradient-orb orb-5" data-v-3fb3f07d></div><div class="gradient-orb orb-6" data-v-3fb3f07d></div></div><div class="blur-layer" data-v-3fb3f07d></div>',2)),p("div",u1,[p("div",f1,[B(te,{icon:"mdi:alert-circle",class:"error-icon"})]),a[7]||(a[7]=p("h1",{class:"error-title"},"无法连接到服务",-1)),a[8]||(a[8]=p("p",{class:"error-description"},"无法与后端服务建立连接,请确保服务已启动",-1)),e.errorMessage?(L(),N("div",d1,[p("div",p1,[a[1]||(a[1]=p("span",{class:"detail-label"},"错误信息:",-1)),p("span",h1,V(e.errorMessage),1)]),e.statusCode?(L(),N("div",g1,[a[2]||(a[2]=p("span",{class:"detail-label"},"HTTP 状态:",-1)),p("span",{class:oe(["detail-value status-badge",i(e.statusCode)])},V(e.statusCode),3)])):ce("",!0)])):ce("",!0),p("button",{class:"retry-button",onClick:r},[B(te,{icon:"mdi:refresh",class:"retry-icon"}),a[3]||(a[3]=ue(" 重试连接 ",-1))]),p("div",m1,[p("button",{class:"tech-toggle",onClick:a[0]||(a[0]=u=>o.value=!o.value)},[B(te,{icon:o.value?"mdi:chevron-up":"mdi:chevron-down",class:"toggle-icon"},null,8,["icon"]),ue(" "+V(o.value?"隐藏":"显示")+"技术细节 ",1)]),o.value?(L(),N("div",v1,[p("div",y1,[a[4]||(a[4]=p("span",{class:"tech-label"},"错误代码:",-1)),p("code",b1,V(e.errorCode||"N/A"),1)]),p("div",_1,[a[5]||(a[5]=p("span",{class:"tech-label"},"请求地址:",-1)),p("code",w1,V(e.requestUrl||"N/A"),1)]),p("div",C1,[a[6]||(a[6]=p("span",{class:"tech-label"},"状态码:",-1)),p("code",S1,V(e.statusCode||"N/A"),1)])])):ce("",!0)])])],2))}}),E1=ot(x1,[["__scopeId","data-v-3fb3f07d"]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),T1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase()),A1=e=>{const t=T1(e);return t.charAt(0).toUpperCase()+t.slice(1)},R1=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim(),Ji=e=>e==="";/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var On={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const k1=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:o,"stroke-width":r,size:i=On.width,color:l=On.stroke,...a},{slots:u})=>zt("svg",{...On,...a,width:i,height:i,stroke:l,"stroke-width":Ji(n)||Ji(s)||n===!0||s===!0?Number(o||r||On["stroke-width"])*24/Number(i):o||r||On["stroke-width"],class:R1("lucide",a.class,...e?[`lucide-${Gi(A1(e))}-icon`,`lucide-${Gi(e)}`]:["lucide-icon"])},[...t.map(c=>zt(...c)),...u.default?[u.default()]:[]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lt=(e,t)=>(n,{slots:s,attrs:o})=>zt(k1,{...o,...n,iconNode:t,name:e},s);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O1=Lt("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $1=Lt("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const P1=Lt("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const I1=Lt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const L1=Lt("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const M1=Lt("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D1=Lt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const N1=Lt("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);/**
|
||
* @license lucide-vue-next v0.548.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F1=Lt("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),U1={id:"app"},j1={key:3,class:"app-layout"},B1={class:"sidebar"},H1={class:"sidebar-nav"},V1={class:"nav-count"},q1={class:"nav-count"},z1={class:"nav-count"},K1={class:"nav-count"},W1={class:"nav-count"},G1={class:"nav-count"},J1={class:"sidebar-footer"},Q1={class:"theme-text"},Z1={class:"service-status"},X1={class:"status-text"},Y1={class:"main-content"},eg=Fe({__name:"App",setup(e){const t=Q([]),n=Q([]),s=Q(!1),{theme:o,toggleTheme:r}=Cr(),i=Q(!0),l=Q(!1),a=Q(!1),u=Q(null),c=()=>{i.value=!1,h()},f=()=>{l.value=!1},d=()=>{a.value=!1,u.value=null,l.value=!1,h()},h=async()=>{try{(await Ae.getAllSettings()).download_path?(l.value=!1,a.value=!1):(l.value=!0,a.value=!1)}catch(I){console.error("检查设置状态失败:",I);const M=Dp(I);M?(u.value=M,a.value=!0,l.value=!1):(l.value=!0,a.value=!1)}},v=ye(()=>t.value.length),b=ye(()=>t.value.filter(I=>I.isInjected).length),y=ye(()=>t.value.filter(I=>I.needsUpgrade).length),x=ye(()=>t.value.filter(I=>!I.supported).length),S=ye(()=>t.value.filter(I=>I.feedUrl&&I.feedUrl.length>0).length),k=ye(()=>n.value.filter(I=>I.status==="downloading").length),P=async()=>{try{t.value=await Ae.getApps(),s.value=!0}catch(I){console.error("加载应用列表失败:",I),s.value=!1}},G=async()=>{try{n.value=await Ae.getAllDownloads()}catch(I){console.error("加载下载列表失败:",I)}};return st(()=>{P(),G(),setInterval(G,2e3)}),(I,M)=>{var O,F,U,ie;const A=Hr("router-link"),C=Hr("router-view");return L(),N("div",U1,[i.value?(L(),Ve(jp,{key:0,onComplete:c})):a.value?(L(),Ve(E1,{key:1,onRetry:d,"error-message":(O=u.value)==null?void 0:O.message,"error-code":(F=u.value)==null?void 0:F.code,"request-url":(U=u.value)==null?void 0:U.requestUrl,"status-code":(ie=u.value)==null?void 0:ie.statusCode},null,8,["error-message","error-code","request-url","status-code"])):l.value?(L(),Ve(c1,{key:2,onComplete:f})):(L(),N("div",j1,[p("aside",B1,[M[7]||(M[7]=p("div",{class:"sidebar-header"},[p("h1",{class:"app-title"},"QiuChenly"),p("p",{class:"app-subtitle"},"应用商店 - 预览测试版 0.1b")],-1)),p("nav",H1,[B(A,{to:"/",class:oe(["nav-item",{active:I.$route.path==="/"&&!I.$route.query.filter}])},{default:At(()=>[B(W(I1),{class:"nav-icon"}),M[1]||(M[1]=p("span",{class:"nav-text"},"所有应用",-1)),p("span",V1,V(v.value),1)]),_:1},8,["class"]),B(A,{to:"/?filter=injected",class:oe(["nav-item",{active:I.$route.query.filter==="injected"}])},{default:At(()=>[B(W(O1),{class:"nav-icon"}),M[2]||(M[2]=p("span",{class:"nav-text"},"已注入",-1)),p("span",q1,V(b.value),1)]),_:1},8,["class"]),B(A,{to:"/?filter=update",class:oe(["nav-item",{active:I.$route.query.filter==="update"}])},{default:At(()=>[B(W(D1),{class:"nav-icon"}),M[3]||(M[3]=p("span",{class:"nav-text"},"可更新",-1)),p("span",z1,V(y.value),1)]),_:1},8,["class"]),B(A,{to:"/?filter=unsupported",class:oe(["nav-item",{active:I.$route.query.filter==="unsupported"}])},{default:At(()=>[B(W($1),{class:"nav-icon"}),M[4]||(M[4]=p("span",{class:"nav-text"},"不支持",-1)),p("span",K1,V(x.value),1)]),_:1},8,["class"]),B(A,{to:"/?filter=store",class:oe(["nav-item",{active:I.$route.query.filter==="store"}])},{default:At(()=>[B(W(N1),{class:"nav-icon"}),M[5]||(M[5]=p("span",{class:"nav-text"},"商店",-1)),p("span",W1,V(S.value),1)]),_:1},8,["class"]),B(A,{to:"/downloads",class:oe(["nav-item",{active:I.$route.path==="/downloads"}])},{default:At(()=>[B(W(P1),{class:"nav-icon"}),M[6]||(M[6]=p("span",{class:"nav-text"},"下载管理",-1)),p("span",G1,V(k.value),1)]),_:1},8,["class"])]),p("div",J1,[p("button",{onClick:M[0]||(M[0]=(...le)=>W(r)&&W(r)(...le)),class:"theme-toggle"},[(L(),Ve(Fu(W(o)==="auto"?W(L1):W(o)==="dark"?W(M1):W(F1)),{class:"theme-icon"})),p("span",Q1,V(W(o)==="auto"?"自动":W(o)==="dark"?"暗色":"浅色"),1)]),p("div",Z1,[p("div",{class:oe(["status-indicator",{online:s.value}])},null,2),p("span",X1,V(s.value?"服务在线":"服务离线"),1)])])]),p("main",Y1,[B(C)])]))])}}}),tg=ot(eg,[["__scopeId","data-v-41dad825"]]);/*!
|
||
* vue-router v4.5.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const an=typeof document<"u";function bc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ng(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bc(e.default)}const ge=Object.assign;function Ro(e,t){const n={};for(const s in t){const o=t[s];n[s]=ct(o)?o.map(e):e(o)}return n}const Bn=()=>{},ct=Array.isArray,_c=/#/g,sg=/&/g,og=/\//g,rg=/=/g,ig=/\?/g,wc=/\+/g,lg=/%5B/g,ag=/%5D/g,Cc=/%5E/g,cg=/%60/g,Sc=/%7B/g,ug=/%7C/g,xc=/%7D/g,fg=/%20/g;function Tr(e){return encodeURI(""+e).replace(ug,"|").replace(lg,"[").replace(ag,"]")}function dg(e){return Tr(e).replace(Sc,"{").replace(xc,"}").replace(Cc,"^")}function Yo(e){return Tr(e).replace(wc,"%2B").replace(fg,"+").replace(_c,"%23").replace(sg,"%26").replace(cg,"`").replace(Sc,"{").replace(xc,"}").replace(Cc,"^")}function pg(e){return Yo(e).replace(rg,"%3D")}function hg(e){return Tr(e).replace(_c,"%23").replace(ig,"%3F")}function gg(e){return e==null?"":hg(e).replace(og,"%2F")}function Zn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const mg=/\/$/,vg=e=>e.replace(mg,"");function ko(e,t,n="/"){let s,o={},r="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(s=t.slice(0,a),r=t.slice(a+1,l>-1?l:t.length),o=e(r)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=wg(s??t,n),{fullPath:s+(r&&"?")+r+i,path:s,query:o,hash:Zn(i)}}function yg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bg(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&bn(t.matched[s],n.matched[o])&&Ec(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function bn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ec(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_g(e[n],t[n]))return!1;return!0}function _g(e,t){return ct(e)?Zi(e,t):ct(t)?Zi(t,e):e===t}function Zi(e,t){return ct(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function wg(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,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i).join("/")}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xn;(function(e){e.pop="pop",e.push="push"})(Xn||(Xn={}));var Hn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hn||(Hn={}));function Cg(e){if(!e)if(an){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vg(e)}const Sg=/^[^#]+#/;function xg(e,t){return e.replace(Sg,"#")+t}function Eg(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 co=()=>({left:window.scrollX,top:window.scrollY});function Tg(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=Eg(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 Xi(e,t){return(history.state?history.state.position-t:-1)+e}const er=new Map;function Ag(e,t){er.set(e,t)}function Rg(e){const t=er.get(e);return er.delete(e),t}let kg=()=>location.protocol+"//"+location.host;function Tc(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let l=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),Qi(a,"")}return Qi(n,e)+s+o}function Og(e,t,n,s){let o=[],r=[],i=null;const l=({state:d})=>{const h=Tc(e,location),v=n.value,b=t.value;let y=0;if(d){if(n.value=h,t.value=d,i&&i===v){i=null;return}y=b?d.position-b.position:0}else s(h);o.forEach(x=>{x(n.value,v,{delta:y,type:Xn.pop,direction:y?y>0?Hn.forward:Hn.back:Hn.unknown})})};function a(){i=n.value}function u(d){o.push(d);const h=()=>{const v=o.indexOf(d);v>-1&&o.splice(v,1)};return r.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(ge({},d.state,{scroll:co()}),"")}function f(){for(const d of r)d();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function Yi(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?co():null}}function $g(e){const{history:t,location:n}=window,s={value:Tc(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(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:kg()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(a,u){const c=ge({},t.state,Yi(o.value.back,a,o.value.forward,!0),u,{position:o.value.position});r(a,c,!0),s.value=a}function l(a,u){const c=ge({},o.value,t.state,{forward:a,scroll:co()});r(c.current,c,!0);const f=ge({},Yi(s.value,a,null),{position:c.position+1},u);r(a,f,!1),s.value=a}return{location:s,state:o,push:l,replace:i}}function Pg(e){e=Cg(e);const t=$g(e),n=Og(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=ge({location:"",base:e,go:s,createHref:xg.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 Ig(e){return typeof e=="string"||e&&typeof e=="object"}function Ac(e){return typeof e=="string"||typeof e=="symbol"}const Rc=Symbol("");var el;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(el||(el={}));function _n(e,t){return ge(new Error,{type:e,[Rc]:!0},t)}function Et(e,t){return e instanceof Error&&Rc in e&&(t==null||!!(e.type&t))}const tl="[^/]+?",Lg={sensitive:!1,strict:!1,start:!0,end:!0},Mg=/[.+*?^${}()[\]/\\]/g;function Dg(e,t){const n=ge({},Lg,t),s=[];let o=n.start?"^":"";const r=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(Mg,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:b,optional:y,regexp:x}=d;r.push({name:v,repeatable:b,optional:y});const S=x||tl;if(S!==tl){h+=10;try{new RegExp(`(${S})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${v}" (${S}): `+P.message)}}let k=b?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(k=y&&u.length<2?`(?:/${k})`:"/"+k),y&&(k+="?"),o+=k,h+=20,y&&(h+=-8),b&&(h+=-20),S===".*"&&(h+=-50)}c.push(h)}s.push(c)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function l(u){const c=u.match(i),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=r[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function a(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:b,optional:y}=h,x=v in u?u[v]:"";if(ct(x)&&!b)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const S=ct(x)?x.join("/"):x;if(!S)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=S}}return c||"/"}return{re:i,score:s,keys:r,parse:l,stringify:a}}function Ng(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function kc(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=Ng(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(nl(s))return 1;if(nl(o))return-1}return o.length-s.length}function nl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Fg={type:0,value:""},Ug=/[a-zA-Z0-9_]/;function jg(e){if(!e)return[[]];if(e==="/")return[[Fg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let l=0,a,u="",c="";function f(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:a==="/"?(u&&f(),i()):a===":"?(f(),n=1):d();break;case 4:d(),n=s;break;case 1:a==="("?n=2:Ug.test(a)?d():(f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=3:c+=a;break;case 3:f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),o}function Bg(e,t,n){const s=Dg(jg(e.path),n),o=ge(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Hg(e,t){const n=[],s=new Map;t=il({strict:!1,end:!0,sensitive:!1},t);function o(f){return s.get(f)}function r(f,d,h){const v=!h,b=ol(f);b.aliasOf=h&&h.record;const y=il(t,f),x=[b];if("alias"in f){const P=typeof f.alias=="string"?[f.alias]:f.alias;for(const G of P)x.push(ol(ge({},b,{components:h?h.record.components:b.components,path:G,aliasOf:h?h.record:b})))}let S,k;for(const P of x){const{path:G}=P;if(d&&G[0]!=="/"){const I=d.record.path,M=I[I.length-1]==="/"?"":"/";P.path=d.record.path+(G&&M+G)}if(S=Bg(P,d,y),h?h.alias.push(S):(k=k||S,k!==S&&k.alias.push(S),v&&f.name&&!rl(S)&&i(f.name)),Oc(S)&&a(S),b.children){const I=b.children;for(let M=0;M<I.length;M++)r(I[M],S,h&&h.children[M])}h=h||S}return k?()=>{i(k)}:Bn}function i(f){if(Ac(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const d=zg(f,n);n.splice(d,0,f),f.record.name&&!rl(f)&&s.set(f.record.name,f)}function u(f,d){let h,v={},b,y;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw _n(1,{location:f});y=h.record.name,v=ge(sl(d.params,h.keys.filter(k=>!k.optional).concat(h.parent?h.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),f.params&&sl(f.params,h.keys.map(k=>k.name))),b=h.stringify(v)}else if(f.path!=null)b=f.path,h=n.find(k=>k.re.test(b)),h&&(v=h.parse(b),y=h.record.name);else{if(h=d.name?s.get(d.name):n.find(k=>k.re.test(d.path)),!h)throw _n(1,{location:f,currentLocation:d});y=h.record.name,v=ge({},d.params,f.params),b=h.stringify(v)}const x=[];let S=h;for(;S;)x.unshift(S.record),S=S.parent;return{name:y,path:b,params:v,matched:x,meta:qg(x)}}e.forEach(f=>r(f));function c(){n.length=0,s.clear()}return{addRoute:r,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:o}}function sl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ol(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Vg(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 Vg(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 rl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qg(e){return e.reduce((t,n)=>ge(t,n.meta),{})}function il(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function zg(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;kc(e,t[r])<0?s=r:n=r+1}const o=Kg(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function Kg(e){let t=e;for(;t=t.parent;)if(Oc(t)&&kc(e,t)===0)return t}function Oc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wg(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(wc," "),i=r.indexOf("="),l=Zn(i<0?r:r.slice(0,i)),a=i<0?null:Zn(r.slice(i+1));if(l in t){let u=t[l];ct(u)||(u=t[l]=[u]),u.push(a)}else t[l]=a}return t}function ll(e){let t="";for(let n in e){const s=e[n];if(n=pg(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(ct(s)?s.map(r=>r&&Yo(r)):[s&&Yo(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Gg(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ct(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Jg=Symbol(""),al=Symbol(""),uo=Symbol(""),Ar=Symbol(""),tr=Symbol("");function $n(){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 Ut(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const u=d=>{d===!1?a(_n(4,{from:n,to:t})):d instanceof Error?a(d):Ig(d)?a(_n(2,{from:t,to:d})):(i&&s.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),l())},c=r(()=>e.call(s&&s.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>a(d))})}function Oo(e,t,n,s,o=r=>r()){const r=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(bc(a)){const c=(a.__vccOpts||a)[t];c&&r.push(Ut(c,n,s,i,l,o))}else{let u=a();r.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=ng(c)?c.default:c;i.mods[l]=c,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Ut(h,n,s,i,l,o)()}))}}return r}function cl(e){const t=lt(uo),n=lt(Ar),s=ye(()=>{const a=W(e.to);return t.resolve(a)}),o=ye(()=>{const{matched:a}=s.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(bn.bind(null,c));if(d>-1)return d;const h=ul(a[u-2]);return u>1&&ul(c)===h&&f[f.length-1].path!==h?f.findIndex(bn.bind(null,a[u-2])):d}),r=ye(()=>o.value>-1&&em(n.params,s.value.params)),i=ye(()=>o.value>-1&&o.value===n.matched.length-1&&Ec(n.params,s.value.params));function l(a={}){if(Yg(a)){const u=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Bn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:ye(()=>s.value.href),isActive:r,isExactActive:i,navigate:l}}function Qg(e){return e.length===1?e[0]:e}const Zg=Fe({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:cl,setup(e,{slots:t}){const n=Js(cl(e)),{options:s}=lt(uo),o=ye(()=>({[fl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[fl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Qg(t.default(n));return e.custom?r:zt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Xg=Zg;function Yg(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 em(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(!ct(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function ul(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fl=(e,t,n)=>e??t??n,tm=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=lt(tr),o=ye(()=>e.route||s.value),r=lt(al,0),i=ye(()=>{let u=W(r);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=ye(()=>o.value.matched[i.value]);gs(al,ye(()=>i.value+1)),gs(Jg,l),gs(tr,o);const a=Q();return wt(()=>[a.value,l.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!bn(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return dl(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=zt(d,ge({},v,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return dl(n.default,{Component:y,route:u})||y}}});function dl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const nm=tm;function sm(e){const t=Hg(e.routes,e),n=e.parseQuery||Wg,s=e.stringifyQuery||ll,o=e.history,r=$n(),i=$n(),l=$n(),a=Ul(Dt);let u=Dt;an&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ro.bind(null,R=>""+R),f=Ro.bind(null,gg),d=Ro.bind(null,Zn);function h(R,J){let z,Z;return Ac(R)?(z=t.getRecordMatcher(R),Z=J):Z=R,t.addRoute(Z,z)}function v(R){const J=t.getRecordMatcher(R);J&&t.removeRoute(J)}function b(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function x(R,J){if(J=ge({},J||a.value),typeof R=="string"){const _=ko(n,R,J.path),T=t.resolve({path:_.path},J),$=o.createHref(_.fullPath);return ge(_,T,{params:d(T.params),hash:Zn(_.hash),redirectedFrom:void 0,href:$})}let z;if(R.path!=null)z=ge({},R,{path:ko(n,R.path,J.path).path});else{const _=ge({},R.params);for(const T in _)_[T]==null&&delete _[T];z=ge({},R,{params:f(_)}),J.params=f(J.params)}const Z=t.resolve(z,J),_e=R.hash||"";Z.params=c(d(Z.params));const g=yg(s,ge({},R,{hash:dg(_e),path:Z.path})),m=o.createHref(g);return ge({fullPath:g,hash:_e,query:s===ll?Gg(R.query):R.query||{}},Z,{redirectedFrom:void 0,href:m})}function S(R){return typeof R=="string"?ko(n,R,a.value.path):ge({},R)}function k(R,J){if(u!==R)return _n(8,{from:J,to:R})}function P(R){return M(R)}function G(R){return P(ge(S(R),{replace:!0}))}function I(R){const J=R.matched[R.matched.length-1];if(J&&J.redirect){const{redirect:z}=J;let Z=typeof z=="function"?z(R):z;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=S(Z):{path:Z},Z.params={}),ge({query:R.query,hash:R.hash,params:Z.path!=null?{}:R.params},Z)}}function M(R,J){const z=u=x(R),Z=a.value,_e=R.state,g=R.force,m=R.replace===!0,_=I(z);if(_)return M(ge(S(_),{state:typeof _=="object"?ge({},_e,_.state):_e,force:g,replace:m}),J||z);const T=z;T.redirectedFrom=J;let $;return!g&&bg(s,Z,z)&&($=_n(16,{to:T,from:Z}),ke(Z,Z,!0,!1)),($?Promise.resolve($):O(T,Z)).catch(E=>Et(E)?Et(E,2)?E:ft(E):ae(E,T,Z)).then(E=>{if(E){if(Et(E,2))return M(ge({replace:m},S(E.to),{state:typeof E.to=="object"?ge({},_e,E.to.state):_e,force:g}),J||T)}else E=U(T,Z,!0,m,_e);return F(T,Z,E),E})}function A(R,J){const z=k(R,J);return z?Promise.reject(z):Promise.resolve()}function C(R){const J=rt.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(R):R()}function O(R,J){let z;const[Z,_e,g]=om(R,J);z=Oo(Z.reverse(),"beforeRouteLeave",R,J);for(const _ of Z)_.leaveGuards.forEach(T=>{z.push(Ut(T,R,J))});const m=A.bind(null,R,J);return z.push(m),Ye(z).then(()=>{z=[];for(const _ of r.list())z.push(Ut(_,R,J));return z.push(m),Ye(z)}).then(()=>{z=Oo(_e,"beforeRouteUpdate",R,J);for(const _ of _e)_.updateGuards.forEach(T=>{z.push(Ut(T,R,J))});return z.push(m),Ye(z)}).then(()=>{z=[];for(const _ of g)if(_.beforeEnter)if(ct(_.beforeEnter))for(const T of _.beforeEnter)z.push(Ut(T,R,J));else z.push(Ut(_.beforeEnter,R,J));return z.push(m),Ye(z)}).then(()=>(R.matched.forEach(_=>_.enterCallbacks={}),z=Oo(g,"beforeRouteEnter",R,J,C),z.push(m),Ye(z))).then(()=>{z=[];for(const _ of i.list())z.push(Ut(_,R,J));return z.push(m),Ye(z)}).catch(_=>Et(_,8)?_:Promise.reject(_))}function F(R,J,z){l.list().forEach(Z=>C(()=>Z(R,J,z)))}function U(R,J,z,Z,_e){const g=k(R,J);if(g)return g;const m=J===Dt,_=an?history.state:{};z&&(Z||m?o.replace(R.fullPath,ge({scroll:m&&_&&_.scroll},_e)):o.push(R.fullPath,_e)),a.value=R,ke(R,J,z,m),ft()}let ie;function le(){ie||(ie=o.listen((R,J,z)=>{if(!Kt.listening)return;const Z=x(R),_e=I(Z);if(_e){M(ge(_e,{replace:!0,force:!0}),Z).catch(Bn);return}u=Z;const g=a.value;an&&Ag(Xi(g.fullPath,z.delta),co()),O(Z,g).catch(m=>Et(m,12)?m:Et(m,2)?(M(ge(S(m.to),{force:!0}),Z).then(_=>{Et(_,20)&&!z.delta&&z.type===Xn.pop&&o.go(-1,!1)}).catch(Bn),Promise.reject()):(z.delta&&o.go(-z.delta,!1),ae(m,Z,g))).then(m=>{m=m||U(Z,g,!1),m&&(z.delta&&!Et(m,8)?o.go(-z.delta,!1):z.type===Xn.pop&&Et(m,20)&&o.go(-1,!1)),F(Z,g,m)}).catch(Bn)}))}let xe=$n(),fe=$n(),pe;function ae(R,J,z){ft(R);const Z=fe.list();return Z.length?Z.forEach(_e=>_e(R,J,z)):console.error(R),Promise.reject(R)}function Xe(){return pe&&a.value!==Dt?Promise.resolve():new Promise((R,J)=>{xe.add([R,J])})}function ft(R){return pe||(pe=!R,le(),xe.list().forEach(([J,z])=>R?z(R):J()),xe.reset()),R}function ke(R,J,z,Z){const{scrollBehavior:_e}=e;if(!an||!_e)return Promise.resolve();const g=!z&&Rg(Xi(R.fullPath,0))||(Z||!z)&&history.state&&history.state.scroll||null;return gn().then(()=>_e(R,J,g)).then(m=>m&&Tg(m)).catch(m=>ae(m,R,J))}const Te=R=>o.go(R);let dt;const rt=new Set,Kt={currentRoute:a,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:b,resolve:x,options:e,push:P,replace:G,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:fe.add,isReady:Xe,install(R){const J=this;R.component("RouterLink",Xg),R.component("RouterView",nm),R.config.globalProperties.$router=J,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>W(a)}),an&&!dt&&a.value===Dt&&(dt=!0,P(o.location).catch(_e=>{}));const z={};for(const _e in Dt)Object.defineProperty(z,_e,{get:()=>a.value[_e],enumerable:!0});R.provide(uo,J),R.provide(Ar,Nl(z)),R.provide(tr,a);const Z=R.unmount;rt.add(R),R.unmount=function(){rt.delete(R),rt.size<1&&(u=Dt,ie&&ie(),ie=null,a.value=Dt,dt=!1,pe=!1),Z()}}};function Ye(R){return R.reduce((J,z)=>J.then(()=>C(z)),Promise.resolve())}return Kt}function om(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const l=t.matched[i];l&&(e.matched.find(u=>bn(u,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>bn(u,a))||o.push(a))}return[n,s,o]}function $c(){return lt(uo)}function Pc(e){return lt(Ar)}const rm={class:"modal-header"},im={class:"modal-title"},lm={class:"modal-body"},am={class:"log-time"},cm={class:"log-message"},um={key:0,class:"log-line loading"},fm={class:"modal-footer"},dm={class:"footer-status"},pm={key:0,class:"status-success"},hm={key:1,class:"status-error"},gm={key:2,class:"status-loading"},mm={class:"footer-actions"},vm=Fe({__name:"LogModal",props:{visible:{type:Boolean},title:{default:"操作日志"},logs:{default:()=>[]},loading:{type:Boolean,default:!1},status:{default:"idle"},canClose:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=Q(null),r=()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)};wt(()=>n.logs,async()=>{await gn(),r()},{deep:!0,flush:"post"}),wt(()=>n.loading,async()=>{await gn(),r()});const i=()=>{switch(n.status){case"success":return"mdi:check-circle";case"error":return"mdi:alert-circle";case"loading":return"mdi:loading";default:return"mdi:information"}},l=c=>c.level?`log-${c.level}`:"log-info",a=()=>{s("close")},u=()=>{n.canClose&&a()};return(c,f)=>(L(),Ve(Ql,{to:"body"},[B(Ia,{name:"modal"},{default:At(()=>[e.visible?(L(),N("div",{key:0,class:"modal-overlay",onClick:u},[p("div",{class:"modal-container",onClick:f[0]||(f[0]=jt(()=>{},["stop"]))},[p("div",rm,[p("h2",im,[B(te,{icon:i(),class:"modal-icon"},null,8,["icon"]),ue(" "+V(e.title),1)]),e.canClose?(L(),N("button",{key:0,onClick:a,class:"modal-close","aria-label":"关闭"},[B(te,{icon:"mdi:close"})])):ce("",!0)]),p("div",lm,[p("div",{ref_key:"logContainer",ref:o,class:"log-container"},[(L(!0),N($e,null,mn(e.logs,(d,h)=>(L(),N("div",{key:h,class:oe(["log-line",l(d)])},[p("span",am,V(d.time),1),p("span",cm,V(d.message),1)],2))),128)),e.loading?(L(),N("div",um,[...f[1]||(f[1]=[p("div",{class:"spinner-small"},null,-1),p("span",{class:"log-message"},"处理中...",-1)])])):ce("",!0)],512)]),p("div",fm,[p("div",dm,[e.status==="success"?(L(),N("span",pm,[B(te,{icon:"mdi:check-circle"}),f[2]||(f[2]=ue(" 操作成功 ",-1))])):e.status==="error"?(L(),N("span",hm,[B(te,{icon:"mdi:alert-circle"}),f[3]||(f[3]=ue(" 操作失败 ",-1))])):e.loading?(L(),N("span",gm,[...f[4]||(f[4]=[p("div",{class:"spinner-small"},null,-1),ue(" 处理中... ",-1)])])):ce("",!0)]),p("div",mm,[e.canClose?(L(),N("button",{key:0,onClick:a,class:"btn btn-outline"}," 关闭 ")):ce("",!0)])])])])):ce("",!0)]),_:1})]))}}),Ic=ot(vm,[["__scopeId","data-v-07320b59"]]);function ym(){const e=Q(!1),t=Q(""),n=Q([]),s=Q("idle");return{modalVisible:e,modalTitle:t,logs:n,modalStatus:s,addLog:(u,c="info")=>{const f=new Date,d=`${f.getHours().toString().padStart(2,"0")}:${f.getMinutes().toString().padStart(2,"0")}:${f.getSeconds().toString().padStart(2,"0")}`;n.value.push({time:d,message:u,level:c})},showModal:u=>{t.value=u,n.value=[],s.value="loading",e.value=!0},hideModal:()=>{e.value=!1},setSuccess:()=>{s.value="success"},setError:()=>{s.value="error"}}}function Lc(e){const t=Q(!1),{onRefresh:n}=e,{modalVisible:s,modalTitle:o,logs:r,modalStatus:i,addLog:l,showModal:a,hideModal:u,setSuccess:c,setError:f}=ym();return{updating:t,modalVisible:s,modalTitle:o,logs:r,modalStatus:i,handleUpdate:async v=>{t.value=!0,a(v.isInjected?"更新应用":"注入应用"),l(`开始处理应用: ${v.name}`),l(`Bundle ID: ${v.bundleId}`),l(`当前版本: ${v.version}`);try{l("正在连接到服务器...");const b=await Ae.updateApp(v.bundleId);b.logs&&b.logs.length>0&&b.logs.forEach(y=>{l(y,"info")}),b.success?(l("操作成功完成!","success"),c(),l("正在刷新应用状态..."),await n(),l("应用状态已更新","success")):(l(`操作失败: ${b.message}`,"error"),f())}catch(b){console.error("更新应用失败:",b),l(`网络错误: ${b}`,"error"),f()}finally{t.value=!1}},handleReinstall:async()=>{console.log("重新安装功能待实现")},hideModal:u}}const bm={class:"app-icon"},_m=["src","alt"],wm={key:0,class:"icon-loading"},Cm={class:"app-info"},Sm={class:"app-name"},xm={class:"app-version"},Em={key:0,class:"latest-version"},Tm={class:"app-status"},Am={class:"app-actions"},Rm=["disabled"],km=["disabled"],Om=["disabled"],$m=["disabled"],Pm={key:2,class:"unsupported-section"},Im={key:0,class:"supported-versions"},Lm=["disabled"],Mm=Fe({__name:"AppCard",props:{app:{},inStoreMode:{type:Boolean,default:!1}},emits:["updated","openVersionDialog"],setup(e,{emit:t}){const n=e,s=t,o=$c(),r=Q({...n.app}),i=Q(!0),l=Q(!1),a=Q(!1),u=Q(!1),c=Q(!1),f=Q(""),{updating:d,modalVisible:h,modalTitle:v,logs:b,modalStatus:y,handleUpdate:x,handleReinstall:S,hideModal:k}=Lc({onRefresh:async()=>{try{const le=await Ae.getApp(n.app.bundleId);r.value=le,s("updated",n.app.bundleId)}catch(le){throw console.error("刷新应用状态失败:",le),le}}});wt(()=>n.app,le=>{d.value||(r.value={...le})},{deep:!0});const P=()=>Ae.getAppIconUrl(n.app.bundleId),G=()=>r.value.supported?r.value.isInjected?"status-injected":r.value.needsUpgrade?"status-update":"status-supported":"status-unsupported",I=()=>r.value.supported?r.value.isInjected?"已注入":r.value.needsUpgrade?"可更新":"支持":"不支持",M=()=>{o.push(`/app/${n.app.bundleId}`)},A=()=>{x(r.value)},C=()=>{s("openVersionDialog",r.value)},O=async()=>{if(n.inStoreMode){u.value=!0;try{const le=await Ae.checkAppUpdate(n.app.bundleId);le?(c.value=!0,f.value=le):c.value=!1}catch(le){console.error("检查更新失败:",le),c.value=!1}finally{u.value=!1}}},F=()=>u.value?"badge-checking":c.value?"badge-update":"badge-download";st(()=>{n.inStoreMode&&n.app.feedUrl&&O()});const U=()=>{i.value=!1,l.value=!0,a.value=!1},ie=()=>{i.value=!1,l.value=!1,a.value=!0};return(le,xe)=>(L(),N("div",{class:"app-card card",onClick:M},[e.inStoreMode?(L(),N("div",{key:0,class:oe(["store-badge",F()])},[u.value?(L(),Ve(te,{key:0,icon:"mdi:loading",class:"badge-icon"})):c.value?(L(),Ve(te,{key:1,icon:"mdi:arrow-up-bold",class:"badge-icon"})):(L(),Ve(te,{key:2,icon:"mdi:download",class:"badge-icon"}))],2)):ce("",!0),p("div",bm,[Vt(p("img",{src:P(),alt:r.value.name,onLoad:U,onError:ie},null,40,_m),[[Ds,l.value]]),i.value?(L(),N("div",wm,[...xe[1]||(xe[1]=[p("div",{class:"spinner"},null,-1)])])):ce("",!0),Vt(p("div",{class:"icon-placeholder"},V(r.value.name.charAt(0).toUpperCase()),513),[[Ds,a.value]])]),p("div",Cm,[p("h3",Sm,V(r.value.name),1),p("p",xm,"版本: "+V(r.value.version),1),r.value.latestVersion&&r.value.latestVersion!==r.value.version?(L(),N("p",Em," 最新版本: "+V(r.value.latestVersion),1)):ce("",!0)]),p("div",Tm,[p("span",{class:oe(["status-badge",G()])},V(I()),3)]),p("div",Am,[e.inStoreMode?(L(),N($e,{key:0},[c.value?(L(),N("button",{key:0,class:"btn btn-warning",onClick:jt(C,["stop"]),disabled:u.value},[B(te,{icon:"mdi:update",class:"btn-icon"}),ue(" "+V(u.value?"检查中...":"更新"),1)],8,Rm)):(L(),N("button",{key:1,class:"btn btn-secondary",onClick:jt(C,["stop"]),disabled:u.value},[B(te,{icon:"mdi:download",class:"btn-icon"}),ue(" "+V(u.value?"检查中...":"重新安装"),1)],8,km))],64)):(L(),N($e,{key:1},[r.value.needsUpgrade&&r.value.supported?(L(),N("button",{key:0,class:"btn btn-warning",onClick:jt(A,["stop"]),disabled:W(d)},[B(te,{icon:"mdi:update",class:"btn-icon"}),ue(" "+V(W(d)?"更新中...":"更新"),1)],8,Om)):!r.value.isInjected&&r.value.supported?(L(),N("button",{key:1,class:"btn btn-success",onClick:jt(A,["stop"]),disabled:W(d)},[B(te,{icon:"mdi:download",class:"btn-icon"}),ue(" "+V(W(d)?"处理中...":"注入"),1)],8,$m)):r.value.supported?(L(),N("button",{key:3,class:"btn btn-secondary",onClick:xe[0]||(xe[0]=jt((...fe)=>W(S)&&W(S)(...fe),["stop"])),disabled:W(d)},[B(te,{icon:"mdi:refresh",class:"btn-icon"}),ue(" "+V(W(d)?"处理中...":"重新安装"),1)],8,Lm)):(L(),N("div",Pm,[xe[2]||(xe[2]=p("span",{class:"unsupported-text"},"不支持此版本",-1)),r.value.supportVersion&&r.value.supportVersion.length>0?(L(),N("span",Im," 支持版本: "+V(r.value.supportVersion.join(", ")),1)):ce("",!0)]))],64))]),B(Ic,{visible:W(h),title:W(v),logs:W(b),loading:W(d),status:W(y),"can-close":W(y)!=="loading",onClose:W(k)},null,8,["visible","title","logs","loading","status","can-close","onClose"])]))}}),Dm=ot(Mm,[["__scopeId","data-v-7051324a"]]),Nm={class:"version-list-container"},Fm={key:0,class:"loading"},Um={key:1,class:"error"},jm={key:2,class:"empty"},Bm={key:3},Hm={class:"version-filters"},Vm={class:"versions-list"},qm={class:"version-info"},zm={class:"version-number-wrapper"},Km={key:0,class:"version-tag beta-tag"},Wm={key:1,class:"version-tag release-tag"},Gm={class:"version-number"},Jm={key:0,class:"version-full"},Qm={key:0,class:"version-url"},Zm=["onClick","disabled"],Xm={key:1,class:"spinner-small"},Ym=Fe({__name:"VersionList",props:{bundleId:{}},setup(e){const t=e,n=Q([]),s=Q(!1),o=Q(""),r=Q([]),i=Q("all"),l=async()=>{s.value=!0,o.value="";try{const c=await Ae.getAppVersions(t.bundleId);n.value=c.sort((f,d)=>{const h=f.version.split(".").map(Number),v=d.version.split(".").map(Number),b=Math.max(h.length,v.length);for(let y=0;y<b;y++){const x=h[y]||0,S=v[y]||0;if(S!==x)return S-x}return 0})}catch(c){console.error("加载版本列表失败:",c),o.value="加载版本列表失败"}finally{s.value=!1}},a=ye(()=>i.value==="all"?n.value:i.value==="release"?n.value.filter(c=>!c.beta):n.value.filter(c=>c.beta)),u=async(c,f)=>{if(!c.url){console.error("版本URL为空");return}r.value.push(f);try{await Ae.startDownload(c.url),console.log("下载已启动:",c.version)}catch(d){console.error("启动下载失败:",d),r.value=r.value.filter(h=>h!==f)}};return st(()=>{l()}),(c,f)=>(L(),N("div",Nm,[s.value?(L(),N("div",Fm,[...f[3]||(f[3]=[p("div",{class:"spinner"},null,-1),p("p",null,"正在加载版本列表...",-1)])])):o.value?(L(),N("div",Um,[B(te,{icon:"mdi:alert-circle",class:"error-icon"}),p("p",null,V(o.value),1),p("button",{onClick:l,class:"btn btn-secondary"},[B(te,{icon:"mdi:reload",class:"btn-icon"}),f[4]||(f[4]=ue(" 重试 ",-1))])])):n.value.length===0?(L(),N("div",jm,[B(te,{icon:"mdi:package-variant",class:"empty-icon"}),f[5]||(f[5]=p("p",null,"暂无可用版本",-1))])):(L(),N("div",Bm,[p("div",Hm,[p("button",{class:oe(["filter-btn",{active:i.value==="all"}]),onClick:f[0]||(f[0]=d=>i.value="all")}," 全部 ",2),p("button",{class:oe(["filter-btn",{active:i.value==="release"}]),onClick:f[1]||(f[1]=d=>i.value="release")}," 正式版 ",2),p("button",{class:oe(["filter-btn",{active:i.value==="beta"}]),onClick:f[2]||(f[2]=d=>i.value="beta")}," 测试版 ",2)]),p("div",Vm,[(L(!0),N($e,null,mn(a.value,(d,h)=>(L(),N("div",{key:h,class:oe(["version-item",{downloading:r.value.includes(h)}])},[p("div",qm,[p("div",zm,[d.beta?(L(),N("span",Km,"测试版")):(L(),N("span",Wm,"正式版")),p("span",Gm,[ue(V(d.version)+" ",1),d.fullVersion?(L(),N("span",Jm," ("+V(d.fullVersion)+") ",1)):ce("",!0)])]),d.url?(L(),N("span",Qm,[B(te,{icon:"mdi:link",class:"url-icon"}),ue(" "+V(d.url),1)])):ce("",!0)]),p("button",{class:"btn btn-primary btn-sm",onClick:v=>u(d,h),disabled:r.value.includes(h)},[r.value.includes(h)?(L(),N("div",Xm)):(L(),Ve(te,{key:0,icon:"mdi:download",class:"btn-icon"})),ue(" "+V(r.value.includes(h)?"下载中...":"下载"),1)],8,Zm)],2))),128))])]))]))}}),Mc=ot(Ym,[["__scopeId","data-v-9ccba531"]]),e0={class:"dialog-header"},t0={class:"dialog-title"},n0={class:"dialog-content"},s0=Fe({__name:"VersionSelectorDialog",props:{visible:{type:Boolean},app:{}},emits:["close"],setup(e,{emit:t}){const n=t,s=()=>{n("close")},o=r=>{r.target===r.currentTarget&&s()};return(r,i)=>e.visible&&e.app?(L(),N("div",{key:0,class:"dialog-overlay",onClick:o},[p("div",{class:"dialog-container",onClick:i[0]||(i[0]=jt(()=>{},["stop"]))},[p("div",e0,[p("h2",t0,V(e.app.name),1),p("button",{class:"dialog-close",onClick:s},[B(te,{icon:"mdi:close"})])]),p("div",n0,[e.app?(L(),Ve(Mc,{key:0,bundleId:e.app.bundleId},null,8,["bundleId"])):ce("",!0)]),p("div",{class:"dialog-footer"},[p("button",{class:"btn btn-secondary",onClick:s},"关闭")])])])):ce("",!0)}}),o0=ot(s0,[["__scopeId","data-v-e4ccb209"]]),r0={class:"app-list"},i0={class:"list-header"},l0={class:"header-content"},a0={class:"page-description"},c0={class:"list-controls"},u0={class:"search-container"},f0={key:0,class:"loading"},d0={key:1,class:"error"},p0={key:2,class:"empty"},h0={key:3,class:"apps-grid grid grid-3"},g0={class:"list-footer"},m0={class:"footer-stats"},v0={class:"stat-item"},y0={class:"stat-value"},b0={class:"stat-item"},_0={class:"stat-value"},w0=Fe({__name:"AppList",setup(e){const t=Pc(),n=Q([]),s=Q(!0),o=Q(""),r=Q(""),i=Q("name"),l=Q(!1),a=Q(null),u=ye(()=>{let b=n.value;if(r.value){const S=r.value.toLowerCase();b=b.filter(k=>k.name.toLowerCase().includes(S)||k.bundleId.toLowerCase().includes(S))}const y=t.query.filter;return y&&(b=b.filter(S=>{switch(y){case"supported":return S.supported&&!S.isInjected&&!S.needsUpgrade;case"injected":return S.isInjected;case"update":return S.needsUpgrade;case"unsupported":return!S.supported;case"store":return S.feedUrl&&S.feedUrl.length>0;default:return!0}})),[...b].sort((S,k)=>{switch(i.value){case"name":return S.name.localeCompare(k.name);case"bundleId":return S.bundleId.localeCompare(k.bundleId);case"injected":return(k.isInjected?1:0)-(S.isInjected?1:0);case"update":return(k.needsUpgrade?1:0)-(S.needsUpgrade?1:0);default:return 0}})}),c=()=>{switch(t.query.filter){case"injected":return"已注入应用";case"update":return"可更新应用";case"unsupported":return"不支持的应用";case"store":return"应用商店";default:return"所有应用"}},f=()=>{switch(t.query.filter){case"store":return"浏览和下载应用更新版本";case"injected":return"已成功注入的应用列表";case"update":return"有新版本可用的应用";case"unsupported":return"当前版本不支持的应用";default:return"系统中所有已安装的应用"}},d=async()=>{s.value=!0,o.value="";try{n.value=await Ae.getApps()}catch(b){console.error("加载应用列表失败:",b),o.value="加载应用列表失败,请检查服务是否运行"}finally{s.value=!1}},h=async b=>{console.log(`应用 ${b} 已更新`)},v=b=>{a.value=b,l.value=!0};return st(()=>{d()}),(b,y)=>(L(),N("div",r0,[p("div",i0,[p("div",l0,[p("h2",null,V(c()),1),p("p",a0,V(f()),1)]),p("div",c0,[p("div",u0,[Vt(p("input",{"onUpdate:modelValue":y[0]||(y[0]=x=>r.value=x),type:"text",placeholder:"搜索应用...",class:"search-input"},null,512),[[Ma,r.value]]),B(te,{icon:"mdi:magnify",class:"search-icon"})]),Vt(p("select",{"onUpdate:modelValue":y[1]||(y[1]=x=>i.value=x),class:"sort-filter"},[...y[3]||(y[3]=[p("option",{value:"name"},"按名称排序",-1),p("option",{value:"bundleId"},"按 Bundle ID",-1),p("option",{value:"injected"},"已注入优先",-1),p("option",{value:"update"},"可更新优先",-1)])],512),[[Da,i.value]])])]),s.value?(L(),N("div",f0,[...y[4]||(y[4]=[p("div",{class:"spinner"},null,-1),p("p",null,"加载应用中...",-1)])])):o.value?(L(),N("div",d0,[p("p",null,V(o.value),1),p("button",{onClick:d,class:"btn btn-primary"},"重试")])):u.value.length===0?(L(),N("div",p0,[B(te,{icon:"mdi:apps",class:"empty-icon"}),y[5]||(y[5]=p("p",null,"没有找到应用",-1)),y[6]||(y[6]=p("p",{class:"empty-hint"},"尝试调整搜索条件或筛选器",-1))])):(L(),N("div",h0,[(L(!0),N($e,null,mn(u.value,x=>(L(),Ve(Dm,{key:x.bundleId,app:x,"in-store-mode":W(t).query.filter==="store",onUpdated:h,onOpenVersionDialog:v},null,8,["app","in-store-mode"]))),128))])),p("div",g0,[p("div",m0,[p("span",v0,[y[7]||(y[7]=p("span",{class:"stat-label"},"总计:",-1)),p("span",y0,V(n.value.length),1)]),p("span",b0,[y[8]||(y[8]=p("span",{class:"stat-label"},"显示:",-1)),p("span",_0,V(u.value.length),1)])])]),a.value?(L(),Ve(o0,{key:4,visible:l.value,app:a.value,onClose:y[2]||(y[2]=x=>l.value=!1)},null,8,["visible","app"])):ce("",!0)]))}}),C0=ot(w0,[["__scopeId","data-v-7192034b"]]),S0={class:"app-detail"},x0={key:0,class:"loading"},E0={key:1,class:"error"},T0={key:2,class:"detail-content"},A0={class:"back-button"},R0={class:"app-info-card card"},k0={class:"app-header"},O0={class:"app-icon-large"},$0=["src","alt"],P0={key:1,class:"icon-loading-large"},I0={class:"app-meta"},L0={class:"app-title"},M0={class:"app-bundle-id"},D0={class:"app-version-info"},N0={class:"current-version"},F0={key:0,class:"latest-version"},U0={class:"app-status-section"},j0={class:"action-buttons"},B0=["disabled"],H0=["disabled"],V0={key:2,class:"unsupported-text"},q0=["disabled"],z0={class:"detail-grid"},K0={class:"detail-card card"},W0={class:"info-list"},G0={class:"info-item"},J0={class:"value"},Q0={class:"info-item"},Z0={class:"value"},X0={class:"info-item"},Y0={class:"value"},ev={class:"info-item"},tv={class:"value"},nv={class:"detail-card card"},sv={class:"info-list"},ov={class:"info-item"},rv={class:"value"},iv={class:"info-item"},lv={class:"info-item"},av={key:0,class:"info-item"},cv={class:"value supported-versions-list"},uv={key:0,class:"detail-card card versions-card"},fv=Fe({__name:"AppDetail",setup(e){const t=Pc(),n=$c(),s=Q(null),o=Q(!0),r=Q(""),i=t.params.bundleId,l=Q(!0),a=Q(!1),u=Q(!1),c=async()=>{o.value=!0,r.value="";try{s.value=await Ae.getApp(i)}catch(O){console.error("加载应用详情失败:",O),r.value="加载应用详情失败,请检查网络连接"}finally{o.value=!1}},{updating:f,modalVisible:d,modalTitle:h,logs:v,modalStatus:b,handleUpdate:y,handleReinstall:x,hideModal:S}=Lc({onRefresh:async()=>{await c()}}),k=()=>s.value?Ae.getAppIconUrl(s.value.bundleId):"",P=()=>{s.value&&y(s.value)},G=()=>{n.push("/")},I=()=>{var O,F,U;return(O=s.value)!=null&&O.supported?(F=s.value)!=null&&F.isInjected?"status-injected":(U=s.value)!=null&&U.needsUpgrade?"status-update":"status-supported":"status-unsupported"},M=()=>{var O,F,U;return(O=s.value)!=null&&O.supported?(F=s.value)!=null&&F.isInjected?"已注入":(U=s.value)!=null&&U.needsUpgrade?"可更新":"支持":"不支持"},A=()=>{l.value=!1,a.value=!0,u.value=!1},C=()=>{l.value=!1,a.value=!1,u.value=!0};return st(async()=>{var O;await c(),(O=s.value)!=null&&O.feedUrl&&loadVersions()}),(O,F)=>(L(),N("div",S0,[o.value?(L(),N("div",x0,[...F[1]||(F[1]=[p("div",{class:"spinner"},null,-1),p("p",null,"加载应用详情...",-1)])])):r.value?(L(),N("div",E0,[p("p",null,V(r.value),1),p("button",{onClick:c,class:"btn btn-primary"},"重试")])):s.value?(L(),N("div",T0,[p("div",A0,[p("button",{onClick:G,class:"btn btn-outline"},[B(te,{icon:"mdi:arrow-left",class:"btn-icon"}),F[2]||(F[2]=ue(" 返回应用列表 ",-1))])]),p("div",R0,[p("div",k0,[p("div",O0,[s.value?Vt((L(),N("img",{key:0,src:k(),alt:s.value.name,onLoad:A,onError:C},null,40,$0)),[[Ds,a.value]]):ce("",!0),l.value?(L(),N("div",P0,[...F[3]||(F[3]=[p("div",{class:"spinner"},null,-1)])])):ce("",!0),Vt(p("div",{class:"icon-placeholder-large"},V(s.value.name.charAt(0).toUpperCase()),513),[[Ds,u.value]])]),p("div",I0,[p("h1",L0,V(s.value.name),1),p("p",M0,V(s.value.bundleId),1),p("div",D0,[p("span",N0,"当前版本: "+V(s.value.version),1),s.value.latestVersion&&s.value.latestVersion!==s.value.version?(L(),N("span",F0," 最新版本: "+V(s.value.latestVersion),1)):ce("",!0)])]),p("div",U0,[p("span",{class:oe(["status-badge",I()])},V(M()),3),p("div",j0,[s.value.needsUpgrade&&s.value.supported?(L(),N("button",{key:0,class:"btn btn-warning",onClick:P,disabled:W(f)},[B(te,{icon:"mdi:update",class:"btn-icon"}),ue(" "+V(W(f)?"更新中...":"更新应用"),1)],8,B0)):!s.value.isInjected&&s.value.supported?(L(),N("button",{key:1,class:"btn btn-success",onClick:P,disabled:W(f)},[B(te,{icon:"mdi:download",class:"btn-icon"}),ue(" "+V(W(f)?"处理中...":"注入应用"),1)],8,H0)):s.value.supported?(L(),N("button",{key:3,class:"btn btn-secondary",onClick:F[0]||(F[0]=(...U)=>W(x)&&W(x)(...U)),disabled:W(f)},[B(te,{icon:"mdi:refresh",class:"btn-icon"}),ue(" "+V(W(f)?"处理中...":"重新安装"),1)],8,q0)):(L(),N("span",V0," 不支持此版本 "))])])])]),p("div",z0,[p("div",K0,[F[8]||(F[8]=p("h3",null,"基本信息",-1)),p("div",W0,[p("div",G0,[F[4]||(F[4]=p("span",{class:"label"},"应用路径:",-1)),p("span",J0,V(s.value.path),1)]),p("div",Q0,[F[5]||(F[5]=p("span",{class:"label"},"主执行文件:",-1)),p("span",Z0,V(s.value.mainExecutableName),1)]),p("div",X0,[F[6]||(F[6]=p("span",{class:"label"},"Dylib路径:",-1)),p("span",Y0,V(s.value.dylibPath||"未注入"),1)]),p("div",ev,[F[7]||(F[7]=p("span",{class:"label"},"注入版本:",-1)),p("span",tv,V(s.value.injectedVersion||"未注入"),1)])])]),p("div",nv,[F[13]||(F[13]=p("h3",null,"更新信息",-1)),p("div",sv,[p("div",ov,[F[9]||(F[9]=p("span",{class:"label"},"更新源:",-1)),p("span",rv,V(s.value.feedUrl||"未配置"),1)]),p("div",iv,[F[10]||(F[10]=p("span",{class:"label"},"需要更新:",-1)),p("span",{class:oe(["value",{"text-warning":s.value.needsUpgrade}])},V(s.value.needsUpgrade?"是":"否"),3)]),p("div",lv,[F[11]||(F[11]=p("span",{class:"label"},"支持状态:",-1)),p("span",{class:oe(["value",{"text-success":s.value.supported,"text-error":!s.value.supported}])},V(s.value.supported?"支持":"不支持"),3)]),s.value.supportVersion&&s.value.supportVersion.length>0?(L(),N("div",av,[F[12]||(F[12]=p("span",{class:"label"},"支持版本:",-1)),p("span",cv,V(s.value.supportVersion.join(", ")),1)])):ce("",!0)])]),s.value.feedUrl?(L(),N("div",uv,[F[14]||(F[14]=p("h3",null,"可用版本",-1)),B(Mc,{bundleId:s.value.bundleId},null,8,["bundleId"])])):ce("",!0)]),B(Ic,{visible:W(d),title:W(h),logs:W(v),loading:W(f),status:W(b),"can-close":W(b)!=="loading",onClose:W(S)},null,8,["visible","title","logs","loading","status","can-close","onClose"])])):ce("",!0)]))}}),dv=ot(fv,[["__scopeId","data-v-826f6b9e"]]);function nr(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,s)).toFixed(2)} ${n[s]}`}function pv(e){return e<=0?"--":`${nr(e)}/s`}function hv(e){if(e<=0)return"完成";if(e>=3600){const t=Math.floor(e/3600),n=Math.floor(e%3600/60);return`${t}小时${n}分钟`}if(e>=60){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}分${n}秒`}return`${Math.floor(e)}秒`}function pl(e){return e<0?"0.00%":e>=100?"100.00%":`${e.toFixed(2)}%`}const gv={class:"download-manager"},mv={class:"page-header"},vv={class:"header-actions"},yv={class:"stats-cards"},bv={class:"stat-card"},_v={class:"stat-icon downloading"},wv={class:"stat-info"},Cv={class:"stat-value"},Sv={class:"stat-card"},xv={class:"stat-icon completed"},Ev={class:"stat-info"},Tv={class:"stat-value"},Av={class:"stat-card"},Rv={class:"stat-icon paused"},kv={class:"stat-info"},Ov={class:"stat-value"},$v={class:"filter-bar"},Pv=["onClick"],Iv={class:"filter-count"},Lv={class:"download-list"},Mv={key:0,class:"empty-state"},Dv={class:"item-header"},Nv={class:"item-title"},Fv={class:"file-name"},Uv={class:"item-progress"},jv={class:"progress-bar"},Bv={class:"progress-info"},Hv={class:"progress-text"},Vv={class:"progress-stats"},qv={key:0,class:"item-speed-info"},zv={class:"speed-item"},Kv={class:"info-value"},Wv={class:"speed-item"},Gv={class:"info-value"},Jv={key:1,class:"item-error"},Qv={class:"item-actions"},Zv=["onClick"],Xv=["onClick"],Yv=["onClick"],e2=["onClick"],t2=["onClick"],n2=Fe({__name:"DownloadManager",setup(e){const t=Q([]),n=Q("all");let s=null;const o=Q(!1),r=Q({title:"",message:"",type:"warning",confirmText:"确认",cancelText:"取消"});let i=null;const l=[{label:"全部",value:"all"},{label:"下载中",value:"downloading"},{label:"已完成",value:"completed"},{label:"已暂停",value:"paused"},{label:"失败",value:"error"}],a=ye(()=>n.value==="all"?t.value:t.value.filter(A=>A.status===n.value)),u=ye(()=>t.value.filter(A=>A.status==="downloading").length),c=ye(()=>t.value.filter(A=>A.status==="completed").length),f=ye(()=>t.value.filter(A=>A.status==="paused").length),d=A=>A==="all"?t.value.length:t.value.filter(C=>C.status===A).length,h=A=>({pending:"等待中",downloading:"下载中",paused:"已暂停",completed:"已完成",error:"失败"})[A]||A,v=async()=>{try{t.value=await Ae.getAllDownloads()}catch(A){console.error("加载下载列表失败:",A)}},b=()=>{v()},y=async A=>{try{await Ae.pauseDownload(A),await v()}catch(C){console.error("暂停下载失败:",C)}},x=async A=>{try{await Ae.resumeDownload(A),await v()}catch(C){console.error("继续下载失败:",C)}},S=(A,C,O="warning")=>new Promise(F=>{r.value={title:A,message:C,type:O,confirmText:"确认",cancelText:"取消"},o.value=!0,i=F}),k=()=>{i&&(i(!0),i=null)},P=()=>{i&&(i(!1),i=null)},G=async A=>{if(await S("删除下载任务","确定要删除这个下载任务吗?","danger"))try{await Ae.deleteDownload(A),await v()}catch(O){console.error("删除下载失败:",O)}},I=async A=>{if(await S("重新下载",`确定要重新下载 "${A.fileName}" 吗?这将删除并重新下载该文件。`,"warning"))try{await Ae.deleteDownload(A.id),await Ae.startDownload(A.url,A.fileName),await v()}catch(O){console.error("重新下载失败:",O)}},M=async A=>{try{await Ae.openDownloadFile(A)}catch(C){console.error("打开文件失败:",C)}};return st(()=>{v(),s=setInterval(v,1e3)}),ts(()=>{s&&clearInterval(s)}),(A,C)=>(L(),N("div",gv,[p("div",mv,[C[2]||(C[2]=p("h2",null,"下载管理",-1)),p("div",vv,[p("button",{class:"btn btn-secondary btn-sm",onClick:b},[B(te,{icon:"mdi:refresh",class:"btn-icon"}),C[1]||(C[1]=ue(" 刷新 ",-1))])])]),p("div",yv,[p("div",bv,[p("div",_v,[B(te,{icon:"mdi:download"})]),p("div",wv,[p("div",Cv,V(u.value),1)]),C[3]||(C[3]=p("div",{class:"stat-label"},"下载中",-1))]),p("div",Sv,[p("div",xv,[B(te,{icon:"mdi:check-circle"})]),p("div",Ev,[p("div",Tv,V(c.value),1)]),C[4]||(C[4]=p("div",{class:"stat-label"},"已完成",-1))]),p("div",Av,[p("div",Rv,[B(te,{icon:"mdi:pause-circle"})]),p("div",kv,[p("div",Ov,V(f.value),1)]),C[5]||(C[5]=p("div",{class:"stat-label"},"已暂停",-1))])]),p("div",$v,[(L(),N($e,null,mn(l,O=>p("button",{key:O.value,class:oe(["filter-btn",{active:n.value===O.value}]),onClick:F=>n.value=O.value},[ue(V(O.label)+" ",1),p("span",Iv,V(d(O.value)),1)],10,Pv)),64))]),p("div",Lv,[a.value.length===0?(L(),N("div",Mv,[B(te,{icon:"mdi:download-circle",class:"empty-icon"}),C[6]||(C[6]=p("p",{class:"empty-text"},"暂无下载任务",-1))])):ce("",!0),(L(!0),N($e,null,mn(a.value,O=>(L(),N("div",{key:O.id,class:"download-item card"},[p("div",Dv,[p("div",Nv,[B(te,{icon:"mdi:file",class:"file-icon"}),p("span",Fv,V(O.fileName),1)]),p("div",{class:oe(["item-status",`status-${O.status}`])},V(h(O.status)),3)]),p("div",Uv,[p("div",jv,[p("div",{class:oe(["progress-fill",{downloading:O.status==="downloading"}]),style:Ks({width:W(pl)(O.progress*100)})},null,6)]),p("div",Bv,[p("span",Hv,V(W(pl)(O.progress*100)),1),p("span",Vv,V(W(nr)(O.downloadedSize))+" / "+V(W(nr)(O.totalSize)),1)])]),O.status==="downloading"?(L(),N("div",qv,[p("div",zv,[B(te,{icon:"mdi:speedometer",class:"info-icon"}),C[7]||(C[7]=p("span",{class:"info-label"},"速度:",-1)),p("span",Kv,V(W(pv)(O.downloadSpeed)),1)]),p("div",Wv,[B(te,{icon:"mdi:timer",class:"info-icon"}),C[8]||(C[8]=p("span",{class:"info-label"},"剩余:",-1)),p("span",Gv,V(W(hv)(O.remainingTime)),1)])])):ce("",!0),O.errorMsg?(L(),N("div",Jv,[B(te,{icon:"mdi:alert-circle",class:"error-icon"}),ue(" "+V(O.errorMsg),1)])):ce("",!0),p("div",Qv,[O.status==="downloading"?(L(),N("button",{key:0,class:"btn btn-warning btn-sm",onClick:F=>y(O.id)},[B(te,{icon:"mdi:pause",class:"btn-icon"}),C[9]||(C[9]=ue(" 暂停 ",-1))],8,Zv)):ce("",!0),O.status==="paused"?(L(),N("button",{key:1,class:"btn btn-success btn-sm",onClick:F=>x(O.id)},[B(te,{icon:"mdi:play",class:"btn-icon"}),C[10]||(C[10]=ue(" 继续 ",-1))],8,Xv)):ce("",!0),O.status==="completed"?(L(),N("button",{key:2,class:"btn btn-primary btn-sm",onClick:F=>M(O.id)},[B(te,{icon:"mdi:folder-open",class:"btn-icon"}),C[11]||(C[11]=ue(" 打开 ",-1))],8,Yv)):ce("",!0),O.status==="completed"||O.status==="error"?(L(),N("button",{key:3,class:"btn btn-secondary btn-sm",onClick:F=>I(O)},[B(te,{icon:"mdi:reload",class:"btn-icon"}),C[12]||(C[12]=ue(" 重新下载 ",-1))],8,e2)):ce("",!0),p("button",{class:"btn btn-danger btn-sm",onClick:F=>G(O.id)},[B(te,{icon:"mdi:delete",class:"btn-icon"}),C[13]||(C[13]=ue(" 删除 ",-1))],8,t2)])]))),128))]),B(yc,{visible:o.value,title:r.value.title,message:r.value.message,type:r.value.type,"confirm-text":r.value.confirmText,"cancel-text":r.value.cancelText,onConfirm:k,onCancel:P,"onUpdate:visible":C[0]||(C[0]=O=>o.value=O)},null,8,["visible","title","message","type","confirm-text","cancel-text"])]))}}),s2=ot(n2,[["__scopeId","data-v-9ada58e9"]]),o2=[{path:"/",name:"Home",component:C0},{path:"/app/:bundleId",name:"AppDetail",component:dv,props:!0},{path:"/downloads",name:"DownloadManager",component:s2}],r2=sm({history:Pg(),routes:o2}),Rr=sd(tg);Rr.use(ld());Rr.use(r2);Rr.mount("#app");
|