astrbot_plugin_imagestudio/web/assets/index-B9Xfpa3T.js

17 行
118 KiB
JavaScript

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