diff --git a/frontend/shared/api/endpoints.ts b/frontend/shared/api/endpoints.ts index 12951a5..ddc9365 100644 --- a/frontend/shared/api/endpoints.ts +++ b/frontend/shared/api/endpoints.ts @@ -49,6 +49,7 @@ export const endpoints = { settingsSnapshot: (snapshotId: string) => `settings/snapshots/${snapshotId}`, settingsRollback: "settings/rollback", storageStatus: "storage/status", + storageMigrate: "storage/migrate", mediaSign: "media/sign", materialCategories: "material-categories", materialCategory: (categoryId: string) => `material-categories/${categoryId}`, diff --git a/frontend/shared/types/storage.ts b/frontend/shared/types/storage.ts index 2fa0c1f..1fb7cfc 100644 --- a/frontend/shared/types/storage.ts +++ b/frontend/shared/types/storage.ts @@ -9,6 +9,17 @@ export interface StorageStatus { total_bytes: number } +export interface StorageMigrationPlan { + dry_run: boolean + status: string + source_uri: string + target_uri: string + files: number + bytes: number + will_overwrite: boolean + execution_enabled: boolean +} + export interface MediaSignResult { uri: string token: string diff --git a/frontend/standalone-web/src/App.vue b/frontend/standalone-web/src/App.vue index 3e92cbd..b945233 100644 --- a/frontend/standalone-web/src/App.vue +++ b/frontend/standalone-web/src/App.vue @@ -24,7 +24,7 @@ import type { SettingsSnapshot, ValidateSettingsResult, } from "../../shared/types/settings" -import type { MediaSignResult, StorageStatus } from "../../shared/types/storage" +import type { MediaSignResult, StorageMigrationPlan, StorageStatus } from "../../shared/types/storage" import type { WardrobeItem, WardrobeMatchResult } from "../../shared/types/wardrobe" import type { ProfileWorkflow, @@ -230,6 +230,11 @@ const text = { validationResult: "\u6821\u9a8c\u7ed3\u679c", diffResult: "\u53d8\u66f4\u5bf9\u6bd4", storage: "\u5b58\u50a8", + storageMigrate: "\u8fc1\u79fb\u9884\u68c0", + sourceUri: "\u6e90 URI", + targetUri: "\u76ee\u6807 URI", + fileCount: "\u6587\u4ef6\u6570", + dryRun: "DryRun", running: "\u8fd0\u884c", } as const @@ -273,6 +278,7 @@ const logs = ref({ generation: [], workflows: [], errors: [], integra const integrationEventLogs = ref([]) const eventStream = ref(null) const signedMedia = ref(null) +const storageMigrationPlan = ref(null) const settingsDraft = ref("") const settingsImportDraft = ref("") const settingsSnapshots = ref([]) @@ -381,6 +387,10 @@ const materialUploadDraft = ref({ image_uri: "", category_id: "", }) +const storageMigrationDraft = ref({ + source_uri: "storage://images/sample.bin", + target_uri: "storage://archives/sample.bin", +}) const categoryDraft = ref({ category_id: "", name: "", @@ -1607,6 +1617,21 @@ function formatBytes(value = 0) { function storageRootBytes(uriPrefix: string) { return storage.value?.roots.find((root) => root.uri_prefix === uriPrefix)?.bytes ?? 0 } + +function planStorageMigration() { + return runOperation( + text.storageMigrate, + async () => { + storageMigrationPlan.value = await postJson(endpoints.storageMigrate, { + source_uri: storageMigrationDraft.value.source_uri, + target_uri: storageMigrationDraft.value.target_uri, + dry_run: true, + }) + return storageMigrationPlan.value + }, + false, + ) +} @@ -2973,6 +3030,16 @@ article strong { padding: 16px; } +.inspector-form { + display: grid; + gap: 10px; + margin: 12px 0; +} + +.inspector-form button { + padding: 0 12px; +} + .editor-panel header { display: flex; justify-content: space-between; diff --git a/pages/imagestudio/assets/index-DjwdLJJW.js b/pages/imagestudio/assets/index-mEivAbcm.js similarity index 90% rename from pages/imagestudio/assets/index-DjwdLJJW.js rename to pages/imagestudio/assets/index-mEivAbcm.js index 010d72e..746f59d 100644 --- a/pages/imagestudio/assets/index-DjwdLJJW.js +++ b/pages/imagestudio/assets/index-mEivAbcm.js @@ -14,4 +14,4 @@ var Wr=Object.defineProperty;var qr=(e,t,s)=>t in e?Wr(e,t,{enumerable:!0,config * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ls;const En=typeof window<"u"&&window.trustedTypes;if(En)try{Ls=En.createPolicy("vue",{createHTML:e=>e})}catch{}const Kr=Ls?e=>Ls.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Go="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,An=je&&je.createElement("template"),zo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?je.createElementNS(Jo,e):t==="mathml"?je.createElementNS(Go,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.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{An.innerHTML=Kr(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=An.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]}},Yo=Symbol("_vtc");function Xo(e,t,s){const n=e[Yo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const On=Symbol("_vod"),Qo=Symbol("_vsh"),Zo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=X(s);let i=!1;if(s&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&St(n,l,"")}else for(const o in t)s[o]==null&&St(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!X(t)&&t?t[o]:void 0,l)||St(n,o,l):St(n,o,"")}}else if(r){if(t!==s){const o=n[Zo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");On in e&&(e[On]=i?n.display:"",e[Qo]&&(n.display="none"))}const Pn=/\s*!important$/;function St(e,t,s){if(R(s))s.forEach(n=>St(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);Pn.test(s)?e.setProperty(nt(n),s.replace(Pn,""),"important"):e[n]=s}}const In=["Webkit","Moz","ms"],xs={};function sl(e,t){const s=xs[t];if(s)return s;let n=_e(t);if(n!=="filter"&&n in e)return xs[t]=n;n=Kn(n);for(let r=0;rSs||(ul.then(()=>Ss=0),Ss=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(R(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):es(t)?ts(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))?($n(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!X(n)))?$n(e,_e(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Rn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dn(t)&&$(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 Dn(t)&&X(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=_e(t);return Array.isArray(s)?s.some(r=>_e(r)===n):Object.keys(s).some(r=>_e(r)===n)}const ml=ne({patchProp:hl},zo);let Ln;function _l(){return Ln||(Ln=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.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 X(e)?document.querySelector(e):e}const wl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",Cs={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class xl extends Error{constructor(s,n,r={}){super(n);us(this,"code");us(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function Ts(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 xl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${wl}/${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"},Al={class:"actions"},Ol=["data-state"],Pl=["href"],Il={key:0,class:"notice"},Ml={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"},Ll={key:3,class:"activity"},jl={key:4,class:"quick-links"},Hl=["href"],Nl=Wi({__name:"App",setup(e){const t=bt(null),s=bt(null),n=bt([]),r=bt(!0),i=bt(""),o={loadFailed:"加载失败",loading:"加载中",refresh:"刷新",workbench:"工作台",profiles:"角色",queue:"队列",running:"运行中",failed:"失败",storage:"存储",recentImages:"最近图片",recentJobs:"任务",emptyImages:"暂无图片",emptyJobs:"暂无任务",permissions:"权限",features:"功能",quickLinks:"快捷入口",openJobs:"队列",openLogs:"日志",openSettings:"设置",openMaterials:"素材",enabled:"已开启",disabled:"未开启"},l=qt(()=>{var C;return`${((C=t.value)==null?void 0:C.api_base)??""}/web`}),f=qt(()=>{const C=n.value.map(N).filter(F=>!!F);return C.length?C:T()}),d=qt(()=>{var F;const C=(F=s.value)==null?void 0:F.queue;return C?C.pending+C.running+C.failed+C.dead_letter:0});br(a);async function a(){r.value=!0,i.value="";try{const[C,F]=await Promise.all([Ts(Cs.uiBootstrap),Ts(Cs.dashboardSummary)]);t.value=C,s.value=F;try{n.value=await Ts(Cs.uiActions)}catch{n.value=[]}}catch(C){i.value=C instanceof Error?C.message:o.loadFailed}finally{r.value=!1}}function p(C=0){return C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(1)} KB`:C<1024*1024*1024?`${(C/1024/1024).toFixed(1)} MB`:`${(C/1024/1024/1024).toFixed(1)} GB`}function S(C){return`${l.value}?view=${encodeURIComponent(C)}`}function T(){return[{label:o.openJobs,href:S("jobs")},{label:o.openLogs,href:S("logs")},{label:o.openSettings,href:S("settings")},{label:o.openMaterials,href:S("materials")}]}function N(C){if(!t.value)return null;if(C.action_type==="open_workbench")return{label:I(C),href:String(C.payload.url||l.value)};const F=C.payload.view;return typeof F=="string"?{label:I(C),href:S(F)}:null}function I(C){return{open_workbench:o.workbench,quick_profile:o.profiles,open_logs:o.openLogs,open_settings:o.openSettings}[C.action_id]??C.label}return(C,F)=>{var D,k,O,Y,ae,de,me,Je,we,ke,Ge,ze,rt,ht;return Z(),ee("main",Tl,[P("header",El,[P("div",null,[P("h1",null,L(((D=t.value)==null?void 0:D.display_name)??"ImageStudio"),1),P("p",null,L(((k=t.value)==null?void 0:k.dashboard_user)??"AstrBot"),1)]),P("div",Al,[P("span",{class:"status","data-state":((O=s.value)==null?void 0:O.plugin_status)??"loading"},L(((Y=s.value)==null?void 0:Y.plugin_status)??"loading"),9,Ol),P("button",{type:"button",onClick:a},L(o.refresh),1),t.value?(Z(),ee("a",{key:0,class:"primary",href:l.value,target:"_blank",rel:"noreferrer"},L(o.workbench),9,Pl)):wt("",!0)])]),i.value?(Z(),ee("section",Il,L(i.value),1)):r.value?(Z(),ee("section",Ml,L(o.loading),1)):(Z(),ee("section",Rl,[P("article",null,[P("span",null,L(o.profiles),1),P("strong",null,L(((ae=s.value)==null?void 0:ae.active_profiles)??0),1)]),P("article",null,[P("span",null,L(o.queue),1),P("strong",null,L(d.value),1)]),P("article",null,[P("span",null,L(o.running),1),P("strong",null,L(((de=s.value)==null?void 0:de.queue.running)??0),1)]),P("article",null,[P("span",null,L(o.failed),1),P("strong",null,L(((me=s.value)==null?void 0:me.queue.failed)??0),1)]),P("article",null,[P("span",null,L(o.storage),1),P("strong",null,L(p((Je=s.value)==null?void 0:Je.storage.total_bytes)),1)])])),P("section",$l,[P("div",null,[P("h2",null,L(o.recentImages),1),P("ul",null,[(Z(!0),ee(ue,null,yt(((we=s.value)==null?void 0:we.recent_images)??[],H=>(Z(),ee("li",{key:String(H.image_id)},[P("span",null,L(H.image_id),1),P("small",null,L(H.created_at),1)]))),128)),(Ge=(ke=s.value)==null?void 0:ke.recent_images)!=null&&Ge.length?wt("",!0):(Z(),ee("li",Fl,L(o.emptyImages),1))])]),P("div",null,[P("h2",null,L(o.recentJobs),1),P("ul",null,[(Z(!0),ee(ue,null,yt(((ze=s.value)==null?void 0:ze.recent_jobs)??[],H=>(Z(),ee("li",{key:String(H.task_id)},[P("span",null,L(H.task_id),1),P("small",null,L(H.status),1)]))),128)),(ht=(rt=s.value)==null?void 0:rt.recent_jobs)!=null&&ht.length?wt("",!0):(Z(),ee("li",Dl,L(o.emptyJobs),1))])])]),t.value?(Z(),ee("section",Ll,[P("div",null,[P("h2",null,L(o.permissions),1),P("ul",null,[(Z(!0),ee(ue,null,yt(t.value.permissions,(H,K)=>(Z(),ee("li",{key:K},[P("span",null,L(K),1),P("small",null,L(H?o.enabled:o.disabled),1)]))),128))])]),P("div",null,[P("h2",null,L(o.features),1),P("ul",null,[(Z(!0),ee(ue,null,yt(t.value.feature_flags,(H,K)=>(Z(),ee("li",{key:K},[P("span",null,L(K),1),P("small",null,L(H?o.enabled:o.disabled),1)]))),128))])])])):wt("",!0),t.value?(Z(),ee("section",jl,[P("h2",null,L(o.quickLinks),1),P("div",null,[(Z(!0),ee(ue,null,yt(f.value,H=>(Z(),ee("a",{key:H.href,href:H.href,target:"_blank",rel:"noreferrer"},L(H.label),9,Hl))),128))])])):wt("",!0)])}}}),Bl=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Ul=Bl(Nl,[["__scopeId","data-v-b2aa7072"]]);bl(Ul).mount("#app"); +**/let Ls;const En=typeof window<"u"&&window.trustedTypes;if(En)try{Ls=En.createPolicy("vue",{createHTML:e=>e})}catch{}const Kr=Ls?e=>Ls.createHTML(e):e=>e,Jo="http://www.w3.org/2000/svg",Go="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,An=je&&je.createElement("template"),zo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?je.createElementNS(Jo,e):t==="mathml"?je.createElementNS(Go,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.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{An.innerHTML=Kr(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=An.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]}},Yo=Symbol("_vtc");function Xo(e,t,s){const n=e[Yo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const On=Symbol("_vod"),Qo=Symbol("_vsh"),Zo=Symbol(""),el=/(?:^|;)\s*display\s*:/;function tl(e,t,s){const n=e.style,r=X(s);let i=!1;if(s&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&St(n,l,"")}else for(const o in t)s[o]==null&&St(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?nl(e,o,!X(t)&&t?t[o]:void 0,l)||St(n,o,l):St(n,o,"")}}else if(r){if(t!==s){const o=n[Zo];o&&(s+=";"+o),n.cssText=s,i=el.test(s)}}else t&&e.removeAttribute("style");On in e&&(e[On]=i?n.display:"",e[Qo]&&(n.display="none"))}const Pn=/\s*!important$/;function St(e,t,s){if(R(s))s.forEach(n=>St(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=sl(e,t);Pn.test(s)?e.setProperty(nt(n),s.replace(Pn,""),"important"):e[n]=s}}const In=["Webkit","Moz","ms"],xs={};function sl(e,t){const s=xs[t];if(s)return s;let n=_e(t);if(n!=="filter"&&n in e)return xs[t]=n;n=Kn(n);for(let r=0;rSs||(ul.then(()=>Ss=0),Ss=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(R(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):es(t)?ts(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))?($n(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rn(e,t,n,o,i,t!=="value")):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!X(n)))?$n(e,_e(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Rn(e,t,n,o))};function pl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dn(t)&&$(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 Dn(t)&&X(s)?!1:t in e}function gl(e,t){const s=e._def.props;if(!s)return!1;const n=_e(t);return Array.isArray(s)?s.some(r=>_e(r)===n):Object.keys(s).some(r=>_e(r)===n)}const ml=ne({patchProp:hl},zo);let Ln;function _l(){return Ln||(Ln=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.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 X(e)?document.querySelector(e):e}const wl="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",Cs={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",storageMigrate:"storage/migrate",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class xl extends Error{constructor(s,n,r={}){super(n);us(this,"code");us(this,"details");this.name="ApiClientError",this.code=s,this.details=r}}async function Ts(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 xl(n.error_code,n.message,n.details);return n.data}function Cl(e,t){const s=e.replace(/^\/+/,""),n=new URL(`${wl}/${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"},Al={class:"actions"},Ol=["data-state"],Pl=["href"],Il={key:0,class:"notice"},Ml={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"},Ll={key:3,class:"activity"},jl={key:4,class:"quick-links"},Hl=["href"],Nl=Wi({__name:"App",setup(e){const t=bt(null),s=bt(null),n=bt([]),r=bt(!0),i=bt(""),o={loadFailed:"加载失败",loading:"加载中",refresh:"刷新",workbench:"工作台",profiles:"角色",queue:"队列",running:"运行中",failed:"失败",storage:"存储",recentImages:"最近图片",recentJobs:"任务",emptyImages:"暂无图片",emptyJobs:"暂无任务",permissions:"权限",features:"功能",quickLinks:"快捷入口",openJobs:"队列",openLogs:"日志",openSettings:"设置",openMaterials:"素材",enabled:"已开启",disabled:"未开启"},l=qt(()=>{var C;return`${((C=t.value)==null?void 0:C.api_base)??""}/web`}),f=qt(()=>{const C=n.value.map(N).filter(F=>!!F);return C.length?C:T()}),d=qt(()=>{var F;const C=(F=s.value)==null?void 0:F.queue;return C?C.pending+C.running+C.failed+C.dead_letter:0});br(a);async function a(){r.value=!0,i.value="";try{const[C,F]=await Promise.all([Ts(Cs.uiBootstrap),Ts(Cs.dashboardSummary)]);t.value=C,s.value=F;try{n.value=await Ts(Cs.uiActions)}catch{n.value=[]}}catch(C){i.value=C instanceof Error?C.message:o.loadFailed}finally{r.value=!1}}function p(C=0){return C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(1)} KB`:C<1024*1024*1024?`${(C/1024/1024).toFixed(1)} MB`:`${(C/1024/1024/1024).toFixed(1)} GB`}function S(C){return`${l.value}?view=${encodeURIComponent(C)}`}function T(){return[{label:o.openJobs,href:S("jobs")},{label:o.openLogs,href:S("logs")},{label:o.openSettings,href:S("settings")},{label:o.openMaterials,href:S("materials")}]}function N(C){if(!t.value)return null;if(C.action_type==="open_workbench")return{label:I(C),href:String(C.payload.url||l.value)};const F=C.payload.view;return typeof F=="string"?{label:I(C),href:S(F)}:null}function I(C){return{open_workbench:o.workbench,quick_profile:o.profiles,open_logs:o.openLogs,open_settings:o.openSettings}[C.action_id]??C.label}return(C,F)=>{var D,k,O,Y,ae,de,me,Je,we,ke,Ge,ze,rt,ht;return Z(),ee("main",Tl,[P("header",El,[P("div",null,[P("h1",null,L(((D=t.value)==null?void 0:D.display_name)??"ImageStudio"),1),P("p",null,L(((k=t.value)==null?void 0:k.dashboard_user)??"AstrBot"),1)]),P("div",Al,[P("span",{class:"status","data-state":((O=s.value)==null?void 0:O.plugin_status)??"loading"},L(((Y=s.value)==null?void 0:Y.plugin_status)??"loading"),9,Ol),P("button",{type:"button",onClick:a},L(o.refresh),1),t.value?(Z(),ee("a",{key:0,class:"primary",href:l.value,target:"_blank",rel:"noreferrer"},L(o.workbench),9,Pl)):wt("",!0)])]),i.value?(Z(),ee("section",Il,L(i.value),1)):r.value?(Z(),ee("section",Ml,L(o.loading),1)):(Z(),ee("section",Rl,[P("article",null,[P("span",null,L(o.profiles),1),P("strong",null,L(((ae=s.value)==null?void 0:ae.active_profiles)??0),1)]),P("article",null,[P("span",null,L(o.queue),1),P("strong",null,L(d.value),1)]),P("article",null,[P("span",null,L(o.running),1),P("strong",null,L(((de=s.value)==null?void 0:de.queue.running)??0),1)]),P("article",null,[P("span",null,L(o.failed),1),P("strong",null,L(((me=s.value)==null?void 0:me.queue.failed)??0),1)]),P("article",null,[P("span",null,L(o.storage),1),P("strong",null,L(p((Je=s.value)==null?void 0:Je.storage.total_bytes)),1)])])),P("section",$l,[P("div",null,[P("h2",null,L(o.recentImages),1),P("ul",null,[(Z(!0),ee(ue,null,yt(((we=s.value)==null?void 0:we.recent_images)??[],H=>(Z(),ee("li",{key:String(H.image_id)},[P("span",null,L(H.image_id),1),P("small",null,L(H.created_at),1)]))),128)),(Ge=(ke=s.value)==null?void 0:ke.recent_images)!=null&&Ge.length?wt("",!0):(Z(),ee("li",Fl,L(o.emptyImages),1))])]),P("div",null,[P("h2",null,L(o.recentJobs),1),P("ul",null,[(Z(!0),ee(ue,null,yt(((ze=s.value)==null?void 0:ze.recent_jobs)??[],H=>(Z(),ee("li",{key:String(H.task_id)},[P("span",null,L(H.task_id),1),P("small",null,L(H.status),1)]))),128)),(ht=(rt=s.value)==null?void 0:rt.recent_jobs)!=null&&ht.length?wt("",!0):(Z(),ee("li",Dl,L(o.emptyJobs),1))])])]),t.value?(Z(),ee("section",Ll,[P("div",null,[P("h2",null,L(o.permissions),1),P("ul",null,[(Z(!0),ee(ue,null,yt(t.value.permissions,(H,K)=>(Z(),ee("li",{key:K},[P("span",null,L(K),1),P("small",null,L(H?o.enabled:o.disabled),1)]))),128))])]),P("div",null,[P("h2",null,L(o.features),1),P("ul",null,[(Z(!0),ee(ue,null,yt(t.value.feature_flags,(H,K)=>(Z(),ee("li",{key:K},[P("span",null,L(K),1),P("small",null,L(H?o.enabled:o.disabled),1)]))),128))])])])):wt("",!0),t.value?(Z(),ee("section",jl,[P("h2",null,L(o.quickLinks),1),P("div",null,[(Z(!0),ee(ue,null,yt(f.value,H=>(Z(),ee("a",{key:H.href,href:H.href,target:"_blank",rel:"noreferrer"},L(H.label),9,Hl))),128))])])):wt("",!0)])}}}),Bl=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Ul=Bl(Nl,[["__scopeId","data-v-b2aa7072"]]);bl(Ul).mount("#app"); diff --git a/pages/imagestudio/index.html b/pages/imagestudio/index.html index bab3c73..812142d 100644 --- a/pages/imagestudio/index.html +++ b/pages/imagestudio/index.html @@ -1,3 +1,3 @@ - +
diff --git a/web/assets/index-1P8ns5-A.js b/web/assets/index-1P8ns5-A.js new file mode 100644 index 0000000..d49aa36 --- /dev/null +++ b/web/assets/index-1P8ns5-A.js @@ -0,0 +1,17 @@ +var xr=Object.defineProperty;var Cr=(e,t,l)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var cn=(e,t,l)=>Cr(e,typeof t!="symbol"?t+"":t,l);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=l(s);fetch(s.href,i)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Rn(e){const t=Object.create(null);for(const l of e.split(","))t[l]=1;return l=>l in t}const ge={},Kt=[],pt=()=>{},ts=()=>!1,Kl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ql=e=>e.startsWith("onUpdate:"),Pe=Object.assign,$n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},Sr=Object.prototype.hasOwnProperty,ue=(e,t)=>Sr.call(e,t),q=Array.isArray,qt=e=>_l(e)==="[object Map]",Jl=e=>_l(e)==="[object Set]",xo=e=>_l(e)==="[object Date]",J=e=>typeof e=="function",be=e=>typeof e=="string",vt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ls=e=>(pe(e)||J(e))&&J(e.then)&&J(e.catch),ns=Object.prototype.toString,_l=e=>ns.call(e),Pr=e=>_l(e).slice(8,-1),os=e=>_l(e)==="[object Object]",Vn=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ol=Rn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gl=e=>{const t=Object.create(null);return(l=>t[l]||(t[l]=e(l)))},Dr=/-\w/g,lt=Gl(e=>e.replace(Dr,t=>t.slice(1).toUpperCase())),Er=/\B([A-Z])/g,Ft=Gl(e=>e.replace(Er,"-$1").toLowerCase()),ss=Gl(e=>e.charAt(0).toUpperCase()+e.slice(1)),fn=Gl(e=>e?`on${ss(e)}`:""),ft=(e,t)=>!Object.is(e,t),Ul=(e,...t)=>{for(let l=0;l{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:l})},zl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Co;const Yl=()=>Co||(Co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bn(e){if(q(e)){const t={};for(let l=0;l{if(l){const o=l.split(Ir);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ql(e){let t="";if(be(e))t=e;else if(q(e))for(let l=0;lhl(l,t))}const as=e=>!!(e&&e.__v_isRef===!0),a=e=>be(e)?e:e==null?"":q(e)||pe(e)&&(e.toString===ns||!J(e.toString))?as(e)?a(e.value):JSON.stringify(e,us,2):String(e),us=(e,t)=>as(t)?us(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((l,[o,s],i)=>(l[pn(o,i)+" =>"]=s,l),{})}:Jl(t)?{[`Set(${t.size})`]:[...t.values()].map(l=>pn(l))}:vt(t)?pn(t):pe(t)&&!q(t)&&!os(t)?String(t):t,pn=(e,t="")=>{var l;return vt(e)?`Symbol(${(l=e.description)!=null?l:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Se;class Vr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,l;if(this.scopes)for(t=0,l=this.scopes.length;t0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let t=Se;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let l,o;for(l=0,o=this.effects.length;l0)return;if(il){let t=il;for(il=void 0;t;){const l=t.next;t.next=void 0,t.flags&=-9,t=l}}let e;for(;sl;){let t=sl;for(sl=void 0;t;){const l=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=l}}if(e)throw e}function ps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vs(e){let t,l=e.depsTail,o=l;for(;o;){const s=o.prevDep;o.version===-1?(o===l&&(l=s),Nn(o),Lr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=l}function Cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cl)||(e.globalVersion=cl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cn(e))))return;e.flags|=2;const t=e.dep,l=he,o=nt;he=e,nt=!0;try{ps(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{he=l,nt=o,vs(e),e.flags&=-3}}function Nn(e,t=!1){const{dep:l,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),l.subs===e&&(l.subs=o,!o&&l.computed)){l.computed.flags&=-5;for(let i=l.computed.deps;i;i=i.nextDep)Nn(i,!0)}!t&&!--l.sc&&l.map&&l.map.delete(l.key)}function Lr(e){const{prevDep:t,nextDep:l}=e;t&&(t.nextDep=l,e.prevDep=void 0),l&&(l.prevDep=t,e.nextDep=void 0)}let nt=!0;const _s=[];function gt(){_s.push(nt),nt=!1}function _t(){const e=_s.pop();nt=e===void 0?!0:e}function So(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const l=he;he=void 0;try{t()}finally{he=l}}}let cl=0;class Fr{constructor(t,l){this.sub=t,this.dep=l,this.version=l.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!he||!nt||he===this.computed)return;let l=this.activeLink;if(l===void 0||l.sub!==he)l=this.activeLink=new Fr(he,this),he.deps?(l.prevDep=he.depsTail,he.depsTail.nextDep=l,he.depsTail=l):he.deps=he.depsTail=l,hs(l);else if(l.version===-1&&(l.version=this.version,l.nextDep)){const o=l.nextDep;o.prevDep=l.prevDep,l.prevDep&&(l.prevDep.nextDep=o),l.prevDep=he.depsTail,l.nextDep=void 0,he.depsTail.nextDep=l,he.depsTail=l,he.deps===l&&(he.deps=o)}return l}trigger(t){this.version++,cl++,this.notify(t)}notify(t){Ln();try{for(let l=this.subs;l;l=l.prevSub)l.sub.notify()&&l.sub.dep.notify()}finally{Fn()}}}function hs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)hs(o)}const l=e.dep.subs;l!==e&&(e.prevSub=l,l&&(l.nextSub=e)),e.dep.subs=e}}const Sn=new WeakMap,Bt=Symbol(""),Pn=Symbol(""),fl=Symbol("");function Ee(e,t,l){if(nt&&he){let o=Sn.get(e);o||Sn.set(e,o=new Map);let s=o.get(l);s||(o.set(l,s=new jn),s.map=o,s.key=l),s.track()}}function xt(e,t,l,o,s,i){const d=Sn.get(e);if(!d){cl++;return}const f=v=>{v&&v.trigger()};if(Ln(),t==="clear")d.forEach(f);else{const v=q(e),h=v&&Vn(l);if(v&&l==="length"){const _=Number(o);d.forEach((w,M)=>{(M==="length"||M===fl||!vt(M)&&M>=_)&&f(w)})}else switch((l!==void 0||d.has(void 0))&&f(d.get(l)),h&&f(d.get(fl)),t){case"add":v?h&&f(d.get("length")):(f(d.get(Bt)),qt(e)&&f(d.get(Pn)));break;case"delete":v||(f(d.get(Bt)),qt(e)&&f(d.get(Pn)));break;case"set":qt(e)&&f(d.get(Bt));break}}Fn()}function Wt(e){const t=ae(e);return t===e?t:(Ee(t,"iterate",fl),Qe(e)?t:t.map(ot))}function Xl(e){return Ee(e=ae(e),"iterate",fl),e}function dt(e,t){return Pt(e)?Yt(Lt(e)?ot(t):t):ot(t)}const Nr={__proto__:null,[Symbol.iterator](){return gn(this,Symbol.iterator,e=>dt(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>q(t)?Wt(t):t))},entries(){return gn(this,"entries",e=>(e[1]=dt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,l=>l.map(o=>dt(this,o)),arguments)},find(e,t){return yt(this,"find",e,t,l=>dt(this,l),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,l=>dt(this,l),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return _n(this,"includes",e)},indexOf(...e){return _n(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return _n(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return el(this,"pop")},push(...e){return el(this,"push",e)},reduce(e,...t){return Po(this,"reduce",e,t)},reduceRight(e,...t){return Po(this,"reduceRight",e,t)},shift(){return el(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return el(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return el(this,"unshift",e)},values(){return gn(this,"values",e=>dt(this,e))}};function gn(e,t,l){const o=Xl(e),s=o[t]();return o!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=l(i.value)),i}),s}const jr=Array.prototype;function yt(e,t,l,o,s,i){const d=Xl(e),f=d!==e&&!Qe(e),v=d[t];if(v!==jr[t]){const w=v.apply(e,i);return f?ot(w):w}let h=l;d!==e&&(f?h=function(w,M){return l.call(this,dt(e,w),M,e)}:l.length>2&&(h=function(w,M){return l.call(this,w,M,e)}));const _=v.call(d,h,o);return f&&s?s(_):_}function Po(e,t,l,o){const s=Xl(e),i=s!==e&&!Qe(e);let d=l,f=!1;s!==e&&(i?(f=o.length===0,d=function(h,_,w){return f&&(f=!1,h=dt(e,h)),l.call(this,h,dt(e,_),w,e)}):l.length>3&&(d=function(h,_,w){return l.call(this,h,_,w,e)}));const v=s[t](d,...o);return f?dt(e,v):v}function _n(e,t,l){const o=ae(e);Ee(o,"iterate",fl);const s=o[t](...l);return(s===-1||s===!1)&&qn(l[0])?(l[0]=ae(l[0]),o[t](...l)):s}function el(e,t,l=[]){gt(),Ln();const o=ae(e)[t].apply(e,l);return Fn(),_t(),o}const Wr=Rn("__proto__,__v_isRef,__isVue"),ms=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function Hr(e){vt(e)||(e=String(e));const t=ae(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class ys{constructor(t=!1,l=!1){this._isReadonly=t,this._isShallow=l}get(t,l,o){if(l==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(l==="__v_isReactive")return!s;if(l==="__v_isReadonly")return s;if(l==="__v_isShallow")return i;if(l==="__v_raw")return o===(s?i?ea:xs:i?ks:ws).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=q(t);if(!s){let v;if(d&&(v=Nr[l]))return v;if(l==="hasOwnProperty")return Hr}const f=Reflect.get(t,l,Te(t)?t:o);if((vt(l)?ms.has(l):Wr(l))||(s||Ee(t,"get",l),i))return f;if(Te(f)){const v=d&&Vn(l)?f:f.value;return s&&pe(v)?En(v):v}return pe(f)?s?En(f):Hn(f):f}}class bs extends ys{constructor(t=!1){super(!1,t)}set(t,l,o,s){let i=t[l];const d=q(t)&&Vn(l);if(!this._isShallow){const h=Pt(i);if(!Qe(o)&&!Pt(o)&&(i=ae(i),o=ae(o)),!d&&Te(i)&&!Te(o))return h||(i.value=o),!0}const f=d?Number(l)e,Il=e=>Reflect.getPrototypeOf(e);function zr(e,t,l){return function(...o){const s=this.__v_raw,i=ae(s),d=qt(i),f=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,h=s[e](...o),_=l?Dn:t?Yt:ot;return!t&&Ee(i,"iterate",v?Pn:Bt),Pe(Object.create(h),{next(){const{value:w,done:M}=h.next();return M?{value:w,done:M}:{value:f?[_(w[0]),_(w[1])]:_(w),done:M}}})}}function Ol(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yr(e,t){const l={get(s){const i=this.__v_raw,d=ae(i),f=ae(s);e||(ft(s,f)&&Ee(d,"get",s),Ee(d,"get",f));const{has:v}=Il(d),h=t?Dn:e?Yt:ot;if(v.call(d,s))return h(i.get(s));if(v.call(d,f))return h(i.get(f));i!==d&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ee(ae(s),"iterate",Bt),s.size},has(s){const i=this.__v_raw,d=ae(i),f=ae(s);return e||(ft(s,f)&&Ee(d,"has",s),Ee(d,"has",f)),s===f?i.has(s):i.has(s)||i.has(f)},forEach(s,i){const d=this,f=d.__v_raw,v=ae(f),h=t?Dn:e?Yt:ot;return!e&&Ee(v,"iterate",Bt),f.forEach((_,w)=>s.call(i,h(_),h(w),d))}};return Pe(l,e?{add:Ol("add"),set:Ol("set"),delete:Ol("delete"),clear:Ol("clear")}:{add(s){const i=ae(this),d=Il(i),f=ae(s),v=!t&&!Qe(s)&&!Pt(s)?f:s;return d.has.call(i,v)||ft(s,v)&&d.has.call(i,s)||ft(f,v)&&d.has.call(i,f)||(i.add(v),xt(i,"add",v,v)),this},set(s,i){!t&&!Qe(i)&&!Pt(i)&&(i=ae(i));const d=ae(this),{has:f,get:v}=Il(d);let h=f.call(d,s);h||(s=ae(s),h=f.call(d,s));const _=v.call(d,s);return d.set(s,i),h?ft(i,_)&&xt(d,"set",s,i):xt(d,"add",s,i),this},delete(s){const i=ae(this),{has:d,get:f}=Il(i);let v=d.call(i,s);v||(s=ae(s),v=d.call(i,s)),f&&f.call(i,s);const h=i.delete(s);return v&&xt(i,"delete",s,void 0),h},clear(){const s=ae(this),i=s.size!==0,d=s.clear();return i&&xt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{l[s]=zr(s,e,t)}),l}function Wn(e,t){const l=Yr(e,t);return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ue(l,s)&&s in o?l:o,s,i)}const Qr={get:Wn(!1,!1)},Xr={get:Wn(!1,!0)},Zr={get:Wn(!0,!1)};const ws=new WeakMap,ks=new WeakMap,xs=new WeakMap,ea=new WeakMap;function ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hn(e){return Pt(e)?e:Kn(e,!1,qr,Qr,ws)}function la(e){return Kn(e,!1,Gr,Xr,ks)}function En(e){return Kn(e,!0,Jr,Zr,xs)}function Kn(e,t,l,o,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const d=ta(Pr(e));if(d===0)return e;const f=new Proxy(e,d===2?o:l);return s.set(e,f),f}function Lt(e){return Pt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function qn(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function na(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&is(e,"__v_skip",!0),e}const ot=e=>pe(e)?Hn(e):e,Yt=e=>pe(e)?En(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function V(e){return oa(e,!1)}function oa(e,t){return Te(e)?e:new sa(e,t)}class sa{constructor(t,l){this.dep=new jn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=l?t:ae(t),this._value=l?t:ot(t),this.__v_isShallow=l}get value(){return this.dep.track(),this._value}set value(t){const l=this._rawValue,o=this.__v_isShallow||Qe(t)||Pt(t);t=o?t:ae(t),ft(t,l)&&(this._rawValue=t,this._value=o?t:ot(t),this.dep.trigger())}}function ia(e){return Te(e)?e.value:e}const ra={get:(e,t,l)=>t==="__v_raw"?e:ia(Reflect.get(e,t,l)),set:(e,t,l,o)=>{const s=e[t];return Te(s)&&!Te(l)?(s.value=l,!0):Reflect.set(e,t,l,o)}};function Cs(e){return Lt(e)?e:new Proxy(e,ra)}class aa{constructor(t,l,o){this.fn=t,this.setter=l,this._value=void 0,this.dep=new jn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!l,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return fs(this,!0),!0}get value(){const t=this.dep.track();return gs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ua(e,t,l=!1){let o,s;return J(e)?o=e:(o=e.get,s=e.set),new aa(o,s,l)}const Al={},$l=new WeakMap;let $t;function da(e,t=!1,l=$t){if(l){let o=$l.get(l);o||$l.set(l,o=[]),o.push(e)}}function ca(e,t,l=ge){const{immediate:o,deep:s,once:i,scheduler:d,augmentJob:f,call:v}=l,h=j=>s?j:Qe(j)||s===!1||s===0?Ct(j,1):Ct(j);let _,w,M,$,te=!1,H=!1;if(Te(e)?(w=()=>e.value,te=Qe(e)):Lt(e)?(w=()=>h(e),te=!0):q(e)?(H=!0,te=e.some(j=>Lt(j)||Qe(j)),w=()=>e.map(j=>{if(Te(j))return j.value;if(Lt(j))return h(j);if(J(j))return v?v(j,2):j()})):J(e)?t?w=v?()=>v(e,2):e:w=()=>{if(M){gt();try{M()}finally{_t()}}const j=$t;$t=_;try{return v?v(e,3,[$]):e($)}finally{$t=j}}:w=pt,t&&s){const j=w,_e=s===!0?1/0:s;w=()=>Ct(j(),_e)}const me=Br(),re=()=>{_.stop(),me&&me.active&&$n(me.effects,_)};if(i&&t){const j=t;t=(..._e)=>{const Ce=j(..._e);return re(),Ce}}let ee=H?new Array(e.length).fill(Al):Al;const X=j=>{if(!(!(_.flags&1)||!_.dirty&&!j))if(t){const _e=_.run();if(j||s||te||(H?_e.some((Ce,Ie)=>ft(Ce,ee[Ie])):ft(_e,ee))){M&&M();const Ce=$t;$t=_;try{const Ie=[_e,ee===Al?void 0:H&&ee[0]===Al?[]:ee,$];ee=_e,v?v(t,3,Ie):t(...Ie)}finally{$t=Ce}}}else _.run()};return f&&f(X),_=new ds(w),_.scheduler=d?()=>d(X,!1):X,$=j=>da(j,!1,_),M=_.onStop=()=>{const j=$l.get(_);if(j){if(v)v(j,4);else for(const _e of j)_e();$l.delete(_)}},t?o?X(!0):ee=_.run():d?d(X.bind(null,!0),!0):_.run(),re.pause=_.pause.bind(_),re.resume=_.resume.bind(_),re.stop=re,re}function Ct(e,t=1/0,l){if(t<=0||!pe(e)||e.__v_skip||(l=l||new Map,(l.get(e)||0)>=t))return e;if(l.set(e,t),t--,Te(e))Ct(e.value,t,l);else if(q(e))for(let o=0;o{Ct(o,t,l)});else if(os(e)){for(const o in e)Ct(e[o],t,l);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ct(e[o],t,l)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ml(e,t,l,o){try{return o?e(...o):e()}catch(s){Zl(s,t,l)}}function st(e,t,l,o){if(J(e)){const s=ml(e,t,l,o);return s&&ls(s)&&s.catch(i=>{Zl(i,t,l)}),s}if(q(e)){const s=[];for(let i=0;i>>1,s=Re[o],i=pl(s);i=pl(l)?Re.push(e):Re.splice(pa(t),0,e),e.flags|=1,Ds()}}function Ds(){Vl||(Vl=Ss.then(Ts))}function va(e){q(e)?Jt.push(...e):Ot&&e.id===-1?Ot.splice(Ht+1,0,e):e.flags&1||(Jt.push(e),e.flags|=1),Ds()}function Do(e,t,l=at+1){for(;lpl(l)-pl(o));if(Jt.length=0,Ot){Ot.push(...t);return}for(Ot=t,Ht=0;Hte.id==null?e.flags&2?-1:1/0:e.id;function Ts(e){try{for(at=0;at{o._d&&Bo(-1);const i=Bl(t);let d;try{d=e(...s)}finally{Bl(i),o._d&&Bo(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function O(e,t){if(Ye===null)return e;const l=nn(Ye),o=e.dirs||(e.dirs=[]);for(let s=0;s1)return l&&J(t)?t.call(o&&o.proxy):t}}const ha=Symbol.for("v-scx"),ma=()=>Ml(ha);function hn(e,t,l){return Os(e,t,l)}function Os(e,t,l=ge){const{immediate:o,deep:s,flush:i,once:d}=l,f=Pe({},l),v=t&&o||!t&&i!=="post";let h;if(gl){if(i==="sync"){const $=ma();h=$.__watcherHandles||($.__watcherHandles=[])}else if(!v){const $=()=>{};return $.stop=pt,$.resume=pt,$.pause=pt,$}}const _=$e;f.call=($,te,H)=>st($,_,te,H);let w=!1;i==="post"?f.scheduler=$=>{Le($,_&&_.suspense)}:i!=="sync"&&(w=!0,f.scheduler=($,te)=>{te?$():Jn($)}),f.augmentJob=$=>{t&&($.flags|=4),w&&($.flags|=2,_&&($.id=_.uid,$.i=_))};const M=ca(e,t,f);return gl&&(h?h.push(M):v&&M()),M}function ya(e,t,l){const o=this.proxy,s=be(e)?e.includes(".")?As(o,e):()=>o[e]:e.bind(o,o);let i;J(t)?i=t:(i=t.handler,l=t);const d=yl(this),f=Os(s,i.bind(o),l);return d(),f}function As(e,t){const l=t.split(".");return()=>{let o=e;for(let s=0;se.__isTeleport,mn=Symbol("_leaveCb");function Gn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ka(e,t){return J(e)?Pe({name:e.name},t,{setup:e}):e}function Us(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Eo(e,t){let l;return!!((l=Object.getOwnPropertyDescriptor(e,t))&&!l.configurable)}const Ll=new WeakMap;function rl(e,t,l,o,s=!1){if(q(e)){e.forEach((H,me)=>rl(H,t&&(q(t)?t[me]:t),l,o,s));return}if(al(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&rl(e,t,l,o.component.subTree);return}const i=o.shapeFlag&4?nn(o.component):o.el,d=s?null:i,{i:f,r:v}=e,h=t&&t.r,_=f.refs===ge?f.refs={}:f.refs,w=f.setupState,M=ae(w),$=w===ge?ts:H=>Eo(_,H)?!1:ue(M,H),te=(H,me)=>!(me&&Eo(_,me));if(h!=null&&h!==v){if(To(t),be(h))_[h]=null,$(h)&&(w[h]=null);else if(Te(h)){const H=t;te(h,H.k)&&(h.value=null),H.k&&(_[H.k]=null)}}if(J(v)){gt();try{ml(v,f,12,[d,_])}finally{_t()}}else{const H=be(v),me=Te(v);if(H||me){const re=()=>{if(e.f){const ee=H?$(v)?w[v]:_[v]:te()||!e.k?v.value:_[e.k];if(s)q(ee)&&$n(ee,i);else if(q(ee))ee.includes(i)||ee.push(i);else if(H)_[v]=[i],$(v)&&(w[v]=_[v]);else{const X=[i];te(v,e.k)&&(v.value=X),e.k&&(_[e.k]=X)}}else H?(_[v]=d,$(v)&&(w[v]=d)):me&&(te(v,e.k)&&(v.value=d),e.k&&(_[e.k]=d))};if(d){const ee=()=>{re(),Ll.delete(e)};ee.id=-1,Ll.set(e,ee),Le(ee,l)}else To(e),re()}}}function To(e){const t=Ll.get(e);t&&(t.flags|=8,Ll.delete(e))}Yl().requestIdleCallback;Yl().cancelIdleCallback;const al=e=>!!e.type.__asyncLoader,Ms=e=>e.type.__isKeepAlive;function xa(e,t){Rs(e,"a",t)}function Ca(e,t){Rs(e,"da",t)}function Rs(e,t,l=$e){const o=e.__wdc||(e.__wdc=()=>{let s=l;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(en(t,o,l),l){let s=l.parent;for(;s&&s.parent;)Ms(s.parent.vnode)&&Sa(o,t,l,s),s=s.parent}}function Sa(e,t,l,o){const s=en(t,e,o,!0);Vs(()=>{$n(o[t],s)},l)}function en(e,t,l=$e,o=!1){if(l){const s=l[e]||(l[e]=[]),i=t.__weh||(t.__weh=(...d)=>{gt();const f=yl(l),v=st(t,l,e,d);return f(),_t(),v});return o?s.unshift(i):s.push(i),i}}const Dt=e=>(t,l=$e)=>{(!gl||e==="sp")&&en(e,(...o)=>t(...o),l)},Pa=Dt("bm"),$s=Dt("m"),Da=Dt("bu"),Ea=Dt("u"),Ta=Dt("bum"),Vs=Dt("um"),Ia=Dt("sp"),Oa=Dt("rtg"),Aa=Dt("rtc");function Ua(e,t=$e){en("ec",e,t)}const Ma=Symbol.for("v-ndc");function fe(e,t,l,o){let s;const i=l,d=q(e);if(d||be(e)){const f=d&&Lt(e);let v=!1,h=!1;f&&(v=!Qe(e),h=Pt(e),e=Xl(e)),s=new Array(e.length);for(let _=0,w=e.length;_t(f,v,void 0,i));else{const f=Object.keys(e);s=new Array(f.length);for(let v=0,h=f.length;ve?oi(e)?nn(e):Tn(e.parent):null,ul=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Tn(e.parent),$root:e=>Tn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ls(e),$forceUpdate:e=>e.f||(e.f=()=>{Jn(e.update)}),$nextTick:e=>e.n||(e.n=Ps.bind(e.proxy)),$watch:e=>ya.bind(e)}),yn=(e,t)=>e!==ge&&!e.__isScriptSetup&&ue(e,t),Ra={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:l,setupState:o,data:s,props:i,accessCache:d,type:f,appContext:v}=e;if(t[0]!=="$"){const M=d[t];if(M!==void 0)switch(M){case 1:return o[t];case 2:return s[t];case 4:return l[t];case 3:return i[t]}else{if(yn(o,t))return d[t]=1,o[t];if(s!==ge&&ue(s,t))return d[t]=2,s[t];if(ue(i,t))return d[t]=3,i[t];if(l!==ge&&ue(l,t))return d[t]=4,l[t];In&&(d[t]=0)}}const h=ul[t];let _,w;if(h)return t==="$attrs"&&Ee(e.attrs,"get",""),h(e);if((_=f.__cssModules)&&(_=_[t]))return _;if(l!==ge&&ue(l,t))return d[t]=4,l[t];if(w=v.config.globalProperties,ue(w,t))return w[t]},set({_:e},t,l){const{data:o,setupState:s,ctx:i}=e;return yn(s,t)?(s[t]=l,!0):o!==ge&&ue(o,t)?(o[t]=l,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=l,!0)},has({_:{data:e,setupState:t,accessCache:l,ctx:o,appContext:s,props:i,type:d}},f){let v;return!!(l[f]||e!==ge&&f[0]!=="$"&&ue(e,f)||yn(t,f)||ue(i,f)||ue(o,f)||ue(ul,f)||ue(s.config.globalProperties,f)||(v=d.__cssModules)&&v[f])},defineProperty(e,t,l){return l.get!=null?e._.accessCache[t]=0:ue(l,"value")&&this.set(e,t,l.value,null),Reflect.defineProperty(e,t,l)}};function Io(e){return q(e)?e.reduce((t,l)=>(t[l]=null,t),{}):e}let In=!0;function $a(e){const t=Ls(e),l=e.proxy,o=e.ctx;In=!1,t.beforeCreate&&Oo(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:d,watch:f,provide:v,inject:h,created:_,beforeMount:w,mounted:M,beforeUpdate:$,updated:te,activated:H,deactivated:me,beforeDestroy:re,beforeUnmount:ee,destroyed:X,unmounted:j,render:_e,renderTracked:Ce,renderTriggered:Ie,errorCaptured:Fe,serverPrefetch:ht,expose:He,inheritAttrs:ve,components:Ke,directives:Xe,filters:qe}=t;if(h&&Va(h,o,null),d)for(const de in d){const ne=d[de];J(ne)&&(o[de]=ne.bind(l))}if(s){const de=s.call(l,l);pe(de)&&(e.data=Hn(de))}if(In=!0,i)for(const de in i){const ne=i[de],Ve=J(ne)?ne.bind(l,l):J(ne.get)?ne.get.bind(l,l):pt,it=!J(ne)&&J(ne.set)?ne.set.bind(l):pt,Ne=It({get:Ve,set:it});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:De=>Ne.value=De})}if(f)for(const de in f)Bs(f[de],o,l,de);if(v){const de=J(v)?v.call(l):v;Reflect.ownKeys(de).forEach(ne=>{_a(ne,de[ne])})}_&&Oo(_,e,"c");function we(de,ne){q(ne)?ne.forEach(Ve=>de(Ve.bind(l))):ne&&de(ne.bind(l))}if(we(Pa,w),we($s,M),we(Da,$),we(Ea,te),we(xa,H),we(Ca,me),we(Ua,Fe),we(Aa,Ce),we(Oa,Ie),we(Ta,ee),we(Vs,j),we(Ia,ht),q(He))if(He.length){const de=e.exposed||(e.exposed={});He.forEach(ne=>{Object.defineProperty(de,ne,{get:()=>l[ne],set:Ve=>l[ne]=Ve,enumerable:!0})})}else e.exposed||(e.exposed={});_e&&e.render===pt&&(e.render=_e),ve!=null&&(e.inheritAttrs=ve),Ke&&(e.components=Ke),Xe&&(e.directives=Xe),ht&&Us(e)}function Va(e,t,l=pt){q(e)&&(e=On(e));for(const o in e){const s=e[o];let i;pe(s)?"default"in s?i=Ml(s.from||o,s.default,!0):i=Ml(s.from||o):i=Ml(s),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:d=>i.value=d}):t[o]=i}}function Oo(e,t,l){st(q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,l)}function Bs(e,t,l,o){let s=o.includes(".")?As(l,o):()=>l[o];if(be(e)){const i=t[e];J(i)&&hn(s,i)}else if(J(e))hn(s,e.bind(l));else if(pe(e))if(q(e))e.forEach(i=>Bs(i,t,l,o));else{const i=J(e.handler)?e.handler.bind(l):t[e.handler];J(i)&&hn(s,i,e)}}function Ls(e){const t=e.type,{mixins:l,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:d}}=e.appContext,f=i.get(t);let v;return f?v=f:!s.length&&!l&&!o?v=t:(v={},s.length&&s.forEach(h=>Fl(v,h,d,!0)),Fl(v,t,d)),pe(t)&&i.set(t,v),v}function Fl(e,t,l,o=!1){const{mixins:s,extends:i}=t;i&&Fl(e,i,l,!0),s&&s.forEach(d=>Fl(e,d,l,!0));for(const d in t)if(!(o&&d==="expose")){const f=Ba[d]||l&&l[d];e[d]=f?f(e[d],t[d]):t[d]}return e}const Ba={data:Ao,props:Uo,emits:Uo,methods:ll,computed:ll,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ll,directives:ll,watch:Fa,provide:Ao,inject:La};function Ao(e,t){return t?e?function(){return Pe(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function La(e,t){return ll(On(e),On(t))}function On(e){if(q(e)){const t={};for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lt(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function Ha(e,t,...l){if(e.isUnmounted)return;const o=e.vnode.props||ge;let s=l;const i=t.startsWith("update:"),d=i&&Wa(o,t.slice(7));d&&(d.trim&&(s=l.map(_=>be(_)?_.trim():_)),d.number&&(s=l.map(zl)));let f,v=o[f=fn(t)]||o[f=fn(lt(t))];!v&&i&&(v=o[f=fn(Ft(t))]),v&&st(v,e,6,s);const h=o[f+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,st(h,e,6,s)}}const Ka=new WeakMap;function Ns(e,t,l=!1){const o=l?Ka:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let d={},f=!1;if(!J(e)){const v=h=>{const _=Ns(h,t,!0);_&&(f=!0,Pe(d,_))};!l&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!f?(pe(e)&&o.set(e,null),null):(q(i)?i.forEach(v=>d[v]=null):Pe(d,i),pe(e)&&o.set(e,d),d)}function tn(e,t){return!e||!Kl(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Ft(t))||ue(e,t))}function Mo(e){const{type:t,vnode:l,proxy:o,withProxy:s,propsOptions:[i],slots:d,attrs:f,emit:v,render:h,renderCache:_,props:w,data:M,setupState:$,ctx:te,inheritAttrs:H}=e,me=Bl(e);let re,ee;try{if(l.shapeFlag&4){const j=s||o,_e=j;re=ct(h.call(_e,j,_,w,$,M,te)),ee=f}else{const j=t;re=ct(j.length>1?j(w,{attrs:f,slots:d,emit:v}):j(w,null)),ee=t.props?f:qa(f)}}catch(j){dl.length=0,Zl(j,e,1),re=St(At)}let X=re;if(ee&&H!==!1){const j=Object.keys(ee),{shapeFlag:_e}=X;j.length&&_e&7&&(i&&j.some(ql)&&(ee=Ja(ee,i)),X=Qt(X,ee,!1,!0))}return l.dirs&&(X=Qt(X,null,!1,!0),X.dirs=X.dirs?X.dirs.concat(l.dirs):l.dirs),l.transition&&Gn(X,l.transition),re=X,Bl(me),re}const qa=e=>{let t;for(const l in e)(l==="class"||l==="style"||Kl(l))&&((t||(t={}))[l]=e[l]);return t},Ja=(e,t)=>{const l={};for(const o in e)(!ql(o)||!(o.slice(9)in t))&&(l[o]=e[o]);return l};function Ga(e,t,l){const{props:o,children:s,component:i}=e,{props:d,children:f,patchFlag:v}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(l&&v>=0){if(v&1024)return!0;if(v&16)return o?Ro(o,d,h):!!d;if(v&8){const _=t.dynamicProps;for(let w=0;w<_.length;w++){const M=_[w];if(js(d,o,M)&&!tn(h,M))return!0}}}else return(s||f)&&(!f||!f.$stable)?!0:o===d?!1:o?d?Ro(o,d,h):!0:!!d;return!1}function Ro(e,t,l){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;sObject.create(Ws),Ks=e=>Object.getPrototypeOf(e)===Ws;function Ya(e,t,l,o=!1){const s={},i=Hs();e.propsDefaults=Object.create(null),qs(e,t,s,i);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);l?e.props=o?s:la(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Qa(e,t,l,o){const{props:s,attrs:i,vnode:{patchFlag:d}}=e,f=ae(s),[v]=e.propsOptions;let h=!1;if((o||d>0)&&!(d&16)){if(d&8){const _=e.vnode.dynamicProps;for(let w=0;w<_.length;w++){let M=_[w];if(tn(e.emitsOptions,M))continue;const $=t[M];if(v)if(ue(i,M))$!==i[M]&&(i[M]=$,h=!0);else{const te=lt(M);s[te]=An(v,f,te,$,e,!1)}else $!==i[M]&&(i[M]=$,h=!0)}}}else{qs(e,t,s,i)&&(h=!0);let _;for(const w in f)(!t||!ue(t,w)&&((_=Ft(w))===w||!ue(t,_)))&&(v?l&&(l[w]!==void 0||l[_]!==void 0)&&(s[w]=An(v,f,w,void 0,e,!0)):delete s[w]);if(i!==f)for(const w in i)(!t||!ue(t,w))&&(delete i[w],h=!0)}h&&xt(e.attrs,"set","")}function qs(e,t,l,o){const[s,i]=e.propsOptions;let d=!1,f;if(t)for(let v in t){if(ol(v))continue;const h=t[v];let _;s&&ue(s,_=lt(v))?!i||!i.includes(_)?l[_]=h:(f||(f={}))[_]=h:tn(e.emitsOptions,v)||(!(v in o)||h!==o[v])&&(o[v]=h,d=!0)}if(i){const v=ae(l),h=f||ge;for(let _=0;_{v=!0;const[M,$]=Js(w,t,!0);Pe(d,M),$&&f.push(...$)};!l&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!i&&!v)return pe(e)&&o.set(e,Kt),Kt;if(q(i))for(let _=0;_e==="_"||e==="_ctx"||e==="$stable",Yn=e=>q(e)?e.map(ct):[ct(e)],Za=(e,t,l)=>{if(t._n)return t;const o=ga((...s)=>Yn(t(...s)),l);return o._c=!1,o},Gs=(e,t,l)=>{const o=e._ctx;for(const s in e){if(zn(s))continue;const i=e[s];if(J(i))t[s]=Za(s,i,o);else if(i!=null){const d=Yn(i);t[s]=()=>d}}},zs=(e,t)=>{const l=Yn(t);e.slots.default=()=>l},Ys=(e,t,l)=>{for(const o in t)(l||!zn(o))&&(e[o]=t[o])},eu=(e,t,l)=>{const o=e.slots=Hs();if(e.vnode.shapeFlag&32){const s=t._;s?(Ys(o,t,l),l&&is(o,"_",s,!0)):Gs(t,o)}else t&&zs(e,t)},tu=(e,t,l)=>{const{vnode:o,slots:s}=e;let i=!0,d=ge;if(o.shapeFlag&32){const f=t._;f?l&&f===1?i=!1:Ys(s,t,l):(i=!t.$stable,Gs(t,s)),d=t}else t&&(zs(e,t),d={default:1});if(i)for(const f in s)!zn(f)&&d[f]==null&&delete s[f]},Le=iu;function lu(e){return nu(e)}function nu(e,t){const l=Yl();l.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:d,createText:f,createComment:v,setText:h,setElementText:_,parentNode:w,nextSibling:M,setScopeId:$=pt,insertStaticContent:te}=e,H=(p,g,m,C=null,S=null,b=null,P=void 0,E=null,T=!!g.dynamicChildren)=>{if(p===g)return;p&&!tl(p,g)&&(C=Ze(p),De(p,S,b,!0),p=null),g.patchFlag===-2&&(T=!1,g.dynamicChildren=null);const{type:y,ref:R,shapeFlag:A}=g;switch(y){case ln:me(p,g,m,C);break;case At:re(p,g,m,C);break;case wn:p==null&&ee(g,m,C,P);break;case Y:Ke(p,g,m,C,S,b,P,E,T);break;default:A&1?_e(p,g,m,C,S,b,P,E,T):A&6?Xe(p,g,m,C,S,b,P,E,T):(A&64||A&128)&&y.process(p,g,m,C,S,b,P,E,T,Ae)}R!=null&&S?rl(R,p&&p.ref,b,g||p,!g):R==null&&p&&p.ref!=null&&rl(p.ref,null,b,p,!0)},me=(p,g,m,C)=>{if(p==null)o(g.el=f(g.children),m,C);else{const S=g.el=p.el;g.children!==p.children&&h(S,g.children)}},re=(p,g,m,C)=>{p==null?o(g.el=v(g.children||""),m,C):g.el=p.el},ee=(p,g,m,C)=>{[p.el,p.anchor]=te(p.children,g,m,C,p.el,p.anchor)},X=({el:p,anchor:g},m,C)=>{let S;for(;p&&p!==g;)S=M(p),o(p,m,C),p=S;o(g,m,C)},j=({el:p,anchor:g})=>{let m;for(;p&&p!==g;)m=M(p),s(p),p=m;s(g)},_e=(p,g,m,C,S,b,P,E,T)=>{if(g.type==="svg"?P="svg":g.type==="math"&&(P="mathml"),p==null)Ce(g,m,C,S,b,P,E,T);else{const y=p.el&&p.el._isVueCE?p.el:null;try{y&&y._beginPatch(),ht(p,g,S,b,P,E,T)}finally{y&&y._endPatch()}}},Ce=(p,g,m,C,S,b,P,E)=>{let T,y;const{props:R,shapeFlag:A,transition:L,dirs:B}=p;if(T=p.el=d(p.type,b,R&&R.is,R),A&8?_(T,p.children):A&16&&Fe(p.children,T,null,C,S,bn(p,b),P,E),B&&Mt(p,null,C,"created"),Ie(T,p,p.scopeId,P,C),R){for(const F in R)F!=="value"&&!ol(F)&&i(T,F,null,R[F],b,C);"value"in R&&i(T,"value",null,R.value,b),(y=R.onVnodeBeforeMount)&&rt(y,C,p)}B&&Mt(p,null,C,"beforeMount");const Q=ou(S,L);Q&&L.beforeEnter(T),o(T,g,m),((y=R&&R.onVnodeMounted)||Q||B)&&Le(()=>{try{y&&rt(y,C,p),Q&&L.enter(T),B&&Mt(p,null,C,"mounted")}finally{}},S)},Ie=(p,g,m,C,S)=>{if(m&&$(p,m),C)for(let b=0;b{for(let y=T;y{const E=g.el=p.el;let{patchFlag:T,dynamicChildren:y,dirs:R}=g;T|=p.patchFlag&16;const A=p.props||ge,L=g.props||ge;let B;if(m&&Rt(m,!1),(B=L.onVnodeBeforeUpdate)&&rt(B,m,g,p),R&&Mt(g,p,m,"beforeUpdate"),m&&Rt(m,!0),y&&(!p.dynamicChildren||p.dynamicChildren.length!==y.length)&&(T=0,P=!1,y=null),(A.innerHTML&&L.innerHTML==null||A.textContent&&L.textContent==null)&&_(E,""),y?He(p.dynamicChildren,y,E,m,C,bn(g,S),b):P||ne(p,g,E,null,m,C,bn(g,S),b,!1),T>0){if(T&16)ve(E,A,L,m,S);else if(T&2&&A.class!==L.class&&i(E,"class",null,L.class,S),T&4&&i(E,"style",A.style,L.style,S),T&8){const Q=g.dynamicProps;for(let F=0;F{B&&rt(B,m,g,p),R&&Mt(g,p,m,"updated")},C)},He=(p,g,m,C,S,b,P)=>{for(let E=0;E{if(g!==m){if(g!==ge)for(const b in g)!ol(b)&&!(b in m)&&i(p,b,g[b],null,S,C);for(const b in m){if(ol(b))continue;const P=m[b],E=g[b];P!==E&&b!=="value"&&i(p,b,E,P,S,C)}"value"in m&&i(p,"value",g.value,m.value,S)}},Ke=(p,g,m,C,S,b,P,E,T)=>{const y=g.el=p?p.el:f(""),R=g.anchor=p?p.anchor:f("");let{patchFlag:A,dynamicChildren:L,slotScopeIds:B}=g;B&&(E=E?E.concat(B):B),p==null?(o(y,m,C),o(R,m,C),Fe(g.children||[],m,R,S,b,P,E,T)):A>0&&A&64&&L&&p.dynamicChildren&&p.dynamicChildren.length===L.length?(He(p.dynamicChildren,L,m,S,b,P,E),(g.key!=null||S&&g===S.subTree)&&Qs(p,g,!0)):ne(p,g,m,R,S,b,P,E,T)},Xe=(p,g,m,C,S,b,P,E,T)=>{g.slotScopeIds=E,p==null?g.shapeFlag&512?S.ctx.activate(g,m,C,P,T):qe(g,m,C,S,b,P,T):mt(p,g,T)},qe=(p,g,m,C,S,b,P)=>{const E=p.component=gu(p,C,S);if(Ms(p)&&(E.ctx.renderer=Ae),hu(E,!1,P),E.asyncDep){if(S&&S.registerDep(E,we,P),!p.el){const T=E.subTree=St(At);re(null,T,g,m),p.placeholder=T.el}}else we(E,p,g,m,S,b,P)},mt=(p,g,m)=>{const C=g.component=p.component;if(Ga(p,g,m))if(C.asyncDep&&!C.asyncResolved){de(C,g,m);return}else C.next=g,C.update();else g.el=p.el,C.vnode=g},we=(p,g,m,C,S,b,P)=>{const E=()=>{if(p.isMounted){let{next:A,bu:L,u:B,parent:Q,vnode:F}=p;{const je=Xs(p);if(je){A&&(A.el=F.el,de(p,A,P)),je.asyncDep.then(()=>{Le(()=>{p.isUnmounted||y()},S)});return}}let oe=A,D;Rt(p,!1),A?(A.el=F.el,de(p,A,P)):A=F,L&&Ul(L),(D=A.props&&A.props.onVnodeBeforeUpdate)&&rt(D,Q,A,F),Rt(p,!0);const ye=Mo(p),ke=p.subTree;p.subTree=ye,H(ke,ye,w(ke.el),Ze(ke),p,S,b),A.el=ye.el,oe===null&&za(p,ye.el),B&&Le(B,S),(D=A.props&&A.props.onVnodeUpdated)&&Le(()=>rt(D,Q,A,F),S)}else{let A;const{el:L,props:B}=g,{bm:Q,m:F,parent:oe,root:D,type:ye}=p,ke=al(g);Rt(p,!1),Q&&Ul(Q),!ke&&(A=B&&B.onVnodeBeforeMount)&&rt(A,oe,g),Rt(p,!0);{D.ce&&D.ce._hasShadowRoot()&&D.ce._injectChildStyle(ye,p.parent?p.parent.type:void 0);const je=p.subTree=Mo(p);H(null,je,m,C,p,S,b),g.el=je.el}if(F&&Le(F,S),!ke&&(A=B&&B.onVnodeMounted)){const je=g;Le(()=>rt(A,oe,je),S)}(g.shapeFlag&256||oe&&al(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&Le(p.a,S),p.isMounted=!0,g=m=C=null}};p.scope.on();const T=p.effect=new ds(E);p.scope.off();const y=p.update=T.run.bind(T),R=p.job=T.runIfDirty.bind(T);R.i=p,R.id=p.uid,T.scheduler=()=>Jn(R),Rt(p,!0),y()},de=(p,g,m)=>{g.component=p;const C=p.vnode.props;p.vnode=g,p.next=null,Qa(p,g.props,C,m),tu(p,g.children,m),gt(),Do(p),_t()},ne=(p,g,m,C,S,b,P,E,T=!1)=>{const y=p&&p.children,R=p?p.shapeFlag:0,A=g.children,{patchFlag:L,shapeFlag:B}=g;if(L>0){if(L&128){it(y,A,m,C,S,b,P,E,T);return}else if(L&256){Ve(y,A,m,C,S,b,P,E,T);return}}B&8?(R&16&&Be(y,S,b),A!==y&&_(m,A)):R&16?B&16?it(y,A,m,C,S,b,P,E,T):Be(y,S,b,!0):(R&8&&_(m,""),B&16&&Fe(A,m,C,S,b,P,E,T))},Ve=(p,g,m,C,S,b,P,E,T)=>{p=p||Kt,g=g||Kt;const y=p.length,R=g.length,A=Math.min(y,R);let L;for(L=0;LR?Be(p,S,b,!0,!1,A):Fe(g,m,C,S,b,P,E,T,A)},it=(p,g,m,C,S,b,P,E,T)=>{let y=0;const R=g.length;let A=p.length-1,L=R-1;for(;y<=A&&y<=L;){const B=p[y],Q=g[y]=T?kt(g[y]):ct(g[y]);if(tl(B,Q))H(B,Q,m,null,S,b,P,E,T);else break;y++}for(;y<=A&&y<=L;){const B=p[A],Q=g[L]=T?kt(g[L]):ct(g[L]);if(tl(B,Q))H(B,Q,m,null,S,b,P,E,T);else break;A--,L--}if(y>A){if(y<=L){const B=L+1,Q=BL)for(;y<=A;)De(p[y],S,b,!0),y++;else{const B=y,Q=y,F=new Map;for(y=Q;y<=L;y++){const Ue=g[y]=T?kt(g[y]):ct(g[y]);Ue.key!=null&&F.set(Ue.key,y)}let oe,D=0;const ye=L-Q+1;let ke=!1,je=0;const Ut=new Array(ye);for(y=0;y=ye){De(Ue,S,b,!0);continue}let Je;if(Ue.key!=null)Je=F.get(Ue.key);else for(oe=Q;oe<=L;oe++)if(Ut[oe-Q]===0&&tl(Ue,g[oe])){Je=oe;break}Je===void 0?De(Ue,S,b,!0):(Ut[Je-Q]=y+1,Je>=je?je=Je:ke=!0,H(Ue,g[Je],m,null,S,b,P,E,T),D++)}const bl=ke?su(Ut):Kt;for(oe=bl.length-1,y=ye-1;y>=0;y--){const Ue=Q+y,Je=g[Ue],Xt=g[Ue+1],wl=Ue+1{const{el:b,type:P,transition:E,children:T,shapeFlag:y}=p;if(y&6){Ne(p.component.subTree,g,m,C);return}if(y&128){p.suspense.move(g,m,C);return}if(y&64){P.move(p,g,m,Ae);return}if(P===Y){o(b,g,m);for(let A=0;AE.enter(b),S));else{const{leave:A,delayLeave:L,afterLeave:B}=E,Q=()=>{p.ctx.isUnmounted?s(b):o(b,g,m)},F=()=>{const oe=b._isLeaving||!!b[mn];b._isLeaving&&b[mn](!0),E.persisted&&!oe?Q():A(b,()=>{Q(),B&&B()})};L?L(b,Q,F):F()}else o(b,g,m)},De=(p,g,m,C=!1,S=!1)=>{const{type:b,props:P,ref:E,children:T,dynamicChildren:y,shapeFlag:R,patchFlag:A,dirs:L,cacheIndex:B,memo:Q}=p;if(A===-2&&(S=!1),E!=null&&(gt(),rl(E,null,m,p,!0),_t()),B!=null&&(g.renderCache[B]=void 0),R&256){g.ctx.deactivate(p);return}const F=R&1&&L,oe=!al(p);let D;if(oe&&(D=P&&P.onVnodeBeforeUnmount)&&rt(D,g,p),R&6)ce(p.component,m,C);else{if(R&128){p.suspense.unmount(m,C);return}F&&Mt(p,null,g,"beforeUnmount"),R&64?p.type.remove(p,g,m,Ae,C):y&&!y.hasOnce&&(b!==Y||A>0&&A&64)?Be(y,g,m,!1,!0):(b===Y&&A&384||!S&&R&16)&&Be(T,g,m),C&&le(p)}const ye=Q!=null&&B==null;(oe&&(D=P&&P.onVnodeUnmounted)||F||ye)&&Le(()=>{D&&rt(D,g,p),F&&Mt(p,null,g,"unmounted"),ye&&(p.el=null)},m)},le=p=>{const{type:g,el:m,anchor:C,transition:S}=p;if(g===Y){Et(m,C);return}if(g===wn){j(p);return}const b=()=>{s(m),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(p.shapeFlag&1&&S&&!S.persisted){const{leave:P,delayLeave:E}=S,T=()=>P(m,b);E?E(p.el,b,T):T()}else b()},Et=(p,g)=>{let m;for(;p!==g;)m=M(p),s(p),p=m;s(g)},ce=(p,g,m)=>{const{bum:C,scope:S,job:b,subTree:P,um:E,m:T,a:y}=p;Vo(T),Vo(y),C&&Ul(C),S.stop(),b&&(b.flags|=8,De(P,p,g,m)),E&&Le(E,g),Le(()=>{p.isUnmounted=!0},g)},Be=(p,g,m,C=!1,S=!1,b=0)=>{for(let P=b;P{if(p.shapeFlag&6)return Ze(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=M(p.anchor||p.el),m=g&&g[ba];return m?M(m):g};let Z=!1;const Oe=(p,g,m)=>{let C;p==null?g._vnode&&(De(g._vnode,null,null,!0),C=g._vnode.component):H(g._vnode||null,p,g,null,null,null,m),g._vnode=p,Z||(Z=!0,Do(C),Es(),Z=!1)},Ae={p:H,um:De,m:Ne,r:le,mt:qe,mc:Fe,pc:ne,pbc:He,n:Ze,o:e};return{render:Oe,hydrate:void 0,createApp:ja(Oe)}}function bn({type:e,props:t},l){return l==="svg"&&e==="foreignObject"||l==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:l}function Rt({effect:e,job:t},l){l?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ou(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qs(e,t,l=!1){const o=e.children,s=t.children;if(q(o)&&q(s))for(let i=0;i>1,e[l[f]]0&&(t[o]=l[i-1]),l[i]=o)}}for(i=l.length,d=l[i-1];i-- >0;)l[i]=d,d=t[d];return l}function Xs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xs(t)}function Vo(e){if(e)for(let t=0;te.__isSuspense;function iu(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):va(e)}const Y=Symbol.for("v-fgt"),ln=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),wn=Symbol.for("v-stc"),dl=[];let We=null;function k(e=!1){dl.push(We=e?null:[])}function ru(){dl.pop(),We=dl[dl.length-1]||null}let vl=1;function Bo(e,t=!1){vl+=e,e<0&&We&&t&&(We.hasOnce=!0)}function ti(e){return e.dynamicChildren=vl>0?We||Kt:null,ru(),vl>0&&We&&We.push(e),e}function x(e,t,l,o,s,i){return ti(n(e,t,l,o,s,i,!0))}function au(e,t,l,o,s){return ti(St(e,t,l,o,s,!0))}function li(e){return e?e.__v_isVNode===!0:!1}function tl(e,t){return e.type===t.type&&e.key===t.key}const ni=({key:e})=>e??null,Rl=({ref:e,ref_key:t,ref_for:l})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Te(e)||J(e)?{i:Ye,r:e,k:t,f:!!l}:e:null);function n(e,t=null,l=null,o=0,s=null,i=e===Y?0:1,d=!1,f=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&Rl(t),scopeId:Is,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ye};return f?(Nl(v,l),i&128&&e.normalize(v)):l&&(v.shapeFlag|=be(l)?8:16),vl>0&&!d&&We&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&We.push(v),v}const St=uu;function uu(e,t=null,l=null,o=0,s=null,i=!1){if((!e||e===Ma)&&(e=At),li(e)){const f=Qt(e,t,!0);return l&&Nl(f,l),vl>0&&!i&&We&&(f.shapeFlag&6?We[We.indexOf(e)]=f:We.push(f)),f.patchFlag=-2,f}if(wu(e)&&(e=e.__vccOpts),t){t=du(t);let{class:f,style:v}=t;f&&!be(f)&&(t.class=Ql(f)),pe(v)&&(qn(v)&&!q(v)&&(v=Pe({},v)),t.style=Bn(v))}const d=be(e)?1:ei(e)?128:wa(e)?64:pe(e)?4:J(e)?2:0;return n(e,t,l,o,s,d,i,!0)}function du(e){return e?qn(e)||Ks(e)?Pe({},e):e:null}function Qt(e,t,l=!1,o=!1){const{props:s,ref:i,patchFlag:d,children:f,transition:v}=e,h=t?fu(s||{},t):s,_={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&ni(h),ref:t&&t.ref?l&&i?q(i)?i.concat(Rl(t)):[i,Rl(t)]:Rl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&Gn(_,v.clone(_)),_}function cu(e=" ",t=0){return St(ln,null,e,t)}function K(e="",t=!1){return t?(k(),au(At,null,e)):St(At,null,e)}function ct(e){return e==null||typeof e=="boolean"?St(At):q(e)?St(Y,null,e.slice()):li(e)?kt(e):St(ln,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function Nl(e,t){let l=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(q(t))l=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Nl(e,s()),s._c&&(s._d=!0));return}else{l=32;const s=t._;!s&&!Ks(t)?t._ctx=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(o&65){Nl(e,{default:t});return}t={default:t,_ctx:Ye},l=32}else t=String(t),o&64?(l=16,t=[cu(t)]):l=8;e.children=t,e.shapeFlag|=l}function fu(...e){const t={};for(let l=0;l$e||Ye;let jl,Un;{const e=Yl(),t=(l,o)=>{let s;return(s=e[l])||(s=e[l]=[]),s.push(o),i=>{s.length>1?s.forEach(d=>d(i)):s[0](i)}};jl=t("__VUE_INSTANCE_SETTERS__",l=>$e=l),Un=t("__VUE_SSR_SETTERS__",l=>gl=l)}const yl=e=>{const t=$e;return jl(e),e.scope.on(),()=>{e.scope.off(),jl(t)}},Lo=()=>{$e&&$e.scope.off(),jl(null)};function oi(e){return e.vnode.shapeFlag&4}let gl=!1;function hu(e,t=!1,l=!1){t&&Un(t);const{props:o,children:s}=e.vnode,i=oi(e);Ya(e,o,i,t),eu(e,s,l||t);const d=i?mu(e,t):void 0;return t&&Un(!1),d}function mu(e,t){const l=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ra);const{setup:o}=l;if(o){gt();const s=e.setupContext=o.length>1?bu(e):null,i=yl(e),d=ml(o,e,0,[e.props,s]),f=ls(d);if(_t(),i(),(f||e.sp)&&!al(e)&&Us(e),f){if(d.then(Lo,Lo),t)return d.then(v=>{Fo(e,v)}).catch(v=>{Zl(v,e,0)});e.asyncDep=d}else Fo(e,d)}else si(e)}function Fo(e,t,l){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Cs(t)),si(e)}function si(e,t,l){const o=e.type;e.render||(e.render=o.render||pt);{const s=yl(e);gt();try{$a(e)}finally{_t(),s()}}}const yu={get(e,t){return Ee(e,"get",""),e[t]}};function bu(e){const t=l=>{e.exposed=l||{}};return{attrs:new Proxy(e.attrs,yu),slots:e.slots,emit:e.emit,expose:t}}function nn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cs(na(e.exposed)),{get(t,l){if(l in t)return t[l];if(l in ul)return ul[l](e)},has(t,l){return l in t||l in ul}})):e.proxy}function wu(e){return J(e)&&"__vccOpts"in e}const It=(e,t)=>ua(e,t,gl),ku="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Mn;const No=typeof window<"u"&&window.trustedTypes;if(No)try{Mn=No.createPolicy("vue",{createHTML:e=>e})}catch{}const ii=Mn?e=>Mn.createHTML(e):e=>e,xu="http://www.w3.org/2000/svg",Cu="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,jo=wt&&wt.createElement("template"),Su={insert:(e,t,l)=>{t.insertBefore(e,l||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,l,o)=>{const s=t==="svg"?wt.createElementNS(xu,e):t==="mathml"?wt.createElementNS(Cu,e):l?wt.createElement(e,{is:l}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,l,o,s,i){const d=l?l.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),l),!(s===i||!(s=s.nextSibling)););else{jo.innerHTML=ii(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const f=jo.content;if(o==="svg"||o==="mathml"){const v=f.firstChild;for(;v.firstChild;)f.appendChild(v.firstChild);f.removeChild(v)}t.insertBefore(f,l)}return[d?d.nextSibling:t.firstChild,l?l.previousSibling:t.lastChild]}},Pu=Symbol("_vtc");function Du(e,t,l){const o=e[Pu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):l?e.setAttribute("class",t):e.className=t}const Wo=Symbol("_vod"),Eu=Symbol("_vsh"),Tu=Symbol(""),Iu=/(?:^|;)\s*display\s*:/;function Ou(e,t,l){const o=e.style,s=be(l);let i=!1;if(l&&!s){if(t)if(be(t))for(const d of t.split(";")){const f=d.slice(0,d.indexOf(":")).trim();l[f]==null&&nl(o,f,"")}else for(const d in t)l[d]==null&&nl(o,d,"");for(const d in l){d==="display"&&(i=!0);const f=l[d];f!=null?Uu(e,d,!be(t)&&t?t[d]:void 0,f)||nl(o,d,f):nl(o,d,"")}}else if(s){if(t!==l){const d=o[Tu];d&&(l+=";"+d),o.cssText=l,i=Iu.test(l)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=i?o.display:"",e[Eu]&&(o.display="none"))}const Ho=/\s*!important$/;function nl(e,t,l){if(q(l))l.forEach(o=>nl(e,t,o));else if(l==null&&(l=""),t.startsWith("--"))e.setProperty(t,l);else{const o=Au(e,t);Ho.test(l)?e.setProperty(Ft(o),l.replace(Ho,""),"important"):e[o]=l}}const Ko=["Webkit","Moz","ms"],kn={};function Au(e,t){const l=kn[t];if(l)return l;let o=lt(t);if(o!=="filter"&&o in e)return kn[t]=o;o=ss(o);for(let s=0;sxn||(Lu.then(()=>xn=0),xn=Date.now());function Nu(e,t){const l=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=l.attached)return;const s=l.value;if(q(s)){const i=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{i.call(o),o._stopped=!0};const d=s.slice(),f=[o];for(let v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ju=(e,t,l,o,s,i)=>{const d=s==="svg";t==="class"?Du(e,o,d):t==="style"?Ou(e,l,o):Kl(t)?ql(t)||Ru(e,t,l,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wu(e,t,o,d))?(Go(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jo(e,t,o,d,i,t!=="value")):e._isVueCE&&(Hu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(o)))?Go(e,lt(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Jo(e,t,o,d))};function Wu(e,t,l,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Yo(t)&&J(l));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Yo(t)&&be(l)?!1:t in e}function Hu(e,t){const l=e._def.props;if(!l)return!1;const o=lt(t);return Array.isArray(l)?l.some(s=>lt(s)===o):Object.keys(l).some(s=>lt(s)===o)}const Wl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?l=>Ul(t,l):t};function Ku(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zt=Symbol("_assign");function Xo(e,t,l){return t&&(e=e.trim()),l&&(e=zl(e)),e}const U={created(e,{modifiers:{lazy:t,trim:l,number:o}},s){e[zt]=Wl(s);const i=o||s.props&&s.props.type==="number";Vt(e,t?"change":"input",d=>{d.target.composing||e[zt](Xo(e.value,l,i))}),(l||i)&&Vt(e,"change",()=>{e.value=Xo(e.value,l,i)}),t||(Vt(e,"compositionstart",Ku),Vt(e,"compositionend",Qo),Vt(e,"change",Qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:l,modifiers:{lazy:o,trim:s,number:i}},d){if(e[zt]=Wl(d),e.composing)return;const f=(i||e.type==="number")&&!/^0\d/.test(e.value)?zl(e.value):e.value,v=t??"";if(f===v)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(o&&t===l||s&&e.value.trim()===v)||(e.value=v)}},bt={deep:!0,created(e,{value:t,modifiers:{number:l}},o){const s=Jl(t);Vt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>l?zl(Hl(d)):Hl(d));e[zt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Ps(()=>{e._assigning=!1})}),e[zt]=Wl(o)},mounted(e,{value:t}){Zo(e,t)},beforeUpdate(e,t,l){e[zt]=Wl(l)},updated(e,{value:t}){e._assigning||Zo(e,t)}};function Zo(e,t){const l=e.multiple,o=q(t);if(!(l&&!o&&!Jl(t))){for(let s=0,i=e.options.length;sString(h)===String(f)):d.selected=$r(t,f)>-1}else d.selected=t.has(f);else if(hl(Hl(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!l&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hl(e){return"_value"in e?e._value:e.value}const qu=Pe({patchProp:ju},Su);let es;function Ju(){return es||(es=lu(qu))}const Gu=((...e)=>{const t=Ju().createApp(...e),{mount:l}=t;return t.mount=o=>{const s=Yu(o);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=l(s,!1,zu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function zu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yu(e){return be(e)?document.querySelector(e):e}const Qu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",storageMigrate:"storage/migrate",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class Xu extends Error{constructor(l,o,s={}){super(o);cn(this,"code");cn(this,"details");this.name="ApiClientError",this.code=l,this.details=s}}async function z(e,t){return ut(e,{method:"GET",query:t})}async function G(e,t){return ut(e,{method:"POST",body:t})}async function ut(e,t={}){const o=await(await fetch(Zu(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!o.ok)throw new Xu(o.error_code,o.message,o.details);return o.data}function Zu(e,t){const l=e.replace(/^\/+/,""),o=new URL(`${Qu}/${l}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&o.searchParams.set(s,String(i));return`${o.pathname}${o.search}`}const ed={class:"web-shell"},td={class:"sidebar"},ld={class:"brand"},nd=["onClick"],od={class:"workspace"},sd={class:"topbar"},id={class:"actions"},rd=["disabled"],ad={key:0,class:"notice error"},ud={key:1,class:"notice"},dd={key:0,class:"dashboard-grid"},cd={key:1,class:"list-view"},fd={class:"form-grid"},pd={class:"wide-field"},vd=["disabled"],gd=["disabled"],_d={key:0},hd={key:1,class:"form-grid"},md={class:"wide-field"},yd={class:"wide-field"},bd={class:"wide-field"},wd={class:"wide-field"},kd={class:"wide-field"},xd=["disabled"],Cd=["disabled"],Sd={class:"inline-actions"},Pd={class:"badge"},Dd=["disabled","onClick"],Ed=["disabled","onClick"],Td={key:0,class:"empty"},Id={key:2,class:"split-view"},Od={class:"list-view"},Ad={class:"form-grid"},Ud=["disabled"],Md={class:"inline-actions"},Rd={class:"badge"},$d=["disabled","onClick"],Vd=["disabled","onClick"],Bd=["disabled","onClick"],Ld=["disabled","onClick"],Fd={key:0,class:"empty"},Nd={key:0,class:"editor-panel"},jd={class:"form-grid"},Wd=["disabled"],Hd=["disabled","onClick"],Kd={class:"list-view"},qd={class:"inline-actions"},Jd=["disabled"],Gd={class:"form-grid"},zd={class:"wide-field"},Yd={class:"wide-field"},Qd={class:"wide-field"},Xd=["disabled"],Zd=["disabled"],ec={class:"form-grid"},tc={class:"wide-field"},lc=["disabled"],nc=["disabled"],oc={class:"inline-actions"},sc={class:"badge"},ic=["disabled","onClick"],rc=["disabled","onClick"],ac=["disabled","onClick"],uc=["disabled","onClick"],dc={key:0,class:"empty"},cc={class:"inline-actions"},fc={key:0,class:"badge"},pc=["disabled","onClick"],vc=["disabled","onClick"],gc=["disabled","onClick"],_c=["disabled","onClick"],hc=["disabled","onClick"],mc=["disabled","onClick"],yc={key:0,class:"empty"},bc={key:0},wc={key:1},kc={class:"editor-panel"},xc={key:0,class:"empty"},Cc={key:2,class:"editor-panel"},Sc={key:3},Pc={key:3,class:"split-view"},Dc={class:"list-view"},Ec={class:"form-grid"},Tc=["disabled"],Ic=["disabled"],Oc={class:"inline-actions"},Ac=["disabled","onClick"],Uc=["disabled","onClick"],Mc={key:0,class:"empty"},Rc={class:"list-view"},$c={class:"inline-actions"},Vc=["disabled"],Bc={class:"form-grid"},Lc={value:""},Fc=["value"],Nc=["disabled"],jc=["disabled"],Wc={class:"inline-actions"},Hc={class:"badge"},Kc=["disabled","onClick"],qc=["disabled","onClick"],Jc=["disabled","onClick"],Gc=["disabled","onClick"],zc={key:0,class:"empty"},Yc={class:"form-grid"},Qc={value:""},Xc=["value"],Zc=["disabled"],ef=["disabled"],tf={key:0},lf={key:4,class:"list-view"},nf=["disabled"],of={class:"form-grid"},sf={value:""},rf=["value"],af=["disabled"],uf={class:"inline-actions"},df=["disabled","onClick"],cf={key:0,class:"empty"},ff={key:0},pf={class:"form-grid"},vf=["disabled"],gf={key:1},_f={key:5,class:"list-view"},hf={class:"inline-actions"},mf=["disabled"],yf=["disabled"],bf={class:"form-grid"},wf={value:""},kf=["value"],xf={value:""},Cf=["value"],Sf={value:""},Pf=["value"],Df=["disabled"],Ef={class:"inline-actions"},Tf={class:"badge"},If=["onClick"],Of=["onClick"],Af=["disabled","onClick"],Uf={key:0,class:"empty"},Mf={key:0,class:"editor-panel"},Rf={key:6,class:"split-view"},$f={class:"list-view"},Vf={class:"inline-actions"},Bf=["disabled"],Lf=["disabled"],Ff={class:"form-grid"},Nf=["disabled"],jf={key:0},Wf={class:"list-view"},Hf={class:"inline-actions"},Kf={class:"badge"},qf=["disabled","onClick"],Jf=["disabled","onClick"],Gf=["disabled","onClick"],zf={key:0,class:"empty"},Yf={key:7,class:"logs-view"},Qf={class:"split-view"},Xf={class:"list-view"},Zf={class:"form-grid"},ep={value:""},tp=["value"],lp=["disabled"],np={key:0,class:"empty"},op={class:"list-view"},sp={class:"form-grid"},ip=["disabled"],rp={class:"badge"},ap={key:0,class:"empty"},up={class:"split-view"},dp={class:"list-view"},cp={class:"form-grid"},fp=["disabled"],pp={key:0,class:"empty"},vp={class:"list-view"},gp={class:"form-grid"},_p=["disabled"],hp={class:"badge"},mp={key:0,class:"empty"},yp={class:"list-view"},bp={class:"form-grid"},wp=["disabled"],kp={class:"badge"},xp={key:0,class:"empty"},Cp={key:0},Sp={class:"list-view"},Pp={class:"form-grid"},Dp=["disabled"],Ep={key:0,class:"empty"},Tp={key:0},Ip={class:"list-view"},Op={class:"form-grid"},Ap=["disabled"],Up={key:0,class:"empty"},Mp={key:8,class:"settings-view"},Rp={class:"toolbar"},$p=["disabled"],Vp=["disabled"],Bp=["disabled"],Lp=["disabled"],Fp=["disabled"],Np=["disabled"],jp=["disabled"],Wp={class:"settings-sections"},Hp={class:"editor-panel"},Kp={class:"editor-panel"},qp=["disabled"],Jp={class:"editor-panel"},Gp={class:"inline-actions"},zp=["disabled","onClick"],Yp=["disabled","onClick"],Qp={key:0,class:"editor-panel"},Xp={class:"split-view"},Zp={class:"list-view"},ev={class:"list-view"},tv={key:1,class:"editor-panel"},lv={class:"inspector"},nv={class:"inspector-form"},ov=["disabled"],sv={key:0},iv=ka({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",reRecognize:"重新识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileArchived:"角色已归档",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",idempotencyKey:"幂等键",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",applyFilters:"应用筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",integrationEvents:"集成事件",eventStream:"事件流",ssePreview:"SSE Preview",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyEvents:"暂无事件",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",storageMigrate:"迁移预检",sourceUri:"源 URI",targetUri:"目标 URI",fileCount:"文件数",dryRun:"DryRun",running:"运行"},l=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],o=l.map(c=>c.key),s=V(ri()),i=V(null),d=V(null),f=V(null),v=V([]),h=V(null),_=V([]),w=V([]),M=V(null),$=V(""),te=V([]),H=V(null),me=V(null),re=V(null),ee=V(null),X=V(null),j=V(null),_e=V([]),Ce=V(null),Ie=V([]),Fe=V([]),ht=V([]),He=V(null),ve=V({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ke=V([]),Xe=V(null),qe=V(null),mt=V(null),we=V(""),de=V(""),ne=V([]),Ve=V(null),it=V(null),Ne=V(null),De=V(null),le=V({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),Et=V(null),ce=V({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),Be=V({display_name:"",workflow_type:"single_image"}),Ze=V({branch_name:""}),Z=V({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Oe=V({model_route:"",prompt:"",negative_prompt:"",idempotency_key:""}),Ae=V({status:"",profile_id:"",workflow_id:""}),et=V({status:"",profile_id:"",workflow_id:"",node_id:""}),p=V({workflow_id:"",action:"",node_id:"",branch_name:""}),g=V({source:"",status:""}),m=V({integration_name:"",action:"",status:""}),C=V({integration_name:"",action:"",status:""}),S=V({event_type:""}),b=V({action:"",target_type:"",actor_id:""}),P=V({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),E=V({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),T=V({source_uri:"storage://images/sample.bin",target_uri:"storage://archives/sample.bin"}),y=V({category_id:"",name:"",category_type:"material",sort_order:0}),R=V({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),A=V({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),L=V(null),B=V({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),Q=V(null),F=V(""),oe=V(!0),D=V(""),ye=V(""),ke=It(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.profile_id)??""}),je=It(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.name)??t.noProfile}),Ut=It(()=>{var u;const c=(u=d.value)==null?void 0:u.queue;return c?c.pending+c.running+c.failed+c.dead_letter:0}),bl=It(()=>{var c;return((c=Ce.value)==null?void 0:c.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),Ue=It(()=>{var c;return(((c=Ce.value)==null?void 0:c.items)??[]).filter(u=>u.recognition_status==="confirmed")}),Je=It(()=>{var c;return((c=h.value)==null?void 0:c.nodes.find(u=>u.node_id===$.value))??null}),Xt=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],wl=It(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[s.value]);$s(on);function ri(){const c=new URLSearchParams(window.location.search).get("view");return o.includes(c)?c:"dashboard"}async function on(){var c,u;oe.value=!0,ye.value="";try{const[W,se,xe,ze,Cl,Zt,Sl,Pl,Dl,El,Tl]=await Promise.all([z(I.uiBootstrap),z(I.dashboardSummary),z(I.profiles,{page:1,page_size:20}),z(I.jobs,{page:1,page_size:20}),z(I.settingsSchema),z(I.settingsCurrent),z(I.storageStatus),z(I.materialCategories),z(I.materials,{page:1,page_size:24}),z(I.apiDiscoveryDialects),z(I.apiDiscoveryCapabilities)]);i.value=W,d.value=se,f.value=xe,me.value=ze,ee.value=Cl,X.value=Zt,jt(Zt.config),j.value=Sl,_e.value=Pl,Ce.value=Dl,Fe.value=El,ht.value=Tl,await _i((c=xe.items[0])==null?void 0:c.profile_id),await hi((u=xe.items[0])==null?void 0:u.profile_id),await ai(),await Qn()}catch(W){ye.value=W instanceof Error?W.message:t.loadFailed}finally{oe.value=!1}}async function ai(){const[c,u,W,se,xe,ze]=await Promise.allSettled([z(I.generationLogs,tt(et.value,12)),z(I.workflowLogs,tt(p.value,12)),z(I.errorLogs,tt(g.value,12)),z(I.integrationLogs,tt(m.value,12)),z(I.integrationEventLogs,tt(C.value,20)),z(I.auditLogs,{limit:12})]);ve.value={generation:Nt(c),workflows:Nt(u),errors:Nt(W),integrations:Nt(se),audit:Nt(ze)},Ke.value=Nt(xe)}async function ui(){ve.value.generation=await z(I.generationLogs,tt(et.value,20))}async function di(){ve.value.workflows=await z(I.workflowLogs,tt(p.value,20))}async function ci(){ve.value.errors=await z(I.errorLogs,tt(g.value,20))}async function fi(){ve.value.integrations=await z(I.integrationLogs,tt(m.value,20))}async function pi(){Ke.value=await z(I.integrationEventLogs,tt(C.value,20))}async function Qn(){Xe.value=await z(I.eventStream,tt(S.value,20))}async function vi(){ve.value.audit=await z(I.auditLogs,{action:b.value.action||void 0,target_type:b.value.target_type||void 0,actor_id:b.value.actor_id||void 0,limit:20})}function Nt(c){return c.status==="fulfilled"?c.value:[]}function tt(c,u){const W={limit:u};for(const[se,xe]of Object.entries(c)){const ze=xe.trim();W[se]=ze||void 0}return W}async function gi(){me.value=await z(I.jobs,{status:Ae.value.status||void 0,profile_id:Ae.value.profile_id||void 0,workflow_id:Ae.value.workflow_id||void 0,page:1,page_size:20})}async function _i(c){if(!c){Ie.value=[];return}Ie.value=await z(I.wardrobe(c))}async function hi(c){var se,xe;if(!c){v.value=[],h.value=null,_.value=[],w.value=[],$.value="",te.value=[];return}v.value=await z(I.profileWorkflows(c));const u=(se=h.value)==null?void 0:se.workflow.workflow_id,W=v.value.some(ze=>ze.workflow_id===u)?u:(xe=v.value[0])==null?void 0:xe.workflow_id;W?await sn(W):h.value=null}async function sn(c){var xe;const u=await z(I.workflow(c));h.value=u;const W=$.value,se=u.nodes.some(ze=>ze.node_id===W)?W:u.workflow.current_node_id||((xe=u.nodes[0])==null?void 0:xe.node_id);se?await Xn(se):($.value="",te.value=[]),await mi(c)}async function Xn(c){$.value=c,te.value=await z(I.nodeImages(c))}async function mi(c){const[u,W]=await Promise.all([z(I.workflowBranches(c)),z(I.workflowHistory(c))]);_.value=u,w.value=W}async function Ge(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;c&&await sn(c)}async function N(c,u,W=!0){D.value=c,ye.value="";try{const se=await u();F.value=`${c}${t.complete}`,c===t.exportSettings&&(F.value=`${t.exportDone}: ${!!se.redacted}`),W&&await on()}catch(se){ye.value=se instanceof Error?se.message:`${c}${t.failed}`}finally{D.value=""}}function yi(c){return N(t.retry,()=>G(I.jobRetry(c)))}function bi(c){return N(t.cancel,()=>G(I.jobCancel(c)))}function wi(c){return N(t.detail,async()=>(re.value=await z(I.job(c)),re.value),!1)}function ki(){le.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},Et.value=null}function xi(){return N(t.quickDraft,async()=>(Et.value=await G(I.quickProfileDraft,{questionnaire:{name:le.value.name,identity:le.value.identity,personality:Tt(le.value.personality),hair_color:le.value.hair_color,hairstyle:le.value.hairstyle,eye_color:le.value.eye_color,style:le.value.style,clothing_keywords:Tt(le.value.clothing_keywords)}}),Et.value),!1)}function Ci(){var u;const c=(u=Et.value)==null?void 0:u.profile_preview;return N(t.create,async()=>{const W=await G(I.profiles,{name:(c==null?void 0:c.name)||le.value.name,description:le.value.description,base_prompt:c==null?void 0:c.base_prompt,appearance_prompt:c==null?void 0:c.appearance_prompt,style_prompt:c==null?void 0:c.style_prompt,negative_prompt:c==null?void 0:c.negative_prompt});return ki(),F.value=t.profileCreated,W})}function Si(c){return N(t.archive,async()=>{const u=await G(I.profileArchive(c));return F.value=t.profileArchived,u})}function Zn(){ce.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Pi(c){ce.value={profile_id:c.profile_id,name:c.name,description:c.description??"",base_prompt:c.base_prompt??"",appearance_prompt:c.appearance_prompt??"",style_prompt:c.style_prompt??"",negative_prompt:c.negative_prompt??"",default_model_route:c.default_model_route??""}}function Di(){return ce.value.profile_id?N(t.update,async()=>{const c=await ut(I.profile(ce.value.profile_id),{method:"PUT",body:{name:ce.value.name,description:ce.value.description||void 0,base_prompt:ce.value.base_prompt||void 0,appearance_prompt:ce.value.appearance_prompt||void 0,style_prompt:ce.value.style_prompt||void 0,negative_prompt:ce.value.negative_prompt||void 0,default_model_route:ce.value.default_model_route||void 0}});return Zn(),F.value=t.profileUpdated,c}):Promise.resolve()}function Ei(){const c=ke.value;return c?N(t.create,async()=>{const u=await G(I.profileWorkflows(c),{display_name:Be.value.display_name,workflow_type:Be.value.workflow_type});return Be.value.display_name="",h.value=u,F.value=t.workflowCreated,u}):Promise.resolve()}function Ti(c){return N(t.start,()=>G(I.workflowStart(c)))}function Ii(c){return N(t.cancel,()=>G(I.workflowCancel(c)))}function Oi(c){return N(t.archive,()=>G(I.workflowArchive(c)))}function Ai(){var u;const c=(u=h.value)==null?void 0:u.workflow;return!c||!Ze.value.branch_name?Promise.resolve():N(t.branches,async()=>{const W=await G(I.workflowBranches(c.workflow_id),{branch_name:Ze.value.branch_name,base_branch_name:c.current_branch,base_node_id:$.value||c.current_node_id,copy_nodes:!0});return Ze.value.branch_name="",await Ge(),F.value=t.branchCreated,W},!1)}function Ui(c){var W;const u=(W=h.value)==null?void 0:W.workflow.workflow_id;return u?N(t.switchBranch,async()=>{const se=await G(I.workflowSwitchBranch(u),{branch_name:c});return await Ge(),se},!1):Promise.resolve()}function rn(){Z.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Mi(c){Z.value={node_id:c.node_id,node_key:c.node_key,title:c.title,description:c.description??"",node_type:c.node_type,status:c.status,prompt:c.prompt??"",negative_prompt:c.negative_prompt??"",model_route:c.model_route??""}}function Ri(){var W;const c=(W=h.value)==null?void 0:W.workflow.workflow_id;if(!c||!Z.value.node_key||!Z.value.title)return Promise.resolve();const u={node_key:Z.value.node_key,title:Z.value.title,description:Z.value.description||void 0,node_type:Z.value.node_type||"generation",status:Z.value.status||"pending",prompt:Z.value.prompt||void 0,negative_prompt:Z.value.negative_prompt||void 0,model_route:Z.value.model_route||void 0};return Z.value.node_id?N(t.update,async()=>{const se=await ut(I.node(Z.value.node_id),{method:"PUT",body:u});return rn(),await Ge(),F.value=t.nodeUpdated,se},!1):N(t.create,async()=>{const se=await G(I.workflowNodes(c),u);return rn(),await Ge(),F.value=t.nodeCreated,se},!1)}function $i(){var u;const c=(u=h.value)==null?void 0:u.workflow.workflow_id;return c?N(t.review,async()=>(M.value=await z(I.workflowReview(c)),M.value),!1):Promise.resolve()}function Vi(){const c=$.value;return c?N(t.review,async()=>(M.value=await z(I.nodeReview(c)),M.value),!1):Promise.resolve()}function Bi(){const c=$.value;return c?N(t.generate,async()=>(H.value=await G(I.nodeGenerate(c),{model_route:Oe.value.model_route||void 0,prompt:Oe.value.prompt||void 0,negative_prompt:Oe.value.negative_prompt||void 0,idempotency_key:Oe.value.idempotency_key||void 0}),await Ge(),F.value=t.generationQueued,H.value),!1):Promise.resolve()}function Li(c){return N(t.retry,async()=>{const u=await G(I.nodeRetry(c));return await Ge(),F.value=t.nodeQueued,u},!1)}function Fi(c){return N(t.complete,async()=>{const u=await G(I.nodeMarkCompleted(c));return await Ge(),F.value=t.nodeCompleted,u},!1)}function Ni(c){const u=$.value;return u?N(t.select,async()=>{const W=await G(I.nodeSelectImage(u),{image_id:c});return await Ge(),W},!1):Promise.resolve()}function ji(c){const u=$.value;return u?N(t.adopt,async()=>{var se;const W=await G(I.nodeAdoptImage(u),{image_id:c,title:(se=Je.value)==null?void 0:se.title});return await Ge(),W},!1):Promise.resolve()}function Wi(c){return N(t.unselect,async()=>{const u=await G(I.imageUnselect(c));return await Ge(),u},!1)}function Hi(c){return N(t.archive,async()=>{const u=await G(I.imageArchive(c));return await Ge(),F.value=t.imageArchived,u},!1)}function Ki(c){return N(t.delete,async()=>{const u=await ut(I.image(c),{method:"DELETE"});return await Ge(),F.value=t.imageDeleted,u},!1)}function qi(){return N(t.moveFailed,()=>G(I.jobDeadLetterMoveFailed,{limit:20}))}function Ji(){return N(t.retryDead,()=>G(I.jobDeadLetterRetry,{limit:20}))}function Gi(){var u;const c=((u=Fe.value[0])==null?void 0:u.dialect)??"unknown";return N(t.safeProbe,()=>G(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:c,capabilities:{supports:["text_to_image"]}}))}function zi(){var u;const c=((u=Fe.value[0])==null?void 0:u.dialect)??"unknown";return N(t.probeProvider,()=>G(I.apiDiscoveryProbeProvider,{provider_id:B.value.provider_id||"local-preview",model_id:B.value.model_id||"metadata-only",dialect:c,capabilities:{supports:Tt(B.value.required_capabilities)}}))}function Yi(){return N(t.validatePlan,async()=>(Q.value=await G(I.apiDiscoveryValidateRenderPlan,{provider_id:B.value.provider_id,model_id:B.value.model_id,required_capabilities:Tt(B.value.required_capabilities)}),Q.value),!1)}function an(c,u){return N(t.discovery,()=>G(I.apiDiscoveryManualOverride,{provider_id:c.provider_id,model_id:c.model_id,dialect:c.dialect,status:u,capabilities:c.capabilities}))}function Qi(){const c=ke.value;return c?N(t.matchWardrobe,async()=>(He.value=await G(I.wardrobeMatch(c),{tags:["daily"]}),He.value),!1):Promise.resolve()}function Xi(){R.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Zi(){const c=ke.value;return c?N(t.importToWardrobe,async()=>{const u=await G(I.wardrobeItems(c),{material_id:R.value.material_id,wardrobe_category:R.value.wardrobe_category,tags:Tt(R.value.tags),season:R.value.season||void 0,style:R.value.style||void 0});return Xi(),F.value=t.wardrobeImported,u}):Promise.resolve()}function er(c){const u=ke.value;return u?N(t.delete,async()=>{const W=await ut(I.wardrobeItem(u,c),{method:"DELETE"});return F.value=t.wardrobeDeleted,W}):Promise.resolve()}function tr(){const c=ke.value;return c?N(t.dailyOutfit,async()=>(L.value=await G(I.privateCompanionDailyOutfit,{profile_id:c,categories:Tt(A.value.categories),mood:A.value.mood,weather:A.value.weather,keywords:Tt(A.value.keywords),request_source:"astrbot_plugin_private_companion"}),F.value=t.outfitGenerated,L.value),!1):Promise.resolve()}function lr(){return N(t.reload,async()=>{var u;const c=await G(I.settingsReload);return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},jt(c.config),c},!1)}function nr(){return N(t.exportSettings,async()=>(it.value=await z(I.settingsExport),it.value),!1)}function jt(c=(u=>(u=X.value)==null?void 0:u.config)()??{}){we.value=JSON.stringify(c,null,2),Ne.value=null,De.value=null}function un(){try{const c=JSON.parse(we.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.settingsDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.settingsDraftInvalid)}}function or(){try{const c=JSON.parse(de.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.importDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.importDraftInvalid)}}function sr(){return N(t.validate,async()=>(Ne.value=await G(I.settingsValidate,{config:un()}),Ne.value),!1)}function ir(){return N(t.diff,async()=>(De.value=await G(I.settingsDiff,{config:un()}),De.value),!1)}function rr(){return N(t.save,async()=>{var u;const c=await G(I.settingsSave,{config:un()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},jt(c.config),F.value=t.settingsSaved,c},!1)}function ar(){return N(t.importSettings,async()=>{var u;const c=await G(I.settingsImport,{config:or()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},jt(c.config),de.value="",F.value=t.importDone,c},!1)}function eo(){return N(t.loadSnapshots,async()=>(ne.value=await z(I.settingsSnapshots,{limit:20}),Ve.value=ne.value[0]??null,ne.value),!1)}function ur(c){return N(t.loadSnapshot,async()=>(Ve.value=await z(I.settingsSnapshot(c)),Ve.value),!1)}function dr(c){return N(t.rollback,async()=>{var W;const u=await G(I.settingsRollback,{snapshot_id:c});return X.value={config_path:((W=X.value)==null?void 0:W.config_path)??"***PATH***",config:u.config},jt(u.config),await eo(),F.value=t.rollbackDone,u},!1)}function cr(){var u,W;const c=(W=(u=Ce.value)==null?void 0:u.items.find(se=>{var xe;return(xe=se.image_uri)==null?void 0:xe.startsWith("storage://")}))==null?void 0:W.image_uri;return c?N(t.signMaterial,async()=>(qe.value=await z(I.mediaSign,{uri:c}),qe.value),!1):(F.value=t.noSignableMaterial,Promise.resolve())}function fr(c){return c!=null&&c.startsWith("storage://")?N(t.signMaterial,async()=>(qe.value=await z(I.mediaSign,{uri:c}),qe.value),!1):(F.value=t.noSignableMaterial,Promise.resolve())}function kl(){y.value={category_id:"",name:"",category_type:"material",sort_order:0}}function pr(c){y.value={category_id:c.category_id,name:c.name,category_type:c.category_type,sort_order:c.sort_order}}function vr(){const c={name:y.value.name,category_type:y.value.category_type,sort_order:Number(y.value.sort_order)||0};return y.value.category_id?N(t.update,async()=>{const u=await ut(I.materialCategory(y.value.category_id),{method:"PUT",body:c});return kl(),F.value=t.categoryUpdated,u}):N(t.create,async()=>{const u=await G(I.materialCategories,c);return kl(),F.value=t.categoryCreated,u})}function gr(c){return N(t.delete,async()=>{const u=await ut(I.materialCategory(c),{method:"DELETE"});return y.value.category_id===c&&kl(),F.value=t.categoryDeleted,u})}function dn(){P.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function _r(){const c={display_name:P.value.display_name,image_uri:P.value.image_uri||void 0,thumbnail_uri:P.value.image_uri||void 0,category_id:P.value.category_id||void 0,tags:Tt(P.value.tags),prompt:P.value.prompt||void 0,negative_prompt:P.value.negative_prompt||void 0,recognition_status:P.value.image_uri?"pending_recognition":"pending_upload"};return P.value.material_id?N(t.update,async()=>{const u=await ut(I.material(P.value.material_id),{method:"PUT",body:c});return dn(),F.value=t.materialUpdated,u}):N(t.create,async()=>{const u=await G(I.materials,c);return dn(),F.value=t.materialCreated,u})}function hr(c){P.value={material_id:c.material_id,display_name:c.display_name,image_uri:c.image_uri??"",tags:c.tags.join(", "),category_id:c.category_id??"",prompt:c.prompt??"",negative_prompt:c.negative_prompt??""}}function to(){E.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function mr(){return N(t.upload,async()=>{const c=await G(I.materialUpload,{display_name:E.value.display_name||void 0,filename:E.value.filename||void 0,content_type:E.value.content_type||void 0,image_uri:E.value.image_uri,category_id:E.value.category_id||void 0});return to(),F.value=t.materialUploaded,c})}function yr(c){const u=c.recognition_status==="confirmed"?I.materialReRecognize(c.material_id):I.materialRecognize(c.material_id),W=c.recognition_status==="confirmed"?t.reRecognize:t.recognize;return N(W,()=>G(u))}function br(c){return N(t.confirm,()=>G(I.materialConfirm(c.material_id),{display_name:c.display_name,prompt:c.prompt,negative_prompt:c.negative_prompt,tags:c.tags}))}function wr(c){return N(t.archive,async()=>{const u=await ut(I.material(c),{method:"DELETE"});return F.value=t.materialArchived,u})}function Tt(c){return c.split(",").map(u=>u.trim()).filter(Boolean)}function xl(c=0){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(1)} GB`}function lo(c){var u,W;return((W=(u=j.value)==null?void 0:u.roots.find(se=>se.uri_prefix===c))==null?void 0:W.bytes)??0}function kr(){return N(t.storageMigrate,async()=>(mt.value=await G(I.storageMigrate,{source_uri:T.value.source_uri,target_uri:T.value.target_uri,dry_run:!0}),mt.value),!1)}return(c,u)=>{var W,se,xe,ze,Cl,Zt,Sl,Pl,Dl,El,Tl,no,oo,so,io,ro,ao,uo,co,fo,po,vo,go,_o,ho,mo,yo,bo,wo,ko;return k(),x("main",ed,[n("aside",td,[n("div",ld,[n("strong",null,a(((W=i.value)==null?void 0:W.display_name)??"ImageStudio"),1),n("span",null,a(((se=i.value)==null?void 0:se.dashboard_user)??"AstrBot"),1)]),n("nav",null,[(k(),x(Y,null,fe(l,r=>n("button",{key:r.key,type:"button",class:Ql({active:s.value===r.key}),onClick:ie=>s.value=r.key},a(r.label),11,nd)),64))])]),n("section",od,[n("header",sd,[n("div",null,[n("h1",null,a(wl.value),1),n("p",null,a(((xe=d.value)==null?void 0:xe.plugin_status)??"loading")+" / "+a(F.value||t.waiting),1)]),n("div",id,[n("button",{type:"button",disabled:!!D.value,onClick:on},a(D.value||t.refresh),9,rd)])]),ye.value?(k(),x("section",ad,a(ye.value),1)):oe.value?(k(),x("section",ud,a(t.loading),1)):(k(),x(Y,{key:2},[s.value==="dashboard"?(k(),x("section",dd,[n("article",null,[n("span",null,a(t.profiles),1),n("strong",null,a(((ze=d.value)==null?void 0:ze.active_profiles)??0),1)]),n("article",null,[n("span",null,a(t.jobs),1),n("strong",null,a(Ut.value),1)]),n("article",null,[n("span",null,a(t.materials),1),n("strong",null,a(((Cl=Ce.value)==null?void 0:Cl.total)??0),1)]),n("article",null,[n("span",null,a(t.storage),1),n("strong",null,a(xl(((Zt=j.value)==null?void 0:Zt.total_bytes)??((Sl=d.value)==null?void 0:Sl.storage.total_bytes))),1)])])):K("",!0),s.value==="profiles"?(k(),x("section",cd,[n("header",null,[n("h2",null,a(t.profileList),1),n("span",null,a(((Pl=f.value)==null?void 0:Pl.total)??0),1)]),n("div",fd,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[0]||(u[0]=r=>le.value.name=r),type:"text"},null,512),[[U,le.value.name]])]),n("label",null,[n("span",null,a(t.identity),1),O(n("input",{"onUpdate:modelValue":u[1]||(u[1]=r=>le.value.identity=r),type:"text"},null,512),[[U,le.value.identity]])]),n("label",null,[n("span",null,a(t.personality),1),O(n("input",{"onUpdate:modelValue":u[2]||(u[2]=r=>le.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[U,le.value.personality]])]),n("label",null,[n("span",null,a(t.hairColor),1),O(n("input",{"onUpdate:modelValue":u[3]||(u[3]=r=>le.value.hair_color=r),type:"text"},null,512),[[U,le.value.hair_color]])]),n("label",null,[n("span",null,a(t.hairstyle),1),O(n("input",{"onUpdate:modelValue":u[4]||(u[4]=r=>le.value.hairstyle=r),type:"text"},null,512),[[U,le.value.hairstyle]])]),n("label",null,[n("span",null,a(t.eyeColor),1),O(n("input",{"onUpdate:modelValue":u[5]||(u[5]=r=>le.value.eye_color=r),type:"text"},null,512),[[U,le.value.eye_color]])]),n("label",null,[n("span",null,a(t.stylePrompt),1),O(n("input",{"onUpdate:modelValue":u[6]||(u[6]=r=>le.value.style=r),type:"text"},null,512),[[U,le.value.style]])]),n("label",null,[n("span",null,a(t.tags),1),O(n("input",{"onUpdate:modelValue":u[7]||(u[7]=r=>le.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[U,le.value.clothing_keywords]])]),n("label",pd,[n("span",null,a(t.description),1),O(n("input",{"onUpdate:modelValue":u[8]||(u[8]=r=>le.value.description=r),type:"text"},null,512),[[U,le.value.description]])]),n("button",{type:"button",disabled:!!D.value||!le.value.name,onClick:xi},a(t.quickDraft),9,vd),n("button",{type:"button",disabled:!!D.value||!le.value.name,onClick:Ci},a(t.create),9,gd)]),Et.value?(k(),x("pre",_d,a(JSON.stringify(Et.value,null,2)),1)):K("",!0),ce.value.profile_id?(k(),x("div",hd,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[9]||(u[9]=r=>ce.value.name=r),type:"text"},null,512),[[U,ce.value.name]])]),n("label",null,[n("span",null,a(t.provider),1),O(n("input",{"onUpdate:modelValue":u[10]||(u[10]=r=>ce.value.default_model_route=r),type:"text"},null,512),[[U,ce.value.default_model_route]])]),n("label",md,[n("span",null,a(t.description),1),O(n("input",{"onUpdate:modelValue":u[11]||(u[11]=r=>ce.value.description=r),type:"text"},null,512),[[U,ce.value.description]])]),n("label",yd,[n("span",null,a(t.basePrompt),1),O(n("input",{"onUpdate:modelValue":u[12]||(u[12]=r=>ce.value.base_prompt=r),type:"text"},null,512),[[U,ce.value.base_prompt]])]),n("label",bd,[n("span",null,a(t.appearancePrompt),1),O(n("input",{"onUpdate:modelValue":u[13]||(u[13]=r=>ce.value.appearance_prompt=r),type:"text"},null,512),[[U,ce.value.appearance_prompt]])]),n("label",wd,[n("span",null,a(t.stylePrompt),1),O(n("input",{"onUpdate:modelValue":u[14]||(u[14]=r=>ce.value.style_prompt=r),type:"text"},null,512),[[U,ce.value.style_prompt]])]),n("label",kd,[n("span",null,a(t.negativePrompt),1),O(n("input",{"onUpdate:modelValue":u[15]||(u[15]=r=>ce.value.negative_prompt=r),type:"text"},null,512),[[U,ce.value.negative_prompt]])]),n("button",{type:"button",disabled:!!D.value||!ce.value.name,onClick:Di},a(t.update),9,xd),n("button",{type:"button",disabled:!!D.value,onClick:Zn},a(t.reset),9,Cd)])):K("",!0),n("ul",null,[(k(!0),x(Y,null,fe(((Dl=f.value)==null?void 0:Dl.items)??[],r=>(k(),x("li",{key:r.profile_id},[n("div",null,[n("strong",null,a(r.name),1),n("small",null,a(r.profile_id),1)]),n("div",Sd,[n("span",Pd,a(r.status),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Pi(r)},a(t.edit),9,Dd),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Si(r.profile_id)},a(t.archive),9,Ed)])]))),128)),(El=f.value)!=null&&El.items.length?K("",!0):(k(),x("li",Td,a(t.emptyProfiles),1))])])):K("",!0),s.value==="workflows"?(k(),x("section",Id,[n("div",Od,[n("header",null,[n("h2",null,a(je.value),1),n("span",null,a(v.value.length),1)]),n("div",Ad,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[16]||(u[16]=r=>Be.value.display_name=r),type:"text"},null,512),[[U,Be.value.display_name]])]),n("label",null,[n("span",null,a(t.workflowType),1),O(n("select",{"onUpdate:modelValue":u[17]||(u[17]=r=>Be.value.workflow_type=r)},[...u[85]||(u[85]=[n("option",{value:"single_image"},"single_image",-1),n("option",{value:"character_gradual"},"character_gradual",-1),n("option",{value:"character_fast"},"character_fast",-1),n("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[bt,Be.value.workflow_type]])]),n("button",{type:"button",disabled:!!D.value||!ke.value||!Be.value.display_name,onClick:Ei},a(t.create),9,Ud)]),n("ul",null,[(k(!0),x(Y,null,fe(v.value,r=>(k(),x("li",{key:r.workflow_id},[n("div",null,[n("strong",null,a(r.display_name),1),n("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),n("div",Md,[n("span",Rd,a(r.status),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>sn(r.workflow_id)},a(t.nodes),9,$d),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Ti(r.workflow_id)},a(t.start),9,Vd),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Ii(r.workflow_id)},a(t.cancel),9,Bd),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Oi(r.workflow_id)},a(t.archive),9,Ld)])]))),128)),v.value.length?K("",!0):(k(),x("li",Fd,a(t.emptyWorkflows),1))]),h.value?(k(),x("section",Nd,[n("header",null,[n("h2",null,a(t.branches),1),n("span",null,a(_.value.length),1)]),n("div",jd,[n("label",null,[n("span",null,a(t.branchName),1),O(n("input",{"onUpdate:modelValue":u[18]||(u[18]=r=>Ze.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[U,Ze.value.branch_name]])]),n("button",{type:"button",disabled:!!D.value||!Ze.value.branch_name,onClick:Ai},a(t.create),9,Wd)]),n("ul",null,[(k(!0),x(Y,null,fe(_.value,r=>(k(),x("li",{key:r.branch_id},[n("div",null,[n("strong",null,a(r.branch_name),1),n("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Ui(r.branch_name)},a(t.switchBranch),9,Hd)]))),128))])])):K("",!0)]),n("div",Kd,[n("header",null,[n("h2",null,a(t.nodes),1),n("div",qd,[n("span",null,a(((Tl=h.value)==null?void 0:Tl.workflow.current_branch)??"main"),1),n("button",{type:"button",disabled:!!D.value||!h.value,onClick:$i},a(t.review),9,Jd)])]),n("div",Gd,[n("label",null,[n("span",null,a(t.nodeKey),1),O(n("input",{"onUpdate:modelValue":u[19]||(u[19]=r=>Z.value.node_key=r),type:"text"},null,512),[[U,Z.value.node_key]])]),n("label",null,[n("span",null,a(t.nodeTitle),1),O(n("input",{"onUpdate:modelValue":u[20]||(u[20]=r=>Z.value.title=r),type:"text"},null,512),[[U,Z.value.title]])]),n("label",null,[n("span",null,a(t.nodeType),1),O(n("input",{"onUpdate:modelValue":u[21]||(u[21]=r=>Z.value.node_type=r),type:"text"},null,512),[[U,Z.value.node_type]])]),n("label",null,[n("span",null,a(t.status),1),O(n("input",{"onUpdate:modelValue":u[22]||(u[22]=r=>Z.value.status=r),type:"text"},null,512),[[U,Z.value.status]])]),n("label",zd,[n("span",null,a(t.description),1),O(n("input",{"onUpdate:modelValue":u[23]||(u[23]=r=>Z.value.description=r),type:"text"},null,512),[[U,Z.value.description]])]),n("label",Yd,[n("span",null,a(t.prompt),1),O(n("input",{"onUpdate:modelValue":u[24]||(u[24]=r=>Z.value.prompt=r),type:"text"},null,512),[[U,Z.value.prompt]])]),n("label",Qd,[n("span",null,a(t.negativePrompt),1),O(n("input",{"onUpdate:modelValue":u[25]||(u[25]=r=>Z.value.negative_prompt=r),type:"text"},null,512),[[U,Z.value.negative_prompt]])]),n("label",null,[n("span",null,a(t.modelRoute),1),O(n("input",{"onUpdate:modelValue":u[26]||(u[26]=r=>Z.value.model_route=r),type:"text"},null,512),[[U,Z.value.model_route]])]),n("button",{type:"button",disabled:!!D.value||!Z.value.node_key||!Z.value.title,onClick:Ri},a(Z.value.node_id?t.update:t.create),9,Xd),n("button",{type:"button",disabled:!!D.value,onClick:rn},a(t.reset),9,Zd)]),n("div",ec,[n("label",null,[n("span",null,a(t.modelRoute),1),O(n("input",{"onUpdate:modelValue":u[27]||(u[27]=r=>Oe.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[U,Oe.value.model_route]])]),n("label",null,[n("span",null,a(t.idempotencyKey),1),O(n("input",{"onUpdate:modelValue":u[28]||(u[28]=r=>Oe.value.idempotency_key=r),type:"text",placeholder:"node-generate-001"},null,512),[[U,Oe.value.idempotency_key]])]),n("label",null,[n("span",null,a(t.prompt),1),O(n("input",{"onUpdate:modelValue":u[29]||(u[29]=r=>Oe.value.prompt=r),type:"text"},null,512),[[U,Oe.value.prompt]])]),n("label",tc,[n("span",null,a(t.negativePrompt),1),O(n("input",{"onUpdate:modelValue":u[30]||(u[30]=r=>Oe.value.negative_prompt=r),type:"text"},null,512),[[U,Oe.value.negative_prompt]])]),n("button",{type:"button",disabled:!!D.value||!$.value,onClick:Bi},a(t.generate),9,lc),n("button",{type:"button",disabled:!!D.value||!$.value,onClick:Vi},a(t.review),9,nc)]),n("ul",null,[(k(!0),x(Y,null,fe(((no=h.value)==null?void 0:no.nodes)??[],r=>(k(),x("li",{key:r.node_id},[n("div",null,[n("strong",null,a(r.title),1),n("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),n("div",oc,[n("span",null,a(r.branch_name),1),n("span",sc,a(r.status),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Mi(r)},a(t.edit),9,ic),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Li(r.node_id)},a(t.retry),9,rc),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Fi(r.node_id)},a(t.complete),9,ac),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Xn(r.node_id)},a(t.images),9,uc)])]))),128)),(oo=h.value)!=null&&oo.nodes.length?K("",!0):(k(),x("li",dc,a(t.emptyWorkflows),1))]),n("ul",null,[(k(!0),x(Y,null,fe(te.value,r=>(k(),x("li",{key:r.image_id},[n("div",null,[n("strong",null,a(r.image_id),1),n("small",null,a(r.thumbnail_uri??r.image_uri),1)]),n("div",cc,[r.is_selected?(k(),x("span",fc,a(t.select),1)):K("",!0),n("button",{type:"button",disabled:!!D.value||r.is_selected||r.is_archived,onClick:ie=>Ni(r.image_id)},a(t.select),9,pc),n("button",{type:"button",disabled:!!D.value||r.is_archived,onClick:ie=>ji(r.image_id)},a(t.adopt),9,vc),n("button",{type:"button",disabled:!!D.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:ie=>fr(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,gc),n("button",{type:"button",disabled:!!D.value||!r.is_selected,onClick:ie=>Wi(r.image_id)},a(t.unselect),9,_c),n("button",{type:"button",disabled:!!D.value||r.is_archived,onClick:ie=>Hi(r.image_id)},a(t.archive),9,hc),n("button",{type:"button",disabled:!!D.value,onClick:ie=>Ki(r.image_id)},a(t.delete),9,mc)])]))),128)),te.value.length?K("",!0):(k(),x("li",yc,a(t.emptyImages),1))]),qe.value?(k(),x("pre",bc,a(JSON.stringify(qe.value,null,2)),1)):K("",!0),H.value?(k(),x("pre",wc,a(JSON.stringify(H.value,null,2)),1)):K("",!0),n("section",kc,[n("header",null,[n("h2",null,a(t.history),1),n("span",null,a(w.value.length),1)]),n("ul",null,[(k(!0),x(Y,null,fe(w.value,r=>(k(),x("li",{key:r.history_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.title??r.node_id??r.workflow_id),1)]),n("span",null,a(r.branch_name),1)]))),128)),w.value.length?K("",!0):(k(),x("li",xc,a(t.emptyHistory),1))])]),M.value?(k(),x("section",Cc,[n("header",null,[n("h2",null,a(t.reviewResult),1),n("span",null,a(M.value.passed?t.support:t.unsupported),1)]),n("pre",null,a(JSON.stringify(M.value,null,2)),1)])):K("",!0),h.value?(k(),x("pre",Sc,a(JSON.stringify(h.value.workflow,null,2)),1)):K("",!0)])])):K("",!0),s.value==="materials"?(k(),x("section",Pc,[n("div",Dc,[n("header",null,[n("h2",null,a(t.materialCategories),1),n("span",null,a(_e.value.length),1)]),n("div",Ec,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[31]||(u[31]=r=>y.value.name=r),type:"text"},null,512),[[U,y.value.name]])]),n("label",null,[n("span",null,a(t.categoryType),1),O(n("input",{"onUpdate:modelValue":u[32]||(u[32]=r=>y.value.category_type=r),type:"text"},null,512),[[U,y.value.category_type]])]),n("label",null,[n("span",null,a(t.sortOrder),1),O(n("input",{"onUpdate:modelValue":u[33]||(u[33]=r=>y.value.sort_order=r),type:"number"},null,512),[[U,y.value.sort_order,void 0,{number:!0}]])]),n("button",{type:"button",disabled:!!D.value||!y.value.name,onClick:vr},a(y.value.category_id?t.update:t.create),9,Tc),n("button",{type:"button",disabled:!!D.value,onClick:kl},a(t.reset),9,Ic)]),n("ul",null,[(k(!0),x(Y,null,fe(_e.value,r=>(k(),x("li",{key:r.category_id},[n("div",null,[n("strong",null,a(r.name),1),n("small",null,a(r.category_type),1)]),n("div",Oc,[n("span",null,a(r.sort_order),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>pr(r)},a(t.edit),9,Ac),n("button",{type:"button",disabled:!!D.value,onClick:ie=>gr(r.category_id)},a(t.delete),9,Uc)])]))),128)),_e.value.length?K("",!0):(k(),x("li",Mc,a(t.emptyCategories),1))])]),n("div",Rc,[n("header",null,[n("h2",null,a(t.materialItems),1),n("div",$c,[n("span",null,a(bl.value)+" "+a(t.pendingConfirm),1),n("button",{type:"button",disabled:!!D.value,onClick:cr},a(t.signFirstImage),9,Vc)])]),n("div",Bc,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[34]||(u[34]=r=>P.value.display_name=r),type:"text"},null,512),[[U,P.value.display_name]])]),n("label",null,[n("span",null,a(t.imageUri),1),O(n("input",{"onUpdate:modelValue":u[35]||(u[35]=r=>P.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[U,P.value.image_uri]])]),n("label",null,[n("span",null,a(t.category),1),O(n("select",{"onUpdate:modelValue":u[36]||(u[36]=r=>P.value.category_id=r)},[n("option",Lc,a(t.allCategories),1),(k(!0),x(Y,null,fe(_e.value,r=>(k(),x("option",{key:r.category_id,value:r.category_id},a(r.name),9,Fc))),128))],512),[[bt,P.value.category_id]])]),n("label",null,[n("span",null,a(t.tags),1),O(n("input",{"onUpdate:modelValue":u[37]||(u[37]=r=>P.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,P.value.tags]])]),n("label",null,[n("span",null,a(t.prompt),1),O(n("input",{"onUpdate:modelValue":u[38]||(u[38]=r=>P.value.prompt=r),type:"text"},null,512),[[U,P.value.prompt]])]),n("label",null,[n("span",null,a(t.negativePrompt),1),O(n("input",{"onUpdate:modelValue":u[39]||(u[39]=r=>P.value.negative_prompt=r),type:"text"},null,512),[[U,P.value.negative_prompt]])]),n("button",{type:"button",disabled:!!D.value||!P.value.display_name,onClick:_r},a(P.value.material_id?t.update:t.create),9,Nc),n("button",{type:"button",disabled:!!D.value,onClick:dn},a(t.reset),9,jc)]),n("ul",null,[(k(!0),x(Y,null,fe(((so=Ce.value)==null?void 0:so.items)??[],r=>(k(),x("li",{key:r.material_id},[n("div",null,[n("strong",null,a(r.display_name),1),n("small",null,a(r.image_uri??t.noImage),1)]),n("div",Wc,[n("span",Hc,a(r.recognition_status),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>hr(r)},a(t.edit),9,Kc),n("button",{type:"button",disabled:!!D.value,onClick:ie=>yr(r)},a(r.recognition_status==="confirmed"?t.reRecognize:t.recognize),9,qc),n("button",{type:"button",disabled:!!D.value||r.recognition_status==="confirmed",onClick:ie=>br(r)},a(t.confirm),9,Jc),n("button",{type:"button",disabled:!!D.value,onClick:ie=>wr(r.material_id)},a(t.archive),9,Gc)])]))),128)),(io=Ce.value)!=null&&io.items.length?K("",!0):(k(),x("li",zc,a(t.emptyMaterials),1))]),n("div",Yc,[n("label",null,[n("span",null,a(t.name),1),O(n("input",{"onUpdate:modelValue":u[40]||(u[40]=r=>E.value.display_name=r),type:"text"},null,512),[[U,E.value.display_name]])]),n("label",null,[n("span",null,a(t.filename),1),O(n("input",{"onUpdate:modelValue":u[41]||(u[41]=r=>E.value.filename=r),type:"text"},null,512),[[U,E.value.filename]])]),n("label",null,[n("span",null,a(t.contentType),1),O(n("input",{"onUpdate:modelValue":u[42]||(u[42]=r=>E.value.content_type=r),type:"text"},null,512),[[U,E.value.content_type]])]),n("label",null,[n("span",null,a(t.imageUri),1),O(n("input",{"onUpdate:modelValue":u[43]||(u[43]=r=>E.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[U,E.value.image_uri]])]),n("label",null,[n("span",null,a(t.category),1),O(n("select",{"onUpdate:modelValue":u[44]||(u[44]=r=>E.value.category_id=r)},[n("option",Qc,a(t.allCategories),1),(k(!0),x(Y,null,fe(_e.value,r=>(k(),x("option",{key:r.category_id,value:r.category_id},a(r.name),9,Xc))),128))],512),[[bt,E.value.category_id]])]),n("button",{type:"button",disabled:!!D.value||!E.value.image_uri,onClick:mr},a(t.upload),9,Zc),n("button",{type:"button",disabled:!!D.value,onClick:to},a(t.reset),9,ef)]),qe.value?(k(),x("pre",tf,a(JSON.stringify(qe.value,null,2)),1)):K("",!0)])])):K("",!0),s.value==="wardrobe"?(k(),x("section",lf,[n("header",null,[n("h2",null,a(je.value),1),n("button",{type:"button",disabled:!ke.value||!!D.value,onClick:Qi},a(t.match),9,nf)]),n("div",of,[n("label",null,[n("span",null,a(t.selectMaterial),1),O(n("select",{"onUpdate:modelValue":u[45]||(u[45]=r=>R.value.material_id=r)},[n("option",sf,a(t.selectMaterial),1),(k(!0),x(Y,null,fe(Ue.value,r=>(k(),x("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,rf))),128))],512),[[bt,R.value.material_id]])]),n("label",null,[n("span",null,a(t.wardrobeCategory),1),O(n("input",{"onUpdate:modelValue":u[46]||(u[46]=r=>R.value.wardrobe_category=r),type:"text"},null,512),[[U,R.value.wardrobe_category]])]),n("label",null,[n("span",null,a(t.tags),1),O(n("input",{"onUpdate:modelValue":u[47]||(u[47]=r=>R.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[U,R.value.tags]])]),n("label",null,[n("span",null,a(t.season),1),O(n("input",{"onUpdate:modelValue":u[48]||(u[48]=r=>R.value.season=r),type:"text"},null,512),[[U,R.value.season]])]),n("label",null,[n("span",null,a(t.style),1),O(n("input",{"onUpdate:modelValue":u[49]||(u[49]=r=>R.value.style=r),type:"text"},null,512),[[U,R.value.style]])]),n("button",{type:"button",disabled:!!D.value||!ke.value||!R.value.material_id||!R.value.wardrobe_category,onClick:Zi},a(t.importToWardrobe),9,af)]),n("ul",null,[(k(!0),x(Y,null,fe(Ie.value,r=>(k(),x("li",{key:r.wardrobe_item_id},[n("div",null,[n("strong",null,a(r.wardrobe_category),1),n("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),n("div",uf,[n("span",null,a(r.usage_count),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>er(r.wardrobe_item_id)},a(t.delete),9,df)])]))),128)),Ie.value.length?K("",!0):(k(),x("li",cf,a(t.emptyWardrobe),1))]),He.value?(k(),x("pre",ff,a(JSON.stringify(He.value,null,2)),1)):K("",!0),n("div",pf,[n("label",null,[n("span",null,a(t.categories),1),O(n("input",{"onUpdate:modelValue":u[50]||(u[50]=r=>A.value.categories=r),type:"text"},null,512),[[U,A.value.categories]])]),n("label",null,[n("span",null,a(t.mood),1),O(n("input",{"onUpdate:modelValue":u[51]||(u[51]=r=>A.value.mood=r),type:"text"},null,512),[[U,A.value.mood]])]),n("label",null,[n("span",null,a(t.weather),1),O(n("input",{"onUpdate:modelValue":u[52]||(u[52]=r=>A.value.weather=r),type:"text"},null,512),[[U,A.value.weather]])]),n("label",null,[n("span",null,a(t.keywords),1),O(n("input",{"onUpdate:modelValue":u[53]||(u[53]=r=>A.value.keywords=r),type:"text"},null,512),[[U,A.value.keywords]])]),n("button",{type:"button",disabled:!!D.value||!ke.value,onClick:tr},a(t.dailyOutfit),9,vf)]),L.value?(k(),x("pre",gf,a(JSON.stringify(L.value,null,2)),1)):K("",!0)])):K("",!0),s.value==="jobs"?(k(),x("section",_f,[n("header",null,[n("h2",null,a(t.jobs),1),n("div",hf,[n("button",{type:"button",disabled:!!D.value,onClick:qi},a(t.moveFailed),9,mf),n("button",{type:"button",disabled:!!D.value,onClick:Ji},a(t.retryDead),9,yf)])]),n("div",bf,[n("label",null,[u[86]||(u[86]=n("span",null,"Status",-1)),O(n("select",{"onUpdate:modelValue":u[54]||(u[54]=r=>Ae.value.status=r)},[n("option",wf,a(t.allStatuses),1),(k(),x(Y,null,fe(Xt,r=>n("option",{key:r,value:r},a(r),9,kf)),64))],512),[[bt,Ae.value.status]])]),n("label",null,[n("span",null,a(t.profiles),1),O(n("select",{"onUpdate:modelValue":u[55]||(u[55]=r=>Ae.value.profile_id=r)},[n("option",xf,a(t.allProfiles),1),(k(!0),x(Y,null,fe(((ro=f.value)==null?void 0:ro.items)??[],r=>(k(),x("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,Cf))),128))],512),[[bt,Ae.value.profile_id]])]),n("label",null,[n("span",null,a(t.workflows),1),O(n("select",{"onUpdate:modelValue":u[56]||(u[56]=r=>Ae.value.workflow_id=r)},[n("option",Sf,a(t.allWorkflows),1),(k(!0),x(Y,null,fe(v.value,r=>(k(),x("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,Pf))),128))],512),[[bt,Ae.value.workflow_id]])]),n("button",{type:"button",disabled:!!D.value,onClick:gi},a(t.filter),9,Df)]),n("ul",null,[(k(!0),x(Y,null,fe(((ao=me.value)==null?void 0:ao.items)??[],r=>(k(),x("li",{key:r.task_id},[n("div",null,[n("strong",null,a(r.task_id),1),n("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),n("div",Ef,[n("span",Tf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(k(),x("button",{key:0,type:"button",onClick:ie=>yi(r.task_id)},a(t.retry),9,If)):K("",!0),["completed","succeeded","cancelled"].includes(r.status)?K("",!0):(k(),x("button",{key:1,type:"button",onClick:ie=>bi(r.task_id)},a(t.cancel),9,Of)),n("button",{type:"button",disabled:!!D.value,onClick:ie=>wi(r.task_id)},a(t.detail),9,Af)])]))),128)),(uo=me.value)!=null&&uo.items.length?K("",!0):(k(),x("li",Uf,a(t.emptyJobs),1))]),re.value?(k(),x("section",Mf,[n("header",null,[n("h2",null,a(t.jobDetail),1),n("span",null,a(re.value.status),1)]),n("pre",null,a(JSON.stringify(re.value,null,2)),1)])):K("",!0)])):K("",!0),s.value==="discovery"?(k(),x("section",Rf,[n("div",$f,[n("header",null,[n("h2",null,a(t.dialects),1),n("div",Vf,[n("button",{type:"button",disabled:!!D.value,onClick:zi},a(t.probeProvider),9,Bf),n("button",{type:"button",disabled:!!D.value,onClick:Gi},a(t.safeProbe),9,Lf)])]),n("ul",null,[(k(!0),x(Y,null,fe(Fe.value,r=>(k(),x("li",{key:r.dialect},[n("div",null,[n("strong",null,a(r.label),1),n("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),n("span",null,a(r.dialect),1)]))),128))]),n("div",Ff,[n("label",null,[n("span",null,a(t.provider),1),O(n("input",{"onUpdate:modelValue":u[57]||(u[57]=r=>B.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[U,B.value.provider_id]])]),n("label",null,[n("span",null,a(t.model),1),O(n("input",{"onUpdate:modelValue":u[58]||(u[58]=r=>B.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[U,B.value.model_id]])]),n("label",null,[n("span",null,a(t.requiredCapabilities),1),O(n("input",{"onUpdate:modelValue":u[59]||(u[59]=r=>B.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[U,B.value.required_capabilities]])]),n("button",{type:"button",disabled:!!D.value||!B.value.provider_id||!B.value.model_id,onClick:Yi},a(t.validatePlan),9,Nf)]),Q.value?(k(),x("pre",jf,a(JSON.stringify(Q.value,null,2)),1)):K("",!0)]),n("div",Wf,[n("header",null,[n("h2",null,a(t.capabilityProfiles),1),n("span",null,a(ht.value.length),1)]),n("ul",null,[(k(!0),x(Y,null,fe(ht.value,r=>(k(),x("li",{key:r.capability_profile_id},[n("div",null,[n("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),n("small",null,a(r.dialect),1)]),n("div",Hf,[n("span",Kf,a(r.status),1),n("button",{type:"button",disabled:!!D.value,onClick:ie=>an(r,"confirmed_supported")},a(t.support),9,qf),n("button",{type:"button",disabled:!!D.value,onClick:ie=>an(r,"confirmed_unsupported")},a(t.unsupported),9,Jf),n("button",{type:"button",disabled:!!D.value,onClick:ie=>an(r,"unconfirmed")},a(t.unconfirmed),9,Gf)])]))),128)),ht.value.length?K("",!0):(k(),x("li",zf,a(t.emptyCapabilities),1))])])])):K("",!0),s.value==="logs"?(k(),x("section",Yf,[n("div",Qf,[n("div",Xf,[n("header",null,[n("h2",null,a(t.generationLogs),1),n("span",null,a(ve.value.generation.length),1)]),n("div",Zf,[n("label",null,[n("span",null,a(t.status),1),O(n("select",{"onUpdate:modelValue":u[60]||(u[60]=r=>et.value.status=r)},[n("option",ep,a(t.allStatuses),1),(k(),x(Y,null,fe(Xt,r=>n("option",{key:`gen-${r}`,value:r},a(r),9,tp)),64))],512),[[bt,et.value.status]])]),n("label",null,[u[87]||(u[87]=n("span",null,"ProfileId",-1)),O(n("input",{"onUpdate:modelValue":u[61]||(u[61]=r=>et.value.profile_id=r),type:"text"},null,512),[[U,et.value.profile_id]])]),n("label",null,[u[88]||(u[88]=n("span",null,"WorkflowId",-1)),O(n("input",{"onUpdate:modelValue":u[62]||(u[62]=r=>et.value.workflow_id=r),type:"text"},null,512),[[U,et.value.workflow_id]])]),n("label",null,[u[89]||(u[89]=n("span",null,"NodeId",-1)),O(n("input",{"onUpdate:modelValue":u[63]||(u[63]=r=>et.value.node_id=r),type:"text"},null,512),[[U,et.value.node_id]])]),n("button",{type:"button",disabled:!!D.value,onClick:ui},a(t.applyFilters),9,lp)]),n("ul",null,[(k(!0),x(Y,null,fe(ve.value.generation,r=>(k(),x("li",{key:r.task_id},[n("div",null,[n("strong",null,a(r.task_id),1),n("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),n("span",null,a(r.created_at),1)]))),128)),ve.value.generation.length?K("",!0):(k(),x("li",np,a(t.emptyGenerationLogs),1))])]),n("div",op,[n("header",null,[n("h2",null,a(t.errorLogs),1),n("span",null,a(ve.value.errors.length),1)]),n("div",sp,[n("label",null,[u[91]||(u[91]=n("span",null,"Source",-1)),O(n("select",{"onUpdate:modelValue":u[64]||(u[64]=r=>g.value.source=r)},[...u[90]||(u[90]=[n("option",{value:""},"All",-1),n("option",{value:"generation_task"},"generation_task",-1),n("option",{value:"integration"},"integration",-1)])],512),[[bt,g.value.source]])]),n("label",null,[n("span",null,a(t.status),1),O(n("input",{"onUpdate:modelValue":u[65]||(u[65]=r=>g.value.status=r),type:"text"},null,512),[[U,g.value.status]])]),n("button",{type:"button",disabled:!!D.value,onClick:ci},a(t.applyFilters),9,ip)]),n("ul",null,[(k(!0),x(Y,null,fe(ve.value.errors,r=>(k(),x("li",{key:`${r.source}-${r.id}`},[n("div",null,[n("strong",null,a(r.source),1),n("small",null,a(r.error_message??t.noErrorDetail),1)]),n("span",rp,a(r.status),1)]))),128)),ve.value.errors.length?K("",!0):(k(),x("li",ap,a(t.emptyErrors),1))])])]),n("div",up,[n("div",dp,[n("header",null,[n("h2",null,a(t.workflowLogs),1),n("span",null,a(ve.value.workflows.length),1)]),n("div",cp,[n("label",null,[u[92]||(u[92]=n("span",null,"WorkflowId",-1)),O(n("input",{"onUpdate:modelValue":u[66]||(u[66]=r=>p.value.workflow_id=r),type:"text"},null,512),[[U,p.value.workflow_id]])]),n("label",null,[u[93]||(u[93]=n("span",null,"Action",-1)),O(n("input",{"onUpdate:modelValue":u[67]||(u[67]=r=>p.value.action=r),type:"text"},null,512),[[U,p.value.action]])]),n("label",null,[u[94]||(u[94]=n("span",null,"NodeId",-1)),O(n("input",{"onUpdate:modelValue":u[68]||(u[68]=r=>p.value.node_id=r),type:"text"},null,512),[[U,p.value.node_id]])]),n("label",null,[n("span",null,a(t.currentBranch),1),O(n("input",{"onUpdate:modelValue":u[69]||(u[69]=r=>p.value.branch_name=r),type:"text"},null,512),[[U,p.value.branch_name]])]),n("button",{type:"button",disabled:!!D.value,onClick:di},a(t.applyFilters),9,fp)]),n("ul",null,[(k(!0),x(Y,null,fe(ve.value.workflows,r=>(k(),x("li",{key:r.history_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.title??r.workflow_id),1)]),n("span",null,a(r.branch_name??"main"),1)]))),128)),ve.value.workflows.length?K("",!0):(k(),x("li",pp,a(t.emptyWorkflowLogs),1))])]),n("div",vp,[n("header",null,[n("h2",null,a(t.integrationLogs),1),n("span",null,a(ve.value.integrations.length),1)]),n("div",gp,[n("label",null,[u[95]||(u[95]=n("span",null,"Integration",-1)),O(n("input",{"onUpdate:modelValue":u[70]||(u[70]=r=>m.value.integration_name=r),type:"text"},null,512),[[U,m.value.integration_name]])]),n("label",null,[u[96]||(u[96]=n("span",null,"Action",-1)),O(n("input",{"onUpdate:modelValue":u[71]||(u[71]=r=>m.value.action=r),type:"text"},null,512),[[U,m.value.action]])]),n("label",null,[n("span",null,a(t.status),1),O(n("input",{"onUpdate:modelValue":u[72]||(u[72]=r=>m.value.status=r),type:"text"},null,512),[[U,m.value.status]])]),n("button",{type:"button",disabled:!!D.value,onClick:fi},a(t.applyFilters),9,_p)]),n("ul",null,[(k(!0),x(Y,null,fe(ve.value.integrations,r=>(k(),x("li",{key:r.integration_log_id},[n("div",null,[n("strong",null,a(r.integration_name),1),n("small",null,a(r.action),1)]),n("span",hp,a(r.status),1)]))),128)),ve.value.integrations.length?K("",!0):(k(),x("li",mp,a(t.emptyIntegrationLogs),1))])])]),n("div",yp,[n("header",null,[n("h2",null,a(t.integrationEvents),1),n("span",null,a(Ke.value.length),1)]),n("div",bp,[n("label",null,[u[97]||(u[97]=n("span",null,"Integration",-1)),O(n("input",{"onUpdate:modelValue":u[73]||(u[73]=r=>C.value.integration_name=r),type:"text"},null,512),[[U,C.value.integration_name]])]),n("label",null,[u[98]||(u[98]=n("span",null,"Action",-1)),O(n("input",{"onUpdate:modelValue":u[74]||(u[74]=r=>C.value.action=r),type:"text"},null,512),[[U,C.value.action]])]),n("label",null,[n("span",null,a(t.status),1),O(n("input",{"onUpdate:modelValue":u[75]||(u[75]=r=>C.value.status=r),type:"text"},null,512),[[U,C.value.status]])]),n("button",{type:"button",disabled:!!D.value,onClick:pi},a(t.applyFilters),9,wp)]),n("ul",null,[(k(!0),x(Y,null,fe(Ke.value,r=>(k(),x("li",{key:`event-${r.integration_log_id}`},[n("div",null,[n("strong",null,a(r.integration_name),1),n("small",null,a(r.action)+" / "+a(r.created_at),1)]),n("span",kp,a(r.status),1)]))),128)),Ke.value.length?K("",!0):(k(),x("li",xp,a(t.emptyIntegrationLogs),1))]),Ke.value.length?(k(),x("pre",Cp,a(JSON.stringify(Ke.value[0],null,2)),1)):K("",!0)]),n("div",Sp,[n("header",null,[n("h2",null,a(t.eventStream),1),n("span",null,a(((co=Xe.value)==null?void 0:co.count)??0),1)]),n("div",Pp,[n("label",null,[u[99]||(u[99]=n("span",null,"EventType",-1)),O(n("input",{"onUpdate:modelValue":u[76]||(u[76]=r=>S.value.event_type=r),type:"text"},null,512),[[U,S.value.event_type]])]),n("button",{type:"button",disabled:!!D.value,onClick:Qn},a(t.applyFilters),9,Dp)]),n("ul",null,[(k(!0),x(Y,null,fe(((fo=Xe.value)==null?void 0:fo.events)??[],r=>(k(),x("li",{key:r.event_id},[n("div",null,[n("strong",null,a(r.event_type),1),n("small",null,a(r.event_id)+" / "+a(r.created_at),1)]),n("span",null,a(Object.keys(r.data).length),1)]))),128)),(po=Xe.value)!=null&&po.events.length?K("",!0):(k(),x("li",Ep,a(t.emptyEvents),1))]),(vo=Xe.value)!=null&&vo.body?(k(),x("pre",Tp,a(Xe.value.body),1)):K("",!0)]),n("div",Ip,[n("header",null,[n("h2",null,a(t.auditLogs),1),n("span",null,a(ve.value.audit.length),1)]),n("div",Op,[n("label",null,[u[100]||(u[100]=n("span",null,"Action",-1)),O(n("input",{"onUpdate:modelValue":u[77]||(u[77]=r=>b.value.action=r),type:"text"},null,512),[[U,b.value.action]])]),n("label",null,[n("span",null,a(t.targetType),1),O(n("input",{"onUpdate:modelValue":u[78]||(u[78]=r=>b.value.target_type=r),type:"text"},null,512),[[U,b.value.target_type]])]),n("label",null,[n("span",null,a(t.actor),1),O(n("input",{"onUpdate:modelValue":u[79]||(u[79]=r=>b.value.actor_id=r),type:"text"},null,512),[[U,b.value.actor_id]])]),n("button",{type:"button",disabled:!!D.value,onClick:vi},a(t.filter),9,Ap)]),n("ul",null,[(k(!0),x(Y,null,fe(ve.value.audit,r=>(k(),x("li",{key:r.audit_id},[n("div",null,[n("strong",null,a(r.action),1),n("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),n("span",null,a(r.created_at),1)]))),128)),ve.value.audit.length?K("",!0):(k(),x("li",Up,a(t.emptyAuditLogs),1))])])])):K("",!0),s.value==="settings"?(k(),x("section",Mp,[n("div",Rp,[n("button",{type:"button",disabled:!!D.value,onClick:lr},a(t.reload),9,$p),n("button",{type:"button",disabled:!!D.value,onClick:u[80]||(u[80]=r=>jt())},a(t.reset),9,Vp),n("button",{type:"button",disabled:!!D.value,onClick:sr},a(t.validate),9,Bp),n("button",{type:"button",disabled:!!D.value,onClick:ir},a(t.diff),9,Lp),n("button",{type:"button",disabled:!!D.value,onClick:rr},a(t.save),9,Fp),n("button",{type:"button",disabled:!!D.value,onClick:nr},a(t.exportRedacted),9,Np),n("button",{type:"button",disabled:!!D.value,onClick:eo},a(t.loadSnapshots),9,jp)]),n("div",Wp,[(k(!0),x(Y,null,fe(((go=ee.value)==null?void 0:go.sections)??[],r=>(k(),x("article",{key:r.key},[n("h2",null,a(r.title),1),n("span",null,a(r.fields.length),1)]))),128))]),n("section",Hp,[n("header",null,[n("h2",null,a(t.settingsEditor),1),n("span",null,a(((_o=X.value)==null?void 0:_o.config_path)??"***PATH***"),1)]),O(n("textarea",{"onUpdate:modelValue":u[81]||(u[81]=r=>we.value=r),spellcheck:"false"},null,512),[[U,we.value]])]),n("section",Kp,[n("header",null,[n("h2",null,a(t.importSettings),1),n("button",{type:"button",disabled:!!D.value||!de.value,onClick:ar},a(t.importSettings),9,qp)]),O(n("textarea",{"onUpdate:modelValue":u[82]||(u[82]=r=>de.value=r),spellcheck:"false"},null,512),[[U,de.value]])]),n("section",Jp,[n("header",null,[n("h2",null,a(t.snapshots),1),n("span",null,a(ne.value.length),1)]),n("ul",null,[(k(!0),x(Y,null,fe(ne.value,r=>(k(),x("li",{key:r.snapshot_id},[n("div",null,[n("strong",null,a(r.reason),1),n("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),n("div",Gp,[n("button",{type:"button",disabled:!!D.value,onClick:ie=>ur(r.snapshot_id)},a(t.loadSnapshot),9,zp),n("button",{type:"button",disabled:!!D.value,onClick:ie=>dr(r.snapshot_id)},a(t.rollback),9,Yp)])]))),128))])]),Ve.value?(k(),x("section",Qp,[n("header",null,[n("h2",null,a(t.snapshotPreview),1),n("span",null,a(Ve.value.snapshot_id),1)]),n("pre",null,a(JSON.stringify(Ve.value.config,null,2)),1)])):K("",!0),n("div",Xp,[n("div",Zp,[n("header",null,[n("h2",null,a(t.validationResult),1),n("span",null,a(((ho=Ne.value)==null?void 0:ho.valid)??"-"),1)]),n("pre",null,a(JSON.stringify(Ne.value??{},null,2)),1)]),n("div",ev,[n("header",null,[n("h2",null,a(t.diffResult),1),n("span",null,a(((mo=De.value)==null?void 0:mo.changes.length)??0),1)]),n("pre",null,a(JSON.stringify(De.value??{},null,2)),1)])]),it.value?(k(),x("section",tv,[n("header",null,[n("h2",null,a(t.exportSettings),1),n("span",null,a(it.value.redacted),1)]),n("pre",null,a(JSON.stringify(it.value.config,null,2)),1)])):K("",!0)])):K("",!0)],64))]),n("aside",lv,[n("h2",null,a(t.running),1),n("dl",null,[n("div",null,[u[101]||(u[101]=n("dt",null,"Pending",-1)),n("dd",null,a(((yo=d.value)==null?void 0:yo.queue.pending)??0),1)]),n("div",null,[u[102]||(u[102]=n("dt",null,"Running",-1)),n("dd",null,a(((bo=d.value)==null?void 0:bo.queue.running)??0),1)]),n("div",null,[u[103]||(u[103]=n("dt",null,"Failed",-1)),n("dd",null,a(((wo=d.value)==null?void 0:wo.queue.failed)??0),1)]),n("div",null,[u[104]||(u[104]=n("dt",null,"Dead",-1)),n("dd",null,a(((ko=d.value)==null?void 0:ko.queue.dead_letter)??0),1)])]),n("h2",null,a(t.storage),1),n("dl",null,[n("div",null,[u[105]||(u[105]=n("dt",null,"Images",-1)),n("dd",null,a(xl(lo("storage://images/"))),1)]),n("div",null,[u[106]||(u[106]=n("dt",null,"Materials",-1)),n("dd",null,a(xl(lo("storage://materials/"))),1)])]),n("h2",null,a(t.storageMigrate),1),n("div",nv,[n("label",null,[n("span",null,a(t.sourceUri),1),O(n("input",{"onUpdate:modelValue":u[83]||(u[83]=r=>T.value.source_uri=r),type:"text"},null,512),[[U,T.value.source_uri]])]),n("label",null,[n("span",null,a(t.targetUri),1),O(n("input",{"onUpdate:modelValue":u[84]||(u[84]=r=>T.value.target_uri=r),type:"text"},null,512),[[U,T.value.target_uri]])]),n("button",{type:"button",disabled:!!D.value||!T.value.source_uri||!T.value.target_uri,onClick:kr},a(t.storageMigrate),9,ov)]),mt.value?(k(),x("dl",sv,[n("div",null,[n("dt",null,a(t.fileCount),1),n("dd",null,a(mt.value.files),1)]),n("div",null,[n("dt",null,a(t.storage),1),n("dd",null,a(xl(mt.value.bytes)),1)]),n("div",null,[n("dt",null,a(t.dryRun),1),n("dd",null,a(mt.value.dry_run),1)])])):K("",!0)])])}}}),rv=(e,t)=>{const l=e.__vccOpts||e;for(const[o,s]of t)l[o]=s;return l},av=rv(iv,[["__scopeId","data-v-806c2032"]]);Gu(av).mount("#app"); diff --git a/web/assets/index-9Cck2_2L.js b/web/assets/index-9Cck2_2L.js deleted file mode 100644 index d6c66a9..0000000 --- a/web/assets/index-9Cck2_2L.js +++ /dev/null @@ -1,17 +0,0 @@ -var br=Object.defineProperty;var wr=(e,t,n)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dl=(e,t,n)=>wr(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const d of i.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function 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 o(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 $l(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ge={},qt=[],pt=()=>{},es=()=>!1,Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qn=e=>e.startsWith("onUpdate:"),Se=Object.assign,Rl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},kr=Object.prototype.hasOwnProperty,ue=(e,t)=>kr.call(e,t),H=Array.isArray,Jt=e=>_n(e)==="[object Map]",Jn=e=>_n(e)==="[object Set]",ko=e=>_n(e)==="[object Date]",J=e=>typeof e=="function",ye=e=>typeof e=="string",vt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ts=e=>(pe(e)||J(e))&&J(e.then)&&J(e.catch),ns=Object.prototype.toString,_n=e=>ns.call(e),xr=e=>_n(e).slice(8,-1),ls=e=>_n(e)==="[object Object]",Ml=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,on=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Cr=/-\w/g,tt=Gn(e=>e.replace(Cr,t=>t.slice(1).toUpperCase())),Sr=/\B([A-Z])/g,Ft=Gn(e=>e.replace(Sr,"-$1").toLowerCase()),os=Gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),cl=Gn(e=>e?`on${os(e)}`:""),ft=(e,t)=>!Object.is(e,t),Un=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xo;const Yn=()=>xo||(xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vl(e){if(H(e)){const t={};for(let n=0;n{if(n){const o=n.split(Er);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Qn(e){let t="";if(ye(e))t=e;else if(H(e))for(let n=0;nmn(n,t))}const rs=e=>!!(e&&e.__v_isRef===!0),a=e=>ye(e)?e:e==null?"":H(e)||pe(e)&&(e.toString===ns||!J(e.toString))?rs(e)?a(e.value):JSON.stringify(e,as,2):String(e),as=(e,t)=>rs(t)?as(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],i)=>(n[fl(o,i)+" =>"]=s,n),{})}:Jn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fl(n))}:vt(t)?fl(t):pe(t)&&!H(t)&&!ls(t)?String(t):t,fl=(e,t="")=>{var n;return vt(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 Ce;class $r{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&&Ce&&(Ce.active?(this.parent=Ce,this.index=(Ce.scopes||(Ce.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(Ce===this)Ce=this.prevScope;else{let t=Ce;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(rn){let t=rn;for(rn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sn;){let t=sn;for(sn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function fs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ps(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),Fl(o),Mr(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function xl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fn)||(e.globalVersion=fn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xl(e))))return;e.flags|=2;const t=e.dep,n=_e,o=nt;_e=e,nt=!0;try{fs(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=n,nt=o,ps(e),e.flags&=-3}}function Fl(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Fl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Mr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const gs=[];function gt(){gs.push(nt),nt=!1}function ht(){const e=gs.pop();nt=e===void 0?!0:e}function Co(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let fn=0;class Vr{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 Nl{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(!_e||!nt||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new Vr(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,hs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=o)}return n}trigger(t){this.version++,fn++,this.notify(t)}notify(t){Bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ll()}}}function hs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)hs(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Cl=new WeakMap,Bt=Symbol(""),Sl=Symbol(""),pn=Symbol("");function Te(e,t,n){if(nt&&_e){let o=Cl.get(e);o||Cl.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Nl),s.map=o,s.key=n),s.track()}}function xt(e,t,n,o,s,i){const d=Cl.get(e);if(!d){fn++;return}const f=v=>{v&&v.trigger()};if(Bl(),t==="clear")d.forEach(f);else{const v=H(e),_=v&&Ml(n);if(v&&n==="length"){const h=Number(o);d.forEach((w,R)=>{(R==="length"||R===pn||!vt(R)&&R>=h)&&f(w)})}else switch((n!==void 0||d.has(void 0))&&f(d.get(n)),_&&f(d.get(pn)),t){case"add":v?_&&f(d.get("length")):(f(d.get(Bt)),Jt(e)&&f(d.get(Sl)));break;case"delete":v||(f(d.get(Bt)),Jt(e)&&f(d.get(Sl)));break;case"set":Jt(e)&&f(d.get(Bt));break}}Ll()}function Ht(e){const t=ae(e);return t===e?t:(Te(t,"iterate",pn),Qe(e)?t:t.map(lt))}function Xn(e){return Te(e=ae(e),"iterate",pn),e}function dt(e,t){return Pt(e)?Qt(Lt(e)?lt(t):t):lt(t)}const Br={__proto__:null,[Symbol.iterator](){return vl(this,Symbol.iterator,e=>dt(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>H(t)?Ht(t):t))},entries(){return vl(this,"entries",e=>(e[1]=dt(this,e[1]),e))},every(e,t){return yt(this,"every",e,t,void 0,arguments)},filter(e,t){return yt(this,"filter",e,t,n=>n.map(o=>dt(this,o)),arguments)},find(e,t){return yt(this,"find",e,t,n=>dt(this,n),arguments)},findIndex(e,t){return yt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yt(this,"findLast",e,t,n=>dt(this,n),arguments)},findLastIndex(e,t){return yt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yt(this,"forEach",e,t,void 0,arguments)},includes(...e){return gl(this,"includes",e)},indexOf(...e){return gl(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return gl(this,"lastIndexOf",e)},map(e,t){return yt(this,"map",e,t,void 0,arguments)},pop(){return en(this,"pop")},push(...e){return en(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return en(this,"shift")},some(e,t){return yt(this,"some",e,t,void 0,arguments)},splice(...e){return en(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return en(this,"unshift",e)},values(){return vl(this,"values",e=>dt(this,e))}};function vl(e,t,n){const o=Xn(e),s=o[t]();return o!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Lr=Array.prototype;function yt(e,t,n,o,s,i){const d=Xn(e),f=d!==e&&!Qe(e),v=d[t];if(v!==Lr[t]){const w=v.apply(e,i);return f?lt(w):w}let _=n;d!==e&&(f?_=function(w,R){return n.call(this,dt(e,w),R,e)}:n.length>2&&(_=function(w,R){return n.call(this,w,R,e)}));const h=v.call(d,_,o);return f&&s?s(h):h}function So(e,t,n,o){const s=Xn(e),i=s!==e&&!Qe(e);let d=n,f=!1;s!==e&&(i?(f=o.length===0,d=function(_,h,w){return f&&(f=!1,_=dt(e,_)),n.call(this,_,dt(e,h),w,e)}):n.length>3&&(d=function(_,h,w){return n.call(this,_,h,w,e)}));const v=s[t](d,...o);return f?dt(e,v):v}function gl(e,t,n){const o=ae(e);Te(o,"iterate",pn);const s=o[t](...n);return(s===-1||s===!1)&&Kl(n[0])?(n[0]=ae(n[0]),o[t](...n)):s}function en(e,t,n=[]){gt(),Bl();const o=ae(e)[t].apply(e,n);return Ll(),ht(),o}const Fr=$l("__proto__,__v_isRef,__isVue"),_s=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function Nr(e){vt(e)||(e=String(e));const t=ae(this);return Te(t,"has",e),t.hasOwnProperty(e)}class ms{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,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 o===(s?i?Qr:ks:i?ws:bs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const d=H(t);if(!s){let v;if(d&&(v=Br[n]))return v;if(n==="hasOwnProperty")return Nr}const f=Reflect.get(t,n,Ie(t)?t:o);if((vt(n)?_s.has(n):Fr(n))||(s||Te(t,"get",n),i))return f;if(Ie(f)){const v=d&&Ml(n)?f:f.value;return s&&pe(v)?El(v):v}return pe(f)?s?El(f):Wl(f):f}}class ys extends ms{constructor(t=!1){super(!1,t)}set(t,n,o,s){let i=t[n];const d=H(t)&&Ml(n);if(!this._isShallow){const _=Pt(i);if(!Qe(o)&&!Pt(o)&&(i=ae(i),o=ae(o)),!d&&Ie(i)&&!Ie(o))return _||(i.value=o),!0}const f=d?Number(n)e,In=e=>Reflect.getPrototypeOf(e);function qr(e,t,n){return function(...o){const s=this.__v_raw,i=ae(s),d=Jt(i),f=e==="entries"||e===Symbol.iterator&&d,v=e==="keys"&&d,_=s[e](...o),h=n?Pl:t?Qt:lt;return!t&&Te(i,"iterate",v?Sl:Bt),Se(Object.create(_),{next(){const{value:w,done:R}=_.next();return R?{value:w,done:R}:{value:f?[h(w[0]),h(w[1])]:h(w),done:R}}})}}function On(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jr(e,t){const n={get(s){const i=this.__v_raw,d=ae(i),f=ae(s);e||(ft(s,f)&&Te(d,"get",s),Te(d,"get",f));const{has:v}=In(d),_=t?Pl:e?Qt:lt;if(v.call(d,s))return _(i.get(s));if(v.call(d,f))return _(i.get(f));i!==d&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Te(ae(s),"iterate",Bt),s.size},has(s){const i=this.__v_raw,d=ae(i),f=ae(s);return e||(ft(s,f)&&Te(d,"has",s),Te(d,"has",f)),s===f?i.has(s):i.has(s)||i.has(f)},forEach(s,i){const d=this,f=d.__v_raw,v=ae(f),_=t?Pl:e?Qt:lt;return!e&&Te(v,"iterate",Bt),f.forEach((h,w)=>s.call(i,_(h),_(w),d))}};return Se(n,e?{add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear")}:{add(s){const i=ae(this),d=In(i),f=ae(s),v=!t&&!Qe(s)&&!Pt(s)?f:s;return d.has.call(i,v)||ft(s,v)&&d.has.call(i,s)||ft(f,v)&&d.has.call(i,f)||(i.add(v),xt(i,"add",v,v)),this},set(s,i){!t&&!Qe(i)&&!Pt(i)&&(i=ae(i));const d=ae(this),{has:f,get:v}=In(d);let _=f.call(d,s);_||(s=ae(s),_=f.call(d,s));const h=v.call(d,s);return d.set(s,i),_?ft(i,h)&&xt(d,"set",s,i):xt(d,"add",s,i),this},delete(s){const i=ae(this),{has:d,get:f}=In(i);let v=d.call(i,s);v||(s=ae(s),v=d.call(i,s)),f&&f.call(i,s);const _=i.delete(s);return v&&xt(i,"delete",s,void 0),_},clear(){const s=ae(this),i=s.size!==0,d=s.clear();return i&&xt(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=qr(s,e,t)}),n}function jl(e,t){const n=Jr(e,t);return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ue(n,s)&&s in o?n:o,s,i)}const Gr={get:jl(!1,!1)},zr={get:jl(!1,!0)},Yr={get:jl(!0,!1)};const bs=new WeakMap,ws=new WeakMap,ks=new WeakMap,Qr=new WeakMap;function Xr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return Pt(e)?e:Hl(e,!1,Wr,Gr,bs)}function Zr(e){return Hl(e,!1,Kr,zr,ws)}function El(e){return Hl(e,!0,Hr,Yr,ks)}function Hl(e,t,n,o,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const d=Xr(xr(e));if(d===0)return e;const f=new Proxy(e,d===2?o:n);return s.set(e,f),f}function Lt(e){return Pt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Kl(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function ea(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const lt=e=>pe(e)?Wl(e):e,Qt=e=>pe(e)?El(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function V(e){return ta(e,!1)}function ta(e,t){return Ie(e)?e:new na(e,t)}class na{constructor(t,n){this.dep=new Nl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ae(t),this._value=n?t:lt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Qe(t)||Pt(t);t=o?t:ae(t),ft(t,n)&&(this._rawValue=t,this._value=o?t:lt(t),this.dep.trigger())}}function la(e){return Ie(e)?e.value:e}const oa={get:(e,t,n)=>t==="__v_raw"?e:la(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function xs(e){return Lt(e)?e:new Proxy(e,oa)}class sa{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Nl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return cs(this,!0),!0}get value(){const t=this.dep.track();return vs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ia(e,t,n=!1){let o,s;return J(e)?o=e:(o=e.get,s=e.set),new sa(o,s,n)}const An={},Mn=new WeakMap;let Mt;function ra(e,t=!1,n=Mt){if(n){let o=Mn.get(n);o||Mn.set(n,o=[]),o.push(e)}}function aa(e,t,n=ge){const{immediate:o,deep:s,once:i,scheduler:d,augmentJob:f,call:v}=n,_=N=>s?N:Qe(N)||s===!1||s===0?Ct(N,1):Ct(N);let h,w,R,M,ne=!1,W=!1;if(Ie(e)?(w=()=>e.value,ne=Qe(e)):Lt(e)?(w=()=>_(e),ne=!0):H(e)?(W=!0,ne=e.some(N=>Lt(N)||Qe(N)),w=()=>e.map(N=>{if(Ie(N))return N.value;if(Lt(N))return _(N);if(J(N))return v?v(N,2):N()})):J(e)?t?w=v?()=>v(e,2):e:w=()=>{if(R){gt();try{R()}finally{ht()}}const N=Mt;Mt=h;try{return v?v(e,3,[M]):e(M)}finally{Mt=N}}:w=pt,t&&s){const N=w,he=s===!0?1/0:s;w=()=>Ct(N(),he)}const me=Rr(),ie=()=>{h.stop(),me&&me.active&&Rl(me.effects,h)};if(i&&t){const N=t;t=(...he)=>{const xe=N(...he);return ie(),xe}}let ee=W?new Array(e.length).fill(An):An;const X=N=>{if(!(!(h.flags&1)||!h.dirty&&!N))if(t){const he=h.run();if(N||s||ne||(W?he.some((xe,Oe)=>ft(xe,ee[Oe])):ft(he,ee))){R&&R();const xe=Mt;Mt=h;try{const Oe=[he,ee===An?void 0:W&&ee[0]===An?[]:ee,M];ee=he,v?v(t,3,Oe):t(...Oe)}finally{Mt=xe}}}else h.run()};return f&&f(X),h=new us(w),h.scheduler=d?()=>d(X,!1):X,M=N=>ra(N,!1,h),R=h.onStop=()=>{const N=Mn.get(h);if(N){if(v)v(N,4);else for(const he of N)he();Mn.delete(h)}},t?o?X(!0):ee=h.run():d?d(X.bind(null,!0),!0):h.run(),ie.pause=h.pause.bind(h),ie.resume=h.resume.bind(h),ie.stop=ie,ie}function Ct(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ie(e))Ct(e.value,t,n);else if(H(e))for(let o=0;o{Ct(o,t,n)});else if(ls(e)){for(const o in e)Ct(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ct(e[o],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function yn(e,t,n,o){try{return o?e(...o):e()}catch(s){Zn(s,t,n)}}function ot(e,t,n,o){if(J(e)){const s=yn(e,t,n,o);return s&&ts(s)&&s.catch(i=>{Zn(i,t,n)}),s}if(H(e)){const s=[];for(let i=0;i>>1,s=Ue[o],i=vn(s);i=vn(n)?Ue.push(e):Ue.splice(da(t),0,e),e.flags|=1,Ps()}}function Ps(){Vn||(Vn=Cs.then(Ds))}function ca(e){H(e)?Gt.push(...e):It&&e.id===-1?It.splice(Kt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1),Ps()}function Po(e,t,n=at+1){for(;nvn(n)-vn(o));if(Gt.length=0,It){It.push(...t);return}for(It=t,Kt=0;Kte.id==null?e.flags&2?-1:1/0:e.id;function Ds(e){try{for(at=0;at{o._d&&Vo(-1);const i=Bn(t);let d;try{d=e(...s)}finally{Bn(i),o._d&&Vo(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function A(e,t){if(Ye===null)return e;const n=ll(Ye),o=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&J(t)?t.call(o&&o.proxy):t}}const va=Symbol.for("v-scx"),ga=()=>$n(va);function hl(e,t,n){return Is(e,t,n)}function Is(e,t,n=ge){const{immediate:o,deep:s,flush:i,once:d}=n,f=Se({},n),v=t&&o||!t&&i!=="post";let _;if(hn){if(i==="sync"){const M=ga();_=M.__watcherHandles||(M.__watcherHandles=[])}else if(!v){const M=()=>{};return M.stop=pt,M.resume=pt,M.pause=pt,M}}const h=$e;f.call=(M,ne,W)=>ot(M,h,ne,W);let w=!1;i==="post"?f.scheduler=M=>{Re(M,h&&h.suspense)}:i!=="sync"&&(w=!0,f.scheduler=(M,ne)=>{ne?M():ql(M)}),f.augmentJob=M=>{t&&(M.flags|=4),w&&(M.flags|=2,h&&(M.id=h.uid,M.i=h))};const R=aa(e,t,f);return hn&&(_?_.push(R):v&&R()),R}function ha(e,t,n){const o=this.proxy,s=ye(e)?e.includes(".")?Os(o,e):()=>o[e]:e.bind(o,o);let i;J(t)?i=t:(i=t.handler,n=t);const d=bn(this),f=Is(s,i.bind(o),n);return d(),f}function Os(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;se.__isTeleport,_l=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 ya(e,t){return J(e)?Se({name:e.name},t,{setup:e}):e}function As(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Eo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ln=new WeakMap;function an(e,t,n,o,s=!1){if(H(e)){e.forEach((W,me)=>an(W,t&&(H(t)?t[me]:t),n,o,s));return}if(un(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&an(e,t,n,o.component.subTree);return}const i=o.shapeFlag&4?ll(o.component):o.el,d=s?null:i,{i:f,r:v}=e,_=t&&t.r,h=f.refs===ge?f.refs={}:f.refs,w=f.setupState,R=ae(w),M=w===ge?es:W=>Eo(h,W)?!1:ue(R,W),ne=(W,me)=>!(me&&Eo(h,me));if(_!=null&&_!==v){if(Do(t),ye(_))h[_]=null,M(_)&&(w[_]=null);else if(Ie(_)){const W=t;ne(_,W.k)&&(_.value=null),W.k&&(h[W.k]=null)}}if(J(v)){gt();try{yn(v,f,12,[d,h])}finally{ht()}}else{const W=ye(v),me=Ie(v);if(W||me){const ie=()=>{if(e.f){const ee=W?M(v)?w[v]:h[v]:ne()||!e.k?v.value:h[e.k];if(s)H(ee)&&Rl(ee,i);else if(H(ee))ee.includes(i)||ee.push(i);else if(W)h[v]=[i],M(v)&&(w[v]=h[v]);else{const X=[i];ne(v,e.k)&&(v.value=X),e.k&&(h[e.k]=X)}}else W?(h[v]=d,M(v)&&(w[v]=d)):me&&(ne(v,e.k)&&(v.value=d),e.k&&(h[e.k]=d))};if(d){const ee=()=>{ie(),Ln.delete(e)};ee.id=-1,Ln.set(e,ee),Re(ee,n)}else Do(e),ie()}}}function Do(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Yn().requestIdleCallback;Yn().cancelIdleCallback;const un=e=>!!e.type.__asyncLoader,Us=e=>e.type.__isKeepAlive;function ba(e,t){$s(e,"a",t)}function wa(e,t){$s(e,"da",t)}function $s(e,t,n=$e){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(el(t,o,n),n){let s=n.parent;for(;s&&s.parent;)Us(s.parent.vnode)&&ka(o,t,n,s),s=s.parent}}function ka(e,t,n,o){const s=el(t,e,o,!0);Ms(()=>{Rl(o[t],s)},n)}function el(e,t,n=$e,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...d)=>{gt();const f=bn(n),v=ot(t,n,e,d);return f(),ht(),v});return o?s.unshift(i):s.push(i),i}}const Et=e=>(t,n=$e)=>{(!hn||e==="sp")&&el(e,(...o)=>t(...o),n)},xa=Et("bm"),Rs=Et("m"),Ca=Et("bu"),Sa=Et("u"),Pa=Et("bum"),Ms=Et("um"),Ea=Et("sp"),Da=Et("rtg"),Ta=Et("rtc");function Ia(e,t=$e){el("ec",e,t)}const Oa=Symbol.for("v-ndc");function fe(e,t,n,o){let s;const i=n,d=H(e);if(d||ye(e)){const f=d&&Lt(e);let v=!1,_=!1;f&&(v=!Qe(e),_=Pt(e),e=Xn(e)),s=new Array(e.length);for(let h=0,w=e.length;ht(f,v,void 0,i));else{const f=Object.keys(e);s=new Array(f.length);for(let v=0,_=f.length;v<_;v++){const h=f[v];s[v]=t(e[h],h,v,i)}}else s=[];return s}const Dl=e=>e?li(e)?ll(e):Dl(e.parent):null,dn=Se(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=>Dl(e.parent),$root:e=>Dl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{ql(e.update)}),$nextTick:e=>e.n||(e.n=Ss.bind(e.proxy)),$watch:e=>ha.bind(e)}),ml=(e,t)=>e!==ge&&!e.__isScriptSetup&&ue(e,t),Aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:i,accessCache:d,type:f,appContext:v}=e;if(t[0]!=="$"){const R=d[t];if(R!==void 0)switch(R){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ml(o,t))return d[t]=1,o[t];if(s!==ge&&ue(s,t))return d[t]=2,s[t];if(ue(i,t))return d[t]=3,i[t];if(n!==ge&&ue(n,t))return d[t]=4,n[t];Tl&&(d[t]=0)}}const _=dn[t];let h,w;if(_)return t==="$attrs"&&Te(e.attrs,"get",""),_(e);if((h=f.__cssModules)&&(h=h[t]))return h;if(n!==ge&&ue(n,t))return d[t]=4,n[t];if(w=v.config.globalProperties,ue(w,t))return w[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return ml(s,t)?(s[t]=n,!0):o!==ge&&ue(o,t)?(o[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:i,type:d}},f){let v;return!!(n[f]||e!==ge&&f[0]!=="$"&&ue(e,f)||ml(t,f)||ue(i,f)||ue(o,f)||ue(dn,f)||ue(s.config.globalProperties,f)||(v=d.__cssModules)&&v[f])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function To(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tl=!0;function Ua(e){const t=Bs(e),n=e.proxy,o=e.ctx;Tl=!1,t.beforeCreate&&Io(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:d,watch:f,provide:v,inject:_,created:h,beforeMount:w,mounted:R,beforeUpdate:M,updated:ne,activated:W,deactivated:me,beforeDestroy:ie,beforeUnmount:ee,destroyed:X,unmounted:N,render:he,renderTracked:xe,renderTriggered:Oe,errorCaptured:Me,serverPrefetch:_t,expose:Fe,inheritAttrs:ve,components:Ne,directives:Xe,filters:je}=t;if(_&&$a(_,o,null),d)for(const de in d){const le=d[de];J(le)&&(o[de]=le.bind(n))}if(s){const de=s.call(n,n);pe(de)&&(e.data=Wl(de))}if(Tl=!0,i)for(const de in i){const le=i[de],Ve=J(le)?le.bind(n,n):J(le.get)?le.get.bind(n,n):pt,st=!J(le)&&J(le.set)?le.set.bind(n):pt,Be=Tt({get:Ve,set:st});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Be.value,set:q=>Be.value=q})}if(f)for(const de in f)Vs(f[de],o,n,de);if(v){const de=J(v)?v.call(n):v;Reflect.ownKeys(de).forEach(le=>{pa(le,de[le])})}h&&Io(h,e,"c");function be(de,le){H(le)?le.forEach(Ve=>de(Ve.bind(n))):le&&de(le.bind(n))}if(be(xa,w),be(Rs,R),be(Ca,M),be(Sa,ne),be(ba,W),be(wa,me),be(Ia,Me),be(Ta,xe),be(Da,Oe),be(Pa,ee),be(Ms,N),be(Ea,_t),H(Fe))if(Fe.length){const de=e.exposed||(e.exposed={});Fe.forEach(le=>{Object.defineProperty(de,le,{get:()=>n[le],set:Ve=>n[le]=Ve,enumerable:!0})})}else e.exposed||(e.exposed={});he&&e.render===pt&&(e.render=he),ve!=null&&(e.inheritAttrs=ve),Ne&&(e.components=Ne),Xe&&(e.directives=Xe),_t&&As(e)}function $a(e,t,n=pt){H(e)&&(e=Il(e));for(const o in e){const s=e[o];let i;pe(s)?"default"in s?i=$n(s.from||o,s.default,!0):i=$n(s.from||o):i=$n(s),Ie(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:d=>i.value=d}):t[o]=i}}function Io(e,t,n){ot(H(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vs(e,t,n,o){let s=o.includes(".")?Os(n,o):()=>n[o];if(ye(e)){const i=t[e];J(i)&&hl(s,i)}else if(J(e))hl(s,e.bind(n));else if(pe(e))if(H(e))e.forEach(i=>Vs(i,t,n,o));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&hl(s,i,e)}}function Bs(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:d}}=e.appContext,f=i.get(t);let v;return f?v=f:!s.length&&!n&&!o?v=t:(v={},s.length&&s.forEach(_=>Fn(v,_,d,!0)),Fn(v,t,d)),pe(t)&&i.set(t,v),v}function Fn(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Fn(e,i,n,!0),s&&s.forEach(d=>Fn(e,d,n,!0));for(const d in t)if(!(o&&d==="expose")){const f=Ra[d]||n&&n[d];e[d]=f?f(e[d],t[d]):t[d]}return e}const Ra={data:Oo,props:Ao,emits:Ao,methods:nn,computed:nn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:nn,directives:nn,watch:Va,provide:Oo,inject:Ma};function Oo(e,t){return t?e?function(){return Se(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function Ma(e,t){return nn(Il(e),Il(t))}function Il(e){if(H(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function Na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ge;let s=n;const i=t.startsWith("update:"),d=i&&Fa(o,t.slice(7));d&&(d.trim&&(s=n.map(h=>ye(h)?h.trim():h)),d.number&&(s=n.map(zn)));let f,v=o[f=cl(t)]||o[f=cl(tt(t))];!v&&i&&(v=o[f=cl(Ft(t))]),v&&ot(v,e,6,s);const _=o[f+"Once"];if(_){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,ot(_,e,6,s)}}const ja=new WeakMap;function Fs(e,t,n=!1){const o=n?ja:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let d={},f=!1;if(!J(e)){const v=_=>{const h=Fs(_,t,!0);h&&(f=!0,Se(d,h))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!i&&!f?(pe(e)&&o.set(e,null),null):(H(i)?i.forEach(v=>d[v]=null):Se(d,i),pe(e)&&o.set(e,d),d)}function tl(e,t){return!e||!Kn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Ft(t))||ue(e,t))}function Uo(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[i],slots:d,attrs:f,emit:v,render:_,renderCache:h,props:w,data:R,setupState:M,ctx:ne,inheritAttrs:W}=e,me=Bn(e);let ie,ee;try{if(n.shapeFlag&4){const N=s||o,he=N;ie=ct(_.call(he,N,h,w,M,R,ne)),ee=f}else{const N=t;ie=ct(N.length>1?N(w,{attrs:f,slots:d,emit:v}):N(w,null)),ee=t.props?f:Wa(f)}}catch(N){cn.length=0,Zn(N,e,1),ie=St(Ot)}let X=ie;if(ee&&W!==!1){const N=Object.keys(ee),{shapeFlag:he}=X;N.length&&he&7&&(i&&N.some(qn)&&(ee=Ha(ee,i)),X=Xt(X,ee,!1,!0))}return n.dirs&&(X=Xt(X,null,!1,!0),X.dirs=X.dirs?X.dirs.concat(n.dirs):n.dirs),n.transition&&Jl(X,n.transition),ie=X,Bn(me),ie}const Wa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Ha=(e,t)=>{const n={};for(const o in e)(!qn(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Ka(e,t,n){const{props:o,children:s,component:i}=e,{props:d,children:f,patchFlag:v}=t,_=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return o?$o(o,d,_):!!d;if(v&8){const h=t.dynamicProps;for(let w=0;wObject.create(js),Hs=e=>Object.getPrototypeOf(e)===js;function Ja(e,t,n,o=!1){const s={},i=Ws();e.propsDefaults=Object.create(null),Ks(e,t,s,i);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);n?e.props=o?s:Zr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ga(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:d}}=e,f=ae(s),[v]=e.propsOptions;let _=!1;if((o||d>0)&&!(d&16)){if(d&8){const h=e.vnode.dynamicProps;for(let w=0;w{v=!0;const[R,M]=qs(w,t,!0);Se(d,R),M&&f.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!v)return pe(e)&&o.set(e,qt),qt;if(H(i))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",zl=e=>H(e)?e.map(ct):[ct(e)],Ya=(e,t,n)=>{if(t._n)return t;const o=fa((...s)=>zl(t(...s)),n);return o._c=!1,o},Js=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Gl(s))continue;const i=e[s];if(J(i))t[s]=Ya(s,i,o);else if(i!=null){const d=zl(i);t[s]=()=>d}}},Gs=(e,t)=>{const n=zl(t);e.slots.default=()=>n},zs=(e,t,n)=>{for(const o in t)(n||!Gl(o))&&(e[o]=t[o])},Qa=(e,t,n)=>{const o=e.slots=Ws();if(e.vnode.shapeFlag&32){const s=t._;s?(zs(o,t,n),n&&ss(o,"_",s,!0)):Js(t,o)}else t&&Gs(e,t)},Xa=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,d=ge;if(o.shapeFlag&32){const f=t._;f?n&&f===1?i=!1:zs(s,t,n):(i=!t.$stable,Js(t,s)),d=t}else t&&(Gs(e,t),d={default:1});if(i)for(const f in s)!Gl(f)&&d[f]==null&&delete s[f]},Re=lu;function Za(e){return eu(e)}function eu(e,t){const n=Yn();n.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:d,createText:f,createComment:v,setText:_,setElementText:h,parentNode:w,nextSibling:R,setScopeId:M=pt,insertStaticContent:ne}=e,W=(p,g,m,E=null,k=null,y=null,T=void 0,D=null,P=!!g.dynamicChildren)=>{if(p===g)return;p&&!tn(p,g)&&(E=Q(p),q(p,k,y,!0),p=null),g.patchFlag===-2&&(P=!1,g.dynamicChildren=null);const{type:b,ref:L,shapeFlag:O}=g;switch(b){case nl:me(p,g,m,E);break;case Ot:ie(p,g,m,E);break;case bl:p==null&&ee(g,m,E,T);break;case Y:Ne(p,g,m,E,k,y,T,D,P);break;default:O&1?he(p,g,m,E,k,y,T,D,P):O&6?Xe(p,g,m,E,k,y,T,D,P):(O&64||O&128)&&b.process(p,g,m,E,k,y,T,D,P,Ee)}L!=null&&k?an(L,p&&p.ref,y,g||p,!g):L==null&&p&&p.ref!=null&&an(p.ref,null,y,p,!0)},me=(p,g,m,E)=>{if(p==null)o(g.el=f(g.children),m,E);else{const k=g.el=p.el;g.children!==p.children&&_(k,g.children)}},ie=(p,g,m,E)=>{p==null?o(g.el=v(g.children||""),m,E):g.el=p.el},ee=(p,g,m,E)=>{[p.el,p.anchor]=ne(p.children,g,m,E,p.el,p.anchor)},X=({el:p,anchor:g},m,E)=>{let k;for(;p&&p!==g;)k=R(p),o(p,m,E),p=k;o(g,m,E)},N=({el:p,anchor:g})=>{let m;for(;p&&p!==g;)m=R(p),s(p),p=m;s(g)},he=(p,g,m,E,k,y,T,D,P)=>{if(g.type==="svg"?T="svg":g.type==="math"&&(T="mathml"),p==null)xe(g,m,E,k,y,T,D,P);else{const b=p.el&&p.el._isVueCE?p.el:null;try{b&&b._beginPatch(),_t(p,g,k,y,T,D,P)}finally{b&&b._endPatch()}}},xe=(p,g,m,E,k,y,T,D)=>{let P,b;const{props:L,shapeFlag:O,transition:B,dirs:U}=p;if(P=p.el=d(p.type,y,L&&L.is,L),O&8?h(P,p.children):O&16&&Me(p.children,P,null,E,k,yl(p,y),T,D),U&&$t(p,null,E,"created"),Oe(P,p,p.scopeId,T,E),L){for(const C in L)C!=="value"&&!on(C)&&i(P,C,null,L[C],y,E);"value"in L&&i(P,"value",null,L.value,y),(b=L.onVnodeBeforeMount)&&rt(b,E,p)}U&&$t(p,null,E,"beforeMount");const Z=tu(k,B);Z&&B.beforeEnter(P),o(P,g,m),((b=L&&L.onVnodeMounted)||Z||U)&&Re(()=>{try{b&&rt(b,E,p),Z&&B.enter(P),U&&$t(p,null,E,"mounted")}finally{}},k)},Oe=(p,g,m,E,k)=>{if(m&&M(p,m),E)for(let y=0;y{for(let b=P;b{const D=g.el=p.el;let{patchFlag:P,dynamicChildren:b,dirs:L}=g;P|=p.patchFlag&16;const O=p.props||ge,B=g.props||ge;let U;if(m&&Rt(m,!1),(U=B.onVnodeBeforeUpdate)&&rt(U,m,g,p),L&&$t(g,p,m,"beforeUpdate"),m&&Rt(m,!0),b&&(!p.dynamicChildren||p.dynamicChildren.length!==b.length)&&(P=0,T=!1,b=null),(O.innerHTML&&B.innerHTML==null||O.textContent&&B.textContent==null)&&h(D,""),b?Fe(p.dynamicChildren,b,D,m,E,yl(g,k),y):T||le(p,g,D,null,m,E,yl(g,k),y,!1),P>0){if(P&16)ve(D,O,B,m,k);else if(P&2&&O.class!==B.class&&i(D,"class",null,B.class,k),P&4&&i(D,"style",O.style,B.style,k),P&8){const Z=g.dynamicProps;for(let C=0;C{U&&rt(U,m,g,p),L&&$t(g,p,m,"updated")},E)},Fe=(p,g,m,E,k,y,T)=>{for(let D=0;D{if(g!==m){if(g!==ge)for(const y in g)!on(y)&&!(y in m)&&i(p,y,g[y],null,k,E);for(const y in m){if(on(y))continue;const T=m[y],D=g[y];T!==D&&y!=="value"&&i(p,y,D,T,k,E)}"value"in m&&i(p,"value",g.value,m.value,k)}},Ne=(p,g,m,E,k,y,T,D,P)=>{const b=g.el=p?p.el:f(""),L=g.anchor=p?p.anchor:f("");let{patchFlag:O,dynamicChildren:B,slotScopeIds:U}=g;U&&(D=D?D.concat(U):U),p==null?(o(b,m,E),o(L,m,E),Me(g.children||[],m,L,k,y,T,D,P)):O>0&&O&64&&B&&p.dynamicChildren&&p.dynamicChildren.length===B.length?(Fe(p.dynamicChildren,B,m,k,y,T,D),(g.key!=null||k&&g===k.subTree)&&Ys(p,g,!0)):le(p,g,m,L,k,y,T,D,P)},Xe=(p,g,m,E,k,y,T,D,P)=>{g.slotScopeIds=D,p==null?g.shapeFlag&512?k.ctx.activate(g,m,E,T,P):je(g,m,E,k,y,T,P):At(p,g,P)},je=(p,g,m,E,k,y,T)=>{const D=p.component=fu(p,E,k);if(Us(p)&&(D.ctx.renderer=Ee),vu(D,!1,T),D.asyncDep){if(k&&k.registerDep(D,be,T),!p.el){const P=D.subTree=St(Ot);ie(null,P,g,m),p.placeholder=P.el}}else be(D,p,g,m,k,y,T)},At=(p,g,m)=>{const E=g.component=p.component;if(Ka(p,g,m))if(E.asyncDep&&!E.asyncResolved){de(E,g,m);return}else E.next=g,E.update();else g.el=p.el,E.vnode=g},be=(p,g,m,E,k,y,T)=>{const D=()=>{if(p.isMounted){let{next:O,bu:B,u:U,parent:Z,vnode:C}=p;{const qe=Qs(p);if(qe){O&&(O.el=C.el,de(p,O,T)),qe.asyncDep.then(()=>{Re(()=>{p.isUnmounted||b()},k)});return}}let te=O,re;Rt(p,!1),O?(O.el=C.el,de(p,O,T)):O=C,B&&Un(B),(re=O.props&&O.props.onVnodeBeforeUpdate)&&rt(re,Z,O,C),Rt(p,!0);const we=Uo(p),Ke=p.subTree;p.subTree=we,W(Ke,we,w(Ke.el),Q(Ke),p,k,y),O.el=we.el,te===null&&qa(p,we.el),U&&Re(U,k),(re=O.props&&O.props.onVnodeUpdated)&&Re(()=>rt(re,Z,O,C),k)}else{let O;const{el:B,props:U}=g,{bm:Z,m:C,parent:te,root:re,type:we}=p,Ke=un(g);Rt(p,!1),Z&&Un(Z),!Ke&&(O=U&&U.onVnodeBeforeMount)&&rt(O,te,g),Rt(p,!0);{re.ce&&re.ce._hasShadowRoot()&&re.ce._injectChildStyle(we,p.parent?p.parent.type:void 0);const qe=p.subTree=Uo(p);W(null,qe,m,E,p,k,y),g.el=qe.el}if(C&&Re(C,k),!Ke&&(O=U&&U.onVnodeMounted)){const qe=g;Re(()=>rt(O,te,qe),k)}(g.shapeFlag&256||te&&un(te.vnode)&&te.vnode.shapeFlag&256)&&p.a&&Re(p.a,k),p.isMounted=!0,g=m=E=null}};p.scope.on();const P=p.effect=new us(D);p.scope.off();const b=p.update=P.run.bind(P),L=p.job=P.runIfDirty.bind(P);L.i=p,L.id=p.uid,P.scheduler=()=>ql(L),Rt(p,!0),b()},de=(p,g,m)=>{g.component=p;const E=p.vnode.props;p.vnode=g,p.next=null,Ga(p,g.props,E,m),Xa(p,g.children,m),gt(),Po(p),ht()},le=(p,g,m,E,k,y,T,D,P=!1)=>{const b=p&&p.children,L=p?p.shapeFlag:0,O=g.children,{patchFlag:B,shapeFlag:U}=g;if(B>0){if(B&128){st(b,O,m,E,k,y,T,D,P);return}else if(B&256){Ve(b,O,m,E,k,y,T,D,P);return}}U&8?(L&16&&We(b,k,y),O!==b&&h(m,O)):L&16?U&16?st(b,O,m,E,k,y,T,D,P):We(b,k,y,!0):(L&8&&h(m,""),U&16&&Me(O,m,E,k,y,T,D,P))},Ve=(p,g,m,E,k,y,T,D,P)=>{p=p||qt,g=g||qt;const b=p.length,L=g.length,O=Math.min(b,L);let B;for(B=0;BL?We(p,k,y,!0,!1,O):Me(g,m,E,k,y,T,D,P,O)},st=(p,g,m,E,k,y,T,D,P)=>{let b=0;const L=g.length;let O=p.length-1,B=L-1;for(;b<=O&&b<=B;){const U=p[b],Z=g[b]=P?kt(g[b]):ct(g[b]);if(tn(U,Z))W(U,Z,m,null,k,y,T,D,P);else break;b++}for(;b<=O&&b<=B;){const U=p[O],Z=g[B]=P?kt(g[B]):ct(g[B]);if(tn(U,Z))W(U,Z,m,null,k,y,T,D,P);else break;O--,B--}if(b>O){if(b<=B){const U=B+1,Z=UB)for(;b<=O;)q(p[b],k,y,!0),b++;else{const U=b,Z=b,C=new Map;for(b=Z;b<=B;b++){const De=g[b]=P?kt(g[b]):ct(g[b]);De.key!=null&&C.set(De.key,b)}let te,re=0;const we=B-Z+1;let Ke=!1,qe=0;const Ut=new Array(we);for(b=0;b=we){q(De,k,y,!0);continue}let Je;if(De.key!=null)Je=C.get(De.key);else for(te=Z;te<=B;te++)if(Ut[te-Z]===0&&tn(De,g[te])){Je=te;break}Je===void 0?q(De,k,y,!0):(Ut[Je-Z]=b+1,Je>=qe?qe=Je:Ke=!0,W(De,g[Je],m,null,k,y,T,D,P),re++)}const wn=Ke?nu(Ut):qt;for(te=wn.length-1,b=we-1;b>=0;b--){const De=Z+b,Je=g[De],kn=g[De+1],Nt=De+1{const{el:y,type:T,transition:D,children:P,shapeFlag:b}=p;if(b&6){Be(p.component.subTree,g,m,E);return}if(b&128){p.suspense.move(g,m,E);return}if(b&64){T.move(p,g,m,Ee);return}if(T===Y){o(y,g,m);for(let O=0;OD.enter(y),k));else{const{leave:O,delayLeave:B,afterLeave:U}=D,Z=()=>{p.ctx.isUnmounted?s(y):o(y,g,m)},C=()=>{const te=y._isLeaving||!!y[_l];y._isLeaving&&y[_l](!0),D.persisted&&!te?Z():O(y,()=>{Z(),U&&U()})};B?B(y,Z,C):C()}else o(y,g,m)},q=(p,g,m,E=!1,k=!1)=>{const{type:y,props:T,ref:D,children:P,dynamicChildren:b,shapeFlag:L,patchFlag:O,dirs:B,cacheIndex:U,memo:Z}=p;if(O===-2&&(k=!1),D!=null&&(gt(),an(D,null,m,p,!0),ht()),U!=null&&(g.renderCache[U]=void 0),L&256){g.ctx.deactivate(p);return}const C=L&1&&B,te=!un(p);let re;if(te&&(re=T&&T.onVnodeBeforeUnmount)&&rt(re,g,p),L&6)it(p.component,m,E);else{if(L&128){p.suspense.unmount(m,E);return}C&&$t(p,null,g,"beforeUnmount"),L&64?p.type.remove(p,g,m,Ee,E):b&&!b.hasOnce&&(y!==Y||O>0&&O&64)?We(b,g,m,!1,!0):(y===Y&&O&384||!k&&L&16)&&We(P,g,m),E&&mt(p)}const we=Z!=null&&U==null;(te&&(re=T&&T.onVnodeUnmounted)||C||we)&&Re(()=>{re&&rt(re,g,p),C&&$t(p,null,g,"unmounted"),we&&(p.el=null)},m)},mt=p=>{const{type:g,el:m,anchor:E,transition:k}=p;if(g===Y){ce(m,E);return}if(g===bl){N(p);return}const y=()=>{s(m),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(p.shapeFlag&1&&k&&!k.persisted){const{leave:T,delayLeave:D}=k,P=()=>T(m,y);D?D(p.el,y,P):P()}else y()},ce=(p,g)=>{let m;for(;p!==g;)m=R(p),s(p),p=m;s(g)},it=(p,g,m)=>{const{bum:E,scope:k,job:y,subTree:T,um:D,m:P,a:b}=p;Mo(P),Mo(b),E&&Un(E),k.stop(),y&&(y.flags|=8,q(T,p,g,m)),D&&Re(D,g),Re(()=>{p.isUnmounted=!0},g)},We=(p,g,m,E=!1,k=!1,y=0)=>{for(let T=y;T{if(p.shapeFlag&6)return Q(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=R(p.anchor||p.el),m=g&&g[_a];return m?R(m):g};let Pe=!1;const He=(p,g,m)=>{let E;p==null?g._vnode&&(q(g._vnode,null,null,!0),E=g._vnode.component):W(g._vnode||null,p,g,null,null,null,m),g._vnode=p,Pe||(Pe=!0,Po(E),Es(),Pe=!1)},Ee={p:W,um:q,m:Be,r:mt,mt:je,mc:Me,pc:le,pbc:Fe,n:Q,o:e};return{render:He,hydrate:void 0,createApp:La(He)}}function yl({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 Rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ys(e,t,n=!1){const o=e.children,s=t.children;if(H(o)&&H(s))for(let i=0;i>1,e[n[f]]<_?i=f+1:d=f;_0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,d=n[i-1];i-- >0;)n[i]=d,d=t[d];return n}function Qs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qs(t)}function Mo(e){if(e)for(let t=0;te.__isSuspense;function lu(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ca(e)}const Y=Symbol.for("v-fgt"),nl=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),bl=Symbol.for("v-stc"),cn=[];let Le=null;function x(e=!1){cn.push(Le=e?null:[])}function ou(){cn.pop(),Le=cn[cn.length-1]||null}let gn=1;function Vo(e,t=!1){gn+=e,e<0&&Le&&t&&(Le.hasOnce=!0)}function ei(e){return e.dynamicChildren=gn>0?Le||qt:null,ou(),gn>0&&Le&&Le.push(e),e}function S(e,t,n,o,s,i){return ei(l(e,t,n,o,s,i,!0))}function su(e,t,n,o,s){return ei(St(e,t,n,o,s,!0))}function ti(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const ni=({key:e})=>e??null,Rn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ie(e)||J(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,o=0,s=null,i=e===Y?0:1,d=!1,f=!1){const v={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&Rn(t),scopeId:Ts,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:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ye};return f?(Nn(v,n),i&128&&e.normalize(v)):n&&(v.shapeFlag|=ye(n)?8:16),gn>0&&!d&&Le&&(v.patchFlag>0||i&6)&&v.patchFlag!==32&&Le.push(v),v}const St=iu;function iu(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===Oa)&&(e=Ot),ti(e)){const f=Xt(e,t,!0);return n&&Nn(f,n),gn>0&&!i&&Le&&(f.shapeFlag&6?Le[Le.indexOf(e)]=f:Le.push(f)),f.patchFlag=-2,f}if(mu(e)&&(e=e.__vccOpts),t){t=ru(t);let{class:f,style:v}=t;f&&!ye(f)&&(t.class=Qn(f)),pe(v)&&(Kl(v)&&!H(v)&&(v=Se({},v)),t.style=Vl(v))}const d=ye(e)?1:Zs(e)?128:ma(e)?64:pe(e)?4:J(e)?2:0;return l(e,t,n,o,s,d,i,!0)}function ru(e){return e?Kl(e)||Hs(e)?Se({},e):e:null}function Xt(e,t,n=!1,o=!1){const{props:s,ref:i,patchFlag:d,children:f,transition:v}=e,_=t?uu(s||{},t):s,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:_,key:_&&ni(_),ref:t&&t.ref?n&&i?H(i)?i.concat(Rn(t)):[i,Rn(t)]:Rn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:v,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xt(e.ssContent),ssFallback:e.ssFallback&&Xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return v&&o&&Jl(h,v.clone(h)),h}function au(e=" ",t=0){return St(nl,null,e,t)}function K(e="",t=!1){return t?(x(),su(Ot,null,e)):St(Ot,null,e)}function ct(e){return e==null||typeof e=="boolean"?St(Ot):H(e)?St(Y,null,e.slice()):ti(e)?kt(e):St(nl,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xt(e)}function Nn(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Nn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Hs(t)?t._ctx=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(J(t)){if(o&65){Nn(e,{default:t});return}t={default:t,_ctx:Ye},n=32}else t=String(t),o&64?(n=16,t=[au(t)]):n=8;e.children=t,e.shapeFlag|=n}function uu(...e){const t={};for(let n=0;n$e||Ye;let jn,Al;{const e=Yn(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),i=>{s.length>1?s.forEach(d=>d(i)):s[0](i)}};jn=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),Al=t("__VUE_SSR_SETTERS__",n=>hn=n)}const bn=e=>{const t=$e;return jn(e),e.scope.on(),()=>{e.scope.off(),jn(t)}},Bo=()=>{$e&&$e.scope.off(),jn(null)};function li(e){return e.vnode.shapeFlag&4}let hn=!1;function vu(e,t=!1,n=!1){t&&Al(t);const{props:o,children:s}=e.vnode,i=li(e);Ja(e,o,i,t),Qa(e,s,n||t);const d=i?gu(e,t):void 0;return t&&Al(!1),d}function gu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Aa);const{setup:o}=n;if(o){gt();const s=e.setupContext=o.length>1?_u(e):null,i=bn(e),d=yn(o,e,0,[e.props,s]),f=ts(d);if(ht(),i(),(f||e.sp)&&!un(e)&&As(e),f){if(d.then(Bo,Bo),t)return d.then(v=>{Lo(e,v)}).catch(v=>{Zn(v,e,0)});e.asyncDep=d}else Lo(e,d)}else oi(e)}function Lo(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=xs(t)),oi(e)}function oi(e,t,n){const o=e.type;e.render||(e.render=o.render||pt);{const s=bn(e);gt();try{Ua(e)}finally{ht(),s()}}}const hu={get(e,t){return Te(e,"get",""),e[t]}};function _u(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,hu),slots:e.slots,emit:e.emit,expose:t}}function ll(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xs(ea(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function mu(e){return J(e)&&"__vccOpts"in e}const Tt=(e,t)=>ia(e,t,hn),yu="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ul;const Fo=typeof window<"u"&&window.trustedTypes;if(Fo)try{Ul=Fo.createPolicy("vue",{createHTML:e=>e})}catch{}const si=Ul?e=>Ul.createHTML(e):e=>e,bu="http://www.w3.org/2000/svg",wu="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,No=wt&&wt.createElement("template"),ku={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t==="svg"?wt.createElementNS(bu,e):t==="mathml"?wt.createElementNS(wu,e):n?wt.createElement(e,{is:n}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const d=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{No.innerHTML=si(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const f=No.content;if(o==="svg"||o==="mathml"){const v=f.firstChild;for(;v.firstChild;)f.appendChild(v.firstChild);f.removeChild(v)}t.insertBefore(f,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xu=Symbol("_vtc");function Cu(e,t,n){const o=e[xu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jo=Symbol("_vod"),Su=Symbol("_vsh"),Pu=Symbol(""),Eu=/(?:^|;)\s*display\s*:/;function Du(e,t,n){const o=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const d of t.split(";")){const f=d.slice(0,d.indexOf(":")).trim();n[f]==null&&ln(o,f,"")}else for(const d in t)n[d]==null&&ln(o,d,"");for(const d in n){d==="display"&&(i=!0);const f=n[d];f!=null?Iu(e,d,!ye(t)&&t?t[d]:void 0,f)||ln(o,d,f):ln(o,d,"")}}else if(s){if(t!==n){const d=o[Pu];d&&(n+=";"+d),o.cssText=n,i=Eu.test(n)}}else t&&e.removeAttribute("style");jo in e&&(e[jo]=i?o.display:"",e[Su]&&(o.display="none"))}const Wo=/\s*!important$/;function ln(e,t,n){if(H(n))n.forEach(o=>ln(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Tu(e,t);Wo.test(n)?e.setProperty(Ft(o),n.replace(Wo,""),"important"):e[o]=n}}const Ho=["Webkit","Moz","ms"],wl={};function Tu(e,t){const n=wl[t];if(n)return n;let o=tt(t);if(o!=="filter"&&o in e)return wl[t]=o;o=os(o);for(let s=0;skl||(Mu.then(()=>kl=0),kl=Date.now());function Bu(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const s=n.value;if(H(s)){const i=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{i.call(o),o._stopped=!0};const d=s.slice(),f=[o];for(let v=0;ve.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lu=(e,t,n,o,s,i)=>{const d=s==="svg";t==="class"?Cu(e,o,d):t==="style"?Du(e,n,o):Kn(t)?qn(t)||Au(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fu(e,t,o,d))?(Jo(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qo(e,t,o,d,i,t!=="value")):e._isVueCE&&(Nu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(o)))?Jo(e,tt(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qo(e,t,o,d))};function Fu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&zo(t)&&J(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 zo(t)&&ye(n)?!1:t in e}function Nu(e,t){const n=e._def.props;if(!n)return!1;const o=tt(t);return Array.isArray(n)?n.some(s=>tt(s)===o):Object.keys(n).some(s=>tt(s)===o)}const Wn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Un(t,n):t};function ju(e){e.target.composing=!0}function Yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yt=Symbol("_assign");function Qo(e,t,n){return t&&(e=e.trim()),n&&(e=zn(e)),e}const $={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Yt]=Wn(s);const i=o||s.props&&s.props.type==="number";Vt(e,t?"change":"input",d=>{d.target.composing||e[Yt](Qo(e.value,n,i))}),(n||i)&&Vt(e,"change",()=>{e.value=Qo(e.value,n,i)}),t||(Vt(e,"compositionstart",ju),Vt(e,"compositionend",Yo),Vt(e,"change",Yo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:i}},d){if(e[Yt]=Wn(d),e.composing)return;const f=(i||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,v=t??"";if(f===v)return;const _=e.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===v)||(e.value=v)}},bt={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Jn(t);Vt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?zn(Hn(d)):Hn(d));e[Yt](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Ss(()=>{e._assigning=!1})}),e[Yt]=Wn(o)},mounted(e,{value:t}){Xo(e,t)},beforeUpdate(e,t,n){e[Yt]=Wn(n)},updated(e,{value:t}){e._assigning||Xo(e,t)}};function Xo(e,t){const n=e.multiple,o=H(t);if(!(n&&!o&&!Jn(t))){for(let s=0,i=e.options.length;sString(_)===String(f)):d.selected=Ur(t,f)>-1}else d.selected=t.has(f);else if(mn(Hn(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hn(e){return"_value"in e?e._value:e.value}const Wu=Se({patchProp:Lu},ku);let Zo;function Hu(){return Zo||(Zo=Za(Wu))}const Ku=((...e)=>{const t=Hu().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=Ju(o);if(!s)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=n(s,!1,qu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t});function qu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ju(e){return ye(e)?document.querySelector(e):e}const Gu="/api/v1/plugins/extensions/astrbot_plugin_imagestudio",I={uiBootstrap:"ui/bootstrap",uiActions:"ui/actions",dashboardSummary:"dashboard/summary",profiles:"profiles",profile:e=>`profiles/${e}`,profileArchive:e=>`profiles/${e}/archive`,quickProfileDraft:"profiles/quick-draft",profileWorkflows:e=>`profiles/${e}/workflows`,workflow:e=>`workflows/${e}`,workflowStart:e=>`workflows/${e}/start`,workflowCancel:e=>`workflows/${e}/cancel`,workflowArchive:e=>`workflows/${e}/archive`,workflowNodes:e=>`workflows/${e}/nodes`,workflowBranches:e=>`workflows/${e}/branches`,workflowSwitchBranch:e=>`workflows/${e}/switch-branch`,workflowHistory:e=>`workflows/${e}/history`,node:e=>`nodes/${e}`,nodeGenerate:e=>`nodes/${e}/generate`,nodeRetry:e=>`nodes/${e}/retry`,nodeComplete:e=>`nodes/${e}/complete`,nodeMarkCompleted:e=>`nodes/${e}/mark-completed`,nodeSelectImage:e=>`nodes/${e}/select-image`,nodeAdoptImage:e=>`nodes/${e}/adopt-image`,nodeReview:e=>`nodes/${e}/review`,nodeImages:e=>`nodes/${e}/images`,workflowReview:e=>`workflows/${e}/review`,image:e=>`images/${e}`,imageSelect:e=>`images/${e}/select`,imageUnselect:e=>`images/${e}/unselect`,imageArchive:e=>`images/${e}/archive`,jobs:"jobs",job:e=>`jobs/${e}`,jobCancel:e=>`jobs/${e}/cancel`,jobRetry:e=>`jobs/${e}/retry`,jobDeadLetterRetry:"jobs/dead-letter/retry",jobDeadLetterMoveFailed:"jobs/dead-letter/move-failed",settingsSchema:"settings/schema",settingsCurrent:"settings/current",settingsValidate:"settings/validate",settingsDiff:"settings/diff",settingsSave:"settings/save",settingsReload:"settings/reload",settingsExport:"settings/export",settingsImport:"settings/import",settingsSnapshots:"settings/snapshots",settingsSnapshot:e=>`settings/snapshots/${e}`,settingsRollback:"settings/rollback",storageStatus:"storage/status",mediaSign:"media/sign",materialCategories:"material-categories",materialCategory:e=>`material-categories/${e}`,materials:"materials",materialUpload:"materials/upload",material:e=>`materials/${e}`,materialRecognize:e=>`materials/${e}/recognize`,materialReRecognize:e=>`materials/${e}/re-recognize`,materialConfirm:e=>`materials/${e}/confirm`,wardrobe:e=>`profiles/${e}/wardrobe`,wardrobeImportMaterial:e=>`profiles/${e}/wardrobe/import-material`,wardrobeItems:e=>`profiles/${e}/wardrobe/items`,wardrobeItem:(e,t)=>`profiles/${e}/wardrobe/items/${t}`,wardrobeLegacyItem:(e,t)=>`profiles/${e}/wardrobe/${t}`,wardrobeMatch:e=>`profiles/${e}/wardrobe/match`,privateCompanionDailyOutfit:"integrations/private-companion/daily-outfit",integrationEventLogs:"integrations/logs",apiDiscoveryDialects:"api-discovery/dialects",apiDiscoveryProbeProvider:"api-discovery/probe-provider",apiDiscoveryProbeModel:"api-discovery/probe-model",apiDiscoveryCapabilities:"api-discovery/capabilities",apiDiscoveryManualOverride:"api-discovery/manual-override",apiDiscoveryValidateRenderPlan:"api-discovery/validate-render-plan",generationLogs:"logs/generation",workflowLogs:"logs/workflows",errorLogs:"logs/errors",integrationLogs:"logs/integrations",auditLogs:"security/audit-logs",eventStream:"events/stream",webManifest:"web/manifest"};class zu extends Error{constructor(n,o,s={}){super(o);dl(this,"code");dl(this,"details");this.name="ApiClientError",this.code=n,this.details=s}}async function G(e,t){return ut(e,{method:"GET",query:t})}async function z(e,t){return ut(e,{method:"POST",body:t})}async function ut(e,t={}){const o=await(await fetch(Yu(e,t.query),{method:t.method??"GET",headers:t.body===void 0?void 0:{"Content-Type":"application/json"},body:t.body===void 0?void 0:JSON.stringify(t.body)})).json();if(!o.ok)throw new zu(o.error_code,o.message,o.details);return o.data}function Yu(e,t){const n=e.replace(/^\/+/,""),o=new URL(`${Gu}/${n}`,window.location.origin);for(const[s,i]of Object.entries(t??{}))i!==void 0&&o.searchParams.set(s,String(i));return`${o.pathname}${o.search}`}const Qu={class:"web-shell"},Xu={class:"sidebar"},Zu={class:"brand"},ed=["onClick"],td={class:"workspace"},nd={class:"topbar"},ld={class:"actions"},od=["disabled"],sd={key:0,class:"notice error"},id={key:1,class:"notice"},rd={key:0,class:"dashboard-grid"},ad={key:1,class:"list-view"},ud={class:"form-grid"},dd={class:"wide-field"},cd=["disabled"],fd=["disabled"],pd={key:0},vd={key:1,class:"form-grid"},gd={class:"wide-field"},hd={class:"wide-field"},_d={class:"wide-field"},md={class:"wide-field"},yd={class:"wide-field"},bd=["disabled"],wd=["disabled"],kd={class:"inline-actions"},xd={class:"badge"},Cd=["disabled","onClick"],Sd=["disabled","onClick"],Pd={key:0,class:"empty"},Ed={key:2,class:"split-view"},Dd={class:"list-view"},Td={class:"form-grid"},Id=["disabled"],Od={class:"inline-actions"},Ad={class:"badge"},Ud=["disabled","onClick"],$d=["disabled","onClick"],Rd=["disabled","onClick"],Md=["disabled","onClick"],Vd={key:0,class:"empty"},Bd={key:0,class:"editor-panel"},Ld={class:"form-grid"},Fd=["disabled"],Nd=["disabled","onClick"],jd={class:"list-view"},Wd={class:"inline-actions"},Hd=["disabled"],Kd={class:"form-grid"},qd={class:"wide-field"},Jd={class:"wide-field"},Gd={class:"wide-field"},zd=["disabled"],Yd=["disabled"],Qd={class:"form-grid"},Xd={class:"wide-field"},Zd=["disabled"],ec=["disabled"],tc={class:"inline-actions"},nc={class:"badge"},lc=["disabled","onClick"],oc=["disabled","onClick"],sc=["disabled","onClick"],ic=["disabled","onClick"],rc={key:0,class:"empty"},ac={class:"inline-actions"},uc={key:0,class:"badge"},dc=["disabled","onClick"],cc=["disabled","onClick"],fc=["disabled","onClick"],pc=["disabled","onClick"],vc=["disabled","onClick"],gc=["disabled","onClick"],hc={key:0,class:"empty"},_c={key:0},mc={key:1},yc={class:"editor-panel"},bc={key:0,class:"empty"},wc={key:2,class:"editor-panel"},kc={key:3},xc={key:3,class:"split-view"},Cc={class:"list-view"},Sc={class:"form-grid"},Pc=["disabled"],Ec=["disabled"],Dc={class:"inline-actions"},Tc=["disabled","onClick"],Ic=["disabled","onClick"],Oc={key:0,class:"empty"},Ac={class:"list-view"},Uc={class:"inline-actions"},$c=["disabled"],Rc={class:"form-grid"},Mc={value:""},Vc=["value"],Bc=["disabled"],Lc=["disabled"],Fc={class:"inline-actions"},Nc={class:"badge"},jc=["disabled","onClick"],Wc=["disabled","onClick"],Hc=["disabled","onClick"],Kc=["disabled","onClick"],qc={key:0,class:"empty"},Jc={class:"form-grid"},Gc={value:""},zc=["value"],Yc=["disabled"],Qc=["disabled"],Xc={key:0},Zc={key:4,class:"list-view"},ef=["disabled"],tf={class:"form-grid"},nf={value:""},lf=["value"],of=["disabled"],sf={class:"inline-actions"},rf=["disabled","onClick"],af={key:0,class:"empty"},uf={key:0},df={class:"form-grid"},cf=["disabled"],ff={key:1},pf={key:5,class:"list-view"},vf={class:"inline-actions"},gf=["disabled"],hf=["disabled"],_f={class:"form-grid"},mf={value:""},yf=["value"],bf={value:""},wf=["value"],kf={value:""},xf=["value"],Cf=["disabled"],Sf={class:"inline-actions"},Pf={class:"badge"},Ef=["onClick"],Df=["onClick"],Tf=["disabled","onClick"],If={key:0,class:"empty"},Of={key:0,class:"editor-panel"},Af={key:6,class:"split-view"},Uf={class:"list-view"},$f={class:"inline-actions"},Rf=["disabled"],Mf=["disabled"],Vf={class:"form-grid"},Bf=["disabled"],Lf={key:0},Ff={class:"list-view"},Nf={class:"inline-actions"},jf={class:"badge"},Wf=["disabled","onClick"],Hf=["disabled","onClick"],Kf=["disabled","onClick"],qf={key:0,class:"empty"},Jf={key:7,class:"logs-view"},Gf={class:"split-view"},zf={class:"list-view"},Yf={class:"form-grid"},Qf={value:""},Xf=["value"],Zf=["disabled"],ep={key:0,class:"empty"},tp={class:"list-view"},np={class:"form-grid"},lp=["disabled"],op={class:"badge"},sp={key:0,class:"empty"},ip={class:"split-view"},rp={class:"list-view"},ap={class:"form-grid"},up=["disabled"],dp={key:0,class:"empty"},cp={class:"list-view"},fp={class:"form-grid"},pp=["disabled"],vp={class:"badge"},gp={key:0,class:"empty"},hp={class:"list-view"},_p={class:"form-grid"},mp=["disabled"],yp={class:"badge"},bp={key:0,class:"empty"},wp={key:0},kp={class:"list-view"},xp={class:"form-grid"},Cp=["disabled"],Sp={key:0,class:"empty"},Pp={key:0},Ep={class:"list-view"},Dp={class:"form-grid"},Tp=["disabled"],Ip={key:0,class:"empty"},Op={key:8,class:"settings-view"},Ap={class:"toolbar"},Up=["disabled"],$p=["disabled"],Rp=["disabled"],Mp=["disabled"],Vp=["disabled"],Bp=["disabled"],Lp=["disabled"],Fp={class:"settings-sections"},Np={class:"editor-panel"},jp={class:"editor-panel"},Wp=["disabled"],Hp={class:"editor-panel"},Kp={class:"inline-actions"},qp=["disabled","onClick"],Jp=["disabled","onClick"],Gp={key:0,class:"editor-panel"},zp={class:"split-view"},Yp={class:"list-view"},Qp={class:"list-view"},Xp={key:1,class:"editor-panel"},Zp={class:"inspector"},ev=ya({__name:"App",setup(e){const t={waiting:"等待操作",loading:"加载中...",loadFailed:"加载失败",refresh:"刷新",complete:"完成",failed:"失败",noProfile:"未选择角色",noTags:"无标签",noImage:"未绑定图片",create:"新建",quickDraft:"快速草稿",archive:"归档",start:"启动",generate:"生成",adopt:"采纳",select:"选择",unselect:"取选",recognize:"识别",reRecognize:"重新识别",confirm:"确认",edit:"编辑",update:"更新",name:"名称",identity:"身份",personality:"性格",hairColor:"发色",hairstyle:"发型",eyeColor:"眼色",description:"描述",basePrompt:"基础提示词",appearancePrompt:"外观提示词",stylePrompt:"风格提示词",negativePrompt:"反向提示词",imageUri:"图片 URI",tags:"标签",category:"分类",allCategories:"全部分类",materialCreated:"素材已创建",materialUpdated:"素材已更新",materialUploaded:"素材已登记上传",materialArchived:"素材已归档",upload:"上传登记",filename:"文件名",contentType:"Content-Type",importToWardrobe:"加入衣橱",delete:"删除",wardrobeCategory:"衣橱分类",season:"季节",style:"风格",selectMaterial:"选择素材",wardrobeImported:"衣橱条目已加入",wardrobeDeleted:"衣橱条目已删除",dailyOutfit:"每日穿搭",categories:"分类",mood:"心情",weather:"天气",keywords:"关键词",outfitGenerated:"每日穿搭已生成",dashboard:"运行概览",profiles:"角色",workflows:"工作流",materials:"素材库",wardrobe:"角色衣橱",jobs:"任务队列",discovery:"能力探测",logs:"日志审计",settings:"设置",profileList:"角色列表",profileCreated:"角色已创建",profileUpdated:"角色已更新",profileArchived:"角色已归档",emptyProfiles:"暂无角色",workflowList:"工作流列表",workflowType:"工作流类型",workflowCreated:"工作流已创建",emptyWorkflows:"暂无工作流",nodes:"节点",nodeKey:"NodeKey",nodeTitle:"节点标题",nodeType:"节点类型",status:"状态",nodeCreated:"节点已创建",nodeUpdated:"节点已更新",nodeQueued:"节点已重新入队",nodeCompleted:"节点已完成",images:"图片",branches:"分支",branchName:"分支名",switchBranch:"切换分支",history:"历史",review:"评审",reviewResult:"评审结果",emptyImages:"暂无图片",emptyHistory:"暂无历史",modelRoute:"模型路由",idempotencyKey:"幂等键",prompt:"提示词",generationQueued:"生成已入队",branchCreated:"分支已创建",imageArchived:"图片已归档",imageDeleted:"图片已删除",currentBranch:"当前分支",materialCategories:"素材分类",categoryType:"分类类型",sortOrder:"排序",categoryCreated:"分类已创建",categoryUpdated:"分类已更新",categoryDeleted:"分类已删除",materialItems:"素材条目",emptyCategories:"暂无分类",emptyMaterials:"暂无素材",pendingConfirm:"待确认",signFirstImage:"签名首图",noSignableMaterial:"没有可签名的素材图片",signMaterial:"签名素材",match:"匹配",matchWardrobe:"衣橱匹配",emptyWardrobe:"暂无衣橱条目",moveFailed:"失败转死信",retryDead:"重试死信",retry:"重试",cancel:"取消",filter:"筛选",applyFilters:"应用筛选",detail:"详情",jobDetail:"任务详情",allStatuses:"全部状态",allProfiles:"全部角色",allWorkflows:"全部工作流",emptyJobs:"暂无任务",dialects:"协议方言",safeProbe:"安全探测",probeProvider:"探测 Provider",capabilityProfiles:"能力档案",renderPlan:"RenderPlan",validatePlan:"校验计划",provider:"Provider",model:"Model",requiredCapabilities:"所需能力",validationStatus:"校验状态",support:"支持",unsupported:"不支持",unconfirmed:"待确认",emptyCapabilities:"暂无能力档案",generationLogs:"生成日志",errorLogs:"错误",workflowLogs:"工作流",integrationLogs:"集成",integrationEvents:"集成事件",eventStream:"事件流",ssePreview:"SSE Preview",auditLogs:"审计",targetType:"TargetType",actor:"操作人",emptyGenerationLogs:"暂无生成日志",emptyErrors:"暂无错误",emptyWorkflowLogs:"暂无工作流日志",emptyIntegrationLogs:"暂无集成日志",emptyEvents:"暂无事件",emptyAuditLogs:"暂无审计日志",noErrorDetail:"无错误详情",reload:"重载",validate:"校验",diff:"对比",save:"保存",reset:"重置",exportRedacted:"导出脱敏配置",exportSettings:"导出设置",exportDone:"导出设置完成,配置已脱敏",importSettings:"导入设置",importDone:"设置已导入",importDraftInvalid:"导入 JSON 格式无效",snapshots:"配置快照",loadSnapshots:"加载快照",loadSnapshot:"查看快照",snapshotPreview:"快照预览",rollback:"回滚",rollbackDone:"配置已回滚",settingsEditor:"配置编辑",settingsDraftInvalid:"配置 JSON 格式无效",settingsSaved:"设置已保存",validationResult:"校验结果",diffResult:"变更对比",storage:"存储",running:"运行"},n=[{key:"dashboard",label:"概览"},{key:"profiles",label:t.profiles},{key:"workflows",label:t.workflows},{key:"materials",label:"素材"},{key:"wardrobe",label:"衣橱"},{key:"jobs",label:"队列"},{key:"discovery",label:"探测"},{key:"logs",label:"日志"},{key:"settings",label:t.settings}],o=n.map(c=>c.key),s=V(kn()),i=V(null),d=V(null),f=V(null),v=V([]),_=V(null),h=V([]),w=V([]),R=V(null),M=V(""),ne=V([]),W=V(null),me=V(null),ie=V(null),ee=V(null),X=V(null),N=V(null),he=V([]),xe=V(null),Oe=V([]),Me=V([]),_t=V([]),Fe=V(null),ve=V({generation:[],workflows:[],errors:[],integrations:[],audit:[]}),Ne=V([]),Xe=V(null),je=V(null),At=V(""),be=V(""),de=V([]),le=V(null),Ve=V(null),st=V(null),Be=V(null),q=V({name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""}),mt=V(null),ce=V({profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}),it=V({display_name:"",workflow_type:"single_image"}),We=V({branch_name:""}),Q=V({node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}),Pe=V({model_route:"",prompt:"",negative_prompt:"",idempotency_key:""}),He=V({status:"",profile_id:"",workflow_id:""}),Ee=V({status:"",profile_id:"",workflow_id:"",node_id:""}),Ze=V({workflow_id:"",action:"",node_id:"",branch_name:""}),p=V({source:"",status:""}),g=V({integration_name:"",action:"",status:""}),m=V({integration_name:"",action:"",status:""}),E=V({event_type:""}),k=V({action:"",target_type:"",actor_id:""}),y=V({material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}),T=V({display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}),D=V({category_id:"",name:"",category_type:"material",sort_order:0}),P=V({material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}),b=V({categories:"top,bottom,dress,shoes,accessory",mood:"",weather:"",keywords:""}),L=V(null),O=V({provider_id:"",model_id:"",required_capabilities:"text_to_image"}),B=V(null),U=V(""),Z=V(!0),C=V(""),te=V(""),re=Tt(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.profile_id)??""}),we=Tt(()=>{var c,u;return((u=(c=f.value)==null?void 0:c.items[0])==null?void 0:u.name)??t.noProfile}),Ke=Tt(()=>{var u;const c=(u=d.value)==null?void 0:u.queue;return c?c.pending+c.running+c.failed+c.dead_letter:0}),qe=Tt(()=>{var c;return((c=xe.value)==null?void 0:c.items.filter(u=>u.recognition_status!=="confirmed").length)??0}),Ut=Tt(()=>{var c;return(((c=xe.value)==null?void 0:c.items)??[]).filter(u=>u.recognition_status==="confirmed")}),wn=Tt(()=>{var c;return((c=_.value)==null?void 0:c.nodes.find(u=>u.node_id===M.value))??null}),De=["created","queued","running","completed","succeeded","failed","cancelled","dead_letter"],Je=Tt(()=>({dashboard:t.dashboard,profiles:t.profiles,workflows:t.workflows,materials:t.materials,wardrobe:t.wardrobe,jobs:t.jobs,discovery:t.discovery,logs:t.logs,settings:t.settings})[s.value]);Rs(Nt);function kn(){const c=new URLSearchParams(window.location.search).get("view");return o.includes(c)?c:"dashboard"}async function Nt(){var c,u;Z.value=!0,te.value="";try{const[j,oe,ke,ze,Cn,Zt,Sn,Pn,En,Dn,Tn]=await Promise.all([G(I.uiBootstrap),G(I.dashboardSummary),G(I.profiles,{page:1,page_size:20}),G(I.jobs,{page:1,page_size:20}),G(I.settingsSchema),G(I.settingsCurrent),G(I.storageStatus),G(I.materialCategories),G(I.materials,{page:1,page_size:24}),G(I.apiDiscoveryDialects),G(I.apiDiscoveryCapabilities)]);i.value=j,d.value=oe,f.value=ke,me.value=ze,ee.value=Cn,X.value=Zt,Wt(Zt.config),N.value=Sn,he.value=Pn,xe.value=En,Me.value=Dn,_t.value=Tn,await vi((c=ke.items[0])==null?void 0:c.profile_id),await gi((u=ke.items[0])==null?void 0:u.profile_id),await ii(),await Yl()}catch(j){te.value=j instanceof Error?j.message:t.loadFailed}finally{Z.value=!1}}async function ii(){const[c,u,j,oe,ke,ze]=await Promise.allSettled([G(I.generationLogs,et(Ee.value,12)),G(I.workflowLogs,et(Ze.value,12)),G(I.errorLogs,et(p.value,12)),G(I.integrationLogs,et(g.value,12)),G(I.integrationEventLogs,et(m.value,20)),G(I.auditLogs,{limit:12})]);ve.value={generation:jt(c),workflows:jt(u),errors:jt(j),integrations:jt(oe),audit:jt(ze)},Ne.value=jt(ke)}async function ri(){ve.value.generation=await G(I.generationLogs,et(Ee.value,20))}async function ai(){ve.value.workflows=await G(I.workflowLogs,et(Ze.value,20))}async function ui(){ve.value.errors=await G(I.errorLogs,et(p.value,20))}async function di(){ve.value.integrations=await G(I.integrationLogs,et(g.value,20))}async function ci(){Ne.value=await G(I.integrationEventLogs,et(m.value,20))}async function Yl(){Xe.value=await G(I.eventStream,et(E.value,20))}async function fi(){ve.value.audit=await G(I.auditLogs,{action:k.value.action||void 0,target_type:k.value.target_type||void 0,actor_id:k.value.actor_id||void 0,limit:20})}function jt(c){return c.status==="fulfilled"?c.value:[]}function et(c,u){const j={limit:u};for(const[oe,ke]of Object.entries(c)){const ze=ke.trim();j[oe]=ze||void 0}return j}async function pi(){me.value=await G(I.jobs,{status:He.value.status||void 0,profile_id:He.value.profile_id||void 0,workflow_id:He.value.workflow_id||void 0,page:1,page_size:20})}async function vi(c){if(!c){Oe.value=[];return}Oe.value=await G(I.wardrobe(c))}async function gi(c){var oe,ke;if(!c){v.value=[],_.value=null,h.value=[],w.value=[],M.value="",ne.value=[];return}v.value=await G(I.profileWorkflows(c));const u=(oe=_.value)==null?void 0:oe.workflow.workflow_id,j=v.value.some(ze=>ze.workflow_id===u)?u:(ke=v.value[0])==null?void 0:ke.workflow_id;j?await ol(j):_.value=null}async function ol(c){var ke;const u=await G(I.workflow(c));_.value=u;const j=M.value,oe=u.nodes.some(ze=>ze.node_id===j)?j:u.workflow.current_node_id||((ke=u.nodes[0])==null?void 0:ke.node_id);oe?await Ql(oe):(M.value="",ne.value=[]),await hi(c)}async function Ql(c){M.value=c,ne.value=await G(I.nodeImages(c))}async function hi(c){const[u,j]=await Promise.all([G(I.workflowBranches(c)),G(I.workflowHistory(c))]);h.value=u,w.value=j}async function Ge(){var u;const c=(u=_.value)==null?void 0:u.workflow.workflow_id;c&&await ol(c)}async function F(c,u,j=!0){C.value=c,te.value="";try{const oe=await u();U.value=`${c}${t.complete}`,c===t.exportSettings&&(U.value=`${t.exportDone}: ${!!oe.redacted}`),j&&await Nt()}catch(oe){te.value=oe instanceof Error?oe.message:`${c}${t.failed}`}finally{C.value=""}}function _i(c){return F(t.retry,()=>z(I.jobRetry(c)))}function mi(c){return F(t.cancel,()=>z(I.jobCancel(c)))}function yi(c){return F(t.detail,async()=>(ie.value=await G(I.job(c)),ie.value),!1)}function bi(){q.value={name:"",identity:"",personality:"",hair_color:"",hairstyle:"",eye_color:"",style:"",clothing_keywords:"",description:""},mt.value=null}function wi(){return F(t.quickDraft,async()=>(mt.value=await z(I.quickProfileDraft,{questionnaire:{name:q.value.name,identity:q.value.identity,personality:Dt(q.value.personality),hair_color:q.value.hair_color,hairstyle:q.value.hairstyle,eye_color:q.value.eye_color,style:q.value.style,clothing_keywords:Dt(q.value.clothing_keywords)}}),mt.value),!1)}function ki(){var u;const c=(u=mt.value)==null?void 0:u.profile_preview;return F(t.create,async()=>{const j=await z(I.profiles,{name:(c==null?void 0:c.name)||q.value.name,description:q.value.description,base_prompt:c==null?void 0:c.base_prompt,appearance_prompt:c==null?void 0:c.appearance_prompt,style_prompt:c==null?void 0:c.style_prompt,negative_prompt:c==null?void 0:c.negative_prompt});return bi(),U.value=t.profileCreated,j})}function xi(c){return F(t.archive,async()=>{const u=await z(I.profileArchive(c));return U.value=t.profileArchived,u})}function Xl(){ce.value={profile_id:"",name:"",description:"",base_prompt:"",appearance_prompt:"",style_prompt:"",negative_prompt:"",default_model_route:""}}function Ci(c){ce.value={profile_id:c.profile_id,name:c.name,description:c.description??"",base_prompt:c.base_prompt??"",appearance_prompt:c.appearance_prompt??"",style_prompt:c.style_prompt??"",negative_prompt:c.negative_prompt??"",default_model_route:c.default_model_route??""}}function Si(){return ce.value.profile_id?F(t.update,async()=>{const c=await ut(I.profile(ce.value.profile_id),{method:"PUT",body:{name:ce.value.name,description:ce.value.description||void 0,base_prompt:ce.value.base_prompt||void 0,appearance_prompt:ce.value.appearance_prompt||void 0,style_prompt:ce.value.style_prompt||void 0,negative_prompt:ce.value.negative_prompt||void 0,default_model_route:ce.value.default_model_route||void 0}});return Xl(),U.value=t.profileUpdated,c}):Promise.resolve()}function Pi(){const c=re.value;return c?F(t.create,async()=>{const u=await z(I.profileWorkflows(c),{display_name:it.value.display_name,workflow_type:it.value.workflow_type});return it.value.display_name="",_.value=u,U.value=t.workflowCreated,u}):Promise.resolve()}function Ei(c){return F(t.start,()=>z(I.workflowStart(c)))}function Di(c){return F(t.cancel,()=>z(I.workflowCancel(c)))}function Ti(c){return F(t.archive,()=>z(I.workflowArchive(c)))}function Ii(){var u;const c=(u=_.value)==null?void 0:u.workflow;return!c||!We.value.branch_name?Promise.resolve():F(t.branches,async()=>{const j=await z(I.workflowBranches(c.workflow_id),{branch_name:We.value.branch_name,base_branch_name:c.current_branch,base_node_id:M.value||c.current_node_id,copy_nodes:!0});return We.value.branch_name="",await Ge(),U.value=t.branchCreated,j},!1)}function Oi(c){var j;const u=(j=_.value)==null?void 0:j.workflow.workflow_id;return u?F(t.switchBranch,async()=>{const oe=await z(I.workflowSwitchBranch(u),{branch_name:c});return await Ge(),oe},!1):Promise.resolve()}function sl(){Q.value={node_id:"",node_key:"",title:"",description:"",node_type:"generation",status:"pending",prompt:"",negative_prompt:"",model_route:""}}function Ai(c){Q.value={node_id:c.node_id,node_key:c.node_key,title:c.title,description:c.description??"",node_type:c.node_type,status:c.status,prompt:c.prompt??"",negative_prompt:c.negative_prompt??"",model_route:c.model_route??""}}function Ui(){var j;const c=(j=_.value)==null?void 0:j.workflow.workflow_id;if(!c||!Q.value.node_key||!Q.value.title)return Promise.resolve();const u={node_key:Q.value.node_key,title:Q.value.title,description:Q.value.description||void 0,node_type:Q.value.node_type||"generation",status:Q.value.status||"pending",prompt:Q.value.prompt||void 0,negative_prompt:Q.value.negative_prompt||void 0,model_route:Q.value.model_route||void 0};return Q.value.node_id?F(t.update,async()=>{const oe=await ut(I.node(Q.value.node_id),{method:"PUT",body:u});return sl(),await Ge(),U.value=t.nodeUpdated,oe},!1):F(t.create,async()=>{const oe=await z(I.workflowNodes(c),u);return sl(),await Ge(),U.value=t.nodeCreated,oe},!1)}function $i(){var u;const c=(u=_.value)==null?void 0:u.workflow.workflow_id;return c?F(t.review,async()=>(R.value=await G(I.workflowReview(c)),R.value),!1):Promise.resolve()}function Ri(){const c=M.value;return c?F(t.review,async()=>(R.value=await G(I.nodeReview(c)),R.value),!1):Promise.resolve()}function Mi(){const c=M.value;return c?F(t.generate,async()=>(W.value=await z(I.nodeGenerate(c),{model_route:Pe.value.model_route||void 0,prompt:Pe.value.prompt||void 0,negative_prompt:Pe.value.negative_prompt||void 0,idempotency_key:Pe.value.idempotency_key||void 0}),await Ge(),U.value=t.generationQueued,W.value),!1):Promise.resolve()}function Vi(c){return F(t.retry,async()=>{const u=await z(I.nodeRetry(c));return await Ge(),U.value=t.nodeQueued,u},!1)}function Bi(c){return F(t.complete,async()=>{const u=await z(I.nodeMarkCompleted(c));return await Ge(),U.value=t.nodeCompleted,u},!1)}function Li(c){const u=M.value;return u?F(t.select,async()=>{const j=await z(I.nodeSelectImage(u),{image_id:c});return await Ge(),j},!1):Promise.resolve()}function Fi(c){const u=M.value;return u?F(t.adopt,async()=>{var oe;const j=await z(I.nodeAdoptImage(u),{image_id:c,title:(oe=wn.value)==null?void 0:oe.title});return await Ge(),j},!1):Promise.resolve()}function Ni(c){return F(t.unselect,async()=>{const u=await z(I.imageUnselect(c));return await Ge(),u},!1)}function ji(c){return F(t.archive,async()=>{const u=await z(I.imageArchive(c));return await Ge(),U.value=t.imageArchived,u},!1)}function Wi(c){return F(t.delete,async()=>{const u=await ut(I.image(c),{method:"DELETE"});return await Ge(),U.value=t.imageDeleted,u},!1)}function Hi(){return F(t.moveFailed,()=>z(I.jobDeadLetterMoveFailed,{limit:20}))}function Ki(){return F(t.retryDead,()=>z(I.jobDeadLetterRetry,{limit:20}))}function qi(){var u;const c=((u=Me.value[0])==null?void 0:u.dialect)??"unknown";return F(t.safeProbe,()=>z(I.apiDiscoveryProbeModel,{provider_id:"local-preview",model_id:"metadata-only",dialect:c,capabilities:{supports:["text_to_image"]}}))}function Ji(){var u;const c=((u=Me.value[0])==null?void 0:u.dialect)??"unknown";return F(t.probeProvider,()=>z(I.apiDiscoveryProbeProvider,{provider_id:O.value.provider_id||"local-preview",model_id:O.value.model_id||"metadata-only",dialect:c,capabilities:{supports:Dt(O.value.required_capabilities)}}))}function Gi(){return F(t.validatePlan,async()=>(B.value=await z(I.apiDiscoveryValidateRenderPlan,{provider_id:O.value.provider_id,model_id:O.value.model_id,required_capabilities:Dt(O.value.required_capabilities)}),B.value),!1)}function il(c,u){return F(t.discovery,()=>z(I.apiDiscoveryManualOverride,{provider_id:c.provider_id,model_id:c.model_id,dialect:c.dialect,status:u,capabilities:c.capabilities}))}function zi(){const c=re.value;return c?F(t.matchWardrobe,async()=>(Fe.value=await z(I.wardrobeMatch(c),{tags:["daily"]}),Fe.value),!1):Promise.resolve()}function Yi(){P.value={material_id:"",wardrobe_category:"top",tags:"",season:"",style:""}}function Qi(){const c=re.value;return c?F(t.importToWardrobe,async()=>{const u=await z(I.wardrobeItems(c),{material_id:P.value.material_id,wardrobe_category:P.value.wardrobe_category,tags:Dt(P.value.tags),season:P.value.season||void 0,style:P.value.style||void 0});return Yi(),U.value=t.wardrobeImported,u}):Promise.resolve()}function Xi(c){const u=re.value;return u?F(t.delete,async()=>{const j=await ut(I.wardrobeItem(u,c),{method:"DELETE"});return U.value=t.wardrobeDeleted,j}):Promise.resolve()}function Zi(){const c=re.value;return c?F(t.dailyOutfit,async()=>(L.value=await z(I.privateCompanionDailyOutfit,{profile_id:c,categories:Dt(b.value.categories),mood:b.value.mood,weather:b.value.weather,keywords:Dt(b.value.keywords),request_source:"astrbot_plugin_private_companion"}),U.value=t.outfitGenerated,L.value),!1):Promise.resolve()}function er(){return F(t.reload,async()=>{var u;const c=await z(I.settingsReload);return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),c},!1)}function tr(){return F(t.exportSettings,async()=>(Ve.value=await G(I.settingsExport),Ve.value),!1)}function Wt(c=(u=>(u=X.value)==null?void 0:u.config)()??{}){At.value=JSON.stringify(c,null,2),st.value=null,Be.value=null}function rl(){try{const c=JSON.parse(At.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.settingsDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.settingsDraftInvalid)}}function nr(){try{const c=JSON.parse(be.value);if(!c||Array.isArray(c)||typeof c!="object")throw new Error(t.importDraftInvalid);return c}catch(c){throw new Error(c instanceof Error?c.message:t.importDraftInvalid)}}function lr(){return F(t.validate,async()=>(st.value=await z(I.settingsValidate,{config:rl()}),st.value),!1)}function or(){return F(t.diff,async()=>(Be.value=await z(I.settingsDiff,{config:rl()}),Be.value),!1)}function sr(){return F(t.save,async()=>{var u;const c=await z(I.settingsSave,{config:rl()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),U.value=t.settingsSaved,c},!1)}function ir(){return F(t.importSettings,async()=>{var u;const c=await z(I.settingsImport,{config:nr()});return X.value={config_path:((u=X.value)==null?void 0:u.config_path)??"***PATH***",config:c.config},Wt(c.config),be.value="",U.value=t.importDone,c},!1)}function Zl(){return F(t.loadSnapshots,async()=>(de.value=await G(I.settingsSnapshots,{limit:20}),le.value=de.value[0]??null,de.value),!1)}function rr(c){return F(t.loadSnapshot,async()=>(le.value=await G(I.settingsSnapshot(c)),le.value),!1)}function ar(c){return F(t.rollback,async()=>{var j;const u=await z(I.settingsRollback,{snapshot_id:c});return X.value={config_path:((j=X.value)==null?void 0:j.config_path)??"***PATH***",config:u.config},Wt(u.config),await Zl(),U.value=t.rollbackDone,u},!1)}function ur(){var u,j;const c=(j=(u=xe.value)==null?void 0:u.items.find(oe=>{var ke;return(ke=oe.image_uri)==null?void 0:ke.startsWith("storage://")}))==null?void 0:j.image_uri;return c?F(t.signMaterial,async()=>(je.value=await G(I.mediaSign,{uri:c}),je.value),!1):(U.value=t.noSignableMaterial,Promise.resolve())}function dr(c){return c!=null&&c.startsWith("storage://")?F(t.signMaterial,async()=>(je.value=await G(I.mediaSign,{uri:c}),je.value),!1):(U.value=t.noSignableMaterial,Promise.resolve())}function xn(){D.value={category_id:"",name:"",category_type:"material",sort_order:0}}function cr(c){D.value={category_id:c.category_id,name:c.name,category_type:c.category_type,sort_order:c.sort_order}}function fr(){const c={name:D.value.name,category_type:D.value.category_type,sort_order:Number(D.value.sort_order)||0};return D.value.category_id?F(t.update,async()=>{const u=await ut(I.materialCategory(D.value.category_id),{method:"PUT",body:c});return xn(),U.value=t.categoryUpdated,u}):F(t.create,async()=>{const u=await z(I.materialCategories,c);return xn(),U.value=t.categoryCreated,u})}function pr(c){return F(t.delete,async()=>{const u=await ut(I.materialCategory(c),{method:"DELETE"});return D.value.category_id===c&&xn(),U.value=t.categoryDeleted,u})}function al(){y.value={material_id:"",display_name:"",image_uri:"",tags:"",category_id:"",prompt:"",negative_prompt:""}}function vr(){const c={display_name:y.value.display_name,image_uri:y.value.image_uri||void 0,thumbnail_uri:y.value.image_uri||void 0,category_id:y.value.category_id||void 0,tags:Dt(y.value.tags),prompt:y.value.prompt||void 0,negative_prompt:y.value.negative_prompt||void 0,recognition_status:y.value.image_uri?"pending_recognition":"pending_upload"};return y.value.material_id?F(t.update,async()=>{const u=await ut(I.material(y.value.material_id),{method:"PUT",body:c});return al(),U.value=t.materialUpdated,u}):F(t.create,async()=>{const u=await z(I.materials,c);return al(),U.value=t.materialCreated,u})}function gr(c){y.value={material_id:c.material_id,display_name:c.display_name,image_uri:c.image_uri??"",tags:c.tags.join(", "),category_id:c.category_id??"",prompt:c.prompt??"",negative_prompt:c.negative_prompt??""}}function eo(){T.value={display_name:"",filename:"",content_type:"image/png",image_uri:"",category_id:""}}function hr(){return F(t.upload,async()=>{const c=await z(I.materialUpload,{display_name:T.value.display_name||void 0,filename:T.value.filename||void 0,content_type:T.value.content_type||void 0,image_uri:T.value.image_uri,category_id:T.value.category_id||void 0});return eo(),U.value=t.materialUploaded,c})}function _r(c){const u=c.recognition_status==="confirmed"?I.materialReRecognize(c.material_id):I.materialRecognize(c.material_id),j=c.recognition_status==="confirmed"?t.reRecognize:t.recognize;return F(j,()=>z(u))}function mr(c){return F(t.confirm,()=>z(I.materialConfirm(c.material_id),{display_name:c.display_name,prompt:c.prompt,negative_prompt:c.negative_prompt,tags:c.tags}))}function yr(c){return F(t.archive,async()=>{const u=await ut(I.material(c),{method:"DELETE"});return U.value=t.materialArchived,u})}function Dt(c){return c.split(",").map(u=>u.trim()).filter(Boolean)}function ul(c=0){return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(1)} GB`}function to(c){var u,j;return((j=(u=N.value)==null?void 0:u.roots.find(oe=>oe.uri_prefix===c))==null?void 0:j.bytes)??0}return(c,u)=>{var j,oe,ke,ze,Cn,Zt,Sn,Pn,En,Dn,Tn,no,lo,oo,so,io,ro,ao,uo,co,fo,po,vo,go,ho,_o,mo,yo,bo,wo;return x(),S("main",Qu,[l("aside",Xu,[l("div",Zu,[l("strong",null,a(((j=i.value)==null?void 0:j.display_name)??"ImageStudio"),1),l("span",null,a(((oe=i.value)==null?void 0:oe.dashboard_user)??"AstrBot"),1)]),l("nav",null,[(x(),S(Y,null,fe(n,r=>l("button",{key:r.key,type:"button",class:Qn({active:s.value===r.key}),onClick:se=>s.value=r.key},a(r.label),11,ed)),64))])]),l("section",td,[l("header",nd,[l("div",null,[l("h1",null,a(Je.value),1),l("p",null,a(((ke=d.value)==null?void 0:ke.plugin_status)??"loading")+" / "+a(U.value||t.waiting),1)]),l("div",ld,[l("button",{type:"button",disabled:!!C.value,onClick:Nt},a(C.value||t.refresh),9,od)])]),te.value?(x(),S("section",sd,a(te.value),1)):Z.value?(x(),S("section",id,a(t.loading),1)):(x(),S(Y,{key:2},[s.value==="dashboard"?(x(),S("section",rd,[l("article",null,[l("span",null,a(t.profiles),1),l("strong",null,a(((ze=d.value)==null?void 0:ze.active_profiles)??0),1)]),l("article",null,[l("span",null,a(t.jobs),1),l("strong",null,a(Ke.value),1)]),l("article",null,[l("span",null,a(t.materials),1),l("strong",null,a(((Cn=xe.value)==null?void 0:Cn.total)??0),1)]),l("article",null,[l("span",null,a(t.storage),1),l("strong",null,a(ul(((Zt=N.value)==null?void 0:Zt.total_bytes)??((Sn=d.value)==null?void 0:Sn.storage.total_bytes))),1)])])):K("",!0),s.value==="profiles"?(x(),S("section",ad,[l("header",null,[l("h2",null,a(t.profileList),1),l("span",null,a(((Pn=f.value)==null?void 0:Pn.total)??0),1)]),l("div",ud,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[0]||(u[0]=r=>q.value.name=r),type:"text"},null,512),[[$,q.value.name]])]),l("label",null,[l("span",null,a(t.identity),1),A(l("input",{"onUpdate:modelValue":u[1]||(u[1]=r=>q.value.identity=r),type:"text"},null,512),[[$,q.value.identity]])]),l("label",null,[l("span",null,a(t.personality),1),A(l("input",{"onUpdate:modelValue":u[2]||(u[2]=r=>q.value.personality=r),type:"text",placeholder:"calm, brave"},null,512),[[$,q.value.personality]])]),l("label",null,[l("span",null,a(t.hairColor),1),A(l("input",{"onUpdate:modelValue":u[3]||(u[3]=r=>q.value.hair_color=r),type:"text"},null,512),[[$,q.value.hair_color]])]),l("label",null,[l("span",null,a(t.hairstyle),1),A(l("input",{"onUpdate:modelValue":u[4]||(u[4]=r=>q.value.hairstyle=r),type:"text"},null,512),[[$,q.value.hairstyle]])]),l("label",null,[l("span",null,a(t.eyeColor),1),A(l("input",{"onUpdate:modelValue":u[5]||(u[5]=r=>q.value.eye_color=r),type:"text"},null,512),[[$,q.value.eye_color]])]),l("label",null,[l("span",null,a(t.stylePrompt),1),A(l("input",{"onUpdate:modelValue":u[6]||(u[6]=r=>q.value.style=r),type:"text"},null,512),[[$,q.value.style]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[7]||(u[7]=r=>q.value.clothing_keywords=r),type:"text",placeholder:"white blouse, ribbon"},null,512),[[$,q.value.clothing_keywords]])]),l("label",dd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[8]||(u[8]=r=>q.value.description=r),type:"text"},null,512),[[$,q.value.description]])]),l("button",{type:"button",disabled:!!C.value||!q.value.name,onClick:wi},a(t.quickDraft),9,cd),l("button",{type:"button",disabled:!!C.value||!q.value.name,onClick:ki},a(t.create),9,fd)]),mt.value?(x(),S("pre",pd,a(JSON.stringify(mt.value,null,2)),1)):K("",!0),ce.value.profile_id?(x(),S("div",vd,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[9]||(u[9]=r=>ce.value.name=r),type:"text"},null,512),[[$,ce.value.name]])]),l("label",null,[l("span",null,a(t.provider),1),A(l("input",{"onUpdate:modelValue":u[10]||(u[10]=r=>ce.value.default_model_route=r),type:"text"},null,512),[[$,ce.value.default_model_route]])]),l("label",gd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[11]||(u[11]=r=>ce.value.description=r),type:"text"},null,512),[[$,ce.value.description]])]),l("label",hd,[l("span",null,a(t.basePrompt),1),A(l("input",{"onUpdate:modelValue":u[12]||(u[12]=r=>ce.value.base_prompt=r),type:"text"},null,512),[[$,ce.value.base_prompt]])]),l("label",_d,[l("span",null,a(t.appearancePrompt),1),A(l("input",{"onUpdate:modelValue":u[13]||(u[13]=r=>ce.value.appearance_prompt=r),type:"text"},null,512),[[$,ce.value.appearance_prompt]])]),l("label",md,[l("span",null,a(t.stylePrompt),1),A(l("input",{"onUpdate:modelValue":u[14]||(u[14]=r=>ce.value.style_prompt=r),type:"text"},null,512),[[$,ce.value.style_prompt]])]),l("label",yd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[15]||(u[15]=r=>ce.value.negative_prompt=r),type:"text"},null,512),[[$,ce.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!ce.value.name,onClick:Si},a(t.update),9,bd),l("button",{type:"button",disabled:!!C.value,onClick:Xl},a(t.reset),9,wd)])):K("",!0),l("ul",null,[(x(!0),S(Y,null,fe(((En=f.value)==null?void 0:En.items)??[],r=>(x(),S("li",{key:r.profile_id},[l("div",null,[l("strong",null,a(r.name),1),l("small",null,a(r.profile_id),1)]),l("div",kd,[l("span",xd,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ci(r)},a(t.edit),9,Cd),l("button",{type:"button",disabled:!!C.value,onClick:se=>xi(r.profile_id)},a(t.archive),9,Sd)])]))),128)),(Dn=f.value)!=null&&Dn.items.length?K("",!0):(x(),S("li",Pd,a(t.emptyProfiles),1))])])):K("",!0),s.value==="workflows"?(x(),S("section",Ed,[l("div",Dd,[l("header",null,[l("h2",null,a(we.value),1),l("span",null,a(v.value.length),1)]),l("div",Td,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[16]||(u[16]=r=>it.value.display_name=r),type:"text"},null,512),[[$,it.value.display_name]])]),l("label",null,[l("span",null,a(t.workflowType),1),A(l("select",{"onUpdate:modelValue":u[17]||(u[17]=r=>it.value.workflow_type=r)},[...u[83]||(u[83]=[l("option",{value:"single_image"},"single_image",-1),l("option",{value:"character_gradual"},"character_gradual",-1),l("option",{value:"character_fast"},"character_fast",-1),l("option",{value:"quick_profile"},"quick_profile",-1)])],512),[[bt,it.value.workflow_type]])]),l("button",{type:"button",disabled:!!C.value||!re.value||!it.value.display_name,onClick:Pi},a(t.create),9,Id)]),l("ul",null,[(x(!0),S(Y,null,fe(v.value,r=>(x(),S("li",{key:r.workflow_id},[l("div",null,[l("strong",null,a(r.display_name),1),l("small",null,a(r.workflow_type)+" / "+a(r.workflow_id),1)]),l("div",Od,[l("span",Ad,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>ol(r.workflow_id)},a(t.nodes),9,Ud),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ei(r.workflow_id)},a(t.start),9,$d),l("button",{type:"button",disabled:!!C.value,onClick:se=>Di(r.workflow_id)},a(t.cancel),9,Rd),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ti(r.workflow_id)},a(t.archive),9,Md)])]))),128)),v.value.length?K("",!0):(x(),S("li",Vd,a(t.emptyWorkflows),1))]),_.value?(x(),S("section",Bd,[l("header",null,[l("h2",null,a(t.branches),1),l("span",null,a(h.value.length),1)]),l("div",Ld,[l("label",null,[l("span",null,a(t.branchName),1),A(l("input",{"onUpdate:modelValue":u[18]||(u[18]=r=>We.value.branch_name=r),type:"text",placeholder:"alt_pose"},null,512),[[$,We.value.branch_name]])]),l("button",{type:"button",disabled:!!C.value||!We.value.branch_name,onClick:Ii},a(t.create),9,Fd)]),l("ul",null,[(x(!0),S(Y,null,fe(h.value,r=>(x(),S("li",{key:r.branch_id},[l("div",null,[l("strong",null,a(r.branch_name),1),l("small",null,a(r.base_branch_name??"main")+" / "+a(r.status),1)]),l("button",{type:"button",disabled:!!C.value,onClick:se=>Oi(r.branch_name)},a(t.switchBranch),9,Nd)]))),128))])])):K("",!0)]),l("div",jd,[l("header",null,[l("h2",null,a(t.nodes),1),l("div",Wd,[l("span",null,a(((Tn=_.value)==null?void 0:Tn.workflow.current_branch)??"main"),1),l("button",{type:"button",disabled:!!C.value||!_.value,onClick:$i},a(t.review),9,Hd)])]),l("div",Kd,[l("label",null,[l("span",null,a(t.nodeKey),1),A(l("input",{"onUpdate:modelValue":u[19]||(u[19]=r=>Q.value.node_key=r),type:"text"},null,512),[[$,Q.value.node_key]])]),l("label",null,[l("span",null,a(t.nodeTitle),1),A(l("input",{"onUpdate:modelValue":u[20]||(u[20]=r=>Q.value.title=r),type:"text"},null,512),[[$,Q.value.title]])]),l("label",null,[l("span",null,a(t.nodeType),1),A(l("input",{"onUpdate:modelValue":u[21]||(u[21]=r=>Q.value.node_type=r),type:"text"},null,512),[[$,Q.value.node_type]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[22]||(u[22]=r=>Q.value.status=r),type:"text"},null,512),[[$,Q.value.status]])]),l("label",qd,[l("span",null,a(t.description),1),A(l("input",{"onUpdate:modelValue":u[23]||(u[23]=r=>Q.value.description=r),type:"text"},null,512),[[$,Q.value.description]])]),l("label",Jd,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[24]||(u[24]=r=>Q.value.prompt=r),type:"text"},null,512),[[$,Q.value.prompt]])]),l("label",Gd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[25]||(u[25]=r=>Q.value.negative_prompt=r),type:"text"},null,512),[[$,Q.value.negative_prompt]])]),l("label",null,[l("span",null,a(t.modelRoute),1),A(l("input",{"onUpdate:modelValue":u[26]||(u[26]=r=>Q.value.model_route=r),type:"text"},null,512),[[$,Q.value.model_route]])]),l("button",{type:"button",disabled:!!C.value||!Q.value.node_key||!Q.value.title,onClick:Ui},a(Q.value.node_id?t.update:t.create),9,zd),l("button",{type:"button",disabled:!!C.value,onClick:sl},a(t.reset),9,Yd)]),l("div",Qd,[l("label",null,[l("span",null,a(t.modelRoute),1),A(l("input",{"onUpdate:modelValue":u[27]||(u[27]=r=>Pe.value.model_route=r),type:"text",placeholder:"image_low"},null,512),[[$,Pe.value.model_route]])]),l("label",null,[l("span",null,a(t.idempotencyKey),1),A(l("input",{"onUpdate:modelValue":u[28]||(u[28]=r=>Pe.value.idempotency_key=r),type:"text",placeholder:"node-generate-001"},null,512),[[$,Pe.value.idempotency_key]])]),l("label",null,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[29]||(u[29]=r=>Pe.value.prompt=r),type:"text"},null,512),[[$,Pe.value.prompt]])]),l("label",Xd,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[30]||(u[30]=r=>Pe.value.negative_prompt=r),type:"text"},null,512),[[$,Pe.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!M.value,onClick:Mi},a(t.generate),9,Zd),l("button",{type:"button",disabled:!!C.value||!M.value,onClick:Ri},a(t.review),9,ec)]),l("ul",null,[(x(!0),S(Y,null,fe(((no=_.value)==null?void 0:no.nodes)??[],r=>(x(),S("li",{key:r.node_id},[l("div",null,[l("strong",null,a(r.title),1),l("small",null,a(r.node_key)+" / "+a(r.node_id),1)]),l("div",tc,[l("span",null,a(r.branch_name),1),l("span",nc,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ai(r)},a(t.edit),9,lc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Vi(r.node_id)},a(t.retry),9,oc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Bi(r.node_id)},a(t.complete),9,sc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Ql(r.node_id)},a(t.images),9,ic)])]))),128)),(lo=_.value)!=null&&lo.nodes.length?K("",!0):(x(),S("li",rc,a(t.emptyWorkflows),1))]),l("ul",null,[(x(!0),S(Y,null,fe(ne.value,r=>(x(),S("li",{key:r.image_id},[l("div",null,[l("strong",null,a(r.image_id),1),l("small",null,a(r.thumbnail_uri??r.image_uri),1)]),l("div",ac,[r.is_selected?(x(),S("span",uc,a(t.select),1)):K("",!0),l("button",{type:"button",disabled:!!C.value||r.is_selected||r.is_archived,onClick:se=>Li(r.image_id)},a(t.select),9,dc),l("button",{type:"button",disabled:!!C.value||r.is_archived,onClick:se=>Fi(r.image_id)},a(t.adopt),9,cc),l("button",{type:"button",disabled:!!C.value||!(r.thumbnail_uri??r.image_uri).startsWith("storage://"),onClick:se=>dr(r.thumbnail_uri??r.image_uri)},a(t.signMaterial),9,fc),l("button",{type:"button",disabled:!!C.value||!r.is_selected,onClick:se=>Ni(r.image_id)},a(t.unselect),9,pc),l("button",{type:"button",disabled:!!C.value||r.is_archived,onClick:se=>ji(r.image_id)},a(t.archive),9,vc),l("button",{type:"button",disabled:!!C.value,onClick:se=>Wi(r.image_id)},a(t.delete),9,gc)])]))),128)),ne.value.length?K("",!0):(x(),S("li",hc,a(t.emptyImages),1))]),je.value?(x(),S("pre",_c,a(JSON.stringify(je.value,null,2)),1)):K("",!0),W.value?(x(),S("pre",mc,a(JSON.stringify(W.value,null,2)),1)):K("",!0),l("section",yc,[l("header",null,[l("h2",null,a(t.history),1),l("span",null,a(w.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(w.value,r=>(x(),S("li",{key:r.history_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.title??r.node_id??r.workflow_id),1)]),l("span",null,a(r.branch_name),1)]))),128)),w.value.length?K("",!0):(x(),S("li",bc,a(t.emptyHistory),1))])]),R.value?(x(),S("section",wc,[l("header",null,[l("h2",null,a(t.reviewResult),1),l("span",null,a(R.value.passed?t.support:t.unsupported),1)]),l("pre",null,a(JSON.stringify(R.value,null,2)),1)])):K("",!0),_.value?(x(),S("pre",kc,a(JSON.stringify(_.value.workflow,null,2)),1)):K("",!0)])])):K("",!0),s.value==="materials"?(x(),S("section",xc,[l("div",Cc,[l("header",null,[l("h2",null,a(t.materialCategories),1),l("span",null,a(he.value.length),1)]),l("div",Sc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[31]||(u[31]=r=>D.value.name=r),type:"text"},null,512),[[$,D.value.name]])]),l("label",null,[l("span",null,a(t.categoryType),1),A(l("input",{"onUpdate:modelValue":u[32]||(u[32]=r=>D.value.category_type=r),type:"text"},null,512),[[$,D.value.category_type]])]),l("label",null,[l("span",null,a(t.sortOrder),1),A(l("input",{"onUpdate:modelValue":u[33]||(u[33]=r=>D.value.sort_order=r),type:"number"},null,512),[[$,D.value.sort_order,void 0,{number:!0}]])]),l("button",{type:"button",disabled:!!C.value||!D.value.name,onClick:fr},a(D.value.category_id?t.update:t.create),9,Pc),l("button",{type:"button",disabled:!!C.value,onClick:xn},a(t.reset),9,Ec)]),l("ul",null,[(x(!0),S(Y,null,fe(he.value,r=>(x(),S("li",{key:r.category_id},[l("div",null,[l("strong",null,a(r.name),1),l("small",null,a(r.category_type),1)]),l("div",Dc,[l("span",null,a(r.sort_order),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>cr(r)},a(t.edit),9,Tc),l("button",{type:"button",disabled:!!C.value,onClick:se=>pr(r.category_id)},a(t.delete),9,Ic)])]))),128)),he.value.length?K("",!0):(x(),S("li",Oc,a(t.emptyCategories),1))])]),l("div",Ac,[l("header",null,[l("h2",null,a(t.materialItems),1),l("div",Uc,[l("span",null,a(qe.value)+" "+a(t.pendingConfirm),1),l("button",{type:"button",disabled:!!C.value,onClick:ur},a(t.signFirstImage),9,$c)])]),l("div",Rc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[34]||(u[34]=r=>y.value.display_name=r),type:"text"},null,512),[[$,y.value.display_name]])]),l("label",null,[l("span",null,a(t.imageUri),1),A(l("input",{"onUpdate:modelValue":u[35]||(u[35]=r=>y.value.image_uri=r),type:"text",placeholder:"storage://materials/example.png"},null,512),[[$,y.value.image_uri]])]),l("label",null,[l("span",null,a(t.category),1),A(l("select",{"onUpdate:modelValue":u[36]||(u[36]=r=>y.value.category_id=r)},[l("option",Mc,a(t.allCategories),1),(x(!0),S(Y,null,fe(he.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,Vc))),128))],512),[[bt,y.value.category_id]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[37]||(u[37]=r=>y.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[$,y.value.tags]])]),l("label",null,[l("span",null,a(t.prompt),1),A(l("input",{"onUpdate:modelValue":u[38]||(u[38]=r=>y.value.prompt=r),type:"text"},null,512),[[$,y.value.prompt]])]),l("label",null,[l("span",null,a(t.negativePrompt),1),A(l("input",{"onUpdate:modelValue":u[39]||(u[39]=r=>y.value.negative_prompt=r),type:"text"},null,512),[[$,y.value.negative_prompt]])]),l("button",{type:"button",disabled:!!C.value||!y.value.display_name,onClick:vr},a(y.value.material_id?t.update:t.create),9,Bc),l("button",{type:"button",disabled:!!C.value,onClick:al},a(t.reset),9,Lc)]),l("ul",null,[(x(!0),S(Y,null,fe(((oo=xe.value)==null?void 0:oo.items)??[],r=>(x(),S("li",{key:r.material_id},[l("div",null,[l("strong",null,a(r.display_name),1),l("small",null,a(r.image_uri??t.noImage),1)]),l("div",Fc,[l("span",Nc,a(r.recognition_status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>gr(r)},a(t.edit),9,jc),l("button",{type:"button",disabled:!!C.value,onClick:se=>_r(r)},a(r.recognition_status==="confirmed"?t.reRecognize:t.recognize),9,Wc),l("button",{type:"button",disabled:!!C.value||r.recognition_status==="confirmed",onClick:se=>mr(r)},a(t.confirm),9,Hc),l("button",{type:"button",disabled:!!C.value,onClick:se=>yr(r.material_id)},a(t.archive),9,Kc)])]))),128)),(so=xe.value)!=null&&so.items.length?K("",!0):(x(),S("li",qc,a(t.emptyMaterials),1))]),l("div",Jc,[l("label",null,[l("span",null,a(t.name),1),A(l("input",{"onUpdate:modelValue":u[40]||(u[40]=r=>T.value.display_name=r),type:"text"},null,512),[[$,T.value.display_name]])]),l("label",null,[l("span",null,a(t.filename),1),A(l("input",{"onUpdate:modelValue":u[41]||(u[41]=r=>T.value.filename=r),type:"text"},null,512),[[$,T.value.filename]])]),l("label",null,[l("span",null,a(t.contentType),1),A(l("input",{"onUpdate:modelValue":u[42]||(u[42]=r=>T.value.content_type=r),type:"text"},null,512),[[$,T.value.content_type]])]),l("label",null,[l("span",null,a(t.imageUri),1),A(l("input",{"onUpdate:modelValue":u[43]||(u[43]=r=>T.value.image_uri=r),type:"text",placeholder:"storage://materials/upload.png"},null,512),[[$,T.value.image_uri]])]),l("label",null,[l("span",null,a(t.category),1),A(l("select",{"onUpdate:modelValue":u[44]||(u[44]=r=>T.value.category_id=r)},[l("option",Gc,a(t.allCategories),1),(x(!0),S(Y,null,fe(he.value,r=>(x(),S("option",{key:r.category_id,value:r.category_id},a(r.name),9,zc))),128))],512),[[bt,T.value.category_id]])]),l("button",{type:"button",disabled:!!C.value||!T.value.image_uri,onClick:hr},a(t.upload),9,Yc),l("button",{type:"button",disabled:!!C.value,onClick:eo},a(t.reset),9,Qc)]),je.value?(x(),S("pre",Xc,a(JSON.stringify(je.value,null,2)),1)):K("",!0)])])):K("",!0),s.value==="wardrobe"?(x(),S("section",Zc,[l("header",null,[l("h2",null,a(we.value),1),l("button",{type:"button",disabled:!re.value||!!C.value,onClick:zi},a(t.match),9,ef)]),l("div",tf,[l("label",null,[l("span",null,a(t.selectMaterial),1),A(l("select",{"onUpdate:modelValue":u[45]||(u[45]=r=>P.value.material_id=r)},[l("option",nf,a(t.selectMaterial),1),(x(!0),S(Y,null,fe(Ut.value,r=>(x(),S("option",{key:r.material_id,value:r.material_id},a(r.display_name),9,lf))),128))],512),[[bt,P.value.material_id]])]),l("label",null,[l("span",null,a(t.wardrobeCategory),1),A(l("input",{"onUpdate:modelValue":u[46]||(u[46]=r=>P.value.wardrobe_category=r),type:"text"},null,512),[[$,P.value.wardrobe_category]])]),l("label",null,[l("span",null,a(t.tags),1),A(l("input",{"onUpdate:modelValue":u[47]||(u[47]=r=>P.value.tags=r),type:"text",placeholder:"daily, top"},null,512),[[$,P.value.tags]])]),l("label",null,[l("span",null,a(t.season),1),A(l("input",{"onUpdate:modelValue":u[48]||(u[48]=r=>P.value.season=r),type:"text"},null,512),[[$,P.value.season]])]),l("label",null,[l("span",null,a(t.style),1),A(l("input",{"onUpdate:modelValue":u[49]||(u[49]=r=>P.value.style=r),type:"text"},null,512),[[$,P.value.style]])]),l("button",{type:"button",disabled:!!C.value||!re.value||!P.value.material_id||!P.value.wardrobe_category,onClick:Qi},a(t.importToWardrobe),9,of)]),l("ul",null,[(x(!0),S(Y,null,fe(Oe.value,r=>(x(),S("li",{key:r.wardrobe_item_id},[l("div",null,[l("strong",null,a(r.wardrobe_category),1),l("small",null,a(r.material_id)+" / "+a(r.tags.join(", ")||t.noTags),1)]),l("div",sf,[l("span",null,a(r.usage_count),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>Xi(r.wardrobe_item_id)},a(t.delete),9,rf)])]))),128)),Oe.value.length?K("",!0):(x(),S("li",af,a(t.emptyWardrobe),1))]),Fe.value?(x(),S("pre",uf,a(JSON.stringify(Fe.value,null,2)),1)):K("",!0),l("div",df,[l("label",null,[l("span",null,a(t.categories),1),A(l("input",{"onUpdate:modelValue":u[50]||(u[50]=r=>b.value.categories=r),type:"text"},null,512),[[$,b.value.categories]])]),l("label",null,[l("span",null,a(t.mood),1),A(l("input",{"onUpdate:modelValue":u[51]||(u[51]=r=>b.value.mood=r),type:"text"},null,512),[[$,b.value.mood]])]),l("label",null,[l("span",null,a(t.weather),1),A(l("input",{"onUpdate:modelValue":u[52]||(u[52]=r=>b.value.weather=r),type:"text"},null,512),[[$,b.value.weather]])]),l("label",null,[l("span",null,a(t.keywords),1),A(l("input",{"onUpdate:modelValue":u[53]||(u[53]=r=>b.value.keywords=r),type:"text"},null,512),[[$,b.value.keywords]])]),l("button",{type:"button",disabled:!!C.value||!re.value,onClick:Zi},a(t.dailyOutfit),9,cf)]),L.value?(x(),S("pre",ff,a(JSON.stringify(L.value,null,2)),1)):K("",!0)])):K("",!0),s.value==="jobs"?(x(),S("section",pf,[l("header",null,[l("h2",null,a(t.jobs),1),l("div",vf,[l("button",{type:"button",disabled:!!C.value,onClick:Hi},a(t.moveFailed),9,gf),l("button",{type:"button",disabled:!!C.value,onClick:Ki},a(t.retryDead),9,hf)])]),l("div",_f,[l("label",null,[u[84]||(u[84]=l("span",null,"Status",-1)),A(l("select",{"onUpdate:modelValue":u[54]||(u[54]=r=>He.value.status=r)},[l("option",mf,a(t.allStatuses),1),(x(),S(Y,null,fe(De,r=>l("option",{key:r,value:r},a(r),9,yf)),64))],512),[[bt,He.value.status]])]),l("label",null,[l("span",null,a(t.profiles),1),A(l("select",{"onUpdate:modelValue":u[55]||(u[55]=r=>He.value.profile_id=r)},[l("option",bf,a(t.allProfiles),1),(x(!0),S(Y,null,fe(((io=f.value)==null?void 0:io.items)??[],r=>(x(),S("option",{key:r.profile_id,value:r.profile_id},a(r.name),9,wf))),128))],512),[[bt,He.value.profile_id]])]),l("label",null,[l("span",null,a(t.workflows),1),A(l("select",{"onUpdate:modelValue":u[56]||(u[56]=r=>He.value.workflow_id=r)},[l("option",kf,a(t.allWorkflows),1),(x(!0),S(Y,null,fe(v.value,r=>(x(),S("option",{key:r.workflow_id,value:r.workflow_id},a(r.display_name),9,xf))),128))],512),[[bt,He.value.workflow_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:pi},a(t.filter),9,Cf)]),l("ul",null,[(x(!0),S(Y,null,fe(((ro=me.value)==null?void 0:ro.items)??[],r=>(x(),S("li",{key:r.task_id},[l("div",null,[l("strong",null,a(r.task_id),1),l("small",null,a(r.task_type)+" / "+a(r.progress)+"%",1)]),l("div",Sf,[l("span",Pf,a(r.status),1),["failed","dead_letter","cancelled"].includes(r.status)?(x(),S("button",{key:0,type:"button",onClick:se=>_i(r.task_id)},a(t.retry),9,Ef)):K("",!0),["completed","succeeded","cancelled"].includes(r.status)?K("",!0):(x(),S("button",{key:1,type:"button",onClick:se=>mi(r.task_id)},a(t.cancel),9,Df)),l("button",{type:"button",disabled:!!C.value,onClick:se=>yi(r.task_id)},a(t.detail),9,Tf)])]))),128)),(ao=me.value)!=null&&ao.items.length?K("",!0):(x(),S("li",If,a(t.emptyJobs),1))]),ie.value?(x(),S("section",Of,[l("header",null,[l("h2",null,a(t.jobDetail),1),l("span",null,a(ie.value.status),1)]),l("pre",null,a(JSON.stringify(ie.value,null,2)),1)])):K("",!0)])):K("",!0),s.value==="discovery"?(x(),S("section",Af,[l("div",Uf,[l("header",null,[l("h2",null,a(t.dialects),1),l("div",$f,[l("button",{type:"button",disabled:!!C.value,onClick:Ji},a(t.probeProvider),9,Rf),l("button",{type:"button",disabled:!!C.value,onClick:qi},a(t.safeProbe),9,Mf)])]),l("ul",null,[(x(!0),S(Y,null,fe(Me.value,r=>(x(),S("li",{key:r.dialect},[l("div",null,[l("strong",null,a(r.label),1),l("small",null,a(r.capabilities.join(", ")||t.unconfirmed),1)]),l("span",null,a(r.dialect),1)]))),128))]),l("div",Vf,[l("label",null,[l("span",null,a(t.provider),1),A(l("input",{"onUpdate:modelValue":u[57]||(u[57]=r=>O.value.provider_id=r),type:"text",placeholder:"local-preview"},null,512),[[$,O.value.provider_id]])]),l("label",null,[l("span",null,a(t.model),1),A(l("input",{"onUpdate:modelValue":u[58]||(u[58]=r=>O.value.model_id=r),type:"text",placeholder:"metadata-only"},null,512),[[$,O.value.model_id]])]),l("label",null,[l("span",null,a(t.requiredCapabilities),1),A(l("input",{"onUpdate:modelValue":u[59]||(u[59]=r=>O.value.required_capabilities=r),type:"text",placeholder:"text_to_image"},null,512),[[$,O.value.required_capabilities]])]),l("button",{type:"button",disabled:!!C.value||!O.value.provider_id||!O.value.model_id,onClick:Gi},a(t.validatePlan),9,Bf)]),B.value?(x(),S("pre",Lf,a(JSON.stringify(B.value,null,2)),1)):K("",!0)]),l("div",Ff,[l("header",null,[l("h2",null,a(t.capabilityProfiles),1),l("span",null,a(_t.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(_t.value,r=>(x(),S("li",{key:r.capability_profile_id},[l("div",null,[l("strong",null,a(r.provider_id)+" / "+a(r.model_id),1),l("small",null,a(r.dialect),1)]),l("div",Nf,[l("span",jf,a(r.status),1),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"confirmed_supported")},a(t.support),9,Wf),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"confirmed_unsupported")},a(t.unsupported),9,Hf),l("button",{type:"button",disabled:!!C.value,onClick:se=>il(r,"unconfirmed")},a(t.unconfirmed),9,Kf)])]))),128)),_t.value.length?K("",!0):(x(),S("li",qf,a(t.emptyCapabilities),1))])])])):K("",!0),s.value==="logs"?(x(),S("section",Jf,[l("div",Gf,[l("div",zf,[l("header",null,[l("h2",null,a(t.generationLogs),1),l("span",null,a(ve.value.generation.length),1)]),l("div",Yf,[l("label",null,[l("span",null,a(t.status),1),A(l("select",{"onUpdate:modelValue":u[60]||(u[60]=r=>Ee.value.status=r)},[l("option",Qf,a(t.allStatuses),1),(x(),S(Y,null,fe(De,r=>l("option",{key:`gen-${r}`,value:r},a(r),9,Xf)),64))],512),[[bt,Ee.value.status]])]),l("label",null,[u[85]||(u[85]=l("span",null,"ProfileId",-1)),A(l("input",{"onUpdate:modelValue":u[61]||(u[61]=r=>Ee.value.profile_id=r),type:"text"},null,512),[[$,Ee.value.profile_id]])]),l("label",null,[u[86]||(u[86]=l("span",null,"WorkflowId",-1)),A(l("input",{"onUpdate:modelValue":u[62]||(u[62]=r=>Ee.value.workflow_id=r),type:"text"},null,512),[[$,Ee.value.workflow_id]])]),l("label",null,[u[87]||(u[87]=l("span",null,"NodeId",-1)),A(l("input",{"onUpdate:modelValue":u[63]||(u[63]=r=>Ee.value.node_id=r),type:"text"},null,512),[[$,Ee.value.node_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:ri},a(t.applyFilters),9,Zf)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.generation,r=>(x(),S("li",{key:r.task_id},[l("div",null,[l("strong",null,a(r.task_id),1),l("small",null,a(r.status)+" / "+a(r.progress)+"%",1)]),l("span",null,a(r.created_at),1)]))),128)),ve.value.generation.length?K("",!0):(x(),S("li",ep,a(t.emptyGenerationLogs),1))])]),l("div",tp,[l("header",null,[l("h2",null,a(t.errorLogs),1),l("span",null,a(ve.value.errors.length),1)]),l("div",np,[l("label",null,[u[89]||(u[89]=l("span",null,"Source",-1)),A(l("select",{"onUpdate:modelValue":u[64]||(u[64]=r=>p.value.source=r)},[...u[88]||(u[88]=[l("option",{value:""},"All",-1),l("option",{value:"generation_task"},"generation_task",-1),l("option",{value:"integration"},"integration",-1)])],512),[[bt,p.value.source]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[65]||(u[65]=r=>p.value.status=r),type:"text"},null,512),[[$,p.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:ui},a(t.applyFilters),9,lp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.errors,r=>(x(),S("li",{key:`${r.source}-${r.id}`},[l("div",null,[l("strong",null,a(r.source),1),l("small",null,a(r.error_message??t.noErrorDetail),1)]),l("span",op,a(r.status),1)]))),128)),ve.value.errors.length?K("",!0):(x(),S("li",sp,a(t.emptyErrors),1))])])]),l("div",ip,[l("div",rp,[l("header",null,[l("h2",null,a(t.workflowLogs),1),l("span",null,a(ve.value.workflows.length),1)]),l("div",ap,[l("label",null,[u[90]||(u[90]=l("span",null,"WorkflowId",-1)),A(l("input",{"onUpdate:modelValue":u[66]||(u[66]=r=>Ze.value.workflow_id=r),type:"text"},null,512),[[$,Ze.value.workflow_id]])]),l("label",null,[u[91]||(u[91]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[67]||(u[67]=r=>Ze.value.action=r),type:"text"},null,512),[[$,Ze.value.action]])]),l("label",null,[u[92]||(u[92]=l("span",null,"NodeId",-1)),A(l("input",{"onUpdate:modelValue":u[68]||(u[68]=r=>Ze.value.node_id=r),type:"text"},null,512),[[$,Ze.value.node_id]])]),l("label",null,[l("span",null,a(t.currentBranch),1),A(l("input",{"onUpdate:modelValue":u[69]||(u[69]=r=>Ze.value.branch_name=r),type:"text"},null,512),[[$,Ze.value.branch_name]])]),l("button",{type:"button",disabled:!!C.value,onClick:ai},a(t.applyFilters),9,up)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.workflows,r=>(x(),S("li",{key:r.history_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.title??r.workflow_id),1)]),l("span",null,a(r.branch_name??"main"),1)]))),128)),ve.value.workflows.length?K("",!0):(x(),S("li",dp,a(t.emptyWorkflowLogs),1))])]),l("div",cp,[l("header",null,[l("h2",null,a(t.integrationLogs),1),l("span",null,a(ve.value.integrations.length),1)]),l("div",fp,[l("label",null,[u[93]||(u[93]=l("span",null,"Integration",-1)),A(l("input",{"onUpdate:modelValue":u[70]||(u[70]=r=>g.value.integration_name=r),type:"text"},null,512),[[$,g.value.integration_name]])]),l("label",null,[u[94]||(u[94]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[71]||(u[71]=r=>g.value.action=r),type:"text"},null,512),[[$,g.value.action]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[72]||(u[72]=r=>g.value.status=r),type:"text"},null,512),[[$,g.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:di},a(t.applyFilters),9,pp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.integrations,r=>(x(),S("li",{key:r.integration_log_id},[l("div",null,[l("strong",null,a(r.integration_name),1),l("small",null,a(r.action),1)]),l("span",vp,a(r.status),1)]))),128)),ve.value.integrations.length?K("",!0):(x(),S("li",gp,a(t.emptyIntegrationLogs),1))])])]),l("div",hp,[l("header",null,[l("h2",null,a(t.integrationEvents),1),l("span",null,a(Ne.value.length),1)]),l("div",_p,[l("label",null,[u[95]||(u[95]=l("span",null,"Integration",-1)),A(l("input",{"onUpdate:modelValue":u[73]||(u[73]=r=>m.value.integration_name=r),type:"text"},null,512),[[$,m.value.integration_name]])]),l("label",null,[u[96]||(u[96]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[74]||(u[74]=r=>m.value.action=r),type:"text"},null,512),[[$,m.value.action]])]),l("label",null,[l("span",null,a(t.status),1),A(l("input",{"onUpdate:modelValue":u[75]||(u[75]=r=>m.value.status=r),type:"text"},null,512),[[$,m.value.status]])]),l("button",{type:"button",disabled:!!C.value,onClick:ci},a(t.applyFilters),9,mp)]),l("ul",null,[(x(!0),S(Y,null,fe(Ne.value,r=>(x(),S("li",{key:`event-${r.integration_log_id}`},[l("div",null,[l("strong",null,a(r.integration_name),1),l("small",null,a(r.action)+" / "+a(r.created_at),1)]),l("span",yp,a(r.status),1)]))),128)),Ne.value.length?K("",!0):(x(),S("li",bp,a(t.emptyIntegrationLogs),1))]),Ne.value.length?(x(),S("pre",wp,a(JSON.stringify(Ne.value[0],null,2)),1)):K("",!0)]),l("div",kp,[l("header",null,[l("h2",null,a(t.eventStream),1),l("span",null,a(((uo=Xe.value)==null?void 0:uo.count)??0),1)]),l("div",xp,[l("label",null,[u[97]||(u[97]=l("span",null,"EventType",-1)),A(l("input",{"onUpdate:modelValue":u[76]||(u[76]=r=>E.value.event_type=r),type:"text"},null,512),[[$,E.value.event_type]])]),l("button",{type:"button",disabled:!!C.value,onClick:Yl},a(t.applyFilters),9,Cp)]),l("ul",null,[(x(!0),S(Y,null,fe(((co=Xe.value)==null?void 0:co.events)??[],r=>(x(),S("li",{key:r.event_id},[l("div",null,[l("strong",null,a(r.event_type),1),l("small",null,a(r.event_id)+" / "+a(r.created_at),1)]),l("span",null,a(Object.keys(r.data).length),1)]))),128)),(fo=Xe.value)!=null&&fo.events.length?K("",!0):(x(),S("li",Sp,a(t.emptyEvents),1))]),(po=Xe.value)!=null&&po.body?(x(),S("pre",Pp,a(Xe.value.body),1)):K("",!0)]),l("div",Ep,[l("header",null,[l("h2",null,a(t.auditLogs),1),l("span",null,a(ve.value.audit.length),1)]),l("div",Dp,[l("label",null,[u[98]||(u[98]=l("span",null,"Action",-1)),A(l("input",{"onUpdate:modelValue":u[77]||(u[77]=r=>k.value.action=r),type:"text"},null,512),[[$,k.value.action]])]),l("label",null,[l("span",null,a(t.targetType),1),A(l("input",{"onUpdate:modelValue":u[78]||(u[78]=r=>k.value.target_type=r),type:"text"},null,512),[[$,k.value.target_type]])]),l("label",null,[l("span",null,a(t.actor),1),A(l("input",{"onUpdate:modelValue":u[79]||(u[79]=r=>k.value.actor_id=r),type:"text"},null,512),[[$,k.value.actor_id]])]),l("button",{type:"button",disabled:!!C.value,onClick:fi},a(t.filter),9,Tp)]),l("ul",null,[(x(!0),S(Y,null,fe(ve.value.audit,r=>(x(),S("li",{key:r.audit_id},[l("div",null,[l("strong",null,a(r.action),1),l("small",null,a(r.actor_type)+" / "+a(r.target_type)+" / "+a(r.target_id),1)]),l("span",null,a(r.created_at),1)]))),128)),ve.value.audit.length?K("",!0):(x(),S("li",Ip,a(t.emptyAuditLogs),1))])])])):K("",!0),s.value==="settings"?(x(),S("section",Op,[l("div",Ap,[l("button",{type:"button",disabled:!!C.value,onClick:er},a(t.reload),9,Up),l("button",{type:"button",disabled:!!C.value,onClick:u[80]||(u[80]=r=>Wt())},a(t.reset),9,$p),l("button",{type:"button",disabled:!!C.value,onClick:lr},a(t.validate),9,Rp),l("button",{type:"button",disabled:!!C.value,onClick:or},a(t.diff),9,Mp),l("button",{type:"button",disabled:!!C.value,onClick:sr},a(t.save),9,Vp),l("button",{type:"button",disabled:!!C.value,onClick:tr},a(t.exportRedacted),9,Bp),l("button",{type:"button",disabled:!!C.value,onClick:Zl},a(t.loadSnapshots),9,Lp)]),l("div",Fp,[(x(!0),S(Y,null,fe(((vo=ee.value)==null?void 0:vo.sections)??[],r=>(x(),S("article",{key:r.key},[l("h2",null,a(r.title),1),l("span",null,a(r.fields.length),1)]))),128))]),l("section",Np,[l("header",null,[l("h2",null,a(t.settingsEditor),1),l("span",null,a(((go=X.value)==null?void 0:go.config_path)??"***PATH***"),1)]),A(l("textarea",{"onUpdate:modelValue":u[81]||(u[81]=r=>At.value=r),spellcheck:"false"},null,512),[[$,At.value]])]),l("section",jp,[l("header",null,[l("h2",null,a(t.importSettings),1),l("button",{type:"button",disabled:!!C.value||!be.value,onClick:ir},a(t.importSettings),9,Wp)]),A(l("textarea",{"onUpdate:modelValue":u[82]||(u[82]=r=>be.value=r),spellcheck:"false"},null,512),[[$,be.value]])]),l("section",Hp,[l("header",null,[l("h2",null,a(t.snapshots),1),l("span",null,a(de.value.length),1)]),l("ul",null,[(x(!0),S(Y,null,fe(de.value,r=>(x(),S("li",{key:r.snapshot_id},[l("div",null,[l("strong",null,a(r.reason),1),l("small",null,a(r.snapshot_id)+" / "+a(r.created_at),1)]),l("div",Kp,[l("button",{type:"button",disabled:!!C.value,onClick:se=>rr(r.snapshot_id)},a(t.loadSnapshot),9,qp),l("button",{type:"button",disabled:!!C.value,onClick:se=>ar(r.snapshot_id)},a(t.rollback),9,Jp)])]))),128))])]),le.value?(x(),S("section",Gp,[l("header",null,[l("h2",null,a(t.snapshotPreview),1),l("span",null,a(le.value.snapshot_id),1)]),l("pre",null,a(JSON.stringify(le.value.config,null,2)),1)])):K("",!0),l("div",zp,[l("div",Yp,[l("header",null,[l("h2",null,a(t.validationResult),1),l("span",null,a(((ho=st.value)==null?void 0:ho.valid)??"-"),1)]),l("pre",null,a(JSON.stringify(st.value??{},null,2)),1)]),l("div",Qp,[l("header",null,[l("h2",null,a(t.diffResult),1),l("span",null,a(((_o=Be.value)==null?void 0:_o.changes.length)??0),1)]),l("pre",null,a(JSON.stringify(Be.value??{},null,2)),1)])]),Ve.value?(x(),S("section",Xp,[l("header",null,[l("h2",null,a(t.exportSettings),1),l("span",null,a(Ve.value.redacted),1)]),l("pre",null,a(JSON.stringify(Ve.value.config,null,2)),1)])):K("",!0)])):K("",!0)],64))]),l("aside",Zp,[l("h2",null,a(t.running),1),l("dl",null,[l("div",null,[u[99]||(u[99]=l("dt",null,"Pending",-1)),l("dd",null,a(((mo=d.value)==null?void 0:mo.queue.pending)??0),1)]),l("div",null,[u[100]||(u[100]=l("dt",null,"Running",-1)),l("dd",null,a(((yo=d.value)==null?void 0:yo.queue.running)??0),1)]),l("div",null,[u[101]||(u[101]=l("dt",null,"Failed",-1)),l("dd",null,a(((bo=d.value)==null?void 0:bo.queue.failed)??0),1)]),l("div",null,[u[102]||(u[102]=l("dt",null,"Dead",-1)),l("dd",null,a(((wo=d.value)==null?void 0:wo.queue.dead_letter)??0),1)])]),l("h2",null,a(t.storage),1),l("dl",null,[l("div",null,[u[103]||(u[103]=l("dt",null,"Images",-1)),l("dd",null,a(ul(to("storage://images/"))),1)]),l("div",null,[u[104]||(u[104]=l("dt",null,"Materials",-1)),l("dd",null,a(ul(to("storage://materials/"))),1)])])])])}}}),tv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},nv=tv(ev,[["__scopeId","data-v-05a115ee"]]);Ku(nv).mount("#app"); diff --git a/web/assets/index-BA90ZIGa.css b/web/assets/index-BA90ZIGa.css new file mode 100644 index 0000000..83a666d --- /dev/null +++ b/web/assets/index-BA90ZIGa.css @@ -0,0 +1 @@ +.web-shell[data-v-806c2032]{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-806c2032],.inspector[data-v-806c2032]{background:#fff}.sidebar[data-v-806c2032]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-806c2032]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-806c2032]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-806c2032]{font-size:19px}.brand span[data-v-806c2032],p[data-v-806c2032],dt[data-v-806c2032],.empty[data-v-806c2032],small[data-v-806c2032]{color:#667085}nav[data-v-806c2032]{display:grid;gap:6px}button[data-v-806c2032]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-806c2032]:disabled{cursor:wait;opacity:.62}nav button[data-v-806c2032]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-806c2032]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-806c2032]{min-width:0;padding:24px}.topbar[data-v-806c2032],.list-view header[data-v-806c2032],.toolbar[data-v-806c2032],.inline-actions[data-v-806c2032]{display:flex;gap:12px;align-items:center}.topbar[data-v-806c2032],.list-view header[data-v-806c2032]{justify-content:space-between}.actions[data-v-806c2032],.inline-actions[data-v-806c2032]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-806c2032],.toolbar button[data-v-806c2032],.list-view header button[data-v-806c2032],.inline-actions button[data-v-806c2032]{padding:0 14px}h1[data-v-806c2032],h2[data-v-806c2032],p[data-v-806c2032],dl[data-v-806c2032],dd[data-v-806c2032]{margin:0}h1[data-v-806c2032]{min-height:30px;font-size:26px}h2[data-v-806c2032]{font-size:15px}.notice[data-v-806c2032],article[data-v-806c2032],.list-view[data-v-806c2032],.editor-panel[data-v-806c2032],pre[data-v-806c2032]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-806c2032]{margin-top:18px;padding:14px}.error[data-v-806c2032]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-806c2032],.split-view[data-v-806c2032]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-806c2032]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-806c2032]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-806c2032]{display:grid;gap:8px;padding:16px}article span[data-v-806c2032]{color:#667085;font-size:13px}article strong[data-v-806c2032]{font-size:24px}.list-view[data-v-806c2032],.logs-view[data-v-806c2032],.settings-view[data-v-806c2032]{margin-top:18px}.split-view .list-view[data-v-806c2032],.logs-view .list-view[data-v-806c2032]{margin-top:0}.list-view[data-v-806c2032]{padding:16px}.editor-panel[data-v-806c2032]{display:grid;gap:12px;margin-top:12px;padding:16px}.inspector-form[data-v-806c2032]{display:grid;gap:10px;margin:12px 0}.inspector-form button[data-v-806c2032]{padding:0 12px}.editor-panel header[data-v-806c2032]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-806c2032]{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-806c2032]{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-806c2032]{display:grid;gap:5px;min-width:0}label span[data-v-806c2032]{color:#667085;font-size:12px}.wide-field[data-v-806c2032]{grid-column:1 / -1}input[data-v-806c2032],select[data-v-806c2032]{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-806c2032]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-806c2032]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-806c2032]:first-child{border-top:0}li>div[data-v-806c2032]{display:grid;gap:3px;min-width:0}li strong[data-v-806c2032],li span[data-v-806c2032],li small[data-v-806c2032]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-806c2032]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-806c2032]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-806c2032]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-806c2032]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-806c2032]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-806c2032]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-806c2032]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-806c2032]{display:none}}@media(max-width:820px){.web-shell[data-v-806c2032]{grid-template-columns:1fr}.sidebar[data-v-806c2032]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-806c2032]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-806c2032]{text-align:center}.dashboard-grid[data-v-806c2032],.split-view[data-v-806c2032],.settings-sections[data-v-806c2032]{grid-template-columns:1fr}.topbar[data-v-806c2032],.list-view header[data-v-806c2032]{align-items:flex-start;flex-direction:column}} diff --git a/web/assets/index-DMu8Cdtx.css b/web/assets/index-DMu8Cdtx.css deleted file mode 100644 index c0a3eb3..0000000 --- a/web/assets/index-DMu8Cdtx.css +++ /dev/null @@ -1 +0,0 @@ -.web-shell[data-v-05a115ee]{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-05a115ee],.inspector[data-v-05a115ee]{background:#fff}.sidebar[data-v-05a115ee]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-05a115ee]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-05a115ee]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-05a115ee]{font-size:19px}.brand span[data-v-05a115ee],p[data-v-05a115ee],dt[data-v-05a115ee],.empty[data-v-05a115ee],small[data-v-05a115ee]{color:#667085}nav[data-v-05a115ee]{display:grid;gap:6px}button[data-v-05a115ee]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-05a115ee]:disabled{cursor:wait;opacity:.62}nav button[data-v-05a115ee]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-05a115ee]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-05a115ee]{min-width:0;padding:24px}.topbar[data-v-05a115ee],.list-view header[data-v-05a115ee],.toolbar[data-v-05a115ee],.inline-actions[data-v-05a115ee]{display:flex;gap:12px;align-items:center}.topbar[data-v-05a115ee],.list-view header[data-v-05a115ee]{justify-content:space-between}.actions[data-v-05a115ee],.inline-actions[data-v-05a115ee]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-05a115ee],.toolbar button[data-v-05a115ee],.list-view header button[data-v-05a115ee],.inline-actions button[data-v-05a115ee]{padding:0 14px}h1[data-v-05a115ee],h2[data-v-05a115ee],p[data-v-05a115ee],dl[data-v-05a115ee],dd[data-v-05a115ee]{margin:0}h1[data-v-05a115ee]{min-height:30px;font-size:26px}h2[data-v-05a115ee]{font-size:15px}.notice[data-v-05a115ee],article[data-v-05a115ee],.list-view[data-v-05a115ee],.editor-panel[data-v-05a115ee],pre[data-v-05a115ee]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-05a115ee]{margin-top:18px;padding:14px}.error[data-v-05a115ee]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-05a115ee],.split-view[data-v-05a115ee]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-05a115ee]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-05a115ee]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-05a115ee]{display:grid;gap:8px;padding:16px}article span[data-v-05a115ee]{color:#667085;font-size:13px}article strong[data-v-05a115ee]{font-size:24px}.list-view[data-v-05a115ee],.logs-view[data-v-05a115ee],.settings-view[data-v-05a115ee]{margin-top:18px}.split-view .list-view[data-v-05a115ee],.logs-view .list-view[data-v-05a115ee]{margin-top:0}.list-view[data-v-05a115ee]{padding:16px}.editor-panel[data-v-05a115ee]{display:grid;gap:12px;margin-top:12px;padding:16px}.editor-panel header[data-v-05a115ee]{display:flex;justify-content:space-between;gap:12px;min-width:0}textarea[data-v-05a115ee]{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-05a115ee]{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-05a115ee]{display:grid;gap:5px;min-width:0}label span[data-v-05a115ee]{color:#667085;font-size:12px}.wide-field[data-v-05a115ee]{grid-column:1 / -1}input[data-v-05a115ee],select[data-v-05a115ee]{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-05a115ee]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-05a115ee]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-05a115ee]:first-child{border-top:0}li>div[data-v-05a115ee]{display:grid;gap:3px;min-width:0}li strong[data-v-05a115ee],li span[data-v-05a115ee],li small[data-v-05a115ee]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-05a115ee]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-05a115ee]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-05a115ee]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-05a115ee]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-05a115ee]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-05a115ee]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-05a115ee]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-05a115ee]{display:none}}@media(max-width:820px){.web-shell[data-v-05a115ee]{grid-template-columns:1fr}.sidebar[data-v-05a115ee]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-05a115ee]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-05a115ee]{text-align:center}.dashboard-grid[data-v-05a115ee],.split-view[data-v-05a115ee],.settings-sections[data-v-05a115ee]{grid-template-columns:1fr}.topbar[data-v-05a115ee],.list-view header[data-v-05a115ee]{align-items:flex-start;flex-direction:column}} diff --git a/web/index.html b/web/index.html index e679d26..eb0e783 100644 --- a/web/index.html +++ b/web/index.html @@ -1,3 +1,3 @@ - - + +