astrbot_plugin_imagestudio/web/assets/index-DnBfG3sU.js

18 行
99 KiB
JavaScript

var qi=Object.defineProperty;var Ji=(e,t,n)=>t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>Ji(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Rt=[],tt=()=>{},Ml=()=>!1,$n=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ln=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,Q=(e,t)=>Gi.call(e,t),j=Array.isArray,$t=e=>rn(e)==="[object Map]",Fn=e=>rn(e)==="[object Set]",el=e=>rn(e)==="[object Date]",N=e=>typeof e=="function",he=e=>typeof e=="string",nt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Il=e=>(se(e)||N(e))&&N(e.then)&&N(e.catch),Rl=Object.prototype.toString,rn=e=>Rl.call(e),zi=e=>rn(e).slice(8,-1),$l=e=>rn(e)==="[object Object]",Ss=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Jt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Yi=/-\w/g,qe=jn(e=>e.replace(Yi,t=>t.slice(1).toUpperCase())),Xi=/\B([A-Z])/g,Ot=jn(e=>e.replace(Xi,"-$1").toLowerCase()),Ll=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=jn(e=>e?`on${Ll(e)}`:""),et=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let tl;const Bn=()=>tl||(tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ks(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],l=he(s)?to(s):ks(s);if(l)for(const i in l)t[i]=l[i]}return t}else if(he(e)||se(e))return e}const Qi=/;(?![^(]*\))/g,Zi=/:([^]+)/,eo=/\/\*[^]*?\*\//g;function to(e){const t={};return e.replace(eo,"").split(Qi).forEach(n=>{if(n){const s=n.split(Zi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Nn(e){let t="";if(he(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const s=Nn(e[n]);s&&(t+=s+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const no="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",so=xs(no);function jl(e){return!!e||e===""}function lo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=an(e[s],t[s]);return n}function an(e,t){if(e===t)return!0;let n=el(e),s=el(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nt(e),s=nt(t),n||s)return e===t;if(n=j(e),s=j(t),n||s)return n&&s?lo(e,t):!1;if(n=se(e),s=se(t),n||s){if(!n||!s)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const r in e){const a=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(a&&!c||!a&&c||!an(e[r],t[r]))return!1}}return String(e)===String(t)}function io(e,t){return e.findIndex(n=>an(n,t))}const Vl=e=>!!(e&&e.__v_isRef===!0),d=e=>he(e)?e:e==null?"":j(e)||se(e)&&(e.toString===Rl||!N(e.toString))?Vl(e)?d(e.value):JSON.stringify(e,Bl,2):String(e),Bl=(e,t)=>Vl(t)?Bl(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],i)=>(n[Zn(s,i)+" =>"]=l,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Zn(n))}:nt(t)?Zn(t):se(t)&&!j(t)&&!$l(t)?String(t):t,Zn=(e,t="")=>{var n;return nt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let xe;class oo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&xe&&(xe.active?(this.parent=xe,this.index=(xe.scopes||(xe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){++this._on===1&&(this.prevScope=xe,xe=this)}off(){if(this._on>0&&--this._on===0){if(xe===this)xe=this.prevScope;else{let t=xe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function ro(){return xe}let ie;const es=new WeakSet;class Nl{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,xe&&(xe.active?xe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,es.has(this)&&(es.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nl(this),Wl(this);const t=ie,n=Je;ie=this,Je=!0;try{return this.fn()}finally{Kl(this),ie=t,Je=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ts(t);this.deps=this.depsTail=void 0,nl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?es.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fs(this)&&this.run()}get dirty(){return fs(this)}}let Ul=0,Gt,zt;function Hl(e,t=!1){if(e.flags|=8,t){e.next=zt,zt=e;return}e.next=Gt,Gt=e}function Ps(){Ul++}function Es(){if(--Ul>0)return;if(zt){let t=zt;for(zt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gt;){let t=Gt;for(Gt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Wl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kl(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),Ts(s),ao(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function fs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ql(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ql(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tn)||(e.globalVersion=tn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fs(e))))return;e.flags|=2;const t=e.dep,n=ie,s=Je;ie=e,Je=!0;try{Wl(e);const l=e.fn(e._value);(t.version===0||et(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{ie=n,Je=s,Kl(e),e.flags&=-3}}function Ts(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ts(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ao(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Je=!0;const Jl=[];function st(){Jl.push(Je),Je=!1}function lt(){const e=Jl.pop();Je=e===void 0?!0:
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function un(e,t,n,s){try{return s?e(...s):e()}catch(l){Hn(l,t,n)}}function ze(e,t,n,s){if(N(e)){const l=un(e,t,n,s);return l&&Il(l)&&l.catch(i=>{Hn(i,t,n)}),l}if(j(e)){const l=[];for(let i=0;i<e.length;i++)l.push(ze(e[i],t,n,s));return l}}function Hn(e,t,n,s=!0){const l=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||le;if(t){let a=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const h=a.ec;if(h){for(let y=0;y<h.length;y++)if(h[y](e,c,g)===!1)return}a=a.parent}if(i){st(),un(i,null,10,[e,c,g]),lt();return}}Lo(e,n,l,s,r)}function Lo(e,t,n,s=!0,l=!1){if(l)throw e;console.error(e)}const Me=[];let Xe=-1;const Lt=[];let _t=null,It=0;const ni=Promise.resolve();let En=null;function si(e){const t=En||ni;return e?t.then(this?e.bind(this):e):t}function Fo(e){let t=Xe+1,n=Me.length;for(;t<n;){const s=t+n>>>1,l=Me[s],i=sn(l);i<e||i===e&&l.flags&2?t=s+1:n=s}return t}function Rs(e){if(!(e.flags&1)){const t=sn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=sn(n)?Me.push(e):Me.splice(Fo(t),0,e),e.flags|=1,li()}}function li(){En||(En=ni.then(oi))}function jo(e){j(e)?Lt.push(...e):_t&&e.id===-1?_t.splice(It+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),li()}function ll(e,t,n=Xe+1){for(;n<Me.length;n++){const s=Me[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Me.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ii(e){if(Lt.length){const t=[...new Set(Lt)].sort((n,s)=>sn(n)-sn(s));if(Lt.length=0,_t){_t.push(...t);return}for(_t=t,It=0;It<_t.length;It++){const n=_t[It];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_t=null,It=0}}const sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function oi(e){try{for(Xe=0;Xe<Me.length;Xe++){const t=Me[Xe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),un(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xe<Me.length;Xe++){const t=Me[Xe];t&&(t.flags&=-2)}Xe=-1,Me.length=0,ii(),En=null,(Me.length||Lt.length)&&oi()}}let Ue=null,ri=null;function Tn(e){const t=Ue;return Ue=e,ri=e&&e.type.__scopeId||null,t}function Vo(e,t=Ue,n){if(!t||e._n)return e;const s=(...l)=>{s._d&&gl(-1);const i=Tn(t);let r;try{r=e(...l)}finally{Tn(i),s._d&&gl(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function te(e,t){if(Ue===null)return e;const n=Jn(Ue),s=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[i,r,a,c=le]=t[l];i&&(N(i)&&(i={mounted:i,updated:i}),i.deep&&ut(r),s.push({dir:i,instance:n,value:r,oldValue:void 0,arg:a,modifiers:c}))}return e}function xt(e,t,n,s){const l=e.dirs,i=t&&t.dirs;for(let r=0;r<l.length;r++){const a=l[r];i&&(a.oldValue=i[r].value);let c=a.dir[s];c&&(st(),ze(c,n,8,[e.el,a,e,t]),lt())}}function Bo(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Sn(e,t,n=!1){const s=Br();if(s||Ft){let l=Ft?Ft._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&N(t)?t.call(s&&s.proxy):t}}const No=Symbol.for("v-scx"),Uo=()=>Sn(No);function ss(e,t,n){return ai(e,t,n)}function ai(e,t,n=le){const{immediate:s,deep:l,flush:i,once:r}=n,a=Ce({},n),c=t&&s||!t&&i!=="post";let g;if(on){if(i==="sync"){const A=Uo();g=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=tt,A.resume=tt,A.pause=tt,A}}const h=Ie;a.call=(A,K,$)=>ze(A,h,K,$);let y=!1;i==="post"?a.scheduler=A=>{Fe(A,h&&h.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(A,K)=>{K?A():Rs(A)}),a.augmentJob=A=>{t&&(A.flags|=4),y&&(A.flags|=2,h&&(A.id=h.uid,A.i=h))};const D=$o(e,t,a);return on&&(g?g.push(D):c&&D()),D}function Ho(e,t,n){const s=this.proxy,l=he(e)?e.includes(".")?ui(s,e):()=>s[e]:e.bind(s,s);let i;N(t)?i=t:(i=t.handler,n=t);const r=cn(this),a=ai(l,i.bind(s),n);return r(),a}function ui(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;l<n.length&&s;l++)s=s[n[l]];return s}}const Wo=Symbol("_vte"),Ko=e=>e.__isTeleport,ls=Symbol("_leaveCb");function $s(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$s(e.component.subTree,t)):e.shapeFlag&12
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ws;const ml=typeof window<"u"&&window.trustedTypes;if(ml)try{ws=ml.createPolicy("vue",{createHTML:e=>e})}catch{}const Fi=ws?e=>ws.createHTML(e):e=>e,Jr="http://www.w3.org/2000/svg",Gr="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,yl=ot&&ot.createElement("template"),zr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?ot.createElementNS(Jr,e):t==="mathml"?ot.createElementNS(Gr,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,i){const r=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{yl.innerHTML=Fi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=yl.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yr=Symbol("_vtc");function Xr(e,t,n){const s=e[Yr];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bl=Symbol("_vod"),Qr=Symbol("_vsh"),Zr=Symbol(""),ea=/(?:^|;)\s*display\s*:/;function ta(e,t,n){const s=e.style,l=he(n);let i=!1;if(n&&!l){if(t)if(he(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&qt(s,a,"")}else for(const r in t)n[r]==null&&qt(s,r,"");for(const r in n){r==="display"&&(i=!0);const a=n[r];a!=null?sa(e,r,!he(t)&&t?t[r]:void 0,a)||qt(s,r,a):qt(s,r,"")}}else if(l){if(t!==n){const r=s[Zr];r&&(n+=";"+r),s.cssText=n,i=ea.test(n)}}else t&&e.removeAttribute("style");bl in e&&(e[bl]=i?s.display:"",e[Qr]&&(s.display="none"))}const wl=/\s*!important$/;function qt(e,t,n){if(j(n))n.forEach(s=>qt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=na(e,t);wl.test(n)?e.setProperty(Ot(s),n.replace(wl,""),"important"):e[s]=n}}const xl=["Webkit","Moz","ms"],as={};function na(e,t){const n=as[t];if(n)return n;let s=qe(t);if(s!=="filter"&&s in e)return as[t]=s;s=Ll(s);for(let l=0;l<xl.length;l++){const i=xl[l]+s;if(i in e)return as[t]=i}return t}function sa(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&he(s)&&n===s}const Cl="http://www.w3.org/1999/xlink";function Sl(e,t,n,s,l,i=so(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Cl,t.slice(6,t.length)):e.setAttributeNS(Cl,t,n):n==null||i&&!jl(n)?e.removeAttribute(t):e.setAttribute(t,i?"":nt(n)?String(n):n)}function kl(e,t,n,s,l){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fi(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=jl(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(l||t)}function Pt(e,t,n,s){e.addEventListener(t,n,s)}function la(e,t,n,s){e.removeEventListener(t,n,s)}const Pl=Symbol("_vei");function ia(e,t,n,s,l=null){const i=e[Pl]||(e[Pl]={}),r=i[t];if(s&&r)r.value=s;else{const[a,c]=aa(t);if(s){const g=i[t]=fa(s,l);Pt(e,a,g,c)}else r&&(la(e,a,r,c),i[t]=void 0)}}const oa=/(Once|Passive|Capture)$/,ra=/^on:?(?:Once|Passive|Capture)$/;function aa(e){let t,n;for(;(n=e.match(oa))&&!ra.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let us=0;const ua=Promise.resolve(),ca=()=>us||(ua.then(()=>us=0),us=Dat