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