dudu-converter-cli 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- var Sl=Object.defineProperty;var xl=(e,t,s)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Wt=(e,t,s)=>xl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=s(o);fetch(o.href,i)}})();/**
2
- * @vue/shared v3.5.44
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function uo(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ge={},Xt=[],bt=()=>{},Hi=()=>!1,an=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cn=e=>e.startsWith("onUpdate:"),$e=Object.assign,fo=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},kl=Object.prototype.hasOwnProperty,ce=(e,t)=>kl.call(e,t),K=Array.isArray,jt=e=>Fs(e)==="[object Map]",Nt=e=>Fs(e)==="[object Set]",Vo=e=>Fs(e)==="[object Date]",X=e=>typeof e=="function",we=e=>typeof e=="string",Ye=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",ji=e=>(fe(e)||X(e))&&X(e.then)&&X(e.catch),Ui=Object.prototype.toString,Fs=e=>Ui.call(e),Cl=e=>Fs(e).slice(8,-1),Bi=e=>Fs(e)==="[object Object]",un=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ws=uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fn=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},El=/-\w/g,st=fn(e=>e.replace(El,t=>t.slice(1).toUpperCase())),Al=/\B([A-Z])/g,Kt=fn(e=>e.replace(Al,"-$1").toLowerCase()),zi=fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),An=fn(e=>e?`on${zi(e)}`:""),_t=(e,t)=>!Object.is(e,t),qs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ki=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},dn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Lo;const hn=()=>Lo||(Lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(K(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=we(n)?Pl(n):pn(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(we(e)||fe(e))return e}const Rl=/;(?![^(]*\))/g,Tl=/:([^]+)/,Ol=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Pl(e){const t={};return e.replace(Ol,s=>s.startsWith("/*")?"":s).split(Rl).forEach(s=>{if(s){const n=s.split(Tl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(we(e))t=e;else if(K(e))for(let s=0;s<e.length;s++){const n=ye(e[s]);n&&(t+=n+" ")}else if(fe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Il="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",$l=uo(Il);function Wi(e){return!!e||e===""}function Ml(e,t,s){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=rt(e[o],t[o],s);return n}function Ho(e,t,s){if(e.size!==t.size)return!1;const n=Array.from(t),o=new Uint8Array(n.length);for(const i of e){let r=-1;for(let l=0;l<n.length;l++)if(!o[l]&&rt(i,n[l],s)){r=l;break}if(r<0)return!1;o[r]=1}return!0}function Nl(e,t,s){let n=jt(e),o=jt(t);if(n||o||(n=Nt(e),o=Nt(t),n||o))return n&&o?Ho(e,t,s):!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const l in e){const a=e.hasOwnProperty(l),d=t.hasOwnProperty(l);if(a&&!d||!a&&d||!rt(e[l],t[l],s))return!1}return String(e)===String(t)}function jo(e,t,s,n){s||(s=[new Map,new Map]);const[o,i]=s;if(o.has(e)||i.has(t))return o.get(e)===t&&i.get(t)===e;o.set(e,t),i.set(t,e);const r=n(e,t,s);return o.delete(e),i.delete(t),r}function rt(e,t,s){if(e===t)return!0;let n=Vo(e),o=Vo(t);return n||o?n&&o?e.getTime()===t.getTime():!1:(n=Ye(e),o=Ye(t),n||o?e===t:(n=K(e),o=K(t),n||o?n&&o?jo(e,t,s,Ml):!1:(n=fe(e),o=fe(t),n||o?!n||!o?!1:jo(e,t,s,Nl):String(e)===String(t))))}function ho(e,t){return e.findIndex(s=>rt(s,t))}const Gi=e=>!!(e&&e.__v_isRef===!0),S=e=>we(e)?e:e==null?"":K(e)||fe(e)&&(e.toString===Ui||!X(e.toString))?Gi(e)?S(e.value):JSON.stringify(e,qi,2):String(e),qi=(e,t)=>Gi(t)?qi(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],i)=>(s[Rn(n,i)+" =>"]=o,s),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Rn(s))}:Ye(t)?Rn(t):fe(t)&&!K(t)&&!Bi(t)?String(t):t,Rn=(e,t="")=>{var s;return Ye(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
6
- * @vue/reactivity v3.5.44
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let Re;class Ji{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Re&&(Re.active?(this.parent=Re,this.index=(Re.scopes||(Re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const o=this.scopes.slice();for(t=0,s=o.length;t<s;t++)o[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=Re;try{return Re=this,t()}finally{Re=s}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){if(this._on>0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let t=Re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(s=0,n=o.length;s<n;s++)o[s].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 Yi(e){return new Ji(e)}function Qi(){return Re}function Dl(e,t=!1){Re&&Re.cleanups.push(e)}let ve;const Tn=new WeakSet;class Xi{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,Re&&(Re.active?Re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Tn.has(this)&&(Tn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||er(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Uo(this),tr(this);const t=ve,s=nt;ve=this,nt=!0;try{return this.fn()}finally{sr(this),ve=t,nt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)mo(t);this.deps=this.depsTail=void 0,Uo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Tn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kn(this)&&this.run()}get dirty(){return Kn(this)}}let Zi=0,Ss,xs;function er(e,t=!1){if(e.flags|=8,t){e.next=xs,xs=e;return}e.next=Ss,Ss=e}function po(){Zi++}function go(){if(--Zi>0)return;if(xs){let t=xs;for(xs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ss;){let t=Ss;for(Ss=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function tr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sr(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),mo(n),Fl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Kn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(nr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function nr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ts)||(e.globalVersion=Ts,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kn(e))))return;e.flags|=2;const t=e.dep,s=ve,n=nt;ve=e,nt=!0;try{tr(e);const o=e.fn(e._value);(t.version===0||_t(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=s,nt=n,sr(e),e.flags&=-3}}function mo(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)mo(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let nt=!0;const or=[];function St(){or.push(nt),nt=!1}function xt(){const e=or.pop();nt=e===void 0?!0:e}function Uo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ve;ve=void 0;try{t()}finally{ve=s}}}let Ts=0;class Vl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vo{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(!ve||!nt||ve===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ve)s=this.activeLink=new Vl(ve,this),ve.deps?(s.prevDep=ve.depsTail,ve.depsTail.nextDep=s,ve.depsTail=s):ve.deps=ve.depsTail=s,ir(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ve.depsTail,s.nextDep=void 0,ve.depsTail.nextDep=s,ve.depsTail=s,ve.deps===s&&(ve.deps=n)}return s}trigger(t){this.version++,Ts++,this.notify(t)}notify(t){po();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{go()}}}function ir(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ir(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Qs=new WeakMap,es=Symbol(""),Wn=Symbol(""),Os=Symbol("");function Me(e,t,s){if(nt&&ve){let n=Qs.get(e);n||Qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new vo),o.map=n,o.key=s),o.track()}}function Ot(e,t,s,n,o,i){const r=Qs.get(e);if(!r){Ts++;return}const l=a=>{a&&a.trigger()};if(po(),t==="clear")r.forEach(l);else{const a=K(e),d=a&&un(s);if(a&&s==="length"){const u=Number(n);r.forEach((h,v)=>{(v==="length"||v===Os||!Ye(v)&&v>=u)&&l(h)})}else switch((s!==void 0||r.has(void 0))&&l(r.get(s)),d&&l(r.get(Os)),t){case"add":a?d&&l(r.get("length")):(l(r.get(es)),jt(e)&&l(r.get(Wn)));break;case"delete":a||(l(r.get(es)),jt(e)&&l(r.get(Wn)));break;case"set":jt(e)&&l(r.get(es));break}}go()}function Ll(e,t){const s=Qs.get(e);return s&&s.get(t)}function is(e){const t=ae(e);return t===e||(Me(t,"iterate",Os),Ke(e))?t:kt(e)?wt(e)?t.map(s=>Bt(Qe(s))):t.map(Bt):t.map(Qe)}function gn(e){return Me(e=ae(e),"iterate",Os),e}function mt(e,t){return kt(e)?Bt(wt(e)?Qe(t):t):Qe(t)}const Hl={__proto__:null,[Symbol.iterator](){return On(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return is(this).concat(...e.map(t=>K(t)?is(t):t))},entries(){return On(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,s=>s.map(n=>mt(this,n)),arguments)},find(e,t){return Et(this,"find",e,t,s=>mt(this,s),arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,s=>mt(this,s),arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pn(this,"includes",e)},indexOf(...e){return Pn(this,"indexOf",e)},join(e){return is(this).join(e)},lastIndexOf(...e){return Pn(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return ms(this,"pop")},push(...e){return ms(this,"push",e)},reduce(e,...t){return zo(this,"reduce",e,t)},reduceRight(e,...t){return zo(this,"reduceRight",e,t)},shift(){return ms(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return ms(this,"splice",e)},toReversed(){return is(this).toReversed()},toSorted(e){return is(this).toSorted(e)},toSpliced(...e){return is(this).toSpliced(...e)},unshift(...e){return ms(this,"unshift",e)},values(){return On(this,"values",e=>mt(this,e))}};function On(e,t,s){const n=gn(e),o=n[t],i=o.call(n);if(n!==e&&!Ke(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const r=Object.create(Object.getPrototypeOf(i));return r.next=()=>Bo(i.next(),s),o!==rr[t]&&Object.defineProperties(r,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),r}i._next=i.next,i.next=()=>Bo(i._next(),s)}return i}function Bo(e,t){return e.done||(e.value=t(e.value)),e}const rr=Array.prototype;function Et(e,t,s,n,o,i){const r=gn(e),l=r!==e&&!Ke(e),a=r[t];if(a!==rr[t]){const h=a.apply(e,i);return l?Qe(h):h}let d=s;r!==e&&(l?d=function(h,v){return s.call(this,mt(e,h),v,e)}:s.length>2&&(d=function(h,v){return s.call(this,h,v,e)}));const u=a.call(r,d,n);return l&&o?o(u):u}function zo(e,t,s,n){const o=gn(e),i=o!==e&&!Ke(e);let r=s,l=!1;o!==e&&(i?(l=n.length===0,r=function(d,u,h){return l&&(l=!1,d=mt(e,d)),s.call(this,d,mt(e,u),h,e)}):s.length>3&&(r=function(d,u,h){return s.call(this,d,u,h,e)}));const a=o[t](r,...n);return l?mt(e,a):a}function Pn(e,t,s){const n=ae(e);Me(n,"iterate",Os);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=ae(s[0]),n[t](...s)):o}function ms(e,t,s=[]){St(),po();const n=ae(e)[t].apply(e,s);return go(),xt(),n}const jl=uo("__proto__,__v_isRef,__isVue"),lr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function Ul(e){Ye(e)||(e=String(e));const t=ae(this);return Me(t,"has",e),t.hasOwnProperty(e)}class ar{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(o?i?Xl:dr:i?fr:ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=K(t);if(!o){let a;if(r&&(a=Hl[s]))return a;if(s==="hasOwnProperty")return Ul}const l=Reflect.get(t,s,Se(t)?t:n);if((Ye(s)?lr.has(s):jl(s))||(o||Me(t,"get",s),i))return l;if(Se(l)){const a=r&&un(s)?l:l.value;return o&&fe(a)?qn(a):a}return fe(l)?o?qn(l):ns(l):l}}class cr extends ar{constructor(t=!1){super(!1,t)}set(t,s,n,o){let i=t[s];const r=K(t)&&un(s);if(!this._isShallow){const d=kt(i);if(!Ke(n)&&!kt(n)&&(i=ae(i),n=ae(n)),!r&&Se(i)&&!Se(n))return d||(i.value=n),!0}const l=r?Number(s)<t.length:ce(t,s),a=Reflect.set(t,s,n,Se(t)?t:o);return t===ae(o)&&a&&(l?_t(n,i)&&Ot(t,"set",s,n):Ot(t,"add",s,n)),a}deleteProperty(t,s){const n=ce(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Ot(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Ye(s)||!lr.has(s))&&Me(t,"has",s),n}ownKeys(t){return Me(t,"iterate",K(t)?"length":es),Reflect.ownKeys(t)}}class Bl extends ar{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const zl=new cr,Kl=new Bl,Wl=new cr(!0);const Gn=e=>e,Us=e=>Reflect.getPrototypeOf(e);function Gl(e,t,s){return function(...n){const o=this.__v_raw,i=ae(o),r=jt(i),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=o[e](...n),u=s?Gn:t?Bt:Qe;return!t&&Me(i,"iterate",a?Wn:es),$e(Object.create(d),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:l?[u(h[0]),u(h[1])]:u(h),done:v}}})}}function Bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ql(e,t){const s={get(o){const i=this.__v_raw,r=ae(i),l=ae(o);e||(_t(o,l)&&Me(r,"get",o),Me(r,"get",l));const{has:a}=Us(r),d=t?Gn:e?Bt:Qe;if(a.call(r,o))return d(i.get(o));if(a.call(r,l))return d(i.get(l));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Me(ae(o),"iterate",es),o.size},has(o){const i=this.__v_raw,r=ae(i),l=ae(o);return e||(_t(o,l)&&Me(r,"has",o),Me(r,"has",l)),o===l?i.has(o):i.has(o)||i.has(l)},forEach(o,i){const r=this,l=r.__v_raw,a=ae(l),d=t?Gn:e?Bt:Qe;return!e&&Me(a,"iterate",es),l.forEach((u,h)=>o.call(i,d(u),d(h),r))}};return $e(s,e?{add:Bs("add"),set:Bs("set"),delete:Bs("delete"),clear:Bs("clear")}:{add(o){const i=ae(this),r=Us(i),l=ae(o),a=!t&&!Ke(o)&&!kt(o)?l:o;return r.has.call(i,a)||_t(o,a)&&r.has.call(i,o)||_t(l,a)&&r.has.call(i,l)||(i.add(a),Ot(i,"add",a,a)),this},set(o,i){!t&&!Ke(i)&&!kt(i)&&(i=ae(i));const r=ae(this),{has:l,get:a}=Us(r);let d=l.call(r,o);d||(o=ae(o),d=l.call(r,o));const u=a.call(r,o);return r.set(o,i),d?_t(i,u)&&Ot(r,"set",o,i):Ot(r,"add",o,i),this},delete(o){const i=ae(this),{has:r,get:l}=Us(i);let a=r.call(i,o);a||(o=ae(o),a=r.call(i,o)),l&&l.call(i,o);const d=i.delete(o);return a&&Ot(i,"delete",o,void 0),d},clear(){const o=ae(this),i=o.size!==0,r=o.clear();return i&&Ot(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Gl(o,e,t)}),s}function yo(e,t){const s=ql(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?n:Reflect.get(ce(s,o)&&o in n?s:n,o,i)}const Jl={get:yo(!1,!1)},Yl={get:yo(!1,!0)},Ql={get:yo(!0,!1)};const ur=new WeakMap,fr=new WeakMap,dr=new WeakMap,Xl=new WeakMap;function Zl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ns(e){return kt(e)?e:_o(e,!1,zl,Jl,ur)}function hr(e){return _o(e,!1,Wl,Yl,fr)}function qn(e){return _o(e,!0,Kl,Ql,dr)}function _o(e,t,s,n,o){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=Zl(Cl(e));if(r===0)return e;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function wt(e){return kt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function kt(e){return!!(e&&e.__v_isReadonly)}function Ke(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function bo(e){return!ce(e,"__v_skip")&&Object.isExtensible(e)&&Ki(e,"__v_skip",!0),e}const Qe=e=>fe(e)?ns(e):e,Bt=e=>fe(e)?qn(e):e;function Se(e){return e?e.__v_isRef===!0:!1}function se(e){return pr(e,!1)}function ea(e){return pr(e,!0)}function pr(e,t){return Se(e)?e:new ta(e,t)}class ta{constructor(t,s){this.dep=new vo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ae(t),this._value=s?t:Qe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ke(t)||kt(t);t=n?t:ae(t),_t(t,s)&&(this._rawValue=t,this._value=n?t:Qe(t),this.dep.trigger())}}function y(e){return Se(e)?e.value:e}const sa={get:(e,t,s)=>t==="__v_raw"?e:y(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return Se(o)&&!Se(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function gr(e){return wt(e)?e:new Proxy(e,sa)}function na(e){const t=K(e)?new Array(e.length):{};for(const s in e)t[s]=ia(e,s);return t}class oa{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ye(s)?s:String(s),this._raw=ae(t);let o=!0,i=t;if(!K(t)||Ye(this._key)||!un(this._key))do o=!mn(i)||Ke(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=y(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Se(this._raw[this._key])){const s=this._object[this._key];if(Se(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return Ll(this._raw,this._key)}}function ia(e,t,s){return new oa(e,t,s)}class ra{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new vo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ts-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return er(this,!0),!0}get value(){const t=this.dep.track();return nr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function la(e,t,s=!1){let n,o;return X(e)?n=e:(n=e.get,o=e.set),new ra(n,o,s)}const zs={},Xs=new WeakMap;let Jt;function aa(e,t=!1,s=Jt){if(s){let n=Xs.get(s);n||Xs.set(s,n=[]),n.push(e)}}function ca(e,t,s=ge){const{immediate:n,deep:o,once:i,scheduler:r,augmentJob:l,call:a}=s,d=D=>o?D:Ke(D)||o===!1||o===0?Pt(D,1):Pt(D);let u,h,v,x,V=!1,M=!1;if(Se(e)?(h=()=>e.value,V=Ke(e)):wt(e)?(h=()=>d(e),V=!0):K(e)?(M=!0,V=e.some(D=>wt(D)||Ke(D)),h=()=>e.map(D=>{if(Se(D))return D.value;if(wt(D))return d(D);if(X(D))return a?a(D,2):D()})):X(e)?t?h=a?()=>a(e,2):e:h=()=>{if(v){St();try{v()}finally{xt()}}const D=Jt;Jt=u;try{return a?a(e,3,[x]):e(x)}finally{Jt=D}}:h=bt,t&&o){const D=h,B=o===!0?1/0:o;h=()=>Pt(D(),B)}const z=Qi(),N=()=>{u.stop(),z&&z.active&&fo(z.effects,u)};if(i&&t){const D=t;t=(...B)=>{try{return D(...B)}finally{N()}}}let E=M?new Array(e.length).fill(zs):zs;const T=D=>{if(!(!(u.flags&1)||!u.dirty&&!D))if(t){const B=u.run();if(D||o||V||(M?B.some((_e,te)=>_t(_e,E[te])):_t(B,E))){const _e=Jt;St();try{v&&v(),Jt=u;const te=[B,E===zs?void 0:M&&E[0]===zs?[]:E,x];E=B,a?a(t,3,te):t(...te)}finally{Jt=_e,xt()}}}else u.run()};return l&&l(T),u=new Xi(h),u.scheduler=r?()=>r(T,!1):T,x=D=>aa(D,!1,u),v=u.onStop=()=>{const D=Xs.get(u);if(D){if(a)a(D,4);else for(const B of D)B();Xs.delete(u)}},t?n?T(!0):E=u.run():r?r(T.bind(null,!0),!0):u.run(),N.pause=u.pause.bind(u),N.resume=u.resume.bind(u),N.stop=N,N}function Pt(e,t=1/0,s){if(t<=0||!fe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Se(e))Pt(e.value,t,s);else if(K(e))for(let n=0;n<e.length;n++)Pt(e[n],t,s);else if(Nt(e)||jt(e))e.forEach(n=>{Pt(n,t,s)});else if(Bi(e)){for(const n in e)Pt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Pt(e[n],t,s)}return e}/**
10
- * @vue/runtime-core v3.5.44
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function Vs(e,t,s,n){try{return n?e(...n):e()}catch(o){vn(o,t,s)}}function lt(e,t,s,n){if(X(e)){const o=Vs(e,t,s,n);return o&&ji(o)&&o.catch(i=>{vn(i,t,s)}),o}if(K(e)){const o=[];for(let i=0;i<e.length;i++)o.push(lt(e[i],t,s,n));return o}}function vn(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||ge;if(t){let l=t.parent;const a=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,a,d)===!1)return}l=l.parent}if(i){St(),Vs(i,null,10,[e,a,d]),xt();return}}ua(e,s,o,n,r)}function ua(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const Ve=[];let tt=-1;const vt=[];let Lt=null,as=0;const mr=Promise.resolve();let Zs=null;function ps(e){const t=Zs||mr;return e?t.then(this?e.bind(this):e):t}function fa(e){let t=tt+1,s=Ve.length;for(;t<s;){const n=t+s>>>1,o=Ve[n],i=Ps(o);i<e||i===e&&o.flags&2?t=n+1:s=n}return t}function wo(e){if(!(e.flags&1)){const t=Ps(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=Ps(s)?Ve.push(e):Ve.splice(fa(t),0,e),e.flags|=1,vr()}}function vr(){Zs||(Zs=mr.then(br))}function da(e){if(!K(e))Lt&&e.id===-1?Lt.splice(as+1,0,e):e.flags&1||(vt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)vt.push(e[t]);vr()}function yr(e,t,s,n=tt+1){for(;n<Ve.length;n++){const o=Ve[n];if(o&&o.flags&2){if(e&&o.id!==e.uid||t!==void 0&&!(o.id>=t))continue;Ve.splice(n,1),n=e?n-1:tt,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function _r(e,t,s=0){if(vt.length){let n=vt,o=0;if(t){n=[];for(let r=0;r<vt.length;r++){const l=vt[r];(l.i!==void 0?!l.i||l.i.uid<s:t.has(l))?vt[o++]=l:n.push(l)}}const i=[...new Set(n)].sort((r,l)=>Ps(r)-Ps(l));if(vt.length=o,Lt){for(let r=0;r<i.length;r++)Lt.push(i[r]);return}for(Lt=i,as=0;as<Lt.length;as++){const r=Lt[as];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Lt=null,as=0}}let In=!1;function ha(e,t){if(In){e();return}const s=t===void 0?void 0:new Set(vt);e(),In=!0;try{yr(void 0,t),_r(void 0,s,t)}finally{In=!1}}const Ps=e=>e.id==null?e.flags&2?-1:1/0:e.id;function br(e){try{for(tt=0;tt<Ve.length;tt++){const t=Ve[tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tt<Ve.length;tt++){const t=Ve[tt];t&&(t.flags&=-2)}tt=-1,Ve.length=0,_r(),Zs=null,(Ve.length||vt.length)&&br()}}let Je=null,wr=null;function en(e){const t=Je;return Je=e,wr=e&&e.type.__scopeId||null,t}function Yt(e,t=Je,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&on(-1);const i=en(t),r=ss.length;let l;try{l=e(...o)}finally{for(let a=ss.length;a>r;a--)Kr();en(i),n._d&&on(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function It(e,t){if(Je===null)return e;const s=xn(Je),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,l,a=ge]=t[o];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Pt(r),n.push({dir:i,instance:s,value:r,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,s,n){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const l=o[r];i&&(l.oldValue=i[r].value);let a=l.dir[n];a&&(St(),lt(a,s,8,[e.el,l,e,t]),xt())}}function Js(e,t){if(Le){let s=Le.provides;const n=Le.parent&&Le.parent.provides;n===s&&(s=Le.provides=Object.create(n)),s[e]=t}}function ot(e,t,s=!1){const n=Jr();if(n||ts){let o=ts?ts._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&X(t)?t.call(n&&n.proxy):t}}function pa(){return!!(Jr()||ts)}const ga=Symbol.for("v-scx"),ma=()=>ot(ga);function Mt(e,t,s){return Sr(e,t,s)}function Sr(e,t,s=ge){const{immediate:n,deep:o,flush:i,once:r}=s,l=$e({},s),a=t&&n||!t&&i!=="post";let d;if(Ns){if(i==="sync"){const x=ma();d=x.__watcherHandles||(x.__watcherHandles=[])}else if(!a){const x=()=>{};return x.stop=bt,x.resume=bt,x.pause=bt,x}}const u=Le;l.call=(x,V,M)=>lt(x,u,V,M);let h=!1;i==="post"?l.scheduler=x=>{x.i=u,je(x,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(x,V)=>{V?x():wo(x)}),l.augmentJob=x=>{t&&(x.flags|=4),h&&(x.flags|=2,u&&(x.id=u.uid,x.i=u))};const v=ca(e,t,l);return Ns&&(d?d.push(v):a&&v()),v}function va(e,t,s){const n=this.proxy,o=we(e)?e.includes(".")?xr(n,e):()=>n[e]:e.bind(n,n);let i;X(t)?i=t:(i=t.handler,s=t);const r=Ls(this),l=Sr(o,i.bind(n),s);return r(),l}function xr(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const ya=Symbol("_vte"),yn=e=>e.__isTeleport,$n=Symbol("_leaveCb");function _a(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==at){t=s;break}}return t}function kr(e){if(!So(e))return yn(e.type)&&e.children?_a(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&X(s.default))return s.default()}}function tn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;tn(yn(s.type)&&kr(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===ne&&K(e.children)){const s=Ir(e.children,!1);s&&tn(s,t)}}function Jn(e){if(e.component)return Jn(e.component.subTree);if(e.type===ne){const t=K(e.children)&&Ir(e.children,!1);return t?Jn(t):void 0}if(e.type!==at)return e}function He(e,t){return X(e)?$e({name:e.name},t,{setup:e}):e}function Cr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ko(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const sn=new WeakMap;function ks(e,t,s,n,o=!1){if(K(e)){e.forEach((M,z)=>ks(M,t&&(K(t)?t[z]:t),s,n,o));return}if(Cs(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ks(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?xn(n.component):n.el,r=o?null:i,{i:l,r:a}=e,d=t&&t.r,u=l.refs===ge?l.refs={}:l.refs,h=l.setupState,v=ae(h),x=h===ge?Hi:M=>Ko(u,M)?!1:ce(v,M),V=(M,z)=>!(z&&Ko(u,z));if(d!=null&&d!==a){if(Wo(t),we(d))u[d]=null,x(d)&&(h[d]=null);else if(Se(d)){const M=t;V(d,M.k)&&(d.value=null),M.k&&(u[M.k]=null)}}if(X(a))Vs(a,l,12,[r,u]);else{const M=we(a),z=Se(a);if(M||z){const N=()=>{if(e.f){const E=M?x(a)?h[a]:u[a]:V()||!e.k?a.value:u[e.k];if(o)K(E)&&fo(E,i);else if(K(E))E.includes(i)||E.push(i);else if(M)u[a]=[i],x(a)&&(h[a]=u[a]);else{const T=[i];V(a,e.k)&&(a.value=T),e.k&&(u[e.k]=T)}}else M?(u[a]=r,x(a)&&(h[a]=r)):z&&(V(a,e.k)&&(a.value=r),e.k&&(u[e.k]=r))};if(r){const E=()=>{N(),sn.delete(e)};E.id=-1,sn.set(e,E),je(E,s)}else Wo(e),N()}}}function Wo(e){const t=sn.get(e);t&&(t.flags|=8,sn.delete(e))}hn().requestIdleCallback;hn().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,So=e=>e.type.__isKeepAlive;function ba(e,t){Er(e,"a",t)}function wa(e,t){Er(e,"da",t)}function Er(e,t,s=Le){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(_n(t,n,s),s){let o=s.parent;for(;o&&o.parent;)So(o.parent.vnode)&&Sa(n,t,s,o),o=o.parent}}function Sa(e,t,s,n){const o=_n(t,e,n,!0);Ar(()=>{fo(n[t],o)},s)}function _n(e,t,s=Le,n=!1){if(s){const o=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...r)=>{St();const l=Ls(s),a=lt(t,s,e,r);return l(),xt(),a});return n?o.unshift(i):o.push(i),i}}const Dt=e=>(t,s=Le)=>{(!Ns||e==="sp")&&_n(e,(...n)=>t(...n),s)},xa=Dt("bm"),os=Dt("m"),ka=Dt("bu"),Ca=Dt("u"),bn=Dt("bum"),Ar=Dt("um"),Ea=Dt("sp"),Aa=Dt("rtg"),Ra=Dt("rtc");function Ta(e,t=Le){_n("ec",e,t)}const Oa=Symbol.for("v-ndc");function Ce(e,t,s,n){let o;const i=s,r=K(e);if(r||we(e)){const l=r&&wt(e);let a=!1,d=!1;l&&(a=!Ke(e),d=kt(e),e=gn(e)),o=new Array(e.length);for(let u=0,h=e.length;u<h;u++)o[u]=t(a?d?Bt(Qe(e[u])):Qe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)o=[];else{o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i)}else if(fe(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,d=l.length;a<d;a++){const u=l[a];o[a]=t(e[u],u,a,i)}}else o=[];return o}const Yn=e=>e?Yr(e)?xn(e):Yn(e.parent):null,Es=$e(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=>Yn(e.parent),$root:e=>Yn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{wo(e.update)}),$nextTick:e=>e.n||(e.n=ps.bind(e.proxy)),$watch:e=>va.bind(e)}),Mn=(e,t)=>e!==ge&&!e.__isScriptSetup&&ce(e,t),Pa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:i,accessCache:r,type:l,appContext:a}=e;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return i[t]}else{if(Mn(n,t))return r[t]=1,n[t];if(o!==ge&&ce(o,t))return r[t]=2,o[t];if(ce(i,t))return r[t]=3,i[t];if(s!==ge&&ce(s,t))return r[t]=4,s[t];Qn&&(r[t]=0)}}const d=Es[t];let u,h;if(d)return t==="$attrs"&&Me(e.attrs,"get",""),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==ge&&ce(s,t))return r[t]=4,s[t];if(h=a.config.globalProperties,ce(h,t))return h[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:i}=e;return Mn(o,t)?(o[t]=s,!0):n!==ge&&ce(n,t)?(n[t]=s,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:i,type:r}},l){let a;return!!(s[l]||e!==ge&&l[0]!=="$"&&ce(e,l)||Mn(t,l)||ce(i,l)||ce(n,l)||ce(Es,l)||ce(o.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ce(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Go(e){return K(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Qn=!0;function Ia(e){const t=Tr(e),s=e.proxy,n=e.ctx;Qn=!1,t.beforeCreate&&qo(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:a,inject:d,created:u,beforeMount:h,mounted:v,beforeUpdate:x,updated:V,activated:M,deactivated:z,beforeDestroy:N,beforeUnmount:E,destroyed:T,unmounted:D,render:B,renderTracked:_e,renderTriggered:te,errorCaptured:Z,serverPrefetch:ee,expose:le,inheritAttrs:de,components:Te,directives:Ee,filters:Ze}=t;if(d&&$a(d,n,null),r)for(const Y in r){const ie=r[Y];X(ie)&&(n[Y]=ie.bind(s))}if(o){const Y=o.call(s,s);fe(Y)&&(e.data=ns(Y))}if(Qn=!0,i)for(const Y in i){const ie=i[Y],We=X(ie)?ie.bind(s,s):X(ie.get)?ie.get.bind(s,s):bt,ft=!X(ie)&&X(ie.set)?ie.set.bind(s):bt,Ge=oe({get:We,set:ft});Object.defineProperty(n,Y,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:Pe=>Ge.value=Pe})}if(l)for(const Y in l)Rr(l[Y],n,s,Y);if(a){const Y=X(a)?a.call(s):a;Reflect.ownKeys(Y).forEach(ie=>{Js(ie,Y[ie])})}u&&qo(u,e,"c");function me(Y,ie){K(ie)?ie.forEach(We=>Y(We.bind(s))):ie&&Y(ie.bind(s))}if(me(xa,h),me(os,v),me(ka,x),me(Ca,V),me(ba,M),me(wa,z),me(Ta,Z),me(Ra,_e),me(Aa,te),me(bn,E),me(Ar,D),me(Ea,ee),K(le))if(le.length){const Y=e.exposed||(e.exposed={});le.forEach(ie=>{Object.defineProperty(Y,ie,{get:()=>s[ie],set:We=>s[ie]=We,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===bt&&(e.render=B),de!=null&&(e.inheritAttrs=de),Te&&(e.components=Te),Ee&&(e.directives=Ee),ee&&Cr(e)}function $a(e,t,s=bt){K(e)&&(e=Xn(e));for(const n in e){const o=e[n];let i;fe(o)?"default"in o?i=ot(o.from||n,o.default,!0):i=ot(o.from||n):i=ot(o),Se(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[n]=i}}function qo(e,t,s){lt(K(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Rr(e,t,s,n){let o=n.includes(".")?xr(s,n):()=>s[n];if(we(e)){const i=t[e];X(i)&&Mt(o,i)}else if(X(e))Mt(o,e.bind(s));else if(fe(e))if(K(e))e.forEach(i=>Rr(i,t,s,n));else{const i=X(e.handler)?e.handler.bind(s):t[e.handler];X(i)&&Mt(o,i,e)}}function Tr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!s&&!n?a=t:(a={},o.length&&o.forEach(d=>nn(a,d,r,!0)),nn(a,t,r)),fe(t)&&i.set(t,a),a}function nn(e,t,s,n=!1){const{mixins:o,extends:i}=t;i&&nn(e,i,s,!0),o&&o.forEach(r=>nn(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const l=Ma[r]||s&&s[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Ma={data:Jo,props:Yo,emits:Yo,methods:_s,computed:_s,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:_s,directives:_s,watch:Da,provide:Jo,inject:Na};function Jo(e,t){return t?e?function(){return $e(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Na(e,t){return _s(Xn(e),Xn(t))}function Xn(e){if(K(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function _s(e,t){return e?$e(Object.create(null),e,t):t}function Yo(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:$e(Object.create(null),Go(e),Go(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const s=$e(Object.create(null),e);for(const n in t)s[n]=De(e[n],t[n]);return s}function Or(){return{app:null,config:{isNativeTag:Hi,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 Fa=0;function Va(e,t){return function(n,o=null){X(n)||(n=$e({},n)),o!=null&&!fe(o)&&(o=null);const i=Or(),r=new WeakSet,l=[];let a=!1;const d=i.app={_uid:Fa++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:pc,get config(){return i.config},set config(u){},use(u,...h){return r.has(u)||(u&&X(u.install)?(r.add(u),u.install(d,...h)):X(u)&&(r.add(u),u(d,...h))),d},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),d},component(u,h){return h?(i.components[u]=h,d):i.components[u]},directive(u,h){return h?(i.directives[u]=h,d):i.directives[u]},mount(u,h,v){if(!a){const x=d._ceVNode||U(n,o);return x.appContext=i,v===!0?v="svg":v===!1&&(v=void 0),e(x,u,v),a=!0,d._container=u,u.__vue_app__=d,xn(x.component)}},onUnmount(u){l.push(u)},unmount(){a&&(lt(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,h){return i.provides[u]=h,d},runWithContext(u){const h=ts;ts=d;try{return u()}finally{ts=h}}};return d}}let ts=null;const La=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function Ha(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ge;let o=s;const i=t.startsWith("update:"),r=i&&La(n,t.slice(7));r&&(r.trim&&(o=s.map(u=>we(u)?u.trim():u)),r.number&&(o=o.map(dn)));let l,a=n[l=An(t)]||n[l=An(st(t))];!a&&i&&(a=n[l=An(Kt(t))]),a&&lt(a,e,6,o);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,lt(d,e,6,o)}}const ja=new WeakMap;function Pr(e,t,s=!1){const n=s?ja:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!X(e)){const a=d=>{const u=Pr(d,t,!0);u&&(l=!0,$e(r,u))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(fe(e)&&n.set(e,null),null):(K(i)?i.forEach(a=>r[a]=null):$e(r,i),fe(e)&&n.set(e,r),r)}function wn(e,t){return!e||!an(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Kt(t))||ce(e,t))}function Qo(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:a,render:d,renderCache:u,props:h,data:v,setupState:x,ctx:V,inheritAttrs:M}=e,z=en(e);let N,E;try{if(s.shapeFlag&4){const D=o||n,B=D;N=yt(d.call(B,D,u,h,x,v,V)),E=l}else{const D=t;N=yt(D.length>1?D(h,{attrs:l,slots:r,emit:a}):D(h,null)),E=t.props?l:Ua(l)}}catch(D){ss.length=0,vn(D,e,1),N=U(at)}let T=N;if(E&&M!==!1){const D=Object.keys(E),{shapeFlag:B}=T;D.length&&B&7&&(i&&D.some(cn)&&(E=Ba(E,i)),T=us(T,E,!1,!0))}if(s.dirs&&(T=us(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(s.dirs):s.dirs),s.transition){const D=yn(T.type)&&kr(T)||T;tn(D,s.transition)}return N=T,en(z),N}function Ir(e,t=!0){let s;for(let n=0;n<e.length;n++){const o=e[n];if($s(o)){if(o.type!==at||o.children==="v-if"){if(s)return;s=o}}else return}return s}const Ua=e=>{let t;for(const s in e)(s==="class"||s==="style"||an(s))&&((t||(t={}))[s]=e[s]);return t},Ba=(e,t)=>{const s={};for(const n in e)(!cn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function za(e,t,s){const{props:n,children:o,component:i}=e,{props:r,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Xo(n,r,d):!!r;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const v=u[h];if($r(r,n,v)&&!wn(d,v))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===r?!1:n?r?Xo(n,r,d):!0:!!r;return!1}function Xo(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(!ce(e,i)||$r(t,e,i)&&!wn(s,i))return!0}return!1}function $r(e,t,s){const n=e[s],o=t[s];return s==="style"&&fe(n)&&fe(o)?!rt(n,o):n!==o}function Ka({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Mr={},Nr=()=>Object.create(Mr),Dr=e=>Object.getPrototypeOf(e)===Mr;function Wa(e,t,s,n=!1){const o={},i=Nr();e.propsDefaults=Object.create(null),Fr(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);s?e.props=n?o:hr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Ga(e,t,s,n){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=ae(o),[a]=e.propsOptions;let d=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let v=u[h];if(wn(e.emitsOptions,v))continue;const x=t[v];if(a)if(ce(i,v))x!==i[v]&&(i[v]=x,d=!0);else{const V=st(v);o[V]=Zn(a,l,V,x,e,!1)}else x!==i[v]&&(i[v]=x,d=!0)}}}else{Fr(e,t,o,i)&&(d=!0);let u;for(const h in l)(!t||!ce(t,h)&&((u=Kt(h))===h||!ce(t,u)))&&(a?s&&(s[h]!==void 0||s[u]!==void 0)&&(o[h]=Zn(a,l,h,void 0,e,!0)):delete o[h]);if(i!==l)for(const h in i)(!t||!ce(t,h))&&(delete i[h],d=!0)}d&&Ot(e.attrs,"set","")}function Fr(e,t,s,n){const[o,i]=e.propsOptions;let r=!1,l;if(t)for(let a in t){if(ws(a))continue;const d=t[a];let u;o&&ce(o,u=st(a))?!i||!i.includes(u)?s[u]=d:(l||(l={}))[u]=d:wn(e.emitsOptions,a)||(!(a in n)||d!==n[a])&&(n[a]=d,r=!0)}if(i){const a=ae(s),d=l||ge;for(let u=0;u<i.length;u++){const h=i[u];s[h]=Zn(o,a,h,d[h],e,!ce(d,h))}}return r}function Zn(e,t,s,n,o,i){const r=e[s];if(r!=null){const l=ce(r,"default");if(l&&n===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&X(a)){const{propsDefaults:d}=o;if(s in d)n=d[s];else{const u=Ls(o);n=d[s]=a.call(null,t),u()}}else n=a;o.ce&&o.ce._setProp(s,n)}r[0]&&(i&&!l?n=!1:r[1]&&(n===""||n===Kt(s))&&(n=!0))}return n}const qa=new WeakMap;function Vr(e,t,s=!1){const n=s?qa:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,r={},l=[];let a=!1;if(!X(e)){const u=h=>{a=!0;const[v,x]=Vr(h,t,!0);$e(r,v),x&&l.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return fe(e)&&n.set(e,Xt),Xt;if(K(i))for(let u=0;u<i.length;u++){const h=st(i[u]);Zo(h)&&(r[h]=ge)}else if(i)for(const u in i){const h=st(u);if(Zo(h)){const v=i[u],x=r[h]=K(v)||X(v)?{type:v}:$e({},v),V=x.type;let M=!1,z=!0;if(K(V))for(let N=0;N<V.length;++N){const E=V[N],T=X(E)&&E.name;if(T==="Boolean"){M=!0;break}else T==="String"&&(z=!1)}else M=X(V)&&V.name==="Boolean";x[0]=M,x[1]=z,(M||ce(x,"default"))&&l.push(h)}}const d=[r,l];return fe(e)&&n.set(e,d),d}function Zo(e){return e[0]!=="$"&&!ws(e)}const xo=e=>e==="_"||e==="_ctx"||e==="$stable",ko=e=>K(e)?e.map(yt):[yt(e)],Ja=(e,t,s)=>{if(t._n)return t;const n=Yt((...o)=>ko(t(...o)),s);return n._c=!1,n},Lr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(xo(o))continue;const i=e[o];if(X(i))t[o]=Ja(o,i,n);else if(i!=null){const r=ko(i);t[o]=()=>r}}},Hr=(e,t)=>{const s=ko(t);e.slots.default=()=>s},jr=(e,t,s)=>{for(const n in t)(s||!xo(n))&&(e[n]=t[n])},Ya=(e,t,s)=>{const n=e.slots=Nr();if(e.vnode.shapeFlag&32){const o=t._;o?(jr(n,t,s),s&&Ki(n,"_",o,!0)):Lr(t,n)}else t&&Hr(e,t)},Qa=(e,t,s)=>{const{vnode:n,slots:o}=e;let i=!0,r=ge;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:jr(o,t,s):(i=!t.$stable,Lr(t,o)),r=t}else t&&(Hr(e,t),r={default:1});if(i)for(const l in o)!xo(l)&&r[l]==null&&delete o[l]},je=sc;function Xa(e){return Za(e)}function Za(e,t){const s=hn();s.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:r,createText:l,createComment:a,setText:d,setElementText:u,parentNode:h,nextSibling:v,setScopeId:x=bt,insertStaticContent:V}=e,M=(f,p,_,k=null,A=null,P=null,m=void 0,w=null,g=!!p.dynamicChildren)=>{if(f===p)return;f&&!vs(f,p)&&(k=O(f),Pe(f,A,P,!0),f=null),p.patchFlag===-2&&(g=!1,p.dynamicChildren=null),p.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(p.dynamicChildren===Xt&&(p.dynamicChildren=[]),p.dynamicChildren.hasOnce=!0);const{type:b,ref:F,shapeFlag:$}=p;switch(b){case Sn:z(f,p,_,k);break;case at:N(f,p,_,k);break;case Dn:f==null&&E(p,_,k,m);break;case ne:Te(f,p,_,k,A,P,m,w,g);break;default:$&1?B(f,p,_,k,A,P,m,w,g):$&6?Ee(f,p,_,k,A,P,m,w,g):($&64||$&128)&&b.process(f,p,_,k,A,P,m,w,g,L)}F!=null&&A?ks(F,f&&f.ref,P,p||f,!p):F==null&&f&&f.ref!=null&&ks(f.ref,null,P,f,!0)},z=(f,p,_,k)=>{if(f==null)n(p.el=l(p.children),_,k);else{const A=p.el=f.el;p.children!==f.children&&d(A,p.children)}},N=(f,p,_,k)=>{f==null?n(p.el=a(p.children||""),_,k):p.el=f.el},E=(f,p,_,k)=>{[f.el,f.anchor]=V(f.children,p,_,k,f.el,f.anchor)},T=({el:f,anchor:p},_,k)=>{let A;for(;f&&f!==p;)A=v(f),n(f,_,k),f=A;n(p,_,k)},D=({el:f,anchor:p})=>{let _;for(;f&&f!==p;)_=v(f),o(f),f=_;o(p)},B=(f,p,_,k,A,P,m,w,g)=>{if(p.type==="svg"?m="svg":p.type==="math"&&(m="mathml"),f==null)_e(p,_,k,A,P,m,w,g);else{const b=f.el&&f.el._isVueCE?f.el:null;try{b&&b._beginPatch(),ee(f,p,A,P,m,w,g)}finally{b&&b._endPatch()}}},_e=(f,p,_,k,A,P,m,w)=>{let g,b;const{props:F,shapeFlag:$,transition:W,dirs:q}=f;if(g=f.el=r(f.type,P,F&&F.is,F),$&8?u(g,f.children):$&16&&Z(f.children,g,null,k,A,Nn(f,P),m,w),q&&Gt(f,null,k,"created"),te(g,f,f.scopeId,m,k),F){for(const pe in F)pe!=="value"&&!ws(pe)&&i(g,pe,null,F[pe],P,k);"value"in F&&i(g,"value",null,F.value,P),(b=F.onVnodeBeforeMount)&&gt(b,k,f)}q&&Gt(f,null,k,"beforeMount");const re=ec(A,W);re&&W.beforeEnter(g),n(g,p,_),((b=F&&F.onVnodeMounted)||re||q)&&je(()=>{try{b&&gt(b,k,f),re&&W.enter(g),q&&Gt(f,null,k,"mounted")}finally{}},A)},te=(f,p,_,k,A)=>{if(_&&x(f,_),k)for(let P=0;P<k.length;P++)x(f,k[P]);if(A){let P=A.subTree;if(p===P||zr(P.type)&&(P.ssContent===p||P.ssFallback===p)){const m=A.vnode;te(f,m,m.scopeId,m.slotScopeIds,A.parent)}}},Z=(f,p,_,k,A,P,m,w,g=0)=>{for(let b=g;b<f.length;b++){const F=f[b]=w?Tt(f[b]):yt(f[b]);M(null,F,p,_,k,A,P,m,w)}},ee=(f,p,_,k,A,P,m)=>{const w=p.el=f.el;let{patchFlag:g,dynamicChildren:b,dirs:F}=p;g|=f.patchFlag&16;const $=f.props||ge,W=p.props||ge;let q;if(_&&qt(_,!1),(q=W.onVnodeBeforeUpdate)&&gt(q,_,p,f),F&&Gt(p,f,_,"beforeUpdate"),_&&qt(_,!0),b&&(!f.dynamicChildren||f.dynamicChildren.length!==b.length)&&(g=0,m=!1,b=null),($.innerHTML&&W.innerHTML==null||$.textContent&&W.textContent==null)&&u(w,""),b?le(f.dynamicChildren,b,w,_,k,Nn(p,A),P):m||ie(f,p,w,null,_,k,Nn(p,A),P,!1),g>0){if(g&16)de(w,$,W,_,A);else if(g&2&&$.class!==W.class&&i(w,"class",null,W.class,A),g&4&&i(w,"style",$.style,W.style,A),g&8){const re=p.dynamicProps;for(let pe=0;pe<re.length;pe++){const he=re[pe],ke=$[he],Ie=W[he];(Ie!==ke||he==="value")&&i(w,he,ke,Ie,A,_)}}g&1&&f.children!==p.children&&u(w,p.children)}else!m&&b==null&&de(w,$,W,_,A);((q=W.onVnodeUpdated)||F)&&je(()=>{q&&gt(q,_,p,f),F&&Gt(p,f,_,"updated")},k)},le=(f,p,_,k,A,P,m)=>{for(let w=0;w<p.length;w++){const g=f[w],b=p[w],F=g.el||eo(g),$=F&&(g.type===ne||!vs(g,b)||g.shapeFlag&198)?h(F):_;M(g,b,$,null,k,A,P,m,!0)}},de=(f,p,_,k,A)=>{if(p!==_){if(p!==ge)for(const P in p)!ws(P)&&!(P in _)&&i(f,P,p[P],null,A,k);for(const P in _){if(ws(P))continue;const m=_[P],w=p[P];m!==w&&P!=="value"&&i(f,P,w,m,A,k)}"value"in _&&i(f,"value",p.value,_.value,A)}},Te=(f,p,_,k,A,P,m,w,g)=>{const b=p.el=f?f.el:l(""),F=p.anchor=f?f.anchor:l("");let{patchFlag:$,dynamicChildren:W,slotScopeIds:q}=p;q&&(w=w?w.concat(q):q),f==null?(n(b,_,k),n(F,_,k),Z(p.children||[],_,F,A,P,m,w,g)):$>0&&$&64&&W&&f.dynamicChildren&&f.dynamicChildren.length===W.length?(le(f.dynamicChildren,W,_,A,P,m,w),(p.key!=null||A&&p===A.subTree)&&Ur(f,p,!0)):ie(f,p,_,F,A,P,m,w,g)},Ee=(f,p,_,k,A,P,m,w,g)=>{p.slotScopeIds=w,f==null?p.shapeFlag&512?A.ctx.activate(p,_,k,m,g):Ze(p,_,k,A,P,m,g):ut(f,p,g)},Ze=(f,p,_,k,A,P,m)=>{const w=f.component=ac(f,k,A);if(So(f)&&(w.ctx.renderer=L),cc(w,!1,m),w.asyncDep){if(A&&A.registerDep(w,me,m,P),!f.el){const g=w.subTree=U(at);N(null,g,p,_),f.placeholder=g.el}}else me(w,f,p,_,A,P,m)},ut=(f,p,_)=>{const k=p.component=f.component;if(za(f,p,_))if(k.asyncDep&&!k.asyncResolved){p.el=f.el,p.placeholder=f.placeholder,Y(k,p,_);return}else k.next=p,k.update();else p.el=f.el,p.placeholder=f.placeholder,k.vnode=p},me=(f,p,_,k,A,P,m)=>{const w=()=>{if(f.isMounted){let{next:$,bu:W,u:q,parent:re,vnode:pe}=f;{const ht=Br(f);if(ht){$&&($.el=pe.el,Y(f,$,m)),ht.asyncDep.then(()=>{je(()=>{f.isUnmounted||b()},A)});return}}let he=$,ke;qt(f,!1),$?($.el=pe.el,Y(f,$,m)):$=pe,W&&qs(W),(ke=$.props&&$.props.onVnodeBeforeUpdate)&&gt(ke,re,$,pe),qt(f,!0);const Ie=Qo(f),dt=f.subTree;f.subTree=Ie,M(dt,Ie,h(dt.el),O(dt),f,A,P),$.el=Ie.el,he===null&&Ka(f,Ie.el),q&&je(q,A),(ke=$.props&&$.props.onVnodeUpdated)&&je(()=>gt(ke,re,$,pe),A)}else{let $;const{el:W,props:q}=p,{bm:re,m:pe,parent:he,root:ke,type:Ie}=f,dt=Cs(p);qt(f,!1),re&&qs(re),!dt&&($=q&&q.onVnodeBeforeMount)&&gt($,he,p),qt(f,!0);{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(Ie,f.parent?f.parent.type:void 0);const ht=f.subTree=Qo(f);M(null,ht,_,k,f,A,P),p.el=ht.el}if(pe&&je(pe,A),!dt&&($=q&&q.onVnodeMounted)){const ht=p;je(()=>gt($,he,ht),A)}(p.shapeFlag&256||he&&Cs(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&je(f.a,A),f.isMounted=!0,p=_=k=null}};f.scope.on();const g=f.effect=new Xi(w);f.scope.off();const b=f.update=g.run.bind(g),F=f.job=g.runIfDirty.bind(g);F.i=f,F.id=f.uid,g.scheduler=()=>wo(F),qt(f,!0),b()},Y=(f,p,_)=>{p.component=f;const k=f.vnode.props;f.vnode=p,f.next=null,Ga(f,p.props,k,_),Qa(f,p.children,_),St(),yr(f),xt()},ie=(f,p,_,k,A,P,m,w,g=!1)=>{const b=f&&f.children,F=f?f.shapeFlag:0,$=p.children,{patchFlag:W,shapeFlag:q}=p;if(W>0){if(W&128){ft(b,$,_,k,A,P,m,w,g);return}else if(W&256){We(b,$,_,k,A,P,m,w,g);return}}q&8?(F&16&&Ne(b,A,P),$!==b&&u(_,$)):F&16?q&16?ft(b,$,_,k,A,P,m,w,g):Ne(b,A,P,!0):(F&8&&u(_,""),q&16&&Z($,_,k,A,P,m,w,g))},We=(f,p,_,k,A,P,m,w,g)=>{f=f||Xt,p=p||Xt;const b=f.length,F=p.length,$=Math.min(b,F);let W;for(W=0;W<$;W++){const q=p[W]=g?Tt(p[W]):yt(p[W]);M(f[W],q,_,null,A,P,m,w,g)}b>F?Ne(f,A,P,!0,!1,$):Z(p,_,k,A,P,m,w,g,$)},ft=(f,p,_,k,A,P,m,w,g)=>{let b=0;const F=p.length;let $=f.length-1,W=F-1;for(;b<=$&&b<=W;){const q=f[b],re=p[b]=g?Tt(p[b]):yt(p[b]);if(vs(q,re))M(q,re,_,null,A,P,m,w,g);else break;b++}for(;b<=$&&b<=W;){const q=f[$],re=p[W]=g?Tt(p[W]):yt(p[W]);if(vs(q,re))M(q,re,_,null,A,P,m,w,g);else break;$--,W--}if(b>$){if(b<=W){const q=W+1,re=q<F?p[q].el:k;for(;b<=W;)M(null,p[b]=g?Tt(p[b]):yt(p[b]),_,re,A,P,m,w,g),b++}}else if(b>W)for(;b<=$;)Pe(f[b],A,P,!0),b++;else{const q=b,re=b,pe=new Map;for(b=re;b<=W;b++){const Ue=p[b]=g?Tt(p[b]):yt(p[b]);Ue.key!=null&&pe.set(Ue.key,b)}let he,ke=0;const Ie=W-re+1;let dt=!1,ht=0;const gs=new Array(Ie);for(b=0;b<Ie;b++)gs[b]=0;for(b=q;b<=$;b++){const Ue=f[b];if(ke>=Ie){Pe(Ue,A,P,!0);continue}let pt;if(Ue.key!=null)pt=pe.get(Ue.key);else for(he=re;he<=W;he++)if(gs[he-re]===0&&vs(Ue,p[he])){pt=he;break}pt===void 0?Pe(Ue,A,P,!0):(gs[pt-re]=b+1,pt>=ht?ht=pt:dt=!0,M(Ue,p[pt],_,null,A,P,m,w,g),ke++)}const No=dt?tc(gs):Xt;for(he=No.length-1,b=Ie-1;b>=0;b--){const Ue=re+b,pt=p[Ue],Do=p[Ue+1],Fo=Ue+1<F?Do.el||eo(Do):k;gs[b]===0?M(null,pt,_,Fo,A,P,m,w,g):dt&&(he<0||b!==No[he]?Ge(pt,_,Fo,2):he--)}}},Ge=(f,p,_,k,A=null)=>{const{el:P,type:m,transition:w,children:g,shapeFlag:b}=f;if(b&6){Ge(f.component.subTree,p,_,k);return}if(b&128){f.suspense.move(p,_,k);return}if(b&64){m.move(f,p,_,L);return}if(m===ne){n(P,p,_);for(let $=0;$<g.length;$++)Ge(g[$],p,_,k);n(f.anchor,p,_);return}if(m===Dn){T(f,p,_);return}if(k!==2&&b&1&&w)if(k===0)w.persisted&&!P[$n]?n(P,p,_):(w.beforeEnter(P),n(P,p,_),je(()=>w.enter(P),A));else{const{leave:$,delayLeave:W,afterLeave:q}=w,re=()=>{f.ctx.isUnmounted?o(P):n(P,p,_)},pe=()=>{const he=P._isLeaving||!!P[$n];P._isLeaving&&P[$n](!0),w.persisted&&!he?re():$(P,()=>{re(),q&&q()})};W?W(P,re,pe):pe()}else n(P,p,_)},Pe=(f,p,_,k=!1,A=!1)=>{const{type:P,props:m,ref:w,children:g,dynamicChildren:b,shapeFlag:F,patchFlag:$,dirs:W,cacheIndex:q,memo:re}=f;if(($===-2||b&&b.hasOnce)&&(A=!1),w!=null&&(St(),ks(w,null,_,f,!0),xt()),q!=null&&(!f.ctx||f.ctx===p)&&(p.renderCache[q]=void 0),F&256){p.ctx.deactivate(f);return}const pe=F&1&&W,he=!Cs(f);let ke;if(he&&(ke=m&&m.onVnodeBeforeUnmount)&&gt(ke,p,f),F&6)Ct(f.component,_,k);else{if(F&128){f.suspense.unmount(_,k);return}pe&&Gt(f,null,p,"beforeUnmount"),F&64?f.type.remove(f,p,_,L,k):b&&!b.hasOnce&&(P!==ne||$>0&&$&64)?Ne(b,p,_,!1,!0):(P===ne&&$&384||!A&&F&16)&&Ne(g,p,_),k&&qe(f)}const Ie=re!=null&&q==null;(he&&(ke=m&&m.onVnodeUnmounted)||pe||Ie)&&je(()=>{ke&&gt(ke,p,f),pe&&Gt(f,null,p,"unmounted"),Ie&&(f.el=null)},_)},qe=f=>{const{type:p,el:_,anchor:k,transition:A}=f,P=p===ne;if(P&&!A){et(_,k);return}if(p===Dn){D(f),A&&!A.persisted&&A.afterLeave&&A.afterLeave();return}const m=P?Jn(f):f,w=()=>{P?h(_)&&et(_,k):o(_),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m&&m.shapeFlag&1&&A&&!A.persisted){const{leave:g,delayLeave:b}=A,F=m.el,$=()=>g(F,w);b?b(F,w,$):$()}else w()},et=(f,p)=>{let _;for(;f!==p;)_=v(f),o(f),f=_;o(p)},Ct=(f,p,_)=>{const{bum:k,scope:A,job:P,subTree:m,um:w,m:g,a:b}=f;ei(g),ei(b),k&&qs(k),A.stop(),P?(P.flags|=8,Pe(m,f,p,_)):f.vnode.el&&m&&(m.transition=f.vnode.transition,Pe(m,f,p,_)),w&&je(w,p),je(()=>{f.isUnmounted=!0},p)},Ne=(f,p,_,k=!1,A=!1,P=0)=>{for(let m=P;m<f.length;m++)Pe(f[m],p,_,k,A)},O=f=>{if(f.shapeFlag&6)return O(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=v(f.anchor||f.el),_=p&&p[ya];return _?v(_):p},j=(f,p,_)=>{const k=f&&p._vnode?void 0:f&&f.component?f.component.uid:lc();ha(()=>{f==null?p._vnode&&Pe(p._vnode,null,null,!0):M(p._vnode||null,f,p,null,null,null,_),p._vnode=f},k)},L={p:M,um:Pe,m:Ge,r:qe,mt:Ze,mc:Z,pc:ie,pbc:le,n:O,o:e};return{render:j,hydrate:void 0,createApp:Va(j)}}function Nn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,s=!1){const n=e.children,o=t.children;if(K(n)&&K(o))for(let i=0;i<n.length;i++){const r=n[i];let l=o[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[i]=Tt(o[i]),l.el=r.el),!s&&l.patchFlag!==-2&&Ur(r,l)),l.type===Sn&&(l.patchFlag===-1&&(l=o[i]=Tt(l)),l.el=r.el),l.type===at&&!l.el&&(l.el=r.el)}}function tc(e){const t=e.slice(),s=[0];let n,o,i,r,l;const a=e.length;for(n=0;n<a;n++){const d=e[n];if(d!==0){if(o=s[s.length-1],e[o]<d){t[n]=o,s.push(n);continue}for(i=0,r=s.length-1;i<r;)l=i+r>>1,e[s[l]]<d?i=l+1:r=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,r=s[i-1];i-- >0;)s[i]=r,r=t[r];return s}function Br(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Br(t)}function ei(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function eo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?eo(t.subTree):null}const zr=e=>e.__isSuspense;function sc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):da(e)}const ne=Symbol.for("v-fgt"),Sn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Dn=Symbol.for("v-stc"),ss=[];let Be=null;function R(e=!1){ss.push(Be=e?null:[])}function Kr(){ss.pop(),Be=ss[ss.length-1]||null}let Is=1;function on(e,t=!1){Is+=e,e<0&&Be&&t&&(Be.hasOnce=!0)}function Wr(e){return e.dynamicChildren=Is>0?Be||Xt:null,Kr(),Is>0&&Be&&Be.push(e),e}function I(e,t,s,n,o,i){return Wr(c(e,t,s,n,o,i,!0))}function it(e,t,s,n,o){return Wr(U(e,t,s,n,o,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function vs(e,t){return e.type===t.type&&e.key===t.key}const Gr=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Se(e)||X(e)?{i:Je,r:e,k:t,f:!!s}:e:null);function c(e,t=null,s=null,n=0,o=null,i=e===ne?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gr(t),ref:t&&Ys(t),scopeId:wr,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Je};return l?(rn(a,s),i&128&&e.normalize(a)):s&&(a.shapeFlag|=we(s)?8:16),Is>0&&!r&&Be&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Be.push(a),a}const U=nc;function nc(e,t=null,s=null,n=0,o=null,i=!1){if((!e||e===Oa)&&(e=at),$s(e)){const l=us(e,t,!0);return s&&rn(l,s),Is>0&&!i&&Be&&(l.shapeFlag&6?Be[Be.indexOf(e)]=l:Be.push(l)),l.patchFlag=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=ye(l)),fe(a)&&(mn(a)&&!K(a)&&(a=$e({},a)),t.style=pn(a))}const r=we(e)?1:zr(e)?128:yn(e)?64:fe(e)?4:X(e)?2:0;return c(e,t,s,n,o,r,i,!0)}function oc(e){return e?mn(e)||Dr(e)?$e({},e):e:null}function us(e,t,s=!1,n=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:a}=e,d=t?ic(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Gr(d),ref:t&&t.ref?s&&i?K(i)?i.concat(Ys(t)):[i,Ys(t)]:Ys(t):i,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!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&n&&tn(u,a.clone(u)),u}function H(e=" ",t=0){return U(Sn,null,e,t)}function Q(e="",t=!1){return t?(R(),it(at,null,e)):U(at,null,e)}function yt(e){return e==null||typeof e=="boolean"?U(at):K(e)?U(ne,null,e.slice()):$s(e)?Tt(e):U(Sn,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function rn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(K(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),rn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Dr(t)?t._ctx=Je:o===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(X(t)){if(n&65){rn(e,{default:t});return}t={default:t,_ctx:Je},s=32}else t=String(t),n&64?(s=16,t=[H(t)]):s=8;e.children=t,e.shapeFlag|=s}function ic(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(o==="style")t.style=pn([t.style,n.style]);else if(an(o)){const i=t[o],r=n[o];r&&i!==r&&!(K(i)&&i.includes(r))?t[o]=i?[].concat(i,r):r:r==null&&i==null&&!cn(o)&&(t[o]=r)}else o!==""&&(t[o]=n[o])}return t}function gt(e,t,s,n=null){lt(e,t,7,[s,n])}const rc=Or();let qr=0;function lc(){return qr}function ac(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||rc,i={uid:qr++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ji(!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:Vr(n,o),emitsOptions:Pr(n,o),emit:null,emitted:null,propsDefaults:ge,inheritAttrs:n.inheritAttrs,ctx:ge,data:ge,props:ge,attrs:ge,slots:ge,refs:ge,setupState:ge,setupContext:null,suspense:s,suspenseId:s?s.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Ha.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Jr=()=>Le||Je;let ln,Ms;{const e=hn(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>Le=s),Ms=t("__VUE_SSR_SETTERS__",s=>Ns=s)}const Ls=e=>{const t=Le;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},ti=()=>{Le&&Le.scope.off(),ln(null)};function Yr(e){return e.vnode.shapeFlag&4}let Ns=!1;function cc(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:o}=e.vnode,i=Yr(e);Wa(e,n,i,t),Ya(e,o,s||t);const r=i?uc(e,t):void 0;return t&&Ms(!1),r}function uc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pa);const{setup:n}=s;if(n){St();const o=e.setupContext=n.length>1?dc(e):null,i=Ls(e),r=Vs(n,e,0,[e.props,o]),l=ji(r);if(xt(),i(),(l||e.sp)&&!Cs(e)&&Cr(e),l){if(r.then(ti,ti),t)return r.then(a=>{Ms(!0);try{si(e,a,t)}finally{Ms(!1)}}).catch(a=>{vn(a,e,0)});e.asyncDep=r}else si(e,r)}else Qr(e)}function si(e,t,s){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=gr(t)),Qr(e)}function Qr(e,t,s){const n=e.type;e.render||(e.render=n.render||bt);{const o=Ls(e);St();try{Ia(e)}finally{xt(),o()}}}const fc={get(e,t){return Me(e,"get",""),e[t]}};function dc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,fc),slots:e.slots,emit:e.emit,expose:t}}function xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gr(bo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Es)return Es[s](e)},has(t,s){return s in t||s in Es}})):e.proxy}function hc(e){return X(e)&&"__vccOpts"in e}const oe=(e,t)=>la(e,t,Ns);function Xr(e,t,s){try{on(-1);const n=arguments.length;return n===2?fe(t)&&!K(t)?$s(t)?U(e,null,[t]):U(e,t):U(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&$s(s)&&(s=[s]),U(e,t,s))}finally{on(1)}}const pc="3.5.44";/**
14
- * @vue/runtime-dom v3.5.44
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let to;const ni=typeof window<"u"&&window.trustedTypes;if(ni)try{to=ni.createPolicy("vue",{createHTML:e=>e})}catch{}const Zr=to?e=>to.createHTML(e):e=>e,gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,oi=Rt&&Rt.createElement("template"),vc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?Rt.createElementNS(gc,e):t==="mathml"?Rt.createElementNS(mc,e):s?Rt.createElement(e,{is:s}):Rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,i){const r=s?s.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===i||!(o=o.nextSibling)););else{oi.innerHTML=Zr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=oi.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},yc=Symbol("_vtc");function _c(e,t,s){const n=e[yc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),bc=Symbol("_vsh"),wc=Symbol(""),Sc=/(?:^|;)\s*display\s*:/;function xc(e,t,s){const n=e.style,o=we(s);let i=!1;if(s&&!o){if(t)if(we(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();s[l]==null&&bs(n,l,"")}else for(const r in t)s[r]==null&&bs(n,r,"");for(const r in s){r==="display"&&(i=!0);const l=s[r];l!=null?Cc(e,r,!we(t)&&t?t[r]:void 0,l)||bs(n,r,l):bs(n,r,"")}}else if(o){if(t!==s){const r=n[wc];r&&(s+=";"+r),n.cssText=s,i=Sc.test(s)}}else t&&e.removeAttribute("style");ii in e&&((!o||t!==s)&&(e[ii]=i?n.display:""),e[bc]&&(n.display="none"))}const Ks=/\s*!important$/;function bs(e,t,s){if(K(s))s.forEach(n=>bs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))Ks.test(s)?e.setProperty(t,s.replace(Ks,""),"important"):e.setProperty(t,s);else{const n=kc(e,t);Ks.test(s)?e.setProperty(Kt(n),s.replace(Ks,""),"important"):e[n]=s}}const ri=["Webkit","Moz","ms"],Fn={};function kc(e,t){const s=Fn[t];if(s)return s;let n=st(t);if(n!=="filter"&&n in e)return Fn[t]=n;n=zi(n);for(let o=0;o<ri.length;o++){const i=ri[o]+n;if(i in e)return Fn[t]=i}return t}function Cc(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&we(n)&&s===n}const li="http://www.w3.org/1999/xlink";function ai(e,t,s,n,o,i=$l(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(li,t.slice(6,t.length)):e.setAttributeNS(li,t,s):s==null||i&&!Wi(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Ye(s)?String(s):s)}function ci(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Zr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Wi(s):s==null&&l==="string"?(s="",r=!0):l==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(o||t)}function $t(e,t,s,n){e.addEventListener(t,s,n)}function Ec(e,t,s,n){e.removeEventListener(t,s,n)}const ui=Symbol("_vei");function Ac(e,t,s,n,o=null){const i=e[ui]||(e[ui]={}),r=i[t];if(n&&r)r.value=n;else{const[l,a]=Oc(t);if(n){const d=i[t]=$c(n,o);$t(e,l,d,a)}else r&&(Ec(e,l,r,a),i[t]=void 0)}}const Rc=/(Once|Passive|Capture)$/,Tc=/^on:?(?:Once|Passive|Capture)$/;function Oc(e){let t,s;for(;(s=e.match(Rc))&&!Tc.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let Vn=0;const Pc=Promise.resolve(),Ic=()=>Vn||(Pc.then(()=>Vn=0),Vn=Date.now());function $c(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const o=s.value;if(K(o)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const r=o.slice(),l=[n];for(let a=0;a<r.length&&!n._stopped;a++){const d=r[a];d&&lt(d,t,5,l)}}else lt(o,t,5,[n])};return s.value=e,s.attached=Ic(),s}const fi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Mc=(e,t,s,n,o,i)=>{const r=o==="svg";t==="class"?_c(e,n,r):t==="style"?xc(e,s,n):an(t)?cn(t)||Ac(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nc(e,t,n,r))?(ci(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ai(e,t,n,r,i,t!=="value")):e._isVueCE&&(Dc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(n)))?ci(e,st(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ai(e,t,n,r))};function Nc(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&fi(t)&&X(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return fi(t)&&we(s)?!1:t in e}function Dc(e,t){const s=e._def.props;if(!s)return!1;const n=st(t);return Array.isArray(s)?s.some(o=>st(o)===n):Object.keys(s).some(o=>st(o)===n)}const zt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?s=>qs(t,s):t};function Fc(e){e.target.composing=!0}function di(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze=Symbol("_assign"),Ws=Symbol("_initialValue");function Ln(e,t,s){return t&&(e=e.trim()),s&&(e=dn(e)),e}const Ut={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e.parentNode&&(e.type==="text"?e[Ws]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ws]=e.defaultValue.replace(/\r\n?/g,`
18
- `))),e[ze]=zt(o);const i=n||o.props&&o.props.type==="number";$t(e,t?"change":"input",r=>{r.target.composing||e[ze](Ln(e.value,s,i))}),(s||i)&&$t(e,"change",()=>{e.value=Ln(e.value,s,i)}),t||($t(e,"compositionstart",Fc),$t(e,"compositionend",di),$t(e,"change",di))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const o=t??"",i=e[Ws];delete e[Ws],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[ze](Ln(e.value,s,n)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ze]=zt(r),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?dn(e.value):e.value,a=t??"";if(l===a)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},Vc={deep:!0,created(e,t,s){e[ze]=zt(s),$t(e,"change",()=>{const n=e._modelValue,o=fs(e),i=e.checked,r=e[ze];if(K(n)){const l=ho(n,o),a=l!==-1;if(i&&!a)r(n.concat(o));else if(!i&&a){const d=[...n];d.splice(l,1),r(d)}}else if(Nt(n)){const l=new Set(n);i?l.add(o):l.delete(o),r(l)}else r(el(e,i))})},mounted:hi,beforeUpdate(e,t,s){e[ze]=zt(s),hi(e,t,s)}};function hi(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(K(t))o=ho(t,n.props.value)>-1;else if(Nt(t))o=t.has(n.props.value);else{if(t===s)return;o=rt(t,el(e,!0))}e.checked!==o&&(e.checked=o)}const Lc={created(e,{value:t},s){e.checked=rt(t,s.props.value),e[ze]=zt(s),$t(e,"change",()=>{e[ze](fs(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[ze]=zt(n),t!==s&&(e.checked=rt(t,n.props.value))}},Co={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,$t(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>s?dn(fs(a)):fs(a)),i=e.multiple,r=i?Nt(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[i,i?K(r)?o.slice():o:r];try{e[ze](r)}finally{ps(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[ze]=zt(n)},mounted(e,{value:t}){pi(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[ze]=zt(s)},updated(e,{value:t}){const s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Hc(t,s[1],s[0]))&&pi(e,t)}};function Hc(e,t,s){if(!s||K(e))return rt(e,t);if(Nt(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}function pi(e,t){const s=e.multiple,n=K(t);if(!(s&&!n&&!Nt(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],l=fs(r);if(s)if(n){const a=typeof l;a==="string"||a==="number"?r.selected=t.some(d=>String(d)===String(l)):r.selected=ho(t,l)>-1}else r.selected=t.has(l);else if(rt(fs(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fs(e){return"_value"in e?e._value:e.value}function el(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jc={created(e,t,s){Gs(e,t,s,null,"created")},mounted(e,t,s){Gs(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Gs(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Gs(e,t,s,n,"updated")}};function Uc(e,t){switch(e){case"SELECT":return Co;case"TEXTAREA":return Ut;default:switch(t){case"checkbox":return Vc;case"radio":return Lc;default:return Ut}}}function Gs(e,t,s,n,o){const r=Uc(e.tagName,s.props&&s.props.type)[o];r&&r(e,t,s,n)}const Bc=["ctrl","shift","alt","meta"],zc={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)=>Bc.some(s=>e[`${s}Key`]&&!t.includes(s))},so=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(o,...i)=>{for(let r=0;r<t.length;r++){const l=zc[t[r]];if(l&&l(o,t))return}return e(o,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wc=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=o=>{if(!("key"in o))return;const i=Kt(o.key);if(t.some(r=>r===i||Kc[r]===i))return e(o)})},Gc=$e({patchProp:Mc},vc);let gi;function qc(){return gi||(gi=Xa(Gc))}const Jc=(...e)=>{const t=qc().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Qc(n);if(!o)return;const i=t._component;!X(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=s(o,!1,Yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return we(e)?document.querySelector(e):e}/*!
19
- * pinia v2.3.1
20
- * (c) 2025 Eduardo San Martin Morote
21
- * @license MIT
22
- */let tl;const kn=e=>tl=e,sl=Symbol();function no(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var As;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(As||(As={}));function Xc(){const e=Yi(!0),t=e.run(()=>se({}));let s=[],n=[];const o=bo({install(i){kn(o),o._a=i,i.provide(sl,o),i.config.globalProperties.$pinia=o,n.forEach(r=>s.push(r)),n=[]},use(i){return this._a?s.push(i):n.push(i),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return o}const nl=()=>{};function mi(e,t,s,n=nl){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!s&&Qi()&&Dl(o),o}function rs(e,...t){e.slice().forEach(s=>{s(...t)})}const Zc=e=>e(),vi=Symbol(),Hn=Symbol();function oo(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],o=e[s];no(o)&&no(n)&&e.hasOwnProperty(s)&&!Se(n)&&!wt(n)?e[s]=oo(o,n):e[s]=n}return e}const eu=Symbol();function tu(e){return!no(e)||!e.hasOwnProperty(eu)}const{assign:Vt}=Object;function su(e){return!!(Se(e)&&e.effect)}function nu(e,t,s,n){const{state:o,actions:i,getters:r}=t,l=s.state.value[e];let a;function d(){l||(s.state.value[e]=o?o():{});const u=na(s.state.value[e]);return Vt(u,i,Object.keys(r||{}).reduce((h,v)=>(h[v]=bo(oe(()=>{kn(s);const x=s._s.get(e);return r[v].call(x,x)})),h),{}))}return a=ol(e,d,t,s,n,!0),a}function ol(e,t,s={},n,o,i){let r;const l=Vt({actions:{}},s),a={deep:!0};let d,u,h=[],v=[],x;const V=n.state.value[e];!i&&!V&&(n.state.value[e]={});let M;function z(Z){let ee;d=u=!1,typeof Z=="function"?(Z(n.state.value[e]),ee={type:As.patchFunction,storeId:e,events:x}):(oo(n.state.value[e],Z),ee={type:As.patchObject,payload:Z,storeId:e,events:x});const le=M=Symbol();ps().then(()=>{M===le&&(d=!0)}),u=!0,rs(h,ee,n.state.value[e])}const N=i?function(){const{state:ee}=s,le=ee?ee():{};this.$patch(de=>{Vt(de,le)})}:nl;function E(){r.stop(),h=[],v=[],n._s.delete(e)}const T=(Z,ee="")=>{if(vi in Z)return Z[Hn]=ee,Z;const le=function(){kn(n);const de=Array.from(arguments),Te=[],Ee=[];function Ze(Y){Te.push(Y)}function ut(Y){Ee.push(Y)}rs(v,{args:de,name:le[Hn],store:B,after:Ze,onError:ut});let me;try{me=Z.apply(this&&this.$id===e?this:B,de)}catch(Y){throw rs(Ee,Y),Y}return me instanceof Promise?me.then(Y=>(rs(Te,Y),Y)).catch(Y=>(rs(Ee,Y),Promise.reject(Y))):(rs(Te,me),me)};return le[vi]=!0,le[Hn]=ee,le},D={_p:n,$id:e,$onAction:mi.bind(null,v),$patch:z,$reset:N,$subscribe(Z,ee={}){const le=mi(h,Z,ee.detached,()=>de()),de=r.run(()=>Mt(()=>n.state.value[e],Te=>{(ee.flush==="sync"?u:d)&&Z({storeId:e,type:As.direct,events:x},Te)},Vt({},a,ee)));return le},$dispose:E},B=ns(D);n._s.set(e,B);const te=(n._a&&n._a.runWithContext||Zc)(()=>n._e.run(()=>(r=Yi()).run(()=>t({action:T}))));for(const Z in te){const ee=te[Z];if(Se(ee)&&!su(ee)||wt(ee))i||(V&&tu(ee)&&(Se(ee)?ee.value=V[Z]:oo(ee,V[Z])),n.state.value[e][Z]=ee);else if(typeof ee=="function"){const le=T(ee,Z);te[Z]=le,l.actions[Z]=ee}}return Vt(B,te),Vt(ae(B),te),Object.defineProperty(B,"$state",{get:()=>n.state.value[e],set:Z=>{z(ee=>{Vt(ee,Z)})}}),n._p.forEach(Z=>{Vt(B,r.run(()=>Z({store:B,app:n._a,pinia:n,options:l})))}),V&&i&&s.hydrate&&s.hydrate(B.$state,V),d=!0,u=!0,B}/*! #__NO_SIDE_EFFECTS__ */function Hs(e,t,s){let n,o;const i=typeof t=="function";typeof e=="string"?(n=e,o=i?s:t):(o=e,n=e.id);function r(l,a){const d=pa();return l=l||(d?ot(sl,null):null),l&&kn(l),l=tl,l._s.has(n)||(i?ol(n,t,o,l):nu(n,o,l)),l._s.get(n)}return r.$id=n,r}/*!
23
- * vue-router v4.6.4
24
- * (c) 2025 Eduardo San Martin Morote
25
- * @license MIT
26
- */const cs=typeof document<"u";function il(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ou(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&il(e.default)}const ue=Object.assign;function jn(e,t){const s={};for(const n in t){const o=t[n];s[n]=ct(o)?o.map(e):e(o)}return s}const Rs=()=>{},ct=Array.isArray;function yi(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const rl=/#/g,iu=/&/g,ru=/\//g,lu=/=/g,au=/\?/g,ll=/\+/g,cu=/%5B/g,uu=/%5D/g,al=/%5E/g,fu=/%60/g,cl=/%7B/g,du=/%7C/g,ul=/%7D/g,hu=/%20/g;function Eo(e){return e==null?"":encodeURI(""+e).replace(du,"|").replace(cu,"[").replace(uu,"]")}function pu(e){return Eo(e).replace(cl,"{").replace(ul,"}").replace(al,"^")}function io(e){return Eo(e).replace(ll,"%2B").replace(hu,"+").replace(rl,"%23").replace(iu,"%26").replace(fu,"`").replace(cl,"{").replace(ul,"}").replace(al,"^")}function gu(e){return io(e).replace(lu,"%3D")}function mu(e){return Eo(e).replace(rl,"%23").replace(au,"%3F")}function vu(e){return mu(e).replace(ru,"%2F")}function Ds(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const yu=/\/$/,_u=e=>e.replace(yu,"");function Un(e,t,s="/"){let n,o={},i="",r="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(n=t.slice(0,a),i=t.slice(a,l>0?l:t.length),o=e(i.slice(1))),l>=0&&(n=n||t.slice(0,l),r=t.slice(l,t.length)),n=xu(n??t,s),{fullPath:n+i+r,path:n,query:o,hash:Ds(r)}}function bu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function _i(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wu(e,t,s){const n=t.matched.length-1,o=s.matched.length-1;return n>-1&&n===o&&ds(t.matched[n],s.matched[o])&&fl(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Su(e[s],t[s]))return!1;return!0}function Su(e,t){return ct(e)?bi(e,t):ct(t)?bi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function bi(e,t){return ct(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function xu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=s.length-1,r,l;for(r=0;r<n.length;r++)if(l=n[r],l!==".")if(l==="..")i>1&&i--;else break;return s.slice(0,i).join("/")+"/"+n.slice(r).join("/")}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ro=function(e){return e.pop="pop",e.push="push",e}({}),Bn=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ku(e){if(!e)if(cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_u(e)}const Cu=/^[^#]+#/;function Eu(e,t){return e.replace(Cu,"#")+t}function Au(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Cn=()=>({left:window.scrollX,top:window.scrollY});function Ru(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=Au(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 wi(e,t){return(history.state?history.state.position-t:-1)+e}const lo=new Map;function Tu(e,t){lo.set(e,t)}function Ou(e){const t=lo.get(e);return lo.delete(e),t}function Pu(e){return typeof e=="string"||e&&typeof e=="object"}function dl(e){return typeof e=="string"||typeof e=="symbol"}let be=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const hl=Symbol("");be.MATCHER_NOT_FOUND+"",be.NAVIGATION_GUARD_REDIRECT+"",be.NAVIGATION_ABORTED+"",be.NAVIGATION_CANCELLED+"",be.NAVIGATION_DUPLICATED+"";function hs(e,t){return ue(new Error,{type:e,[hl]:!0},t)}function At(e,t){return e instanceof Error&&hl in e&&(t==null||!!(e.type&t))}const Iu=["params","query","hash"];function $u(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of Iu)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Mu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const o=s[n].replace(ll," "),i=o.indexOf("="),r=Ds(i<0?o:o.slice(0,i)),l=i<0?null:Ds(o.slice(i+1));if(r in t){let a=t[r];ct(a)||(a=t[r]=[a]),a.push(l)}else t[r]=l}return t}function Si(e){let t="";for(let s in e){const n=e[s];if(s=gu(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(ct(n)?n.map(o=>o&&io(o)):[n&&io(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=ct(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const Du=Symbol(""),xi=Symbol(""),En=Symbol(""),pl=Symbol(""),ao=Symbol("");function ys(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Ht(e,t,s,n,o,i=r=>r()){const r=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const d=v=>{v===!1?a(hs(be.NAVIGATION_ABORTED,{from:s,to:t})):v instanceof Error?a(v):Pu(v)?a(hs(be.NAVIGATION_GUARD_REDIRECT,{from:t,to:v})):(r&&n.enterCallbacks[o]===r&&typeof v=="function"&&r.push(v),l())},u=i(()=>e.call(n&&n.instances[o],t,s,d));let h=Promise.resolve(u);e.length<3&&(h=h.then(d)),h.catch(v=>a(v))})}function zn(e,t,s,n,o=i=>i()){const i=[];for(const r of e)for(const l in r.components){let a=r.components[l];if(!(t!=="beforeRouteEnter"&&!r.instances[l]))if(il(a)){const d=(a.__vccOpts||a)[t];d&&i.push(Ht(d,s,n,r,l,o))}else{let d=a();i.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${r.path}"`);const h=ou(u)?u.default:u;r.mods[l]=u,r.components[l]=h;const v=(h.__vccOpts||h)[t];return v&&Ht(v,s,n,r,l,o)()}))}}return i}function Fu(e,t){const s=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;r<i;r++){const l=t.matched[r];l&&(e.matched.find(d=>ds(d,l))?n.push(l):s.push(l));const a=e.matched[r];a&&(t.matched.find(d=>ds(d,a))||o.push(a))}return[s,n,o]}/*!
27
- * vue-router v4.6.4
28
- * (c) 2025 Eduardo San Martin Morote
29
- * @license MIT
30
- */let Vu=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:s,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(r);return l[0]!=="/"&&(l="/"+l),_i(l,"")}return _i(s,e)+n+o}function Lu(e,t,s,n){let o=[],i=[],r=null;const l=({state:v})=>{const x=gl(e,location),V=s.value,M=t.value;let z=0;if(v){if(s.value=x,t.value=v,r&&r===V){r=null;return}z=M?v.position-M.position:0}else n(x);o.forEach(N=>{N(s.value,V,{delta:z,type:ro.pop,direction:z?z>0?Bn.forward:Bn.back:Bn.unknown})})};function a(){r=s.value}function d(v){o.push(v);const x=()=>{const V=o.indexOf(v);V>-1&&o.splice(V,1)};return i.push(x),x}function u(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(ue({},v.state,{scroll:Cn()}),"")}}function h(){for(const v of i)v();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:d,destroy:h}}function ki(e,t,s,n=!1,o=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:o?Cn():null}}function Hu(e){const{history:t,location:s}=window,n={value:gl(e,s)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,d,u){const h=e.indexOf("#"),v=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+a:Vu()+e+a;try{t[u?"replaceState":"pushState"](d,"",v),o.value=d}catch(x){console.error(x),s[u?"replace":"assign"](v)}}function r(a,d){i(a,ue({},t.state,ki(o.value.back,a,o.value.forward,!0),d,{position:o.value.position}),!0),n.value=a}function l(a,d){const u=ue({},o.value,t.state,{forward:a,scroll:Cn()});i(u.current,u,!0),i(a,ue({},ki(n.value,a,null),{position:u.position+1},d),!1),n.value=a}return{location:n,state:o,push:l,replace:r}}function ju(e){e=ku(e);const t=Hu(e),s=Lu(e,t.state,t.location,t.replace);function n(i,r=!0){r||s.pauseListeners(),history.go(i)}const o=ue({location:"",base:e,go:n,createHref:Eu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Uu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ju(e)}let Zt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ae=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Ae||{});const Bu={type:Zt.Static,value:""},zu=/[a-zA-Z0-9_]/;function Ku(e){if(!e)return[[]];if(e==="/")return[[Bu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${s})/"${d}": ${x}`)}let s=Ae.Static,n=s;const o=[];let i;function r(){i&&o.push(i),i=[]}let l=0,a,d="",u="";function h(){d&&(s===Ae.Static?i.push({type:Zt.Static,value:d}):s===Ae.Param||s===Ae.ParamRegExp||s===Ae.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Zt.Param,value:d,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&s!==Ae.ParamRegExp){n=s,s=Ae.EscapeNext;continue}switch(s){case Ae.Static:a==="/"?(d&&h(),r()):a===":"?(h(),s=Ae.Param):v();break;case Ae.EscapeNext:v(),s=n;break;case Ae.Param:a==="("?s=Ae.ParamRegExp:zu.test(a)?v():(h(),s=Ae.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Ae.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:s=Ae.ParamRegExpEnd:u+=a;break;case Ae.ParamRegExpEnd:h(),s=Ae.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return s===Ae.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),h(),r(),o}const Ci="[^/]+?",Wu={sensitive:!1,strict:!1,start:!0,end:!0};var Fe=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Fe||{});const Gu=/[.+*?^${}()[\]/\\]/g;function qu(e,t){const s=ue({},Wu,t),n=[];let o=s.start?"^":"";const i=[];for(const d of e){const u=d.length?[]:[Fe.Root];s.strict&&!d.length&&(o+="/");for(let h=0;h<d.length;h++){const v=d[h];let x=Fe.Segment+(s.sensitive?Fe.BonusCaseSensitive:0);if(v.type===Zt.Static)h||(o+="/"),o+=v.value.replace(Gu,"\\$&"),x+=Fe.Static;else if(v.type===Zt.Param){const{value:V,repeatable:M,optional:z,regexp:N}=v;i.push({name:V,repeatable:M,optional:z});const E=N||Ci;if(E!==Ci){x+=Fe.BonusCustomRegExp;try{`${E}`}catch(D){throw new Error(`Invalid custom RegExp for param "${V}" (${E}): `+D.message)}}let T=M?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;h||(T=z&&d.length<2?`(?:/${T})`:"/"+T),z&&(T+="?"),o+=T,x+=Fe.Dynamic,z&&(x+=Fe.BonusOptional),M&&(x+=Fe.BonusRepeatable),E===".*"&&(x+=Fe.BonusWildcard)}u.push(x)}n.push(u)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=Fe.BonusStrict}s.strict||(o+="/?"),s.end?o+="$":s.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,s.sensitive?"":"i");function l(d){const u=d.match(r),h={};if(!u)return null;for(let v=1;v<u.length;v++){const x=u[v]||"",V=i[v-1];h[V.name]=x&&V.repeatable?x.split("/"):x}return h}function a(d){let u="",h=!1;for(const v of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const x of v)if(x.type===Zt.Static)u+=x.value;else if(x.type===Zt.Param){const{value:V,repeatable:M,optional:z}=x,N=V in d?d[V]:"";if(ct(N)&&!M)throw new Error(`Provided param "${V}" is an array but it is not repeatable (* or + modifiers)`);const E=ct(N)?N.join("/"):N;if(!E)if(z)v.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${V}"`);u+=E}}return u||"/"}return{re:r,score:n,keys:i,parse:l,stringify:a}}function Ju(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===Fe.Static+Fe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Fe.Static+Fe.Segment?1:-1:0}function ml(e,t){let s=0;const n=e.score,o=t.score;for(;s<n.length&&s<o.length;){const i=Ju(n[s],o[s]);if(i)return i;s++}if(Math.abs(o.length-n.length)===1){if(Ei(n))return 1;if(Ei(o))return-1}return o.length-n.length}function Ei(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yu={strict:!1,end:!0,sensitive:!1};function Qu(e,t,s){const n=qu(Ku(e.path),s),o=ue(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Xu(e,t){const s=[],n=new Map;t=yi(Yu,t);function o(h){return n.get(h)}function i(h,v,x){const V=!x,M=Ri(h);M.aliasOf=x&&x.record;const z=yi(t,h),N=[M];if("alias"in h){const D=typeof h.alias=="string"?[h.alias]:h.alias;for(const B of D)N.push(Ri(ue({},M,{components:x?x.record.components:M.components,path:B,aliasOf:x?x.record:M})))}let E,T;for(const D of N){const{path:B}=D;if(v&&B[0]!=="/"){const _e=v.record.path,te=_e[_e.length-1]==="/"?"":"/";D.path=v.record.path+(B&&te+B)}if(E=Qu(D,v,z),x?x.alias.push(E):(T=T||E,T!==E&&T.alias.push(E),V&&h.name&&!Ti(E)&&r(h.name)),vl(E)&&a(E),M.children){const _e=M.children;for(let te=0;te<_e.length;te++)i(_e[te],E,x&&x.children[te])}x=x||E}return T?()=>{r(T)}:Rs}function r(h){if(dl(h)){const v=n.get(h);v&&(n.delete(h),s.splice(s.indexOf(v),1),v.children.forEach(r),v.alias.forEach(r))}else{const v=s.indexOf(h);v>-1&&(s.splice(v,1),h.record.name&&n.delete(h.record.name),h.children.forEach(r),h.alias.forEach(r))}}function l(){return s}function a(h){const v=tf(h,s);s.splice(v,0,h),h.record.name&&!Ti(h)&&n.set(h.record.name,h)}function d(h,v){let x,V={},M,z;if("name"in h&&h.name){if(x=n.get(h.name),!x)throw hs(be.MATCHER_NOT_FOUND,{location:h});z=x.record.name,V=ue(Ai(v.params,x.keys.filter(T=>!T.optional).concat(x.parent?x.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),h.params&&Ai(h.params,x.keys.map(T=>T.name))),M=x.stringify(V)}else if(h.path!=null)M=h.path,x=s.find(T=>T.re.test(M)),x&&(V=x.parse(M),z=x.record.name);else{if(x=v.name?n.get(v.name):s.find(T=>T.re.test(v.path)),!x)throw hs(be.MATCHER_NOT_FOUND,{location:h,currentLocation:v});z=x.record.name,V=ue({},v.params,h.params),M=x.stringify(V)}const N=[];let E=x;for(;E;)N.unshift(E.record),E=E.parent;return{name:z,path:M,params:V,matched:N,meta:ef(N)}}e.forEach(h=>i(h));function u(){s.length=0,n.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:u,getRoutes:l,getRecordMatcher:o}}function Ai(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Ri(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zu(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 Zu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Ti(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ef(e){return e.reduce((t,s)=>ue(t,s.meta),{})}function tf(e,t){let s=0,n=t.length;for(;s!==n;){const i=s+n>>1;ml(e,t[i])<0?n=i:s=i+1}const o=sf(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function sf(e){let t=e;for(;t=t.parent;)if(vl(t)&&ml(e,t)===0)return t}function vl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Oi(e){const t=ot(En),s=ot(pl),n=oe(()=>{const a=y(e.to);return t.resolve(a)}),o=oe(()=>{const{matched:a}=n.value,{length:d}=a,u=a[d-1],h=s.matched;if(!u||!h.length)return-1;const v=h.findIndex(ds.bind(null,u));if(v>-1)return v;const x=Pi(a[d-2]);return d>1&&Pi(u)===x&&h[h.length-1].path!==x?h.findIndex(ds.bind(null,a[d-2])):v}),i=oe(()=>o.value>-1&&lf(s.params,n.value.params)),r=oe(()=>o.value>-1&&o.value===s.matched.length-1&&fl(s.params,n.value.params));function l(a={}){if(rf(a)){const d=t[y(e.replace)?"replace":"push"](y(e.to)).catch(Rs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:oe(()=>n.value.href),isActive:i,isExactActive:r,navigate:l}}function nf(e){return e.length===1?e[0]:e}const of=He({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:Oi,setup(e,{slots:t}){const s=ns(Oi(e)),{options:n}=ot(En),o=oe(()=>({[Ii(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Ii(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const i=t.default&&nf(t.default(s));return e.custom?i:Xr("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},i)}}}),Qt=of;function rf(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 lf(e,t){for(const s in t){const n=t[s],o=e[s];if(typeof n=="string"){if(n!==o)return!1}else if(!ct(o)||o.length!==n.length||n.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Pi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ii=(e,t,s)=>e??t??s,af=He({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=ot(ao),o=oe(()=>e.route||n.value),i=ot(xi,0),r=oe(()=>{let d=y(i);const{matched:u}=o.value;let h;for(;(h=u[d])&&!h.components;)d++;return d}),l=oe(()=>o.value.matched[r.value]);Js(xi,oe(()=>r.value+1)),Js(Du,l),Js(ao,o);const a=se();return Mt(()=>[a.value,l.value,e.name],([d,u,h],[v,x,V])=>{u&&(u.instances[h]=d,x&&x!==u&&d&&d===v&&(u.leaveGuards.size||(u.leaveGuards=x.leaveGuards),u.updateGuards.size||(u.updateGuards=x.updateGuards))),d&&u&&(!x||!ds(u,x)||!v)&&(u.enterCallbacks[h]||[]).forEach(M=>M(d))},{flush:"post"}),()=>{const d=o.value,u=e.name,h=l.value,v=h&&h.components[u];if(!v)return $i(s.default,{Component:v,route:d});const x=h.props[u],V=x?x===!0?d.params:typeof x=="function"?x(d):x:null,z=Xr(v,ue({},V,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(h.instances[u]=null)},ref:a}));return $i(s.default,{Component:z,route:d})||z}}});function $i(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const yl=af;function cf(e){const t=Xu(e.routes,e),s=e.parseQuery||Mu,n=e.stringifyQuery||Si,o=e.history,i=ys(),r=ys(),l=ys(),a=ea(Ft);let d=Ft;cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=jn.bind(null,O=>""+O),h=jn.bind(null,vu),v=jn.bind(null,Ds);function x(O,j){let L,G;return dl(O)?(L=t.getRecordMatcher(O),G=j):G=O,t.addRoute(G,L)}function V(O){const j=t.getRecordMatcher(O);j&&t.removeRoute(j)}function M(){return t.getRoutes().map(O=>O.record)}function z(O){return!!t.getRecordMatcher(O)}function N(O,j){if(j=ue({},j||a.value),typeof O=="string"){const k=Un(s,O,j.path),A=t.resolve({path:k.path},j),P=o.createHref(k.fullPath);return ue(k,A,{params:v(A.params),hash:Ds(k.hash),redirectedFrom:void 0,href:P})}let L;if(O.path!=null)L=ue({},O,{path:Un(s,O.path,j.path).path});else{const k=ue({},O.params);for(const A in k)k[A]==null&&delete k[A];L=ue({},O,{params:h(k)}),j.params=h(j.params)}const G=t.resolve(L,j),f=O.hash||"";G.params=u(v(G.params));const p=bu(n,ue({},O,{hash:pu(f),path:G.path})),_=o.createHref(p);return ue({fullPath:p,hash:f,query:n===Si?Nu(O.query):O.query||{}},G,{redirectedFrom:void 0,href:_})}function E(O){return typeof O=="string"?Un(s,O,a.value.path):ue({},O)}function T(O,j){if(d!==O)return hs(be.NAVIGATION_CANCELLED,{from:j,to:O})}function D(O){return te(O)}function B(O){return D(ue(E(O),{replace:!0}))}function _e(O,j){const L=O.matched[O.matched.length-1];if(L&&L.redirect){const{redirect:G}=L;let f=typeof G=="function"?G(O,j):G;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=E(f):{path:f},f.params={}),ue({query:O.query,hash:O.hash,params:f.path!=null?{}:O.params},f)}}function te(O,j){const L=d=N(O),G=a.value,f=O.state,p=O.force,_=O.replace===!0,k=_e(L,G);if(k)return te(ue(E(k),{state:typeof k=="object"?ue({},f,k.state):f,force:p,replace:_}),j||L);const A=L;A.redirectedFrom=j;let P;return!p&&wu(n,G,L)&&(P=hs(be.NAVIGATION_DUPLICATED,{to:A,from:G}),Ge(G,G,!0,!1)),(P?Promise.resolve(P):le(A,G)).catch(m=>At(m)?At(m,be.NAVIGATION_GUARD_REDIRECT)?m:ft(m):ie(m,A,G)).then(m=>{if(m){if(At(m,be.NAVIGATION_GUARD_REDIRECT))return te(ue({replace:_},E(m.to),{state:typeof m.to=="object"?ue({},f,m.to.state):f,force:p}),j||A)}else m=Te(A,G,!0,_,f);return de(A,G,m),m})}function Z(O,j){const L=T(O,j);return L?Promise.reject(L):Promise.resolve()}function ee(O){const j=et.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(O):O()}function le(O,j){let L;const[G,f,p]=Fu(O,j);L=zn(G.reverse(),"beforeRouteLeave",O,j);for(const k of G)k.leaveGuards.forEach(A=>{L.push(Ht(A,O,j))});const _=Z.bind(null,O,j);return L.push(_),Ne(L).then(()=>{L=[];for(const k of i.list())L.push(Ht(k,O,j));return L.push(_),Ne(L)}).then(()=>{L=zn(f,"beforeRouteUpdate",O,j);for(const k of f)k.updateGuards.forEach(A=>{L.push(Ht(A,O,j))});return L.push(_),Ne(L)}).then(()=>{L=[];for(const k of p)if(k.beforeEnter)if(ct(k.beforeEnter))for(const A of k.beforeEnter)L.push(Ht(A,O,j));else L.push(Ht(k.beforeEnter,O,j));return L.push(_),Ne(L)}).then(()=>(O.matched.forEach(k=>k.enterCallbacks={}),L=zn(p,"beforeRouteEnter",O,j,ee),L.push(_),Ne(L))).then(()=>{L=[];for(const k of r.list())L.push(Ht(k,O,j));return L.push(_),Ne(L)}).catch(k=>At(k,be.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function de(O,j,L){l.list().forEach(G=>ee(()=>G(O,j,L)))}function Te(O,j,L,G,f){const p=T(O,j);if(p)return p;const _=j===Ft,k=cs?history.state:{};L&&(G||_?o.replace(O.fullPath,ue({scroll:_&&k&&k.scroll},f)):o.push(O.fullPath,f)),a.value=O,Ge(O,j,L,_),ft()}let Ee;function Ze(){Ee||(Ee=o.listen((O,j,L)=>{if(!Ct.listening)return;const G=N(O),f=_e(G,Ct.currentRoute.value);if(f){te(ue(f,{replace:!0,force:!0}),G).catch(Rs);return}d=G;const p=a.value;cs&&Tu(wi(p.fullPath,L.delta),Cn()),le(G,p).catch(_=>At(_,be.NAVIGATION_ABORTED|be.NAVIGATION_CANCELLED)?_:At(_,be.NAVIGATION_GUARD_REDIRECT)?(te(ue(E(_.to),{force:!0}),G).then(k=>{At(k,be.NAVIGATION_ABORTED|be.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===ro.pop&&o.go(-1,!1)}).catch(Rs),Promise.reject()):(L.delta&&o.go(-L.delta,!1),ie(_,G,p))).then(_=>{_=_||Te(G,p,!1),_&&(L.delta&&!At(_,be.NAVIGATION_CANCELLED)?o.go(-L.delta,!1):L.type===ro.pop&&At(_,be.NAVIGATION_ABORTED|be.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),de(G,p,_)}).catch(Rs)}))}let ut=ys(),me=ys(),Y;function ie(O,j,L){ft(O);const G=me.list();return G.length?G.forEach(f=>f(O,j,L)):console.error(O),Promise.reject(O)}function We(){return Y&&a.value!==Ft?Promise.resolve():new Promise((O,j)=>{ut.add([O,j])})}function ft(O){return Y||(Y=!O,Ze(),ut.list().forEach(([j,L])=>O?L(O):j()),ut.reset()),O}function Ge(O,j,L,G){const{scrollBehavior:f}=e;if(!cs||!f)return Promise.resolve();const p=!L&&Ou(wi(O.fullPath,0))||(G||!L)&&history.state&&history.state.scroll||null;return ps().then(()=>f(O,j,p)).then(_=>_&&Ru(_)).catch(_=>ie(_,O,j))}const Pe=O=>o.go(O);let qe;const et=new Set,Ct={currentRoute:a,listening:!0,addRoute:x,removeRoute:V,clearRoutes:t.clearRoutes,hasRoute:z,getRoutes:M,resolve:N,options:e,push:D,replace:B,go:Pe,back:()=>Pe(-1),forward:()=>Pe(1),beforeEach:i.add,beforeResolve:r.add,afterEach:l.add,onError:me.add,isReady:We,install(O){O.component("RouterLink",Qt),O.component("RouterView",yl),O.config.globalProperties.$router=Ct,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),cs&&!qe&&a.value===Ft&&(qe=!0,D(o.location).catch(G=>{}));const j={};for(const G in Ft)Object.defineProperty(j,G,{get:()=>a.value[G],enumerable:!0});O.provide(En,Ct),O.provide(pl,hr(j)),O.provide(ao,a);const L=O.unmount;et.add(O),O.unmount=function(){et.delete(O),et.size<1&&(d=Ft,Ee&&Ee(),Ee=null,a.value=Ft,qe=!1,Y=!1),L()}}};function Ne(O){return O.reduce((j,L)=>j.then(()=>ee(L)),Promise.resolve())}return Ct}function uf(){return ot(En)}class ff{constructor(t=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws`){Wt(this,"socket");Wt(this,"attempts",0);Wt(this,"timer");Wt(this,"handlers",new Set);Wt(this,"stateHandlers",new Set);Wt(this,"reconnectAfterResync");this.url=t}onMessage(t){return this.handlers.add(t),()=>this.handlers.delete(t)}onConnectionChange(t){return this.stateHandlers.add(t),()=>this.stateHandlers.delete(t)}onResync(t){this.reconnectAfterResync=()=>void t()}connect(){var s;clearTimeout(this.timer),(s=this.socket)==null||s.close();const t=new WebSocket(this.url);this.socket=t,t.onopen=()=>{var n;this.attempts=0,this.stateHandlers.forEach(o=>o(!0)),(n=this.reconnectAfterResync)==null||n.call(this)},t.onmessage=n=>{try{const o=JSON.parse(n.data);this.handlers.forEach(i=>i(o))}catch{}},t.onclose=()=>{this.stateHandlers.forEach(o=>o(!1)),this.attempts+=1;const n=Math.min(15e3,1e3*2**(this.attempts-1));this.timer=window.setTimeout(()=>this.connect(),n)},t.onerror=()=>t.close()}}let Mi;function Ao(){return Mi??(Mi=new ff),Mi}class Ro extends Error{constructor(t,s,n,o){super(n),this.status=t,this.code=s,this.details=o,this.name="ApiError"}}async function Oe(e,t){const s=await fetch(e,{...t,headers:{"content-type":"application/json",...(t==null?void 0:t.headers)??{}}}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Ro(s.status,o.code??"UNKNOWN_ERROR",o.message??"请求失败",o.details)}return n}async function Ni(e){const t=new URLSearchParams({filename:e.name}),s=await fetch(`/api/uploads?${t}`,{method:"POST",headers:{"content-type":"application/octet-stream"},body:e}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"上传响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Ro(s.status,o.code??"UNKNOWN_ERROR",o.message??"文件上传失败",o.details)}return n}const xe={doctor:()=>Oe("/api/doctor"),recheckDoctor:()=>Oe("/api/doctor/recheck",{method:"POST"}),install:e=>Oe(`/api/doctor/install/${e}`,{method:"POST"}),uninstall:e=>Oe(`/api/doctor/uninstall/${e}`,{method:"POST"}),features:()=>Oe("/api/features"),tasks:()=>Oe("/api/tasks"),revealTask:e=>Oe(`/api/tasks/${e}/reveal`,{method:"POST"}),revealPath:e=>Oe("/api/reveal",{method:"POST",body:JSON.stringify({path:e})}),wxStatus:()=>Oe("/api/wx/status"),version:()=>Oe("/api/version"),wxActivate:e=>Oe("/api/wx/activate",{method:"POST",body:JSON.stringify({token:e})}),deleteHistory:e=>Oe(`/api/history/${e}`,{method:"DELETE"}),clearHistory:()=>Oe("/api/history/clear",{method:"POST"}),serviceStop:()=>Oe("/api/service/stop",{method:"POST"}),settings:()=>Oe("/api/settings"),selectOutputDir:()=>Oe("/api/settings/select-output-dir",{method:"POST"}),saveSettings:e=>Oe("/api/settings",{method:"POST",body:JSON.stringify(e)}),convert:e=>Oe("/api/convert",{method:"POST",body:JSON.stringify(e)})},To=Hs("doctor",{state:()=>({statuses:[],loading:!1,connected:!0,error:"",installSession:{state:"idle",logs:[]}}),getters:{readyCount:e=>e.statuses.filter(t=>t.installed&&t.versionOk).length,usableFeatures:e=>e.statuses.reduce((t,s)=>t+s.features.length,0)},actions:{async load(){this.loading=!0;try{this.statuses=await xe.doctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},async recheck(){this.loading=!0;try{this.statuses=await xe.recheckDoctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},startInstall(e,t){this.startOperation(e,t,"install")},startUninstall(e,t){this.startOperation(e,t,"uninstall")},startOperation(e,t,s){if(this.installSession.state==="progress")throw new Ro(409,"OPERATION_IN_PROGRESS","已有依赖操作进行中");this.installSession={depId:e,state:"progress",logs:[t]},(s==="install"?xe.install(e):xe.uninstall(e)).catch(n=>{this.installSession={depId:e,state:"failed",logs:[t,`操作未启动:${n.message}`],error:{depId:e,exitCode:1,stderrTail:n.message}}})},applyProgress(e){this.installSession.depId===e.depId&&("line"in e&&this.installSession.logs.push(e.line),this.installSession.logs.length>1e3&&this.installSession.logs.shift())},applyDone(e){this.statuses=e,this.installSession.state="done"},applyFailure(e){if(this.installSession.depId&&this.installSession.depId!==e.depId)return;const t=e.stderrTail.split(/\r?\n/).filter(s=>s.trim());this.installSession={depId:e.depId,state:"failed",logs:[`操作失败(退出码 ${e.exitCode})`,...t],error:e}}}}),Oo=Hs("features",{state:()=>({features:[],loading:!1,error:""}),getters:{available:e=>e.features.filter(t=>t.available),byKey:e=>new Map(e.features.map(t=>[t.key,t]))},actions:{async load(){this.loading=!0;try{this.features=await xe.features(),this.error=""}finally{this.loading=!1}}}}),Po=Hs("tasks",{state:()=>({tasks:[],loading:!1,error:""}),getters:{active:e=>e.tasks.filter(t=>t.status==="queued"||t.status==="running"),history:e=>e.tasks.filter(t=>t.status==="success"||t.status==="failed").slice(0,200)},actions:{async load(){this.loading=!0;try{this.tasks=await xe.tasks(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},upsert(e){const t=this.tasks.findIndex(s=>s.taskId===e.taskId);t<0?this.tasks.unshift(e):this.tasks[t]=e}}}),_l=Hs("settings",{state:()=>({settings:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},form:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},loading:!1,saving:!1,error:""}),actions:{async load(){this.loading=!0;try{this.settings=await xe.settings(),this.form={...this.settings},this.error=""}finally{this.loading=!1}},async save(){const e={...this.form};this.saving=!0;try{this.settings=await xe.saveSettings(this.form),this.form={...this.settings},this.error=""}catch(t){throw this.form=e,this.error=t instanceof Error?t.message:String(t),t}finally{this.saving=!1}}}}),df=3456,co=`http://127.0.0.1:${df}`,hf="https://duduer.com";function js(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function Io(){return/Windows|Win32|Win64/i.test(navigator.userAgent)?"windows":"macos"}async function pf(e=1500){const t=new AbortController,s=setTimeout(()=>t.abort(),e);try{return await fetch(`${co}/api/doctor`,{mode:"no-cors",cache:"no-store",signal:t.signal}),!0}catch{return!1}finally{clearTimeout(s)}}function gf(){return js()?hf:location.origin}function $o(e){const t=gf();return e==="macos"?`curl -fsSL ${t}/install.sh | sh`:`$w=New-Object Net.WebClient;$w.Encoding=[Text.Encoding]::UTF8;iex $w.DownloadString('${t}/install.ps1')`}function mf(){const e=To(),t=Oo(),s=Po(),n=_l(),o=Ao();async function i(){await Promise.all([e.load(),t.load(),s.load()])}async function r(){await t.load()}function l(a){a.type==="doctor:status"?(e.statuses=a.data,r()):a.type==="task:update"?s.upsert(a.data):a.type==="install:start"||a.type==="install:progress"||a.type==="uninstall:start"||a.type==="uninstall:progress"?e.applyProgress(a.data):a.type==="install:done"||a.type==="uninstall:done"?(e.applyDone(a.data.status),r()):(a.type==="install:fail"||a.type==="uninstall:fail")&&e.applyFailure(a.data)}os(async()=>{js()&&(o.onMessage(l),o.onConnectionChange(a=>{e.connected=a}),o.onResync(i),o.connect(),await Promise.all([i(),n.load()]))}),bn(()=>{})}const C={appName:"嘟嘟转换器",nav:{home:"首页",workbench:"功能页",history:"转换历史",settings:"设置"},connection:{connected:"已连接本地服务",disconnected:"连接已断开,正在自动重连"},doctor:{title:"依赖与环境",recheck:"重新检测",install:"一键安装",uninstall:"一键卸载",copy:"复制命令",manual:"手动下载",logs:"操作日志",ready:"可用",outdated:"版本过旧",missingRequired:"必需缺失",missingOptional:"可选缺失",portableInstall:"内置直装(国内镜像下载,无需包管理器)",portableUninstall:"删除本地便携版组件",sessionRunning:"执行中,请耐心等待…",sessionRunningFull:"正在安装,请耐心等待完成(可能需要几分钟)——期间请不要关闭或刷新此页面;日志长时间无输出属正常现象(正在后台下载)",sessionDone:"✅ 操作完成",sessionFailed:"❌ 操作失败,详情见下方日志"},workbench:{title:"转换工作台",subtitle:"按类型分栏管理,文件入表后逐个或批量转换",dropTitle:"把{tab}文件拖到这里",dropHint:"支持 {exts} 等格式",dropCompact:"继续添加{tab}文件",pastePlaceholder:"粘贴文件绝对路径,回车添加",wrongTab:"{name} 不属于{tab},请切换到对应标签页添加",fileDuplicate:"已在列表中,无需重复添加",addFile:"选择文件",addPath:"添加",convertTo:"批量转换为",noCommonTargets:"当前文件没有共同的转换目标,请清理后分批转换",noTools:"该类别依赖的工具尚未安装,转换前需要先完成安装",gotoSettings:"去设置页安装依赖",tableFile:"文件名",tablePath:"路径",tableSize:"大小",tableStatus:"状态",tableActions:"操作",statusPending:"待转换",statusRunning:"转换中",statusSuccess:"转换成功",statusFailed:"转换失败",convert:"转换",retry:"重试",openFolder:"打开目录",download:"下载",remove:"移除",clearDone:"清除已完成",batchConvert:"开始批量转换",batchConvertN:"开始批量转换({n} 个)",batchDone:"本次批量转换已完成",paramsTitle:"高级参数",advanced:"高级设置",chooseFile:"选择文件"},history:{title:"转换历史",subtitle:"所有转换任务按时间倒序排列,可随时下载或打开产物",filterAll:"全部",statTotal:"累计任务",statSuccess:"成功",statFailed:"失败",searchPlaceholder:"搜索文件名…",empty:"还没有转换记录,去工作台开始第一次转换吧",today:"今天",yesterday:"昨天",openFolder:"打开目录",download:"下载",remove:"删除",clear:"清空历史"},landing:{heroBadge:"本地转换 · 零上传 · 不限文件大小",heroTitle:"你的文件,",heroAccent:"不必上传",heroTagline:"嘟嘟本地万能转换器:视频、音频、图片、文档在本机一步完成 —— 没有大小限制,没有隐私顾虑,没有漫长等待。",cta:"立即开始转换",ctaInstall:"查看安装指南",localRunning:"转换器已在本机运行,可直接进入功能页",stats:[{value:"22",label:"转换能力"},{value:"40+",label:"支持格式"},{value:"0",label:"文件上传"},{value:"100%",label:"本机运行"}],painTitle:"你是不是也有这些顾虑?",painSub:"嘟嘟把这些通通变成过去。",pains:[{icon:"shield",title:"文件传上去,心里不踏实",text:"合同、证件、家庭影像……一旦上传到陌生服务器,隐私就不再由你掌控。"},{icon:"globe",title:"在线工具处处受限",text:"大小限制、格式缺失、会员付费、广告弹窗,简单转个文件总要妥协。"},{icon:"clock",title:"传上去再下载,来回折腾",text:"大文件先上传一小时,转换完再下载一小时,网速决定了心情。"}],valueTitle:"换一种方式转换文件",valueSub:"本机运行带来的三个直接好处",values:[{icon:"shield-check",title:"文件不出你的电脑",text:"所有解析与转换都在本机完成,不经任何服务器,隐私天然无忧。"},{icon:"package-plus",title:"缺什么,一键装什么",text:"首次使用自动体检环境,FFmpeg 等引擎在页面里点一下即可安装。"},{icon:"zap",title:"装完即用,秒级开始",text:"一条命令安装,浏览器自动打开操作界面,拖入文件立刻出结果。"}],scenesTitle:"这些瞬间,嘟嘟都帮得上忙",scenesSub:"来自日常使用的高频场景",scenes:[{icon:"video",title:"网课录屏瘦身",text:"几个 G 的课程录像压成几百 MB,备份分享都不再犯难"},{icon:"image",title:"聊天图片压缩",text:"手机原图一张 8MB,压完不到 1MB,清晰度几乎不变"},{icon:"pdf",title:"发票合并归档",text:"几十张发票 PDF 按顺序合并成一个文件,报销不再手忙脚乱"},{icon:"sparkles",title:"表情包制作",text:"精彩片段一键做成 GIF 动图,斗图弹药永远充足"},{icon:"markdown",title:"简历笔记定稿",text:"Markdown 写完一键转 Word / PDF,排版不乱直接发"},{icon:"shield",title:"证件照脱敏外发",text:"身份证扫描件加水印或加密,发给陌生方也更安心"}],featuresTitle:"覆盖你日常的每一类文件",featuresSub:"22 类能力 · 40+ 种格式,全部本机完成",compareTitle:"和在线转换工具比一比",compareSub:"同样的转换,不同的体验",compare:[{item:"文件隐私",online:"上传到陌生服务器",local:"全程留在你的电脑里"},{item:"文件大小",online:"免费版普遍限制 100MB",local:"无任何限制"},{item:"转换速度",online:"上传 + 下载双倍耗时",local:"直接读写本地磁盘"},{item:"批量处理",online:"多数按次收费",local:"免费,支持批量队列"},{item:"网络依赖",online:"必须联网上传",local:"断网也能正常转换"}],faqTitle:"常见问题",faqSub:"关于嘟嘟的几个高频疑问",faq:[{q:"我的文件会被上传吗?",a:"不会。嘟嘟完全运行在你自己的电脑上,转换过程不经过任何服务器,即使断网也能正常转换。"},{q:"需要付费吗?",a:"免费使用:无功能限制、无水印、无次数限制,也不需要注册账号。"},{q:"转换用的引擎需要自己装吗?",a:"不用自己找教程。首次使用某类能力时,应用会自动检测缺失的引擎,在「设置 → 依赖与环境」里点一下即可安装,全程图形化操作。"},{q:"支持 Windows 吗?",a:"支持。macOS 12+ 与 Windows 10/11 均可使用,安装命令在首页首屏即可一键复制。"},{q:"大文件会很慢或卡住吗?",a:"转换在本地队列并发执行(1–4 个可调),大文件只是耗时更长,不会占用云端额度,也不影响电脑其他操作。"}],footer:"嘟嘟转换器 · 本地优先的文件转换工具 · 文件永不上传"},install:{title:"安装转换器",step1:"打开终端",step2:"粘贴以下命令并回车",step3:"等待安装完成,浏览器会自动打开转换器",macos:"macOS",windows:"Windows",copy:"复制",copied:"已复制",macosTerminal:"按 ⌘+空格 打开聚焦搜索,输入「终端」或「Terminal」,回车打开",windowsTerminal:"点击开始菜单,输入「PowerShell」,回车打开",alreadyInstalled:"已经安装过?再次执行此命令会自动升级到新版本",manualTitle:"自动安装失败?手动安装",manualSteps:[{title:"安装 Node.js",text:"打开 nodejs.org 下载 Node.js 18 或更高版本,双击安装(保持默认选项)"},{title:"安装嘟嘟转换器",text:"打开终端(macOS:终端;Windows:PowerShell),执行 npm install -g dudu-converter-cli"},{title:"启动服务",text:"执行 converter start,浏览器访问 http://127.0.0.1:3456"}],startHint:"如果已经安装但未运行:在终端执行 converter start 启动后,回到此页重新检测"},gate:{checking:"正在检测本地转换器…",online:"已检测到本地转换器正在运行",open:"打开本地转换器",offline:"未检测到本地转换器",installedTitle:"转换器已安装,但服务未运行",manualTitle:"手动启动(一行命令)",manualHint:"复制命令 → 打开终端粘贴回车;若已开启开机自启,重启电脑也会自动运行",retry:"重新检测",notInstalledTitle:"尚未安装?查看安装步骤"},settings:{title:"设置",preferences:"应用设置",autostart:"开机自动启动",outputDir:"输出目录",chooseDir:"选择文件夹",concurrency:"并发数",language:"界面语言",save:"保存设置",saved:"设置已保存",service:"服务管理",serviceRunning:"转换服务运行中",stopService:"停止服务",stopConfirm:`确定停止转换服务吗?
31
- 停止后转换功能不可用;已开启的开机自启会在下次重启电脑时自动运行服务。`,serviceStopped:"转换服务已停止",stoppedGuide:"重新启动:在终端执行下方命令;若已开启开机自启,重启电脑后服务也会自动运行。",startCommand:"converter start"},update:{banner:"发现新版本 v{latest}(当前 v{current}),建议升级获得最新功能与修复",copy:"复制升级命令",copied:"已复制,打开终端粘贴即可",how:"如何升级",dismiss:"暂不提醒",steps:["点击「复制升级命令」,打开终端粘贴并回车(macOS 用终端,Windows 用 PowerShell)","安装命令会自动停止旧服务、完成升级并启动新版本,无需手动操作","刷新浏览器页面即可"]},common:{retry:"重试",close:"关闭",loading:"加载中…",save:"保存",cancel:"取消"}},vf={video:["M3 5.5A2.5 2.5 0 0 1 5.5 3h13A2.5 2.5 0 0 1 21 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18.5z","M7 3v18","M17 3v18","M3 12h18"],music:["M9 18V5l12-2v13","M3 18a3 3 0 1 0 6 0 3 3 0 1 0-6 0","M15 16a3 3 0 1 0 6 0 3 3 0 1 0-6 0"],image:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z","M7 9a2 2 0 1 0 4 0 2 2 0 1 0-4 0","m21 15-4.6-4.6a2 2 0 0 0-2.8 0L4 20"],archive:["M3 3h18v5H3z","M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8","M10 12h4"],office:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5","M9 13h6","M9 17h6","M9 9h1"],pdf:["M12 7v14","M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"],markdown:["M12 20h9","M16.4 3.6a1.4 1.4 0 0 1 2 2L7.5 16.5a2 2 0 0 1-.9.5l-2.8.8a.5.5 0 0 1-.6-.6l.8-2.8a2 2 0 0 1 .5-.9z"],shield:["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"],"shield-check":["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z","m9 12 2 2 4-4"],"package-plus":["M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z","M3.3 7 12 12l8.7-5","M12 22V12","M19 13v6","M16 16h6"],zap:["M4 14a1 1 0 0 1-.8-1.6l9.9-10.2a.5.5 0 0 1 .9.5l-1.9 6a1 1 0 0 0 1 1.3h7a1 1 0 0 1 .7 1.6l-9.9 10.2a.5.5 0 0 1-.9-.5l1.9-6a1 1 0 0 0-.9-1.3z"],globe:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M2 12h20","M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10 15 15 0 0 1 4-10z"],clock:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 6v6l4 2"],"check-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m9 12 2 2 4-4"],"x-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m15 9-6 6","m9 9 6 6"],"minus-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M8 12h8"],"alert-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 8v4","M12 16h.01"],copy:["M10 8h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],"external-link":["M15 3h6v6","M10 14 21 3","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],refresh:["M3 12a9 9 0 0 1 15.7-6","M21 3v5h-5","M21 12a9 9 0 0 1-15.7 6","M3 21v-5h5"],upload:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 8 5-5 5 5","M12 3v12"],download:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 10 5 5 5-5","M12 15V3"],plus:["M5 12h14","M12 5v14"],x:["M18 6 6 18","m6 6 12 12"],settings:["M4 6h6","M14 6h6","M4 12h10","M18 12h2","M4 18h4","M12 18h8","M10 4v4","M14 10v4","M8 16v4"],terminal:["m4 17 6-6-6-6","M12 19h8"],"arrow-right":["M5 12h14","m12 5 7 7-7 7"],"chevron-down":["m6 9 6 6 6-6"],file:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5"],folder:["M11 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7l-2-2z"],sparkles:["M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z","M19 17v4","M21 19h-4","M5 3v2","M4 4h2"],repeat:["m17 2 4 4-4 4","M3 11v-1a4 4 0 0 1 4-4h14","m7 22-4-4 4-4","M21 13v1a4 4 0 0 1-4 4H3"]},bl={video:"video",audio:"music",image:"image",archive:"archive",office:"office",pdf:"pdf",markdown:"markdown"},yf=["width","height"],_f=["d"],bf=He({__name:"AppIcon",props:{name:{},size:{default:20}},setup(e){const t=e;return(s,n)=>(R(),I("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",class:"app-icon"},[(R(!0),I(ne,null,Ce(y(vf)[t.name],(o,i)=>(R(),I("path",{key:i,d:o},null,8,_f))),128))],8,yf))}}),Xe=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s},J=Xe(bf,[["__scopeId","data-v-84fb32bd"]]),Mo=Hs("version",{state:()=>({status:{current:"",latest:"",updateAvailable:!1},dismissed:!1,loaded:!1}),getters:{visible:e=>e.status.updateAvailable&&!e.dismissed},actions:{async load(){try{this.status=await xe.version()}catch{}finally{this.loaded=!0}},listenWs(){Ao().onMessage(e=>{e.type==="update:available"&&(this.status=e.data,this.dismissed=!1)})},dismiss(){this.dismissed=!0}}}),wf={key:0,class:"update-banner","data-testid":"update-banner"},Sf={class:"banner-text"},xf=["title"],kf={key:0,class:"banner-detail"},Cf=He({__name:"UpdateBanner",setup(e){const t=Mo(),s=se(Io()),n=se(!1),o=se(!1),i=se($o(s.value));async function r(){try{await navigator.clipboard.writeText(i.value),n.value=!0,setTimeout(()=>{n.value=!1},2500)}catch{}}return(l,a)=>y(t).visible?(R(),I("div",wf,[U(J,{name:"sparkles",size:15}),c("span",Sf,S(y(C).update.banner.replace("{latest}",y(t).status.latest).replace("{current}",y(t).status.current)),1),c("button",{class:ye(["copy",{ok:n.value}]),type:"button",onClick:r},[U(J,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),H(" "+S(n.value?y(C).update.copied:y(C).update.copy),1)],2),c("button",{class:"how",type:"button",onClick:a[0]||(a[0]=d=>o.value=!o.value)},[H(S(y(C).update.how),1),U(J,{name:"chevron-down",size:13,class:ye({open:o.value})},null,8,["class"])]),c("button",{class:"close",type:"button",title:y(C).update.dismiss,onClick:a[1]||(a[1]=d=>y(t).dismiss())},[U(J,{name:"x",size:13})],8,xf),o.value?(R(),I("div",kf,[c("ol",null,[(R(!0),I(ne,null,Ce(y(C).update.steps,(d,u)=>(R(),I("li",{key:d},S(u+1)+". "+S(d),1))),128))])])):Q("",!0)])):Q("",!0)}}),Ef=Xe(Cf,[["__scopeId","data-v-69c975e5"]]),Af={class:"app-shell"},Rf={class:"app-header"},Tf=He({__name:"App",setup(e){mf();const t=To(),s=js(),n=Mo();return s&&(n.listenWs(),n.load()),(o,i)=>(R(),I("div",Af,[c("header",Rf,[U(y(Qt),{to:"/",class:"brand"},{default:Yt(()=>[i[0]||(i[0]=c("span",{class:"logo"},"嘟",-1)),c("strong",null,S(y(C).appName),1)]),_:1}),c("nav",null,[U(y(Qt),{to:"/"},{default:Yt(()=>[H(S(y(C).nav.home),1)]),_:1}),U(y(Qt),{to:"/workbench"},{default:Yt(()=>[H(S(y(C).nav.workbench),1)]),_:1}),y(s)?(R(),it(y(Qt),{key:0,to:"/history"},{default:Yt(()=>[H(S(y(C).nav.history),1)]),_:1})):Q("",!0),y(s)?(R(),it(y(Qt),{key:1,to:"/settings"},{default:Yt(()=>[H(S(y(C).nav.settings),1)]),_:1})):Q("",!0)]),y(s)?(R(),I("span",{key:0,class:ye(["connection",{offline:!y(t).connected}])},[i[1]||(i[1]=c("i",{class:"dot"},null,-1)),H(S(y(t).connected?y(C).connection.connected:y(C).connection.disconnected),1)],2)):Q("",!0)]),c("main",null,[y(s)?(R(),it(Ef,{key:0})):Q("",!0),U(y(yl))])]))}}),Of=Xe(Tf,[["__scopeId","data-v-e736b31c"]]),Pf={class:"history","data-testid":"history"},If={class:"page-title"},$f={class:"page-subtitle"},Mf={class:"toolbar"},Nf={class:"filters"},Df=["onClick"],Ff={class:"toolbar-right"},Vf={class:"search"},Lf=["placeholder"],Hf={key:0,class:"hint-alert"},jf={key:1,class:"panel empty"},Uf={class:"day-head"},Bf={class:"panel day-list"},zf={class:"item-main"},Kf={class:"item-title"},Wf=["title"],Gf={class:"arrow"},qf={class:"target"},Jf={class:"item-meta"},Yf={class:"error-text"},Qf={key:0,class:"spinner tiny"},Xf={class:"item-actions"},Zf=["onClick"],ed=["title","onClick"],td=He({__name:"HistoryView",setup(e){const t=Po(),s=Oo(),n=se("all"),o=se("");os(()=>{t.load(),s.load()});const i=oe(()=>({total:t.tasks.length,success:t.tasks.filter(N=>N.status==="success").length,failed:t.tasks.filter(N=>N.status==="failed").length})),r=oe(()=>t.tasks.filter(N=>!(n.value!=="all"&&N.status!==n.value||o.value.trim()&&!N.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort((N,E)=>E.startedAt.localeCompare(N.startedAt))),l=se("");async function a(N){l.value="";try{await xe.revealTask(N.taskId)}catch(E){l.value=E instanceof Error?E.message:"打开目录失败"}}async function d(N){l.value="";try{await xe.deleteHistory(N),await t.load()}catch(E){t.error=E instanceof Error?E.message:"删除失败"}}async function u(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await xe.clearHistory(),await t.load()}catch(N){t.error=N instanceof Error?N.message:"清空失败"}}function h(N){const E=new Date(N);if(Number.isNaN(E.getTime()))return"";const T=new Date,D=te=>new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime(),B=Math.round((D(T)-D(E))/864e5);return B<=0?C.history.today:B===1?C.history.yesterday:E.getFullYear()===T.getFullYear()?`${E.getMonth()+1} 月 ${E.getDate()} 日`:`${E.getFullYear()} 年 ${E.getMonth()+1} 月 ${E.getDate()} 日`}const v=oe(()=>{const N=new Map;for(const E of r.value){const T=h(E.startedAt),D=N.get(T);D?D.push(E):N.set(T,[E])}return[...N.entries()]});function x(N){const E=new Date(N);return Number.isNaN(E.getTime())?"":`${String(E.getHours()).padStart(2,"0")}:${String(E.getMinutes()).padStart(2,"0")}`}function V(N){return N.split(/[\\/]/).pop()??N}function M(N){var T;const E=(T=s.byKey.get(N.conversionKey))==null?void 0:T.category;return bl[E??"file"]??"file"}function z(N){var E;return((E=s.byKey.get(N.conversionKey))==null?void 0:E.label)??N.conversionKey}return(N,E)=>(R(),I("section",Pf,[c("h1",If,S(y(C).history.title),1),c("p",$f,S(y(C).history.subtitle),1),c("div",Mf,[c("div",Nf,[(R(!0),I(ne,null,Ce([{key:"all",label:y(C).history.filterAll,count:i.value.total},{key:"success",label:y(C).history.statSuccess,count:i.value.success},{key:"failed",label:y(C).history.statFailed,count:i.value.failed}],T=>(R(),I("button",{key:T.key,type:"button",class:ye(["filter-chip",{active:n.value===T.key}]),onClick:D=>n.value=T.key},[H(S(T.label)+" ",1),c("em",null,S(T.count),1)],10,Df))),128))]),c("div",Ff,[c("div",Vf,[U(J,{name:"file",size:14}),It(c("input",{"onUpdate:modelValue":E[0]||(E[0]=T=>o.value=T),type:"text",placeholder:y(C).history.searchPlaceholder},null,8,Lf),[[Ut,o.value]])]),y(t).tasks.length?(R(),I("button",{key:0,class:"ghost danger",type:"button",onClick:u},[U(J,{name:"x",size:13}),H(S(y(C).history.clear),1)])):Q("",!0)])]),l.value?(R(),I("p",Hf,[U(J,{name:"alert-circle",size:15}),H(S(l.value),1)])):Q("",!0),r.value.length?Q("",!0):(R(),I("div",jf,[U(J,{name:"folder",size:36}),c("span",null,S(y(C).history.empty),1)])),(R(!0),I(ne,null,Ce(v.value,([T,D])=>(R(),I("div",{key:T,class:"day-group"},[c("div",Uf,[H(S(T),1),c("em",null,S(D.length)+" 条",1)]),c("div",Bf,[(R(!0),I(ne,null,Ce(D,B=>(R(),I("article",{key:B.taskId,class:"history-item"},[c("span",{class:ye(["item-icon",B.status])},[U(J,{name:M(B),size:18},null,8,["name"])],2),c("div",zf,[c("div",Kf,[c("strong",{title:B.input},S(V(B.input)),9,Wf),c("span",Gf,[U(J,{name:"arrow-right",size:13})]),c("span",qf,S(B.targetFormat.toUpperCase()),1)]),c("div",Jf,[H(S(z(B))+" · "+S(x(B.startedAt))+S(B.durationMs?` · ${B.durationMs} ms`:"")+" ",1),B.error?(R(),I(ne,{key:0},[E[1]||(E[1]=H(" · ",-1)),c("span",Yf,S(B.error.message),1)],64)):Q("",!0)])]),c("span",{class:ye(["badge row-badge",B.status])},[B.status==="running"?(R(),I("span",Qf)):Q("",!0),H(" "+S(B.status==="success"?y(C).workbench.statusSuccess:B.status==="failed"?y(C).workbench.statusFailed:B.status==="running"?y(C).workbench.statusRunning:y(C).workbench.statusPending),1)],2),c("div",Xf,[B.status==="success"?(R(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:_e=>a(B)},[U(J,{name:"folder",size:13}),H(S(y(C).history.openFolder),1)],8,Zf)):Q("",!0),c("button",{class:"icon-btn",type:"button",title:y(C).history.remove,onClick:_e=>d(B.taskId)},[U(J,{name:"x",size:14})],8,ed)])]))),128))])]))),128))]))}}),sd=Xe(td,[["__scopeId","data-v-b299457c"]]),nd={class:"landing","data-testid":"landing"},od={class:"hero"},id={class:"hero-grid"},rd={class:"hero-copy"},ld={class:"hero-badge"},ad={class:"tagline"},cd={class:"cta-row"},ud={key:0,class:"local-badge"},fd={class:"terminal-card","data-testid":"install-guide"},dd={class:"term-head"},hd={class:"term-pills"},pd={class:"term-body"},gd={class:"command-row"},md={"data-testid":"install-command"},vd={class:"stats"},yd={class:"section"},_d={class:"section-sub"},bd={class:"pain-grid"},wd={class:"icon pain"},Sd={class:"section"},xd={class:"section-sub"},kd={class:"value-grid"},Cd={class:"icon value"},Ed={class:"section"},Ad={class:"section-sub"},Rd={class:"scene-grid"},Td={class:"icon scene"},Od={id:"features",class:"section"},Pd={class:"section-sub"},Id={class:"category-grid"},$d={class:"icon cat"},Md={class:"cat-body"},Nd={class:"section"},Dd={class:"section-sub"},Fd={class:"table-wrap"},Vd={class:"compare-table"},Ld={class:"c-item"},Hd={class:"c-online"},jd={class:"c-local"},Ud={class:"section"},Bd={class:"section-sub"},zd={class:"faq"},Kd={class:"landing-footer muted"},Wd=He({__name:"LandingView",setup(e){const t=js(),s=se(Io()),n=oe(()=>$o(s.value)),o=se(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}function r(){var a;(a=document.getElementById("features"))==null||a.scrollIntoView({behavior:"smooth",block:"start"})}const l=[{icon:"video",title:"视频",lines:["格式转换 · 压缩 · 延迟摄影","MP4 · AVI · MKV · MOV · WebM"]},{icon:"music",title:"音频",lines:["格式转换 · 提取 · 压缩","MP3 · AAC · WAV · FLAC"]},{icon:"image",title:"图片",lines:["格式 · 缩放 · 压缩 · 水印","JPG · PNG · WebP · HEIC · AVIF"]},{icon:"archive",title:"压缩包",lines:["文件压缩 · 解压","7z · Zip"]},{icon:"office",title:"Office 文档",lines:["转 PDF / HTML · 家族互转","Word · Excel · PowerPoint"]},{icon:"pdf",title:"PDF",lines:["转图片文本 · 合并拆分 · 规则拆分","全套 PDF 处理"]},{icon:"markdown",title:"Markdown",lines:["互转 Word / HTML / PDF","写作发布一步到位"]}];return(a,d)=>(R(),I("section",nd,[c("div",od,[c("div",id,[c("div",rd,[c("span",ld,[U(J,{name:"sparkles",size:14}),H(S(y(C).landing.heroBadge),1)]),c("h1",null,[H(S(y(C).landing.heroTitle),1),c("em",null,S(y(C).landing.heroAccent),1)]),c("p",ad,S(y(C).landing.heroTagline),1),c("div",cd,[U(y(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[H(S(y(C).landing.cta),1),U(J,{name:"arrow-right",size:16})]),_:1}),c("button",{class:"btn ghost",type:"button",onClick:r},[d[2]||(d[2]=H("了解功能",-1)),U(J,{name:"chevron-down",size:15})])]),y(t)?(R(),I("p",ud,[U(J,{name:"check-circle",size:14}),H(S(y(C).landing.localRunning),1)])):Q("",!0)]),c("div",fd,[c("div",dd,[d[3]||(d[3]=c("span",{class:"dots","aria-hidden":"true"},[c("i"),c("i"),c("i")],-1)),d[4]||(d[4]=c("strong",null,"一键安装嘟嘟转换器 · 全程约 1 分钟",-1)),c("div",hd,[c("button",{type:"button",class:ye({active:s.value==="macos"}),onClick:d[0]||(d[0]=u=>s.value="macos")},"macOS",2),c("button",{type:"button",class:ye({active:s.value==="windows"}),onClick:d[1]||(d[1]=u=>s.value="windows")},"Windows",2)])]),c("div",pd,[c("div",gd,[c("code",md,[d[5]||(d[5]=c("span",{class:"prompt"},"$",-1)),H(S(n.value),1)])]),c("button",{class:ye(["one-click",{ok:o.value}]),type:"button","data-testid":"install-copy",onClick:i},[U(J,{name:o.value?"check-circle":"copy",size:15},null,8,["name"]),H(" "+S(o.value?"已复制!打开终端粘贴回车即可":"一键复制安装命令"),1)],2),d[6]||(d[6]=c("ol",{class:"term-steps"},[c("li",null,[c("span",null,"1"),H("点击上方按钮复制安装命令")]),c("li",null,[c("span",null,"2"),H("打开终端粘贴并回车(macOS:⌘+空格 搜「终端」;Windows:开始菜单搜 PowerShell)")]),c("li",null,[c("span",null,"3"),H("安装全自动完成,浏览器自动打开转换器")])],-1))])])]),c("div",vd,[(R(!0),I(ne,null,Ce(y(C).landing.stats,u=>(R(),I("div",{key:u.label,class:"stat"},[c("strong",null,S(u.value),1),c("span",null,S(u.label),1)]))),128))])]),c("div",yd,[c("h2",null,S(y(C).landing.painTitle),1),c("p",_d,S(y(C).landing.painSub),1),c("div",bd,[(R(!0),I(ne,null,Ce(y(C).landing.pains,u=>(R(),I("article",{key:u.title,class:"pain-card"},[c("span",wd,[U(J,{name:u.icon,size:21},null,8,["name"])]),c("div",null,[c("strong",null,S(u.title),1),c("p",null,S(u.text),1)])]))),128))])]),c("div",Sd,[c("h2",null,S(y(C).landing.valueTitle),1),c("p",xd,S(y(C).landing.valueSub),1),c("div",kd,[(R(!0),I(ne,null,Ce(y(C).landing.values,u=>(R(),I("article",{key:u.title,class:"value-card"},[c("span",Cd,[U(J,{name:u.icon,size:23},null,8,["name"])]),c("strong",null,S(u.title),1),c("p",null,S(u.text),1)]))),128))])]),c("div",Ed,[c("h2",null,S(y(C).landing.scenesTitle),1),c("p",Ad,S(y(C).landing.scenesSub),1),c("div",Rd,[(R(!0),I(ne,null,Ce(y(C).landing.scenes,u=>(R(),I("article",{key:u.title,class:"scene-card"},[c("span",Td,[U(J,{name:u.icon,size:20},null,8,["name"])]),c("div",null,[c("strong",null,S(u.title),1),c("p",null,S(u.text),1)])]))),128))])]),c("div",Od,[c("h2",null,S(y(C).landing.featuresTitle),1),c("p",Pd,S(y(C).landing.featuresSub),1),c("div",Id,[(R(),I(ne,null,Ce(l,u=>c("article",{key:u.title,class:"category-card"},[c("span",$d,[U(J,{name:u.icon,size:21},null,8,["name"])]),c("div",Md,[c("strong",null,S(u.title),1),c("p",null,S(u.lines[0]),1),c("small",null,S(u.lines[1]),1)])])),64))])]),c("div",Nd,[c("h2",null,S(y(C).landing.compareTitle),1),c("p",Dd,S(y(C).landing.compareSub),1),c("div",Fd,[c("table",Vd,[d[7]||(d[7]=c("thead",null,[c("tr",null,[c("th",null,"对比项"),c("th",null,"在线转换工具"),c("th",null,"嘟嘟转换器")])],-1)),c("tbody",null,[(R(!0),I(ne,null,Ce(y(C).landing.compare,u=>(R(),I("tr",{key:u.item},[c("td",Ld,S(u.item),1),c("td",Hd,S(u.online),1),c("td",jd,[U(J,{name:"check-circle",size:14}),H(S(u.local),1)])]))),128))])])])]),c("div",Ud,[c("h2",null,S(y(C).landing.faqTitle),1),c("p",Bd,S(y(C).landing.faqSub),1),c("div",zd,[(R(!0),I(ne,null,Ce(y(C).landing.faq,u=>(R(),I("details",{key:u.q,class:"faq-item"},[c("summary",null,[H(S(u.q),1),U(J,{name:"chevron-down",size:15})]),c("p",null,S(u.a),1)]))),128))])]),c("footer",Kd,S(y(C).landing.footer),1)]))}}),Gd=Xe(Wd,[["__scopeId","data-v-63ba655a"]]),qd=He({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,s=oe(()=>C.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(n,o)=>(R(),I("span",{class:ye(["badge",e.state])},S(s.value),3))}}),Jd={class:"tool-info"},Yd={class:"title"},Qd={key:0,class:"chip version"},Xd={class:"muted"},Zd={class:"actions"},eh=["disabled"],th=["disabled"],sh=He({__name:"DependencyRow",props:{status:{},installing:{type:Boolean}},emits:["install","uninstall"],setup(e,{emit:t}){const s=e,n=t;let o;const i=se(!1);async function r(){s.status.installCommand&&(await navigator.clipboard.writeText(s.status.installCommand),i.value=!0,clearTimeout(o),o=window.setTimeout(()=>{i.value=!1},2e3))}return(l,a)=>(R(),I("article",{class:ye(["dependency-row",`is-${e.status.state}`])},[c("div",Jd,[c("div",Yd,[c("strong",null,S(e.status.name),1),U(qd,{state:e.status.state},null,8,["state"]),e.status.version?(R(),I("span",Qd,S(e.status.version),1)):Q("",!0)]),c("p",Xd,S(e.status.description),1)]),c("div",Zd,[(e.status.installCommand||e.status.installMethod==="portable")&&(!e.status.installed||e.status.state==="outdated")?(R(),I("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>n("install",e.status))},S(y(C).doctor.install),9,eh)):Q("",!0),e.status.installCommand?(R(),I("button",{key:1,class:"ghost",onClick:r},S(i.value?y(C).install.copied:y(C).doctor.copy),1)):Q("",!0),e.status.installed&&(e.status.uninstallCommand||e.status.installMethod==="portable")?(R(),I("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>n("uninstall",e.status))},S(y(C).doctor.uninstall),9,th)):Q("",!0)])],2))}}),nh=Xe(sh,[["__scopeId","data-v-d296fa22"]]),oh=He({__name:"LogStream",props:{logs:{}},setup(e){const t=e,s=se(),n=se(!0);Mt(()=>[...t.logs],async()=>{n.value&&(await ps(),s.value&&(s.value.scrollTop=s.value.scrollHeight))});function o(){const i=s.value;i&&(n.value=i.scrollHeight-i.scrollTop-i.clientHeight<24)}return(i,r)=>(R(),I("div",{ref_key:"container",ref:s,class:"log-stream",onScroll:o},[(R(!0),I(ne,null,Ce(e.logs,(l,a)=>(R(),I("p",{key:`${a}-${l}`},S(l),1))),128))],544))}}),ih=Xe(oh,[["__scopeId","data-v-a4d9e36c"]]),rh={class:"settings","data-testid":"settings"},lh={class:"page-title"},ah={class:"panel"},ch={class:"section-head"},uh={key:0,class:"chip version-chip"},fh={key:0,class:"chip running-chip"},dh={key:0,class:"stop-row"},hh=["disabled"],ph={key:0,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},gh={key:1,class:"stopped-card"},mh={class:"muted"},vh={class:"command-row"},yh={class:"panel"},_h={class:"section-head"},bh=["disabled"],wh={key:1,class:"spinner",style:{width:"14px",height:"14px"}},Sh={class:"summary-card"},xh={class:"summary-text"},kh={class:"summary-bar bar"},Ch={key:0,class:"alert"},Eh={class:"dep-list"},Ah={key:0,class:"spinner",style:{width:"13px",height:"13px"}},Rh={class:"section-head"},Th={class:"field"},Oh={class:"directory-editor"},Ph=["disabled"],Ih={key:1,class:"spinner",style:{width:"13px",height:"13px"}},$h={class:"field"},Mh={class:"concurrency"},Nh={class:"field"},Dh={key:0,class:"error"},Fh={key:1,class:"saved"},Vh={class:"actions"},Lh=["disabled"],Hh={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},jh=He({__name:"SettingsView",setup(e){const t=To(),s=_l(),n=Mo();os(()=>{n.loaded||n.load()});const o=se(!1),i=se(!1),r=se(!1),l=se(!1),a=se(!1);async function d(){try{await navigator.clipboard.writeText(C.settings.startCommand),a.value=!0,setTimeout(()=>{a.value=!1},2e3)}catch{}}async function u(){if(window.confirm(C.settings.stopConfirm)){l.value=!0;try{await xe.serviceStop(),r.value=!0,t.connected=!1}catch(E){s.error=E instanceof Error?E.message:"停止服务失败"}finally{l.value=!1}}}const h=oe(()=>t.installSession.state==="progress"),v=se();Mt(()=>t.installSession.state,E=>{E==="progress"&&ps(()=>{var T,D;(D=(T=v.value)==null?void 0:T.scrollIntoView)==null||D.call(T,{behavior:"smooth",block:"center"})})});const x=oe(()=>t.statuses.length?Math.round(t.readyCount/t.statuses.length*100):0);function V(E){h.value||!E.installCommand&&E.installMethod!=="portable"||E.state==="outdated"&&!window.confirm(`${E.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(E.id,E.installCommand||C.doctor.portableInstall)}function M(E){if(h.value||!E.uninstallCommand&&E.installMethod!=="portable")return;const T=`确定要卸载 ${E.name} 吗?
32
- 卸载后相关转换功能将不可用。`;window.confirm(T)&&t.startUninstall(E.id,E.uninstallCommand||C.doctor.portableUninstall)}async function z(){o.value=!0;try{const E=await xe.selectOutputDir();E.selected&&E.path&&(s.form.outputDir=E.path)}catch(E){s.error=E instanceof Error?E.message:"无法打开目录选择器"}finally{o.value=!1}}async function N(){try{await s.save(),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}return(E,T)=>(R(),I("section",rh,[c("h1",lh,S(y(C).settings.title),1),T[12]||(T[12]=c("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),c("div",ah,[c("div",ch,[c("div",null,[c("h2",null,[H(S(y(C).settings.service)+" ",1),y(n).status.current?(R(),I("span",uh,"v"+S(y(n).status.current),1)):Q("",!0)]),T[4]||(T[4]=c("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),r.value?Q("",!0):(R(),I("span",fh,[T[5]||(T[5]=c("span",{class:"dot"},null,-1)),H(S(y(C).settings.serviceRunning),1)]))]),r.value?(R(),I("div",gh,[c("p",null,[U(J,{name:"check-circle",size:15}),c("strong",null,S(y(C).settings.serviceStopped),1)]),c("p",mh,S(y(C).settings.stoppedGuide),1),c("div",vh,[c("code",null,[T[7]||(T[7]=c("span",{class:"prompt"},"$",-1)),H(S(y(C).settings.startCommand),1)]),c("button",{class:"ghost",type:"button",onClick:d},S(a.value?"已复制":"复制"),1)])])):(R(),I("div",dh,[T[6]||(T[6]=c("p",{class:"muted stop-desc"},[H("停止后转换功能不可用。已开启的开机自启会在下次重启电脑时自动运行服务;重新启动请在终端执行 "),c("code",null,"converter start"),H("。")],-1)),c("button",{class:"ghost danger stop-btn",type:"button","data-testid":"stop-service",disabled:l.value,onClick:u},[l.value?(R(),I("span",ph)):Q("",!0),H(" "+S(l.value?"停止中…":y(C).settings.stopService),1)],8,hh)]))]),c("div",yh,[c("div",_h,[c("div",null,[c("h2",null,S(y(C).doctor.title),1),T[8]||(T[8]=c("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),c("button",{class:"ghost recheck",disabled:y(t).loading,onClick:T[0]||(T[0]=D=>y(t).recheck())},[y(t).loading?(R(),I("span",wh)):(R(),it(J,{key:0,name:"refresh",size:15})),H(" "+S(y(C).doctor.recheck),1)],8,bh)]),c("div",Sh,[c("div",xh,[c("strong",null,S(y(t).readyCount)+" / "+S(y(t).statuses.length),1),T[9]||(T[9]=c("span",null,"个引擎可用",-1))]),c("div",kh,[c("i",{style:pn({width:`${x.value}%`})},null,4)])]),y(t).error?(R(),I("p",Ch,S(y(t).error),1)):Q("",!0),c("div",Eh,[(R(!0),I(ne,null,Ce(y(t).statuses,D=>(R(),it(nh,{key:D.id,status:D,installing:h.value,onInstall:V,onUninstall:M},null,8,["status","installing"]))),128))]),y(t).installSession.state!=="idle"?(R(),I("div",{key:1,ref_key:"installSessionRef",ref:v,class:"install-session"},[c("h3",null,S(y(C).doctor.logs),1),c("p",{class:ye(["session-state",y(t).installSession.state])},[y(t).installSession.state==="progress"?(R(),I("span",Ah)):Q("",!0),H(" "+S(y(t).installSession.state==="progress"?y(C).doctor.sessionRunningFull:y(t).installSession.state==="done"?y(C).doctor.sessionDone:y(C).doctor.sessionFailed),1)],2),U(ih,{logs:y(t).installSession.logs},null,8,["logs"])],512)):Q("",!0)]),c("form",{class:"panel",onSubmit:so(N,["prevent"])},[c("div",Rh,[c("h2",null,S(y(C).settings.preferences),1)]),c("label",Th,[c("span",null,S(y(C).settings.outputDir),1),c("div",Oh,[It(c("input",{"onUpdate:modelValue":T[1]||(T[1]=D=>y(s).form.outputDir=D),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,y(s).form.outputDir]]),c("button",{class:"ghost",type:"button",disabled:o.value,onClick:z},[o.value?(R(),I("span",Ih)):(R(),it(J,{key:0,name:"folder",size:14})),H(" "+S(o.value?"打开中…":y(C).settings.chooseDir),1)],8,Ph)])]),c("label",$h,[c("span",null,S(y(C).settings.concurrency),1),c("div",Mh,[It(c("input",{"onUpdate:modelValue":T[2]||(T[2]=D=>y(s).form.concurrency=D),type:"number",min:"1",max:"4"},null,512),[[Ut,y(s).form.concurrency,void 0,{number:!0}]]),T[10]||(T[10]=c("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),c("label",Nh,[c("span",null,S(y(C).settings.language),1),It(c("select",{"onUpdate:modelValue":T[3]||(T[3]=D=>y(s).form.language=D),disabled:""},[...T[11]||(T[11]=[c("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Co,y(s).form.language]])]),y(s).error?(R(),I("p",Dh,S(y(s).error),1)):i.value?(R(),I("p",Fh,[U(J,{name:"check-circle",size:14}),H(S(y(C).settings.saved),1)])):Q("",!0),c("div",Vh,[c("button",{class:"primary",disabled:y(s).saving,type:"submit"},[y(s).saving?(R(),I("span",Hh)):Q("",!0),H(" "+S(y(s).saving?"保存中…":y(C).settings.save),1)],8,Lh)])],32)]))}}),Uh=Xe(jh,[["__scopeId","data-v-b8d6e7ed"]]),ls=[{key:"image",label:"图片",icon:"image",categories:["image"]},{key:"video",label:"视频",icon:"video",categories:["video"]},{key:"audio",label:"音频",icon:"music",categories:["audio"]},{key:"office",label:"文档",icon:"office",categories:["office","markdown"]},{key:"pdf",label:"PDF",icon:"pdf",categories:["pdf"]},{key:"archive",label:"压缩包",icon:"archive",categories:["archive"]}];function wl(e,t){return e.filter(s=>t.categories.includes(s.category))}function Di(e,t){const s=new Set;for(const n of wl(e,t))for(const o of n.fromFormats)s.add(o);return s}const Bh={"image-resize":"缩放","image-compress":"压缩","image-watermark":"加水印","video-compress":"压缩","video-timelapse":"延迟摄影","media-compress":"压缩","pdf-merge":"合并","pdf-split":"拆分","pdf-protect":"加密/解密","archive-extract":"解压"};function zh(e){return Bh[e]}const Fi={jpg:"jpg",jpeg:"jpg"};function Kh(e,t){return(Fi[e]??e)===(Fi[t]??t)}function Wh(e){const t=e.split(/[\\/]/).pop()??"",s=t.lastIndexOf(".");return s>0?t.slice(s+1).toLowerCase():""}function Gh(e,t){if(!t.length)return[];const s=[...new Set(t.map(i=>i.toLowerCase()))],n=[],o=new Set;for(const i of e){if(!i.available||!s.every(l=>i.fromFormats.includes(l)))continue;const r=zh(i.key);if(r){const l=`op:${i.key}`;if(o.has(l))continue;o.add(l),n.push({conversionKey:i.key,format:"",label:r,capability:i.label,category:i.category,kind:"operate"});continue}for(const l of i.toFormats){if(s.every(d=>Kh(d,l)))continue;const a=`${i.key}:${l}`;o.has(a)||(o.add(a),n.push({conversionKey:i.key,format:l,label:l==="folder"?"解压为文件夹":l.toUpperCase(),capability:i.label,category:i.category,kind:"convert"}))}}return n}function qh(e,t){return t?[...e].sort((s,n)=>+(n.category===t)-+(s.category===t)):[...e]}function Vi(e,t){var n;const s=t.toLowerCase();return(n=e.find(o=>o.fromFormats.includes(s)))==null?void 0:n.category}function Li(e,t){return e.some(n=>n!==t&&n.label===t.label)?`${t.label} · ${t.capability}`:t.label}function Jh(e){return e===void 0?"":e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(0)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}const Yh={class:"install-guide","data-testid":"install-guide"},Qh={class:"platform-switch",role:"tablist"},Xh=["aria-selected"],Zh=["aria-selected"],ep={class:"steps"},tp={class:"muted"},sp={class:"command-block"},np={class:"command-row"},op={"data-testid":"install-command"},ip={class:"muted hint"},rp={class:"manual-block"},lp={key:0,class:"manual-steps"},ap={class:"step-no"},cp=He({__name:"InstallGuide",setup(e){const t=se(Io()),s=se(!1),n=oe(()=>$o(t.value)),o=se(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(r,l)=>(R(),I("div",Yh,[c("div",Qh,[c("button",{type:"button",class:ye({active:t.value==="macos"}),role:"tab","aria-selected":t.value==="macos",onClick:l[0]||(l[0]=a=>t.value="macos")},S(y(C).install.macos),11,Xh),c("button",{type:"button",class:ye({active:t.value==="windows"}),role:"tab","aria-selected":t.value==="windows",onClick:l[1]||(l[1]=a=>t.value="windows")},S(y(C).install.windows),11,Zh)]),c("ol",ep,[c("li",null,[l[3]||(l[3]=c("span",{class:"step-no"},"1",-1)),c("div",null,[c("strong",null,S(y(C).install.step1),1),c("p",tp,S(t.value==="macos"?y(C).install.macosTerminal:y(C).install.windowsTerminal),1)])]),c("li",null,[l[5]||(l[5]=c("span",{class:"step-no"},"2",-1)),c("div",sp,[c("strong",null,S(y(C).install.step2),1),c("div",np,[c("code",op,[l[4]||(l[4]=c("span",{class:"prompt"},"$",-1)),H(S(n.value),1)]),c("button",{class:"ghost copy",type:"button",onClick:i},[U(J,{name:o.value?"check-circle":"copy",size:14},null,8,["name"]),H(" "+S(o.value?y(C).install.copied:y(C).install.copy),1)])])])]),c("li",null,[l[6]||(l[6]=c("span",{class:"step-no"},"3",-1)),c("div",null,[c("strong",null,S(y(C).install.step3),1),c("p",ip,S(y(C).install.alreadyInstalled),1)])])]),c("div",rp,[c("button",{class:"manual-toggle",type:"button",onClick:l[2]||(l[2]=a=>s.value=!s.value)},[H(S(y(C).install.manualTitle),1),U(J,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(R(),I("ol",lp,[(R(!0),I(ne,null,Ce(y(C).install.manualSteps,(a,d)=>(R(),I("li",{key:a.title},[c("span",ap,S(d+1),1),c("div",null,[c("strong",null,S(a.title),1),c("p",null,S(a.text),1)])]))),128))])):Q("",!0)])]))}}),up=Xe(cp,[["__scopeId","data-v-56162934"]]),fp={class:"daemon-gate","data-testid":"daemon-gate"},dp={key:0,class:"gate-state checking"},hp={key:1,class:"gate-state online","data-testid":"gate-online"},pp={class:"gate-icon ok"},gp={class:"actions"},mp=["href"],vp={key:2,class:"gate-state offline","data-testid":"gate-offline"},yp={class:"gate-icon off"},_p={class:"start-block"},bp={class:"manual"},wp={class:"manual-label"},Sp={class:"manual-row"},xp={class:"manual-hint"},kp={class:"actions"},Cp=["href"],Ep={class:"install-collapsed"},Ap=He({__name:"DaemonGate",setup(e){const t=se("checking"),s=se(!1),n=se(!1);async function o(){try{await navigator.clipboard.writeText("converter start"),n.value=!0,setTimeout(()=>{n.value=!1},2e3)}catch{}}async function i(){t.value="checking",t.value=await pf()?"online":"offline"}return os(()=>{i()}),(r,l)=>(R(),I("div",fp,[t.value==="checking"?(R(),I("div",dp,[l[1]||(l[1]=c("span",{class:"spinner big","aria-hidden":"true"},null,-1)),c("p",null,S(y(C).gate.checking),1)])):t.value==="online"?(R(),I("div",hp,[c("div",pp,[U(J,{name:"check-circle",size:26})]),c("p",null,S(y(C).gate.online),1),l[2]||(l[2]=c("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),c("div",gp,[c("a",{class:"btn primary",href:y(co),target:"_blank",rel:"noopener"},[H(S(y(C).gate.open),1),U(J,{name:"arrow-right",size:15})],8,mp),c("button",{class:"ghost",type:"button",onClick:i},[U(J,{name:"refresh",size:14}),H(S(y(C).gate.retry),1)])])])):(R(),I("div",vp,[c("div",yp,[U(J,{name:"alert-circle",size:26})]),c("p",null,S(y(C).gate.offline),1),c("div",_p,[c("div",bp,[c("span",wp,S(y(C).gate.manualTitle),1),c("div",Sp,[l[3]||(l[3]=c("code",null,[c("span",{class:"prompt"},"$"),H("converter start")],-1)),c("button",{class:"copy",type:"button",onClick:o},[U(J,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),H(S(n.value?"已复制":"复制"),1)])]),c("p",xp,S(y(C).gate.manualHint),1)]),c("div",kp,[c("button",{class:"ghost",type:"button",onClick:i},[U(J,{name:"refresh",size:14}),H(S(y(C).gate.retry),1)]),c("a",{class:"ghost direct-link",href:y(co),target:"_blank",rel:"noopener"},S(y(C).gate.open),9,Cp)])]),c("div",Ep,[c("button",{class:"install-toggle",type:"button",onClick:l[0]||(l[0]=a=>s.value=!s.value)},[H(S(y(C).gate.notInstalledTitle),1),U(J,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(R(),it(up,{key:0})):Q("",!0)])]))]))}}),Rp=Xe(Ap,[["__scopeId","data-v-0f39bf4c"]]),Tp="/gh-qrcode.png",Op={class:"follow-gate","data-testid":"follow-gate"},Pp={class:"gate-right"},Ip={class:"code-row"},$p={"data-testid":"pair-code"},Mp={key:0,class:"gate-error"},Np=He({__name:"FollowGate",props:{pairCode:{}},emits:["activated"],setup(e,{emit:t}){const s=e,n=t,o=oe(()=>s.pairCode??""),i=se(!1),r=se("");let l;async function a(){try{await navigator.clipboard.writeText(o.value),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}async function d(){const v=s.pairCode;if(v)try{const x=await fetch(`https://duduer.com/api/wx/activate/${encodeURIComponent(v)}`);if(!x.ok)return;const V=await x.json();V.status==="active"&&V.token?(h(),await xe.wxActivate(V.token),n("activated",V.token)):V.subscribed===!1?r.value="检测到关注已取消,重新关注即可恢复使用":r.value=""}catch{}}function u(){l=window.setInterval(()=>{d()},5e3)}function h(){l!==void 0&&(clearInterval(l),l=void 0)}return os(()=>{u()}),bn(()=>{h()}),(v,x)=>(R(),I("div",Op,[x[5]||(x[5]=c("div",{class:"gate-left"},[c("img",{class:"gh-qrcode",src:Tp,alt:"公众号二维码"}),c("p",{class:"qr-hint"},"微信扫码,关注公众号")],-1)),c("div",Pp,[x[1]||(x[1]=c("h2",null,"免费解锁全部功能",-1)),x[2]||(x[2]=c("p",{class:"gate-desc"},[H("关注公众号并回复你的绑定码,即可"),c("strong",null,"永久免费"),H("使用全部转换功能")],-1)),c("div",Ip,[x[0]||(x[0]=c("span",{class:"code-label"},"你的绑定码",-1)),c("code",$p,S(o.value),1),c("button",{class:"copy",type:"button",onClick:a},[U(J,{name:i.value?"check-circle":"copy",size:13},null,8,["name"]),H(S(i.value?"已复制":"复制"),1)])]),x[3]||(x[3]=c("ol",{class:"gate-steps"},[c("li",null,[c("span",null,"1"),H("微信扫描左侧二维码,关注公众号")]),c("li",null,[c("span",null,"2"),H("在公众号里发送你的绑定码(点击上方「复制」;手机手动输入请切换英文键盘,用半角字符)")]),c("li",null,[c("span",null,"3"),H("收到「绑定成功」回复后,本页自动解锁")])],-1)),r.value?(R(),I("p",Mp,[U(J,{name:"alert-circle",size:14}),H(S(r.value),1)])):Q("",!0),x[4]||(x[4]=c("p",{class:"waiting"},[c("span",{class:"spinner tiny"}),H("正在等待绑定完成,每 5 秒自动检测…")],-1))])]))}}),Dp=Xe(Np,[["__scopeId","data-v-8a413519"]]),Fp={class:"workbench","data-testid":"workbench"},Vp={class:"page-title"},Lp={class:"page-subtitle"},Hp={key:2,class:"tabbed"},jp={class:"tab-rail"},Up=["data-testid","onClick"],Bp={class:"tab-label"},zp={key:0,class:"tab-count"},Kp={class:"tab-panel panel"},Wp={class:"drop-icon"},Gp={class:"drop-title"},qp={class:"muted drop-hint"},Jp={class:"drop-compact-text"},Yp={class:"drop-actions"},Qp=["placeholder"],Xp=["disabled"],Zp=["disabled"],eg={key:1,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},tg=["accept"],sg={key:0,class:"hint-alert"},ng={class:"target-bar"},og={class:"section-title"},ig={key:0,class:"target-chips"},rg=["onClick"],lg={key:1,class:"hint-alert"},ag={key:2,class:"hint-alert tools-missing"},cg={class:"hint-text"},ug={class:"table-wrap"},fg={class:"file-table","data-testid":"file-table"},dg={class:"cell-file"},hg={class:"cell-path"},pg={class:"cell-size"},gg={class:"cell-status"},mg={class:"cell-actions"},vg={class:"cell-file"},yg={class:"file-icon"},_g=["title"],bg={class:"chip ext"},wg={class:"cell-path"},Sg=["title","onClick"],xg={class:"cell-size muted"},kg={class:"cell-status"},Cg=["title"],Eg={key:0,class:"spinner tiny"},Ag={key:1},Rg={key:2,class:"row-error"},Tg={class:"cell-actions"},Og=["onClick"],Pg=["onClick"],Ig=["onClick"],$g=["title","onClick"],Mg={key:0,class:"params"},Ng={class:"section-title"},Dg={class:"params-grid"},Fg={class:"param-label"},Vg={key:1,class:"required"},Lg=["onUpdate:modelValue","data-testid"],Hg=["value"],jg=["onUpdate:modelValue","min","max","data-testid"],Ug={key:2,class:"watermark-editor"},Bg=["onUpdate:modelValue","data-testid"],zg=["disabled"],Kg=["onUpdate:modelValue","type","data-testid"],Wg={key:4,class:"param-description"},Gg={class:"summary"},qg={class:"batch-actions"},Jg=["disabled"],Yg={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},Qg=He({__name:"WorkbenchView",setup(e){const t=js(),s=uf(),n=Oo(),o=ns({checking:t,activated:!0}),i=Po(),r=se(ls[0].key),l=ns(Object.fromEntries(ls.map(m=>[m.key,{rows:[],selected:null,paramValues:{}}]))),a=se("");function d(){s.push("/settings")}const u=m=>{xe.wxActivate(m).then(()=>{o.activated=!0}).catch(()=>{})},h=oe(()=>ls.find(m=>m.key===r.value)),v=oe(()=>l[r.value]),x=oe(()=>wl(n.features,h.value)),V=oe(()=>Di(n.features,h.value)),M=oe(()=>{const m=Gh(x.value,v.value.rows.map(g=>g.ext)),w=v.value.rows[0]?Vi(n.features,v.value.rows[0].ext):void 0;return qh(m,w)}),z=oe(()=>{var m;return v.value.selected?((m=n.byKey.get(v.value.selected.conversionKey))==null?void 0:m.params)??[]:[]}),N=oe(()=>z.value.filter(m=>m.required&&String(v.value.paramValues[m.key]??"").trim()==="")),E=oe(()=>{var m;return((m=v.value.selected)==null?void 0:m.conversionKey)==="pdf-merge"});Mt(()=>[r.value,M.value.map(m=>`${m.conversionKey}:${m.format}`).join("|")],()=>{const m=v.value.selected,w=m!==null&&M.value.some(g=>g.conversionKey===m.conversionKey&&g.format===m.format);v.value.selected=w?m:M.value[0]??null,T()});function T(){var w;const m={};for(const g of z.value)g.defaultValue!==void 0?m[g.key]=g.defaultValue:g.control==="preset"&&((w=g.presets)!=null&&w.length)&&(m[g.key]=g.presets[0].value);v.value.paramValues=m}function D(m){const w=v.value.selected;return(w==null?void 0:w.conversionKey)===m.conversionKey&&(w==null?void 0:w.format)===m.format}function B(m){v.value.selected=m,T()}function _e(){const m={};for(const w of z.value){const g=v.value.paramValues[w.key];w.control==="preset"||w.control==="number"?typeof g=="number"&&Number.isFinite(g)&&(m[w.key]=g):typeof g=="string"&&g.trim()&&(m[w.key]=g.trim())}return m}function te(m,w){var b;if(m.kind!=="operate")return m.format;const g=((b=n.byKey.get(m.conversionKey))==null?void 0:b.toFormats)??[];return g.includes(w.ext)?w.ext:g[0]??w.ext}const Z=se(""),ee=se(!1),le=se(!1),de=se(""),Te=se(),Ee=se();function Ze(m){return m.split(/[\\/]/).pop()??m}function ut(m){return bl[Vi(n.features,m)??"file"]??"file"}function me(m){const w=ls.find(g=>Di(n.features,g).has(m));return(w==null?void 0:w.label)??"其他"}function Y(m,w,g){const b=m.trim();if(!b)return;const F=Wh(b);if(!V.value.has(F)){de.value=C.workbench.wrongTab.replace("{name}",Ze(b)).replace("{tab}",`「${h.value.label}」`).replace("对应标签页",`「${me(F)}」标签页`);return}const $=g??Ze(b);if(v.value.rows.some(q=>q.path===b||w!==void 0&&q.name===$&&q.size===w)){de.value=`${$} ${C.workbench.fileDuplicate}`;return}de.value="",v.value.rows.push({path:b,ext:F,name:$,status:"pending",...w!==void 0?{size:w}:{}})}function ie(){Y(Z.value),Z.value=""}async function We(m){if(m.length){le.value=!0,de.value="";try{for(const w of m){const g=w.path;if(g){Y(g,w.size,w.name);continue}if(v.value.rows.some(F=>F.name===w.name&&F.size===w.size)){de.value=`${w.name} ${C.workbench.fileDuplicate}`;continue}const b=await Ni(w);Y(b.inputPath,b.size,b.originalName)}}catch(w){de.value=w instanceof Error?w.message:"文件导入失败"}finally{le.value=!1,Te.value&&(Te.value.value="")}}}function ft(m){We(Array.from(m.target.files??[]))}function Ge(m){var w;ee.value=!1,We(Array.from(((w=m.dataTransfer)==null?void 0:w.files)??[]))}async function Pe(m){const w=Array.from(m.target.files??[])[0],g=z.value.find(b=>b.control==="file");if(!(!w||!g)){le.value=!0;try{const b=w.path;if(b)v.value.paramValues[g.key]=b;else{const F=await Ni(w);v.value.paramValues[g.key]=F.inputPath}}catch(b){de.value=b instanceof Error?b.message:"水印图片选择失败"}finally{le.value=!1,Ee.value&&(Ee.value.value="")}}}const qe=se(!1),et=oe(()=>v.value.rows.filter(m=>m.status==="pending").length),Ct=oe(()=>v.value.rows.some(m=>m.status==="success"||m.status==="failed")),Ne=oe(()=>et.value>0&&v.value.selected!==null&&N.value.length===0&&!qe.value);async function O(m){const w=v.value.selected;if(!(!w||E.value)){m.status="converting",m.targetFormat=te(w,m),m.progress=0,m.error=void 0,m.output=void 0;try{const g=await xe.convert({inputPath:m.path,targetFormat:m.targetFormat,conversionKey:w.conversionKey,options:_e()});m.taskId=g.taskId}catch(g){m.status="failed",m.error=g instanceof Error?g.message:"提交失败"}}}async function j(){const m=v.value.selected,w=v.value.rows.filter(g=>g.status==="pending");if(!(!m||!w.length||N.value.length)){if(qe.value=!0,m.conversionKey==="pdf-merge"){const g=w.map(b=>b.path);for(const b of w)b.status="converting",b.targetFormat=te(m,b),b.error=void 0;try{const b=await xe.convert({inputPath:g[0],targetFormat:te(m,w[0]),conversionKey:m.conversionKey,options:{..._e(),inputs:g}});for(const F of w)F.taskId=b.taskId}catch(b){const F=b instanceof Error?b.message:"提交失败";for(const $ of w)$.status="failed",$.error=F}}else for(const g of w)await O(g);qe.value=!1}}Mt(()=>i.tasks,m=>{var g;const w=new Map(m.map(b=>[b.taskId,b]));for(const b of ls)for(const F of l[b.key].rows){if(!F.taskId)continue;const $=w.get(F.taskId);$&&($.status==="success"?(F.status="success",F.output=$.output,F.progress=100):$.status==="failed"?(F.status="failed",F.error=((g=$.error)==null?void 0:g.message)??"转换失败"):(F.status="converting",F.progress=$.progress??F.progress))}},{deep:!0});function L(m){v.value.rows.splice(m,1)}function G(){v.value.rows=v.value.rows.filter(m=>m.status==="pending"||m.status==="converting")}async function f(m){try{await xe.revealPath(m.path)}catch(w){de.value=w instanceof Error?w.message:"打开目录失败"}}async function p(m){if(m.taskId)try{await xe.revealTask(m.taskId)}catch(w){de.value=w instanceof Error?w.message:"打开目录失败"}}function _(m){return m==="pending"?C.workbench.statusPending:m==="converting"?C.workbench.statusRunning:m==="success"?C.workbench.statusSuccess:C.workbench.statusFailed}const k=oe(()=>[...V.value].slice(0,10).map(m=>m.toUpperCase()).join(" / ")),A=oe(()=>[...V.value].map(m=>`.${m}`).join(","));let P;return os(()=>{t&&(P=Ao().onMessage(m=>{m.type==="activation:revoked"&&(o.activated=!1,o.checking=!1)}),xe.wxStatus().then(m=>{o.activated=m.activated,a.value=m.pairCode,o.checking=!1}).catch(()=>{o.checking=!1}))}),bn(()=>{P==null||P()}),(m,w)=>(R(),I("section",Fp,[c("h1",Vp,S(y(C).workbench.title),1),c("p",Lp,S(y(C).workbench.subtitle),1),y(t)?o.activated?(R(),I("div",Hp,[c("aside",jp,[(R(!0),I(ne,null,Ce(y(ls),g=>(R(),I("button",{key:g.key,type:"button",class:ye(["tab-btn",{active:r.value===g.key}]),"data-testid":`tab-${g.key}`,onClick:b=>{r.value=g.key,de.value=""}},[U(J,{name:g.icon,size:17},null,8,["name"]),c("span",Bp,S(g.label),1),l[g.key].rows.length?(R(),I("span",zp,S(l[g.key].rows.length),1)):Q("",!0)],10,Up))),128))]),c("div",Kp,[c("div",{class:ye(["dropzone",{dragging:ee.value,compact:v.value.rows.length>0}]),"data-testid":"dropzone",onDragover:w[2]||(w[2]=so(g=>ee.value=!0,["prevent"])),onDragleave:w[3]||(w[3]=g=>ee.value=!1),onDrop:so(Ge,["prevent"])},[v.value.rows.length?(R(),I(ne,{key:1},[U(J,{name:"upload",size:15}),c("span",Jp,S(y(C).workbench.dropCompact.replace("{tab}",h.value.label)),1)],64)):(R(),I(ne,{key:0},[c("span",Wp,[U(J,{name:h.value.icon,size:30},null,8,["name"])]),c("strong",Gp,S(y(C).workbench.dropTitle.replace("{tab}",h.value.label)),1),c("p",qp,S(y(C).workbench.dropHint.replace("{exts}",k.value)),1)],64)),c("div",Yp,[It(c("input",{"onUpdate:modelValue":w[0]||(w[0]=g=>Z.value=g),type:"text",placeholder:y(C).workbench.pastePlaceholder,onKeydown:Wc(ie,["enter"])},null,40,Qp),[[Ut,Z.value]]),c("button",{class:"ghost",type:"button",disabled:!Z.value.trim(),onClick:ie},[U(J,{name:"plus",size:14}),H(S(y(C).workbench.addPath),1)],8,Xp),c("button",{class:"primary",type:"button",disabled:le.value,onClick:w[1]||(w[1]=g=>{var b;return(b=Te.value)==null?void 0:b.click()})},[le.value?(R(),I("span",eg)):(R(),it(J,{key:0,name:"file",size:14})),H(" "+S(le.value?"导入中…":y(C).workbench.addFile),1)],8,Zp)]),c("input",{ref_key:"fileInput",ref:Te,type:"file",multiple:"",hidden:"",accept:A.value,onChange:ft},null,40,tg)],34),de.value?(R(),I("p",sg,[U(J,{name:"alert-circle",size:15}),H(S(de.value),1)])):Q("",!0),v.value.rows.length?(R(),I(ne,{key:1},[c("div",ng,[c("span",og,S(y(C).workbench.convertTo),1),M.value.length?(R(),I("div",ig,[(R(!0),I(ne,null,Ce(M.value,g=>(R(),I("button",{key:`${g.conversionKey}:${g.format}`,type:"button",class:ye(["target-chip",{active:D(g)}]),"data-testid":"target-chip",onClick:b=>B(g)},S(y(Li)(M.value,g)),11,rg))),128))])):x.value.some(g=>g.available)?(R(),I("p",lg,[U(J,{name:"alert-circle",size:15}),H(S(y(C).workbench.noCommonTargets),1)])):(R(),I("div",ag,[U(J,{name:"alert-circle",size:15}),c("span",cg,S(y(C).workbench.noTools),1),c("button",{class:"btn primary goto-settings",type:"button","data-testid":"goto-settings",onClick:d},S(y(C).workbench.gotoSettings),1)]))]),c("div",ug,[c("table",fg,[c("thead",null,[c("tr",null,[c("th",dg,S(y(C).workbench.tableFile),1),c("th",hg,S(y(C).workbench.tablePath),1),c("th",pg,S(y(C).workbench.tableSize),1),c("th",gg,S(y(C).workbench.tableStatus),1),c("th",mg,S(y(C).workbench.tableActions),1)])]),c("tbody",null,[(R(!0),I(ne,null,Ce(v.value.rows,(g,b)=>(R(),I("tr",{key:g.path,"data-testid":"file-row"},[c("td",vg,[c("span",yg,[U(J,{name:ut(g.ext),size:16},null,8,["name"])]),c("span",{class:"file-name",title:g.path},S(g.name??Ze(g.path)),9,_g),c("span",bg,S(g.ext?g.ext.toUpperCase():"?"),1)]),c("td",wg,[c("button",{class:"path-link",type:"button","data-testid":"row-path",title:g.path,onClick:F=>f(g)},S(g.path),9,Sg)]),c("td",xg,S(g.size!==void 0?y(Jh)(g.size):"—"),1),c("td",kg,[c("span",{class:ye(["row-status",g.status]),title:g.error??""},[g.status==="converting"?(R(),I("span",Eg)):Q("",!0),H(" "+S(_(g.status))+" ",1),g.status==="converting"&&g.progress!==void 0?(R(),I("em",Ag,S(g.progress)+"%",1)):Q("",!0),g.status==="failed"&&g.error?(R(),I("em",Rg,S(g.error),1)):Q("",!0)],10,Cg)]),c("td",Tg,[g.status==="pending"&&!E.value?(R(),I("button",{key:0,class:"ghost tiny",type:"button",onClick:F=>O(g)},S(y(C).workbench.convert),9,Og)):Q("",!0),g.status==="failed"&&!E.value?(R(),I("button",{key:1,class:"ghost tiny",type:"button",onClick:F=>O(g)},S(y(C).workbench.retry),9,Pg)):Q("",!0),g.status==="success"?(R(),I("button",{key:2,class:"ghost tiny",type:"button",onClick:F=>p(g)},S(y(C).workbench.openFolder),9,Ig)):Q("",!0),c("button",{class:"icon-btn",type:"button",title:y(C).workbench.remove,onClick:F=>L(b)},[U(J,{name:"x",size:14})],8,$g)])]))),128))])])]),z.value.length?(R(),I("div",Mg,[c("div",Ng,S(y(C).workbench.paramsTitle),1),c("div",Dg,[(R(!0),I(ne,null,Ce(z.value,g=>(R(),I("label",{key:g.key,class:ye(["param-field",{wide:g.control==="file"}])},[c("span",Fg,[H(S(g.label),1),g.unit?(R(),I(ne,{key:0},[H("("+S(g.unit)+")",1)],64)):Q("",!0),g.required?(R(),I("i",Vg,"*")):Q("",!0)]),g.control==="preset"?It((R(),I("select",{key:0,"onUpdate:modelValue":b=>v.value.paramValues[g.key]=b,"data-testid":`param-${g.key}`},[(R(!0),I(ne,null,Ce(g.presets??[],b=>(R(),I("option",{key:b.value,value:b.value},S(b.label),9,Hg))),128))],8,Lg)),[[Co,v.value.paramValues[g.key]]]):g.control==="number"?It((R(),I("input",{key:1,"onUpdate:modelValue":b=>v.value.paramValues[g.key]=b,type:"number",min:g.min,max:g.max,placeholder:"不调整","data-testid":`param-${g.key}`},null,8,jg)),[[Ut,v.value.paramValues[g.key],void 0,{number:!0}]]):g.control==="file"?(R(),I("div",Ug,[It(c("input",{"onUpdate:modelValue":b=>v.value.paramValues[g.key]=b,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${g.key}`},null,8,Bg),[[Ut,v.value.paramValues[g.key],void 0,{trim:!0}]]),c("button",{class:"ghost",type:"button",disabled:le.value,onClick:w[4]||(w[4]=b=>{var F;return(F=Ee.value)==null?void 0:F.click()})},S(y(C).workbench.chooseFile),9,zg),c("input",{ref_for:!0,ref_key:"watermarkInput",ref:Ee,type:"file",hidden:"",accept:"image/*",onChange:Pe},null,544)])):It((R(),I("input",{key:3,"onUpdate:modelValue":b=>v.value.paramValues[g.key]=b,type:g.control==="password"?"password":"text","data-testid":`param-${g.key}`},null,8,Kg)),[[jc,v.value.paramValues[g.key],void 0,{trim:!0}]]),g.description?(R(),I("small",Wg,S(g.description),1)):Q("",!0)],2))),128))])])):Q("",!0),c("div",{class:ye(["batch-bar",{disabled:!Ne.value}])},[c("span",Gg,[w[5]||(w[5]=H(" 待转换 ",-1)),c("strong",null,S(et.value),1),H(" 个 → "+S(v.value.selected?y(Li)(M.value,v.value.selected):"—"),1)]),c("div",qg,[Ct.value?(R(),I("button",{key:0,class:"ghost",type:"button",onClick:G},"清除已完成")):Q("",!0),c("button",{class:"primary batch",type:"button","data-testid":"batch-convert",disabled:!Ne.value,onClick:j},[qe.value?(R(),I("span",Yg)):Q("",!0),H(" "+S(qe.value?"转换中…":y(C).workbench.batchConvertN.replace("{n}",String(et.value))),1)],8,Jg)])],2)],64)):Q("",!0)])])):(R(),it(Dp,{key:1,"pair-code":a.value,"data-testid":"follow-gate",onActivated:u},null,8,["pair-code"])):(R(),it(Rp,{key:0}))]))}}),Xg=Xe(Qg,[["__scopeId","data-v-9641c996"]]),Zg=cf({history:Uu(),routes:[{path:"/",name:"landing",component:Gd},{path:"/workbench",name:"workbench",component:Xg},{path:"/history",name:"history",component:sd},{path:"/settings",name:"settings",component:Uh},{path:"/:pathMatch(.*)*",redirect:"/"}]});Jc(Of).use(Xc()).use(Zg).mount("#app");