astrbot_plugin_imagestudio/web/assets/index-ChLO5vLw.js

17 行
79 KiB
JavaScript

var Gi=Object.defineProperty;var zi=(e,t,s)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var vs=(e,t,s)=>zi(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ee={},xt=[],Ne=()=>{},Bn=()=>!1,os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),de=Object.assign,Vs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,G=(e,t)=>Yi.call(e,t),$=Array.isArray,wt=e=>Ut(e)==="[object Map]",Wn=e=>Ut(e)==="[object Set]",dn=e=>Ut(e)==="[object Date]",N=e=>typeof e=="function",le=e=>typeof e=="string",He=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",Kn=e=>(Y(e)||N(e))&&N(e.then)&&N(e.catch),Un=Object.prototype.toString,Ut=e=>Un.call(e),Xi=e=>Ut(e).slice(8,-1),Vn=e=>Ut(e)==="[object Object]",qs=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),us=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Oe=us(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,ht=us(e=>e.replace(Qi,"-$1").toLowerCase()),qn=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=us(e=>e?`on${qn(e)}`:""),$e=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},er=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hn;const as=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if($(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=le(n)?ir(n):Js(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(le(e)||Y(e))return e}const tr=/;(?![^(]*\))/g,sr=/:([^]+)/,nr=/\/\*[^]*?\*\//g;function ir(e){const t={};return e.replace(nr,"").split(tr).forEach(s=>{if(s){const n=s.split(sr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function fs(e){let t="";if(le(e))t=e;else if($(e))for(let s=0;s<e.length;s++){const n=fs(e[s]);n&&(t+=n+" ")}else if(Y(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const rr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lr=Us(rr);function Gn(e){return!!e||e===""}function or(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=dn(e),n=dn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=He(e),n=He(t),s||n)return e===t;if(s=$(e),n=$(t),s||n)return s&&n?or(e,t):!1;if(s=Y(e),n=Y(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const l in e){const c=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(c&&!u||!c&&u||!Gs(e[l],t[l]))return!1}}return String(e)===String(t)}const zn=e=>!!(e&&e.__v_isRef===!0),g=e=>le(e)?e:e==null?"":$(e)||Y(e)&&(e.toString===Un||!N(e.toString))?zn(e)?g(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[ws(n,r)+" =>"]=i,s),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:He(t)?ws(t):Y(t)&&!$(t)&&!Vn(t)?String(t):t,ws=(e,t="")=>{var s;return He(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let fe;class cr{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&&fe&&(fe.active?(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=fe;try{return fe=this,t()}finally{fe=s}}}on(){++this._on===1&&(this.prevScope=fe,fe=this)}off(){if(this._on>0&&--this._on===0){if(fe===this)fe=this.prevScope;else{let t=fe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ur(){return fe}let Q;const Ss=new WeakSet;class Xn{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,fe&&(fe.active?fe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pn(this),ei(this);const t=Q,s=Pe;Q=this,Pe=!0;try{return this.fn()}finally{ti(this),Q=t,Pe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xs(t);this.deps=this.depsTail=void 0,pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ds(this)&&this.run()}get dirty(){return Ds(this)}}let Zn=0,Dt,Ft;function Qn(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=Dt,Dt=e}function zs(){Zn++}function Ys(){if(--Zn>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Dt;){let t=Dt;for(Dt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Xs(n),ar(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ds(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nt)||(e.globalVersion=Nt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=Q,n=Pe;Q=e,Pe=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||$e(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Q=s,Pe=n,ti(e),e.flags&=-3}}function Xs(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Xs(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ar(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Pe=!0;const ni=[];function Be(){ni.push(Pe),Pe=!1}function We(){const e=ni.pop();Pe=e===void 0?!0:e}function pn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Q;Q=void 0;try{t()}finally{Q=s}}}let Nt=0;class fr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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(!Q||!Pe||Q===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Q)s=this.activeLink=new fr(Q,this),Q.deps?(s.prevDep=Q.depsTail,Q.depsTail.nextDep=s,Q.depsTail=s):Q.deps=Q.depsTail=s,ii(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Q.depsTail,s.nextDep=void 0,Q.depsTail.nextDep=s,Q.depsTail=s,Q.deps===s&&(Q.deps=n)}return s}trigger(t){this.version++,Nt++,this.notify(t)}notify(t){zs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ys()}}}function ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ii(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Fs=new WeakMap,ft=Symbol(""),Ls=Symbol(""),Ht=Symbol("");function pe(e,t,s){if(Pe&&Q){let n=Fs.get(e);n||Fs.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Zs),i.map=n,i.key=s),i.track()}}function Ye(e,t,s,n,i,r){const l=Fs.get(e);if(!l){Nt++;return}const c=u=>{u&&u.trigger()};if(zs(),t==="clear")l.forEach(c);else{const u=$(e),h=u&&qs(s);if(u&&s==="length"){const d=Number(n);l.forEach((_,E)=>{(E==="length"||E===Ht||!He(E)&&E>=d)&&c(_)})}else switch((s!==void 0||l.has(void 0))&&c(l.get(s)),h&&c(l.get(Ht)),t){case"add":u?h&&c(l.get("length")):(c(l.get(ft)),wt(e)&&c(l.get(Ls)));break;case"delete":u||(c(l.get(ft)),wt(e)&&c(l.get(Ls)));break;case"set":wt(e)&&c(l.get(ft));break}}Ys()}function bt(e){const t=J(e);return t===e?t:(pe(t,"iterate",Ht),Ee(e)?t:t.map(Ae))}function ds(e){return pe(e=J(e),"iterate",Ht),e}function Le(e,t){return Ze(e)?Tt(dt(e)?Ae(t):t):Ae(t)}const dr={__proto__:null,[Symbol.iterator](){return Cs(this,Symbol.iterator,e=>Le(this,e))},concat(...e){return bt(this).concat(...e.map(t=>$(t)?bt(t):t))},entries(){return Cs(this,"entries",e=>(e[1]=Le(this,e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,s=>s.map(n=>Le(this,n)),arguments)},find(e,t){return Je(this,"find",e,t,s=>Le(this,s),arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,s=>Le(this,s),arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Pt(this,"pop")},push(...e){return Pt(this,"push",e)},reduce(e,...t){return gn(this,"reduce",e,t)},reduceRight(e,...t){return gn(this,"reduceRight",e,t)},shift(){return Pt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Pt(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 Pt(this,"unshift",e)},values(){return Cs(this,"values",e=>Le(this,e))}};function Cs(e,t,s){const n=ds(e),i=n[t]();return n!==e&&!Ee(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const hr=Array.prototype;function Je(e,t,s,n,i,r){const l=ds(e),c=l!==e&&!Ee(e),u=l[t];if(u!==hr[t]){const _=u.apply(e,r);return c?Ae(_):_}let h=s;l!==e&&(c?h=function(_,E){return s.call(this,Le(e,_),E,e)}:s.length>2&&(h=function(_,E){return s.call(this,_,E,e)}));const d=u.call(l,h,n);return c&&i?i(d):d}function gn(e,t,s,n){const i=ds(e),r=i!==e&&!Ee(e);let l=s,c=!1;i!==e&&(r?(c=n.length===0,l=function(h,d,_){return c&&(c=!1,h=Le(e,h)),s.call(this,h,Le(e,d),_,e)}):s.length>3&&(l=function(h,d,_){return s.call(this,h,d,_,e)}));const u=i[t](l,...n);return c?Le(e,u):u}function Ts(e,t,s){const n=J(e);pe(n,"iterate",Ht);const i=n[t](...s);return(i===-1||i===!1)&&sn(s[0])?(s[0]=J(s[0]),n[t](...s)):i}function Pt(e,t,s=[]){Be(),zs();const n=J(e)[t].apply(e,s);return Ys(),We(),n}const pr=Us("__proto__,__v_isRef,__isVue"),ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(He));function gr(e){He(e)||(e=String(e));const t=J(this);return pe(t,"has",e),t.hasOwnProperty(e)}class li{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Tr:ai:r?ui:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=$(t);if(!i){let u;if(l&&(u=dr[s]))return u;if(s==="hasOwnProperty")return gr}const c=Reflect.get(t,s,ge(t)?t:n);if((He(s)?ri.has(s):pr(s))||(i||pe(t,"get",s),r))return c;if(ge(c)){const u=l&&qs(s)?c:c.value;return i&&Y(u)?$s(u):u}return Y(c)?i?$s(c):en(c):c}}class oi extends li{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];const l=$(t)&&qs(s);if(!this._isShallow){const h=Ze(r);if(!Ee(n)&&!Ze(n)&&(r=J(r),n=J(n)),!l&&ge(r)&&!ge(n))return h||(r.value=n),!0}const c=l?Number(s)<t.length:G(t,s),u=Reflect.set(t,s,n,ge(t)?t:i);return t===J(i)&&u&&(c?$e(n,r)&&Ye(t,"set",s,n):Ye(t,"add",s,n)),u}deleteProperty(t,s){const n=G(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&Ye(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!He(s)||!ri.has(s))&&pe(t,"has",s),n}ownKeys(t){return pe(t,"iterate",$(t)?"length":ft),Reflect.ownKeys(t)}}class _r extends li{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const mr=new oi,br=new _r,vr=new oi(!0);const js=e=>e,zt=e=>Reflect.getPrototypeOf(e);function yr(e,t,s){return function(...n){const i=this.__v_raw,r=J(i),l=wt(r),c=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,h=i[e](...n),d=s?js:t?Tt:Ae;return!t&&pe(r,"iterate",u?Ls:ft),de(Object.create(h),{next(){const{value:_,done:E}=h.next();return E?{value:_,done:E}:{value:c?[d(_[0]),d(_[1])]:d(_),done:E}}})}}function Yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xr(e,t){const s={get(i){const r=this.__v_raw,l=J(r),c=J(i);e||($e(i,c)&&pe(l,"get",i),pe(l,"get",c));const{has:u}=zt(l),h=t?js:e?Tt:Ae;if(u.call(l,i))return h(r.get(i));if(u.call(l,c))return h(r.get(c));r!==l&&r.get(i)},get size(){const i=this.__v_raw;return!e&&pe(J(i),"iterate",ft),i.size},has(i){const r=this.__v_raw,l=J(r),c=J(i);return e||($e(i,c)&&pe(l,"has",i),pe(l,"has",c)),i===c?r.has(i):r.has(i)||r.has(c)},forEach(i,r){const l=this,c=l.__v_raw,u=J(c),h=t?js:e?Tt:Ae;return!e&&pe(u,"iterate",ft),c.forEach((d,_)=>i.call(r,h(d),h(_),l))}};return de(s,e?{add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear")}:{add(i){const r=J(this),l=zt(r),c=J(i),u=!t&&!Ee(i)&&!Ze(i)?c:i;return l.has.call(r,u)||$e(i,u)&&l.has.call(r,i)||$e(c,u)&&l.has.call(r,c)||(r.add(u),Ye(r,"add",u,u)),this},set(i,r){!t&&!Ee(r)&&!Ze(r)&&(r=J(r));const l=J(this),{has:c,get:u}=zt(l);let h=c.call(l,i);h||(i=J(i),h=c.call(l,i));const d=u.call(l,i);return l.set(i,r),h?$e(r,d)&&Ye(l,"set",i,r):Ye(l,"add",i,r),this},delete(i){const r=J(this),{has:l,get:c}=zt(r);let u=l.call(r,i);u||(i=J(i),u=l.call(r,i)),c&&c.call(r,i);const h=r.delete(i);return u&&Ye(r,"delete",i,void 0),h},clear(){const i=J(this),r=i.size!==0,l=i.clear();return r&&Ye(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=yr(i,e,t)}),s}function Qs(e,t){const s=xr(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(G(s,i)&&i in n?s:n,i,r)}const wr={get:Qs(!1,!1)},Sr={get:Qs(!1,!0)},Cr={get:Qs(!0,!1)};const ci=new WeakMap,ui=new WeakMap,ai=new WeakMap,Tr=new WeakMap;function Er(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function en(e){return Ze(e)?e:tn(e,!1,mr,wr,ci)}function Or(e){return tn(e,!1,vr,Sr,ui)}function $s(e){return tn(e,!0,br,Cr,ai)}function tn(e,t,s,n,i){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=i.get(e);if(r)return r;const l=Er(Xi(e));if(l===0)return e;const c=new Proxy(e,l===2?n:s);return i.set(e,c),c}function dt(e){return Ze(e)?dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ze(e){return!!(e&&e.__v_isReadonly)}function Ee(e){return!!(e&&e.__v_isShallow)}function sn(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Pr(e){return!G(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const Ae=e=>Y(e)?en(e):e,Tt=e=>Y(e)?$s(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function ce(e){return Ar(e,!1)}function Ar(e,t){return ge(e)?e:new Mr(e,t)}class Mr{constructor(t,s){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:J(t),this._value=s?t:Ae(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ee(t)||Ze(t);t=n?t:J(t),$e(t,s)&&(this._rawValue=t,this._value=n?t:Ae(t),this.dep.trigger())}}function Rr(e){return ge(e)?e.value:e}const Ir={get:(e,t,s)=>t==="__v_raw"?e:Rr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ge(i)&&!ge(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function fi(e){return dt(e)?e:new Proxy(e,Ir)}class Dr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Q!==this)return Qn(this,!0),!0}get value(){const t=this.dep.track();return si(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fr(e,t,s=!1){let n,i;return N(e)?n=e:(n=e.get,i=e.set),new Dr(n,i,s)}const Xt={},es=new WeakMap;let at;function Lr(e,t=!1,s=at){if(s){let n=es.get(s);n||es.set(s,n=[]),n.push(e)}}function jr(e,t,s=ee){const{immediate:n,deep:i,once:r,scheduler:l,augmentJob:c,call:u}=s,h=F=>i?F:Ee(F)||i===!1||i===0?it(F,1):it(F);let d,_,E,P,K=!1,j=!1;if(ge(e)?(_=()=>e.value,K=Ee(e)):dt(e)?(_=()=>h(e),K=!0):$(e)?(j=!0,K=e.some(F=>dt(F)||Ee(F)),_=()=>e.map(F=>{if(ge(F))return F.value;if(dt(F))return h(F);if(N(F))return u?u(F,2):F()})):N(e)?t?_=u?()=>u(e,2):e:_=()=>{if(E){Be();try{E()}finally{We()}}const F=at;at=d;try{return u?u(e,3,[P]):e(P)}finally{at=F}}:_=Ne,t&&i){const F=_,W=i===!0?1/0:i;_=()=>it(F(),W)}const te=ur(),k=()=>{d.stop(),te&&te.active&&Vs(te.effects,d)};if(r&&t){const F=t;t=(...W)=>{const ae=F(...W);return k(),ae}}let H=j?new Array(e.length).fill(Xt):Xt;const V=F=>{if(!(!(d.flags&1)||!d.dirty&&!F))if(t){const W=d.run();if(F||i||K||(j?W.some((ae,Se)=>$e(ae,H[Se])):$e(W,H))){E&&E();const ae=at;at=d;try{const Se=[W,H===Xt?void 0:j&&H[0]===Xt?[]:H,P];H=W,u?u(t,3,Se):t(...Se)}finally{at=ae}}}else d.run()};return c&&c(V),d=new Xn(_),d.scheduler=l?()=>l(V,!1):V,P=F=>Lr(F,!1,d),E=d.onStop=()=>{const F=es.get(d);if(F){if(u)u(F,4);else for(const W of F)W();es.delete(d)}},t?n?V(!0):H=d.run():l?l(V.bind(null,!0),!0):d.run(),k.pause=d.pause.bind(d),k.resume=d.resume.bind(d),k.stop=k,k}function it(e,t=1/0,s){if(t<=0||!Y(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ge(e))it(e.value,t,s);else if($(e))for(let n=0;n<e.length;n++)it(e[n],t,s);else if(Wn(e)||wt(e))e.forEach(n=>{it(n,t,s)});else if(Vn(e)){for(const n in e)it(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&it(e[n],t,s)}return e}/**
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Vt(e,t,s,n){try{return n?e(...n):e()}catch(i){hs(i,t,s)}}function Me(e,t,s,n){if(N(e)){const i=Vt(e,t,s,n);return i&&Kn(i)&&i.catch(r=>{hs(r,t,s)}),i}if($(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Me(e[r],t,s,n));return i}}function hs(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ee;if(t){let c=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;c;){const d=c.ec;if(d){for(let _=0;_<d.length;_++)if(d[_](e,u,h)===!1)return}c=c.parent}if(r){Be(),Vt(r,null,10,[e,u,h]),We();return}}$r(e,s,i,n,l)}function $r(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const be=[];let Fe=-1;const St=[];let nt=null,vt=0;const di=Promise.resolve();let ts=null;function kr(e){const t=ts||di;return e?t.then(this?e.bind(this):e):t}function Nr(e){let t=Fe+1,s=be.length;for(;t<s;){const n=t+s>>>1,i=be[n],r=Bt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function nn(e){if(!(e.flags&1)){const t=Bt(e),s=be[be.length-1];!s||!(e.flags&2)&&t>=Bt(s)?be.push(e):be.splice(Nr(t),0,e),e.flags|=1,hi()}}function hi(){ts||(ts=di.then(gi))}function Hr(e){$(e)?St.push(...e):nt&&e.id===-1?nt.splice(vt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),hi()}function _n(e,t,s=Fe+1){for(;s<be.length;s++){const n=be[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;be.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function pi(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>Bt(s)-Bt(n));if(St.length=0,nt){nt.push(...t);return}for(nt=t,vt=0;vt<nt.length;vt++){const s=nt[vt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}nt=null,vt=0}}const Bt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(Fe=0;Fe<be.length;Fe++){const t=be[Fe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fe<be.length;Fe++){const t=be[Fe];t&&(t.flags&=-2)}Fe=-1,be.length=0,pi(),ts=null,(be.length||St.length)&&gi()}}let ke=null,_i=null;function ss(e){const t=ke;return ke=e,_i=e&&e.type.__scopeId||null,t}function Br(e,t=ke,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const r=ss(t);let l;try{l=e(...i)}finally{ss(r),n._d&&On(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function ct(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];r&&(c.oldValue=r[l].value);let u=c.dir[n];u&&(Be(),Me(u,s,8,[e.el,c,e,t]),We())}}function Wr(e,t){if(ve){let s=ve.provides;const n=ve.parent&&ve.parent.provides;n===s&&(s=ve.provides=Object.create(n)),s[e]=t}}function Zt(e,t,s=!1){const n=Wl();if(n||Ct){let i=Ct?Ct._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&N(t)?t.call(n&&n.proxy):t}}const Kr=Symbol.for("v-scx"),Ur=()=>Zt(Kr);function Es(e,t,s){return mi(e,t,s)}function mi(e,t,s=ee){const{immediate:n,deep:i,flush:r,once:l}=s,c=de({},s),u=t&&n||!t&&r!=="post";let h;if(Kt){if(r==="sync"){const P=Ur();h=P.__watcherHandles||(P.__watcherHandles=[])}else if(!u){const P=()=>{};return P.stop=Ne,P.resume=Ne,P.pause=Ne,P}}const d=ve;c.call=(P,K,j)=>Me(P,d,K,j);let _=!1;r==="post"?c.scheduler=P=>{we(P,d&&d.suspense)}:r!=="sync"&&(_=!0,c.scheduler=(P,K)=>{K?P():nn(P)}),c.augmentJob=P=>{t&&(P.flags|=4),_&&(P.flags|=2,d&&(P.id=d.uid,P.i=d))};const E=jr(e,t,c);return Kt&&(h?h.push(E):u&&E()),E}function Vr(e,t,s){const n=this.proxy,i=le(e)?e.includes(".")?bi(n,e):()=>n[e]:e.bind(n,n);let r;N(t)?r=t:(r=t.handler,s=t);const l=qt(this),c=mi(i,r.bind(n),s);return l(),c}function bi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const qr=Symbol("_vte"),Jr=e=>e.__isTeleport,Os=Symbol("_leaveCb");function rn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,rn(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 Gr(e,t){return N(e)?de({name:e.name},t,{setup:e}):e}function vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ns=new WeakMap;function Lt(e,t,s,n,i=!1){if($(e)){e.forEach((j,te)=>Lt(j,t&&($(t)?t[te]:t),s,n,i));return}if(jt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Lt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?cn(n.component):n.el,l=i?null:r,{i:c,r:u}=e,h=t&&t.r,d=c.refs===ee?c.refs={}:c.refs,_=c.setupState,E=J(_),P=_===ee?Bn:j=>mn(d,j)?!1:G(E,j),K=(j,te)=>!(te&&mn(d,te));if(h!=null&&h!==u){if(bn(t),le(h))d[h]=null,P(h)&&(_[h]=null);else if(ge(h)){const j=t;K(h,j.k)&&(h.value=null),j.k&&(d[j.k]=null)}}if(N(u)){Be();try{Vt(u,c,12,[l,d])}finally{We()}}else{const j=le(u),te=ge(u);if(j||te){const k=()=>{if(e.f){const H=j?P(u)?_[u]:d[u]:K()||!e.k?u.value:d[e.k];if(i)$(H)&&Vs(H,r);else if($(H))H.includes(r)||H.push(r);else if(j)d[u]=[r],P(u)&&(_[u]=d[u]);else{const V=[r];K(u,e.k)&&(u.value=V),e.k&&(d[e.k]=V)}}else j?(d[u]=l,P(u)&&(_[u]=l)):te&&(K(u,e.k)&&(u.value=l),e.k&&(d[e.k]=l))};if(l){const H=()=>{k(),ns.delete(e)};H.id=-1,ns.set(e,H),we(H,s)}else bn(e),k()}}}function bn(e){const t=ns.get(e);t&&(t.flags|=8,ns.delete(e))}as().requestIdleCallback;as().cancelIdleCallback;const jt=e=>!!e.type.__asyncLoader,yi=e=>e.type.__isKeepAlive;function zr(e,t){xi(e,"a",t)}function Yr(e,t){xi(e,"da",t)}function xi(e,t,s=ve){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ps(t,n,s),s){let i=s.parent;for(;i&&i.parent;)yi(i.parent.vnode)&&Xr(n,t,s,i),i=i.parent}}function Xr(e,t,s,n){const i=ps(t,e,n,!0);Si(()=>{Vs(n[t],i)},s)}function ps(e,t,s=ve,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...l)=>{Be();const c=qt(s),u=Me(t,s,e,l);return c(),We(),u});return n?i.unshift(r):i.push(r),r}}const Qe=e=>(t,s=ve)=>{(!Kt||e==="sp")&&ps(e,(...n)=>t(...n),s)},Zr=Qe("bm"),wi=Qe("m"),Qr=Qe("bu"),el=Qe("u"),tl=Qe("bum"),Si=Qe("um"),sl=Qe("sp"),nl=Qe("rtg"),il=Qe("rtc");function rl(e,t=ve){ps("ec",e,t)}const ll=Symbol.for("v-ndc");function xe(e,t,s,n){let i;const r=s,l=$(e);if(l||le(e)){const c=l&&dt(e);let u=!1,h=!1;c&&(u=!Ee(e),h=Ze(e),e=ds(e)),i=new Array(e.length);for(let d=0,_=e.length;d<_;d++)i[d]=t(u?h?Tt(Ae(e[d])):Ae(e[d]):e[d],d,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let c=0;c<e;c++)i[c]=t(c+1,c,void 0,r)}else if(Y(e))if(e[Symbol.iterator])i=Array.from(e,(c,u)=>t(c,u,void 0,r));else{const c=Object.keys(e);i=new Array(c.length);for(let u=0,h=c.length;u<h;u++){const d=c[u];i[u]=t(e[d],d,u,r)}}else i=[];return i}const ks=e=>e?Ui(e)?cn(e):ks(e.parent):null,$t=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ks(e.parent),$root:e=>ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ti(e),$forceUpdate:e=>e.f||(e.f=()=>{nn(e.update)}),$nextTick:e=>e.n||(e.n=kr.bind(e.proxy)),$watch:e=>Vr.bind(e)}),Ps=(e,t)=>e!==ee&&!e.__isScriptSetup&&G(e,t),ol={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:l,type:c,appContext:u}=e;if(t[0]!=="$"){const E=l[t];if(E!==void 0)switch(E){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(Ps(n,t))return l[t]=1,n[t];if(i!==ee&&G(i,t))return l[t]=2,i[t];if(G(r,t))return l[t]=3,r[t];if(s!==ee&&G(s,t))return l[t]=4,s[t];Ns&&(l[t]=0)}}const h=$t[t];let d,_;if(h)return t==="$attrs"&&pe(e.attrs,"get",""),h(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(s!==ee&&G(s,t))return l[t]=4,s[t];if(_=u.config.globalProperties,G(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return Ps(i,t)?(i[t]=s,!0):n!==ee&&G(n,t)?(n[t]=s,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:r,type:l}},c){let u;return!!(s[c]||e!==ee&&c[0]!=="$"&&G(e,c)||Ps(t,c)||G(r,c)||G(n,c)||G($t,c)||G(i.config.globalProperties,c)||(u=l.__cssModules)&&u[c])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:G(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function vn(e){return $(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Ns=!0;function cl(e){const t=Ti(e),s=e.proxy,n=e.ctx;Ns=!1,t.beforeCreate&&yn(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:l,watch:c,provide:u,inject:h,created:d,beforeMount:_,mounted:E,beforeUpdate:P,updated:K,activated:j,deactivated:te,beforeDestroy:k,beforeUnmount:H,destroyed:V,unmounted:F,render:W,renderTracked:ae,renderTriggered:Se,errorCaptured:Re,serverPrefetch:pt,expose:Ke,inheritAttrs:lt,components:et,directives:gt,filters:Ue}=t;if(h&&ul(h,n,null),l)for(const se in l){const z=l[se];N(z)&&(n[se]=z.bind(s))}if(i){const se=i.call(s,s);Y(se)&&(e.data=en(se))}if(Ns=!0,r)for(const se in r){const z=r[se],Ve=N(z)?z.bind(s,s):N(z.get)?z.get.bind(s,s):Ne,_t=!N(z)&&N(z.set)?z.set.bind(s):Ne,qe=yt({get:Ve,set:_t});Object.defineProperty(n,se,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ye=>qe.value=ye})}if(c)for(const se in c)Ci(c[se],n,s,se);if(u){const se=N(u)?u.call(s):u;Reflect.ownKeys(se).forEach(z=>{Wr(z,se[z])})}d&&yn(d,e,"c");function Z(se,z){$(z)?z.forEach(Ve=>se(Ve.bind(s))):z&&se(z.bind(s))}if(Z(Zr,_),Z(wi,E),Z(Qr,P),Z(el,K),Z(zr,j),Z(Yr,te),Z(rl,Re),Z(il,ae),Z(nl,Se),Z(tl,H),Z(Si,F),Z(sl,pt),$(Ke))if(Ke.length){const se=e.exposed||(e.exposed={});Ke.forEach(z=>{Object.defineProperty(se,z,{get:()=>s[z],set:Ve=>s[z]=Ve,enumerable:!0})})}else e.exposed||(e.exposed={});W&&e.render===Ne&&(e.render=W),lt!=null&&(e.inheritAttrs=lt),et&&(e.components=et),gt&&(e.directives=gt),pt&&vi(e)}function ul(e,t,s=Ne){$(e)&&(e=Hs(e));for(const n in e){const i=e[n];let r;Y(i)?"default"in i?r=Zt(i.from||n,i.default,!0):r=Zt(i.from||n):r=Zt(i),ge(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[n]=r}}function yn(e,t,s){Me($(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ci(e,t,s,n){let i=n.includes(".")?bi(s,n):()=>s[n];if(le(e)){const r=t[e];N(r)&&Es(i,r)}else if(N(e))Es(i,e.bind(s));else if(Y(e))if($(e))e.forEach(r=>Ci(r,t,s,n));else{const r=N(e.handler)?e.handler.bind(s):t[e.handler];N(r)&&Es(i,r,e)}}function Ti(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,c=r.get(t);let u;return c?u=c:!i.length&&!s&&!n?u=t:(u={},i.length&&i.forEach(h=>is(u,h,l,!0)),is(u,t,l)),Y(t)&&r.set(t,u),u}function is(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&is(e,r,s,!0),i&&i.forEach(l=>is(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const c=al[l]||s&&s[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const al={data:xn,props:wn,emits:wn,methods:Mt,computed:Mt,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:Mt,directives:Mt,watch:dl,provide:xn,inject:fl};function xn(e,t){return t?e?function(){return de(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function fl(e,t){return Mt(Hs(e),Hs(t))}function Hs(e){if($(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function me(e,t){return e?[...new Set([].concat(e,t))]:t}function Mt(e,t){return e?de(Object.create(null),e,t):t}function wn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:de(Object.create(null),vn(e),vn(t??{})):t}function dl(e,t){if(!e)return t;if(!t)return e;const s=de(Object.create(null),e);for(const n in t)s[n]=me(e[n],t[n]);return s}function Ei(){return{app:null,config:{isNativeTag:Bn,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 hl=0;function pl(e,t){return function(n,i=null){N(n)||(n=de({},n)),i!=null&&!Y(i)&&(i=null);const r=Ei(),l=new WeakSet,c=[];let u=!1;const h=r.app={_uid:hl++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Gl,get config(){return r.config},set config(d){},use(d,..._){return l.has(d)||(d&&N(d.install)?(l.add(d),d.install(h,..._)):N(d)&&(l.add(d),d(h,..._))),h},mixin(d){return r.mixins.includes(d)||r.mixins.push(d),h},component(d,_){return _?(r.components[d]=_,h):r.components[d]},directive(d,_){return _?(r.directives[d]=_,h):r.directives[d]},mount(d,_,E){if(!u){const P=h._ceVNode||Xe(n,i);return P.appContext=r,E===!0?E="svg":E===!1&&(E=void 0),e(P,d,E),u=!0,h._container=d,d.__vue_app__=h,cn(P.component)}},onUnmount(d){c.push(d)},unmount(){u&&(Me(c,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(d,_){return r.provides[d]=_,h},runWithContext(d){const _=Ct;Ct=h;try{return d()}finally{Ct=_}}};return h}}let Ct=null;const gl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${ht(t)}Modifiers`];function _l(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ee;let i=s;const r=t.startsWith("update:"),l=r&&gl(n,t.slice(7));l&&(l.trim&&(i=s.map(d=>le(d)?d.trim():d)),l.number&&(i=s.map(er)));let c,u=n[c=ys(t)]||n[c=ys(Oe(t))];!u&&r&&(u=n[c=ys(ht(t))]),u&&Me(u,e,6,i);const h=n[c+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Me(h,e,6,i)}}const ml=new WeakMap;function Oi(e,t,s=!1){const n=s?ml:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let l={},c=!1;if(!N(e)){const u=h=>{const d=Oi(h,t,!0);d&&(c=!0,de(l,d))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(Y(e)&&n.set(e,null),null):($(r)?r.forEach(u=>l[u]=null):de(l,r),Y(e)&&n.set(e,l),l)}function gs(e,t){return!e||!os(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,ht(t))||G(e,t))}function Sn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:l,attrs:c,emit:u,render:h,renderCache:d,props:_,data:E,setupState:P,ctx:K,inheritAttrs:j}=e,te=ss(e);let k,H;try{if(s.shapeFlag&4){const F=i||n,W=F;k=je(h.call(W,F,d,_,P,E,K)),H=c}else{const F=t;k=je(F.length>1?F(_,{attrs:c,slots:l,emit:u}):F(_,null)),H=t.props?c:bl(c)}}catch(F){kt.length=0,hs(F,e,1),k=Xe(rt)}let V=k;if(H&&j!==!1){const F=Object.keys(H),{shapeFlag:W}=V;F.length&&W&7&&(r&&F.some(cs)&&(H=vl(H,r)),V=Et(V,H,!1,!0))}return s.dirs&&(V=Et(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(s.dirs):s.dirs),s.transition&&rn(V,s.transition),k=V,ss(te),k}const bl=e=>{let t;for(const s in e)(s==="class"||s==="style"||os(s))&&((t||(t={}))[s]=e[s]);return t},vl=(e,t)=>{const s={};for(const n in e)(!cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function yl(e,t,s){const{props:n,children:i,component:r}=e,{props:l,children:c,patchFlag:u}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Cn(n,l,h):!!l;if(u&8){const d=t.dynamicProps;for(let _=0;_<d.length;_++){const E=d[_];if(Pi(l,n,E)&&!gs(h,E))return!0}}}else return(i||c)&&(!c||!c.$stable)?!0:n===l?!1:n?l?Cn(n,l,h):!0:!!l;return!1}function Cn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(Pi(t,e,r)&&!gs(s,r))return!0}return!1}function Pi(e,t,s){const n=e[s],i=t[s];return s==="style"&&Y(n)&&Y(i)?!Gs(n,i):n!==i}function xl({vnode:e,parent:t,suspense:s},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=n,e=i),i===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Ai={},Mi=()=>Object.create(Ai),Ri=e=>Object.getPrototypeOf(e)===Ai;function wl(e,t,s,n=!1){const i={},r=Mi();e.propsDefaults=Object.create(null),Ii(e,t,i,r);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);s?e.props=n?i:Or(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Sl(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:l}}=e,c=J(i),[u]=e.propsOptions;let h=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let _=0;_<d.length;_++){let E=d[_];if(gs(e.emitsOptions,E))continue;const P=t[E];if(u)if(G(r,E))P!==r[E]&&(r[E]=P,h=!0);else{const K=Oe(E);i[K]=Bs(u,c,K,P,e,!1)}else P!==r[E]&&(r[E]=P,h=!0)}}}else{Ii(e,t,i,r)&&(h=!0);let d;for(const _ in c)(!t||!G(t,_)&&((d=ht(_))===_||!G(t,d)))&&(u?s&&(s[_]!==void 0||s[d]!==void 0)&&(i[_]=Bs(u,c,_,void 0,e,!0)):delete i[_]);if(r!==c)for(const _ in r)(!t||!G(t,_))&&(delete r[_],h=!0)}h&&Ye(e.attrs,"set","")}function Ii(e,t,s,n){const[i,r]=e.propsOptions;let l=!1,c;if(t)for(let u in t){if(It(u))continue;const h=t[u];let d;i&&G(i,d=Oe(u))?!r||!r.includes(d)?s[d]=h:(c||(c={}))[d]=h:gs(e.emitsOptions,u)||(!(u in n)||h!==n[u])&&(n[u]=h,l=!0)}if(r){const u=J(s),h=c||ee;for(let d=0;d<r.length;d++){const _=r[d];s[_]=Bs(i,u,_,h[_],e,!G(h,_))}}return l}function Bs(e,t,s,n,i,r){const l=e[s];if(l!=null){const c=G(l,"default");if(c&&n===void 0){const u=l.default;if(l.type!==Function&&!l.skipFactory&&N(u)){const{propsDefaults:h}=i;if(s in h)n=h[s];else{const d=qt(i);n=h[s]=u.call(null,t),d()}}else n=u;i.ce&&i.ce._setProp(s,n)}l[0]&&(r&&!c?n=!1:l[1]&&(n===""||n===ht(s))&&(n=!0))}return n}const Cl=new WeakMap;function Di(e,t,s=!1){const n=s?Cl:t.propsCache,i=n.get(e);if(i)return i;const r=e.props,l={},c=[];let u=!1;if(!N(e)){const d=_=>{u=!0;const[E,P]=Di(_,t,!0);de(l,E),P&&c.push(...P)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return Y(e)&&n.set(e,xt),xt;if($(r))for(let d=0;d<r.length;d++){const _=Oe(r[d]);Tn(_)&&(l[_]=ee)}else if(r)for(const d in r){const _=Oe(d);if(Tn(_)){const E=r[d],P=l[_]=$(E)||N(E)?{type:E}:de({},E),K=P.type;let j=!1,te=!0;if($(K))for(let k=0;k<K.length;++k){const H=K[k],V=N(H)&&H.name;if(V==="Boolean"){j=!0;break}else V==="String"&&(te=!1)}else j=N(K)&&K.name==="Boolean";P[0]=j,P[1]=te,(j||G(P,"default"))&&c.push(_)}}const h=[l,c];return Y(e)&&n.set(e,h),h}function Tn(e){return e[0]!=="$"&&!It(e)}const ln=e=>e==="_"||e==="_ctx"||e==="$stable",on=e=>$(e)?e.map(je):[je(e)],Tl=(e,t,s)=>{if(t._n)return t;const n=Br((...i)=>on(t(...i)),s);return n._c=!1,n},Fi=(e,t,s)=>{const n=e._ctx;for(const i in e){if(ln(i))continue;const r=e[i];if(N(r))t[i]=Tl(i,r,n);else if(r!=null){const l=on(r);t[i]=()=>l}}},Li=(e,t)=>{const s=on(t);e.slots.default=()=>s},ji=(e,t,s)=>{for(const n in t)(s||!ln(n))&&(e[n]=t[n])},El=(e,t,s)=>{const n=e.slots=Mi();if(e.vnode.shapeFlag&32){const i=t._;i?(ji(n,t,s),s&&Jn(n,"_",i,!0)):Fi(t,n)}else t&&Li(e,t)},Ol=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,l=ee;if(n.shapeFlag&32){const c=t._;c?s&&c===1?r=!1:ji(i,t,s):(r=!t.$stable,Fi(t,i)),l=t}else t&&(Li(e,t),l={default:1});if(r)for(const c in i)!ln(c)&&l[c]==null&&delete i[c]},we=Il;function Pl(e){return Al(e)}function Al(e,t){const s=as();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:l,createText:c,createComment:u,setText:h,setElementText:d,parentNode:_,nextSibling:E,setScopeId:P=Ne,insertStaticContent:K}=e,j=(o,a,p,y=null,b=null,m=null,C=void 0,S=null,w=!!a.dynamicChildren)=>{if(o===a)return;o&&!At(o,a)&&(y=tt(o),ye(o,b,m,!0),o=null),a.patchFlag===-2&&(w=!1,a.dynamicChildren=null);const{type:v,ref:I,shapeFlag:T}=a;switch(v){case _s:te(o,a,p,y);break;case rt:k(o,a,p,y);break;case Ms:o==null&&H(a,p,y,C);break;case ne:et(o,a,p,y,b,m,C,S,w);break;default:T&1?W(o,a,p,y,b,m,C,S,w):T&6?gt(o,a,p,y,b,m,C,S,w):(T&64||T&128)&&v.process(o,a,p,y,b,m,C,S,w,D)}I!=null&&b?Lt(I,o&&o.ref,m,a||o,!a):I==null&&o&&o.ref!=null&&Lt(o.ref,null,m,o,!0)},te=(o,a,p,y)=>{if(o==null)n(a.el=c(a.children),p,y);else{const b=a.el=o.el;a.children!==o.children&&h(b,a.children)}},k=(o,a,p,y)=>{o==null?n(a.el=u(a.children||""),p,y):a.el=o.el},H=(o,a,p,y)=>{[o.el,o.anchor]=K(o.children,a,p,y,o.el,o.anchor)},V=({el:o,anchor:a},p,y)=>{let b;for(;o&&o!==a;)b=E(o),n(o,p,y),o=b;n(a,p,y)},F=({el:o,anchor:a})=>{let p;for(;o&&o!==a;)p=E(o),i(o),o=p;i(a)},W=(o,a,p,y,b,m,C,S,w)=>{if(a.type==="svg"?C="svg":a.type==="math"&&(C="mathml"),o==null)ae(a,p,y,b,m,C,S,w);else{const v=o.el&&o.el._isVueCE?o.el:null;try{v&&v._beginPatch(),pt(o,a,b,m,C,S,w)}finally{v&&v._endPatch()}}},ae=(o,a,p,y,b,m,C,S)=>{let w,v;const{props:I,shapeFlag:T,transition:A,dirs:L}=o;if(w=o.el=l(o.type,m,I&&I.is,I),T&8?d(w,o.children):T&16&&Re(o.children,w,null,y,b,As(o,m),C,S),L&&ct(o,null,y,"created"),Se(w,o,o.scopeId,C,y),I){for(const q in I)q!=="value"&&!It(q)&&r(w,q,null,I[q],m,y);"value"in I&&r(w,"value",null,I.value,m),(v=I.onVnodeBeforeMount)&&De(v,y,o)}L&&ct(o,null,y,"beforeMount");const B=Ml(b,A);B&&A.beforeEnter(w),n(w,a,p),((v=I&&I.onVnodeMounted)||B||L)&&we(()=>{try{v&&De(v,y,o),B&&A.enter(w),L&&ct(o,null,y,"mounted")}finally{}},b)},Se=(o,a,p,y,b)=>{if(p&&P(o,p),y)for(let m=0;m<y.length;m++)P(o,y[m]);if(b){let m=b.subTree;if(a===m||Hi(m.type)&&(m.ssContent===a||m.ssFallback===a)){const C=b.vnode;Se(o,C,C.scopeId,C.slotScopeIds,b.parent)}}},Re=(o,a,p,y,b,m,C,S,w=0)=>{for(let v=w;v<o.length;v++){const I=o[v]=S?ze(o[v]):je(o[v]);j(null,I,a,p,y,b,m,C,S)}},pt=(o,a,p,y,b,m,C)=>{const S=a.el=o.el;let{patchFlag:w,dynamicChildren:v,dirs:I}=a;w|=o.patchFlag&16;const T=o.props||ee,A=a.props||ee;let L;if(p&&ut(p,!1),(L=A.onVnodeBeforeUpdate)&&De(L,p,a,o),I&&ct(a,o,p,"beforeUpdate"),p&&ut(p,!0),v&&(!o.dynamicChildren||o.dynamicChildren.length!==v.length)&&(w=0,C=!1,v=null),(T.innerHTML&&A.innerHTML==null||T.textContent&&A.textContent==null)&&d(S,""),v?Ke(o.dynamicChildren,v,S,p,y,As(a,b),m):C||z(o,a,S,null,p,y,As(a,b),m,!1),w>0){if(w&16)lt(S,T,A,p,b);else if(w&2&&T.class!==A.class&&r(S,"class",null,A.class,b),w&4&&r(S,"style",T.style,A.style,b),w&8){const B=a.dynamicProps;for(let q=0;q<B.length;q++){const U=B[q],ie=T[U],oe=A[U];(oe!==ie||U==="value")&&r(S,U,ie,oe,b,p)}}w&1&&o.children!==a.children&&d(S,a.children)}else!C&&v==null&&lt(S,T,A,p,b);((L=A.onVnodeUpdated)||I)&&we(()=>{L&&De(L,p,a,o),I&&ct(a,o,p,"updated")},y)},Ke=(o,a,p,y,b,m,C)=>{for(let S=0;S<a.length;S++){const w=o[S],v=a[S],I=w.el&&(w.type===ne||!At(w,v)||w.shapeFlag&198)?_(w.el):p;j(w,v,I,null,y,b,m,C,!0)}},lt=(o,a,p,y,b)=>{if(a!==p){if(a!==ee)for(const m in a)!It(m)&&!(m in p)&&r(o,m,a[m],null,b,y);for(const m in p){if(It(m))continue;const C=p[m],S=a[m];C!==S&&m!=="value"&&r(o,m,S,C,b,y)}"value"in p&&r(o,"value",a.value,p.value,b)}},et=(o,a,p,y,b,m,C,S,w)=>{const v=a.el=o?o.el:c(""),I=a.anchor=o?o.anchor:c("");let{patchFlag:T,dynamicChildren:A,slotScopeIds:L}=a;L&&(S=S?S.concat(L):L),o==null?(n(v,p,y),n(I,p,y),Re(a.children||[],p,I,b,m,C,S,w)):T>0&&T&64&&A&&o.dynamicChildren&&o.dynamicChildren.length===A.length?(Ke(o.dynamicChildren,A,p,b,m,C,S),(a.key!=null||b&&a===b.subTree)&&$i(o,a,!0)):z(o,a,p,I,b,m,C,S,w)},gt=(o,a,p,y,b,m,C,S,w)=>{a.slotScopeIds=S,o==null?a.shapeFlag&512?b.ctx.activate(a,p,y,C,w):Ue(a,p,y,b,m,C,w):Jt(o,a,w)},Ue=(o,a,p,y,b,m,C)=>{const S=o.component=Bl(o,y,b);if(yi(o)&&(S.ctx.renderer=D),Kl(S,!1,C),S.asyncDep){if(b&&b.registerDep(S,Z,C),!o.el){const w=S.subTree=Xe(rt);k(null,w,a,p),o.placeholder=w.el}}else Z(S,o,a,p,b,m,C)},Jt=(o,a,p)=>{const y=a.component=o.component;if(yl(o,a,p))if(y.asyncDep&&!y.asyncResolved){se(y,a,p);return}else y.next=a,y.update();else a.el=o.el,y.vnode=a},Z=(o,a,p,y,b,m,C)=>{const S=()=>{if(o.isMounted){let{next:T,bu:A,u:L,parent:B,vnode:q}=o;{const he=ki(o);if(he){T&&(T.el=q.el,se(o,T,C)),he.asyncDep.then(()=>{we(()=>{o.isUnmounted||v()},b)});return}}let U=T,ie;ut(o,!1),T?(T.el=q.el,se(o,T,C)):T=q,A&&xs(A),(ie=T.props&&T.props.onVnodeBeforeUpdate)&&De(ie,B,T,q),ut(o,!0);const oe=Sn(o),x=o.subTree;o.subTree=oe,j(x,oe,_(x.el),tt(x),o,b,m),T.el=oe.el,U===null&&xl(o,oe.el),L&&we(L,b),(ie=T.props&&T.props.onVnodeUpdated)&&we(()=>De(ie,B,T,q),b)}else{let T;const{el:A,props:L}=a,{bm:B,m:q,parent:U,root:ie,type:oe}=o,x=jt(a);ut(o,!1),B&&xs(B),!x&&(T=L&&L.onVnodeBeforeMount)&&De(T,U,a),ut(o,!0);{ie.ce&&ie.ce._hasShadowRoot()&&ie.ce._injectChildStyle(oe,o.parent?o.parent.type:void 0);const he=o.subTree=Sn(o);j(null,he,p,y,o,b,m),a.el=he.el}if(q&&we(q,b),!x&&(T=L&&L.onVnodeMounted)){const he=a;we(()=>De(T,U,he),b)}(a.shapeFlag&256||U&&jt(U.vnode)&&U.vnode.shapeFlag&256)&&o.a&&we(o.a,b),o.isMounted=!0,a=p=y=null}};o.scope.on();const w=o.effect=new Xn(S);o.scope.off();const v=o.update=w.run.bind(w),I=o.job=w.runIfDirty.bind(w);I.i=o,I.id=o.uid,w.scheduler=()=>nn(I),ut(o,!0),v()},se=(o,a,p)=>{a.component=o;const y=o.vnode.props;o.vnode=a,o.next=null,Sl(o,a.props,y,p),Ol(o,a.children,p),Be(),_n(o),We()},z=(o,a,p,y,b,m,C,S,w=!1)=>{const v=o&&o.children,I=o?o.shapeFlag:0,T=a.children,{patchFlag:A,shapeFlag:L}=a;if(A>0){if(A&128){_t(v,T,p,y,b,m,C,S,w);return}else if(A&256){Ve(v,T,p,y,b,m,C,S,w);return}}L&8?(I&16&&ot(v,b,m),T!==v&&d(p,T)):I&16?L&16?_t(v,T,p,y,b,m,C,S,w):ot(v,b,m,!0):(I&8&&d(p,""),L&16&&Re(T,p,y,b,m,C,S,w))},Ve=(o,a,p,y,b,m,C,S,w)=>{o=o||xt,a=a||xt;const v=o.length,I=a.length,T=Math.min(v,I);let A;for(A=0;A<T;A++){const L=a[A]=w?ze(a[A]):je(a[A]);j(o[A],L,p,null,b,m,C,S,w)}v>I?ot(o,b,m,!0,!1,T):Re(a,p,y,b,m,C,S,w,T)},_t=(o,a,p,y,b,m,C,S,w)=>{let v=0;const I=a.length;let T=o.length-1,A=I-1;for(;v<=T&&v<=A;){const L=o[v],B=a[v]=w?ze(a[v]):je(a[v]);if(At(L,B))j(L,B,p,null,b,m,C,S,w);else break;v++}for(;v<=T&&v<=A;){const L=o[T],B=a[A]=w?ze(a[A]):je(a[A]);if(At(L,B))j(L,B,p,null,b,m,C,S,w);else break;T--,A--}if(v>T){if(v<=A){const L=A+1,B=L<I?a[L].el:y;for(;v<=A;)j(null,a[v]=w?ze(a[v]):je(a[v]),p,B,b,m,C,S,w),v++}}else if(v>A)for(;v<=T;)ye(o[v],b,m,!0),v++;else{const L=v,B=v,q=new Map;for(v=B;v<=A;v++){const Ce=a[v]=w?ze(a[v]):je(a[v]);Ce.key!=null&&q.set(Ce.key,v)}let U,ie=0;const oe=A-B+1;let x=!1,he=0;const Ot=new Array(oe);for(v=0;v<oe;v++)Ot[v]=0;for(v=L;v<=T;v++){const Ce=o[v];if(ie>=oe){ye(Ce,b,m,!0);continue}let Ie;if(Ce.key!=null)Ie=q.get(Ce.key);else for(U=B;U<=A;U++)if(Ot[U-B]===0&&At(Ce,a[U])){Ie=U;break}Ie===void 0?ye(Ce,b,m,!0):(Ot[Ie-B]=v+1,Ie>=he?he=Ie:x=!0,j(Ce,a[Ie],p,null,b,m,C,S,w),ie++)}const un=x?Rl(Ot):xt;for(U=un.length-1,v=oe-1;v>=0;v--){const Ce=B+v,Ie=a[Ce],an=a[Ce+1],fn=Ce+1<I?an.el||Ni(an):y;Ot[v]===0?j(null,Ie,p,fn,b,m,C,S,w):x&&(U<0||v!==un[U]?qe(Ie,p,fn,2):U--)}}},qe=(o,a,p,y,b=null)=>{const{el:m,type:C,transition:S,children:w,shapeFlag:v}=o;if(v&6){qe(o.component.subTree,a,p,y);return}if(v&128){o.suspense.move(a,p,y);return}if(v&64){C.move(o,a,p,D);return}if(C===ne){n(m,a,p);for(let T=0;T<w.length;T++)qe(w[T],a,p,y);n(o.anchor,a,p);return}if(C===Ms){V(o,a,p);return}if(y!==2&&v&1&&S)if(y===0)S.persisted&&!m[Os]?n(m,a,p):(S.beforeEnter(m),n(m,a,p),we(()=>S.enter(m),b));else{const{leave:T,delayLeave:A,afterLeave:L}=S,B=()=>{o.ctx.isUnmounted?i(m):n(m,a,p)},q=()=>{const U=m._isLeaving||!!m[Os];m._isLeaving&&m[Os](!0),S.persisted&&!U?B():T(m,()=>{B(),L&&L()})};A?A(m,B,q):q()}else n(m,a,p)},ye=(o,a,p,y=!1,b=!1)=>{const{type:m,props:C,ref:S,children:w,dynamicChildren:v,shapeFlag:I,patchFlag:T,dirs:A,cacheIndex:L,memo:B}=o;if(T===-2&&(b=!1),S!=null&&(Be(),Lt(S,null,p,o,!0),We()),L!=null&&(a.renderCache[L]=void 0),I&256){a.ctx.deactivate(o);return}const q=I&1&&A,U=!jt(o);let ie;if(U&&(ie=C&&C.onVnodeBeforeUnmount)&&De(ie,a,o),I&6)bs(o.component,p,y);else{if(I&128){o.suspense.unmount(p,y);return}q&&ct(o,null,a,"beforeUnmount"),I&64?o.type.remove(o,a,p,D,y):v&&!v.hasOnce&&(m!==ne||T>0&&T&64)?ot(v,a,p,!1,!0):(m===ne&&T&384||!b&&I&16)&&ot(w,a,p),y&&Gt(o)}const oe=B!=null&&L==null;(U&&(ie=C&&C.onVnodeUnmounted)||q||oe)&&we(()=>{ie&&De(ie,a,o),q&&ct(o,null,a,"unmounted"),oe&&(o.el=null)},p)},Gt=o=>{const{type:a,el:p,anchor:y,transition:b}=o;if(a===ne){ms(p,y);return}if(a===Ms){F(o);return}const m=()=>{i(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(o.shapeFlag&1&&b&&!b.persisted){const{leave:C,delayLeave:S}=b,w=()=>C(p,m);S?S(o.el,m,w):w()}else m()},ms=(o,a)=>{let p;for(;o!==a;)p=E(o),i(o),o=p;i(a)},bs=(o,a,p)=>{const{bum:y,scope:b,job:m,subTree:C,um:S,m:w,a:v}=o;En(w),En(v),y&&xs(y),b.stop(),m&&(m.flags|=8,ye(C,o,a,p)),S&&we(S,a),we(()=>{o.isUnmounted=!0},a)},ot=(o,a,p,y=!1,b=!1,m=0)=>{for(let C=m;C<o.length;C++)ye(o[C],a,p,y,b)},tt=o=>{if(o.shapeFlag&6)return tt(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const a=E(o.anchor||o.el),p=a&&a[qr];return p?E(p):a};let mt=!1;const O=(o,a,p)=>{let y;o==null?a._vnode&&(ye(a._vnode,null,null,!0),y=a._vnode.component):j(a._vnode||null,o,a,null,null,null,p),a._vnode=o,mt||(mt=!0,_n(y),pi(),mt=!1)},D={p:j,um:ye,m:qe,r:Gt,mt:Ue,mc:Re,pc:z,pbc:Ke,n:tt,o:e};return{render:O,hydrate:void 0,createApp:pl(O)}}function As({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ut({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ml(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,s=!1){const n=e.children,i=t.children;if($(n)&&$(i))for(let r=0;r<n.length;r++){const l=n[r];let c=i[r];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=i[r]=ze(i[r]),c.el=l.el),!s&&c.patchFlag!==-2&&$i(l,c)),c.type===_s&&(c.patchFlag===-1&&(c=i[r]=ze(c)),c.el=l.el),c.type===rt&&!c.el&&(c.el=l.el)}}function Rl(e){const t=e.slice(),s=[0];let n,i,r,l,c;const u=e.length;for(n=0;n<u;n++){const h=e[n];if(h!==0){if(i=s[s.length-1],e[i]<h){t[n]=i,s.push(n);continue}for(r=0,l=s.length-1;r<l;)c=r+l>>1,e[s[c]]<h?r=c+1:l=c;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,l=s[r-1];r-- >0;)s[r]=l,l=t[l];return s}function ki(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function En(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ni(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ni(t.subTree):null}const Hi=e=>e.__isSuspense;function Il(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):Hr(e)}const ne=Symbol.for("v-fgt"),_s=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc"),kt=[];let Te=null;function M(e=!1){kt.push(Te=e?null:[])}function Dl(){kt.pop(),Te=kt[kt.length-1]||null}let Wt=1;function On(e,t=!1){Wt+=e,e<0&&Te&&t&&(Te.hasOnce=!0)}function Bi(e){return e.dynamicChildren=Wt>0?Te||xt:null,Dl(),Wt>0&&Te&&Te.push(e),e}function R(e,t,s,n,i,r){return Bi(f(e,t,s,n,i,r,!0))}function Fl(e,t,s,n,i){return Bi(Xe(e,t,s,n,i,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const Ki=({key:e})=>e??null,Qt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ge(e)||N(e)?{i:ke,r:e,k:t,f:!!s}:e:null);function f(e,t=null,s=null,n=0,i=null,r=e===ne?0:1,l=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Qt(t),scopeId:_i,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ke};return c?(rs(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=le(s)?8:16),Wt>0&&!l&&Te&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Te.push(u),u}const Xe=Ll;function Ll(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===ll)&&(e=rt),Wi(e)){const c=Et(e,t,!0);return s&&rs(c,s),Wt>0&&!r&&Te&&(c.shapeFlag&6?Te[Te.indexOf(e)]=c:Te.push(c)),c.patchFlag=-2,c}if(Jl(e)&&(e=e.__vccOpts),t){t=jl(t);let{class:c,style:u}=t;c&&!le(c)&&(t.class=fs(c)),Y(u)&&(sn(u)&&!$(u)&&(u=de({},u)),t.style=Js(u))}const l=le(e)?1:Hi(e)?128:Jr(e)?64:Y(e)?4:N(e)?2:0;return f(e,t,s,n,i,l,r,!0)}function jl(e){return e?sn(e)||Ri(e)?de({},e):e:null}function Et(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:l,children:c,transition:u}=e,h=t?kl(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Ki(h),ref:t&&t.ref?s&&r?$(r)?r.concat(Qt(t)):[r,Qt(t)]:Qt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Et(e.ssContent),ssFallback:e.ssFallback&&Et(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&rn(d,u.clone(d)),d}function $l(e=" ",t=0){return Xe(_s,null,e,t)}function re(e="",t=!1){return t?(M(),Fl(rt,null,e)):Xe(rt,null,e)}function je(e){return e==null||typeof e=="boolean"?Xe(rt):$(e)?Xe(ne,null,e.slice()):Wi(e)?ze(e):Xe(_s,null,String(e))}function ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Et(e)}function rs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if($(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),rs(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Ri(t)?t._ctx=ke:i===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(n&65){rs(e,{default:t});return}t={default:t,_ctx:ke},s=32}else t=String(t),n&64?(s=16,t=[$l(t)]):s=8;e.children=t,e.shapeFlag|=s}function kl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=fs([t.class,n.class]));else if(i==="style")t.style=Js([t.style,n.style]);else if(os(i)){const r=t[i],l=n[i];l&&r!==l&&!($(r)&&r.includes(l))?t[i]=r?[].concat(r,l):l:l==null&&r==null&&!cs(i)&&(t[i]=l)}else i!==""&&(t[i]=n[i])}return t}function De(e,t,s,n=null){Me(e,t,7,[s,n])}const Nl=Ei();let Hl=0;function Bl(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||Nl,r={uid:Hl++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Di(n,i),emitsOptions:Oi(n,i),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:n.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=_l.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const Wl=()=>ve||ke;let ls,Ws;{const e=as(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(l=>l(r)):i[0](r)}};ls=t("__VUE_INSTANCE_SETTERS__",s=>ve=s),Ws=t("__VUE_SSR_SETTERS__",s=>Kt=s)}const qt=e=>{const t=ve;return ls(e),e.scope.on(),()=>{e.scope.off(),ls(t)}},Pn=()=>{ve&&ve.scope.off(),ls(null)};function Ui(e){return e.vnode.shapeFlag&4}let Kt=!1;function Kl(e,t=!1,s=!1){t&&Ws(t);const{props:n,children:i}=e.vnode,r=Ui(e);wl(e,n,r,t),El(e,i,s||t);const l=r?Ul(e,t):void 0;return t&&Ws(!1),l}function Ul(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ol);const{setup:n}=s;if(n){Be();const i=e.setupContext=n.length>1?ql(e):null,r=qt(e),l=Vt(n,e,0,[e.props,i]),c=Kn(l);if(We(),r(),(c||e.sp)&&!jt(e)&&vi(e),c){if(l.then(Pn,Pn),t)return l.then(u=>{An(e,u)}).catch(u=>{hs(u,e,0)});e.asyncDep=l}else An(e,l)}else Vi(e)}function An(e,t,s){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=fi(t)),Vi(e)}function Vi(e,t,s){const n=e.type;e.render||(e.render=n.render||Ne);{const i=qt(e);Be();try{cl(e)}finally{We(),i()}}}const Vl={get(e,t){return pe(e,"get",""),e[t]}};function ql(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vl),slots:e.slots,emit:e.emit,expose:t}}function cn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fi(Pr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in $t)return $t[s](e)},has(t,s){return s in t||s in $t}})):e.proxy}function Jl(e){return N(e)&&"__vccOpts"in e}const yt=(e,t)=>Fr(e,t,Kt),Gl="3.5.39";/**
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ks;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Ks=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Ks?e=>Ks.createHTML(e):e=>e,zl="http://www.w3.org/2000/svg",Yl="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Rn=Ge&&Ge.createElement("template"),Xl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ge.createElementNS(zl,e):t==="mathml"?Ge.createElementNS(Yl,e):s?Ge.createElement(e,{is:s}):Ge.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const l=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Rn.innerHTML=qi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const c=Rn.content;if(n==="svg"||n==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Zl=Symbol("_vtc");function Ql(e,t,s){const n=e[Zl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),eo=Symbol("_vsh"),to=Symbol(""),so=/(?:^|;)\s*display\s*:/;function no(e,t,s){const n=e.style,i=le(s);let r=!1;if(s&&!i){if(t)if(le(t))for(const l of t.split(";")){const c=l.slice(0,l.indexOf(":")).trim();s[c]==null&&Rt(n,c,"")}else for(const l in t)s[l]==null&&Rt(n,l,"");for(const l in s){l==="display"&&(r=!0);const c=s[l];c!=null?ro(e,l,!le(t)&&t?t[l]:void 0,c)||Rt(n,l,c):Rt(n,l,"")}}else if(i){if(t!==s){const l=n[to];l&&(s+=";"+l),n.cssText=s,r=so.test(s)}}else t&&e.removeAttribute("style");In in e&&(e[In]=r?n.display:"",e[eo]&&(n.display="none"))}const Dn=/\s*!important$/;function Rt(e,t,s){if($(s))s.forEach(n=>Rt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=io(e,t);Dn.test(s)?e.setProperty(ht(n),s.replace(Dn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],Rs={};function io(e,t){const s=Rs[t];if(s)return s;let n=Oe(t);if(n!=="filter"&&n in e)return Rs[t]=n;n=qn(n);for(let i=0;i<Fn.length;i++){const r=Fn[i]+n;if(r in e)return Rs[t]=r}return t}function ro(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&le(n)&&s===n}const Ln="http://www.w3.org/1999/xlink";function jn(e,t,s,n,i,r=lr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Ln,t.slice(6,t.length)):e.setAttributeNS(Ln,t,s):s==null||r&&!Gn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":He(s)?String(s):s)}function $n(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qi(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const c=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(c!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const c=typeof e[t];c==="boolean"?s=Gn(s):s==null&&c==="string"?(s="",l=!0):c==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(i||t)}function lo(e,t,s,n){e.addEventListener(t,s,n)}function oo(e,t,s,n){e.removeEventListener(t,s,n)}const kn=Symbol("_vei");function co(e,t,s,n,i=null){const r=e[kn]||(e[kn]={}),l=r[t];if(n&&l)l.value=n;else{const[c,u]=fo(t);if(n){const h=r[t]=go(n,i);lo(e,c,h,u)}else l&&(oo(e,c,l,u),r[t]=void 0)}}const uo=/(Once|Passive|Capture)$/,ao=/^on:?(?:Once|Passive|Capture)$/;function fo(e){let t,s;for(;(s=e.match(uo))&&!ao.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let Is=0;const ho=Promise.resolve(),po=()=>Is||(ho.then(()=>Is=0),Is=Date.now());function go(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if($(i)){const r=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{r.call(n),n._stopped=!0};const l=i.slice(),c=[n];for(let u=0;u<l.length&&!n._stopped;u++){const h=l[u];h&&Me(h,t,5,c)}}else Me(i,t,5,[n])};return s.value=e,s.attached=po(),s}const Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_o=(e,t,s,n,i,r)=>{const l=i==="svg";t==="class"?Ql(e,n,l):t==="style"?no(e,s,n):os(t)?cs(t)||co(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mo(e,t,n,l))?($n(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&jn(e,t,n,l,r,t!=="value")):e._isVueCE&&(bo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!le(n)))?$n(e,Oe(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),jn(e,t,n,l))};function mo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nn(t)&&N(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Nn(t)&&le(s)?!1:t in e}function bo(e,t){const s=e._def.props;if(!s)return!1;const n=Oe(t);return Array.isArray(s)?s.some(i=>Oe(i)===n):Object.keys(s).some(i=>Oe(i)===n)}const vo=de({patchProp:_o},Xl);let Hn;function yo(){return Hn||(Hn=Pl(vo))}const xo=((...e)=>{const t=yo().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=So(n);if(!i)return;const r=t._component;!N(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=s(i,!1,wo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t});function wo(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function So(e){return le(e)?document.querySelector(e):e}const Co="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",X={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",quickProfileDraft:"profiles/quick-draft",jobs:"jobs",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",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class To extends Error{constructor(s,n,i={}){super(n);vs(this,"code");vs(this,"details");this.name="ApiClientError",this.code=s,this.details=i}}async function ue(e,t){return Ji(e,{method:"GET",query:t})}async function st(e,t){return Ji(e,{method:"POST",body:t})}async function Ji(e,t={}){const n=await(await fetch(Eo(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(!n.ok)throw new To(n.error_code,n.message,n.details);return n.data}function Eo(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${Co}/${s}`,window.location.origin);for(const[i,r]of Object.entries(t??{}))r!==void 0&&n.searchParams.set(i,String(r));return`${n.pathname}${n.search}`}const Oo={class:"web-shell"},Po={class:"sidebar"},Ao={class:"brand"},Mo=["onClick"],Ro={class:"workspace"},Io={class:"topbar"},Do={class:"actions"},Fo=["disabled"],Lo={key:0,class:"notice error"},jo={key:1,class:"notice"},$o={key:0,class:"dashboard-grid"},ko={key:1,class:"list-view"},No={class:"badge"},Ho={key:0,class:"empty"},Bo={key:2,class:"split-view"},Wo={class:"list-view"},Ko={key:0,class:"empty"},Uo={class:"list-view"},Vo={class:"inline-actions"},qo=["disabled"],Jo={class:"badge"},Go={key:0,class:"empty"},zo={key:0},Yo={key:3,class:"list-view"},Xo=["disabled"],Zo={key:0,class:"empty"},Qo={key:0},ec={key:4,class:"list-view"},tc={class:"inline-actions"},sc=["disabled"],nc=["disabled"],ic={class:"inline-actions"},rc={class:"badge"},lc=["onClick"],oc=["onClick"],cc={key:0,class:"empty"},uc={key:5,class:"split-view"},ac={class:"list-view"},fc=["disabled"],dc={class:"list-view"},hc={class:"inline-actions"},pc={class:"badge"},gc=["disabled","onClick"],_c=["disabled","onClick"],mc=["disabled","onClick"],bc={key:0,class:"empty"},vc={key:6,class:"logs-view"},yc={class:"split-view"},xc={class:"list-view"},wc={key:0,class:"empty"},Sc={class:"list-view"},Cc={class:"badge"},Tc={key:0,class:"empty"},Ec={class:"split-view"},Oc={class:"list-view"},Pc={key:0,class:"empty"},Ac={class:"list-view"},Mc={class:"badge"},Rc={key:0,class:"empty"},Ic={class:"list-view"},Dc={key:0,class:"empty"},Fc={key:7,class:"settings-view"},Lc={class:"toolbar"},jc=["disabled"],$c=["disabled"],kc={class:"settings-sections"},Nc={class:"inspector"},Hc=Gr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",emptyProfiles:"暂无角色",categories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",storage:"存储",running:"运行"},s=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],n=ce("dashboard"),i=ce(null),r=ce(null),l=ce(null),c=ce(null),u=ce(null),h=ce(null),d=ce(null),_=ce([]),E=ce(null),P=ce([]),K=ce([]),j=ce([]),te=ce(null),k=ce({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),H=ce(null),V=ce(""),F=ce(!0),W=ce(""),ae=ce(""),Se=yt(()=>{var O,D;return((D=(O=l.value)==null?void 0:O.items[0])==null?void 0:D.profile_id)??""}),Re=yt(()=>{var O,D;return((D=(O=l.value)==null?void 0:O.items[0])==null?void 0:D.name)??t.noProfile}),pt=yt(()=>{var D;const O=(D=r.value)==null?void 0:D.queue;return O?O.pending+O.running+O.failed+O.dead_letter:0}),Ke=yt(()=>{var O;return((O=E.value)==null?void 0:O.items.filter(D=>D.recognition_status!=="confirmed").length)??0}),lt=yt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[n.value]);wi(et);async function et(){var O;F.value=!0,ae.value="";try{const[D,_e,o,a,p,y,b,m,C,S,w]=await Promise.all([ue(X.uiBootstrap),ue(X.dashboardSummary),ue(X.profiles,{page:1,page_size:20}),ue(X.jobs,{page:1,page_size:20}),ue(X.settingsSchema),ue(X.settingsCurrent),ue(X.storageStatus),ue(X.materialCategories),ue(X.materials,{page:1,page_size:24}),ue(X.apiDiscoveryDialects),ue(X.apiDiscoveryCapabilities)]);i.value=D,r.value=_e,l.value=o,c.value=a,u.value=p,h.value=y,d.value=b,_.value=m,E.value=C,K.value=S,j.value=w,await Jt((O=o.items[0])==null?void 0:O.profile_id),await gt()}catch(D){ae.value=D instanceof Error?D.message:t.loadFailed}finally{F.value=!1}}async function gt(){const[O,D,_e,o,a]=await Promise.allSettled([ue(X.generationLogs,{limit:12}),ue(X.workflowLogs,{limit:12}),ue(X.errorLogs,{limit:12}),ue(X.integrationLogs,{limit:12}),ue(X.auditLogs,{limit:12})]);k.value={generation:Ue(O),workflows:Ue(D),errors:Ue(_e),integrations:Ue(o),audit:Ue(a)}}function Ue(O){return O.status==="fulfilled"?O.value:[]}async function Jt(O){if(!O){P.value=[];return}P.value=await ue(X.wardrobe(O))}async function Z(O,D,_e=!0){W.value=O,ae.value="";try{const o=await D();V.value=`${O}${t.complete}`,O===t.exportSettings&&(V.value=`${t.exportDone}: ${!!o.redacted}`),_e&&await et()}catch(o){ae.value=o instanceof Error?o.message:`${O}${t.failed}`}finally{W.value=""}}function se(O){return Z(t.retry,()=>st(X.jobRetry(O)))}function z(O){return Z(t.cancel,()=>st(X.jobCancel(O)))}function Ve(){return Z(t.moveFailed,()=>st(X.jobDeadLetterMoveFailed,{limit:20}))}function _t(){return Z(t.retryDead,()=>st(X.jobDeadLetterRetry,{limit:20}))}function qe(){var D;const O=((D=K.value[0])==null?void 0:D.dialect)??"unknown";return Z(t.safeProbe,()=>st(X.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:O,capabilities:{supports:["text_to_image"]}}))}function ye(O,D){return Z(t.discovery,()=>st(X.apiDiscoveryManualOverride,{provider_id:O.provider_id,model_id:O.model_id,dialect:O.dialect,status:D,capabilities:O.capabilities}))}function Gt(){const O=Se.value;return O?Z(t.matchWardrobe,async()=>(te.value=await st(X.wardrobeMatch(O),{tags:["daily"]}),te.value),!1):Promise.resolve()}function ms(){return Z(t.reload,async()=>{var D;const O=await st(X.settingsReload);return h.value={config_path:((D=h.value)==null?void 0:D.config_path)??"***PATH***",config:O.config},O},!1)}function bs(){return Z(t.exportSettings,()=>ue(X.settingsExport),!1)}function ot(){var D,_e;const O=(_e=(D=E.value)==null?void 0:D.items.find(o=>{var a;return(a=o.image_uri)==null?void 0:a.startsWith("storage://")}))==null?void 0:_e.image_uri;return O?Z(t.signMaterial,async()=>(H.value=await ue(X.mediaSign,{uri:O}),H.value),!1):(V.value=t.noSignableMaterial,Promise.resolve())}function tt(O=0){return O<1024?`${O} B`:O<1024*1024?`${(O/1024).toFixed(1)} KB`:O<1024*1024*1024?`${(O/1024/1024).toFixed(1)} MB`:`${(O/1024/1024/1024).toFixed(1)} GB`}function mt(O){var D,_e;return((_e=(D=d.value)==null?void 0:D.roots.find(o=>o.uri_prefix===O))==null?void 0:_e.bytes)??0}return(O,D)=>{var _e,o,a,p,y,b,m,C,S,w,v,I,T,A,L,B,q,U,ie,oe;return M(),R("main",Oo,[f("aside",Po,[f("div",Ao,[f("strong",null,g(((_e=i.value)==null?void 0:_e.display_name)??"ImageStudio"),1),f("span",null,g(((o=i.value)==null?void 0:o.dashboard_user)??"AstrBot"),1)]),f("nav",null,[(M(),R(ne,null,xe(s,x=>f("button",{key:x.key,type:"button",class:fs({active:n.value===x.key}),onClick:he=>n.value=x.key},g(x.label),11,Mo)),64))])]),f("section",Ro,[f("header",Io,[f("div",null,[f("h1",null,g(lt.value),1),f("p",null,g(((a=r.value)==null?void 0:a.plugin_status)??"loading")+" / "+g(V.value||t.waiting),1)]),f("div",Do,[f("button",{type:"button",disabled:!!W.value,onClick:et},g(W.value||t.refresh),9,Fo)])]),ae.value?(M(),R("section",Lo,g(ae.value),1)):F.value?(M(),R("section",jo,g(t.loading),1)):(M(),R(ne,{key:2},[n.value==="dashboard"?(M(),R("section",$o,[f("article",null,[f("span",null,g(t.profiles),1),f("strong",null,g(((p=r.value)==null?void 0:p.active_profiles)??0),1)]),f("article",null,[f("span",null,g(t.jobs),1),f("strong",null,g(pt.value),1)]),f("article",null,[f("span",null,g(t.materials),1),f("strong",null,g(((y=E.value)==null?void 0:y.total)??0),1)]),f("article",null,[f("span",null,g(t.storage),1),f("strong",null,g(tt(((b=d.value)==null?void 0:b.total_bytes)??((m=r.value)==null?void 0:m.storage.total_bytes))),1)])])):re("",!0),n.value==="profiles"?(M(),R("section",ko,[f("header",null,[f("h2",null,g(t.profileList),1),f("span",null,g(((C=l.value)==null?void 0:C.total)??0),1)]),f("ul",null,[(M(!0),R(ne,null,xe(((S=l.value)==null?void 0:S.items)??[],x=>(M(),R("li",{key:x.profile_id},[f("div",null,[f("strong",null,g(x.name),1),f("small",null,g(x.profile_id),1)]),f("span",No,g(x.status),1)]))),128)),(w=l.value)!=null&&w.items.length?re("",!0):(M(),R("li",Ho,g(t.emptyProfiles),1))])])):re("",!0),n.value==="materials"?(M(),R("section",Bo,[f("div",Wo,[f("header",null,[f("h2",null,g(t.categories),1),f("span",null,g(_.value.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(_.value,x=>(M(),R("li",{key:x.category_id},[f("div",null,[f("strong",null,g(x.name),1),f("small",null,g(x.category_type),1)]),f("span",null,g(x.sort_order),1)]))),128)),_.value.length?re("",!0):(M(),R("li",Ko,g(t.emptyCategories),1))])]),f("div",Uo,[f("header",null,[f("h2",null,g(t.materialItems),1),f("div",Vo,[f("span",null,g(Ke.value)+" "+g(t.pendingConfirm),1),f("button",{type:"button",disabled:!!W.value,onClick:ot},g(t.signFirstImage),9,qo)])]),f("ul",null,[(M(!0),R(ne,null,xe(((v=E.value)==null?void 0:v.items)??[],x=>(M(),R("li",{key:x.material_id},[f("div",null,[f("strong",null,g(x.display_name),1),f("small",null,g(x.image_uri??t.noImage),1)]),f("span",Jo,g(x.recognition_status),1)]))),128)),(I=E.value)!=null&&I.items.length?re("",!0):(M(),R("li",Go,g(t.emptyMaterials),1))]),H.value?(M(),R("pre",zo,g(JSON.stringify(H.value,null,2)),1)):re("",!0)])])):re("",!0),n.value==="wardrobe"?(M(),R("section",Yo,[f("header",null,[f("h2",null,g(Re.value),1),f("button",{type:"button",disabled:!Se.value||!!W.value,onClick:Gt},g(t.match),9,Xo)]),f("ul",null,[(M(!0),R(ne,null,xe(P.value,x=>(M(),R("li",{key:x.wardrobe_item_id},[f("div",null,[f("strong",null,g(x.wardrobe_category),1),f("small",null,g(x.material_id)+" / "+g(x.tags.join(", ")||t.noTags),1)]),f("span",null,g(x.usage_count),1)]))),128)),P.value.length?re("",!0):(M(),R("li",Zo,g(t.emptyWardrobe),1))]),te.value?(M(),R("pre",Qo,g(JSON.stringify(te.value,null,2)),1)):re("",!0)])):re("",!0),n.value==="jobs"?(M(),R("section",ec,[f("header",null,[f("h2",null,g(t.jobs),1),f("div",tc,[f("button",{type:"button",disabled:!!W.value,onClick:Ve},g(t.moveFailed),9,sc),f("button",{type:"button",disabled:!!W.value,onClick:_t},g(t.retryDead),9,nc)])]),f("ul",null,[(M(!0),R(ne,null,xe(((T=c.value)==null?void 0:T.items)??[],x=>(M(),R("li",{key:x.task_id},[f("div",null,[f("strong",null,g(x.task_id),1),f("small",null,g(x.task_type)+" / "+g(x.progress)+"%",1)]),f("div",ic,[f("span",rc,g(x.status),1),x.status==="failed"?(M(),R("button",{key:0,type:"button",onClick:he=>se(x.task_id)},g(t.retry),9,lc)):re("",!0),x.status==="pending"?(M(),R("button",{key:1,type:"button",onClick:he=>z(x.task_id)},g(t.cancel),9,oc)):re("",!0)])]))),128)),(A=c.value)!=null&&A.items.length?re("",!0):(M(),R("li",cc,g(t.emptyJobs),1))])])):re("",!0),n.value==="discovery"?(M(),R("section",uc,[f("div",ac,[f("header",null,[f("h2",null,g(t.dialects),1),f("button",{type:"button",disabled:!!W.value,onClick:qe},g(t.safeProbe),9,fc)]),f("ul",null,[(M(!0),R(ne,null,xe(K.value,x=>(M(),R("li",{key:x.dialect},[f("div",null,[f("strong",null,g(x.label),1),f("small",null,g(x.capabilities.join(", ")||t.unconfirmed),1)]),f("span",null,g(x.dialect),1)]))),128))])]),f("div",dc,[f("header",null,[f("h2",null,g(t.capabilityProfiles),1),f("span",null,g(j.value.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(j.value,x=>(M(),R("li",{key:x.capability_profile_id},[f("div",null,[f("strong",null,g(x.provider_id)+" / "+g(x.model_id),1),f("small",null,g(x.dialect),1)]),f("div",hc,[f("span",pc,g(x.status),1),f("button",{type:"button",disabled:!!W.value,onClick:he=>ye(x,"confirmed_supported")},g(t.support),9,gc),f("button",{type:"button",disabled:!!W.value,onClick:he=>ye(x,"confirmed_unsupported")},g(t.unsupported),9,_c),f("button",{type:"button",disabled:!!W.value,onClick:he=>ye(x,"unconfirmed")},g(t.unconfirmed),9,mc)])]))),128)),j.value.length?re("",!0):(M(),R("li",bc,g(t.emptyCapabilities),1))])])])):re("",!0),n.value==="logs"?(M(),R("section",vc,[f("div",yc,[f("div",xc,[f("header",null,[f("h2",null,g(t.generationLogs),1),f("span",null,g(k.value.generation.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(k.value.generation,x=>(M(),R("li",{key:x.task_id},[f("div",null,[f("strong",null,g(x.task_id),1),f("small",null,g(x.status)+" / "+g(x.progress)+"%",1)]),f("span",null,g(x.created_at),1)]))),128)),k.value.generation.length?re("",!0):(M(),R("li",wc,g(t.emptyGenerationLogs),1))])]),f("div",Sc,[f("header",null,[f("h2",null,g(t.errorLogs),1),f("span",null,g(k.value.errors.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(k.value.errors,x=>(M(),R("li",{key:`${x.source}-${x.id}`},[f("div",null,[f("strong",null,g(x.source),1),f("small",null,g(x.error_message??t.noErrorDetail),1)]),f("span",Cc,g(x.status),1)]))),128)),k.value.errors.length?re("",!0):(M(),R("li",Tc,g(t.emptyErrors),1))])])]),f("div",Ec,[f("div",Oc,[f("header",null,[f("h2",null,g(t.workflowLogs),1),f("span",null,g(k.value.workflows.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(k.value.workflows,x=>(M(),R("li",{key:x.history_id},[f("div",null,[f("strong",null,g(x.action),1),f("small",null,g(x.title??x.workflow_id),1)]),f("span",null,g(x.branch_name??"main"),1)]))),128)),k.value.workflows.length?re("",!0):(M(),R("li",Pc,g(t.emptyWorkflowLogs),1))])]),f("div",Ac,[f("header",null,[f("h2",null,g(t.integrationLogs),1),f("span",null,g(k.value.integrations.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(k.value.integrations,x=>(M(),R("li",{key:x.integration_log_id},[f("div",null,[f("strong",null,g(x.integration_name),1),f("small",null,g(x.action),1)]),f("span",Mc,g(x.status),1)]))),128)),k.value.integrations.length?re("",!0):(M(),R("li",Rc,g(t.emptyIntegrationLogs),1))])])]),f("div",Ic,[f("header",null,[f("h2",null,g(t.auditLogs),1),f("span",null,g(k.value.audit.length),1)]),f("ul",null,[(M(!0),R(ne,null,xe(k.value.audit,x=>(M(),R("li",{key:x.audit_id},[f("div",null,[f("strong",null,g(x.action),1),f("small",null,g(x.actor_type)+" / "+g(x.target_type)+" / "+g(x.target_id),1)]),f("span",null,g(x.created_at),1)]))),128)),k.value.audit.length?re("",!0):(M(),R("li",Dc,g(t.emptyAuditLogs),1))])])])):re("",!0),n.value==="settings"?(M(),R("section",Fc,[f("div",Lc,[f("button",{type:"button",disabled:!!W.value,onClick:ms},g(t.reload),9,jc),f("button",{type:"button",disabled:!!W.value,onClick:bs},g(t.exportRedacted),9,$c)]),f("div",kc,[(M(!0),R(ne,null,xe(((L=u.value)==null?void 0:L.sections)??[],x=>(M(),R("article",{key:x.key},[f("h2",null,g(x.title),1),f("span",null,g(x.fields.length),1)]))),128))]),f("pre",null,g(JSON.stringify(((B=h.value)==null?void 0:B.config)??{},null,2)),1)])):re("",!0)],64))]),f("aside",Nc,[f("h2",null,g(t.running),1),f("dl",null,[f("div",null,[D[0]||(D[0]=f("dt",null,"Pending",-1)),f("dd",null,g(((q=r.value)==null?void 0:q.queue.pending)??0),1)]),f("div",null,[D[1]||(D[1]=f("dt",null,"Running",-1)),f("dd",null,g(((U=r.value)==null?void 0:U.queue.running)??0),1)]),f("div",null,[D[2]||(D[2]=f("dt",null,"Failed",-1)),f("dd",null,g(((ie=r.value)==null?void 0:ie.queue.failed)??0),1)]),f("div",null,[D[3]||(D[3]=f("dt",null,"Dead",-1)),f("dd",null,g(((oe=r.value)==null?void 0:oe.queue.dead_letter)??0),1)])]),f("h2",null,g(t.storage),1),f("dl",null,[f("div",null,[D[4]||(D[4]=f("dt",null,"Images",-1)),f("dd",null,g(tt(mt("storage://images/"))),1)]),f("div",null,[D[5]||(D[5]=f("dt",null,"Materials",-1)),f("dd",null,g(tt(mt("storage://materials/"))),1)])])])])}}}),Bc=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},Wc=Bc(Hc,[["__scopeId","data-v-7901da59"]]);xo(Wc).mount("#app");