astrbot_plugin_imagestudio/web/assets/index-BCNEksZg.js

18 行
78 KiB
JavaScript

var Gi=Object.defineProperty;var zi=(e,t,s)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bs=(e,t,s)=>zi(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=s(i);fetch(i.href,l)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Vs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},xt=[],We=()=>{},Bn=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),as=e=>e.startsWith("onUpdate:"),de=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Yi=Object.prototype.hasOwnProperty,W=(e,t)=>Yi.call(e,t),L=Array.isArray,wt=e=>qt(e)==="[object Map]",Kn=e=>qt(e)==="[object Set]",dn=e=>qt(e)==="[object Date]",N=e=>typeof e=="function",ie=e=>typeof e=="string",qe=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",Un=e=>(G(e)||N(e))&&N(e.then)&&N(e.catch),Vn=Object.prototype.toString,qt=e=>Vn.call(e),Xi=e=>qt(e).slice(8,-1),Wn=e=>qt(e)==="[object Object]",qs=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ds=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Zi=/-\w/g,Me=ds(e=>e.replace(Zi,t=>t.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,pt=ds(e=>e.replace(Qi,"-$1").toLowerCase()),qn=ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=ds(e=>e?`on${qn(e)}`:""),Ue=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},el=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hn;const hs=()=>hn||(hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(L(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=ie(n)?il(n):Js(n);if(i)for(const l in i)t[l]=i[l]}return t}else if(ie(e)||G(e))return e}const tl=/;(?![^(]*\))/g,sl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(nl,"").split(tl).forEach(s=>{if(s){const n=s.split(sl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Pe(e){let t="";if(ie(e))t=e;else if(L(e))for(let s=0;s<e.length;s++){const n=Pe(e[s]);n&&(t+=n+" ")}else if(G(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ll="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rl=Vs(ll);function Gn(e){return!!e||e===""}function ol(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=dn(e),n=dn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=qe(e),n=qe(t),s||n)return e===t;if(s=L(e),n=L(t),s||n)return s&&n?ol(e,t):!1;if(s=G(e),n=G(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const r in e){const o=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(o&&!c||!o&&c||!Gs(e[r],t[r]))return!1}}return String(e)===String(t)}const zn=e=>!!(e&&e.__v_isRef===!0),T=e=>ie(e)?e:e==null?"":L(e)||G(e)&&(e.toString===Vn||!N(e.toString))?zn(e)?T(e.value):JSON.stringify(e,Yn,2):String(e),Yn=(e,t)=>zn(t)?Yn(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],l)=>(s[ws(n,l)+" =>"]=i,s),{})}:Kn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ws(s))}:qe(t)?ws(t):G(t)&&!L(t)&&!Wn(t)?String(t):t,ws=(e,t="")=>{var s;return qe(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 ae;class ul{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&&ae&&(ae.active?(this.parent=ae,this.index=(ae.scopes||(ae.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=ae;try{return ae=this,t()}finally{ae=s}}}on(){++this._on===1&&(this.prevScope=ae,ae=this)}off(){if(this._on>0&&--this._on===0){if(ae===this)ae=this.prevScope;else{let t=ae;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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function cl(){return ae}let Y;const Ss=new WeakSet;class Xn{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,ae&&(ae.active?ae.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Qn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pn(this),ei(this);const t=Y,s=Re;Y=this,Re=!0;try{return this.fn()}finally{ti(this),Y=t,Re=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xs(t);this.deps=this.depsTail=void 0,pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ds(this)&&this.run()}get dirty(){return Ds(this)}}let Zn=0,$t,jt;function Qn(e,t=!1){if(e.flags|=8,t){e.next=jt,jt=e;return}e.next=$t,$t=e}function zs(){Zn++}function Ys(){if(--Zn>0)return;if(jt){let t=jt;for(jt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;$t;){let t=$t;for($t=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 ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Xs(n),fl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ds(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bt)||(e.globalVersion=Bt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ds(e))))return;e.flags|=2;const t=e.dep,s=Y,n=Re;Y=e,Re=!0;try{ei(e);const i=e.fn(e._value);(t.version===0||Ue(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Y=s,Re=n,ti(e),e.flags&=-3}}function Xs(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let l=s.computed.deps;l;l=l.nextDep)Xs(l,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function fl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Re=!0;const ni=[];function Je(){ni.push(Re),Re=!1}function Ge(){const e=ni.pop();Re=e===void 0?!0:e}funct
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Jt(e,t,s,n){try{return n?e(...n):e()}catch(i){gs(i,t,s)}}function De(e,t,s,n){if(N(e)){const i=Jt(e,t,s,n);return i&&Un(i)&&i.catch(l=>{gs(l,t,s)}),i}if(L(e)){const i=[];for(let l=0;l<e.length;l++)i.push(De(e[l],t,s,n));return i}}function gs(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||X;if(t){let o=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const d=o.ec;if(d){for(let _=0;_<d.length;_++)if(d[_](e,c,h)===!1)return}o=o.parent}if(l){Je(),Jt(l,null,10,[e,c,h]),Ge();return}}Ll(e,s,i,n,r)}function Ll(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const ve=[];let ke=-1;const St=[];let it=null,bt=0;const di=Promise.resolve();let is=null;function Nl(e){const t=is||di;return e?t.then(this?e.bind(this):e):t}function Hl(e){let t=ke+1,s=ve.length;for(;t<s;){const n=t+s>>>1,i=ve[n],l=Ut(i);l<e||l===e&&i.flags&2?t=n+1:s=n}return t}function nn(e){if(!(e.flags&1)){const t=Ut(e),s=ve[ve.length-1];!s||!(e.flags&2)&&t>=Ut(s)?ve.push(e):ve.splice(Hl(t),0,e),e.flags|=1,hi()}}function hi(){is||(is=di.then(gi))}function kl(e){L(e)?St.push(...e):it&&e.id===-1?it.splice(bt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),hi()}function _n(e,t,s=ke+1){for(;s<ve.length;s++){const n=ve[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ve.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function pi(e){if(St.length){const t=[...new Set(St)].sort((s,n)=>Ut(s)-Ut(n));if(St.length=0,it){it.push(...t);return}for(it=t,bt=0;bt<it.length;bt++){const s=it[bt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}it=null,bt=0}}const Ut=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gi(e){try{for(ke=0;ke<ve.length;ke++){const t=ve[ke];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ke<ve.length;ke++){const t=ve[ke];t&&(t.flags&=-2)}ke=-1,ve.length=0,pi(),is=null,(ve.length||St.length)&&gi()}}let Ve=null,_i=null;function ls(e){const t=Ve;return Ve=e,_i=e&&e.type.__scopeId||null,t}function Bl(e,t=Ve,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&On(-1);const l=ls(t);let r;try{r=e(...i)}finally{ls(l),n._d&&On(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ut(e,t,s,n){const i=e.dirs,l=t&&t.dirs;for(let r=0;r<i.length;r++){const o=i[r];l&&(o.oldValue=l[r].value);let c=o.dir[n];c&&(Je(),De(c,s,8,[e.el,o,e,t]),Ge())}}function Kl(e,t){if(me){let s=me.provides;const n=me.parent&&me.parent.provides;n===s&&(s=me.provides=Object.create(n)),s[e]=t}}function ts(e,t,s=!1){const n=Kr();if(n||Ct){let i=Ct?Ct._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&N(t)?t.call(n&&n.proxy):t}}const Ul=Symbol.for("v-scx"),Vl=()=>ts(Ul);function Es(e,t,s){return vi(e,t,s)}function vi(e,t,s=X){const{immediate:n,deep:i,flush:l,once:r}=s,o=de({},s),c=t&&n||!t&&l!=="post";let h;if(Wt){if(l==="sync"){const M=Vl();h=M.__watcherHandles||(M.__watcherHandles=[])}else if(!c){const M=()=>{};return M.stop=We,M.resume=We,M.pause=We,M}}const d=me;o.call=(M,K,P)=>De(M,d,K,P);let _=!1;l==="post"?o.scheduler=M=>{be(M,d&&d.suspense)}:l!=="sync"&&(_=!0,o.scheduler=(M,K)=>{K?M():nn(M)}),o.augmentJob=M=>{t&&(M.flags|=4),_&&(M.flags|=2,d&&(M.id=d.uid,M.i=d))};const O=jl(e,t,o);return Wt&&(h?h.push(O):c&&O()),O}function Wl(e,t,s){const n=this.proxy,i=ie(e)?e.includes(".")?mi(n,e):()=>n[e]:e.bind(n,n);let l;N(t)?l=t:(l=t.handler,s=t);const r=Gt(this),o=vi(i,l.bind(n),s);return r(),o}function mi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const ql=Symbol("_vte"),Jl=e=>e.__isTeleport,Os=Symbol("_leaveCb");function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(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 Gl(e,t){return N(e)?de({name:e.name},t,{setup:e}):e}function bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vn(e,t){let s;return!!((s=
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Us;const Mn=typeof window<"u"&&window.trustedTypes;if(Mn)try{Us=Mn.createPolicy("vue",{createHTML:e=>e})}catch{}const qi=Us?e=>Us.createHTML(e):e=>e,zr="http://www.w3.org/2000/svg",Yr="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,Rn=Ze&&Ze.createElement("template"),Xr={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 i=t==="svg"?Ze.createElementNS(zr,e):t==="mathml"?Ze.createElementNS(Yr,e):s?Ze.createElement(e,{is:s}):Ze.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,l){const r=s?s.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===l||!(i=i.nextSibling)););else{Rn.innerHTML=qi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const o=Rn.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[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Zr=Symbol("_vtc");function Qr(e,t,s){const n=e[Zr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),eo=Symbol("_vsh"),to=Symbol(""),so=/(?:^|;)\s*display\s*:/;function no(e,t,s){const n=e.style,i=ie(s);let l=!1;if(s&&!i){if(t)if(ie(t))for(const r of t.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&Dt(n,o,"")}else for(const r in t)s[r]==null&&Dt(n,r,"");for(const r in s){r==="display"&&(l=!0);const o=s[r];o!=null?lo(e,r,!ie(t)&&t?t[r]:void 0,o)||Dt(n,r,o):Dt(n,r,"")}}else if(i){if(t!==s){const r=n[to];r&&(s+=";"+r),n.cssText=s,l=so.test(s)}}else t&&e.removeAttribute("style");In in e&&(e[In]=l?n.display:"",e[eo]&&(n.display="none"))}const Dn=/\s*!important$/;function Dt(e,t,s){if(L(s))s.forEach(n=>Dt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=io(e,t);Dn.test(s)?e.setProperty(pt(n),s.replace(Dn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],Rs={};function io(e,t){const s=Rs[t];if(s)return s;let n=Me(t);if(n!=="filter"&&n in e)return Rs[t]=n;n=qn(n);for(let i=0;i<Fn.length;i++){const l=Fn[i]+n;if(l in e)return Rs[t]=l}return t}function lo(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ie(n)&&s===n}const $n="http://www.w3.org/1999/xlink";function jn(e,t,s,n,i,l=rl(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS($n,t.slice(6,t.length)):e.setAttributeNS($n,t,s):s==null||l&&!Gn(s)?e.removeAttribute(t):e.setAttribute(t,l?"":qe(s)?String(s):s)}function Ln(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qi(s):s);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const o=l==="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 r=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=Gn(s):s==null&&o==="string"?(s="",r=!0):o==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function ro(e,t,s,n){e.addEventListener(t,s,n)}function oo(e,t,s,n){e.removeEventListener(t,s,n)}const Nn=Symbol("_vei");function uo(e,t,s,n,i=null){const l=e[Nn]||(e[Nn]={}),r=l[t];if(n&&r)r.value=n;else{const[o,c]=ao(t);if(n){const h=l[t]=go(n,i);ro(e,o,h,c)}else r&&(oo(e,o,r,c),l[t]=void 0)}}const co=/(Once|Passive|Capture)$/,fo=/^on:?(?:Once|Passive|Capture)$/;function ao(e){let t,s;for(;(s=e.match(co))&&!fo.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):pt(e.slice(2)),t]}let Is=0;const ho=Promise.resolve(),po=()=>Is||(ho.then(()=>Is=0),Is=Dat