17 行
115 KiB
JavaScript
17 行
115 KiB
JavaScript
var Ri=Object.defineProperty;var $i=(e,t,n)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sl=(e,t,n)=>$i(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/**
|
|
* @vue/shared v3.5.39
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function El(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Vt=[],ot=()=>{},Vs=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Te=Object.assign,Tl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bi=Object.prototype.hasOwnProperty,ne=(e,t)=>Bi.call(e,t),H=Array.isArray,Ft=e=>dn(e)==="[object Map]",Hn=e=>dn(e)==="[object Set]",rs=e=>dn(e)==="[object Date]",q=e=>typeof e=="function",ye=e=>typeof e=="string",it=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Fs=e=>(ae(e)||q(e))&&q(e.then)&&q(e.catch),Ns=Object.prototype.toString,dn=e=>Ns.call(e),Ui=e=>dn(e).slice(8,-1),js=e=>dn(e)==="[object Object]",Ol=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xt=El(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Li=/-\w/g,Je=Wn(e=>e.replace(Li,t=>t.slice(1).toUpperCase())),Vi=/\B([A-Z])/g,$t=Wn(e=>e.replace(Vi,"-$1").toLowerCase()),Hs=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ol=Wn(e=>e?`on${Hs(e)}`:""),st=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ws=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let as;const qn=()=>as||(as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Il(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],s=ye(l)?Hi(l):Il(l);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||ae(e))return e}const Fi=/;(?![^(]*\))/g,Ni=/:([^]+)/,ji=/\/\*[^]*?\*\//g;function Hi(e){const t={};return e.replace(ji,"").split(Fi).forEach(n=>{if(n){const l=n.split(Ni);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Jn(e){let t="";if(ye(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const l=Jn(e[n]);l&&(t+=l+" ")}else if(ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Wi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ki=El(Wi);function Ks(e){return!!e||e===""}function qi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=fn(e[l],t[l]);return n}function fn(e,t){if(e===t)return!0;let n=rs(e),l=rs(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=it(e),l=it(t),n||l)return e===t;if(n=H(e),l=H(t),n||l)return n&&l?qi(e,t):!1;if(n=ae(e),l=ae(t),n||l){if(!n||!l)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const r in e){const d=e.hasOwnProperty(r),f=t.hasOwnProperty(r);if(d&&!f||!d&&f||!fn(e[r],t[r]))return!1}}return String(e)===String(t)}function Ji(e,t){return e.findIndex(n=>fn(n,t))}const qs=e=>!!(e&&e.__v_isRef===!0),u=e=>ye(e)?e:e==null?"":H(e)||ae(e)&&(e.toString===Ns||!q(e.toString))?qs(e)?u(e.value):JSON.stringify(e,Js,2):String(e),Js=(e,t)=>qs(t)?Js(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[il(l,i)+" =>"]=s,n),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>il(n))}:it(t)?il(t):ae(t)&&!H(t)&&!js(t)?String(t):t,il=(e,t="")=>{var n;return it(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.39
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Ee;class Gi{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&&Ee&&(Ee.active?(this.parent=Ee,this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){++this._on===1&&(this.prevScope=Ee,Ee=this)}off(){if(this._on>0&&--this._on===0){if(Ee===this)Ee=this.prevScope;else{let t=Ee;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 n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function zi(){return Ee}let ge;const rl=new WeakSet;class Gs{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,Ee&&(Ee.active?Ee.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,rl.has(this)&&(rl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ys(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,us(this),Qs(this);const t=ge,n=Ge;ge=this,Ge=!0;try{return this.fn()}finally{Xs(this),ge=t,Ge=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Rl(t);this.deps=this.depsTail=void 0,us(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?rl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){_l(this)&&this.run()}get dirty(){return _l(this)}}let zs=0,Zt,en;function Ys(e,t=!1){if(e.flags|=8,t){e.next=en,en=e;return}e.next=Zt,Zt=e}function Al(){zs++}function Ml(){if(--zs>0)return;if(en){let t=en;for(en=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Zt;){let t=Zt;for(Zt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Qs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xs(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Rl(l),Yi(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function _l(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on)||(e.globalVersion=on,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!_l(e))))return;e.flags|=2;const t=e.dep,n=ge,l=Ge;ge=e,Ge=!0;try{Qs(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ge=n,Ge=l,Xs(e),e.flags&=-3}}function Rl(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ge=!0;const eo=[];function rt(){eo.push(Ge),Ge=!1}function at(){const e=eo.pop();Ge=e===void 0?!0:e}function us(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let on=0;class Qi{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class $l{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(!ge||!Ge||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new Qi(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,to(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=l)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Al();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ml()}}}function to(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)to(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ml=new WeakMap,Mt=Symbol(""),yl=Symbol(""),rn=Symbol("");function Ie(e,t,n){if(Ge&&ge){let l=ml.get(e);l||ml.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new $l),s.map=l,s.key=n),s.track()}}function vt(e,t,n,l,s,i){const r=ml.get(e);if(!r){on++;return}const d=f=>{f&&f.trigger()};if(Al(),t==="clear")r.forEach(d);else{const f=H(e),_=f&&Ol(n);if(f&&n==="length"){const v=Number(l);r.forEach((y,T)=>{(T==="length"||T===rn||!it(T)&&T>=v)&&d(y)})}else switch((n!==void 0||r.has(void 0))&&d(r.get(n)),_&&d(r.get(rn)),t){case"add":f?_&&d(r.get("length")):(d(r.get(Mt)),Ft(e)&&d(r.get(yl)));break;case"delete":f||(d(r.get(Mt)),Ft(e)&&d(r.get(yl)));break;case"set":Ft(e)&&d(r.get(Mt));break}}Ml()}function Bt(e){const t=te(e);return t===e?t:(Ie(t,"iterate",rn),Ke(e)?t:t.map(ze))}function Gn(e){return Ie(e=te(e),"iterate",rn),e}function nt(e,t){return yt(e)?Wt(Rt(e)?ze(t):t):ze(t)}const Xi={__proto__:null,[Symbol.iterator](){return al(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return Bt(this).concat(...e.map(t=>H(t)?Bt(t):t))},entries(){return al(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,n=>n.map(l=>nt(this,l)),arguments)},find(e,t){return pt(this,"find",e,t,n=>nt(this,n),arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,n=>nt(this,n),arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ul(this,"includes",e)},indexOf(...e){return ul(this,"indexOf",e)},join(e){return Bt(this).join(e)},lastIndexOf(...e){return ul(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return Gt(this,"pop")},push(...e){return Gt(this,"push",e)},reduce(e,...t){return cs(this,"reduce",e,t)},reduceRight(e,...t){return cs(this,"reduceRight",e,t)},shift(){return Gt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return Gt(this,"splice",e)},toReversed(){return Bt(this).toReversed()},toSorted(e){return Bt(this).toSorted(e)},toSpliced(...e){return Bt(this).toSpliced(...e)},unshift(...e){return Gt(this,"unshift",e)},values(){return al(this,"values",e=>nt(this,e))}};function al(e,t,n){const l=Gn(e),s=l[t]();return l!==e&&!Ke(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Zi=Array.prototype;function pt(e,t,n,l,s,i){const r=Gn(e),d=r!==e&&!Ke(e),f=r[t];if(f!==Zi[t]){const y=f.apply(e,i);return d?ze(y):y}let _=n;r!==e&&(d?_=function(y,T){return n.call(this,nt(e,y),T,e)}:n.length>2&&(_=function(y,T){return n.call(this,y,T,e)}));const v=f.call(r,_,l);return d&&s?s(v):v}function cs(e,t,n,l){const s=Gn(e),i=s!==e&&!Ke(e);let r=n,d=!1;s!==e&&(i?(d=l.length===0,r=function(_,v,y){return d&&(d=!1,_=nt(e,_)),n.call(this,_,nt(e,v),y,e)}):n.length>3&&(r=function(_,v,y){return n.call(this,_,v,y,e)}));const f=s[t](r,...l);return d?nt(e,f):f}function ul(e,t,n){const l=te(e);Ie(l,"iterate",rn);const s=l[t](...n);return(s===-1||s===!1)&&Vl(n[0])?(n[0]=te(n[0]),l[t](...n)):s}function Gt(e,t,n=[]){rt(),Al();const l=te(e)[t].apply(e,n);return Ml(),at(),l}const er=El("__proto__,__v_isRef,__isVue"),no=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function tr(e){it(e)||(e=String(e));const t=te(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class lo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?dr:ro:i?io:oo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=H(t);if(!s){let f;if(r&&(f=Xi[n]))return f;if(n==="hasOwnProperty")return tr}const d=Reflect.get(t,n,Ae(t)?t:l);if((it(n)?no.has(n):er(n))||(s||Ie(t,"get",n),i))return d;if(Ae(d)){const f=r&&Ol(n)?d:d.value;return s&&ae(f)?wl(f):f}return ae(d)?s?wl(d):Ul(d):d}}class so extends lo{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const r=H(t)&&Ol(n);if(!this._isShallow){const _=yt(i);if(!Ke(l)&&!yt(l)&&(i=te(i),l=te(l)),!r&&Ae(i)&&!Ae(l))return _||(i.value=l),!0}const d=r?Number(n)<t.length:ne(t,n),f=Reflect.set(t,n,l,Ae(t)?t:s);return t===te(s)&&f&&(d?st(l,i)&&vt(t,"set",n,l):vt(t,"add",n,l)),f}deleteProperty(t,n){const l=ne(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&l&&vt(t,"delete",n,void 0),s}has(t,n){const l=Reflect.has(t,n);return(!it(n)||!no.has(n))&&Ie(t,"has",n),l}ownKeys(t){return Ie(t,"iterate",H(t)?"length":Mt),Reflect.ownKeys(t)}}class nr extends lo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const lr=new so,sr=new nr,or=new so(!0);const bl=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function ir(e,t,n){return function(...l){const s=this.__v_raw,i=te(s),r=Ft(i),d=e==="entries"||e===Symbol.iterator&&r,f=e==="keys"&&r,_=s[e](...l),v=n?bl:t?Wt:ze;return!t&&Ie(i,"iterate",f?yl:Mt),Te(Object.create(_),{next(){const{value:y,done:T}=_.next();return T?{value:y,done:T}:{value:d?[v(y[0]),v(y[1])]:v(y),done:T}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rr(e,t){const n={get(s){const i=this.__v_raw,r=te(i),d=te(s);e||(st(s,d)&&Ie(r,"get",s),Ie(r,"get",d));const{has:f}=Pn(r),_=t?bl:e?Wt:ze;if(f.call(r,s))return _(i.get(s));if(f.call(r,d))return _(i.get(d));i!==r&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ie(te(s),"iterate",Mt),s.size},has(s){const i=this.__v_raw,r=te(i),d=te(s);return e||(st(s,d)&&Ie(r,"has",s),Ie(r,"has",d)),s===d?i.has(s):i.has(s)||i.has(d)},forEach(s,i){const r=this,d=r.__v_raw,f=te(d),_=t?bl:e?Wt:ze;return!e&&Ie(f,"iterate",Mt),d.forEach((v,y)=>s.call(i,_(v),_(y),r))}};return Te(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(s){const i=te(this),r=Pn(i),d=te(s),f=!t&&!Ke(s)&&!yt(s)?d:s;return r.has.call(i,f)||st(s,f)&&r.has.call(i,s)||st(d,f)&&r.has.call(i,d)||(i.add(f),vt(i,"add",f,f)),this},set(s,i){!t&&!Ke(i)&&!yt(i)&&(i=te(i));const r=te(this),{has:d,get:f}=Pn(r);let _=d.call(r,s);_||(s=te(s),_=d.call(r,s));const v=f.call(r,s);return r.set(s,i),_?st(i,v)&&vt(r,"set",s,i):vt(r,"add",s,i),this},delete(s){const i=te(this),{has:r,get:d}=Pn(i);let f=r.call(i,s);f||(s=te(s),f=r.call(i,s)),d&&d.call(i,s);const _=i.delete(s);return f&&vt(i,"delete",s,void 0),_},clear(){const s=te(this),i=s.size!==0,r=s.clear();return i&&vt(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=ir(s,e,t)}),n}function Bl(e,t){const n=rr(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(ne(n,s)&&s in l?n:l,s,i)}const ar={get:Bl(!1,!1)},ur={get:Bl(!1,!0)},cr={get:Bl(!0,!1)};const oo=new WeakMap,io=new WeakMap,ro=new WeakMap,dr=new WeakMap;function fr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return yt(e)?e:Ll(e,!1,lr,ar,oo)}function pr(e){return Ll(e,!1,or,ur,io)}function wl(e){return Ll(e,!0,sr,cr,ro)}function Ll(e,t,n,l,s){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const r=fr(Ui(e));if(r===0)return e;const d=new Proxy(e,r===2?l:n);return s.set(e,d),d}function Rt(e){return yt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function yt(e){return!!(e&&e.__v_isReadonly)}function Ke(e){return!!(e&&e.__v_isShallow)}function Vl(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function hr(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Ws(e,"__v_skip",!0),e}const ze=e=>ae(e)?Ul(e):e,Wt=e=>ae(e)?wl(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function j(e){return gr(e,!1)}function gr(e,t){return Ae(e)?e:new vr(e,t)}class vr{constructor(t,n){this.dep=new $l,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:ze(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||Ke(t)||yt(t);t=l?t:te(t),st(t,n)&&(this._rawValue=t,this._value=l?t:ze(t),this.dep.trigger())}}function _r(e){return Ae(e)?e.value:e}const mr={get:(e,t,n)=>t==="__v_raw"?e:_r(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ae(s)&&!Ae(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function ao(e){return Rt(e)?e:new Proxy(e,mr)}class yr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new $l(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Ys(this,!0),!0}get value(){const t=this.dep.track();return Zs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function br(e,t,n=!1){let l,s;return q(e)?l=e:(l=e.get,s=e.set),new yr(l,s,n)}const En={},An=new WeakMap;let It;function wr(e,t=!1,n=It){if(n){let l=An.get(n);l||An.set(n,l=[]),l.push(e)}}function xr(e,t,n=de){const{immediate:l,deep:s,once:i,scheduler:r,augmentJob:d,call:f}=n,_=U=>s?U:Ke(U)||s===!1||s===0?_t(U,1):_t(U);let v,y,T,A,Q=!1,L=!1;if(Ae(e)?(y=()=>e.value,Q=Ke(e)):Rt(e)?(y=()=>_(e),Q=!0):H(e)?(L=!0,Q=e.some(U=>Rt(U)||Ke(U)),y=()=>e.map(U=>{if(Ae(U))return U.value;if(Rt(U))return _(U);if(q(U))return f?f(U,2):U()})):q(e)?t?y=f?()=>f(e,2):e:y=()=>{if(T){rt();try{T()}finally{at()}}const U=It;It=v;try{return f?f(e,3,[A]):e(A)}finally{It=U}}:y=ot,t&&s){const U=y,ce=s===!0?1/0:s;y=()=>_t(U(),ce)}const fe=zi(),ue=()=>{v.stop(),fe&&fe.active&&Tl(fe.effects,v)};if(i&&t){const U=t;t=(...ce)=>{const Me=U(...ce);return ue(),Me}}let W=L?new Array(e.length).fill(En):En;const le=U=>{if(!(!(v.flags&1)||!v.dirty&&!U))if(t){const ce=v.run();if(U||s||Q||(L?ce.some((Me,Ve)=>st(Me,W[Ve])):st(ce,W))){T&&T();const Me=It;It=v;try{const Ve=[ce,W===En?void 0:L&&W[0]===En?[]:W,A];W=ce,f?f(t,3,Ve):t(...Ve)}finally{It=Me}}}else v.run()};return d&&d(le),v=new Gs(y),v.scheduler=r?()=>r(le,!1):le,A=U=>wr(U,!1,v),T=v.onStop=()=>{const U=An.get(v);if(U){if(f)f(U,4);else for(const ce of U)ce();An.delete(v)}},t?l?le(!0):W=v.run():r?r(le.bind(null,!0),!0):v.run(),ue.pause=v.pause.bind(v),ue.resume=v.resume.bind(v),ue.stop=ue,ue}function _t(e,t=1/0,n){if(t<=0||!ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ae(e))_t(e.value,t,n);else if(H(e))for(let l=0;l<e.length;l++)_t(e[l],t,n);else if(Hn(e)||Ft(e))e.forEach(l=>{_t(l,t,n)});else if(js(e)){for(const l in e)_t(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&_t(e[l],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.39
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function pn(e,t,n,l){try{return l?e(...l):e()}catch(s){zn(s,t,n)}}function Ye(e,t,n,l){if(q(e)){const s=pn(e,t,n,l);return s&&Fs(s)&&s.catch(i=>{zn(i,t,n)}),s}if(H(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Ye(e[i],t,n,l));return s}}function zn(e,t,n,l=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||de;if(t){let d=t.parent;const f=t.proxy,_=`https://vuejs.org/error-reference/#runtime-${n}`;for(;d;){const v=d.ec;if(v){for(let y=0;y<v.length;y++)if(v[y](e,f,_)===!1)return}d=d.parent}if(i){rt(),pn(i,null,10,[e,f,_]),at();return}}kr(e,n,s,l,r)}function kr(e,t,n,l=!0,s=!1){if(s)throw e;console.error(e)}const Ue=[];let et=-1;const Nt=[];let Ct=null,Lt=0;const uo=Promise.resolve();let Mn=null;function co(e){const t=Mn||uo;return e?t.then(this?e.bind(this):e):t}function Cr(e){let t=et+1,n=Ue.length;for(;t<n;){const l=t+n>>>1,s=Ue[l],i=an(s);i<e||i===e&&s.flags&2?t=l+1:n=l}return t}function Fl(e){if(!(e.flags&1)){const t=an(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=an(n)?Ue.push(e):Ue.splice(Cr(t),0,e),e.flags|=1,fo()}}function fo(){Mn||(Mn=uo.then(ho))}function Sr(e){H(e)?Nt.push(...e):Ct&&e.id===-1?Ct.splice(Lt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),fo()}function ds(e,t,n=et+1){for(;n<Ue.length;n++){const l=Ue[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ue.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function po(e){if(Nt.length){const t=[...new Set(Nt)].sort((n,l)=>an(n)-an(l));if(Nt.length=0,Ct){Ct.push(...t);return}for(Ct=t,Lt=0;Lt<Ct.length;Lt++){const n=Ct[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ct=null,Lt=0}}const an=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ho(e){try{for(et=0;et<Ue.length;et++){const t=Ue[et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;et<Ue.length;et++){const t=Ue[et];t&&(t.flags&=-2)}et=-1,Ue.length=0,po(),Mn=null,(Ue.length||Nt.length)&&ho()}}let We=null,go=null;function Rn(e){const t=We;return We=e,go=e&&e.type.__scopeId||null,t}function Pr(e,t=We,n){if(!t||e._n)return e;const l=(...s)=>{l._d&&xs(-1);const i=Rn(t);let r;try{r=e(...s)}finally{Rn(i),l._d&&xs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function F(e,t){if(We===null)return e;const n=Zn(We),l=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,r,d,f=de]=t[s];i&&(q(i)&&(i={mounted:i,updated:i}),i.deep&&_t(r),l.push({dir:i,instance:n,value:r,oldValue:void 0,arg:d,modifiers:f}))}return e}function Tt(e,t,n,l){const s=e.dirs,i=t&&t.dirs;for(let r=0;r<s.length;r++){const d=s[r];i&&(d.oldValue=i[r].value);let f=d.dir[l];f&&(rt(),Ye(f,n,8,[e.el,d,e,t]),at())}}function Dr(e,t){if(Le){let n=Le.provides;const l=Le.parent&&Le.parent.provides;l===n&&(n=Le.provides=Object.create(l)),n[e]=t}}function On(e,t,n=!1){const l=Da();if(l||jt){let s=jt?jt._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&q(t)?t.call(l&&l.proxy):t}}const Er=Symbol.for("v-scx"),Tr=()=>On(Er);function cl(e,t,n){return vo(e,t,n)}function vo(e,t,n=de){const{immediate:l,deep:s,flush:i,once:r}=n,d=Te({},n),f=t&&l||!t&&i!=="post";let _;if(cn){if(i==="sync"){const A=Tr();_=A.__watcherHandles||(A.__watcherHandles=[])}else if(!f){const A=()=>{};return A.stop=ot,A.resume=ot,A.pause=ot,A}}const v=Le;d.call=(A,Q,L)=>Ye(A,v,Q,L);let y=!1;i==="post"?d.scheduler=A=>{Fe(A,v&&v.suspense)}:i!=="sync"&&(y=!0,d.scheduler=(A,Q)=>{Q?A():Fl(A)}),d.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,v&&(A.id=v.uid,A.i=v))};const T=xr(e,t,d);return cn&&(_?_.push(T):f&&T()),T}function Or(e,t,n){const l=this.proxy,s=ye(e)?e.includes(".")?_o(l,e):()=>l[e]:e.bind(l,l);let i;q(t)?i=t:(i=t.handler,n=t);const r=hn(this),d=vo(s,i.bind(l),n);return r(),d}function _o(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;s<n.length&&l;s++)l=l[n[s]];return l}}const Ir=Symbol("_vte"),Ar=e=>e.__isTeleport,dl=Symbol("_leaveCb");function Nl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Mr(e,t){return q(e)?Te({name:e.name},t,{setup:e}):e}function mo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function fs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $n=new WeakMap;function tn(e,t,n,l,s=!1){if(H(e)){e.forEach((L,fe)=>tn(L,t&&(H(t)?t[fe]:t),n,l,s));return}if(nn(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&tn(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Zn(l.component):l.el,r=s?null:i,{i:d,r:f}=e,_=t&&t.r,v=d.refs===de?d.refs={}:d.refs,y=d.setupState,T=te(y),A=y===de?Vs:L=>fs(v,L)?!1:ne(T,L),Q=(L,fe)=>!(fe&&fs(v,fe));if(_!=null&&_!==f){if(ps(t),ye(_))v[_]=null,A(_)&&(y[_]=null);else if(Ae(_)){const L=t;Q(_,L.k)&&(_.value=null),L.k&&(v[L.k]=null)}}if(q(f)){rt();try{pn(f,d,12,[r,v])}finally{at()}}else{const L=ye(f),fe=Ae(f);if(L||fe){const ue=()=>{if(e.f){const W=L?A(f)?y[f]:v[f]:Q()||!e.k?f.value:v[e.k];if(s)H(W)&&Tl(W,i);else if(H(W))W.includes(i)||W.push(i);else if(L)v[f]=[i],A(f)&&(y[f]=v[f]);else{const le=[i];Q(f,e.k)&&(f.value=le),e.k&&(v[e.k]=le)}}else L?(v[f]=r,A(f)&&(y[f]=r)):fe&&(Q(f,e.k)&&(f.value=r),e.k&&(v[e.k]=r))};if(r){const W=()=>{ue(),$n.delete(e)};W.id=-1,$n.set(e,W),Fe(W,n)}else ps(e),ue()}}}function ps(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}qn().requestIdleCallback;qn().cancelIdleCallback;const nn=e=>!!e.type.__asyncLoader,yo=e=>e.type.__isKeepAlive;function Rr(e,t){bo(e,"a",t)}function $r(e,t){bo(e,"da",t)}function bo(e,t,n=Le){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)yo(s.parent.vnode)&&Br(l,t,n,s),s=s.parent}}function Br(e,t,n,l){const s=Yn(t,e,l,!0);xo(()=>{Tl(l[t],s)},n)}function Yn(e,t,n=Le,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{rt();const d=hn(n),f=Ye(t,n,e,r);return d(),at(),f});return l?s.unshift(i):s.push(i),i}}const bt=e=>(t,n=Le)=>{(!cn||e==="sp")&&Yn(e,(...l)=>t(...l),n)},Ur=bt("bm"),wo=bt("m"),Lr=bt("bu"),Vr=bt("u"),Fr=bt("bum"),xo=bt("um"),Nr=bt("sp"),jr=bt("rtg"),Hr=bt("rtc");function Wr(e,t=Le){Yn("ec",e,t)}const Kr=Symbol.for("v-ndc");function _e(e,t,n,l){let s;const i=n,r=H(e);if(r||ye(e)){const d=r&&Rt(e);let f=!1,_=!1;d&&(f=!Ke(e),_=yt(e),e=Gn(e)),s=new Array(e.length);for(let v=0,y=e.length;v<y;v++)s[v]=t(f?_?Wt(ze(e[v])):ze(e[v]):e[v],v,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,i)}else if(ae(e))if(e[Symbol.iterator])s=Array.from(e,(d,f)=>t(d,f,void 0,i));else{const d=Object.keys(e);s=new Array(d.length);for(let f=0,_=d.length;f<_;f++){const v=d[f];s[f]=t(e[v],v,f,i)}}else s=[];return s}const xl=e=>e?Ho(e)?Zn(e):xl(e.parent):null,ln=Te(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=>xl(e.parent),$root:e=>xl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Co(e),$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=co.bind(e.proxy)),$watch:e=>Or.bind(e)}),fl=(e,t)=>e!==de&&!e.__isScriptSetup&&ne(e,t),qr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:r,type:d,appContext:f}=e;if(t[0]!=="$"){const T=r[t];if(T!==void 0)switch(T){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(fl(l,t))return r[t]=1,l[t];if(s!==de&&ne(s,t))return r[t]=2,s[t];if(ne(i,t))return r[t]=3,i[t];if(n!==de&&ne(n,t))return r[t]=4,n[t];kl&&(r[t]=0)}}const _=ln[t];let v,y;if(_)return t==="$attrs"&&Ie(e.attrs,"get",""),_(e);if((v=d.__cssModules)&&(v=v[t]))return v;if(n!==de&&ne(n,t))return r[t]=4,n[t];if(y=f.config.globalProperties,ne(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return fl(s,t)?(s[t]=n,!0):l!==de&&ne(l,t)?(l[t]=n,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:r}},d){let f;return!!(n[d]||e!==de&&d[0]!=="$"&&ne(e,d)||fl(t,d)||ne(i,d)||ne(l,d)||ne(ln,d)||ne(s.config.globalProperties,d)||(f=r.__cssModules)&&f[d])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hs(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kl=!0;function Jr(e){const t=Co(e),n=e.proxy,l=e.ctx;kl=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:d,provide:f,inject:_,created:v,beforeMount:y,mounted:T,beforeUpdate:A,updated:Q,activated:L,deactivated:fe,beforeDestroy:ue,beforeUnmount:W,destroyed:le,unmounted:U,render:ce,renderTracked:Me,renderTriggered:Ve,errorCaptured:Ne,serverPrefetch:ut,expose:ve,inheritAttrs:Qe,components:ct,directives:Xe,filters:dt}=t;if(_&&Gr(_,l,null),r)for(const ee in r){const $=r[ee];q($)&&(l[ee]=$.bind(n))}if(s){const ee=s.call(n,n);ae(ee)&&(e.data=Ul(ee))}if(kl=!0,i)for(const ee in i){const $=i[ee],Oe=q($)?$.bind(n,n):q($.get)?$.get.bind(n,n):ot,qe=!q($)&&q($.set)?$.set.bind(n):ot,Pe=kt({get:Oe,set:qe});Object.defineProperty(l,ee,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:be=>Pe.value=be})}if(d)for(const ee in d)ko(d[ee],l,n,ee);if(f){const ee=q(f)?f.call(n):f;Reflect.ownKeys(ee).forEach($=>{Dr($,ee[$])})}v&&gs(v,e,"c");function N(ee,$){H($)?$.forEach(Oe=>ee(Oe.bind(n))):$&&ee($.bind(n))}if(N(Ur,y),N(wo,T),N(Lr,A),N(Vr,Q),N(Rr,L),N($r,fe),N(Wr,Ne),N(Hr,Me),N(jr,Ve),N(Fr,W),N(xo,U),N(Nr,ut),H(ve))if(ve.length){const ee=e.exposed||(e.exposed={});ve.forEach($=>{Object.defineProperty(ee,$,{get:()=>n[$],set:Oe=>n[$]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});ce&&e.render===ot&&(e.render=ce),Qe!=null&&(e.inheritAttrs=Qe),ct&&(e.components=ct),Xe&&(e.directives=Xe),ut&&mo(e)}function Gr(e,t,n=ot){H(e)&&(e=Cl(e));for(const l in e){const s=e[l];let i;ae(s)?"default"in s?i=On(s.from||l,s.default,!0):i=On(s.from||l):i=On(s),Ae(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function gs(e,t,n){Ye(H(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function ko(e,t,n,l){let s=l.includes(".")?_o(n,l):()=>n[l];if(ye(e)){const i=t[e];q(i)&&cl(s,i)}else if(q(e))cl(s,e.bind(n));else if(ae(e))if(H(e))e.forEach(i=>ko(i,t,n,l));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&cl(s,i,e)}}function Co(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,d=i.get(t);let f;return d?f=d:!s.length&&!n&&!l?f=t:(f={},s.length&&s.forEach(_=>Bn(f,_,r,!0)),Bn(f,t,r)),ae(t)&&i.set(t,f),f}function Bn(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Bn(e,i,n,!0),s&&s.forEach(r=>Bn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const d=zr[r]||n&&n[r];e[r]=d?d(e[r],t[r]):t[r]}return e}const zr={data:vs,props:_s,emits:_s,methods:Yt,computed:Yt,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:Yt,directives:Yt,watch:Qr,provide:vs,inject:Yr};function vs(e,t){return t?e?function(){return Te(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Yr(e,t){return Yt(Cl(e),Cl(t))}function Cl(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function Yt(e,t){return e?Te(Object.create(null),e,t):t}function _s(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:Te(Object.create(null),hs(e),hs(t??{})):t}function Qr(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const l in t)n[l]=Be(e[l],t[l]);return n}function So(){return{app:null,config:{isNativeTag:Vs,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 Xr=0;function Zr(e,t){return function(l,s=null){q(l)||(l=Te({},l)),s!=null&&!ae(s)&&(s=null);const i=So(),r=new WeakSet,d=[];let f=!1;const _=i.app={_uid:Xr++,_component:l,_props:s,_container:null,_context:i,_instance:null,version:Ma,get config(){return i.config},set config(v){},use(v,...y){return r.has(v)||(v&&q(v.install)?(r.add(v),v.install(_,...y)):q(v)&&(r.add(v),v(_,...y))),_},mixin(v){return i.mixins.includes(v)||i.mixins.push(v),_},component(v,y){return y?(i.components[v]=y,_):i.components[v]},directive(v,y){return y?(i.directives[v]=y,_):i.directives[v]},mount(v,y,T){if(!f){const A=_._ceVNode||mt(l,s);return A.appContext=i,T===!0?T="svg":T===!1&&(T=void 0),e(A,v,T),f=!0,_._container=v,v.__vue_app__=_,Zn(A.component)}},onUnmount(v){d.push(v)},unmount(){f&&(Ye(d,_._instance,16),e(null,_._container),delete _._container.__vue_app__)},provide(v,y){return i.provides[v]=y,_},runWithContext(v){const y=jt;jt=_;try{return v()}finally{jt=y}}};return _}}let jt=null;const ea=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function ta(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||de;let s=n;const i=t.startsWith("update:"),r=i&&ea(l,t.slice(7));r&&(r.trim&&(s=n.map(v=>ye(v)?v.trim():v)),r.number&&(s=n.map(Kn)));let d,f=l[d=ol(t)]||l[d=ol(Je(t))];!f&&i&&(f=l[d=ol($t(t))]),f&&Ye(f,e,6,s);const _=l[d+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Ye(_,e,6,s)}}const na=new WeakMap;function Po(e,t,n=!1){const l=n?na:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let r={},d=!1;if(!q(e)){const f=_=>{const v=Po(_,t,!0);v&&(d=!0,Te(r,v))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!d?(ae(e)&&l.set(e,null),null):(H(i)?i.forEach(f=>r[f]=null):Te(r,i),ae(e)&&l.set(e,r),r)}function Qn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,$t(t))||ne(e,t))}function ms(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:r,attrs:d,emit:f,render:_,renderCache:v,props:y,data:T,setupState:A,ctx:Q,inheritAttrs:L}=e,fe=Rn(e);let ue,W;try{if(n.shapeFlag&4){const U=s||l,ce=U;ue=lt(_.call(ce,U,v,y,A,T,Q)),W=d}else{const U=t;ue=lt(U.length>1?U(y,{attrs:d,slots:r,emit:f}):U(y,null)),W=t.props?d:la(d)}}catch(U){sn.length=0,zn(U,e,1),ue=mt(St)}let le=ue;if(W&&L!==!1){const U=Object.keys(W),{shapeFlag:ce}=le;U.length&&ce&7&&(i&&U.some(jn)&&(W=sa(W,i)),le=Kt(le,W,!1,!0))}return n.dirs&&(le=Kt(le,null,!1,!0),le.dirs=le.dirs?le.dirs.concat(n.dirs):n.dirs),n.transition&&Nl(le,n.transition),ue=le,Rn(fe),ue}const la=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},sa=(e,t)=>{const n={};for(const l in e)(!jn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function oa(e,t,n){const{props:l,children:s,component:i}=e,{props:r,children:d,patchFlag:f}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return l?ys(l,r,_):!!r;if(f&8){const v=t.dynamicProps;for(let y=0;y<v.length;y++){const T=v[y];if(Do(r,l,T)&&!Qn(_,T))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:l===r?!1:l?r?ys(l,r,_):!0:!!r;return!1}function ys(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let s=0;s<l.length;s++){const i=l[s];if(Do(t,e,i)&&!Qn(n,i))return!0}return!1}function Do(e,t,n){const l=e[n],s=t[n];return n==="style"&&ae(l)&&ae(s)?!fn(l,s):l!==s}function ia({vnode:e,parent:t,suspense:n},l){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=l,e=s),s===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const Eo={},To=()=>Object.create(Eo),Oo=e=>Object.getPrototypeOf(e)===Eo;function ra(e,t,n,l=!1){const s={},i=To();e.propsDefaults=Object.create(null),Io(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=l?s:pr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function aa(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,d=te(s),[f]=e.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const v=e.vnode.dynamicProps;for(let y=0;y<v.length;y++){let T=v[y];if(Qn(e.emitsOptions,T))continue;const A=t[T];if(f)if(ne(i,T))A!==i[T]&&(i[T]=A,_=!0);else{const Q=Je(T);s[Q]=Sl(f,d,Q,A,e,!1)}else A!==i[T]&&(i[T]=A,_=!0)}}}else{Io(e,t,s,i)&&(_=!0);let v;for(const y in d)(!t||!ne(t,y)&&((v=$t(y))===y||!ne(t,v)))&&(f?n&&(n[y]!==void 0||n[v]!==void 0)&&(s[y]=Sl(f,d,y,void 0,e,!0)):delete s[y]);if(i!==d)for(const y in i)(!t||!ne(t,y))&&(delete i[y],_=!0)}_&&vt(e.attrs,"set","")}function Io(e,t,n,l){const[s,i]=e.propsOptions;let r=!1,d;if(t)for(let f in t){if(Xt(f))continue;const _=t[f];let v;s&&ne(s,v=Je(f))?!i||!i.includes(v)?n[v]=_:(d||(d={}))[v]=_:Qn(e.emitsOptions,f)||(!(f in l)||_!==l[f])&&(l[f]=_,r=!0)}if(i){const f=te(n),_=d||de;for(let v=0;v<i.length;v++){const y=i[v];n[y]=Sl(s,f,y,_[y],e,!ne(_,y))}}return r}function Sl(e,t,n,l,s,i){const r=e[n];if(r!=null){const d=ne(r,"default");if(d&&l===void 0){const f=r.default;if(r.type!==Function&&!r.skipFactory&&q(f)){const{propsDefaults:_}=s;if(n in _)l=_[n];else{const v=hn(s);l=_[n]=f.call(null,t),v()}}else l=f;s.ce&&s.ce._setProp(n,l)}r[0]&&(i&&!d?l=!1:r[1]&&(l===""||l===$t(n))&&(l=!0))}return l}const ua=new WeakMap;function Ao(e,t,n=!1){const l=n?ua:t.propsCache,s=l.get(e);if(s)return s;const i=e.props,r={},d=[];let f=!1;if(!q(e)){const v=y=>{f=!0;const[T,A]=Ao(y,t,!0);Te(r,T),A&&d.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!i&&!f)return ae(e)&&l.set(e,Vt),Vt;if(H(i))for(let v=0;v<i.length;v++){const y=Je(i[v]);bs(y)&&(r[y]=de)}else if(i)for(const v in i){const y=Je(v);if(bs(y)){const T=i[v],A=r[y]=H(T)||q(T)?{type:T}:Te({},T),Q=A.type;let L=!1,fe=!0;if(H(Q))for(let ue=0;ue<Q.length;++ue){const W=Q[ue],le=q(W)&&W.name;if(le==="Boolean"){L=!0;break}else le==="String"&&(fe=!1)}else L=q(Q)&&Q.name==="Boolean";A[0]=L,A[1]=fe,(L||ne(A,"default"))&&d.push(y)}}const _=[r,d];return ae(e)&&l.set(e,_),_}function bs(e){return e[0]!=="$"&&!Xt(e)}const jl=e=>e==="_"||e==="_ctx"||e==="$stable",Hl=e=>H(e)?e.map(lt):[lt(e)],ca=(e,t,n)=>{if(t._n)return t;const l=Pr((...s)=>Hl(t(...s)),n);return l._c=!1,l},Mo=(e,t,n)=>{const l=e._ctx;for(const s in e){if(jl(s))continue;const i=e[s];if(q(i))t[s]=ca(s,i,l);else if(i!=null){const r=Hl(i);t[s]=()=>r}}},Ro=(e,t)=>{const n=Hl(t);e.slots.default=()=>n},$o=(e,t,n)=>{for(const l in t)(n||!jl(l))&&(e[l]=t[l])},da=(e,t,n)=>{const l=e.slots=To();if(e.vnode.shapeFlag&32){const s=t._;s?($o(l,t,n),n&&Ws(l,"_",s,!0)):Mo(t,l)}else t&&Ro(e,t)},fa=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,r=de;if(l.shapeFlag&32){const d=t._;d?n&&d===1?i=!1:$o(s,t,n):(i=!t.$stable,Mo(t,s)),r=t}else t&&(Ro(e,t),r={default:1});if(i)for(const d in s)!jl(d)&&r[d]==null&&delete s[d]},Fe=_a;function pa(e){return ha(e)}function ha(e,t){const n=qn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:r,createText:d,createComment:f,setText:_,setElementText:v,parentNode:y,nextSibling:T,setScopeId:A=ot,insertStaticContent:Q}=e,L=(a,g,m,k=null,x=null,b=null,E=void 0,D=null,P=!!g.dynamicChildren)=>{if(a===g)return;a&&!zt(a,g)&&(k=ft(a),be(a,x,b,!0),a=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:w,ref:B,shapeFlag:O}=g;switch(w){case Xn:fe(a,g,m,k);break;case St:ue(a,g,m,k);break;case hl:a==null&&W(g,m,k,E);break;case Y:ct(a,g,m,k,x,b,E,D,P);break;default:O&1?ce(a,g,m,k,x,b,E,D,P):O&6?Xe(a,g,m,k,x,b,E,D,P):(O&64||O&128)&&w.process(a,g,m,k,x,b,E,D,P,oe)}B!=null&&x?tn(B,a&&a.ref,b,g||a,!g):B==null&&a&&a.ref!=null&&tn(a.ref,null,b,a,!0)},fe=(a,g,m,k)=>{if(a==null)l(g.el=d(g.children),m,k);else{const x=g.el=a.el;g.children!==a.children&&_(x,g.children)}},ue=(a,g,m,k)=>{a==null?l(g.el=f(g.children||""),m,k):g.el=a.el},W=(a,g,m,k)=>{[a.el,a.anchor]=Q(a.children,g,m,k,a.el,a.anchor)},le=({el:a,anchor:g},m,k)=>{let x;for(;a&&a!==g;)x=T(a),l(a,m,k),a=x;l(g,m,k)},U=({el:a,anchor:g})=>{let m;for(;a&&a!==g;)m=T(a),s(a),a=m;s(g)},ce=(a,g,m,k,x,b,E,D,P)=>{if(g.type==="svg"?E="svg":g.type==="math"&&(E="mathml"),a==null)Me(g,m,k,x,b,E,D,P);else{const w=a.el&&a.el._isVueCE?a.el:null;try{w&&w._beginPatch(),ut(a,g,x,b,E,D,P)}finally{w&&w._endPatch()}}},Me=(a,g,m,k,x,b,E,D)=>{let P,w;const{props:B,shapeFlag:O,transition:M,dirs:V}=a;if(P=a.el=r(a.type,b,B&&B.is,B),O&8?v(P,a.children):O&16&&Ne(a.children,P,null,k,x,pl(a,b),E,D),V&&Tt(a,null,k,"created"),Ve(P,a,a.scopeId,E,k),B){for(const ie in B)ie!=="value"&&!Xt(ie)&&i(P,ie,null,B[ie],b,k);"value"in B&&i(P,"value",null,B.value,b),(w=B.onVnodeBeforeMount)&&Ze(w,k,a)}V&&Tt(a,null,k,"beforeMount");const z=ga(x,M);z&&M.beforeEnter(P),l(P,g,m),((w=B&&B.onVnodeMounted)||z||V)&&Fe(()=>{try{w&&Ze(w,k,a),z&&M.enter(P),V&&Tt(a,null,k,"mounted")}finally{}},x)},Ve=(a,g,m,k,x)=>{if(m&&A(a,m),k)for(let b=0;b<k.length;b++)A(a,k[b]);if(x){let b=x.subTree;if(g===b||Vo(b.type)&&(b.ssContent===g||b.ssFallback===g)){const E=x.vnode;Ve(a,E,E.scopeId,E.slotScopeIds,x.parent)}}},Ne=(a,g,m,k,x,b,E,D,P=0)=>{for(let w=P;w<a.length;w++){const B=a[w]=D?gt(a[w]):lt(a[w]);L(null,B,g,m,k,x,b,E,D)}},ut=(a,g,m,k,x,b,E)=>{const D=g.el=a.el;let{patchFlag:P,dynamicChildren:w,dirs:B}=g;P|=a.patchFlag&16;const O=a.props||de,M=g.props||de;let V;if(m&&Ot(m,!1),(V=M.onVnodeBeforeUpdate)&&Ze(V,m,g,a),B&&Tt(g,a,m,"beforeUpdate"),m&&Ot(m,!0),w&&(!a.dynamicChildren||a.dynamicChildren.length!==w.length)&&(P=0,E=!1,w=null),(O.innerHTML&&M.innerHTML==null||O.textContent&&M.textContent==null)&&v(D,""),w?ve(a.dynamicChildren,w,D,m,k,pl(g,x),b):E||$(a,g,D,null,m,k,pl(g,x),b,!1),P>0){if(P&16)Qe(D,O,M,m,x);else if(P&2&&O.class!==M.class&&i(D,"class",null,M.class,x),P&4&&i(D,"style",O.style,M.style,x),P&8){const z=g.dynamicProps;for(let ie=0;ie<z.length;ie++){const X=z[ie],me=O[X],xe=M[X];(xe!==me||X==="value")&&i(D,X,me,xe,x,m)}}P&1&&a.children!==g.children&&v(D,g.children)}else!E&&w==null&&Qe(D,O,M,m,x);((V=M.onVnodeUpdated)||B)&&Fe(()=>{V&&Ze(V,m,g,a),B&&Tt(g,a,m,"updated")},k)},ve=(a,g,m,k,x,b,E)=>{for(let D=0;D<g.length;D++){const P=a[D],w=g[D],B=P.el&&(P.type===Y||!zt(P,w)||P.shapeFlag&198)?y(P.el):m;L(P,w,B,null,k,x,b,E,!0)}},Qe=(a,g,m,k,x)=>{if(g!==m){if(g!==de)for(const b in g)!Xt(b)&&!(b in m)&&i(a,b,g[b],null,x,k);for(const b in m){if(Xt(b))continue;const E=m[b],D=g[b];E!==D&&b!=="value"&&i(a,b,D,E,x,k)}"value"in m&&i(a,"value",g.value,m.value,x)}},ct=(a,g,m,k,x,b,E,D,P)=>{const w=g.el=a?a.el:d(""),B=g.anchor=a?a.anchor:d("");let{patchFlag:O,dynamicChildren:M,slotScopeIds:V}=g;V&&(D=D?D.concat(V):V),a==null?(l(w,m,k),l(B,m,k),Ne(g.children||[],m,B,x,b,E,D,P)):O>0&&O&64&&M&&a.dynamicChildren&&a.dynamicChildren.length===M.length?(ve(a.dynamicChildren,M,m,x,b,E,D),(g.key!=null||x&&g===x.subTree)&&Bo(a,g,!0)):$(a,g,m,B,x,b,E,D,P)},Xe=(a,g,m,k,x,b,E,D,P)=>{g.slotScopeIds=D,a==null?g.shapeFlag&512?x.ctx.activate(g,m,k,E,P):dt(g,m,k,x,b,E,P):wt(a,g,P)},dt=(a,g,m,k,x,b,E)=>{const D=a.component=Pa(a,k,x);if(yo(a)&&(D.ctx.renderer=oe),Ea(D,!1,E),D.asyncDep){if(x&&x.registerDep(D,N,E),!a.el){const P=D.subTree=mt(St);ue(null,P,g,m),a.placeholder=P.el}}else N(D,a,g,m,x,b,E)},wt=(a,g,m)=>{const k=g.component=a.component;if(oa(a,g,m))if(k.asyncDep&&!k.asyncResolved){ee(k,g,m);return}else k.next=g,k.update();else g.el=a.el,k.vnode=g},N=(a,g,m,k,x,b,E)=>{const D=()=>{if(a.isMounted){let{next:O,bu:M,u:V,parent:z,vnode:ie}=a;{const R=Uo(a);if(R){O&&(O.el=ie.el,ee(a,O,E)),R.asyncDep.then(()=>{Fe(()=>{a.isUnmounted||w()},x)});return}}let X=O,me;Ot(a,!1),O?(O.el=ie.el,ee(a,O,E)):O=ie,M&&Tn(M),(me=O.props&&O.props.onVnodeBeforeUpdate)&&Ze(me,z,O,ie),Ot(a,!0);const xe=ms(a),ke=a.subTree;a.subTree=xe,L(ke,xe,y(ke.el),ft(ke),a,x,b),O.el=xe.el,X===null&&ia(a,xe.el),V&&Fe(V,x),(me=O.props&&O.props.onVnodeUpdated)&&Fe(()=>Ze(me,z,O,ie),x)}else{let O;const{el:M,props:V}=g,{bm:z,m:ie,parent:X,root:me,type:xe}=a,ke=nn(g);Ot(a,!1),z&&Tn(z),!ke&&(O=V&&V.onVnodeBeforeMount)&&Ze(O,X,g),Ot(a,!0);{me.ce&&me.ce._hasShadowRoot()&&me.ce._injectChildStyle(xe,a.parent?a.parent.type:void 0);const R=a.subTree=ms(a);L(null,R,m,k,a,x,b),g.el=R.el}if(ie&&Fe(ie,x),!ke&&(O=V&&V.onVnodeMounted)){const R=g;Fe(()=>Ze(O,X,R),x)}(g.shapeFlag&256||X&&nn(X.vnode)&&X.vnode.shapeFlag&256)&&a.a&&Fe(a.a,x),a.isMounted=!0,g=m=k=null}};a.scope.on();const P=a.effect=new Gs(D);a.scope.off();const w=a.update=P.run.bind(P),B=a.job=P.runIfDirty.bind(P);B.i=a,B.id=a.uid,P.scheduler=()=>Fl(B),Ot(a,!0),w()},ee=(a,g,m)=>{g.component=a;const k=a.vnode.props;a.vnode=g,a.next=null,aa(a,g.props,k,m),fa(a,g.children,m),rt(),ds(a),at()},$=(a,g,m,k,x,b,E,D,P=!1)=>{const w=a&&a.children,B=a?a.shapeFlag:0,O=g.children,{patchFlag:M,shapeFlag:V}=g;if(M>0){if(M&128){qe(w,O,m,k,x,b,E,D,P);return}else if(M&256){Oe(w,O,m,k,x,b,E,D,P);return}}V&8?(B&16&&Se(w,x,b),O!==w&&v(m,O)):B&16?V&16?qe(w,O,m,k,x,b,E,D,P):Se(w,x,b,!0):(B&8&&v(m,""),V&16&&Ne(O,m,k,x,b,E,D,P))},Oe=(a,g,m,k,x,b,E,D,P)=>{a=a||Vt,g=g||Vt;const w=a.length,B=g.length,O=Math.min(w,B);let M;for(M=0;M<O;M++){const V=g[M]=P?gt(g[M]):lt(g[M]);L(a[M],V,m,null,x,b,E,D,P)}w>B?Se(a,x,b,!0,!1,O):Ne(g,m,k,x,b,E,D,P,O)},qe=(a,g,m,k,x,b,E,D,P)=>{let w=0;const B=g.length;let O=a.length-1,M=B-1;for(;w<=O&&w<=M;){const V=a[w],z=g[w]=P?gt(g[w]):lt(g[w]);if(zt(V,z))L(V,z,m,null,x,b,E,D,P);else break;w++}for(;w<=O&&w<=M;){const V=a[O],z=g[M]=P?gt(g[M]):lt(g[M]);if(zt(V,z))L(V,z,m,null,x,b,E,D,P);else break;O--,M--}if(w>O){if(w<=M){const V=M+1,z=V<B?g[V].el:k;for(;w<=M;)L(null,g[w]=P?gt(g[w]):lt(g[w]),m,z,x,b,E,D,P),w++}}else if(w>M)for(;w<=O;)be(a[w],x,b,!0),w++;else{const V=w,z=w,ie=new Map;for(w=z;w<=M;w++){const $e=g[w]=P?gt(g[w]):lt(g[w]);$e.key!=null&&ie.set($e.key,w)}let X,me=0;const xe=M-z+1;let ke=!1,R=0;const Dt=new Array(xe);for(w=0;w<xe;w++)Dt[w]=0;for(w=V;w<=O;w++){const $e=a[w];if(me>=xe){be($e,x,b,!0);continue}let He;if($e.key!=null)He=ie.get($e.key);else for(X=z;X<=M;X++)if(Dt[X-z]===0&&zt($e,g[X])){He=X;break}He===void 0?be($e,x,b,!0):(Dt[He-z]=w+1,He>=R?R=He:ke=!0,L($e,g[He],m,null,x,b,E,D,P),me++)}const vn=ke?va(Dt):Vt;for(X=vn.length-1,w=xe-1;w>=0;w--){const $e=z+w,He=g[$e],_n=g[$e+1],mn=$e+1<B?_n.el||Lo(_n):k;Dt[w]===0?L(null,He,m,mn,x,b,E,D,P):ke&&(X<0||w!==vn[X]?Pe(He,m,mn,2):X--)}}},Pe=(a,g,m,k,x=null)=>{const{el:b,type:E,transition:D,children:P,shapeFlag:w}=a;if(w&6){Pe(a.component.subTree,g,m,k);return}if(w&128){a.suspense.move(g,m,k);return}if(w&64){E.move(a,g,m,oe);return}if(E===Y){l(b,g,m);for(let O=0;O<P.length;O++)Pe(P[O],g,m,k);l(a.anchor,g,m);return}if(E===hl){le(a,g,m);return}if(k!==2&&w&1&&D)if(k===0)D.persisted&&!b[dl]?l(b,g,m):(D.beforeEnter(b),l(b,g,m),Fe(()=>D.enter(b),x));else{const{leave:O,delayLeave:M,afterLeave:V}=D,z=()=>{a.ctx.isUnmounted?s(b):l(b,g,m)},ie=()=>{const X=b._isLeaving||!!b[dl];b._isLeaving&&b[dl](!0),D.persisted&&!X?z():O(b,()=>{z(),V&&V()})};M?M(b,z,ie):ie()}else l(b,g,m)},be=(a,g,m,k=!1,x=!1)=>{const{type:b,props:E,ref:D,children:P,dynamicChildren:w,shapeFlag:B,patchFlag:O,dirs:M,cacheIndex:V,memo:z}=a;if(O===-2&&(x=!1),D!=null&&(rt(),tn(D,null,m,a,!0),at()),V!=null&&(g.renderCache[V]=void 0),B&256){g.ctx.deactivate(a);return}const ie=B&1&&M,X=!nn(a);let me;if(X&&(me=E&&E.onVnodeBeforeUnmount)&&Ze(me,g,a),B&6)we(a.component,m,k);else{if(B&128){a.suspense.unmount(m,k);return}ie&&Tt(a,null,g,"beforeUnmount"),B&64?a.type.remove(a,g,m,oe,k):w&&!w.hasOnce&&(b!==Y||O>0&&O&64)?Se(w,g,m,!1,!0):(b===Y&&O&384||!x&&B&16)&&Se(P,g,m),k&&se(a)}const xe=z!=null&&V==null;(X&&(me=E&&E.onVnodeUnmounted)||ie||xe)&&Fe(()=>{me&&Ze(me,g,a),ie&&Tt(a,null,g,"unmounted"),xe&&(a.el=null)},m)},se=a=>{const{type:g,el:m,anchor:k,transition:x}=a;if(g===Y){Ce(m,k);return}if(g===hl){U(a);return}const b=()=>{s(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(a.shapeFlag&1&&x&&!x.persisted){const{leave:E,delayLeave:D}=x,P=()=>E(m,b);D?D(a.el,b,P):P()}else b()},Ce=(a,g)=>{let m;for(;a!==g;)m=T(a),s(a),a=m;s(g)},we=(a,g,m)=>{const{bum:k,scope:x,job:b,subTree:E,um:D,m:P,a:w}=a;ws(P),ws(w),k&&Tn(k),x.stop(),b&&(b.flags|=8,be(E,a,g,m)),D&&Fe(D,g),Fe(()=>{a.isUnmounted=!0},g)},Se=(a,g,m,k=!1,x=!1,b=0)=>{for(let E=b;E<a.length;E++)be(a[E],g,m,k,x)},ft=a=>{if(a.shapeFlag&6)return ft(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const g=T(a.anchor||a.el),m=g&&g[Ir];return m?T(m):g};let Re=!1;const Pt=(a,g,m)=>{let k;a==null?g._vnode&&(be(g._vnode,null,null,!0),k=g._vnode.component):L(g._vnode||null,a,g,null,null,null,m),g._vnode=a,Re||(Re=!0,ds(k),po(),Re=!1)},oe={p:L,um:be,m:Pe,r:se,mt:dt,mc:Ne,pc:$,pbc:ve,n:ft,o:e};return{render:Pt,hydrate:void 0,createApp:Zr(Pt)}}function pl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ot({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ga(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bo(e,t,n=!1){const l=e.children,s=t.children;if(H(l)&&H(s))for(let i=0;i<l.length;i++){const r=l[i];let d=s[i];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[i]=gt(s[i]),d.el=r.el),!n&&d.patchFlag!==-2&&Bo(r,d)),d.type===Xn&&(d.patchFlag===-1&&(d=s[i]=gt(d)),d.el=r.el),d.type===St&&!d.el&&(d.el=r.el)}}function va(e){const t=e.slice(),n=[0];let l,s,i,r,d;const f=e.length;for(l=0;l<f;l++){const _=e[l];if(_!==0){if(s=n[n.length-1],e[s]<_){t[l]=s,n.push(l);continue}for(i=0,r=n.length-1;i<r;)d=i+r>>1,e[n[d]]<_?i=d+1:r=d;_<e[n[i]]&&(i>0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Uo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Uo(t)}function ws(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Lo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Lo(t.subTree):null}const Vo=e=>e.__isSuspense;function _a(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Sr(e)}const Y=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),hl=Symbol.for("v-stc"),sn=[];let je=null;function C(e=!1){sn.push(je=e?null:[])}function ma(){sn.pop(),je=sn[sn.length-1]||null}let un=1;function xs(e,t=!1){un+=e,e<0&&je&&t&&(je.hasOnce=!0)}function Fo(e){return e.dynamicChildren=un>0?je||Vt:null,ma(),un>0&&je&&je.push(e),e}function S(e,t,n,l,s,i){return Fo(o(e,t,n,l,s,i,!0))}function ya(e,t,n,l,s){return Fo(mt(e,t,n,l,s,!0))}function No(e){return e?e.__v_isVNode===!0:!1}function zt(e,t){return e.type===t.type&&e.key===t.key}const jo=({key:e})=>e??null,In=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ae(e)||q(e)?{i:We,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===Y?0:1,r=!1,d=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jo(t),ref:t&&In(t),scopeId:go,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:We};return d?(Un(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=ye(n)?8:16),un>0&&!r&&je&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&je.push(f),f}const mt=ba;function ba(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===Kr)&&(e=St),No(e)){const d=Kt(e,t,!0);return n&&Un(d,n),un>0&&!i&&je&&(d.shapeFlag&6?je[je.indexOf(e)]=d:je.push(d)),d.patchFlag=-2,d}if(Aa(e)&&(e=e.__vccOpts),t){t=wa(t);let{class:d,style:f}=t;d&&!ye(d)&&(t.class=Jn(d)),ae(f)&&(Vl(f)&&!H(f)&&(f=Te({},f)),t.style=Il(f))}const r=ye(e)?1:Vo(e)?128:Ar(e)?64:ae(e)?4:q(e)?2:0;return o(e,t,n,l,s,r,i,!0)}function wa(e){return e?Vl(e)||Oo(e)?Te({},e):e:null}function Kt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:r,children:d,transition:f}=e,_=t?ka(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&jo(_),ref:t&&t.ref?n&&i?H(i)?i.concat(In(t)):[i,In(t)]:In(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&l&&Nl(v,f.clone(v)),v}function xa(e=" ",t=0){return mt(Xn,null,e,t)}function G(e="",t=!1){return t?(C(),ya(St,null,e)):mt(St,null,e)}function lt(e){return e==null||typeof e=="boolean"?mt(St):H(e)?mt(Y,null,e.slice()):No(e)?gt(e):mt(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function Un(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),Un(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Oo(t)?t._ctx=We:s===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(q(t)){if(l&65){Un(e,{default:t});return}t={default:t,_ctx:We},n=32}else t=String(t),l&64?(n=16,t=[xa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ka(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const s in l)if(s==="class")t.class!==l.class&&(t.class=Jn([t.class,l.class]));else if(s==="style")t.style=Il([t.style,l.style]);else if(Nn(s)){const i=t[s],r=l[s];r&&i!==r&&!(H(i)&&i.includes(r))?t[s]=i?[].concat(i,r):r:r==null&&i==null&&!jn(s)&&(t[s]=r)}else s!==""&&(t[s]=l[s])}return t}function Ze(e,t,n,l=null){Ye(e,t,7,[n,l])}const Ca=So();let Sa=0;function Pa(e,t,n){const l=e.type,s=(t?t.appContext:e.appContext)||Ca,i={uid:Sa++,vnode:e,type:l,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Gi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ao(l,s),emitsOptions:Po(l,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:l.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ta.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Da=()=>Le||We;let Ln,Pl;{const e=qn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(r=>r(i)):s[0](i)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),Pl=t("__VUE_SSR_SETTERS__",n=>cn=n)}const hn=e=>{const t=Le;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},ks=()=>{Le&&Le.scope.off(),Ln(null)};function Ho(e){return e.vnode.shapeFlag&4}let cn=!1;function Ea(e,t=!1,n=!1){t&&Pl(t);const{props:l,children:s}=e.vnode,i=Ho(e);ra(e,l,i,t),da(e,s,n||t);const r=i?Ta(e,t):void 0;return t&&Pl(!1),r}function Ta(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qr);const{setup:l}=n;if(l){rt();const s=e.setupContext=l.length>1?Ia(e):null,i=hn(e),r=pn(l,e,0,[e.props,s]),d=Fs(r);if(at(),i(),(d||e.sp)&&!nn(e)&&mo(e),d){if(r.then(ks,ks),t)return r.then(f=>{Cs(e,f)}).catch(f=>{zn(f,e,0)});e.asyncDep=r}else Cs(e,r)}else Wo(e)}function Cs(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=ao(t)),Wo(e)}function Wo(e,t,n){const l=e.type;e.render||(e.render=l.render||ot);{const s=hn(e);rt();try{Jr(e)}finally{at(),s()}}}const Oa={get(e,t){return Ie(e,"get",""),e[t]}};function Ia(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Oa),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ao(hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(t,n){return n in t||n in ln}})):e.proxy}function Aa(e){return q(e)&&"__vccOpts"in e}const kt=(e,t)=>br(e,t,cn),Ma="3.5.39";/**
|
|
* @vue/runtime-dom v3.5.39
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Dl;const Ss=typeof window<"u"&&window.trustedTypes;if(Ss)try{Dl=Ss.createPolicy("vue",{createHTML:e=>e})}catch{}const Ko=Dl?e=>Dl.createHTML(e):e=>e,Ra="http://www.w3.org/2000/svg",$a="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,Ps=ht&&ht.createElement("template"),Ba={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?ht.createElementNS(Ra,e):t==="mathml"?ht.createElementNS($a,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ps.innerHTML=Ko(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const d=Ps.content;if(l==="svg"||l==="mathml"){const f=d.firstChild;for(;f.firstChild;)d.appendChild(f.firstChild);d.removeChild(f)}t.insertBefore(d,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ua=Symbol("_vtc");function La(e,t,n){const l=e[Ua];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ds=Symbol("_vod"),Va=Symbol("_vsh"),Fa=Symbol(""),Na=/(?:^|;)\s*display\s*:/;function ja(e,t,n){const l=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const r of t.split(";")){const d=r.slice(0,r.indexOf(":")).trim();n[d]==null&&Qt(l,d,"")}else for(const r in t)n[r]==null&&Qt(l,r,"");for(const r in n){r==="display"&&(i=!0);const d=n[r];d!=null?Wa(e,r,!ye(t)&&t?t[r]:void 0,d)||Qt(l,r,d):Qt(l,r,"")}}else if(s){if(t!==n){const r=l[Fa];r&&(n+=";"+r),l.cssText=n,i=Na.test(n)}}else t&&e.removeAttribute("style");Ds in e&&(e[Ds]=i?l.display:"",e[Va]&&(l.display="none"))}const Es=/\s*!important$/;function Qt(e,t,n){if(H(n))n.forEach(l=>Qt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Ha(e,t);Es.test(n)?e.setProperty($t(l),n.replace(Es,""),"important"):e[l]=n}}const Ts=["Webkit","Moz","ms"],gl={};function Ha(e,t){const n=gl[t];if(n)return n;let l=Je(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Hs(l);for(let s=0;s<Ts.length;s++){const i=Ts[s]+l;if(i in e)return gl[t]=i}return t}function Wa(e,t,n,l){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ye(l)&&n===l}const Os="http://www.w3.org/1999/xlink";function Is(e,t,n,l,s,i=Ki(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Os,t.slice(6,t.length)):e.setAttributeNS(Os,t,n):n==null||i&&!Ks(n)?e.removeAttribute(t):e.setAttribute(t,i?"":it(n)?String(n):n)}function As(e,t,n,l,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ko(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const d=i==="OPTION"?e.getAttribute("value")||"":e.value,f=n==null?e.type==="checkbox"?"on":"":String(n);(d!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Ks(n):n==null&&d==="string"?(n="",r=!0):d==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(s||t)}function At(e,t,n,l){e.addEventListener(t,n,l)}function Ka(e,t,n,l){e.removeEventListener(t,n,l)}const Ms=Symbol("_vei");function qa(e,t,n,l,s=null){const i=e[Ms]||(e[Ms]={}),r=i[t];if(l&&r)r.value=l;else{const[d,f]=za(t);if(l){const _=i[t]=Xa(l,s);At(e,d,_,f)}else r&&(Ka(e,d,r,f),i[t]=void 0)}}const Ja=/(Once|Passive|Capture)$/,Ga=/^on:?(?:Once|Passive|Capture)$/;function za(e){let t,n;for(;(n=e.match(Ja))&&!Ga.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let vl=0;const Ya=Promise.resolve(),Qa=()=>vl||(Ya.then(()=>vl=0),vl=Date.now());function Xa(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(H(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=s.slice(),d=[l];for(let f=0;f<r.length&&!l._stopped;f++){const _=r[f];_&&Ye(_,t,5,d)}}else Ye(s,t,5,[l])};return n.value=e,n.attached=Qa(),n}const Rs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Za=(e,t,n,l,s,i)=>{const r=s==="svg";t==="class"?La(e,l,r):t==="style"?ja(e,n,l):Nn(t)?jn(t)||qa(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):eu(e,t,l,r))?(As(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Is(e,t,l,r,i,t!=="value")):e._isVueCE&&(tu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(l)))?As(e,Je(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Is(e,t,l,r))};function eu(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rs(t)&&q(n));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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Rs(t)&&ye(n)?!1:t in e}function tu(e,t){const n=e._def.props;if(!n)return!1;const l=Je(t);return Array.isArray(n)?n.some(s=>Je(s)===l):Object.keys(n).some(s=>Je(s)===l)}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Tn(t,n):t};function nu(e){e.target.composing=!0}function $s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ht=Symbol("_assign");function Bs(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const K={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Ht]=Vn(s);const i=l||s.props&&s.props.type==="number";At(e,t?"change":"input",r=>{r.target.composing||e[Ht](Bs(e.value,n,i))}),(n||i)&&At(e,"change",()=>{e.value=Bs(e.value,n,i)}),t||(At(e,"compositionstart",nu),At(e,"compositionend",$s),At(e,"change",$s))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},r){if(e[Ht]=Vn(r),e.composing)return;const d=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,f=t??"";if(d===f)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===f)||(e.value=f)}},Ut={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Hn(t);At(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Kn(Fn(r)):Fn(r));e[Ht](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,co(()=>{e._assigning=!1})}),e[Ht]=Vn(l)},mounted(e,{value:t}){Us(e,t)},beforeUpdate(e,t,n){e[Ht]=Vn(n)},updated(e,{value:t}){e._assigning||Us(e,t)}};function Us(e,t){const n=e.multiple,l=H(t);if(!(n&&!l&&!Hn(t))){for(let s=0,i=e.options.length;s<i;s++){const r=e.options[s],d=Fn(r);if(n)if(l){const f=typeof d;f==="string"||f==="number"?r.selected=t.some(_=>String(_)===String(d)):r.selected=Ji(t,d)>-1}else r.selected=t.has(d);else if(fn(Fn(r),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fn(e){return"_value"in e?e._value:e.value}const lu=Te({patchProp:Za},Ba);let Ls;function su(){return Ls||(Ls=pa(lu))}const ou=((...e)=>{const t=su().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=ru(l);if(!s)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,iu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function iu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ru(e){return ye(e)?document.querySelector(e):e}const au="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class uu extends Error{constructor(n,l,s={}){super(l);sl(this,"code");sl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function re(e,t){return tt(e,{method:"GET",query:t})}async function Z(e,t){return tt(e,{method:"POST",body:t})}async function tt(e,t={}){const l=await(await fetch(cu(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!l.ok)throw new uu(l.error_code,l.message,l.details);return l.data}function cu(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${au}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const du={class:"web-shell"},fu={class:"sidebar"},pu={class:"brand"},hu=["onClick"],gu={class:"workspace"},vu={class:"topbar"},_u={class:"actions"},mu=["disabled"],yu={key:0,class:"notice error"},bu={key:1,class:"notice"},wu={key:0,class:"dashboard-grid"},xu={key:1,class:"list-view"},ku={class:"form-grid"},Cu={class:"wide-field"},Su=["disabled"],Pu=["disabled"],Du={key:0},Eu={key:1,class:"form-grid"},Tu={class:"wide-field"},Ou={class:"wide-field"},Iu={class:"wide-field"},Au={class:"wide-field"},Mu={class:"wide-field"},Ru=["disabled"],$u=["disabled"],Bu={class:"inline-actions"},Uu={class:"badge"},Lu=["disabled","onClick"],Vu=["disabled","onClick"],Fu={key:0,class:"empty"},Nu={key:2,class:"split-view"},ju={class:"list-view"},Hu={class:"form-grid"},Wu=["disabled"],Ku={class:"inline-actions"},qu={class:"badge"},Ju=["disabled","onClick"],Gu=["disabled","onClick"],zu=["disabled","onClick"],Yu=["disabled","onClick"],Qu={key:0,class:"empty"},Xu={key:0,class:"editor-panel"},Zu={class:"form-grid"},ec=["disabled"],tc=["disabled","onClick"],nc={class:"list-view"},lc={class:"inline-actions"},sc=["disabled"],oc={class:"form-grid"},ic={class:"wide-field"},rc=["disabled"],ac=["disabled"],uc={class:"inline-actions"},cc={class:"badge"},dc=["disabled","onClick"],fc={key:0,class:"empty"},pc={class:"inline-actions"},hc={key:0,class:"badge"},gc=["disabled","onClick"],vc=["disabled","onClick"],_c=["disabled","onClick"],mc=["disabled","onClick"],yc=["disabled","onClick"],bc={key:0,class:"empty"},wc={key:0},xc={class:"editor-panel"},kc={key:0,class:"empty"},Cc={key:1,class:"editor-panel"},Sc={key:2},Pc={key:3,class:"split-view"},Dc={class:"list-view"},Ec={class:"form-grid"},Tc=["disabled"],Oc=["disabled"],Ic={class:"inline-actions"},Ac=["disabled","onClick"],Mc=["disabled","onClick"],Rc={key:0,class:"empty"},$c={class:"list-view"},Bc={class:"inline-actions"},Uc=["disabled"],Lc={class:"form-grid"},Vc={value:""},Fc=["value"],Nc=["disabled"],jc=["disabled"],Hc={class:"inline-actions"},Wc={class:"badge"},Kc=["disabled","onClick"],qc=["disabled","onClick"],Jc=["disabled","onClick"],Gc=["disabled","onClick"],zc={key:0,class:"empty"},Yc={key:0},Qc={key:4,class:"list-view"},Xc=["disabled"],Zc={class:"form-grid"},ed={value:""},td=["value"],nd=["disabled"],ld={class:"inline-actions"},sd=["disabled","onClick"],od={key:0,class:"empty"},id={key:0},rd={class:"form-grid"},ad=["disabled"],ud={key:1},cd={key:5,class:"list-view"},dd={class:"inline-actions"},fd=["disabled"],pd=["disabled"],hd={class:"form-grid"},gd={value:""},vd=["value"],_d={value:""},md=["value"],yd={value:""},bd=["value"],wd=["disabled"],xd={class:"inline-actions"},kd={class:"badge"},Cd=["onClick"],Sd=["onClick"],Pd=["disabled","onClick"],Dd={key:0,class:"empty"},Ed={key:0,class:"editor-panel"},Td={key:6,class:"split-view"},Od={class:"list-view"},Id=["disabled"],Ad={class:"form-grid"},Md=["disabled"],Rd={key:0},$d={class:"list-view"},Bd={class:"inline-actions"},Ud={class:"badge"},Ld=["disabled","onClick"],Vd=["disabled","onClick"],Fd=["disabled","onClick"],Nd={key:0,class:"empty"},jd={key:7,class:"logs-view"},Hd={class:"split-view"},Wd={class:"list-view"},Kd={key:0,class:"empty"},qd={class:"list-view"},Jd={class:"badge"},Gd={key:0,class:"empty"},zd={class:"split-view"},Yd={class:"list-view"},Qd={key:0,class:"empty"},Xd={class:"list-view"},Zd={class:"badge"},ef={key:0,class:"empty"},tf={class:"list-view"},nf={key:0,class:"empty"},lf={key:8,class:"settings-view"},sf={class:"toolbar"},of=["disabled"],rf=["disabled"],af=["disabled"],uf=["disabled"],cf=["disabled"],df=["disabled"],ff={class:"settings-sections"},pf={class:"editor-panel"},hf={class:"editor-panel"},gf=["disabled"],vf={class:"split-view"},_f={class:"list-view"},mf={class:"list-view"},yf={class:"inspector"},bf=Mr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=j("dashboard"),s=j(null),i=j(null),r=j(null),d=j([]),f=j(null),_=j([]),v=j([]),y=j(null),T=j(""),A=j([]),Q=j(null),L=j(null),fe=j(null),ue=j(null),W=j(null),le=j(null),U=j([]),ce=j(null),Me=j([]),Ve=j([]),Ne=j([]),ut=j(null),ve=j({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Qe=j(null),ct=j(""),Xe=j(""),dt=j(null),wt=j(null),N=j({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ee=j(null),$=j({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),Oe=j({display_name:"",workflow_type:"single_image"}),qe=j({branch_name:""}),Pe=j({model_route:"",prompt:"",negative_prompt:""}),be=j({status:"",profile_id:"",workflow_id:""}),se=j({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),Ce=j({category_id:"",name:"",category_type:"material",sort_order:0}),we=j({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),Se=j({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),ft=j(null),Re=j({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Pt=j(null),oe=j(""),gn=j(!0),a=j(""),g=j(""),m=kt(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.items[0])==null?void 0:p.profile_id)??""}),k=kt(()=>{var h,p;return((p=(h=r.value)==null?void 0:h.items[0])==null?void 0:p.name)??t.noProfile}),x=kt(()=>{var p;const h=(p=i.value)==null?void 0:p.queue;return h?h.pending+h.running+h.failed+h.dead_letter:0}),b=kt(()=>{var h;return((h=ce.value)==null?void 0:h.items.filter(p=>p.recognition_status!=="confirmed").length)??0}),E=kt(()=>{var h;return(((h=ce.value)==null?void 0:h.items)??[]).filter(p=>p.recognition_status==="confirmed")}),D=kt(()=>{var h;return((h=f.value)==null?void 0:h.nodes.find(p=>p.node_id===T.value))??null}),P=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],w=kt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);wo(B);async function B(){var h,p;gn.value=!0,g.value="";try{const[J,pe,De,xt,bn,Jt,wn,xn,kn,Cn,Sn]=await Promise.all([re(I.uiBootstrap),re(I.dashboardSummary),re(I.profiles,{page:1,page_size:20}),re(I.jobs,{page:1,page_size:20}),re(I.settingsSchema),re(I.settingsCurrent),re(I.storageStatus),re(I.materialCategories),re(I.materials,{page:1,page_size:24}),re(I.apiDiscoveryDialects),re(I.apiDiscoveryCapabilities)]);s.value=J,i.value=pe,r.value=De,L.value=xt,ue.value=bn,W.value=Jt,qt(Jt.config),le.value=wn,U.value=xn,ce.value=kn,Ve.value=Cn,Ne.value=Sn,await z((h=De.items[0])==null?void 0:h.profile_id),await ie((p=De.items[0])==null?void 0:p.profile_id),await O()}catch(J){g.value=J instanceof Error?J.message:t.loadFailed}finally{gn.value=!1}}async function O(){const[h,p,J,pe,De]=await Promise.allSettled([re(I.generationLogs,{limit:12}),re(I.workflowLogs,{limit:12}),re(I.errorLogs,{limit:12}),re(I.integrationLogs,{limit:12}),re(I.auditLogs,{limit:12})]);ve.value={generation:M(h),workflows:M(p),errors:M(J),integrations:M(pe),audit:M(De)}}function M(h){return h.status==="fulfilled"?h.value:[]}async function V(){L.value=await re(I.jobs,{status:be.value.status||void 0,profile_id:be.value.profile_id||void 0,workflow_id:be.value.workflow_id||void 0,page:1,page_size:20})}async function z(h){if(!h){Me.value=[];return}Me.value=await re(I.wardrobe(h))}async function ie(h){var pe,De;if(!h){d.value=[],f.value=null,_.value=[],v.value=[],T.value="",A.value=[];return}d.value=await re(I.profileWorkflows(h));const p=(pe=f.value)==null?void 0:pe.workflow.workflow_id,J=d.value.some(xt=>xt.workflow_id===p)?p:(De=d.value[0])==null?void 0:De.workflow_id;J?await X(J):f.value=null}async function X(h){var De;const p=await re(I.workflow(h));f.value=p;const J=T.value,pe=p.nodes.some(xt=>xt.node_id===J)?J:p.workflow.current_node_id||((De=p.nodes[0])==null?void 0:De.node_id);pe?await me(pe):(T.value="",A.value=[]),await xe(h)}async function me(h){T.value=h,A.value=await re(I.nodeImages(h))}async function xe(h){const[p,J]=await Promise.all([re(I.workflowBranches(h)),re(I.workflowHistory(h))]);_.value=p,v.value=J}async function ke(){var p;const h=(p=f.value)==null?void 0:p.workflow.workflow_id;h&&await X(h)}async function R(h,p,J=!0){a.value=h,g.value="";try{const pe=await p();oe.value=`${h}${t.complete}`,h===t.exportSettings&&(oe.value=`${t.exportDone}: ${!!pe.redacted}`),J&&await B()}catch(pe){g.value=pe instanceof Error?pe.message:`${h}${t.failed}`}finally{a.value=""}}function Dt(h){return R(t.retry,()=>Z(I.jobRetry(h)))}function vn(h){return R(t.cancel,()=>Z(I.jobCancel(h)))}function $e(h){return R(t.detail,async()=>(fe.value=await re(I.job(h)),fe.value),!1)}function He(){N.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ee.value=null}function _n(){return R(t.quickDraft,async()=>(ee.value=await Z(I.quickProfileDraft,{questionnaire:{name:N.value.name,identity:N.value.identity,personality:Et(N.value.personality),hair_color:N.value.hair_color,hairstyle:N.value.hairstyle,eye_color:N.value.eye_color,style:N.value.style,clothing_keywords:Et(N.value.clothing_keywords)}}),ee.value),!1)}function mn(){var p;const h=(p=ee.value)==null?void 0:p.profile_preview;return R(t.create,async()=>{const J=await Z(I.profiles,{name:(h==null?void 0:h.name)||N.value.name,description:N.value.description,base_prompt:h==null?void 0:h.base_prompt,appearance_prompt:h==null?void 0:h.appearance_prompt,style_prompt:h==null?void 0:h.style_prompt,negative_prompt:h==null?void 0:h.negative_prompt});return He(),oe.value=t.profileCreated,J})}function qo(h){return R(t.delete,async()=>{const p=await tt(I.profile(h),{method:"DELETE"});return oe.value=t.profileDeleted,p})}function Wl(){$.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Jo(h){$.value={profile_id:h.profile_id,name:h.name,description:h.description??"",base_prompt:h.base_prompt??"",appearance_prompt:h.appearance_prompt??"",style_prompt:h.style_prompt??"",negative_prompt:h.negative_prompt??"",default_model_route:h.default_model_route??""}}function Go(){return $.value.profile_id?R(t.update,async()=>{const h=await tt(I.profile($.value.profile_id),{method:"PUT",body:{name:$.value.name,description:$.value.description||void 0,base_prompt:$.value.base_prompt||void 0,appearance_prompt:$.value.appearance_prompt||void 0,style_prompt:$.value.style_prompt||void 0,negative_prompt:$.value.negative_prompt||void 0,default_model_route:$.value.default_model_route||void 0}});return Wl(),oe.value=t.profileUpdated,h}):Promise.resolve()}function zo(){const h=m.value;return h?R(t.create,async()=>{const p=await Z(I.profileWorkflows(h),{display_name:Oe.value.display_name,workflow_type:Oe.value.workflow_type});return Oe.value.display_name="",f.value=p,oe.value=t.workflowCreated,p}):Promise.resolve()}function Yo(h){return R(t.start,()=>Z(I.workflowStart(h)))}function Qo(h){return R(t.cancel,()=>Z(I.workflowCancel(h)))}function Xo(h){return R(t.archive,()=>Z(I.workflowArchive(h)))}function Zo(){var p;const h=(p=f.value)==null?void 0:p.workflow;return!h||!qe.value.branch_name?Promise.resolve():R(t.branches,async()=>{const J=await Z(I.workflowBranches(h.workflow_id),{branch_name:qe.value.branch_name,base_branch_name:h.current_branch,base_node_id:T.value||h.current_node_id,copy_nodes:!0});return qe.value.branch_name="",await ke(),oe.value=t.branchCreated,J},!1)}function ei(h){var J;const p=(J=f.value)==null?void 0:J.workflow.workflow_id;return p?R(t.switchBranch,async()=>{const pe=await Z(I.workflowSwitchBranch(p),{branch_name:h});return await ke(),pe},!1):Promise.resolve()}function ti(){var p;const h=(p=f.value)==null?void 0:p.workflow.workflow_id;return h?R(t.review,async()=>(y.value=await re(I.workflowReview(h)),y.value),!1):Promise.resolve()}function ni(){const h=T.value;return h?R(t.review,async()=>(y.value=await re(I.nodeReview(h)),y.value),!1):Promise.resolve()}function li(){const h=T.value;return h?R(t.generate,async()=>(Q.value=await Z(I.nodeGenerate(h),{model_route:Pe.value.model_route||void 0,prompt:Pe.value.prompt||void 0,negative_prompt:Pe.value.negative_prompt||void 0}),await ke(),oe.value=t.generationQueued,Q.value),!1):Promise.resolve()}function si(h){const p=T.value;return p?R(t.select,async()=>{const J=await Z(I.nodeSelectImage(p),{image_id:h});return await ke(),J},!1):Promise.resolve()}function oi(h){const p=T.value;return p?R(t.adopt,async()=>{var pe;const J=await Z(I.nodeAdoptImage(p),{image_id:h,title:(pe=D.value)==null?void 0:pe.title});return await ke(),J},!1):Promise.resolve()}function ii(h){return R(t.unselect,async()=>{const p=await Z(I.imageUnselect(h));return await ke(),p},!1)}function ri(h){return R(t.archive,async()=>{const p=await Z(I.imageArchive(h));return await ke(),oe.value=t.imageArchived,p},!1)}function ai(h){return R(t.delete,async()=>{const p=await tt(I.image(h),{method:"DELETE"});return await ke(),oe.value=t.imageDeleted,p},!1)}function ui(){return R(t.moveFailed,()=>Z(I.jobDeadLetterMoveFailed,{limit:20}))}function ci(){return R(t.retryDead,()=>Z(I.jobDeadLetterRetry,{limit:20}))}function di(){var p;const h=((p=Ve.value[0])==null?void 0:p.dialect)??"unknown";return R(t.safeProbe,()=>Z(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:h,capabilities:{supports:["text_to_image"]}}))}function fi(){return R(t.validatePlan,async()=>(Pt.value=await Z(I.apiDiscoveryValidateRenderPlan,{provider_id:Re.value.provider_id,model_id:Re.value.model_id,required_capabilities:Et(Re.value.required_capabilities)}),Pt.value),!1)}function el(h,p){return R(t.discovery,()=>Z(I.apiDiscoveryManualOverride,{provider_id:h.provider_id,model_id:h.model_id,dialect:h.dialect,status:p,capabilities:h.capabilities}))}function pi(){const h=m.value;return h?R(t.matchWardrobe,async()=>(ut.value=await Z(I.wardrobeMatch(h),{tags:["daily"]}),ut.value),!1):Promise.resolve()}function hi(){we.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function gi(){const h=m.value;return h?R(t.importToWardrobe,async()=>{const p=await Z(I.wardrobeImportMaterial(h),{material_id:we.value.material_id,wardrobe_category:we.value.wardrobe_category,tags:Et(we.value.tags),season:we.value.season||void 0,style:we.value.style||void 0});return hi(),oe.value=t.wardrobeImported,p}):Promise.resolve()}function vi(h){const p=m.value;return p?R(t.delete,async()=>{const J=await tt(I.wardrobeItem(p,h),{method:"DELETE"});return oe.value=t.wardrobeDeleted,J}):Promise.resolve()}function _i(){const h=m.value;return h?R(t.dailyOutfit,async()=>(ft.value=await Z(I.privateCompanionDailyOutfit,{profile_id:h,categories:Et(Se.value.categories),mood:Se.value.mood,weather:Se.value.weather,keywords:Et(Se.value.keywords),request_source:"astrbot_plugin_private_companion"}),oe.value=t.outfitGenerated,ft.value),!1):Promise.resolve()}function mi(){return R(t.reload,async()=>{var p;const h=await Z(I.settingsReload);return W.value={config_path:((p=W.value)==null?void 0:p.config_path)??"***PATH***",config:h.config},qt(h.config),h},!1)}function yi(){return R(t.exportSettings,()=>re(I.settingsExport),!1)}function qt(h=(p=>(p=W.value)==null?void 0:p.config)()??{}){ct.value=JSON.stringify(h,null,2),dt.value=null,wt.value=null}function tl(){try{const h=JSON.parse(ct.value);if(!h||Array.isArray(h)||typeof h!="object")throw new Error(t.settingsDraftInvalid);return h}catch(h){throw new Error(h instanceof Error?h.message:t.settingsDraftInvalid)}}function bi(){try{const h=JSON.parse(Xe.value);if(!h||Array.isArray(h)||typeof h!="object")throw new Error(t.importDraftInvalid);return h}catch(h){throw new Error(h instanceof Error?h.message:t.importDraftInvalid)}}function wi(){return R(t.validate,async()=>(dt.value=await Z(I.settingsValidate,{config:tl()}),dt.value),!1)}function xi(){return R(t.diff,async()=>(wt.value=await Z(I.settingsDiff,{config:tl()}),wt.value),!1)}function ki(){return R(t.save,async()=>{var p;const h=await Z(I.settingsSave,{config:tl()});return W.value={config_path:((p=W.value)==null?void 0:p.config_path)??"***PATH***",config:h.config},qt(h.config),oe.value=t.settingsSaved,h},!1)}function Ci(){return R(t.importSettings,async()=>{var p;const h=await Z(I.settingsImport,{config:bi()});return W.value={config_path:((p=W.value)==null?void 0:p.config_path)??"***PATH***",config:h.config},qt(h.config),Xe.value="",oe.value=t.importDone,h},!1)}function Si(){var p,J;const h=(J=(p=ce.value)==null?void 0:p.items.find(pe=>{var De;return(De=pe.image_uri)==null?void 0:De.startsWith("storage://")}))==null?void 0:J.image_uri;return h?R(t.signMaterial,async()=>(Qe.value=await re(I.mediaSign,{uri:h}),Qe.value),!1):(oe.value=t.noSignableMaterial,Promise.resolve())}function yn(){Ce.value={category_id:"",name:"",category_type:"material",sort_order:0}}function Pi(h){Ce.value={category_id:h.category_id,name:h.name,category_type:h.category_type,sort_order:h.sort_order}}function Di(){const h={name:Ce.value.name,category_type:Ce.value.category_type,sort_order:Number(Ce.value.sort_order)||0};return Ce.value.category_id?R(t.update,async()=>{const p=await tt(I.materialCategory(Ce.value.category_id),{method:"PUT",body:h});return yn(),oe.value=t.categoryUpdated,p}):R(t.create,async()=>{const p=await Z(I.materialCategories,h);return yn(),oe.value=t.categoryCreated,p})}function Ei(h){return R(t.delete,async()=>{const p=await tt(I.materialCategory(h),{method:"DELETE"});return Ce.value.category_id===h&&yn(),oe.value=t.categoryDeleted,p})}function nl(){se.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function Ti(){const h={display_name:se.value.display_name,image_uri:se.value.image_uri||void 0,thumbnail_uri:se.value.image_uri||void 0,category_id:se.value.category_id||void 0,tags:Et(se.value.tags),prompt:se.value.prompt||void 0,negative_prompt:se.value.negative_prompt||void 0,recognition_status:se.value.image_uri?"pending_recognition":"pending_upload"};return se.value.material_id?R(t.update,async()=>{const p=await tt(I.material(se.value.material_id),{method:"PUT",body:h});return nl(),oe.value=t.materialUpdated,p}):R(t.create,async()=>{const p=await Z(I.materials,h);return nl(),oe.value=t.materialCreated,p})}function Oi(h){se.value={material_id:h.material_id,display_name:h.display_name,image_uri:h.image_uri??"",tags:h.tags.join(", "),category_id:h.category_id??"",prompt:h.prompt??"",negative_prompt:h.negative_prompt??""}}function Ii(h){return R(t.recognize,()=>Z(I.materialRecognize(h)))}function Ai(h){return R(t.confirm,()=>Z(I.materialConfirm(h.material_id),{display_name:h.display_name,prompt:h.prompt,negative_prompt:h.negative_prompt,tags:h.tags}))}function Mi(h){return R(t.archive,async()=>{const p=await tt(I.material(h),{method:"DELETE"});return oe.value=t.materialArchived,p})}function Et(h){return h.split(",").map(p=>p.trim()).filter(Boolean)}function ll(h=0){return h<1024?`${h} B`:h<1024*1024?`${(h/1024).toFixed(1)} KB`:h<1024*1024*1024?`${(h/1024/1024).toFixed(1)} MB`:`${(h/1024/1024/1024).toFixed(1)} GB`}function Kl(h){var p,J;return((J=(p=le.value)==null?void 0:p.roots.find(pe=>pe.uri_prefix===h))==null?void 0:J.bytes)??0}return(h,p)=>{var J,pe,De,xt,bn,Jt,wn,xn,kn,Cn,Sn,ql,Jl,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls,ss,os,is;return C(),S("main",du,[o("aside",fu,[o("div",pu,[o("strong",null,u(((J=s.value)==null?void 0:J.display_name)??"ImageStudio"),1),o("span",null,u(((pe=s.value)==null?void 0:pe.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(C(),S(Y,null,_e(n,c=>o("button",{key:c.key,type:"button",class:Jn({active:l.value===c.key}),onClick:he=>l.value=c.key},u(c.label),11,hu)),64))])]),o("section",gu,[o("header",vu,[o("div",null,[o("h1",null,u(w.value),1),o("p",null,u(((De=i.value)==null?void 0:De.plugin_status)??"loading")+" / "+u(oe.value||t.waiting),1)]),o("div",_u,[o("button",{type:"button",disabled:!!a.value,onClick:B},u(a.value||t.refresh),9,mu)])]),g.value?(C(),S("section",yu,u(g.value),1)):gn.value?(C(),S("section",bu,u(t.loading),1)):(C(),S(Y,{key:2},[l.value==="dashboard"?(C(),S("section",wu,[o("article",null,[o("span",null,u(t.profiles),1),o("strong",null,u(((xt=i.value)==null?void 0:xt.active_profiles)??0),1)]),o("article",null,[o("span",null,u(t.jobs),1),o("strong",null,u(x.value),1)]),o("article",null,[o("span",null,u(t.materials),1),o("strong",null,u(((bn=ce.value)==null?void 0:bn.total)??0),1)]),o("article",null,[o("span",null,u(t.storage),1),o("strong",null,u(ll(((Jt=le.value)==null?void 0:Jt.total_bytes)??((wn=i.value)==null?void 0:wn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(C(),S("section",xu,[o("header",null,[o("h2",null,u(t.profileList),1),o("span",null,u(((xn=r.value)==null?void 0:xn.total)??0),1)]),o("div",ku,[o("label",null,[o("span",null,u(t.name),1),F(o("input",{"onUpdate:modelValue":p[0]||(p[0]=c=>N.value.name=c),type:"text"},null,512),[[K,N.value.name]])]),o("label",null,[o("span",null,u(t.identity),1),F(o("input",{"onUpdate:modelValue":p[1]||(p[1]=c=>N.value.identity=c),type:"text"},null,512),[[K,N.value.identity]])]),o("label",null,[o("span",null,u(t.personality),1),F(o("input",{"onUpdate:modelValue":p[2]||(p[2]=c=>N.value.personality=c),type:"text",placeholder:"calm, brave"},null,512),[[K,N.value.personality]])]),o("label",null,[o("span",null,u(t.hairColor),1),F(o("input",{"onUpdate:modelValue":p[3]||(p[3]=c=>N.value.hair_color=c),type:"text"},null,512),[[K,N.value.hair_color]])]),o("label",null,[o("span",null,u(t.hairstyle),1),F(o("input",{"onUpdate:modelValue":p[4]||(p[4]=c=>N.value.hairstyle=c),type:"text"},null,512),[[K,N.value.hairstyle]])]),o("label",null,[o("span",null,u(t.eyeColor),1),F(o("input",{"onUpdate:modelValue":p[5]||(p[5]=c=>N.value.eye_color=c),type:"text"},null,512),[[K,N.value.eye_color]])]),o("label",null,[o("span",null,u(t.stylePrompt),1),F(o("input",{"onUpdate:modelValue":p[6]||(p[6]=c=>N.value.style=c),type:"text"},null,512),[[K,N.value.style]])]),o("label",null,[o("span",null,u(t.tags),1),F(o("input",{"onUpdate:modelValue":p[7]||(p[7]=c=>N.value.clothing_keywords=c),type:"text",placeholder:"white blouse, ribbon"},null,512),[[K,N.value.clothing_keywords]])]),o("label",Cu,[o("span",null,u(t.description),1),F(o("input",{"onUpdate:modelValue":p[8]||(p[8]=c=>N.value.description=c),type:"text"},null,512),[[K,N.value.description]])]),o("button",{type:"button",disabled:!!a.value||!N.value.name,onClick:_n},u(t.quickDraft),9,Su),o("button",{type:"button",disabled:!!a.value||!N.value.name,onClick:mn},u(t.create),9,Pu)]),ee.value?(C(),S("pre",Du,u(JSON.stringify(ee.value,null,2)),1)):G("",!0),$.value.profile_id?(C(),S("div",Eu,[o("label",null,[o("span",null,u(t.name),1),F(o("input",{"onUpdate:modelValue":p[9]||(p[9]=c=>$.value.name=c),type:"text"},null,512),[[K,$.value.name]])]),o("label",null,[o("span",null,u(t.provider),1),F(o("input",{"onUpdate:modelValue":p[10]||(p[10]=c=>$.value.default_model_route=c),type:"text"},null,512),[[K,$.value.default_model_route]])]),o("label",Tu,[o("span",null,u(t.description),1),F(o("input",{"onUpdate:modelValue":p[11]||(p[11]=c=>$.value.description=c),type:"text"},null,512),[[K,$.value.description]])]),o("label",Ou,[o("span",null,u(t.basePrompt),1),F(o("input",{"onUpdate:modelValue":p[12]||(p[12]=c=>$.value.base_prompt=c),type:"text"},null,512),[[K,$.value.base_prompt]])]),o("label",Iu,[o("span",null,u(t.appearancePrompt),1),F(o("input",{"onUpdate:modelValue":p[13]||(p[13]=c=>$.value.appearance_prompt=c),type:"text"},null,512),[[K,$.value.appearance_prompt]])]),o("label",Au,[o("span",null,u(t.stylePrompt),1),F(o("input",{"onUpdate:modelValue":p[14]||(p[14]=c=>$.value.style_prompt=c),type:"text"},null,512),[[K,$.value.style_prompt]])]),o("label",Mu,[o("span",null,u(t.negativePrompt),1),F(o("input",{"onUpdate:modelValue":p[15]||(p[15]=c=>$.value.negative_prompt=c),type:"text"},null,512),[[K,$.value.negative_prompt]])]),o("button",{type:"button",disabled:!!a.value||!$.value.name,onClick:Go},u(t.update),9,Ru),o("button",{type:"button",disabled:!!a.value,onClick:Wl},u(t.reset),9,$u)])):G("",!0),o("ul",null,[(C(!0),S(Y,null,_e(((kn=r.value)==null?void 0:kn.items)??[],c=>(C(),S("li",{key:c.profile_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.profile_id),1)]),o("div",Bu,[o("span",Uu,u(c.status),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>Jo(c)},u(t.edit),9,Lu),o("button",{type:"button",disabled:!!a.value,onClick:he=>qo(c.profile_id)},u(t.delete),9,Vu)])]))),128)),(Cn=r.value)!=null&&Cn.items.length?G("",!0):(C(),S("li",Fu,u(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(C(),S("section",Nu,[o("div",ju,[o("header",null,[o("h2",null,u(k.value),1),o("span",null,u(d.value.length),1)]),o("div",Hu,[o("label",null,[o("span",null,u(t.name),1),F(o("input",{"onUpdate:modelValue":p[16]||(p[16]=c=>Oe.value.display_name=c),type:"text"},null,512),[[K,Oe.value.display_name]])]),o("label",null,[o("span",null,u(t.workflowType),1),F(o("select",{"onUpdate:modelValue":p[17]||(p[17]=c=>Oe.value.workflow_type=c)},[...p[49]||(p[49]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Ut,Oe.value.workflow_type]])]),o("button",{type:"button",disabled:!!a.value||!m.value||!Oe.value.display_name,onClick:zo},u(t.create),9,Wu)]),o("ul",null,[(C(!0),S(Y,null,_e(d.value,c=>(C(),S("li",{key:c.workflow_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.workflow_type)+" / "+u(c.workflow_id),1)]),o("div",Ku,[o("span",qu,u(c.status),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>X(c.workflow_id)},u(t.nodes),9,Ju),o("button",{type:"button",disabled:!!a.value,onClick:he=>Yo(c.workflow_id)},u(t.start),9,Gu),o("button",{type:"button",disabled:!!a.value,onClick:he=>Qo(c.workflow_id)},u(t.cancel),9,zu),o("button",{type:"button",disabled:!!a.value,onClick:he=>Xo(c.workflow_id)},u(t.archive),9,Yu)])]))),128)),d.value.length?G("",!0):(C(),S("li",Qu,u(t.emptyWorkflows),1))]),f.value?(C(),S("section",Xu,[o("header",null,[o("h2",null,u(t.branches),1),o("span",null,u(_.value.length),1)]),o("div",Zu,[o("label",null,[o("span",null,u(t.branchName),1),F(o("input",{"onUpdate:modelValue":p[18]||(p[18]=c=>qe.value.branch_name=c),type:"text",placeholder:"alt_pose"},null,512),[[K,qe.value.branch_name]])]),o("button",{type:"button",disabled:!!a.value||!qe.value.branch_name,onClick:Zo},u(t.create),9,ec)]),o("ul",null,[(C(!0),S(Y,null,_e(_.value,c=>(C(),S("li",{key:c.branch_id},[o("div",null,[o("strong",null,u(c.branch_name),1),o("small",null,u(c.base_branch_name??"main")+" / "+u(c.status),1)]),o("button",{type:"button",disabled:!!a.value,onClick:he=>ei(c.branch_name)},u(t.switchBranch),9,tc)]))),128))])])):G("",!0)]),o("div",nc,[o("header",null,[o("h2",null,u(t.nodes),1),o("div",lc,[o("span",null,u(((Sn=f.value)==null?void 0:Sn.workflow.current_branch)??"main"),1),o("button",{type:"button",disabled:!!a.value||!f.value,onClick:ti},u(t.review),9,sc)])]),o("div",oc,[o("label",null,[o("span",null,u(t.modelRoute),1),F(o("input",{"onUpdate:modelValue":p[19]||(p[19]=c=>Pe.value.model_route=c),type:"text",placeholder:"image_low"},null,512),[[K,Pe.value.model_route]])]),o("label",null,[o("span",null,u(t.prompt),1),F(o("input",{"onUpdate:modelValue":p[20]||(p[20]=c=>Pe.value.prompt=c),type:"text"},null,512),[[K,Pe.value.prompt]])]),o("label",ic,[o("span",null,u(t.negativePrompt),1),F(o("input",{"onUpdate:modelValue":p[21]||(p[21]=c=>Pe.value.negative_prompt=c),type:"text"},null,512),[[K,Pe.value.negative_prompt]])]),o("button",{type:"button",disabled:!!a.value||!T.value,onClick:li},u(t.generate),9,rc),o("button",{type:"button",disabled:!!a.value||!T.value,onClick:ni},u(t.review),9,ac)]),o("ul",null,[(C(!0),S(Y,null,_e(((ql=f.value)==null?void 0:ql.nodes)??[],c=>(C(),S("li",{key:c.node_id},[o("div",null,[o("strong",null,u(c.title),1),o("small",null,u(c.node_key)+" / "+u(c.node_id),1)]),o("div",uc,[o("span",null,u(c.branch_name),1),o("span",cc,u(c.status),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>me(c.node_id)},u(t.images),9,dc)])]))),128)),(Jl=f.value)!=null&&Jl.nodes.length?G("",!0):(C(),S("li",fc,u(t.emptyWorkflows),1))]),o("ul",null,[(C(!0),S(Y,null,_e(A.value,c=>(C(),S("li",{key:c.image_id},[o("div",null,[o("strong",null,u(c.image_id),1),o("small",null,u(c.thumbnail_uri??c.image_uri),1)]),o("div",pc,[c.is_selected?(C(),S("span",hc,u(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!a.value||c.is_selected||c.is_archived,onClick:he=>si(c.image_id)},u(t.select),9,gc),o("button",{type:"button",disabled:!!a.value||c.is_archived,onClick:he=>oi(c.image_id)},u(t.adopt),9,vc),o("button",{type:"button",disabled:!!a.value||!c.is_selected,onClick:he=>ii(c.image_id)},u(t.unselect),9,_c),o("button",{type:"button",disabled:!!a.value||c.is_archived,onClick:he=>ri(c.image_id)},u(t.archive),9,mc),o("button",{type:"button",disabled:!!a.value,onClick:he=>ai(c.image_id)},u(t.delete),9,yc)])]))),128)),A.value.length?G("",!0):(C(),S("li",bc,u(t.emptyImages),1))]),Q.value?(C(),S("pre",wc,u(JSON.stringify(Q.value,null,2)),1)):G("",!0),o("section",xc,[o("header",null,[o("h2",null,u(t.history),1),o("span",null,u(v.value.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(v.value,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.node_id??c.workflow_id),1)]),o("span",null,u(c.branch_name),1)]))),128)),v.value.length?G("",!0):(C(),S("li",kc,u(t.emptyHistory),1))])]),y.value?(C(),S("section",Cc,[o("header",null,[o("h2",null,u(t.reviewResult),1),o("span",null,u(y.value.passed?t.support:t.unsupported),1)]),o("pre",null,u(JSON.stringify(y.value,null,2)),1)])):G("",!0),f.value?(C(),S("pre",Sc,u(JSON.stringify(f.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(C(),S("section",Pc,[o("div",Dc,[o("header",null,[o("h2",null,u(t.materialCategories),1),o("span",null,u(U.value.length),1)]),o("div",Ec,[o("label",null,[o("span",null,u(t.name),1),F(o("input",{"onUpdate:modelValue":p[22]||(p[22]=c=>Ce.value.name=c),type:"text"},null,512),[[K,Ce.value.name]])]),o("label",null,[o("span",null,u(t.categoryType),1),F(o("input",{"onUpdate:modelValue":p[23]||(p[23]=c=>Ce.value.category_type=c),type:"text"},null,512),[[K,Ce.value.category_type]])]),o("label",null,[o("span",null,u(t.sortOrder),1),F(o("input",{"onUpdate:modelValue":p[24]||(p[24]=c=>Ce.value.sort_order=c),type:"number"},null,512),[[K,Ce.value.sort_order,void 0,{number:!0}]])]),o("button",{type:"button",disabled:!!a.value||!Ce.value.name,onClick:Di},u(Ce.value.category_id?t.update:t.create),9,Tc),o("button",{type:"button",disabled:!!a.value,onClick:yn},u(t.reset),9,Oc)]),o("ul",null,[(C(!0),S(Y,null,_e(U.value,c=>(C(),S("li",{key:c.category_id},[o("div",null,[o("strong",null,u(c.name),1),o("small",null,u(c.category_type),1)]),o("div",Ic,[o("span",null,u(c.sort_order),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>Pi(c)},u(t.edit),9,Ac),o("button",{type:"button",disabled:!!a.value,onClick:he=>Ei(c.category_id)},u(t.delete),9,Mc)])]))),128)),U.value.length?G("",!0):(C(),S("li",Rc,u(t.emptyCategories),1))])]),o("div",$c,[o("header",null,[o("h2",null,u(t.materialItems),1),o("div",Bc,[o("span",null,u(b.value)+" "+u(t.pendingConfirm),1),o("button",{type:"button",disabled:!!a.value,onClick:Si},u(t.signFirstImage),9,Uc)])]),o("div",Lc,[o("label",null,[o("span",null,u(t.name),1),F(o("input",{"onUpdate:modelValue":p[25]||(p[25]=c=>se.value.display_name=c),type:"text"},null,512),[[K,se.value.display_name]])]),o("label",null,[o("span",null,u(t.imageUri),1),F(o("input",{"onUpdate:modelValue":p[26]||(p[26]=c=>se.value.image_uri=c),type:"text",placeholder:"storage://materials/example.png"},null,512),[[K,se.value.image_uri]])]),o("label",null,[o("span",null,u(t.category),1),F(o("select",{"onUpdate:modelValue":p[27]||(p[27]=c=>se.value.category_id=c)},[o("option",Vc,u(t.allCategories),1),(C(!0),S(Y,null,_e(U.value,c=>(C(),S("option",{key:c.category_id,value:c.category_id},u(c.name),9,Fc))),128))],512),[[Ut,se.value.category_id]])]),o("label",null,[o("span",null,u(t.tags),1),F(o("input",{"onUpdate:modelValue":p[28]||(p[28]=c=>se.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[K,se.value.tags]])]),o("label",null,[o("span",null,u(t.prompt),1),F(o("input",{"onUpdate:modelValue":p[29]||(p[29]=c=>se.value.prompt=c),type:"text"},null,512),[[K,se.value.prompt]])]),o("label",null,[o("span",null,u(t.negativePrompt),1),F(o("input",{"onUpdate:modelValue":p[30]||(p[30]=c=>se.value.negative_prompt=c),type:"text"},null,512),[[K,se.value.negative_prompt]])]),o("button",{type:"button",disabled:!!a.value||!se.value.display_name,onClick:Ti},u(se.value.material_id?t.update:t.create),9,Nc),o("button",{type:"button",disabled:!!a.value,onClick:nl},u(t.reset),9,jc)]),o("ul",null,[(C(!0),S(Y,null,_e(((Gl=ce.value)==null?void 0:Gl.items)??[],c=>(C(),S("li",{key:c.material_id},[o("div",null,[o("strong",null,u(c.display_name),1),o("small",null,u(c.image_uri??t.noImage),1)]),o("div",Hc,[o("span",Wc,u(c.recognition_status),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>Oi(c)},u(t.edit),9,Kc),o("button",{type:"button",disabled:!!a.value,onClick:he=>Ii(c.material_id)},u(t.recognize),9,qc),o("button",{type:"button",disabled:!!a.value||c.recognition_status==="confirmed",onClick:he=>Ai(c)},u(t.confirm),9,Jc),o("button",{type:"button",disabled:!!a.value,onClick:he=>Mi(c.material_id)},u(t.archive),9,Gc)])]))),128)),(zl=ce.value)!=null&&zl.items.length?G("",!0):(C(),S("li",zc,u(t.emptyMaterials),1))]),Qe.value?(C(),S("pre",Yc,u(JSON.stringify(Qe.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(C(),S("section",Qc,[o("header",null,[o("h2",null,u(k.value),1),o("button",{type:"button",disabled:!m.value||!!a.value,onClick:pi},u(t.match),9,Xc)]),o("div",Zc,[o("label",null,[o("span",null,u(t.selectMaterial),1),F(o("select",{"onUpdate:modelValue":p[31]||(p[31]=c=>we.value.material_id=c)},[o("option",ed,u(t.selectMaterial),1),(C(!0),S(Y,null,_e(E.value,c=>(C(),S("option",{key:c.material_id,value:c.material_id},u(c.display_name),9,td))),128))],512),[[Ut,we.value.material_id]])]),o("label",null,[o("span",null,u(t.wardrobeCategory),1),F(o("input",{"onUpdate:modelValue":p[32]||(p[32]=c=>we.value.wardrobe_category=c),type:"text"},null,512),[[K,we.value.wardrobe_category]])]),o("label",null,[o("span",null,u(t.tags),1),F(o("input",{"onUpdate:modelValue":p[33]||(p[33]=c=>we.value.tags=c),type:"text",placeholder:"daily, top"},null,512),[[K,we.value.tags]])]),o("label",null,[o("span",null,u(t.season),1),F(o("input",{"onUpdate:modelValue":p[34]||(p[34]=c=>we.value.season=c),type:"text"},null,512),[[K,we.value.season]])]),o("label",null,[o("span",null,u(t.style),1),F(o("input",{"onUpdate:modelValue":p[35]||(p[35]=c=>we.value.style=c),type:"text"},null,512),[[K,we.value.style]])]),o("button",{type:"button",disabled:!!a.value||!m.value||!we.value.material_id||!we.value.wardrobe_category,onClick:gi},u(t.importToWardrobe),9,nd)]),o("ul",null,[(C(!0),S(Y,null,_e(Me.value,c=>(C(),S("li",{key:c.wardrobe_item_id},[o("div",null,[o("strong",null,u(c.wardrobe_category),1),o("small",null,u(c.material_id)+" / "+u(c.tags.join(", ")||t.noTags),1)]),o("div",ld,[o("span",null,u(c.usage_count),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>vi(c.wardrobe_item_id)},u(t.delete),9,sd)])]))),128)),Me.value.length?G("",!0):(C(),S("li",od,u(t.emptyWardrobe),1))]),ut.value?(C(),S("pre",id,u(JSON.stringify(ut.value,null,2)),1)):G("",!0),o("div",rd,[o("label",null,[o("span",null,u(t.categories),1),F(o("input",{"onUpdate:modelValue":p[36]||(p[36]=c=>Se.value.categories=c),type:"text"},null,512),[[K,Se.value.categories]])]),o("label",null,[o("span",null,u(t.mood),1),F(o("input",{"onUpdate:modelValue":p[37]||(p[37]=c=>Se.value.mood=c),type:"text"},null,512),[[K,Se.value.mood]])]),o("label",null,[o("span",null,u(t.weather),1),F(o("input",{"onUpdate:modelValue":p[38]||(p[38]=c=>Se.value.weather=c),type:"text"},null,512),[[K,Se.value.weather]])]),o("label",null,[o("span",null,u(t.keywords),1),F(o("input",{"onUpdate:modelValue":p[39]||(p[39]=c=>Se.value.keywords=c),type:"text"},null,512),[[K,Se.value.keywords]])]),o("button",{type:"button",disabled:!!a.value||!m.value,onClick:_i},u(t.dailyOutfit),9,ad)]),ft.value?(C(),S("pre",ud,u(JSON.stringify(ft.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(C(),S("section",cd,[o("header",null,[o("h2",null,u(t.jobs),1),o("div",dd,[o("button",{type:"button",disabled:!!a.value,onClick:ui},u(t.moveFailed),9,fd),o("button",{type:"button",disabled:!!a.value,onClick:ci},u(t.retryDead),9,pd)])]),o("div",hd,[o("label",null,[p[50]||(p[50]=o("span",null,"Status",-1)),F(o("select",{"onUpdate:modelValue":p[40]||(p[40]=c=>be.value.status=c)},[o("option",gd,u(t.allStatuses),1),(C(),S(Y,null,_e(P,c=>o("option",{key:c,value:c},u(c),9,vd)),64))],512),[[Ut,be.value.status]])]),o("label",null,[o("span",null,u(t.profiles),1),F(o("select",{"onUpdate:modelValue":p[41]||(p[41]=c=>be.value.profile_id=c)},[o("option",_d,u(t.allProfiles),1),(C(!0),S(Y,null,_e(((Yl=r.value)==null?void 0:Yl.items)??[],c=>(C(),S("option",{key:c.profile_id,value:c.profile_id},u(c.name),9,md))),128))],512),[[Ut,be.value.profile_id]])]),o("label",null,[o("span",null,u(t.workflows),1),F(o("select",{"onUpdate:modelValue":p[42]||(p[42]=c=>be.value.workflow_id=c)},[o("option",yd,u(t.allWorkflows),1),(C(!0),S(Y,null,_e(d.value,c=>(C(),S("option",{key:c.workflow_id,value:c.workflow_id},u(c.display_name),9,bd))),128))],512),[[Ut,be.value.workflow_id]])]),o("button",{type:"button",disabled:!!a.value,onClick:V},u(t.filter),9,wd)]),o("ul",null,[(C(!0),S(Y,null,_e(((Ql=L.value)==null?void 0:Ql.items)??[],c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.task_type)+" / "+u(c.progress)+"%",1)]),o("div",xd,[o("span",kd,u(c.status),1),["failed","dead_letter","cancelled"].includes(c.status)?(C(),S("button",{key:0,type:"button",onClick:he=>Dt(c.task_id)},u(t.retry),9,Cd)):G("",!0),["completed","succeeded","cancelled"].includes(c.status)?G("",!0):(C(),S("button",{key:1,type:"button",onClick:he=>vn(c.task_id)},u(t.cancel),9,Sd)),o("button",{type:"button",disabled:!!a.value,onClick:he=>$e(c.task_id)},u(t.detail),9,Pd)])]))),128)),(Xl=L.value)!=null&&Xl.items.length?G("",!0):(C(),S("li",Dd,u(t.emptyJobs),1))]),fe.value?(C(),S("section",Ed,[o("header",null,[o("h2",null,u(t.jobDetail),1),o("span",null,u(fe.value.status),1)]),o("pre",null,u(JSON.stringify(fe.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(C(),S("section",Td,[o("div",Od,[o("header",null,[o("h2",null,u(t.dialects),1),o("button",{type:"button",disabled:!!a.value,onClick:di},u(t.safeProbe),9,Id)]),o("ul",null,[(C(!0),S(Y,null,_e(Ve.value,c=>(C(),S("li",{key:c.dialect},[o("div",null,[o("strong",null,u(c.label),1),o("small",null,u(c.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,u(c.dialect),1)]))),128))]),o("div",Ad,[o("label",null,[o("span",null,u(t.provider),1),F(o("input",{"onUpdate:modelValue":p[43]||(p[43]=c=>Re.value.provider_id=c),type:"text",placeholder:"local-preview"},null,512),[[K,Re.value.provider_id]])]),o("label",null,[o("span",null,u(t.model),1),F(o("input",{"onUpdate:modelValue":p[44]||(p[44]=c=>Re.value.model_id=c),type:"text",placeholder:"metadata-only"},null,512),[[K,Re.value.model_id]])]),o("label",null,[o("span",null,u(t.requiredCapabilities),1),F(o("input",{"onUpdate:modelValue":p[45]||(p[45]=c=>Re.value.required_capabilities=c),type:"text",placeholder:"text_to_image"},null,512),[[K,Re.value.required_capabilities]])]),o("button",{type:"button",disabled:!!a.value||!Re.value.provider_id||!Re.value.model_id,onClick:fi},u(t.validatePlan),9,Md)]),Pt.value?(C(),S("pre",Rd,u(JSON.stringify(Pt.value,null,2)),1)):G("",!0)]),o("div",$d,[o("header",null,[o("h2",null,u(t.capabilityProfiles),1),o("span",null,u(Ne.value.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(Ne.value,c=>(C(),S("li",{key:c.capability_profile_id},[o("div",null,[o("strong",null,u(c.provider_id)+" / "+u(c.model_id),1),o("small",null,u(c.dialect),1)]),o("div",Bd,[o("span",Ud,u(c.status),1),o("button",{type:"button",disabled:!!a.value,onClick:he=>el(c,"confirmed_supported")},u(t.support),9,Ld),o("button",{type:"button",disabled:!!a.value,onClick:he=>el(c,"confirmed_unsupported")},u(t.unsupported),9,Vd),o("button",{type:"button",disabled:!!a.value,onClick:he=>el(c,"unconfirmed")},u(t.unconfirmed),9,Fd)])]))),128)),Ne.value.length?G("",!0):(C(),S("li",Nd,u(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(C(),S("section",jd,[o("div",Hd,[o("div",Wd,[o("header",null,[o("h2",null,u(t.generationLogs),1),o("span",null,u(ve.value.generation.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(ve.value.generation,c=>(C(),S("li",{key:c.task_id},[o("div",null,[o("strong",null,u(c.task_id),1),o("small",null,u(c.status)+" / "+u(c.progress)+"%",1)]),o("span",null,u(c.created_at),1)]))),128)),ve.value.generation.length?G("",!0):(C(),S("li",Kd,u(t.emptyGenerationLogs),1))])]),o("div",qd,[o("header",null,[o("h2",null,u(t.errorLogs),1),o("span",null,u(ve.value.errors.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(ve.value.errors,c=>(C(),S("li",{key:`${c.source}-${c.id}`},[o("div",null,[o("strong",null,u(c.source),1),o("small",null,u(c.error_message??t.noErrorDetail),1)]),o("span",Jd,u(c.status),1)]))),128)),ve.value.errors.length?G("",!0):(C(),S("li",Gd,u(t.emptyErrors),1))])])]),o("div",zd,[o("div",Yd,[o("header",null,[o("h2",null,u(t.workflowLogs),1),o("span",null,u(ve.value.workflows.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(ve.value.workflows,c=>(C(),S("li",{key:c.history_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.title??c.workflow_id),1)]),o("span",null,u(c.branch_name??"main"),1)]))),128)),ve.value.workflows.length?G("",!0):(C(),S("li",Qd,u(t.emptyWorkflowLogs),1))])]),o("div",Xd,[o("header",null,[o("h2",null,u(t.integrationLogs),1),o("span",null,u(ve.value.integrations.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(ve.value.integrations,c=>(C(),S("li",{key:c.integration_log_id},[o("div",null,[o("strong",null,u(c.integration_name),1),o("small",null,u(c.action),1)]),o("span",Zd,u(c.status),1)]))),128)),ve.value.integrations.length?G("",!0):(C(),S("li",ef,u(t.emptyIntegrationLogs),1))])])]),o("div",tf,[o("header",null,[o("h2",null,u(t.auditLogs),1),o("span",null,u(ve.value.audit.length),1)]),o("ul",null,[(C(!0),S(Y,null,_e(ve.value.audit,c=>(C(),S("li",{key:c.audit_id},[o("div",null,[o("strong",null,u(c.action),1),o("small",null,u(c.actor_type)+" / "+u(c.target_type)+" / "+u(c.target_id),1)]),o("span",null,u(c.created_at),1)]))),128)),ve.value.audit.length?G("",!0):(C(),S("li",nf,u(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(C(),S("section",lf,[o("div",sf,[o("button",{type:"button",disabled:!!a.value,onClick:mi},u(t.reload),9,of),o("button",{type:"button",disabled:!!a.value,onClick:p[46]||(p[46]=c=>qt())},u(t.reset),9,rf),o("button",{type:"button",disabled:!!a.value,onClick:wi},u(t.validate),9,af),o("button",{type:"button",disabled:!!a.value,onClick:xi},u(t.diff),9,uf),o("button",{type:"button",disabled:!!a.value,onClick:ki},u(t.save),9,cf),o("button",{type:"button",disabled:!!a.value,onClick:yi},u(t.exportRedacted),9,df)]),o("div",ff,[(C(!0),S(Y,null,_e(((Zl=ue.value)==null?void 0:Zl.sections)??[],c=>(C(),S("article",{key:c.key},[o("h2",null,u(c.title),1),o("span",null,u(c.fields.length),1)]))),128))]),o("section",pf,[o("header",null,[o("h2",null,u(t.settingsEditor),1),o("span",null,u(((es=W.value)==null?void 0:es.config_path)??"***PATH***"),1)]),F(o("textarea",{"onUpdate:modelValue":p[47]||(p[47]=c=>ct.value=c),spellcheck:"false"},null,512),[[K,ct.value]])]),o("section",hf,[o("header",null,[o("h2",null,u(t.importSettings),1),o("button",{type:"button",disabled:!!a.value||!Xe.value,onClick:Ci},u(t.importSettings),9,gf)]),F(o("textarea",{"onUpdate:modelValue":p[48]||(p[48]=c=>Xe.value=c),spellcheck:"false"},null,512),[[K,Xe.value]])]),o("div",vf,[o("div",_f,[o("header",null,[o("h2",null,u(t.validationResult),1),o("span",null,u(((ts=dt.value)==null?void 0:ts.valid)??"-"),1)]),o("pre",null,u(JSON.stringify(dt.value??{},null,2)),1)]),o("div",mf,[o("header",null,[o("h2",null,u(t.diffResult),1),o("span",null,u(((ns=wt.value)==null?void 0:ns.changes.length)??0),1)]),o("pre",null,u(JSON.stringify(wt.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",yf,[o("h2",null,u(t.running),1),o("dl",null,[o("div",null,[p[51]||(p[51]=o("dt",null,"Pending",-1)),o("dd",null,u(((ls=i.value)==null?void 0:ls.queue.pending)??0),1)]),o("div",null,[p[52]||(p[52]=o("dt",null,"Running",-1)),o("dd",null,u(((ss=i.value)==null?void 0:ss.queue.running)??0),1)]),o("div",null,[p[53]||(p[53]=o("dt",null,"Failed",-1)),o("dd",null,u(((os=i.value)==null?void 0:os.queue.failed)??0),1)]),o("div",null,[p[54]||(p[54]=o("dt",null,"Dead",-1)),o("dd",null,u(((is=i.value)==null?void 0:is.queue.dead_letter)??0),1)])]),o("h2",null,u(t.storage),1),o("dl",null,[o("div",null,[p[55]||(p[55]=o("dt",null,"Images",-1)),o("dd",null,u(ll(Kl("storage://images/"))),1)]),o("div",null,[p[56]||(p[56]=o("dt",null,"Materials",-1)),o("dd",null,u(ll(Kl("storage://materials/"))),1)])])])])}}}),wf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},xf=wf(bf,[["__scopeId","data-v-cd3af2f1"]]);ou(xf).mount("#app");
|