diff --git a/backend/route_registry.py b/backend/route_registry.py index 8290a9d..5ef07a6 100644 --- a/backend/route_registry.py +++ b/backend/route_registry.py @@ -35,6 +35,9 @@ ROUTES: tuple[RouteSpec, ...] = ( RouteSpec("POST", "profiles/{profile_id}/workflows", "backend.routes.workflow_routes.create_profile_workflow", "write"), RouteSpec("GET", "workflows/{workflow_id}", "backend.routes.workflow_routes.get_workflow", "read"), RouteSpec("PUT", "workflows/{workflow_id}", "backend.routes.workflow_routes.update_workflow", "write"), + RouteSpec("POST", "workflows/{workflow_id}/start", "backend.routes.workflow_routes.start_workflow", "write"), + RouteSpec("POST", "workflows/{workflow_id}/cancel", "backend.routes.workflow_routes.cancel_workflow", "write"), + RouteSpec("POST", "workflows/{workflow_id}/archive", "backend.routes.workflow_routes.archive_workflow", "write"), RouteSpec("GET", "workflows/{workflow_id}/nodes", "backend.routes.node_routes.list_workflow_nodes", "read"), RouteSpec("POST", "workflows/{workflow_id}/nodes", "backend.routes.node_routes.create_workflow_node", "write"), RouteSpec("GET", "workflows/{workflow_id}/branches", "backend.routes.branch_routes.list_workflow_branches", "read"), diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 3c6eadd..b61365a 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -6,6 +6,12 @@ export const endpoints = { profiles: "profiles", profile: (profileId: string) => `profiles/${profileId}`, quickProfileDraft: "profiles/quick-draft", + profileWorkflows: (profileId: string) => `profiles/${profileId}/workflows`, + workflow: (workflowId: string) => `workflows/${workflowId}`, + workflowStart: (workflowId: string) => `workflows/${workflowId}/start`, + workflowCancel: (workflowId: string) => `workflows/${workflowId}/cancel`, + workflowArchive: (workflowId: string) => `workflows/${workflowId}/archive`, + workflowNodes: (workflowId: string) => `workflows/${workflowId}/nodes`, jobs: "jobs", jobCancel: (taskId: string) => `jobs/${taskId}/cancel`, jobRetry: (taskId: string) => `jobs/${taskId}/retry`, diff --git a/frontend/shared/types/workflow.ts b/frontend/shared/types/workflow.ts new file mode 100644 index 0000000..ee3b73f --- /dev/null +++ b/frontend/shared/types/workflow.ts @@ -0,0 +1,39 @@ +export interface ProfileWorkflow { + workflow_id: string + profile_id: string + workflow_type: string + display_name: string + mode?: string | null + status: string + current_node_id?: string | null + current_branch: string + session_key?: string | null + metadata: Record + created_at: string + updated_at: string +} + +export interface WorkflowNode { + node_id: string + workflow_id: string + node_key: string + title: string + description?: string | null + step_name?: string | null + node_type: string + status: string + branch_name: string + prompt?: string | null + negative_prompt?: string | null + model_route?: string | null + selected_image_id?: string | null + sort_order: number + metadata: Record + created_at: string + updated_at: string +} + +export interface WorkflowDetail { + workflow: ProfileWorkflow + nodes: WorkflowNode[] +} diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 9f24335..2faf7b1 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -21,8 +21,18 @@ import type { } from "../../shared/types/settings" import type { MediaSignResult, StorageStatus } from "../../shared/types/storage" import type { WardrobeItem, WardrobeMatchResult } from "../../shared/types/wardrobe" +import type { ProfileWorkflow, WorkflowDetail } from "../../shared/types/workflow" -type ViewKey = "dashboard" | "profiles" | "materials" | "wardrobe" | "jobs" | "discovery" | "logs" | "settings" +type ViewKey = + | "dashboard" + | "profiles" + | "workflows" + | "materials" + | "wardrobe" + | "jobs" + | "discovery" + | "logs" + | "settings" const text = { waiting: "\u7b49\u5f85\u64cd\u4f5c", @@ -37,6 +47,7 @@ const text = { create: "\u65b0\u5efa", quickDraft: "\u5feb\u901f\u8349\u7a3f", archive: "\u5f52\u6863", + start: "\u542f\u52a8", recognize: "\u8bc6\u522b", confirm: "\u786e\u8ba4", name: "\u540d\u79f0", @@ -72,6 +83,7 @@ const text = { outfitGenerated: "\u6bcf\u65e5\u7a7f\u642d\u5df2\u751f\u6210", dashboard: "\u8fd0\u884c\u6982\u89c8", profiles: "\u89d2\u8272", + workflows: "\u5de5\u4f5c\u6d41", materials: "\u7d20\u6750\u5e93", wardrobe: "\u89d2\u8272\u8863\u6a71", jobs: "\u4efb\u52a1\u961f\u5217", @@ -82,6 +94,12 @@ const text = { profileCreated: "\u89d2\u8272\u5df2\u521b\u5efa", profileDeleted: "\u89d2\u8272\u5df2\u5220\u9664", emptyProfiles: "\u6682\u65e0\u89d2\u8272", + workflowList: "\u5de5\u4f5c\u6d41\u5217\u8868", + workflowType: "\u5de5\u4f5c\u6d41\u7c7b\u578b", + workflowCreated: "\u5de5\u4f5c\u6d41\u5df2\u521b\u5efa", + emptyWorkflows: "\u6682\u65e0\u5de5\u4f5c\u6d41", + nodes: "\u8282\u70b9", + currentBranch: "\u5f53\u524d\u5206\u652f", materialCategories: "\u7d20\u6750\u5206\u7c7b", materialItems: "\u7d20\u6750\u6761\u76ee", emptyCategories: "\u6682\u65e0\u5206\u7c7b", @@ -142,6 +160,7 @@ const text = { const navItems: Array<{ key: ViewKey; label: string }> = [ { key: "dashboard", label: "\u6982\u89c8" }, { key: "profiles", label: text.profiles }, + { key: "workflows", label: text.workflows }, { key: "materials", label: "\u7d20\u6750" }, { key: "wardrobe", label: "\u8863\u6a71" }, { key: "jobs", label: "\u961f\u5217" }, @@ -154,6 +173,8 @@ const activeView = ref("dashboard") const bootstrap = ref(null) const dashboard = ref(null) const profiles = ref(null) +const workflows = ref([]) +const workflowDetail = ref(null) const jobs = ref(null) const settingsSchema = ref(null) const currentSettings = ref(null) @@ -181,6 +202,10 @@ const profileDraft = ref({ description: "", }) const quickProfileDraft = ref(null) +const workflowDraft = ref({ + display_name: "", + workflow_type: "single_image", +}) const materialDraft = ref({ display_name: "", image_uri: "", @@ -228,6 +253,7 @@ const activeTitle = computed(() => { const titles: Record = { dashboard: text.dashboard, profiles: text.profiles, + workflows: text.workflows, materials: text.materials, wardrobe: text.wardrobe, jobs: text.jobs, @@ -282,6 +308,7 @@ async function load() { dialects.value = dialectData capabilities.value = capabilityData await loadWardrobe(profileData.items[0]?.profile_id) + await loadWorkflows(profileData.items[0]?.profile_id) await loadLogs() } catch (err) { error.value = err instanceof Error ? err.message : text.loadFailed @@ -319,6 +346,28 @@ async function loadWardrobe(profileId?: string) { wardrobe.value = await getJson(endpoints.wardrobe(profileId)) } +async function loadWorkflows(profileId?: string) { + if (!profileId) { + workflows.value = [] + workflowDetail.value = null + return + } + workflows.value = await getJson(endpoints.profileWorkflows(profileId)) + const retainedWorkflowId = workflowDetail.value?.workflow.workflow_id + const workflowId = workflows.value.some((workflow) => workflow.workflow_id === retainedWorkflowId) + ? retainedWorkflowId + : workflows.value[0]?.workflow_id + if (workflowId) { + await loadWorkflowDetail(workflowId) + } else { + workflowDetail.value = null + } +} + +async function loadWorkflowDetail(workflowId: string) { + workflowDetail.value = await getJson(endpoints.workflow(workflowId)) +} + async function runOperation(label: string, action: () => Promise, refresh = true) { busy.value = label error.value = "" @@ -414,6 +463,36 @@ function deleteProfile(profileId: string) { ) } +function createWorkflow() { + const profileId = selectedProfileId.value + if (!profileId) return Promise.resolve() + return runOperation( + text.create, + async () => { + const workflow = await postJson(endpoints.profileWorkflows(profileId), { + display_name: workflowDraft.value.display_name, + workflow_type: workflowDraft.value.workflow_type, + }) + workflowDraft.value.display_name = "" + workflowDetail.value = workflow + lastOperation.value = text.workflowCreated + return workflow + }, + ) +} + +function startWorkflow(workflowId: string) { + return runOperation(text.start, () => postJson(endpoints.workflowStart(workflowId))) +} + +function cancelWorkflow(workflowId: string) { + return runOperation(text.cancel, () => postJson(endpoints.workflowCancel(workflowId))) +} + +function archiveWorkflow(workflowId: string) { + return runOperation(text.archive, () => postJson(endpoints.workflowArchive(workflowId))) +} + function moveFailedJobs() { return runOperation(text.moveFailed, () => postJson(endpoints.jobDeadLetterMoveFailed, { limit: 20 })) } @@ -829,6 +908,81 @@ function storageRootBytes(uriPrefix: string) { +
+
+
+

{{ selectedProfileName }}

+ {{ workflows.length }} +
+
+ + + +
+
    +
  • +
    + {{ workflow.display_name }} + {{ workflow.workflow_type }} / {{ workflow.workflow_id }} +
    +
    + {{ workflow.status }} + + + + +
    +
  • +
  • {{ text.emptyWorkflows }}
  • +
+
+
+
+

{{ text.nodes }}

+ {{ workflowDetail?.workflow.current_branch ?? "main" }} +
+
    +
  • +
    + {{ node.title }} + {{ node.node_key }} / {{ node.node_id }} +
    +
    + {{ node.branch_name }} + {{ node.status }} +
    +
  • +
  • {{ text.emptyWorkflows }}
  • +
+
{{ JSON.stringify(workflowDetail.workflow, null, 2) }}
+
+
+
diff --git a/pages/imagestudio/assets/index-DxDyhkQX.js b/pages/imagestudio/assets/index-DxDyhkQX.js deleted file mode 100644 index 7ea0aaa..0000000 --- a/pages/imagestudio/assets/index-DxDyhkQX.js +++ /dev/null @@ -1,17 +0,0 @@ -var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var os=(e,t,s)=>Gr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Fs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const q={},nt=[],Ie=()=>{},Ln=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kt=e=>e.startsWith("onUpdate:"),Q=Object.assign,Ds=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Jr=Object.prototype.hasOwnProperty,L=(e,t)=>Jr.call(e,t),M=Array.isArray,rt=e=>Pt(e)==="[object Map]",Hn=e=>Pt(e)==="[object Set]",rn=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",z=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Nn=e=>(B(e)||R(e))&&R(e.then)&&R(e.catch),Bn=Object.prototype.toString,Pt=e=>Bn.call(e),Yr=e=>Pt(e).slice(8,-1),Kn=e=>Pt(e)==="[object Object]",js=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},zr=/-\w/g,be=Xt(e=>e.replace(zr,t=>t.slice(1).toUpperCase())),kr=/\B([A-Z])/g,et=Xt(e=>e.replace(kr,"-$1").toLowerCase()),Un=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ls=Xt(e=>e?`on${Un(e)}`:""),Me=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const Zt=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $s(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ls(e){let t="";if(z(e))t=e;else if(M(e))for(let s=0;s!!(e&&e.__v_isRef===!0),oe=e=>z(e)?e:e==null?"":M(e)||B(e)&&(e.toString===Bn||!R(e.toString))?qn(e)?oe(e.value):JSON.stringify(e,Gn,2):String(e),Gn=(e,t)=>qn(t)?Gn(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[fs(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>fs(s))}:Fe(t)?fs(t):B(t)&&!M(t)&&!Kn(t)?String(t):t,fs=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Z;class ii{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&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(Z===this)Z=this.prevScope;else{let t=Z;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(yt){let t=yt;for(yt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bt;){let t=bt;for(bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function kn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ks(n),li(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ct)||(e.globalVersion=Ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,s=W,n=ye;W=e,ye=!0;try{kn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=s,ye=n,Xn(e),e.flags&=-3}}function Ks(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ks(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const Qn=[];function De(){Qn.push(ye),ye=!1}function je(){const e=Qn.pop();ye=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let Ct=0;class ci{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Us{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(!W||!ye||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new ci(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,er(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=n)}return s}trigger(t){this.version++,Ct++,this.notify(t)}notify(t){Ns();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bs()}}}function er(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)er(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ss=new WeakMap,Ze=Symbol(""),ws=Symbol(""),Tt=Symbol("");function ee(e,t,s){if(ye&&W){let n=Ss.get(e);n||Ss.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Us),r.map=n,r.key=s),r.track()}}function Ne(e,t,s,n,r,i){const o=Ss.get(e);if(!o){Ct++;return}const l=f=>{f&&f.trigger()};if(Ns(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&js(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,w)=>{(w==="length"||w===Tt||!Fe(w)&&w>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Tt)),t){case"add":f?d&&l(o.get("length")):(l(o.get(Ze)),rt(e)&&l(o.get(ws)));break;case"delete":f||(l(o.get(Ze)),rt(e)&&l(o.get(ws)));break;case"set":rt(e)&&l(o.get(Ze));break}}Bs()}function tt(e){const t=$(e);return t===e?t:(ee(t,"iterate",Tt),pe(e)?t:t.map(ve))}function Qt(e){return ee(e=$(e),"iterate",Tt),e}function Ae(e,t){return Ke(e)?lt(Qe(e)?ve(t):t):ve(t)}const fi={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return tt(this).concat(...e.map(t=>M(t)?tt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return $e(this,"every",e,t,void 0,arguments)},filter(e,t){return $e(this,"filter",e,t,s=>s.map(n=>Ae(this,n)),arguments)},find(e,t){return $e(this,"find",e,t,s=>Ae(this,s),arguments)},findIndex(e,t){return $e(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $e(this,"findLast",e,t,s=>Ae(this,s),arguments)},findLastIndex(e,t){return $e(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $e(this,"forEach",e,t,void 0,arguments)},includes(...e){return ds(this,"includes",e)},indexOf(...e){return ds(this,"indexOf",e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ds(this,"lastIndexOf",e)},map(e,t){return $e(this,"map",e,t,void 0,arguments)},pop(){return ht(this,"pop")},push(...e){return ht(this,"push",e)},reduce(e,...t){return cn(this,"reduce",e,t)},reduceRight(e,...t){return cn(this,"reduceRight",e,t)},shift(){return ht(this,"shift")},some(e,t){return $e(this,"some",e,t,void 0,arguments)},splice(...e){return ht(this,"splice",e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ht(this,"unshift",e)},values(){return as(this,"values",e=>Ae(this,e))}};function as(e,t,s){const n=Qt(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function $e(e,t,s,n,r,i){const o=Qt(e),l=o!==e&&!pe(e),f=o[t];if(f!==ui[t]){const p=f.apply(e,i);return l?ve(p):p}let d=s;o!==e&&(l?d=function(p,w){return s.call(this,Ae(e,p),w,e)}:s.length>2&&(d=function(p,w){return s.call(this,p,w,e)}));const a=f.call(o,d,n);return l&&r?r(a):a}function cn(e,t,s,n){const r=Qt(e),i=r!==e&&!pe(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Ae(e,d)),s.call(this,d,Ae(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const f=r[t](o,...n);return l?Ae(e,f):f}function ds(e,t,s){const n=$(e);ee(n,"iterate",Tt);const r=n[t](...s);return(r===-1||r===!1)&&Gs(s[0])?(s[0]=$(s[0]),n[t](...s)):r}function ht(e,t,s=[]){De(),Ns();const n=$(e)[t].apply(e,s);return Bs(),je(),n}const ai=Fs("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fe));function di(e){Fe(e)||(e=String(e));const t=$(this);return ee(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Si:or:i?ir:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=fi[s]))return f;if(s==="hasOwnProperty")return di}const l=Reflect.get(t,s,te(t)?t:n);if((Fe(s)?tr.has(s):ai(s))||(r||ee(t,"get",s),i))return l;if(te(l)){const f=o&&js(s)?l:l.value;return r&&B(f)?Ts(f):f}return B(l)?r?Ts(l):Ws(l):l}}class nr extends sr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&js(s);if(!this._isShallow){const d=Ke(i);if(!pe(n)&&!Ke(n)&&(i=$(i),n=$(n)),!o&&te(i)&&!te(n))return d||(i.value=n),!0}const l=o?Number(s)e,$t=e=>Reflect.getPrototypeOf(e);function mi(e,t,s){return function(...n){const r=this.__v_raw,i=$(r),o=rt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...n),a=s?Cs:t?lt:ve;return!t&&ee(i,"iterate",f?ws:Ze),Q(Object.create(d),{next(){const{value:p,done:w}=d.next();return w?{value:p,done:w}:{value:l?[a(p[0]),a(p[1])]:a(p),done:w}}})}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,o=$(i),l=$(r);e||(Me(r,l)&&ee(o,"get",r),ee(o,"get",l));const{has:f}=$t(o),d=t?Cs:e?lt:ve;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ee($(r),"iterate",Ze),r.size},has(r){const i=this.__v_raw,o=$(i),l=$(r);return e||(Me(r,l)&&ee(o,"has",r),ee(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=$(l),d=t?Cs:e?lt:ve;return!e&&ee(f,"iterate",Ze),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Q(s,e?{add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear")}:{add(r){const i=$(this),o=$t(i),l=$(r),f=!t&&!pe(r)&&!Ke(r)?l:r;return o.has.call(i,f)||Me(r,f)&&o.has.call(i,r)||Me(l,f)&&o.has.call(i,l)||(i.add(f),Ne(i,"add",f,f)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=$(i));const o=$(this),{has:l,get:f}=$t(o);let d=l.call(o,r);d||(r=$(r),d=l.call(o,r));const a=f.call(o,r);return o.set(r,i),d?Me(i,a)&&Ne(o,"set",r,i):Ne(o,"add",r,i),this},delete(r){const i=$(this),{has:o,get:l}=$t(i);let f=o.call(i,r);f||(r=$(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&Ne(i,"delete",r,void 0),d},clear(){const r=$(this),i=r.size!==0,o=r.clear();return i&&Ne(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=mi(r,e,t)}),s}function Vs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(L(s,r)&&r in n?s:n,r,i)}const yi={get:Vs(!1,!1)},vi={get:Vs(!1,!0)},xi={get:Vs(!0,!1)};const rr=new WeakMap,ir=new WeakMap,or=new WeakMap,Si=new WeakMap;function wi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Ke(e)?e:qs(e,!1,pi,yi,rr)}function Ci(e){return qs(e,!1,_i,vi,ir)}function Ts(e){return qs(e,!0,gi,xi,or)}function qs(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=wi(Yr(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function Qe(e){return Ke(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function Gs(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function Ti(e){return!L(e,"__v_skip")&&Object.isExtensible(e)&&Vn(e,"__v_skip",!0),e}const ve=e=>B(e)?Ws(e):e,lt=e=>B(e)?Ts(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Ht(e){return Ei(e,!1)}function Ei(e,t){return te(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new Us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ke(t);t=n?t:$(t),Me(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return te(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return te(r)&&!te(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function lr(e){return Qe(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return zn(this,!0),!0}get value(){const t=this.dep.track();return Zn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ri(e,t,s=!1){let n,r;return R(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const Nt={},Ut=new WeakMap;let Xe;function Ii(e,t=!1,s=Xe){if(s){let n=Ut.get(s);n||Ut.set(s,n=[]),n.push(e)}}function Fi(e,t,s=q){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,d=O=>r?O:pe(O)||r===!1||r===0?We(O,1):We(O);let a,p,w,C,j=!1,A=!1;if(te(e)?(p=()=>e.value,j=pe(e)):Qe(e)?(p=()=>d(e),j=!0):M(e)?(A=!0,j=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(te(O))return O.value;if(Qe(O))return d(O);if(R(O))return f?f(O,2):O()})):R(e)?t?p=f?()=>f(e,2):e:p=()=>{if(w){De();try{w()}finally{je()}}const O=Xe;Xe=a;try{return f?f(e,3,[C]):e(C)}finally{Xe=O}}:p=Ie,t&&r){const O=p,Y=r===!0?1/0:r;p=()=>We(O(),Y)}const G=oi(),K=()=>{a.stop(),G&&G.active&&Ds(G.effects,a)};if(i&&t){const O=t;t=(...Y)=>{const ce=O(...Y);return K(),ce}}let I=A?new Array(e.length).fill(Nt):Nt;const H=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const Y=a.run();if(O||r||j||(A?Y.some((ce,fe)=>Me(ce,I[fe])):Me(Y,I))){w&&w();const ce=Xe;Xe=a;try{const fe=[Y,I===Nt?void 0:A&&I[0]===Nt?[]:I,C];I=Y,f?f(t,3,fe):t(...fe)}finally{Xe=ce}}}else a.run()};return l&&l(H),a=new Jn(p),a.scheduler=o?()=>o(H,!1):H,C=O=>Ii(O,!1,a),w=a.onStop=()=>{const O=Ut.get(a);if(O){if(f)f(O,4);else for(const Y of O)Y();Ut.delete(a)}},t?n?H(!0):I=a.run():o?o(H.bind(null,!0),!0):a.run(),K.pause=a.pause.bind(a),K.resume=a.resume.bind(a),K.stop=K,K}function We(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,te(e))We(e.value,t,s);else if(M(e))for(let n=0;n{We(n,t,s)});else if(Kn(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){es(r,t,s)}}function xe(e,t,s,n){if(R(e)){const r=Mt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{es(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=re[n],i=Et(r);i=Et(s)?re.push(e):re.splice($i(t),0,e),e.flags|=1,fr()}}function fr(){Vt||(Vt=cr.then(ar))}function Li(e){M(e)?it.push(...e):Ve&&e.id===-1?Ve.splice(st+1,0,e):e.flags&1||(it.push(e),e.flags|=1),fr()}function fn(e,t,s=Oe+1){for(;sEt(s)-Et(n));if(it.length=0,Ve){Ve.push(...t);return}for(Ve=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function ar(e){try{for(Oe=0;Oe{n._d&&xn(-1);const i=Wt(t);let o;try{o=e(...r)}finally{Wt(i),n._d&&xn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ze(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o1)return s&&R(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Bt(Bi);function hs(e,t,s){return hr(e,t,s)}function hr(e,t,s=q){const{immediate:n,deep:r,flush:i,once:o}=s,l=Q({},s),f=t&&n||!t&&i!=="post";let d;if(At){if(i==="sync"){const C=Ki();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Ie,C.resume=Ie,C.pause=Ie,C}}const a=ie;l.call=(C,j,A)=>xe(C,a,j,A);let p=!1;i==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,j)=>{j?C():Js(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Fi(e,t,l);return At&&(d?d.push(w):f&&w()),w}function Ui(e,t,s){const n=this.proxy,r=z(e)?e.includes(".")?pr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=Rt(this),l=hr(r,i.bind(n),s);return o(),l}function pr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Ys(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ys(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 qi(e,t){return R(e)?Q({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function un(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const qt=new WeakMap;function vt(e,t,s,n,r=!1){if(M(e)){e.forEach((A,G)=>vt(A,t&&(M(t)?t[G]:t),s,n,r));return}if(xt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Xs(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===q?l.refs={}:l.refs,p=l.setupState,w=$(p),C=p===q?Ln:A=>un(a,A)?!1:L(w,A),j=(A,G)=>!(G&&un(a,G));if(d!=null&&d!==f){if(an(t),z(d))a[d]=null,C(d)&&(p[d]=null);else if(te(d)){const A=t;j(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(f)){De();try{Mt(f,l,12,[o,a])}finally{je()}}else{const A=z(f),G=te(f);if(A||G){const K=()=>{if(e.f){const I=A?C(f)?p[f]:a[f]:j()||!e.k?f.value:a[e.k];if(r)M(I)&&Ds(I,i);else if(M(I))I.includes(i)||I.push(i);else if(A)a[f]=[i],C(f)&&(p[f]=a[f]);else{const H=[i];j(f,e.k)&&(f.value=H),e.k&&(a[e.k]=H)}}else A?(a[f]=o,C(f)&&(p[f]=o)):G&&(j(f,e.k)&&(f.value=o),e.k&&(a[e.k]=o))};if(o){const I=()=>{K(),qt.delete(e)};I.id=-1,qt.set(e,I),le(I,s)}else an(e),K()}}}function an(e){const t=qt.get(e);t&&(t.flags|=8,qt.delete(e))}Zt().requestIdleCallback;Zt().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,_r=e=>e.type.__isKeepAlive;function Gi(e,t){mr(e,"a",t)}function Ji(e,t){mr(e,"da",t)}function mr(e,t,s=ie){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)_r(r.parent.vnode)&&Yi(n,t,s,r),r=r.parent}}function Yi(e,t,s,n){const r=ts(t,e,n,!0);yr(()=>{Ds(n[t],r)},s)}function ts(e,t,s=ie,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{De();const l=Rt(s),f=xe(t,s,e,o);return l(),je(),f});return n?r.unshift(i):r.push(i),i}}const Ue=e=>(t,s=ie)=>{(!At||e==="sp")&&ts(e,(...n)=>t(...n),s)},zi=Ue("bm"),br=Ue("m"),ki=Ue("bu"),Xi=Ue("u"),Zi=Ue("bum"),yr=Ue("um"),Qi=Ue("sp"),eo=Ue("rtg"),to=Ue("rtc");function so(e,t=ie){ts("ec",e,t)}const no=Symbol.for("v-ndc");function dn(e,t,s,n){let r;const i=s,o=M(e);if(o||z(e)){const l=o&&Qe(e);let f=!1,d=!1;l&&(f=!pe(e),d=Ke(e),e=Qt(e)),r=new Array(e.length);for(let a=0,p=e.length;at(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;fe?Br(e)?Xs(e):Es(e.parent):null,St=Q(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=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xr(e),$forceUpdate:e=>e.f||(e.f=()=>{Js(e.update)}),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Ui.bind(e)}),gs=(e,t)=>e!==q&&!e.__isScriptSetup&&L(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const w=o[t];if(w!==void 0)switch(w){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(gs(n,t))return o[t]=1,n[t];if(r!==q&&L(r,t))return o[t]=2,r[t];if(L(i,t))return o[t]=3,i[t];if(s!==q&&L(s,t))return o[t]=4,s[t];Os&&(o[t]=0)}}const d=St[t];let a,p;if(d)return t==="$attrs"&&ee(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==q&&L(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,L(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=s,!0):n!==q&&L(n,t)?(n[t]=s,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==q&&l[0]!=="$"&&L(e,l)||gs(t,l)||L(i,l)||L(n,l)||L(St,l)||L(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:L(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function hn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Os=!0;function io(e){const t=xr(e),s=e.proxy,n=e.ctx;Os=!1,t.beforeCreate&&pn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:a,beforeMount:p,mounted:w,beforeUpdate:C,updated:j,activated:A,deactivated:G,beforeDestroy:K,beforeUnmount:I,destroyed:H,unmounted:O,render:Y,renderTracked:ce,renderTriggered:fe,errorCaptured:ge,serverPrefetch:de,expose:Ge,inheritAttrs:ft,components:It,directives:Ft,filters:rs}=t;if(d&&oo(d,n,null),o)for(const J in o){const V=o[J];R(V)&&(n[J]=V.bind(s))}if(r){const J=r.call(s,s);B(J)&&(e.data=Ws(J))}if(Os=!0,i)for(const J in i){const V=i[J],Je=R(V)?V.bind(s,s):R(V.get)?V.get.bind(s,s):Ie,Dt=!R(V)&&R(V.set)?V.set.bind(s):Ie,Ye=Rs({get:Je,set:Dt});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Se=>Ye.value=Se})}if(l)for(const J in l)vr(l[J],n,s,J);if(f){const J=R(f)?f.call(s):f;Reflect.ownKeys(J).forEach(V=>{Ni(V,J[V])})}a&&pn(a,e,"c");function se(J,V){M(V)?V.forEach(Je=>J(Je.bind(s))):V&&J(V.bind(s))}if(se(zi,p),se(br,w),se(ki,C),se(Xi,j),se(Gi,A),se(Ji,G),se(so,ge),se(to,ce),se(eo,fe),se(Zi,I),se(yr,O),se(Qi,de),M(Ge))if(Ge.length){const J=e.exposed||(e.exposed={});Ge.forEach(V=>{Object.defineProperty(J,V,{get:()=>s[V],set:Je=>s[V]=Je,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Ie&&(e.render=Y),ft!=null&&(e.inheritAttrs=ft),It&&(e.components=It),Ft&&(e.directives=Ft),de&&gr(e)}function oo(e,t,s=Ie){M(e)&&(e=As(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Bt(r.from||n,r.default,!0):i=Bt(r.from||n):i=Bt(r),te(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function pn(e,t,s){xe(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?pr(s,n):()=>s[n];if(z(e)){const i=t[e];R(i)&&hs(r,i)}else if(R(e))hs(r,e.bind(s));else if(B(e))if(M(e))e.forEach(i=>vr(i,t,s,n));else{const i=R(e.handler)?e.handler.bind(s):t[e.handler];R(i)&&hs(r,i,e)}}function xr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>Gt(f,d,o,!0)),Gt(f,t,o)),B(t)&&i.set(t,f),f}function Gt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Gt(e,i,s,!0),r&&r.forEach(o=>Gt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=lo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const lo={data:gn,props:_n,emits:_n,methods:gt,computed:gt,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:gt,directives:gt,watch:fo,provide:gn,inject:co};function gn(e,t){return t?e?function(){return Q(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function co(e,t){return gt(As(e),As(t))}function As(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${et(t)}Modifiers`];function po(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||q;let r=s;const i=t.startsWith("update:"),o=i&&ho(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>z(a)?a.trim():a)),o.number&&(r=s.map(Xr)));let l,f=n[l=ls(t)]||n[l=ls(be(t))];!f&&i&&(f=n[l=ls(et(t))]),f&&xe(f,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(d,e,6,r)}}const go=new WeakMap;function wr(e,t,s=!1){const n=s?go:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const f=d=>{const a=wr(d,t,!0);a&&(l=!0,Q(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(B(e)&&n.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):Q(o,i),B(e)&&n.set(e,o),o)}function ss(e,t){return!e||!zt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,et(t))||L(e,t))}function mn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:a,props:p,data:w,setupState:C,ctx:j,inheritAttrs:A}=e,G=Wt(e);let K,I;try{if(s.shapeFlag&4){const O=r||n,Y=O;K=Pe(d.call(Y,O,a,p,C,w,j)),I=l}else{const O=t;K=Pe(O.length>1?O(p,{attrs:l,slots:o,emit:f}):O(p,null)),I=t.props?l:_o(l)}}catch(O){wt.length=0,es(O,e,1),K=Be(qe)}let H=K;if(I&&A!==!1){const O=Object.keys(I),{shapeFlag:Y}=H;O.length&&Y&7&&(i&&O.some(kt)&&(I=mo(I,i)),H=ct(H,I,!1,!0))}return s.dirs&&(H=ct(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&Ys(H,s.transition),K=H,Wt(G),K}const _o=e=>{let t;for(const s in e)(s==="class"||s==="style"||zt(s))&&((t||(t={}))[s]=e[s]);return t},mo=(e,t)=>{const s={};for(const n in e)(!kt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function bo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?bn(n,o,d):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;pObject.create(Tr),Or=e=>Object.getPrototypeOf(e)===Tr;function vo(e,t,s,n=!1){const r={},i=Er();e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=$(r),[f]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{f=!0;const[w,C]=Pr(p,t,!0);Q(o,w),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return B(e)&&n.set(e,nt),nt;if(M(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",ks=e=>M(e)?e.map(Pe):[Pe(e)],wo=(e,t,s)=>{if(t._n)return t;const n=Hi((...r)=>ks(t(...r)),s);return n._c=!1,n},Mr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(zs(r))continue;const i=e[r];if(R(i))t[r]=wo(r,i,n);else if(i!=null){const o=ks(i);t[r]=()=>o}}},Rr=(e,t)=>{const s=ks(t);e.slots.default=()=>s},Ir=(e,t,s)=>{for(const n in t)(s||!zs(n))&&(e[n]=t[n])},Co=(e,t,s)=>{const n=e.slots=Er();if(e.vnode.shapeFlag&32){const r=t._;r?(Ir(n,t,s),s&&Vn(n,"_",r,!0)):Mr(t,n)}else t&&Rr(e,t)},To=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=q;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Ir(r,t,s):(i=!t.$stable,Mr(t,r)),o=t}else t&&(Rr(e,t),o={default:1});if(i)for(const l in r)!zs(l)&&o[l]==null&&delete r[l]},le=Mo;function Eo(e){return Oo(e)}function Oo(e,t){const s=Zt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:a,parentNode:p,nextSibling:w,setScopeId:C=Ie,insertStaticContent:j}=e,A=(c,u,h,b=null,m=null,g=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(c===u)return;c&&!pt(c,u)&&(b=jt(c),Se(c,m,g,!0),c=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:_,ref:E,shapeFlag:S}=u;switch(_){case ns:G(c,u,h,b);break;case qe:K(c,u,h,b);break;case ms:c==null&&I(u,h,b,x);break;case me:It(c,u,h,b,m,g,x,v,y);break;default:S&1?Y(c,u,h,b,m,g,x,v,y):S&6?Ft(c,u,h,b,m,g,x,v,y):(S&64||S&128)&&_.process(c,u,h,b,m,g,x,v,y,at)}E!=null&&m?vt(E,c&&c.ref,g,u||c,!u):E==null&&c&&c.ref!=null&&vt(c.ref,null,g,c,!0)},G=(c,u,h,b)=>{if(c==null)n(u.el=l(u.children),h,b);else{const m=u.el=c.el;u.children!==c.children&&d(m,u.children)}},K=(c,u,h,b)=>{c==null?n(u.el=f(u.children||""),h,b):u.el=c.el},I=(c,u,h,b)=>{[c.el,c.anchor]=j(c.children,u,h,b,c.el,c.anchor)},H=({el:c,anchor:u},h,b)=>{let m;for(;c&&c!==u;)m=w(c),n(c,h,b),c=m;n(u,h,b)},O=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=w(c),r(c),c=h;r(u)},Y=(c,u,h,b,m,g,x,v,y)=>{if(u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),c==null)ce(u,h,b,m,g,x,v,y);else{const _=c.el&&c.el._isVueCE?c.el:null;try{_&&_._beginPatch(),de(c,u,m,g,x,v,y)}finally{_&&_._endPatch()}}},ce=(c,u,h,b,m,g,x,v)=>{let y,_;const{props:E,shapeFlag:S,transition:T,dirs:P}=c;if(y=c.el=o(c.type,g,E&&E.is,E),S&8?a(y,c.children):S&16&&ge(c.children,y,null,b,m,_s(c,g),x,v),P&&ze(c,null,b,"created"),fe(y,c,c.scopeId,x,b),E){for(const U in E)U!=="value"&&!mt(U)&&i(y,U,null,E[U],g,b);"value"in E&&i(y,"value",null,E.value,g),(_=E.onVnodeBeforeMount)&&Ee(_,b,c)}P&&ze(c,null,b,"beforeMount");const D=Ao(m,T);D&&T.beforeEnter(y),n(y,u,h),((_=E&&E.onVnodeMounted)||D||P)&&le(()=>{try{_&&Ee(_,b,c),D&&T.enter(y),P&&ze(c,null,b,"mounted")}finally{}},m)},fe=(c,u,h,b,m)=>{if(h&&C(c,h),b)for(let g=0;g{for(let _=y;_{const v=u.el=c.el;let{patchFlag:y,dynamicChildren:_,dirs:E}=u;y|=c.patchFlag&16;const S=c.props||q,T=u.props||q;let P;if(h&&ke(h,!1),(P=T.onVnodeBeforeUpdate)&&Ee(P,h,u,c),E&&ze(u,c,h,"beforeUpdate"),h&&ke(h,!0),_&&(!c.dynamicChildren||c.dynamicChildren.length!==_.length)&&(y=0,x=!1,_=null),(S.innerHTML&&T.innerHTML==null||S.textContent&&T.textContent==null)&&a(v,""),_?Ge(c.dynamicChildren,_,v,h,b,_s(u,m),g):x||V(c,u,v,null,h,b,_s(u,m),g,!1),y>0){if(y&16)ft(v,S,T,h,m);else if(y&2&&S.class!==T.class&&i(v,"class",null,T.class,m),y&4&&i(v,"style",S.style,T.style,m),y&8){const D=u.dynamicProps;for(let U=0;U{P&&Ee(P,h,u,c),E&&ze(u,c,h,"updated")},b)},Ge=(c,u,h,b,m,g,x)=>{for(let v=0;v{if(u!==h){if(u!==q)for(const g in u)!mt(g)&&!(g in h)&&i(c,g,u[g],null,m,b);for(const g in h){if(mt(g))continue;const x=h[g],v=u[g];x!==v&&g!=="value"&&i(c,g,v,x,m,b)}"value"in h&&i(c,"value",u.value,h.value,m)}},It=(c,u,h,b,m,g,x,v,y)=>{const _=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:S,dynamicChildren:T,slotScopeIds:P}=u;P&&(v=v?v.concat(P):P),c==null?(n(_,h,b),n(E,h,b),ge(u.children||[],h,E,m,g,x,v,y)):S>0&&S&64&&T&&c.dynamicChildren&&c.dynamicChildren.length===T.length?(Ge(c.dynamicChildren,T,h,m,g,x,v),(u.key!=null||m&&u===m.subTree)&&Fr(c,u,!0)):V(c,u,h,E,m,g,x,v,y)},Ft=(c,u,h,b,m,g,x,v,y)=>{u.slotScopeIds=v,c==null?u.shapeFlag&512?m.ctx.activate(u,h,b,x,y):rs(u,h,b,m,g,x,y):Zs(c,u,y)},rs=(c,u,h,b,m,g,x)=>{const v=c.component=No(c,b,m);if(_r(c)&&(v.ctx.renderer=at),Ko(v,!1,x),v.asyncDep){if(m&&m.registerDep(v,se,x),!c.el){const y=v.subTree=Be(qe);K(null,y,u,h),c.placeholder=y.el}}else se(v,c,u,h,m,g,x)},Zs=(c,u,h)=>{const b=u.component=c.component;if(bo(c,u,h))if(b.asyncDep&&!b.asyncResolved){J(b,u,h);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},se=(c,u,h,b,m,g,x)=>{const v=()=>{if(c.isMounted){let{next:S,bu:T,u:P,parent:D,vnode:U}=c;{const Ce=Dr(c);if(Ce){S&&(S.el=U.el,J(c,S,x)),Ce.asyncDep.then(()=>{le(()=>{c.isUnmounted||_()},m)});return}}let N=S,k;ke(c,!1),S?(S.el=U.el,J(c,S,x)):S=U,T&&cs(T),(k=S.props&&S.props.onVnodeBeforeUpdate)&&Ee(k,D,S,U),ke(c,!0);const X=mn(c),we=c.subTree;c.subTree=X,A(we,X,p(we.el),jt(we),c,m,g),S.el=X.el,N===null&&yo(c,X.el),P&&le(P,m),(k=S.props&&S.props.onVnodeUpdated)&&le(()=>Ee(k,D,S,U),m)}else{let S;const{el:T,props:P}=u,{bm:D,m:U,parent:N,root:k,type:X}=c,we=xt(u);ke(c,!1),D&&cs(D),!we&&(S=P&&P.onVnodeBeforeMount)&&Ee(S,N,u),ke(c,!0);{k.ce&&k.ce._hasShadowRoot()&&k.ce._injectChildStyle(X,c.parent?c.parent.type:void 0);const Ce=c.subTree=mn(c);A(null,Ce,h,b,c,m,g),u.el=Ce.el}if(U&&le(U,m),!we&&(S=P&&P.onVnodeMounted)){const Ce=u;le(()=>Ee(S,N,Ce),m)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&c.a&&le(c.a,m),c.isMounted=!0,u=h=b=null}};c.scope.on();const y=c.effect=new Jn(v);c.scope.off();const _=c.update=y.run.bind(y),E=c.job=y.runIfDirty.bind(y);E.i=c,E.id=c.uid,y.scheduler=()=>Js(E),ke(c,!0),_()},J=(c,u,h)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,xo(c,u.props,b,h),To(c,u.children,h),De(),fn(c),je()},V=(c,u,h,b,m,g,x,v,y=!1)=>{const _=c&&c.children,E=c?c.shapeFlag:0,S=u.children,{patchFlag:T,shapeFlag:P}=u;if(T>0){if(T&128){Dt(_,S,h,b,m,g,x,v,y);return}else if(T&256){Je(_,S,h,b,m,g,x,v,y);return}}P&8?(E&16&&ut(_,m,g),S!==_&&a(h,S)):E&16?P&16?Dt(_,S,h,b,m,g,x,v,y):ut(_,m,g,!0):(E&8&&a(h,""),P&16&&ge(S,h,b,m,g,x,v,y))},Je=(c,u,h,b,m,g,x,v,y)=>{c=c||nt,u=u||nt;const _=c.length,E=u.length,S=Math.min(_,E);let T;for(T=0;TE?ut(c,m,g,!0,!1,S):ge(u,h,b,m,g,x,v,y,S)},Dt=(c,u,h,b,m,g,x,v,y)=>{let _=0;const E=u.length;let S=c.length-1,T=E-1;for(;_<=S&&_<=T;){const P=c[_],D=u[_]=y?He(u[_]):Pe(u[_]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;_++}for(;_<=S&&_<=T;){const P=c[S],D=u[T]=y?He(u[T]):Pe(u[T]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;S--,T--}if(_>S){if(_<=T){const P=T+1,D=PT)for(;_<=S;)Se(c[_],m,g,!0),_++;else{const P=_,D=_,U=new Map;for(_=D;_<=T;_++){const ue=u[_]=y?He(u[_]):Pe(u[_]);ue.key!=null&&U.set(ue.key,_)}let N,k=0;const X=T-D+1;let we=!1,Ce=0;const dt=new Array(X);for(_=0;_=X){Se(ue,m,g,!0);continue}let Te;if(ue.key!=null)Te=U.get(ue.key);else for(N=D;N<=T;N++)if(dt[N-D]===0&&pt(ue,u[N])){Te=N;break}Te===void 0?Se(ue,m,g,!0):(dt[Te-D]=_+1,Te>=Ce?Ce=Te:we=!0,A(ue,u[Te],h,null,m,g,x,v,y),k++)}const tn=we?Po(dt):nt;for(N=tn.length-1,_=X-1;_>=0;_--){const ue=D+_,Te=u[ue],sn=u[ue+1],nn=ue+1{const{el:g,type:x,transition:v,children:y,shapeFlag:_}=c;if(_&6){Ye(c.component.subTree,u,h,b);return}if(_&128){c.suspense.move(u,h,b);return}if(_&64){x.move(c,u,h,at);return}if(x===me){n(g,u,h);for(let S=0;Sv.enter(g),m));else{const{leave:S,delayLeave:T,afterLeave:P}=v,D=()=>{c.ctx.isUnmounted?r(g):n(g,u,h)},U=()=>{const N=g._isLeaving||!!g[ps];g._isLeaving&&g[ps](!0),v.persisted&&!N?D():S(g,()=>{D(),P&&P()})};T?T(g,D,U):U()}else n(g,u,h)},Se=(c,u,h,b=!1,m=!1)=>{const{type:g,props:x,ref:v,children:y,dynamicChildren:_,shapeFlag:E,patchFlag:S,dirs:T,cacheIndex:P,memo:D}=c;if(S===-2&&(m=!1),v!=null&&(De(),vt(v,null,h,c,!0),je()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(c);return}const U=E&1&&T,N=!xt(c);let k;if(N&&(k=x&&x.onVnodeBeforeUnmount)&&Ee(k,u,c),E&6)Wr(c.component,h,b);else{if(E&128){c.suspense.unmount(h,b);return}U&&ze(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,at,b):_&&!_.hasOnce&&(g!==me||S>0&&S&64)?ut(_,u,h,!1,!0):(g===me&&S&384||!m&&E&16)&&ut(y,u,h),b&&Qs(c)}const X=D!=null&&P==null;(N&&(k=x&&x.onVnodeUnmounted)||U||X)&&le(()=>{k&&Ee(k,u,c),U&&ze(c,null,u,"unmounted"),X&&(c.el=null)},h)},Qs=c=>{const{type:u,el:h,anchor:b,transition:m}=c;if(u===me){Vr(h,b);return}if(u===ms){O(c);return}const g=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:x,delayLeave:v}=m,y=()=>x(h,g);v?v(c.el,g,y):y()}else g()},Vr=(c,u)=>{let h;for(;c!==u;)h=w(c),r(c),c=h;r(u)},Wr=(c,u,h)=>{const{bum:b,scope:m,job:g,subTree:x,um:v,m:y,a:_}=c;vn(y),vn(_),b&&cs(b),m.stop(),g&&(g.flags|=8,Se(x,c,u,h)),v&&le(v,u),le(()=>{c.isUnmounted=!0},u)},ut=(c,u,h,b=!1,m=!1,g=0)=>{for(let x=g;x{if(c.shapeFlag&6)return jt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=w(c.anchor||c.el),h=u&&u[Vi];return h?w(h):u};let is=!1;const en=(c,u,h)=>{let b;c==null?u._vnode&&(Se(u._vnode,null,null,!0),b=u._vnode.component):A(u._vnode||null,c,u,null,null,null,h),u._vnode=c,is||(is=!0,fn(b),ur(),is=!1)},at={p:A,um:Se,m:Ye,r:Qs,mt:rs,mc:ge,pc:V,pbc:Ge,n:jt,o:e};return{render:en,hydrate:void 0,createApp:ao(en)}}function _s({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ke({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ao(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fr(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i>1,e[s[l]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Dr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dr(t)}function vn(e){if(e)for(let t=0;te.__isSuspense;function Mo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Li(e)}const me=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),ms=Symbol.for("v-stc"),wt=[];let ae=null;function he(e=!1){wt.push(ae=e?null:[])}function Ro(){wt.pop(),ae=wt[wt.length-1]||null}let Ot=1;function xn(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function Lr(e){return e.dynamicChildren=Ot>0?ae||nt:null,Ro(),Ot>0&&ae&&ae.push(e),e}function _e(e,t,s,n,r,i){return Lr(F(e,t,s,n,r,i,!0))}function Io(e,t,s,n,r){return Lr(Be(e,t,s,n,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function pt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?z(e)||te(e)||R(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function F(e,t=null,s=null,n=0,r=null,i=e===me?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Kt(t),scopeId:dr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Re};return l?(Jt(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=z(s)?8:16),Ot>0&&!o&&ae&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&ae.push(f),f}const Be=Fo;function Fo(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===no)&&(e=qe),Hr(e)){const l=ct(e,t,!0);return s&&Jt(l,s),Ot>0&&!i&&ae&&(l.shapeFlag&6?ae[ae.indexOf(e)]=l:ae.push(l)),l.patchFlag=-2,l}if(qo(e)&&(e=e.__vccOpts),t){t=Do(t);let{class:l,style:f}=t;l&&!z(l)&&(t.class=Ls(l)),B(f)&&(Gs(f)&&!M(f)&&(f=Q({},f)),t.style=$s(f))}const o=z(e)?1:$r(e)?128:Wi(e)?64:B(e)?4:R(e)?2:0;return F(e,t,s,n,r,o,i,!0)}function Do(e){return e?Gs(e)||Or(e)?Q({},e):e:null}function ct(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?$o(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(Kt(t)):[i,Kt(t)]:Kt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&Ys(a,f.clone(a)),a}function jo(e=" ",t=0){return Be(ns,null,e,t)}function bs(e="",t=!1){return t?(he(),Io(qe,null,e)):Be(qe,null,e)}function Pe(e){return e==null||typeof e=="boolean"?Be(qe):M(e)?Be(me,null,e.slice()):Hr(e)?He(e):Be(ns,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function Jt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Jt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Or(t)?t._ctx=Re:r===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(n&65){Jt(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[jo(t)]):s=8;e.children=t,e.shapeFlag|=s}function $o(...e){const t={};for(let s=0;sie||Re;let Yt,Ms;{const e=Zt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Yt=t("__VUE_INSTANCE_SETTERS__",s=>ie=s),Ms=t("__VUE_SSR_SETTERS__",s=>At=s)}const Rt=e=>{const t=ie;return Yt(e),e.scope.on(),()=>{e.scope.off(),Yt(t)}},Sn=()=>{ie&&ie.scope.off(),Yt(null)};function Br(e){return e.vnode.shapeFlag&4}let At=!1;function Ko(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:r}=e.vnode,i=Br(e);vo(e,n,i,t),Co(e,r,s||t);const o=i?Uo(e,t):void 0;return t&&Ms(!1),o}function Uo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){De();const r=e.setupContext=n.length>1?Wo(e):null,i=Rt(e),o=Mt(n,e,0,[e.props,r]),l=Nn(o);if(je(),i(),(l||e.sp)&&!xt(e)&&gr(e),l){if(o.then(Sn,Sn),t)return o.then(f=>{wn(e,f)}).catch(f=>{es(f,e,0)});e.asyncDep=o}else wn(e,o)}else Kr(e)}function wn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=lr(t)),Kr(e)}function Kr(e,t,s){const n=e.type;e.render||(e.render=n.render||Ie);{const r=Rt(e);De();try{io(e)}finally{je(),r()}}}const Vo={get(e,t){return ee(e,"get",""),e[t]}};function Wo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vo),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lr(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in St)return St[s](e)},has(t,s){return s in t||s in St}})):e.proxy}function qo(e){return R(e)&&"__vccOpts"in e}const Rs=(e,t)=>Ri(e,t,At),Go="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),zo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(Jo,e):t==="mathml"?Le.createElementNS(Yo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},ko=Symbol("_vtc");function Xo(e,t,s){const n=e[ko];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!z(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function _t(e,t,s){if(M(s))s.forEach(n=>_t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):zt(t)?kt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fn(t)&&R(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fn(t)&&z(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const _l=Q({patchProp:hl},zo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return z(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",jn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class Sl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function $n(e,t){return wl(e,{method:"GET",query:t})}async function wl(e,t={}){const n=await(await fetch(Cl(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new Sl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},Fl={class:"activity"},Dl={key:0,class:"empty"},jl={key:0,class:"empty"},$l=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([$n(jn.uiBootstrap),$n(jn.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function f(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,w,C,j,A,G,K,I,H,O,Y,ce,fe,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((w=t.value)==null?void 0:w.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((j=s.value)==null?void 0:j.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((G=s.value)==null?void 0:G.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(f((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(Y=(O=s.value)==null?void 0:O.recent_images)!=null&&Y.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",jl,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll($l,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); diff --git a/pages/imagestudio/assets/index-b8CM27h2.js b/pages/imagestudio/assets/index-b8CM27h2.js new file mode 100644 index 0000000..a6fc2c2 --- /dev/null +++ b/pages/imagestudio/assets/index-b8CM27h2.js @@ -0,0 +1,17 @@ +var qr=Object.defineProperty;var kr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var os=(e,t,s)=>kr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const q={},nt=[],Ie=()=>{},Ln=()=>!1,Yt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zt=e=>e.startsWith("onUpdate:"),Q=Object.assign,Ds=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Gr=Object.prototype.hasOwnProperty,L=(e,t)=>Gr.call(e,t),M=Array.isArray,rt=e=>Pt(e)==="[object Map]",Hn=e=>Pt(e)==="[object Set]",rn=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",Y=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Nn=e=>(B(e)||R(e))&&R(e.then)&&R(e.catch),Bn=Object.prototype.toString,Pt=e=>Bn.call(e),Jr=e=>Pt(e).slice(8,-1),Kn=e=>Pt(e)==="[object Object]",$s=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,be=Xt(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,et=Xt(e=>e.replace(zr,"-$1").toLowerCase()),Un=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ls=Xt(e=>e?`on${Un(e)}`:""),Me=(e,t)=>!Object.is(e,t),fs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let on;const Zt=()=>on||(on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function js(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ls(e){let t="";if(Y(e))t=e;else if(M(e))for(let s=0;s!!(e&&e.__v_isRef===!0),oe=e=>Y(e)?e:e==null?"":M(e)||B(e)&&(e.toString===Bn||!R(e.toString))?qn(e)?oe(e.value):JSON.stringify(e,kn,2):String(e),kn=(e,t)=>qn(t)?kn(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[cs(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>cs(s))}:Fe(t)?cs(t):B(t)&&!M(t)&&!Kn(t)?String(t):t,cs=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Z;class ii{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&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(Z===this)Z=this.prevScope;else{let t=Z;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(yt){let t=yt;for(yt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bt;){let t=bt;for(bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function zn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ks(n),li(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ct)||(e.globalVersion=Ct,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,s=W,n=ye;W=e,ye=!0;try{zn(e);const r=e.fn(e._value);(t.version===0||Me(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=s,ye=n,Xn(e),e.flags&=-3}}function Ks(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ks(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ye=!0;const Qn=[];function De(){Qn.push(ye),ye=!1}function $e(){const e=Qn.pop();ye=e===void 0?!0:e}function ln(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let Ct=0;class fi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Us{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(!W||!ye||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new fi(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,er(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=n)}return s}trigger(t){this.version++,Ct++,this.notify(t)}notify(t){Ns();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Bs()}}}function er(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)er(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,Ze=Symbol(""),Ss=Symbol(""),Tt=Symbol("");function ee(e,t,s){if(ye&&W){let n=ws.get(e);n||ws.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Us),r.map=n,r.key=s),r.track()}}function Ne(e,t,s,n,r,i){const o=ws.get(e);if(!o){Ct++;return}const l=c=>{c&&c.trigger()};if(Ns(),t==="clear")o.forEach(l);else{const c=M(e),d=c&&$s(s);if(c&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===Tt||!Fe(S)&&S>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Tt)),t){case"add":c?d&&l(o.get("length")):(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"delete":c||(l(o.get(Ze)),rt(e)&&l(o.get(Ss)));break;case"set":rt(e)&&l(o.get(Ze));break}}Bs()}function tt(e){const t=j(e);return t===e?t:(ee(t,"iterate",Tt),pe(e)?t:t.map(ve))}function Qt(e){return ee(e=j(e),"iterate",Tt),e}function Ae(e,t){return Ke(e)?lt(Qe(e)?ve(t):t):ve(t)}const ci={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return tt(this).concat(...e.map(t=>M(t)?tt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return je(this,"every",e,t,void 0,arguments)},filter(e,t){return je(this,"filter",e,t,s=>s.map(n=>Ae(this,n)),arguments)},find(e,t){return je(this,"find",e,t,s=>Ae(this,s),arguments)},findIndex(e,t){return je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return je(this,"findLast",e,t,s=>Ae(this,s),arguments)},findLastIndex(e,t){return je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return je(this,"forEach",e,t,void 0,arguments)},includes(...e){return ds(this,"includes",e)},indexOf(...e){return ds(this,"indexOf",e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ds(this,"lastIndexOf",e)},map(e,t){return je(this,"map",e,t,void 0,arguments)},pop(){return ht(this,"pop")},push(...e){return ht(this,"push",e)},reduce(e,...t){return fn(this,"reduce",e,t)},reduceRight(e,...t){return fn(this,"reduceRight",e,t)},shift(){return ht(this,"shift")},some(e,t){return je(this,"some",e,t,void 0,arguments)},splice(...e){return ht(this,"splice",e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ht(this,"unshift",e)},values(){return as(this,"values",e=>Ae(this,e))}};function as(e,t,s){const n=Qt(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ui=Array.prototype;function je(e,t,s,n,r,i){const o=Qt(e),l=o!==e&&!pe(e),c=o[t];if(c!==ui[t]){const p=c.apply(e,i);return l?ve(p):p}let d=s;o!==e&&(l?d=function(p,S){return s.call(this,Ae(e,p),S,e)}:s.length>2&&(d=function(p,S){return s.call(this,p,S,e)}));const a=c.call(o,d,n);return l&&r?r(a):a}function fn(e,t,s,n){const r=Qt(e),i=r!==e&&!pe(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Ae(e,d)),s.call(this,d,Ae(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const c=r[t](o,...n);return l?Ae(e,c):c}function ds(e,t,s){const n=j(e);ee(n,"iterate",Tt);const r=n[t](...s);return(r===-1||r===!1)&&ks(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function ht(e,t,s=[]){De(),Ns();const n=j(e)[t].apply(e,s);return Bs(),$e(),n}const ai=Fs("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fe));function di(e){Fe(e)||(e=String(e));const t=j(this);return ee(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?wi:or:i?ir:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let c;if(o&&(c=ci[s]))return c;if(s==="hasOwnProperty")return di}const l=Reflect.get(t,s,te(t)?t:n);if((Fe(s)?tr.has(s):ai(s))||(r||ee(t,"get",s),i))return l;if(te(l)){const c=o&&$s(s)?l:l.value;return r&&B(c)?Ts(c):c}return B(l)?r?Ts(l):Ws(l):l}}class nr extends sr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&$s(s);if(!this._isShallow){const d=Ke(i);if(!pe(n)&&!Ke(n)&&(i=j(i),n=j(n)),!o&&te(i)&&!te(n))return d||(i.value=n),!0}const l=o?Number(s)e,jt=e=>Reflect.getPrototypeOf(e);function mi(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),o=rt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=r[e](...n),a=s?Cs:t?lt:ve;return!t&&ee(i,"iterate",c?Ss:Ze),Q(Object.create(d),{next(){const{value:p,done:S}=d.next();return S?{value:p,done:S}:{value:l?[a(p[0]),a(p[1])]:a(p),done:S}}})}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bi(e,t){const s={get(r){const i=this.__v_raw,o=j(i),l=j(r);e||(Me(r,l)&&ee(o,"get",r),ee(o,"get",l));const{has:c}=jt(o),d=t?Cs:e?lt:ve;if(c.call(o,r))return d(i.get(r));if(c.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ee(j(r),"iterate",Ze),r.size},has(r){const i=this.__v_raw,o=j(i),l=j(r);return e||(Me(r,l)&&ee(o,"has",r),ee(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=j(l),d=t?Cs:e?lt:ve;return!e&&ee(c,"iterate",Ze),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Q(s,e?{add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear")}:{add(r){const i=j(this),o=jt(i),l=j(r),c=!t&&!pe(r)&&!Ke(r)?l:r;return o.has.call(i,c)||Me(r,c)&&o.has.call(i,r)||Me(l,c)&&o.has.call(i,l)||(i.add(c),Ne(i,"add",c,c)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=j(i));const o=j(this),{has:l,get:c}=jt(o);let d=l.call(o,r);d||(r=j(r),d=l.call(o,r));const a=c.call(o,r);return o.set(r,i),d?Me(i,a)&&Ne(o,"set",r,i):Ne(o,"add",r,i),this},delete(r){const i=j(this),{has:o,get:l}=jt(i);let c=o.call(i,r);c||(r=j(r),c=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return c&&Ne(i,"delete",r,void 0),d},clear(){const r=j(this),i=r.size!==0,o=r.clear();return i&&Ne(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=mi(r,e,t)}),s}function Vs(e,t){const s=bi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(L(s,r)&&r in n?s:n,r,i)}const yi={get:Vs(!1,!1)},vi={get:Vs(!1,!0)},xi={get:Vs(!0,!1)};const rr=new WeakMap,ir=new WeakMap,or=new WeakMap,wi=new WeakMap;function Si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Ke(e)?e:qs(e,!1,pi,yi,rr)}function Ci(e){return qs(e,!1,_i,vi,ir)}function Ts(e){return qs(e,!0,gi,xi,or)}function qs(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Si(Jr(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function Qe(e){return Ke(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function ks(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Ti(e){return!L(e,"__v_skip")&&Object.isExtensible(e)&&Vn(e,"__v_skip",!0),e}const ve=e=>B(e)?Ws(e):e,lt=e=>B(e)?Ts(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Ht(e){return Ei(e,!1)}function Ei(e,t){return te(e)?e:new Oi(e,t)}class Oi{constructor(t,s){this.dep=new Us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ke(t);t=n?t:j(t),Me(t,s)&&(this._rawValue=t,this._value=n?t:ve(t),this.dep.trigger())}}function Ai(e){return te(e)?e.value:e}const Pi={get:(e,t,s)=>t==="__v_raw"?e:Ai(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return te(r)&&!te(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function lr(e){return Qe(e)?e:new Proxy(e,Pi)}class Mi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ct-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return Zn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ri(e,t,s=!1){let n,r;return R(e)?n=e:(n=e.get,r=e.set),new Mi(n,r,s)}const Nt={},Ut=new WeakMap;let Xe;function Ii(e,t=!1,s=Xe){if(s){let n=Ut.get(s);n||Ut.set(s,n=[]),n.push(e)}}function Fi(e,t,s=q){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=s,d=O=>r?O:pe(O)||r===!1||r===0?We(O,1):We(O);let a,p,S,C,$=!1,A=!1;if(te(e)?(p=()=>e.value,$=pe(e)):Qe(e)?(p=()=>d(e),$=!0):M(e)?(A=!0,$=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(te(O))return O.value;if(Qe(O))return d(O);if(R(O))return c?c(O,2):O()})):R(e)?t?p=c?()=>c(e,2):e:p=()=>{if(S){De();try{S()}finally{$e()}}const O=Xe;Xe=a;try{return c?c(e,3,[C]):e(C)}finally{Xe=O}}:p=Ie,t&&r){const O=p,J=r===!0?1/0:r;p=()=>We(O(),J)}const k=oi(),K=()=>{a.stop(),k&&k.active&&Ds(k.effects,a)};if(i&&t){const O=t;t=(...J)=>{const fe=O(...J);return K(),fe}}let I=A?new Array(e.length).fill(Nt):Nt;const H=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const J=a.run();if(O||r||$||(A?J.some((fe,ce)=>Me(fe,I[ce])):Me(J,I))){S&&S();const fe=Xe;Xe=a;try{const ce=[J,I===Nt?void 0:A&&I[0]===Nt?[]:I,C];I=J,c?c(t,3,ce):t(...ce)}finally{Xe=fe}}}else a.run()};return l&&l(H),a=new Gn(p),a.scheduler=o?()=>o(H,!1):H,C=O=>Ii(O,!1,a),S=a.onStop=()=>{const O=Ut.get(a);if(O){if(c)c(O,4);else for(const J of O)J();Ut.delete(a)}},t?n?H(!0):I=a.run():o?o(H.bind(null,!0),!0):a.run(),K.pause=a.pause.bind(a),K.resume=a.resume.bind(a),K.stop=K,K}function We(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,te(e))We(e.value,t,s);else if(M(e))for(let n=0;n{We(n,t,s)});else if(Kn(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){es(r,t,s)}}function xe(e,t,s,n){if(R(e)){const r=Mt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{es(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=re[n],i=Et(r);i=Et(s)?re.push(e):re.splice(ji(t),0,e),e.flags|=1,cr()}}function cr(){Vt||(Vt=fr.then(ar))}function Li(e){M(e)?it.push(...e):Ve&&e.id===-1?Ve.splice(st+1,0,e):e.flags&1||(it.push(e),e.flags|=1),cr()}function cn(e,t,s=Oe+1){for(;sEt(s)-Et(n));if(it.length=0,Ve){Ve.push(...t);return}for(Ve=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function ar(e){try{for(Oe=0;Oe{n._d&&xn(-1);const i=Wt(t);let o;try{o=e(...r)}finally{Wt(i),n._d&&xn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ye(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o1)return s&&R(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Bt(Bi);function hs(e,t,s){return hr(e,t,s)}function hr(e,t,s=q){const{immediate:n,deep:r,flush:i,once:o}=s,l=Q({},s),c=t&&n||!t&&i!=="post";let d;if(At){if(i==="sync"){const C=Ki();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!c){const C=()=>{};return C.stop=Ie,C.resume=Ie,C.pause=Ie,C}}const a=ie;l.call=(C,$,A)=>xe(C,a,$,A);let p=!1;i==="post"?l.scheduler=C=>{le(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,$)=>{$?C():Gs(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const S=Fi(e,t,l);return At&&(d?d.push(S):c&&S()),S}function Ui(e,t,s){const n=this.proxy,r=Y(e)?e.includes(".")?pr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=Rt(this),l=hr(r,i.bind(n),s);return o(),l}function pr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(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 qi(e,t){return R(e)?Q({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function un(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const qt=new WeakMap;function vt(e,t,s,n,r=!1){if(M(e)){e.forEach((A,k)=>vt(A,t&&(M(t)?t[k]:t),s,n,r));return}if(xt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&vt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Xs(n.component):n.el,o=r?null:i,{i:l,r:c}=e,d=t&&t.r,a=l.refs===q?l.refs={}:l.refs,p=l.setupState,S=j(p),C=p===q?Ln:A=>un(a,A)?!1:L(S,A),$=(A,k)=>!(k&&un(a,k));if(d!=null&&d!==c){if(an(t),Y(d))a[d]=null,C(d)&&(p[d]=null);else if(te(d)){const A=t;$(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(c)){De();try{Mt(c,l,12,[o,a])}finally{$e()}}else{const A=Y(c),k=te(c);if(A||k){const K=()=>{if(e.f){const I=A?C(c)?p[c]:a[c]:$()||!e.k?c.value:a[e.k];if(r)M(I)&&Ds(I,i);else if(M(I))I.includes(i)||I.push(i);else if(A)a[c]=[i],C(c)&&(p[c]=a[c]);else{const H=[i];$(c,e.k)&&(c.value=H),e.k&&(a[e.k]=H)}}else A?(a[c]=o,C(c)&&(p[c]=o)):k&&($(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const I=()=>{K(),qt.delete(e)};I.id=-1,qt.set(e,I),le(I,s)}else an(e),K()}}}function an(e){const t=qt.get(e);t&&(t.flags|=8,qt.delete(e))}Zt().requestIdleCallback;Zt().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,_r=e=>e.type.__isKeepAlive;function ki(e,t){mr(e,"a",t)}function Gi(e,t){mr(e,"da",t)}function mr(e,t,s=ie){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)_r(r.parent.vnode)&&Ji(n,t,s,r),r=r.parent}}function Ji(e,t,s,n){const r=ts(t,e,n,!0);yr(()=>{Ds(n[t],r)},s)}function ts(e,t,s=ie,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{De();const l=Rt(s),c=xe(t,s,e,o);return l(),$e(),c});return n?r.unshift(i):r.push(i),i}}const Ue=e=>(t,s=ie)=>{(!At||e==="sp")&&ts(e,(...n)=>t(...n),s)},Yi=Ue("bm"),br=Ue("m"),zi=Ue("bu"),Xi=Ue("u"),Zi=Ue("bum"),yr=Ue("um"),Qi=Ue("sp"),eo=Ue("rtg"),to=Ue("rtc");function so(e,t=ie){ts("ec",e,t)}const no=Symbol.for("v-ndc");function dn(e,t,s,n){let r;const i=s,o=M(e);if(o||Y(e)){const l=o&&Qe(e);let c=!1,d=!1;l&&(c=!pe(e),d=Ke(e),e=Qt(e)),r=new Array(e.length);for(let a=0,p=e.length;at(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;ce?Br(e)?Xs(e):Es(e.parent):null,wt=Q(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=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xr(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=$i.bind(e.proxy)),$watch:e=>Ui.bind(e)}),gs=(e,t)=>e!==q&&!e.__isScriptSetup&&L(e,t),ro={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const S=o[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(gs(n,t))return o[t]=1,n[t];if(r!==q&&L(r,t))return o[t]=2,r[t];if(L(i,t))return o[t]=3,i[t];if(s!==q&&L(s,t))return o[t]=4,s[t];Os&&(o[t]=0)}}const d=wt[t];let a,p;if(d)return t==="$attrs"&&ee(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==q&&L(s,t))return o[t]=4,s[t];if(p=c.config.globalProperties,L(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=s,!0):n!==q&&L(n,t)?(n[t]=s,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let c;return!!(s[l]||e!==q&&l[0]!=="$"&&L(e,l)||gs(t,l)||L(i,l)||L(n,l)||L(wt,l)||L(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:L(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function hn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Os=!0;function io(e){const t=xr(e),s=e.proxy,n=e.ctx;Os=!1,t.beforeCreate&&pn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:S,beforeUpdate:C,updated:$,activated:A,deactivated:k,beforeDestroy:K,beforeUnmount:I,destroyed:H,unmounted:O,render:J,renderTracked:fe,renderTriggered:ce,errorCaptured:ge,serverPrefetch:de,expose:ke,inheritAttrs:ct,components:It,directives:Ft,filters:rs}=t;if(d&&oo(d,n,null),o)for(const G in o){const V=o[G];R(V)&&(n[G]=V.bind(s))}if(r){const G=r.call(s,s);B(G)&&(e.data=Ws(G))}if(Os=!0,i)for(const G in i){const V=i[G],Ge=R(V)?V.bind(s,s):R(V.get)?V.get.bind(s,s):Ie,Dt=!R(V)&&R(V.set)?V.set.bind(s):Ie,Je=Rs({get:Ge,set:Dt});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Je.value,set:we=>Je.value=we})}if(l)for(const G in l)vr(l[G],n,s,G);if(c){const G=R(c)?c.call(s):c;Reflect.ownKeys(G).forEach(V=>{Ni(V,G[V])})}a&&pn(a,e,"c");function se(G,V){M(V)?V.forEach(Ge=>G(Ge.bind(s))):V&&G(V.bind(s))}if(se(Yi,p),se(br,S),se(zi,C),se(Xi,$),se(ki,A),se(Gi,k),se(so,ge),se(to,fe),se(eo,ce),se(Zi,I),se(yr,O),se(Qi,de),M(ke))if(ke.length){const G=e.exposed||(e.exposed={});ke.forEach(V=>{Object.defineProperty(G,V,{get:()=>s[V],set:Ge=>s[V]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===Ie&&(e.render=J),ct!=null&&(e.inheritAttrs=ct),It&&(e.components=It),Ft&&(e.directives=Ft),de&&gr(e)}function oo(e,t,s=Ie){M(e)&&(e=As(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Bt(r.from||n,r.default,!0):i=Bt(r.from||n):i=Bt(r),te(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function pn(e,t,s){xe(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function vr(e,t,s,n){let r=n.includes(".")?pr(s,n):()=>s[n];if(Y(e)){const i=t[e];R(i)&&hs(r,i)}else if(R(e))hs(r,e.bind(s));else if(B(e))if(M(e))e.forEach(i=>vr(i,t,s,n));else{const i=R(e.handler)?e.handler.bind(s):t[e.handler];R(i)&&hs(r,i,e)}}function xr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>kt(c,d,o,!0)),kt(c,t,o)),B(t)&&i.set(t,c),c}function kt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&kt(e,i,s,!0),r&&r.forEach(o=>kt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=lo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const lo={data:gn,props:_n,emits:_n,methods:gt,computed:gt,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:gt,directives:gt,watch:co,provide:gn,inject:fo};function gn(e,t){return t?e?function(){return Q(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function fo(e,t){return gt(As(e),As(t))}function As(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${et(t)}Modifiers`];function po(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||q;let r=s;const i=t.startsWith("update:"),o=i&&ho(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>Y(a)?a.trim():a)),o.number&&(r=s.map(Xr)));let l,c=n[l=ls(t)]||n[l=ls(be(t))];!c&&i&&(c=n[l=ls(et(t))]),c&&xe(c,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(d,e,6,r)}}const go=new WeakMap;function Sr(e,t,s=!1){const n=s?go:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const c=d=>{const a=Sr(d,t,!0);a&&(l=!0,Q(o,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(B(e)&&n.set(e,null),null):(M(i)?i.forEach(c=>o[c]=null):Q(o,i),B(e)&&n.set(e,o),o)}function ss(e,t){return!e||!Yt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,et(t))||L(e,t))}function mn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:a,props:p,data:S,setupState:C,ctx:$,inheritAttrs:A}=e,k=Wt(e);let K,I;try{if(s.shapeFlag&4){const O=r||n,J=O;K=Pe(d.call(J,O,a,p,C,S,$)),I=l}else{const O=t;K=Pe(O.length>1?O(p,{attrs:l,slots:o,emit:c}):O(p,null)),I=t.props?l:_o(l)}}catch(O){St.length=0,es(O,e,1),K=Be(qe)}let H=K;if(I&&A!==!1){const O=Object.keys(I),{shapeFlag:J}=H;O.length&&J&7&&(i&&O.some(zt)&&(I=mo(I,i)),H=ft(H,I,!1,!0))}return s.dirs&&(H=ft(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition&&Js(H,s.transition),K=H,Wt(k),K}const _o=e=>{let t;for(const s in e)(s==="class"||s==="style"||Yt(s))&&((t||(t={}))[s]=e[s]);return t},mo=(e,t)=>{const s={};for(const n in e)(!zt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function bo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?bn(n,o,d):!!o;if(c&8){const a=t.dynamicProps;for(let p=0;pObject.create(Tr),Or=e=>Object.getPrototypeOf(e)===Tr;function vo(e,t,s,n=!1){const r={},i=Er();e.propsDefaults=Object.create(null),Ar(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=j(r),[c]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[S,C]=Pr(p,t,!0);Q(o,S),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return B(e)&&n.set(e,nt),nt;if(M(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",zs=e=>M(e)?e.map(Pe):[Pe(e)],So=(e,t,s)=>{if(t._n)return t;const n=Hi((...r)=>zs(t(...r)),s);return n._c=!1,n},Mr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Ys(r))continue;const i=e[r];if(R(i))t[r]=So(r,i,n);else if(i!=null){const o=zs(i);t[r]=()=>o}}},Rr=(e,t)=>{const s=zs(t);e.slots.default=()=>s},Ir=(e,t,s)=>{for(const n in t)(s||!Ys(n))&&(e[n]=t[n])},Co=(e,t,s)=>{const n=e.slots=Er();if(e.vnode.shapeFlag&32){const r=t._;r?(Ir(n,t,s),s&&Vn(n,"_",r,!0)):Mr(t,n)}else t&&Rr(e,t)},To=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=q;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Ir(r,t,s):(i=!t.$stable,Mr(t,r)),o=t}else t&&(Rr(e,t),o={default:1});if(i)for(const l in r)!Ys(l)&&o[l]==null&&delete r[l]},le=Mo;function Eo(e){return Oo(e)}function Oo(e,t){const s=Zt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:S,setScopeId:C=Ie,insertStaticContent:$}=e,A=(f,u,h,b=null,m=null,g=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!pt(f,u)&&(b=$t(f),we(f,m,g,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:_,ref:E,shapeFlag:w}=u;switch(_){case ns:k(f,u,h,b);break;case qe:K(f,u,h,b);break;case ms:f==null&&I(u,h,b,x);break;case me:It(f,u,h,b,m,g,x,v,y);break;default:w&1?J(f,u,h,b,m,g,x,v,y):w&6?Ft(f,u,h,b,m,g,x,v,y):(w&64||w&128)&&_.process(f,u,h,b,m,g,x,v,y,at)}E!=null&&m?vt(E,f&&f.ref,g,u||f,!u):E==null&&f&&f.ref!=null&&vt(f.ref,null,g,f,!0)},k=(f,u,h,b)=>{if(f==null)n(u.el=l(u.children),h,b);else{const m=u.el=f.el;u.children!==f.children&&d(m,u.children)}},K=(f,u,h,b)=>{f==null?n(u.el=c(u.children||""),h,b):u.el=f.el},I=(f,u,h,b)=>{[f.el,f.anchor]=$(f.children,u,h,b,f.el,f.anchor)},H=({el:f,anchor:u},h,b)=>{let m;for(;f&&f!==u;)m=S(f),n(f,h,b),f=m;n(u,h,b)},O=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=S(f),r(f),f=h;r(u)},J=(f,u,h,b,m,g,x,v,y)=>{if(u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),f==null)fe(u,h,b,m,g,x,v,y);else{const _=f.el&&f.el._isVueCE?f.el:null;try{_&&_._beginPatch(),de(f,u,m,g,x,v,y)}finally{_&&_._endPatch()}}},fe=(f,u,h,b,m,g,x,v)=>{let y,_;const{props:E,shapeFlag:w,transition:T,dirs:P}=f;if(y=f.el=o(f.type,g,E&&E.is,E),w&8?a(y,f.children):w&16&&ge(f.children,y,null,b,m,_s(f,g),x,v),P&&Ye(f,null,b,"created"),ce(y,f,f.scopeId,x,b),E){for(const U in E)U!=="value"&&!mt(U)&&i(y,U,null,E[U],g,b);"value"in E&&i(y,"value",null,E.value,g),(_=E.onVnodeBeforeMount)&&Ee(_,b,f)}P&&Ye(f,null,b,"beforeMount");const D=Ao(m,T);D&&T.beforeEnter(y),n(y,u,h),((_=E&&E.onVnodeMounted)||D||P)&&le(()=>{try{_&&Ee(_,b,f),D&&T.enter(y),P&&Ye(f,null,b,"mounted")}finally{}},m)},ce=(f,u,h,b,m)=>{if(h&&C(f,h),b)for(let g=0;g{for(let _=y;_{const v=u.el=f.el;let{patchFlag:y,dynamicChildren:_,dirs:E}=u;y|=f.patchFlag&16;const w=f.props||q,T=u.props||q;let P;if(h&&ze(h,!1),(P=T.onVnodeBeforeUpdate)&&Ee(P,h,u,f),E&&Ye(u,f,h,"beforeUpdate"),h&&ze(h,!0),_&&(!f.dynamicChildren||f.dynamicChildren.length!==_.length)&&(y=0,x=!1,_=null),(w.innerHTML&&T.innerHTML==null||w.textContent&&T.textContent==null)&&a(v,""),_?ke(f.dynamicChildren,_,v,h,b,_s(u,m),g):x||V(f,u,v,null,h,b,_s(u,m),g,!1),y>0){if(y&16)ct(v,w,T,h,m);else if(y&2&&w.class!==T.class&&i(v,"class",null,T.class,m),y&4&&i(v,"style",w.style,T.style,m),y&8){const D=u.dynamicProps;for(let U=0;U{P&&Ee(P,h,u,f),E&&Ye(u,f,h,"updated")},b)},ke=(f,u,h,b,m,g,x)=>{for(let v=0;v{if(u!==h){if(u!==q)for(const g in u)!mt(g)&&!(g in h)&&i(f,g,u[g],null,m,b);for(const g in h){if(mt(g))continue;const x=h[g],v=u[g];x!==v&&g!=="value"&&i(f,g,v,x,m,b)}"value"in h&&i(f,"value",u.value,h.value,m)}},It=(f,u,h,b,m,g,x,v,y)=>{const _=u.el=f?f.el:l(""),E=u.anchor=f?f.anchor:l("");let{patchFlag:w,dynamicChildren:T,slotScopeIds:P}=u;P&&(v=v?v.concat(P):P),f==null?(n(_,h,b),n(E,h,b),ge(u.children||[],h,E,m,g,x,v,y)):w>0&&w&64&&T&&f.dynamicChildren&&f.dynamicChildren.length===T.length?(ke(f.dynamicChildren,T,h,m,g,x,v),(u.key!=null||m&&u===m.subTree)&&Fr(f,u,!0)):V(f,u,h,E,m,g,x,v,y)},Ft=(f,u,h,b,m,g,x,v,y)=>{u.slotScopeIds=v,f==null?u.shapeFlag&512?m.ctx.activate(u,h,b,x,y):rs(u,h,b,m,g,x,y):Zs(f,u,y)},rs=(f,u,h,b,m,g,x)=>{const v=f.component=No(f,b,m);if(_r(f)&&(v.ctx.renderer=at),Ko(v,!1,x),v.asyncDep){if(m&&m.registerDep(v,se,x),!f.el){const y=v.subTree=Be(qe);K(null,y,u,h),f.placeholder=y.el}}else se(v,f,u,h,m,g,x)},Zs=(f,u,h)=>{const b=u.component=f.component;if(bo(f,u,h))if(b.asyncDep&&!b.asyncResolved){G(b,u,h);return}else b.next=u,b.update();else u.el=f.el,b.vnode=u},se=(f,u,h,b,m,g,x)=>{const v=()=>{if(f.isMounted){let{next:w,bu:T,u:P,parent:D,vnode:U}=f;{const Ce=Dr(f);if(Ce){w&&(w.el=U.el,G(f,w,x)),Ce.asyncDep.then(()=>{le(()=>{f.isUnmounted||_()},m)});return}}let N=w,z;ze(f,!1),w?(w.el=U.el,G(f,w,x)):w=U,T&&fs(T),(z=w.props&&w.props.onVnodeBeforeUpdate)&&Ee(z,D,w,U),ze(f,!0);const X=mn(f),Se=f.subTree;f.subTree=X,A(Se,X,p(Se.el),$t(Se),f,m,g),w.el=X.el,N===null&&yo(f,X.el),P&&le(P,m),(z=w.props&&w.props.onVnodeUpdated)&&le(()=>Ee(z,D,w,U),m)}else{let w;const{el:T,props:P}=u,{bm:D,m:U,parent:N,root:z,type:X}=f,Se=xt(u);ze(f,!1),D&&fs(D),!Se&&(w=P&&P.onVnodeBeforeMount)&&Ee(w,N,u),ze(f,!0);{z.ce&&z.ce._hasShadowRoot()&&z.ce._injectChildStyle(X,f.parent?f.parent.type:void 0);const Ce=f.subTree=mn(f);A(null,Ce,h,b,f,m,g),u.el=Ce.el}if(U&&le(U,m),!Se&&(w=P&&P.onVnodeMounted)){const Ce=u;le(()=>Ee(w,N,Ce),m)}(u.shapeFlag&256||N&&xt(N.vnode)&&N.vnode.shapeFlag&256)&&f.a&&le(f.a,m),f.isMounted=!0,u=h=b=null}};f.scope.on();const y=f.effect=new Gn(v);f.scope.off();const _=f.update=y.run.bind(y),E=f.job=y.runIfDirty.bind(y);E.i=f,E.id=f.uid,y.scheduler=()=>Gs(E),ze(f,!0),_()},G=(f,u,h)=>{u.component=f;const b=f.vnode.props;f.vnode=u,f.next=null,xo(f,u.props,b,h),To(f,u.children,h),De(),cn(f),$e()},V=(f,u,h,b,m,g,x,v,y=!1)=>{const _=f&&f.children,E=f?f.shapeFlag:0,w=u.children,{patchFlag:T,shapeFlag:P}=u;if(T>0){if(T&128){Dt(_,w,h,b,m,g,x,v,y);return}else if(T&256){Ge(_,w,h,b,m,g,x,v,y);return}}P&8?(E&16&&ut(_,m,g),w!==_&&a(h,w)):E&16?P&16?Dt(_,w,h,b,m,g,x,v,y):ut(_,m,g,!0):(E&8&&a(h,""),P&16&&ge(w,h,b,m,g,x,v,y))},Ge=(f,u,h,b,m,g,x,v,y)=>{f=f||nt,u=u||nt;const _=f.length,E=u.length,w=Math.min(_,E);let T;for(T=0;TE?ut(f,m,g,!0,!1,w):ge(u,h,b,m,g,x,v,y,w)},Dt=(f,u,h,b,m,g,x,v,y)=>{let _=0;const E=u.length;let w=f.length-1,T=E-1;for(;_<=w&&_<=T;){const P=f[_],D=u[_]=y?He(u[_]):Pe(u[_]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;_++}for(;_<=w&&_<=T;){const P=f[w],D=u[T]=y?He(u[T]):Pe(u[T]);if(pt(P,D))A(P,D,h,null,m,g,x,v,y);else break;w--,T--}if(_>w){if(_<=T){const P=T+1,D=PT)for(;_<=w;)we(f[_],m,g,!0),_++;else{const P=_,D=_,U=new Map;for(_=D;_<=T;_++){const ue=u[_]=y?He(u[_]):Pe(u[_]);ue.key!=null&&U.set(ue.key,_)}let N,z=0;const X=T-D+1;let Se=!1,Ce=0;const dt=new Array(X);for(_=0;_=X){we(ue,m,g,!0);continue}let Te;if(ue.key!=null)Te=U.get(ue.key);else for(N=D;N<=T;N++)if(dt[N-D]===0&&pt(ue,u[N])){Te=N;break}Te===void 0?we(ue,m,g,!0):(dt[Te-D]=_+1,Te>=Ce?Ce=Te:Se=!0,A(ue,u[Te],h,null,m,g,x,v,y),z++)}const tn=Se?Po(dt):nt;for(N=tn.length-1,_=X-1;_>=0;_--){const ue=D+_,Te=u[ue],sn=u[ue+1],nn=ue+1{const{el:g,type:x,transition:v,children:y,shapeFlag:_}=f;if(_&6){Je(f.component.subTree,u,h,b);return}if(_&128){f.suspense.move(u,h,b);return}if(_&64){x.move(f,u,h,at);return}if(x===me){n(g,u,h);for(let w=0;wv.enter(g),m));else{const{leave:w,delayLeave:T,afterLeave:P}=v,D=()=>{f.ctx.isUnmounted?r(g):n(g,u,h)},U=()=>{const N=g._isLeaving||!!g[ps];g._isLeaving&&g[ps](!0),v.persisted&&!N?D():w(g,()=>{D(),P&&P()})};T?T(g,D,U):U()}else n(g,u,h)},we=(f,u,h,b=!1,m=!1)=>{const{type:g,props:x,ref:v,children:y,dynamicChildren:_,shapeFlag:E,patchFlag:w,dirs:T,cacheIndex:P,memo:D}=f;if(w===-2&&(m=!1),v!=null&&(De(),vt(v,null,h,f,!0),$e()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(f);return}const U=E&1&&T,N=!xt(f);let z;if(N&&(z=x&&x.onVnodeBeforeUnmount)&&Ee(z,u,f),E&6)Wr(f.component,h,b);else{if(E&128){f.suspense.unmount(h,b);return}U&&Ye(f,null,u,"beforeUnmount"),E&64?f.type.remove(f,u,h,at,b):_&&!_.hasOnce&&(g!==me||w>0&&w&64)?ut(_,u,h,!1,!0):(g===me&&w&384||!m&&E&16)&&ut(y,u,h),b&&Qs(f)}const X=D!=null&&P==null;(N&&(z=x&&x.onVnodeUnmounted)||U||X)&&le(()=>{z&&Ee(z,u,f),U&&Ye(f,null,u,"unmounted"),X&&(f.el=null)},h)},Qs=f=>{const{type:u,el:h,anchor:b,transition:m}=f;if(u===me){Vr(h,b);return}if(u===ms){O(f);return}const g=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:x,delayLeave:v}=m,y=()=>x(h,g);v?v(f.el,g,y):y()}else g()},Vr=(f,u)=>{let h;for(;f!==u;)h=S(f),r(f),f=h;r(u)},Wr=(f,u,h)=>{const{bum:b,scope:m,job:g,subTree:x,um:v,m:y,a:_}=f;vn(y),vn(_),b&&fs(b),m.stop(),g&&(g.flags|=8,we(x,f,u,h)),v&&le(v,u),le(()=>{f.isUnmounted=!0},u)},ut=(f,u,h,b=!1,m=!1,g=0)=>{for(let x=g;x{if(f.shapeFlag&6)return $t(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=S(f.anchor||f.el),h=u&&u[Vi];return h?S(h):u};let is=!1;const en=(f,u,h)=>{let b;f==null?u._vnode&&(we(u._vnode,null,null,!0),b=u._vnode.component):A(u._vnode||null,f,u,null,null,null,h),u._vnode=f,is||(is=!0,cn(b),ur(),is=!1)},at={p:A,um:we,m:Je,r:Qs,mt:rs,mc:ge,pc:V,pbc:ke,n:$t,o:e};return{render:en,hydrate:void 0,createApp:ao(en)}}function _s({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ze({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ao(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fr(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i>1,e[s[l]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Dr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dr(t)}function vn(e){if(e)for(let t=0;te.__isSuspense;function Mo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Li(e)}const me=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),ms=Symbol.for("v-stc"),St=[];let ae=null;function he(e=!1){St.push(ae=e?null:[])}function Ro(){St.pop(),ae=St[St.length-1]||null}let Ot=1;function xn(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function Lr(e){return e.dynamicChildren=Ot>0?ae||nt:null,Ro(),Ot>0&&ae&&ae.push(e),e}function _e(e,t,s,n,r,i){return Lr(F(e,t,s,n,r,i,!0))}function Io(e,t,s,n,r){return Lr(Be(e,t,s,n,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function pt(e,t){return e.type===t.type&&e.key===t.key}const Nr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Y(e)||te(e)||R(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function F(e,t=null,s=null,n=0,r=null,i=e===me?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nr(t),ref:t&&Kt(t),scopeId:dr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Re};return l?(Gt(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=Y(s)?8:16),Ot>0&&!o&&ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ae.push(c),c}const Be=Fo;function Fo(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===no)&&(e=qe),Hr(e)){const l=ft(e,t,!0);return s&&Gt(l,s),Ot>0&&!i&&ae&&(l.shapeFlag&6?ae[ae.indexOf(e)]=l:ae.push(l)),l.patchFlag=-2,l}if(qo(e)&&(e=e.__vccOpts),t){t=Do(t);let{class:l,style:c}=t;l&&!Y(l)&&(t.class=Ls(l)),B(c)&&(ks(c)&&!M(c)&&(c=Q({},c)),t.style=js(c))}const o=Y(e)?1:jr(e)?128:Wi(e)?64:B(e)?4:R(e)?2:0;return F(e,t,s,n,r,o,i,!0)}function Do(e){return e?ks(e)||Or(e)?Q({},e):e:null}function ft(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,d=t?jo(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Nr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(Kt(t)):[i,Kt(t)]:Kt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ft(e.ssContent),ssFallback:e.ssFallback&&ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Js(a,c.clone(a)),a}function $o(e=" ",t=0){return Be(ns,null,e,t)}function bs(e="",t=!1){return t?(he(),Io(qe,null,e)):Be(qe,null,e)}function Pe(e){return e==null||typeof e=="boolean"?Be(qe):M(e)?Be(me,null,e.slice()):Hr(e)?He(e):Be(ns,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ft(e)}function Gt(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Gt(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Or(t)?t._ctx=Re:r===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(n&65){Gt(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[$o(t)]):s=8;e.children=t,e.shapeFlag|=s}function jo(...e){const t={};for(let s=0;sie||Re;let Jt,Ms;{const e=Zt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Jt=t("__VUE_INSTANCE_SETTERS__",s=>ie=s),Ms=t("__VUE_SSR_SETTERS__",s=>At=s)}const Rt=e=>{const t=ie;return Jt(e),e.scope.on(),()=>{e.scope.off(),Jt(t)}},wn=()=>{ie&&ie.scope.off(),Jt(null)};function Br(e){return e.vnode.shapeFlag&4}let At=!1;function Ko(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:r}=e.vnode,i=Br(e);vo(e,n,i,t),Co(e,r,s||t);const o=i?Uo(e,t):void 0;return t&&Ms(!1),o}function Uo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ro);const{setup:n}=s;if(n){De();const r=e.setupContext=n.length>1?Wo(e):null,i=Rt(e),o=Mt(n,e,0,[e.props,r]),l=Nn(o);if($e(),i(),(l||e.sp)&&!xt(e)&&gr(e),l){if(o.then(wn,wn),t)return o.then(c=>{Sn(e,c)}).catch(c=>{es(c,e,0)});e.asyncDep=o}else Sn(e,o)}else Kr(e)}function Sn(e,t,s){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=lr(t)),Kr(e)}function Kr(e,t,s){const n=e.type;e.render||(e.render=n.render||Ie);{const r=Rt(e);De();try{io(e)}finally{$e(),r()}}}const Vo={get(e,t){return ee(e,"get",""),e[t]}};function Wo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vo),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lr(Ti(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in wt)return wt[s](e)},has(t,s){return s in t||s in wt}})):e.proxy}function qo(e){return R(e)&&"__vccOpts"in e}const Rs=(e,t)=>Ri(e,t,At),ko="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Is;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Is=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Is?e=>Is.createHTML(e):e=>e,Go="http://www.w3.org/2000/svg",Jo="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Tn=Le&&Le.createElement("template"),Yo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(Go,e):t==="mathml"?Le.createElementNS(Jo,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Tn.innerHTML=Ur(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Tn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},zo=Symbol("_vtc");function Xo(e,t,s){const n=e[zo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const En=Symbol("_vod"),Zo=Symbol("_vsh"),Qo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=Y(s);let i=!1;if(s&&!r){if(t)if(Y(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&_t(n,l,"")}else for(const o in t)s[o]==null&&_t(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!Y(t)&&t?t[o]:void 0,l)||_t(n,o,l):_t(n,o,"")}}else if(r){if(t!==s){const o=n[Qo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");En in e&&(e[En]=i?n.display:"",e[Zo]&&(n.display="none"))}const On=/\s*!important$/;function _t(e,t,s){if(M(s))s.forEach(n=>_t(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);On.test(s)?e.setProperty(et(n),s.replace(On,""),"important"):e[n]=s}}const An=["Webkit","Moz","ms"],ys={};function sl(e,t){const s=ys[t];if(s)return s;let n=be(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Un(n);for(let r=0;rvs||(ul.then(()=>vs=0),vs=Date.now());function dl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Xo(e,n,o):t==="style"?tl(e,s,n):Yt(t)?zt(t)||ol(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pl(e,t,n,o))?(Rn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y(n)))?Rn(e,be(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fn(t)&&R(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fn(t)&&Y(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=be(t);return Array.isArray(s)?s.some(r=>be(r)===n):Object.keys(s).some(r=>be(r)===n)}const _l=Q({patchProp:hl},Yo);let Dn;function ml(){return Dn||(Dn=Eo(_l))}const bl=((...e)=>{const t=ml().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,yl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function yl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vl(e){return Y(e)?document.querySelector(e):e}const xl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",$n={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class wl extends Error{constructor(s,n,r={}){super(n);os(this,"code");os(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function jn(e,t){return Sl(e,{method:"GET",query:t})}async function Sl(e,t={}){const n=await(await fetch(Cl(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!n.ok)throw new wl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${xl}/${s}`,window.location.origin);for(const[r,i]of Object.entries(t??{}))i!==void 0&&n.searchParams.set(r,String(i));return`${n.pathname}${n.search}`}const Tl={class:"plugin-page-shell"},El={class:"topbar"},Ol={class:"actions"},Al=["data-state"],Pl=["href"],Ml={key:0,class:"notice"},Rl={key:1,class:"notice"},Il={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},Fl={class:"activity"},Dl={key:0,class:"empty"},$l={key:0,class:"empty"},jl=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Rs(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Rs(()=>{var a;const d=(a=s.value)==null?void 0:a.queue;return d?d.pending+d.running+d.failed+d.dead_letter:0});br(l);async function l(){n.value=!0,r.value="";try{const[d,a]=await Promise.all([jn($n.uiBootstrap),jn($n.dashboardSummary)]);t.value=d,s.value=a}catch(d){r.value=d instanceof Error?d.message:"加载失败"}finally{n.value=!1}}function c(d=0){return d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(1)} GB`}return(d,a)=>{var p,S,C,$,A,k,K,I,H,O,J,fe,ce,ge;return he(),_e("main",Tl,[F("header",El,[F("div",null,[F("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),F("p",null,oe(((S=t.value)==null?void 0:S.dashboard_user)??"AstrBot"),1)]),F("div",Ol,[F("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe((($=s.value)==null?void 0:$.plugin_status)??"loading"),9,Al),F("button",{type:"button",onClick:l},"刷新"),t.value?(he(),_e("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),_e("section",Ml,oe(r.value),1)):n.value?(he(),_e("section",Rl,"加载中")):(he(),_e("section",Il,[F("article",null,[a[0]||(a[0]=F("span",null,"角色",-1)),F("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),F("article",null,[a[1]||(a[1]=F("span",null,"队列",-1)),F("strong",null,oe(o.value),1)]),F("article",null,[a[2]||(a[2]=F("span",null,"运行中",-1)),F("strong",null,oe(((k=s.value)==null?void 0:k.queue.running)??0),1)]),F("article",null,[a[3]||(a[3]=F("span",null,"失败",-1)),F("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),F("article",null,[a[4]||(a[4]=F("span",null,"存储",-1)),F("strong",null,oe(c((I=s.value)==null?void 0:I.storage.total_bytes)),1)])])),F("section",Fl,[F("div",null,[a[5]||(a[5]=F("h2",null,"最近图片",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),_e("li",{key:String(de.image_id)},[F("span",null,oe(de.image_id),1),F("small",null,oe(de.created_at),1)]))),128)),(J=(O=s.value)==null?void 0:O.recent_images)!=null&&J.length?bs("",!0):(he(),_e("li",Dl,"暂无图片"))])]),F("div",null,[a[6]||(a[6]=F("h2",null,"任务",-1)),F("ul",null,[(he(!0),_e(me,null,dn(((fe=s.value)==null?void 0:fe.recent_jobs)??[],de=>(he(),_e("li",{key:String(de.task_id)},[F("span",null,oe(de.task_id),1),F("small",null,oe(de.status),1)]))),128)),(ge=(ce=s.value)==null?void 0:ce.recent_jobs)!=null&&ge.length?bs("",!0):(he(),_e("li",$l,"暂无任务"))])])])])}}}),Ll=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Hl=Ll(jl,[["__scopeId","data-v-7e06e9af"]]);bl(Hl).mount("#app"); diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html index 4d3c401..b14547d 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
diff --git a/tests/test_route_registry.py b/tests/test_route_registry.py index 5d8da17..4f790fa 100644 --- a/tests/test_route_registry.py +++ b/tests/test_route_registry.py @@ -20,6 +20,9 @@ class RouteRegistryTests(unittest.TestCase): self.assertIn(("GET", "materials/{material_id}"), keys) self.assertIn(("DELETE", "profiles/{profile_id}/wardrobe/{wardrobe_item_id}"), keys) self.assertIn(("GET", "integrations/logs"), keys) + self.assertIn(("POST", "workflows/{workflow_id}/start"), keys) + self.assertIn(("POST", "workflows/{workflow_id}/cancel"), keys) + self.assertIn(("POST", "workflows/{workflow_id}/archive"), keys) self.assertEqual(len(routes), len(ROUTES)) def test_webui_adapter_manifest_includes_api_routes(self): diff --git a/web/assets/index-BoTUhgnW.css b/web/assets/index-BoTUhgnW.css new file mode 100644 index 0000000..2c9ff93 --- /dev/null +++ b/web/assets/index-BoTUhgnW.css @@ -0,0 +1 @@ +.web-shell[data-v-7bc7fcf4]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-7bc7fcf4],.inspector[data-v-7bc7fcf4]{background:#fff}.sidebar[data-v-7bc7fcf4]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-7bc7fcf4]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-7bc7fcf4]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-7bc7fcf4]{font-size:19px}.brand span[data-v-7bc7fcf4],p[data-v-7bc7fcf4],dt[data-v-7bc7fcf4],.empty[data-v-7bc7fcf4],small[data-v-7bc7fcf4]{color:#667085}nav[data-v-7bc7fcf4]{display:grid;gap:6px}button[data-v-7bc7fcf4]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-7bc7fcf4]:disabled{cursor:wait;opacity:.62}nav button[data-v-7bc7fcf4]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-7bc7fcf4]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-7bc7fcf4]{min-width:0;padding:24px}.topbar[data-v-7bc7fcf4],.list-view header[data-v-7bc7fcf4],.toolbar[data-v-7bc7fcf4],.inline-actions[data-v-7bc7fcf4]{display:flex;gap:12px;align-items:center}.topbar[data-v-7bc7fcf4],.list-view header[data-v-7bc7fcf4]{justify-content:space-between}.actions[data-v-7bc7fcf4],.inline-actions[data-v-7bc7fcf4]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-7bc7fcf4],.toolbar button[data-v-7bc7fcf4],.list-view header button[data-v-7bc7fcf4],.inline-actions button[data-v-7bc7fcf4]{padding:0 14px}h1[data-v-7bc7fcf4],h2[data-v-7bc7fcf4],p[data-v-7bc7fcf4],dl[data-v-7bc7fcf4],dd[data-v-7bc7fcf4]{margin:0}h1[data-v-7bc7fcf4]{min-height:30px;font-size:26px}h2[data-v-7bc7fcf4]{font-size:15px}.notice[data-v-7bc7fcf4],article[data-v-7bc7fcf4],.list-view[data-v-7bc7fcf4],.editor-panel[data-v-7bc7fcf4],pre[data-v-7bc7fcf4]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-7bc7fcf4]{margin-top:18px;padding:14px}.error[data-v-7bc7fcf4]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-7bc7fcf4],.split-view[data-v-7bc7fcf4]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-7bc7fcf4]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-7bc7fcf4]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-7bc7fcf4]{display:grid;gap:8px;padding:16px}article span[data-v-7bc7fcf4]{color:#667085;font-size:13px}article strong[data-v-7bc7fcf4]{font-size:24px}.list-view[data-v-7bc7fcf4],.logs-view[data-v-7bc7fcf4],.settings-view[data-v-7bc7fcf4]{margin-top:18px}.split-view .list-view[data-v-7bc7fcf4],.logs-view .list-view[data-v-7bc7fcf4]{margin-top:0}.list-view[data-v-7bc7fcf4]{padding:16px}.editor-panel[data-v-7bc7fcf4]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-7bc7fcf4]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-7bc7fcf4]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-7bc7fcf4]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-7bc7fcf4]{display:grid;gap:5px;min-width:0}label span[data-v-7bc7fcf4]{color:#667085;font-size:12px}.wide-field[data-v-7bc7fcf4]{grid-column:1 / -1}input[data-v-7bc7fcf4],select[data-v-7bc7fcf4]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-7bc7fcf4]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-7bc7fcf4]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-7bc7fcf4]:first-child{border-top:0}li>div[data-v-7bc7fcf4]{display:grid;gap:3px;min-width:0}li strong[data-v-7bc7fcf4],li span[data-v-7bc7fcf4],li small[data-v-7bc7fcf4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-7bc7fcf4]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-7bc7fcf4]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-7bc7fcf4]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-7bc7fcf4]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-7bc7fcf4]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-7bc7fcf4]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-7bc7fcf4]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-7bc7fcf4]{display:none}}@media(max-width:820px){.web-shell[data-v-7bc7fcf4]{grid-template-columns:1fr}.sidebar[data-v-7bc7fcf4]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-7bc7fcf4]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-7bc7fcf4]{text-align:center}.dashboard-grid[data-v-7bc7fcf4],.split-view[data-v-7bc7fcf4],.settings-sections[data-v-7bc7fcf4]{grid-template-columns:1fr}.topbar[data-v-7bc7fcf4],.list-view header[data-v-7bc7fcf4]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-CMIPJ6y1.js b/web/assets/index-CMIPJ6y1.js deleted file mode 100644 index 35c99ad..0000000 --- a/web/assets/index-CMIPJ6y1.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ri=Object.defineProperty;var Li=(e,t,n)=>t in e?Ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zn=(e,t,n)=>Li(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ys(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ne={},It=[],Ze=()=>{},Ol=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ln=e=>e.startsWith("onUpdate:"),we=Object.assign,bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fi=Object.prototype.hasOwnProperty,Z=(e,t)=>Fi.call(e,t),$=Array.isArray,kt=e=>ln(e)==="[object Map]",Fn=e=>ln(e)==="[object Set]",zs=e=>ln(e)==="[object Date]",N=e=>typeof e=="function",pe=e=>typeof e=="string",et=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Dl=e=>(te(e)||N(e))&&N(e.then)&&N(e.catch),Al=Object.prototype.toString,ln=e=>Al.call(e),$i=e=>ln(e).slice(8,-1),Ml=e=>ln(e)==="[object Object]",ws=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kt=ys(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ji=/-\w/g,Be=$n(e=>e.replace(ji,t=>t.slice(1).toUpperCase())),Vi=/\B([A-Z])/g,Pt=$n(e=>e.replace(Vi,"-$1").toLowerCase()),Il=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yn=$n(e=>e?`on${Il(e)}`:""),Qe=(e,t)=>!Object.is(e,t),xn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ys;const Vn=()=>Ys||(Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xs(e){if($(e)){const t={};for(let n=0;n{if(n){const s=n.split(Bi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Nn(e){let t="";if(pe(e))t=e;else if($(e))for(let n=0;nrn(n,t))}const Ll=e=>!!(e&&e.__v_isRef===!0),d=e=>pe(e)?e:e==null?"":$(e)||te(e)&&(e.toString===Al||!N(e.toString))?Ll(e)?d(e.value):JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>Ll(t)?Fl(e,t.value):kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],i)=>(n[Xn(s,i)+" =>"]=l,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xn(n))}:et(t)?Xn(t):te(t)&&!$(t)&&!Ml(t)?String(t):t,Xn=(e,t="")=>{var n;return et(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 be;class Gi{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&&be&&(be.active?(this.parent=be,this.index=(be.scopes||(be.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;t0&&--this._on===0){if(be===this)be=this.prevScope;else{let t=be;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,s;for(n=0,s=this.effects.length;n0)return;if(Jt){let t=Jt;for(Jt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qt;){let t=qt;for(qt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Nl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bl(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),Es(s),Yi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function as(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ul(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ul(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!as(e))))return;e.flags|=2;const t=e.dep,n=re,s=Ue;re=e,Ue=!0;try{Nl(e);const l=e.fn(e._value);(t.version===0||Qe(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{re=n,Ue=s,Bl(e),e.flags&=-3}}function Es(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Es(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const Hl=[];function tt(){Hl.push(Ue),Ue=!1}function nt(){const e=Hl.pop();Ue=e===void 0?!0:e}function Xs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Zt=0;class Xi{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 Ps{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(!re||!Ue||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new Xi(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,Wl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=s)}return n}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){Cs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ss()}}}function Wl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Wl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const us=new WeakMap,St=Symbol(""),cs=Symbol(""),en=Symbol("");function Pe(e,t,n){if(Ue&&re){let s=us.get(e);s||us.set(e,s=new Map);let l=s.get(n);l||(s.set(n,l=new Ps),l.map=s,l.key=n),l.track()}}function ct(e,t,n,s,l,i){const r=us.get(e);if(!r){Zt++;return}const a=c=>{c&&c.trigger()};if(Cs(),t==="clear")r.forEach(a);else{const c=$(e),g=c&&ws(n);if(c&&n==="length"){const p=Number(s);r.forEach((y,O)=>{(O==="length"||O===en||!et(O)&&O>=p)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),g&&a(r.get(en)),t){case"add":c?g&&a(r.get("length")):(a(r.get(St)),kt(e)&&a(r.get(cs)));break;case"delete":c||(a(r.get(St)),kt(e)&&a(r.get(cs)));break;case"set":kt(e)&&a(r.get(St));break}}Ss()}function At(e){const t=Q(e);return t===e?t:(Pe(t,"iterate",en),Ve(e)?t:t.map(He))}function Bn(e){return Pe(e=Q(e),"iterate",en),e}function Ye(e,t){return pt(e)?$t(Et(e)?He(t):t):He(t)}const Qi={__proto__:null,[Symbol.iterator](){return Zn(this,Symbol.iterator,e=>Ye(this,e))},concat(...e){return At(this).concat(...e.map(t=>$(t)?At(t):t))},entries(){return Zn(this,"entries",e=>(e[1]=Ye(this,e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(s=>Ye(this,s)),arguments)},find(e,t){return ot(this,"find",e,t,n=>Ye(this,n),arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,n=>Ye(this,n),arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return es(this,"includes",e)},indexOf(...e){return es(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return es(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return Bt(this,"pop")},push(...e){return Bt(this,"push",e)},reduce(e,...t){return Qs(this,"reduce",e,t)},reduceRight(e,...t){return Qs(this,"reduceRight",e,t)},shift(){return Bt(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return Bt(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return Bt(this,"unshift",e)},values(){return Zn(this,"values",e=>Ye(this,e))}};function Zn(e,t,n){const s=Bn(e),l=s[t]();return s!==e&&!Ve(e)&&(l._next=l.next,l.next=()=>{const i=l._next();return i.done||(i.value=n(i.value)),i}),l}const Zi=Array.prototype;function ot(e,t,n,s,l,i){const r=Bn(e),a=r!==e&&!Ve(e),c=r[t];if(c!==Zi[t]){const y=c.apply(e,i);return a?He(y):y}let g=n;r!==e&&(a?g=function(y,O){return n.call(this,Ye(e,y),O,e)}:n.length>2&&(g=function(y,O){return n.call(this,y,O,e)}));const p=c.call(r,g,s);return a&&l?l(p):p}function Qs(e,t,n,s){const l=Bn(e),i=l!==e&&!Ve(e);let r=n,a=!1;l!==e&&(i?(a=s.length===0,r=function(g,p,y){return a&&(a=!1,g=Ye(e,g)),n.call(this,g,Ye(e,p),y,e)}):n.length>3&&(r=function(g,p,y){return n.call(this,g,p,y,e)}));const c=l[t](r,...s);return a?Ye(e,c):c}function es(e,t,n){const s=Q(e);Pe(s,"iterate",en);const l=s[t](...n);return(l===-1||l===!1)&&As(n[0])?(n[0]=Q(n[0]),s[t](...n)):l}function Bt(e,t,n=[]){tt(),Cs();const s=Q(e)[t].apply(e,n);return Ss(),nt(),s}const er=ys("__proto__,__v_isRef,__isVue"),Kl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function tr(e){et(e)||(e=String(e));const t=Q(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class ql{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(l?i?fr:Yl:i?zl:Gl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=$(t);if(!l){let c;if(r&&(c=Qi[n]))return c;if(n==="hasOwnProperty")return tr}const a=Reflect.get(t,n,Te(t)?t:s);if((et(n)?Kl.has(n):er(n))||(l||Pe(t,"get",n),i))return a;if(Te(a)){const c=r&&ws(n)?a:a.value;return l&&te(c)?ds(c):c}return te(a)?l?ds(a):Os(a):a}}class Jl extends ql{constructor(t=!1){super(!1,t)}set(t,n,s,l){let i=t[n];const r=$(t)&&ws(n);if(!this._isShallow){const g=pt(i);if(!Ve(s)&&!pt(s)&&(i=Q(i),s=Q(s)),!r&&Te(i)&&!Te(s))return g||(i.value=s),!0}const a=r?Number(n)e,yn=e=>Reflect.getPrototypeOf(e);function rr(e,t,n){return function(...s){const l=this.__v_raw,i=Q(l),r=kt(i),a=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,g=l[e](...s),p=n?fs:t?$t:He;return!t&&Pe(i,"iterate",c?cs:St),we(Object.create(g),{next(){const{value:y,done:O}=g.next();return O?{value:y,done:O}:{value:a?[p(y[0]),p(y[1])]:p(y),done:O}}})}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function or(e,t){const n={get(l){const i=this.__v_raw,r=Q(i),a=Q(l);e||(Qe(l,a)&&Pe(r,"get",l),Pe(r,"get",a));const{has:c}=yn(r),g=t?fs:e?$t:He;if(c.call(r,l))return g(i.get(l));if(c.call(r,a))return g(i.get(a));i!==r&&i.get(l)},get size(){const l=this.__v_raw;return!e&&Pe(Q(l),"iterate",St),l.size},has(l){const i=this.__v_raw,r=Q(i),a=Q(l);return e||(Qe(l,a)&&Pe(r,"has",l),Pe(r,"has",a)),l===a?i.has(l):i.has(l)||i.has(a)},forEach(l,i){const r=this,a=r.__v_raw,c=Q(a),g=t?fs:e?$t:He;return!e&&Pe(c,"iterate",St),a.forEach((p,y)=>l.call(i,g(p),g(y),r))}};return we(n,e?{add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear")}:{add(l){const i=Q(this),r=yn(i),a=Q(l),c=!t&&!Ve(l)&&!pt(l)?a:l;return r.has.call(i,c)||Qe(l,c)&&r.has.call(i,l)||Qe(a,c)&&r.has.call(i,a)||(i.add(c),ct(i,"add",c,c)),this},set(l,i){!t&&!Ve(i)&&!pt(i)&&(i=Q(i));const r=Q(this),{has:a,get:c}=yn(r);let g=a.call(r,l);g||(l=Q(l),g=a.call(r,l));const p=c.call(r,l);return r.set(l,i),g?Qe(i,p)&&ct(r,"set",l,i):ct(r,"add",l,i),this},delete(l){const i=Q(this),{has:r,get:a}=yn(i);let c=r.call(i,l);c||(l=Q(l),c=r.call(i,l)),a&&a.call(i,l);const g=i.delete(l);return c&&ct(i,"delete",l,void 0),g},clear(){const l=Q(this),i=l.size!==0,r=l.clear();return i&&ct(l,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=rr(l,e,t)}),n}function Ts(e,t){const n=or(e,t);return(s,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(Z(n,l)&&l in s?n:s,l,i)}const ar={get:Ts(!1,!1)},ur={get:Ts(!1,!0)},cr={get:Ts(!0,!1)};const Gl=new WeakMap,zl=new WeakMap,Yl=new WeakMap,fr=new WeakMap;function dr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Os(e){return pt(e)?e:Ds(e,!1,sr,ar,Gl)}function pr(e){return Ds(e,!1,ir,ur,zl)}function ds(e){return Ds(e,!0,lr,cr,Yl)}function Ds(e,t,n,s,l){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=l.get(e);if(i)return i;const r=dr($i(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return l.set(e,a),a}function Et(e){return pt(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function pt(e){return!!(e&&e.__v_isReadonly)}function Ve(e){return!!(e&&e.__v_isShallow)}function As(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function hr(e){return!Z(e,"__v_skip")&&Object.isExtensible(e)&&kl(e,"__v_skip",!0),e}const He=e=>te(e)?Os(e):e,$t=e=>te(e)?ds(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function z(e){return gr(e,!1)}function gr(e,t){return Te(e)?e:new _r(e,t)}class _r{constructor(t,n){this.dep=new Ps,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ve(t)||pt(t);t=s?t:Q(t),Qe(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function vr(e){return Te(e)?e.value:e}const mr={get:(e,t,n)=>t==="__v_raw"?e:vr(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return Te(l)&&!Te(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function Xl(e){return Et(e)?e:new Proxy(e,mr)}class yr{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ps(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return Vl(this,!0),!0}get value(){const t=this.dep.track();return Ul(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function br(e,t,n=!1){let s,l;return N(e)?s=e:(s=e.get,l=e.set),new yr(s,l,n)}const wn={},En=new WeakMap;let wt;function wr(e,t=!1,n=wt){if(n){let s=En.get(n);s||En.set(n,s=[]),s.push(e)}}function xr(e,t,n=ne){const{immediate:s,deep:l,once:i,scheduler:r,augmentJob:a,call:c}=n,g=k=>l?k:Ve(k)||l===!1||l===0?ft(k,1):ft(k);let p,y,O,M,q=!1,L=!1;if(Te(e)?(y=()=>e.value,q=Ve(e)):Et(e)?(y=()=>g(e),q=!0):$(e)?(L=!0,q=e.some(k=>Et(k)||Ve(k)),y=()=>e.map(k=>{if(Te(k))return k.value;if(Et(k))return g(k);if(N(k))return c?c(k,2):k()})):N(e)?t?y=c?()=>c(e,2):e:y=()=>{if(O){tt();try{O()}finally{nt()}}const k=wt;wt=p;try{return c?c(e,3,[M]):e(M)}finally{wt=k}}:y=Ze,t&&l){const k=y,ae=l===!0?1/0:l;y=()=>ft(k(),ae)}const oe=zi(),B=()=>{p.stop(),oe&&oe.active&&bs(oe.effects,p)};if(i&&t){const k=t;t=(...ae)=>{const V=k(...ae);return B(),V}}let H=L?new Array(e.length).fill(wn):wn;const Y=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const ae=p.run();if(k||l||q||(L?ae.some((V,ye)=>Qe(V,H[ye])):Qe(ae,H))){O&&O();const V=wt;wt=p;try{const ye=[ae,H===wn?void 0:L&&H[0]===wn?[]:H,M];H=ae,c?c(t,3,ye):t(...ye)}finally{wt=V}}}else p.run()};return a&&a(Y),p=new $l(y),p.scheduler=r?()=>r(Y,!1):Y,M=k=>wr(k,!1,p),O=p.onStop=()=>{const k=En.get(p);if(k){if(c)c(k,4);else for(const ae of k)ae();En.delete(p)}},t?s?Y(!0):H=p.run():r?r(Y.bind(null,!0),!0):p.run(),B.pause=p.pause.bind(p),B.resume=p.resume.bind(p),B.stop=B,B}function ft(e,t=1/0,n){if(t<=0||!te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Te(e))ft(e.value,t,n);else if($(e))for(let s=0;s{ft(s,t,n)});else if(Ml(e)){for(const s in e)ft(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ft(e[s],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function on(e,t,n,s){try{return s?e(...s):e()}catch(l){Un(l,t,n)}}function We(e,t,n,s){if(N(e)){const l=on(e,t,n,s);return l&&Dl(l)&&l.catch(i=>{Un(i,t,n)}),l}if($(e)){const l=[];for(let i=0;i>>1,l=Ae[s],i=tn(l);i=tn(n)?Ae.push(e):Ae.splice(Sr(t),0,e),e.flags|=1,ei()}}function ei(){Pn||(Pn=Ql.then(ni))}function Er(e){$(e)?Rt.push(...e):gt&&e.id===-1?gt.splice(Mt+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),ei()}function Zs(e,t,n=ze+1){for(;ntn(n)-tn(s));if(Rt.length=0,gt){gt.push(...t);return}for(gt=t,Mt=0;Mte.id==null?e.flags&2?-1:1/0:e.id;function ni(e){try{for(ze=0;ze{s._d&&cl(-1);const i=Tn(t);let r;try{r=e(...l)}finally{Tn(i),s._d&&cl(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function se(e,t){if(je===null)return e;const n=qn(je),s=e.dirs||(e.dirs=[]);for(let l=0;l1)return n&&N(t)?t.call(s&&s.proxy):t}}const Or=Symbol.for("v-scx"),Dr=()=>Cn(Or);function ts(e,t,n){return li(e,t,n)}function li(e,t,n=ne){const{immediate:s,deep:l,flush:i,once:r}=n,a=we({},n),c=t&&s||!t&&i!=="post";let g;if(sn){if(i==="sync"){const M=Dr();g=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=Ze,M.resume=Ze,M.pause=Ze,M}}const p=Me;a.call=(M,q,L)=>We(M,p,q,L);let y=!1;i==="post"?a.scheduler=M=>{Ie(M,p&&p.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(M,q)=>{q?M():Ms(M)}),a.augmentJob=M=>{t&&(M.flags|=4),y&&(M.flags|=2,p&&(M.id=p.uid,M.i=p))};const O=xr(e,t,a);return sn&&(g?g.push(O):c&&O()),O}function Ar(e,t,n){const s=this.proxy,l=pe(e)?e.includes(".")?ii(s,e):()=>s[e]:e.bind(s,s);let i;N(t)?i=t:(i=t.handler,n=t);const r=an(this),a=li(l,i.bind(s),n);return r(),a}function ii(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;le.__isTeleport,ns=Symbol("_leaveCb");function Is(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Is(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 kr(e,t){return N(e)?we({name:e.name},t,{setup:e}):e}function ri(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function el(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const On=new WeakMap;function Gt(e,t,n,s,l=!1){if($(e)){e.forEach((L,oe)=>Gt(L,t&&($(t)?t[oe]:t),n,s,l));return}if(zt(s)&&!l){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Gt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?qn(s.component):s.el,r=l?null:i,{i:a,r:c}=e,g=t&&t.r,p=a.refs===ne?a.refs={}:a.refs,y=a.setupState,O=Q(y),M=y===ne?Ol:L=>el(p,L)?!1:Z(O,L),q=(L,oe)=>!(oe&&el(p,oe));if(g!=null&&g!==c){if(tl(t),pe(g))p[g]=null,M(g)&&(y[g]=null);else if(Te(g)){const L=t;q(g,L.k)&&(g.value=null),L.k&&(p[L.k]=null)}}if(N(c)){tt();try{on(c,a,12,[r,p])}finally{nt()}}else{const L=pe(c),oe=Te(c);if(L||oe){const B=()=>{if(e.f){const H=L?M(c)?y[c]:p[c]:q()||!e.k?c.value:p[e.k];if(l)$(H)&&bs(H,i);else if($(H))H.includes(i)||H.push(i);else if(L)p[c]=[i],M(c)&&(y[c]=p[c]);else{const Y=[i];q(c,e.k)&&(c.value=Y),e.k&&(p[e.k]=Y)}}else L?(p[c]=r,M(c)&&(y[c]=r)):oe&&(q(c,e.k)&&(c.value=r),e.k&&(p[e.k]=r))};if(r){const H=()=>{B(),On.delete(e)};H.id=-1,On.set(e,H),Ie(H,n)}else tl(e),B()}}}function tl(e){const t=On.get(e);t&&(t.flags|=8,On.delete(e))}Vn().requestIdleCallback;Vn().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,oi=e=>e.type.__isKeepAlive;function Rr(e,t){ai(e,"a",t)}function Lr(e,t){ai(e,"da",t)}function ai(e,t,n=Me){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Hn(t,s,n),n){let l=n.parent;for(;l&&l.parent;)oi(l.parent.vnode)&&Fr(s,t,n,l),l=l.parent}}function Fr(e,t,n,s){const l=Hn(t,e,s,!0);ci(()=>{bs(s[t],l)},n)}function Hn(e,t,n=Me,s=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{tt();const a=an(n),c=We(t,n,e,r);return a(),nt(),c});return s?l.unshift(i):l.push(i),i}}const ht=e=>(t,n=Me)=>{(!sn||e==="sp")&&Hn(e,(...s)=>t(...s),n)},$r=ht("bm"),ui=ht("m"),jr=ht("bu"),Vr=ht("u"),Nr=ht("bum"),ci=ht("um"),Br=ht("sp"),Ur=ht("rtg"),Hr=ht("rtc");function Wr(e,t=Me){Hn("ec",e,t)}const Kr=Symbol.for("v-ndc");function Ee(e,t,n,s){let l;const i=n,r=$(e);if(r||pe(e)){const a=r&&Et(e);let c=!1,g=!1;a&&(c=!Ve(e),g=pt(e),e=Bn(e)),l=new Array(e.length);for(let p=0,y=e.length;pt(a,c,void 0,i));else{const a=Object.keys(e);l=new Array(a.length);for(let c=0,g=a.length;ce?Mi(e)?qn(e):ps(e.parent):null,Yt=we(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=>ps(e.parent),$root:e=>ps(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>di(e),$forceUpdate:e=>e.f||(e.f=()=>{Ms(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>Ar.bind(e)}),ss=(e,t)=>e!==ne&&!e.__isScriptSetup&&Z(e,t),qr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:l,props:i,accessCache:r,type:a,appContext:c}=e;if(t[0]!=="$"){const O=r[t];if(O!==void 0)switch(O){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(ss(s,t))return r[t]=1,s[t];if(l!==ne&&Z(l,t))return r[t]=2,l[t];if(Z(i,t))return r[t]=3,i[t];if(n!==ne&&Z(n,t))return r[t]=4,n[t];hs&&(r[t]=0)}}const g=Yt[t];let p,y;if(g)return t==="$attrs"&&Pe(e.attrs,"get",""),g(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(n!==ne&&Z(n,t))return r[t]=4,n[t];if(y=c.config.globalProperties,Z(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:i}=e;return ss(l,t)?(l[t]=n,!0):s!==ne&&Z(s,t)?(s[t]=n,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,props:i,type:r}},a){let c;return!!(n[a]||e!==ne&&a[0]!=="$"&&Z(e,a)||ss(t,a)||Z(i,a)||Z(s,a)||Z(Yt,a)||Z(l.config.globalProperties,a)||(c=r.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nl(e){return $(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hs=!0;function Jr(e){const t=di(e),n=e.proxy,s=e.ctx;hs=!1,t.beforeCreate&&sl(t.beforeCreate,e,"bc");const{data:l,computed:i,methods:r,watch:a,provide:c,inject:g,created:p,beforeMount:y,mounted:O,beforeUpdate:M,updated:q,activated:L,deactivated:oe,beforeDestroy:B,beforeUnmount:H,destroyed:Y,unmounted:k,render:ae,renderTracked:V,renderTriggered:ye,errorCaptured:ue,serverPrefetch:fe,expose:he,inheritAttrs:Ke,components:xe,directives:st,filters:Ce}=t;if(g&&Gr(g,s,null),r)for(const X in r){const K=r[X];N(K)&&(s[X]=K.bind(n))}if(l){const X=l.call(n,n);te(X)&&(e.data=Os(X))}if(hs=!0,i)for(const X in i){const K=i[X],lt=N(K)?K.bind(n,n):N(K.get)?K.get.bind(n,n):Ze,Ot=!N(K)&&N(K.set)?K.set.bind(n):Ze,it=xt({get:lt,set:Ot});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>it.value,set:Re=>it.value=Re})}if(a)for(const X in a)fi(a[X],s,n,X);if(c){const X=N(c)?c.call(n):c;Reflect.ownKeys(X).forEach(K=>{Tr(K,X[K])})}p&&sl(p,e,"c");function j(X,K){$(K)?K.forEach(lt=>X(lt.bind(n))):K&&X(K.bind(n))}if(j($r,y),j(ui,O),j(jr,M),j(Vr,q),j(Rr,L),j(Lr,oe),j(Wr,ue),j(Hr,V),j(Ur,ye),j(Nr,H),j(ci,k),j(Br,fe),$(he))if(he.length){const X=e.exposed||(e.exposed={});he.forEach(K=>{Object.defineProperty(X,K,{get:()=>n[K],set:lt=>n[K]=lt,enumerable:!0})})}else e.exposed||(e.exposed={});ae&&e.render===Ze&&(e.render=ae),Ke!=null&&(e.inheritAttrs=Ke),xe&&(e.components=xe),st&&(e.directives=st),fe&&ri(e)}function Gr(e,t,n=Ze){$(e)&&(e=gs(e));for(const s in e){const l=e[s];let i;te(l)?"default"in l?i=Cn(l.from||s,l.default,!0):i=Cn(l.from||s):i=Cn(l),Te(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function sl(e,t,n){We($(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function fi(e,t,n,s){let l=s.includes(".")?ii(n,s):()=>n[s];if(pe(e)){const i=t[e];N(i)&&ts(l,i)}else if(N(e))ts(l,e.bind(n));else if(te(e))if($(e))e.forEach(i=>fi(i,t,n,s));else{const i=N(e.handler)?e.handler.bind(n):t[e.handler];N(i)&&ts(l,i,e)}}function di(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let c;return a?c=a:!l.length&&!n&&!s?c=t:(c={},l.length&&l.forEach(g=>Dn(c,g,r,!0)),Dn(c,t,r)),te(t)&&i.set(t,c),c}function Dn(e,t,n,s=!1){const{mixins:l,extends:i}=t;i&&Dn(e,i,n,!0),l&&l.forEach(r=>Dn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=zr[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const zr={data:ll,props:il,emits:il,methods:Ht,computed:Ht,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Ht,directives:Ht,watch:Xr,provide:ll,inject:Yr};function ll(e,t){return t?e?function(){return we(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function Yr(e,t){return Ht(gs(e),gs(t))}function gs(e){if($(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function to(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ne;let l=n;const i=t.startsWith("update:"),r=i&&eo(s,t.slice(7));r&&(r.trim&&(l=n.map(p=>pe(p)?p.trim():p)),r.number&&(l=n.map(jn)));let a,c=s[a=Yn(t)]||s[a=Yn(Be(t))];!c&&i&&(c=s[a=Yn(Pt(t))]),c&&We(c,e,6,l);const g=s[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,We(g,e,6,l)}}const no=new WeakMap;function hi(e,t,n=!1){const s=n?no:t.emitsCache,l=s.get(e);if(l!==void 0)return l;const i=e.emits;let r={},a=!1;if(!N(e)){const c=g=>{const p=hi(g,t,!0);p&&(a=!0,we(r,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(te(e)&&s.set(e,null),null):($(i)?i.forEach(c=>r[c]=null):we(r,i),te(e)&&s.set(e,r),r)}function Wn(e,t){return!e||!Rn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,Pt(t))||Z(e,t))}function rl(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[i],slots:r,attrs:a,emit:c,render:g,renderCache:p,props:y,data:O,setupState:M,ctx:q,inheritAttrs:L}=e,oe=Tn(e);let B,H;try{if(n.shapeFlag&4){const k=l||s,ae=k;B=Xe(g.call(ae,k,p,y,M,O,q)),H=a}else{const k=t;B=Xe(k.length>1?k(y,{attrs:a,slots:r,emit:c}):k(y,null)),H=t.props?a:so(a)}}catch(k){Xt.length=0,Un(k,e,1),B=dt(_t)}let Y=B;if(H&&L!==!1){const k=Object.keys(H),{shapeFlag:ae}=Y;k.length&&ae&7&&(i&&k.some(Ln)&&(H=lo(H,i)),Y=jt(Y,H,!1,!0))}return n.dirs&&(Y=jt(Y,null,!1,!0),Y.dirs=Y.dirs?Y.dirs.concat(n.dirs):n.dirs),n.transition&&Is(Y,n.transition),B=Y,Tn(oe),B}const so=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rn(n))&&((t||(t={}))[n]=e[n]);return t},lo=(e,t)=>{const n={};for(const s in e)(!Ln(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function io(e,t,n){const{props:s,children:l,component:i}=e,{props:r,children:a,patchFlag:c}=t,g=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?ol(s,r,g):!!r;if(c&8){const p=t.dynamicProps;for(let y=0;yObject.create(_i),mi=e=>Object.getPrototypeOf(e)===_i;function oo(e,t,n,s=!1){const l={},i=vi();e.propsDefaults=Object.create(null),yi(e,t,l,i);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=s?l:pr(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function ao(e,t,n,s){const{props:l,attrs:i,vnode:{patchFlag:r}}=e,a=Q(l),[c]=e.propsOptions;let g=!1;if((s||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let y=0;y{c=!0;const[O,M]=bi(y,t,!0);we(r,O),M&&a.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!i&&!c)return te(e)&&s.set(e,It),It;if($(i))for(let p=0;pe==="_"||e==="_ctx"||e==="$stable",Rs=e=>$(e)?e.map(Xe):[Xe(e)],co=(e,t,n)=>{if(t._n)return t;const s=Pr((...l)=>Rs(t(...l)),n);return s._c=!1,s},wi=(e,t,n)=>{const s=e._ctx;for(const l in e){if(ks(l))continue;const i=e[l];if(N(i))t[l]=co(l,i,s);else if(i!=null){const r=Rs(i);t[l]=()=>r}}},xi=(e,t)=>{const n=Rs(t);e.slots.default=()=>n},Ci=(e,t,n)=>{for(const s in t)(n||!ks(s))&&(e[s]=t[s])},fo=(e,t,n)=>{const s=e.slots=vi();if(e.vnode.shapeFlag&32){const l=t._;l?(Ci(s,t,n),n&&kl(s,"_",l,!0)):wi(t,s)}else t&&xi(e,t)},po=(e,t,n)=>{const{vnode:s,slots:l}=e;let i=!0,r=ne;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ci(l,t,n):(i=!t.$stable,wi(t,l)),r=t}else t&&(xi(e,t),r={default:1});if(i)for(const a in l)!ks(a)&&r[a]==null&&delete l[a]},Ie=mo;function ho(e){return go(e)}function go(e,t){const n=Vn();n.__VUE__=!0;const{insert:s,remove:l,patchProp:i,createElement:r,createText:a,createComment:c,setText:g,setElementText:p,parentNode:y,nextSibling:O,setScopeId:M=Ze,insertStaticContent:q}=e,L=(u,f,_,C=null,x=null,b=null,P=void 0,E=null,S=!!f.dynamicChildren)=>{if(u===f)return;u&&!Ut(u,f)&&(C=Dt(u),Re(u,x,b,!0),u=null),f.patchFlag===-2&&(S=!1,f.dynamicChildren=null);const{type:w,ref:R,shapeFlag:T}=f;switch(w){case Kn:oe(u,f,_,C);break;case _t:B(u,f,_,C);break;case is:u==null&&H(f,_,C,P);break;case ie:xe(u,f,_,C,x,b,P,E,S);break;default:T&1?ae(u,f,_,C,x,b,P,E,S):T&6?st(u,f,_,C,x,b,P,E,S):(T&64||T&128)&&w.process(u,f,_,C,x,b,P,E,S,vt)}R!=null&&x?Gt(R,u&&u.ref,b,f||u,!f):R==null&&u&&u.ref!=null&&Gt(u.ref,null,b,u,!0)},oe=(u,f,_,C)=>{if(u==null)s(f.el=a(f.children),_,C);else{const x=f.el=u.el;f.children!==u.children&&g(x,f.children)}},B=(u,f,_,C)=>{u==null?s(f.el=c(f.children||""),_,C):f.el=u.el},H=(u,f,_,C)=>{[u.el,u.anchor]=q(u.children,f,_,C,u.el,u.anchor)},Y=({el:u,anchor:f},_,C)=>{let x;for(;u&&u!==f;)x=O(u),s(u,_,C),u=x;s(f,_,C)},k=({el:u,anchor:f})=>{let _;for(;u&&u!==f;)_=O(u),l(u),u=_;l(f)},ae=(u,f,_,C,x,b,P,E,S)=>{if(f.type==="svg"?P="svg":f.type==="math"&&(P="mathml"),u==null)V(f,_,C,x,b,P,E,S);else{const w=u.el&&u.el._isVueCE?u.el:null;try{w&&w._beginPatch(),fe(u,f,x,b,P,E,S)}finally{w&&w._endPatch()}}},V=(u,f,_,C,x,b,P,E)=>{let S,w;const{props:R,shapeFlag:T,transition:I,dirs:F}=u;if(S=u.el=r(u.type,b,R&&R.is,R),T&8?p(S,u.children):T&16&&ue(u.children,S,null,C,x,ls(u,b),P,E),F&&yt(u,null,C,"created"),ye(S,u,u.scopeId,P,C),R){for(const J in R)J!=="value"&&!Kt(J)&&i(S,J,null,R[J],b,C);"value"in R&&i(S,"value",null,R.value,b),(w=R.onVnodeBeforeMount)&&Ge(w,C,u)}F&&yt(u,null,C,"beforeMount");const W=_o(x,I);W&&I.beforeEnter(S),s(S,f,_),((w=R&&R.onVnodeMounted)||W||F)&&Ie(()=>{try{w&&Ge(w,C,u),W&&I.enter(S),F&&yt(u,null,C,"mounted")}finally{}},x)},ye=(u,f,_,C,x)=>{if(_&&M(u,_),C)for(let b=0;b{for(let w=S;w{const E=f.el=u.el;let{patchFlag:S,dynamicChildren:w,dirs:R}=f;S|=u.patchFlag&16;const T=u.props||ne,I=f.props||ne;let F;if(_&&bt(_,!1),(F=I.onVnodeBeforeUpdate)&&Ge(F,_,f,u),R&&yt(f,u,_,"beforeUpdate"),_&&bt(_,!0),w&&(!u.dynamicChildren||u.dynamicChildren.length!==w.length)&&(S=0,P=!1,w=null),(T.innerHTML&&I.innerHTML==null||T.textContent&&I.textContent==null)&&p(E,""),w?he(u.dynamicChildren,w,E,_,C,ls(f,x),b):P||K(u,f,E,null,_,C,ls(f,x),b,!1),S>0){if(S&16)Ke(E,T,I,_,x);else if(S&2&&T.class!==I.class&&i(E,"class",null,I.class,x),S&4&&i(E,"style",T.style,I.style,x),S&8){const W=f.dynamicProps;for(let J=0;J{F&&Ge(F,_,f,u),R&&yt(f,u,_,"updated")},C)},he=(u,f,_,C,x,b,P)=>{for(let E=0;E{if(f!==_){if(f!==ne)for(const b in f)!Kt(b)&&!(b in _)&&i(u,b,f[b],null,x,C);for(const b in _){if(Kt(b))continue;const P=_[b],E=f[b];P!==E&&b!=="value"&&i(u,b,E,P,x,C)}"value"in _&&i(u,"value",f.value,_.value,x)}},xe=(u,f,_,C,x,b,P,E,S)=>{const w=f.el=u?u.el:a(""),R=f.anchor=u?u.anchor:a("");let{patchFlag:T,dynamicChildren:I,slotScopeIds:F}=f;F&&(E=E?E.concat(F):F),u==null?(s(w,_,C),s(R,_,C),ue(f.children||[],_,R,x,b,P,E,S)):T>0&&T&64&&I&&u.dynamicChildren&&u.dynamicChildren.length===I.length?(he(u.dynamicChildren,I,_,x,b,P,E),(f.key!=null||x&&f===x.subTree)&&Si(u,f,!0)):K(u,f,_,R,x,b,P,E,S)},st=(u,f,_,C,x,b,P,E,S)=>{f.slotScopeIds=E,u==null?f.shapeFlag&512?x.ctx.activate(f,_,C,P,S):Ce(f,_,C,x,b,P,S):Tt(u,f,S)},Ce=(u,f,_,C,x,b,P)=>{const E=u.component=To(u,C,x);if(oi(u)&&(E.ctx.renderer=vt),Do(E,!1,P),E.asyncDep){if(x&&x.registerDep(E,j,P),!u.el){const S=E.subTree=dt(_t);B(null,S,f,_),u.placeholder=S.el}}else j(E,u,f,_,x,b,P)},Tt=(u,f,_)=>{const C=f.component=u.component;if(io(u,f,_))if(C.asyncDep&&!C.asyncResolved){X(C,f,_);return}else C.next=f,C.update();else f.el=u.el,C.vnode=f},j=(u,f,_,C,x,b,P)=>{const E=()=>{if(u.isMounted){let{next:T,bu:I,u:F,parent:W,vnode:J}=u;{const Fe=Ei(u);if(Fe){T&&(T.el=J.el,X(u,T,P)),Fe.asyncDep.then(()=>{Ie(()=>{u.isUnmounted||w()},x)});return}}let G=T,de;bt(u,!1),T?(T.el=J.el,X(u,T,P)):T=J,I&&xn(I),(de=T.props&&T.props.onVnodeBeforeUpdate)&&Ge(de,W,T,J),bt(u,!0);const ge=rl(u),Le=u.subTree;u.subTree=ge,L(Le,ge,y(Le.el),Dt(Le),u,x,b),T.el=ge.el,G===null&&ro(u,ge.el),F&&Ie(F,x),(de=T.props&&T.props.onVnodeUpdated)&&Ie(()=>Ge(de,W,T,J),x)}else{let T;const{el:I,props:F}=f,{bm:W,m:J,parent:G,root:de,type:ge}=u,Le=zt(f);bt(u,!1),W&&xn(W),!Le&&(T=F&&F.onVnodeBeforeMount)&&Ge(T,G,f),bt(u,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(ge,u.parent?u.parent.type:void 0);const Fe=u.subTree=rl(u);L(null,Fe,_,C,u,x,b),f.el=Fe.el}if(J&&Ie(J,x),!Le&&(T=F&&F.onVnodeMounted)){const Fe=f;Ie(()=>Ge(T,G,Fe),x)}(f.shapeFlag&256||G&&zt(G.vnode)&&G.vnode.shapeFlag&256)&&u.a&&Ie(u.a,x),u.isMounted=!0,f=_=C=null}};u.scope.on();const S=u.effect=new $l(E);u.scope.off();const w=u.update=S.run.bind(S),R=u.job=S.runIfDirty.bind(S);R.i=u,R.id=u.uid,S.scheduler=()=>Ms(R),bt(u,!0),w()},X=(u,f,_)=>{f.component=u;const C=u.vnode.props;u.vnode=f,u.next=null,ao(u,f.props,C,_),po(u,f.children,_),tt(),Zs(u),nt()},K=(u,f,_,C,x,b,P,E,S=!1)=>{const w=u&&u.children,R=u?u.shapeFlag:0,T=f.children,{patchFlag:I,shapeFlag:F}=f;if(I>0){if(I&128){Ot(w,T,_,C,x,b,P,E,S);return}else if(I&256){lt(w,T,_,C,x,b,P,E,S);return}}F&8?(R&16&&Ne(w,x,b),T!==w&&p(_,T)):R&16?F&16?Ot(w,T,_,C,x,b,P,E,S):Ne(w,x,b,!0):(R&8&&p(_,""),F&16&&ue(T,_,C,x,b,P,E,S))},lt=(u,f,_,C,x,b,P,E,S)=>{u=u||It,f=f||It;const w=u.length,R=f.length,T=Math.min(w,R);let I;for(I=0;IR?Ne(u,x,b,!0,!1,T):ue(f,_,C,x,b,P,E,S,T)},Ot=(u,f,_,C,x,b,P,E,S)=>{let w=0;const R=f.length;let T=u.length-1,I=R-1;for(;w<=T&&w<=I;){const F=u[w],W=f[w]=S?ut(f[w]):Xe(f[w]);if(Ut(F,W))L(F,W,_,null,x,b,P,E,S);else break;w++}for(;w<=T&&w<=I;){const F=u[T],W=f[I]=S?ut(f[I]):Xe(f[I]);if(Ut(F,W))L(F,W,_,null,x,b,P,E,S);else break;T--,I--}if(w>T){if(w<=I){const F=I+1,W=FI)for(;w<=T;)Re(u[w],x,b,!0),w++;else{const F=w,W=w,J=new Map;for(w=W;w<=I;w++){const Oe=f[w]=S?ut(f[w]):Xe(f[w]);Oe.key!=null&&J.set(Oe.key,w)}let G,de=0;const ge=I-W+1;let Le=!1,Fe=0;const mt=new Array(ge);for(w=0;w=ge){Re(Oe,x,b,!0);continue}let $e;if(Oe.key!=null)$e=J.get(Oe.key);else for(G=W;G<=I;G++)if(mt[G-W]===0&&Ut(Oe,f[G])){$e=G;break}$e===void 0?Re(Oe,x,b,!0):(mt[$e-W]=w+1,$e>=Fe?Fe=$e:Le=!0,L(Oe,f[$e],_,null,x,b,P,E,S),de++)}const fn=Le?vo(mt):It;for(G=fn.length-1,w=ge-1;w>=0;w--){const Oe=W+w,$e=f[Oe],dn=f[Oe+1],qe=Oe+1{const{el:b,type:P,transition:E,children:S,shapeFlag:w}=u;if(w&6){it(u.component.subTree,f,_,C);return}if(w&128){u.suspense.move(f,_,C);return}if(w&64){P.move(u,f,_,vt);return}if(P===ie){s(b,f,_);for(let T=0;TE.enter(b),x));else{const{leave:T,delayLeave:I,afterLeave:F}=E,W=()=>{u.ctx.isUnmounted?l(b):s(b,f,_)},J=()=>{const G=b._isLeaving||!!b[ns];b._isLeaving&&b[ns](!0),E.persisted&&!G?W():T(b,()=>{W(),F&&F()})};I?I(b,W,J):J()}else s(b,f,_)},Re=(u,f,_,C=!1,x=!1)=>{const{type:b,props:P,ref:E,children:S,dynamicChildren:w,shapeFlag:R,patchFlag:T,dirs:I,cacheIndex:F,memo:W}=u;if(T===-2&&(x=!1),E!=null&&(tt(),Gt(E,null,_,u,!0),nt()),F!=null&&(f.renderCache[F]=void 0),R&256){f.ctx.deactivate(u);return}const J=R&1&&I,G=!zt(u);let de;if(G&&(de=P&&P.onVnodeBeforeUnmount)&&Ge(de,f,u),R&6)Jn(u.component,_,C);else{if(R&128){u.suspense.unmount(_,C);return}J&&yt(u,null,f,"beforeUnmount"),R&64?u.type.remove(u,f,_,vt,C):w&&!w.hasOnce&&(b!==ie||T>0&&T&64)?Ne(w,f,_,!1,!0):(b===ie&&T&384||!x&&R&16)&&Ne(S,f,_),C&&un(u)}const ge=W!=null&&F==null;(G&&(de=P&&P.onVnodeUnmounted)||J||ge)&&Ie(()=>{de&&Ge(de,f,u),J&&yt(u,null,f,"unmounted"),ge&&(u.el=null)},_)},un=u=>{const{type:f,el:_,anchor:C,transition:x}=u;if(f===ie){Vt(_,C);return}if(f===is){k(u);return}const b=()=>{l(_),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:P,delayLeave:E}=x,S=()=>P(_,b);E?E(u.el,b,S):S()}else b()},Vt=(u,f)=>{let _;for(;u!==f;)_=O(u),l(u),u=_;l(f)},Jn=(u,f,_)=>{const{bum:C,scope:x,job:b,subTree:P,um:E,m:S,a:w}=u;ul(S),ul(w),C&&xn(C),x.stop(),b&&(b.flags|=8,Re(P,u,f,_)),E&&Ie(E,f),Ie(()=>{u.isUnmounted=!0},f)},Ne=(u,f,_,C=!1,x=!1,b=0)=>{for(let P=b;P{if(u.shapeFlag&6)return Dt(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=O(u.anchor||u.el),_=f&&f[Mr];return _?O(_):f};let ee=!1;const cn=(u,f,_)=>{let C;u==null?f._vnode&&(Re(f._vnode,null,null,!0),C=f._vnode.component):L(f._vnode||null,u,f,null,null,null,_),f._vnode=u,ee||(ee=!0,Zs(C),ti(),ee=!1)},vt={p:L,um:Re,m:it,r:un,mt:Ce,mc:ue,pc:K,pbc:he,n:Dt,o:e};return{render:cn,hydrate:void 0,createApp:Zr(cn)}}function ls({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 bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _o(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Si(e,t,n=!1){const s=e.children,l=t.children;if($(s)&&$(l))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Ei(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ei(t)}function ul(e){if(e)for(let t=0;te.__isSuspense;function mo(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):Er(e)}const ie=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),Xt=[];let ke=null;function D(e=!1){Xt.push(ke=e?null:[])}function yo(){Xt.pop(),ke=Xt[Xt.length-1]||null}let nn=1;function cl(e,t=!1){nn+=e,e<0&&ke&&t&&(ke.hasOnce=!0)}function Oi(e){return e.dynamicChildren=nn>0?ke||It:null,yo(),nn>0&&ke&&ke.push(e),e}function A(e,t,n,s,l,i){return Oi(o(e,t,n,s,l,i,!0))}function bo(e,t,n,s,l){return Oi(dt(e,t,n,s,l,!0))}function Di(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const Ai=({key:e})=>e??null,Sn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||Te(e)||N(e)?{i:je,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,s=0,l=null,i=e===ie?0:1,r=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ai(t),ref:t&&Sn(t),scopeId:si,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:je};return a?(An(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=pe(n)?8:16),nn>0&&!r&&ke&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ke.push(c),c}const dt=wo;function wo(e,t=null,n=null,s=0,l=null,i=!1){if((!e||e===Kr)&&(e=_t),Di(e)){const a=jt(e,t,!0);return n&&An(a,n),nn>0&&!i&&ke&&(a.shapeFlag&6?ke[ke.indexOf(e)]=a:ke.push(a)),a.patchFlag=-2,a}if(ko(e)&&(e=e.__vccOpts),t){t=xo(t);let{class:a,style:c}=t;a&&!pe(a)&&(t.class=Nn(a)),te(c)&&(As(c)&&!$(c)&&(c=we({},c)),t.style=xs(c))}const r=pe(e)?1:Ti(e)?128:Ir(e)?64:te(e)?4:N(e)?2:0;return o(e,t,n,s,l,r,i,!0)}function xo(e){return e?As(e)||mi(e)?we({},e):e:null}function jt(e,t,n=!1,s=!1){const{props:l,ref:i,patchFlag:r,children:a,transition:c}=e,g=t?So(l||{},t):l,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ai(g),ref:t&&t.ref?n&&i?$(i)?i.concat(Sn(t)):[i,Sn(t)]:Sn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Is(p,c.clone(p)),p}function Co(e=" ",t=0){return dt(Kn,null,e,t)}function le(e="",t=!1){return t?(D(),bo(_t,null,e)):dt(_t,null,e)}function Xe(e){return e==null||typeof e=="boolean"?dt(_t):$(e)?dt(ie,null,e.slice()):Di(e)?ut(e):dt(Kn,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function An(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if($(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),An(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!mi(t)?t._ctx=je:l===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(s&65){An(e,{default:t});return}t={default:t,_ctx:je},n=32}else t=String(t),s&64?(n=16,t=[Co(t)]):n=8;e.children=t,e.shapeFlag|=n}function So(...e){const t={};for(let n=0;nMe||je;let Mn,vs;{const e=Vn(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),i=>{l.length>1?l.forEach(r=>r(i)):l[0](i)}};Mn=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),vs=t("__VUE_SSR_SETTERS__",n=>sn=n)}const an=e=>{const t=Me;return Mn(e),e.scope.on(),()=>{e.scope.off(),Mn(t)}},fl=()=>{Me&&Me.scope.off(),Mn(null)};function Mi(e){return e.vnode.shapeFlag&4}let sn=!1;function Do(e,t=!1,n=!1){t&&vs(t);const{props:s,children:l}=e.vnode,i=Mi(e);oo(e,s,i,t),fo(e,l,n||t);const r=i?Ao(e,t):void 0;return t&&vs(!1),r}function Ao(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qr);const{setup:s}=n;if(s){tt();const l=e.setupContext=s.length>1?Io(e):null,i=an(e),r=on(s,e,0,[e.props,l]),a=Dl(r);if(nt(),i(),(a||e.sp)&&!zt(e)&&ri(e),a){if(r.then(fl,fl),t)return r.then(c=>{dl(e,c)}).catch(c=>{Un(c,e,0)});e.asyncDep=r}else dl(e,r)}else Ii(e)}function dl(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Xl(t)),Ii(e)}function Ii(e,t,n){const s=e.type;e.render||(e.render=s.render||Ze);{const l=an(e);tt();try{Jr(e)}finally{nt(),l()}}}const Mo={get(e,t){return Pe(e,"get",""),e[t]}};function Io(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Mo),slots:e.slots,emit:e.emit,expose:t}}function qn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xl(hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yt)return Yt[n](e)},has(t,n){return n in t||n in Yt}})):e.proxy}function ko(e){return N(e)&&"__vccOpts"in e}const xt=(e,t)=>br(e,t,sn),Ro="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ms;const pl=typeof window<"u"&&window.trustedTypes;if(pl)try{ms=pl.createPolicy("vue",{createHTML:e=>e})}catch{}const ki=ms?e=>ms.createHTML(e):e=>e,Lo="http://www.w3.org/2000/svg",Fo="http://www.w3.org/1998/Math/MathML",at=typeof document<"u"?document:null,hl=at&&at.createElement("template"),$o={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?at.createElementNS(Lo,e):t==="mathml"?at.createElementNS(Fo,e):n?at.createElement(e,{is:n}):at.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>at.createTextNode(e),createComment:e=>at.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>at.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,i){const r=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{hl.innerHTML=ki(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=hl.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jo=Symbol("_vtc");function Vo(e,t,n){const s=e[jo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gl=Symbol("_vod"),No=Symbol("_vsh"),Bo=Symbol(""),Uo=/(?:^|;)\s*display\s*:/;function Ho(e,t,n){const s=e.style,l=pe(n);let i=!1;if(n&&!l){if(t)if(pe(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Wt(s,a,"")}else for(const r in t)n[r]==null&&Wt(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?Ko(e,r,!pe(t)&&t?t[r]:void 0,a)||Wt(s,r,a):Wt(s,r,"")}}else if(l){if(t!==n){const r=s[Bo];r&&(n+=";"+r),s.cssText=n,i=Uo.test(n)}}else t&&e.removeAttribute("style");gl in e&&(e[gl]=i?s.display:"",e[No]&&(s.display="none"))}const _l=/\s*!important$/;function Wt(e,t,n){if($(n))n.forEach(s=>Wt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Wo(e,t);_l.test(n)?e.setProperty(Pt(s),n.replace(_l,""),"important"):e[s]=n}}const vl=["Webkit","Moz","ms"],rs={};function Wo(e,t){const n=rs[t];if(n)return n;let s=Be(t);if(s!=="filter"&&s in e)return rs[t]=s;s=Il(s);for(let l=0;los||(Xo.then(()=>os=0),os=Date.now());function Zo(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const l=n.value;if($(l)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=l.slice(),a=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ea=(e,t,n,s,l,i)=>{const r=l==="svg";t==="class"?Vo(e,s,r):t==="style"?Ho(e,n,s):Rn(t)?Ln(t)||Jo(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ta(e,t,s,r))?(bl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yl(e,t,s,r,i,t!=="value")):e._isVueCE&&(na(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!pe(s)))?bl(e,Be(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),yl(e,t,s,r))};function ta(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&xl(t)&&N(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 l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return xl(t)&&pe(n)?!1:t in e}function na(e,t){const n=e._def.props;if(!n)return!1;const s=Be(t);return Array.isArray(n)?n.some(l=>Be(l)===s):Object.keys(n).some(l=>Be(l)===s)}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?n=>xn(t,n):t};function sa(e){e.target.composing=!0}function Cl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ft=Symbol("_assign");function Sl(e,t,n){return t&&(e=e.trim()),n&&(e=jn(e)),e}const ce={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e[Ft]=In(l);const i=s||l.props&&l.props.type==="number";Ct(e,t?"change":"input",r=>{r.target.composing||e[Ft](Sl(e.value,n,i))}),(n||i)&&Ct(e,"change",()=>{e.value=Sl(e.value,n,i)}),t||(Ct(e,"compositionstart",sa),Ct(e,"compositionend",Cl),Ct(e,"change",Cl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:i}},r){if(e[Ft]=In(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?jn(e.value):e.value,c=t??"";if(a===c)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(s&&t===n||l&&e.value.trim()===c)||(e.value=c)}},El={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const l=Fn(t);Ct(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?jn(kn(r)):kn(r));e[Ft](e.multiple?l?new Set(i):i:i[0]),e._assigning=!0,Zl(()=>{e._assigning=!1})}),e[Ft]=In(s)},mounted(e,{value:t}){Pl(e,t)},beforeUpdate(e,t,n){e[Ft]=In(n)},updated(e,{value:t}){e._assigning||Pl(e,t)}};function Pl(e,t){const n=e.multiple,s=$(t);if(!(n&&!s&&!Fn(t))){for(let l=0,i=e.options.length;lString(g)===String(a)):r.selected=Ji(t,a)>-1}else r.selected=t.has(a);else if(rn(kn(r),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function kn(e){return"_value"in e?e._value:e.value}const la=we({patchProp:ea},$o);let Tl;function ia(){return Tl||(Tl=ho(la))}const ra=((...e)=>{const t=ia().createApp(...e),{mount:n}=t;return t.mount=s=>{const l=aa(s);if(!l)return;const i=t._component;!N(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=n(l,!1,oa(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function oa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aa(e){return pe(e)?document.querySelector(e):e}const ua="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",U={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class ca extends Error{constructor(n,s,l={}){super(s);zn(this,"code");zn(this,"details");this.name="ApiClientError",this.code=n,this.details=l}}async function _e(e,t){return Qt(e,{method:"GET",query:t})}async function ve(e,t){return Qt(e,{method:"POST",body:t})}async function Qt(e,t={}){const s=await(await fetch(fa(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(!s.ok)throw new ca(s.error_code,s.message,s.details);return s.data}function fa(e,t){const n=e.replace(/^\/+/,""),s=new URL(`${ua}/${n}`,window.location.origin);for(const[l,i]of Object.entries(t??{}))i!==void 0&&s.searchParams.set(l,String(i));return`${s.pathname}${s.search}`}const da={class:"web-shell"},pa={class:"sidebar"},ha={class:"brand"},ga=["onClick"],_a={class:"workspace"},va={class:"topbar"},ma={class:"actions"},ya=["disabled"],ba={key:0,class:"notice error"},wa={key:1,class:"notice"},xa={key:0,class:"dashboard-grid"},Ca={key:1,class:"list-view"},Sa={class:"form-grid"},Ea={class:"wide-field"},Pa=["disabled"],Ta=["disabled"],Oa={key:0},Da={class:"inline-actions"},Aa={class:"badge"},Ma=["disabled","onClick"],Ia={key:0,class:"empty"},ka={key:2,class:"split-view"},Ra={class:"list-view"},La={key:0,class:"empty"},Fa={class:"list-view"},$a={class:"inline-actions"},ja=["disabled"],Va={class:"form-grid"},Na={value:""},Ba=["value"],Ua=["disabled"],Ha={class:"inline-actions"},Wa={class:"badge"},Ka=["disabled","onClick"],qa=["disabled","onClick"],Ja=["disabled","onClick"],Ga={key:0,class:"empty"},za={key:0},Ya={key:3,class:"list-view"},Xa=["disabled"],Qa={class:"form-grid"},Za={value:""},eu=["value"],tu=["disabled"],nu={class:"inline-actions"},su=["disabled","onClick"],lu={key:0,class:"empty"},iu={key:0},ru={class:"form-grid"},ou=["disabled"],au={key:1},uu={key:4,class:"list-view"},cu={class:"inline-actions"},fu=["disabled"],du=["disabled"],pu={class:"inline-actions"},hu={class:"badge"},gu=["onClick"],_u=["onClick"],vu={key:0,class:"empty"},mu={key:5,class:"split-view"},yu={class:"list-view"},bu=["disabled"],wu={class:"form-grid"},xu=["disabled"],Cu={key:0},Su={class:"list-view"},Eu={class:"inline-actions"},Pu={class:"badge"},Tu=["disabled","onClick"],Ou=["disabled","onClick"],Du=["disabled","onClick"],Au={key:0,class:"empty"},Mu={key:6,class:"logs-view"},Iu={class:"split-view"},ku={class:"list-view"},Ru={key:0,class:"empty"},Lu={class:"list-view"},Fu={class:"badge"},$u={key:0,class:"empty"},ju={class:"split-view"},Vu={class:"list-view"},Nu={key:0,class:"empty"},Bu={class:"list-view"},Uu={class:"badge"},Hu={key:0,class:"empty"},Wu={class:"list-view"},Ku={key:0,class:"empty"},qu={key:7,class:"settings-view"},Ju={class:"toolbar"},Gu=["disabled"],zu=["disabled"],Yu=["disabled"],Xu=["disabled"],Qu=["disabled"],Zu=["disabled"],ec={class:"settings-sections"},tc={class:"editor-panel"},nc={class:"split-view"},sc={class:"list-view"},lc={class:"list-view"},ic={class:"inspector"},rc=kr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",recognize:"识别",confirm:"确认",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",materialCategories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],s=z("dashboard"),l=z(null),i=z(null),r=z(null),a=z(null),c=z(null),g=z(null),p=z(null),y=z([]),O=z(null),M=z([]),q=z([]),L=z([]),oe=z(null),B=z({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),H=z(null),Y=z(""),k=z(null),ae=z(null),V=z({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ye=z(null),ue=z({display_name:"",image_uri:"",tags:"",category_id:""}),fe=z({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),he=z({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Ke=z(null),xe=z({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),st=z(null),Ce=z(""),Tt=z(!0),j=z(""),X=z(""),K=xt(()=>{var m,v;return((v=(m=r.value)==null?void 0:m.items[0])==null?void 0:v.profile_id)??""}),lt=xt(()=>{var m,v;return((v=(m=r.value)==null?void 0:m.items[0])==null?void 0:v.name)??t.noProfile}),Ot=xt(()=>{var v;const m=(v=i.value)==null?void 0:v.queue;return m?m.pending+m.running+m.failed+m.dead_letter:0}),it=xt(()=>{var m;return((m=O.value)==null?void 0:m.items.filter(v=>v.recognition_status!=="confirmed").length)??0}),Re=xt(()=>{var m;return(((m=O.value)==null?void 0:m.items)??[]).filter(v=>v.recognition_status==="confirmed")}),un=xt(()=>({dashboard:t.dashboard,profiles:t.profiles,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[s.value]);ui(Vt);async function Vt(){var m;Tt.value=!0,X.value="";try{const[v,me,Se,rt,pn,Nt,hn,gn,_n,vn,mn]=await Promise.all([_e(U.uiBootstrap),_e(U.dashboardSummary),_e(U.profiles,{page:1,page_size:20}),_e(U.jobs,{page:1,page_size:20}),_e(U.settingsSchema),_e(U.settingsCurrent),_e(U.storageStatus),_e(U.materialCategories),_e(U.materials,{page:1,page_size:24}),_e(U.apiDiscoveryDialects),_e(U.apiDiscoveryCapabilities)]);l.value=v,i.value=me,r.value=Se,a.value=rt,c.value=pn,g.value=Nt,J(Nt.config),p.value=hn,y.value=gn,O.value=_n,q.value=vn,L.value=mn,await Dt((m=Se.items[0])==null?void 0:m.profile_id),await Jn()}catch(v){X.value=v instanceof Error?v.message:t.loadFailed}finally{Tt.value=!1}}async function Jn(){const[m,v,me,Se,rt]=await Promise.allSettled([_e(U.generationLogs,{limit:12}),_e(U.workflowLogs,{limit:12}),_e(U.errorLogs,{limit:12}),_e(U.integrationLogs,{limit:12}),_e(U.auditLogs,{limit:12})]);B.value={generation:Ne(m),workflows:Ne(v),errors:Ne(me),integrations:Ne(Se),audit:Ne(rt)}}function Ne(m){return m.status==="fulfilled"?m.value:[]}async function Dt(m){if(!m){M.value=[];return}M.value=await _e(U.wardrobe(m))}async function ee(m,v,me=!0){j.value=m,X.value="";try{const Se=await v();Ce.value=`${m}${t.complete}`,m===t.exportSettings&&(Ce.value=`${t.exportDone}: ${!!Se.redacted}`),me&&await Vt()}catch(Se){X.value=Se instanceof Error?Se.message:`${m}${t.failed}`}finally{j.value=""}}function cn(m){return ee(t.retry,()=>ve(U.jobRetry(m)))}function vt(m){return ee(t.cancel,()=>ve(U.jobCancel(m)))}function Ls(){V.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ye.value=null}function u(){return ee(t.quickDraft,async()=>(ye.value=await ve(U.quickProfileDraft,{questionnaire:{name:V.value.name,identity:V.value.identity,personality:qe(V.value.personality),hair_color:V.value.hair_color,hairstyle:V.value.hairstyle,eye_color:V.value.eye_color,style:V.value.style,clothing_keywords:qe(V.value.clothing_keywords)}}),ye.value),!1)}function f(){var v;const m=(v=ye.value)==null?void 0:v.profile_preview;return ee(t.create,async()=>{const me=await ve(U.profiles,{name:(m==null?void 0:m.name)||V.value.name,description:V.value.description,base_prompt:m==null?void 0:m.base_prompt,appearance_prompt:m==null?void 0:m.appearance_prompt,style_prompt:m==null?void 0:m.style_prompt,negative_prompt:m==null?void 0:m.negative_prompt});return Ls(),Ce.value=t.profileCreated,me})}function _(m){return ee(t.delete,async()=>{const v=await Qt(U.profile(m),{method:"DELETE"});return Ce.value=t.profileDeleted,v})}function C(){return ee(t.moveFailed,()=>ve(U.jobDeadLetterMoveFailed,{limit:20}))}function x(){return ee(t.retryDead,()=>ve(U.jobDeadLetterRetry,{limit:20}))}function b(){var v;const m=((v=q.value[0])==null?void 0:v.dialect)??"unknown";return ee(t.safeProbe,()=>ve(U.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:m,capabilities:{supports:["text_to_image"]}}))}function P(){return ee(t.validatePlan,async()=>(st.value=await ve(U.apiDiscoveryValidateRenderPlan,{provider_id:xe.value.provider_id,model_id:xe.value.model_id,required_capabilities:qe(xe.value.required_capabilities)}),st.value),!1)}function E(m,v){return ee(t.discovery,()=>ve(U.apiDiscoveryManualOverride,{provider_id:m.provider_id,model_id:m.model_id,dialect:m.dialect,status:v,capabilities:m.capabilities}))}function S(){const m=K.value;return m?ee(t.matchWardrobe,async()=>(oe.value=await ve(U.wardrobeMatch(m),{tags:["daily"]}),oe.value),!1):Promise.resolve()}function w(){fe.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function R(){const m=K.value;return m?ee(t.importToWardrobe,async()=>{const v=await ve(U.wardrobeImportMaterial(m),{material_id:fe.value.material_id,wardrobe_category:fe.value.wardrobe_category,tags:qe(fe.value.tags),season:fe.value.season||void 0,style:fe.value.style||void 0});return w(),Ce.value=t.wardrobeImported,v}):Promise.resolve()}function T(m){const v=K.value;return v?ee(t.delete,async()=>{const me=await Qt(U.wardrobeItem(v,m),{method:"DELETE"});return Ce.value=t.wardrobeDeleted,me}):Promise.resolve()}function I(){const m=K.value;return m?ee(t.dailyOutfit,async()=>(Ke.value=await ve(U.privateCompanionDailyOutfit,{profile_id:m,categories:qe(he.value.categories),mood:he.value.mood,weather:he.value.weather,keywords:qe(he.value.keywords),request_source:"astrbot_plugin_private_companion"}),Ce.value=t.outfitGenerated,Ke.value),!1):Promise.resolve()}function F(){return ee(t.reload,async()=>{var v;const m=await ve(U.settingsReload);return g.value={config_path:((v=g.value)==null?void 0:v.config_path)??"***PATH***",config:m.config},J(m.config),m},!1)}function W(){return ee(t.exportSettings,()=>_e(U.settingsExport),!1)}function J(m=(v=>(v=g.value)==null?void 0:v.config)()??{}){Y.value=JSON.stringify(m,null,2),k.value=null,ae.value=null}function G(){try{const m=JSON.parse(Y.value);if(!m||Array.isArray(m)||typeof m!="object")throw new Error(t.settingsDraftInvalid);return m}catch(m){throw new Error(m instanceof Error?m.message:t.settingsDraftInvalid)}}function de(){return ee(t.validate,async()=>(k.value=await ve(U.settingsValidate,{config:G()}),k.value),!1)}function ge(){return ee(t.diff,async()=>(ae.value=await ve(U.settingsDiff,{config:G()}),ae.value),!1)}function Le(){return ee(t.save,async()=>{var v;const m=await ve(U.settingsSave,{config:G()});return g.value={config_path:((v=g.value)==null?void 0:v.config_path)??"***PATH***",config:m.config},J(m.config),Ce.value=t.settingsSaved,m},!1)}function Fe(){var v,me;const m=(me=(v=O.value)==null?void 0:v.items.find(Se=>{var rt;return(rt=Se.image_uri)==null?void 0:rt.startsWith("storage://")}))==null?void 0:me.image_uri;return m?ee(t.signMaterial,async()=>(H.value=await _e(U.mediaSign,{uri:m}),H.value),!1):(Ce.value=t.noSignableMaterial,Promise.resolve())}function mt(){ue.value={display_name:"",image_uri:"",tags:"",category_id:""}}function fn(){return ee(t.create,async()=>{const m=await ve(U.materials,{display_name:ue.value.display_name,image_uri:ue.value.image_uri||void 0,thumbnail_uri:ue.value.image_uri||void 0,category_id:ue.value.category_id||void 0,tags:qe(ue.value.tags),recognition_status:ue.value.image_uri?"pending_recognition":"pending_upload"});return mt(),Ce.value=t.materialCreated,m})}function Oe(m){return ee(t.recognize,()=>ve(U.materialRecognize(m)))}function $e(m){return ee(t.confirm,()=>ve(U.materialConfirm(m.material_id),{display_name:m.display_name,prompt:m.prompt,negative_prompt:m.negative_prompt,tags:m.tags}))}function dn(m){return ee(t.archive,async()=>{const v=await Qt(U.material(m),{method:"DELETE"});return Ce.value=t.materialArchived,v})}function qe(m){return m.split(",").map(v=>v.trim()).filter(Boolean)}function Gn(m=0){return m<1024?`${m} B`:m<1024*1024?`${(m/1024).toFixed(1)} KB`:m<1024*1024*1024?`${(m/1024/1024).toFixed(1)} MB`:`${(m/1024/1024/1024).toFixed(1)} GB`}function Fs(m){var v,me;return((me=(v=p.value)==null?void 0:v.roots.find(Se=>Se.uri_prefix===m))==null?void 0:me.bytes)??0}return(m,v)=>{var me,Se,rt,pn,Nt,hn,gn,_n,vn,mn,$s,js,Vs,Ns,Bs,Us,Hs,Ws,Ks,qs,Js,Gs;return D(),A("main",da,[o("aside",pa,[o("div",ha,[o("strong",null,d(((me=l.value)==null?void 0:me.display_name)??"ImageStudio"),1),o("span",null,d(((Se=l.value)==null?void 0:Se.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(D(),A(ie,null,Ee(n,h=>o("button",{key:h.key,type:"button",class:Nn({active:s.value===h.key}),onClick:Je=>s.value=h.key},d(h.label),11,ga)),64))])]),o("section",_a,[o("header",va,[o("div",null,[o("h1",null,d(un.value),1),o("p",null,d(((rt=i.value)==null?void 0:rt.plugin_status)??"loading")+" / "+d(Ce.value||t.waiting),1)]),o("div",ma,[o("button",{type:"button",disabled:!!j.value,onClick:Vt},d(j.value||t.refresh),9,ya)])]),X.value?(D(),A("section",ba,d(X.value),1)):Tt.value?(D(),A("section",wa,d(t.loading),1)):(D(),A(ie,{key:2},[s.value==="dashboard"?(D(),A("section",xa,[o("article",null,[o("span",null,d(t.profiles),1),o("strong",null,d(((pn=i.value)==null?void 0:pn.active_profiles)??0),1)]),o("article",null,[o("span",null,d(t.jobs),1),o("strong",null,d(Ot.value),1)]),o("article",null,[o("span",null,d(t.materials),1),o("strong",null,d(((Nt=O.value)==null?void 0:Nt.total)??0),1)]),o("article",null,[o("span",null,d(t.storage),1),o("strong",null,d(Gn(((hn=p.value)==null?void 0:hn.total_bytes)??((gn=i.value)==null?void 0:gn.storage.total_bytes))),1)])])):le("",!0),s.value==="profiles"?(D(),A("section",Ca,[o("header",null,[o("h2",null,d(t.profileList),1),o("span",null,d(((_n=r.value)==null?void 0:_n.total)??0),1)]),o("div",Sa,[o("label",null,[o("span",null,d(t.name),1),se(o("input",{"onUpdate:modelValue":v[0]||(v[0]=h=>V.value.name=h),type:"text"},null,512),[[ce,V.value.name]])]),o("label",null,[o("span",null,d(t.identity),1),se(o("input",{"onUpdate:modelValue":v[1]||(v[1]=h=>V.value.identity=h),type:"text"},null,512),[[ce,V.value.identity]])]),o("label",null,[o("span",null,d(t.personality),1),se(o("input",{"onUpdate:modelValue":v[2]||(v[2]=h=>V.value.personality=h),type:"text",placeholder:"calm, brave"},null,512),[[ce,V.value.personality]])]),o("label",null,[o("span",null,d(t.hairColor),1),se(o("input",{"onUpdate:modelValue":v[3]||(v[3]=h=>V.value.hair_color=h),type:"text"},null,512),[[ce,V.value.hair_color]])]),o("label",null,[o("span",null,d(t.hairstyle),1),se(o("input",{"onUpdate:modelValue":v[4]||(v[4]=h=>V.value.hairstyle=h),type:"text"},null,512),[[ce,V.value.hairstyle]])]),o("label",null,[o("span",null,d(t.eyeColor),1),se(o("input",{"onUpdate:modelValue":v[5]||(v[5]=h=>V.value.eye_color=h),type:"text"},null,512),[[ce,V.value.eye_color]])]),o("label",null,[o("span",null,d(t.stylePrompt),1),se(o("input",{"onUpdate:modelValue":v[6]||(v[6]=h=>V.value.style=h),type:"text"},null,512),[[ce,V.value.style]])]),o("label",null,[o("span",null,d(t.tags),1),se(o("input",{"onUpdate:modelValue":v[7]||(v[7]=h=>V.value.clothing_keywords=h),type:"text",placeholder:"white blouse, ribbon"},null,512),[[ce,V.value.clothing_keywords]])]),o("label",Ea,[o("span",null,d(t.description),1),se(o("input",{"onUpdate:modelValue":v[8]||(v[8]=h=>V.value.description=h),type:"text"},null,512),[[ce,V.value.description]])]),o("button",{type:"button",disabled:!!j.value||!V.value.name,onClick:u},d(t.quickDraft),9,Pa),o("button",{type:"button",disabled:!!j.value||!V.value.name,onClick:f},d(t.create),9,Ta)]),ye.value?(D(),A("pre",Oa,d(JSON.stringify(ye.value,null,2)),1)):le("",!0),o("ul",null,[(D(!0),A(ie,null,Ee(((vn=r.value)==null?void 0:vn.items)??[],h=>(D(),A("li",{key:h.profile_id},[o("div",null,[o("strong",null,d(h.name),1),o("small",null,d(h.profile_id),1)]),o("div",Da,[o("span",Aa,d(h.status),1),o("button",{type:"button",disabled:!!j.value,onClick:Je=>_(h.profile_id)},d(t.delete),9,Ma)])]))),128)),(mn=r.value)!=null&&mn.items.length?le("",!0):(D(),A("li",Ia,d(t.emptyProfiles),1))])])):le("",!0),s.value==="materials"?(D(),A("section",ka,[o("div",Ra,[o("header",null,[o("h2",null,d(t.materialCategories),1),o("span",null,d(y.value.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(y.value,h=>(D(),A("li",{key:h.category_id},[o("div",null,[o("strong",null,d(h.name),1),o("small",null,d(h.category_type),1)]),o("span",null,d(h.sort_order),1)]))),128)),y.value.length?le("",!0):(D(),A("li",La,d(t.emptyCategories),1))])]),o("div",Fa,[o("header",null,[o("h2",null,d(t.materialItems),1),o("div",$a,[o("span",null,d(it.value)+" "+d(t.pendingConfirm),1),o("button",{type:"button",disabled:!!j.value,onClick:Fe},d(t.signFirstImage),9,ja)])]),o("div",Va,[o("label",null,[o("span",null,d(t.name),1),se(o("input",{"onUpdate:modelValue":v[9]||(v[9]=h=>ue.value.display_name=h),type:"text"},null,512),[[ce,ue.value.display_name]])]),o("label",null,[o("span",null,d(t.imageUri),1),se(o("input",{"onUpdate:modelValue":v[10]||(v[10]=h=>ue.value.image_uri=h),type:"text",placeholder:"storage://materials/example.png"},null,512),[[ce,ue.value.image_uri]])]),o("label",null,[o("span",null,d(t.category),1),se(o("select",{"onUpdate:modelValue":v[11]||(v[11]=h=>ue.value.category_id=h)},[o("option",Na,d(t.allCategories),1),(D(!0),A(ie,null,Ee(y.value,h=>(D(),A("option",{key:h.category_id,value:h.category_id},d(h.name),9,Ba))),128))],512),[[El,ue.value.category_id]])]),o("label",null,[o("span",null,d(t.tags),1),se(o("input",{"onUpdate:modelValue":v[12]||(v[12]=h=>ue.value.tags=h),type:"text",placeholder:"daily, top"},null,512),[[ce,ue.value.tags]])]),o("button",{type:"button",disabled:!!j.value||!ue.value.display_name,onClick:fn},d(t.create),9,Ua)]),o("ul",null,[(D(!0),A(ie,null,Ee((($s=O.value)==null?void 0:$s.items)??[],h=>(D(),A("li",{key:h.material_id},[o("div",null,[o("strong",null,d(h.display_name),1),o("small",null,d(h.image_uri??t.noImage),1)]),o("div",Ha,[o("span",Wa,d(h.recognition_status),1),o("button",{type:"button",disabled:!!j.value,onClick:Je=>Oe(h.material_id)},d(t.recognize),9,Ka),o("button",{type:"button",disabled:!!j.value||h.recognition_status==="confirmed",onClick:Je=>$e(h)},d(t.confirm),9,qa),o("button",{type:"button",disabled:!!j.value,onClick:Je=>dn(h.material_id)},d(t.archive),9,Ja)])]))),128)),(js=O.value)!=null&&js.items.length?le("",!0):(D(),A("li",Ga,d(t.emptyMaterials),1))]),H.value?(D(),A("pre",za,d(JSON.stringify(H.value,null,2)),1)):le("",!0)])])):le("",!0),s.value==="wardrobe"?(D(),A("section",Ya,[o("header",null,[o("h2",null,d(lt.value),1),o("button",{type:"button",disabled:!K.value||!!j.value,onClick:S},d(t.match),9,Xa)]),o("div",Qa,[o("label",null,[o("span",null,d(t.selectMaterial),1),se(o("select",{"onUpdate:modelValue":v[13]||(v[13]=h=>fe.value.material_id=h)},[o("option",Za,d(t.selectMaterial),1),(D(!0),A(ie,null,Ee(Re.value,h=>(D(),A("option",{key:h.material_id,value:h.material_id},d(h.display_name),9,eu))),128))],512),[[El,fe.value.material_id]])]),o("label",null,[o("span",null,d(t.wardrobeCategory),1),se(o("input",{"onUpdate:modelValue":v[14]||(v[14]=h=>fe.value.wardrobe_category=h),type:"text"},null,512),[[ce,fe.value.wardrobe_category]])]),o("label",null,[o("span",null,d(t.tags),1),se(o("input",{"onUpdate:modelValue":v[15]||(v[15]=h=>fe.value.tags=h),type:"text",placeholder:"daily, top"},null,512),[[ce,fe.value.tags]])]),o("label",null,[o("span",null,d(t.season),1),se(o("input",{"onUpdate:modelValue":v[16]||(v[16]=h=>fe.value.season=h),type:"text"},null,512),[[ce,fe.value.season]])]),o("label",null,[o("span",null,d(t.style),1),se(o("input",{"onUpdate:modelValue":v[17]||(v[17]=h=>fe.value.style=h),type:"text"},null,512),[[ce,fe.value.style]])]),o("button",{type:"button",disabled:!!j.value||!K.value||!fe.value.material_id||!fe.value.wardrobe_category,onClick:R},d(t.importToWardrobe),9,tu)]),o("ul",null,[(D(!0),A(ie,null,Ee(M.value,h=>(D(),A("li",{key:h.wardrobe_item_id},[o("div",null,[o("strong",null,d(h.wardrobe_category),1),o("small",null,d(h.material_id)+" / "+d(h.tags.join(", ")||t.noTags),1)]),o("div",nu,[o("span",null,d(h.usage_count),1),o("button",{type:"button",disabled:!!j.value,onClick:Je=>T(h.wardrobe_item_id)},d(t.delete),9,su)])]))),128)),M.value.length?le("",!0):(D(),A("li",lu,d(t.emptyWardrobe),1))]),oe.value?(D(),A("pre",iu,d(JSON.stringify(oe.value,null,2)),1)):le("",!0),o("div",ru,[o("label",null,[o("span",null,d(t.categories),1),se(o("input",{"onUpdate:modelValue":v[18]||(v[18]=h=>he.value.categories=h),type:"text"},null,512),[[ce,he.value.categories]])]),o("label",null,[o("span",null,d(t.mood),1),se(o("input",{"onUpdate:modelValue":v[19]||(v[19]=h=>he.value.mood=h),type:"text"},null,512),[[ce,he.value.mood]])]),o("label",null,[o("span",null,d(t.weather),1),se(o("input",{"onUpdate:modelValue":v[20]||(v[20]=h=>he.value.weather=h),type:"text"},null,512),[[ce,he.value.weather]])]),o("label",null,[o("span",null,d(t.keywords),1),se(o("input",{"onUpdate:modelValue":v[21]||(v[21]=h=>he.value.keywords=h),type:"text"},null,512),[[ce,he.value.keywords]])]),o("button",{type:"button",disabled:!!j.value||!K.value,onClick:I},d(t.dailyOutfit),9,ou)]),Ke.value?(D(),A("pre",au,d(JSON.stringify(Ke.value,null,2)),1)):le("",!0)])):le("",!0),s.value==="jobs"?(D(),A("section",uu,[o("header",null,[o("h2",null,d(t.jobs),1),o("div",cu,[o("button",{type:"button",disabled:!!j.value,onClick:C},d(t.moveFailed),9,fu),o("button",{type:"button",disabled:!!j.value,onClick:x},d(t.retryDead),9,du)])]),o("ul",null,[(D(!0),A(ie,null,Ee(((Vs=a.value)==null?void 0:Vs.items)??[],h=>(D(),A("li",{key:h.task_id},[o("div",null,[o("strong",null,d(h.task_id),1),o("small",null,d(h.task_type)+" / "+d(h.progress)+"%",1)]),o("div",pu,[o("span",hu,d(h.status),1),h.status==="failed"?(D(),A("button",{key:0,type:"button",onClick:Je=>cn(h.task_id)},d(t.retry),9,gu)):le("",!0),h.status==="pending"?(D(),A("button",{key:1,type:"button",onClick:Je=>vt(h.task_id)},d(t.cancel),9,_u)):le("",!0)])]))),128)),(Ns=a.value)!=null&&Ns.items.length?le("",!0):(D(),A("li",vu,d(t.emptyJobs),1))])])):le("",!0),s.value==="discovery"?(D(),A("section",mu,[o("div",yu,[o("header",null,[o("h2",null,d(t.dialects),1),o("button",{type:"button",disabled:!!j.value,onClick:b},d(t.safeProbe),9,bu)]),o("ul",null,[(D(!0),A(ie,null,Ee(q.value,h=>(D(),A("li",{key:h.dialect},[o("div",null,[o("strong",null,d(h.label),1),o("small",null,d(h.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,d(h.dialect),1)]))),128))]),o("div",wu,[o("label",null,[o("span",null,d(t.provider),1),se(o("input",{"onUpdate:modelValue":v[22]||(v[22]=h=>xe.value.provider_id=h),type:"text",placeholder:"local-preview"},null,512),[[ce,xe.value.provider_id]])]),o("label",null,[o("span",null,d(t.model),1),se(o("input",{"onUpdate:modelValue":v[23]||(v[23]=h=>xe.value.model_id=h),type:"text",placeholder:"metadata-only"},null,512),[[ce,xe.value.model_id]])]),o("label",null,[o("span",null,d(t.requiredCapabilities),1),se(o("input",{"onUpdate:modelValue":v[24]||(v[24]=h=>xe.value.required_capabilities=h),type:"text",placeholder:"text_to_image"},null,512),[[ce,xe.value.required_capabilities]])]),o("button",{type:"button",disabled:!!j.value||!xe.value.provider_id||!xe.value.model_id,onClick:P},d(t.validatePlan),9,xu)]),st.value?(D(),A("pre",Cu,d(JSON.stringify(st.value,null,2)),1)):le("",!0)]),o("div",Su,[o("header",null,[o("h2",null,d(t.capabilityProfiles),1),o("span",null,d(L.value.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(L.value,h=>(D(),A("li",{key:h.capability_profile_id},[o("div",null,[o("strong",null,d(h.provider_id)+" / "+d(h.model_id),1),o("small",null,d(h.dialect),1)]),o("div",Eu,[o("span",Pu,d(h.status),1),o("button",{type:"button",disabled:!!j.value,onClick:Je=>E(h,"confirmed_supported")},d(t.support),9,Tu),o("button",{type:"button",disabled:!!j.value,onClick:Je=>E(h,"confirmed_unsupported")},d(t.unsupported),9,Ou),o("button",{type:"button",disabled:!!j.value,onClick:Je=>E(h,"unconfirmed")},d(t.unconfirmed),9,Du)])]))),128)),L.value.length?le("",!0):(D(),A("li",Au,d(t.emptyCapabilities),1))])])])):le("",!0),s.value==="logs"?(D(),A("section",Mu,[o("div",Iu,[o("div",ku,[o("header",null,[o("h2",null,d(t.generationLogs),1),o("span",null,d(B.value.generation.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(B.value.generation,h=>(D(),A("li",{key:h.task_id},[o("div",null,[o("strong",null,d(h.task_id),1),o("small",null,d(h.status)+" / "+d(h.progress)+"%",1)]),o("span",null,d(h.created_at),1)]))),128)),B.value.generation.length?le("",!0):(D(),A("li",Ru,d(t.emptyGenerationLogs),1))])]),o("div",Lu,[o("header",null,[o("h2",null,d(t.errorLogs),1),o("span",null,d(B.value.errors.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(B.value.errors,h=>(D(),A("li",{key:`${h.source}-${h.id}`},[o("div",null,[o("strong",null,d(h.source),1),o("small",null,d(h.error_message??t.noErrorDetail),1)]),o("span",Fu,d(h.status),1)]))),128)),B.value.errors.length?le("",!0):(D(),A("li",$u,d(t.emptyErrors),1))])])]),o("div",ju,[o("div",Vu,[o("header",null,[o("h2",null,d(t.workflowLogs),1),o("span",null,d(B.value.workflows.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(B.value.workflows,h=>(D(),A("li",{key:h.history_id},[o("div",null,[o("strong",null,d(h.action),1),o("small",null,d(h.title??h.workflow_id),1)]),o("span",null,d(h.branch_name??"main"),1)]))),128)),B.value.workflows.length?le("",!0):(D(),A("li",Nu,d(t.emptyWorkflowLogs),1))])]),o("div",Bu,[o("header",null,[o("h2",null,d(t.integrationLogs),1),o("span",null,d(B.value.integrations.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(B.value.integrations,h=>(D(),A("li",{key:h.integration_log_id},[o("div",null,[o("strong",null,d(h.integration_name),1),o("small",null,d(h.action),1)]),o("span",Uu,d(h.status),1)]))),128)),B.value.integrations.length?le("",!0):(D(),A("li",Hu,d(t.emptyIntegrationLogs),1))])])]),o("div",Wu,[o("header",null,[o("h2",null,d(t.auditLogs),1),o("span",null,d(B.value.audit.length),1)]),o("ul",null,[(D(!0),A(ie,null,Ee(B.value.audit,h=>(D(),A("li",{key:h.audit_id},[o("div",null,[o("strong",null,d(h.action),1),o("small",null,d(h.actor_type)+" / "+d(h.target_type)+" / "+d(h.target_id),1)]),o("span",null,d(h.created_at),1)]))),128)),B.value.audit.length?le("",!0):(D(),A("li",Ku,d(t.emptyAuditLogs),1))])])])):le("",!0),s.value==="settings"?(D(),A("section",qu,[o("div",Ju,[o("button",{type:"button",disabled:!!j.value,onClick:F},d(t.reload),9,Gu),o("button",{type:"button",disabled:!!j.value,onClick:v[25]||(v[25]=h=>J())},d(t.reset),9,zu),o("button",{type:"button",disabled:!!j.value,onClick:de},d(t.validate),9,Yu),o("button",{type:"button",disabled:!!j.value,onClick:ge},d(t.diff),9,Xu),o("button",{type:"button",disabled:!!j.value,onClick:Le},d(t.save),9,Qu),o("button",{type:"button",disabled:!!j.value,onClick:W},d(t.exportRedacted),9,Zu)]),o("div",ec,[(D(!0),A(ie,null,Ee(((Bs=c.value)==null?void 0:Bs.sections)??[],h=>(D(),A("article",{key:h.key},[o("h2",null,d(h.title),1),o("span",null,d(h.fields.length),1)]))),128))]),o("section",tc,[o("header",null,[o("h2",null,d(t.settingsEditor),1),o("span",null,d(((Us=g.value)==null?void 0:Us.config_path)??"***PATH***"),1)]),se(o("textarea",{"onUpdate:modelValue":v[26]||(v[26]=h=>Y.value=h),spellcheck:"false"},null,512),[[ce,Y.value]])]),o("div",nc,[o("div",sc,[o("header",null,[o("h2",null,d(t.validationResult),1),o("span",null,d(((Hs=k.value)==null?void 0:Hs.valid)??"-"),1)]),o("pre",null,d(JSON.stringify(k.value??{},null,2)),1)]),o("div",lc,[o("header",null,[o("h2",null,d(t.diffResult),1),o("span",null,d(((Ws=ae.value)==null?void 0:Ws.changes.length)??0),1)]),o("pre",null,d(JSON.stringify(ae.value??{},null,2)),1)])])])):le("",!0)],64))]),o("aside",ic,[o("h2",null,d(t.running),1),o("dl",null,[o("div",null,[v[27]||(v[27]=o("dt",null,"Pending",-1)),o("dd",null,d(((Ks=i.value)==null?void 0:Ks.queue.pending)??0),1)]),o("div",null,[v[28]||(v[28]=o("dt",null,"Running",-1)),o("dd",null,d(((qs=i.value)==null?void 0:qs.queue.running)??0),1)]),o("div",null,[v[29]||(v[29]=o("dt",null,"Failed",-1)),o("dd",null,d(((Js=i.value)==null?void 0:Js.queue.failed)??0),1)]),o("div",null,[v[30]||(v[30]=o("dt",null,"Dead",-1)),o("dd",null,d(((Gs=i.value)==null?void 0:Gs.queue.dead_letter)??0),1)])]),o("h2",null,d(t.storage),1),o("dl",null,[o("div",null,[v[31]||(v[31]=o("dt",null,"Images",-1)),o("dd",null,d(Gn(Fs("storage://images/"))),1)]),o("div",null,[v[32]||(v[32]=o("dt",null,"Materials",-1)),o("dd",null,d(Gn(Fs("storage://materials/"))),1)])])])])}}}),oc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,l]of t)n[s]=l;return n},ac=oc(rc,[["__scopeId","data-v-07ca9c0b"]]);ra(ac).mount("#app"); diff --git a/web/assets/index-DJ-aUUSl.css b/web/assets/index-DJ-aUUSl.css deleted file mode 100644 index 6e6a127..0000000 --- a/web/assets/index-DJ-aUUSl.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-07ca9c0b]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-07ca9c0b],.inspector[data-v-07ca9c0b]{background:#fff}.sidebar[data-v-07ca9c0b]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-07ca9c0b]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-07ca9c0b]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-07ca9c0b]{font-size:19px}.brand span[data-v-07ca9c0b],p[data-v-07ca9c0b],dt[data-v-07ca9c0b],.empty[data-v-07ca9c0b],small[data-v-07ca9c0b]{color:#667085}nav[data-v-07ca9c0b]{display:grid;gap:6px}button[data-v-07ca9c0b]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-07ca9c0b]:disabled{cursor:wait;opacity:.62}nav button[data-v-07ca9c0b]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-07ca9c0b]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-07ca9c0b]{min-width:0;padding:24px}.topbar[data-v-07ca9c0b],.list-view header[data-v-07ca9c0b],.toolbar[data-v-07ca9c0b],.inline-actions[data-v-07ca9c0b]{display:flex;gap:12px;align-items:center}.topbar[data-v-07ca9c0b],.list-view header[data-v-07ca9c0b]{justify-content:space-between}.actions[data-v-07ca9c0b],.inline-actions[data-v-07ca9c0b]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-07ca9c0b],.toolbar button[data-v-07ca9c0b],.list-view header button[data-v-07ca9c0b],.inline-actions button[data-v-07ca9c0b]{padding:0 14px}h1[data-v-07ca9c0b],h2[data-v-07ca9c0b],p[data-v-07ca9c0b],dl[data-v-07ca9c0b],dd[data-v-07ca9c0b]{margin:0}h1[data-v-07ca9c0b]{min-height:30px;font-size:26px}h2[data-v-07ca9c0b]{font-size:15px}.notice[data-v-07ca9c0b],article[data-v-07ca9c0b],.list-view[data-v-07ca9c0b],.editor-panel[data-v-07ca9c0b],pre[data-v-07ca9c0b]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-07ca9c0b]{margin-top:18px;padding:14px}.error[data-v-07ca9c0b]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-07ca9c0b],.split-view[data-v-07ca9c0b]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-07ca9c0b]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-07ca9c0b]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-07ca9c0b]{display:grid;gap:8px;padding:16px}article span[data-v-07ca9c0b]{color:#667085;font-size:13px}article strong[data-v-07ca9c0b]{font-size:24px}.list-view[data-v-07ca9c0b],.logs-view[data-v-07ca9c0b],.settings-view[data-v-07ca9c0b]{margin-top:18px}.split-view .list-view[data-v-07ca9c0b],.logs-view .list-view[data-v-07ca9c0b]{margin-top:0}.list-view[data-v-07ca9c0b]{padding:16px}.editor-panel[data-v-07ca9c0b]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-07ca9c0b]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-07ca9c0b]{box-sizing:border-box;width:100%;min-height:300px;resize:vertical;border:1px solid #c7d0da;border-radius:6px;padding:12px;color:#1b2430;background:#fbfcfd;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.form-grid[data-v-07ca9c0b]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding:12px;border:1px solid #eef1f5;border-radius:8px;background:#fbfcfd}label[data-v-07ca9c0b]{display:grid;gap:5px;min-width:0}label span[data-v-07ca9c0b]{color:#667085;font-size:12px}.wide-field[data-v-07ca9c0b]{grid-column:1 / -1}input[data-v-07ca9c0b],select[data-v-07ca9c0b]{box-sizing:border-box;width:100%;min-height:34px;border:1px solid #c7d0da;border-radius:6px;padding:0 10px;color:#1b2430;background:#fff;font:inherit}ul[data-v-07ca9c0b]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-07ca9c0b]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-07ca9c0b]:first-child{border-top:0}li>div[data-v-07ca9c0b]{display:grid;gap:3px;min-width:0}li strong[data-v-07ca9c0b],li span[data-v-07ca9c0b],li small[data-v-07ca9c0b]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-07ca9c0b]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-07ca9c0b]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-07ca9c0b]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-07ca9c0b]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-07ca9c0b]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-07ca9c0b]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-07ca9c0b]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-07ca9c0b]{display:none}}@media(max-width:820px){.web-shell[data-v-07ca9c0b]{grid-template-columns:1fr}.sidebar[data-v-07ca9c0b]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-07ca9c0b]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-07ca9c0b]{text-align:center}.dashboard-grid[data-v-07ca9c0b],.split-view[data-v-07ca9c0b],.settings-sections[data-v-07ca9c0b]{grid-template-columns:1fr}.topbar[data-v-07ca9c0b],.list-view header[data-v-07ca9c0b]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DnBfG3sU.js b/web/assets/index-DnBfG3sU.js new file mode 100644 index 0000000..268dcf5 --- /dev/null +++ b/web/assets/index-DnBfG3sU.js @@ -0,0 +1,17 @@ +var qi=Object.defineProperty;var Ji=(e,t,n)=>t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>Ji(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Rt=[],tt=()=>{},Ml=()=>!1,$n=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ln=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,Q=(e,t)=>Gi.call(e,t),j=Array.isArray,$t=e=>rn(e)==="[object Map]",Fn=e=>rn(e)==="[object Set]",el=e=>rn(e)==="[object Date]",N=e=>typeof e=="function",he=e=>typeof e=="string",nt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Il=e=>(se(e)||N(e))&&N(e.then)&&N(e.catch),Rl=Object.prototype.toString,rn=e=>Rl.call(e),zi=e=>rn(e).slice(8,-1),$l=e=>rn(e)==="[object Object]",Ss=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Jt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Yi=/-\w/g,qe=jn(e=>e.replace(Yi,t=>t.slice(1).toUpperCase())),Xi=/\B([A-Z])/g,Ot=jn(e=>e.replace(Xi,"-$1").toLowerCase()),Ll=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=jn(e=>e?`on${Ll(e)}`:""),et=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let tl;const Bn=()=>tl||(tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ks(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Zi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Nn(e){let t="";if(he(e))t=e;else if(j(e))for(let n=0;nan(n,t))}const Vl=e=>!!(e&&e.__v_isRef===!0),d=e=>he(e)?e:e==null?"":j(e)||se(e)&&(e.toString===Rl||!N(e.toString))?Vl(e)?d(e.value):JSON.stringify(e,Bl,2):String(e),Bl=(e,t)=>Vl(t)?Bl(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],i)=>(n[Zn(s,i)+" =>"]=l,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Zn(n))}:nt(t)?Zn(t):se(t)&&!j(t)&&!$l(t)?String(t):t,Zn=(e,t="")=>{var n;return nt(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 xe;class oo{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&&xe&&(xe.active?(this.parent=xe,this.index=(xe.scopes||(xe.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;t0&&--this._on===0){if(xe===this)xe=this.prevScope;else{let t=xe;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,s;for(n=0,s=this.effects.length;n0)return;if(zt){let t=zt;for(zt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gt;){let t=Gt;for(Gt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Wl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kl(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),Ts(s),ao(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function fs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ql(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ql(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tn)||(e.globalVersion=tn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fs(e))))return;e.flags|=2;const t=e.dep,n=ie,s=Je;ie=e,Je=!0;try{Wl(e);const l=e.fn(e._value);(t.version===0||et(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{ie=n,Je=s,Kl(e),e.flags&=-3}}function Ts(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ts(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ao(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Je=!0;const Jl=[];function st(){Jl.push(Je),Je=!1}function lt(){const e=Jl.pop();Je=e===void 0?!0:e}function nl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ie;ie=void 0;try{t()}finally{ie=n}}}let tn=0;class uo{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 Os{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(!ie||!Je||ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ie)n=this.activeLink=new uo(ie,this),ie.deps?(n.prevDep=ie.depsTail,ie.depsTail.nextDep=n,ie.depsTail=n):ie.deps=ie.depsTail=n,Gl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ie.depsTail,n.nextDep=void 0,ie.depsTail.nextDep=n,ie.depsTail=n,ie.deps===n&&(ie.deps=s)}return n}trigger(t){this.version++,tn++,this.notify(t)}notify(t){Ps();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Es()}}}function Gl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Gl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ds=new WeakMap,Et=Symbol(""),ps=Symbol(""),nn=Symbol("");function Ee(e,t,n){if(Je&&ie){let s=ds.get(e);s||ds.set(e,s=new Map);let l=s.get(n);l||(s.set(n,l=new Os),l.map=s,l.key=n),l.track()}}function at(e,t,n,s,l,i){const r=ds.get(e);if(!r){tn++;return}const a=c=>{c&&c.trigger()};if(Ps(),t==="clear")r.forEach(a);else{const c=j(e),g=c&&Ss(n);if(c&&n==="length"){const h=Number(s);r.forEach((y,D)=>{(D==="length"||D===nn||!nt(D)&&D>=h)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),g&&a(r.get(nn)),t){case"add":c?g&&a(r.get("length")):(a(r.get(Et)),$t(e)&&a(r.get(ps)));break;case"delete":c||(a(r.get(Et)),$t(e)&&a(r.get(ps)));break;case"set":$t(e)&&a(r.get(Et));break}}Es()}function Mt(e){const t=X(e);return t===e?t:(Ee(t,"iterate",nn),He(e)?t:t.map(Ge))}function Un(e){return Ee(e=X(e),"iterate",nn),e}function Qe(e,t){return ft(e)?Vt(Tt(e)?Ge(t):t):Ge(t)}const co={__proto__:null,[Symbol.iterator](){return ts(this,Symbol.iterator,e=>Qe(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>j(t)?Mt(t):t))},entries(){return ts(this,"entries",e=>(e[1]=Qe(this,e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,n=>n.map(s=>Qe(this,s)),arguments)},find(e,t){return it(this,"find",e,t,n=>Qe(this,n),arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,n=>Qe(this,n),arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return ns(this,"includes",e)},indexOf(...e){return ns(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return ns(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return Ht(this,"pop")},push(...e){return Ht(this,"push",e)},reduce(e,...t){return sl(this,"reduce",e,t)},reduceRight(e,...t){return sl(this,"reduceRight",e,t)},shift(){return Ht(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return Ht(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return Ht(this,"unshift",e)},values(){return ts(this,"values",e=>Qe(this,e))}};function ts(e,t,n){const s=Un(e),l=s[t]();return s!==e&&!He(e)&&(l._next=l.next,l.next=()=>{const i=l._next();return i.done||(i.value=n(i.value)),i}),l}const fo=Array.prototype;function it(e,t,n,s,l,i){const r=Un(e),a=r!==e&&!He(e),c=r[t];if(c!==fo[t]){const y=c.apply(e,i);return a?Ge(y):y}let g=n;r!==e&&(a?g=function(y,D){return n.call(this,Qe(e,y),D,e)}:n.length>2&&(g=function(y,D){return n.call(this,y,D,e)}));const h=c.call(r,g,s);return a&&l?l(h):h}function sl(e,t,n,s){const l=Un(e),i=l!==e&&!He(e);let r=n,a=!1;l!==e&&(i?(a=s.length===0,r=function(g,h,y){return a&&(a=!1,g=Qe(e,g)),n.call(this,g,Qe(e,h),y,e)}):n.length>3&&(r=function(g,h,y){return n.call(this,g,h,y,e)}));const c=l[t](r,...s);return a?Qe(e,c):c}function ns(e,t,n){const s=X(e);Ee(s,"iterate",nn);const l=s[t](...n);return(l===-1||l===!1)&&Is(n[0])?(n[0]=X(n[0]),s[t](...n)):l}function Ht(e,t,n=[]){st(),Ps();const s=X(e)[t].apply(e,n);return Es(),lt(),s}const po=xs("__proto__,__v_isRef,__isVue"),zl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nt));function ho(e){nt(e)||(e=String(e));const t=X(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class Yl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(l?i?So:ei:i?Zl:Ql).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=j(t);if(!l){let c;if(r&&(c=co[n]))return c;if(n==="hasOwnProperty")return ho}const a=Reflect.get(t,n,Te(t)?t:s);if((nt(n)?zl.has(n):po(n))||(l||Ee(t,"get",n),i))return a;if(Te(a)){const c=r&&Ss(n)?a:a.value;return l&&se(c)?gs(c):c}return se(a)?l?gs(a):As(a):a}}class Xl extends Yl{constructor(t=!1){super(!1,t)}set(t,n,s,l){let i=t[n];const r=j(t)&&Ss(n);if(!this._isShallow){const g=ft(i);if(!He(s)&&!ft(s)&&(i=X(i),s=X(s)),!r&&Te(i)&&!Te(s))return g||(i.value=s),!0}const a=r?Number(n)e,bn=e=>Reflect.getPrototypeOf(e);function yo(e,t,n){return function(...s){const l=this.__v_raw,i=X(l),r=$t(i),a=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,g=l[e](...s),h=n?hs:t?Vt:Ge;return!t&&Ee(i,"iterate",c?ps:Et),Ce(Object.create(g),{next(){const{value:y,done:D}=g.next();return D?{value:y,done:D}:{value:a?[h(y[0]),h(y[1])]:h(y),done:D}}})}}function wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bo(e,t){const n={get(l){const i=this.__v_raw,r=X(i),a=X(l);e||(et(l,a)&&Ee(r,"get",l),Ee(r,"get",a));const{has:c}=bn(r),g=t?hs:e?Vt:Ge;if(c.call(r,l))return g(i.get(l));if(c.call(r,a))return g(i.get(a));i!==r&&i.get(l)},get size(){const l=this.__v_raw;return!e&&Ee(X(l),"iterate",Et),l.size},has(l){const i=this.__v_raw,r=X(i),a=X(l);return e||(et(l,a)&&Ee(r,"has",l),Ee(r,"has",a)),l===a?i.has(l):i.has(l)||i.has(a)},forEach(l,i){const r=this,a=r.__v_raw,c=X(a),g=t?hs:e?Vt:Ge;return!e&&Ee(c,"iterate",Et),a.forEach((h,y)=>l.call(i,g(h),g(y),r))}};return Ce(n,e?{add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear")}:{add(l){const i=X(this),r=bn(i),a=X(l),c=!t&&!He(l)&&!ft(l)?a:l;return r.has.call(i,c)||et(l,c)&&r.has.call(i,l)||et(a,c)&&r.has.call(i,a)||(i.add(c),at(i,"add",c,c)),this},set(l,i){!t&&!He(i)&&!ft(i)&&(i=X(i));const r=X(this),{has:a,get:c}=bn(r);let g=a.call(r,l);g||(l=X(l),g=a.call(r,l));const h=c.call(r,l);return r.set(l,i),g?et(i,h)&&at(r,"set",l,i):at(r,"add",l,i),this},delete(l){const i=X(this),{has:r,get:a}=bn(i);let c=r.call(i,l);c||(l=X(l),c=r.call(i,l)),a&&a.call(i,l);const g=i.delete(l);return c&&at(i,"delete",l,void 0),g},clear(){const l=X(this),i=l.size!==0,r=l.clear();return i&&at(l,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=yo(l,e,t)}),n}function Ds(e,t){const n=bo(e,t);return(s,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(Q(n,l)&&l in s?n:s,l,i)}const wo={get:Ds(!1,!1)},xo={get:Ds(!1,!0)},Co={get:Ds(!0,!1)};const Ql=new WeakMap,Zl=new WeakMap,ei=new WeakMap,So=new WeakMap;function ko(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function As(e){return ft(e)?e:Ms(e,!1,_o,wo,Ql)}function Po(e){return Ms(e,!1,mo,xo,Zl)}function gs(e){return Ms(e,!0,vo,Co,ei)}function Ms(e,t,n,s,l){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=l.get(e);if(i)return i;const r=ko(zi(e));if(r===0)return e;const a=new Proxy(e,r===2?s:n);return l.set(e,a),a}function Tt(e){return ft(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function Is(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Eo(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&Fl(e,"__v_skip",!0),e}const Ge=e=>se(e)?As(e):e,Vt=e=>se(e)?gs(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function J(e){return To(e,!1)}function To(e,t){return Te(e)?e:new Oo(e,t)}class Oo{constructor(t,n){this.dep=new Os,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:X(t),this._value=n?t:Ge(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||He(t)||ft(t);t=s?t:X(t),et(t,n)&&(this._rawValue=t,this._value=s?t:Ge(t),this.dep.trigger())}}function Do(e){return Te(e)?e.value:e}const Ao={get:(e,t,n)=>t==="__v_raw"?e:Do(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return Te(l)&&!Te(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function ti(e){return Tt(e)?e:new Proxy(e,Ao)}class Mo{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Os(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Hl(this,!0),!0}get value(){const t=this.dep.track();return ql(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Io(e,t,n=!1){let s,l;return N(e)?s=e:(s=e.get,l=e.set),new Mo(s,l,n)}const xn={},Pn=new WeakMap;let St;function Ro(e,t=!1,n=St){if(n){let s=Pn.get(n);s||Pn.set(n,s=[]),s.push(e)}}function $o(e,t,n=le){const{immediate:s,deep:l,once:i,scheduler:r,augmentJob:a,call:c}=n,g=R=>l?R:He(R)||l===!1||l===0?ut(R,1):ut(R);let h,y,D,A,K=!1,$=!1;if(Te(e)?(y=()=>e.value,K=He(e)):Tt(e)?(y=()=>g(e),K=!0):j(e)?($=!0,K=e.some(R=>Tt(R)||He(R)),y=()=>e.map(R=>{if(Te(R))return R.value;if(Tt(R))return g(R);if(N(R))return c?c(R,2):R()})):N(e)?t?y=c?()=>c(e,2):e:y=()=>{if(D){st();try{D()}finally{lt()}}const R=St;St=h;try{return c?c(e,3,[A]):e(A)}finally{St=R}}:y=tt,t&&l){const R=y,ae=l===!0?1/0:l;y=()=>ut(R(),ae)}const re=ro(),Z=()=>{h.stop(),re&&re.active&&Cs(re.effects,h)};if(i&&t){const R=t;t=(...ae)=>{const Se=R(...ae);return Z(),Se}}let H=$?new Array(e.length).fill(xn):xn;const V=R=>{if(!(!(h.flags&1)||!h.dirty&&!R))if(t){const ae=h.run();if(R||l||K||($?ae.some((Se,ke)=>et(Se,H[ke])):et(ae,H))){D&&D();const Se=St;St=h;try{const ke=[ae,H===xn?void 0:$&&H[0]===xn?[]:H,A];H=ae,c?c(t,3,ke):t(...ke)}finally{St=Se}}}else h.run()};return a&&a(V),h=new Nl(y),h.scheduler=r?()=>r(V,!1):V,A=R=>Ro(R,!1,h),D=h.onStop=()=>{const R=Pn.get(h);if(R){if(c)c(R,4);else for(const ae of R)ae();Pn.delete(h)}},t?s?V(!0):H=h.run():r?r(V.bind(null,!0),!0):h.run(),Z.pause=h.pause.bind(h),Z.resume=h.resume.bind(h),Z.stop=Z,Z}function ut(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Te(e))ut(e.value,t,n);else if(j(e))for(let s=0;s{ut(s,t,n)});else if($l(e)){for(const s in e)ut(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ut(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function un(e,t,n,s){try{return s?e(...s):e()}catch(l){Hn(l,t,n)}}function ze(e,t,n,s){if(N(e)){const l=un(e,t,n,s);return l&&Il(l)&&l.catch(i=>{Hn(i,t,n)}),l}if(j(e)){const l=[];for(let i=0;i>>1,l=Me[s],i=sn(l);i=sn(n)?Me.push(e):Me.splice(Fo(t),0,e),e.flags|=1,li()}}function li(){En||(En=ni.then(oi))}function jo(e){j(e)?Lt.push(...e):_t&&e.id===-1?_t.splice(It+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),li()}function ll(e,t,n=Xe+1){for(;nsn(n)-sn(s));if(Lt.length=0,_t){_t.push(...t);return}for(_t=t,It=0;It<_t.length;It++){const n=_t[It];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_t=null,It=0}}const sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function oi(e){try{for(Xe=0;Xe{s._d&&gl(-1);const i=Tn(t);let r;try{r=e(...l)}finally{Tn(i),s._d&&gl(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function te(e,t){if(Ue===null)return e;const n=Jn(Ue),s=e.dirs||(e.dirs=[]);for(let l=0;l1)return n&&N(t)?t.call(s&&s.proxy):t}}const No=Symbol.for("v-scx"),Uo=()=>Sn(No);function ss(e,t,n){return ai(e,t,n)}function ai(e,t,n=le){const{immediate:s,deep:l,flush:i,once:r}=n,a=Ce({},n),c=t&&s||!t&&i!=="post";let g;if(on){if(i==="sync"){const A=Uo();g=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=tt,A.resume=tt,A.pause=tt,A}}const h=Ie;a.call=(A,K,$)=>ze(A,h,K,$);let y=!1;i==="post"?a.scheduler=A=>{Fe(A,h&&h.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(A,K)=>{K?A():Rs(A)}),a.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,h&&(A.id=h.uid,A.i=h))};const D=$o(e,t,a);return on&&(g?g.push(D):c&&D()),D}function Ho(e,t,n){const s=this.proxy,l=he(e)?e.includes(".")?ui(s,e):()=>s[e]:e.bind(s,s);let i;N(t)?i=t:(i=t.handler,n=t);const r=cn(this),a=ai(l,i.bind(s),n);return r(),a}function ui(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;le.__isTeleport,ls=Symbol("_leaveCb");function $s(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$s(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 qo(e,t){return N(e)?Ce({name:e.name},t,{setup:e}):e}function ci(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function il(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const On=new WeakMap;function Yt(e,t,n,s,l=!1){if(j(e)){e.forEach(($,re)=>Yt($,t&&(j(t)?t[re]:t),n,s,l));return}if(Xt(s)&&!l){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Yt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Jn(s.component):s.el,r=l?null:i,{i:a,r:c}=e,g=t&&t.r,h=a.refs===le?a.refs={}:a.refs,y=a.setupState,D=X(y),A=y===le?Ml:$=>il(h,$)?!1:Q(D,$),K=($,re)=>!(re&&il(h,re));if(g!=null&&g!==c){if(ol(t),he(g))h[g]=null,A(g)&&(y[g]=null);else if(Te(g)){const $=t;K(g,$.k)&&(g.value=null),$.k&&(h[$.k]=null)}}if(N(c)){st();try{un(c,a,12,[r,h])}finally{lt()}}else{const $=he(c),re=Te(c);if($||re){const Z=()=>{if(e.f){const H=$?A(c)?y[c]:h[c]:K()||!e.k?c.value:h[e.k];if(l)j(H)&&Cs(H,i);else if(j(H))H.includes(i)||H.push(i);else if($)h[c]=[i],A(c)&&(y[c]=h[c]);else{const V=[i];K(c,e.k)&&(c.value=V),e.k&&(h[e.k]=V)}}else $?(h[c]=r,A(c)&&(y[c]=r)):re&&(K(c,e.k)&&(c.value=r),e.k&&(h[e.k]=r))};if(r){const H=()=>{Z(),On.delete(e)};H.id=-1,On.set(e,H),Fe(H,n)}else ol(e),Z()}}}function ol(e){const t=On.get(e);t&&(t.flags|=8,On.delete(e))}Bn().requestIdleCallback;Bn().cancelIdleCallback;const Xt=e=>!!e.type.__asyncLoader,fi=e=>e.type.__isKeepAlive;function Jo(e,t){di(e,"a",t)}function Go(e,t){di(e,"da",t)}function di(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Wn(t,s,n),n){let l=n.parent;for(;l&&l.parent;)fi(l.parent.vnode)&&zo(s,t,n,l),l=l.parent}}function zo(e,t,n,s){const l=Wn(t,e,s,!0);hi(()=>{Cs(s[t],l)},n)}function Wn(e,t,n=Ie,s=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{st();const a=cn(n),c=ze(t,n,e,r);return a(),lt(),c});return s?l.unshift(i):l.push(i),i}}const dt=e=>(t,n=Ie)=>{(!on||e==="sp")&&Wn(e,(...s)=>t(...s),n)},Yo=dt("bm"),pi=dt("m"),Xo=dt("bu"),Qo=dt("u"),Zo=dt("bum"),hi=dt("um"),er=dt("sp"),tr=dt("rtg"),nr=dt("rtc");function sr(e,t=Ie){Wn("ec",e,t)}const lr=Symbol.for("v-ndc");function ye(e,t,n,s){let l;const i=n,r=j(e);if(r||he(e)){const a=r&&Tt(e);let c=!1,g=!1;a&&(c=!He(e),g=ft(e),e=Un(e)),l=new Array(e.length);for(let h=0,y=e.length;ht(a,c,void 0,i));else{const a=Object.keys(e);l=new Array(a.length);for(let c=0,g=a.length;ce?$i(e)?Jn(e):_s(e.parent):null,Qt=Ce(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=>_s(e.parent),$root:e=>_s(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_i(e),$forceUpdate:e=>e.f||(e.f=()=>{Rs(e.update)}),$nextTick:e=>e.n||(e.n=si.bind(e.proxy)),$watch:e=>Ho.bind(e)}),is=(e,t)=>e!==le&&!e.__isScriptSetup&&Q(e,t),ir={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:l,props:i,accessCache:r,type:a,appContext:c}=e;if(t[0]!=="$"){const D=r[t];if(D!==void 0)switch(D){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(is(s,t))return r[t]=1,s[t];if(l!==le&&Q(l,t))return r[t]=2,l[t];if(Q(i,t))return r[t]=3,i[t];if(n!==le&&Q(n,t))return r[t]=4,n[t];vs&&(r[t]=0)}}const g=Qt[t];let h,y;if(g)return t==="$attrs"&&Ee(e.attrs,"get",""),g(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==le&&Q(n,t))return r[t]=4,n[t];if(y=c.config.globalProperties,Q(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:i}=e;return is(l,t)?(l[t]=n,!0):s!==le&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,props:i,type:r}},a){let c;return!!(n[a]||e!==le&&a[0]!=="$"&&Q(e,a)||is(t,a)||Q(i,a)||Q(s,a)||Q(Qt,a)||Q(l.config.globalProperties,a)||(c=r.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rl(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vs=!0;function or(e){const t=_i(e),n=e.proxy,s=e.ctx;vs=!1,t.beforeCreate&&al(t.beforeCreate,e,"bc");const{data:l,computed:i,methods:r,watch:a,provide:c,inject:g,created:h,beforeMount:y,mounted:D,beforeUpdate:A,updated:K,activated:$,deactivated:re,beforeDestroy:Z,beforeUnmount:H,destroyed:V,unmounted:R,render:ae,renderTracked:Se,renderTriggered:ke,errorCaptured:U,serverPrefetch:We,expose:Pe,inheritAttrs:de,components:ce,directives:be,filters:pt}=t;if(g&&rr(g,s,null),r)for(const W in r){const z=r[W];N(z)&&(s[W]=z.bind(n))}if(l){const W=l.call(n,n);se(W)&&(e.data=As(W))}if(vs=!0,i)for(const W in i){const z=i[W],B=N(z)?z.bind(n,n):N(z.get)?z.get.bind(n,n):tt,Ke=!N(z)&&N(z.set)?z.set.bind(n):tt,we=kt({get:B,set:Ke});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>we.value,set:je=>we.value=je})}if(a)for(const W in a)gi(a[W],s,n,W);if(c){const W=N(c)?c.call(n):c;Reflect.ownKeys(W).forEach(z=>{Bo(z,W[z])})}h&&al(h,e,"c");function _e(W,z){j(z)?z.forEach(B=>W(B.bind(n))):z&&W(z.bind(n))}if(_e(Yo,y),_e(pi,D),_e(Xo,A),_e(Qo,K),_e(Jo,$),_e(Go,re),_e(sr,U),_e(nr,Se),_e(tr,ke),_e(Zo,H),_e(hi,R),_e(er,We),j(Pe))if(Pe.length){const W=e.exposed||(e.exposed={});Pe.forEach(z=>{Object.defineProperty(W,z,{get:()=>n[z],set:B=>n[z]=B,enumerable:!0})})}else e.exposed||(e.exposed={});ae&&e.render===tt&&(e.render=ae),de!=null&&(e.inheritAttrs=de),ce&&(e.components=ce),be&&(e.directives=be),We&&ci(e)}function rr(e,t,n=tt){j(e)&&(e=ms(e));for(const s in e){const l=e[s];let i;se(l)?"default"in l?i=Sn(l.from||s,l.default,!0):i=Sn(l.from||s):i=Sn(l),Te(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function al(e,t,n){ze(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function gi(e,t,n,s){let l=s.includes(".")?ui(n,s):()=>n[s];if(he(e)){const i=t[e];N(i)&&ss(l,i)}else if(N(e))ss(l,e.bind(n));else if(se(e))if(j(e))e.forEach(i=>gi(i,t,n,s));else{const i=N(e.handler)?e.handler.bind(n):t[e.handler];N(i)&&ss(l,i,e)}}function _i(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let c;return a?c=a:!l.length&&!n&&!s?c=t:(c={},l.length&&l.forEach(g=>Dn(c,g,r,!0)),Dn(c,t,r)),se(t)&&i.set(t,c),c}function Dn(e,t,n,s=!1){const{mixins:l,extends:i}=t;i&&Dn(e,i,n,!0),l&&l.forEach(r=>Dn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=ar[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const ar={data:ul,props:cl,emits:cl,methods:Kt,computed:Kt,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:Kt,directives:Kt,watch:cr,provide:ul,inject:ur};function ul(e,t){return t?e?function(){return Ce(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function ur(e,t){return Kt(ms(e),ms(t))}function ms(e){if(j(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${qe(t)}Modifiers`]||e[`${Ot(t)}Modifiers`];function hr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let l=n;const i=t.startsWith("update:"),r=i&&pr(s,t.slice(7));r&&(r.trim&&(l=n.map(h=>he(h)?h.trim():h)),r.number&&(l=n.map(Vn)));let a,c=s[a=Qn(t)]||s[a=Qn(qe(t))];!c&&i&&(c=s[a=Qn(Ot(t))]),c&&ze(c,e,6,l);const g=s[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(g,e,6,l)}}const gr=new WeakMap;function mi(e,t,n=!1){const s=n?gr:t.emitsCache,l=s.get(e);if(l!==void 0)return l;const i=e.emits;let r={},a=!1;if(!N(e)){const c=g=>{const h=mi(g,t,!0);h&&(a=!0,Ce(r,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(se(e)&&s.set(e,null),null):(j(i)?i.forEach(c=>r[c]=null):Ce(r,i),se(e)&&s.set(e,r),r)}function Kn(e,t){return!e||!$n(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Ot(t))||Q(e,t))}function fl(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[i],slots:r,attrs:a,emit:c,render:g,renderCache:h,props:y,data:D,setupState:A,ctx:K,inheritAttrs:$}=e,re=Tn(e);let Z,H;try{if(n.shapeFlag&4){const R=l||s,ae=R;Z=Ze(g.call(ae,R,h,y,A,D,K)),H=a}else{const R=t;Z=Ze(R.length>1?R(y,{attrs:a,slots:r,emit:c}):R(y,null)),H=t.props?a:_r(a)}}catch(R){Zt.length=0,Hn(R,e,1),Z=ct(vt)}let V=Z;if(H&&$!==!1){const R=Object.keys(H),{shapeFlag:ae}=V;R.length&&ae&7&&(i&&R.some(Ln)&&(H=vr(H,i)),V=Bt(V,H,!1,!0))}return n.dirs&&(V=Bt(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition&&$s(V,n.transition),Z=V,Tn(re),Z}const _r=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},vr=(e,t)=>{const n={};for(const s in e)(!Ln(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function mr(e,t,n){const{props:s,children:l,component:i}=e,{props:r,children:a,patchFlag:c}=t,g=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?dl(s,r,g):!!r;if(c&8){const h=t.dynamicProps;for(let y=0;yObject.create(bi),xi=e=>Object.getPrototypeOf(e)===bi;function br(e,t,n,s=!1){const l={},i=wi();e.propsDefaults=Object.create(null),Ci(e,t,l,i);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=s?l:Po(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function wr(e,t,n,s){const{props:l,attrs:i,vnode:{patchFlag:r}}=e,a=X(l),[c]=e.propsOptions;let g=!1;if((s||r>0)&&!(r&16)){if(r&8){const h=e.vnode.dynamicProps;for(let y=0;y{c=!0;const[D,A]=Si(y,t,!0);Ce(r,D),A&&a.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!c)return se(e)&&s.set(e,Rt),Rt;if(j(i))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",Fs=e=>j(e)?e.map(Ze):[Ze(e)],Cr=(e,t,n)=>{if(t._n)return t;const s=Vo((...l)=>Fs(t(...l)),n);return s._c=!1,s},ki=(e,t,n)=>{const s=e._ctx;for(const l in e){if(Ls(l))continue;const i=e[l];if(N(i))t[l]=Cr(l,i,s);else if(i!=null){const r=Fs(i);t[l]=()=>r}}},Pi=(e,t)=>{const n=Fs(t);e.slots.default=()=>n},Ei=(e,t,n)=>{for(const s in t)(n||!Ls(s))&&(e[s]=t[s])},Sr=(e,t,n)=>{const s=e.slots=wi();if(e.vnode.shapeFlag&32){const l=t._;l?(Ei(s,t,n),n&&Fl(s,"_",l,!0)):ki(t,s)}else t&&Pi(e,t)},kr=(e,t,n)=>{const{vnode:s,slots:l}=e;let i=!0,r=le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ei(l,t,n):(i=!t.$stable,ki(t,l)),r=t}else t&&(Pi(e,t),r={default:1});if(i)for(const a in l)!Ls(a)&&r[a]==null&&delete l[a]},Fe=Dr;function Pr(e){return Er(e)}function Er(e,t){const n=Bn();n.__VUE__=!0;const{insert:s,remove:l,patchProp:i,createElement:r,createText:a,createComment:c,setText:g,setElementText:h,parentNode:y,nextSibling:D,setScopeId:A=tt,insertStaticContent:K}=e,$=(u,f,m,C=null,x=null,b=null,P=void 0,k=null,S=!!f.dynamicChildren)=>{if(u===f)return;u&&!Wt(u,f)&&(C=ht(u),je(u,x,b,!0),u=null),f.patchFlag===-2&&(S=!1,f.dynamicChildren=null);const{type:w,ref:I,shapeFlag:E}=f;switch(w){case qn:re(u,f,m,C);break;case vt:Z(u,f,m,C);break;case rs:u==null&&H(f,m,C,P);break;case ne:ce(u,f,m,C,x,b,P,k,S);break;default:E&1?ae(u,f,m,C,x,b,P,k,S):E&6?be(u,f,m,C,x,b,P,k,S):(E&64||E&128)&&w.process(u,f,m,C,x,b,P,k,S,yt)}I!=null&&x?Yt(I,u&&u.ref,b,f||u,!f):I==null&&u&&u.ref!=null&&Yt(u.ref,null,b,u,!0)},re=(u,f,m,C)=>{if(u==null)s(f.el=a(f.children),m,C);else{const x=f.el=u.el;f.children!==u.children&&g(x,f.children)}},Z=(u,f,m,C)=>{u==null?s(f.el=c(f.children||""),m,C):f.el=u.el},H=(u,f,m,C)=>{[u.el,u.anchor]=K(u.children,f,m,C,u.el,u.anchor)},V=({el:u,anchor:f},m,C)=>{let x;for(;u&&u!==f;)x=D(u),s(u,m,C),u=x;s(f,m,C)},R=({el:u,anchor:f})=>{let m;for(;u&&u!==f;)m=D(u),l(u),u=m;l(f)},ae=(u,f,m,C,x,b,P,k,S)=>{if(f.type==="svg"?P="svg":f.type==="math"&&(P="mathml"),u==null)Se(f,m,C,x,b,P,k,S);else{const w=u.el&&u.el._isVueCE?u.el:null;try{w&&w._beginPatch(),We(u,f,x,b,P,k,S)}finally{w&&w._endPatch()}}},Se=(u,f,m,C,x,b,P,k)=>{let S,w;const{props:I,shapeFlag:E,transition:M,dirs:L}=u;if(S=u.el=r(u.type,b,I&&I.is,I),E&8?h(S,u.children):E&16&&U(u.children,S,null,C,x,os(u,b),P,k),L&&xt(u,null,C,"created"),ke(S,u,u.scopeId,P,C),I){for(const ee in I)ee!=="value"&&!Jt(ee)&&i(S,ee,null,I[ee],b,C);"value"in I&&i(S,"value",null,I.value,b),(w=I.onVnodeBeforeMount)&&Ye(w,C,u)}L&&xt(u,null,C,"beforeMount");const q=Tr(x,M);q&&M.beforeEnter(S),s(S,f,m),((w=I&&I.onVnodeMounted)||q||L)&&Fe(()=>{try{w&&Ye(w,C,u),q&&M.enter(S),L&&xt(u,null,C,"mounted")}finally{}},x)},ke=(u,f,m,C,x)=>{if(m&&A(u,m),C)for(let b=0;b{for(let w=S;w{const k=f.el=u.el;let{patchFlag:S,dynamicChildren:w,dirs:I}=f;S|=u.patchFlag&16;const E=u.props||le,M=f.props||le;let L;if(m&&Ct(m,!1),(L=M.onVnodeBeforeUpdate)&&Ye(L,m,f,u),I&&xt(f,u,m,"beforeUpdate"),m&&Ct(m,!0),w&&(!u.dynamicChildren||u.dynamicChildren.length!==w.length)&&(S=0,P=!1,w=null),(E.innerHTML&&M.innerHTML==null||E.textContent&&M.textContent==null)&&h(k,""),w?Pe(u.dynamicChildren,w,k,m,C,os(f,x),b):P||z(u,f,k,null,m,C,os(f,x),b,!1),S>0){if(S&16)de(k,E,M,m,x);else if(S&2&&E.class!==M.class&&i(k,"class",null,M.class,x),S&4&&i(k,"style",E.style,M.style,x),S&8){const q=f.dynamicProps;for(let ee=0;ee{L&&Ye(L,m,f,u),I&&xt(f,u,m,"updated")},C)},Pe=(u,f,m,C,x,b,P)=>{for(let k=0;k{if(f!==m){if(f!==le)for(const b in f)!Jt(b)&&!(b in m)&&i(u,b,f[b],null,x,C);for(const b in m){if(Jt(b))continue;const P=m[b],k=f[b];P!==k&&b!=="value"&&i(u,b,k,P,x,C)}"value"in m&&i(u,"value",f.value,m.value,x)}},ce=(u,f,m,C,x,b,P,k,S)=>{const w=f.el=u?u.el:a(""),I=f.anchor=u?u.anchor:a("");let{patchFlag:E,dynamicChildren:M,slotScopeIds:L}=f;L&&(k=k?k.concat(L):L),u==null?(s(w,m,C),s(I,m,C),U(f.children||[],m,I,x,b,P,k,S)):E>0&&E&64&&M&&u.dynamicChildren&&u.dynamicChildren.length===M.length?(Pe(u.dynamicChildren,M,m,x,b,P,k),(f.key!=null||x&&f===x.subTree)&&Ti(u,f,!0)):z(u,f,m,I,x,b,P,k,S)},be=(u,f,m,C,x,b,P,k,S)=>{f.slotScopeIds=k,u==null?f.shapeFlag&512?x.ctx.activate(f,m,C,P,S):pt(f,m,C,x,b,P,S):Re(u,f,S)},pt=(u,f,m,C,x,b,P)=>{const k=u.component=Vr(u,C,x);if(fi(u)&&(k.ctx.renderer=yt),Nr(k,!1,P),k.asyncDep){if(x&&x.registerDep(k,_e,P),!u.el){const S=k.subTree=ct(vt);Z(null,S,f,m),u.placeholder=S.el}}else _e(k,u,f,m,x,b,P)},Re=(u,f,m)=>{const C=f.component=u.component;if(mr(u,f,m))if(C.asyncDep&&!C.asyncResolved){W(C,f,m);return}else C.next=f,C.update();else f.el=u.el,C.vnode=f},_e=(u,f,m,C,x,b,P)=>{const k=()=>{if(u.isMounted){let{next:E,bu:M,u:L,parent:q,vnode:ee}=u;{const Ne=Oi(u);if(Ne){E&&(E.el=ee.el,W(u,E,P)),Ne.asyncDep.then(()=>{Fe(()=>{u.isUnmounted||w()},x)});return}}let G=E,pe;Ct(u,!1),E?(E.el=ee.el,W(u,E,P)):E=ee,M&&Cn(M),(pe=E.props&&E.props.onVnodeBeforeUpdate)&&Ye(pe,q,E,ee),Ct(u,!0);const ve=fl(u),Be=u.subTree;u.subTree=ve,$(Be,ve,y(Be.el),ht(Be),u,x,b),E.el=ve.el,G===null&&yr(u,ve.el),L&&Fe(L,x),(pe=E.props&&E.props.onVnodeUpdated)&&Fe(()=>Ye(pe,q,E,ee),x)}else{let E;const{el:M,props:L}=f,{bm:q,m:ee,parent:G,root:pe,type:ve}=u,Be=Xt(f);Ct(u,!1),q&&Cn(q),!Be&&(E=L&&L.onVnodeBeforeMount)&&Ye(E,G,f),Ct(u,!0);{pe.ce&&pe.ce._hasShadowRoot()&&pe.ce._injectChildStyle(ve,u.parent?u.parent.type:void 0);const Ne=u.subTree=fl(u);$(null,Ne,m,C,u,x,b),f.el=Ne.el}if(ee&&Fe(ee,x),!Be&&(E=L&&L.onVnodeMounted)){const Ne=f;Fe(()=>Ye(E,G,Ne),x)}(f.shapeFlag&256||G&&Xt(G.vnode)&&G.vnode.shapeFlag&256)&&u.a&&Fe(u.a,x),u.isMounted=!0,f=m=C=null}};u.scope.on();const S=u.effect=new Nl(k);u.scope.off();const w=u.update=S.run.bind(S),I=u.job=S.runIfDirty.bind(S);I.i=u,I.id=u.uid,S.scheduler=()=>Rs(I),Ct(u,!0),w()},W=(u,f,m)=>{f.component=u;const C=u.vnode.props;u.vnode=f,u.next=null,wr(u,f.props,C,m),kr(u,f.children,m),st(),ll(u),lt()},z=(u,f,m,C,x,b,P,k,S=!1)=>{const w=u&&u.children,I=u?u.shapeFlag:0,E=f.children,{patchFlag:M,shapeFlag:L}=f;if(M>0){if(M&128){Ke(w,E,m,C,x,b,P,k,S);return}else if(M&256){B(w,E,m,C,x,b,P,k,S);return}}L&8?(I&16&&mt(w,x,b),E!==w&&h(m,E)):I&16?L&16?Ke(w,E,m,C,x,b,P,k,S):mt(w,x,b,!0):(I&8&&h(m,""),L&16&&U(E,m,C,x,b,P,k,S))},B=(u,f,m,C,x,b,P,k,S)=>{u=u||Rt,f=f||Rt;const w=u.length,I=f.length,E=Math.min(w,I);let M;for(M=0;MI?mt(u,x,b,!0,!1,E):U(f,m,C,x,b,P,k,S,E)},Ke=(u,f,m,C,x,b,P,k,S)=>{let w=0;const I=f.length;let E=u.length-1,M=I-1;for(;w<=E&&w<=M;){const L=u[w],q=f[w]=S?rt(f[w]):Ze(f[w]);if(Wt(L,q))$(L,q,m,null,x,b,P,k,S);else break;w++}for(;w<=E&&w<=M;){const L=u[E],q=f[M]=S?rt(f[M]):Ze(f[M]);if(Wt(L,q))$(L,q,m,null,x,b,P,k,S);else break;E--,M--}if(w>E){if(w<=M){const L=M+1,q=LM)for(;w<=E;)je(u[w],x,b,!0),w++;else{const L=w,q=w,ee=new Map;for(w=q;w<=M;w++){const Oe=f[w]=S?rt(f[w]):Ze(f[w]);Oe.key!=null&&ee.set(Oe.key,w)}let G,pe=0;const ve=M-q+1;let Be=!1,Ne=0;const bt=new Array(ve);for(w=0;w=ve){je(Oe,x,b,!0);continue}let De;if(Oe.key!=null)De=ee.get(Oe.key);else for(G=q;G<=M;G++)if(bt[G-q]===0&&Wt(Oe,f[G])){De=G;break}De===void 0?je(Oe,x,b,!0):(bt[De-q]=w+1,De>=Ne?Ne=De:Be=!0,$(Oe,f[De],m,null,x,b,P,k,S),pe++)}const dn=Be?Or(bt):Rt;for(G=dn.length-1,w=ve-1;w>=0;w--){const Oe=q+w,De=f[Oe],Dt=f[Oe+1],pn=Oe+1{const{el:b,type:P,transition:k,children:S,shapeFlag:w}=u;if(w&6){we(u.component.subTree,f,m,C);return}if(w&128){u.suspense.move(f,m,C);return}if(w&64){P.move(u,f,m,yt);return}if(P===ne){s(b,f,m);for(let E=0;Ek.enter(b),x));else{const{leave:E,delayLeave:M,afterLeave:L}=k,q=()=>{u.ctx.isUnmounted?l(b):s(b,f,m)},ee=()=>{const G=b._isLeaving||!!b[ls];b._isLeaving&&b[ls](!0),k.persisted&&!G?q():E(b,()=>{q(),L&&L()})};M?M(b,q,ee):ee()}else s(b,f,m)},je=(u,f,m,C=!1,x=!1)=>{const{type:b,props:P,ref:k,children:S,dynamicChildren:w,shapeFlag:I,patchFlag:E,dirs:M,cacheIndex:L,memo:q}=u;if(E===-2&&(x=!1),k!=null&&(st(),Yt(k,null,m,u,!0),lt()),L!=null&&(f.renderCache[L]=void 0),I&256){f.ctx.deactivate(u);return}const ee=I&1&&M,G=!Xt(u);let pe;if(G&&(pe=P&&P.onVnodeBeforeUnmount)&&Ye(pe,f,u),I&6)zn(u.component,m,C);else{if(I&128){u.suspense.unmount(m,C);return}ee&&xt(u,null,f,"beforeUnmount"),I&64?u.type.remove(u,f,m,yt,C):w&&!w.hasOnce&&(b!==ne||E>0&&E&64)?mt(w,f,m,!1,!0):(b===ne&&E&384||!x&&I&16)&&mt(S,f,m),C&&fn(u)}const ve=q!=null&&L==null;(G&&(pe=P&&P.onVnodeUnmounted)||ee||ve)&&Fe(()=>{pe&&Ye(pe,f,u),ee&&xt(u,null,f,"unmounted"),ve&&(u.el=null)},m)},fn=u=>{const{type:f,el:m,anchor:C,transition:x}=u;if(f===ne){Gn(m,C);return}if(f===rs){R(u);return}const b=()=>{l(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:P,delayLeave:k}=x,S=()=>P(m,b);k?k(u.el,b,S):S()}else b()},Gn=(u,f)=>{let m;for(;u!==f;)m=D(u),l(u),u=m;l(f)},zn=(u,f,m)=>{const{bum:C,scope:x,job:b,subTree:P,um:k,m:S,a:w}=u;hl(S),hl(w),C&&Cn(C),x.stop(),b&&(b.flags|=8,je(P,u,f,m)),k&&Fe(k,f),Fe(()=>{u.isUnmounted=!0},f)},mt=(u,f,m,C=!1,x=!1,b=0)=>{for(let P=b;P{if(u.shapeFlag&6)return ht(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=D(u.anchor||u.el),m=f&&f[Wo];return m?D(m):f};let Nt=!1;const gt=(u,f,m)=>{let C;u==null?f._vnode&&(je(f._vnode,null,null,!0),C=f._vnode.component):$(f._vnode||null,u,f,null,null,null,m),f._vnode=u,Nt||(Nt=!0,ll(C),ii(),Nt=!1)},yt={p:$,um:je,m:we,r:fn,mt:pt,mc:U,pc:z,pbc:Pe,n:ht,o:e};return{render:gt,hydrate:void 0,createApp:dr(gt)}}function os({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 Ct({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ti(e,t,n=!1){const s=e.children,l=t.children;if(j(s)&&j(l))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Oi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oi(t)}function hl(e){if(e)for(let t=0;te.__isSuspense;function Dr(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):jo(e)}const ne=Symbol.for("v-fgt"),qn=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Zt=[];let Ve=null;function T(e=!1){Zt.push(Ve=e?null:[])}function Ar(){Zt.pop(),Ve=Zt[Zt.length-1]||null}let ln=1;function gl(e,t=!1){ln+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function Mi(e){return e.dynamicChildren=ln>0?Ve||Rt:null,Ar(),ln>0&&Ve&&Ve.push(e),e}function O(e,t,n,s,l,i){return Mi(o(e,t,n,s,l,i,!0))}function Mr(e,t,n,s,l){return Mi(ct(e,t,n,s,l,!0))}function Ii(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const Ri=({key:e})=>e??null,kn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||Te(e)||N(e)?{i:Ue,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,s=0,l=null,i=e===ne?0:1,r=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ri(t),ref:t&&kn(t),scopeId:ri,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Ue};return a?(An(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=he(n)?8:16),ln>0&&!r&&Ve&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ve.push(c),c}const ct=Ir;function Ir(e,t=null,n=null,s=0,l=null,i=!1){if((!e||e===lr)&&(e=vt),Ii(e)){const a=Bt(e,t,!0);return n&&An(a,n),ln>0&&!i&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(Kr(e)&&(e=e.__vccOpts),t){t=Rr(t);let{class:a,style:c}=t;a&&!he(a)&&(t.class=Nn(a)),se(c)&&(Is(c)&&!j(c)&&(c=Ce({},c)),t.style=ks(c))}const r=he(e)?1:Ai(e)?128:Ko(e)?64:se(e)?4:N(e)?2:0;return o(e,t,n,s,l,r,i,!0)}function Rr(e){return e?Is(e)||xi(e)?Ce({},e):e:null}function Bt(e,t,n=!1,s=!1){const{props:l,ref:i,patchFlag:r,children:a,transition:c}=e,g=t?Lr(l||{},t):l,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ri(g),ref:t&&t.ref?n&&i?j(i)?i.concat(kn(t)):[i,kn(t)]:kn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&$s(h,c.clone(h)),h}function $r(e=" ",t=0){return ct(qn,null,e,t)}function Y(e="",t=!1){return t?(T(),Mr(vt,null,e)):ct(vt,null,e)}function Ze(e){return e==null||typeof e=="boolean"?ct(vt):j(e)?ct(ne,null,e.slice()):Ii(e)?rt(e):ct(qn,null,String(e))}function rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function An(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),An(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!xi(t)?t._ctx=Ue:l===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(s&65){An(e,{default:t});return}t={default:t,_ctx:Ue},n=32}else t=String(t),s&64?(n=16,t=[$r(t)]):n=8;e.children=t,e.shapeFlag|=n}function Lr(...e){const t={};for(let n=0;nIe||Ue;let Mn,bs;{const e=Bn(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),i=>{l.length>1?l.forEach(r=>r(i)):l[0](i)}};Mn=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),bs=t("__VUE_SSR_SETTERS__",n=>on=n)}const cn=e=>{const t=Ie;return Mn(e),e.scope.on(),()=>{e.scope.off(),Mn(t)}},_l=()=>{Ie&&Ie.scope.off(),Mn(null)};function $i(e){return e.vnode.shapeFlag&4}let on=!1;function Nr(e,t=!1,n=!1){t&&bs(t);const{props:s,children:l}=e.vnode,i=$i(e);br(e,s,i,t),Sr(e,l,n||t);const r=i?Ur(e,t):void 0;return t&&bs(!1),r}function Ur(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ir);const{setup:s}=n;if(s){st();const l=e.setupContext=s.length>1?Wr(e):null,i=cn(e),r=un(s,e,0,[e.props,l]),a=Il(r);if(lt(),i(),(a||e.sp)&&!Xt(e)&&ci(e),a){if(r.then(_l,_l),t)return r.then(c=>{vl(e,c)}).catch(c=>{Hn(c,e,0)});e.asyncDep=r}else vl(e,r)}else Li(e)}function vl(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=ti(t)),Li(e)}function Li(e,t,n){const s=e.type;e.render||(e.render=s.render||tt);{const l=cn(e);st();try{or(e)}finally{lt(),l()}}}const Hr={get(e,t){return Ee(e,"get",""),e[t]}};function Wr(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hr),slots:e.slots,emit:e.emit,expose:t}}function Jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ti(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qt)return Qt[n](e)},has(t,n){return n in t||n in Qt}})):e.proxy}function Kr(e){return N(e)&&"__vccOpts"in e}const kt=(e,t)=>Io(e,t,on),qr="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ws;const ml=typeof window<"u"&&window.trustedTypes;if(ml)try{ws=ml.createPolicy("vue",{createHTML:e=>e})}catch{}const Fi=ws?e=>ws.createHTML(e):e=>e,Jr="http://www.w3.org/2000/svg",Gr="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,yl=ot&&ot.createElement("template"),zr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?ot.createElementNS(Jr,e):t==="mathml"?ot.createElementNS(Gr,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,i){const r=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{yl.innerHTML=Fi(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=yl.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yr=Symbol("_vtc");function Xr(e,t,n){const s=e[Yr];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bl=Symbol("_vod"),Qr=Symbol("_vsh"),Zr=Symbol(""),ea=/(?:^|;)\s*display\s*:/;function ta(e,t,n){const s=e.style,l=he(n);let i=!1;if(n&&!l){if(t)if(he(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&qt(s,a,"")}else for(const r in t)n[r]==null&&qt(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?sa(e,r,!he(t)&&t?t[r]:void 0,a)||qt(s,r,a):qt(s,r,"")}}else if(l){if(t!==n){const r=s[Zr];r&&(n+=";"+r),s.cssText=n,i=ea.test(n)}}else t&&e.removeAttribute("style");bl in e&&(e[bl]=i?s.display:"",e[Qr]&&(s.display="none"))}const wl=/\s*!important$/;function qt(e,t,n){if(j(n))n.forEach(s=>qt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=na(e,t);wl.test(n)?e.setProperty(Ot(s),n.replace(wl,""),"important"):e[s]=n}}const xl=["Webkit","Moz","ms"],as={};function na(e,t){const n=as[t];if(n)return n;let s=qe(t);if(s!=="filter"&&s in e)return as[t]=s;s=Ll(s);for(let l=0;lus||(ua.then(()=>us=0),us=Date.now());function fa(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const l=n.value;if(j(l)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const r=l.slice(),a=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,da=(e,t,n,s,l,i)=>{const r=l==="svg";t==="class"?Xr(e,s,r):t==="style"?ta(e,n,s):$n(t)?Ln(t)||ia(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pa(e,t,s,r))?(kl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sl(e,t,s,r,i,t!=="value")):e._isVueCE&&(ha(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!he(s)))?kl(e,qe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Sl(e,t,s,r))};function pa(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&El(t)&&N(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 l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return El(t)&&he(n)?!1:t in e}function ha(e,t){const n=e._def.props;if(!n)return!1;const s=qe(t);return Array.isArray(n)?n.some(l=>qe(l)===s):Object.keys(n).some(l=>qe(l)===s)}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Cn(t,n):t};function ga(e){e.target.composing=!0}function Tl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jt=Symbol("_assign");function Ol(e,t,n){return t&&(e=e.trim()),n&&(e=Vn(e)),e}const oe={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e[jt]=In(l);const i=s||l.props&&l.props.type==="number";Pt(e,t?"change":"input",r=>{r.target.composing||e[jt](Ol(e.value,n,i))}),(n||i)&&Pt(e,"change",()=>{e.value=Ol(e.value,n,i)}),t||(Pt(e,"compositionstart",ga),Pt(e,"compositionend",Tl),Pt(e,"change",Tl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:i}},r){if(e[jt]=In(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,c=t??"";if(a===c)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(s&&t===n||l&&e.value.trim()===c)||(e.value=c)}},cs={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const l=Fn(t);Pt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Vn(Rn(r)):Rn(r));e[jt](e.multiple?l?new Set(i):i:i[0]),e._assigning=!0,si(()=>{e._assigning=!1})}),e[jt]=In(s)},mounted(e,{value:t}){Dl(e,t)},beforeUpdate(e,t,n){e[jt]=In(n)},updated(e,{value:t}){e._assigning||Dl(e,t)}};function Dl(e,t){const n=e.multiple,s=j(t);if(!(n&&!s&&!Fn(t))){for(let l=0,i=e.options.length;lString(g)===String(a)):r.selected=io(t,a)>-1}else r.selected=t.has(a);else if(an(Rn(r),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Rn(e){return"_value"in e?e._value:e.value}const _a=Ce({patchProp:da},zr);let Al;function va(){return Al||(Al=Pr(_a))}const ma=((...e)=>{const t=va().createApp(...e),{mount:n}=t;return t.mount=s=>{const l=ba(s);if(!l)return;const i=t._component;!N(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=n(l,!1,ya(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function ya(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ba(e){return he(e)?document.querySelector(e):e}const wa="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",F={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,jobs:"jobs",jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materials:"materials",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",webManifest:"web/manifest"};class xa extends Error{constructor(n,s,l={}){super(s);Xn(this,"code");Xn(this,"details");this.name="ApiClientError",this.code=n,this.details=l}}async function ge(e,t){return en(e,{method:"GET",query:t})}async function fe(e,t){return en(e,{method:"POST",body:t})}async function en(e,t={}){const s=await(await fetch(Ca(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(!s.ok)throw new xa(s.error_code,s.message,s.details);return s.data}function Ca(e,t){const n=e.replace(/^\/+/,""),s=new URL(`${wa}/${n}`,window.location.origin);for(const[l,i]of Object.entries(t??{}))i!==void 0&&s.searchParams.set(l,String(i));return`${s.pathname}${s.search}`}const Sa={class:"web-shell"},ka={class:"sidebar"},Pa={class:"brand"},Ea=["onClick"],Ta={class:"workspace"},Oa={class:"topbar"},Da={class:"actions"},Aa=["disabled"],Ma={key:0,class:"notice error"},Ia={key:1,class:"notice"},Ra={key:0,class:"dashboard-grid"},$a={key:1,class:"list-view"},La={class:"form-grid"},Fa={class:"wide-field"},ja=["disabled"],Va=["disabled"],Ba={key:0},Na={class:"inline-actions"},Ua={class:"badge"},Ha=["disabled","onClick"],Wa={key:0,class:"empty"},Ka={key:2,class:"split-view"},qa={class:"list-view"},Ja={class:"form-grid"},Ga=["disabled"],za={class:"inline-actions"},Ya={class:"badge"},Xa=["disabled","onClick"],Qa=["disabled","onClick"],Za=["disabled","onClick"],eu=["disabled","onClick"],tu={key:0,class:"empty"},nu={class:"list-view"},su={class:"inline-actions"},lu={class:"badge"},iu={key:0,class:"empty"},ou={key:0},ru={key:3,class:"split-view"},au={class:"list-view"},uu={key:0,class:"empty"},cu={class:"list-view"},fu={class:"inline-actions"},du=["disabled"],pu={class:"form-grid"},hu={value:""},gu=["value"],_u=["disabled"],vu={class:"inline-actions"},mu={class:"badge"},yu=["disabled","onClick"],bu=["disabled","onClick"],wu=["disabled","onClick"],xu={key:0,class:"empty"},Cu={key:0},Su={key:4,class:"list-view"},ku=["disabled"],Pu={class:"form-grid"},Eu={value:""},Tu=["value"],Ou=["disabled"],Du={class:"inline-actions"},Au=["disabled","onClick"],Mu={key:0,class:"empty"},Iu={key:0},Ru={class:"form-grid"},$u=["disabled"],Lu={key:1},Fu={key:5,class:"list-view"},ju={class:"inline-actions"},Vu=["disabled"],Bu=["disabled"],Nu={class:"inline-actions"},Uu={class:"badge"},Hu=["onClick"],Wu=["onClick"],Ku={key:0,class:"empty"},qu={key:6,class:"split-view"},Ju={class:"list-view"},Gu=["disabled"],zu={class:"form-grid"},Yu=["disabled"],Xu={key:0},Qu={class:"list-view"},Zu={class:"inline-actions"},ec={class:"badge"},tc=["disabled","onClick"],nc=["disabled","onClick"],sc=["disabled","onClick"],lc={key:0,class:"empty"},ic={key:7,class:"logs-view"},oc={class:"split-view"},rc={class:"list-view"},ac={key:0,class:"empty"},uc={class:"list-view"},cc={class:"badge"},fc={key:0,class:"empty"},dc={class:"split-view"},pc={class:"list-view"},hc={key:0,class:"empty"},gc={class:"list-view"},_c={class:"badge"},vc={key:0,class:"empty"},mc={class:"list-view"},yc={key:0,class:"empty"},bc={key:8,class:"settings-view"},wc={class:"toolbar"},xc=["disabled"],Cc=["disabled"],Sc=["disabled"],kc=["disabled"],Pc=["disabled"],Ec=["disabled"],Tc={class:"settings-sections"},Oc={class:"editor-panel"},Dc={class:"split-view"},Ac={class:"list-view"},Mc={class:"list-view"},Ic={class:"inspector"},Rc=qo({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",recognize:"识别",confirm:"确认",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialArchived:"素材已归档",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileDeleted:"角色已删除",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",currentBranch:"当前分支",materialCategories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],s=J("dashboard"),l=J(null),i=J(null),r=J(null),a=J([]),c=J(null),g=J(null),h=J(null),y=J(null),D=J(null),A=J([]),K=J(null),$=J([]),re=J([]),Z=J([]),H=J(null),V=J({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),R=J(null),ae=J(""),Se=J(null),ke=J(null),U=J({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),We=J(null),Pe=J({display_name:"",workflow_type:"single_image"}),de=J({display_name:"",image_uri:"",tags:"",category_id:""}),ce=J({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),be=J({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),pt=J(null),Re=J({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),_e=J(null),W=J(""),z=J(!0),B=J(""),Ke=J(""),we=kt(()=>{var _,v;return((v=(_=r.value)==null?void 0:_.items[0])==null?void 0:v.profile_id)??""}),je=kt(()=>{var _,v;return((v=(_=r.value)==null?void 0:_.items[0])==null?void 0:v.name)??t.noProfile}),fn=kt(()=>{var v;const _=(v=i.value)==null?void 0:v.queue;return _?_.pending+_.running+_.failed+_.dead_letter:0}),Gn=kt(()=>{var _;return((_=K.value)==null?void 0:_.items.filter(v=>v.recognition_status!=="confirmed").length)??0}),zn=kt(()=>{var _;return(((_=K.value)==null?void 0:_.items)??[]).filter(v=>v.recognition_status==="confirmed")}),mt=kt(()=>({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]);pi(ht);async function ht(){var _,v;z.value=!0,Ke.value="";try{const[ue,me,$e,At,hn,Ut,gn,_n,vn,mn,yn]=await Promise.all([ge(F.uiBootstrap),ge(F.dashboardSummary),ge(F.profiles,{page:1,page_size:20}),ge(F.jobs,{page:1,page_size:20}),ge(F.settingsSchema),ge(F.settingsCurrent),ge(F.storageStatus),ge(F.materialCategories),ge(F.materials,{page:1,page_size:24}),ge(F.apiDiscoveryDialects),ge(F.apiDiscoveryCapabilities)]);l.value=ue,i.value=me,r.value=$e,g.value=At,h.value=hn,y.value=Ut,De(Ut.config),D.value=gn,A.value=_n,K.value=vn,re.value=mn,Z.value=yn,await yt((_=$e.items[0])==null?void 0:_.profile_id),await js((v=$e.items[0])==null?void 0:v.profile_id),await Nt()}catch(ue){Ke.value=ue instanceof Error?ue.message:t.loadFailed}finally{z.value=!1}}async function Nt(){const[_,v,ue,me,$e]=await Promise.allSettled([ge(F.generationLogs,{limit:12}),ge(F.workflowLogs,{limit:12}),ge(F.errorLogs,{limit:12}),ge(F.integrationLogs,{limit:12}),ge(F.auditLogs,{limit:12})]);V.value={generation:gt(_),workflows:gt(v),errors:gt(ue),integrations:gt(me),audit:gt($e)}}function gt(_){return _.status==="fulfilled"?_.value:[]}async function yt(_){if(!_){$.value=[];return}$.value=await ge(F.wardrobe(_))}async function js(_){var me,$e;if(!_){a.value=[],c.value=null;return}a.value=await ge(F.profileWorkflows(_));const v=(me=c.value)==null?void 0:me.workflow.workflow_id,ue=a.value.some(At=>At.workflow_id===v)?v:($e=a.value[0])==null?void 0:$e.workflow_id;ue?await u(ue):c.value=null}async function u(_){c.value=await ge(F.workflow(_))}async function f(_,v,ue=!0){B.value=_,Ke.value="";try{const me=await v();W.value=`${_}${t.complete}`,_===t.exportSettings&&(W.value=`${t.exportDone}: ${!!me.redacted}`),ue&&await ht()}catch(me){Ke.value=me instanceof Error?me.message:`${_}${t.failed}`}finally{B.value=""}}function m(_){return f(t.retry,()=>fe(F.jobRetry(_)))}function C(_){return f(t.cancel,()=>fe(F.jobCancel(_)))}function x(){U.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},We.value=null}function b(){return f(t.quickDraft,async()=>(We.value=await fe(F.quickProfileDraft,{questionnaire:{name:U.value.name,identity:U.value.identity,personality:wt(U.value.personality),hair_color:U.value.hair_color,hairstyle:U.value.hairstyle,eye_color:U.value.eye_color,style:U.value.style,clothing_keywords:wt(U.value.clothing_keywords)}}),We.value),!1)}function P(){var v;const _=(v=We.value)==null?void 0:v.profile_preview;return f(t.create,async()=>{const ue=await fe(F.profiles,{name:(_==null?void 0:_.name)||U.value.name,description:U.value.description,base_prompt:_==null?void 0:_.base_prompt,appearance_prompt:_==null?void 0:_.appearance_prompt,style_prompt:_==null?void 0:_.style_prompt,negative_prompt:_==null?void 0:_.negative_prompt});return x(),W.value=t.profileCreated,ue})}function k(_){return f(t.delete,async()=>{const v=await en(F.profile(_),{method:"DELETE"});return W.value=t.profileDeleted,v})}function S(){const _=we.value;return _?f(t.create,async()=>{const v=await fe(F.profileWorkflows(_),{display_name:Pe.value.display_name,workflow_type:Pe.value.workflow_type});return Pe.value.display_name="",c.value=v,W.value=t.workflowCreated,v}):Promise.resolve()}function w(_){return f(t.start,()=>fe(F.workflowStart(_)))}function I(_){return f(t.cancel,()=>fe(F.workflowCancel(_)))}function E(_){return f(t.archive,()=>fe(F.workflowArchive(_)))}function M(){return f(t.moveFailed,()=>fe(F.jobDeadLetterMoveFailed,{limit:20}))}function L(){return f(t.retryDead,()=>fe(F.jobDeadLetterRetry,{limit:20}))}function q(){var v;const _=((v=re.value[0])==null?void 0:v.dialect)??"unknown";return f(t.safeProbe,()=>fe(F.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:_,capabilities:{supports:["text_to_image"]}}))}function ee(){return f(t.validatePlan,async()=>(_e.value=await fe(F.apiDiscoveryValidateRenderPlan,{provider_id:Re.value.provider_id,model_id:Re.value.model_id,required_capabilities:wt(Re.value.required_capabilities)}),_e.value),!1)}function G(_,v){return f(t.discovery,()=>fe(F.apiDiscoveryManualOverride,{provider_id:_.provider_id,model_id:_.model_id,dialect:_.dialect,status:v,capabilities:_.capabilities}))}function pe(){const _=we.value;return _?f(t.matchWardrobe,async()=>(H.value=await fe(F.wardrobeMatch(_),{tags:["daily"]}),H.value),!1):Promise.resolve()}function ve(){ce.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Be(){const _=we.value;return _?f(t.importToWardrobe,async()=>{const v=await fe(F.wardrobeImportMaterial(_),{material_id:ce.value.material_id,wardrobe_category:ce.value.wardrobe_category,tags:wt(ce.value.tags),season:ce.value.season||void 0,style:ce.value.style||void 0});return ve(),W.value=t.wardrobeImported,v}):Promise.resolve()}function Ne(_){const v=we.value;return v?f(t.delete,async()=>{const ue=await en(F.wardrobeItem(v,_),{method:"DELETE"});return W.value=t.wardrobeDeleted,ue}):Promise.resolve()}function bt(){const _=we.value;return _?f(t.dailyOutfit,async()=>(pt.value=await fe(F.privateCompanionDailyOutfit,{profile_id:_,categories:wt(be.value.categories),mood:be.value.mood,weather:be.value.weather,keywords:wt(be.value.keywords),request_source:"astrbot_plugin_private_companion"}),W.value=t.outfitGenerated,pt.value),!1):Promise.resolve()}function dn(){return f(t.reload,async()=>{var v;const _=await fe(F.settingsReload);return y.value={config_path:((v=y.value)==null?void 0:v.config_path)??"***PATH***",config:_.config},De(_.config),_},!1)}function Oe(){return f(t.exportSettings,()=>ge(F.settingsExport),!1)}function De(_=(v=>(v=y.value)==null?void 0:v.config)()??{}){ae.value=JSON.stringify(_,null,2),Se.value=null,ke.value=null}function Dt(){try{const _=JSON.parse(ae.value);if(!_||Array.isArray(_)||typeof _!="object")throw new Error(t.settingsDraftInvalid);return _}catch(_){throw new Error(_ instanceof Error?_.message:t.settingsDraftInvalid)}}function pn(){return f(t.validate,async()=>(Se.value=await fe(F.settingsValidate,{config:Dt()}),Se.value),!1)}function ji(){return f(t.diff,async()=>(ke.value=await fe(F.settingsDiff,{config:Dt()}),ke.value),!1)}function Vi(){return f(t.save,async()=>{var v;const _=await fe(F.settingsSave,{config:Dt()});return y.value={config_path:((v=y.value)==null?void 0:v.config_path)??"***PATH***",config:_.config},De(_.config),W.value=t.settingsSaved,_},!1)}function Bi(){var v,ue;const _=(ue=(v=K.value)==null?void 0:v.items.find(me=>{var $e;return($e=me.image_uri)==null?void 0:$e.startsWith("storage://")}))==null?void 0:ue.image_uri;return _?f(t.signMaterial,async()=>(R.value=await ge(F.mediaSign,{uri:_}),R.value),!1):(W.value=t.noSignableMaterial,Promise.resolve())}function Ni(){de.value={display_name:"",image_uri:"",tags:"",category_id:""}}function Ui(){return f(t.create,async()=>{const _=await fe(F.materials,{display_name:de.value.display_name,image_uri:de.value.image_uri||void 0,thumbnail_uri:de.value.image_uri||void 0,category_id:de.value.category_id||void 0,tags:wt(de.value.tags),recognition_status:de.value.image_uri?"pending_recognition":"pending_upload"});return Ni(),W.value=t.materialCreated,_})}function Hi(_){return f(t.recognize,()=>fe(F.materialRecognize(_)))}function Wi(_){return f(t.confirm,()=>fe(F.materialConfirm(_.material_id),{display_name:_.display_name,prompt:_.prompt,negative_prompt:_.negative_prompt,tags:_.tags}))}function Ki(_){return f(t.archive,async()=>{const v=await en(F.material(_),{method:"DELETE"});return W.value=t.materialArchived,v})}function wt(_){return _.split(",").map(v=>v.trim()).filter(Boolean)}function Yn(_=0){return _<1024?`${_} B`:_<1024*1024?`${(_/1024).toFixed(1)} KB`:_<1024*1024*1024?`${(_/1024/1024).toFixed(1)} MB`:`${(_/1024/1024/1024).toFixed(1)} GB`}function Vs(_){var v,ue;return((ue=(v=D.value)==null?void 0:v.roots.find(me=>me.uri_prefix===_))==null?void 0:ue.bytes)??0}return(_,v)=>{var ue,me,$e,At,hn,Ut,gn,_n,vn,mn,yn,Bs,Ns,Us,Hs,Ws,Ks,qs,Js,Gs,zs,Ys,Xs,Qs,Zs;return T(),O("main",Sa,[o("aside",ka,[o("div",Pa,[o("strong",null,d(((ue=l.value)==null?void 0:ue.display_name)??"ImageStudio"),1),o("span",null,d(((me=l.value)==null?void 0:me.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(T(),O(ne,null,ye(n,p=>o("button",{key:p.key,type:"button",class:Nn({active:s.value===p.key}),onClick:Le=>s.value=p.key},d(p.label),11,Ea)),64))])]),o("section",Ta,[o("header",Oa,[o("div",null,[o("h1",null,d(mt.value),1),o("p",null,d((($e=i.value)==null?void 0:$e.plugin_status)??"loading")+" / "+d(W.value||t.waiting),1)]),o("div",Da,[o("button",{type:"button",disabled:!!B.value,onClick:ht},d(B.value||t.refresh),9,Aa)])]),Ke.value?(T(),O("section",Ma,d(Ke.value),1)):z.value?(T(),O("section",Ia,d(t.loading),1)):(T(),O(ne,{key:2},[s.value==="dashboard"?(T(),O("section",Ra,[o("article",null,[o("span",null,d(t.profiles),1),o("strong",null,d(((At=i.value)==null?void 0:At.active_profiles)??0),1)]),o("article",null,[o("span",null,d(t.jobs),1),o("strong",null,d(fn.value),1)]),o("article",null,[o("span",null,d(t.materials),1),o("strong",null,d(((hn=K.value)==null?void 0:hn.total)??0),1)]),o("article",null,[o("span",null,d(t.storage),1),o("strong",null,d(Yn(((Ut=D.value)==null?void 0:Ut.total_bytes)??((gn=i.value)==null?void 0:gn.storage.total_bytes))),1)])])):Y("",!0),s.value==="profiles"?(T(),O("section",$a,[o("header",null,[o("h2",null,d(t.profileList),1),o("span",null,d(((_n=r.value)==null?void 0:_n.total)??0),1)]),o("div",La,[o("label",null,[o("span",null,d(t.name),1),te(o("input",{"onUpdate:modelValue":v[0]||(v[0]=p=>U.value.name=p),type:"text"},null,512),[[oe,U.value.name]])]),o("label",null,[o("span",null,d(t.identity),1),te(o("input",{"onUpdate:modelValue":v[1]||(v[1]=p=>U.value.identity=p),type:"text"},null,512),[[oe,U.value.identity]])]),o("label",null,[o("span",null,d(t.personality),1),te(o("input",{"onUpdate:modelValue":v[2]||(v[2]=p=>U.value.personality=p),type:"text",placeholder:"calm, brave"},null,512),[[oe,U.value.personality]])]),o("label",null,[o("span",null,d(t.hairColor),1),te(o("input",{"onUpdate:modelValue":v[3]||(v[3]=p=>U.value.hair_color=p),type:"text"},null,512),[[oe,U.value.hair_color]])]),o("label",null,[o("span",null,d(t.hairstyle),1),te(o("input",{"onUpdate:modelValue":v[4]||(v[4]=p=>U.value.hairstyle=p),type:"text"},null,512),[[oe,U.value.hairstyle]])]),o("label",null,[o("span",null,d(t.eyeColor),1),te(o("input",{"onUpdate:modelValue":v[5]||(v[5]=p=>U.value.eye_color=p),type:"text"},null,512),[[oe,U.value.eye_color]])]),o("label",null,[o("span",null,d(t.stylePrompt),1),te(o("input",{"onUpdate:modelValue":v[6]||(v[6]=p=>U.value.style=p),type:"text"},null,512),[[oe,U.value.style]])]),o("label",null,[o("span",null,d(t.tags),1),te(o("input",{"onUpdate:modelValue":v[7]||(v[7]=p=>U.value.clothing_keywords=p),type:"text",placeholder:"white blouse, ribbon"},null,512),[[oe,U.value.clothing_keywords]])]),o("label",Fa,[o("span",null,d(t.description),1),te(o("input",{"onUpdate:modelValue":v[8]||(v[8]=p=>U.value.description=p),type:"text"},null,512),[[oe,U.value.description]])]),o("button",{type:"button",disabled:!!B.value||!U.value.name,onClick:b},d(t.quickDraft),9,ja),o("button",{type:"button",disabled:!!B.value||!U.value.name,onClick:P},d(t.create),9,Va)]),We.value?(T(),O("pre",Ba,d(JSON.stringify(We.value,null,2)),1)):Y("",!0),o("ul",null,[(T(!0),O(ne,null,ye(((vn=r.value)==null?void 0:vn.items)??[],p=>(T(),O("li",{key:p.profile_id},[o("div",null,[o("strong",null,d(p.name),1),o("small",null,d(p.profile_id),1)]),o("div",Na,[o("span",Ua,d(p.status),1),o("button",{type:"button",disabled:!!B.value,onClick:Le=>k(p.profile_id)},d(t.delete),9,Ha)])]))),128)),(mn=r.value)!=null&&mn.items.length?Y("",!0):(T(),O("li",Wa,d(t.emptyProfiles),1))])])):Y("",!0),s.value==="workflows"?(T(),O("section",Ka,[o("div",qa,[o("header",null,[o("h2",null,d(je.value),1),o("span",null,d(a.value.length),1)]),o("div",Ja,[o("label",null,[o("span",null,d(t.name),1),te(o("input",{"onUpdate:modelValue":v[9]||(v[9]=p=>Pe.value.display_name=p),type:"text"},null,512),[[oe,Pe.value.display_name]])]),o("label",null,[o("span",null,d(t.workflowType),1),te(o("select",{"onUpdate:modelValue":v[10]||(v[10]=p=>Pe.value.workflow_type=p)},[...v[29]||(v[29]=[o("option",{value:"single_image"},"single_image",-1),o("option",{value:"character_gradual"},"character_gradual",-1),o("option",{value:"character_fast"},"character_fast",-1),o("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[cs,Pe.value.workflow_type]])]),o("button",{type:"button",disabled:!!B.value||!we.value||!Pe.value.display_name,onClick:S},d(t.create),9,Ga)]),o("ul",null,[(T(!0),O(ne,null,ye(a.value,p=>(T(),O("li",{key:p.workflow_id},[o("div",null,[o("strong",null,d(p.display_name),1),o("small",null,d(p.workflow_type)+" / "+d(p.workflow_id),1)]),o("div",za,[o("span",Ya,d(p.status),1),o("button",{type:"button",disabled:!!B.value,onClick:Le=>u(p.workflow_id)},d(t.nodes),9,Xa),o("button",{type:"button",disabled:!!B.value,onClick:Le=>w(p.workflow_id)},d(t.start),9,Qa),o("button",{type:"button",disabled:!!B.value,onClick:Le=>I(p.workflow_id)},d(t.cancel),9,Za),o("button",{type:"button",disabled:!!B.value,onClick:Le=>E(p.workflow_id)},d(t.archive),9,eu)])]))),128)),a.value.length?Y("",!0):(T(),O("li",tu,d(t.emptyWorkflows),1))])]),o("div",nu,[o("header",null,[o("h2",null,d(t.nodes),1),o("span",null,d(((yn=c.value)==null?void 0:yn.workflow.current_branch)??"main"),1)]),o("ul",null,[(T(!0),O(ne,null,ye(((Bs=c.value)==null?void 0:Bs.nodes)??[],p=>(T(),O("li",{key:p.node_id},[o("div",null,[o("strong",null,d(p.title),1),o("small",null,d(p.node_key)+" / "+d(p.node_id),1)]),o("div",su,[o("span",null,d(p.branch_name),1),o("span",lu,d(p.status),1)])]))),128)),(Ns=c.value)!=null&&Ns.nodes.length?Y("",!0):(T(),O("li",iu,d(t.emptyWorkflows),1))]),c.value?(T(),O("pre",ou,d(JSON.stringify(c.value.workflow,null,2)),1)):Y("",!0)])])):Y("",!0),s.value==="materials"?(T(),O("section",ru,[o("div",au,[o("header",null,[o("h2",null,d(t.materialCategories),1),o("span",null,d(A.value.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(A.value,p=>(T(),O("li",{key:p.category_id},[o("div",null,[o("strong",null,d(p.name),1),o("small",null,d(p.category_type),1)]),o("span",null,d(p.sort_order),1)]))),128)),A.value.length?Y("",!0):(T(),O("li",uu,d(t.emptyCategories),1))])]),o("div",cu,[o("header",null,[o("h2",null,d(t.materialItems),1),o("div",fu,[o("span",null,d(Gn.value)+" "+d(t.pendingConfirm),1),o("button",{type:"button",disabled:!!B.value,onClick:Bi},d(t.signFirstImage),9,du)])]),o("div",pu,[o("label",null,[o("span",null,d(t.name),1),te(o("input",{"onUpdate:modelValue":v[11]||(v[11]=p=>de.value.display_name=p),type:"text"},null,512),[[oe,de.value.display_name]])]),o("label",null,[o("span",null,d(t.imageUri),1),te(o("input",{"onUpdate:modelValue":v[12]||(v[12]=p=>de.value.image_uri=p),type:"text",placeholder:"storage://materials/example.png"},null,512),[[oe,de.value.image_uri]])]),o("label",null,[o("span",null,d(t.category),1),te(o("select",{"onUpdate:modelValue":v[13]||(v[13]=p=>de.value.category_id=p)},[o("option",hu,d(t.allCategories),1),(T(!0),O(ne,null,ye(A.value,p=>(T(),O("option",{key:p.category_id,value:p.category_id},d(p.name),9,gu))),128))],512),[[cs,de.value.category_id]])]),o("label",null,[o("span",null,d(t.tags),1),te(o("input",{"onUpdate:modelValue":v[14]||(v[14]=p=>de.value.tags=p),type:"text",placeholder:"daily, top"},null,512),[[oe,de.value.tags]])]),o("button",{type:"button",disabled:!!B.value||!de.value.display_name,onClick:Ui},d(t.create),9,_u)]),o("ul",null,[(T(!0),O(ne,null,ye(((Us=K.value)==null?void 0:Us.items)??[],p=>(T(),O("li",{key:p.material_id},[o("div",null,[o("strong",null,d(p.display_name),1),o("small",null,d(p.image_uri??t.noImage),1)]),o("div",vu,[o("span",mu,d(p.recognition_status),1),o("button",{type:"button",disabled:!!B.value,onClick:Le=>Hi(p.material_id)},d(t.recognize),9,yu),o("button",{type:"button",disabled:!!B.value||p.recognition_status==="confirmed",onClick:Le=>Wi(p)},d(t.confirm),9,bu),o("button",{type:"button",disabled:!!B.value,onClick:Le=>Ki(p.material_id)},d(t.archive),9,wu)])]))),128)),(Hs=K.value)!=null&&Hs.items.length?Y("",!0):(T(),O("li",xu,d(t.emptyMaterials),1))]),R.value?(T(),O("pre",Cu,d(JSON.stringify(R.value,null,2)),1)):Y("",!0)])])):Y("",!0),s.value==="wardrobe"?(T(),O("section",Su,[o("header",null,[o("h2",null,d(je.value),1),o("button",{type:"button",disabled:!we.value||!!B.value,onClick:pe},d(t.match),9,ku)]),o("div",Pu,[o("label",null,[o("span",null,d(t.selectMaterial),1),te(o("select",{"onUpdate:modelValue":v[15]||(v[15]=p=>ce.value.material_id=p)},[o("option",Eu,d(t.selectMaterial),1),(T(!0),O(ne,null,ye(zn.value,p=>(T(),O("option",{key:p.material_id,value:p.material_id},d(p.display_name),9,Tu))),128))],512),[[cs,ce.value.material_id]])]),o("label",null,[o("span",null,d(t.wardrobeCategory),1),te(o("input",{"onUpdate:modelValue":v[16]||(v[16]=p=>ce.value.wardrobe_category=p),type:"text"},null,512),[[oe,ce.value.wardrobe_category]])]),o("label",null,[o("span",null,d(t.tags),1),te(o("input",{"onUpdate:modelValue":v[17]||(v[17]=p=>ce.value.tags=p),type:"text",placeholder:"daily, top"},null,512),[[oe,ce.value.tags]])]),o("label",null,[o("span",null,d(t.season),1),te(o("input",{"onUpdate:modelValue":v[18]||(v[18]=p=>ce.value.season=p),type:"text"},null,512),[[oe,ce.value.season]])]),o("label",null,[o("span",null,d(t.style),1),te(o("input",{"onUpdate:modelValue":v[19]||(v[19]=p=>ce.value.style=p),type:"text"},null,512),[[oe,ce.value.style]])]),o("button",{type:"button",disabled:!!B.value||!we.value||!ce.value.material_id||!ce.value.wardrobe_category,onClick:Be},d(t.importToWardrobe),9,Ou)]),o("ul",null,[(T(!0),O(ne,null,ye($.value,p=>(T(),O("li",{key:p.wardrobe_item_id},[o("div",null,[o("strong",null,d(p.wardrobe_category),1),o("small",null,d(p.material_id)+" / "+d(p.tags.join(", ")||t.noTags),1)]),o("div",Du,[o("span",null,d(p.usage_count),1),o("button",{type:"button",disabled:!!B.value,onClick:Le=>Ne(p.wardrobe_item_id)},d(t.delete),9,Au)])]))),128)),$.value.length?Y("",!0):(T(),O("li",Mu,d(t.emptyWardrobe),1))]),H.value?(T(),O("pre",Iu,d(JSON.stringify(H.value,null,2)),1)):Y("",!0),o("div",Ru,[o("label",null,[o("span",null,d(t.categories),1),te(o("input",{"onUpdate:modelValue":v[20]||(v[20]=p=>be.value.categories=p),type:"text"},null,512),[[oe,be.value.categories]])]),o("label",null,[o("span",null,d(t.mood),1),te(o("input",{"onUpdate:modelValue":v[21]||(v[21]=p=>be.value.mood=p),type:"text"},null,512),[[oe,be.value.mood]])]),o("label",null,[o("span",null,d(t.weather),1),te(o("input",{"onUpdate:modelValue":v[22]||(v[22]=p=>be.value.weather=p),type:"text"},null,512),[[oe,be.value.weather]])]),o("label",null,[o("span",null,d(t.keywords),1),te(o("input",{"onUpdate:modelValue":v[23]||(v[23]=p=>be.value.keywords=p),type:"text"},null,512),[[oe,be.value.keywords]])]),o("button",{type:"button",disabled:!!B.value||!we.value,onClick:bt},d(t.dailyOutfit),9,$u)]),pt.value?(T(),O("pre",Lu,d(JSON.stringify(pt.value,null,2)),1)):Y("",!0)])):Y("",!0),s.value==="jobs"?(T(),O("section",Fu,[o("header",null,[o("h2",null,d(t.jobs),1),o("div",ju,[o("button",{type:"button",disabled:!!B.value,onClick:M},d(t.moveFailed),9,Vu),o("button",{type:"button",disabled:!!B.value,onClick:L},d(t.retryDead),9,Bu)])]),o("ul",null,[(T(!0),O(ne,null,ye(((Ws=g.value)==null?void 0:Ws.items)??[],p=>(T(),O("li",{key:p.task_id},[o("div",null,[o("strong",null,d(p.task_id),1),o("small",null,d(p.task_type)+" / "+d(p.progress)+"%",1)]),o("div",Nu,[o("span",Uu,d(p.status),1),p.status==="failed"?(T(),O("button",{key:0,type:"button",onClick:Le=>m(p.task_id)},d(t.retry),9,Hu)):Y("",!0),p.status==="pending"?(T(),O("button",{key:1,type:"button",onClick:Le=>C(p.task_id)},d(t.cancel),9,Wu)):Y("",!0)])]))),128)),(Ks=g.value)!=null&&Ks.items.length?Y("",!0):(T(),O("li",Ku,d(t.emptyJobs),1))])])):Y("",!0),s.value==="discovery"?(T(),O("section",qu,[o("div",Ju,[o("header",null,[o("h2",null,d(t.dialects),1),o("button",{type:"button",disabled:!!B.value,onClick:q},d(t.safeProbe),9,Gu)]),o("ul",null,[(T(!0),O(ne,null,ye(re.value,p=>(T(),O("li",{key:p.dialect},[o("div",null,[o("strong",null,d(p.label),1),o("small",null,d(p.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,d(p.dialect),1)]))),128))]),o("div",zu,[o("label",null,[o("span",null,d(t.provider),1),te(o("input",{"onUpdate:modelValue":v[24]||(v[24]=p=>Re.value.provider_id=p),type:"text",placeholder:"local-preview"},null,512),[[oe,Re.value.provider_id]])]),o("label",null,[o("span",null,d(t.model),1),te(o("input",{"onUpdate:modelValue":v[25]||(v[25]=p=>Re.value.model_id=p),type:"text",placeholder:"metadata-only"},null,512),[[oe,Re.value.model_id]])]),o("label",null,[o("span",null,d(t.requiredCapabilities),1),te(o("input",{"onUpdate:modelValue":v[26]||(v[26]=p=>Re.value.required_capabilities=p),type:"text",placeholder:"text_to_image"},null,512),[[oe,Re.value.required_capabilities]])]),o("button",{type:"button",disabled:!!B.value||!Re.value.provider_id||!Re.value.model_id,onClick:ee},d(t.validatePlan),9,Yu)]),_e.value?(T(),O("pre",Xu,d(JSON.stringify(_e.value,null,2)),1)):Y("",!0)]),o("div",Qu,[o("header",null,[o("h2",null,d(t.capabilityProfiles),1),o("span",null,d(Z.value.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(Z.value,p=>(T(),O("li",{key:p.capability_profile_id},[o("div",null,[o("strong",null,d(p.provider_id)+" / "+d(p.model_id),1),o("small",null,d(p.dialect),1)]),o("div",Zu,[o("span",ec,d(p.status),1),o("button",{type:"button",disabled:!!B.value,onClick:Le=>G(p,"confirmed_supported")},d(t.support),9,tc),o("button",{type:"button",disabled:!!B.value,onClick:Le=>G(p,"confirmed_unsupported")},d(t.unsupported),9,nc),o("button",{type:"button",disabled:!!B.value,onClick:Le=>G(p,"unconfirmed")},d(t.unconfirmed),9,sc)])]))),128)),Z.value.length?Y("",!0):(T(),O("li",lc,d(t.emptyCapabilities),1))])])])):Y("",!0),s.value==="logs"?(T(),O("section",ic,[o("div",oc,[o("div",rc,[o("header",null,[o("h2",null,d(t.generationLogs),1),o("span",null,d(V.value.generation.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(V.value.generation,p=>(T(),O("li",{key:p.task_id},[o("div",null,[o("strong",null,d(p.task_id),1),o("small",null,d(p.status)+" / "+d(p.progress)+"%",1)]),o("span",null,d(p.created_at),1)]))),128)),V.value.generation.length?Y("",!0):(T(),O("li",ac,d(t.emptyGenerationLogs),1))])]),o("div",uc,[o("header",null,[o("h2",null,d(t.errorLogs),1),o("span",null,d(V.value.errors.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(V.value.errors,p=>(T(),O("li",{key:`${p.source}-${p.id}`},[o("div",null,[o("strong",null,d(p.source),1),o("small",null,d(p.error_message??t.noErrorDetail),1)]),o("span",cc,d(p.status),1)]))),128)),V.value.errors.length?Y("",!0):(T(),O("li",fc,d(t.emptyErrors),1))])])]),o("div",dc,[o("div",pc,[o("header",null,[o("h2",null,d(t.workflowLogs),1),o("span",null,d(V.value.workflows.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(V.value.workflows,p=>(T(),O("li",{key:p.history_id},[o("div",null,[o("strong",null,d(p.action),1),o("small",null,d(p.title??p.workflow_id),1)]),o("span",null,d(p.branch_name??"main"),1)]))),128)),V.value.workflows.length?Y("",!0):(T(),O("li",hc,d(t.emptyWorkflowLogs),1))])]),o("div",gc,[o("header",null,[o("h2",null,d(t.integrationLogs),1),o("span",null,d(V.value.integrations.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(V.value.integrations,p=>(T(),O("li",{key:p.integration_log_id},[o("div",null,[o("strong",null,d(p.integration_name),1),o("small",null,d(p.action),1)]),o("span",_c,d(p.status),1)]))),128)),V.value.integrations.length?Y("",!0):(T(),O("li",vc,d(t.emptyIntegrationLogs),1))])])]),o("div",mc,[o("header",null,[o("h2",null,d(t.auditLogs),1),o("span",null,d(V.value.audit.length),1)]),o("ul",null,[(T(!0),O(ne,null,ye(V.value.audit,p=>(T(),O("li",{key:p.audit_id},[o("div",null,[o("strong",null,d(p.action),1),o("small",null,d(p.actor_type)+" / "+d(p.target_type)+" / "+d(p.target_id),1)]),o("span",null,d(p.created_at),1)]))),128)),V.value.audit.length?Y("",!0):(T(),O("li",yc,d(t.emptyAuditLogs),1))])])])):Y("",!0),s.value==="settings"?(T(),O("section",bc,[o("div",wc,[o("button",{type:"button",disabled:!!B.value,onClick:dn},d(t.reload),9,xc),o("button",{type:"button",disabled:!!B.value,onClick:v[27]||(v[27]=p=>De())},d(t.reset),9,Cc),o("button",{type:"button",disabled:!!B.value,onClick:pn},d(t.validate),9,Sc),o("button",{type:"button",disabled:!!B.value,onClick:ji},d(t.diff),9,kc),o("button",{type:"button",disabled:!!B.value,onClick:Vi},d(t.save),9,Pc),o("button",{type:"button",disabled:!!B.value,onClick:Oe},d(t.exportRedacted),9,Ec)]),o("div",Tc,[(T(!0),O(ne,null,ye(((qs=h.value)==null?void 0:qs.sections)??[],p=>(T(),O("article",{key:p.key},[o("h2",null,d(p.title),1),o("span",null,d(p.fields.length),1)]))),128))]),o("section",Oc,[o("header",null,[o("h2",null,d(t.settingsEditor),1),o("span",null,d(((Js=y.value)==null?void 0:Js.config_path)??"***PATH***"),1)]),te(o("textarea",{"onUpdate:modelValue":v[28]||(v[28]=p=>ae.value=p),spellcheck:"false"},null,512),[[oe,ae.value]])]),o("div",Dc,[o("div",Ac,[o("header",null,[o("h2",null,d(t.validationResult),1),o("span",null,d(((Gs=Se.value)==null?void 0:Gs.valid)??"-"),1)]),o("pre",null,d(JSON.stringify(Se.value??{},null,2)),1)]),o("div",Mc,[o("header",null,[o("h2",null,d(t.diffResult),1),o("span",null,d(((zs=ke.value)==null?void 0:zs.changes.length)??0),1)]),o("pre",null,d(JSON.stringify(ke.value??{},null,2)),1)])])])):Y("",!0)],64))]),o("aside",Ic,[o("h2",null,d(t.running),1),o("dl",null,[o("div",null,[v[30]||(v[30]=o("dt",null,"Pending",-1)),o("dd",null,d(((Ys=i.value)==null?void 0:Ys.queue.pending)??0),1)]),o("div",null,[v[31]||(v[31]=o("dt",null,"Running",-1)),o("dd",null,d(((Xs=i.value)==null?void 0:Xs.queue.running)??0),1)]),o("div",null,[v[32]||(v[32]=o("dt",null,"Failed",-1)),o("dd",null,d(((Qs=i.value)==null?void 0:Qs.queue.failed)??0),1)]),o("div",null,[v[33]||(v[33]=o("dt",null,"Dead",-1)),o("dd",null,d(((Zs=i.value)==null?void 0:Zs.queue.dead_letter)??0),1)])]),o("h2",null,d(t.storage),1),o("dl",null,[o("div",null,[v[34]||(v[34]=o("dt",null,"Images",-1)),o("dd",null,d(Yn(Vs("storage://images/"))),1)]),o("div",null,[v[35]||(v[35]=o("dt",null,"Materials",-1)),o("dd",null,d(Yn(Vs("storage://materials/"))),1)])])])])}}}),$c=(e,t)=>{const n=e.__vccOpts||e;for(const[s,l]of t)n[s]=l;return n},Lc=$c(Rc,[["__scopeId","data-v-7bc7fcf4"]]);ma(Lc).mount("#app"); diff --git a/web/index.html b/web/index.html index 9e90e75..29cd2bd 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +