astrbot_plugin_imagestudio/web/assets/index-D3ylcAeI.js

17 行
120 KiB
JavaScript

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