mirror of
https://git-qiuchenly.yltfspace.com/QiuChenly/corepatch
synced 2025-11-25 21:32:25 +08:00
96 lines
214 KiB
JavaScript
96 lines
214 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 or(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const xe={},un=[],Ct=()=>{},gl=()=>!1,Hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rr=e=>e.startsWith("onUpdate:"),Le=Object.assign,ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mc=Object.prototype.hasOwnProperty,ye=(e,t)=>Mc.call(e,t),ee=Array.isArray,fn=e=>Yn(e)==="[object Map]",Vs=e=>Yn(e)==="[object Set]",Lr=e=>Yn(e)==="[object Date]",ie=e=>typeof e=="function",Oe=e=>typeof e=="string",St=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",ml=e=>(_e(e)||ie(e))&&ie(e.then)&&ie(e.catch),vl=Object.prototype.toString,Yn=e=>vl.call(e),Dc=e=>Yn(e).slice(8,-1),yl=e=>Yn(e)==="[object Object]",lr=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,In=or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nc=/-\w/g,it=qs(e=>e.replace(Nc,t=>t.slice(1).toUpperCase())),Fc=/\B([A-Z])/g,rn=qs(e=>e.replace(Fc,"-$1").toLowerCase()),zs=qs(e=>e.charAt(0).toUpperCase()+e.slice(1)),fo=qs(e=>e?`on${zs(e)}`:""),Ht=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ts=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uc=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let Mr;const Ks=()=>Mr||(Mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function es(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Oe(s)?Vc(s):es(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(Oe(e)||_e(e))return e}const jc=/;(?![^(]*\))/g,Bc=/:([^]+)/,Hc=/\/\*[^]*?\*\//g;function Vc(e){const t={};return e.replace(Hc,"").split(jc).forEach(n=>{if(n){const s=n.split(Bc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function re(e){let t="";if(Oe(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const s=re(e[n]);s&&(t+=s+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const qc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zc=or(qc);function wl(e){return!!e||e===""}function Kc(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=Lr(e),s=Lr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=St(e),s=St(t),n||s)return e===t;if(n=ee(e),s=ee(t),n||s)return n&&s?Kc(e,t):!1;if(n=_e(e),s=_e(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 Wc(e,t){return e.findIndex(n=>Ws(n,t))}const _l=e=>!!(e&&e.__v_isRef===!0),U=e=>Oe(e)?e:e==null?"":ee(e)||_e(e)&&(e.toString===vl||!ie(e.toString))?_l(e)?U(e.value):JSON.stringify(e,Cl,2):String(e),Cl=(e,t)=>_l(t)?Cl(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[po(s,r)+" =>"]=o,n),{})}:Vs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>po(n))}:St(t)?po(t):_e(t)&&!ee(t)&&!yl(t)?String(t):t,po=(e,t="")=>{var n;return St(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 Ge;class Sl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.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=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){this._on>0&&--this._on===0&&(Ge=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 Gc(e){return new Sl(e)}function Jc(){return Ge}let Te;const ho=new WeakSet;class xl{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,Ge&&Ge.active&&Ge.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||Tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dr(this),Al(this);const t=Te,n=at;Te=this,at=!0;try{return this.fn()}finally{Rl(this),Te=t,at=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ur(t);this.deps=this.depsTail=void 0,Dr(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 El=0,Ln,Mn;function Tl(e,t=!1){if(e.flags|=8,t){e.next=Mn,Mn=e;return}e.next=Ln,Ln=e}function ar(){El++}function cr(){if(--El>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 Al(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rl(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),ur(s),Qc(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&&(kl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kl(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=Te,s=at;Te=e,at=!0;try{Al(e);const o=e.fn(e._value);(t.version===0||Ht(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Te=n,at=s,Rl(e),e.flags&=-3}}function ur(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)ur(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Qc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let at=!0;const Ol=[];function Pt(){Ol.push(at),at=!1}function It(){const e=Ol.pop();at=e===void 0?!0:e}function Dr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Te;Te=void 0;try{t()}finally{Te=n}}}let Vn=0;class Zc{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 fr{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(!Te||!at||Te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Te)n=this.activeLink=new Zc(Te,this),Te.deps?(n.prevDep=Te.depsTail,Te.depsTail.nextDep=n,Te.depsTail=n):Te.deps=Te.depsTail=n,$l(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=Te.depsTail,n.nextDep=void 0,Te.depsTail.nextDep=n,Te.depsTail=n,Te.deps===n&&(Te.deps=s)}return n}trigger(t){this.version++,Vn++,this.notify(t)}notify(t){ar();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{cr()}}}function $l(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)$l(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 De(e,t,n){if(at&&Te){let s=Po.get(e);s||Po.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new fr),o.map=s,o.key=n),o.track()}}function Ot(e,t,n,s,o,r){const i=Po.get(e);if(!i){Vn++;return}const l=a=>{a&&a.trigger()};if(ar(),t==="clear")i.forEach(l);else{const a=ee(e),u=a&&lr(n);if(a&&n==="length"){const c=Number(s);i.forEach((f,p)=>{(p==="length"||p===qn||!St(p)&&p>=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)),fn(e)&&l(i.get(Io)));break;case"delete":a||(l(i.get(tn)),fn(e)&&l(i.get(Io)));break;case"set":fn(e)&&l(i.get(tn));break}}cr()}function ln(e){const t=ge(e);return t===e?t:(De(t,"iterate",qn),rt(e)?t:t.map(Me))}function Gs(e){return De(e=ge(e),"iterate",qn),e}const Xc={__proto__:null,[Symbol.iterator](){return go(this,Symbol.iterator,Me)},concat(...e){return ln(this).concat(...e.map(t=>ee(t)?ln(t):t))},entries(){return go(this,"entries",e=>(e[1]=Me(e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,n=>n.map(Me),arguments)},find(e,t){return xt(this,"find",e,t,Me,arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,Me,arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return mo(this,"includes",e)},indexOf(...e){return mo(this,"indexOf",e)},join(e){return ln(this).join(e)},lastIndexOf(...e){return mo(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return xn(this,"pop")},push(...e){return xn(this,"push",e)},reduce(e,...t){return Nr(this,"reduce",e,t)},reduceRight(e,...t){return Nr(this,"reduceRight",e,t)},shift(){return xn(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return xn(this,"splice",e)},toReversed(){return ln(this).toReversed()},toSorted(e){return ln(this).toSorted(e)},toSpliced(...e){return ln(this).toSpliced(...e)},unshift(...e){return xn(this,"unshift",e)},values(){return go(this,"values",Me)}};function go(e,t,n){const s=Gs(e),o=s[t]();return s!==e&&!rt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const Yc=Array.prototype;function xt(e,t,n,s,o,r){const i=Gs(e),l=i!==e&&!rt(e),a=i[t];if(a!==Yc[t]){const f=a.apply(e,r);return l?Me(f):f}let u=n;i!==e&&(l?u=function(f,p){return n.call(this,Me(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=a.call(i,u,s);return l&&o?o(c):c}function Nr(e,t,n,s){const o=Gs(e);let r=n;return o!==e&&(rt(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,Me(l),a,e)}),o[t](r,...s)}function mo(e,t,n){const s=ge(e);De(s,"iterate",qn);const o=s[t](...n);return(o===-1||o===!1)&&hr(n[0])?(n[0]=ge(n[0]),s[t](...n)):o}function xn(e,t,n=[]){Pt(),ar();const s=ge(e)[t].apply(e,n);return cr(),It(),s}const eu=or("__proto__,__v_isRef,__isVue"),Pl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function tu(e){St(e)||(e=String(e));const t=ge(this);return De(t,"has",e),t.hasOwnProperty(e)}class Il{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?fu:Nl:r?Dl:Ml).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=ee(t);if(!o){let a;if(i&&(a=Xc[n]))return a;if(n==="hasOwnProperty")return tu}const l=Reflect.get(t,n,Ue(t)?t:s);if((St(n)?Pl.has(n):eu(n))||(o||De(t,"get",n),r))return l;if(Ue(l)){const a=i&&lr(n)?l:l.value;return o&&_e(a)?Mo(a):a}return _e(l)?o?Mo(l):Js(l):l}}class Ll extends Il{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const a=Vt(r);if(!rt(s)&&!Vt(s)&&(r=ge(r),s=ge(s)),!ee(t)&&Ue(r)&&!Ue(s))return a||(r.value=s),!0}const i=ee(t)&&lr(n)?Number(n)<t.length:ye(t,n),l=Reflect.set(t,n,s,Ue(t)?t:o);return t===ge(o)&&(i?Ht(s,r)&&Ot(t,"set",n,s):Ot(t,"add",n,s)),l}deleteProperty(t,n){const s=ye(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Ot(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!St(n)||!Pl.has(n))&&De(t,"has",n),s}ownKeys(t){return De(t,"iterate",ee(t)?"length":tn),Reflect.ownKeys(t)}}class nu extends Il{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const su=new Ll,ou=new nu,ru=new Ll(!0);const Lo=e=>e,as=e=>Reflect.getPrototypeOf(e);function iu(e,t,n){return function(...s){const o=this.__v_raw,r=ge(o),i=fn(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),c=n?Lo:t?As:Me;return!t&&De(r,"iterate",a?Io:tn),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:l?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lu(e,t){const n={get(o){const r=this.__v_raw,i=ge(r),l=ge(o);e||(Ht(o,l)&&De(i,"get",o),De(i,"get",l));const{has:a}=as(i),u=t?Lo:e?As:Me;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&&De(ge(o),"iterate",tn),o.size},has(o){const r=this.__v_raw,i=ge(r),l=ge(o);return e||(Ht(o,l)&&De(i,"has",o),De(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=ge(l),u=t?Lo:e?As:Me;return!e&&De(a,"iterate",tn),l.forEach((c,f)=>o.call(r,u(c),u(f),i))}};return Le(n,e?{add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear")}:{add(o){!t&&!rt(o)&&!Vt(o)&&(o=ge(o));const r=ge(this);return as(r).has.call(r,o)||(r.add(o),Ot(r,"add",o,o)),this},set(o,r){!t&&!rt(r)&&!Vt(r)&&(r=ge(r));const i=ge(this),{has:l,get:a}=as(i);let u=l.call(i,o);u||(o=ge(o),u=l.call(i,o));const c=a.call(i,o);return i.set(o,r),u?Ht(r,c)&&Ot(i,"set",o,r):Ot(i,"add",o,r),this},delete(o){const r=ge(this),{has:i,get:l}=as(r);let a=i.call(r,o);a||(o=ge(o),a=i.call(r,o)),l&&l.call(r,o);const u=r.delete(o);return a&&Ot(r,"delete",o,void 0),u},clear(){const o=ge(this),r=o.size!==0,i=o.clear();return r&&Ot(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=iu(o,e,t)}),n}function dr(e,t){const n=lu(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ye(n,o)&&o in s?n:s,o,r)}const au={get:dr(!1,!1)},cu={get:dr(!1,!0)},uu={get:dr(!0,!1)};const Ml=new WeakMap,Dl=new WeakMap,Nl=new WeakMap,fu=new WeakMap;function du(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pu(e){return e.__v_skip||!Object.isExtensible(e)?0:du(Dc(e))}function Js(e){return Vt(e)?e:pr(e,!1,su,au,Ml)}function Fl(e){return pr(e,!1,ru,cu,Dl)}function Mo(e){return pr(e,!0,ou,uu,Nl)}function pr(e,t,n,s,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=pu(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 dn(e){return Vt(e)?dn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function hr(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Ul(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&bl(e,"__v_skip",!0),e}const Me=e=>_e(e)?Js(e):e,As=e=>_e(e)?Mo(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function J(e){return Bl(e,!1)}function jl(e){return Bl(e,!0)}function Bl(e,t){return Ue(e)?e:new hu(e,t)}class hu{constructor(t,n){this.dep=new fr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:Me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||rt(t)||Vt(t);t=s?t:ge(t),Ht(t,n)&&(this._rawValue=t,this._value=s?t:Me(t),this.dep.trigger())}}function W(e){return Ue(e)?e.value:e}const gu={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ue(o)&&!Ue(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Hl(e){return dn(e)?e:new Proxy(e,gu)}class mu{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new fr(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)&&Te!==this)return Tl(this,!0),!0}get value(){const t=this.dep.track();return kl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vu(e,t,n=!1){let s,o;return ie(e)?s=e:(s=e.get,o=e.set),new mu(s,o,n)}const us={},Rs=new WeakMap;let Zt;function yu(e,t=!1,n=Zt){if(n){let s=Rs.get(n);s||Rs.set(n,s=[]),s.push(e)}}function bu(e,t,n=xe){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=n,u=O=>o?O:rt(O)||o===!1||o===0?$t(O,1):$t(O);let c,f,p,g,m=!1,y=!1;if(Ue(e)?(f=()=>e.value,m=rt(e)):dn(e)?(f=()=>u(e),m=!0):ee(e)?(y=!0,m=e.some(O=>dn(O)||rt(O)),f=()=>e.map(O=>{if(Ue(O))return O.value;if(dn(O))return u(O);if(ie(O))return a?a(O,2):O()})):ie(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){Pt();try{p()}finally{It()}}const O=Zt;Zt=c;try{return a?a(e,3,[g]):e(g)}finally{Zt=O}}:f=Ct,t&&o){const O=f,z=o===!0?1/0:o;f=()=>$t(O(),z)}const b=Jc(),C=()=>{c.stop(),b&&b.active&&ir(b.effects,c)};if(r&&t){const O=t;t=(...z)=>{O(...z),C()}}let x=y?new Array(e.length).fill(us):us;const E=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(t){const z=c.run();if(o||m||(y?z.some(($,L)=>Ht($,x[L])):Ht(z,x))){p&&p();const $=Zt;Zt=c;try{const L=[z,x===us?void 0:y&&x[0]===us?[]:x,g];x=z,a?a(t,3,L):t(...L)}finally{Zt=$}}}else c.run()};return l&&l(E),c=new xl(f),c.scheduler=i?()=>i(E,!1):E,g=O=>yu(O,!1,c),p=c.onStop=()=>{const O=Rs.get(c);if(O){if(a)a(O,4);else for(const z of O)z();Rs.delete(c)}},t?s?E(!0):x=c.run():i?i(E.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function $t(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ue(e))$t(e.value,t,n);else if(ee(e))for(let s=0;s<e.length;s++)$t(e[s],t,n);else if(Vs(e)||fn(e))e.forEach(s=>{$t(s,t,n)});else if(yl(e)){for(const s in e)$t(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&$t(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function ts(e,t,n,s){try{return s?e(...s):e()}catch(o){Qs(o,t,n)}}function ft(e,t,n,s){if(ie(e)){const o=ts(e,t,n,s);return o&&ml(o)&&o.catch(r=>{Qs(r,t,n)}),o}if(ee(e)){const o=[];for(let r=0;r<e.length;r++)o.push(ft(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||xe;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){Pt(),ts(r,null,10,[e,a,u]),It();return}}wu(e,n,o,s,i)}function wu(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ve=[];let wt=-1;const pn=[];let Ft=null,an=0;const Vl=Promise.resolve();let ks=null;function mn(e){const t=ks||Vl;return e?t.then(this?e.bind(this):e):t}function _u(e){let t=wt+1,n=Ve.length;for(;t<n;){const s=t+n>>>1,o=Ve[s],r=zn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function gr(e){if(!(e.flags&1)){const t=zn(e),n=Ve[Ve.length-1];!n||!(e.flags&2)&&t>=zn(n)?Ve.push(e):Ve.splice(_u(t),0,e),e.flags|=1,ql()}}function ql(){ks||(ks=Vl.then(Kl))}function Cu(e){ee(e)?pn.push(...e):Ft&&e.id===-1?Ft.splice(an+1,0,e):e.flags&1||(pn.push(e),e.flags|=1),ql()}function Fr(e,t,n=wt+1){for(;n<Ve.length;n++){const s=Ve[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ve.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function zl(e){if(pn.length){const t=[...new Set(pn)].sort((n,s)=>zn(n)-zn(s));if(pn.length=0,Ft){Ft.push(...t);return}for(Ft=t,an=0;an<Ft.length;an++){const n=Ft[an];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ft=null,an=0}}const zn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Kl(e){try{for(wt=0;wt<Ve.length;wt++){const t=Ve[wt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ts(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;wt<Ve.length;wt++){const t=Ve[wt];t&&(t.flags&=-2)}wt=-1,Ve.length=0,zl(),ks=null,(Ve.length||pn.length)&&Kl()}}let tt=null,Wl=null;function Os(e){const t=tt;return tt=e,Wl=e&&e.type.__scopeId||null,t}function Rt(e,t=tt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Is(-1);const r=Os(t);let i;try{i=e(...o)}finally{Os(r),s._d&&Is(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function qt(e,t){if(tt===null)return e;const n=to(tt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=xe]=t[o];r&&(ie(r)&&(r={mounted:r,updated:r}),r.deep&&$t(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&&(Pt(),ft(a,n,8,[e.el,l,e,t]),It())}}const Gl=Symbol("_vte"),Jl=e=>e.__isTeleport,Dn=e=>e&&(e.disabled||e.disabled===""),Ur=e=>e&&(e.defer||e.defer===""),jr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Br=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Do=(e,t)=>{const n=e&&e.to;return Oe(n)?t?t(n):null:n},Ql={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,a,u){const{mc:c,pc:f,pbc:p,o:{insert:g,querySelector:m,createText:y,createComment:b}}=u,C=Dn(t.props);let{shapeFlag:x,children:E,dynamicChildren:O}=t;if(e==null){const z=t.el=y(""),$=t.anchor=y("");g(z,n,s),g($,n,s);const L=(S,M)=>{x&16&&c(E,S,M,o,r,i,l,a)},k=()=>{const S=t.target=Do(t.props,m),M=Xl(S,t,y,g);S&&(i!=="svg"&&jr(S)?i="svg":i!=="mathml"&&Br(S)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(S),C||(L(S,M),gs(t,!1)))};C&&(L(n,$),gs(t,!0)),Ur(t.props)?(t.el.__isMounted=!1,He(()=>{k(),delete t.el.__isMounted},r)):k()}else{if(Ur(t.props)&&e.el.__isMounted===!1){He(()=>{Ql.process(e,t,n,s,o,r,i,l,a,u)},r);return}t.el=e.el,t.targetStart=e.targetStart;const z=t.anchor=e.anchor,$=t.target=e.target,L=t.targetAnchor=e.targetAnchor,k=Dn(e.props),S=k?n:$,M=k?z:L;if(i==="svg"||jr($)?i="svg":(i==="mathml"||Br($))&&(i="mathml"),O?(p(e.dynamicChildren,O,S,o,r,i,l),yr(e,t,!0)):a||f(e,t,S,M,o,r,i,l,!1),C)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fs(t,n,z,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=Do(t.props,m);se&&fs(t,se,null,u,0)}else k&&fs(t,$,L,u,1);gs(t,C)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:p}=e;if(f&&(o(u),o(c)),r&&o(a),i&16){const g=r||!Dn(p);for(let m=0;m<l.length;m++){const y=l[m];s(y,t,n,g,!!y.dynamicChildren)}}},move:fs,hydrate:Su};function fs(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 p=0;p<u.length;p++)o(u[p],t,n,2);f&&s(l,t,n)}function Su(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},f){function p(y,b,C,x){b.anchor=f(i(y),b,l(y),n,s,o,r),b.targetStart=C,b.targetAnchor=x}const g=t.target=Do(t.props,a),m=Dn(t.props);if(g){const y=g._lpa||g.firstChild;if(t.shapeFlag&16)if(m)p(e,t,y,y&&i(y));else{t.anchor=i(e);let b=y;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,g._lpa=t.targetAnchor&&i(t.targetAnchor);break}}b=i(b)}t.targetAnchor||Xl(g,t,c,u),f(y&&i(y),t,g,n,s,o,r)}gs(t,m)}else m&&t.shapeFlag&16&&p(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Zl=Ql;function gs(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 Xl(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Gl]=r,e&&(s(o,e),s(r,e)),r}const kt=Symbol("_leaveCb"),ds=Symbol("_enterCb");function xu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lt(()=>{e.isMounted=!0}),ia(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],Yl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},ea=e=>{const t=e.subTree;return t.component?ea(t.component):t},Eu={name:"BaseTransition",props:Yl,setup(e,{slots:t}){const n=Ra(),s=xu();return()=>{const o=t.default&&sa(t.default(),!0);if(!o||!o.length)return;const r=ta(o),i=ge(e),{mode:l}=i;if(s.isLeaving)return vo(r);const a=Hr(r);if(!a)return vo(r);let u=No(a,i,s,n,f=>u=f);a.type!==qe&&Kn(a,u);let c=n.subTree&&Hr(n.subTree);if(c&&c.type!==qe&&!Xt(c,a)&&ea(n).type!==qe){let f=No(c,i,s,n);if(Kn(c,f),l==="out-in"&&a.type!==qe)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!==qe?f.delayLeave=(p,g,m)=>{const y=na(s,c);y[String(c.key)]=c,p[kt]=()=>{g(),p[kt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function ta(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==qe){t=n;break}}return t}const Tu=Eu;function na(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:p,onLeave:g,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:b,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,O=String(e.key),z=na(n,e),$=(S,M)=>{S&&ft(S,s,9,M)},L=(S,M)=>{const se=M[1];$(S,M),ee(S)?S.every(H=>H.length<=1)&&se():S.length<=1&&se()},k={mode:i,persisted:l,beforeEnter(S){let M=a;if(!n.isMounted)if(r)M=b||a;else return;S[kt]&&S[kt](!0);const se=z[O];se&&Xt(e,se)&&se.el[kt]&&se.el[kt](),$(M,[S])},enter(S){let M=u,se=c,H=f;if(!n.isMounted)if(r)M=C||u,se=x||c,H=E||f;else return;let le=!1;const ae=S[ds]=Ae=>{le||(le=!0,Ae?$(H,[S]):$(se,[S]),k.delayedLeave&&k.delayedLeave(),S[ds]=void 0)};M?L(M,[S,ae]):ae()},leave(S,M){const se=String(e.key);if(S[ds]&&S[ds](!0),n.isUnmounting)return M();$(p,[S]);let H=!1;const le=S[kt]=ae=>{H||(H=!0,M(),ae?$(y,[S]):$(m,[S]),S[kt]=void 0,z[se]===e&&delete z[se])};z[se]=e,g?L(g,[S,le]):le()},clone(S){const M=No(S,t,n,s,o);return o&&o(M),M}};return k}function vo(e){if(Zs(e))return e=zt(e),e.children=null,e}function Hr(e){if(!Zs(e))return Jl(e.type)&&e.children?ta(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&&ie(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 sa(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===Pe?(i.patchFlag&128&&o++,s=s.concat(sa(i.children,t,l))):(t||i.type!==qe)&&s.push(l!=null?zt(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function ze(e,t){return ie(e)?Le({name:e.name},t,{setup:e}):e}function oa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const $s=new WeakMap;function Nn(e,t,n,s,o=!1){if(ee(e)){e.forEach((m,y)=>Nn(m,t&&(ee(t)?t[y]: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===xe?l.refs={}:l.refs,f=l.setupState,p=ge(f),g=f===xe?gl:m=>ye(p,m);if(u!=null&&u!==a){if(Vr(t),Oe(u))c[u]=null,g(u)&&(f[u]=null);else if(Ue(u)){u.value=null;const m=t;m.k&&(c[m.k]=null)}}if(ie(a))ts(a,l,12,[i,c]);else{const m=Oe(a),y=Ue(a);if(m||y){const b=()=>{if(e.f){const C=m?g(a)?f[a]:c[a]:a.value;if(o)ee(C)&&ir(C,r);else if(ee(C))C.includes(r)||C.push(r);else if(m)c[a]=[r],g(a)&&(f[a]=c[a]);else{const x=[r];a.value=x,e.k&&(c[e.k]=x)}}else m?(c[a]=i,g(a)&&(f[a]=i)):y&&(a.value=i,e.k&&(c[e.k]=i))};if(i){const C=()=>{b(),$s.delete(e)};C.id=-1,$s.set(e,C),He(C,n)}else Vr(e),b()}}}function Vr(e){const t=$s.get(e);t&&(t.flags|=8,$s.delete(e))}Ks().requestIdleCallback;Ks().cancelIdleCallback;const Fn=e=>!!e.type.__asyncLoader,Zs=e=>e.type.__isKeepAlive;function Au(e,t){ra(e,"a",t)}function Ru(e,t){ra(e,"da",t)}function ra(e,t,n=Ne){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)&&ku(s,t,n,o),o=o.parent}}function ku(e,t,n,s){const o=Xs(t,e,s,!0);ns(()=>{ir(s[t],o)},n)}function Xs(e,t,n=Ne,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Pt();const l=ss(n),a=ft(t,n,e,i);return l(),It(),a});return s?o.unshift(r):o.push(r),r}}const Lt=e=>(t,n=Ne)=>{(!Gn||e==="sp")&&Xs(e,(...s)=>t(...s),n)},Ou=Lt("bm"),lt=Lt("m"),$u=Lt("bu"),Pu=Lt("u"),ia=Lt("bum"),ns=Lt("um"),Iu=Lt("sp"),Lu=Lt("rtg"),Mu=Lt("rtc");function Du(e,t=Ne){Xs("ec",e,t)}const la="components";function qr(e,t){return ca(la,e,!0,t)||e}const aa=Symbol.for("v-ndc");function Nu(e){return Oe(e)?ca(la,e,!1)||e:e||aa}function ca(e,t,n=!0,s=!1){const o=tt||Ne;if(o){const r=o.type;{const l=Ef(r,!1);if(l&&(l===t||l===it(t)||l===zs(it(t))))return r}const i=zr(o[e]||r[e],t)||zr(o.appContext[e],t);return!i&&s?r:i}}function zr(e,t){return e&&(e[t]||e[it(t)]||e[zs(it(t))])}function sn(e,t,n,s){let o;const r=n,i=ee(e);if(i||Oe(e)){const l=i&&dn(e);let a=!1,u=!1;l&&(a=!rt(e),u=Vt(e),e=Gs(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(a?u?As(Me(e[c])):Me(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(_e(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=Le(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=>fa(e),$forceUpdate:e=>e.f||(e.f=()=>{gr(e.update)}),$nextTick:e=>e.n||(e.n=mn.bind(e.proxy)),$watch:e=>of.bind(e)}),yo=(e,t)=>e!==xe&&!e.__isScriptSetup&&ye(e,t),Fu={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 g=i[t];if(g!==void 0)switch(g){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!==xe&&ye(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&ye(u,t))return i[t]=3,r[t];if(n!==xe&&ye(n,t))return i[t]=4,n[t];Uo&&(i[t]=0)}}const c=Un[t];let f,p;if(c)return t==="$attrs"&&De(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==xe&&ye(n,t))return i[t]=4,n[t];if(p=a.config.globalProperties,ye(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return yo(o,t)?(o[t]=n,!0):s!==xe&&ye(s,t)?(s[t]=n,!0):ye(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!==xe&&l[0]!=="$"&&ye(e,l)||yo(t,l)||(a=r[0])&&ye(a,l)||ye(s,l)||ye(Un,l)||ye(o.config.globalProperties,l)||(u=i.__cssModules)&&u[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kr(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Uo=!0;function Uu(e){const t=fa(e),n=e.proxy,s=e.ctx;Uo=!1,t.beforeCreate&&Wr(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:g,updated:m,activated:y,deactivated:b,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:O,render:z,renderTracked:$,renderTriggered:L,errorCaptured:k,serverPrefetch:S,expose:M,inheritAttrs:se,components:H,directives:le,filters:ae}=t;if(u&&ju(u,s,null),i)for(const he in i){const Z=i[he];ie(Z)&&(s[he]=Z.bind(n))}if(o){const he=o.call(n,n);_e(he)&&(e.data=Js(he))}if(Uo=!0,r)for(const he in r){const Z=r[he],Q=ie(Z)?Z.bind(n,n):ie(Z.get)?Z.get.bind(n,n):Ct,me=!ie(Z)&&ie(Z.set)?Z.set.bind(n):Ct,Ce=we({get:Q,set:me});Object.defineProperty(s,he,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:ke=>Ce.value=ke})}if(l)for(const he in l)ua(l[he],s,n,he);if(a){const he=ie(a)?a.call(n):a;Reflect.ownKeys(he).forEach(Z=>{ms(Z,he[Z])})}c&&Wr(c,e,"c");function fe(he,Z){ee(Z)?Z.forEach(Q=>he(Q.bind(n))):Z&&he(Z.bind(n))}if(fe(Ou,f),fe(lt,p),fe($u,g),fe(Pu,m),fe(Au,y),fe(Ru,b),fe(Du,k),fe(Mu,$),fe(Lu,L),fe(ia,x),fe(ns,O),fe(Iu,S),ee(M))if(M.length){const he=e.exposed||(e.exposed={});M.forEach(Z=>{Object.defineProperty(he,Z,{get:()=>n[Z],set:Q=>n[Z]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===Ct&&(e.render=z),se!=null&&(e.inheritAttrs=se),H&&(e.components=H),le&&(e.directives=le),S&&oa(e)}function ju(e,t,n=Ct){ee(e)&&(e=jo(e));for(const s in e){const o=e[s];let r;_e(o)?"default"in o?r=ct(o.from||s,o.default,!0):r=ct(o.from||s):r=ct(o),Ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Wr(e,t,n){ft(ee(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ua(e,t,n,s){let o=s.includes(".")?Sa(n,s):()=>n[s];if(Oe(e)){const r=t[e];ie(r)&&ut(o,r)}else if(ie(e))ut(o,e.bind(n));else if(_e(e))if(ee(e))e.forEach(r=>ua(r,t,n,s));else{const r=ie(e.handler)?e.handler.bind(n):t[e.handler];ie(r)&&ut(o,r,e)}}function fa(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=>Ps(a,u,i,!0)),Ps(a,t,i)),_e(t)&&r.set(t,a),a}function Ps(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Ps(e,r,n,!0),o&&o.forEach(i=>Ps(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Bu[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Bu={data:Gr,props:Jr,emits:Jr,methods:Pn,computed:Pn,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:Pn,directives:Pn,watch:Vu,provide:Gr,inject:Hu};function Gr(e,t){return t?e?function(){return Le(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function Hu(e,t){return Pn(jo(e),jo(t))}function jo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?Le(Object.create(null),e,t):t}function Jr(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Le(Object.create(null),Kr(e),Kr(t??{})):t}function Vu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=Be(e[s],t[s]);return n}function da(){return{app:null,config:{isNativeTag:gl,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 qu=0;function zu(e,t){return function(s,o=null){ie(s)||(s=Le({},s)),o!=null&&!_e(o)&&(o=null);const r=da(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:qu++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Af,get config(){return r.config},set config(c){},use(c,...f){return i.has(c)||(c&&ie(c.install)?(i.add(c),c.install(u,...f)):ie(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,p){if(!a){const g=u._ceVNode||j(s,o);return g.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(g,c,p),a=!0,u._container=c,c.__vue_app__=u,to(g.component)}},onUnmount(c){l.push(c)},unmount(){a&&(ft(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=hn;hn=u;try{return c()}finally{hn=f}}};return u}}let hn=null;function ms(e,t){if(Ne){let n=Ne.provides;const s=Ne.parent&&Ne.parent.provides;s===n&&(n=Ne.provides=Object.create(s)),n[e]=t}}function ct(e,t,n=!1){const s=Ra();if(s||hn){let o=hn?hn._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&&ie(t)?t.call(s&&s.proxy):t}}const pa={},ha=()=>Object.create(pa),ga=e=>Object.getPrototypeOf(e)===pa;function Ku(e,t,n,s=!1){const o={},r=ha();e.propsDefaults=Object.create(null),ma(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Fl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Wu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=ge(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 p=c[f];if(Ys(e.emitsOptions,p))continue;const g=t[p];if(a)if(ye(r,p))g!==r[p]&&(r[p]=g,u=!0);else{const m=it(p);o[m]=Bo(a,l,m,g,e,!1)}else g!==r[p]&&(r[p]=g,u=!0)}}}else{ma(e,t,o,r)&&(u=!0);let c;for(const f in l)(!t||!ye(t,f)&&((c=rn(f))===f||!ye(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||!ye(t,f))&&(delete r[f],u=!0)}u&&Ot(e.attrs,"set","")}function ma(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&&ye(o,c=it(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=ge(n),u=l||xe;for(let c=0;c<r.length;c++){const f=r[c];n[f]=Bo(o,a,f,u[f],e,!ye(u,f))}}return i}function Bo(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=ye(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ie(a)){const{propsDefaults:u}=o;if(n in u)s=u[n];else{const c=ss(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===rn(n))&&(s=!0))}return s}const Gu=new WeakMap;function va(e,t,n=!1){const s=n?Gu:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!ie(e)){const c=f=>{a=!0;const[p,g]=va(f,t,!0);Le(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return _e(e)&&s.set(e,un),un;if(ee(r))for(let c=0;c<r.length;c++){const f=it(r[c]);Qr(f)&&(i[f]=xe)}else if(r)for(const c in r){const f=it(c);if(Qr(f)){const p=r[c],g=i[f]=ee(p)||ie(p)?{type:p}:Le({},p),m=g.type;let y=!1,b=!0;if(ee(m))for(let C=0;C<m.length;++C){const x=m[C],E=ie(x)&&x.name;if(E==="Boolean"){y=!0;break}else E==="String"&&(b=!1)}else y=ie(m)&&m.name==="Boolean";g[0]=y,g[1]=b,(y||ye(g,"default"))&&l.push(f)}}const u=[i,l];return _e(e)&&s.set(e,u),u}function Qr(e){return e[0]!=="$"&&!In(e)}const mr=e=>e==="_"||e==="_ctx"||e==="$stable",vr=e=>ee(e)?e.map(_t):[_t(e)],Ju=(e,t,n)=>{if(t._n)return t;const s=Rt((...o)=>vr(t(...o)),n);return s._c=!1,s},ya=(e,t,n)=>{const s=e._ctx;for(const o in e){if(mr(o))continue;const r=e[o];if(ie(r))t[o]=Ju(o,r,s);else if(r!=null){const i=vr(r);t[o]=()=>i}}},ba=(e,t)=>{const n=vr(t);e.slots.default=()=>n},wa=(e,t,n)=>{for(const s in t)(n||!mr(s))&&(e[s]=t[s])},Qu=(e,t,n)=>{const s=e.slots=ha();if(e.vnode.shapeFlag&32){const o=t._;o?(wa(s,t,n),n&&bl(s,"_",o,!0)):ya(t,s)}else t&&ba(e,t)},Zu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=xe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:wa(o,t,n):(r=!t.$stable,ya(t,o)),i=t}else t&&(ba(e,t),i={default:1});if(r)for(const l in o)!mr(l)&&i[l]==null&&delete o[l]},He=pf;function Xu(e){return Yu(e)}function Yu(e,t){const n=Ks();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:g=Ct,insertStaticContent:m}=e,y=(h,v,w,R=null,P=null,A=null,V=void 0,B=null,F=!!v.dynamicChildren)=>{if(h===v)return;h&&!Xt(h,v)&&(R=T(h),ke(h,P,A,!0),h=null),v.patchFlag===-2&&(F=!1,v.dynamicChildren=null);const{type:D,ref:te,shapeFlag:K}=v;switch(D){case eo:b(h,v,w,R);break;case qe:C(h,v,w,R);break;case vs:h==null&&x(v,w,R,V);break;case Pe:H(h,v,w,R,P,A,V,B,F);break;default:K&1?z(h,v,w,R,P,A,V,B,F):K&6?le(h,v,w,R,P,A,V,B,F):(K&64||K&128)&&D.process(h,v,w,R,P,A,V,B,F,X)}te!=null&&P?Nn(te,h&&h.ref,A,v||h,!v):te==null&&h&&h.ref!=null&&Nn(h.ref,null,A,h,!0)},b=(h,v,w,R)=>{if(h==null)s(v.el=l(v.children),w,R);else{const P=v.el=h.el;v.children!==h.children&&u(P,v.children)}},C=(h,v,w,R)=>{h==null?s(v.el=a(v.children||""),w,R):v.el=h.el},x=(h,v,w,R)=>{[h.el,h.anchor]=m(h.children,v,w,R,h.el,h.anchor)},E=({el:h,anchor:v},w,R)=>{let P;for(;h&&h!==v;)P=p(h),s(h,w,R),h=P;s(v,w,R)},O=({el:h,anchor:v})=>{let w;for(;h&&h!==v;)w=p(h),o(h),h=w;o(v)},z=(h,v,w,R,P,A,V,B,F)=>{v.type==="svg"?V="svg":v.type==="math"&&(V="mathml"),h==null?$(v,w,R,P,A,V,B,F):S(h,v,P,A,V,B,F)},$=(h,v,w,R,P,A,V,B)=>{let F,D;const{props:te,shapeFlag:K,transition:Y,dirs:oe}=h;if(F=h.el=i(h.type,A,te&&te.is,te),K&8?c(F,h.children):K&16&&k(h.children,F,null,R,P,bo(h,A),V,B),oe&&Wt(h,null,R,"created"),L(F,h,h.scopeId,V,R),te){for(const Ee in te)Ee!=="value"&&!In(Ee)&&r(F,Ee,null,te[Ee],A,R);"value"in te&&r(F,"value",null,te.value,A),(D=te.onVnodeBeforeMount)&&yt(D,R,h)}oe&&Wt(h,null,R,"beforeMount");const pe=ef(P,Y);pe&&Y.beforeEnter(F),s(F,v,w),((D=te&&te.onVnodeMounted)||pe||oe)&&He(()=>{D&&yt(D,R,h),pe&&Y.enter(F),oe&&Wt(h,null,R,"mounted")},P)},L=(h,v,w,R,P)=>{if(w&&g(h,w),R)for(let A=0;A<R.length;A++)g(h,R[A]);if(P){let A=P.subTree;if(v===A||Ea(A.type)&&(A.ssContent===v||A.ssFallback===v)){const V=P.vnode;L(h,V,V.scopeId,V.slotScopeIds,P.parent)}}},k=(h,v,w,R,P,A,V,B,F=0)=>{for(let D=F;D<h.length;D++){const te=h[D]=B?Ut(h[D]):_t(h[D]);y(null,te,v,w,R,P,A,V,B)}},S=(h,v,w,R,P,A,V)=>{const B=v.el=h.el;let{patchFlag:F,dynamicChildren:D,dirs:te}=v;F|=h.patchFlag&16;const K=h.props||xe,Y=v.props||xe;let oe;if(w&&Gt(w,!1),(oe=Y.onVnodeBeforeUpdate)&&yt(oe,w,v,h),te&&Wt(v,h,w,"beforeUpdate"),w&&Gt(w,!0),(K.innerHTML&&Y.innerHTML==null||K.textContent&&Y.textContent==null)&&c(B,""),D?M(h.dynamicChildren,D,B,w,R,bo(v,P),A):V||Z(h,v,B,null,w,R,bo(v,P),A,!1),F>0){if(F&16)se(B,K,Y,w,P);else if(F&2&&K.class!==Y.class&&r(B,"class",null,Y.class,P),F&4&&r(B,"style",K.style,Y.style,P),F&8){const pe=v.dynamicProps;for(let Ee=0;Ee<pe.length;Ee++){const be=pe[Ee],Ke=K[be],We=Y[be];(We!==Ke||be==="value")&&r(B,be,Ke,We,P,w)}}F&1&&h.children!==v.children&&c(B,v.children)}else!V&&D==null&&se(B,K,Y,w,P);((oe=Y.onVnodeUpdated)||te)&&He(()=>{oe&&yt(oe,w,v,h),te&&Wt(v,h,w,"updated")},R)},M=(h,v,w,R,P,A,V)=>{for(let B=0;B<v.length;B++){const F=h[B],D=v[B],te=F.el&&(F.type===Pe||!Xt(F,D)||F.shapeFlag&198)?f(F.el):w;y(F,D,te,null,R,P,A,V,!0)}},se=(h,v,w,R,P)=>{if(v!==w){if(v!==xe)for(const A in v)!In(A)&&!(A in w)&&r(h,A,v[A],null,P,R);for(const A in w){if(In(A))continue;const V=w[A],B=v[A];V!==B&&A!=="value"&&r(h,A,B,V,P,R)}"value"in w&&r(h,"value",v.value,w.value,P)}},H=(h,v,w,R,P,A,V,B,F)=>{const D=v.el=h?h.el:l(""),te=v.anchor=h?h.anchor:l("");let{patchFlag:K,dynamicChildren:Y,slotScopeIds:oe}=v;oe&&(B=B?B.concat(oe):oe),h==null?(s(D,w,R),s(te,w,R),k(v.children||[],w,te,P,A,V,B,F)):K>0&&K&64&&Y&&h.dynamicChildren?(M(h.dynamicChildren,Y,w,P,A,V,B),(v.key!=null||P&&v===P.subTree)&&yr(h,v,!0)):Z(h,v,w,te,P,A,V,B,F)},le=(h,v,w,R,P,A,V,B,F)=>{v.slotScopeIds=B,h==null?v.shapeFlag&512?P.ctx.activate(v,w,R,V,F):ae(v,w,R,P,A,V,F):Ae(h,v,F)},ae=(h,v,w,R,P,A,V)=>{const B=h.component=wf(h,R,P);if(Zs(h)&&(B.ctx.renderer=X),_f(B,!1,V),B.asyncDep){if(P&&P.registerDep(B,fe,V),!h.el){const F=B.subTree=j(qe);C(null,F,v,w),h.placeholder=F.el}}else fe(B,h,v,w,P,A,V)},Ae=(h,v,w)=>{const R=v.component=h.component;if(ff(h,v,w))if(R.asyncDep&&!R.asyncResolved){he(R,v,w);return}else R.next=v,R.update();else v.el=h.el,R.vnode=v},fe=(h,v,w,R,P,A,V)=>{const B=()=>{if(h.isMounted){let{next:K,bu:Y,u:oe,parent:pe,vnode:Ee}=h;{const mt=_a(h);if(mt){K&&(K.el=Ee.el,he(h,K,V)),mt.asyncDep.then(()=>{h.isUnmounted||B()});return}}let be=K,Ke;Gt(h,!1),K?(K.el=Ee.el,he(h,K,V)):K=Ee,Y&&hs(Y),(Ke=K.props&&K.props.onVnodeBeforeUpdate)&&yt(Ke,pe,K,Ee),Gt(h,!0);const We=Xr(h),gt=h.subTree;h.subTree=We,y(gt,We,f(gt.el),T(gt),h,P,A),K.el=We.el,be===null&&df(h,We.el),oe&&He(oe,P),(Ke=K.props&&K.props.onVnodeUpdated)&&He(()=>yt(Ke,pe,K,Ee),P)}else{let K;const{el:Y,props:oe}=v,{bm:pe,m:Ee,parent:be,root:Ke,type:We}=h,gt=Fn(v);Gt(h,!1),pe&&hs(pe),!gt&&(K=oe&&oe.onVnodeBeforeMount)&&yt(K,be,v),Gt(h,!0);{Ke.ce&&Ke.ce._def.shadowRoot!==!1&&Ke.ce._injectChildStyle(We);const mt=h.subTree=Xr(h);y(null,mt,w,R,h,P,A),v.el=mt.el}if(Ee&&He(Ee,P),!gt&&(K=oe&&oe.onVnodeMounted)){const mt=v;He(()=>yt(K,be,mt),P)}(v.shapeFlag&256||be&&Fn(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&He(h.a,P),h.isMounted=!0,v=w=R=null}};h.scope.on();const F=h.effect=new xl(B);h.scope.off();const D=h.update=F.run.bind(F),te=h.job=F.runIfDirty.bind(F);te.i=h,te.id=h.uid,F.scheduler=()=>gr(te),Gt(h,!0),D()},he=(h,v,w)=>{v.component=h;const R=h.vnode.props;h.vnode=v,h.next=null,Wu(h,v.props,R,w),Zu(h,v.children,w),Pt(),Fr(h),It()},Z=(h,v,w,R,P,A,V,B,F=!1)=>{const D=h&&h.children,te=h?h.shapeFlag:0,K=v.children,{patchFlag:Y,shapeFlag:oe}=v;if(Y>0){if(Y&128){me(D,K,w,R,P,A,V,B,F);return}else if(Y&256){Q(D,K,w,R,P,A,V,B,F);return}}oe&8?(te&16&&je(D,P,A),K!==D&&c(w,K)):te&16?oe&16?me(D,K,w,R,P,A,V,B,F):je(D,P,A,!0):(te&8&&c(w,""),oe&16&&k(K,w,R,P,A,V,B,F))},Q=(h,v,w,R,P,A,V,B,F)=>{h=h||un,v=v||un;const D=h.length,te=v.length,K=Math.min(D,te);let Y;for(Y=0;Y<K;Y++){const oe=v[Y]=F?Ut(v[Y]):_t(v[Y]);y(h[Y],oe,w,null,P,A,V,B,F)}D>te?je(h,P,A,!0,!1,K):k(v,w,R,P,A,V,B,F,K)},me=(h,v,w,R,P,A,V,B,F)=>{let D=0;const te=v.length;let K=h.length-1,Y=te-1;for(;D<=K&&D<=Y;){const oe=h[D],pe=v[D]=F?Ut(v[D]):_t(v[D]);if(Xt(oe,pe))y(oe,pe,w,null,P,A,V,B,F);else break;D++}for(;D<=K&&D<=Y;){const oe=h[K],pe=v[Y]=F?Ut(v[Y]):_t(v[Y]);if(Xt(oe,pe))y(oe,pe,w,null,P,A,V,B,F);else break;K--,Y--}if(D>K){if(D<=Y){const oe=Y+1,pe=oe<te?v[oe].el:R;for(;D<=Y;)y(null,v[D]=F?Ut(v[D]):_t(v[D]),w,pe,P,A,V,B,F),D++}}else if(D>Y)for(;D<=K;)ke(h[D],P,A,!0),D++;else{const oe=D,pe=D,Ee=new Map;for(D=pe;D<=Y;D++){const et=v[D]=F?Ut(v[D]):_t(v[D]);et.key!=null&&Ee.set(et.key,D)}let be,Ke=0;const We=Y-pe+1;let gt=!1,mt=0;const Sn=new Array(We);for(D=0;D<We;D++)Sn[D]=0;for(D=oe;D<=K;D++){const et=h[D];if(Ke>=We){ke(et,P,A,!0);continue}let vt;if(et.key!=null)vt=Ee.get(et.key);else for(be=pe;be<=Y;be++)if(Sn[be-pe]===0&&Xt(et,v[be])){vt=be;break}vt===void 0?ke(et,P,A,!0):(Sn[vt-pe]=D+1,vt>=mt?mt=vt:gt=!0,y(et,v[vt],w,null,P,A,V,B,F),Ke++)}const $r=gt?tf(Sn):un;for(be=$r.length-1,D=We-1;D>=0;D--){const et=pe+D,vt=v[et],Pr=v[et+1],Ir=et+1<te?Pr.el||Pr.placeholder:R;Sn[D]===0?y(null,vt,w,Ir,P,A,V,B,F):gt&&(be<0||D!==$r[be]?Ce(vt,w,Ir,2):be--)}}},Ce=(h,v,w,R,P=null)=>{const{el:A,type:V,transition:B,children:F,shapeFlag:D}=h;if(D&6){Ce(h.component.subTree,v,w,R);return}if(D&128){h.suspense.move(v,w,R);return}if(D&64){V.move(h,v,w,X);return}if(V===Pe){s(A,v,w);for(let K=0;K<F.length;K++)Ce(F[K],v,w,R);s(h.anchor,v,w);return}if(V===vs){E(h,v,w);return}if(R!==2&&D&1&&B)if(R===0)B.beforeEnter(A),s(A,v,w),He(()=>B.enter(A),P);else{const{leave:K,delayLeave:Y,afterLeave:oe}=B,pe=()=>{h.ctx.isUnmounted?o(A):s(A,v,w)},Ee=()=>{A._isLeaving&&A[kt](!0),K(A,()=>{pe(),oe&&oe()})};Y?Y(A,pe,Ee):Ee()}else s(A,v,w)},ke=(h,v,w,R=!1,P=!1)=>{const{type:A,props:V,ref:B,children:F,dynamicChildren:D,shapeFlag:te,patchFlag:K,dirs:Y,cacheIndex:oe}=h;if(K===-2&&(P=!1),B!=null&&(Pt(),Nn(B,null,w,h,!0),It()),oe!=null&&(v.renderCache[oe]=void 0),te&256){v.ctx.deactivate(h);return}const pe=te&1&&Y,Ee=!Fn(h);let be;if(Ee&&(be=V&&V.onVnodeBeforeUnmount)&&yt(be,v,h),te&6)st(h.component,w,R);else{if(te&128){h.suspense.unmount(w,R);return}pe&&Wt(h,null,v,"beforeUnmount"),te&64?h.type.remove(h,v,w,X,R):D&&!D.hasOnce&&(A!==Pe||K>0&&K&64)?je(D,v,w,!1,!0):(A===Pe&&K&384||!P&&te&16)&&je(F,v,w),R&&Xe(h)}(Ee&&(be=V&&V.onVnodeUnmounted)||pe)&&He(()=>{be&&yt(be,v,h),pe&&Wt(h,null,v,"unmounted")},w)},Xe=h=>{const{type:v,el:w,anchor:R,transition:P}=h;if(v===Pe){Ye(w,R);return}if(v===vs){O(h);return}const A=()=>{o(w),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(h.shapeFlag&1&&P&&!P.persisted){const{leave:V,delayLeave:B}=P,F=()=>V(w,A);B?B(h.el,A,F):F()}else A()},Ye=(h,v)=>{let w;for(;h!==v;)w=p(h),o(h),h=w;o(v)},st=(h,v,w)=>{const{bum:R,scope:P,job:A,subTree:V,um:B,m:F,a:D}=h;Zr(F),Zr(D),R&&hs(R),P.stop(),A&&(A.flags|=8,ke(V,h,v,w)),B&&He(B,v),He(()=>{h.isUnmounted=!0},v)},je=(h,v,w,R=!1,P=!1,A=0)=>{for(let V=A;V<h.length;V++)ke(h[V],v,w,R,P)},T=h=>{if(h.shapeFlag&6)return T(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=p(h.anchor||h.el),w=v&&v[Gl];return w?p(w):v};let G=!1;const q=(h,v,w)=>{h==null?v._vnode&&ke(v._vnode,null,null,!0):y(v._vnode||null,h,v,null,null,null,w),v._vnode=h,G||(G=!0,Fr(),zl(),G=!1)},X={p:y,um:ke,m:Ce,r:Xe,mt:ae,mc:k,pc:Z,pbc:M,n:T,o:e};return{render:q,hydrate:void 0,createApp:zu(q)}}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 ef(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function yr(e,t,n=!1){const s=e.children,o=t.children;if(ee(s)&&ee(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]=Ut(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&yr(i,l)),l.type===eo&&l.patchFlag!==-1&&(l.el=i.el),l.type===qe&&!l.el&&(l.el=i.el)}}function tf(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 Zr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const nf=Symbol.for("v-scx"),sf=()=>ct(nf);function ut(e,t,n){return Ca(e,t,n)}function Ca(e,t,n=xe){const{immediate:s,deep:o,flush:r,once:i}=n,l=Le({},n),a=t&&s||!t&&r!=="post";let u;if(Gn){if(r==="sync"){const g=sf();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ct,g.resume=Ct,g.pause=Ct,g}}const c=Ne;l.call=(g,m,y)=>ft(g,c,m,y);let f=!1;r==="post"?l.scheduler=g=>{He(g,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(g,m)=>{m?g():gr(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const p=bu(e,t,l);return Gn&&(u?u.push(p):a&&p()),p}function of(e,t,n){const s=this.proxy,o=Oe(e)?e.includes(".")?Sa(s,e):()=>s[e]:e.bind(s,s);let r;ie(t)?r=t:(r=t.handler,n=t);const i=ss(this),l=Ca(o,r.bind(s),n);return i(),l}function Sa(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 rf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${rn(t)}Modifiers`];function lf(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||xe;let o=n;const r=t.startsWith("update:"),i=r&&rf(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>Oe(c)?c.trim():c)),i.number&&(o=n.map(Ts)));let l,a=s[l=fo(t)]||s[l=fo(it(t))];!a&&r&&(a=s[l=fo(rn(t))]),a&&ft(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,ft(u,e,6,o)}}const af=new WeakMap;function xa(e,t,n=!1){const s=n?af:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!ie(e)){const a=u=>{const c=xa(u,t,!0);c&&(l=!0,Le(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(_e(e)&&s.set(e,null),null):(ee(r)?r.forEach(a=>i[a]=null):Le(i,r),_e(e)&&s.set(e,i),i)}function Ys(e,t){return!e||!Hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,rn(t))||ye(e,t))}function Xr(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:p,setupState:g,ctx:m,inheritAttrs:y}=e,b=Os(e);let C,x;try{if(n.shapeFlag&4){const O=o||s,z=O;C=_t(u.call(z,O,c,f,g,p,m)),x=l}else{const O=t;C=_t(O.length>1?O(f,{attrs:l,slots:i,emit:a}):O(f,null)),x=t.props?l:cf(l)}}catch(O){jn.length=0,Qs(O,e,1),C=j(qe)}let E=C;if(x&&y!==!1){const O=Object.keys(x),{shapeFlag:z}=E;O.length&&z&7&&(r&&O.some(rr)&&(x=uf(x,r)),E=zt(E,x,!1,!0))}return n.dirs&&(E=zt(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Kn(E,n.transition),C=E,Os(b),C}const cf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hs(n))&&((t||(t={}))[n]=e[n]);return t},uf=(e,t)=>{const n={};for(const s in e)(!rr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ff(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?Yr(s,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(i[p]!==s[p]&&!Ys(u,p))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Yr(s,i,u):!0:!!i;return!1}function Yr(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 df({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 Ea=e=>e.__isSuspense;function pf(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Cu(e)}const Pe=Symbol.for("v-fgt"),eo=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),jn=[];let nt=null;function I(e=!1){jn.push(nt=e?null:[])}function hf(){jn.pop(),nt=jn[jn.length-1]||null}let Wn=1;function Is(e,t=!1){Wn+=e,e<0&&nt&&t&&(nt.hasOnce=!0)}function Ta(e){return e.dynamicChildren=Wn>0?nt||un:null,hf(),Wn>0&&nt&&nt.push(e),e}function N(e,t,n,s,o,r){return Ta(d(e,t,n,s,o,r,!0))}function Je(e,t,n,s,o){return Ta(j(e,t,n,s,o,!0))}function Ls(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Aa=({key:e})=>e??null,ys=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||Ue(e)||ie(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,s=0,o=null,r=e===Pe?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Aa(t),ref:t&&ys(t),scopeId:Wl,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:tt};return l?(wr(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Oe(n)?8:16),Wn>0&&!i&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const j=gf;function gf(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===aa)&&(e=qe),Ls(e)){const l=zt(e,t,!0);return n&&wr(l,n),Wn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag=-2,l}if(Tf(e)&&(e=e.__vccOpts),t){t=mf(t);let{class:l,style:a}=t;l&&!Oe(l)&&(t.class=re(l)),_e(a)&&(hr(a)&&!ee(a)&&(a=Le({},a)),t.style=es(a))}const i=Oe(e)?1:Ea(e)?128:Jl(e)?64:_e(e)?4:ie(e)?2:0;return d(e,t,n,s,o,i,r,!0)}function mf(e){return e?hr(e)||ga(e)?Le({},e):e:null}function zt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?vf(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Aa(u),ref:t&&t.ref?n&&r?ee(r)?r.concat(ys(t)):[r,ys(t)]:ys(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!==Pe?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&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(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 de(e=" ",t=0){return j(eo,null,e,t)}function br(e,t){const n=j(vs,null,e);return n.staticCount=t,n}function ue(e="",t=!1){return t?(I(),Je(qe,null,e)):j(qe,null,e)}function _t(e){return e==null||typeof e=="boolean"?j(qe):ee(e)?j(Pe,null,e.slice()):Ls(e)?Ut(e):j(eo,null,String(e))}function Ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function wr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),wr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!ga(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),s&64?(n=16,t=[de(t)]):n=8);e.children=t,e.shapeFlag|=n}function vf(...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=re([t.class,s.class]));else if(o==="style")t.style=es([t.style,s.style]);else if(Hs(o)){const r=t[o],i=s[o];i&&r!==i&&!(ee(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function yt(e,t,n,s=null){ft(e,t,7,[n,s])}const yf=da();let bf=0;function wf(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||yf,r={uid:bf++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Sl(!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:va(s,o),emitsOptions:xa(s,o),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:s.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,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=lf.bind(null,r),e.ce&&e.ce(r),r}let Ne=null;const Ra=()=>Ne||tt;let Ms,Ho;{const e=Ks(),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)}};Ms=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),Ho=t("__VUE_SSR_SETTERS__",n=>Gn=n)}const ss=e=>{const t=Ne;return Ms(e),e.scope.on(),()=>{e.scope.off(),Ms(t)}},ei=()=>{Ne&&Ne.scope.off(),Ms(null)};function ka(e){return e.vnode.shapeFlag&4}let Gn=!1;function _f(e,t=!1,n=!1){t&&Ho(t);const{props:s,children:o}=e.vnode,r=ka(e);Ku(e,s,r,t),Qu(e,o,n||t);const i=r?Cf(e,t):void 0;return t&&Ho(!1),i}function Cf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fu);const{setup:s}=n;if(s){Pt();const o=e.setupContext=s.length>1?xf(e):null,r=ss(e),i=ts(s,e,0,[e.props,o]),l=ml(i);if(It(),r(),(l||e.sp)&&!Fn(e)&&oa(e),l){if(i.then(ei,ei),t)return i.then(a=>{ti(e,a)}).catch(a=>{Qs(a,e,0)});e.asyncDep=i}else ti(e,i)}else Oa(e)}function ti(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Hl(t)),Oa(e)}function Oa(e,t,n){const s=e.type;e.render||(e.render=s.render||Ct);{const o=ss(e);Pt();try{Uu(e)}finally{It(),o()}}}const Sf={get(e,t){return De(e,"get",""),e[t]}};function xf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sf),slots:e.slots,emit:e.emit,expose:t}}function to(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(Ul(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 Ef(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Tf(e){return ie(e)&&"__vccOpts"in e}const we=(e,t)=>vu(e,t,Gn);function Kt(e,t,n){try{Is(-1);const s=arguments.length;return s===2?_e(t)&&!ee(t)?Ls(t)?j(e,null,[t]):j(e,t):j(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ls(n)&&(n=[n]),j(e,t,n))}finally{Is(1)}}const Af="3.5.22";/**
|
||
* @vue/runtime-dom v3.5.22
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Vo;const ni=typeof window<"u"&&window.trustedTypes;if(ni)try{Vo=ni.createPolicy("vue",{createHTML:e=>e})}catch{}const $a=Vo?e=>Vo.createHTML(e):e=>e,Rf="http://www.w3.org/2000/svg",kf="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,si=At&&At.createElement("template"),Of={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"?At.createElementNS(Rf,e):t==="mathml"?At.createElementNS(kf,e):n?At.createElement(e,{is:n}):At.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.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{si.innerHTML=$a(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=si.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]}},Dt="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},$f=Le({},Yl,Pa),Pf=e=>(e.displayName="Transition",e.props=$f,e),Ia=Pf((e,{slots:t})=>Kt(Tu,If(e),t)),Jt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},oi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function If(e){const t={};for(const H in e)H in Pa||(t[H]=e[H]);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:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,m=Lf(o),y=m&&m[0],b=m&&m[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:E,onLeave:O,onLeaveCancelled:z,onBeforeAppear:$=C,onAppear:L=x,onAppearCancelled:k=E}=t,S=(H,le,ae,Ae)=>{H._enterCancelled=Ae,Qt(H,le?c:l),Qt(H,le?u:i),ae&&ae()},M=(H,le)=>{H._isLeaving=!1,Qt(H,f),Qt(H,g),Qt(H,p),le&&le()},se=H=>(le,ae)=>{const Ae=H?L:x,fe=()=>S(le,H,ae);Jt(Ae,[le,fe]),ri(()=>{Qt(le,H?a:r),Et(le,H?c:l),oi(Ae)||ii(le,s,y,fe)})};return Le(t,{onBeforeEnter(H){Jt(C,[H]),Et(H,r),Et(H,i)},onBeforeAppear(H){Jt($,[H]),Et(H,a),Et(H,u)},onEnter:se(!1),onAppear:se(!0),onLeave(H,le){H._isLeaving=!0;const ae=()=>M(H,le);Et(H,f),H._enterCancelled?(Et(H,p),ci(H)):(ci(H),Et(H,p)),ri(()=>{H._isLeaving&&(Qt(H,f),Et(H,g),oi(O)||ii(H,s,b,ae))}),Jt(O,[H,ae])},onEnterCancelled(H){S(H,!1,void 0,!0),Jt(E,[H])},onAppearCancelled(H){S(H,!0,void 0,!0),Jt(k,[H])},onLeaveCancelled(H){M(H),Jt(z,[H])}})}function Lf(e){if(e==null)return null;if(_e(e))return[wo(e.enter),wo(e.leave)];{const t=wo(e);return[t,t]}}function wo(e){return Uc(e)}function Et(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 ri(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Mf=0;function ii(e,t,n,s){const o=e._endId=++Mf,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=Df(e,t);if(!i)return s();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,p),r()},p=g=>{g.target===e&&++c>=a&&f()};setTimeout(()=>{c<a&&f()},l+1),e.addEventListener(u,p)}function Df(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),o=s(`${Dt}Delay`),r=s(`${Dt}Duration`),i=li(o,r),l=s(`${En}Delay`),a=s(`${En}Duration`),u=li(l,a);let c=null,f=0,p=0;t===Dt?i>0&&(c=Dt,f=i,p=r.length):t===En?u>0&&(c=En,f=u,p=a.length):(f=Math.max(i,u),c=f>0?i>u?Dt:En:null,p=c?c===Dt?r.length:a.length:0);const g=c===Dt&&/\b(?:transform|all)(?:,|$)/.test(s(`${Dt}Property`).toString());return{type:c,timeout:f,propCount:p,hasTransform:g}}function li(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ai(n)+ai(e[s])))}function ai(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ci(e){return(e?e.ownerDocument:document).body.offsetHeight}function Nf(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 Ds=Symbol("_vod"),La=Symbol("_vsh"),Ns={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ds]=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[Ds]:"none",e[La]=!t}const Ff=Symbol(""),Uf=/(?:^|;)\s*display\s*:/;function jf(e,t,n){const s=e.style,o=Oe(n);let r=!1;if(n&&!o){if(t)if(Oe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&bs(s,l,"")}else for(const i in t)n[i]==null&&bs(s,i,"");for(const i in n)i==="display"&&(r=!0),bs(s,i,n[i])}else if(o){if(t!==n){const i=s[Ff];i&&(n+=";"+i),s.cssText=n,r=Uf.test(n)}}else t&&e.removeAttribute("style");Ds in e&&(e[Ds]=r?s.display:"",e[La]&&(s.display="none"))}const ui=/\s*!important$/;function bs(e,t,n){if(ee(n))n.forEach(s=>bs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bf(e,t);ui.test(n)?e.setProperty(rn(s),n.replace(ui,""),"important"):e[s]=n}}const fi=["Webkit","Moz","ms"],_o={};function Bf(e,t){const n=_o[t];if(n)return n;let s=it(t);if(s!=="filter"&&s in e)return _o[t]=s;s=zs(s);for(let o=0;o<fi.length;o++){const r=fi[o]+s;if(r in e)return _o[t]=r}return t}const di="http://www.w3.org/1999/xlink";function pi(e,t,n,s,o,r=zc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(di,t.slice(6,t.length)):e.setAttributeNS(di,t,n):n==null||r&&!wl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":St(n)?String(n):n)}function hi(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=wl(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 Hf(e,t,n,s){e.removeEventListener(t,n,s)}const gi=Symbol("_vei");function Vf(e,t,n,s,o=null){const r=e[gi]||(e[gi]={}),i=r[t];if(s&&i)i.value=s;else{const[l,a]=qf(t);if(s){const u=r[t]=Wf(s,o);Yt(e,l,u,a)}else i&&(Hf(e,l,i,a),r[t]=void 0)}}const mi=/(?:Once|Passive|Capture)$/;function qf(e){let t;if(mi.test(e)){t={};let s;for(;s=e.match(mi);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):rn(e.slice(2)),t]}let Co=0;const zf=Promise.resolve(),Kf=()=>Co||(zf.then(()=>Co=0),Co=Date.now());function Wf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ft(Gf(s,n.value),t,5,[s])};return n.value=e,n.attached=Kf(),n}function Gf(e,t){if(ee(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 vi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jf=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Nf(e,s,i):t==="style"?jf(e,n,s):Hs(t)?rr(t)||Vf(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qf(e,t,s,i))?(hi(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&pi(e,t,s,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(s))?hi(e,it(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),pi(e,t,s,i))};function Qf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&vi(t)&&ie(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 vi(t)&&Oe(n)?!1:t in e}const Fs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>hs(t,n):t};function Zf(e){e.target.composing=!0}function yi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gn=Symbol("_assign"),Ma={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[gn]=Fs(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=Ts(l)),e[gn](l)}),n&&Yt(e,"change",()=>{e.value=e.value.trim()}),t||(Yt(e,"compositionstart",Zf),Yt(e,"compositionend",yi),Yt(e,"change",yi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[gn]=Fs(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ts(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=Vs(t);Yt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Ts(Us(i)):Us(i));e[gn](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,mn(()=>{e._assigning=!1})}),e[gn]=Fs(s)},mounted(e,{value:t}){bi(e,t)},beforeUpdate(e,t,n){e[gn]=Fs(n)},updated(e,{value:t}){e._assigning||bi(e,t)}};function bi(e,t){const n=e.multiple,s=ee(t);if(!(n&&!s&&!Vs(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Us(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=Wc(t,l)>-1}else i.selected=t.has(l);else if(Ws(Us(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Us(e){return"_value"in e?e._value:e.value}const Xf=["ctrl","shift","alt","meta"],Yf={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)=>Xf.some(n=>e[`${n}Key`]&&!t.includes(n))},Bt=(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=Yf[t[i]];if(l&&l(o,t))return}return e(o,...r)})},ed=Le({patchProp:Jf},Of);let wi;function td(){return wi||(wi=Xu(ed))}const nd=(...e)=>{const t=td().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=od(s);if(!o)return;const r=t._component;!ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,sd(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function sd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function od(e){return Oe(e)?document.querySelector(e):e}/*!
|
||
* pinia v2.3.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const rd=Symbol();var _i;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_i||(_i={}));function id(){const e=Gc(!0),t=e.run(()=>J({}));let n=[],s=[];const o=Ul({install(r){o._a=r,r.provide(rd,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:ld}=Object.prototype,{getPrototypeOf:_r}=Object,{iterator:no,toStringTag:Fa}=Symbol,so=(e=>t=>{const n=ld.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>so(t)===e),oo=e=>t=>typeof t===e,{isArray:_n}=Array,vn=oo("undefined");function os(e){return e!==null&&!vn(e)&&e.constructor!==null&&!vn(e.constructor)&&Qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ua=pt("ArrayBuffer");function ad(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ua(e.buffer),t}const cd=oo("string"),Qe=oo("function"),ja=oo("number"),rs=e=>e!==null&&typeof e=="object",ud=e=>e===!0||e===!1,ws=e=>{if(so(e)!=="object")return!1;const t=_r(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fa in e)&&!(no in e)},fd=e=>{if(!rs(e)||os(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dd=pt("Date"),pd=pt("File"),hd=pt("Blob"),gd=pt("FileList"),md=e=>rs(e)&&Qe(e.pipe),vd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qe(e.append)&&((t=so(e))==="formdata"||t==="object"&&Qe(e.toString)&&e.toString()==="[object FormData]"))},yd=pt("URLSearchParams"),[bd,wd,_d,Cd]=["ReadableStream","Request","Response","Headers"].map(pt),Sd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function is(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),_n(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(os(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(os(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;ws(n[i])&&ws(o)?n[i]=qo(n[i],o):ws(o)?n[i]=qo({},o):_n(o)?n[i]=o.slice():(!t||!vn(o))&&(n[i]=o)};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&is(arguments[o],s);return n}const xd=(e,t,n,{allOwnKeys:s}={})=>(is(t,(o,r)=>{n&&Qe(o)?e[r]=Na(o,n):e[r]=o},{allOwnKeys:s}),e),Ed=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Td=(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)},Ad=(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&&_r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rd=(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},kd=e=>{if(!e)return null;if(_n(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},Od=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_r(Uint8Array)),$d=(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])}},Pd=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Id=pt("HTMLFormElement"),Ld=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Ci=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Md=pt("RegExp"),Va=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};is(n,(o,r)=>{let i;(i=t(o,r,e))!==!1&&(s[r]=i||o)}),Object.defineProperties(e,s)},Dd=e=>{Va(e,(t,n)=>{if(Qe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Qe(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+"'")})}})},Nd=(e,t)=>{const n={},s=o=>{o.forEach(r=>{n[r]=!0})};return _n(e)?s(e):s(String(e).split(t)),n},Fd=()=>{},Ud=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jd(e){return!!(e&&Qe(e.append)&&e[Fa]==="FormData"&&e[no])}const Bd=e=>{const t=new Array(10),n=(s,o)=>{if(rs(s)){if(t.indexOf(s)>=0)return;if(os(s))return s;if(!("toJSON"in s)){t[o]=s;const r=_n(s)?[]:{};return is(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)},Hd=pt("AsyncFunction"),Vd=e=>e&&(rs(e)||Qe(e))&&Qe(e.then)&&Qe(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",Qe(en.postMessage)),qd=typeof queueMicrotask<"u"?queueMicrotask.bind(en):typeof process<"u"&&process.nextTick||qa,zd=e=>e!=null&&Qe(e[no]),_={isArray:_n,isArrayBuffer:Ua,isBuffer:os,isFormData:vd,isArrayBufferView:ad,isString:cd,isNumber:ja,isBoolean:ud,isObject:rs,isPlainObject:ws,isEmptyObject:fd,isReadableStream:bd,isRequest:wd,isResponse:_d,isHeaders:Cd,isUndefined:vn,isDate:dd,isFile:pd,isBlob:hd,isRegExp:Md,isFunction:Qe,isStream:md,isURLSearchParams:yd,isTypedArray:Od,isFileList:gd,forEach:is,merge:qo,extend:xd,trim:Sd,stripBOM:Ed,inherits:Td,toFlatObject:Ad,kindOf:so,kindOfTest:pt,endsWith:Rd,toArray:kd,forEachEntry:$d,matchAll:Pd,isHTMLForm:Id,hasOwnProperty:Ci,hasOwnProp:Ci,reduceDescriptors:Va,freezeMethods:Dd,toObjectSet:Nd,toCamelCase:Ld,noop:Fd,toFiniteNumber:Ud,findKey:Ba,global:en,isContextDefined:Ha,isSpecCompliantForm:jd,toJSONObject:Bd,isAsyncFn:Hd,isThenable:Vd,setImmediate:qa,asap:qd,isIterable:zd};function ce(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)}_.inherits(ce,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:_.toJSONObject(this.config),code:this.code,status:this.status}}});const za=ce.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(ce,Ka);Object.defineProperty(za,"isAxiosError",{value:!0});ce.from=(e,t,n,s,o,r)=>{const i=Object.create(za);_.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 ce.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 Kd=null;function zo(e){return _.isPlainObject(e)||_.isArray(e)}function Wa(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Si(e,t,n){return e?e.concat(t).map(function(o,r){return o=Wa(o),!n&&r?"["+o+"]":o}).join(n?".":""):t}function Wd(e){return _.isArray(e)&&!e.some(zo)}const Gd=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function ro(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!_.isUndefined(b[y])});const s=n.metaTokens,o=n.visitor||c,r=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(_.isDate(m))return m.toISOString();if(_.isBoolean(m))return m.toString();if(!a&&_.isBlob(m))throw new ce("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(m)||_.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,b){let C=m;if(m&&!b&&typeof m=="object"){if(_.endsWith(y,"{}"))y=s?y:y.slice(0,-2),m=JSON.stringify(m);else if(_.isArray(m)&&Wd(m)||(_.isFileList(m)||_.endsWith(y,"[]"))&&(C=_.toArray(m)))return y=Wa(y),C.forEach(function(E,O){!(_.isUndefined(E)||E===null)&&t.append(i===!0?Si([y],O,r):i===null?y:y+"[]",u(E))}),!1}return zo(m)?!0:(t.append(Si(b,y,r),u(m)),!1)}const f=[],p=Object.assign(Gd,{defaultVisitor:c,convertValue:u,isVisitable:zo});function g(m,y){if(!_.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),_.forEach(m,function(C,x){(!(_.isUndefined(C)||C===null)&&o.call(t,C,_.isString(x)?x.trim():x,y,p))===!0&&g(C,y?y.concat(x):[x])}),f.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return g(e),t}function xi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Cr(e,t){this._pairs=[],e&&ro(e,this,t)}const Ga=Cr.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,xi)}:xi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jd(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||Jd;_.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let r;if(o?r=o(t,n):r=_.isURLSearchParams(t)?t.toString():new Cr(t,n).toString(s),r){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Ei{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){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qd=typeof URLSearchParams<"u"?URLSearchParams:Cr,Zd=typeof FormData<"u"?FormData:null,Xd=typeof Blob<"u"?Blob:null,Yd={isBrowser:!0,classes:{URLSearchParams:Qd,FormData:Zd,Blob:Xd},protocols:["http","https","file","blob","url","data"]},Sr=typeof window<"u"&&typeof document<"u",Ko=typeof navigator=="object"&&navigator||void 0,ep=Sr&&(!Ko||["ReactNative","NativeScript","NS"].indexOf(Ko.product)<0),tp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",np=Sr&&window.location.href||"http://localhost",sp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sr,hasStandardBrowserEnv:ep,hasStandardBrowserWebWorkerEnv:tp,navigator:Ko,origin:np},Symbol.toStringTag,{value:"Module"})),Fe={...sp,...Yd};function op(e,t){return ro(e,new Fe.classes.URLSearchParams,{visitor:function(n,s,o,r){return Fe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function rp(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ip(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&&_.isArray(o)?o.length:i,a?(_.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!l):((!o[i]||!_.isObject(o[i]))&&(o[i]=[]),t(n,s,o[i],r)&&_.isArray(o[i])&&(o[i]=ip(o[i])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,o)=>{t(rp(s),o,n,0)}),n}return null}function lp(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ls={transitional:Qa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,r=_.isObject(t);if(r&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return o?JSON.stringify(Za(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.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 op(t,this.formSerializer).toString();if((l=_.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),lp(t)):t}],transformResponse:[function(t){const n=this.transitional||ls.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.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"?ce.from(l,ce.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:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{ls.headers[e]={}});const ap=_.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"]),cp=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]&&ap[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ti=Symbol("internals");function An(e){return e&&String(e).trim().toLowerCase()}function _s(e){return e===!1||e==null?e:_.isArray(e)?e.map(_s):String(e)}function up(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 fp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function So(e,t,n,s,o){if(_.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function dp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function pp(e,t){const n=_.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 Ze=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=_.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)=>_.forEach(l,(u,c)=>r(u,c,a));if(_.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(_.isString(t)&&(t=t.trim())&&!fp(t))i(cp(t),n);else if(_.isObject(t)&&_.isIterable(t)){let l={},a,u;for(const c of t){if(!_.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(a=l[u])?_.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=_.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return up(o);if(_.isFunction(n))return n.call(this,o,s);if(_.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=_.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=_.findKey(s,i);l&&(!n||So(s,s[l],l,n))&&(delete s[l],o=!0)}}return _.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 _.forEach(this,(o,r)=>{const i=_.findKey(s,r);if(i){n[i]=_s(o),delete n[r];return}const l=t?dp(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 _.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&_.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[Ti]=this[Ti]={accessors:{}}).accessors,o=this.prototype;function r(i){const l=An(i);s[l]||(pp(o,i),s[l]=!0)}return _.isArray(t)?t.forEach(r):r(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});_.freezeMethods(Ze);function xo(e,t){const n=this||ls,s=t||n,o=Ze.from(s.headers);let r=s.data;return _.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){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Cn,ce,{__CANCEL__:!0});function Ya(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gp(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,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),u-i<t)return;const g=c&&u-c;return g?Math.round(p*1e3/g):void 0}}function mp(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 js=(e,t,n=3)=>{let s=0;const o=gp(50,250);return mp(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)},Ai=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ri=e=>(...t)=>_.asap(()=>e(...t)),vp=Fe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Fe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Fe.origin),Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent)):()=>!0,yp=Fe.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),_.isString(s)&&i.push("path="+s),_.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 bp(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=!bp(t);return e&&(s||n==!1)?wp(e,t):t}const ki=e=>e instanceof Ze?{...e}:e;function on(e,t){t=t||{};const n={};function s(u,c,f,p){return _.isPlainObject(u)&&_.isPlainObject(c)?_.merge.call({caseless:p},u,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function o(u,c,f,p){if(_.isUndefined(c)){if(!_.isUndefined(u))return s(void 0,u,f,p)}else return s(u,c,f,p)}function r(u,c){if(!_.isUndefined(c))return s(void 0,c)}function i(u,c){if(_.isUndefined(c)){if(!_.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(ki(u),ki(c),f,!0)};return _.forEach(Object.keys({...e,...t}),function(c){const f=a[c]||o,p=f(e[c],t[c],c);_.isUndefined(p)&&f!==l||(n[c]=p)}),n}const tc=e=>{const t=on({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:r,headers:i,auth:l}=t;if(t.headers=i=Ze.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)):""))),_.isFormData(n)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(_.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(Fe.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(t)),s||s!==!1&&vp(t.url))){const a=o&&r&&yp.read(r);a&&i.set(o,a)}return t},_p=typeof XMLHttpRequest<"u",Cp=_p&&function(e){return new Promise(function(n,s){const o=tc(e);let r=o.data;const i=Ze.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=o,c,f,p,g,m;function y(){g&&g(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function C(){if(!b)return;const E=Ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),z={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:E,config:e,request:b};Ya(function(L){n(L),y()},function(L){s(L),y()},z),b=null}"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(C)},b.onabort=function(){b&&(s(new ce("Request aborted",ce.ECONNABORTED,e,b)),b=null)},b.onerror=function(O){const z=O&&O.message?O.message:"Network Error",$=new ce(z,ce.ERR_NETWORK,e,b);$.event=O||null,s($),b=null},b.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const z=o.transitional||Qa;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),s(new ce(O,z.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,b)),b=null},r===void 0&&i.setContentType(null),"setRequestHeader"in b&&_.forEach(i.toJSON(),function(O,z){b.setRequestHeader(z,O)}),_.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),u&&([p,m]=js(u,!0),b.addEventListener("progress",p)),a&&b.upload&&([f,g]=js(a),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(c=E=>{b&&(s(!E||E.type?new Cn(null,e,b):E),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=hp(o.url);if(x&&Fe.protocols.indexOf(x)===-1){s(new ce("Unsupported protocol "+x+":",ce.ERR_BAD_REQUEST,e));return}b.send(r||null)})},Sp=(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 ce?c:new Cn(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,r(new ce(`timeout ${t} of ms exceeded`,ce.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=()=>_.asap(l),a}},xp=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},Ep=async function*(e,t){for await(const n of Tp(e))yield*xp(n,t)},Tp=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()}},Oi=(e,t,n,s)=>{const o=Ep(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 p=r+=f;n(p)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),o.return()}},{highWaterMark:2})},$i=64*1024,{isFunction:ps}=_,Ap=(({Request:e,Response:t})=>({Request:e,Response:t}))(_.global),{ReadableStream:Pi,TextEncoder:Ii}=_.global,Li=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rp=e=>{e=_.merge.call({skipUndefined:!0},Ap,e);const{fetch:t,Request:n,Response:s}=e,o=t?ps(t):typeof fetch=="function",r=ps(n),i=ps(s);if(!o)return!1;const l=o&&ps(Pi),a=o&&(typeof Ii=="function"?(m=>y=>m.encode(y))(new Ii):async m=>new Uint8Array(await new n(m).arrayBuffer())),u=r&&l&&Li(()=>{let m=!1;const y=new n(Fe.origin,{body:new Pi,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),c=i&&l&&Li(()=>_.isReadableStream(new s("").body)),f={stream:c&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(y,b)=>{let C=y&&y[m];if(C)return C.call(y);throw new ce(`Response type '${m}' is not supported`,ce.ERR_NOT_SUPPORT,b)})});const p=async m=>{if(m==null)return 0;if(_.isBlob(m))return m.size;if(_.isSpecCompliantForm(m))return(await new n(Fe.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(_.isArrayBufferView(m)||_.isArrayBuffer(m))return m.byteLength;if(_.isURLSearchParams(m)&&(m=m+""),_.isString(m))return(await a(m)).byteLength},g=async(m,y)=>{const b=_.toFiniteNumber(m.getContentLength());return b??p(y)};return async m=>{let{url:y,method:b,data:C,signal:x,cancelToken:E,timeout:O,onDownloadProgress:z,onUploadProgress:$,responseType:L,headers:k,withCredentials:S="same-origin",fetchOptions:M}=tc(m),se=t||fetch;L=L?(L+"").toLowerCase():"text";let H=Sp([x,E&&E.toAbortSignal()],O),le=null;const ae=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let Ae;try{if($&&u&&b!=="get"&&b!=="head"&&(Ae=await g(k,C))!==0){let Ce=new n(y,{method:"POST",body:C,duplex:"half"}),ke;if(_.isFormData(C)&&(ke=Ce.headers.get("content-type"))&&k.setContentType(ke),Ce.body){const[Xe,Ye]=Ai(Ae,js(Ri($)));C=Oi(Ce.body,$i,Xe,Ye)}}_.isString(S)||(S=S?"include":"omit");const fe=r&&"credentials"in n.prototype,he={...M,signal:H,method:b.toUpperCase(),headers:k.normalize().toJSON(),body:C,duplex:"half",credentials:fe?S:void 0};le=r&&new n(y,he);let Z=await(r?se(le,M):se(y,he));const Q=c&&(L==="stream"||L==="response");if(c&&(z||Q&&ae)){const Ce={};["status","statusText","headers"].forEach(st=>{Ce[st]=Z[st]});const ke=_.toFiniteNumber(Z.headers.get("content-length")),[Xe,Ye]=z&&Ai(ke,js(Ri(z),!0))||[];Z=new s(Oi(Z.body,$i,Xe,()=>{Ye&&Ye(),ae&&ae()}),Ce)}L=L||"text";let me=await f[_.findKey(f,L)||"text"](Z,m);return!Q&&ae&&ae(),await new Promise((Ce,ke)=>{Ya(Ce,ke,{data:me,headers:Ze.from(Z.headers),status:Z.status,statusText:Z.statusText,config:m,request:le})})}catch(fe){throw ae&&ae(),fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new ce("Network Error",ce.ERR_NETWORK,m,le),{cause:fe.cause||fe}):ce.from(fe,fe&&fe.code,m,le)}}},kp=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=kp;for(;l--;)a=r[l],u=c.get(a),u===void 0&&c.set(a,u=l?new Map:Rp(t)),c=u;return u};nc();const Wo={http:Kd,xhr:Cp,fetch:{get:nc}};_.forEach(Wo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mi=e=>`- ${e}`,Op=e=>_.isFunction(e)||e===null||e===!1,sc={getAdapter:(e,t)=>{e=_.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,!Op(s)&&(o=Wo[(l=String(s)).toLowerCase()],o===void 0))throw new ce(`Unknown adapter '${l}'`);if(o&&(_.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(Mi).join(`
|
||
`):" "+Mi(i[0]):"as no adapter specified";throw new ce("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 Di(e){return Eo(e),e.headers=Ze.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||ls.adapter,e)(e).then(function(s){return Eo(e),s.data=xo.call(e,e.transformResponse,s),s.headers=Ze.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=Ze.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 Ni={};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 ce(o(i," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED);return n&&!Ni[i]&&(Ni[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 $p(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.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 ce("option "+r+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+r,ce.ERR_BAD_OPTION)}}const Cs={assertOptions:$p,validators:io},bt=Cs.validators;let nn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ei,response:new Ei}}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=on(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&Cs.assertOptions(s,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),o!=null&&(_.isFunction(o)?n.paramsSerializer={serialize:o}:Cs.assertOptions(o,{encode:bt.function,serialize:bt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Cs.assertOptions(n,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&_.merge(r.common,r[n.method]);r&&_.forEach(["delete","get","head","post","put","patch","common"],m=>{delete r[m]}),n.headers=Ze.concat(i,r);const l=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,p;if(!a){const m=[Di.bind(this),void 0];for(m.unshift(...l),m.push(...u),p=m.length,c=Promise.resolve(n);f<p;)c=c.then(m[f++],m[f++]);return c}p=l.length;let g=n;for(;f<p;){const m=l[f++],y=l[f++];try{g=m(g)}catch(b){y.call(this,b);break}}try{c=Di.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,p=u.length;f<p;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=on(this.defaults,t);const n=ec(t.baseURL,t.url,t.allowAbsoluteUrls);return Ja(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){nn.prototype[t]=function(n,s){return this.request(on(s||{},{method:t,url:n,data:(s||{}).data}))}});_.forEach(["post","put","patch"],function(t){function n(s){return function(r,i,l){return this.request(on(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 Pp=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 Ip(e){return function(n){return e.apply(null,n)}}function Lp(e){return _.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 _.extend(n,nn.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ic(on(e,o))},n}const $e=ic(ls);$e.Axios=nn;$e.CanceledError=Cn;$e.CancelToken=Pp;$e.isCancel=Xa;$e.VERSION=oc;$e.toFormData=ro;$e.AxiosError=ce;$e.Cancel=$e.CanceledError;$e.all=function(t){return Promise.all(t)};$e.spread=Ip;$e.isAxiosError=Lp;$e.mergeConfig=on;$e.AxiosHeaders=Ze;$e.formToJSON=e=>Za(_.isHTMLForm(e)?new FormData(e):e);$e.getAdapter=sc.getAdapter;$e.HttpStatusCode=Go;$e.default=$e;const{Axios:m2,AxiosError:v2,CanceledError:y2,isCancel:b2,CancelToken:w2,VERSION:_2,all:C2,Cancel:S2,isAxiosError:x2,spread:E2,toFormData:T2,AxiosHeaders:A2,HttpStatusCode:R2,formToJSON:k2,getAdapter:O2,mergeConfig:$2}=$e,Ie=$e.create({baseURL:"/api",timeout:12e4});function Mp(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 Re{static async getApps(){return(await Ie.get("/apps")).data}static async getApp(t){return(await Ie.get(`/apps/${t}`)).data}static getAppIconUrl(t){return`/api/apps/icon/${t}`}static async updateApp(t){return(await Ie.post(`/apps/${t}/update`)).data}static async getConfig(){return(await Ie.get("/config")).data}static async getStatus(){return(await Ie.get("/status")).data}static async getStoreApps(){return(await Ie.get("/store/apps")).data}static async getAppVersions(t){return(await Ie.get(`/apps/${t}/versions`)).data.data}static async checkAppUpdate(t){try{const n=await Ie.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 Ie.post("/download/start",{url:t,fileName:n})).data}static async pauseDownload(t){await Ie.post(`/download/${t}/pause`)}static async resumeDownload(t){await Ie.post(`/download/${t}/resume`)}static async getDownloadTask(t){return(await Ie.get(`/download/${t}`)).data}static async getAllDownloads(){return(await Ie.get("/downloads")).data}static async deleteDownload(t){await Ie.delete(`/download/${t}`)}static async openDownloadFile(t){await Ie.post(`/download/${t}/open`)}static async getAllSettings(){return(await Ie.get("/settings")).data.data}static async updateSettings(t){await Ie.post("/settings",t)}static async validatePath(t){return(await Ie.get("/validate-path",{params:{path:t}})).data.data}}function xr(){const e=J("auto"),t=J(!1),n=we(()=>e.value==="auto"?t.value:e.value==="dark"),s=()=>{if(typeof window<"u"){const g=window.matchMedia("(prefers-color-scheme: dark)");t.value=g.matches}};let o=null;const r=g=>{t.value=g.matches},i=()=>{if(typeof document<"u"){const g=document.documentElement;n.value?g.setAttribute("data-theme","dark"):g.removeAttribute("data-theme")}},l=g=>{typeof localStorage<"u"&&localStorage.setItem("hayaku-theme",g)},a=()=>{if(typeof localStorage<"u"){const g=localStorage.getItem("hayaku-theme");if(g&&["light","dark","auto"].includes(g))return g}return"auto"},u=()=>{e.value==="auto"?e.value="dark":e.value==="dark"?e.value="light":e.value="auto",l(e.value)},c=g=>{e.value=g,l(g)},f=()=>{e.value=a(),s(),typeof window<"u"&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",r)),i()},p=()=>{o&&o.removeEventListener("change",r)};return ut(n,()=>{i()},{immediate:!0}),ut(e,()=>{i()}),lt(()=>{f()}),ns(()=>{p()}),{theme:e,isDark:n,toggleTheme:u,setTheme:c,systemPrefersDark:t}}const Dp={class:"text-mask"},Np={"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"},Fp=ze({__name:"SplashScreen",emits:["complete"],setup(e,{emit:t}){const{isDark:n}=xr(),s=t,o=J(!0),r=J(1),i=we(()=>`stage-${r.value}`);return lt(()=>{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?(I(),N("div",{key:0,class:re(["splash-screen",i.value])},[d("div",{class:re(["black-background",{hidden:r.value>=5}])},null,2),d("div",{class:re(["white-background",{visible:r.value>=6}])},null,2),d("div",{class:re(["theme-overlay",{visible:r.value>=8,"dark-theme":W(n)}])},null,2),d("div",{class:re(["gradient-background",{visible:r.value>=2,hidden:r.value>=5}])},[...a[0]||(a[0]=[br('<div class="blur-gradient gradient-1" data-v-ef7f49ac></div><div class="blur-gradient gradient-2" data-v-ef7f49ac></div><div class="blur-gradient gradient-3" data-v-ef7f49ac></div><div class="blur-gradient gradient-4" data-v-ef7f49ac></div><div class="blur-gradient gradient-5" data-v-ef7f49ac></div><div class="blur-gradient gradient-6" data-v-ef7f49ac></div>',6)])],2),d("div",{class:re(["glass-layer",{visible:r.value>=2,hidden:r.value>=5}])},null,2),d("div",{class:re(["splash-content",{hidden:r.value>=5}])},[d("div",Dp,[d("h1",{class:re(["author-name",{reveal:r.value>=3}])},"QiuChenly",2)]),d("p",{class:re(["subtitle",{reveal:r.value>=4}])},[...a[1]||(a[1]=[d("span",{class:"word"},"诚意",-1),d("span",{class:"word"},"巨献",-1)])],2)],2),d("div",{class:re(["yuanshen-logo",{reveal:r.value>=6,fadeout:r.value>=7}])},[(I(),N("svg",Np,[...a[2]||(a[2]=[d("defs",null,null,-1),d("g",{id:"レイヤー-2-コピー"},[d("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)):ue("",!0)}}),ht=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Up=ht(Fp,[["__scopeId","data-v-ef7f49ac"]]),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&&!Ss(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&&!Ss(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:r};return t&&!Ss(l,n)?null:l}return null},Ss=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,ac=Object.freeze({left:0,top:0,width:16,height:16}),Bs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ao=Object.freeze({...ac,...Bs}),Jo=Object.freeze({...ao,body:"",hidden:!1});function jp(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 Fi(e,t){const n=jp(e,t);for(const s in Jo)s in Bs?s in e&&!(s in n)&&(n[s]=Bs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Bp(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 Hp(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(l){r=Fi(s[l]||o[l],r)}return i(t),n.forEach(i),Fi(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=Bp(e);for(const o in s){const r=s[o];r&&(t(o,Hp(e,o,r)),n.push(o))}return n}const Vp={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,Vp))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 Ui=Object.create(null);function qp(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function yn(e,t){const n=Ui[e]||(Ui[e]=Object.create(null));return n[t]||(n[t]=qp(e,t))}function fc(e,t){return uc(t)?cc(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function zp(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 Kp(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 Wp(e,t){const n=lo(e,!0,Qn);if(!n)return!1;const s=yn(n.provider,n.prefix);return t?zp(s,n.name,t):(s.missing.add(n.name),!0)}function Gp(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)=>{Wp(r,i)&&(o=!0)})),o}const n=e.prefix;if(!Ss({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,...Bs}),Jp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Qp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ji(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(Jp);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=Qp.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 Zp(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 Xp(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Yp(e,t,n){const s=Zp(e);return Xp(s.defs,t+s.content+n)}const eh=e=>e==="unset"||e==="undefined"||e==="none";function th(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(y=>{const b=[],C=y.hFlip,x=y.vFlip;let E=y.rotate;C?x?E+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):x&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let O;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:O=o.height/2+o.top,b.unshift("rotate(90 "+O.toString()+" "+O.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:O=o.width/2+o.left,b.unshift("rotate(-90 "+O.toString()+" "+O.toString()+")");break}E%2===1&&(o.left!==o.top&&(O=o.left,o.left=o.top,o.top=O),o.width!==o.height&&(O=o.width,o.width=o.height,o.height=O)),b.length&&(r=Yp(r,'<g transform="'+b.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=ji(f,a/u)):(c=i==="auto"?a:i,f=l===null?ji(c,u/a):l==="auto"?u:l);const p={},g=(y,b)=>{eh(b)||(p[y]=b.toString())};g("width",c),g("height",f);const m=[o.left,o.top,a,u];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:r}}const nh=/\sid="(\S+)"/g,sh="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let oh=0;function rh(e,t=sh){const n=[];let s;for(;s=nh.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+(oh++).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 ih(e,t){Qo[e]=t}function Zo(e){return Qo[e]||Qo[""]}function Er(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 Tr=Object.create(null),Rn=["https://api.simplesvg.com","https://api.unisvg.com"],xs=[];for(;Rn.length>0;)Rn.length===1||Math.random()>.5?xs.push(Rn.shift()):xs.push(Rn.pop());Tr[""]=Er({resources:["https://api.iconify.design"].concat(xs)});function lh(e,t){const n=Er(t);return n===null?!1:(Tr[e]=n,!0)}function Ar(e){return Tr[e]}const ah=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Bi=ah();function ch(e,t){const n=Ar(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 uh(e){return e===404}const fh=(e,t,n)=>{const s=[],o=ch(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 dh(e){if(typeof e=="string"){const t=Ar(e);if(t)return t.path}return"/"}const ph=(e,t,n)=>{if(!Bi){n("abort",424);return}let s=dh(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;Bi(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(uh(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)})},hh={prepare:fh,send:ph};function gh(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 mh(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 vh=0;function yh(e,t,n){const s=vh++,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 bh(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 _h(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 $=e.resources.slice(0);for(i=[];$.length>1;){const L=Math.floor(Math.random()*$.length);i.push($[L]),$=$.slice(0,L).concat($.slice(L+1))}i=i.concat($)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const l=Date.now();let a="pending",u=0,c,f=null,p=[],g=[];typeof s=="function"&&g.push(s);function m(){f&&(clearTimeout(f),f=null)}function y(){a==="pending"&&(a="aborted"),m(),p.forEach($=>{$.status==="pending"&&($.status="aborted")}),p=[]}function b($,L){L&&(g=[]),typeof $=="function"&&g.push($)}function C(){return{startTime:l,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:b,abort:y}}function x(){a="failed",g.forEach($=>{$(void 0,c)})}function E(){p.forEach($=>{$.status==="pending"&&($.status="aborted")}),p=[]}function O($,L,k){const S=L!=="success";switch(p=p.filter(M=>M!==$),a){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(L==="abort"){c=k,x();return}if(S){c=k,p.length||(i.length?z():x());return}if(m(),E(),!e.random){const M=e.resources.indexOf($.resource);M!==-1&&M!==e.index&&(e.index=M)}a="completed",g.forEach(M=>{M(k)})}function z(){if(a!=="pending")return;m();const $=i.shift();if($===void 0){if(p.length){f=setTimeout(()=>{m(),a==="pending"&&(E(),x())},e.timeout);return}x();return}const L={status:"pending",resource:$,callback:(k,S)=>{O(L,k,S)}};p.push(L),u++,f=setTimeout(z,e.rotate),n($,t,L.callback)}return setTimeout(z),C}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=_h(t,l,a,(f,p)=>{s(),u&&u(f,p)});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 Hi(){}const Ao=Object.create(null);function Ch(e){if(!Ao[e]){const t=Ar(e);if(!t)return;const n=mc(t),s={config:t,redundancy:n};Ao[e]=s}return Ao[e]}function Sh(e,t,n){let s,o;if(typeof e=="string"){const r=Zo(e);if(!r)return n(void 0,424),Hi;o=r.send;const i=Ch(e);i&&(s=i.redundancy)}else{const r=Er(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),Hi):s.query(t,o,n)().abort}function Vi(){}function xh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mh(e)}))}function Eh(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(),xh(e)}function qi(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Th(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)){qi(e.loadIcons(o,s,n),c=>{kn(e,o,c)});return}if(r){o.forEach(c=>{const f=r(c,s,n);qi(f,p=>{const g=p?{prefix:s,icons:{[c]:p}}:null;kn(e,[c],g)})});return}const{valid:i,invalid:l}=Eh(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=>{Sh(n,c,f=>{kn(e,c.icons,f)})})}))}const Ah=(e,t)=>{const n=bh(e,!0,dc()),s=gh(n);if(!s.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(s.loaded,s.missing,s.pending,Vi)}),()=>{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,p=yn(u,c),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(f)||(g.add(f),o[u][c].push(f))}),r.forEach(a=>{const u=o[a.provider][a.prefix];u.length&&Th(a,u)}),t?yh(t,s,r):Vi};function Rh(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 kh=/[\s,]+/;function Oh(e,t){t.split(kh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function $h(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 Ph(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 Ih(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Lh(e){return"data:image/svg+xml,"+Ih(e)}function Mh(e){return'url("'+Lh(e)+'")'}const zi={...hc,inline:!1},Dh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Nh={display:"inline-block"},Xo={backgroundColor:"currentColor"},vc={backgroundColor:"transparent"},Ki={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wi={webkitMask:Xo,mask:Xo,background:vc};for(const e in Wi){const t=Wi[e];for(const n in Ki)t[e+n]=Ki[n]}const Es={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Es[e+"-flip"]=t,Es[e.slice(0,1)+"-flip"]=t,Es[e+"Flip"]=t});function Gi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ji=(e,t)=>{const n=Rh(zi,t),s={...Dh},o=t.mode||"svg",r={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let y in t){const b=t[y];if(b!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[y]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&Oh(n,b);break;case"color":r.color=b;break;case"rotate":typeof b=="string"?n[y]=$h(b):typeof b=="number"&&(n[y]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete s["aria-hidden"];break;default:{const C=Es[y];C?(b===!0||b==="true"||b===1)&&(n[C]=!0):zi[y]===void 0&&(s[y]=b)}}}const a=th(e,n),u=a.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...l},Object.assign(s,u);let y=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),s.innerHTML=rh(a.body,b?()=>b+"ID"+y++:"iconifyVue"),Kt("svg",s)}const{body:c,width:f,height:p}=e,g=o==="mask"||(o==="bg"?!1:c.indexOf("currentColor")!==-1),m=Ph(c,{...u,width:f+"",height:p+""});return s.style={...r,"--svg":Mh(m),width:Gi(u.width),height:Gi(u.height),...Nh,...g?Xo:vc,...l},Kt("span",s)};dc(!0);ih("",hh);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"||!Gp(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;lh(n,o)||console.error(s)}catch{console.error(s)}}}}const Fh={...ao,body:""},Uh=ze((e,{emit:t})=>{const n=J(null);function s(){var u,c;n.value&&((c=(u=n.value).abort)==null||c.call(u),n.value=null)}const o=J(!!e.ssr),r=J(""),i=jl(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=Kp(c);if(!f){const m=n.value;return(!m||m.name!==u)&&(f===null?n.value={name:u}:n.value={name:u,abort:Ah([c],a)}),null}s(),r.value!==u&&(r.value=u,mn(()=>{t("load",u)}));const p=e.customise;if(p){f=Object.assign({},f);const m=p(f.body,c.name,c.prefix,c.provider);typeof m=="string"&&(f.body=m)}const g=["iconify"];return c.prefix!==""&&g.push("iconify--"+c.prefix),c.provider!==""&&g.push("iconify--"+c.provider),{data:f,classes:g}}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():lt(()=>{o.value=!0,a()}),ut(()=>e.icon,a),ns(s),()=>{const u=i.value;if(!u)return Ji(Fh,e);let c=e;return u.classes&&(c={...e,class:u.classes.join(" ")}),Ji({...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"]}),ne=ze({__name:"IconifyIcon",props:{icon:{},className:{}},setup(e){return(t,n)=>(I(),Je(W(Uh),{icon:e.icon,class:re(e.className)},null,8,["icon","class"]))}});function jh(){const e=J(!1),t=J({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 Bh={key:0,class:"dialog-icon"},Hh={class:"dialog-title"},Vh={class:"dialog-message"},qh={class:"dialog-actions"},zh=ze({__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=we(()=>({info:"mdi:information",warning:"mdi:alert",danger:"mdi:alert-circle"})[n.type]),r=we(()=>({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)=>(I(),Je(Zl,{to:"body"},[j(Ia,{name:"fade"},{default:Rt(()=>[e.visible?(I(),N("div",{key:0,class:"confirm-dialog-overlay",onClick:Bt(l,["self"])},[d("div",{class:re(["confirm-dialog",`type-${e.type}`])},[e.showIcon?(I(),N("div",Bh,[j(ne,{icon:o.value},null,8,["icon"])])):ue("",!0),d("h3",Hh,U(e.title),1),d("p",Vh,U(e.message),1),d("div",qh,[e.cancelText?(I(),N("button",{key:0,class:"btn btn-outline",onClick:l},U(e.cancelText),1)):ue("",!0),d("button",{class:re(["btn",r.value]),onClick:i},U(e.confirmText),3)])],2)])):ue("",!0)]),_:1})]))}}),yc=ht(zh,[["__scopeId","data-v-fb0f1871"]]),Kh={class:"setup-wizard"},Wh={class:"wizard-card"},Gh={class:"steps-indicator"},Jh={key:0,class:"wizard-content step-1"},Qh={class:"setting-group"},Zh={class:"setting-label"},Xh={class:"path-input-group"},Yh={key:0,class:"setting-error"},e1={class:"quick-options"},t1=["onClick"],n1={key:1,class:"wizard-content step-2"},s1={class:"setting-group"},o1={class:"setting-label"},r1={class:"wizard-actions"},i1=["disabled"],l1=ze({__name:"SetupWizard",emits:["complete"],setup(e,{emit:t}){const n=t,s=J(1),o=J(""),r=J(""),i=J(3),l=J(!0),a=J(!0),{visible:u,config:c,show:f,handleConfirm:p,handleCancel:g}=jh(),m=we(()=>o.value.trim().length>0&&!r.value);lt(()=>{setTimeout(()=>{a.value=!1},100)});const y=[{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"}],b=()=>{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="路径必须以 / 结尾")}},C=async()=>{await f({title:"路径格式说明",message:"请输入完整的绝对路径(不能使用 ~ 符号),例如:/Users/你的用户名/Downloads/Hayaku/。注意:必须以 / 开头并以 / 结尾",type:"info",confirmText:"我知道了",cancelText:""})},x=()=>{p()},E=()=>{g()},O=async()=>{if(s.value<2&&o.value&&!r.value)try{const L=await Re.validatePath(o.value);if(!L.exists){r.value="目录不存在,请选择有效的目录";return}if(!L.isDirectory){r.value="所选路径不是目录";return}s.value++}catch(L){console.error("验证路径失败:",L),r.value="无法验证目录是否存在"}},z=()=>{s.value>1&&s.value--},$=async()=>{try{await Re.updateSettings({download_path:o.value,concurrent_downloads:i.value.toString(),auto_check_update:l.value?"true":"false"}),n("complete")}catch(L){console.error("保存配置失败:",L),alert("保存配置失败,请重试")}};return(L,k)=>(I(),N("div",Kh,[d("div",{class:re(["white-overlay",{"fade-out":!a.value}])},null,2),d("div",{class:re(["starfield-layer",{visible:!a.value}])},null,2),d("div",{class:re(["glass-blur-layer",{visible:!a.value}])},null,2),k[15]||(k[15]=br('<div class="wizard-background" data-v-38338fc7><div class="gradient-orb orb-1" data-v-38338fc7></div><div class="gradient-orb orb-2" data-v-38338fc7></div><div class="gradient-orb orb-3" data-v-38338fc7></div><div class="gradient-orb orb-4" data-v-38338fc7></div><div class="gradient-orb orb-5" data-v-38338fc7></div><div class="gradient-orb orb-6" data-v-38338fc7></div></div>',1)),d("div",Wh,[k[14]||(k[14]=d("div",{class:"wizard-header"},[d("h1",{class:"wizard-title"},"欢迎使用"),d("p",{class:"wizard-subtitle"},"让我们先进行简单的配置")],-1)),d("div",Gh,[d("div",{class:re(["step",{active:s.value===1}])},[...k[2]||(k[2]=[d("div",{class:"step-circle"},"1",-1),d("span",null,"下载路径",-1)])],2),k[4]||(k[4]=d("div",{class:"step-line"},null,-1)),d("div",{class:re(["step",{active:s.value===2}])},[...k[3]||(k[3]=[d("div",{class:"step-circle"},"2",-1),d("span",null,"偏好设置",-1)])],2)]),s.value===1?(I(),N("div",Jh,[d("div",Qh,[d("label",Zh,[j(ne,{icon:"mdi:folder-download"}),k[5]||(k[5]=de(" 输入默认下载位置 ",-1))]),d("div",Xh,[qt(d("input",{ref:"pathInputRef","onUpdate:modelValue":k[0]||(k[0]=S=>o.value=S),type:"text",class:"path-input",placeholder:"/Users/你的用户名/Downloads/Hayaku/",onInput:b},null,544),[[Ma,o.value]]),d("button",{class:"browse-btn",onClick:C},[j(ne,{icon:"mdi:help-circle"}),k[6]||(k[6]=de(" 帮助 ",-1))])]),k[7]||(k[7]=d("p",{class:"setting-hint"},"请输入完整的绝对路径,不能使用 ~ 符号",-1)),r.value?(I(),N("p",Yh,U(r.value),1)):ue("",!0)]),d("div",e1,[k[8]||(k[8]=d("p",{class:"quick-label"},"快速选择:",-1)),(I(),N(Pe,null,sn(y,S=>d("button",{key:S.value,class:"quick-option",onClick:M=>{o.value=S.value,b()}},[j(ne,{icon:S.icon},null,8,["icon"]),de(" "+U(S.label),1)],8,t1)),64))])])):s.value===2?(I(),N("div",n1,[d("div",s1,[d("label",o1,[j(ne,{icon:"mdi:download-multiple"}),k[9]||(k[9]=de(" 最大并发下载数 ",-1))]),qt(d("select",{"onUpdate:modelValue":k[1]||(k[1]=S=>i.value=S),class:"setting-select"},[...k[10]||(k[10]=[d("option",{value:1},"1个(较慢但稳定)",-1),d("option",{value:3},"3个(推荐)",-1),d("option",{value:5},"5个(快速)",-1)])],512),[[Da,i.value]])])])):ue("",!0),d("div",r1,[s.value>1?(I(),N("button",{key:0,class:"btn btn-secondary",onClick:z},[j(ne,{icon:"mdi:arrow-left"}),k[11]||(k[11]=de(" 上一步 ",-1))])):ue("",!0),s.value<2?(I(),N("button",{key:1,class:"btn btn-primary",onClick:O,disabled:!m.value},[k[12]||(k[12]=de(" 下一步 ",-1)),j(ne,{icon:"mdi:arrow-right"})],8,i1)):(I(),N("button",{key:2,class:"btn btn-primary btn-finish",onClick:$},[j(ne,{icon:"mdi:check"}),k[13]||(k[13]=de(" 完成设置 ",-1))]))])]),j(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:x,onCancel:E},null,8,["visible","title","message","type","confirmText","cancelText"])]))}}),a1=ht(l1,[["__scopeId","data-v-38338fc7"]]),c1={class:"error-card"},u1={class:"error-icon-container"},f1={key:0,class:"error-details"},d1={class:"detail-item"},p1={class:"detail-value"},h1={key:0,class:"detail-item detail-status"},g1={class:"tech-details"},m1={key:0,class:"tech-content"},v1={class:"tech-item"},y1={class:"tech-value"},b1={class:"tech-item"},w1={class:"tech-value"},_1={class:"tech-item"},C1={class:"tech-value"},S1=ze({__name:"ErrorPage",props:{errorMessage:{},errorCode:{},requestUrl:{},statusCode:{}},emits:["retry"],setup(e,{emit:t}){const{isDark:n}=xr(),s=t,o=J(!1),r=()=>{s("retry")},i=l=>l&&l>=500?"status-5xx":"";return(l,a)=>(I(),N("div",{class:re(["error-page",{"light-theme":!W(n)}])},[a[9]||(a[9]=br('<div class="background-layer" data-v-64fa0e06><div class="gradient-orb orb-1" data-v-64fa0e06></div><div class="gradient-orb orb-2" data-v-64fa0e06></div><div class="gradient-orb orb-3" data-v-64fa0e06></div><div class="gradient-orb orb-4" data-v-64fa0e06></div><div class="gradient-orb orb-5" data-v-64fa0e06></div><div class="gradient-orb orb-6" data-v-64fa0e06></div></div><div class="blur-layer" data-v-64fa0e06></div><div class="starfield-layer" data-v-64fa0e06></div>',3)),d("div",c1,[d("div",u1,[j(ne,{icon:"mdi:alert-circle",class:"error-icon"})]),a[7]||(a[7]=d("h1",{class:"error-title"},"无法连接到服务",-1)),a[8]||(a[8]=d("p",{class:"error-description"},"无法与后端服务建立连接,请确保服务已启动",-1)),e.errorMessage?(I(),N("div",f1,[d("div",d1,[a[1]||(a[1]=d("span",{class:"detail-label"},"错误信息:",-1)),d("span",p1,U(e.errorMessage),1)]),e.statusCode?(I(),N("div",h1,[a[2]||(a[2]=d("span",{class:"detail-label"},"HTTP 状态:",-1)),d("span",{class:re(["detail-value status-badge",i(e.statusCode)])},U(e.statusCode),3)])):ue("",!0)])):ue("",!0),d("button",{class:"retry-button",onClick:r},[j(ne,{icon:"mdi:refresh",class:"retry-icon"}),a[3]||(a[3]=de(" 重试连接 ",-1))]),d("div",g1,[d("button",{class:"tech-toggle",onClick:a[0]||(a[0]=u=>o.value=!o.value)},[j(ne,{icon:o.value?"mdi:chevron-up":"mdi:chevron-down",class:"toggle-icon"},null,8,["icon"]),de(" "+U(o.value?"隐藏":"显示")+"技术细节 ",1)]),o.value?(I(),N("div",m1,[d("div",v1,[a[4]||(a[4]=d("span",{class:"tech-label"},"错误代码:",-1)),d("code",y1,U(e.errorCode||"N/A"),1)]),d("div",b1,[a[5]||(a[5]=d("span",{class:"tech-label"},"请求地址:",-1)),d("code",w1,U(e.requestUrl||"N/A"),1)]),d("div",_1,[a[6]||(a[6]=d("span",{class:"tech-label"},"状态码:",-1)),d("code",C1,U(e.statusCode||"N/A"),1)])])):ue("",!0)])])],2))}}),x1=ht(S1,[["__scopeId","data-v-64fa0e06"]]);/**
|
||
* @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 Qi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase()),T1=e=>{const t=E1(e);return t.charAt(0).toUpperCase()+t.slice(1)},A1=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim(),Zi=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 R1=({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})=>Kt("svg",{...On,...a,width:i,height:i,stroke:l,"stroke-width":Zi(n)||Zi(s)||n===!0||s===!0?Number(o||r||On["stroke-width"])*24/Number(i):o||r||On["stroke-width"],class:A1("lucide",a.class,...e?[`lucide-${Qi(T1(e))}-icon`,`lucide-${Qi(e)}`]:["lucide-icon"])},[...t.map(c=>Kt(...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 Mt=(e,t)=>(n,{slots:s,attrs:o})=>Kt(R1,{...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 k1=Mt("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 O1=Mt("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 $1=Mt("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 P1=Mt("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 I1=Mt("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 L1=Mt("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 M1=Mt("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 D1=Mt("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 N1=Mt("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"}]]),F1={id:"app"},U1={key:3,class:"app-layout"},j1={class:"sidebar"},B1={class:"sidebar-nav"},H1={class:"nav-count"},V1={class:"nav-count"},q1={class:"nav-count"},z1={class:"nav-count"},K1={class:"nav-count"},W1={class:"nav-count"},G1={class:"sidebar-footer"},J1={class:"theme-text"},Q1={class:"service-status"},Z1={class:"status-text"},X1={class:"main-content"},Y1=ze({__name:"App",setup(e){const t=J([]),n=J([]),s=J(!1),{theme:o,toggleTheme:r}=xr(),i=J(!0),l=J(!1),a=J(!1),u=J(null),c=()=>{i.value=!1,g()},f=()=>{l.value=!1},p=()=>{a.value=!1,u.value=null,l.value=!1,g()},g=async()=>{try{(await Re.getAllSettings()).download_path?(l.value=!1,a.value=!1):(l.value=!0,a.value=!1)}catch($){console.error("检查设置状态失败:",$);const L=Mp($);L?(u.value=L,a.value=!0,l.value=!1):(l.value=!0,a.value=!1)}},m=we(()=>t.value.length),y=we(()=>t.value.filter($=>$.isInjected).length),b=we(()=>t.value.filter($=>$.needsUpgrade).length),C=we(()=>t.value.filter($=>!$.supported).length),x=we(()=>t.value.filter($=>$.feedUrl&&$.feedUrl.length>0).length),E=we(()=>n.value.filter($=>$.status==="downloading").length),O=async()=>{try{t.value=await Re.getApps(),s.value=!0}catch($){console.error("加载应用列表失败:",$),s.value=!1}},z=async()=>{try{n.value=await Re.getAllDownloads()}catch($){console.error("加载下载列表失败:",$)}};return lt(()=>{O(),z(),setInterval(z,2e3)}),($,L)=>{var M,se,H,le;const k=qr("router-link"),S=qr("router-view");return I(),N("div",F1,[i.value?(I(),Je(Up,{key:0,onComplete:c})):a.value?(I(),Je(x1,{key:1,onRetry:p,"error-message":(M=u.value)==null?void 0:M.message,"error-code":(se=u.value)==null?void 0:se.code,"request-url":(H=u.value)==null?void 0:H.requestUrl,"status-code":(le=u.value)==null?void 0:le.statusCode},null,8,["error-message","error-code","request-url","status-code"])):l.value?(I(),Je(a1,{key:2,onComplete:f})):(I(),N("div",U1,[d("aside",j1,[L[7]||(L[7]=d("div",{class:"sidebar-header"},[d("h1",{class:"app-title"},"QiuChenly"),d("p",{class:"app-subtitle"},"应用商店 - 预览测试版 0.1b")],-1)),d("nav",B1,[j(k,{to:"/",class:re(["nav-item",{active:$.$route.path==="/"&&!$.$route.query.filter}])},{default:Rt(()=>[j(W(P1),{class:"nav-icon"}),L[1]||(L[1]=d("span",{class:"nav-text"},"所有应用",-1)),d("span",H1,U(m.value),1)]),_:1},8,["class"]),j(k,{to:"/?filter=injected",class:re(["nav-item",{active:$.$route.query.filter==="injected"}])},{default:Rt(()=>[j(W(k1),{class:"nav-icon"}),L[2]||(L[2]=d("span",{class:"nav-text"},"已注入",-1)),d("span",V1,U(y.value),1)]),_:1},8,["class"]),j(k,{to:"/?filter=update",class:re(["nav-item",{active:$.$route.query.filter==="update"}])},{default:Rt(()=>[j(W(M1),{class:"nav-icon"}),L[3]||(L[3]=d("span",{class:"nav-text"},"可更新",-1)),d("span",q1,U(b.value),1)]),_:1},8,["class"]),j(k,{to:"/?filter=unsupported",class:re(["nav-item",{active:$.$route.query.filter==="unsupported"}])},{default:Rt(()=>[j(W(O1),{class:"nav-icon"}),L[4]||(L[4]=d("span",{class:"nav-text"},"不支持",-1)),d("span",z1,U(C.value),1)]),_:1},8,["class"]),j(k,{to:"/?filter=store",class:re(["nav-item",{active:$.$route.query.filter==="store"}])},{default:Rt(()=>[j(W(D1),{class:"nav-icon"}),L[5]||(L[5]=d("span",{class:"nav-text"},"商店",-1)),d("span",K1,U(x.value),1)]),_:1},8,["class"]),j(k,{to:"/downloads",class:re(["nav-item",{active:$.$route.path==="/downloads"}])},{default:Rt(()=>[j(W($1),{class:"nav-icon"}),L[6]||(L[6]=d("span",{class:"nav-text"},"下载管理",-1)),d("span",W1,U(E.value),1)]),_:1},8,["class"])]),d("div",G1,[d("button",{onClick:L[0]||(L[0]=(...ae)=>W(r)&&W(r)(...ae)),class:"theme-toggle"},[(I(),Je(Nu(W(o)==="auto"?W(I1):W(o)==="dark"?W(L1):W(N1)),{class:"theme-icon"})),d("span",J1,U(W(o)==="auto"?"自动":W(o)==="dark"?"暗色":"浅色"),1)]),d("div",Q1,[d("div",{class:re(["status-indicator",{online:s.value}])},null,2),d("span",Z1,U(s.value?"服务在线":"服务离线"),1)])])]),d("main",X1,[j(S)])]))])}}}),eg=ht(Y1,[["__scopeId","data-v-8e0adf81"]]);/*!
|
||
* vue-router v4.5.1
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const cn=typeof document<"u";function bc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bc(e.default)}const ve=Object.assign;function Ro(e,t){const n={};for(const s in t){const o=t[s];n[s]=dt(o)?o.map(e):e(o)}return n}const Bn=()=>{},dt=Array.isArray,wc=/#/g,ng=/&/g,sg=/\//g,og=/=/g,rg=/\?/g,_c=/\+/g,ig=/%5B/g,lg=/%5D/g,Cc=/%5E/g,ag=/%60/g,Sc=/%7B/g,cg=/%7C/g,xc=/%7D/g,ug=/%20/g;function Rr(e){return encodeURI(""+e).replace(cg,"|").replace(ig,"[").replace(lg,"]")}function fg(e){return Rr(e).replace(Sc,"{").replace(xc,"}").replace(Cc,"^")}function Yo(e){return Rr(e).replace(_c,"%2B").replace(ug,"+").replace(wc,"%23").replace(ng,"%26").replace(ag,"`").replace(Sc,"{").replace(xc,"}").replace(Cc,"^")}function dg(e){return Yo(e).replace(og,"%3D")}function pg(e){return Rr(e).replace(wc,"%23").replace(rg,"%3F")}function hg(e){return e==null?"":pg(e).replace(sg,"%2F")}function Zn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const gg=/\/$/,mg=e=>e.replace(gg,"");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 vg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yg(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(!bg(e[n],t[n]))return!1;return!0}function bg(e,t){return dt(e)?Yi(e,t):dt(t)?Yi(t,e):e===t}function Yi(e,t){return dt(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 Nt={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 _g(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mg(e)}const Cg=/^[^#]+#/;function Sg(e,t){return e.replace(Cg,"#")+t}function xg(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 Eg(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=xg(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 el(e,t){return(history.state?history.state.position-t:-1)+e}const er=new Map;function Tg(e,t){er.set(e,t)}function Ag(e){const t=er.get(e);return er.delete(e),t}let Rg=()=>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),Xi(a,"")}return Xi(n,e)+s+o}function kg(e,t,n,s){let o=[],r=[],i=null;const l=({state:p})=>{const g=Tc(e,location),m=n.value,y=t.value;let b=0;if(p){if(n.value=g,t.value=p,i&&i===m){i=null;return}b=y?p.position-y.position:0}else s(g);o.forEach(C=>{C(n.value,m,{delta:b,type:Xn.pop,direction:b?b>0?Hn.forward:Hn.back:Hn.unknown})})};function a(){i=n.value}function u(p){o.push(p);const g=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return r.push(g),g}function c(){const{history:p}=window;p.state&&p.replaceState(ve({},p.state,{scroll:co()}),"")}function f(){for(const p of r)p();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 tl(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 Og(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("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Rg()+e+a;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(g){console.error(g),n[c?"replace":"assign"](p)}}function i(a,u){const c=ve({},t.state,tl(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=ve({},o.value,t.state,{forward:a,scroll:co()});r(c.current,c,!0);const f=ve({},tl(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 $g(e){e=_g(e);const t=Og(e),n=kg(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=ve({location:"",base:e,go:s,createHref:Sg.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 Pg(e){return typeof e=="string"||e&&typeof e=="object"}function Ac(e){return typeof e=="string"||typeof e=="symbol"}const Rc=Symbol("");var nl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(nl||(nl={}));function wn(e,t){return ve(new Error,{type:e,[Rc]:!0},t)}function Tt(e,t){return e instanceof Error&&Rc in e&&(t==null||!!(e.type&t))}const sl="[^/]+?",Ig={sensitive:!1,strict:!1,start:!0,end:!0},Lg=/[.+*?^${}()[\]/\\]/g;function Mg(e,t){const n=ve({},Ig,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 p=u[f];let g=40+(n.sensitive?.25:0);if(p.type===0)f||(o+="/"),o+=p.value.replace(Lg,"\\$&"),g+=40;else if(p.type===1){const{value:m,repeatable:y,optional:b,regexp:C}=p;r.push({name:m,repeatable:y,optional:b});const x=C||sl;if(x!==sl){g+=10;try{new RegExp(`(${x})`)}catch(O){throw new Error(`Invalid custom RegExp for param "${m}" (${x}): `+O.message)}}let E=y?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;f||(E=b&&u.length<2?`(?:/${E})`:"/"+E),b&&(E+="?"),o+=E,g+=20,b&&(g+=-8),y&&(g+=-20),x===".*"&&(g+=-50)}c.push(g)}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 p=1;p<c.length;p++){const g=c[p]||"",m=r[p-1];f[m.name]=g&&m.repeatable?g.split("/"):g}return f}function a(u){let c="",f=!1;for(const p of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const g of p)if(g.type===0)c+=g.value;else if(g.type===1){const{value:m,repeatable:y,optional:b}=g,C=m in u?u[m]:"";if(dt(C)&&!y)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const x=dt(C)?C.join("/"):C;if(!x)if(b)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);c+=x}}return c||"/"}return{re:i,score:s,keys:r,parse:l,stringify:a}}function Dg(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=Dg(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(ol(s))return 1;if(ol(o))return-1}return o.length-s.length}function ol(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ng={type:0,value:""},Fg=/[a-zA-Z0-9_]/;function Ug(e){if(!e)return[[]];if(e==="/")return[[Ng]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const 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 p(){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):p();break;case 4:p(),n=s;break;case 1:a==="("?n=2:Fg.test(a)?p():(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 jg(e,t,n){const s=Mg(Ug(e.path),n),o=ve(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Bg(e,t){const n=[],s=new Map;t=al({strict:!1,end:!0,sensitive:!1},t);function o(f){return s.get(f)}function r(f,p,g){const m=!g,y=il(f);y.aliasOf=g&&g.record;const b=al(t,f),C=[y];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const z of O)C.push(il(ve({},y,{components:g?g.record.components:y.components,path:z,aliasOf:g?g.record:y})))}let x,E;for(const O of C){const{path:z}=O;if(p&&z[0]!=="/"){const $=p.record.path,L=$[$.length-1]==="/"?"":"/";O.path=p.record.path+(z&&L+z)}if(x=jg(O,p,b),g?g.alias.push(x):(E=E||x,E!==x&&E.alias.push(x),m&&f.name&&!ll(x)&&i(f.name)),Oc(x)&&a(x),y.children){const $=y.children;for(let L=0;L<$.length;L++)r($[L],x,g&&g.children[L])}g=g||x}return E?()=>{i(E)}:Bn}function i(f){if(Ac(f)){const p=s.get(f);p&&(s.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,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 p=qg(f,n);n.splice(p,0,f),f.record.name&&!ll(f)&&s.set(f.record.name,f)}function u(f,p){let g,m={},y,b;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw wn(1,{location:f});b=g.record.name,m=ve(rl(p.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&rl(f.params,g.keys.map(E=>E.name))),y=g.stringify(m)}else if(f.path!=null)y=f.path,g=n.find(E=>E.re.test(y)),g&&(m=g.parse(y),b=g.record.name);else{if(g=p.name?s.get(p.name):n.find(E=>E.re.test(p.path)),!g)throw wn(1,{location:f,currentLocation:p});b=g.record.name,m=ve({},p.params,f.params),y=g.stringify(m)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:b,path:y,params:m,matched:C,meta:Vg(C)}}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 rl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function il(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Hg(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 Hg(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 ll(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vg(e){return e.reduce((t,n)=>ve(t,n.meta),{})}function al(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function qg(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=zg(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function zg(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 Kg(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<s.length;++o){const r=s[o].replace(_c," "),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];dt(u)||(u=t[l]=[u]),u.push(a)}else t[l]=a}return t}function cl(e){let t="";for(let n in e){const s=e[n];if(n=dg(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(dt(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 Wg(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=dt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Gg=Symbol(""),ul=Symbol(""),uo=Symbol(""),kr=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 jt(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const u=p=>{p===!1?a(wn(4,{from:n,to:t})):p instanceof Error?a(p):Pg(p)?a(wn(2,{from:t,to:p})):(i&&s.enterCallbacks[o]===i&&typeof p=="function"&&i.push(p),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(p=>a(p))})}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(jt(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=tg(c)?c.default:c;i.mods[l]=c,i.components[l]=f;const g=(f.__vccOpts||f)[t];return g&&jt(g,n,s,i,l,o)()}))}}return r}function fl(e){const t=ct(uo),n=ct(kr),s=we(()=>{const a=W(e.to);return t.resolve(a)}),o=we(()=>{const{matched:a}=s.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const p=f.findIndex(bn.bind(null,c));if(p>-1)return p;const g=dl(a[u-2]);return u>1&&dl(c)===g&&f[f.length-1].path!==g?f.findIndex(bn.bind(null,a[u-2])):p}),r=we(()=>o.value>-1&&Yg(n.params,s.value.params)),i=we(()=>o.value>-1&&o.value===n.matched.length-1&&Ec(n.params,s.value.params));function l(a={}){if(Xg(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:we(()=>s.value.href),isActive:r,isExactActive:i,navigate:l}}function Jg(e){return e.length===1?e[0]:e}const Qg=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:fl,setup(e,{slots:t}){const n=Js(fl(e)),{options:s}=ct(uo),o=we(()=>({[pl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[pl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Jg(t.default(n));return e.custom?r:Kt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Zg=Qg;function Xg(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 Yg(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(!dt(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function dl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pl=(e,t,n)=>e??t??n,em=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ct(tr),o=we(()=>e.route||s.value),r=ct(ul,0),i=we(()=>{let u=W(r);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=we(()=>o.value.matched[i.value]);ms(ul,we(()=>i.value+1)),ms(Gg,l),ms(tr,o);const a=J();return ut(()=>[a.value,l.value,e.name],([u,c,f],[p,g,m])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!bn(c,g)||!p)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=l.value,p=f&&f.components[c];if(!p)return hl(n.default,{Component:p,route:u});const g=f.props[c],m=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Kt(p,ve({},m,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return hl(n.default,{Component:b,route:u})||b}}});function hl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const tm=em;function nm(e){const t=Bg(e.routes,e),n=e.parseQuery||Kg,s=e.stringifyQuery||cl,o=e.history,r=$n(),i=$n(),l=$n(),a=jl(Nt);let u=Nt;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ro.bind(null,T=>""+T),f=Ro.bind(null,hg),p=Ro.bind(null,Zn);function g(T,G){let q,X;return Ac(T)?(q=t.getRecordMatcher(T),X=G):X=T,t.addRoute(X,q)}function m(T){const G=t.getRecordMatcher(T);G&&t.removeRoute(G)}function y(){return t.getRoutes().map(T=>T.record)}function b(T){return!!t.getRecordMatcher(T)}function C(T,G){if(G=ve({},G||a.value),typeof T=="string"){const w=ko(n,T,G.path),R=t.resolve({path:w.path},G),P=o.createHref(w.fullPath);return ve(w,R,{params:p(R.params),hash:Zn(w.hash),redirectedFrom:void 0,href:P})}let q;if(T.path!=null)q=ve({},T,{path:ko(n,T.path,G.path).path});else{const w=ve({},T.params);for(const R in w)w[R]==null&&delete w[R];q=ve({},T,{params:f(w)}),G.params=f(G.params)}const X=t.resolve(q,G),Se=T.hash||"";X.params=c(p(X.params));const h=vg(s,ve({},T,{hash:fg(Se),path:X.path})),v=o.createHref(h);return ve({fullPath:h,hash:Se,query:s===cl?Wg(T.query):T.query||{}},X,{redirectedFrom:void 0,href:v})}function x(T){return typeof T=="string"?ko(n,T,a.value.path):ve({},T)}function E(T,G){if(u!==T)return wn(8,{from:G,to:T})}function O(T){return L(T)}function z(T){return O(ve(x(T),{replace:!0}))}function $(T){const G=T.matched[T.matched.length-1];if(G&&G.redirect){const{redirect:q}=G;let X=typeof q=="function"?q(T):q;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=x(X):{path:X},X.params={}),ve({query:T.query,hash:T.hash,params:X.path!=null?{}:T.params},X)}}function L(T,G){const q=u=C(T),X=a.value,Se=T.state,h=T.force,v=T.replace===!0,w=$(q);if(w)return L(ve(x(w),{state:typeof w=="object"?ve({},Se,w.state):Se,force:h,replace:v}),G||q);const R=q;R.redirectedFrom=G;let P;return!h&&yg(s,X,q)&&(P=wn(16,{to:R,from:X}),Ce(X,X,!0,!1)),(P?Promise.resolve(P):M(R,X)).catch(A=>Tt(A)?Tt(A,2)?A:me(A):Z(A,R,X)).then(A=>{if(A){if(Tt(A,2))return L(ve({replace:v},x(A.to),{state:typeof A.to=="object"?ve({},Se,A.to.state):Se,force:h}),G||R)}else A=H(R,X,!0,v,Se);return se(R,X,A),A})}function k(T,G){const q=E(T,G);return q?Promise.reject(q):Promise.resolve()}function S(T){const G=Ye.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(T):T()}function M(T,G){let q;const[X,Se,h]=sm(T,G);q=Oo(X.reverse(),"beforeRouteLeave",T,G);for(const w of X)w.leaveGuards.forEach(R=>{q.push(jt(R,T,G))});const v=k.bind(null,T,G);return q.push(v),je(q).then(()=>{q=[];for(const w of r.list())q.push(jt(w,T,G));return q.push(v),je(q)}).then(()=>{q=Oo(Se,"beforeRouteUpdate",T,G);for(const w of Se)w.updateGuards.forEach(R=>{q.push(jt(R,T,G))});return q.push(v),je(q)}).then(()=>{q=[];for(const w of h)if(w.beforeEnter)if(dt(w.beforeEnter))for(const R of w.beforeEnter)q.push(jt(R,T,G));else q.push(jt(w.beforeEnter,T,G));return q.push(v),je(q)}).then(()=>(T.matched.forEach(w=>w.enterCallbacks={}),q=Oo(h,"beforeRouteEnter",T,G,S),q.push(v),je(q))).then(()=>{q=[];for(const w of i.list())q.push(jt(w,T,G));return q.push(v),je(q)}).catch(w=>Tt(w,8)?w:Promise.reject(w))}function se(T,G,q){l.list().forEach(X=>S(()=>X(T,G,q)))}function H(T,G,q,X,Se){const h=E(T,G);if(h)return h;const v=G===Nt,w=cn?history.state:{};q&&(X||v?o.replace(T.fullPath,ve({scroll:v&&w&&w.scroll},Se)):o.push(T.fullPath,Se)),a.value=T,Ce(T,G,q,v),me()}let le;function ae(){le||(le=o.listen((T,G,q)=>{if(!st.listening)return;const X=C(T),Se=$(X);if(Se){L(ve(Se,{replace:!0,force:!0}),X).catch(Bn);return}u=X;const h=a.value;cn&&Tg(el(h.fullPath,q.delta),co()),M(X,h).catch(v=>Tt(v,12)?v:Tt(v,2)?(L(ve(x(v.to),{force:!0}),X).then(w=>{Tt(w,20)&&!q.delta&&q.type===Xn.pop&&o.go(-1,!1)}).catch(Bn),Promise.reject()):(q.delta&&o.go(-q.delta,!1),Z(v,X,h))).then(v=>{v=v||H(X,h,!1),v&&(q.delta&&!Tt(v,8)?o.go(-q.delta,!1):q.type===Xn.pop&&Tt(v,20)&&o.go(-1,!1)),se(X,h,v)}).catch(Bn)}))}let Ae=$n(),fe=$n(),he;function Z(T,G,q){me(T);const X=fe.list();return X.length?X.forEach(Se=>Se(T,G,q)):console.error(T),Promise.reject(T)}function Q(){return he&&a.value!==Nt?Promise.resolve():new Promise((T,G)=>{Ae.add([T,G])})}function me(T){return he||(he=!T,ae(),Ae.list().forEach(([G,q])=>T?q(T):G()),Ae.reset()),T}function Ce(T,G,q,X){const{scrollBehavior:Se}=e;if(!cn||!Se)return Promise.resolve();const h=!q&&Ag(el(T.fullPath,0))||(X||!q)&&history.state&&history.state.scroll||null;return mn().then(()=>Se(T,G,h)).then(v=>v&&Eg(v)).catch(v=>Z(v,T,G))}const ke=T=>o.go(T);let Xe;const Ye=new Set,st={currentRoute:a,listening:!0,addRoute:g,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:y,resolve:C,options:e,push:O,replace:z,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:fe.add,isReady:Q,install(T){const G=this;T.component("RouterLink",Zg),T.component("RouterView",tm),T.config.globalProperties.$router=G,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>W(a)}),cn&&!Xe&&a.value===Nt&&(Xe=!0,O(o.location).catch(Se=>{}));const q={};for(const Se in Nt)Object.defineProperty(q,Se,{get:()=>a.value[Se],enumerable:!0});T.provide(uo,G),T.provide(kr,Fl(q)),T.provide(tr,a);const X=T.unmount;Ye.add(T),T.unmount=function(){Ye.delete(T),Ye.size<1&&(u=Nt,le&&le(),le=null,a.value=Nt,Xe=!1,he=!1),X()}}};function je(T){return T.reduce((G,q)=>G.then(()=>S(q)),Promise.resolve())}return st}function sm(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 ct(uo)}function Pc(e){return ct(kr)}const om={class:"modal-header"},rm={class:"modal-title"},im={class:"modal-body"},lm={class:"log-time"},am={class:"log-message"},cm={key:0,class:"log-line loading"},um={class:"modal-footer"},fm={class:"footer-status"},dm={key:0,class:"status-success"},pm={key:1,class:"status-error"},hm={key:2,class:"status-loading"},gm={class:"footer-actions"},mm=ze({__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=J(null),r=()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)};ut(()=>n.logs,async()=>{await mn(),r()},{deep:!0,flush:"post"}),ut(()=>n.loading,async()=>{await mn(),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)=>(I(),Je(Zl,{to:"body"},[j(Ia,{name:"modal"},{default:Rt(()=>[e.visible?(I(),N("div",{key:0,class:"modal-overlay",onClick:u},[d("div",{class:"modal-container",onClick:f[0]||(f[0]=Bt(()=>{},["stop"]))},[d("div",om,[d("h2",rm,[j(ne,{icon:i(),class:"modal-icon"},null,8,["icon"]),de(" "+U(e.title),1)]),e.canClose?(I(),N("button",{key:0,onClick:a,class:"modal-close","aria-label":"关闭"},[j(ne,{icon:"mdi:close"})])):ue("",!0)]),d("div",im,[d("div",{ref_key:"logContainer",ref:o,class:"log-container"},[(I(!0),N(Pe,null,sn(e.logs,(p,g)=>(I(),N("div",{key:g,class:re(["log-line",l(p)])},[d("span",lm,U(p.time),1),d("span",am,U(p.message),1)],2))),128)),e.loading?(I(),N("div",cm,[...f[1]||(f[1]=[d("div",{class:"spinner-small"},null,-1),d("span",{class:"log-message"},"处理中...",-1)])])):ue("",!0)],512)]),d("div",um,[d("div",fm,[e.status==="success"?(I(),N("span",dm,[j(ne,{icon:"mdi:check-circle"}),f[2]||(f[2]=de(" 操作成功 ",-1))])):e.status==="error"?(I(),N("span",pm,[j(ne,{icon:"mdi:alert-circle"}),f[3]||(f[3]=de(" 操作失败 ",-1))])):e.loading?(I(),N("span",hm,[...f[4]||(f[4]=[d("div",{class:"spinner-small"},null,-1),de(" 处理中... ",-1)])])):ue("",!0)]),d("div",gm,[e.canClose?(I(),N("button",{key:0,onClick:a,class:"btn btn-outline"}," 关闭 ")):ue("",!0)])])])])):ue("",!0)]),_:1})]))}}),Ic=ht(mm,[["__scopeId","data-v-5ca72b91"]]);function vm(){const e=J(!1),t=J(""),n=J([]),s=J("idle");return{modalVisible:e,modalTitle:t,logs:n,modalStatus:s,addLog:(u,c="info")=>{const f=new Date,p=`${f.getHours().toString().padStart(2,"0")}:${f.getMinutes().toString().padStart(2,"0")}:${f.getSeconds().toString().padStart(2,"0")}`;n.value.push({time:p,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=J(!1),{onRefresh:n}=e,{modalVisible:s,modalTitle:o,logs:r,modalStatus:i,addLog:l,showModal:a,hideModal:u,setSuccess:c,setError:f}=vm();return{updating:t,modalVisible:s,modalTitle:o,logs:r,modalStatus:i,handleUpdate:async m=>{t.value=!0,a(m.isInjected?"更新应用":"注入应用"),l(`开始处理应用: ${m.name}`),l(`Bundle ID: ${m.bundleId}`),l(`当前版本: ${m.version}`);try{l("正在连接到服务器...");const y=await Re.updateApp(m.bundleId);y.logs&&y.logs.length>0&&y.logs.forEach(b=>{l(b,"info")}),y.success?(l("操作成功完成!","success"),c(),l("正在刷新应用状态..."),await n(),l("应用状态已更新","success")):(l(`操作失败: ${y.message}`,"error"),f())}catch(y){console.error("更新应用失败:",y),l(`网络错误: ${y}`,"error"),f()}finally{t.value=!1}},handleReinstall:async()=>{console.log("重新安装功能待实现")},hideModal:u}}const ym={class:"app-icon"},bm=["src","alt"],wm={key:0,class:"icon-loading"},_m={class:"app-info"},Cm={class:"app-name"},Sm={class:"app-version"},xm={key:0,class:"latest-version"},Em={class:"app-status"},Tm={class:"app-actions"},Am=["disabled"],Rm=["disabled"],km=["disabled"],Om=["disabled"],$m={key:2,class:"unsupported-section"},Pm={key:0,class:"supported-versions"},Im=["disabled"],Lm=ze({__name:"AppCard",props:{app:{},inStoreMode:{type:Boolean,default:!1}},emits:["updated","openVersionDialog"],setup(e,{emit:t}){const n=e,s=t,o=$c(),r=J({...n.app}),i=J(!0),l=J(!1),a=J(!1),u=J(!1),c=J(!1),f=J(""),{updating:p,modalVisible:g,modalTitle:m,logs:y,modalStatus:b,handleUpdate:C,handleReinstall:x,hideModal:E}=Lc({onRefresh:async()=>{try{const ae=await Re.getApp(n.app.bundleId);r.value=ae,s("updated",n.app.bundleId)}catch(ae){throw console.error("刷新应用状态失败:",ae),ae}}});ut(()=>n.app,ae=>{p.value||(r.value={...ae})},{deep:!0});const O=()=>Re.getAppIconUrl(n.app.bundleId),z=()=>r.value.supported?r.value.isInjected?"status-injected":r.value.needsUpgrade?"status-update":"status-supported":"status-unsupported",$=()=>r.value.supported?r.value.isInjected?"已注入":r.value.needsUpgrade?"可更新":"支持":"不支持",L=()=>{o.push(`/app/${n.app.bundleId}`)},k=()=>{C(r.value)},S=()=>{s("openVersionDialog",r.value)},M=async()=>{if(n.inStoreMode){u.value=!0;try{const ae=await Re.checkAppUpdate(n.app.bundleId);ae?(c.value=!0,f.value=ae):c.value=!1}catch(ae){console.error("检查更新失败:",ae),c.value=!1}finally{u.value=!1}}},se=()=>u.value?"badge-checking":c.value?"badge-update":"badge-download";lt(()=>{n.inStoreMode&&n.app.feedUrl&&M()});const H=()=>{i.value=!1,l.value=!0,a.value=!1},le=()=>{i.value=!1,l.value=!1,a.value=!0};return(ae,Ae)=>(I(),N("div",{class:"app-card card",onClick:L},[e.inStoreMode?(I(),N("div",{key:0,class:re(["store-badge",se()])},[u.value?(I(),Je(ne,{key:0,icon:"mdi:loading",class:"badge-icon"})):c.value?(I(),Je(ne,{key:1,icon:"mdi:arrow-up-bold",class:"badge-icon"})):(I(),Je(ne,{key:2,icon:"mdi:download",class:"badge-icon"}))],2)):ue("",!0),d("div",ym,[qt(d("img",{src:O(),alt:r.value.name,onLoad:H,onError:le},null,40,bm),[[Ns,l.value]]),i.value?(I(),N("div",wm,[...Ae[1]||(Ae[1]=[d("div",{class:"spinner"},null,-1)])])):ue("",!0),qt(d("div",{class:"icon-placeholder"},U(r.value.name.charAt(0).toUpperCase()),513),[[Ns,a.value]])]),d("div",_m,[d("h3",Cm,U(r.value.name),1),d("p",Sm,"版本: "+U(r.value.version),1),r.value.latestVersion&&r.value.latestVersion!==r.value.version?(I(),N("p",xm," 最新版本: "+U(r.value.latestVersion),1)):ue("",!0)]),d("div",Em,[d("span",{class:re(["status-badge",z()])},U($()),3)]),d("div",Tm,[e.inStoreMode?(I(),N(Pe,{key:0},[c.value?(I(),N("button",{key:0,class:"btn btn-warning",onClick:Bt(S,["stop"]),disabled:u.value},[j(ne,{icon:"mdi:update",class:"btn-icon"}),de(" "+U(u.value?"检查中...":"更新"),1)],8,Am)):(I(),N("button",{key:1,class:"btn btn-secondary",onClick:Bt(S,["stop"]),disabled:u.value},[j(ne,{icon:"mdi:download",class:"btn-icon"}),de(" "+U(u.value?"检查中...":"重新安装"),1)],8,Rm))],64)):(I(),N(Pe,{key:1},[r.value.needsUpgrade&&r.value.supported?(I(),N("button",{key:0,class:"btn btn-warning",onClick:Bt(k,["stop"]),disabled:W(p)},[j(ne,{icon:"mdi:update",class:"btn-icon"}),de(" "+U(W(p)?"更新中...":"更新"),1)],8,km)):!r.value.isInjected&&r.value.supported?(I(),N("button",{key:1,class:"btn btn-success",onClick:Bt(k,["stop"]),disabled:W(p)},[j(ne,{icon:"mdi:download",class:"btn-icon"}),de(" "+U(W(p)?"处理中...":"注入"),1)],8,Om)):r.value.supported?(I(),N("button",{key:3,class:"btn btn-secondary",onClick:Ae[0]||(Ae[0]=Bt((...fe)=>W(x)&&W(x)(...fe),["stop"])),disabled:W(p)},[j(ne,{icon:"mdi:refresh",class:"btn-icon"}),de(" "+U(W(p)?"处理中...":"重新安装"),1)],8,Im)):(I(),N("div",$m,[Ae[2]||(Ae[2]=d("span",{class:"unsupported-text"},"不支持此版本",-1)),r.value.supportVersion&&r.value.supportVersion.length>0?(I(),N("span",Pm," 支持版本: "+U(r.value.supportVersion.join(", ")),1)):ue("",!0)]))],64))]),j(Ic,{visible:W(g),title:W(m),logs:W(y),loading:W(p),status:W(b),"can-close":W(b)!=="loading",onClose:W(E)},null,8,["visible","title","logs","loading","status","can-close","onClose"])]))}}),Mm=ht(Lm,[["__scopeId","data-v-7051324a"]]),Dm={class:"dialog-header"},Nm={class:"dialog-title"},Fm={class:"dialog-content"},Um={key:0,class:"loading"},jm={key:1,class:"error"},Bm={key:2,class:"empty"},Hm={key:3},Vm={class:"version-filters"},qm={class:"versions-list"},zm={class:"version-info"},Km={class:"version-number-wrapper"},Wm={key:0,class:"version-tag beta-tag"},Gm={key:1,class:"version-tag release-tag"},Jm={class:"version-number"},Qm={key:0,class:"version-full"},Zm=["onClick","disabled"],Xm={key:1,class:"spinner-small"},Ym=ze({__name:"VersionSelectorDialog",props:{visible:{type:Boolean},app:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=J([]),r=J(!1),i=J(""),l=J([]),a=J("all"),u=async()=>{if(!(!n.app||!n.app.feedUrl)){r.value=!0,i.value="";try{const m=await Re.getAppVersions(n.app.bundleId);o.value=m.sort((y,b)=>{const C=y.version.split(".").map(Number),x=b.version.split(".").map(Number),E=Math.max(C.length,x.length);for(let O=0;O<E;O++){const z=C[O]||0,$=x[O]||0;if($!==z)return $-z}return 0})}catch(m){console.error("加载版本列表失败:",m),i.value="加载版本列表失败"}finally{r.value=!1}}},c=we(()=>a.value==="all"?o.value:a.value==="release"?o.value.filter(m=>!m.beta):o.value.filter(m=>m.beta)),f=async(m,y)=>{if(!m.url){console.error("版本URL为空");return}l.value.push(y);try{await Re.startDownload(m.url),console.log("下载已启动:",m.version),setTimeout(()=>{p()},1e3)}catch(b){console.error("启动下载失败:",b),l.value=l.value.filter(C=>C!==y)}},p=()=>{s("close")},g=m=>{m.target===m.currentTarget&&p()};return ut(()=>n.visible,m=>{m&&u()}),lt(()=>{n.visible&&u()}),(m,y)=>e.visible&&e.app?(I(),N("div",{key:0,class:"dialog-overlay",onClick:g},[d("div",{class:"dialog-container",onClick:y[3]||(y[3]=Bt(()=>{},["stop"]))},[d("div",Dm,[d("h2",Nm,U(e.app.name),1),d("button",{class:"dialog-close",onClick:p},[j(ne,{icon:"mdi:close"})])]),d("div",Fm,[r.value?(I(),N("div",Um,[...y[4]||(y[4]=[d("div",{class:"spinner"},null,-1),d("p",null,"正在加载版本列表...",-1)])])):i.value?(I(),N("div",jm,[j(ne,{icon:"mdi:alert-circle",class:"error-icon"}),d("p",null,U(i.value),1),d("button",{onClick:u,class:"btn btn-secondary"},[j(ne,{icon:"mdi:reload",class:"btn-icon"}),y[5]||(y[5]=de(" 重试 ",-1))])])):o.value.length===0?(I(),N("div",Bm,[j(ne,{icon:"mdi:package-variant",class:"empty-icon"}),y[6]||(y[6]=d("p",null,"暂无可用版本",-1))])):(I(),N("div",Hm,[d("div",Vm,[d("button",{class:re(["filter-btn",{active:a.value==="all"}]),onClick:y[0]||(y[0]=b=>a.value="all")}," 全部 ",2),d("button",{class:re(["filter-btn",{active:a.value==="release"}]),onClick:y[1]||(y[1]=b=>a.value="release")}," 正式版 ",2),d("button",{class:re(["filter-btn",{active:a.value==="beta"}]),onClick:y[2]||(y[2]=b=>a.value="beta")}," 测试版 ",2)]),d("div",qm,[(I(!0),N(Pe,null,sn(c.value,(b,C)=>(I(),N("div",{key:C,class:re(["version-item",{downloading:l.value.includes(C)}])},[d("div",zm,[d("div",Km,[b.beta?(I(),N("span",Wm,"测试版")):(I(),N("span",Gm,"正式版")),d("span",Jm,U(b.version),1)]),b.fullVersion?(I(),N("span",Qm," ("+U(b.fullVersion)+") ",1)):ue("",!0)]),d("button",{class:"btn btn-primary btn-sm",onClick:x=>f(b,C),disabled:l.value.includes(C)},[l.value.includes(C)?(I(),N("div",Xm)):(I(),Je(ne,{key:0,icon:"mdi:download",class:"btn-icon"})),de(" "+U(l.value.includes(C)?"下载中...":"下载"),1)],8,Zm)],2))),128))])]))]),d("div",{class:"dialog-footer"},[d("button",{class:"btn btn-secondary",onClick:p},"关闭")])])])):ue("",!0)}}),e0=ht(Ym,[["__scopeId","data-v-26098159"]]),t0={class:"app-list"},n0={class:"list-header"},s0={class:"header-content"},o0={class:"page-description"},r0={class:"list-controls"},i0={class:"search-container"},l0={key:0,class:"loading"},a0={key:1,class:"error"},c0={key:2,class:"empty"},u0={key:3,class:"apps-grid grid grid-3"},f0={class:"list-footer"},d0={class:"footer-stats"},p0={class:"stat-item"},h0={class:"stat-value"},g0={class:"stat-item"},m0={class:"stat-value"},v0=ze({__name:"AppList",setup(e){const t=Pc(),n=J([]),s=J(!0),o=J(""),r=J(""),i=J("name"),l=J(!1),a=J(null),u=we(()=>{let y=n.value;if(r.value){const x=r.value.toLowerCase();y=y.filter(E=>E.name.toLowerCase().includes(x)||E.bundleId.toLowerCase().includes(x))}const b=t.query.filter;return b&&(y=y.filter(x=>{switch(b){case"supported":return x.supported&&!x.isInjected&&!x.needsUpgrade;case"injected":return x.isInjected;case"update":return x.needsUpgrade;case"unsupported":return!x.supported;case"store":return x.feedUrl&&x.feedUrl.length>0;default:return!0}})),[...y].sort((x,E)=>{switch(i.value){case"name":return x.name.localeCompare(E.name);case"bundleId":return x.bundleId.localeCompare(E.bundleId);case"injected":return(E.isInjected?1:0)-(x.isInjected?1:0);case"update":return(E.needsUpgrade?1:0)-(x.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"系统中所有已安装的应用"}},p=async()=>{s.value=!0,o.value="";try{n.value=await Re.getApps()}catch(y){console.error("加载应用列表失败:",y),o.value="加载应用列表失败,请检查服务是否运行"}finally{s.value=!1}},g=async y=>{console.log(`应用 ${y} 已更新`)},m=y=>{a.value=y,l.value=!0};return lt(()=>{p()}),(y,b)=>(I(),N("div",t0,[d("div",n0,[d("div",s0,[d("h2",null,U(c()),1),d("p",o0,U(f()),1)]),d("div",r0,[d("div",i0,[qt(d("input",{"onUpdate:modelValue":b[0]||(b[0]=C=>r.value=C),type:"text",placeholder:"搜索应用...",class:"search-input"},null,512),[[Ma,r.value]]),j(ne,{icon:"mdi:magnify",class:"search-icon"})]),qt(d("select",{"onUpdate:modelValue":b[1]||(b[1]=C=>i.value=C),class:"sort-filter"},[...b[3]||(b[3]=[d("option",{value:"name"},"按名称排序",-1),d("option",{value:"bundleId"},"按 Bundle ID",-1),d("option",{value:"injected"},"已注入优先",-1),d("option",{value:"update"},"可更新优先",-1)])],512),[[Da,i.value]])])]),s.value?(I(),N("div",l0,[...b[4]||(b[4]=[d("div",{class:"spinner"},null,-1),d("p",null,"加载应用中...",-1)])])):o.value?(I(),N("div",a0,[d("p",null,U(o.value),1),d("button",{onClick:p,class:"btn btn-primary"},"重试")])):u.value.length===0?(I(),N("div",c0,[j(ne,{icon:"mdi:apps",class:"empty-icon"}),b[5]||(b[5]=d("p",null,"没有找到应用",-1)),b[6]||(b[6]=d("p",{class:"empty-hint"},"尝试调整搜索条件或筛选器",-1))])):(I(),N("div",u0,[(I(!0),N(Pe,null,sn(u.value,C=>(I(),Je(Mm,{key:C.bundleId,app:C,"in-store-mode":W(t).query.filter==="store",onUpdated:g,onOpenVersionDialog:m},null,8,["app","in-store-mode"]))),128))])),d("div",f0,[d("div",d0,[d("span",p0,[b[7]||(b[7]=d("span",{class:"stat-label"},"总计:",-1)),d("span",h0,U(n.value.length),1)]),d("span",g0,[b[8]||(b[8]=d("span",{class:"stat-label"},"显示:",-1)),d("span",m0,U(u.value.length),1)])])]),a.value?(I(),Je(e0,{key:4,visible:l.value,app:a.value,onClose:b[2]||(b[2]=C=>l.value=!1)},null,8,["visible","app"])):ue("",!0)]))}}),y0=ht(v0,[["__scopeId","data-v-7192034b"]]);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 b0(e){return e<=0?"--":`${nr(e)}/s`}function w0(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 sr(e){return e<0?"0.00%":e>=100?"100.00%":`${e.toFixed(2)}%`}const _0={class:"app-detail"},C0={key:0,class:"loading"},S0={key:1,class:"error"},x0={key:2,class:"detail-content"},E0={class:"back-button"},T0={class:"app-info-card card"},A0={class:"app-header"},R0={class:"app-icon-large"},k0=["src","alt"],O0={key:1,class:"icon-loading-large"},$0={class:"app-meta"},P0={class:"app-title"},I0={class:"app-bundle-id"},L0={class:"app-version-info"},M0={class:"current-version"},D0={key:0,class:"latest-version"},N0={class:"app-status-section"},F0={class:"action-buttons"},U0=["disabled"],j0=["disabled"],B0={key:2,class:"unsupported-text"},H0=["disabled"],V0={class:"detail-grid"},q0={class:"detail-card card"},z0={class:"info-list"},K0={class:"info-item"},W0={class:"value"},G0={class:"info-item"},J0={class:"value"},Q0={class:"info-item"},Z0={class:"value"},X0={class:"info-item"},Y0={class:"value"},ev={class:"detail-card card"},tv={class:"info-list"},nv={class:"info-item"},sv={class:"value"},ov={class:"info-item"},rv={class:"info-item"},iv={key:0,class:"info-item"},lv={class:"value supported-versions-list"},av={key:0,class:"detail-card card versions-card"},cv={key:0,class:"loading"},uv={key:1,class:"error"},fv={key:2,class:"empty"},dv={key:3,class:"versions-list"},pv={class:"version-info"},hv={class:"version-number"},gv={key:0,class:"version-full"},mv={key:1,class:"version-url"},vv=["onClick","disabled"],yv={key:4,class:"download-progress"},bv={class:"progress-bar"},wv={class:"progress-text"},_v=ze({__name:"AppDetail",setup(e){const t=Pc(),n=$c(),s=J(null),o=J(!0),r=J(""),i=t.params.bundleId,l=J(!0),a=J(!1),u=J(!1),c=J([]),f=J(!1),p=J(""),g=J(!1),m=J(0),y=J(null),b=async()=>{o.value=!0,r.value="";try{s.value=await Re.getApp(i)}catch(Z){console.error("加载应用详情失败:",Z),r.value="加载应用详情失败,请检查网络连接"}finally{o.value=!1}},C=async()=>{var Z;if((Z=s.value)!=null&&Z.feedUrl){f.value=!0,p.value="";try{const Q=await Re.getAppVersions(i);c.value=Q.sort((me,Ce)=>{const ke=me.version.split(".").map(Number),Xe=Ce.version.split(".").map(Number),Ye=Math.max(ke.length,Xe.length);for(let st=0;st<Ye;st++){const je=ke[st]||0,T=Xe[st]||0;if(T!==je)return T-je}return 0})}catch(Q){console.error("加载版本列表失败:",Q),p.value="加载版本列表失败"}finally{f.value=!1}}},x=async Z=>{if(!Z.url){console.error("版本URL为空");return}g.value=!0,m.value=0;try{const Q=await Re.startDownload(Z.url);y.value=await Re.getDownloadTask(Q.taskId);const me=setInterval(async()=>{if(y.value){const Ce=await Re.getDownloadTask(y.value.id);y.value=Ce,m.value=Ce.progress*100,(Ce.status==="completed"||Ce.status==="error")&&(clearInterval(me),g.value=!1)}},1e3)}catch(Q){console.error("启动下载失败:",Q),g.value=!1}},{updating:E,modalVisible:O,modalTitle:z,logs:$,modalStatus:L,handleUpdate:k,handleReinstall:S,hideModal:M}=Lc({onRefresh:async()=>{await b()}}),se=()=>s.value?Re.getAppIconUrl(s.value.bundleId):"",H=()=>{s.value&&k(s.value)},le=()=>{n.push("/")},ae=()=>{var Z,Q,me;return(Z=s.value)!=null&&Z.supported?(Q=s.value)!=null&&Q.isInjected?"status-injected":(me=s.value)!=null&&me.needsUpgrade?"status-update":"status-supported":"status-unsupported"},Ae=()=>{var Z,Q,me;return(Z=s.value)!=null&&Z.supported?(Q=s.value)!=null&&Q.isInjected?"已注入":(me=s.value)!=null&&me.needsUpgrade?"可更新":"支持":"不支持"},fe=()=>{l.value=!1,a.value=!0,u.value=!1},he=()=>{l.value=!1,a.value=!1,u.value=!0};return lt(async()=>{var Z;await b(),(Z=s.value)!=null&&Z.feedUrl&&C()}),(Z,Q)=>(I(),N("div",_0,[o.value?(I(),N("div",C0,[...Q[1]||(Q[1]=[d("div",{class:"spinner"},null,-1),d("p",null,"加载应用详情...",-1)])])):r.value?(I(),N("div",S0,[d("p",null,U(r.value),1),d("button",{onClick:b,class:"btn btn-primary"},"重试")])):s.value?(I(),N("div",x0,[d("div",E0,[d("button",{onClick:le,class:"btn btn-outline"},[j(ne,{icon:"mdi:arrow-left",class:"btn-icon"}),Q[2]||(Q[2]=de(" 返回应用列表 ",-1))])]),d("div",T0,[d("div",A0,[d("div",R0,[s.value?qt((I(),N("img",{key:0,src:se(),alt:s.value.name,onLoad:fe,onError:he},null,40,k0)),[[Ns,a.value]]):ue("",!0),l.value?(I(),N("div",O0,[...Q[3]||(Q[3]=[d("div",{class:"spinner"},null,-1)])])):ue("",!0),qt(d("div",{class:"icon-placeholder-large"},U(s.value.name.charAt(0).toUpperCase()),513),[[Ns,u.value]])]),d("div",$0,[d("h1",P0,U(s.value.name),1),d("p",I0,U(s.value.bundleId),1),d("div",L0,[d("span",M0,"当前版本: "+U(s.value.version),1),s.value.latestVersion&&s.value.latestVersion!==s.value.version?(I(),N("span",D0," 最新版本: "+U(s.value.latestVersion),1)):ue("",!0)])]),d("div",N0,[d("span",{class:re(["status-badge",ae()])},U(Ae()),3),d("div",F0,[s.value.needsUpgrade&&s.value.supported?(I(),N("button",{key:0,class:"btn btn-warning",onClick:H,disabled:W(E)},[j(ne,{icon:"mdi:update",class:"btn-icon"}),de(" "+U(W(E)?"更新中...":"更新应用"),1)],8,U0)):!s.value.isInjected&&s.value.supported?(I(),N("button",{key:1,class:"btn btn-success",onClick:H,disabled:W(E)},[j(ne,{icon:"mdi:download",class:"btn-icon"}),de(" "+U(W(E)?"处理中...":"注入应用"),1)],8,j0)):s.value.supported?(I(),N("button",{key:3,class:"btn btn-secondary",onClick:Q[0]||(Q[0]=(...me)=>W(S)&&W(S)(...me)),disabled:W(E)},[j(ne,{icon:"mdi:refresh",class:"btn-icon"}),de(" "+U(W(E)?"处理中...":"重新安装"),1)],8,H0)):(I(),N("span",B0," 不支持此版本 "))])])])]),d("div",V0,[d("div",q0,[Q[8]||(Q[8]=d("h3",null,"基本信息",-1)),d("div",z0,[d("div",K0,[Q[4]||(Q[4]=d("span",{class:"label"},"应用路径:",-1)),d("span",W0,U(s.value.path),1)]),d("div",G0,[Q[5]||(Q[5]=d("span",{class:"label"},"主执行文件:",-1)),d("span",J0,U(s.value.mainExecutableName),1)]),d("div",Q0,[Q[6]||(Q[6]=d("span",{class:"label"},"Dylib路径:",-1)),d("span",Z0,U(s.value.dylibPath||"未注入"),1)]),d("div",X0,[Q[7]||(Q[7]=d("span",{class:"label"},"注入版本:",-1)),d("span",Y0,U(s.value.injectedVersion||"未注入"),1)])])]),d("div",ev,[Q[13]||(Q[13]=d("h3",null,"更新信息",-1)),d("div",tv,[d("div",nv,[Q[9]||(Q[9]=d("span",{class:"label"},"更新源:",-1)),d("span",sv,U(s.value.feedUrl||"未配置"),1)]),d("div",ov,[Q[10]||(Q[10]=d("span",{class:"label"},"需要更新:",-1)),d("span",{class:re(["value",{"text-warning":s.value.needsUpgrade}])},U(s.value.needsUpgrade?"是":"否"),3)]),d("div",rv,[Q[11]||(Q[11]=d("span",{class:"label"},"支持状态:",-1)),d("span",{class:re(["value",{"text-success":s.value.supported,"text-error":!s.value.supported}])},U(s.value.supported?"支持":"不支持"),3)]),s.value.supportVersion&&s.value.supportVersion.length>0?(I(),N("div",iv,[Q[12]||(Q[12]=d("span",{class:"label"},"支持版本:",-1)),d("span",lv,U(s.value.supportVersion.join(", ")),1)])):ue("",!0)])]),s.value.feedUrl?(I(),N("div",av,[Q[18]||(Q[18]=d("h3",null,"可用版本",-1)),f.value?(I(),N("div",cv,[...Q[14]||(Q[14]=[d("div",{class:"spinner"},null,-1),d("p",null,"正在加载版本列表...",-1)])])):p.value?(I(),N("div",uv,[d("p",null,U(p.value),1),d("button",{onClick:C,class:"btn btn-secondary btn-sm"},[j(ne,{icon:"mdi:reload",class:"btn-icon"}),Q[15]||(Q[15]=de(" 重试 ",-1))])])):c.value.length===0?(I(),N("div",fv,[...Q[16]||(Q[16]=[d("p",null,"暂无可用版本",-1)])])):(I(),N("div",dv,[(I(!0),N(Pe,null,sn(c.value,me=>(I(),N("div",{key:me.version,class:"version-item"},[d("div",pv,[d("span",hv,U(me.version),1),me.fullVersion?(I(),N("span",gv," ("+U(me.fullVersion)+") ",1)):ue("",!0),me.url?(I(),N("span",mv,U(me.url),1)):ue("",!0)]),d("button",{class:"btn btn-primary btn-sm",onClick:Ce=>x(me),disabled:g.value},[j(ne,{icon:"mdi:download",class:"btn-icon"}),Q[17]||(Q[17]=de(" 下载 ",-1))],8,vv)]))),128))])),m.value>0&&m.value<100?(I(),N("div",yv,[d("div",bv,[d("div",{class:re(["progress-fill",{downloading:g.value}]),style:es({width:m.value+"%"})},null,6)]),d("span",wv,U(W(sr)(m.value)),1)])):ue("",!0)])):ue("",!0)]),j(Ic,{visible:W(O),title:W(z),logs:W($),loading:W(E),status:W(L),"can-close":W(L)!=="loading",onClose:W(M)},null,8,["visible","title","logs","loading","status","can-close","onClose"])])):ue("",!0)]))}}),Cv=ht(_v,[["__scopeId","data-v-42a8a2d1"]]),Sv={class:"download-manager"},xv={class:"page-header"},Ev={class:"header-actions"},Tv={class:"stats-cards"},Av={class:"stat-card"},Rv={class:"stat-icon downloading"},kv={class:"stat-info"},Ov={class:"stat-value"},$v={class:"stat-card"},Pv={class:"stat-icon completed"},Iv={class:"stat-info"},Lv={class:"stat-value"},Mv={class:"stat-card"},Dv={class:"stat-icon paused"},Nv={class:"stat-info"},Fv={class:"stat-value"},Uv={class:"filter-bar"},jv=["onClick"],Bv={class:"filter-count"},Hv={class:"download-list"},Vv={key:0,class:"empty-state"},qv={class:"item-header"},zv={class:"item-title"},Kv={class:"file-name"},Wv={class:"item-progress"},Gv={class:"progress-bar"},Jv={class:"progress-info"},Qv={class:"progress-text"},Zv={class:"progress-stats"},Xv={key:0,class:"item-speed-info"},Yv={class:"speed-item"},e2={class:"info-value"},t2={class:"speed-item"},n2={class:"info-value"},s2={key:1,class:"item-error"},o2={class:"item-actions"},r2=["onClick"],i2=["onClick"],l2=["onClick"],a2=["onClick"],c2=["onClick"],u2=ze({__name:"DownloadManager",setup(e){const t=J([]),n=J("all");let s=null;const o=J(!1),r=J({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=we(()=>n.value==="all"?t.value:t.value.filter(k=>k.status===n.value)),u=we(()=>t.value.filter(k=>k.status==="downloading").length),c=we(()=>t.value.filter(k=>k.status==="completed").length),f=we(()=>t.value.filter(k=>k.status==="paused").length),p=k=>k==="all"?t.value.length:t.value.filter(S=>S.status===k).length,g=k=>({pending:"等待中",downloading:"下载中",paused:"已暂停",completed:"已完成",error:"失败"})[k]||k,m=async()=>{try{t.value=await Re.getAllDownloads()}catch(k){console.error("加载下载列表失败:",k)}},y=()=>{m()},b=async k=>{try{await Re.pauseDownload(k),await m()}catch(S){console.error("暂停下载失败:",S)}},C=async k=>{try{await Re.resumeDownload(k),await m()}catch(S){console.error("继续下载失败:",S)}},x=(k,S,M="warning")=>new Promise(se=>{r.value={title:k,message:S,type:M,confirmText:"确认",cancelText:"取消"},o.value=!0,i=se}),E=()=>{i&&(i(!0),i=null)},O=()=>{i&&(i(!1),i=null)},z=async k=>{if(await x("删除下载任务","确定要删除这个下载任务吗?","danger"))try{await Re.deleteDownload(k),await m()}catch(M){console.error("删除下载失败:",M)}},$=async k=>{if(await x("重新下载",`确定要重新下载 "${k.fileName}" 吗?这将删除并重新下载该文件。`,"warning"))try{await Re.deleteDownload(k.id),await Re.startDownload(k.url,k.fileName),await m()}catch(M){console.error("重新下载失败:",M)}},L=async k=>{try{await Re.openDownloadFile(k)}catch(S){console.error("打开文件失败:",S)}};return lt(()=>{m(),s=setInterval(m,1e3)}),ns(()=>{s&&clearInterval(s)}),(k,S)=>(I(),N("div",Sv,[d("div",xv,[S[2]||(S[2]=d("h2",null,"下载管理",-1)),d("div",Ev,[d("button",{class:"btn btn-secondary btn-sm",onClick:y},[j(ne,{icon:"mdi:refresh",class:"btn-icon"}),S[1]||(S[1]=de(" 刷新 ",-1))])])]),d("div",Tv,[d("div",Av,[d("div",Rv,[j(ne,{icon:"mdi:download"})]),d("div",kv,[d("div",Ov,U(u.value),1)]),S[3]||(S[3]=d("div",{class:"stat-label"},"下载中",-1))]),d("div",$v,[d("div",Pv,[j(ne,{icon:"mdi:check-circle"})]),d("div",Iv,[d("div",Lv,U(c.value),1)]),S[4]||(S[4]=d("div",{class:"stat-label"},"已完成",-1))]),d("div",Mv,[d("div",Dv,[j(ne,{icon:"mdi:pause-circle"})]),d("div",Nv,[d("div",Fv,U(f.value),1)]),S[5]||(S[5]=d("div",{class:"stat-label"},"已暂停",-1))])]),d("div",Uv,[(I(),N(Pe,null,sn(l,M=>d("button",{key:M.value,class:re(["filter-btn",{active:n.value===M.value}]),onClick:se=>n.value=M.value},[de(U(M.label)+" ",1),d("span",Bv,U(p(M.value)),1)],10,jv)),64))]),d("div",Hv,[a.value.length===0?(I(),N("div",Vv,[j(ne,{icon:"mdi:download-circle",class:"empty-icon"}),S[6]||(S[6]=d("p",{class:"empty-text"},"暂无下载任务",-1))])):ue("",!0),(I(!0),N(Pe,null,sn(a.value,M=>(I(),N("div",{key:M.id,class:"download-item card"},[d("div",qv,[d("div",zv,[j(ne,{icon:"mdi:file",class:"file-icon"}),d("span",Kv,U(M.fileName),1)]),d("div",{class:re(["item-status",`status-${M.status}`])},U(g(M.status)),3)]),d("div",Wv,[d("div",Gv,[d("div",{class:re(["progress-fill",{downloading:M.status==="downloading"}]),style:es({width:W(sr)(M.progress*100)})},null,6)]),d("div",Jv,[d("span",Qv,U(W(sr)(M.progress*100)),1),d("span",Zv,U(W(nr)(M.downloadedSize))+" / "+U(W(nr)(M.totalSize)),1)])]),M.status==="downloading"?(I(),N("div",Xv,[d("div",Yv,[j(ne,{icon:"mdi:speedometer",class:"info-icon"}),S[7]||(S[7]=d("span",{class:"info-label"},"速度:",-1)),d("span",e2,U(W(b0)(M.downloadSpeed)),1)]),d("div",t2,[j(ne,{icon:"mdi:timer",class:"info-icon"}),S[8]||(S[8]=d("span",{class:"info-label"},"剩余:",-1)),d("span",n2,U(W(w0)(M.remainingTime)),1)])])):ue("",!0),M.errorMsg?(I(),N("div",s2,[j(ne,{icon:"mdi:alert-circle",class:"error-icon"}),de(" "+U(M.errorMsg),1)])):ue("",!0),d("div",o2,[M.status==="downloading"?(I(),N("button",{key:0,class:"btn btn-warning btn-sm",onClick:se=>b(M.id)},[j(ne,{icon:"mdi:pause",class:"btn-icon"}),S[9]||(S[9]=de(" 暂停 ",-1))],8,r2)):ue("",!0),M.status==="paused"?(I(),N("button",{key:1,class:"btn btn-success btn-sm",onClick:se=>C(M.id)},[j(ne,{icon:"mdi:play",class:"btn-icon"}),S[10]||(S[10]=de(" 继续 ",-1))],8,i2)):ue("",!0),M.status==="completed"?(I(),N("button",{key:2,class:"btn btn-primary btn-sm",onClick:se=>L(M.id)},[j(ne,{icon:"mdi:folder-open",class:"btn-icon"}),S[11]||(S[11]=de(" 打开 ",-1))],8,l2)):ue("",!0),M.status==="completed"||M.status==="error"?(I(),N("button",{key:3,class:"btn btn-secondary btn-sm",onClick:se=>$(M)},[j(ne,{icon:"mdi:reload",class:"btn-icon"}),S[12]||(S[12]=de(" 重新下载 ",-1))],8,a2)):ue("",!0),d("button",{class:"btn btn-danger btn-sm",onClick:se=>z(M.id)},[j(ne,{icon:"mdi:delete",class:"btn-icon"}),S[13]||(S[13]=de(" 删除 ",-1))],8,c2)])]))),128))]),j(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:E,onCancel:O,"onUpdate:visible":S[0]||(S[0]=M=>o.value=M)},null,8,["visible","title","message","type","confirm-text","cancel-text"])]))}}),f2=ht(u2,[["__scopeId","data-v-9ada58e9"]]),d2=[{path:"/",name:"Home",component:y0},{path:"/app/:bundleId",name:"AppDetail",component:Cv,props:!0},{path:"/downloads",name:"DownloadManager",component:f2}],p2=nm({history:$g(),routes:d2}),Or=nd(eg);Or.use(id());Or.use(p2);Or.mount("#app");
|