astrbot_plugin_imagestudio/web/assets/index-C821iZVM.js

18 行
67 KiB
JavaScript

2026-07-05 09:24:00 +08:00
var qr=Object.defineProperty;var Gr=(e,t,s)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var as=(e,t,s)=>Gr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Hs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},dt=[],Fe=()=>{},$n=()=>!1,ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ss=e=>e.startsWith("onUpdate:"),se=Object.assign,Ns=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Jr=Object.prototype.hasOwnProperty,L=(e,t)=>Jr.call(e,t),I=Array.isArray,ht=e=>Nt(e)==="[object Map]",Hn=e=>Nt(e)==="[object Set]",on=e=>Nt(e)==="[object Date]",D=e=>typeof e=="function",z=e=>typeof e=="string",De=e=>typeof e=="symbol",U=e=>e!==null&&typeof e=="object",Nn=e=>(U(e)||D(e))&&D(e.then)&&D(e.catch),Ln=Object.prototype.toString,Nt=e=>Ln.call(e),kr=e=>Nt(e).slice(8,-1),Bn=e=>Nt(e)==="[object Object]",Ls=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=Hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yr=/-\w/g,me=ns(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,ot=ns(e=>e.replace(zr,"-$1").toLowerCase()),Kn=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=ns(e=>e?`on${Kn(e)}`:""),Re=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Un=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fn;const rs=()=>fn||(fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bs(e){if(I(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=z(n)?ti(n):Bs(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(z(e)||U(e))return e}const Zr=/;(?![^(]*\))/g,Qr=/:([^]+)/,ei=/\/\*[^]*?\*\//g;function ti(e){const t={};return e.replace(ei,"").split(Zr).forEach(s=>{if(s){const n=s.split(Qr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function rt(e){let t="";if(z(e))t=e;else if(I(e))for(let s=0;s<e.length;s++){const n=rt(e[s]);n&&(t+=n+" ")}else if(U(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const si="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ni=Hs(si);function Vn(e){return!!e||e===""}function ri(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Ks(e[n],t[n]);return s}function Ks(e,t){if(e===t)return!0;let s=on(e),n=on(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=De(e),n=De(t),s||n)return e===t;if(s=I(e),n=I(t),s||n)return s&&n?ri(e,t):!1;if(s=U(e),n=U(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(o&&!c||!o&&c||!Ks(e[l],t[l]))return!1}}return String(e)===String(t)}const Wn=e=>!!(e&&e.__v_isRef===!0),Y=e=>z(e)?e:e==null?"":I(e)||U(e)&&(e.toString===Ln||!D(e.toString))?Wn(e)?Y(e.value):JSON.stringify(e,qn,2):String(e),qn=(e,t)=>Wn(t)?qn(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[ps(n,i)+" =>"]=r,s),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:De(t)?ps(t):U(t)&&!I(t)&&!Bn(t)?String(t):t,ps=(e,t="")=>{var s;return De(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let te;class ii{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&te&&(te.active?(this.parent=te,this.index=(te.scopes||(te.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=te;try{return te=this,t()}finally{te=s}}}on(){++this._on===1&&(this.prevScope=te,te=this)}off(){if(this._on>0&&--this._on===0){if(te===this)te=this.prevScope;else{let t=te;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function li(){return te}let q;const gs=new WeakSet;class Gn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te&&(te.active?te.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gs.has(this)&&(gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||kn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cn(this),Yn(this);const t=q,s=be;q=this,be=!0;try{return this.fn()}finally{zn(this),q=t,be=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ws(t);this.deps=this.depsTail=void 0,cn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Es(this)&&this.run()}get dirty(){return Es(this)}}let Jn=0,Ot,At;function kn(e,t=!1){if(e.flags|=8,t){e.next=At,At=e;return}e.next=Ot,Ot=e}function Us(){Jn++}function Vs(){if(--Jn>0)return;if(At){let t=At;for(At=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ot;){let t=Ot;for(Ot=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Yn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ws(n),oi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Es(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ft)||(e.globalVersion=Ft,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Es(e))))return;e.flags|=2;const t=e.dep,s=q,n=be;q=e,be=!0;try{Yn(e);const r=e.fn(e._value);(t.version===0||Re(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{q=s,be=n,zn(e),e.flags&=-3}}function Ws(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ws(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function oi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const Zn=[];function je(){Zn.push(be),be=!1}function $e(){const e=Zn.pop();be=e===void 0?!0:e}funct
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Lt(e,t,s,n){try{return n?e(...n):e()}catch(r){ls(r,t,s)}}function ye(e,t,s,n){if(D(e)){const r=Lt(e,t,s,n);return r&&Nn(r)&&r.catch(i=>{ls(i,t,s)}),r}if(I(e)){const r=[];for(let i=0;i<e.length;i++)r.push(ye(e[i],t,s,n));return r}}function ls(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||G;if(t){let o=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const a=o.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,d)===!1)return}o=o.parent}if(i){je(),Lt(i,null,10,[e,c,d]),$e();return}}Di(e,s,r,n,l)}function Di(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const oe=[];let Ae=-1;const pt=[];let qe=null,at=0;const or=Promise.resolve();let Yt=null;function ji(e){const t=Yt||or;return e?t.then(this?e.bind(this):e):t}function $i(e){let t=Ae+1,s=oe.length;for(;t<s;){const n=t+s>>>1,r=oe[n],i=jt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function zs(e){if(!(e.flags&1)){const t=jt(e),s=oe[oe.length-1];!s||!(e.flags&2)&&t>=jt(s)?oe.push(e):oe.splice($i(t),0,e),e.flags|=1,fr()}}function fr(){Yt||(Yt=or.then(ur))}function Hi(e){I(e)?pt.push(...e):qe&&e.id===-1?qe.splice(at+1,0,e):e.flags&1||(pt.push(e),e.flags|=1),fr()}function an(e,t,s=Ae+1){for(;s<oe.length;s++){const n=oe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;oe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function cr(e){if(pt.length){const t=[...new Set(pt)].sort((s,n)=>jt(s)-jt(n));if(pt.length=0,qe){qe.push(...t);return}for(qe=t,at=0;at<qe.length;at++){const s=qe[at];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,at=0}}const jt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ur(e){try{for(Ae=0;Ae<oe.length;Ae++){const t=oe[Ae];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Lt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ae<oe.length;Ae++){const t=oe[Ae];t&&(t.flags&=-2)}Ae=-1,oe.length=0,cr(),Yt=null,(oe.length||pt.length)&&ur()}}let Ie=null,ar=null;function zt(e){const t=Ie;return Ie=e,ar=e&&e.type.__scopeId||null,t}function Ni(e,t=Ie,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Sn(-1);const i=zt(t);let l;try{l=e(...r)}finally{zt(i),n._d&&Sn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Qe(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];i&&(o.oldValue=i[l].value);let c=o.dir[n];c&&(je(),ye(c,s,8,[e.el,o,e,t]),$e())}}function Li(e,t){if(fe){let s=fe.provides;const n=fe.parent&&fe.parent.provides;n===s&&(s=fe.provides=Object.create(n)),s[e]=t}}function Gt(e,t,s=!1){const n=Ll();if(n||gt){let r=gt?gt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Bi=Symbol.for("v-scx"),Ki=()=>Gt(Bi);function bs(e,t,s){return dr(e,t,s)}function dr(e,t,s=G){const{immediate:n,deep:r,flush:i,once:l}=s,o=se({},s),c=t&&n||!t&&i!=="post";let d;if(Ht){if(i==="sync"){const E=Ki();d=E.__watcherHandles||(E.__watcherHandles=[])}else if(!c){const E=()=>{};return E.stop=Fe,E.resume=Fe,E.pause=Fe,E}}const a=fe;o.call=(E,M,x)=>ye(E,a,M,x);let p=!1;i==="post"?o.scheduler=E=>{ce(E,a&&a.suspense)}:i!=="sync"&&(p=!0,o.scheduler=(E,M)=>{M?E():zs(E)}),o.augmentJob=E=>{t&&(E.flags|=4),p&&(E.flags|=2,a&&(E.id=a.uid,E.i=a))};const C=Fi(e,t,o);return Ht&&(d?d.push(C):c&&C()),C}function Ui(e,t,s){const n=this.proxy,r=z(e)?e.includes(".")?hr(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const l=Bt(this),o=dr(r,i.bind(n),s);return l(),o}function hr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Vi=Symbol("_vte"),Wi=e=>e.__isTeleport,vs=Symbol("_leaveCb");function Xs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e,t){return D(e)?se({name:e.name},t,{setup:e}):e}function pr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dn(e,t){let s;return!!((s=O
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $s;const Tn=typeof window<"u"&&window.trustedTypes;if(Tn)try{$s=Tn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ur=$s?e=>$s.createHTML(e):e=>e,Gl="http://www.w3.org/2000/svg",Jl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,En=Ne&&Ne.createElement("template"),kl={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"?Ne.createElementNS(Gl,e):t==="mathml"?Ne.createElementNS(Jl,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const l=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{En.innerHTML=Ur(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const o=En.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Yl=Symbol("_vtc");function zl(e,t,s){const n=e[Yl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const On=Symbol("_vod"),Xl=Symbol("_vsh"),Zl=Symbol(""),Ql=/(?:^|;)\s*display\s*:/;function eo(e,t,s){const n=e.style,r=z(s);let i=!1;if(s&&!r){if(t)if(z(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&Tt(n,o,"")}else for(const l in t)s[l]==null&&Tt(n,l,"");for(const l in s){l==="display"&&(i=!0);const o=s[l];o!=null?so(e,l,!z(t)&&t?t[l]:void 0,o)||Tt(n,l,o):Tt(n,l,"")}}else if(r){if(t!==s){const l=n[Zl];l&&(s+=";"+l),n.cssText=s,i=Ql.test(s)}}else t&&e.removeAttribute("style");On in e&&(e[On]=i?n.display:"",e[Xl]&&(n.display="none"))}const An=/\s*!important$/;function Tt(e,t,s){if(I(s))s.forEach(n=>Tt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=to(e,t);An.test(s)?e.setProperty(ot(n),s.replace(An,""),"important"):e[n]=s}}const Pn=["Webkit","Moz","ms"],Cs={};function to(e,t){const s=Cs[t];if(s)return s;let n=me(t);if(n!=="filter"&&n in e)return Cs[t]=n;n=Kn(n);for(let r=0;r<Pn.length;r++){const i=Pn[r]+n;if(i in e)return Cs[t]=i}return t}function so(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&z(n)&&s===n}const Mn="http://www.w3.org/1999/xlink";function Rn(e,t,s,n,r,i=ni(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Mn,t.slice(6,t.length)):e.setAttributeNS(Mn,t,s):s==null||i&&!Vn(s)?e.removeAttribute(t):e.setAttribute(t,i?"":De(s)?String(s):s)}function In(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Ur(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(o!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=Vn(s):s==null&&o==="string"?(s="",l=!0):o==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(r||t)}function no(e,t,s,n){e.addEventListener(t,s,n)}function ro(e,t,s,n){e.removeEventListener(t,s,n)}const Fn=Symbol("_vei");function io(e,t,s,n,r=null){const i=e[Fn]||(e[Fn]={}),l=i[t];if(n&&l)l.value=n;else{const[o,c]=fo(t);if(n){const d=i[t]=ao(n,r);no(e,o,d,c)}else l&&(ro(e,o,l,c),i[t]=void 0)}}const lo=/(Once|Passive|Capture)$/,oo=/^on:?(?:Once|Passive|Capture)$/;function fo(e){let t,s;for(;(s=e.match(lo))&&!oo.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ot(e.slice(2)),t]}let Ts=0;const co=Promise.resolve(),uo=()=>Ts||(co.then(()=>Ts=0),Ts=Date.no