astrbot_plugin_imagestudio/web/assets/index-BujCScST.js

17 行
138 KiB
JavaScript

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