diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 4111489..e7cea64 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -12,6 +12,9 @@ export const endpoints = { workflowCancel: (workflowId: string) => `workflows/${workflowId}/cancel`, workflowArchive: (workflowId: string) => `workflows/${workflowId}/archive`, workflowNodes: (workflowId: string) => `workflows/${workflowId}/nodes`, + workflowBranches: (workflowId: string) => `workflows/${workflowId}/branches`, + workflowSwitchBranch: (workflowId: string) => `workflows/${workflowId}/switch-branch`, + workflowHistory: (workflowId: string) => `workflows/${workflowId}/history`, nodeGenerate: (nodeId: string) => `nodes/${nodeId}/generate`, nodeSelectImage: (nodeId: string) => `nodes/${nodeId}/select-image`, nodeAdoptImage: (nodeId: string) => `nodes/${nodeId}/adopt-image`, diff --git a/frontend/shared/types/workflow.ts b/frontend/shared/types/workflow.ts index ee3b73f..64a097c 100644 --- a/frontend/shared/types/workflow.ts +++ b/frontend/shared/types/workflow.ts @@ -37,3 +37,29 @@ export interface WorkflowDetail { workflow: ProfileWorkflow nodes: WorkflowNode[] } + +export interface WorkflowBranch { + branch_id: string + workflow_id: string + branch_name: string + base_branch_name?: string | null + base_node_id?: string | null + status: string + metadata: Record + created_at: string + updated_at: string +} + +export interface WorkflowHistoryEntry { + history_id: string + profile_id?: string | null + workflow_id: string + node_id?: string | null + image_id?: string | null + branch_name: string + action: string + title?: string | null + prompt?: string | null + metadata: Record + created_at: string +} diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 8ec54a3..48c9e13 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -22,7 +22,7 @@ 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" +import type { ProfileWorkflow, WorkflowBranch, WorkflowDetail, WorkflowHistoryEntry } from "../../shared/types/workflow" type ViewKey = | "dashboard" @@ -105,10 +105,16 @@ const text = { emptyWorkflows: "\u6682\u65e0\u5de5\u4f5c\u6d41", nodes: "\u8282\u70b9", images: "\u56fe\u7247", + branches: "\u5206\u652f", + branchName: "\u5206\u652f\u540d", + switchBranch: "\u5207\u6362\u5206\u652f", + history: "\u5386\u53f2", emptyImages: "\u6682\u65e0\u56fe\u7247", + emptyHistory: "\u6682\u65e0\u5386\u53f2", modelRoute: "\u6a21\u578b\u8def\u7531", prompt: "\u63d0\u793a\u8bcd", generationQueued: "\u751f\u6210\u5df2\u5165\u961f", + branchCreated: "\u5206\u652f\u5df2\u521b\u5efa", imageArchived: "\u56fe\u7247\u5df2\u5f52\u6863", imageDeleted: "\u56fe\u7247\u5df2\u5220\u9664", currentBranch: "\u5f53\u524d\u5206\u652f", @@ -193,6 +199,8 @@ const dashboard = ref(null) const profiles = ref(null) const workflows = ref([]) const workflowDetail = ref(null) +const workflowBranches = ref([]) +const workflowHistory = ref([]) const selectedNodeId = ref("") const nodeImages = ref([]) const nodeGenerateResult = ref(null) @@ -228,6 +236,9 @@ const workflowDraft = ref({ display_name: "", workflow_type: "single_image", }) +const branchDraft = ref({ + branch_name: "", +}) const nodeGenerateDraft = ref({ model_route: "", prompt: "", @@ -394,6 +405,8 @@ async function loadWorkflows(profileId?: string) { if (!profileId) { workflows.value = [] workflowDetail.value = null + workflowBranches.value = [] + workflowHistory.value = [] selectedNodeId.value = "" nodeImages.value = [] return @@ -423,6 +436,7 @@ async function loadWorkflowDetail(workflowId: string) { selectedNodeId.value = "" nodeImages.value = [] } + await loadWorkflowExtras(workflowId) } async function loadNodeImages(nodeId: string) { @@ -430,6 +444,15 @@ async function loadNodeImages(nodeId: string) { nodeImages.value = await getJson(endpoints.nodeImages(nodeId)) } +async function loadWorkflowExtras(workflowId: string) { + const [branches, history] = await Promise.all([ + getJson(endpoints.workflowBranches(workflowId)), + getJson(endpoints.workflowHistory(workflowId)), + ]) + workflowBranches.value = branches + workflowHistory.value = history +} + async function refreshSelectedWorkflow() { const workflowId = workflowDetail.value?.workflow.workflow_id if (workflowId) { @@ -573,6 +596,43 @@ function archiveWorkflow(workflowId: string) { return runOperation(text.archive, () => postJson(endpoints.workflowArchive(workflowId))) } +function createWorkflowBranch() { + const workflow = workflowDetail.value?.workflow + if (!workflow || !branchDraft.value.branch_name) return Promise.resolve() + return runOperation( + text.branches, + async () => { + const branch = await postJson(endpoints.workflowBranches(workflow.workflow_id), { + branch_name: branchDraft.value.branch_name, + base_branch_name: workflow.current_branch, + base_node_id: selectedNodeId.value || workflow.current_node_id, + copy_nodes: true, + }) + branchDraft.value.branch_name = "" + await refreshSelectedWorkflow() + lastOperation.value = text.branchCreated + return branch + }, + false, + ) +} + +function switchWorkflowBranch(branchName: string) { + const workflowId = workflowDetail.value?.workflow.workflow_id + if (!workflowId) return Promise.resolve() + return runOperation( + text.switchBranch, + async () => { + const workflow = await postJson(endpoints.workflowSwitchBranch(workflowId), { + branch_name: branchName, + }) + await refreshSelectedWorkflow() + return workflow + }, + false, + ) +} + function generateSelectedNode() { const nodeId = selectedNodeId.value if (!nodeId) return Promise.resolve() @@ -1128,6 +1188,36 @@ function storageRootBytes(uriPrefix: string) {
  • {{ text.emptyWorkflows }}
  • +
    +
    +

    {{ text.branches }}

    + {{ workflowBranches.length }} +
    +
    + + +
    +
      +
    • +
      + {{ branch.branch_name }} + {{ branch.base_branch_name ?? "main" }} / {{ branch.status }} +
      + +
    • +
    +
    @@ -1211,6 +1301,22 @@ function storageRootBytes(uriPrefix: string) {
  • {{ text.emptyImages }}
  • {{ JSON.stringify(nodeGenerateResult, null, 2) }}
    +
    +
    +

    {{ text.history }}

    + {{ workflowHistory.length }} +
    +
      +
    • +
      + {{ entry.action }} + {{ entry.title ?? entry.node_id ?? entry.workflow_id }} +
      + {{ entry.branch_name }} +
    • +
    • {{ text.emptyHistory }}
    • +
    +
    {{ JSON.stringify(workflowDetail.workflow, null, 2) }}
    diff --git a/pages/imagestudio/assets/index-CcPvFarb.js b/pages/imagestudio/assets/index-DDpQ4roE.js similarity index 91% rename from pages/imagestudio/assets/index-CcPvFarb.js rename to pages/imagestudio/assets/index-DDpQ4roE.js index 9b6d5f6..55948f8 100644 --- a/pages/imagestudio/assets/index-CcPvFarb.js +++ b/pages/imagestudio/assets/index-DDpQ4roE.js @@ -14,4 +14,4 @@ var qr=Object.defineProperty;var kr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,config * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Rs;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Rs=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Rs?e=>Rs.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 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]}},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&&mt(n,l,"")}else for(const o in t)s[o]==null&&mt(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)||mt(n,o,l):mt(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 mt(e,t,s){if(M(s))s.forEach(n=>mt(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):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))?(In(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)))?In(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&&$n(t)&&I(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 $n(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 ml=Q({patchProp:hl},Yo);let Fn;function _l(){return Fn||(Fn=Eo(ml))}const bl=((...e)=>{const t=_l().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!I(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",Dn={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`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeImages:e=>`nodes/${e}/images`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",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"},Il={key:1,class:"notice"},Rl={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},$l={class:"activity"},Fl={key:0,class:"empty"},Dl={key:0,class:"empty"},jl=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Is(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Is(()=>{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(Dn.uiBootstrap),jn(Dn.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,S,C,D,A,k,K,R,H,O,J,ce,fe,ge;return he(),me("main",Tl,[$("header",El,[$("div",null,[$("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),$("p",null,oe(((S=t.value)==null?void 0:S.dashboard_user)??"AstrBot"),1)]),$("div",Ol,[$("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((D=s.value)==null?void 0:D.plugin_status)??"loading"),9,Al),$("button",{type:"button",onClick:l},"刷新"),t.value?(he(),me("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),me("section",Ml,oe(r.value),1)):n.value?(he(),me("section",Il,"加载中")):(he(),me("section",Rl,[$("article",null,[a[0]||(a[0]=$("span",null,"角色",-1)),$("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),$("article",null,[a[1]||(a[1]=$("span",null,"队列",-1)),$("strong",null,oe(o.value),1)]),$("article",null,[a[2]||(a[2]=$("span",null,"运行中",-1)),$("strong",null,oe(((k=s.value)==null?void 0:k.queue.running)??0),1)]),$("article",null,[a[3]||(a[3]=$("span",null,"失败",-1)),$("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),$("article",null,[a[4]||(a[4]=$("span",null,"存储",-1)),$("strong",null,oe(f((R=s.value)==null?void 0:R.storage.total_bytes)),1)])])),$("section",$l,[$("div",null,[a[5]||(a[5]=$("h2",null,"最近图片",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),me("li",{key:String(de.image_id)},[$("span",null,oe(de.image_id),1),$("small",null,oe(de.created_at),1)]))),128)),(J=(O=s.value)==null?void 0:O.recent_images)!=null&&J.length?bs("",!0):(he(),me("li",Fl,"暂无图片"))])]),$("div",null,[a[6]||(a[6]=$("h2",null,"任务",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),me("li",{key:String(de.task_id)},[$("span",null,oe(de.task_id),1),$("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),me("li",Dl,"暂无任务"))])])])])}}}),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"); +**/let Rs;const Cn=typeof window<"u"&&window.trustedTypes;if(Cn)try{Rs=Cn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=Rs?e=>Rs.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 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]}},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&&mt(n,l,"")}else for(const o in t)s[o]==null&&mt(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)||mt(n,o,l):mt(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 mt(e,t,s){if(M(s))s.forEach(n=>mt(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):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))?(In(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)))?In(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&&$n(t)&&I(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 $n(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 ml=Q({patchProp:hl},Yo);let Fn;function _l(){return Fn||(Fn=Eo(ml))}const bl=((...e)=>{const t=_l().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=vl(n);if(!r)return;const i=t._component;!I(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",Dn={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeImages:e=>`nodes/${e}/images`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",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"},Il={key:1,class:"notice"},Rl={key:2,class:"metrics","aria-label":"ImageStudio dashboard"},$l={class:"activity"},Fl={key:0,class:"empty"},Dl={key:0,class:"empty"},jl=qi({__name:"App",setup(e){const t=Ht(null),s=Ht(null),n=Ht(!0),r=Ht(""),i=Is(()=>{var d;return`${((d=t.value)==null?void 0:d.api_base)??""}/web`}),o=Is(()=>{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(Dn.uiBootstrap),jn(Dn.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,S,C,D,A,k,K,R,H,O,J,ce,fe,ge;return he(),me("main",Tl,[$("header",El,[$("div",null,[$("h1",null,oe(((p=t.value)==null?void 0:p.display_name)??"ImageStudio"),1),$("p",null,oe(((S=t.value)==null?void 0:S.dashboard_user)??"AstrBot"),1)]),$("div",Ol,[$("span",{class:"status","data-state":((C=s.value)==null?void 0:C.plugin_status)??"loading"},oe(((D=s.value)==null?void 0:D.plugin_status)??"loading"),9,Al),$("button",{type:"button",onClick:l},"刷新"),t.value?(he(),me("a",{key:0,class:"primary",href:i.value,target:"_blank",rel:"noreferrer"},"工作台",8,Pl)):bs("",!0)])]),r.value?(he(),me("section",Ml,oe(r.value),1)):n.value?(he(),me("section",Il,"加载中")):(he(),me("section",Rl,[$("article",null,[a[0]||(a[0]=$("span",null,"角色",-1)),$("strong",null,oe(((A=s.value)==null?void 0:A.active_profiles)??0),1)]),$("article",null,[a[1]||(a[1]=$("span",null,"队列",-1)),$("strong",null,oe(o.value),1)]),$("article",null,[a[2]||(a[2]=$("span",null,"运行中",-1)),$("strong",null,oe(((k=s.value)==null?void 0:k.queue.running)??0),1)]),$("article",null,[a[3]||(a[3]=$("span",null,"失败",-1)),$("strong",null,oe(((K=s.value)==null?void 0:K.queue.failed)??0),1)]),$("article",null,[a[4]||(a[4]=$("span",null,"存储",-1)),$("strong",null,oe(f((R=s.value)==null?void 0:R.storage.total_bytes)),1)])])),$("section",$l,[$("div",null,[a[5]||(a[5]=$("h2",null,"最近图片",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((H=s.value)==null?void 0:H.recent_images)??[],de=>(he(),me("li",{key:String(de.image_id)},[$("span",null,oe(de.image_id),1),$("small",null,oe(de.created_at),1)]))),128)),(J=(O=s.value)==null?void 0:O.recent_images)!=null&&J.length?bs("",!0):(he(),me("li",Fl,"暂无图片"))])]),$("div",null,[a[6]||(a[6]=$("h2",null,"任务",-1)),$("ul",null,[(he(!0),me(_e,null,dn(((ce=s.value)==null?void 0:ce.recent_jobs)??[],de=>(he(),me("li",{key:String(de.task_id)},[$("span",null,oe(de.task_id),1),$("small",null,oe(de.status),1)]))),128)),(ge=(fe=s.value)==null?void 0:fe.recent_jobs)!=null&&ge.length?bs("",!0):(he(),me("li",Dl,"暂无任务"))])])])])}}}),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 3736dff..ab27c4a 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
    diff --git a/web/assets/index-BBg1Dw3d.css b/web/assets/index-BBg1Dw3d.css new file mode 100644 index 0000000..d05dc16 --- /dev/null +++ b/web/assets/index-BBg1Dw3d.css @@ -0,0 +1 @@ +.web-shell[data-v-8be9e5d2]{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-8be9e5d2],.inspector[data-v-8be9e5d2]{background:#fff}.sidebar[data-v-8be9e5d2]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-8be9e5d2]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-8be9e5d2]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-8be9e5d2]{font-size:19px}.brand span[data-v-8be9e5d2],p[data-v-8be9e5d2],dt[data-v-8be9e5d2],.empty[data-v-8be9e5d2],small[data-v-8be9e5d2]{color:#667085}nav[data-v-8be9e5d2]{display:grid;gap:6px}button[data-v-8be9e5d2]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-8be9e5d2]:disabled{cursor:wait;opacity:.62}nav button[data-v-8be9e5d2]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-8be9e5d2]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-8be9e5d2]{min-width:0;padding:24px}.topbar[data-v-8be9e5d2],.list-view header[data-v-8be9e5d2],.toolbar[data-v-8be9e5d2],.inline-actions[data-v-8be9e5d2]{display:flex;gap:12px;align-items:center}.topbar[data-v-8be9e5d2],.list-view header[data-v-8be9e5d2]{justify-content:space-between}.actions[data-v-8be9e5d2],.inline-actions[data-v-8be9e5d2]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-8be9e5d2],.toolbar button[data-v-8be9e5d2],.list-view header button[data-v-8be9e5d2],.inline-actions button[data-v-8be9e5d2]{padding:0 14px}h1[data-v-8be9e5d2],h2[data-v-8be9e5d2],p[data-v-8be9e5d2],dl[data-v-8be9e5d2],dd[data-v-8be9e5d2]{margin:0}h1[data-v-8be9e5d2]{min-height:30px;font-size:26px}h2[data-v-8be9e5d2]{font-size:15px}.notice[data-v-8be9e5d2],article[data-v-8be9e5d2],.list-view[data-v-8be9e5d2],.editor-panel[data-v-8be9e5d2],pre[data-v-8be9e5d2]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-8be9e5d2]{margin-top:18px;padding:14px}.error[data-v-8be9e5d2]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-8be9e5d2],.split-view[data-v-8be9e5d2]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-8be9e5d2]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-8be9e5d2]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-8be9e5d2]{display:grid;gap:8px;padding:16px}article span[data-v-8be9e5d2]{color:#667085;font-size:13px}article strong[data-v-8be9e5d2]{font-size:24px}.list-view[data-v-8be9e5d2],.logs-view[data-v-8be9e5d2],.settings-view[data-v-8be9e5d2]{margin-top:18px}.split-view .list-view[data-v-8be9e5d2],.logs-view .list-view[data-v-8be9e5d2]{margin-top:0}.list-view[data-v-8be9e5d2]{padding:16px}.editor-panel[data-v-8be9e5d2]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-8be9e5d2]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-8be9e5d2]{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-8be9e5d2]{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-8be9e5d2]{display:grid;gap:5px;min-width:0}label span[data-v-8be9e5d2]{color:#667085;font-size:12px}.wide-field[data-v-8be9e5d2]{grid-column:1 / -1}input[data-v-8be9e5d2],select[data-v-8be9e5d2]{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-8be9e5d2]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-8be9e5d2]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-8be9e5d2]:first-child{border-top:0}li>div[data-v-8be9e5d2]{display:grid;gap:3px;min-width:0}li strong[data-v-8be9e5d2],li span[data-v-8be9e5d2],li small[data-v-8be9e5d2]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-8be9e5d2]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-8be9e5d2]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-8be9e5d2]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-8be9e5d2]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-8be9e5d2]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-8be9e5d2]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-8be9e5d2]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-8be9e5d2]{display:none}}@media(max-width:820px){.web-shell[data-v-8be9e5d2]{grid-template-columns:1fr}.sidebar[data-v-8be9e5d2]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-8be9e5d2]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-8be9e5d2]{text-align:center}.dashboard-grid[data-v-8be9e5d2],.split-view[data-v-8be9e5d2],.settings-sections[data-v-8be9e5d2]{grid-template-columns:1fr}.topbar[data-v-8be9e5d2],.list-view header[data-v-8be9e5d2]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-BMrshMnb.css b/web/assets/index-BMrshMnb.css deleted file mode 100644 index e8766c8..0000000 --- a/web/assets/index-BMrshMnb.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-61c36513]{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-61c36513],.inspector[data-v-61c36513]{background:#fff}.sidebar[data-v-61c36513]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-61c36513]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-61c36513]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-61c36513]{font-size:19px}.brand span[data-v-61c36513],p[data-v-61c36513],dt[data-v-61c36513],.empty[data-v-61c36513],small[data-v-61c36513]{color:#667085}nav[data-v-61c36513]{display:grid;gap:6px}button[data-v-61c36513]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-61c36513]:disabled{cursor:wait;opacity:.62}nav button[data-v-61c36513]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-61c36513]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-61c36513]{min-width:0;padding:24px}.topbar[data-v-61c36513],.list-view header[data-v-61c36513],.toolbar[data-v-61c36513],.inline-actions[data-v-61c36513]{display:flex;gap:12px;align-items:center}.topbar[data-v-61c36513],.list-view header[data-v-61c36513]{justify-content:space-between}.actions[data-v-61c36513],.inline-actions[data-v-61c36513]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-61c36513],.toolbar button[data-v-61c36513],.list-view header button[data-v-61c36513],.inline-actions button[data-v-61c36513]{padding:0 14px}h1[data-v-61c36513],h2[data-v-61c36513],p[data-v-61c36513],dl[data-v-61c36513],dd[data-v-61c36513]{margin:0}h1[data-v-61c36513]{min-height:30px;font-size:26px}h2[data-v-61c36513]{font-size:15px}.notice[data-v-61c36513],article[data-v-61c36513],.list-view[data-v-61c36513],.editor-panel[data-v-61c36513],pre[data-v-61c36513]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-61c36513]{margin-top:18px;padding:14px}.error[data-v-61c36513]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-61c36513],.split-view[data-v-61c36513]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-61c36513]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-61c36513]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-61c36513]{display:grid;gap:8px;padding:16px}article span[data-v-61c36513]{color:#667085;font-size:13px}article strong[data-v-61c36513]{font-size:24px}.list-view[data-v-61c36513],.logs-view[data-v-61c36513],.settings-view[data-v-61c36513]{margin-top:18px}.split-view .list-view[data-v-61c36513],.logs-view .list-view[data-v-61c36513]{margin-top:0}.list-view[data-v-61c36513]{padding:16px}.editor-panel[data-v-61c36513]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-61c36513]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-61c36513]{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-61c36513]{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-61c36513]{display:grid;gap:5px;min-width:0}label span[data-v-61c36513]{color:#667085;font-size:12px}.wide-field[data-v-61c36513]{grid-column:1 / -1}input[data-v-61c36513],select[data-v-61c36513]{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-61c36513]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-61c36513]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-61c36513]:first-child{border-top:0}li>div[data-v-61c36513]{display:grid;gap:3px;min-width:0}li strong[data-v-61c36513],li span[data-v-61c36513],li small[data-v-61c36513]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-61c36513]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-61c36513]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-61c36513]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-61c36513]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-61c36513]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-61c36513]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-61c36513]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-61c36513]{display:none}}@media(max-width:820px){.web-shell[data-v-61c36513]{grid-template-columns:1fr}.sidebar[data-v-61c36513]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-61c36513]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-61c36513]{text-align:center}.dashboard-grid[data-v-61c36513],.split-view[data-v-61c36513],.settings-sections[data-v-61c36513]{grid-template-columns:1fr}.topbar[data-v-61c36513],.list-view header[data-v-61c36513]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-BTjymfnK.js b/web/assets/index-BTjymfnK.js deleted file mode 100644 index 2e14f7f..0000000 --- a/web/assets/index-BTjymfnK.js +++ /dev/null @@ -1,17 +0,0 @@ -var fo=Object.defineProperty;var po=(e,t,n)=>t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tl=(e,t,n)=>po(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function kl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ae={},Ft=[],st=()=>{},Ls=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bn=e=>e.startsWith("onUpdate:"),ke=Object.assign,Pl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ho=Object.prototype.hasOwnProperty,ne=(e,t)=>ho.call(e,t),j=Array.isArray,jt=e=>un(e)==="[object Map]",Nn=e=>un(e)==="[object Set]",ss=e=>un(e)==="[object Date]",N=e=>typeof e=="function",_e=e=>typeof e=="string",it=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Fs=e=>(oe(e)||N(e))&&N(e.then)&&N(e.catch),js=Object.prototype.toString,un=e=>js.call(e),go=e=>un(e).slice(8,-1),Vs=e=>un(e)==="[object Object]",El=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yt=kl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},vo=/-\w/g,ze=Un(e=>e.replace(vo,t=>t.slice(1).toUpperCase())),_o=/\B([A-Z])/g,It=Un(e=>e.replace(_o,"-$1").toLowerCase()),Bs=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),nl=Un(e=>e?`on${Bs(e)}`:""),lt=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const Hn=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tl(e){if(j(e)){const t={};for(let n=0;n{if(n){const l=n.split(yo);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Kn(e){let t="";if(_e(e))t=e;else if(j(e))for(let n=0;ncn(n,t))}const Ws=e=>!!(e&&e.__v_isRef===!0),f=e=>_e(e)?e:e==null?"":j(e)||oe(e)&&(e.toString===js||!N(e.toString))?Ws(e)?f(e.value):JSON.stringify(e,Hs,2):String(e),Hs=(e,t)=>Ws(t)?Hs(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],i)=>(n[ll(l,i)+" =>"]=s,n),{})}:Nn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ll(n))}:it(t)?ll(t):oe(t)&&!j(t)&&!Vs(t)?String(t):t,ll=(e,t="")=>{var n;return it(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 Se;class Po{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let t=Se;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Xt){let t=Xt;for(Xt=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(l){e||(e=l)}t=n}}if(e)throw e}function Gs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zs(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Il(l),To(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function hl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ys(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ys(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln)||(e.globalVersion=ln,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hl(e))))return;e.flags|=2;const t=e.dep,n=ue,l=Ye;ue=e,Ye=!0;try{Gs(e);const s=e.fn(e._value);(t.version===0||lt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ye=l,zs(e),e.flags&=-3}}function Il(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Il(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function To(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ye=!0;const Qs=[];function ot(){Qs.push(Ye),Ye=!1}function rt(){const e=Qs.pop();Ye=e===void 0?!0:e}function os(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let ln=0;class Oo{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 Al{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(!ue||!Ye||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new Oo(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,Xs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=l)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){Ol();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Dl()}}}function Xs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Xs(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const gl=new WeakMap,Ot=Symbol(""),vl=Symbol(""),sn=Symbol("");function Pe(e,t,n){if(Ye&&ue){let l=gl.get(e);l||gl.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Al),s.map=l,s.key=n),s.track()}}function pt(e,t,n,l,s,i){const r=gl.get(e);if(!r){ln++;return}const a=c=>{c&&c.trigger()};if(Ol(),t==="clear")r.forEach(a);else{const c=j(e),_=c&&El(n);if(c&&n==="length"){const g=Number(l);r.forEach((y,I)=>{(I==="length"||I===sn||!it(I)&&I>=g)&&a(y)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),_&&a(r.get(sn)),t){case"add":c?_&&a(r.get("length")):(a(r.get(Ot)),jt(e)&&a(r.get(vl)));break;case"delete":c||(a(r.get(Ot)),jt(e)&&a(r.get(vl)));break;case"set":jt(e)&&a(r.get(Ot));break}}Dl()}function Mt(e){const t=te(e);return t===e?t:(Pe(t,"iterate",sn),qe(e)?t:t.map(Qe))}function qn(e){return Pe(e=te(e),"iterate",sn),e}function tt(e,t){return vt(e)?Ut(Dt(e)?Qe(t):t):Qe(t)}const Do={__proto__:null,[Symbol.iterator](){return il(this,Symbol.iterator,e=>tt(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>j(t)?Mt(t):t))},entries(){return il(this,"entries",e=>(e[1]=tt(this,e[1]),e))},every(e,t){return ct(this,"every",e,t,void 0,arguments)},filter(e,t){return ct(this,"filter",e,t,n=>n.map(l=>tt(this,l)),arguments)},find(e,t){return ct(this,"find",e,t,n=>tt(this,n),arguments)},findIndex(e,t){return ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ct(this,"findLast",e,t,n=>tt(this,n),arguments)},findLastIndex(e,t){return ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return ol(this,"includes",e)},indexOf(...e){return ol(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return ol(this,"lastIndexOf",e)},map(e,t){return ct(this,"map",e,t,void 0,arguments)},pop(){return qt(this,"pop")},push(...e){return qt(this,"push",e)},reduce(e,...t){return rs(this,"reduce",e,t)},reduceRight(e,...t){return rs(this,"reduceRight",e,t)},shift(){return qt(this,"shift")},some(e,t){return ct(this,"some",e,t,void 0,arguments)},splice(...e){return qt(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 qt(this,"unshift",e)},values(){return il(this,"values",e=>tt(this,e))}};function il(e,t,n){const l=qn(e),s=l[t]();return l!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Io=Array.prototype;function ct(e,t,n,l,s,i){const r=qn(e),a=r!==e&&!qe(e),c=r[t];if(c!==Io[t]){const y=c.apply(e,i);return a?Qe(y):y}let _=n;r!==e&&(a?_=function(y,I){return n.call(this,tt(e,y),I,e)}:n.length>2&&(_=function(y,I){return n.call(this,y,I,e)}));const g=c.call(r,_,l);return a&&s?s(g):g}function rs(e,t,n,l){const s=qn(e),i=s!==e&&!qe(e);let r=n,a=!1;s!==e&&(i?(a=l.length===0,r=function(_,g,y){return a&&(a=!1,_=tt(e,_)),n.call(this,_,tt(e,g),y,e)}):n.length>3&&(r=function(_,g,y){return n.call(this,_,g,y,e)}));const c=s[t](r,...l);return a?tt(e,c):c}function ol(e,t,n){const l=te(e);Pe(l,"iterate",sn);const s=l[t](...n);return(s===-1||s===!1)&&Ll(n[0])?(n[0]=te(n[0]),l[t](...n)):s}function qt(e,t,n=[]){ot(),Ol();const l=te(e)[t].apply(e,n);return Dl(),rt(),l}const Ao=kl("__proto__,__v_isRef,__isVue"),Zs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Mo(e){it(e)||(e=String(e));const t=te(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class ei{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return l===(s?i?Wo:si:i?li:ni).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=j(t);if(!s){let c;if(r&&(c=Do[n]))return c;if(n==="hasOwnProperty")return Mo}const a=Reflect.get(t,n,Ee(t)?t:l);if((it(n)?Zs.has(n):Ao(n))||(s||Pe(t,"get",n),i))return a;if(Ee(a)){const c=r&&El(n)?a:a.value;return s&&oe(c)?ml(c):c}return oe(a)?s?ml(a):Rl(a):a}}class ti extends ei{constructor(t=!1){super(!1,t)}set(t,n,l,s){let i=t[n];const r=j(t)&&El(n);if(!this._isShallow){const _=vt(i);if(!qe(l)&&!vt(l)&&(i=te(i),l=te(l)),!r&&Ee(i)&&!Ee(l))return _||(i.value=l),!0}const a=r?Number(n)e,Sn=e=>Reflect.getPrototypeOf(e);function jo(e,t,n){return function(...l){const s=this.__v_raw,i=te(s),r=jt(i),a=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,_=s[e](...l),g=n?_l:t?Ut:Qe;return!t&&Pe(i,"iterate",c?vl:Ot),ke(Object.create(_),{next(){const{value:y,done:I}=_.next();return I?{value:y,done:I}:{value:a?[g(y[0]),g(y[1])]:g(y),done:I}}})}}function kn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vo(e,t){const n={get(s){const i=this.__v_raw,r=te(i),a=te(s);e||(lt(s,a)&&Pe(r,"get",s),Pe(r,"get",a));const{has:c}=Sn(r),_=t?_l:e?Ut:Qe;if(c.call(r,s))return _(i.get(s));if(c.call(r,a))return _(i.get(a));i!==r&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Pe(te(s),"iterate",Ot),s.size},has(s){const i=this.__v_raw,r=te(i),a=te(s);return e||(lt(s,a)&&Pe(r,"has",s),Pe(r,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const r=this,a=r.__v_raw,c=te(a),_=t?_l:e?Ut:Qe;return!e&&Pe(c,"iterate",Ot),a.forEach((g,y)=>s.call(i,_(g),_(y),r))}};return ke(n,e?{add:kn("add"),set:kn("set"),delete:kn("delete"),clear:kn("clear")}:{add(s){const i=te(this),r=Sn(i),a=te(s),c=!t&&!qe(s)&&!vt(s)?a:s;return r.has.call(i,c)||lt(s,c)&&r.has.call(i,s)||lt(a,c)&&r.has.call(i,a)||(i.add(c),pt(i,"add",c,c)),this},set(s,i){!t&&!qe(i)&&!vt(i)&&(i=te(i));const r=te(this),{has:a,get:c}=Sn(r);let _=a.call(r,s);_||(s=te(s),_=a.call(r,s));const g=c.call(r,s);return r.set(s,i),_?lt(i,g)&&pt(r,"set",s,i):pt(r,"add",s,i),this},delete(s){const i=te(this),{has:r,get:a}=Sn(i);let c=r.call(i,s);c||(s=te(s),c=r.call(i,s)),a&&a.call(i,s);const _=i.delete(s);return c&&pt(i,"delete",s,void 0),_},clear(){const s=te(this),i=s.size!==0,r=s.clear();return i&&pt(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jo(s,e,t)}),n}function Ml(e,t){const n=Vo(e,t);return(l,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(ne(n,s)&&s in l?n:l,s,i)}const Bo={get:Ml(!1,!1)},No={get:Ml(!1,!0)},Uo={get:Ml(!0,!1)};const ni=new WeakMap,li=new WeakMap,si=new WeakMap,Wo=new WeakMap;function Ho(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rl(e){return vt(e)?e:$l(e,!1,$o,Bo,ni)}function Ko(e){return $l(e,!1,Fo,No,li)}function ml(e){return $l(e,!0,Lo,Uo,si)}function $l(e,t,n,l,s){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const r=Ho(go(e));if(r===0)return e;const a=new Proxy(e,r===2?l:n);return s.set(e,a),a}function Dt(e){return vt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Ll(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function qo(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Ns(e,"__v_skip",!0),e}const Qe=e=>oe(e)?Rl(e):e,Ut=e=>oe(e)?ml(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function H(e){return Jo(e,!1)}function Jo(e,t){return Ee(e)?e:new Go(e,t)}class Go{constructor(t,n){this.dep=new Al,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||qe(t)||vt(t);t=l?t:te(t),lt(t,n)&&(this._rawValue=t,this._value=l?t:Qe(t),this.dep.trigger())}}function zo(e){return Ee(e)?e.value:e}const Yo={get:(e,t,n)=>t==="__v_raw"?e:zo(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Ee(s)&&!Ee(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function ii(e){return Dt(e)?e:new Proxy(e,Yo)}class Qo{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Al(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return Js(this,!0),!0}get value(){const t=this.dep.track();return Ys(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xo(e,t,n=!1){let l,s;return N(e)?l=e:(l=e.get,s=e.set),new Qo(l,s,n)}const Pn={},Dn=new WeakMap;let Et;function Zo(e,t=!1,n=Et){if(n){let l=Dn.get(n);l||Dn.set(n,l=[]),l.push(e)}}function er(e,t,n=ae){const{immediate:l,deep:s,once:i,scheduler:r,augmentJob:a,call:c}=n,_=L=>s?L:qe(L)||s===!1||s===0?ht(L,1):ht(L);let g,y,I,A,Y=!1,$=!1;if(Ee(e)?(y=()=>e.value,Y=qe(e)):Dt(e)?(y=()=>_(e),Y=!0):j(e)?($=!0,Y=e.some(L=>Dt(L)||qe(L)),y=()=>e.map(L=>{if(Ee(L))return L.value;if(Dt(L))return _(L);if(N(L))return c?c(L,2):L()})):N(e)?t?y=c?()=>c(e,2):e:y=()=>{if(I){ot();try{I()}finally{rt()}}const L=Et;Et=g;try{return c?c(e,3,[A]):e(A)}finally{Et=L}}:y=st,t&&s){const L=y,de=s===!0?1/0:s;y=()=>ht(L(),de)}const fe=Eo(),X=()=>{g.stop(),fe&&fe.active&&Pl(fe.effects,g)};if(i&&t){const L=t;t=(...de)=>{const Te=L(...de);return X(),Te}}let U=$?new Array(e.length).fill(Pn):Pn;const Z=L=>{if(!(!(g.flags&1)||!g.dirty&&!L))if(t){const de=g.run();if(L||s||Y||($?de.some((Te,re)=>lt(Te,U[re])):lt(de,U))){I&&I();const Te=Et;Et=g;try{const re=[de,U===Pn?void 0:$&&U[0]===Pn?[]:U,A];U=de,c?c(t,3,re):t(...re)}finally{Et=Te}}}else g.run()};return a&&a(Z),g=new Ks(y),g.scheduler=r?()=>r(Z,!1):Z,A=L=>Zo(L,!1,g),I=g.onStop=()=>{const L=Dn.get(g);if(L){if(c)c(L,4);else for(const de of L)de();Dn.delete(g)}},t?l?Z(!0):U=g.run():r?r(Z.bind(null,!0),!0):g.run(),X.pause=g.pause.bind(g),X.resume=g.resume.bind(g),X.stop=X,X}function ht(e,t=1/0,n){if(t<=0||!oe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ee(e))ht(e.value,t,n);else if(j(e))for(let l=0;l{ht(l,t,n)});else if(Vs(e)){for(const l in e)ht(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&ht(e[l],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function fn(e,t,n,l){try{return l?e(...l):e()}catch(s){Jn(s,t,n)}}function Xe(e,t,n,l){if(N(e)){const s=fn(e,t,n,l);return s&&Fs(s)&&s.catch(i=>{Jn(i,t,n)}),s}if(j(e)){const s=[];for(let i=0;i>>1,s=Ae[l],i=on(s);i=on(n)?Ae.push(e):Ae.splice(nr(t),0,e),e.flags|=1,ai()}}function ai(){In||(In=oi.then(ci))}function lr(e){j(e)?Vt.push(...e):bt&&e.id===-1?bt.splice($t+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),ai()}function as(e,t,n=et+1){for(;non(n)-on(l));if(Vt.length=0,bt){bt.push(...t);return}for(bt=t,$t=0;$te.id==null?e.flags&2?-1:1/0:e.id;function ci(e){try{for(et=0;et{l._d&&ys(-1);const i=An(t);let r;try{r=e(...s)}finally{An(i),l._d&&ys(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function J(e,t){if(Ke===null)return e;const n=Qn(Ke),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&N(t)?t.call(l&&l.proxy):t}}const or=Symbol.for("v-scx"),rr=()=>Tn(or);function rl(e,t,n){return di(e,t,n)}function di(e,t,n=ae){const{immediate:l,deep:s,flush:i,once:r}=n,a=ke({},n),c=t&&l||!t&&i!=="post";let _;if(an){if(i==="sync"){const A=rr();_=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=st,A.resume=st,A.pause=st,A}}const g=Me;a.call=(A,Y,$)=>Xe(A,g,Y,$);let y=!1;i==="post"?a.scheduler=A=>{$e(A,g&&g.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(A,Y)=>{Y?A():Fl(A)}),a.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,g&&(A.id=g.uid,A.i=g))};const I=er(e,t,a);return an&&(_?_.push(I):c&&I()),I}function ar(e,t,n){const l=this.proxy,s=_e(e)?e.includes(".")?pi(l,e):()=>l[e]:e.bind(l,l);let i;N(t)?i=t:(i=t.handler,n=t);const r=dn(this),a=di(s,i.bind(l),n);return r(),a}function pi(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,al=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fr(e,t){return N(e)?ke({name:e.name},t,{setup:e}):e}function hi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function us(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mn=new WeakMap;function Zt(e,t,n,l,s=!1){if(j(e)){e.forEach(($,fe)=>Zt($,t&&(j(t)?t[fe]:t),n,l,s));return}if(en(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Zt(e,t,n,l.component.subTree);return}const i=l.shapeFlag&4?Qn(l.component):l.el,r=s?null:i,{i:a,r:c}=e,_=t&&t.r,g=a.refs===ae?a.refs={}:a.refs,y=a.setupState,I=te(y),A=y===ae?Ls:$=>us(g,$)?!1:ne(I,$),Y=($,fe)=>!(fe&&us(g,fe));if(_!=null&&_!==c){if(cs(t),_e(_))g[_]=null,A(_)&&(y[_]=null);else if(Ee(_)){const $=t;Y(_,$.k)&&(_.value=null),$.k&&(g[$.k]=null)}}if(N(c)){ot();try{fn(c,a,12,[r,g])}finally{rt()}}else{const $=_e(c),fe=Ee(c);if($||fe){const X=()=>{if(e.f){const U=$?A(c)?y[c]:g[c]:Y()||!e.k?c.value:g[e.k];if(s)j(U)&&Pl(U,i);else if(j(U))U.includes(i)||U.push(i);else if($)g[c]=[i],A(c)&&(y[c]=g[c]);else{const Z=[i];Y(c,e.k)&&(c.value=Z),e.k&&(g[e.k]=Z)}}else $?(g[c]=r,A(c)&&(y[c]=r)):fe&&(Y(c,e.k)&&(c.value=r),e.k&&(g[e.k]=r))};if(r){const U=()=>{X(),Mn.delete(e)};U.id=-1,Mn.set(e,U),$e(U,n)}else cs(e),X()}}}function cs(e){const t=Mn.get(e);t&&(t.flags|=8,Mn.delete(e))}Hn().requestIdleCallback;Hn().cancelIdleCallback;const en=e=>!!e.type.__asyncLoader,gi=e=>e.type.__isKeepAlive;function dr(e,t){vi(e,"a",t)}function pr(e,t){vi(e,"da",t)}function vi(e,t,n=Me){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)gi(s.parent.vnode)&&hr(l,t,n,s),s=s.parent}}function hr(e,t,n,l){const s=Gn(t,e,l,!0);mi(()=>{Pl(l[t],s)},n)}function Gn(e,t,n=Me,l=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{ot();const a=dn(n),c=Xe(t,n,e,r);return a(),rt(),c});return l?s.unshift(i):s.push(i),i}}const _t=e=>(t,n=Me)=>{(!an||e==="sp")&&Gn(e,(...l)=>t(...l),n)},gr=_t("bm"),_i=_t("m"),vr=_t("bu"),_r=_t("u"),mr=_t("bum"),mi=_t("um"),yr=_t("sp"),br=_t("rtg"),wr=_t("rtc");function xr(e,t=Me){Gn("ec",e,t)}const Cr=Symbol.for("v-ndc");function ve(e,t,n,l){let s;const i=n,r=j(e);if(r||_e(e)){const a=r&&Dt(e);let c=!1,_=!1;a&&(c=!qe(e),_=vt(e),e=qn(e)),s=new Array(e.length);for(let g=0,y=e.length;gt(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,_=a.length;c<_;c++){const g=a[c];s[c]=t(e[g],g,c,i)}}else s=[];return s}const yl=e=>e?Vi(e)?Qn(e):yl(e.parent):null,tn=ke(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=>yl(e.parent),$root:e=>yl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bi(e),$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=ri.bind(e.proxy)),$watch:e=>ar.bind(e)}),ul=(e,t)=>e!==ae&&!e.__isScriptSetup&&ne(e,t),Sr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:i,accessCache:r,type:a,appContext:c}=e;if(t[0]!=="$"){const I=r[t];if(I!==void 0)switch(I){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ul(l,t))return r[t]=1,l[t];if(s!==ae&&ne(s,t))return r[t]=2,s[t];if(ne(i,t))return r[t]=3,i[t];if(n!==ae&&ne(n,t))return r[t]=4,n[t];bl&&(r[t]=0)}}const _=tn[t];let g,y;if(_)return t==="$attrs"&&Pe(e.attrs,"get",""),_(e);if((g=a.__cssModules)&&(g=g[t]))return g;if(n!==ae&&ne(n,t))return r[t]=4,n[t];if(y=c.config.globalProperties,ne(y,t))return y[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:i}=e;return ul(s,t)?(s[t]=n,!0):l!==ae&&ne(l,t)?(l[t]=n,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:i,type:r}},a){let c;return!!(n[a]||e!==ae&&a[0]!=="$"&&ne(e,a)||ul(t,a)||ne(i,a)||ne(l,a)||ne(tn,a)||ne(s.config.globalProperties,a)||(c=r.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fs(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let bl=!0;function kr(e){const t=bi(e),n=e.proxy,l=e.ctx;bl=!1,t.beforeCreate&&ds(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:r,watch:a,provide:c,inject:_,created:g,beforeMount:y,mounted:I,beforeUpdate:A,updated:Y,activated:$,deactivated:fe,beforeDestroy:X,beforeUnmount:U,destroyed:Z,unmounted:L,render:de,renderTracked:Te,renderTriggered:re,errorCaptured:Le,serverPrefetch:at,expose:Fe,inheritAttrs:Je,components:K,directives:Ge,filters:Ve}=t;if(_&&Pr(_,l,null),r)for(const W in r){const V=r[W];N(V)&&(l[W]=V.bind(n))}if(s){const W=s.call(n,n);oe(W)&&(e.data=Rl(W))}if(bl=!0,i)for(const W in i){const V=i[W],ye=N(V)?V.bind(n,n):N(V.get)?V.get.bind(n,n):st,ut=!N(V)&&N(V.set)?V.set.bind(n):st,be=yt({get:ye,set:ut});Object.defineProperty(l,W,{enumerable:!0,configurable:!0,get:()=>be.value,set:Oe=>be.value=Oe})}if(a)for(const W in a)yi(a[W],l,n,W);if(c){const W=N(c)?c.call(n):c;Reflect.ownKeys(W).forEach(V=>{ir(V,W[V])})}g&&ds(g,e,"c");function ce(W,V){j(V)?V.forEach(ye=>W(ye.bind(n))):V&&W(V.bind(n))}if(ce(gr,y),ce(_i,I),ce(vr,A),ce(_r,Y),ce(dr,$),ce(pr,fe),ce(xr,Le),ce(wr,Te),ce(br,re),ce(mr,U),ce(mi,L),ce(yr,at),j(Fe))if(Fe.length){const W=e.exposed||(e.exposed={});Fe.forEach(V=>{Object.defineProperty(W,V,{get:()=>n[V],set:ye=>n[V]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});de&&e.render===st&&(e.render=de),Je!=null&&(e.inheritAttrs=Je),K&&(e.components=K),Ge&&(e.directives=Ge),at&&hi(e)}function Pr(e,t,n=st){j(e)&&(e=wl(e));for(const l in e){const s=e[l];let i;oe(s)?"default"in s?i=Tn(s.from||l,s.default,!0):i=Tn(s.from||l):i=Tn(s),Ee(i)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[l]=i}}function ds(e,t,n){Xe(j(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function yi(e,t,n,l){let s=l.includes(".")?pi(n,l):()=>n[l];if(_e(e)){const i=t[e];N(i)&&rl(s,i)}else if(N(e))rl(s,e.bind(n));else if(oe(e))if(j(e))e.forEach(i=>yi(i,t,n,l));else{const i=N(e.handler)?e.handler.bind(n):t[e.handler];N(i)&&rl(s,i,e)}}function bi(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!l?c=t:(c={},s.length&&s.forEach(_=>Rn(c,_,r,!0)),Rn(c,t,r)),oe(t)&&i.set(t,c),c}function Rn(e,t,n,l=!1){const{mixins:s,extends:i}=t;i&&Rn(e,i,n,!0),s&&s.forEach(r=>Rn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const a=Er[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Er={data:ps,props:hs,emits:hs,methods:Gt,computed:Gt,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Gt,directives:Gt,watch:Or,provide:ps,inject:Tr};function ps(e,t){return t?e?function(){return ke(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function Tr(e,t){return Gt(wl(e),wl(t))}function wl(e){if(j(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${It(t)}Modifiers`];function Mr(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||ae;let s=n;const i=t.startsWith("update:"),r=i&&Ar(l,t.slice(7));r&&(r.trim&&(s=n.map(g=>_e(g)?g.trim():g)),r.number&&(s=n.map(Wn)));let a,c=l[a=nl(t)]||l[a=nl(ze(t))];!c&&i&&(c=l[a=nl(It(t))]),c&&Xe(c,e,6,s);const _=l[a+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Xe(_,e,6,s)}}const Rr=new WeakMap;function xi(e,t,n=!1){const l=n?Rr:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const i=e.emits;let r={},a=!1;if(!N(e)){const c=_=>{const g=xi(_,t,!0);g&&(a=!0,ke(r,g))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(oe(e)&&l.set(e,null),null):(j(i)?i.forEach(c=>r[c]=null):ke(r,i),oe(e)&&l.set(e,r),r)}function zn(e,t){return!e||!Vn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,It(t))||ne(e,t))}function gs(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[i],slots:r,attrs:a,emit:c,render:_,renderCache:g,props:y,data:I,setupState:A,ctx:Y,inheritAttrs:$}=e,fe=An(e);let X,U;try{if(n.shapeFlag&4){const L=s||l,de=L;X=nt(_.call(de,L,g,y,A,I,Y)),U=a}else{const L=t;X=nt(L.length>1?L(y,{attrs:a,slots:r,emit:c}):L(y,null)),U=t.props?a:$r(a)}}catch(L){nn.length=0,Jn(L,e,1),X=gt(wt)}let Z=X;if(U&&$!==!1){const L=Object.keys(U),{shapeFlag:de}=Z;L.length&&de&7&&(i&&L.some(Bn)&&(U=Lr(U,i)),Z=Wt(Z,U,!1,!0))}return n.dirs&&(Z=Wt(Z,null,!1,!0),Z.dirs=Z.dirs?Z.dirs.concat(n.dirs):n.dirs),n.transition&&jl(Z,n.transition),X=Z,An(fe),X}const $r=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Lr=(e,t)=>{const n={};for(const l in e)(!Bn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function Fr(e,t,n){const{props:l,children:s,component:i}=e,{props:r,children:a,patchFlag:c}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return l?vs(l,r,_):!!r;if(c&8){const g=t.dynamicProps;for(let y=0;yObject.create(Si),Pi=e=>Object.getPrototypeOf(e)===Si;function Vr(e,t,n,l=!1){const s={},i=ki();e.propsDefaults=Object.create(null),Ei(e,t,s,i);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=l?s:Ko(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Br(e,t,n,l){const{props:s,attrs:i,vnode:{patchFlag:r}}=e,a=te(s),[c]=e.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const g=e.vnode.dynamicProps;for(let y=0;y{c=!0;const[I,A]=Ti(y,t,!0);ke(r,I),A&&a.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!i&&!c)return oe(e)&&l.set(e,Ft),Ft;if(j(i))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Bl=e=>j(e)?e.map(nt):[nt(e)],Ur=(e,t,n)=>{if(t._n)return t;const l=sr((...s)=>Bl(t(...s)),n);return l._c=!1,l},Oi=(e,t,n)=>{const l=e._ctx;for(const s in e){if(Vl(s))continue;const i=e[s];if(N(i))t[s]=Ur(s,i,l);else if(i!=null){const r=Bl(i);t[s]=()=>r}}},Di=(e,t)=>{const n=Bl(t);e.slots.default=()=>n},Ii=(e,t,n)=>{for(const l in t)(n||!Vl(l))&&(e[l]=t[l])},Wr=(e,t,n)=>{const l=e.slots=ki();if(e.vnode.shapeFlag&32){const s=t._;s?(Ii(l,t,n),n&&Ns(l,"_",s,!0)):Oi(t,l)}else t&&Di(e,t)},Hr=(e,t,n)=>{const{vnode:l,slots:s}=e;let i=!0,r=ae;if(l.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ii(s,t,n):(i=!t.$stable,Oi(t,s)),r=t}else t&&(Di(e,t),r={default:1});if(i)for(const a in s)!Vl(a)&&r[a]==null&&delete s[a]},$e=zr;function Kr(e){return qr(e)}function qr(e,t){const n=Hn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:i,createElement:r,createText:a,createComment:c,setText:_,setElementText:g,parentNode:y,nextSibling:I,setScopeId:A=st,insertStaticContent:Y}=e,$=(u,p,m,C=null,x=null,b=null,O=void 0,P=null,k=!!p.dynamicChildren)=>{if(u===p)return;u&&!Jt(u,p)&&(C=Re(u),Oe(u,x,b,!0),u=null),p.patchFlag===-2&&(k=!1,p.dynamicChildren=null);const{type:w,ref:R,shapeFlag:D}=p;switch(w){case Yn:fe(u,p,m,C);break;case wt:X(u,p,m,C);break;case fl:u==null&&U(p,m,C,O);break;case z:K(u,p,m,C,x,b,O,P,k);break;default:D&1?de(u,p,m,C,x,b,O,P,k):D&6?Ge(u,p,m,C,x,b,O,P,k):(D&64||D&128)&&w.process(u,p,m,C,x,b,O,P,k,xt)}R!=null&&x?Zt(R,u&&u.ref,b,p||u,!p):R==null&&u&&u.ref!=null&&Zt(u.ref,null,b,u,!0)},fe=(u,p,m,C)=>{if(u==null)l(p.el=a(p.children),m,C);else{const x=p.el=u.el;p.children!==u.children&&_(x,p.children)}},X=(u,p,m,C)=>{u==null?l(p.el=c(p.children||""),m,C):p.el=u.el},U=(u,p,m,C)=>{[u.el,u.anchor]=Y(u.children,p,m,C,u.el,u.anchor)},Z=({el:u,anchor:p},m,C)=>{let x;for(;u&&u!==p;)x=I(u),l(u,m,C),u=x;l(p,m,C)},L=({el:u,anchor:p})=>{let m;for(;u&&u!==p;)m=I(u),s(u),u=m;s(p)},de=(u,p,m,C,x,b,O,P,k)=>{if(p.type==="svg"?O="svg":p.type==="math"&&(O="mathml"),u==null)Te(p,m,C,x,b,O,P,k);else{const w=u.el&&u.el._isVueCE?u.el:null;try{w&&w._beginPatch(),at(u,p,x,b,O,P,k)}finally{w&&w._endPatch()}}},Te=(u,p,m,C,x,b,O,P)=>{let k,w;const{props:R,shapeFlag:D,transition:S,dirs:F}=u;if(k=u.el=r(u.type,b,R&&R.is,R),D&8?g(k,u.children):D&16&&Le(u.children,k,null,C,x,cl(u,b),O,P),F&&kt(u,null,C,"created"),re(k,u,u.scopeId,O,C),R){for(const le in R)le!=="value"&&!Yt(le)&&i(k,le,null,R[le],b,C);"value"in R&&i(k,"value",null,R.value,b),(w=R.onVnodeBeforeMount)&&Ze(w,C,u)}F&&kt(u,null,C,"beforeMount");const q=Jr(x,S);q&&S.beforeEnter(k),l(k,p,m),((w=R&&R.onVnodeMounted)||q||F)&&$e(()=>{try{w&&Ze(w,C,u),q&&S.enter(k),F&&kt(u,null,C,"mounted")}finally{}},x)},re=(u,p,m,C,x)=>{if(m&&A(u,m),C)for(let b=0;b{for(let w=k;w{const P=p.el=u.el;let{patchFlag:k,dynamicChildren:w,dirs:R}=p;k|=u.patchFlag&16;const D=u.props||ae,S=p.props||ae;let F;if(m&&Pt(m,!1),(F=S.onVnodeBeforeUpdate)&&Ze(F,m,p,u),R&&kt(p,u,m,"beforeUpdate"),m&&Pt(m,!0),w&&(!u.dynamicChildren||u.dynamicChildren.length!==w.length)&&(k=0,O=!1,w=null),(D.innerHTML&&S.innerHTML==null||D.textContent&&S.textContent==null)&&g(P,""),w?Fe(u.dynamicChildren,w,P,m,C,cl(p,x),b):O||V(u,p,P,null,m,C,cl(p,x),b,!1),k>0){if(k&16)Je(P,D,S,m,x);else if(k&2&&D.class!==S.class&&i(P,"class",null,S.class,x),k&4&&i(P,"style",D.style,S.style,x),k&8){const q=p.dynamicProps;for(let le=0;le{F&&Ze(F,m,p,u),R&&kt(p,u,m,"updated")},C)},Fe=(u,p,m,C,x,b,O)=>{for(let P=0;P{if(p!==m){if(p!==ae)for(const b in p)!Yt(b)&&!(b in m)&&i(u,b,p[b],null,x,C);for(const b in m){if(Yt(b))continue;const O=m[b],P=p[b];O!==P&&b!=="value"&&i(u,b,P,O,x,C)}"value"in m&&i(u,"value",p.value,m.value,x)}},K=(u,p,m,C,x,b,O,P,k)=>{const w=p.el=u?u.el:a(""),R=p.anchor=u?u.anchor:a("");let{patchFlag:D,dynamicChildren:S,slotScopeIds:F}=p;F&&(P=P?P.concat(F):F),u==null?(l(w,m,C),l(R,m,C),Le(p.children||[],m,R,x,b,O,P,k)):D>0&&D&64&&S&&u.dynamicChildren&&u.dynamicChildren.length===S.length?(Fe(u.dynamicChildren,S,m,x,b,O,P),(p.key!=null||x&&p===x.subTree)&&Ai(u,p,!0)):V(u,p,m,R,x,b,O,P,k)},Ge=(u,p,m,C,x,b,O,P,k)=>{p.slotScopeIds=P,u==null?p.shapeFlag&512?x.ctx.activate(p,m,C,O,k):Ve(p,m,C,x,b,O,k):Be(u,p,k)},Ve=(u,p,m,C,x,b,O)=>{const P=u.component=sa(u,C,x);if(gi(u)&&(P.ctx.renderer=xt),oa(P,!1,O),P.asyncDep){if(x&&x.registerDep(P,ce,O),!u.el){const k=P.subTree=gt(wt);X(null,k,p,m),u.placeholder=k.el}}else ce(P,u,p,m,x,b,O)},Be=(u,p,m)=>{const C=p.component=u.component;if(Fr(u,p,m))if(C.asyncDep&&!C.asyncResolved){W(C,p,m);return}else C.next=p,C.update();else p.el=u.el,C.vnode=p},ce=(u,p,m,C,x,b,O)=>{const P=()=>{if(u.isMounted){let{next:D,bu:S,u:F,parent:q,vnode:le}=u;{const We=Mi(u);if(We){D&&(D.el=le.el,W(u,D,O)),We.asyncDep.then(()=>{$e(()=>{u.isUnmounted||w()},x)});return}}let ee=D,ge;Pt(u,!1),D?(D.el=le.el,W(u,D,O)):D=le,S&&En(S),(ge=D.props&&D.props.onVnodeBeforeUpdate)&&Ze(ge,q,D,le),Pt(u,!0);const xe=gs(u),Ue=u.subTree;u.subTree=xe,$(Ue,xe,y(Ue.el),Re(Ue),u,x,b),D.el=xe.el,ee===null&&jr(u,xe.el),F&&$e(F,x),(ge=D.props&&D.props.onVnodeUpdated)&&$e(()=>Ze(ge,q,D,le),x)}else{let D;const{el:S,props:F}=p,{bm:q,m:le,parent:ee,root:ge,type:xe}=u,Ue=en(p);Pt(u,!1),q&&En(q),!Ue&&(D=F&&F.onVnodeBeforeMount)&&Ze(D,ee,p),Pt(u,!0);{ge.ce&&ge.ce._hasShadowRoot()&&ge.ce._injectChildStyle(xe,u.parent?u.parent.type:void 0);const We=u.subTree=gs(u);$(null,We,m,C,u,x,b),p.el=We.el}if(le&&$e(le,x),!Ue&&(D=F&&F.onVnodeMounted)){const We=p;$e(()=>Ze(D,ee,We),x)}(p.shapeFlag&256||ee&&en(ee.vnode)&&ee.vnode.shapeFlag&256)&&u.a&&$e(u.a,x),u.isMounted=!0,p=m=C=null}};u.scope.on();const k=u.effect=new Ks(P);u.scope.off();const w=u.update=k.run.bind(k),R=u.job=k.runIfDirty.bind(k);R.i=u,R.id=u.uid,k.scheduler=()=>Fl(R),Pt(u,!0),w()},W=(u,p,m)=>{p.component=u;const C=u.vnode.props;u.vnode=p,u.next=null,Br(u,p.props,C,m),Hr(u,p.children,m),ot(),as(u),rt()},V=(u,p,m,C,x,b,O,P,k=!1)=>{const w=u&&u.children,R=u?u.shapeFlag:0,D=p.children,{patchFlag:S,shapeFlag:F}=p;if(S>0){if(S&128){ut(w,D,m,C,x,b,O,P,k);return}else if(S&256){ye(w,D,m,C,x,b,O,P,k);return}}F&8?(R&16&&Ne(w,x,b),D!==w&&g(m,D)):R&16?F&16?ut(w,D,m,C,x,b,O,P,k):Ne(w,x,b,!0):(R&8&&g(m,""),F&16&&Le(D,m,C,x,b,O,P,k))},ye=(u,p,m,C,x,b,O,P,k)=>{u=u||Ft,p=p||Ft;const w=u.length,R=p.length,D=Math.min(w,R);let S;for(S=0;SR?Ne(u,x,b,!0,!1,D):Le(p,m,C,x,b,O,P,k,D)},ut=(u,p,m,C,x,b,O,P,k)=>{let w=0;const R=p.length;let D=u.length-1,S=R-1;for(;w<=D&&w<=S;){const F=u[w],q=p[w]=k?dt(p[w]):nt(p[w]);if(Jt(F,q))$(F,q,m,null,x,b,O,P,k);else break;w++}for(;w<=D&&w<=S;){const F=u[D],q=p[S]=k?dt(p[S]):nt(p[S]);if(Jt(F,q))$(F,q,m,null,x,b,O,P,k);else break;D--,S--}if(w>D){if(w<=S){const F=S+1,q=FS)for(;w<=D;)Oe(u[w],x,b,!0),w++;else{const F=w,q=w,le=new Map;for(w=q;w<=S;w++){const De=p[w]=k?dt(p[w]):nt(p[w]);De.key!=null&&le.set(De.key,w)}let ee,ge=0;const xe=S-q+1;let Ue=!1,We=0;const Ct=new Array(xe);for(w=0;w=xe){Oe(De,x,b,!0);continue}let He;if(De.key!=null)He=le.get(De.key);else for(ee=q;ee<=S;ee++)if(Ct[ee-q]===0&&Jt(De,p[ee])){He=ee;break}He===void 0?Oe(De,x,b,!0):(Ct[He-q]=w+1,He>=We?We=He:Ue=!0,$(De,p[He],m,null,x,b,O,P,k),ge++)}const hn=Ue?Gr(Ct):Ft;for(ee=hn.length-1,w=xe-1;w>=0;w--){const De=q+w,He=p[De],gn=p[De+1],vn=De+1{const{el:b,type:O,transition:P,children:k,shapeFlag:w}=u;if(w&6){be(u.component.subTree,p,m,C);return}if(w&128){u.suspense.move(p,m,C);return}if(w&64){O.move(u,p,m,xt);return}if(O===z){l(b,p,m);for(let D=0;DP.enter(b),x));else{const{leave:D,delayLeave:S,afterLeave:F}=P,q=()=>{u.ctx.isUnmounted?s(b):l(b,p,m)},le=()=>{const ee=b._isLeaving||!!b[al];b._isLeaving&&b[al](!0),P.persisted&&!ee?q():D(b,()=>{q(),F&&F()})};S?S(b,q,le):le()}else l(b,p,m)},Oe=(u,p,m,C=!1,x=!1)=>{const{type:b,props:O,ref:P,children:k,dynamicChildren:w,shapeFlag:R,patchFlag:D,dirs:S,cacheIndex:F,memo:q}=u;if(D===-2&&(x=!1),P!=null&&(ot(),Zt(P,null,m,u,!0),rt()),F!=null&&(p.renderCache[F]=void 0),R&256){p.ctx.deactivate(u);return}const le=R&1&&S,ee=!en(u);let ge;if(ee&&(ge=O&&O.onVnodeBeforeUnmount)&&Ze(ge,p,u),R&6)B(u.component,m,C);else{if(R&128){u.suspense.unmount(m,C);return}le&&kt(u,null,p,"beforeUnmount"),R&64?u.type.remove(u,p,m,xt,C):w&&!w.hasOnce&&(b!==z||D>0&&D&64)?Ne(w,p,m,!1,!0):(b===z&&D&384||!x&&R&16)&&Ne(k,p,m),C&&we(u)}const xe=q!=null&&F==null;(ee&&(ge=O&&O.onVnodeUnmounted)||le||xe)&&$e(()=>{ge&&Ze(ge,p,u),le&&kt(u,null,p,"unmounted"),xe&&(u.el=null)},m)},we=u=>{const{type:p,el:m,anchor:C,transition:x}=u;if(p===z){Ht(m,C);return}if(p===fl){L(u);return}const b=()=>{s(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:O,delayLeave:P}=x,k=()=>O(m,b);P?P(u.el,b,k):k()}else b()},Ht=(u,p)=>{let m;for(;u!==p;)m=I(u),s(u),u=m;s(p)},B=(u,p,m)=>{const{bum:C,scope:x,job:b,subTree:O,um:P,m:k,a:w}=u;ms(k),ms(w),C&&En(C),x.stop(),b&&(b.flags|=8,Oe(O,u,p,m)),P&&$e(P,p),$e(()=>{u.isUnmounted=!0},p)},Ne=(u,p,m,C=!1,x=!1,b=0)=>{for(let O=b;O{if(u.shapeFlag&6)return Re(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const p=I(u.anchor||u.el),m=p&&p[ur];return m?I(m):p};let At=!1;const pn=(u,p,m)=>{let C;u==null?p._vnode&&(Oe(p._vnode,null,null,!0),C=p._vnode.component):$(p._vnode||null,u,p,null,null,null,m),p._vnode=u,At||(At=!0,as(C),ui(),At=!1)},xt={p:$,um:Oe,m:be,r:we,mt:Ve,mc:Le,pc:V,pbc:Fe,n:Re,o:e};return{render:pn,hydrate:void 0,createApp:Ir(pn)}}function cl({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 Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ai(e,t,n=!1){const l=e.children,s=t.children;if(j(l)&&j(s))for(let i=0;i>1,e[n[a]]<_?i=a+1:r=a;_0&&(t[l]=n[i-1]),n[i]=l)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function Mi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mi(t)}function ms(e){if(e)for(let t=0;te.__isSuspense;function zr(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):lr(e)}const z=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),fl=Symbol.for("v-stc"),nn=[];let je=null;function E(e=!1){nn.push(je=e?null:[])}function Yr(){nn.pop(),je=nn[nn.length-1]||null}let rn=1;function ys(e,t=!1){rn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function Li(e){return e.dynamicChildren=rn>0?je||Ft:null,Yr(),rn>0&&je&&je.push(e),e}function T(e,t,n,l,s,i){return Li(o(e,t,n,l,s,i,!0))}function Qr(e,t,n,l,s){return Li(gt(e,t,n,l,s,!0))}function Fi(e){return e?e.__v_isVNode===!0:!1}function Jt(e,t){return e.type===t.type&&e.key===t.key}const ji=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||Ee(e)||N(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,l=0,s=null,i=e===z?0:1,r=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ji(t),ref:t&&On(t),scopeId:fi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?($n(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=_e(n)?8:16),rn>0&&!r&&je&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&je.push(c),c}const gt=Xr;function Xr(e,t=null,n=null,l=0,s=null,i=!1){if((!e||e===Cr)&&(e=wt),Fi(e)){const a=Wt(e,t,!0);return n&&$n(a,n),rn>0&&!i&&je&&(a.shapeFlag&6?je[je.indexOf(e)]=a:je.push(a)),a.patchFlag=-2,a}if(ca(e)&&(e=e.__vccOpts),t){t=Zr(t);let{class:a,style:c}=t;a&&!_e(a)&&(t.class=Kn(a)),oe(c)&&(Ll(c)&&!j(c)&&(c=ke({},c)),t.style=Tl(c))}const r=_e(e)?1:$i(e)?128:cr(e)?64:oe(e)?4:N(e)?2:0;return o(e,t,n,l,s,r,i,!0)}function Zr(e){return e?Ll(e)||Pi(e)?ke({},e):e:null}function Wt(e,t,n=!1,l=!1){const{props:s,ref:i,patchFlag:r,children:a,transition:c}=e,_=t?ta(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&ji(_),ref:t&&t.ref?n&&i?j(i)?i.concat(On(t)):[i,On(t)]:On(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!==z?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&jl(g,c.clone(g)),g}function ea(e=" ",t=0){return gt(Yn,null,e,t)}function G(e="",t=!1){return t?(E(),Qr(wt,null,e)):gt(wt,null,e)}function nt(e){return e==null||typeof e=="boolean"?gt(wt):j(e)?gt(z,null,e.slice()):Fi(e)?dt(e):gt(Yn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function $n(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),$n(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Pi(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(l&65){$n(e,{default:t});return}t={default:t,_ctx:Ke},n=32}else t=String(t),l&64?(n=16,t=[ea(t)]):n=8;e.children=t,e.shapeFlag|=n}function ta(...e){const t={};for(let n=0;nMe||Ke;let Ln,Cl;{const e=Hn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),i=>{s.length>1?s.forEach(r=>r(i)):s[0](i)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Cl=t("__VUE_SSR_SETTERS__",n=>an=n)}const dn=e=>{const t=Me;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},bs=()=>{Me&&Me.scope.off(),Ln(null)};function Vi(e){return e.vnode.shapeFlag&4}let an=!1;function oa(e,t=!1,n=!1){t&&Cl(t);const{props:l,children:s}=e.vnode,i=Vi(e);Vr(e,l,i,t),Wr(e,s,n||t);const r=i?ra(e,t):void 0;return t&&Cl(!1),r}function ra(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Sr);const{setup:l}=n;if(l){ot();const s=e.setupContext=l.length>1?ua(e):null,i=dn(e),r=fn(l,e,0,[e.props,s]),a=Fs(r);if(rt(),i(),(a||e.sp)&&!en(e)&&hi(e),a){if(r.then(bs,bs),t)return r.then(c=>{ws(e,c)}).catch(c=>{Jn(c,e,0)});e.asyncDep=r}else ws(e,r)}else Bi(e)}function ws(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=ii(t)),Bi(e)}function Bi(e,t,n){const l=e.type;e.render||(e.render=l.render||st);{const s=dn(e);ot();try{kr(e)}finally{rt(),s()}}}const aa={get(e,t){return Pe(e,"get",""),e[t]}};function ua(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,aa),slots:e.slots,emit:e.emit,expose:t}}function Qn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ii(qo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in tn)return tn[n](e)},has(t,n){return n in t||n in tn}})):e.proxy}function ca(e){return N(e)&&"__vccOpts"in e}const yt=(e,t)=>Xo(e,t,an),fa="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Sl;const xs=typeof window<"u"&&window.trustedTypes;if(xs)try{Sl=xs.createPolicy("vue",{createHTML:e=>e})}catch{}const Ni=Sl?e=>Sl.createHTML(e):e=>e,da="http://www.w3.org/2000/svg",pa="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,Cs=ft&&ft.createElement("template"),ha={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?ft.createElementNS(da,e):t==="mathml"?ft.createElementNS(pa,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,i){const r=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cs.innerHTML=Ni(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=Cs.content;if(l==="svg"||l==="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]}},ga=Symbol("_vtc");function va(e,t,n){const l=e[ga];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),_a=Symbol("_vsh"),ma=Symbol(""),ya=/(?:^|;)\s*display\s*:/;function ba(e,t,n){const l=e.style,s=_e(n);let i=!1;if(n&&!s){if(t)if(_e(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&zt(l,a,"")}else for(const r in t)n[r]==null&&zt(l,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?xa(e,r,!_e(t)&&t?t[r]:void 0,a)||zt(l,r,a):zt(l,r,"")}}else if(s){if(t!==n){const r=l[ma];r&&(n+=";"+r),l.cssText=n,i=ya.test(n)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=i?l.display:"",e[_a]&&(l.display="none"))}const ks=/\s*!important$/;function zt(e,t,n){if(j(n))n.forEach(l=>zt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=wa(e,t);ks.test(n)?e.setProperty(It(l),n.replace(ks,""),"important"):e[l]=n}}const Ps=["Webkit","Moz","ms"],dl={};function wa(e,t){const n=dl[t];if(n)return n;let l=ze(t);if(l!=="filter"&&l in e)return dl[t]=l;l=Bs(l);for(let s=0;spl||(Ta.then(()=>pl=0),pl=Date.now());function Da(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(j(s)){const i=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{i.call(l),l._stopped=!0};const r=s.slice(),a=[l];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ia=(e,t,n,l,s,i)=>{const r=s==="svg";t==="class"?va(e,l,r):t==="style"?ba(e,n,l):Vn(t)?Bn(t)||Sa(e,t,n,l,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Aa(e,t,l,r))?(Os(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ts(e,t,l,r,i,t!=="value")):e._isVueCE&&(Ma(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!_e(l)))?Os(e,ze(t),l,i,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ts(e,t,l,r))};function Aa(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Is(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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Is(t)&&_e(n)?!1:t in e}function Ma(e,t){const n=e._def.props;if(!n)return!1;const l=ze(t);return Array.isArray(n)?n.some(s=>ze(s)===l):Object.keys(n).some(s=>ze(s)===l)}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>En(t,n):t};function Ra(e){e.target.composing=!0}function As(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Nt=Symbol("_assign");function Ms(e,t,n){return t&&(e=e.trim()),n&&(e=Wn(e)),e}const se={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Nt]=Fn(s);const i=l||s.props&&s.props.type==="number";Tt(e,t?"change":"input",r=>{r.target.composing||e[Nt](Ms(e.value,n,i))}),(n||i)&&Tt(e,"change",()=>{e.value=Ms(e.value,n,i)}),t||(Tt(e,"compositionstart",Ra),Tt(e,"compositionend",As),Tt(e,"change",As))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:i}},r){if(e[Nt]=Fn(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Wn(e.value):e.value,c=t??"";if(a===c)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===c)||(e.value=c)}},Rt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Nn(t);Tt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Wn(jn(r)):jn(r));e[Nt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,ri(()=>{e._assigning=!1})}),e[Nt]=Fn(l)},mounted(e,{value:t}){Rs(e,t)},beforeUpdate(e,t,n){e[Nt]=Fn(n)},updated(e,{value:t}){e._assigning||Rs(e,t)}};function Rs(e,t){const n=e.multiple,l=j(t);if(!(n&&!l&&!Nn(t))){for(let s=0,i=e.options.length;sString(_)===String(a)):r.selected=ko(t,a)>-1}else r.selected=t.has(a);else if(cn(jn(r),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jn(e){return"_value"in e?e._value:e.value}const $a=ke({patchProp:Ia},ha);let $s;function La(){return $s||($s=Kr($a))}const Fa=((...e)=>{const t=La().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=Va(l);if(!s)return;const i=t._component;!N(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,ja(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function ja(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Va(e){return _e(e)?document.querySelector(e):e}const Ba="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",M={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`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeImages:e=>`nodes/${e}/images`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",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 Na extends Error{constructor(n,l,s={}){super(l);tl(this,"code");tl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function he(e,t){return Lt(e,{method:"GET",query:t})}async function ie(e,t){return Lt(e,{method:"POST",body:t})}async function Lt(e,t={}){const l=await(await fetch(Ua(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!l.ok)throw new Na(l.error_code,l.message,l.details);return l.data}function Ua(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${Ba}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&l.searchParams.set(s,String(i));return`${l.pathname}${l.search}`}const Wa={class:"web-shell"},Ha={class:"sidebar"},Ka={class:"brand"},qa=["onClick"],Ja={class:"workspace"},Ga={class:"topbar"},za={class:"actions"},Ya=["disabled"],Qa={key:0,class:"notice error"},Xa={key:1,class:"notice"},Za={key:0,class:"dashboard-grid"},eu={key:1,class:"list-view"},tu={class:"form-grid"},nu={class:"wide-field"},lu=["disabled"],su=["disabled"],iu={key:0},ou={class:"inline-actions"},ru={class:"badge"},au=["disabled","onClick"],uu={key:0,class:"empty"},cu={key:2,class:"split-view"},fu={class:"list-view"},du={class:"form-grid"},pu=["disabled"],hu={class:"inline-actions"},gu={class:"badge"},vu=["disabled","onClick"],_u=["disabled","onClick"],mu=["disabled","onClick"],yu=["disabled","onClick"],bu={key:0,class:"empty"},wu={class:"list-view"},xu={class:"form-grid"},Cu={class:"wide-field"},Su=["disabled"],ku={class:"inline-actions"},Pu={class:"badge"},Eu=["disabled","onClick"],Tu={key:0,class:"empty"},Ou={class:"inline-actions"},Du={key:0,class:"badge"},Iu=["disabled","onClick"],Au=["disabled","onClick"],Mu=["disabled","onClick"],Ru=["disabled","onClick"],$u=["disabled","onClick"],Lu={key:0,class:"empty"},Fu={key:0},ju={key:1},Vu={key:3,class:"split-view"},Bu={class:"list-view"},Nu={key:0,class:"empty"},Uu={class:"list-view"},Wu={class:"inline-actions"},Hu=["disabled"],Ku={class:"form-grid"},qu={value:""},Ju=["value"],Gu=["disabled"],zu={class:"inline-actions"},Yu={class:"badge"},Qu=["disabled","onClick"],Xu=["disabled","onClick"],Zu=["disabled","onClick"],ec={key:0,class:"empty"},tc={key:0},nc={key:4,class:"list-view"},lc=["disabled"],sc={class:"form-grid"},ic={value:""},oc=["value"],rc=["disabled"],ac={class:"inline-actions"},uc=["disabled","onClick"],cc={key:0,class:"empty"},fc={key:0},dc={class:"form-grid"},pc=["disabled"],hc={key:1},gc={key:5,class:"list-view"},vc={class:"inline-actions"},_c=["disabled"],mc=["disabled"],yc={class:"form-grid"},bc={value:""},wc=["value"],xc={value:""},Cc=["value"],Sc={value:""},kc=["value"],Pc=["disabled"],Ec={class:"inline-actions"},Tc={class:"badge"},Oc=["onClick"],Dc=["onClick"],Ic=["disabled","onClick"],Ac={key:0,class:"empty"},Mc={key:0,class:"editor-panel"},Rc={key:6,class:"split-view"},$c={class:"list-view"},Lc=["disabled"],Fc={class:"form-grid"},jc=["disabled"],Vc={key:0},Bc={class:"list-view"},Nc={class:"inline-actions"},Uc={class:"badge"},Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={key:7,class:"logs-view"},Gc={class:"split-view"},zc={class:"list-view"},Yc={key:0,class:"empty"},Qc={class:"list-view"},Xc={class:"badge"},Zc={key:0,class:"empty"},ef={class:"split-view"},tf={class:"list-view"},nf={key:0,class:"empty"},lf={class:"list-view"},sf={class:"badge"},of={key:0,class:"empty"},rf={class:"list-view"},af={key:0,class:"empty"},uf={key:8,class:"settings-view"},cf={class:"toolbar"},ff=["disabled"],df=["disabled"],pf=["disabled"],hf=["disabled"],gf=["disabled"],vf=["disabled"],_f={class:"settings-sections"},mf={class:"editor-panel"},yf={class:"split-view"},bf={class:"list-view"},wf={class:"list-view"},xf={class:"inspector"},Cf=fr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",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:"节点",images:"图片",emptyImages:"暂无图片",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=H("dashboard"),s=H(null),i=H(null),r=H(null),a=H([]),c=H(null),_=H(""),g=H([]),y=H(null),I=H(null),A=H(null),Y=H(null),$=H(null),fe=H(null),X=H([]),U=H(null),Z=H([]),L=H([]),de=H([]),Te=H(null),re=H({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Le=H(null),at=H(""),Fe=H(null),Je=H(null),K=H({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),Ge=H(null),Ve=H({display_name:"",workflow_type:"single_image"}),Be=H({model_route:"",prompt:"",negative_prompt:""}),ce=H({status:"",profile_id:"",workflow_id:""}),W=H({display_name:"",image_uri:"",tags:"",category_id:""}),V=H({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),ye=H({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),ut=H(null),be=H({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Oe=H(null),we=H(""),Ht=H(!0),B=H(""),Ne=H(""),Re=yt(()=>{var v,h;return((h=(v=r.value)==null?void 0:v.items[0])==null?void 0:h.profile_id)??""}),At=yt(()=>{var v,h;return((h=(v=r.value)==null?void 0:v.items[0])==null?void 0:h.name)??t.noProfile}),pn=yt(()=>{var h;const v=(h=i.value)==null?void 0:h.queue;return v?v.pending+v.running+v.failed+v.dead_letter:0}),xt=yt(()=>{var v;return((v=U.value)==null?void 0:v.items.filter(h=>h.recognition_status!=="confirmed").length)??0}),Nl=yt(()=>{var v;return(((v=U.value)==null?void 0:v.items)??[]).filter(h=>h.recognition_status==="confirmed")}),u=yt(()=>{var v;return((v=c.value)==null?void 0:v.nodes.find(h=>h.node_id===_.value))??null}),p=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],m=yt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);_i(C);async function C(){var v,h;Ht.value=!0,Ne.value="";try{const[Q,pe,Ce,mt,mn,Kt,yn,bn,wn,xn,Cn]=await Promise.all([he(M.uiBootstrap),he(M.dashboardSummary),he(M.profiles,{page:1,page_size:20}),he(M.jobs,{page:1,page_size:20}),he(M.settingsSchema),he(M.settingsCurrent),he(M.storageStatus),he(M.materialCategories),he(M.materials,{page:1,page_size:24}),he(M.apiDiscoveryDialects),he(M.apiDiscoveryCapabilities)]);s.value=Q,i.value=pe,r.value=Ce,I.value=mt,Y.value=mn,$.value=Kt,_n(Kt.config),fe.value=yn,X.value=bn,U.value=wn,L.value=xn,de.value=Cn,await P((v=Ce.items[0])==null?void 0:v.profile_id),await k((h=Ce.items[0])==null?void 0:h.profile_id),await x()}catch(Q){Ne.value=Q instanceof Error?Q.message:t.loadFailed}finally{Ht.value=!1}}async function x(){const[v,h,Q,pe,Ce]=await Promise.allSettled([he(M.generationLogs,{limit:12}),he(M.workflowLogs,{limit:12}),he(M.errorLogs,{limit:12}),he(M.integrationLogs,{limit:12}),he(M.auditLogs,{limit:12})]);re.value={generation:b(v),workflows:b(h),errors:b(Q),integrations:b(pe),audit:b(Ce)}}function b(v){return v.status==="fulfilled"?v.value:[]}async function O(){I.value=await he(M.jobs,{status:ce.value.status||void 0,profile_id:ce.value.profile_id||void 0,workflow_id:ce.value.workflow_id||void 0,page:1,page_size:20})}async function P(v){if(!v){Z.value=[];return}Z.value=await he(M.wardrobe(v))}async function k(v){var pe,Ce;if(!v){a.value=[],c.value=null,_.value="",g.value=[];return}a.value=await he(M.profileWorkflows(v));const h=(pe=c.value)==null?void 0:pe.workflow.workflow_id,Q=a.value.some(mt=>mt.workflow_id===h)?h:(Ce=a.value[0])==null?void 0:Ce.workflow_id;Q?await w(Q):c.value=null}async function w(v){var Ce;const h=await he(M.workflow(v));c.value=h;const Q=_.value,pe=h.nodes.some(mt=>mt.node_id===Q)?Q:h.workflow.current_node_id||((Ce=h.nodes[0])==null?void 0:Ce.node_id);pe?await R(pe):(_.value="",g.value=[])}async function R(v){_.value=v,g.value=await he(M.nodeImages(v))}async function D(){var h;const v=(h=c.value)==null?void 0:h.workflow.workflow_id;v&&await w(v)}async function S(v,h,Q=!0){B.value=v,Ne.value="";try{const pe=await h();we.value=`${v}${t.complete}`,v===t.exportSettings&&(we.value=`${t.exportDone}: ${!!pe.redacted}`),Q&&await C()}catch(pe){Ne.value=pe instanceof Error?pe.message:`${v}${t.failed}`}finally{B.value=""}}function F(v){return S(t.retry,()=>ie(M.jobRetry(v)))}function q(v){return S(t.cancel,()=>ie(M.jobCancel(v)))}function le(v){return S(t.detail,async()=>(A.value=await he(M.job(v)),A.value),!1)}function ee(){K.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},Ge.value=null}function ge(){return S(t.quickDraft,async()=>(Ge.value=await ie(M.quickProfileDraft,{questionnaire:{name:K.value.name,identity:K.value.identity,personality:St(K.value.personality),hair_color:K.value.hair_color,hairstyle:K.value.hairstyle,eye_color:K.value.eye_color,style:K.value.style,clothing_keywords:St(K.value.clothing_keywords)}}),Ge.value),!1)}function xe(){var h;const v=(h=Ge.value)==null?void 0:h.profile_preview;return S(t.create,async()=>{const Q=await ie(M.profiles,{name:(v==null?void 0:v.name)||K.value.name,description:K.value.description,base_prompt:v==null?void 0:v.base_prompt,appearance_prompt:v==null?void 0:v.appearance_prompt,style_prompt:v==null?void 0:v.style_prompt,negative_prompt:v==null?void 0:v.negative_prompt});return ee(),we.value=t.profileCreated,Q})}function Ue(v){return S(t.delete,async()=>{const h=await Lt(M.profile(v),{method:"DELETE"});return we.value=t.profileDeleted,h})}function We(){const v=Re.value;return v?S(t.create,async()=>{const h=await ie(M.profileWorkflows(v),{display_name:Ve.value.display_name,workflow_type:Ve.value.workflow_type});return Ve.value.display_name="",c.value=h,we.value=t.workflowCreated,h}):Promise.resolve()}function Ct(v){return S(t.start,()=>ie(M.workflowStart(v)))}function hn(v){return S(t.cancel,()=>ie(M.workflowCancel(v)))}function De(v){return S(t.archive,()=>ie(M.workflowArchive(v)))}function He(){const v=_.value;return v?S(t.generate,async()=>(y.value=await ie(M.nodeGenerate(v),{model_route:Be.value.model_route||void 0,prompt:Be.value.prompt||void 0,negative_prompt:Be.value.negative_prompt||void 0}),await D(),we.value=t.generationQueued,y.value),!1):Promise.resolve()}function gn(v){const h=_.value;return h?S(t.select,async()=>{const Q=await ie(M.nodeSelectImage(h),{image_id:v});return await D(),Q},!1):Promise.resolve()}function vn(v){const h=_.value;return h?S(t.adopt,async()=>{var pe;const Q=await ie(M.nodeAdoptImage(h),{image_id:v,title:(pe=u.value)==null?void 0:pe.title});return await D(),Q},!1):Promise.resolve()}function Ui(v){return S(t.unselect,async()=>{const h=await ie(M.imageUnselect(v));return await D(),h},!1)}function Wi(v){return S(t.archive,async()=>{const h=await ie(M.imageArchive(v));return await D(),we.value=t.imageArchived,h},!1)}function Hi(v){return S(t.delete,async()=>{const h=await Lt(M.image(v),{method:"DELETE"});return await D(),we.value=t.imageDeleted,h},!1)}function Ki(){return S(t.moveFailed,()=>ie(M.jobDeadLetterMoveFailed,{limit:20}))}function qi(){return S(t.retryDead,()=>ie(M.jobDeadLetterRetry,{limit:20}))}function Ji(){var h;const v=((h=L.value[0])==null?void 0:h.dialect)??"unknown";return S(t.safeProbe,()=>ie(M.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:v,capabilities:{supports:["text_to_image"]}}))}function Gi(){return S(t.validatePlan,async()=>(Oe.value=await ie(M.apiDiscoveryValidateRenderPlan,{provider_id:be.value.provider_id,model_id:be.value.model_id,required_capabilities:St(be.value.required_capabilities)}),Oe.value),!1)}function Xn(v,h){return S(t.discovery,()=>ie(M.apiDiscoveryManualOverride,{provider_id:v.provider_id,model_id:v.model_id,dialect:v.dialect,status:h,capabilities:v.capabilities}))}function zi(){const v=Re.value;return v?S(t.matchWardrobe,async()=>(Te.value=await ie(M.wardrobeMatch(v),{tags:["daily"]}),Te.value),!1):Promise.resolve()}function Yi(){V.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Qi(){const v=Re.value;return v?S(t.importToWardrobe,async()=>{const h=await ie(M.wardrobeImportMaterial(v),{material_id:V.value.material_id,wardrobe_category:V.value.wardrobe_category,tags:St(V.value.tags),season:V.value.season||void 0,style:V.value.style||void 0});return Yi(),we.value=t.wardrobeImported,h}):Promise.resolve()}function Xi(v){const h=Re.value;return h?S(t.delete,async()=>{const Q=await Lt(M.wardrobeItem(h,v),{method:"DELETE"});return we.value=t.wardrobeDeleted,Q}):Promise.resolve()}function Zi(){const v=Re.value;return v?S(t.dailyOutfit,async()=>(ut.value=await ie(M.privateCompanionDailyOutfit,{profile_id:v,categories:St(ye.value.categories),mood:ye.value.mood,weather:ye.value.weather,keywords:St(ye.value.keywords),request_source:"astrbot_plugin_private_companion"}),we.value=t.outfitGenerated,ut.value),!1):Promise.resolve()}function eo(){return S(t.reload,async()=>{var h;const v=await ie(M.settingsReload);return $.value={config_path:((h=$.value)==null?void 0:h.config_path)??"***PATH***",config:v.config},_n(v.config),v},!1)}function to(){return S(t.exportSettings,()=>he(M.settingsExport),!1)}function _n(v=(h=>(h=$.value)==null?void 0:h.config)()??{}){at.value=JSON.stringify(v,null,2),Fe.value=null,Je.value=null}function Zn(){try{const v=JSON.parse(at.value);if(!v||Array.isArray(v)||typeof v!="object")throw new Error(t.settingsDraftInvalid);return v}catch(v){throw new Error(v instanceof Error?v.message:t.settingsDraftInvalid)}}function no(){return S(t.validate,async()=>(Fe.value=await ie(M.settingsValidate,{config:Zn()}),Fe.value),!1)}function lo(){return S(t.diff,async()=>(Je.value=await ie(M.settingsDiff,{config:Zn()}),Je.value),!1)}function so(){return S(t.save,async()=>{var h;const v=await ie(M.settingsSave,{config:Zn()});return $.value={config_path:((h=$.value)==null?void 0:h.config_path)??"***PATH***",config:v.config},_n(v.config),we.value=t.settingsSaved,v},!1)}function io(){var h,Q;const v=(Q=(h=U.value)==null?void 0:h.items.find(pe=>{var Ce;return(Ce=pe.image_uri)==null?void 0:Ce.startsWith("storage://")}))==null?void 0:Q.image_uri;return v?S(t.signMaterial,async()=>(Le.value=await he(M.mediaSign,{uri:v}),Le.value),!1):(we.value=t.noSignableMaterial,Promise.resolve())}function oo(){W.value={display_name:"",image_uri:"",tags:"",category_id:""}}function ro(){return S(t.create,async()=>{const v=await ie(M.materials,{display_name:W.value.display_name,image_uri:W.value.image_uri||void 0,thumbnail_uri:W.value.image_uri||void 0,category_id:W.value.category_id||void 0,tags:St(W.value.tags),recognition_status:W.value.image_uri?"pending_recognition":"pending_upload"});return oo(),we.value=t.materialCreated,v})}function ao(v){return S(t.recognize,()=>ie(M.materialRecognize(v)))}function uo(v){return S(t.confirm,()=>ie(M.materialConfirm(v.material_id),{display_name:v.display_name,prompt:v.prompt,negative_prompt:v.negative_prompt,tags:v.tags}))}function co(v){return S(t.archive,async()=>{const h=await Lt(M.material(v),{method:"DELETE"});return we.value=t.materialArchived,h})}function St(v){return v.split(",").map(h=>h.trim()).filter(Boolean)}function el(v=0){return v<1024?`${v} B`:v<1024*1024?`${(v/1024).toFixed(1)} KB`:v<1024*1024*1024?`${(v/1024/1024).toFixed(1)} MB`:`${(v/1024/1024/1024).toFixed(1)} GB`}function Ul(v){var h,Q;return((Q=(h=fe.value)==null?void 0:h.roots.find(pe=>pe.uri_prefix===v))==null?void 0:Q.bytes)??0}return(v,h)=>{var Q,pe,Ce,mt,mn,Kt,yn,bn,wn,xn,Cn,Wl,Hl,Kl,ql,Jl,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls;return E(),T("main",Wa,[o("aside",Ha,[o("div",Ka,[o("strong",null,f(((Q=s.value)==null?void 0:Q.display_name)??"ImageStudio"),1),o("span",null,f(((pe=s.value)==null?void 0:pe.dashboard_user)??"AstrBot"),1)]),o("nav",null,[(E(),T(z,null,ve(n,d=>o("button",{key:d.key,type:"button",class:Kn({active:l.value===d.key}),onClick:me=>l.value=d.key},f(d.label),11,qa)),64))])]),o("section",Ja,[o("header",Ga,[o("div",null,[o("h1",null,f(m.value),1),o("p",null,f(((Ce=i.value)==null?void 0:Ce.plugin_status)??"loading")+" / "+f(we.value||t.waiting),1)]),o("div",za,[o("button",{type:"button",disabled:!!B.value,onClick:C},f(B.value||t.refresh),9,Ya)])]),Ne.value?(E(),T("section",Qa,f(Ne.value),1)):Ht.value?(E(),T("section",Xa,f(t.loading),1)):(E(),T(z,{key:2},[l.value==="dashboard"?(E(),T("section",Za,[o("article",null,[o("span",null,f(t.profiles),1),o("strong",null,f(((mt=i.value)==null?void 0:mt.active_profiles)??0),1)]),o("article",null,[o("span",null,f(t.jobs),1),o("strong",null,f(pn.value),1)]),o("article",null,[o("span",null,f(t.materials),1),o("strong",null,f(((mn=U.value)==null?void 0:mn.total)??0),1)]),o("article",null,[o("span",null,f(t.storage),1),o("strong",null,f(el(((Kt=fe.value)==null?void 0:Kt.total_bytes)??((yn=i.value)==null?void 0:yn.storage.total_bytes))),1)])])):G("",!0),l.value==="profiles"?(E(),T("section",eu,[o("header",null,[o("h2",null,f(t.profileList),1),o("span",null,f(((bn=r.value)==null?void 0:bn.total)??0),1)]),o("div",tu,[o("label",null,[o("span",null,f(t.name),1),J(o("input",{"onUpdate:modelValue":h[0]||(h[0]=d=>K.value.name=d),type:"text"},null,512),[[se,K.value.name]])]),o("label",null,[o("span",null,f(t.identity),1),J(o("input",{"onUpdate:modelValue":h[1]||(h[1]=d=>K.value.identity=d),type:"text"},null,512),[[se,K.value.identity]])]),o("label",null,[o("span",null,f(t.personality),1),J(o("input",{"onUpdate:modelValue":h[2]||(h[2]=d=>K.value.personality=d),type:"text",placeholder:"calm, brave"},null,512),[[se,K.value.personality]])]),o("label",null,[o("span",null,f(t.hairColor),1),J(o("input",{"onUpdate:modelValue":h[3]||(h[3]=d=>K.value.hair_color=d),type:"text"},null,512),[[se,K.value.hair_color]])]),o("label",null,[o("span",null,f(t.hairstyle),1),J(o("input",{"onUpdate:modelValue":h[4]||(h[4]=d=>K.value.hairstyle=d),type:"text"},null,512),[[se,K.value.hairstyle]])]),o("label",null,[o("span",null,f(t.eyeColor),1),J(o("input",{"onUpdate:modelValue":h[5]||(h[5]=d=>K.value.eye_color=d),type:"text"},null,512),[[se,K.value.eye_color]])]),o("label",null,[o("span",null,f(t.stylePrompt),1),J(o("input",{"onUpdate:modelValue":h[6]||(h[6]=d=>K.value.style=d),type:"text"},null,512),[[se,K.value.style]])]),o("label",null,[o("span",null,f(t.tags),1),J(o("input",{"onUpdate:modelValue":h[7]||(h[7]=d=>K.value.clothing_keywords=d),type:"text",placeholder:"white blouse, ribbon"},null,512),[[se,K.value.clothing_keywords]])]),o("label",nu,[o("span",null,f(t.description),1),J(o("input",{"onUpdate:modelValue":h[8]||(h[8]=d=>K.value.description=d),type:"text"},null,512),[[se,K.value.description]])]),o("button",{type:"button",disabled:!!B.value||!K.value.name,onClick:ge},f(t.quickDraft),9,lu),o("button",{type:"button",disabled:!!B.value||!K.value.name,onClick:xe},f(t.create),9,su)]),Ge.value?(E(),T("pre",iu,f(JSON.stringify(Ge.value,null,2)),1)):G("",!0),o("ul",null,[(E(!0),T(z,null,ve(((wn=r.value)==null?void 0:wn.items)??[],d=>(E(),T("li",{key:d.profile_id},[o("div",null,[o("strong",null,f(d.name),1),o("small",null,f(d.profile_id),1)]),o("div",ou,[o("span",ru,f(d.status),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>Ue(d.profile_id)},f(t.delete),9,au)])]))),128)),(xn=r.value)!=null&&xn.items.length?G("",!0):(E(),T("li",uu,f(t.emptyProfiles),1))])])):G("",!0),l.value==="workflows"?(E(),T("section",cu,[o("div",fu,[o("header",null,[o("h2",null,f(At.value),1),o("span",null,f(a.value.length),1)]),o("div",du,[o("label",null,[o("span",null,f(t.name),1),J(o("input",{"onUpdate:modelValue":h[9]||(h[9]=d=>Ve.value.display_name=d),type:"text"},null,512),[[se,Ve.value.display_name]])]),o("label",null,[o("span",null,f(t.workflowType),1),J(o("select",{"onUpdate:modelValue":h[10]||(h[10]=d=>Ve.value.workflow_type=d)},[...h[35]||(h[35]=[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),[[Rt,Ve.value.workflow_type]])]),o("button",{type:"button",disabled:!!B.value||!Re.value||!Ve.value.display_name,onClick:We},f(t.create),9,pu)]),o("ul",null,[(E(!0),T(z,null,ve(a.value,d=>(E(),T("li",{key:d.workflow_id},[o("div",null,[o("strong",null,f(d.display_name),1),o("small",null,f(d.workflow_type)+" / "+f(d.workflow_id),1)]),o("div",hu,[o("span",gu,f(d.status),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>w(d.workflow_id)},f(t.nodes),9,vu),o("button",{type:"button",disabled:!!B.value,onClick:me=>Ct(d.workflow_id)},f(t.start),9,_u),o("button",{type:"button",disabled:!!B.value,onClick:me=>hn(d.workflow_id)},f(t.cancel),9,mu),o("button",{type:"button",disabled:!!B.value,onClick:me=>De(d.workflow_id)},f(t.archive),9,yu)])]))),128)),a.value.length?G("",!0):(E(),T("li",bu,f(t.emptyWorkflows),1))])]),o("div",wu,[o("header",null,[o("h2",null,f(t.nodes),1),o("span",null,f(((Cn=c.value)==null?void 0:Cn.workflow.current_branch)??"main"),1)]),o("div",xu,[o("label",null,[o("span",null,f(t.modelRoute),1),J(o("input",{"onUpdate:modelValue":h[11]||(h[11]=d=>Be.value.model_route=d),type:"text",placeholder:"image_low"},null,512),[[se,Be.value.model_route]])]),o("label",null,[o("span",null,f(t.prompt),1),J(o("input",{"onUpdate:modelValue":h[12]||(h[12]=d=>Be.value.prompt=d),type:"text"},null,512),[[se,Be.value.prompt]])]),o("label",Cu,[o("span",null,f(t.negativePrompt),1),J(o("input",{"onUpdate:modelValue":h[13]||(h[13]=d=>Be.value.negative_prompt=d),type:"text"},null,512),[[se,Be.value.negative_prompt]])]),o("button",{type:"button",disabled:!!B.value||!_.value,onClick:He},f(t.generate),9,Su)]),o("ul",null,[(E(!0),T(z,null,ve(((Wl=c.value)==null?void 0:Wl.nodes)??[],d=>(E(),T("li",{key:d.node_id},[o("div",null,[o("strong",null,f(d.title),1),o("small",null,f(d.node_key)+" / "+f(d.node_id),1)]),o("div",ku,[o("span",null,f(d.branch_name),1),o("span",Pu,f(d.status),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>R(d.node_id)},f(t.images),9,Eu)])]))),128)),(Hl=c.value)!=null&&Hl.nodes.length?G("",!0):(E(),T("li",Tu,f(t.emptyWorkflows),1))]),o("ul",null,[(E(!0),T(z,null,ve(g.value,d=>(E(),T("li",{key:d.image_id},[o("div",null,[o("strong",null,f(d.image_id),1),o("small",null,f(d.thumbnail_uri??d.image_uri),1)]),o("div",Ou,[d.is_selected?(E(),T("span",Du,f(t.select),1)):G("",!0),o("button",{type:"button",disabled:!!B.value||d.is_selected||d.is_archived,onClick:me=>gn(d.image_id)},f(t.select),9,Iu),o("button",{type:"button",disabled:!!B.value||d.is_archived,onClick:me=>vn(d.image_id)},f(t.adopt),9,Au),o("button",{type:"button",disabled:!!B.value||!d.is_selected,onClick:me=>Ui(d.image_id)},f(t.unselect),9,Mu),o("button",{type:"button",disabled:!!B.value||d.is_archived,onClick:me=>Wi(d.image_id)},f(t.archive),9,Ru),o("button",{type:"button",disabled:!!B.value,onClick:me=>Hi(d.image_id)},f(t.delete),9,$u)])]))),128)),g.value.length?G("",!0):(E(),T("li",Lu,f(t.emptyImages),1))]),y.value?(E(),T("pre",Fu,f(JSON.stringify(y.value,null,2)),1)):G("",!0),c.value?(E(),T("pre",ju,f(JSON.stringify(c.value.workflow,null,2)),1)):G("",!0)])])):G("",!0),l.value==="materials"?(E(),T("section",Vu,[o("div",Bu,[o("header",null,[o("h2",null,f(t.materialCategories),1),o("span",null,f(X.value.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(X.value,d=>(E(),T("li",{key:d.category_id},[o("div",null,[o("strong",null,f(d.name),1),o("small",null,f(d.category_type),1)]),o("span",null,f(d.sort_order),1)]))),128)),X.value.length?G("",!0):(E(),T("li",Nu,f(t.emptyCategories),1))])]),o("div",Uu,[o("header",null,[o("h2",null,f(t.materialItems),1),o("div",Wu,[o("span",null,f(xt.value)+" "+f(t.pendingConfirm),1),o("button",{type:"button",disabled:!!B.value,onClick:io},f(t.signFirstImage),9,Hu)])]),o("div",Ku,[o("label",null,[o("span",null,f(t.name),1),J(o("input",{"onUpdate:modelValue":h[14]||(h[14]=d=>W.value.display_name=d),type:"text"},null,512),[[se,W.value.display_name]])]),o("label",null,[o("span",null,f(t.imageUri),1),J(o("input",{"onUpdate:modelValue":h[15]||(h[15]=d=>W.value.image_uri=d),type:"text",placeholder:"storage://materials/example.png"},null,512),[[se,W.value.image_uri]])]),o("label",null,[o("span",null,f(t.category),1),J(o("select",{"onUpdate:modelValue":h[16]||(h[16]=d=>W.value.category_id=d)},[o("option",qu,f(t.allCategories),1),(E(!0),T(z,null,ve(X.value,d=>(E(),T("option",{key:d.category_id,value:d.category_id},f(d.name),9,Ju))),128))],512),[[Rt,W.value.category_id]])]),o("label",null,[o("span",null,f(t.tags),1),J(o("input",{"onUpdate:modelValue":h[17]||(h[17]=d=>W.value.tags=d),type:"text",placeholder:"daily, top"},null,512),[[se,W.value.tags]])]),o("button",{type:"button",disabled:!!B.value||!W.value.display_name,onClick:ro},f(t.create),9,Gu)]),o("ul",null,[(E(!0),T(z,null,ve(((Kl=U.value)==null?void 0:Kl.items)??[],d=>(E(),T("li",{key:d.material_id},[o("div",null,[o("strong",null,f(d.display_name),1),o("small",null,f(d.image_uri??t.noImage),1)]),o("div",zu,[o("span",Yu,f(d.recognition_status),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>ao(d.material_id)},f(t.recognize),9,Qu),o("button",{type:"button",disabled:!!B.value||d.recognition_status==="confirmed",onClick:me=>uo(d)},f(t.confirm),9,Xu),o("button",{type:"button",disabled:!!B.value,onClick:me=>co(d.material_id)},f(t.archive),9,Zu)])]))),128)),(ql=U.value)!=null&&ql.items.length?G("",!0):(E(),T("li",ec,f(t.emptyMaterials),1))]),Le.value?(E(),T("pre",tc,f(JSON.stringify(Le.value,null,2)),1)):G("",!0)])])):G("",!0),l.value==="wardrobe"?(E(),T("section",nc,[o("header",null,[o("h2",null,f(At.value),1),o("button",{type:"button",disabled:!Re.value||!!B.value,onClick:zi},f(t.match),9,lc)]),o("div",sc,[o("label",null,[o("span",null,f(t.selectMaterial),1),J(o("select",{"onUpdate:modelValue":h[18]||(h[18]=d=>V.value.material_id=d)},[o("option",ic,f(t.selectMaterial),1),(E(!0),T(z,null,ve(Nl.value,d=>(E(),T("option",{key:d.material_id,value:d.material_id},f(d.display_name),9,oc))),128))],512),[[Rt,V.value.material_id]])]),o("label",null,[o("span",null,f(t.wardrobeCategory),1),J(o("input",{"onUpdate:modelValue":h[19]||(h[19]=d=>V.value.wardrobe_category=d),type:"text"},null,512),[[se,V.value.wardrobe_category]])]),o("label",null,[o("span",null,f(t.tags),1),J(o("input",{"onUpdate:modelValue":h[20]||(h[20]=d=>V.value.tags=d),type:"text",placeholder:"daily, top"},null,512),[[se,V.value.tags]])]),o("label",null,[o("span",null,f(t.season),1),J(o("input",{"onUpdate:modelValue":h[21]||(h[21]=d=>V.value.season=d),type:"text"},null,512),[[se,V.value.season]])]),o("label",null,[o("span",null,f(t.style),1),J(o("input",{"onUpdate:modelValue":h[22]||(h[22]=d=>V.value.style=d),type:"text"},null,512),[[se,V.value.style]])]),o("button",{type:"button",disabled:!!B.value||!Re.value||!V.value.material_id||!V.value.wardrobe_category,onClick:Qi},f(t.importToWardrobe),9,rc)]),o("ul",null,[(E(!0),T(z,null,ve(Z.value,d=>(E(),T("li",{key:d.wardrobe_item_id},[o("div",null,[o("strong",null,f(d.wardrobe_category),1),o("small",null,f(d.material_id)+" / "+f(d.tags.join(", ")||t.noTags),1)]),o("div",ac,[o("span",null,f(d.usage_count),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>Xi(d.wardrobe_item_id)},f(t.delete),9,uc)])]))),128)),Z.value.length?G("",!0):(E(),T("li",cc,f(t.emptyWardrobe),1))]),Te.value?(E(),T("pre",fc,f(JSON.stringify(Te.value,null,2)),1)):G("",!0),o("div",dc,[o("label",null,[o("span",null,f(t.categories),1),J(o("input",{"onUpdate:modelValue":h[23]||(h[23]=d=>ye.value.categories=d),type:"text"},null,512),[[se,ye.value.categories]])]),o("label",null,[o("span",null,f(t.mood),1),J(o("input",{"onUpdate:modelValue":h[24]||(h[24]=d=>ye.value.mood=d),type:"text"},null,512),[[se,ye.value.mood]])]),o("label",null,[o("span",null,f(t.weather),1),J(o("input",{"onUpdate:modelValue":h[25]||(h[25]=d=>ye.value.weather=d),type:"text"},null,512),[[se,ye.value.weather]])]),o("label",null,[o("span",null,f(t.keywords),1),J(o("input",{"onUpdate:modelValue":h[26]||(h[26]=d=>ye.value.keywords=d),type:"text"},null,512),[[se,ye.value.keywords]])]),o("button",{type:"button",disabled:!!B.value||!Re.value,onClick:Zi},f(t.dailyOutfit),9,pc)]),ut.value?(E(),T("pre",hc,f(JSON.stringify(ut.value,null,2)),1)):G("",!0)])):G("",!0),l.value==="jobs"?(E(),T("section",gc,[o("header",null,[o("h2",null,f(t.jobs),1),o("div",vc,[o("button",{type:"button",disabled:!!B.value,onClick:Ki},f(t.moveFailed),9,_c),o("button",{type:"button",disabled:!!B.value,onClick:qi},f(t.retryDead),9,mc)])]),o("div",yc,[o("label",null,[h[36]||(h[36]=o("span",null,"Status",-1)),J(o("select",{"onUpdate:modelValue":h[27]||(h[27]=d=>ce.value.status=d)},[o("option",bc,f(t.allStatuses),1),(E(),T(z,null,ve(p,d=>o("option",{key:d,value:d},f(d),9,wc)),64))],512),[[Rt,ce.value.status]])]),o("label",null,[o("span",null,f(t.profiles),1),J(o("select",{"onUpdate:modelValue":h[28]||(h[28]=d=>ce.value.profile_id=d)},[o("option",xc,f(t.allProfiles),1),(E(!0),T(z,null,ve(((Jl=r.value)==null?void 0:Jl.items)??[],d=>(E(),T("option",{key:d.profile_id,value:d.profile_id},f(d.name),9,Cc))),128))],512),[[Rt,ce.value.profile_id]])]),o("label",null,[o("span",null,f(t.workflows),1),J(o("select",{"onUpdate:modelValue":h[29]||(h[29]=d=>ce.value.workflow_id=d)},[o("option",Sc,f(t.allWorkflows),1),(E(!0),T(z,null,ve(a.value,d=>(E(),T("option",{key:d.workflow_id,value:d.workflow_id},f(d.display_name),9,kc))),128))],512),[[Rt,ce.value.workflow_id]])]),o("button",{type:"button",disabled:!!B.value,onClick:O},f(t.filter),9,Pc)]),o("ul",null,[(E(!0),T(z,null,ve(((Gl=I.value)==null?void 0:Gl.items)??[],d=>(E(),T("li",{key:d.task_id},[o("div",null,[o("strong",null,f(d.task_id),1),o("small",null,f(d.task_type)+" / "+f(d.progress)+"%",1)]),o("div",Ec,[o("span",Tc,f(d.status),1),["failed","dead_letter","cancelled"].includes(d.status)?(E(),T("button",{key:0,type:"button",onClick:me=>F(d.task_id)},f(t.retry),9,Oc)):G("",!0),["completed","succeeded","cancelled"].includes(d.status)?G("",!0):(E(),T("button",{key:1,type:"button",onClick:me=>q(d.task_id)},f(t.cancel),9,Dc)),o("button",{type:"button",disabled:!!B.value,onClick:me=>le(d.task_id)},f(t.detail),9,Ic)])]))),128)),(zl=I.value)!=null&&zl.items.length?G("",!0):(E(),T("li",Ac,f(t.emptyJobs),1))]),A.value?(E(),T("section",Mc,[o("header",null,[o("h2",null,f(t.jobDetail),1),o("span",null,f(A.value.status),1)]),o("pre",null,f(JSON.stringify(A.value,null,2)),1)])):G("",!0)])):G("",!0),l.value==="discovery"?(E(),T("section",Rc,[o("div",$c,[o("header",null,[o("h2",null,f(t.dialects),1),o("button",{type:"button",disabled:!!B.value,onClick:Ji},f(t.safeProbe),9,Lc)]),o("ul",null,[(E(!0),T(z,null,ve(L.value,d=>(E(),T("li",{key:d.dialect},[o("div",null,[o("strong",null,f(d.label),1),o("small",null,f(d.capabilities.join(", ")||t.unconfirmed),1)]),o("span",null,f(d.dialect),1)]))),128))]),o("div",Fc,[o("label",null,[o("span",null,f(t.provider),1),J(o("input",{"onUpdate:modelValue":h[30]||(h[30]=d=>be.value.provider_id=d),type:"text",placeholder:"local-preview"},null,512),[[se,be.value.provider_id]])]),o("label",null,[o("span",null,f(t.model),1),J(o("input",{"onUpdate:modelValue":h[31]||(h[31]=d=>be.value.model_id=d),type:"text",placeholder:"metadata-only"},null,512),[[se,be.value.model_id]])]),o("label",null,[o("span",null,f(t.requiredCapabilities),1),J(o("input",{"onUpdate:modelValue":h[32]||(h[32]=d=>be.value.required_capabilities=d),type:"text",placeholder:"text_to_image"},null,512),[[se,be.value.required_capabilities]])]),o("button",{type:"button",disabled:!!B.value||!be.value.provider_id||!be.value.model_id,onClick:Gi},f(t.validatePlan),9,jc)]),Oe.value?(E(),T("pre",Vc,f(JSON.stringify(Oe.value,null,2)),1)):G("",!0)]),o("div",Bc,[o("header",null,[o("h2",null,f(t.capabilityProfiles),1),o("span",null,f(de.value.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(de.value,d=>(E(),T("li",{key:d.capability_profile_id},[o("div",null,[o("strong",null,f(d.provider_id)+" / "+f(d.model_id),1),o("small",null,f(d.dialect),1)]),o("div",Nc,[o("span",Uc,f(d.status),1),o("button",{type:"button",disabled:!!B.value,onClick:me=>Xn(d,"confirmed_supported")},f(t.support),9,Wc),o("button",{type:"button",disabled:!!B.value,onClick:me=>Xn(d,"confirmed_unsupported")},f(t.unsupported),9,Hc),o("button",{type:"button",disabled:!!B.value,onClick:me=>Xn(d,"unconfirmed")},f(t.unconfirmed),9,Kc)])]))),128)),de.value.length?G("",!0):(E(),T("li",qc,f(t.emptyCapabilities),1))])])])):G("",!0),l.value==="logs"?(E(),T("section",Jc,[o("div",Gc,[o("div",zc,[o("header",null,[o("h2",null,f(t.generationLogs),1),o("span",null,f(re.value.generation.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(re.value.generation,d=>(E(),T("li",{key:d.task_id},[o("div",null,[o("strong",null,f(d.task_id),1),o("small",null,f(d.status)+" / "+f(d.progress)+"%",1)]),o("span",null,f(d.created_at),1)]))),128)),re.value.generation.length?G("",!0):(E(),T("li",Yc,f(t.emptyGenerationLogs),1))])]),o("div",Qc,[o("header",null,[o("h2",null,f(t.errorLogs),1),o("span",null,f(re.value.errors.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(re.value.errors,d=>(E(),T("li",{key:`${d.source}-${d.id}`},[o("div",null,[o("strong",null,f(d.source),1),o("small",null,f(d.error_message??t.noErrorDetail),1)]),o("span",Xc,f(d.status),1)]))),128)),re.value.errors.length?G("",!0):(E(),T("li",Zc,f(t.emptyErrors),1))])])]),o("div",ef,[o("div",tf,[o("header",null,[o("h2",null,f(t.workflowLogs),1),o("span",null,f(re.value.workflows.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(re.value.workflows,d=>(E(),T("li",{key:d.history_id},[o("div",null,[o("strong",null,f(d.action),1),o("small",null,f(d.title??d.workflow_id),1)]),o("span",null,f(d.branch_name??"main"),1)]))),128)),re.value.workflows.length?G("",!0):(E(),T("li",nf,f(t.emptyWorkflowLogs),1))])]),o("div",lf,[o("header",null,[o("h2",null,f(t.integrationLogs),1),o("span",null,f(re.value.integrations.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(re.value.integrations,d=>(E(),T("li",{key:d.integration_log_id},[o("div",null,[o("strong",null,f(d.integration_name),1),o("small",null,f(d.action),1)]),o("span",sf,f(d.status),1)]))),128)),re.value.integrations.length?G("",!0):(E(),T("li",of,f(t.emptyIntegrationLogs),1))])])]),o("div",rf,[o("header",null,[o("h2",null,f(t.auditLogs),1),o("span",null,f(re.value.audit.length),1)]),o("ul",null,[(E(!0),T(z,null,ve(re.value.audit,d=>(E(),T("li",{key:d.audit_id},[o("div",null,[o("strong",null,f(d.action),1),o("small",null,f(d.actor_type)+" / "+f(d.target_type)+" / "+f(d.target_id),1)]),o("span",null,f(d.created_at),1)]))),128)),re.value.audit.length?G("",!0):(E(),T("li",af,f(t.emptyAuditLogs),1))])])])):G("",!0),l.value==="settings"?(E(),T("section",uf,[o("div",cf,[o("button",{type:"button",disabled:!!B.value,onClick:eo},f(t.reload),9,ff),o("button",{type:"button",disabled:!!B.value,onClick:h[33]||(h[33]=d=>_n())},f(t.reset),9,df),o("button",{type:"button",disabled:!!B.value,onClick:no},f(t.validate),9,pf),o("button",{type:"button",disabled:!!B.value,onClick:lo},f(t.diff),9,hf),o("button",{type:"button",disabled:!!B.value,onClick:so},f(t.save),9,gf),o("button",{type:"button",disabled:!!B.value,onClick:to},f(t.exportRedacted),9,vf)]),o("div",_f,[(E(!0),T(z,null,ve(((Yl=Y.value)==null?void 0:Yl.sections)??[],d=>(E(),T("article",{key:d.key},[o("h2",null,f(d.title),1),o("span",null,f(d.fields.length),1)]))),128))]),o("section",mf,[o("header",null,[o("h2",null,f(t.settingsEditor),1),o("span",null,f(((Ql=$.value)==null?void 0:Ql.config_path)??"***PATH***"),1)]),J(o("textarea",{"onUpdate:modelValue":h[34]||(h[34]=d=>at.value=d),spellcheck:"false"},null,512),[[se,at.value]])]),o("div",yf,[o("div",bf,[o("header",null,[o("h2",null,f(t.validationResult),1),o("span",null,f(((Xl=Fe.value)==null?void 0:Xl.valid)??"-"),1)]),o("pre",null,f(JSON.stringify(Fe.value??{},null,2)),1)]),o("div",wf,[o("header",null,[o("h2",null,f(t.diffResult),1),o("span",null,f(((Zl=Je.value)==null?void 0:Zl.changes.length)??0),1)]),o("pre",null,f(JSON.stringify(Je.value??{},null,2)),1)])])])):G("",!0)],64))]),o("aside",xf,[o("h2",null,f(t.running),1),o("dl",null,[o("div",null,[h[37]||(h[37]=o("dt",null,"Pending",-1)),o("dd",null,f(((es=i.value)==null?void 0:es.queue.pending)??0),1)]),o("div",null,[h[38]||(h[38]=o("dt",null,"Running",-1)),o("dd",null,f(((ts=i.value)==null?void 0:ts.queue.running)??0),1)]),o("div",null,[h[39]||(h[39]=o("dt",null,"Failed",-1)),o("dd",null,f(((ns=i.value)==null?void 0:ns.queue.failed)??0),1)]),o("div",null,[h[40]||(h[40]=o("dt",null,"Dead",-1)),o("dd",null,f(((ls=i.value)==null?void 0:ls.queue.dead_letter)??0),1)])]),o("h2",null,f(t.storage),1),o("dl",null,[o("div",null,[h[41]||(h[41]=o("dt",null,"Images",-1)),o("dd",null,f(el(Ul("storage://images/"))),1)]),o("div",null,[h[42]||(h[42]=o("dt",null,"Materials",-1)),o("dd",null,f(el(Ul("storage://materials/"))),1)])])])])}}}),Sf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},kf=Sf(Cf,[["__scopeId","data-v-61c36513"]]);Fa(kf).mount("#app"); diff --git a/web/assets/index-DzwSrmLH.js b/web/assets/index-DzwSrmLH.js new file mode 100644 index 0000000..9347f1e --- /dev/null +++ b/web/assets/index-DzwSrmLH.js @@ -0,0 +1,17 @@ +var mo=Object.defineProperty;var bo=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nl=(e,t,n)=>bo(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Pl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},jt=[],it=()=>{},Ls=()=>!1,jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vn=e=>e.startsWith("onUpdate:"),Ee=Object.assign,El=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yo=Object.prototype.hasOwnProperty,se=(e,t)=>yo.call(e,t),V=Array.isArray,Vt=e=>cn(e)==="[object Map]",Nn=e=>cn(e)==="[object Set]",ss=e=>cn(e)==="[object Date]",U=e=>typeof e=="function",ye=e=>typeof e=="string",ot=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Fs=e=>(oe(e)||U(e))&&U(e.then)&&U(e.catch),Bs=Object.prototype.toString,cn=e=>Bs.call(e),wo=e=>cn(e).slice(8,-1),js=e=>cn(e)==="[object Object]",Tl=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Pl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},xo=/-\w/g,Je=Un(e=>e.replace(xo,t=>t.slice(1).toUpperCase())),ko=/\B([A-Z])/g,Mt=Un(e=>e.replace(ko,"-$1").toLowerCase()),Vs=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),ll=Un(e=>e?`on${Vs(e)}`:""),st=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Hn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const Wn=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ol(e){if(V(e)){const t={};for(let n=0;n{if(n){const l=n.split(So);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Kn(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;nfn(n,t))}const Hs=e=>!!(e&&e.__v_isRef===!0),u=e=>ye(e)?e:e==null?"":V(e)||oe(e)&&(e.toString===Bs||!U(e.toString))?Hs(e)?u(e.value):JSON.stringify(e,Ws,2):String(e),Ws=(e,t)=>Hs(t)?Ws(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,s],o)=>(n[sl(l,o)+" =>"]=s,n),{})}:Nn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>sl(n))}:ot(t)?sl(t):oe(t)&&!V(t)&&!js(t)?String(t):t,sl=(e,t="")=>{var n;return ot(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 Pe;class Ao{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&&Pe&&(Pe.active?(this.parent=Pe,this.index=(Pe.scopes||(Pe.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(Pe===this)Pe=this.prevScope;else{let t=Pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;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(;Xt;){let t=Xt;for(Xt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Gs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zs(e){let t,n=e.depsTail,l=n;for(;l;){const s=l.prevDep;l.version===-1?(l===n&&(n=s),Al(l),Ro(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=s}e.deps=t,e.depsTail=n}function gl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ys(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ys(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sn)||(e.globalVersion=sn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gl(e))))return;e.flags|=2;const t=e.dep,n=fe,l=Ge;fe=e,Ge=!0;try{Gs(e);const s=e.fn(e._value);(t.version===0||st(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{fe=n,Ge=l,zs(e),e.flags&=-3}}function Al(e,t=!1){const{dep:n,prevSub:l,nextSub:s}=e;if(l&&(l.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Al(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ro(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ge=!0;const Qs=[];function rt(){Qs.push(Ge),Ge=!1}function at(){const e=Qs.pop();Ge=e===void 0?!0:e}function os(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let sn=0;class $o{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 Ml{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(!fe||!Ge||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new $o(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Xs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=l)}return n}trigger(t){this.version++,sn++,this.notify(t)}notify(t){Dl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Il()}}}function Xs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Xs(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _l=new WeakMap,It=Symbol(""),vl=Symbol(""),on=Symbol("");function Te(e,t,n){if(Ge&&fe){let l=_l.get(e);l||_l.set(e,l=new Map);let s=l.get(n);s||(l.set(n,s=new Ml),s.map=l,s.key=n),s.track()}}function ht(e,t,n,l,s,o){const r=_l.get(e);if(!r){sn++;return}const a=f=>{f&&f.trigger()};if(Dl(),t==="clear")r.forEach(a);else{const f=V(e),v=f&&Tl(n);if(f&&n==="length"){const _=Number(l);r.forEach((b,D)=>{(D==="length"||D===on||!ot(D)&&D>=_)&&a(b)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),v&&a(r.get(on)),t){case"add":f?v&&a(r.get("length")):(a(r.get(It)),Vt(e)&&a(r.get(vl)));break;case"delete":f||(a(r.get(It)),Vt(e)&&a(r.get(vl)));break;case"set":Vt(e)&&a(r.get(It));break}}Il()}function $t(e){const t=le(e);return t===e?t:(Te(t,"iterate",on),qe(e)?t:t.map(ze))}function qn(e){return Te(e=le(e),"iterate",on),e}function nt(e,t){return vt(e)?Wt(At(e)?ze(t):t):ze(t)}const Lo={__proto__:null,[Symbol.iterator](){return ol(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return $t(this).concat(...e.map(t=>V(t)?$t(t):t))},entries(){return ol(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return ft(this,"every",e,t,void 0,arguments)},filter(e,t){return ft(this,"filter",e,t,n=>n.map(l=>nt(this,l)),arguments)},find(e,t){return ft(this,"find",e,t,n=>nt(this,n),arguments)},findIndex(e,t){return ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ft(this,"findLast",e,t,n=>nt(this,n),arguments)},findLastIndex(e,t){return ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return rl(this,"includes",e)},indexOf(...e){return rl(this,"indexOf",e)},join(e){return $t(this).join(e)},lastIndexOf(...e){return rl(this,"lastIndexOf",e)},map(e,t){return ft(this,"map",e,t,void 0,arguments)},pop(){return Jt(this,"pop")},push(...e){return Jt(this,"push",e)},reduce(e,...t){return rs(this,"reduce",e,t)},reduceRight(e,...t){return rs(this,"reduceRight",e,t)},shift(){return Jt(this,"shift")},some(e,t){return ft(this,"some",e,t,void 0,arguments)},splice(...e){return Jt(this,"splice",e)},toReversed(){return $t(this).toReversed()},toSorted(e){return $t(this).toSorted(e)},toSpliced(...e){return $t(this).toSpliced(...e)},unshift(...e){return Jt(this,"unshift",e)},values(){return ol(this,"values",e=>nt(this,e))}};function ol(e,t,n){const l=qn(e),s=l[t]();return l!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Fo=Array.prototype;function ft(e,t,n,l,s,o){const r=qn(e),a=r!==e&&!qe(e),f=r[t];if(f!==Fo[t]){const b=f.apply(e,o);return a?ze(b):b}let v=n;r!==e&&(a?v=function(b,D){return n.call(this,nt(e,b),D,e)}:n.length>2&&(v=function(b,D){return n.call(this,b,D,e)}));const _=f.call(r,v,l);return a&&s?s(_):_}function rs(e,t,n,l){const s=qn(e),o=s!==e&&!qe(e);let r=n,a=!1;s!==e&&(o?(a=l.length===0,r=function(v,_,b){return a&&(a=!1,v=nt(e,v)),n.call(this,v,nt(e,_),b,e)}):n.length>3&&(r=function(v,_,b){return n.call(this,v,_,b,e)}));const f=s[t](r,...l);return a?nt(e,f):f}function rl(e,t,n){const l=le(e);Te(l,"iterate",on);const s=l[t](...n);return(s===-1||s===!1)&&Fl(n[0])?(n[0]=le(n[0]),l[t](...n)):s}function Jt(e,t,n=[]){rt(),Dl();const l=le(e)[t].apply(e,n);return Il(),at(),l}const Bo=Pl("__proto__,__v_isRef,__isVue"),Zs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function jo(e){ot(e)||(e=String(e));const t=le(this);return Te(t,"has",e),t.hasOwnProperty(e)}class ei{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return l===(s?o?zo:si:o?li:ni).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=V(t);if(!s){let f;if(r&&(f=Lo[n]))return f;if(n==="hasOwnProperty")return jo}const a=Reflect.get(t,n,Oe(t)?t:l);if((ot(n)?Zs.has(n):Bo(n))||(s||Te(t,"get",n),o))return a;if(Oe(a)){const f=r&&Tl(n)?a:a.value;return s&&oe(f)?bl(f):f}return oe(a)?s?bl(a):$l(a):a}}class ti extends ei{constructor(t=!1){super(!1,t)}set(t,n,l,s){let o=t[n];const r=V(t)&&Tl(n);if(!this._isShallow){const v=vt(o);if(!qe(l)&&!vt(l)&&(o=le(o),l=le(l)),!r&&Oe(o)&&!Oe(l))return v||(o.value=l),!0}const a=r?Number(n)e,Cn=e=>Reflect.getPrototypeOf(e);function Wo(e,t,n){return function(...l){const s=this.__v_raw,o=le(s),r=Vt(o),a=e==="entries"||e===Symbol.iterator&&r,f=e==="keys"&&r,v=s[e](...l),_=n?ml:t?Wt:ze;return!t&&Te(o,"iterate",f?vl:It),Ee(Object.create(v),{next(){const{value:b,done:D}=v.next();return D?{value:b,done:D}:{value:a?[_(b[0]),_(b[1])]:_(b),done:D}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ko(e,t){const n={get(s){const o=this.__v_raw,r=le(o),a=le(s);e||(st(s,a)&&Te(r,"get",s),Te(r,"get",a));const{has:f}=Cn(r),v=t?ml:e?Wt:ze;if(f.call(r,s))return v(o.get(s));if(f.call(r,a))return v(o.get(a));o!==r&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Te(le(s),"iterate",It),s.size},has(s){const o=this.__v_raw,r=le(o),a=le(s);return e||(st(s,a)&&Te(r,"has",s),Te(r,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const r=this,a=r.__v_raw,f=le(a),v=t?ml:e?Wt:ze;return!e&&Te(f,"iterate",It),a.forEach((_,b)=>s.call(o,v(_),v(b),r))}};return Ee(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(s){const o=le(this),r=Cn(o),a=le(s),f=!t&&!qe(s)&&!vt(s)?a:s;return r.has.call(o,f)||st(s,f)&&r.has.call(o,s)||st(a,f)&&r.has.call(o,a)||(o.add(f),ht(o,"add",f,f)),this},set(s,o){!t&&!qe(o)&&!vt(o)&&(o=le(o));const r=le(this),{has:a,get:f}=Cn(r);let v=a.call(r,s);v||(s=le(s),v=a.call(r,s));const _=f.call(r,s);return r.set(s,o),v?st(o,_)&&ht(r,"set",s,o):ht(r,"add",s,o),this},delete(s){const o=le(this),{has:r,get:a}=Cn(o);let f=r.call(o,s);f||(s=le(s),f=r.call(o,s)),a&&a.call(o,s);const v=o.delete(s);return f&&ht(o,"delete",s,void 0),v},clear(){const s=le(this),o=s.size!==0,r=s.clear();return o&&ht(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Wo(s,e,t)}),n}function Rl(e,t){const n=Ko(e,t);return(l,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?l:Reflect.get(se(n,s)&&s in l?n:l,s,o)}const qo={get:Rl(!1,!1)},Jo={get:Rl(!1,!0)},Go={get:Rl(!0,!1)};const ni=new WeakMap,li=new WeakMap,si=new WeakMap,zo=new WeakMap;function Yo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $l(e){return vt(e)?e:Ll(e,!1,No,qo,ni)}function Qo(e){return Ll(e,!1,Ho,Jo,li)}function bl(e){return Ll(e,!0,Uo,Go,si)}function Ll(e,t,n,l,s){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const r=Yo(wo(e));if(r===0)return e;const a=new Proxy(e,r===2?l:n);return s.set(e,a),a}function At(e){return vt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function Fl(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Xo(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&Ns(e,"__v_skip",!0),e}const ze=e=>oe(e)?$l(e):e,Wt=e=>oe(e)?bl(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function N(e){return Zo(e,!1)}function Zo(e,t){return Oe(e)?e:new er(e,t)}class er{constructor(t,n){this.dep=new Ml,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:le(t),this._value=n?t:ze(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||qe(t)||vt(t);t=l?t:le(t),st(t,n)&&(this._rawValue=t,this._value=l?t:ze(t),this.dep.trigger())}}function tr(e){return Oe(e)?e.value:e}const nr={get:(e,t,n)=>t==="__v_raw"?e:tr(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const s=e[t];return Oe(s)&&!Oe(n)?(s.value=n,!0):Reflect.set(e,t,n,l)}};function ii(e){return At(e)?e:new Proxy(e,nr)}class lr{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ml(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return Js(this,!0),!0}get value(){const t=this.dep.track();return Ys(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sr(e,t,n=!1){let l,s;return U(e)?l=e:(l=e.get,s=e.set),new lr(l,s,n)}const Pn={},Dn=new WeakMap;let Ot;function ir(e,t=!1,n=Ot){if(n){let l=Dn.get(n);l||Dn.set(n,l=[]),l.push(e)}}function or(e,t,n=re){const{immediate:l,deep:s,once:o,scheduler:r,augmentJob:a,call:f}=n,v=$=>s?$:qe($)||s===!1||s===0?gt($,1):gt($);let _,b,D,M,X=!1,F=!1;if(Oe(e)?(b=()=>e.value,X=qe(e)):At(e)?(b=()=>v(e),X=!0):V(e)?(F=!0,X=e.some($=>At($)||qe($)),b=()=>e.map($=>{if(Oe($))return $.value;if(At($))return v($);if(U($))return f?f($,2):$()})):U(e)?t?b=f?()=>f(e,2):e:b=()=>{if(D){rt();try{D()}finally{at()}}const $=Ot;Ot=_;try{return f?f(e,3,[M]):e(M)}finally{Ot=$}}:b=it,t&&s){const $=b,de=s===!0?1/0:s;b=()=>gt($(),de)}const ge=Mo(),Z=()=>{_.stop(),ge&&ge.active&&El(ge.effects,_)};if(o&&t){const $=t;t=(...de)=>{const Le=$(...de);return Z(),Le}}let W=F?new Array(e.length).fill(Pn):Pn;const ee=$=>{if(!(!(_.flags&1)||!_.dirty&&!$))if(t){const de=_.run();if($||s||X||(F?de.some((Le,De)=>st(Le,W[De])):st(de,W))){D&&D();const Le=Ot;Ot=_;try{const De=[de,W===Pn?void 0:F&&W[0]===Pn?[]:W,M];W=de,f?f(t,3,De):t(...De)}finally{Ot=Le}}}else _.run()};return a&&a(ee),_=new Ks(b),_.scheduler=r?()=>r(ee,!1):ee,M=$=>ir($,!1,_),D=_.onStop=()=>{const $=Dn.get(_);if($){if(f)f($,4);else for(const de of $)de();Dn.delete(_)}},t?l?ee(!0):W=_.run():r?r(ee.bind(null,!0),!0):_.run(),Z.pause=_.pause.bind(_),Z.resume=_.resume.bind(_),Z.stop=Z,Z}function gt(e,t=1/0,n){if(t<=0||!oe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Oe(e))gt(e.value,t,n);else if(V(e))for(let l=0;l{gt(l,t,n)});else if(js(e)){for(const l in e)gt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&>(e[l],t,n)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function dn(e,t,n,l){try{return l?e(...l):e()}catch(s){Jn(s,t,n)}}function Ye(e,t,n,l){if(U(e)){const s=dn(e,t,n,l);return s&&Fs(s)&&s.catch(o=>{Jn(o,t,n)}),s}if(V(e)){const s=[];for(let o=0;o>>1,s=Re[l],o=rn(s);o=rn(n)?Re.push(e):Re.splice(ar(t),0,e),e.flags|=1,ai()}}function ai(){In||(In=oi.then(ci))}function ur(e){V(e)?Nt.push(...e):xt&&e.id===-1?xt.splice(Ft+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),ai()}function as(e,t,n=tt+1){for(;nrn(n)-rn(l));if(Nt.length=0,xt){xt.push(...t);return}for(xt=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function ci(e){try{for(tt=0;tt{l._d&&bs(-1);const o=An(t);let r;try{r=e(...s)}finally{An(o),l._d&&bs(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function Y(e,t){if(Ke===null)return e;const n=Qn(Ke),l=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&U(t)?t.call(l&&l.proxy):t}}const dr=Symbol.for("v-scx"),pr=()=>Tn(dr);function al(e,t,n){return di(e,t,n)}function di(e,t,n=re){const{immediate:l,deep:s,flush:o,once:r}=n,a=Ee({},n),f=t&&l||!t&&o!=="post";let v;if(un){if(o==="sync"){const M=pr();v=M.__watcherHandles||(M.__watcherHandles=[])}else if(!f){const M=()=>{};return M.stop=it,M.resume=it,M.pause=it,M}}const _=$e;a.call=(M,X,F)=>Ye(M,_,X,F);let b=!1;o==="post"?a.scheduler=M=>{Fe(M,_&&_.suspense)}:o!=="sync"&&(b=!0,a.scheduler=(M,X)=>{X?M():Bl(M)}),a.augmentJob=M=>{t&&(M.flags|=4),b&&(M.flags|=2,_&&(M.id=_.uid,M.i=_))};const D=or(e,t,a);return un&&(v?v.push(D):f&&D()),D}function hr(e,t,n){const l=this.proxy,s=ye(e)?e.includes(".")?pi(l,e):()=>l[e]:e.bind(l,l);let o;U(t)?o=t:(o=t.handler,n=t);const r=pn(this),a=di(s,o.bind(l),n);return r(),a}function pi(e,t){const n=t.split(".");return()=>{let l=e;for(let s=0;se.__isTeleport,ul=Symbol("_leaveCb");function jl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vr(e,t){return U(e)?Ee({name:e.name},t,{setup:e}):e}function hi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function us(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mn=new WeakMap;function en(e,t,n,l,s=!1){if(V(e)){e.forEach((F,ge)=>en(F,t&&(V(t)?t[ge]:t),n,l,s));return}if(tn(l)&&!s){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&en(e,t,n,l.component.subTree);return}const o=l.shapeFlag&4?Qn(l.component):l.el,r=s?null:o,{i:a,r:f}=e,v=t&&t.r,_=a.refs===re?a.refs={}:a.refs,b=a.setupState,D=le(b),M=b===re?Ls:F=>us(_,F)?!1:se(D,F),X=(F,ge)=>!(ge&&us(_,ge));if(v!=null&&v!==f){if(cs(t),ye(v))_[v]=null,M(v)&&(b[v]=null);else if(Oe(v)){const F=t;X(v,F.k)&&(v.value=null),F.k&&(_[F.k]=null)}}if(U(f)){rt();try{dn(f,a,12,[r,_])}finally{at()}}else{const F=ye(f),ge=Oe(f);if(F||ge){const Z=()=>{if(e.f){const W=F?M(f)?b[f]:_[f]:X()||!e.k?f.value:_[e.k];if(s)V(W)&&El(W,o);else if(V(W))W.includes(o)||W.push(o);else if(F)_[f]=[o],M(f)&&(b[f]=_[f]);else{const ee=[o];X(f,e.k)&&(f.value=ee),e.k&&(_[e.k]=ee)}}else F?(_[f]=r,M(f)&&(b[f]=r)):ge&&(X(f,e.k)&&(f.value=r),e.k&&(_[e.k]=r))};if(r){const W=()=>{Z(),Mn.delete(e)};W.id=-1,Mn.set(e,W),Fe(W,n)}else cs(e),Z()}}}function cs(e){const t=Mn.get(e);t&&(t.flags|=8,Mn.delete(e))}Wn().requestIdleCallback;Wn().cancelIdleCallback;const tn=e=>!!e.type.__asyncLoader,gi=e=>e.type.__isKeepAlive;function mr(e,t){_i(e,"a",t)}function br(e,t){_i(e,"da",t)}function _i(e,t,n=$e){const l=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gn(t,l,n),n){let s=n.parent;for(;s&&s.parent;)gi(s.parent.vnode)&&yr(l,t,n,s),s=s.parent}}function yr(e,t,n,l){const s=Gn(t,e,l,!0);mi(()=>{El(l[t],s)},n)}function Gn(e,t,n=$e,l=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{rt();const a=pn(n),f=Ye(t,n,e,r);return a(),at(),f});return l?s.unshift(o):s.push(o),o}}const mt=e=>(t,n=$e)=>{(!un||e==="sp")&&Gn(e,(...l)=>t(...l),n)},wr=mt("bm"),vi=mt("m"),xr=mt("bu"),kr=mt("u"),Cr=mt("bum"),mi=mt("um"),Sr=mt("sp"),Pr=mt("rtg"),Er=mt("rtc");function Tr(e,t=$e){Gn("ec",e,t)}const Or=Symbol.for("v-ndc");function he(e,t,n,l){let s;const o=n,r=V(e);if(r||ye(e)){const a=r&&At(e);let f=!1,v=!1;a&&(f=!qe(e),v=vt(e),e=qn(e)),s=new Array(e.length);for(let _=0,b=e.length;_t(a,f,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let f=0,v=a.length;fe?ji(e)?Qn(e):yl(e.parent):null,nn=Ee(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=>yl(e.parent),$root:e=>yl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yi(e),$forceUpdate:e=>e.f||(e.f=()=>{Bl(e.update)}),$nextTick:e=>e.n||(e.n=ri.bind(e.proxy)),$watch:e=>hr.bind(e)}),cl=(e,t)=>e!==re&&!e.__isScriptSetup&&se(e,t),Dr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:s,props:o,accessCache:r,type:a,appContext:f}=e;if(t[0]!=="$"){const D=r[t];if(D!==void 0)switch(D){case 1:return l[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(cl(l,t))return r[t]=1,l[t];if(s!==re&&se(s,t))return r[t]=2,s[t];if(se(o,t))return r[t]=3,o[t];if(n!==re&&se(n,t))return r[t]=4,n[t];wl&&(r[t]=0)}}const v=nn[t];let _,b;if(v)return t==="$attrs"&&Te(e.attrs,"get",""),v(e);if((_=a.__cssModules)&&(_=_[t]))return _;if(n!==re&&se(n,t))return r[t]=4,n[t];if(b=f.config.globalProperties,se(b,t))return b[t]},set({_:e},t,n){const{data:l,setupState:s,ctx:o}=e;return cl(s,t)?(s[t]=n,!0):l!==re&&se(l,t)?(l[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:s,props:o,type:r}},a){let f;return!!(n[a]||e!==re&&a[0]!=="$"&&se(e,a)||cl(t,a)||se(o,a)||se(l,a)||se(nn,a)||se(s.config.globalProperties,a)||(f=r.__cssModules)&&f[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fs(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wl=!0;function Ir(e){const t=yi(e),n=e.proxy,l=e.ctx;wl=!1,t.beforeCreate&&ds(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:r,watch:a,provide:f,inject:v,created:_,beforeMount:b,mounted:D,beforeUpdate:M,updated:X,activated:F,deactivated:ge,beforeDestroy:Z,beforeUnmount:W,destroyed:ee,unmounted:$,render:de,renderTracked:Le,renderTriggered:De,errorCaptured:Be,serverPrefetch:we,expose:Ne,inheritAttrs:Qe,components:Xe,directives:Ze,filters:G}=t;if(v&&Ar(v,l,null),r)for(const te in r){const K=r[te];U(K)&&(l[te]=K.bind(n))}if(s){const te=s.call(n,n);oe(te)&&(e.data=$l(te))}if(wl=!0,o)for(const te in o){const K=o[te],Ce=U(K)?K.bind(n,n):U(K.get)?K.get.bind(n,n):it,xe=!U(K)&&U(K.set)?K.set.bind(n):it,ae=wt({get:Ce,set:xe});Object.defineProperty(l,te,{enumerable:!0,configurable:!0,get:()=>ae.value,set:_e=>ae.value=_e})}if(a)for(const te in a)bi(a[te],l,n,te);if(f){const te=U(f)?f.call(n):f;Reflect.ownKeys(te).forEach(K=>{fr(K,te[K])})}_&&ds(_,e,"c");function pe(te,K){V(K)?K.forEach(Ce=>te(Ce.bind(n))):K&&te(K.bind(n))}if(pe(wr,b),pe(vi,D),pe(xr,M),pe(kr,X),pe(mr,F),pe(br,ge),pe(Tr,Be),pe(Er,Le),pe(Pr,De),pe(Cr,W),pe(mi,$),pe(Sr,we),V(Ne))if(Ne.length){const te=e.exposed||(e.exposed={});Ne.forEach(K=>{Object.defineProperty(te,K,{get:()=>n[K],set:Ce=>n[K]=Ce,enumerable:!0})})}else e.exposed||(e.exposed={});de&&e.render===it&&(e.render=de),Qe!=null&&(e.inheritAttrs=Qe),Xe&&(e.components=Xe),Ze&&(e.directives=Ze),we&&hi(e)}function Ar(e,t,n=it){V(e)&&(e=xl(e));for(const l in e){const s=e[l];let o;oe(s)?"default"in s?o=Tn(s.from||l,s.default,!0):o=Tn(s.from||l):o=Tn(s),Oe(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[l]=o}}function ds(e,t,n){Ye(V(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function bi(e,t,n,l){let s=l.includes(".")?pi(n,l):()=>n[l];if(ye(e)){const o=t[e];U(o)&&al(s,o)}else if(U(e))al(s,e.bind(n));else if(oe(e))if(V(e))e.forEach(o=>bi(o,t,n,l));else{const o=U(e.handler)?e.handler.bind(n):t[e.handler];U(o)&&al(s,o,e)}}function yi(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let f;return a?f=a:!s.length&&!n&&!l?f=t:(f={},s.length&&s.forEach(v=>Rn(f,v,r,!0)),Rn(f,t,r)),oe(t)&&o.set(t,f),f}function Rn(e,t,n,l=!1){const{mixins:s,extends:o}=t;o&&Rn(e,o,n,!0),s&&s.forEach(r=>Rn(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const a=Mr[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Mr={data:ps,props:hs,emits:hs,methods:zt,computed:zt,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:zt,directives:zt,watch:$r,provide:ps,inject:Rr};function ps(e,t){return t?e?function(){return Ee(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Rr(e,t){return zt(xl(e),xl(t))}function xl(e){if(V(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function jr(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||re;let s=n;const o=t.startsWith("update:"),r=o&&Br(l,t.slice(7));r&&(r.trim&&(s=n.map(_=>ye(_)?_.trim():_)),r.number&&(s=n.map(Hn)));let a,f=l[a=ll(t)]||l[a=ll(Je(t))];!f&&o&&(f=l[a=ll(Mt(t))]),f&&Ye(f,e,6,s);const v=l[a+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(v,e,6,s)}}const Vr=new WeakMap;function xi(e,t,n=!1){const l=n?Vr:t.emitsCache,s=l.get(e);if(s!==void 0)return s;const o=e.emits;let r={},a=!1;if(!U(e)){const f=v=>{const _=xi(v,t,!0);_&&(a=!0,Ee(r,_))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!a?(oe(e)&&l.set(e,null),null):(V(o)?o.forEach(f=>r[f]=null):Ee(r,o),oe(e)&&l.set(e,r),r)}function zn(e,t){return!e||!jn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Mt(t))||se(e,t))}function gs(e){const{type:t,vnode:n,proxy:l,withProxy:s,propsOptions:[o],slots:r,attrs:a,emit:f,render:v,renderCache:_,props:b,data:D,setupState:M,ctx:X,inheritAttrs:F}=e,ge=An(e);let Z,W;try{if(n.shapeFlag&4){const $=s||l,de=$;Z=lt(v.call(de,$,_,b,M,D,X)),W=a}else{const $=t;Z=lt($.length>1?$(b,{attrs:a,slots:r,emit:f}):$(b,null)),W=t.props?a:Nr(a)}}catch($){ln.length=0,Jn($,e,1),Z=_t(kt)}let ee=Z;if(W&&F!==!1){const $=Object.keys(W),{shapeFlag:de}=ee;$.length&&de&7&&(o&&$.some(Vn)&&(W=Ur(W,o)),ee=Kt(ee,W,!1,!0))}return n.dirs&&(ee=Kt(ee,null,!1,!0),ee.dirs=ee.dirs?ee.dirs.concat(n.dirs):n.dirs),n.transition&&jl(ee,n.transition),Z=ee,An(ge),Z}const Nr=e=>{let t;for(const n in e)(n==="class"||n==="style"||jn(n))&&((t||(t={}))[n]=e[n]);return t},Ur=(e,t)=>{const n={};for(const l in e)(!Vn(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function Hr(e,t,n){const{props:l,children:s,component:o}=e,{props:r,children:a,patchFlag:f}=t,v=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return l?_s(l,r,v):!!r;if(f&8){const _=t.dynamicProps;for(let b=0;b<_.length;b++){const D=_[b];if(ki(r,l,D)&&!zn(v,D))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:l===r?!1:l?r?_s(l,r,v):!0:!!r;return!1}function _s(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Ci),Pi=e=>Object.getPrototypeOf(e)===Ci;function Kr(e,t,n,l=!1){const s={},o=Si();e.propsDefaults=Object.create(null),Ei(e,t,s,o);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=l?s:Qo(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function qr(e,t,n,l){const{props:s,attrs:o,vnode:{patchFlag:r}}=e,a=le(s),[f]=e.propsOptions;let v=!1;if((l||r>0)&&!(r&16)){if(r&8){const _=e.vnode.dynamicProps;for(let b=0;b<_.length;b++){let D=_[b];if(zn(e.emitsOptions,D))continue;const M=t[D];if(f)if(se(o,D))M!==o[D]&&(o[D]=M,v=!0);else{const X=Je(D);s[X]=kl(f,a,X,M,e,!1)}else M!==o[D]&&(o[D]=M,v=!0)}}}else{Ei(e,t,s,o)&&(v=!0);let _;for(const b in a)(!t||!se(t,b)&&((_=Mt(b))===b||!se(t,_)))&&(f?n&&(n[b]!==void 0||n[_]!==void 0)&&(s[b]=kl(f,a,b,void 0,e,!0)):delete s[b]);if(o!==a)for(const b in o)(!t||!se(t,b))&&(delete o[b],v=!0)}v&&ht(e.attrs,"set","")}function Ei(e,t,n,l){const[s,o]=e.propsOptions;let r=!1,a;if(t)for(let f in t){if(Qt(f))continue;const v=t[f];let _;s&&se(s,_=Je(f))?!o||!o.includes(_)?n[_]=v:(a||(a={}))[_]=v:zn(e.emitsOptions,f)||(!(f in l)||v!==l[f])&&(l[f]=v,r=!0)}if(o){const f=le(n),v=a||re;for(let _=0;_{f=!0;const[D,M]=Ti(b,t,!0);Ee(r,D),M&&a.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!o&&!f)return oe(e)&&l.set(e,jt),jt;if(V(o))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Nl=e=>V(e)?e.map(lt):[lt(e)],Gr=(e,t,n)=>{if(t._n)return t;const l=cr((...s)=>Nl(t(...s)),n);return l._c=!1,l},Oi=(e,t,n)=>{const l=e._ctx;for(const s in e){if(Vl(s))continue;const o=e[s];if(U(o))t[s]=Gr(s,o,l);else if(o!=null){const r=Nl(o);t[s]=()=>r}}},Di=(e,t)=>{const n=Nl(t);e.slots.default=()=>n},Ii=(e,t,n)=>{for(const l in t)(n||!Vl(l))&&(e[l]=t[l])},zr=(e,t,n)=>{const l=e.slots=Si();if(e.vnode.shapeFlag&32){const s=t._;s?(Ii(l,t,n),n&&Ns(l,"_",s,!0)):Oi(t,l)}else t&&Di(e,t)},Yr=(e,t,n)=>{const{vnode:l,slots:s}=e;let o=!0,r=re;if(l.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Ii(s,t,n):(o=!t.$stable,Oi(t,s)),r=t}else t&&(Di(e,t),r={default:1});if(o)for(const a in s)!Vl(a)&&r[a]==null&&delete s[a]},Fe=ta;function Qr(e){return Xr(e)}function Xr(e,t){const n=Wn();n.__VUE__=!0;const{insert:l,remove:s,patchProp:o,createElement:r,createText:a,createComment:f,setText:v,setElementText:_,parentNode:b,nextSibling:D,setScopeId:M=it,insertStaticContent:X}=e,F=(c,p,m,k=null,x=null,y=null,T=void 0,E=null,C=!!p.dynamicChildren)=>{if(c===p)return;c&&!Gt(c,p)&&(k=bt(c),_e(c,x,y,!0),c=null),p.patchFlag===-2&&(C=!1,p.dynamicChildren=null);const{type:w,ref:L,shapeFlag:O}=p;switch(w){case Yn:ge(c,p,m,k);break;case kt:Z(c,p,m,k);break;case dl:c==null&&W(p,m,k,T);break;case Q:Xe(c,p,m,k,x,y,T,E,C);break;default:O&1?de(c,p,m,k,x,y,T,E,C):O&6?Ze(c,p,m,k,x,y,T,E,C):(O&64||O&128)&&w.process(c,p,m,k,x,y,T,E,C,Ie)}L!=null&&x?en(L,c&&c.ref,y,p||c,!p):L==null&&c&&c.ref!=null&&en(c.ref,null,y,c,!0)},ge=(c,p,m,k)=>{if(c==null)l(p.el=a(p.children),m,k);else{const x=p.el=c.el;p.children!==c.children&&v(x,p.children)}},Z=(c,p,m,k)=>{c==null?l(p.el=f(p.children||""),m,k):p.el=c.el},W=(c,p,m,k)=>{[c.el,c.anchor]=X(c.children,p,m,k,c.el,c.anchor)},ee=({el:c,anchor:p},m,k)=>{let x;for(;c&&c!==p;)x=D(c),l(c,m,k),c=x;l(p,m,k)},$=({el:c,anchor:p})=>{let m;for(;c&&c!==p;)m=D(c),s(c),c=m;s(p)},de=(c,p,m,k,x,y,T,E,C)=>{if(p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),c==null)Le(p,m,k,x,y,T,E,C);else{const w=c.el&&c.el._isVueCE?c.el:null;try{w&&w._beginPatch(),we(c,p,x,y,T,E,C)}finally{w&&w._endPatch()}}},Le=(c,p,m,k,x,y,T,E)=>{let C,w;const{props:L,shapeFlag:O,transition:R,dirs:j}=c;if(C=c.el=r(c.type,y,L&&L.is,L),O&8?_(C,c.children):O&16&&Be(c.children,C,null,k,x,fl(c,y),T,E),j&&Et(c,null,k,"created"),De(C,c,c.scopeId,T,k),L){for(const q in L)q!=="value"&&!Qt(q)&&o(C,q,null,L[q],y,k);"value"in L&&o(C,"value",null,L.value,y),(w=L.onVnodeBeforeMount)&&et(w,k,c)}j&&Et(c,null,k,"beforeMount");const z=Zr(x,R);z&&R.beforeEnter(C),l(C,p,m),((w=L&&L.onVnodeMounted)||z||j)&&Fe(()=>{try{w&&et(w,k,c),z&&R.enter(C),j&&Et(c,null,k,"mounted")}finally{}},x)},De=(c,p,m,k,x)=>{if(m&&M(c,m),k)for(let y=0;y{for(let w=C;w{const E=p.el=c.el;let{patchFlag:C,dynamicChildren:w,dirs:L}=p;C|=c.patchFlag&16;const O=c.props||re,R=p.props||re;let j;if(m&&Tt(m,!1),(j=R.onVnodeBeforeUpdate)&&et(j,m,p,c),L&&Et(p,c,m,"beforeUpdate"),m&&Tt(m,!0),w&&(!c.dynamicChildren||c.dynamicChildren.length!==w.length)&&(C=0,T=!1,w=null),(O.innerHTML&&R.innerHTML==null||O.textContent&&R.textContent==null)&&_(E,""),w?Ne(c.dynamicChildren,w,E,m,k,fl(p,x),y):T||K(c,p,E,null,m,k,fl(p,x),y,!1),C>0){if(C&16)Qe(E,O,R,m,x);else if(C&2&&O.class!==R.class&&o(E,"class",null,R.class,x),C&4&&o(E,"style",O.style,R.style,x),C&8){const z=p.dynamicProps;for(let q=0;q{j&&et(j,m,p,c),L&&Et(p,c,m,"updated")},k)},Ne=(c,p,m,k,x,y,T)=>{for(let E=0;E{if(p!==m){if(p!==re)for(const y in p)!Qt(y)&&!(y in m)&&o(c,y,p[y],null,x,k);for(const y in m){if(Qt(y))continue;const T=m[y],E=p[y];T!==E&&y!=="value"&&o(c,y,E,T,x,k)}"value"in m&&o(c,"value",p.value,m.value,x)}},Xe=(c,p,m,k,x,y,T,E,C)=>{const w=p.el=c?c.el:a(""),L=p.anchor=c?c.anchor:a("");let{patchFlag:O,dynamicChildren:R,slotScopeIds:j}=p;j&&(E=E?E.concat(j):j),c==null?(l(w,m,k),l(L,m,k),Be(p.children||[],m,L,x,y,T,E,C)):O>0&&O&64&&R&&c.dynamicChildren&&c.dynamicChildren.length===R.length?(Ne(c.dynamicChildren,R,m,x,y,T,E),(p.key!=null||x&&p===x.subTree)&&Ai(c,p,!0)):K(c,p,m,L,x,y,T,E,C)},Ze=(c,p,m,k,x,y,T,E,C)=>{p.slotScopeIds=E,c==null?p.shapeFlag&512?x.ctx.activate(p,m,k,T,C):G(p,m,k,x,y,T,C):ut(c,p,C)},G=(c,p,m,k,x,y,T)=>{const E=c.component=ca(c,k,x);if(gi(c)&&(E.ctx.renderer=Ie),da(E,!1,T),E.asyncDep){if(x&&x.registerDep(E,pe,T),!c.el){const C=E.subTree=_t(kt);Z(null,C,p,m),c.placeholder=C.el}}else pe(E,c,p,m,x,y,T)},ut=(c,p,m)=>{const k=p.component=c.component;if(Hr(c,p,m))if(k.asyncDep&&!k.asyncResolved){te(k,p,m);return}else k.next=p,k.update();else p.el=c.el,k.vnode=p},pe=(c,p,m,k,x,y,T)=>{const E=()=>{if(c.isMounted){let{next:O,bu:R,u:j,parent:z,vnode:q}=c;{const He=Mi(c);if(He){O&&(O.el=q.el,te(c,O,T)),He.asyncDep.then(()=>{Fe(()=>{c.isUnmounted||w()},x)});return}}let I=O,me;Tt(c,!1),O?(O.el=q.el,te(c,O,T)):O=q,R&&En(R),(me=O.props&&O.props.onVnodeBeforeUpdate)&&et(me,z,O,q),Tt(c,!0);const ke=gs(c),Ue=c.subTree;c.subTree=ke,F(Ue,ke,b(Ue.el),bt(Ue),c,x,y),O.el=ke.el,I===null&&Wr(c,ke.el),j&&Fe(j,x),(me=O.props&&O.props.onVnodeUpdated)&&Fe(()=>et(me,z,O,q),x)}else{let O;const{el:R,props:j}=p,{bm:z,m:q,parent:I,root:me,type:ke}=c,Ue=tn(p);Tt(c,!1),z&&En(z),!Ue&&(O=j&&j.onVnodeBeforeMount)&&et(O,I,p),Tt(c,!0);{me.ce&&me.ce._hasShadowRoot()&&me.ce._injectChildStyle(ke,c.parent?c.parent.type:void 0);const He=c.subTree=gs(c);F(null,He,m,k,c,x,y),p.el=He.el}if(q&&Fe(q,x),!Ue&&(O=j&&j.onVnodeMounted)){const He=p;Fe(()=>et(O,I,He),x)}(p.shapeFlag&256||I&&tn(I.vnode)&&I.vnode.shapeFlag&256)&&c.a&&Fe(c.a,x),c.isMounted=!0,p=m=k=null}};c.scope.on();const C=c.effect=new Ks(E);c.scope.off();const w=c.update=C.run.bind(C),L=c.job=C.runIfDirty.bind(C);L.i=c,L.id=c.uid,C.scheduler=()=>Bl(L),Tt(c,!0),w()},te=(c,p,m)=>{p.component=c;const k=c.vnode.props;c.vnode=p,c.next=null,qr(c,p.props,k,m),Yr(c,p.children,m),rt(),as(c),at()},K=(c,p,m,k,x,y,T,E,C=!1)=>{const w=c&&c.children,L=c?c.shapeFlag:0,O=p.children,{patchFlag:R,shapeFlag:j}=p;if(R>0){if(R&128){xe(w,O,m,k,x,y,T,E,C);return}else if(R&256){Ce(w,O,m,k,x,y,T,E,C);return}}j&8?(L&16&&ve(w,x,y),O!==w&&_(m,O)):L&16?j&16?xe(w,O,m,k,x,y,T,E,C):ve(w,x,y,!0):(L&8&&_(m,""),j&16&&Be(O,m,k,x,y,T,E,C))},Ce=(c,p,m,k,x,y,T,E,C)=>{c=c||jt,p=p||jt;const w=c.length,L=p.length,O=Math.min(w,L);let R;for(R=0;RL?ve(c,x,y,!0,!1,O):Be(p,m,k,x,y,T,E,C,O)},xe=(c,p,m,k,x,y,T,E,C)=>{let w=0;const L=p.length;let O=c.length-1,R=L-1;for(;w<=O&&w<=R;){const j=c[w],z=p[w]=C?pt(p[w]):lt(p[w]);if(Gt(j,z))F(j,z,m,null,x,y,T,E,C);else break;w++}for(;w<=O&&w<=R;){const j=c[O],z=p[R]=C?pt(p[R]):lt(p[R]);if(Gt(j,z))F(j,z,m,null,x,y,T,E,C);else break;O--,R--}if(w>O){if(w<=R){const j=R+1,z=jR)for(;w<=O;)_e(c[w],x,y,!0),w++;else{const j=w,z=w,q=new Map;for(w=z;w<=R;w++){const Ae=p[w]=C?pt(p[w]):lt(p[w]);Ae.key!=null&&q.set(Ae.key,w)}let I,me=0;const ke=R-z+1;let Ue=!1,He=0;const St=new Array(ke);for(w=0;w=ke){_e(Ae,x,y,!0);continue}let We;if(Ae.key!=null)We=q.get(Ae.key);else for(I=z;I<=R;I++)if(St[I-z]===0&&Gt(Ae,p[I])){We=I;break}We===void 0?_e(Ae,x,y,!0):(St[We-z]=w+1,We>=He?He=We:Ue=!0,F(Ae,p[We],m,null,x,y,T,E,C),me++)}const hn=Ue?ea(St):jt;for(I=hn.length-1,w=ke-1;w>=0;w--){const Ae=z+w,We=p[Ae],gn=p[Ae+1],_n=Ae+1{const{el:y,type:T,transition:E,children:C,shapeFlag:w}=c;if(w&6){ae(c.component.subTree,p,m,k);return}if(w&128){c.suspense.move(p,m,k);return}if(w&64){T.move(c,p,m,Ie);return}if(T===Q){l(y,p,m);for(let O=0;OE.enter(y),x));else{const{leave:O,delayLeave:R,afterLeave:j}=E,z=()=>{c.ctx.isUnmounted?s(y):l(y,p,m)},q=()=>{const I=y._isLeaving||!!y[ul];y._isLeaving&&y[ul](!0),E.persisted&&!I?z():O(y,()=>{z(),j&&j()})};R?R(y,z,q):q()}else l(y,p,m)},_e=(c,p,m,k=!1,x=!1)=>{const{type:y,props:T,ref:E,children:C,dynamicChildren:w,shapeFlag:L,patchFlag:O,dirs:R,cacheIndex:j,memo:z}=c;if(O===-2&&(x=!1),E!=null&&(rt(),en(E,null,m,c,!0),at()),j!=null&&(p.renderCache[j]=void 0),L&256){p.ctx.deactivate(c);return}const q=L&1&&R,I=!tn(c);let me;if(I&&(me=T&&T.onVnodeBeforeUnmount)&&et(me,p,c),L&6)Rt(c.component,m,k);else{if(L&128){c.suspense.unmount(m,k);return}q&&Et(c,null,p,"beforeUnmount"),L&64?c.type.remove(c,p,m,Ie,k):w&&!w.hasOnce&&(y!==Q||O>0&&O&64)?ve(w,p,m,!1,!0):(y===Q&&O&384||!x&&L&16)&&ve(C,p,m),k&&Ct(c)}const ke=z!=null&&j==null;(I&&(me=T&&T.onVnodeUnmounted)||q||ke)&&Fe(()=>{me&&et(me,p,c),q&&Et(c,null,p,"unmounted"),ke&&(c.el=null)},m)},Ct=c=>{const{type:p,el:m,anchor:k,transition:x}=c;if(p===Q){je(m,k);return}if(p===dl){$(c);return}const y=()=>{s(m),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(c.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:E}=x,C=()=>T(m,y);E?E(c.el,y,C):C()}else y()},je=(c,p)=>{let m;for(;c!==p;)m=D(c),s(c),c=m;s(p)},Rt=(c,p,m)=>{const{bum:k,scope:x,job:y,subTree:T,um:E,m:C,a:w}=c;ms(C),ms(w),k&&En(k),x.stop(),y&&(y.flags|=8,_e(T,c,p,m)),E&&Fe(E,p),Fe(()=>{c.isUnmounted=!0},p)},ve=(c,p,m,k=!1,x=!1,y=0)=>{for(let T=y;T{if(c.shapeFlag&6)return bt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const p=D(c.anchor||c.el),m=p&&p[gr];return m?D(m):p};let B=!1;const ct=(c,p,m)=>{let k;c==null?p._vnode&&(_e(p._vnode,null,null,!0),k=p._vnode.component):F(p._vnode||null,c,p,null,null,null,m),p._vnode=c,B||(B=!0,as(k),ui(),B=!1)},Ie={p:F,um:_e,m:ae,r:Ct,mt:G,mc:Be,pc:K,pbc:Ne,n:bt,o:e};return{render:ct,hydrate:void 0,createApp:Fr(ct)}}function fl({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 Tt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ai(e,t,n=!1){const l=e.children,s=t.children;if(V(l)&&V(s))for(let o=0;o>1,e[n[a]]0&&(t[l]=n[o-1]),n[o]=l)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Mi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mi(t)}function ms(e){if(e)for(let t=0;te.__isSuspense;function ta(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ur(e)}const Q=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),dl=Symbol.for("v-stc"),ln=[];let Ve=null;function S(e=!1){ln.push(Ve=e?null:[])}function na(){ln.pop(),Ve=ln[ln.length-1]||null}let an=1;function bs(e,t=!1){an+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function Li(e){return e.dynamicChildren=an>0?Ve||jt:null,na(),an>0&&Ve&&Ve.push(e),e}function P(e,t,n,l,s,o){return Li(i(e,t,n,l,s,o,!0))}function la(e,t,n,l,s){return Li(_t(e,t,n,l,s,!0))}function Fi(e){return e?e.__v_isVNode===!0:!1}function Gt(e,t){return e.type===t.type&&e.key===t.key}const Bi=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Oe(e)||U(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function i(e,t=null,n=null,l=0,s=null,o=e===Q?0:1,r=!1,a=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&On(t),scopeId:fi,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:o,patchFlag:l,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ke};return a?($n(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ye(n)?8:16),an>0&&!r&&Ve&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Ve.push(f),f}const _t=sa;function sa(e,t=null,n=null,l=0,s=null,o=!1){if((!e||e===Or)&&(e=kt),Fi(e)){const a=Kt(e,t,!0);return n&&$n(a,n),an>0&&!o&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(_a(e)&&(e=e.__vccOpts),t){t=ia(t);let{class:a,style:f}=t;a&&!ye(a)&&(t.class=Kn(a)),oe(f)&&(Fl(f)&&!V(f)&&(f=Ee({},f)),t.style=Ol(f))}const r=ye(e)?1:$i(e)?128:_r(e)?64:oe(e)?4:U(e)?2:0;return i(e,t,n,l,s,r,o,!0)}function ia(e){return e?Fl(e)||Pi(e)?Ee({},e):e:null}function Kt(e,t,n=!1,l=!1){const{props:s,ref:o,patchFlag:r,children:a,transition:f}=e,v=t?ra(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&Bi(v),ref:t&&t.ref?n&&o?V(o)?o.concat(On(t)):[o,On(t)]:On(t):o,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!==Q?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&l&&jl(_,f.clone(_)),_}function oa(e=" ",t=0){return _t(Yn,null,e,t)}function J(e="",t=!1){return t?(S(),la(kt,null,e)):_t(kt,null,e)}function lt(e){return e==null||typeof e=="boolean"?_t(kt):V(e)?_t(Q,null,e.slice()):Fi(e)?pt(e):_t(Yn,null,String(e))}function pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function $n(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(l&65){const s=t.default;s&&(s._c&&(s._d=!1),$n(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Pi(t)?t._ctx=Ke:s===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(U(t)){if(l&65){$n(e,{default:t});return}t={default:t,_ctx:Ke},n=32}else t=String(t),l&64?(n=16,t=[oa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ra(...e){const t={};for(let n=0;n$e||Ke;let Ln,Cl;{const e=Wn(),t=(n,l)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(l),o=>{s.length>1?s.forEach(r=>r(o)):s[0](o)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Cl=t("__VUE_SSR_SETTERS__",n=>un=n)}const pn=e=>{const t=$e;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},ys=()=>{$e&&$e.scope.off(),Ln(null)};function ji(e){return e.vnode.shapeFlag&4}let un=!1;function da(e,t=!1,n=!1){t&&Cl(t);const{props:l,children:s}=e.vnode,o=ji(e);Kr(e,l,o,t),zr(e,s,n||t);const r=o?pa(e,t):void 0;return t&&Cl(!1),r}function pa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dr);const{setup:l}=n;if(l){rt();const s=e.setupContext=l.length>1?ga(e):null,o=pn(e),r=dn(l,e,0,[e.props,s]),a=Fs(r);if(at(),o(),(a||e.sp)&&!tn(e)&&hi(e),a){if(r.then(ys,ys),t)return r.then(f=>{ws(e,f)}).catch(f=>{Jn(f,e,0)});e.asyncDep=r}else ws(e,r)}else Vi(e)}function ws(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=ii(t)),Vi(e)}function Vi(e,t,n){const l=e.type;e.render||(e.render=l.render||it);{const s=pn(e);rt();try{Ir(e)}finally{at(),s()}}}const ha={get(e,t){return Te(e,"get",""),e[t]}};function ga(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ha),slots:e.slots,emit:e.emit,expose:t}}function Qn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ii(Xo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}})):e.proxy}function _a(e){return U(e)&&"__vccOpts"in e}const wt=(e,t)=>sr(e,t,un),va="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Sl;const xs=typeof window<"u"&&window.trustedTypes;if(xs)try{Sl=xs.createPolicy("vue",{createHTML:e=>e})}catch{}const Ni=Sl?e=>Sl.createHTML(e):e=>e,ma="http://www.w3.org/2000/svg",ba="http://www.w3.org/1998/Math/MathML",dt=typeof document<"u"?document:null,ks=dt&&dt.createElement("template"),ya={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const s=t==="svg"?dt.createElementNS(ma,e):t==="mathml"?dt.createElementNS(ba,e):n?dt.createElement(e,{is:n}):dt.createElement(e);return e==="select"&&l&&l.multiple!=null&&s.setAttribute("multiple",l.multiple),s},createText:e=>dt.createTextNode(e),createComment:e=>dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,s,o){const r=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ks.innerHTML=Ni(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=ks.content;if(l==="svg"||l==="mathml"){const f=a.firstChild;for(;f.firstChild;)a.appendChild(f.firstChild);a.removeChild(f)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wa=Symbol("_vtc");function xa(e,t,n){const l=e[wa];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cs=Symbol("_vod"),ka=Symbol("_vsh"),Ca=Symbol(""),Sa=/(?:^|;)\s*display\s*:/;function Pa(e,t,n){const l=e.style,s=ye(n);let o=!1;if(n&&!s){if(t)if(ye(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Yt(l,a,"")}else for(const r in t)n[r]==null&&Yt(l,r,"");for(const r in n){r==="display"&&(o=!0);const a=n[r];a!=null?Ta(e,r,!ye(t)&&t?t[r]:void 0,a)||Yt(l,r,a):Yt(l,r,"")}}else if(s){if(t!==n){const r=l[Ca];r&&(n+=";"+r),l.cssText=n,o=Sa.test(n)}}else t&&e.removeAttribute("style");Cs in e&&(e[Cs]=o?l.display:"",e[ka]&&(l.display="none"))}const Ss=/\s*!important$/;function Yt(e,t,n){if(V(n))n.forEach(l=>Yt(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Ea(e,t);Ss.test(n)?e.setProperty(Mt(l),n.replace(Ss,""),"important"):e[l]=n}}const Ps=["Webkit","Moz","ms"],pl={};function Ea(e,t){const n=pl[t];if(n)return n;let l=Je(t);if(l!=="filter"&&l in e)return pl[t]=l;l=Vs(l);for(let s=0;shl||(Ra.then(()=>hl=0),hl=Date.now());function La(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const s=n.value;if(V(s)){const o=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{o.call(l),l._stopped=!0};const r=s.slice(),a=[l];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fa=(e,t,n,l,s,o)=>{const r=s==="svg";t==="class"?xa(e,l,r):t==="style"?Pa(e,n,l):jn(t)?Vn(t)||Da(e,t,n,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ba(e,t,l,r))?(Os(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ts(e,t,l,r,o,t!=="value")):e._isVueCE&&(ja(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(l)))?Os(e,Je(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ts(e,t,l,r))};function Ba(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Is(t)&&U(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Is(t)&&ye(n)?!1:t in e}function ja(e,t){const n=e._def.props;if(!n)return!1;const l=Je(t);return Array.isArray(n)?n.some(s=>Je(s)===l):Object.keys(n).some(s=>Je(s)===l)}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>En(t,n):t};function Va(e){e.target.composing=!0}function As(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ht=Symbol("_assign");function Ms(e,t,n){return t&&(e=e.trim()),n&&(e=Hn(e)),e}const ie={created(e,{modifiers:{lazy:t,trim:n,number:l}},s){e[Ht]=Fn(s);const o=l||s.props&&s.props.type==="number";Dt(e,t?"change":"input",r=>{r.target.composing||e[Ht](Ms(e.value,n,o))}),(n||o)&&Dt(e,"change",()=>{e.value=Ms(e.value,n,o)}),t||(Dt(e,"compositionstart",Va),Dt(e,"compositionend",As),Dt(e,"change",As))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:s,number:o}},r){if(e[Ht]=Fn(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hn(e.value):e.value,f=t??"";if(a===f)return;const v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(l&&t===n||s&&e.value.trim()===f)||(e.value=f)}},Lt={deep:!0,created(e,{value:t,modifiers:{number:n}},l){const s=Nn(t);Dt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Hn(Bn(r)):Bn(r));e[Ht](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,ri(()=>{e._assigning=!1})}),e[Ht]=Fn(l)},mounted(e,{value:t}){Rs(e,t)},beforeUpdate(e,t,n){e[Ht]=Fn(n)},updated(e,{value:t}){e._assigning||Rs(e,t)}};function Rs(e,t){const n=e.multiple,l=V(t);if(!(n&&!l&&!Nn(t))){for(let s=0,o=e.options.length;sString(v)===String(a)):r.selected=Io(t,a)>-1}else r.selected=t.has(a);else if(fn(Bn(r),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bn(e){return"_value"in e?e._value:e.value}const Na=Ee({patchProp:Fa},ya);let $s;function Ua(){return $s||($s=Qr(Na))}const Ha=((...e)=>{const t=Ua().createApp(...e),{mount:n}=t;return t.mount=l=>{const s=Ka(l);if(!s)return;const o=t._component;!U(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,Wa(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function Wa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ka(e){return ye(e)?document.querySelector(e):e}const qa="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",A={uiBootstrap:"ui/bootstrap",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,nodeGenerate:e=>`nodes/${e}/generate`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeImages:e=>`nodes/${e}/images`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",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 Ja extends Error{constructor(n,l,s={}){super(l);nl(this,"code");nl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function ce(e,t){return Bt(e,{method:"GET",query:t})}async function ne(e,t){return Bt(e,{method:"POST",body:t})}async function Bt(e,t={}){const l=await(await fetch(Ga(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!l.ok)throw new Ja(l.error_code,l.message,l.details);return l.data}function Ga(e,t){const n=e.replace(/^\/+/,""),l=new URL(`${qa}/${n}`,window.location.origin);for(const[s,o]of Object.entries(t??{}))o!==void 0&&l.searchParams.set(s,String(o));return`${l.pathname}${l.search}`}const za={class:"web-shell"},Ya={class:"sidebar"},Qa={class:"brand"},Xa=["onClick"],Za={class:"workspace"},eu={class:"topbar"},tu={class:"actions"},nu=["disabled"],lu={key:0,class:"notice error"},su={key:1,class:"notice"},iu={key:0,class:"dashboard-grid"},ou={key:1,class:"list-view"},ru={class:"form-grid"},au={class:"wide-field"},uu=["disabled"],cu=["disabled"],fu={key:0},du={class:"inline-actions"},pu={class:"badge"},hu=["disabled","onClick"],gu={key:0,class:"empty"},_u={key:2,class:"split-view"},vu={class:"list-view"},mu={class:"form-grid"},bu=["disabled"],yu={class:"inline-actions"},wu={class:"badge"},xu=["disabled","onClick"],ku=["disabled","onClick"],Cu=["disabled","onClick"],Su=["disabled","onClick"],Pu={key:0,class:"empty"},Eu={key:0,class:"editor-panel"},Tu={class:"form-grid"},Ou=["disabled"],Du=["disabled","onClick"],Iu={class:"list-view"},Au={class:"form-grid"},Mu={class:"wide-field"},Ru=["disabled"],$u={class:"inline-actions"},Lu={class:"badge"},Fu=["disabled","onClick"],Bu={key:0,class:"empty"},ju={class:"inline-actions"},Vu={key:0,class:"badge"},Nu=["disabled","onClick"],Uu=["disabled","onClick"],Hu=["disabled","onClick"],Wu=["disabled","onClick"],Ku=["disabled","onClick"],qu={key:0,class:"empty"},Ju={key:0},Gu={class:"editor-panel"},zu={key:0,class:"empty"},Yu={key:1},Qu={key:3,class:"split-view"},Xu={class:"list-view"},Zu={key:0,class:"empty"},ec={class:"list-view"},tc={class:"inline-actions"},nc=["disabled"],lc={class:"form-grid"},sc={value:""},ic=["value"],oc=["disabled"],rc={class:"inline-actions"},ac={class:"badge"},uc=["disabled","onClick"],cc=["disabled","onClick"],fc=["disabled","onClick"],dc={key:0,class:"empty"},pc={key:0},hc={key:4,class:"list-view"},gc=["disabled"],_c={class:"form-grid"},vc={value:""},mc=["value"],bc=["disabled"],yc={class:"inline-actions"},wc=["disabled","onClick"],xc={key:0,class:"empty"},kc={key:0},Cc={class:"form-grid"},Sc=["disabled"],Pc={key:1},Ec={key:5,class:"list-view"},Tc={class:"inline-actions"},Oc=["disabled"],Dc=["disabled"],Ic={class:"form-grid"},Ac={value:""},Mc=["value"],Rc={value:""},$c=["value"],Lc={value:""},Fc=["value"],Bc=["disabled"],jc={class:"inline-actions"},Vc={class:"badge"},Nc=["onClick"],Uc=["onClick"],Hc=["disabled","onClick"],Wc={key:0,class:"empty"},Kc={key:0,class:"editor-panel"},qc={key:6,class:"split-view"},Jc={class:"list-view"},Gc=["disabled"],zc={class:"form-grid"},Yc=["disabled"],Qc={key:0},Xc={class:"list-view"},Zc={class:"inline-actions"},ef={class:"badge"},tf=["disabled","onClick"],nf=["disabled","onClick"],lf=["disabled","onClick"],sf={key:0,class:"empty"},of={key:7,class:"logs-view"},rf={class:"split-view"},af={class:"list-view"},uf={key:0,class:"empty"},cf={class:"list-view"},ff={class:"badge"},df={key:0,class:"empty"},pf={class:"split-view"},hf={class:"list-view"},gf={key:0,class:"empty"},_f={class:"list-view"},vf={class:"badge"},mf={key:0,class:"empty"},bf={class:"list-view"},yf={key:0,class:"empty"},wf={key:8,class:"settings-view"},xf={class:"toolbar"},kf=["disabled"],Cf=["disabled"],Sf=["disabled"],Pf=["disabled"],Ef=["disabled"],Tf=["disabled"],Of={class:"settings-sections"},Df={class:"editor-panel"},If={class:"split-view"},Af={class:"list-view"},Mf={class:"list-view"},Rf={class:"inspector"},$f=vr({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",confirm:"确认",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:"节点",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",auditLogs:"审计",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],l=N("dashboard"),s=N(null),o=N(null),r=N(null),a=N([]),f=N(null),v=N([]),_=N([]),b=N(""),D=N([]),M=N(null),X=N(null),F=N(null),ge=N(null),Z=N(null),W=N(null),ee=N([]),$=N(null),de=N([]),Le=N([]),De=N([]),Be=N(null),we=N({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ne=N(null),Qe=N(""),Xe=N(null),Ze=N(null),G=N({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),ut=N(null),pe=N({display_name:"",workflow_type:"single_image"}),te=N({branch_name:""}),K=N({model_route:"",prompt:"",negative_prompt:""}),Ce=N({status:"",profile_id:"",workflow_id:""}),xe=N({display_name:"",image_uri:"",tags:"",category_id:""}),ae=N({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),_e=N({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),Ct=N(null),je=N({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Rt=N(null),ve=N(""),bt=N(!0),B=N(""),ct=N(""),Ie=wt(()=>{var g,h;return((h=(g=r.value)==null?void 0:g.items[0])==null?void 0:h.profile_id)??""}),Xn=wt(()=>{var g,h;return((h=(g=r.value)==null?void 0:g.items[0])==null?void 0:h.name)??t.noProfile}),c=wt(()=>{var h;const g=(h=o.value)==null?void 0:h.queue;return g?g.pending+g.running+g.failed+g.dead_letter:0}),p=wt(()=>{var g;return((g=$.value)==null?void 0:g.items.filter(h=>h.recognition_status!=="confirmed").length)??0}),m=wt(()=>{var g;return(((g=$.value)==null?void 0:g.items)??[]).filter(h=>h.recognition_status==="confirmed")}),k=wt(()=>{var g;return((g=f.value)==null?void 0:g.nodes.find(h=>h.node_id===b.value))??null}),x=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],y=wt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[l.value]);vi(T);async function T(){var g,h;bt.value=!0,ct.value="";try{const[H,ue,Se,yt,mn,qt,bn,yn,wn,xn,kn]=await Promise.all([ce(A.uiBootstrap),ce(A.dashboardSummary),ce(A.profiles,{page:1,page_size:20}),ce(A.jobs,{page:1,page_size:20}),ce(A.settingsSchema),ce(A.settingsCurrent),ce(A.storageStatus),ce(A.materialCategories),ce(A.materials,{page:1,page_size:24}),ce(A.apiDiscoveryDialects),ce(A.apiDiscoveryCapabilities)]);s.value=H,o.value=ue,r.value=Se,X.value=yt,ge.value=mn,Z.value=qt,vn(qt.config),W.value=bn,ee.value=yn,$.value=wn,Le.value=xn,De.value=kn,await L((g=Se.items[0])==null?void 0:g.profile_id),await O((h=Se.items[0])==null?void 0:h.profile_id),await E()}catch(H){ct.value=H instanceof Error?H.message:t.loadFailed}finally{bt.value=!1}}async function E(){const[g,h,H,ue,Se]=await Promise.allSettled([ce(A.generationLogs,{limit:12}),ce(A.workflowLogs,{limit:12}),ce(A.errorLogs,{limit:12}),ce(A.integrationLogs,{limit:12}),ce(A.auditLogs,{limit:12})]);we.value={generation:C(g),workflows:C(h),errors:C(H),integrations:C(ue),audit:C(Se)}}function C(g){return g.status==="fulfilled"?g.value:[]}async function w(){X.value=await ce(A.jobs,{status:Ce.value.status||void 0,profile_id:Ce.value.profile_id||void 0,workflow_id:Ce.value.workflow_id||void 0,page:1,page_size:20})}async function L(g){if(!g){de.value=[];return}de.value=await ce(A.wardrobe(g))}async function O(g){var ue,Se;if(!g){a.value=[],f.value=null,v.value=[],_.value=[],b.value="",D.value=[];return}a.value=await ce(A.profileWorkflows(g));const h=(ue=f.value)==null?void 0:ue.workflow.workflow_id,H=a.value.some(yt=>yt.workflow_id===h)?h:(Se=a.value[0])==null?void 0:Se.workflow_id;H?await R(H):f.value=null}async function R(g){var Se;const h=await ce(A.workflow(g));f.value=h;const H=b.value,ue=h.nodes.some(yt=>yt.node_id===H)?H:h.workflow.current_node_id||((Se=h.nodes[0])==null?void 0:Se.node_id);ue?await j(ue):(b.value="",D.value=[]),await z(g)}async function j(g){b.value=g,D.value=await ce(A.nodeImages(g))}async function z(g){const[h,H]=await Promise.all([ce(A.workflowBranches(g)),ce(A.workflowHistory(g))]);v.value=h,_.value=H}async function q(){var h;const g=(h=f.value)==null?void 0:h.workflow.workflow_id;g&&await R(g)}async function I(g,h,H=!0){B.value=g,ct.value="";try{const ue=await h();ve.value=`${g}${t.complete}`,g===t.exportSettings&&(ve.value=`${t.exportDone}: ${!!ue.redacted}`),H&&await T()}catch(ue){ct.value=ue instanceof Error?ue.message:`${g}${t.failed}`}finally{B.value=""}}function me(g){return I(t.retry,()=>ne(A.jobRetry(g)))}function ke(g){return I(t.cancel,()=>ne(A.jobCancel(g)))}function Ue(g){return I(t.detail,async()=>(F.value=await ce(A.job(g)),F.value),!1)}function He(){G.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},ut.value=null}function St(){return I(t.quickDraft,async()=>(ut.value=await ne(A.quickProfileDraft,{questionnaire:{name:G.value.name,identity:G.value.identity,personality:Pt(G.value.personality),hair_color:G.value.hair_color,hairstyle:G.value.hairstyle,eye_color:G.value.eye_color,style:G.value.style,clothing_keywords:Pt(G.value.clothing_keywords)}}),ut.value),!1)}function hn(){var h;const g=(h=ut.value)==null?void 0:h.profile_preview;return I(t.create,async()=>{const H=await ne(A.profiles,{name:(g==null?void 0:g.name)||G.value.name,description:G.value.description,base_prompt:g==null?void 0:g.base_prompt,appearance_prompt:g==null?void 0:g.appearance_prompt,style_prompt:g==null?void 0:g.style_prompt,negative_prompt:g==null?void 0:g.negative_prompt});return He(),ve.value=t.profileCreated,H})}function Ae(g){return I(t.delete,async()=>{const h=await Bt(A.profile(g),{method:"DELETE"});return ve.value=t.profileDeleted,h})}function We(){const g=Ie.value;return g?I(t.create,async()=>{const h=await ne(A.profileWorkflows(g),{display_name:pe.value.display_name,workflow_type:pe.value.workflow_type});return pe.value.display_name="",f.value=h,ve.value=t.workflowCreated,h}):Promise.resolve()}function gn(g){return I(t.start,()=>ne(A.workflowStart(g)))}function _n(g){return I(t.cancel,()=>ne(A.workflowCancel(g)))}function Ui(g){return I(t.archive,()=>ne(A.workflowArchive(g)))}function Hi(){var h;const g=(h=f.value)==null?void 0:h.workflow;return!g||!te.value.branch_name?Promise.resolve():I(t.branches,async()=>{const H=await ne(A.workflowBranches(g.workflow_id),{branch_name:te.value.branch_name,base_branch_name:g.current_branch,base_node_id:b.value||g.current_node_id,copy_nodes:!0});return te.value.branch_name="",await q(),ve.value=t.branchCreated,H},!1)}function Wi(g){var H;const h=(H=f.value)==null?void 0:H.workflow.workflow_id;return h?I(t.switchBranch,async()=>{const ue=await ne(A.workflowSwitchBranch(h),{branch_name:g});return await q(),ue},!1):Promise.resolve()}function Ki(){const g=b.value;return g?I(t.generate,async()=>(M.value=await ne(A.nodeGenerate(g),{model_route:K.value.model_route||void 0,prompt:K.value.prompt||void 0,negative_prompt:K.value.negative_prompt||void 0}),await q(),ve.value=t.generationQueued,M.value),!1):Promise.resolve()}function qi(g){const h=b.value;return h?I(t.select,async()=>{const H=await ne(A.nodeSelectImage(h),{image_id:g});return await q(),H},!1):Promise.resolve()}function Ji(g){const h=b.value;return h?I(t.adopt,async()=>{var ue;const H=await ne(A.nodeAdoptImage(h),{image_id:g,title:(ue=k.value)==null?void 0:ue.title});return await q(),H},!1):Promise.resolve()}function Gi(g){return I(t.unselect,async()=>{const h=await ne(A.imageUnselect(g));return await q(),h},!1)}function zi(g){return I(t.archive,async()=>{const h=await ne(A.imageArchive(g));return await q(),ve.value=t.imageArchived,h},!1)}function Yi(g){return I(t.delete,async()=>{const h=await Bt(A.image(g),{method:"DELETE"});return await q(),ve.value=t.imageDeleted,h},!1)}function Qi(){return I(t.moveFailed,()=>ne(A.jobDeadLetterMoveFailed,{limit:20}))}function Xi(){return I(t.retryDead,()=>ne(A.jobDeadLetterRetry,{limit:20}))}function Zi(){var h;const g=((h=Le.value[0])==null?void 0:h.dialect)??"unknown";return I(t.safeProbe,()=>ne(A.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:g,capabilities:{supports:["text_to_image"]}}))}function eo(){return I(t.validatePlan,async()=>(Rt.value=await ne(A.apiDiscoveryValidateRenderPlan,{provider_id:je.value.provider_id,model_id:je.value.model_id,required_capabilities:Pt(je.value.required_capabilities)}),Rt.value),!1)}function Zn(g,h){return I(t.discovery,()=>ne(A.apiDiscoveryManualOverride,{provider_id:g.provider_id,model_id:g.model_id,dialect:g.dialect,status:h,capabilities:g.capabilities}))}function to(){const g=Ie.value;return g?I(t.matchWardrobe,async()=>(Be.value=await ne(A.wardrobeMatch(g),{tags:["daily"]}),Be.value),!1):Promise.resolve()}function no(){ae.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function lo(){const g=Ie.value;return g?I(t.importToWardrobe,async()=>{const h=await ne(A.wardrobeImportMaterial(g),{material_id:ae.value.material_id,wardrobe_category:ae.value.wardrobe_category,tags:Pt(ae.value.tags),season:ae.value.season||void 0,style:ae.value.style||void 0});return no(),ve.value=t.wardrobeImported,h}):Promise.resolve()}function so(g){const h=Ie.value;return h?I(t.delete,async()=>{const H=await Bt(A.wardrobeItem(h,g),{method:"DELETE"});return ve.value=t.wardrobeDeleted,H}):Promise.resolve()}function io(){const g=Ie.value;return g?I(t.dailyOutfit,async()=>(Ct.value=await ne(A.privateCompanionDailyOutfit,{profile_id:g,categories:Pt(_e.value.categories),mood:_e.value.mood,weather:_e.value.weather,keywords:Pt(_e.value.keywords),request_source:"astrbot_plugin_private_companion"}),ve.value=t.outfitGenerated,Ct.value),!1):Promise.resolve()}function oo(){return I(t.reload,async()=>{var h;const g=await ne(A.settingsReload);return Z.value={config_path:((h=Z.value)==null?void 0:h.config_path)??"***PATH***",config:g.config},vn(g.config),g},!1)}function ro(){return I(t.exportSettings,()=>ce(A.settingsExport),!1)}function vn(g=(h=>(h=Z.value)==null?void 0:h.config)()??{}){Qe.value=JSON.stringify(g,null,2),Xe.value=null,Ze.value=null}function el(){try{const g=JSON.parse(Qe.value);if(!g||Array.isArray(g)||typeof g!="object")throw new Error(t.settingsDraftInvalid);return g}catch(g){throw new Error(g instanceof Error?g.message:t.settingsDraftInvalid)}}function ao(){return I(t.validate,async()=>(Xe.value=await ne(A.settingsValidate,{config:el()}),Xe.value),!1)}function uo(){return I(t.diff,async()=>(Ze.value=await ne(A.settingsDiff,{config:el()}),Ze.value),!1)}function co(){return I(t.save,async()=>{var h;const g=await ne(A.settingsSave,{config:el()});return Z.value={config_path:((h=Z.value)==null?void 0:h.config_path)??"***PATH***",config:g.config},vn(g.config),ve.value=t.settingsSaved,g},!1)}function fo(){var h,H;const g=(H=(h=$.value)==null?void 0:h.items.find(ue=>{var Se;return(Se=ue.image_uri)==null?void 0:Se.startsWith("storage://")}))==null?void 0:H.image_uri;return g?I(t.signMaterial,async()=>(Ne.value=await ce(A.mediaSign,{uri:g}),Ne.value),!1):(ve.value=t.noSignableMaterial,Promise.resolve())}function po(){xe.value={display_name:"",image_uri:"",tags:"",category_id:""}}function ho(){return I(t.create,async()=>{const g=await ne(A.materials,{display_name:xe.value.display_name,image_uri:xe.value.image_uri||void 0,thumbnail_uri:xe.value.image_uri||void 0,category_id:xe.value.category_id||void 0,tags:Pt(xe.value.tags),recognition_status:xe.value.image_uri?"pending_recognition":"pending_upload"});return po(),ve.value=t.materialCreated,g})}function go(g){return I(t.recognize,()=>ne(A.materialRecognize(g)))}function _o(g){return I(t.confirm,()=>ne(A.materialConfirm(g.material_id),{display_name:g.display_name,prompt:g.prompt,negative_prompt:g.negative_prompt,tags:g.tags}))}function vo(g){return I(t.archive,async()=>{const h=await Bt(A.material(g),{method:"DELETE"});return ve.value=t.materialArchived,h})}function Pt(g){return g.split(",").map(h=>h.trim()).filter(Boolean)}function tl(g=0){return g<1024?`${g} B`:g<1024*1024?`${(g/1024).toFixed(1)} KB`:g<1024*1024*1024?`${(g/1024/1024).toFixed(1)} MB`:`${(g/1024/1024/1024).toFixed(1)} GB`}function Ul(g){var h,H;return((H=(h=W.value)==null?void 0:h.roots.find(ue=>ue.uri_prefix===g))==null?void 0:H.bytes)??0}return(g,h)=>{var H,ue,Se,yt,mn,qt,bn,yn,wn,xn,kn,Hl,Wl,Kl,ql,Jl,Gl,zl,Yl,Ql,Xl,Zl,es,ts,ns,ls;return S(),P("main",za,[i("aside",Ya,[i("div",Qa,[i("strong",null,u(((H=s.value)==null?void 0:H.display_name)??"ImageStudio"),1),i("span",null,u(((ue=s.value)==null?void 0:ue.dashboard_user)??"AstrBot"),1)]),i("nav",null,[(S(),P(Q,null,he(n,d=>i("button",{key:d.key,type:"button",class:Kn({active:l.value===d.key}),onClick:be=>l.value=d.key},u(d.label),11,Xa)),64))])]),i("section",Za,[i("header",eu,[i("div",null,[i("h1",null,u(y.value),1),i("p",null,u(((Se=o.value)==null?void 0:Se.plugin_status)??"loading")+" / "+u(ve.value||t.waiting),1)]),i("div",tu,[i("button",{type:"button",disabled:!!B.value,onClick:T},u(B.value||t.refresh),9,nu)])]),ct.value?(S(),P("section",lu,u(ct.value),1)):bt.value?(S(),P("section",su,u(t.loading),1)):(S(),P(Q,{key:2},[l.value==="dashboard"?(S(),P("section",iu,[i("article",null,[i("span",null,u(t.profiles),1),i("strong",null,u(((yt=o.value)==null?void 0:yt.active_profiles)??0),1)]),i("article",null,[i("span",null,u(t.jobs),1),i("strong",null,u(c.value),1)]),i("article",null,[i("span",null,u(t.materials),1),i("strong",null,u(((mn=$.value)==null?void 0:mn.total)??0),1)]),i("article",null,[i("span",null,u(t.storage),1),i("strong",null,u(tl(((qt=W.value)==null?void 0:qt.total_bytes)??((bn=o.value)==null?void 0:bn.storage.total_bytes))),1)])])):J("",!0),l.value==="profiles"?(S(),P("section",ou,[i("header",null,[i("h2",null,u(t.profileList),1),i("span",null,u(((yn=r.value)==null?void 0:yn.total)??0),1)]),i("div",ru,[i("label",null,[i("span",null,u(t.name),1),Y(i("input",{"onUpdate:modelValue":h[0]||(h[0]=d=>G.value.name=d),type:"text"},null,512),[[ie,G.value.name]])]),i("label",null,[i("span",null,u(t.identity),1),Y(i("input",{"onUpdate:modelValue":h[1]||(h[1]=d=>G.value.identity=d),type:"text"},null,512),[[ie,G.value.identity]])]),i("label",null,[i("span",null,u(t.personality),1),Y(i("input",{"onUpdate:modelValue":h[2]||(h[2]=d=>G.value.personality=d),type:"text",placeholder:"calm, brave"},null,512),[[ie,G.value.personality]])]),i("label",null,[i("span",null,u(t.hairColor),1),Y(i("input",{"onUpdate:modelValue":h[3]||(h[3]=d=>G.value.hair_color=d),type:"text"},null,512),[[ie,G.value.hair_color]])]),i("label",null,[i("span",null,u(t.hairstyle),1),Y(i("input",{"onUpdate:modelValue":h[4]||(h[4]=d=>G.value.hairstyle=d),type:"text"},null,512),[[ie,G.value.hairstyle]])]),i("label",null,[i("span",null,u(t.eyeColor),1),Y(i("input",{"onUpdate:modelValue":h[5]||(h[5]=d=>G.value.eye_color=d),type:"text"},null,512),[[ie,G.value.eye_color]])]),i("label",null,[i("span",null,u(t.stylePrompt),1),Y(i("input",{"onUpdate:modelValue":h[6]||(h[6]=d=>G.value.style=d),type:"text"},null,512),[[ie,G.value.style]])]),i("label",null,[i("span",null,u(t.tags),1),Y(i("input",{"onUpdate:modelValue":h[7]||(h[7]=d=>G.value.clothing_keywords=d),type:"text",placeholder:"white blouse, ribbon"},null,512),[[ie,G.value.clothing_keywords]])]),i("label",au,[i("span",null,u(t.description),1),Y(i("input",{"onUpdate:modelValue":h[8]||(h[8]=d=>G.value.description=d),type:"text"},null,512),[[ie,G.value.description]])]),i("button",{type:"button",disabled:!!B.value||!G.value.name,onClick:St},u(t.quickDraft),9,uu),i("button",{type:"button",disabled:!!B.value||!G.value.name,onClick:hn},u(t.create),9,cu)]),ut.value?(S(),P("pre",fu,u(JSON.stringify(ut.value,null,2)),1)):J("",!0),i("ul",null,[(S(!0),P(Q,null,he(((wn=r.value)==null?void 0:wn.items)??[],d=>(S(),P("li",{key:d.profile_id},[i("div",null,[i("strong",null,u(d.name),1),i("small",null,u(d.profile_id),1)]),i("div",du,[i("span",pu,u(d.status),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>Ae(d.profile_id)},u(t.delete),9,hu)])]))),128)),(xn=r.value)!=null&&xn.items.length?J("",!0):(S(),P("li",gu,u(t.emptyProfiles),1))])])):J("",!0),l.value==="workflows"?(S(),P("section",_u,[i("div",vu,[i("header",null,[i("h2",null,u(Xn.value),1),i("span",null,u(a.value.length),1)]),i("div",mu,[i("label",null,[i("span",null,u(t.name),1),Y(i("input",{"onUpdate:modelValue":h[9]||(h[9]=d=>pe.value.display_name=d),type:"text"},null,512),[[ie,pe.value.display_name]])]),i("label",null,[i("span",null,u(t.workflowType),1),Y(i("select",{"onUpdate:modelValue":h[10]||(h[10]=d=>pe.value.workflow_type=d)},[...h[36]||(h[36]=[i("option",{value:"single_image"},"single_image",-1),i("option",{value:"character_gradual"},"character_gradual",-1),i("option",{value:"character_fast"},"character_fast",-1),i("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[Lt,pe.value.workflow_type]])]),i("button",{type:"button",disabled:!!B.value||!Ie.value||!pe.value.display_name,onClick:We},u(t.create),9,bu)]),i("ul",null,[(S(!0),P(Q,null,he(a.value,d=>(S(),P("li",{key:d.workflow_id},[i("div",null,[i("strong",null,u(d.display_name),1),i("small",null,u(d.workflow_type)+" / "+u(d.workflow_id),1)]),i("div",yu,[i("span",wu,u(d.status),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>R(d.workflow_id)},u(t.nodes),9,xu),i("button",{type:"button",disabled:!!B.value,onClick:be=>gn(d.workflow_id)},u(t.start),9,ku),i("button",{type:"button",disabled:!!B.value,onClick:be=>_n(d.workflow_id)},u(t.cancel),9,Cu),i("button",{type:"button",disabled:!!B.value,onClick:be=>Ui(d.workflow_id)},u(t.archive),9,Su)])]))),128)),a.value.length?J("",!0):(S(),P("li",Pu,u(t.emptyWorkflows),1))]),f.value?(S(),P("section",Eu,[i("header",null,[i("h2",null,u(t.branches),1),i("span",null,u(v.value.length),1)]),i("div",Tu,[i("label",null,[i("span",null,u(t.branchName),1),Y(i("input",{"onUpdate:modelValue":h[11]||(h[11]=d=>te.value.branch_name=d),type:"text",placeholder:"alt_pose"},null,512),[[ie,te.value.branch_name]])]),i("button",{type:"button",disabled:!!B.value||!te.value.branch_name,onClick:Hi},u(t.create),9,Ou)]),i("ul",null,[(S(!0),P(Q,null,he(v.value,d=>(S(),P("li",{key:d.branch_id},[i("div",null,[i("strong",null,u(d.branch_name),1),i("small",null,u(d.base_branch_name??"main")+" / "+u(d.status),1)]),i("button",{type:"button",disabled:!!B.value,onClick:be=>Wi(d.branch_name)},u(t.switchBranch),9,Du)]))),128))])])):J("",!0)]),i("div",Iu,[i("header",null,[i("h2",null,u(t.nodes),1),i("span",null,u(((kn=f.value)==null?void 0:kn.workflow.current_branch)??"main"),1)]),i("div",Au,[i("label",null,[i("span",null,u(t.modelRoute),1),Y(i("input",{"onUpdate:modelValue":h[12]||(h[12]=d=>K.value.model_route=d),type:"text",placeholder:"image_low"},null,512),[[ie,K.value.model_route]])]),i("label",null,[i("span",null,u(t.prompt),1),Y(i("input",{"onUpdate:modelValue":h[13]||(h[13]=d=>K.value.prompt=d),type:"text"},null,512),[[ie,K.value.prompt]])]),i("label",Mu,[i("span",null,u(t.negativePrompt),1),Y(i("input",{"onUpdate:modelValue":h[14]||(h[14]=d=>K.value.negative_prompt=d),type:"text"},null,512),[[ie,K.value.negative_prompt]])]),i("button",{type:"button",disabled:!!B.value||!b.value,onClick:Ki},u(t.generate),9,Ru)]),i("ul",null,[(S(!0),P(Q,null,he(((Hl=f.value)==null?void 0:Hl.nodes)??[],d=>(S(),P("li",{key:d.node_id},[i("div",null,[i("strong",null,u(d.title),1),i("small",null,u(d.node_key)+" / "+u(d.node_id),1)]),i("div",$u,[i("span",null,u(d.branch_name),1),i("span",Lu,u(d.status),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>j(d.node_id)},u(t.images),9,Fu)])]))),128)),(Wl=f.value)!=null&&Wl.nodes.length?J("",!0):(S(),P("li",Bu,u(t.emptyWorkflows),1))]),i("ul",null,[(S(!0),P(Q,null,he(D.value,d=>(S(),P("li",{key:d.image_id},[i("div",null,[i("strong",null,u(d.image_id),1),i("small",null,u(d.thumbnail_uri??d.image_uri),1)]),i("div",ju,[d.is_selected?(S(),P("span",Vu,u(t.select),1)):J("",!0),i("button",{type:"button",disabled:!!B.value||d.is_selected||d.is_archived,onClick:be=>qi(d.image_id)},u(t.select),9,Nu),i("button",{type:"button",disabled:!!B.value||d.is_archived,onClick:be=>Ji(d.image_id)},u(t.adopt),9,Uu),i("button",{type:"button",disabled:!!B.value||!d.is_selected,onClick:be=>Gi(d.image_id)},u(t.unselect),9,Hu),i("button",{type:"button",disabled:!!B.value||d.is_archived,onClick:be=>zi(d.image_id)},u(t.archive),9,Wu),i("button",{type:"button",disabled:!!B.value,onClick:be=>Yi(d.image_id)},u(t.delete),9,Ku)])]))),128)),D.value.length?J("",!0):(S(),P("li",qu,u(t.emptyImages),1))]),M.value?(S(),P("pre",Ju,u(JSON.stringify(M.value,null,2)),1)):J("",!0),i("section",Gu,[i("header",null,[i("h2",null,u(t.history),1),i("span",null,u(_.value.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(_.value,d=>(S(),P("li",{key:d.history_id},[i("div",null,[i("strong",null,u(d.action),1),i("small",null,u(d.title??d.node_id??d.workflow_id),1)]),i("span",null,u(d.branch_name),1)]))),128)),_.value.length?J("",!0):(S(),P("li",zu,u(t.emptyHistory),1))])]),f.value?(S(),P("pre",Yu,u(JSON.stringify(f.value.workflow,null,2)),1)):J("",!0)])])):J("",!0),l.value==="materials"?(S(),P("section",Qu,[i("div",Xu,[i("header",null,[i("h2",null,u(t.materialCategories),1),i("span",null,u(ee.value.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(ee.value,d=>(S(),P("li",{key:d.category_id},[i("div",null,[i("strong",null,u(d.name),1),i("small",null,u(d.category_type),1)]),i("span",null,u(d.sort_order),1)]))),128)),ee.value.length?J("",!0):(S(),P("li",Zu,u(t.emptyCategories),1))])]),i("div",ec,[i("header",null,[i("h2",null,u(t.materialItems),1),i("div",tc,[i("span",null,u(p.value)+" "+u(t.pendingConfirm),1),i("button",{type:"button",disabled:!!B.value,onClick:fo},u(t.signFirstImage),9,nc)])]),i("div",lc,[i("label",null,[i("span",null,u(t.name),1),Y(i("input",{"onUpdate:modelValue":h[15]||(h[15]=d=>xe.value.display_name=d),type:"text"},null,512),[[ie,xe.value.display_name]])]),i("label",null,[i("span",null,u(t.imageUri),1),Y(i("input",{"onUpdate:modelValue":h[16]||(h[16]=d=>xe.value.image_uri=d),type:"text",placeholder:"storage://materials/example.png"},null,512),[[ie,xe.value.image_uri]])]),i("label",null,[i("span",null,u(t.category),1),Y(i("select",{"onUpdate:modelValue":h[17]||(h[17]=d=>xe.value.category_id=d)},[i("option",sc,u(t.allCategories),1),(S(!0),P(Q,null,he(ee.value,d=>(S(),P("option",{key:d.category_id,value:d.category_id},u(d.name),9,ic))),128))],512),[[Lt,xe.value.category_id]])]),i("label",null,[i("span",null,u(t.tags),1),Y(i("input",{"onUpdate:modelValue":h[18]||(h[18]=d=>xe.value.tags=d),type:"text",placeholder:"daily, top"},null,512),[[ie,xe.value.tags]])]),i("button",{type:"button",disabled:!!B.value||!xe.value.display_name,onClick:ho},u(t.create),9,oc)]),i("ul",null,[(S(!0),P(Q,null,he(((Kl=$.value)==null?void 0:Kl.items)??[],d=>(S(),P("li",{key:d.material_id},[i("div",null,[i("strong",null,u(d.display_name),1),i("small",null,u(d.image_uri??t.noImage),1)]),i("div",rc,[i("span",ac,u(d.recognition_status),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>go(d.material_id)},u(t.recognize),9,uc),i("button",{type:"button",disabled:!!B.value||d.recognition_status==="confirmed",onClick:be=>_o(d)},u(t.confirm),9,cc),i("button",{type:"button",disabled:!!B.value,onClick:be=>vo(d.material_id)},u(t.archive),9,fc)])]))),128)),(ql=$.value)!=null&&ql.items.length?J("",!0):(S(),P("li",dc,u(t.emptyMaterials),1))]),Ne.value?(S(),P("pre",pc,u(JSON.stringify(Ne.value,null,2)),1)):J("",!0)])])):J("",!0),l.value==="wardrobe"?(S(),P("section",hc,[i("header",null,[i("h2",null,u(Xn.value),1),i("button",{type:"button",disabled:!Ie.value||!!B.value,onClick:to},u(t.match),9,gc)]),i("div",_c,[i("label",null,[i("span",null,u(t.selectMaterial),1),Y(i("select",{"onUpdate:modelValue":h[19]||(h[19]=d=>ae.value.material_id=d)},[i("option",vc,u(t.selectMaterial),1),(S(!0),P(Q,null,he(m.value,d=>(S(),P("option",{key:d.material_id,value:d.material_id},u(d.display_name),9,mc))),128))],512),[[Lt,ae.value.material_id]])]),i("label",null,[i("span",null,u(t.wardrobeCategory),1),Y(i("input",{"onUpdate:modelValue":h[20]||(h[20]=d=>ae.value.wardrobe_category=d),type:"text"},null,512),[[ie,ae.value.wardrobe_category]])]),i("label",null,[i("span",null,u(t.tags),1),Y(i("input",{"onUpdate:modelValue":h[21]||(h[21]=d=>ae.value.tags=d),type:"text",placeholder:"daily, top"},null,512),[[ie,ae.value.tags]])]),i("label",null,[i("span",null,u(t.season),1),Y(i("input",{"onUpdate:modelValue":h[22]||(h[22]=d=>ae.value.season=d),type:"text"},null,512),[[ie,ae.value.season]])]),i("label",null,[i("span",null,u(t.style),1),Y(i("input",{"onUpdate:modelValue":h[23]||(h[23]=d=>ae.value.style=d),type:"text"},null,512),[[ie,ae.value.style]])]),i("button",{type:"button",disabled:!!B.value||!Ie.value||!ae.value.material_id||!ae.value.wardrobe_category,onClick:lo},u(t.importToWardrobe),9,bc)]),i("ul",null,[(S(!0),P(Q,null,he(de.value,d=>(S(),P("li",{key:d.wardrobe_item_id},[i("div",null,[i("strong",null,u(d.wardrobe_category),1),i("small",null,u(d.material_id)+" / "+u(d.tags.join(", ")||t.noTags),1)]),i("div",yc,[i("span",null,u(d.usage_count),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>so(d.wardrobe_item_id)},u(t.delete),9,wc)])]))),128)),de.value.length?J("",!0):(S(),P("li",xc,u(t.emptyWardrobe),1))]),Be.value?(S(),P("pre",kc,u(JSON.stringify(Be.value,null,2)),1)):J("",!0),i("div",Cc,[i("label",null,[i("span",null,u(t.categories),1),Y(i("input",{"onUpdate:modelValue":h[24]||(h[24]=d=>_e.value.categories=d),type:"text"},null,512),[[ie,_e.value.categories]])]),i("label",null,[i("span",null,u(t.mood),1),Y(i("input",{"onUpdate:modelValue":h[25]||(h[25]=d=>_e.value.mood=d),type:"text"},null,512),[[ie,_e.value.mood]])]),i("label",null,[i("span",null,u(t.weather),1),Y(i("input",{"onUpdate:modelValue":h[26]||(h[26]=d=>_e.value.weather=d),type:"text"},null,512),[[ie,_e.value.weather]])]),i("label",null,[i("span",null,u(t.keywords),1),Y(i("input",{"onUpdate:modelValue":h[27]||(h[27]=d=>_e.value.keywords=d),type:"text"},null,512),[[ie,_e.value.keywords]])]),i("button",{type:"button",disabled:!!B.value||!Ie.value,onClick:io},u(t.dailyOutfit),9,Sc)]),Ct.value?(S(),P("pre",Pc,u(JSON.stringify(Ct.value,null,2)),1)):J("",!0)])):J("",!0),l.value==="jobs"?(S(),P("section",Ec,[i("header",null,[i("h2",null,u(t.jobs),1),i("div",Tc,[i("button",{type:"button",disabled:!!B.value,onClick:Qi},u(t.moveFailed),9,Oc),i("button",{type:"button",disabled:!!B.value,onClick:Xi},u(t.retryDead),9,Dc)])]),i("div",Ic,[i("label",null,[h[37]||(h[37]=i("span",null,"Status",-1)),Y(i("select",{"onUpdate:modelValue":h[28]||(h[28]=d=>Ce.value.status=d)},[i("option",Ac,u(t.allStatuses),1),(S(),P(Q,null,he(x,d=>i("option",{key:d,value:d},u(d),9,Mc)),64))],512),[[Lt,Ce.value.status]])]),i("label",null,[i("span",null,u(t.profiles),1),Y(i("select",{"onUpdate:modelValue":h[29]||(h[29]=d=>Ce.value.profile_id=d)},[i("option",Rc,u(t.allProfiles),1),(S(!0),P(Q,null,he(((Jl=r.value)==null?void 0:Jl.items)??[],d=>(S(),P("option",{key:d.profile_id,value:d.profile_id},u(d.name),9,$c))),128))],512),[[Lt,Ce.value.profile_id]])]),i("label",null,[i("span",null,u(t.workflows),1),Y(i("select",{"onUpdate:modelValue":h[30]||(h[30]=d=>Ce.value.workflow_id=d)},[i("option",Lc,u(t.allWorkflows),1),(S(!0),P(Q,null,he(a.value,d=>(S(),P("option",{key:d.workflow_id,value:d.workflow_id},u(d.display_name),9,Fc))),128))],512),[[Lt,Ce.value.workflow_id]])]),i("button",{type:"button",disabled:!!B.value,onClick:w},u(t.filter),9,Bc)]),i("ul",null,[(S(!0),P(Q,null,he(((Gl=X.value)==null?void 0:Gl.items)??[],d=>(S(),P("li",{key:d.task_id},[i("div",null,[i("strong",null,u(d.task_id),1),i("small",null,u(d.task_type)+" / "+u(d.progress)+"%",1)]),i("div",jc,[i("span",Vc,u(d.status),1),["failed","dead_letter","cancelled"].includes(d.status)?(S(),P("button",{key:0,type:"button",onClick:be=>me(d.task_id)},u(t.retry),9,Nc)):J("",!0),["completed","succeeded","cancelled"].includes(d.status)?J("",!0):(S(),P("button",{key:1,type:"button",onClick:be=>ke(d.task_id)},u(t.cancel),9,Uc)),i("button",{type:"button",disabled:!!B.value,onClick:be=>Ue(d.task_id)},u(t.detail),9,Hc)])]))),128)),(zl=X.value)!=null&&zl.items.length?J("",!0):(S(),P("li",Wc,u(t.emptyJobs),1))]),F.value?(S(),P("section",Kc,[i("header",null,[i("h2",null,u(t.jobDetail),1),i("span",null,u(F.value.status),1)]),i("pre",null,u(JSON.stringify(F.value,null,2)),1)])):J("",!0)])):J("",!0),l.value==="discovery"?(S(),P("section",qc,[i("div",Jc,[i("header",null,[i("h2",null,u(t.dialects),1),i("button",{type:"button",disabled:!!B.value,onClick:Zi},u(t.safeProbe),9,Gc)]),i("ul",null,[(S(!0),P(Q,null,he(Le.value,d=>(S(),P("li",{key:d.dialect},[i("div",null,[i("strong",null,u(d.label),1),i("small",null,u(d.capabilities.join(", ")||t.unconfirmed),1)]),i("span",null,u(d.dialect),1)]))),128))]),i("div",zc,[i("label",null,[i("span",null,u(t.provider),1),Y(i("input",{"onUpdate:modelValue":h[31]||(h[31]=d=>je.value.provider_id=d),type:"text",placeholder:"local-preview"},null,512),[[ie,je.value.provider_id]])]),i("label",null,[i("span",null,u(t.model),1),Y(i("input",{"onUpdate:modelValue":h[32]||(h[32]=d=>je.value.model_id=d),type:"text",placeholder:"metadata-only"},null,512),[[ie,je.value.model_id]])]),i("label",null,[i("span",null,u(t.requiredCapabilities),1),Y(i("input",{"onUpdate:modelValue":h[33]||(h[33]=d=>je.value.required_capabilities=d),type:"text",placeholder:"text_to_image"},null,512),[[ie,je.value.required_capabilities]])]),i("button",{type:"button",disabled:!!B.value||!je.value.provider_id||!je.value.model_id,onClick:eo},u(t.validatePlan),9,Yc)]),Rt.value?(S(),P("pre",Qc,u(JSON.stringify(Rt.value,null,2)),1)):J("",!0)]),i("div",Xc,[i("header",null,[i("h2",null,u(t.capabilityProfiles),1),i("span",null,u(De.value.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(De.value,d=>(S(),P("li",{key:d.capability_profile_id},[i("div",null,[i("strong",null,u(d.provider_id)+" / "+u(d.model_id),1),i("small",null,u(d.dialect),1)]),i("div",Zc,[i("span",ef,u(d.status),1),i("button",{type:"button",disabled:!!B.value,onClick:be=>Zn(d,"confirmed_supported")},u(t.support),9,tf),i("button",{type:"button",disabled:!!B.value,onClick:be=>Zn(d,"confirmed_unsupported")},u(t.unsupported),9,nf),i("button",{type:"button",disabled:!!B.value,onClick:be=>Zn(d,"unconfirmed")},u(t.unconfirmed),9,lf)])]))),128)),De.value.length?J("",!0):(S(),P("li",sf,u(t.emptyCapabilities),1))])])])):J("",!0),l.value==="logs"?(S(),P("section",of,[i("div",rf,[i("div",af,[i("header",null,[i("h2",null,u(t.generationLogs),1),i("span",null,u(we.value.generation.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(we.value.generation,d=>(S(),P("li",{key:d.task_id},[i("div",null,[i("strong",null,u(d.task_id),1),i("small",null,u(d.status)+" / "+u(d.progress)+"%",1)]),i("span",null,u(d.created_at),1)]))),128)),we.value.generation.length?J("",!0):(S(),P("li",uf,u(t.emptyGenerationLogs),1))])]),i("div",cf,[i("header",null,[i("h2",null,u(t.errorLogs),1),i("span",null,u(we.value.errors.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(we.value.errors,d=>(S(),P("li",{key:`${d.source}-${d.id}`},[i("div",null,[i("strong",null,u(d.source),1),i("small",null,u(d.error_message??t.noErrorDetail),1)]),i("span",ff,u(d.status),1)]))),128)),we.value.errors.length?J("",!0):(S(),P("li",df,u(t.emptyErrors),1))])])]),i("div",pf,[i("div",hf,[i("header",null,[i("h2",null,u(t.workflowLogs),1),i("span",null,u(we.value.workflows.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(we.value.workflows,d=>(S(),P("li",{key:d.history_id},[i("div",null,[i("strong",null,u(d.action),1),i("small",null,u(d.title??d.workflow_id),1)]),i("span",null,u(d.branch_name??"main"),1)]))),128)),we.value.workflows.length?J("",!0):(S(),P("li",gf,u(t.emptyWorkflowLogs),1))])]),i("div",_f,[i("header",null,[i("h2",null,u(t.integrationLogs),1),i("span",null,u(we.value.integrations.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(we.value.integrations,d=>(S(),P("li",{key:d.integration_log_id},[i("div",null,[i("strong",null,u(d.integration_name),1),i("small",null,u(d.action),1)]),i("span",vf,u(d.status),1)]))),128)),we.value.integrations.length?J("",!0):(S(),P("li",mf,u(t.emptyIntegrationLogs),1))])])]),i("div",bf,[i("header",null,[i("h2",null,u(t.auditLogs),1),i("span",null,u(we.value.audit.length),1)]),i("ul",null,[(S(!0),P(Q,null,he(we.value.audit,d=>(S(),P("li",{key:d.audit_id},[i("div",null,[i("strong",null,u(d.action),1),i("small",null,u(d.actor_type)+" / "+u(d.target_type)+" / "+u(d.target_id),1)]),i("span",null,u(d.created_at),1)]))),128)),we.value.audit.length?J("",!0):(S(),P("li",yf,u(t.emptyAuditLogs),1))])])])):J("",!0),l.value==="settings"?(S(),P("section",wf,[i("div",xf,[i("button",{type:"button",disabled:!!B.value,onClick:oo},u(t.reload),9,kf),i("button",{type:"button",disabled:!!B.value,onClick:h[34]||(h[34]=d=>vn())},u(t.reset),9,Cf),i("button",{type:"button",disabled:!!B.value,onClick:ao},u(t.validate),9,Sf),i("button",{type:"button",disabled:!!B.value,onClick:uo},u(t.diff),9,Pf),i("button",{type:"button",disabled:!!B.value,onClick:co},u(t.save),9,Ef),i("button",{type:"button",disabled:!!B.value,onClick:ro},u(t.exportRedacted),9,Tf)]),i("div",Of,[(S(!0),P(Q,null,he(((Yl=ge.value)==null?void 0:Yl.sections)??[],d=>(S(),P("article",{key:d.key},[i("h2",null,u(d.title),1),i("span",null,u(d.fields.length),1)]))),128))]),i("section",Df,[i("header",null,[i("h2",null,u(t.settingsEditor),1),i("span",null,u(((Ql=Z.value)==null?void 0:Ql.config_path)??"***PATH***"),1)]),Y(i("textarea",{"onUpdate:modelValue":h[35]||(h[35]=d=>Qe.value=d),spellcheck:"false"},null,512),[[ie,Qe.value]])]),i("div",If,[i("div",Af,[i("header",null,[i("h2",null,u(t.validationResult),1),i("span",null,u(((Xl=Xe.value)==null?void 0:Xl.valid)??"-"),1)]),i("pre",null,u(JSON.stringify(Xe.value??{},null,2)),1)]),i("div",Mf,[i("header",null,[i("h2",null,u(t.diffResult),1),i("span",null,u(((Zl=Ze.value)==null?void 0:Zl.changes.length)??0),1)]),i("pre",null,u(JSON.stringify(Ze.value??{},null,2)),1)])])])):J("",!0)],64))]),i("aside",Rf,[i("h2",null,u(t.running),1),i("dl",null,[i("div",null,[h[38]||(h[38]=i("dt",null,"Pending",-1)),i("dd",null,u(((es=o.value)==null?void 0:es.queue.pending)??0),1)]),i("div",null,[h[39]||(h[39]=i("dt",null,"Running",-1)),i("dd",null,u(((ts=o.value)==null?void 0:ts.queue.running)??0),1)]),i("div",null,[h[40]||(h[40]=i("dt",null,"Failed",-1)),i("dd",null,u(((ns=o.value)==null?void 0:ns.queue.failed)??0),1)]),i("div",null,[h[41]||(h[41]=i("dt",null,"Dead",-1)),i("dd",null,u(((ls=o.value)==null?void 0:ls.queue.dead_letter)??0),1)])]),i("h2",null,u(t.storage),1),i("dl",null,[i("div",null,[h[42]||(h[42]=i("dt",null,"Images",-1)),i("dd",null,u(tl(Ul("storage://images/"))),1)]),i("div",null,[h[43]||(h[43]=i("dt",null,"Materials",-1)),i("dd",null,u(tl(Ul("storage://materials/"))),1)])])])])}}}),Lf=(e,t)=>{const n=e.__vccOpts||e;for(const[l,s]of t)n[l]=s;return n},Ff=Lf($f,[["__scopeId","data-v-8be9e5d2"]]);Ha(Ff).mount("#app"); diff --git a/web/index.html b/web/index.html index b9d2af5..bb3772d 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +