yc-component 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-task/components/AiUseDialog.d.ts +1 -1
- package/dist/ai-task/style.css +1 -0
- package/dist/image-selector/components/YcImageSelectorDialog.d.ts +2 -1
- package/dist/image-selector/components/YcImageSelectorDialog.d.ts.map +1 -1
- package/dist/image-selector/components/YcImageSelectorProvider.d.ts +3 -2
- package/dist/image-selector/components/YcImageSelectorProvider.d.ts.map +1 -1
- package/dist/image-selector/context.d.ts +2 -0
- package/dist/image-selector/context.d.ts.map +1 -1
- package/dist/image-selector/dialog-state.d.ts +1 -0
- package/dist/image-selector/dialog-state.d.ts.map +1 -1
- package/dist/image-selector/inject.d.ts +2 -0
- package/dist/image-selector/inject.d.ts.map +1 -1
- package/dist/image-selector/style.css +1 -0
- package/dist/image-selector/types/index.d.ts +5 -0
- package/dist/image-selector/types/index.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/page-window/style.css +1 -0
- package/dist/yc-component.cjs.full.js +20 -20
- package/dist/yc-component.cjs.js +2 -2
- package/dist/yc-component.esm.full.js +2160 -2154
- package/dist/yc-component.esm.js +497 -491
- package/dist/yc-component.umd.full.js +32 -32
- package/dist/yc-component.umd.full.min.js +1 -1
- package/dist/yc-component.umd.js +3 -3
- package/dist/yc-component.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const bi={projectId:"default-project",storageKey:"yc-ai-task-queue-v1"};let $r={...bi};function Jl(e){$r={...$r,...e}}function Ei(){return $r}function Uf(){return $r.projectId??bi.projectId}function Xl(){return $r.storageKey??bi.storageKey}function Zl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hf}=Object.prototype,{getPrototypeOf:Wo}=Object,{iterator:Ko,toStringTag:Ql}=Symbol,qo=(e=>t=>{const n=Hf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>qo(t)===e),Go=e=>t=>typeof t===e,{isArray:nr}=Array,Xn=Go("undefined");function zr(e){return e!==null&&!Xn(e)&&e.constructor!==null&&!Xn(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ec=Mt("ArrayBuffer");function zf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ec(e.buffer),t}const Wf=Go("string"),ut=Go("function"),tc=Go("number"),Wr=e=>e!==null&&typeof e=="object",Kf=e=>e===!0||e===!1,vo=e=>{if(qo(e)!=="object")return!1;const t=Wo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ql in e)&&!(Ko in e)},qf=e=>{if(!Wr(e)||zr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gf=Mt("Date"),Yf=Mt("File"),Jf=e=>!!(e&&typeof e.uri<"u"),Xf=e=>e&&typeof e.getParts<"u",Zf=Mt("Blob"),Qf=Mt("FileList"),ed=e=>Wr(e)&&ut(e.pipe);function td(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pa=td(),ha=typeof pa.FormData<"u"?pa.FormData:void 0,nd=e=>{if(!e)return!1;if(ha&&e instanceof ha)return!0;const t=Wo(e);if(!t||t===Object.prototype||!ut(e.append))return!1;const n=qo(e);return n==="formdata"||n==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"},rd=Mt("URLSearchParams"),[od,sd,id,ad]=["ReadableStream","Request","Response","Headers"].map(Mt),ld=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),nr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(zr(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function nc(e,t){if(zr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rc=e=>!Xn(e)&&e!==wn;function Ls(...e){const{caseless:t,skipUndefined:n}=rc(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&nc(r,i)||i,l=Fs(r,a)?r[a]:void 0;vo(l)&&vo(s)?r[a]=Ls(l,s):vo(s)?r[a]=Ls({},s):nr(s)?r[a]=s.slice():(!n||!Xn(s))&&(r[a]=s)};for(let s=0,i=e.length;s<i;s++)e[s]&&Kr(e[s],o);return r}const cd=(e,t,n,{allOwnKeys:r}={})=>(Kr(t,(o,s)=>{n&&ut(o)?Object.defineProperty(e,s,{__proto__:null,value:Zl(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ud=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},dd=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Wo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hd=e=>{if(!e)return null;if(nr(e))return e;let t=e.length;if(!tc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},md=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wo(Uint8Array)),gd=(e,t)=>{const r=(e&&e[Ko]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},vd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_d=Mt("HTMLFormElement"),yd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wd=Mt("RegExp"),oc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kr(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},bd=e=>{oc(e,(t,n)=>{if(ut(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(ut(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ed=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return nr(e)?r(e):r(String(e).split(t)),n},Od=()=>{},Nd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xd(e){return!!(e&&ut(e.append)&&e[Ql]==="FormData"&&e[Ko])}const Sd=e=>{const t=new WeakSet,n=r=>{if(Wr(r)){if(t.has(r))return;if(zr(r))return r;if(!("toJSON"in r)){t.add(r);const o=nr(r)?[]:{};return Kr(r,(s,i)=>{const a=n(s);!Xn(a)&&(o[i]=a)}),t.delete(r),o}}return r};return n(e)},Cd=Mt("AsyncFunction"),Td=e=>e&&(Wr(e)||ut(e))&&ut(e.then)&&ut(e.catch),sc=((e,t)=>e?setImmediate:t?((n,r)=>(wn.addEventListener("message",({source:o,data:s})=>{o===wn&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ut(wn.postMessage)),Ad=typeof queueMicrotask<"u"?queueMicrotask.bind(wn):typeof process<"u"&&process.nextTick||sc,Dd=e=>e!=null&&ut(e[Ko]),
|
|
2
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Pd[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Md(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Id=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vd=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Oi(e,t){return
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ma]=this[ma]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=lr(i);r[a]||(Bd(o,i),r[a]=!0)}return y.isArray(t)?t.forEach(s):s(t),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});y.freezeMethods(ct);const Ud="[REDACTED ****]";function Hd(e){if(y.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(y.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function zd(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||y.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof ct&&(s=s.toJSON()),r.push(s);let i;if(y.isArray(s))i=[],s.forEach((a,l)=>{const c=o(a);y.isUndefined(c)||(i[l]=c)});else{if(!y.isPlainObject(s)&&Hd(s))return r.pop(),s;i=Object.create(null);for(const[a,l]of Object.entries(s)){const c=n.has(a.toLowerCase())?Ud:o(l);y.isUndefined(c)||(i[a]=c)}}return r.pop(),i};return o(e)}let oe=class ac extends Error{static from(t,n,r,o,s,i){const a=new ac(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&y.hasOwnProp(t,"redact")?t.redact:void 0,r=y.isArray(n)&&n.length>0?zd(t,n):y.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";oe.ERR_BAD_OPTION="ERR_BAD_OPTION";oe.ECONNABORTED="ECONNABORTED";oe.ETIMEDOUT="ETIMEDOUT";oe.ECONNREFUSED="ECONNREFUSED";oe.ERR_NETWORK="ERR_NETWORK";oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";oe.ERR_DEPRECATED="ERR_DEPRECATED";oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";oe.ERR_CANCELED="ERR_CANCELED";oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";oe.ERR_INVALID_URL="ERR_INVALID_URL";oe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Wd=null;function ks(e){return y.isPlainObject(e)||y.isArray(e)}function lc(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function hs(e,t,n){return e?e.concat(t).map(function(o,s){return o=lc(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Kd(e){return y.isArray(e)&&!e.some(ks)}const qd=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Yo(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,S){return!y.isUndefined(S[_])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,c=a&&y.isSpecCompliantForm(t);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(y.isDate(h))return h.toISOString();if(y.isBoolean(h))return h.toString();if(!c&&y.isBlob(h))throw new oe("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(h)||y.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,_,S){let T=h;if(y.isReactNative(t)&&y.isReactNativeBlob(h))return t.append(hs(S,_,s),u(h)),!1;if(h&&!S&&typeof h=="object"){if(y.endsWith(_,"{}"))_=r?_:_.slice(0,-2),h=JSON.stringify(h);else if(y.isArray(h)&&Kd(h)||(y.isFileList(h)||y.endsWith(_,"[]"))&&(T=y.toArray(h)))return _=lc(_),T.forEach(function(Y,x){!(y.isUndefined(Y)||Y===null)&&t.append(i===!0?hs([_],x,s):i===null?_:_+"[]",u(Y))}),!1}return ks(h)?!0:(t.append(hs(S,_,s),u(h)),!1)}const p=[],g=Object.assign(qd,{defaultVisitor:f,convertValue:u,isVisitable:ks});function b(h,_,S=0){if(!y.isUndefined(h)){if(S>l)throw new oe("Object is too deeply nested ("+S+" levels). Max depth: "+l,oe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(h),y.forEach(h,function(R,Y){(!(y.isUndefined(R)||R===null)&&o.call(t,R,y.isString(Y)?Y.trim():Y,_,g))===!0&&b(R,_?_.concat(Y):[Y],S+1)}),p.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ga(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Ni(e,t){this._pairs=[],e&&Yo(e,this,t)}const cc=Ni.prototype;cc.append=function(t,n){this._pairs.push([t,n])};cc.toString=function(t){const n=t?function(r){return t.call(this,r,ga)}:ga;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Gd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function uc(e,t,n){if(!t)return e;const r=n&&n.encode||Gd,o=y.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(t,o):i=y.isURLSearchParams(t)?t.toString():new Ni(t,o).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class va{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Yd=typeof URLSearchParams<"u"?URLSearchParams:Ni,Jd=typeof FormData<"u"?FormData:null,Xd=typeof Blob<"u"?Blob:null,Zd={isBrowser:!0,classes:{URLSearchParams:Yd,FormData:Jd,Blob:Xd},protocols:["http","https","file","blob","url","data"]},Si=typeof window<"u"&&typeof document<"u",js=typeof navigator=="object"&&navigator||void 0,Qd=Si&&(!js||["ReactNative","NativeScript","NS"].indexOf(js.product)<0),ep=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tp=Si&&window.location.href||"http://localhost",np=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Si,hasStandardBrowserEnv:Qd,hasStandardBrowserWebWorkerEnv:ep,navigator:js,origin:tp},Symbol.toStringTag,{value:"Module"})),Qe={...np,...Zd};function rp(e,t){return Yo(e,new Qe.classes.URLSearchParams,{visitor:function(n,r,o,s){return Qe.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function op(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sp(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function fc(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&y.isArray(o)?o.length:i,l?(y.hasOwnProp(o,i)?o[i]=y.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!y.hasOwnProp(o,i)||!y.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&y.isArray(o[i])&&(o[i]=sp(o[i])),!a)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(r,o)=>{t(op(r),o,n,0)}),n}return null}const kn=(e,t)=>e!=null&&y.hasOwnProp(e,t)?e[t]:void 0;function ip(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qr={transitional:xi,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=y.isObject(t);if(s&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return o?JSON.stringify(fc(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const l=kn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return rp(t,l).toString();if((a=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=kn(this,"env"),u=c&&c.FormData;return Yo(a?{"files[]":t}:t,u&&new u,l)}}return s||o?(n.setContentType("application/json",!1),ip(t)):t}],transformResponse:[function(t){const n=kn(this,"transitional")||qr.transitional,r=n&&n.forcedJSONParsing,o=kn(this,"responseType"),s=o==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,kn(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?oe.from(l,oe.ERR_BAD_RESPONSE,this,null,kn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch","query"],e=>{qr.headers[e]={}});function ms(e,t){const n=this||qr,r=t||n,o=ct.from(r.headers);let s=r.data;return y.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function dc(e){return!!(e&&e.__CANCEL__)}let Gr=class extends oe{constructor(t,n,r){super(t??"canceled",oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function pc(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,n.status>=400&&n.status<500?oe.ERR_BAD_REQUEST:oe.ERR_BAD_RESPONSE,n.config,n.request,n))}function ap(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function lp(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const g=u&&c-u;return g?Math.round(p*1e3/g):void 0}}function cp(e,t){let n=0,r=1e3/t,o,s;const i=(c,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const So=(e,t,n=3)=>{let r=0;const o=lp(50,250);return cp(s=>{if(!s||typeof s.loaded!="number")return;const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=a!=null?Math.min(i,a):i,c=Math.max(0,l-r),u=o(c);r=Math.max(r,l);const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},_a=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ya=e=>(...t)=>y.asap(()=>e(...t)),up=Qe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,fp=Qe.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];y.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),y.isString(r)&&a.push(`path=${r}`),y.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),y.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dp(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hc(e,t,n){let r=!dp(t);return e&&(r||n===!1)?pp(e,t):t}const wa=e=>e instanceof ct?{...e}:e;function Cn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,u,f,p){return y.isPlainObject(c)&&y.isPlainObject(u)?y.merge.call({caseless:p},c,u):y.isPlainObject(u)?y.merge({},u):y.isArray(u)?u.slice():u}function o(c,u,f,p){if(y.isUndefined(u)){if(!y.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function s(c,u){if(!y.isUndefined(u))return r(void 0,u)}function i(c,u){if(y.isUndefined(u)){if(!y.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(y.hasOwnProp(t,f))return r(c,u);if(y.hasOwnProp(e,f))return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(c,u,f)=>o(wa(c),wa(u),f,!0)};return y.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=y.hasOwnProp(l,u)?l[u]:o,p=y.hasOwnProp(e,u)?e[u]:void 0,g=y.hasOwnProp(t,u)?t[u]:void 0,b=f(p,g,u);y.isUndefined(b)&&f!==a||(n[u]=b)}),n}const hp=["content-type","content-length"];function mp(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{hp.includes(r.toLowerCase())&&e.set(r,o)})}const gp=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),mc=e=>{const t=Cn({},e),n=p=>y.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),f=n("url");if(t.headers=a=ct.from(a),t.url=uc(hc(c,f,u),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?gp(l.password):""))),y.isFormData(r)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):y.isFunction(r.getHeaders)&&mp(a,r.getHeaders(),n("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(y.isFunction(o)&&(o=o(t)),o===!0||o==null&&up(t.url))){const g=s&&i&&fp.read(i);g&&a.set(s,g)}return t},vp=typeof XMLHttpRequest<"u",_p=vp&&function(e){return new Promise(function(n,r){const o=mc(e);let s=o.data;const i=ct.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,f,p,g,b;function h(){g&&g(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function S(){if(!_)return;const R=ct.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:R,config:e,request:_};pc(function(M){n(M),h()},function(M){r(M),h()},x),_=null}"onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(S)},_.onabort=function(){_&&(r(new oe("Request aborted",oe.ECONNABORTED,e,_)),h(),_=null)},_.onerror=function(Y){const x=Y&&Y.message?Y.message:"Network Error",W=new oe(x,oe.ERR_NETWORK,e,_);W.event=Y||null,r(W),h(),_=null},_.ontimeout=function(){let Y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||xi;o.timeoutErrorMessage&&(Y=o.timeoutErrorMessage),r(new oe(Y,x.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,_)),h(),_=null},s===void 0&&i.setContentType(null),"setRequestHeader"in _&&y.forEach(ic(i),function(Y,x){_.setRequestHeader(x,Y)}),y.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),a&&a!=="json"&&(_.responseType=o.responseType),c&&([p,b]=So(c,!0),_.addEventListener("progress",p)),l&&_.upload&&([f,g]=So(l),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=R=>{_&&(r(!R||R.type?new Gr(null,e,_):R),_.abort(),h(),_=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=ap(o.url);if(T&&!Qe.protocols.includes(T)){r(new oe("Unsupported protocol "+T+":",oe.ERR_BAD_REQUEST,e));return}_.send(s||null)})},yp=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(l){if(!r){r=!0,i();const c=l instanceof Error?l:this.reason;n.abort(c instanceof oe?c:new Gr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new oe(`timeout of ${t}ms exceeded`,oe.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>y.asap(i),a},wp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},bp=async function*(e,t){for await(const n of Ep(e))yield*wp(n,t)},Ep=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ba=(e,t,n,r)=>{const o=bp(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let f=u.byteLength;if(n){let p=s+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function Op(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const a=r.length;for(let g=0;g<a;g++)if(r.charCodeAt(g)===37&&g+2<a){const b=r.charCodeAt(g+1),h=r.charCodeAt(g+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(i-=2,g+=2)}let l=0,c=a-1;const u=g=>g>=2&&r.charCodeAt(g-2)===37&&r.charCodeAt(g-1)===51&&(r.charCodeAt(g)===68||r.charCodeAt(g)===100);c>=0&&(r.charCodeAt(c)===61?(l++,c--):u(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||u(c))&&l++;const p=Math.floor(i/4)*3-(l||0);return p>0?p:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let i=0,a=r.length;i<a;i++){const l=r.charCodeAt(i);if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&i+1<a){const c=r.charCodeAt(i+1);c>=56320&&c<=57343?(s+=4,i++):s+=3}else s+=3}return s}const Ci="1.16.1",Ea=64*1024,{isFunction:uo}=y,Oa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Np=e=>{const t=y.global!==void 0&&y.global!==null?y.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?uo(o):typeof fetch=="function",l=uo(s),c=uo(i);if(!a)return!1;const u=a&&uo(n),f=a&&(typeof r=="function"?(S=>T=>S.encode(T))(new r):async S=>new Uint8Array(await new s(S).arrayBuffer())),p=l&&u&&Oa(()=>{let S=!1;const T=new s(Qe.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),R=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),S&&!R}),g=c&&u&&Oa(()=>y.isReadableStream(new i("").body)),b={stream:g&&(S=>S.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!b[S]&&(b[S]=(T,R)=>{let Y=T&&T[S];if(Y)return Y.call(T);throw new oe(`Response type '${S}' is not supported`,oe.ERR_NOT_SUPPORT,R)})});const h=async S=>{if(S==null)return 0;if(y.isBlob(S))return S.size;if(y.isSpecCompliantForm(S))return(await new s(Qe.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(y.isArrayBufferView(S)||y.isArrayBuffer(S))return S.byteLength;if(y.isURLSearchParams(S)&&(S=S+""),y.isString(S))return(await f(S)).byteLength},_=async(S,T)=>{const R=y.toFiniteNumber(S.getContentLength());return R??h(T)};return async S=>{let{url:T,method:R,data:Y,signal:x,cancelToken:W,timeout:M,onDownloadProgress:re,onUploadProgress:A,responseType:N,headers:E,withCredentials:D="same-origin",fetchOptions:J,maxContentLength:z,maxBodyLength:V}=mc(S);const L=y.isNumber(z)&&z>-1,B=y.isNumber(V)&&V>-1;let $=o||fetch;N=N?(N+"").toLowerCase():"text";let K=yp([x,W&&W.toAbortSignal()],M),O=null;const H=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let q;try{if(L&&typeof T=="string"&&T.startsWith("data:")&&Op(T)>z)throw new oe("maxContentLength size of "+z+" exceeded",oe.ERR_BAD_RESPONSE,S,O);if(B&&R!=="get"&&R!=="head"){const me=await _(E,Y);if(typeof me=="number"&&isFinite(me)&&me>V)throw new oe("Request body larger than maxBodyLength limit",oe.ERR_BAD_REQUEST,S,O)}if(A&&p&&R!=="get"&&R!=="head"&&(q=await _(E,Y))!==0){let me=new s(T,{method:"POST",body:Y,duplex:"half"}),Le;if(y.isFormData(Y)&&(Le=me.headers.get("content-type"))&&E.setContentType(Le),me.body){const[De,Fe]=_a(q,So(ya(A)));Y=ba(me.body,Ea,De,Fe)}}y.isString(D)||(D=D?"include":"omit");const te=l&&"credentials"in s.prototype;if(y.isFormData(Y)){const me=E.getContentType();me&&/^multipart\/form-data/i.test(me)&&!/boundary=/i.test(me)&&E.delete("content-type")}E.set("User-Agent","axios/"+Ci,!1);const _e={...J,signal:K,method:R.toUpperCase(),headers:ic(E.normalize()),body:Y,duplex:"half",credentials:te?D:void 0};O=l&&new s(T,_e);let Ne=await(l?$(O,J):$(T,_e));if(L){const me=y.toFiniteNumber(Ne.headers.get("content-length"));if(me!=null&&me>z)throw new oe("maxContentLength size of "+z+" exceeded",oe.ERR_BAD_RESPONSE,S,O)}const tt=g&&(N==="stream"||N==="response");if(g&&Ne.body&&(re||L||tt&&H)){const me={};["status","statusText","headers"].forEach(m=>{me[m]=Ne[m]});const Le=y.toFiniteNumber(Ne.headers.get("content-length")),[De,Fe]=re&&_a(Le,So(ya(re),!0))||[];let mt=0;const d=m=>{if(L&&(mt=m,mt>z))throw new oe("maxContentLength size of "+z+" exceeded",oe.ERR_BAD_RESPONSE,S,O);De&&De(m)};Ne=new i(ba(Ne.body,Ea,d,()=>{Fe&&Fe(),H&&H()}),me)}N=N||"text";let Ae=await b[y.findKey(b,N)||"text"](Ne,S);if(L&&!g&&!tt){let me;if(Ae!=null&&(typeof Ae.byteLength=="number"?me=Ae.byteLength:typeof Ae.size=="number"?me=Ae.size:typeof Ae=="string"&&(me=typeof r=="function"?new r().encode(Ae).byteLength:Ae.length)),typeof me=="number"&&me>z)throw new oe("maxContentLength size of "+z+" exceeded",oe.ERR_BAD_RESPONSE,S,O)}return!tt&&H&&H(),await new Promise((me,Le)=>{pc(me,Le,{data:Ae,headers:ct.from(Ne.headers),status:Ne.status,statusText:Ne.statusText,config:S,request:O})})}catch(te){if(H&&H(),K&&K.aborted&&K.reason instanceof oe){const _e=K.reason;throw _e.config=S,O&&(_e.request=O),te!==_e&&(_e.cause=te),_e}throw te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,S,O,te&&te.response),{cause:te.cause||te}):oe.from(te,te&&te.code,S,O,te&&te.response)}}},xp=new Map,gc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,a=i,l,c,u=xp;for(;a--;)l=s[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:Np(t)),u=c;return c};gc();const Ti={http:Wd,xhr:_p,fetch:{get:gc}};y.forEach(Ti,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Na=e=>`- ${e}`,Sp=e=>y.isFunction(e)||e===null||e===!1;function Cp(e,t){e=y.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let a;if(o=r,!Sp(r)&&(o=Ti[(a=String(r)).toLowerCase()],o===void 0))throw new oe(`Unknown adapter '${a}'`);if(o&&(y.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const bi={projectId:"default-project",storageKey:"yc-ai-task-queue-v1"};let $r={...bi};function Jl(e){$r={...$r,...e}}function Ei(){return $r}function Uf(){return $r.projectId??bi.projectId}function Xl(){return $r.storageKey??bi.storageKey}function Zl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hf}=Object.prototype,{getPrototypeOf:Wo}=Object,{iterator:Ko,toStringTag:Ql}=Symbol,qo=(e=>t=>{const n=Hf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>qo(t)===e),Go=e=>t=>typeof t===e,{isArray:nr}=Array,Xn=Go("undefined");function zr(e){return e!==null&&!Xn(e)&&e.constructor!==null&&!Xn(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ec=Mt("ArrayBuffer");function zf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ec(e.buffer),t}const Wf=Go("string"),ut=Go("function"),tc=Go("number"),Wr=e=>e!==null&&typeof e=="object",Kf=e=>e===!0||e===!1,vo=e=>{if(qo(e)!=="object")return!1;const t=Wo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ql in e)&&!(Ko in e)},qf=e=>{if(!Wr(e)||zr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gf=Mt("Date"),Yf=Mt("File"),Jf=e=>!!(e&&typeof e.uri<"u"),Xf=e=>e&&typeof e.getParts<"u",Zf=Mt("Blob"),Qf=Mt("FileList"),ed=e=>Wr(e)&&ut(e.pipe);function td(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pa=td(),ha=typeof pa.FormData<"u"?pa.FormData:void 0,nd=e=>{if(!e)return!1;if(ha&&e instanceof ha)return!0;const t=Wo(e);if(!t||t===Object.prototype||!ut(e.append))return!1;const n=qo(e);return n==="formdata"||n==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"},rd=Mt("URLSearchParams"),[od,sd,id,ad]=["ReadableStream","Request","Response","Headers"].map(Mt),ld=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),nr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(zr(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function nc(e,t){if(zr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rc=e=>!Xn(e)&&e!==wn;function Ls(...e){const{caseless:t,skipUndefined:n}=rc(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&nc(r,i)||i,l=Fs(r,a)?r[a]:void 0;vo(l)&&vo(s)?r[a]=Ls(l,s):vo(s)?r[a]=Ls({},s):nr(s)?r[a]=s.slice():(!n||!Xn(s))&&(r[a]=s)};for(let s=0,i=e.length;s<i;s++)e[s]&&Kr(e[s],o);return r}const cd=(e,t,n,{allOwnKeys:r}={})=>(Kr(t,(o,s)=>{n&&ut(o)?Object.defineProperty(e,s,{__proto__:null,value:Zl(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ud=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},dd=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Wo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hd=e=>{if(!e)return null;if(nr(e))return e;let t=e.length;if(!tc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},md=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wo(Uint8Array)),gd=(e,t)=>{const r=(e&&e[Ko]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},vd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_d=Mt("HTMLFormElement"),yd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wd=Mt("RegExp"),oc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kr(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},bd=e=>{oc(e,(t,n)=>{if(ut(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(ut(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ed=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return nr(e)?r(e):r(String(e).split(t)),n},Od=()=>{},Nd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xd(e){return!!(e&&ut(e.append)&&e[Ql]==="FormData"&&e[Ko])}const Sd=e=>{const t=new WeakSet,n=r=>{if(Wr(r)){if(t.has(r))return;if(zr(r))return r;if(!("toJSON"in r)){t.add(r);const o=nr(r)?[]:{};return Kr(r,(s,i)=>{const a=n(s);!Xn(a)&&(o[i]=a)}),t.delete(r),o}}return r};return n(e)},Cd=Mt("AsyncFunction"),Td=e=>e&&(Wr(e)||ut(e))&&ut(e.then)&&ut(e.catch),sc=((e,t)=>e?setImmediate:t?((n,r)=>(wn.addEventListener("message",({source:o,data:s})=>{o===wn&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ut(wn.postMessage)),Ad=typeof queueMicrotask<"u"?queueMicrotask.bind(wn):typeof process<"u"&&process.nextTick||sc,Dd=e=>e!=null&&ut(e[Ko]),_={isArray:nr,isArrayBuffer:ec,isBuffer:zr,isFormData:nd,isArrayBufferView:zf,isString:Wf,isNumber:tc,isBoolean:Kf,isObject:Wr,isPlainObject:vo,isEmptyObject:qf,isReadableStream:od,isRequest:sd,isResponse:id,isHeaders:ad,isUndefined:Xn,isDate:Gf,isFile:Yf,isReactNativeBlob:Jf,isReactNative:Xf,isBlob:Zf,isRegExp:wd,isFunction:ut,isStream:ed,isURLSearchParams:rd,isTypedArray:md,isFileList:Qf,forEach:Kr,merge:Ls,extend:cd,trim:ld,stripBOM:ud,inherits:fd,toFlatObject:dd,kindOf:qo,kindOfTest:Mt,endsWith:pd,toArray:hd,forEachEntry:gd,matchAll:vd,isHTMLForm:_d,hasOwnProperty:Fs,hasOwnProp:Fs,reduceDescriptors:oc,freezeMethods:bd,toObjectSet:Ed,toCamelCase:yd,noop:Od,toFiniteNumber:Nd,findKey:nc,global:wn,isContextDefined:rc,isSpecCompliantForm:xd,toJSONObject:Sd,isAsyncFn:Cd,isThenable:Td,setImmediate:sc,asap:Ad,isIterable:Dd},Pd=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$d=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Pd[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Md(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Id=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vd=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Oi(e,t){return _.isArray(e)?e.map(n=>Oi(n,t)):Md(String(e).replace(t,""))}const Rd=e=>Oi(e,Id),Ld=e=>Oi(e,Vd);function ic(e){const t=Object.create(null);return _.forEach(e.toJSON(),(n,r)=>{t[r]=Ld(n)}),t}const ma=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function _o(e){return e===!1||e==null?e:_.isArray(e)?e.map(_o):Rd(String(e))}function Fd(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ps(e,t,n,r,o){if(_.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function jd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let lt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const u=lr(l);if(!u)throw new Error("header name must be a non-empty string");const f=_.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=_o(a))}const i=(a,l)=>_.forEach(a,(c,u)=>s(c,u,l));if(_.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(_.isString(t)&&(t=t.trim())&&!kd(t))i($d(t),n);else if(_.isObject(t)&&_.isIterable(t)){let a={},l,c;for(const u of t){if(!_.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?_.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=lr(t),t){const r=_.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Fd(o);if(_.isFunction(n))return n.call(this,o,r);if(_.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lr(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ps(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=lr(i),i){const a=_.findKey(r,i);a&&(!n||ps(r,r[a],a,n))&&(delete r[a],o=!0)}}return _.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ps(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return _.forEach(this,(o,s)=>{const i=_.findKey(r,s);if(i){n[i]=_o(o),delete n[s];return}const a=t?jd(s):String(s).trim();a!==s&&delete n[s],n[a]=_o(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ma]=this[ma]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=lr(i);r[a]||(Bd(o,i),r[a]=!0)}return _.isArray(t)?t.forEach(s):s(t),this}};lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(lt);const Ud="[REDACTED ****]";function Hd(e){if(_.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(_.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function zd(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||_.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof lt&&(s=s.toJSON()),r.push(s);let i;if(_.isArray(s))i=[],s.forEach((a,l)=>{const c=o(a);_.isUndefined(c)||(i[l]=c)});else{if(!_.isPlainObject(s)&&Hd(s))return r.pop(),s;i=Object.create(null);for(const[a,l]of Object.entries(s)){const c=n.has(a.toLowerCase())?Ud:o(l);_.isUndefined(c)||(i[a]=c)}}return r.pop(),i};return o(e)}let re=class ac extends Error{static from(t,n,r,o,s,i){const a=new ac(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&_.hasOwnProp(t,"redact")?t.redact:void 0,r=_.isArray(n)&&n.length>0?zd(t,n):_.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ECONNREFUSED="ECONNREFUSED";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";re.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Wd=null;function ks(e){return _.isPlainObject(e)||_.isArray(e)}function lc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function hs(e,t,n){return e?e.concat(t).map(function(o,s){return o=lc(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Kd(e){return _.isArray(e)&&!e.some(ks)}const qd=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function Yo(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!_.isUndefined(S[v])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,c=a&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(_.isDate(h))return h.toISOString();if(_.isBoolean(h))return h.toString();if(!c&&_.isBlob(h))throw new re("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(h)||_.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,v,S){let T=h;if(_.isReactNative(t)&&_.isReactNativeBlob(h))return t.append(hs(S,v,s),u(h)),!1;if(h&&!S&&typeof h=="object"){if(_.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(_.isArray(h)&&Kd(h)||(_.isFileList(h)||_.endsWith(v,"[]"))&&(T=_.toArray(h)))return v=lc(v),T.forEach(function(Y,x){!(_.isUndefined(Y)||Y===null)&&t.append(i===!0?hs([v],x,s):i===null?v:v+"[]",u(Y))}),!1}return ks(h)?!0:(t.append(hs(S,v,s),u(h)),!1)}const p=[],g=Object.assign(qd,{defaultVisitor:f,convertValue:u,isVisitable:ks});function b(h,v,S=0){if(!_.isUndefined(h)){if(S>l)throw new re("Object is too deeply nested ("+S+" levels). Max depth: "+l,re.ERR_FORM_DATA_DEPTH_EXCEEDED);if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(h),_.forEach(h,function(F,Y){(!(_.isUndefined(F)||F===null)&&o.call(t,F,_.isString(Y)?Y.trim():Y,v,g))===!0&&b(F,v?v.concat(Y):[Y],S+1)}),p.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ga(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Ni(e,t){this._pairs=[],e&&Yo(e,this,t)}const cc=Ni.prototype;cc.append=function(t,n){this._pairs.push([t,n])};cc.toString=function(t){const n=t?function(r){return t.call(this,r,ga)}:ga;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Gd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function uc(e,t,n){if(!t)return e;const r=n&&n.encode||Gd,o=_.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(t,o):i=_.isURLSearchParams(t)?t.toString():new Ni(t,o).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class va{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Yd=typeof URLSearchParams<"u"?URLSearchParams:Ni,Jd=typeof FormData<"u"?FormData:null,Xd=typeof Blob<"u"?Blob:null,Zd={isBrowser:!0,classes:{URLSearchParams:Yd,FormData:Jd,Blob:Xd},protocols:["http","https","file","blob","url","data"]},Si=typeof window<"u"&&typeof document<"u",js=typeof navigator=="object"&&navigator||void 0,Qd=Si&&(!js||["ReactNative","NativeScript","NS"].indexOf(js.product)<0),ep=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tp=Si&&window.location.href||"http://localhost",np=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Si,hasStandardBrowserEnv:Qd,hasStandardBrowserWebWorkerEnv:ep,navigator:js,origin:tp},Symbol.toStringTag,{value:"Module"})),Qe={...np,...Zd};function rp(e,t){return Yo(e,new Qe.classes.URLSearchParams,{visitor:function(n,r,o,s){return Qe.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function op(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sp(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function fc(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&_.isArray(o)?o.length:i,l?(_.hasOwnProp(o,i)?o[i]=_.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!_.hasOwnProp(o,i)||!_.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&_.isArray(o[i])&&(o[i]=sp(o[i])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,o)=>{t(op(r),o,n,0)}),n}return null}const kn=(e,t)=>e!=null&&_.hasOwnProp(e,t)?e[t]:void 0;function ip(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qr={transitional:xi,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=_.isObject(t);if(s&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return o?JSON.stringify(fc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const l=kn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return rp(t,l).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=kn(this,"env"),u=c&&c.FormData;return Yo(a?{"files[]":t}:t,u&&new u,l)}}return s||o?(n.setContentType("application/json",!1),ip(t)):t}],transformResponse:[function(t){const n=kn(this,"transitional")||qr.transitional,r=n&&n.forcedJSONParsing,o=kn(this,"responseType"),s=o==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,kn(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?re.from(l,re.ERR_BAD_RESPONSE,this,null,kn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch","query"],e=>{qr.headers[e]={}});function ms(e,t){const n=this||qr,r=t||n,o=lt.from(r.headers);let s=r.data;return _.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function dc(e){return!!(e&&e.__CANCEL__)}let Gr=class extends re{constructor(t,n,r){super(t??"canceled",re.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function pc(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,n.status>=400&&n.status<500?re.ERR_BAD_REQUEST:re.ERR_BAD_RESPONSE,n.config,n.request,n))}function ap(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function lp(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const g=u&&c-u;return g?Math.round(p*1e3/g):void 0}}function cp(e,t){let n=0,r=1e3/t,o,s;const i=(c,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const So=(e,t,n=3)=>{let r=0;const o=lp(50,250);return cp(s=>{if(!s||typeof s.loaded!="number")return;const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=a!=null?Math.min(i,a):i,c=Math.max(0,l-r),u=o(c);r=Math.max(r,l);const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},_a=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ya=e=>(...t)=>_.asap(()=>e(...t)),up=Qe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,fp=Qe.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];_.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),_.isString(r)&&a.push(`path=${r}`),_.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),_.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dp(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hc(e,t,n){let r=!dp(t);return e&&(r||n===!1)?pp(e,t):t}const wa=e=>e instanceof lt?{...e}:e;function Cn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,u,f,p){return _.isPlainObject(c)&&_.isPlainObject(u)?_.merge.call({caseless:p},c,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function o(c,u,f,p){if(_.isUndefined(u)){if(!_.isUndefined(c))return r(void 0,c,f,p)}else return r(c,u,f,p)}function s(c,u){if(!_.isUndefined(u))return r(void 0,u)}function i(c,u){if(_.isUndefined(u)){if(!_.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(_.hasOwnProp(t,f))return r(c,u);if(_.hasOwnProp(e,f))return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(c,u,f)=>o(wa(c),wa(u),f,!0)};return _.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=_.hasOwnProp(l,u)?l[u]:o,p=_.hasOwnProp(e,u)?e[u]:void 0,g=_.hasOwnProp(t,u)?t[u]:void 0,b=f(p,g,u);_.isUndefined(b)&&f!==a||(n[u]=b)}),n}const hp=["content-type","content-length"];function mp(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{hp.includes(r.toLowerCase())&&e.set(r,o)})}const gp=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),mc=e=>{const t=Cn({},e),n=p=>_.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),f=n("url");if(t.headers=a=lt.from(a),t.url=uc(hc(c,f,u),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?gp(l.password):""))),_.isFormData(r)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):_.isFunction(r.getHeaders)&&mp(a,r.getHeaders(),n("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(_.isFunction(o)&&(o=o(t)),o===!0||o==null&&up(t.url))){const g=s&&i&&fp.read(i);g&&a.set(s,g)}return t},vp=typeof XMLHttpRequest<"u",_p=vp&&function(e){return new Promise(function(n,r){const o=mc(e);let s=o.data;const i=lt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,f,p,g,b;function h(){g&&g(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function S(){if(!v)return;const F=lt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:F,config:e,request:v};pc(function(V){n(V),h()},function(V){r(V),h()},x),v=null}"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(S)},v.onabort=function(){v&&(r(new re("Request aborted",re.ECONNABORTED,e,v)),h(),v=null)},v.onerror=function(Y){const x=Y&&Y.message?Y.message:"Network Error",W=new re(x,re.ERR_NETWORK,e,v);W.event=Y||null,r(W),h(),v=null},v.ontimeout=function(){let Y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||xi;o.timeoutErrorMessage&&(Y=o.timeoutErrorMessage),r(new re(Y,x.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,v)),h(),v=null},s===void 0&&i.setContentType(null),"setRequestHeader"in v&&_.forEach(ic(i),function(Y,x){v.setRequestHeader(x,Y)}),_.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([p,b]=So(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([f,g]=So(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=F=>{v&&(r(!F||F.type?new Gr(null,e,v):F),v.abort(),h(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=ap(o.url);if(T&&!Qe.protocols.includes(T)){r(new re("Unsupported protocol "+T+":",re.ERR_BAD_REQUEST,e));return}v.send(s||null)})},yp=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(l){if(!r){r=!0,i();const c=l instanceof Error?l:this.reason;n.abort(c instanceof re?c:new Gr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new re(`timeout of ${t}ms exceeded`,re.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>_.asap(i),a},wp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},bp=async function*(e,t){for await(const n of Ep(e))yield*wp(n,t)},Ep=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ba=(e,t,n,r)=>{const o=bp(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let f=u.byteLength;if(n){let p=s+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function Op(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const a=r.length;for(let g=0;g<a;g++)if(r.charCodeAt(g)===37&&g+2<a){const b=r.charCodeAt(g+1),h=r.charCodeAt(g+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(i-=2,g+=2)}let l=0,c=a-1;const u=g=>g>=2&&r.charCodeAt(g-2)===37&&r.charCodeAt(g-1)===51&&(r.charCodeAt(g)===68||r.charCodeAt(g)===100);c>=0&&(r.charCodeAt(c)===61?(l++,c--):u(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||u(c))&&l++;const p=Math.floor(i/4)*3-(l||0);return p>0?p:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let i=0,a=r.length;i<a;i++){const l=r.charCodeAt(i);if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&i+1<a){const c=r.charCodeAt(i+1);c>=56320&&c<=57343?(s+=4,i++):s+=3}else s+=3}return s}const Ci="1.16.1",Ea=64*1024,{isFunction:uo}=_,Oa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Np=e=>{const t=_.global!==void 0&&_.global!==null?_.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=_.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?uo(o):typeof fetch=="function",l=uo(s),c=uo(i);if(!a)return!1;const u=a&&uo(n),f=a&&(typeof r=="function"?(S=>T=>S.encode(T))(new r):async S=>new Uint8Array(await new s(S).arrayBuffer())),p=l&&u&&Oa(()=>{let S=!1;const T=new s(Qe.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),F=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),S&&!F}),g=c&&u&&Oa(()=>_.isReadableStream(new i("").body)),b={stream:g&&(S=>S.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!b[S]&&(b[S]=(T,F)=>{let Y=T&&T[S];if(Y)return Y.call(T);throw new re(`Response type '${S}' is not supported`,re.ERR_NOT_SUPPORT,F)})});const h=async S=>{if(S==null)return 0;if(_.isBlob(S))return S.size;if(_.isSpecCompliantForm(S))return(await new s(Qe.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(_.isArrayBufferView(S)||_.isArrayBuffer(S))return S.byteLength;if(_.isURLSearchParams(S)&&(S=S+""),_.isString(S))return(await f(S)).byteLength},v=async(S,T)=>{const F=_.toFiniteNumber(S.getContentLength());return F??h(T)};return async S=>{let{url:T,method:F,data:Y,signal:x,cancelToken:W,timeout:V,onDownloadProgress:ne,onUploadProgress:A,responseType:N,headers:O,withCredentials:D="same-origin",fetchOptions:J,maxContentLength:z,maxBodyLength:R}=mc(S);const k=_.isNumber(z)&&z>-1,B=_.isNumber(R)&&R>-1;let $=o||fetch;N=N?(N+"").toLowerCase():"text";let X=yp([x,W&&W.toAbortSignal()],V),E=null;const U=X&&X.unsubscribe&&(()=>{X.unsubscribe()});let K;try{if(k&&typeof T=="string"&&T.startsWith("data:")&&Op(T)>z)throw new re("maxContentLength size of "+z+" exceeded",re.ERR_BAD_RESPONSE,S,E);if(B&&F!=="get"&&F!=="head"){const me=await v(O,Y);if(typeof me=="number"&&isFinite(me)&&me>R)throw new re("Request body larger than maxBodyLength limit",re.ERR_BAD_REQUEST,S,E)}if(A&&p&&F!=="get"&&F!=="head"&&(K=await v(O,Y))!==0){let me=new s(T,{method:"POST",body:Y,duplex:"half"}),je;if(_.isFormData(Y)&&(je=me.headers.get("content-type"))&&O.setContentType(je),me.body){const[Pe,Ve]=_a(K,So(ya(A)));Y=ba(me.body,Ea,Pe,Ve)}}_.isString(D)||(D=D?"include":"omit");const ee=l&&"credentials"in s.prototype;if(_.isFormData(Y)){const me=O.getContentType();me&&/^multipart\/form-data/i.test(me)&&!/boundary=/i.test(me)&&O.delete("content-type")}O.set("User-Agent","axios/"+Ci,!1);const _e={...J,signal:X,method:F.toUpperCase(),headers:ic(O.normalize()),body:Y,duplex:"half",credentials:ee?D:void 0};E=l&&new s(T,_e);let xe=await(l?$(E,J):$(T,_e));if(k){const me=_.toFiniteNumber(xe.headers.get("content-length"));if(me!=null&&me>z)throw new re("maxContentLength size of "+z+" exceeded",re.ERR_BAD_RESPONSE,S,E)}const ct=g&&(N==="stream"||N==="response");if(g&&xe.body&&(ne||k||ct&&U)){const me={};["status","statusText","headers"].forEach(m=>{me[m]=xe[m]});const je=_.toFiniteNumber(xe.headers.get("content-length")),[Pe,Ve]=ne&&_a(je,So(ya(ne),!0))||[];let mt=0;const d=m=>{if(k&&(mt=m,mt>z))throw new re("maxContentLength size of "+z+" exceeded",re.ERR_BAD_RESPONSE,S,E);Pe&&Pe(m)};xe=new i(ba(xe.body,Ea,d,()=>{Ve&&Ve(),U&&U()}),me)}N=N||"text";let De=await b[_.findKey(b,N)||"text"](xe,S);if(k&&!g&&!ct){let me;if(De!=null&&(typeof De.byteLength=="number"?me=De.byteLength:typeof De.size=="number"?me=De.size:typeof De=="string"&&(me=typeof r=="function"?new r().encode(De).byteLength:De.length)),typeof me=="number"&&me>z)throw new re("maxContentLength size of "+z+" exceeded",re.ERR_BAD_RESPONSE,S,E)}return!ct&&U&&U(),await new Promise((me,je)=>{pc(me,je,{data:De,headers:lt.from(xe.headers),status:xe.status,statusText:xe.statusText,config:S,request:E})})}catch(ee){if(U&&U(),X&&X.aborted&&X.reason instanceof re){const _e=X.reason;throw _e.config=S,E&&(_e.request=E),ee!==_e&&(_e.cause=ee),_e}throw ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,S,E,ee&&ee.response),{cause:ee.cause||ee}):re.from(ee,ee&&ee.code,S,E,ee&&ee.response)}}},xp=new Map,gc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,a=i,l,c,u=xp;for(;a--;)l=s[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:Np(t)),u=c;return c};gc();const Ti={http:Wd,xhr:_p,fetch:{get:gc}};_.forEach(Ti,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Na=e=>`- ${e}`,Sp=e=>_.isFunction(e)||e===null||e===!1;function Cp(e,t){e=_.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let a;if(o=r,!Sp(r)&&(o=Ti[(a=String(r)).toLowerCase()],o===void 0))throw new re(`Unknown adapter '${a}'`);if(o&&(_.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
4
4
|
`+i.map(Na).join(`
|
|
5
|
-
`):" "+Na(i[0]):"as no adapter specified";throw new
|
|
5
|
+
`):" "+Na(i[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const vc={getAdapter:Cp,adapters:Ti};function gs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gr(null,e)}function xa(e){return gs(e),e.headers=lt.from(e.headers),e.data=ms.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vc.getAdapter(e.adapter||qr.adapter,e)(e).then(function(r){gs(e),e.response=r;try{r.data=ms.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=lt.from(r.headers),r},function(r){if(!dc(r)&&(gs(e),r&&r.response)){e.response=r.response;try{r.response.data=ms.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=lt.from(r.response.headers)}return Promise.reject(r)})}const Jo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sa={};Jo.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Ci+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new re(o(i," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!Sa[i]&&(Sa[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};Jo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Tp(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new re("option "+s+" must be "+l,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+s,re.ERR_BAD_OPTION)}}const yo={assertOptions:Tp,validators:Jo},gt=yo.validators;let bn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new va,response:new va}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const i=o.stack.indexOf(`
|
|
6
6
|
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
7
7
|
`),a=i===-1?-1:s.indexOf(`
|
|
8
8
|
`,i+1),l=a===-1?"":s.slice(a+1);String(r.stack).endsWith(l)||(r.stack+=`
|
|
9
|
-
`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&yo.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean),legacyInterceptorReqResOrdering:gt.transitional(gt.boolean)},!1),o!=null&&(
|
|
9
|
+
`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&yo.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean),legacyInterceptorReqResOrdering:gt.transitional(gt.boolean)},!1),o!=null&&(_.isFunction(o)?n.paramsSerializer={serialize:o}:yo.assertOptions(o,{encode:gt.function,serialize:gt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yo.assertOptions(n,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&_.merge(s.common,s[n.method]);s&&_.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete s[b]}),n.headers=lt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(n)===!1)return;l=l&&h.synchronous;const v=n.transitional||xi;v&&v.legacyInterceptorReqResOrdering?a.unshift(h.fulfilled,h.rejected):a.push(h.fulfilled,h.rejected)});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,f=0,p;if(!l){const b=[xa.bind(this),void 0];for(b.unshift(...a),b.push(...c),p=b.length,u=Promise.resolve(n);f<p;)u=u.then(b[f++],b[f++]);return u}p=a.length;let g=n;for(;f<p;){const b=a[f++],h=a[f++];try{g=b(g)}catch(v){h.call(this,v);break}}try{u=xa.call(this,g)}catch(b){return Promise.reject(b)}for(f=0,p=c.length;f<p;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Cn(this.defaults,t);const n=hc(t.baseURL,t.url,t.allowAbsoluteUrls);return uc(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){bn.prototype[t]=function(n,r){return this.request(Cn(r||{},{method:t,url:n,data:(r||{}).data}))}});_.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,i,a){return this.request(Cn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}bn.prototype[t]=n(),t!=="query"&&(bn.prototype[t+"Form"]=n(!0))});let Ap=class _c{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Gr(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _c(function(o){t=o}),cancel:t}}};function Dp(e){return function(n){return e.apply(null,n)}}function Pp(e){return _.isObject(e)&&e.isAxiosError===!0}const Bs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bs).forEach(([e,t])=>{Bs[t]=e});function yc(e){const t=new bn(e),n=Zl(bn.prototype.request,t);return _.extend(n,bn.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return yc(Cn(e,o))},n}const ke=yc(qr);ke.Axios=bn;ke.CanceledError=Gr;ke.CancelToken=Ap;ke.isCancel=dc;ke.VERSION=Ci;ke.toFormData=Yo;ke.AxiosError=re;ke.Cancel=ke.CanceledError;ke.all=function(t){return Promise.all(t)};ke.spread=Dp;ke.isAxiosError=Pp;ke.mergeConfig=Cn;ke.AxiosHeaders=lt;ke.formToJSON=e=>fc(_.isHTMLForm(e)?new FormData(e):e);ke.getAdapter=vc.getAdapter;ke.HttpStatusCode=Bs;ke.default=ke;const{Axios:Cy,AxiosError:Ty,CanceledError:Ay,isCancel:Dy,CancelToken:Py,VERSION:$y,all:My,Cancel:Iy,isAxiosError:Vy,spread:Ry,toFormData:Ly,AxiosHeaders:Fy,HttpStatusCode:ky,formToJSON:jy,getAdapter:By,mergeConfig:Uy,create:Hy}=ke;let gn=null;function $p(){gn=null}function rr(){if(gn)return gn;const{baseURL:e,getToken:t,onUnauthorized:n}=Ei();return gn=ke.create({baseURL:e??"",timeout:6e4,headers:{"Content-Type":"application/json"}}),gn.interceptors.request.use(r=>{const o=t==null?void 0:t();return o&&(r.headers.Authorization=`Bearer ${o}`),r}),gn.interceptors.response.use(r=>{const o=r.data;return(o==null?void 0:o.code)!=null&&o.code!==200?Promise.reject(new Error(o.message||"请求失败")):(r.data=(o==null?void 0:o.data)??o,r)},r=>{var s,i,a;((s=r.response)==null?void 0:s.status)===401&&(n==null||n());const o=(a=(i=r.response)==null?void 0:i.data)==null?void 0:a.message;return Promise.reject(new Error(o||r.message||"请求失败"))}),gn}async function Mp(e,t){const r=(await rr().get(`/yc-ai/workflows/runs/${e}/artifacts/${t}`,{transformResponse:[o=>o]})).data;if(typeof r=="string")try{return JSON.parse(r)}catch{return r}return r}let Us={};function wc(e){Us={...Us,...e}}function Xo(){return Us}/**
|
|
10
10
|
* @vue/shared v3.5.35
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/function or(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const
|
|
13
|
+
**/function or(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Te=process.env.NODE_ENV!=="production"?Object.freeze({}):{},qn=process.env.NODE_ENV!=="production"?Object.freeze([]):[],Ke=()=>{},bc=()=>!1,Yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),Le=Object.assign,Ai=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ip=Object.prototype.hasOwnProperty,ge=(e,t)=>Ip.call(e,t),se=Array.isArray,En=e=>Jr(e)==="[object Map]",Ec=e=>Jr(e)==="[object Set]",Ca=e=>Jr(e)==="[object Date]",ce=e=>typeof e=="function",be=e=>typeof e=="string",dt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Di=e=>(ve(e)||ce(e))&&ce(e.then)&&ce(e.catch),Oc=Object.prototype.toString,Jr=e=>Oc.call(e),Pi=e=>Jr(e).slice(8,-1),Nc=e=>Jr(e)==="[object Object]",Zo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Or=or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vp=or("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Qo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Rp=/-\w/g,Ye=Qo(e=>e.replace(Rp,t=>t.slice(1).toUpperCase())),Lp=/\B([A-Z])/g,Xt=Qo(e=>e.replace(Lp,"-$1").toLowerCase()),Tn=Qo(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Qo(e=>e?`on${Tn(e)}`:""),Bt=(e,t)=>!Object.is(e,t),cr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Co=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Fp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kp=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let Ta;const Xr=()=>Ta||(Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=be(r)?Hp(r):ln(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(be(e)||ve(e))return e}const jp=/;(?![^(]*\))/g,Bp=/:([^]+)/,Up=/\/\*[^]*?\*\//g;function Hp(e){const t={};return e.replace(Up,"").split(jp).forEach(n=>{if(n){const r=n.split(Bp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ge(e){let t="";if(be(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const r=Ge(e[n]);r&&(t+=r+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function zp(e){if(!e)return null;let{class:t,style:n}=e;return t&&!be(t)&&(e.class=Ge(t)),n&&(e.style=ln(n)),e}const Wp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Kp=or(Wp);function xc(e){return!!e||e===""}function qp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$i(e[r],t[r]);return n}function $i(e,t){if(e===t)return!0;let n=Ca(e),r=Ca(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=dt(e),r=dt(t),n||r)return e===t;if(n=se(e),r=se(t),n||r)return n&&r?qp(e,t):!1;if(n=ve(e),r=ve(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!$i(e[i],t[i]))return!1}}return String(e)===String(t)}const Sc=e=>!!(e&&e.__v_isRef===!0),Ae=e=>be(e)?e:e==null?"":se(e)||ve(e)&&(e.toString===Oc||!ce(e.toString))?Sc(e)?Ae(e.value):JSON.stringify(e,Cc,2):String(e),Cc=(e,t)=>Sc(t)?Cc(e,t.value):En(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[vs(r,s)+" =>"]=o,n),{})}:Ec(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vs(n))}:dt(t)?vs(t):ve(t)&&!se(t)&&!Nc(t)?String(t):t,vs=(e,t="")=>{var n;return dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
14
14
|
* @vue/reactivity v3.5.35
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/function ht(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let He;class Tc{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&&He&&(He.active?(this.parent=He,this.index=(He.scopes||(He.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=He;try{return He=this,t()}finally{He=n}}else process.env.NODE_ENV!=="production"&&this._warnOnRun&&ht("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=He,He=this)}off(){if(this._on>0&&--this._on===0){if(He===this)He=this.prevScope;else{let t=He;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,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Gp(e){return new Tc(e)}function Mi(){return He}function Ac(e,t=!1){He?He.cleanups.push(e):process.env.NODE_ENV!=="production"&&!t&&ht("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Se;const _s=new WeakSet;class Dc{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,He&&(He.active?He.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_s.has(this)&&(_s.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$c(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Aa(this),Mc(this);const t=Se,n=St;Se=this,St=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&Se!==this&&ht("Active effect was not restored correctly - this is likely a Vue internal bug."),Ic(this),Se=t,St=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ri(t);this.deps=this.depsTail=void 0,Aa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_s.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hs(this)&&this.run()}get dirty(){return Hs(this)}}let Pc=0,Nr,xr;function $c(e,t=!1){if(e.flags|=8,t){e.next=xr,xr=e;return}e.next=Nr,Nr=e}function Ii(){Pc++}function Vi(){if(--Pc>0)return;if(xr){let t=xr;for(xr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Nr;){let t=Nr;for(Nr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Mc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ic(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ri(r),Yp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hs(e))))return;e.flags|=2;const t=e.dep,n=Se,r=St;Se=e,St=!0;try{Mc(e);const o=e.fn(e._value);(t.version===0||Bt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Se=n,St=r,Ic(e),e.flags&=-3}}function Ri(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=o),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Ri(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let St=!0;const Rc=[];function Tt(){Rc.push(St),St=!1}function At(){const e=Rc.pop();St=e===void 0?!0:e}function Aa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Se;Se=void 0;try{t()}finally{Se=n}}}let Ir=0;class Jp{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 Li{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,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Se||!St||Se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Se)n=this.activeLink=new Jp(Se,this),Se.deps?(n.prevDep=Se.depsTail,Se.depsTail.nextDep=n,Se.depsTail=n):Se.deps=Se.depsTail=n,Lc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Se.depsTail,n.nextDep=void 0,Se.depsTail.nextDep=n,Se.depsTail=n,Se.deps===n&&(Se.deps=r)}return process.env.NODE_ENV!=="production"&&Se.onTrack&&Se.onTrack(Re({effect:Se},t)),n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){Ii();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Re({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vi()}}}function Lc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Lc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const To=new WeakMap,On=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),zs=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Vr=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function ze(e,t,n){if(St&&Se){let r=To.get(e);r||To.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Li),o.map=r,o.key=n),process.env.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function Ut(e,t,n,r,o,s){const i=To.get(e);if(!i){Ir++;return}const a=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger())};if(Ii(),t==="clear")i.forEach(a);else{const l=ie(e),c=l&&Zo(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,p)=>{(p==="length"||p===Vr||!dt(p)&&p>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Vr)),t){case"add":l?c&&a(i.get("length")):(a(i.get(On)),En(e)&&a(i.get(zs)));break;case"delete":l||(a(i.get(On)),En(e)&&a(i.get(zs)));break;case"set":En(e)&&a(i.get(On));break}}Vi()}function Xp(e,t){const n=To.get(e);return n&&n.get(t)}function jn(e){const t=pe(e);return t===e?t:(ze(t,"iterate",Vr),et(e)?t:t.map(Pt))}function es(e){return ze(e=pe(e),"iterate",Vr),e}function jt(e,t){return Dt(e)?Qn(bt(e)?Pt(t):t):Pt(t)}const Zp={__proto__:null,[Symbol.iterator](){return ys(this,Symbol.iterator,e=>jt(this,e))},concat(...e){return jn(this).concat(...e.map(t=>ie(t)?jn(t):t))},entries(){return ys(this,"entries",e=>(e[1]=jt(this,e[1]),e))},every(e,t){return zt(this,"every",e,t,void 0,arguments)},filter(e,t){return zt(this,"filter",e,t,n=>n.map(r=>jt(this,r)),arguments)},find(e,t){return zt(this,"find",e,t,n=>jt(this,n),arguments)},findIndex(e,t){return zt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return zt(this,"findLast",e,t,n=>jt(this,n),arguments)},findLastIndex(e,t){return zt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return zt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ws(this,"includes",e)},indexOf(...e){return ws(this,"indexOf",e)},join(e){return jn(this).join(e)},lastIndexOf(...e){return ws(this,"lastIndexOf",e)},map(e,t){return zt(this,"map",e,t,void 0,arguments)},pop(){return ur(this,"pop")},push(...e){return ur(this,"push",e)},reduce(e,...t){return Da(this,"reduce",e,t)},reduceRight(e,...t){return Da(this,"reduceRight",e,t)},shift(){return ur(this,"shift")},some(e,t){return zt(this,"some",e,t,void 0,arguments)},splice(...e){return ur(this,"splice",e)},toReversed(){return jn(this).toReversed()},toSorted(e){return jn(this).toSorted(e)},toSpliced(...e){return jn(this).toSpliced(...e)},unshift(...e){return ur(this,"unshift",e)},values(){return ys(this,"values",e=>jt(this,e))}};function ys(e,t,n){const r=es(e),o=r[t]();return r!==e&&!et(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const Qp=Array.prototype;function zt(e,t,n,r,o,s){const i=es(e),a=i!==e&&!et(e),l=i[t];if(l!==Qp[t]){const f=l.apply(e,s);return a?Pt(f):f}let c=n;i!==e&&(a?c=function(f,p){return n.call(this,jt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=l.call(i,c,r);return a&&o?o(u):u}function Da(e,t,n,r){const o=es(e),s=o!==e&&!et(e);let i=n,a=!1;o!==e&&(s?(a=r.length===0,i=function(c,u,f){return a&&(a=!1,c=jt(e,c)),n.call(this,c,jt(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const l=o[t](i,...r);return a?jt(e,l):l}function ws(e,t,n){const r=pe(e);ze(r,"iterate",Vr);const o=r[t](...n);return(o===-1||o===!1)&&Zn(n[0])?(n[0]=pe(n[0]),r[t](...n)):o}function ur(e,t,n=[]){Tt(),Ii();const r=pe(e)[t].apply(e,n);return Vi(),At(),r}const eh=or("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function th(e){dt(e)||(e=String(e));const t=pe(this);return ze(t,"has",e),t.hasOwnProperty(e)}class kc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?Wc:zc:s?Hc:Uc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ie(t);if(!o){let l;if(i&&(l=Zp[n]))return l;if(n==="hasOwnProperty")return th}const a=Reflect.get(t,n,xe(t)?t:r);if((dt(n)?Fc.has(n):eh(n))||(o||ze(t,"get",n),s))return a;if(xe(a)){const l=i&&Zo(n)?a:a.value;return o&&ve(l)?Ks(l):l}return ve(a)?o?Ks(a):sr(a):a}}class jc extends kc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=ie(t)&&Zo(n);if(!this._isShallow){const c=Dt(s);if(!et(r)&&!Dt(r)&&(s=pe(s),r=pe(r)),!i&&xe(s)&&!xe(r))return c?(process.env.NODE_ENV!=="production"&&ht(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const a=i?Number(n)<t.length:ge(t,n),l=Reflect.set(t,n,r,xe(t)?t:o);return t===pe(o)&&(a?Bt(r,s)&&Ut(t,"set",n,r,s):Ut(t,"add",n,r)),l}deleteProperty(t,n){const r=ge(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Ut(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!dt(n)||!Fc.has(n))&&ze(t,"has",n),r}ownKeys(t){return ze(t,"iterate",ie(t)?"length":On),Reflect.ownKeys(t)}}class Bc extends kc{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&ht(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&ht(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const nh=new jc,rh=new Bc,oh=new jc(!0),sh=new Bc(!0),Ws=e=>e,fo=e=>Reflect.getPrototypeOf(e);function ih(e,t,n){return function(...r){const o=this.__v_raw,s=pe(o),i=En(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?Ws:t?Qn:Pt;return!t&&ze(s,"iterate",l?zs:On),Re(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function po(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";ht(`${Tn(e)} operation ${n}failed: target is readonly.`,pe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ah(e,t){const n={get(o){const s=this.__v_raw,i=pe(s),a=pe(o);e||(Bt(o,a)&&ze(i,"get",o),ze(i,"get",a));const{has:l}=fo(i),c=t?Ws:e?Qn:Pt;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&ze(pe(o),"iterate",On),o.size},has(o){const s=this.__v_raw,i=pe(s),a=pe(o);return e||(Bt(o,a)&&ze(i,"has",o),ze(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=pe(a),c=t?Ws:e?Qn:Pt;return!e&&ze(l,"iterate",On),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return Re(n,e?{add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear")}:{add(o){const s=pe(this),i=fo(s),a=pe(o),l=!t&&!et(o)&&!Dt(o)?a:o;return i.has.call(s,l)||Bt(o,l)&&i.has.call(s,o)||Bt(a,l)&&i.has.call(s,a)||(s.add(l),Ut(s,"add",l,l)),this},set(o,s){!t&&!et(s)&&!Dt(s)&&(s=pe(s));const i=pe(this),{has:a,get:l}=fo(i);let c=a.call(i,o);c?process.env.NODE_ENV!=="production"&&Pa(i,a,o):(o=pe(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?Bt(s,u)&&Ut(i,"set",o,s,u):Ut(i,"add",o,s),this},delete(o){const s=pe(this),{has:i,get:a}=fo(s);let l=i.call(s,o);l?process.env.NODE_ENV!=="production"&&Pa(s,i,o):(o=pe(o),l=i.call(s,o));const c=a?a.call(s,o):void 0,u=s.delete(o);return l&&Ut(s,"delete",o,void 0,c),u},clear(){const o=pe(this),s=o.size!==0,i=process.env.NODE_ENV!=="production"?En(o)?new Map(o):new Set(o):void 0,a=o.clear();return s&&Ut(o,"clear",void 0,void 0,i),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ih(o,e,t)}),n}function ts(e,t){const n=ah(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ge(n,o)&&o in r?n:r,o,s)}const lh={get:ts(!1,!1)},ch={get:ts(!1,!0)},uh={get:ts(!0,!1)},fh={get:ts(!0,!0)};function Pa(e,t,n){const r=pe(n);if(r!==n&&t.call(e,r)){const o=Pi(e);ht(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Uc=new WeakMap,Hc=new WeakMap,zc=new WeakMap,Wc=new WeakMap;function dh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sr(e){return Dt(e)?e:ns(e,!1,nh,lh,Uc)}function Fi(e){return ns(e,!1,oh,ch,Hc)}function Ks(e){return ns(e,!0,rh,uh,zc)}function xt(e){return ns(e,!0,sh,fh,Wc)}function ns(e,t,n,r,o){if(!ve(e))return process.env.NODE_ENV!=="production"&&ht(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const i=dh(Pi(e));if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function bt(e){return Dt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function et(e){return!!(e&&e.__v_isShallow)}function Zn(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function Kn(e){return!ge(e,"__v_skip")&&Object.isExtensible(e)&&Co(e,"__v_skip",!0),e}const Pt=e=>ve(e)?sr(e):e,Qn=e=>ve(e)?Ks(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function he(e){return qc(e,!1)}function Kc(e){return qc(e,!0)}function qc(e,t){return xe(e)?e:new ph(e,t)}class ph{constructor(t,n){this.dep=new Li,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pe(t),this._value=n?t:Pt(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||et(t)||Dt(t);t=r?t:pe(t),Bt(t,n)&&(this._rawValue=t,this._value=r?t:Pt(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Z(e){return xe(e)?e.value:e}function Gn(e){return ue(e)?e():Z(e)}const hh={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return xe(o)&&!xe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Gc(e){return bt(e)?e:new Proxy(e,hh)}function $a(e){process.env.NODE_ENV!=="production"&&!Zn(e)&&ht("toRefs() expects a reactive object but received a plain one.");const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=Yc(e,n);return t}class mh{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=dt(n)?n:String(n),this._raw=pe(t);let o=!0,s=t;if(!ie(t)||dt(this._key)||!Zo(this._key))do o=!Zn(s)||et(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Z(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&xe(this._raw[this._key])){const n=this._object[this._key];if(xe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Xp(this._raw,this._key)}}class gh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function wo(e,t,n){return xe(e)?e:ue(e)?new gh(e):ve(e)&&arguments.length>1?Yc(e,t,n):he(e)}function Yc(e,t,n){return new mh(e,t,n)}class vh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Li(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return $c(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Vc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&ht("Write operation failed: computed value is readonly")}}function _h(e,t,n=!1){let r,o;ue(e)?r=e:(r=e.get,o=e.set);const s=new vh(r,o,n);return process.env.NODE_ENV,s}const ho={},Ao=new WeakMap;let _n;function yh(e,t=!1,n=_n){if(n){let r=Ao.get(n);r||Ao.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&ht("onWatcherCleanup() was called when there was no active watcher to associate with.")}function wh(e,t,n=Ce){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,c=x=>{(n.onWarn||ht)("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=x=>o?x:et(x)||o===!1||o===0?Yt(x,1):Yt(x);let f,p,g,b,h=!1,_=!1;if(xe(e)?(p=()=>e.value,h=et(e)):bt(e)?(p=()=>u(e),h=!0):ie(e)?(_=!0,h=e.some(x=>bt(x)||et(x)),p=()=>e.map(x=>{if(xe(x))return x.value;if(bt(x))return u(x);if(ue(x))return l?l(x,2):x();process.env.NODE_ENV!=="production"&&c(x)})):ue(e)?t?p=l?()=>l(e,2):e:p=()=>{if(g){Tt();try{g()}finally{At()}}const x=_n;_n=f;try{return l?l(e,3,[b]):e(b)}finally{_n=x}}:(p=We,process.env.NODE_ENV!=="production"&&c(e)),t&&o){const x=p,W=o===!0?1/0:o;p=()=>Yt(x(),W)}const S=Mi(),T=()=>{f.stop(),S&&S.active&&Ai(S.effects,f)};if(s&&t){const x=t;t=(...W)=>{x(...W),T()}}let R=_?new Array(e.length).fill(ho):ho;const Y=x=>{if(!(!(f.flags&1)||!f.dirty&&!x))if(t){const W=f.run();if(o||h||(_?W.some((M,re)=>Bt(M,R[re])):Bt(W,R))){g&&g();const M=_n;_n=f;try{const re=[W,R===ho?void 0:_&&R[0]===ho?[]:R,b];R=W,l?l(t,3,re):t(...re)}finally{_n=M}}}else f.run()};return a&&a(Y),f=new Dc(p),f.scheduler=i?()=>i(Y,!1):Y,b=x=>yh(x,!1,f),g=f.onStop=()=>{const x=Ao.get(f);if(x){if(l)l(x,4);else for(const W of x)W();Ao.delete(f)}},process.env.NODE_ENV!=="production"&&(f.onTrack=n.onTrack,f.onTrigger=n.onTrigger),t?r?Y(!0):R=f.run():i?i(Y.bind(null,!0),!0):f.run(),T.pause=f.pause.bind(f),T.resume=f.resume.bind(f),T.stop=T,T}function Yt(e,t=1/0,n){if(t<=0||!ve(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,xe(e))Yt(e.value,t,n);else if(ie(e))for(let r=0;r<e.length;r++)Yt(e[r],t,n);else if(Ec(e)||En(e))e.forEach(r=>{Yt(r,t,n)});else if(Nc(e)){for(const r in e)Yt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yt(e[r],t,n)}return e}/**
|
|
17
|
+
**/function ht(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ze;class Tc{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&&ze&&(ze.active?(this.parent=ze,this.index=(ze.scopes||(ze.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=ze;try{return ze=this,t()}finally{ze=n}}else process.env.NODE_ENV!=="production"&&this._warnOnRun&&ht("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){if(this._on>0&&--this._on===0){if(ze===this)ze=this.prevScope;else{let t=ze;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,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Gp(e){return new Tc(e)}function Mi(){return ze}function Ac(e,t=!1){ze?ze.cleanups.push(e):process.env.NODE_ENV!=="production"&&!t&&ht("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Ce;const _s=new WeakSet;class Dc{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,ze&&(ze.active?ze.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_s.has(this)&&(_s.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$c(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Aa(this),Mc(this);const t=Ce,n=St;Ce=this,St=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&Ce!==this&&ht("Active effect was not restored correctly - this is likely a Vue internal bug."),Ic(this),Ce=t,St=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ri(t);this.deps=this.depsTail=void 0,Aa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_s.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hs(this)&&this.run()}get dirty(){return Hs(this)}}let Pc=0,Nr,xr;function $c(e,t=!1){if(e.flags|=8,t){e.next=xr,xr=e;return}e.next=Nr,Nr=e}function Ii(){Pc++}function Vi(){if(--Pc>0)return;if(xr){let t=xr;for(xr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Nr;){let t=Nr;for(Nr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Mc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ic(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ri(r),Yp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hs(e))))return;e.flags|=2;const t=e.dep,n=Ce,r=St;Ce=e,St=!0;try{Mc(e);const o=e.fn(e._value);(t.version===0||Bt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ce=n,St=r,Ic(e),e.flags&=-3}}function Ri(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=o),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Ri(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let St=!0;const Rc=[];function Tt(){Rc.push(St),St=!1}function At(){const e=Rc.pop();St=e===void 0?!0:e}function Aa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ce;Ce=void 0;try{t()}finally{Ce=n}}}let Ir=0;class Jp{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 Li{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,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Ce||!St||Ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ce)n=this.activeLink=new Jp(Ce,this),Ce.deps?(n.prevDep=Ce.depsTail,Ce.depsTail.nextDep=n,Ce.depsTail=n):Ce.deps=Ce.depsTail=n,Lc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ce.depsTail,n.nextDep=void 0,Ce.depsTail.nextDep=n,Ce.depsTail=n,Ce.deps===n&&(Ce.deps=r)}return process.env.NODE_ENV!=="production"&&Ce.onTrack&&Ce.onTrack(Le({effect:Ce},t)),n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){Ii();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Le({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vi()}}}function Lc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Lc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const To=new WeakMap,On=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),zs=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Vr=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function We(e,t,n){if(St&&Ce){let r=To.get(e);r||To.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Li),o.map=r,o.key=n),process.env.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function Ut(e,t,n,r,o,s){const i=To.get(e);if(!i){Ir++;return}const a=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger())};if(Ii(),t==="clear")i.forEach(a);else{const l=se(e),c=l&&Zo(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,p)=>{(p==="length"||p===Vr||!dt(p)&&p>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Vr)),t){case"add":l?c&&a(i.get("length")):(a(i.get(On)),En(e)&&a(i.get(zs)));break;case"delete":l||(a(i.get(On)),En(e)&&a(i.get(zs)));break;case"set":En(e)&&a(i.get(On));break}}Vi()}function Xp(e,t){const n=To.get(e);return n&&n.get(t)}function jn(e){const t=pe(e);return t===e?t:(We(t,"iterate",Vr),et(e)?t:t.map(Pt))}function es(e){return We(e=pe(e),"iterate",Vr),e}function jt(e,t){return Dt(e)?Qn(bt(e)?Pt(t):t):Pt(t)}const Zp={__proto__:null,[Symbol.iterator](){return ys(this,Symbol.iterator,e=>jt(this,e))},concat(...e){return jn(this).concat(...e.map(t=>se(t)?jn(t):t))},entries(){return ys(this,"entries",e=>(e[1]=jt(this,e[1]),e))},every(e,t){return zt(this,"every",e,t,void 0,arguments)},filter(e,t){return zt(this,"filter",e,t,n=>n.map(r=>jt(this,r)),arguments)},find(e,t){return zt(this,"find",e,t,n=>jt(this,n),arguments)},findIndex(e,t){return zt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return zt(this,"findLast",e,t,n=>jt(this,n),arguments)},findLastIndex(e,t){return zt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return zt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ws(this,"includes",e)},indexOf(...e){return ws(this,"indexOf",e)},join(e){return jn(this).join(e)},lastIndexOf(...e){return ws(this,"lastIndexOf",e)},map(e,t){return zt(this,"map",e,t,void 0,arguments)},pop(){return ur(this,"pop")},push(...e){return ur(this,"push",e)},reduce(e,...t){return Da(this,"reduce",e,t)},reduceRight(e,...t){return Da(this,"reduceRight",e,t)},shift(){return ur(this,"shift")},some(e,t){return zt(this,"some",e,t,void 0,arguments)},splice(...e){return ur(this,"splice",e)},toReversed(){return jn(this).toReversed()},toSorted(e){return jn(this).toSorted(e)},toSpliced(...e){return jn(this).toSpliced(...e)},unshift(...e){return ur(this,"unshift",e)},values(){return ys(this,"values",e=>jt(this,e))}};function ys(e,t,n){const r=es(e),o=r[t]();return r!==e&&!et(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const Qp=Array.prototype;function zt(e,t,n,r,o,s){const i=es(e),a=i!==e&&!et(e),l=i[t];if(l!==Qp[t]){const f=l.apply(e,s);return a?Pt(f):f}let c=n;i!==e&&(a?c=function(f,p){return n.call(this,jt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=l.call(i,c,r);return a&&o?o(u):u}function Da(e,t,n,r){const o=es(e),s=o!==e&&!et(e);let i=n,a=!1;o!==e&&(s?(a=r.length===0,i=function(c,u,f){return a&&(a=!1,c=jt(e,c)),n.call(this,c,jt(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const l=o[t](i,...r);return a?jt(e,l):l}function ws(e,t,n){const r=pe(e);We(r,"iterate",Vr);const o=r[t](...n);return(o===-1||o===!1)&&Zn(n[0])?(n[0]=pe(n[0]),r[t](...n)):o}function ur(e,t,n=[]){Tt(),Ii();const r=pe(e)[t].apply(e,n);return Vi(),At(),r}const eh=or("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function th(e){dt(e)||(e=String(e));const t=pe(this);return We(t,"has",e),t.hasOwnProperty(e)}class kc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?Wc:zc:s?Hc:Uc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=se(t);if(!o){let l;if(i&&(l=Zp[n]))return l;if(n==="hasOwnProperty")return th}const a=Reflect.get(t,n,Se(t)?t:r);if((dt(n)?Fc.has(n):eh(n))||(o||We(t,"get",n),s))return a;if(Se(a)){const l=i&&Zo(n)?a:a.value;return o&&ve(l)?Ks(l):l}return ve(a)?o?Ks(a):sr(a):a}}class jc extends kc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=se(t)&&Zo(n);if(!this._isShallow){const c=Dt(s);if(!et(r)&&!Dt(r)&&(s=pe(s),r=pe(r)),!i&&Se(s)&&!Se(r))return c?(process.env.NODE_ENV!=="production"&&ht(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const a=i?Number(n)<t.length:ge(t,n),l=Reflect.set(t,n,r,Se(t)?t:o);return t===pe(o)&&(a?Bt(r,s)&&Ut(t,"set",n,r,s):Ut(t,"add",n,r)),l}deleteProperty(t,n){const r=ge(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Ut(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!dt(n)||!Fc.has(n))&&We(t,"has",n),r}ownKeys(t){return We(t,"iterate",se(t)?"length":On),Reflect.ownKeys(t)}}class Bc extends kc{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&ht(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&ht(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const nh=new jc,rh=new Bc,oh=new jc(!0),sh=new Bc(!0),Ws=e=>e,fo=e=>Reflect.getPrototypeOf(e);function ih(e,t,n){return function(...r){const o=this.__v_raw,s=pe(o),i=En(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?Ws:t?Qn:Pt;return!t&&We(s,"iterate",l?zs:On),Le(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function po(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";ht(`${Tn(e)} operation ${n}failed: target is readonly.`,pe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ah(e,t){const n={get(o){const s=this.__v_raw,i=pe(s),a=pe(o);e||(Bt(o,a)&&We(i,"get",o),We(i,"get",a));const{has:l}=fo(i),c=t?Ws:e?Qn:Pt;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&We(pe(o),"iterate",On),o.size},has(o){const s=this.__v_raw,i=pe(s),a=pe(o);return e||(Bt(o,a)&&We(i,"has",o),We(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=pe(a),c=t?Ws:e?Qn:Pt;return!e&&We(l,"iterate",On),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return Le(n,e?{add:po("add"),set:po("set"),delete:po("delete"),clear:po("clear")}:{add(o){const s=pe(this),i=fo(s),a=pe(o),l=!t&&!et(o)&&!Dt(o)?a:o;return i.has.call(s,l)||Bt(o,l)&&i.has.call(s,o)||Bt(a,l)&&i.has.call(s,a)||(s.add(l),Ut(s,"add",l,l)),this},set(o,s){!t&&!et(s)&&!Dt(s)&&(s=pe(s));const i=pe(this),{has:a,get:l}=fo(i);let c=a.call(i,o);c?process.env.NODE_ENV!=="production"&&Pa(i,a,o):(o=pe(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?Bt(s,u)&&Ut(i,"set",o,s,u):Ut(i,"add",o,s),this},delete(o){const s=pe(this),{has:i,get:a}=fo(s);let l=i.call(s,o);l?process.env.NODE_ENV!=="production"&&Pa(s,i,o):(o=pe(o),l=i.call(s,o));const c=a?a.call(s,o):void 0,u=s.delete(o);return l&&Ut(s,"delete",o,void 0,c),u},clear(){const o=pe(this),s=o.size!==0,i=process.env.NODE_ENV!=="production"?En(o)?new Map(o):new Set(o):void 0,a=o.clear();return s&&Ut(o,"clear",void 0,void 0,i),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ih(o,e,t)}),n}function ts(e,t){const n=ah(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ge(n,o)&&o in r?n:r,o,s)}const lh={get:ts(!1,!1)},ch={get:ts(!1,!0)},uh={get:ts(!0,!1)},fh={get:ts(!0,!0)};function Pa(e,t,n){const r=pe(n);if(r!==n&&t.call(e,r)){const o=Pi(e);ht(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Uc=new WeakMap,Hc=new WeakMap,zc=new WeakMap,Wc=new WeakMap;function dh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sr(e){return Dt(e)?e:ns(e,!1,nh,lh,Uc)}function Fi(e){return ns(e,!1,oh,ch,Hc)}function Ks(e){return ns(e,!0,rh,uh,zc)}function xt(e){return ns(e,!0,sh,fh,Wc)}function ns(e,t,n,r,o){if(!ve(e))return process.env.NODE_ENV!=="production"&&ht(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const i=dh(Pi(e));if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function bt(e){return Dt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function et(e){return!!(e&&e.__v_isShallow)}function Zn(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function Kn(e){return!ge(e,"__v_skip")&&Object.isExtensible(e)&&Co(e,"__v_skip",!0),e}const Pt=e=>ve(e)?sr(e):e,Qn=e=>ve(e)?Ks(e):e;function Se(e){return e?e.__v_isRef===!0:!1}function he(e){return qc(e,!1)}function Kc(e){return qc(e,!0)}function qc(e,t){return Se(e)?e:new ph(e,t)}class ph{constructor(t,n){this.dep=new Li,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pe(t),this._value=n?t:Pt(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||et(t)||Dt(t);t=r?t:pe(t),Bt(t,n)&&(this._rawValue=t,this._value=r?t:Pt(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Z(e){return Se(e)?e.value:e}function Gn(e){return ce(e)?e():Z(e)}const hh={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Se(o)&&!Se(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Gc(e){return bt(e)?e:new Proxy(e,hh)}function $a(e){process.env.NODE_ENV!=="production"&&!Zn(e)&&ht("toRefs() expects a reactive object but received a plain one.");const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=Yc(e,n);return t}class mh{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=dt(n)?n:String(n),this._raw=pe(t);let o=!0,s=t;if(!se(t)||dt(this._key)||!Zo(this._key))do o=!Zn(s)||et(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Z(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Se(this._raw[this._key])){const n=this._object[this._key];if(Se(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Xp(this._raw,this._key)}}class gh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function wo(e,t,n){return Se(e)?e:ce(e)?new gh(e):ve(e)&&arguments.length>1?Yc(e,t,n):he(e)}function Yc(e,t,n){return new mh(e,t,n)}class vh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Li(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ce!==this)return $c(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Vc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&ht("Write operation failed: computed value is readonly")}}function _h(e,t,n=!1){let r,o;ce(e)?r=e:(r=e.get,o=e.set);const s=new vh(r,o,n);return process.env.NODE_ENV,s}const ho={},Ao=new WeakMap;let _n;function yh(e,t=!1,n=_n){if(n){let r=Ao.get(n);r||Ao.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&ht("onWatcherCleanup() was called when there was no active watcher to associate with.")}function wh(e,t,n=Te){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,c=x=>{(n.onWarn||ht)("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=x=>o?x:et(x)||o===!1||o===0?Yt(x,1):Yt(x);let f,p,g,b,h=!1,v=!1;if(Se(e)?(p=()=>e.value,h=et(e)):bt(e)?(p=()=>u(e),h=!0):se(e)?(v=!0,h=e.some(x=>bt(x)||et(x)),p=()=>e.map(x=>{if(Se(x))return x.value;if(bt(x))return u(x);if(ce(x))return l?l(x,2):x();process.env.NODE_ENV!=="production"&&c(x)})):ce(e)?t?p=l?()=>l(e,2):e:p=()=>{if(g){Tt();try{g()}finally{At()}}const x=_n;_n=f;try{return l?l(e,3,[b]):e(b)}finally{_n=x}}:(p=Ke,process.env.NODE_ENV!=="production"&&c(e)),t&&o){const x=p,W=o===!0?1/0:o;p=()=>Yt(x(),W)}const S=Mi(),T=()=>{f.stop(),S&&S.active&&Ai(S.effects,f)};if(s&&t){const x=t;t=(...W)=>{x(...W),T()}}let F=v?new Array(e.length).fill(ho):ho;const Y=x=>{if(!(!(f.flags&1)||!f.dirty&&!x))if(t){const W=f.run();if(o||h||(v?W.some((V,ne)=>Bt(V,F[ne])):Bt(W,F))){g&&g();const V=_n;_n=f;try{const ne=[W,F===ho?void 0:v&&F[0]===ho?[]:F,b];F=W,l?l(t,3,ne):t(...ne)}finally{_n=V}}}else f.run()};return a&&a(Y),f=new Dc(p),f.scheduler=i?()=>i(Y,!1):Y,b=x=>yh(x,!1,f),g=f.onStop=()=>{const x=Ao.get(f);if(x){if(l)l(x,4);else for(const W of x)W();Ao.delete(f)}},process.env.NODE_ENV!=="production"&&(f.onTrack=n.onTrack,f.onTrigger=n.onTrigger),t?r?Y(!0):F=f.run():i?i(Y.bind(null,!0),!0):f.run(),T.pause=f.pause.bind(f),T.resume=f.resume.bind(f),T.stop=T,T}function Yt(e,t=1/0,n){if(t<=0||!ve(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Se(e))Yt(e.value,t,n);else if(se(e))for(let r=0;r<e.length;r++)Yt(e[r],t,n);else if(Ec(e)||En(e))e.forEach(r=>{Yt(r,t,n)});else if(Nc(e)){for(const r in e)Yt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yt(e[r],t,n)}return e}/**
|
|
18
18
|
* @vue/runtime-core v3.5.35
|
|
19
19
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
20
|
* @license MIT
|
|
21
|
-
**/const Nn=[];function bo(e){Nn.push(e)}function Eo(){Nn.pop()}let bs=!1;function
|
|
21
|
+
**/const Nn=[];function bo(e){Nn.push(e)}function Eo(){Nn.pop()}let bs=!1;function H(e,...t){if(bs)return;bs=!0,Tt();const n=Nn.length?Nn[Nn.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=bh();if(r)ir(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${oo(n,s.type)}>`).join(`
|
|
22
22
|
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
|
|
23
23
|
`,...Eh(o)),console.warn(...s)}At(),bs=!1}function bh(){let e=Nn[Nn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Eh(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
24
|
-
`],...Oh(n))}),t}function Oh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${oo(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Nh(e.props),s]:[o+s]}function Nh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Jc(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Jc(e,t,n){return be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:xe(t)?(t=Jc(e,pe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ue(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=pe(t),n?t:[`${e}=`,t])}function xh(e,t){process.env.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?U(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&U(`${t} is NaN - the duration expression might be incorrect.`))}const ki={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ir(e,t,n,r){try{return r?e(...r):e()}catch(o){Zr(o,t,n)}}function Et(e,t,n,r){if(ue(e)){const o=ir(e,t,n,r);return o&&Di(o)&&o.catch(s=>{Zr(s,t,n)}),o}if(ie(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Et(e[s],t,n,r));return o}else process.env.NODE_ENV!=="production"&&U(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Zr(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ce;if(t){let a=t.parent;const l=t.proxy,c=process.env.NODE_ENV!=="production"?ki[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(s){Tt(),ir(s,null,10,[e,l,c]),At();return}}Sh(e,n,o,r,i)}function Sh(e,t,n,r=!0,o=!1){if(process.env.NODE_ENV!=="production"){const s=ki[t];if(n&&bo(n),U(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Eo(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}const at=[];let Ft=-1;const Yn=[];let an=null,Wn=0;const Xc=Promise.resolve();let Do=null;const Ch=100;function er(e){const t=Do||Xc;return e?t.then(this?e.bind(this):e):t}function Th(e){let t=Ft+1,n=at.length;for(;t<n;){const r=t+n>>>1,o=at[r],s=Rr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function rs(e){if(!(e.flags&1)){const t=Rr(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=Rr(n)?at.push(e):at.splice(Th(t),0,e),e.flags|=1,Zc()}}function Zc(){Do||(Do=Xc.then(tu))}function Qc(e){ie(e)?Yn.push(...e):an&&e.id===-1?an.splice(Wn+1,0,e):e.flags&1||(Yn.push(e),e.flags|=1),Zc()}function Ma(e,t,n=Ft+1){for(process.env.NODE_ENV!=="production"&&(t=t||new Map);n<at.length;n++){const r=at[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||process.env.NODE_ENV!=="production"&&ji(t,r))continue;at.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function eu(e){if(Yn.length){const t=[...new Set(Yn)].sort((n,r)=>Rr(n)-Rr(r));if(Yn.length=0,an){an.push(...t);return}for(an=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Wn=0;Wn<an.length;Wn++){const n=an[Wn];process.env.NODE_ENV!=="production"&&ji(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}an=null,Wn=0}}const Rr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function tu(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>ji(e,n):We;try{for(Ft=0;Ft<at.length;Ft++){const n=at[Ft];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),ir(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Ft<at.length;Ft++){const n=at[Ft];n&&(n.flags&=-2)}Ft=-1,at.length=0,eu(e),Do=null,(at.length||Yn.length)&&tu(e)}}function ji(e,t){const n=e.get(t)||0;if(n>Ch){const r=t.i,o=r&&Ji(r.type);return Zr(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let lt=!1;const Ia=e=>{try{return lt}finally{lt=e}},Oo=new Map;process.env.NODE_ENV!=="production"&&(Xr().__VUE_HMR_RUNTIME__={createRecord:Es(nu),rerender:Es(Ph),reload:Es($h)});const An=new Map;function Ah(e){const t=e.type.__hmrId;let n=An.get(t);n||(nu(t,e.type),n=An.get(t)),n.instances.add(e)}function Dh(e){An.get(e.type.__hmrId).instances.delete(e)}function nu(e,t){return An.has(e)?!1:(An.set(e,{initialDef:Po(t),instances:new Set}),!0)}function Po(e){return Wu(e)?e.__vccOpts:e}function Ph(e,t){const n=An.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Po(r.type).render=t),r.renderCache=[],lt=!0,r.job.flags&8||r.update(),lt=!1}))}function $h(e,t){const n=An.get(e);if(!n)return;t=Po(t),Va(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=Po(s.type);let a=Oo.get(i);a||(i!==n.initialDef&&Va(i,t),Oo.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?rs(()=>{s.job.flags&8||(lt=!0,s.parent.update(),lt=!1,a.delete(s))}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}Qc(()=>{Oo.clear()})}function Va(e,t){Re(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Es(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Nt,vr=[],qs=!1;function Qr(e,...t){Nt?Nt.emit(e,...t):qs||vr.push({event:e,args:t})}function Bi(e,t){var n,r;Nt=e,Nt?(Nt.enabled=!0,vr.forEach(({event:o,args:s})=>Nt.emit(o,...s)),vr=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Bi(s,t)}),setTimeout(()=>{Nt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qs=!0,vr=[])},3e3)):(qs=!0,vr=[])}function Mh(e,t){Qr("app:init",e,t,{Fragment:Ve,Text:no,Comment:je,Static:No})}function Ih(e){Qr("app:unmount",e)}const Vh=Ui("component:added"),ru=Ui("component:updated"),Rh=Ui("component:removed"),Lh=e=>{Nt&&typeof Nt.cleanupBuffer=="function"&&!Nt.cleanupBuffer(e)&&Rh(e)};function Ui(e){return t=>{Qr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Fh=ou("perf:start"),kh=ou("perf:end");function ou(e){return(t,n,r)=>{Qr(e,t.appContext.app,t.uid,t,n,r)}}function jh(e,t,n){Qr("component:emit",e.appContext.app,e,t,n)}let Ue=null,su=null;function $o(e){const t=Ue;return Ue=e,su=e&&e.type.__scopeId||null,t}function ae(e,t=Ue,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Fo(-1);const s=$o(t);let i;try{i=e(...o)}finally{$o(s),r._d&&Fo(1)}return process.env.NODE_ENV!=="production"&&ru(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function iu(e){Vp(e)&&U("Do not use built-in directive ids as custom directive id: "+e)}function tr(e,t){if(Ue===null)return process.env.NODE_ENV!=="production"&&U("withDirectives can only be used inside render functions."),e;const n=as(Ue),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Ce]=t[o];s&&(ue(s)&&(s={mounted:s,updated:s}),s.deep&&Yt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function fn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(Tt(),Et(l,n,8,[e.el,a,e,t]),At())}}function Lr(e,t){if(process.env.NODE_ENV!=="production"&&(!Be||Be.isMounted)&&U("provide() can only be used inside setup()."),Be){let n=Be.provides;const r=Be.parent&&Be.parent.provides;r===n&&(n=Be.provides=Object.create(r)),n[e]=t}}function ft(e,t,n=!1){const r=$t();if(r||Sn){let o=Sn?Sn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ue(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&U(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&U("inject() can only be used inside setup() or functional components.")}function Bh(){return!!($t()||Sn)}const Uh=Symbol.for("v-scx"),Hh=()=>{{const e=ft(Uh);return e||process.env.NODE_ENV!=="production"&&U("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Je(e,t,n){return process.env.NODE_ENV!=="production"&&!ue(t)&&U("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),au(e,t,n)}function au(e,t,n=Ce){const{immediate:r,deep:o,flush:s,once:i}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&U('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&U('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&U('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Re({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=U);const l=t&&r||!t&&s!=="post";let c;if(jr){if(s==="sync"){const g=Hh();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=We,g.resume=We,g.pause=We,g}}const u=Be;a.call=(g,b,h)=>Et(g,u,b,h);let f=!1;s==="post"?a.scheduler=g=>{ot(g,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(g,b)=>{b?g():rs(g)}),a.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=wh(e,t,a);return jr&&(c?c.push(p):l&&p()),p}function zh(e,t,n){const r=this.proxy,o=be(e)?e.includes(".")?lu(r,e):()=>r[e]:e.bind(r,r);let s;ue(t)?s=t:(s=t.handler,n=t);const i=ro(this),a=au(o,s.bind(r),n);return i(),a}function lu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const sn=new WeakMap,cu=Symbol("_vte"),uu=e=>e.__isTeleport,Jt=e=>e&&(e.disabled||e.disabled===""),Wh=e=>e&&(e.defer||e.defer===""),Ra=e=>typeof SVGElement<"u"&&e instanceof SVGElement,La=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gs=(e,t)=>{const n=e&&e.to;if(be(n))if(t){const r=t(n);return process.env.NODE_ENV!=="production"&&!r&&!Jt(e)&&U(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return process.env.NODE_ENV!=="production"&&U("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return process.env.NODE_ENV!=="production"&&!n&&!Jt(e)&&U(`Invalid Teleport target: ${n}`),n},Kh={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:p,o:{insert:g,querySelector:b,createText:h,createComment:_,parentNode:S}}=c,T=Jt(t.props);let{dynamicChildren:R}=t;process.env.NODE_ENV!=="production"&<&&(l=!1,R=null);const Y=(M,re,A)=>{M.shapeFlag&16&&u(M.children,re,A,o,s,i,a,l)},x=(M=t)=>{const re=Jt(M.props),A=M.target=Gs(M.props,b),N=Ys(A,M,h,g);A?(i!=="svg"&&Ra(A)?i="svg":i!=="mathml"&&La(A)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(A),re||(Y(M,A,N),_r(M,!1))):process.env.NODE_ENV!=="production"&&!re&&U("Invalid Teleport target on mount:",A,`(${typeof A})`)},W=M=>{const re=()=>{if(sn.get(M)===re){if(sn.delete(M),Jt(M.props)){const A=S(M.el)||n;Y(M,A,M.anchor),_r(M,!0)}x(M)}};sn.set(M,re),ot(re,s)};if(e==null){const M=t.el=process.env.NODE_ENV!=="production"?_("teleport start"):h(""),re=t.anchor=process.env.NODE_ENV!=="production"?_("teleport end"):h("");if(g(M,n,r),g(re,n,r),Wh(t.props)||s&&s.pendingBranch){W(t);return}T&&(Y(t,n,re),_r(t,!0)),x()}else{t.el=e.el;const M=t.anchor=e.anchor,re=sn.get(e);if(re){re.flags|=8,sn.delete(e),W(t);return}t.targetStart=e.targetStart;const A=t.target=e.target,N=t.targetAnchor=e.targetAnchor,E=Jt(e.props),D=E?n:A,J=E?M:N;if(i==="svg"||Ra(A)?i="svg":(i==="mathml"||La(A))&&(i="mathml"),R?(p(e.dynamicChildren,R,D,o,s,i,a),Tr(e,t,process.env.NODE_ENV==="production")):l||f(e,t,D,J,o,s,i,a,!1),T)E?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):mo(t,n,M,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Gs(t.props,b);z?mo(t,z,null,c,0):process.env.NODE_ENV!=="production"&&U("Invalid Teleport target on update:",A,`(${typeof A})`)}else E&&mo(t,A,N,c,1);_r(t,T)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:p}=e,g=s||!Jt(p),b=sn.get(e);if(b&&(b.flags|=8,sn.delete(e)),f&&(o(c),o(u)),s&&o(l),!b&&i&16)for(let h=0;h<a.length;h++){const _=a[h];r(_,t,n,g,!!_.dynamicChildren)}},move:mo,hydrate:qh};function mo(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=s===2;if(f&&r(i,t,n),!sn.has(e)&&(!f||Jt(u))&&l&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);f&&r(a,t,n)}function qh(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){function p(_,S){let T=S;for(;T;){if(T&&T.nodeType===8){if(T.data==="teleport start anchor")t.targetStart=T;else if(T.data==="teleport anchor"){t.targetAnchor=T,_._lpa=t.targetAnchor&&i(t.targetAnchor);break}}T=i(T)}}function g(_,S){S.anchor=f(i(_),S,a(_),n,r,o,s)}const b=t.target=Gs(t.props,l),h=Jt(t.props);if(b){const _=b._lpa||b.firstChild;t.shapeFlag&16&&(h?(g(e,t),p(b,_),t.targetAnchor||Ys(b,t,u,c,a(e)===b?e:null)):(t.anchor=i(e),p(b,_),t.targetAnchor||Ys(b,t,u,c),f(_&&i(_),t,b,n,r,o,s))),_r(t,h)}else h&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Gh=Kh;function _r(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ys(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[cu]=i,e&&(r(s,e,o),r(i,e,o)),i}const wt=Symbol("_leaveCb"),fr=Symbol("_enterCb");function Yh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return In(()=>{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}const vt=[Function,Array],fu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vt,onEnter:vt,onAfterEnter:vt,onEnterCancelled:vt,onBeforeLeave:vt,onLeave:vt,onAfterLeave:vt,onLeaveCancelled:vt,onBeforeAppear:vt,onAppear:vt,onAfterAppear:vt,onAppearCancelled:vt},du=e=>{const t=e.subTree;return t.component?du(t.component):t},Jh={name:"BaseTransition",props:fu,setup(e,{slots:t}){const n=$t(),r=Yh();return()=>{const o=t.default&&mu(t.default(),!0),s=o&&o.length?pu(o):n.subTree?Oe():void 0;if(!s)return;const i=pe(e),{mode:a}=i;if(process.env.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&U(`invalid <transition> mode: ${a}`),r.isLeaving)return Os(s);const l=Fa(s);if(!l)return Os(s);let c=Js(l,i,r,n,f=>c=f);l.type!==je&&Fr(l,c);let u=n.subTree&&Fa(n.subTree);if(u&&u.type!==je&&!yn(u,l)&&du(n).type!==je){let f=Js(u,i,r,n);if(Fr(u,f),a==="out-in"&&l.type!==je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Os(s);a==="in-out"&&l.type!==je?f.delayLeave=(p,g,b)=>{const h=hu(r,u);h[String(u.key)]=u,p[wt]=()=>{g(),p[wt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{b(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function pu(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==je){if(process.env.NODE_ENV!=="production"&&n){U("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=r,n=!0,process.env.NODE_ENV==="production")break}}return t}const Xh=Jh;function hu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Js(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:b,onLeaveCancelled:h,onBeforeAppear:_,onAppear:S,onAfterAppear:T,onAppearCancelled:R}=t,Y=String(e.key),x=hu(n,e),W=(A,N)=>{A&&Et(A,r,9,N)},M=(A,N)=>{const E=N[1];W(A,N),ie(A)?A.every(D=>D.length<=1)&&E():A.length<=1&&E()},re={mode:i,persisted:a,beforeEnter(A){let N=l;if(!n.isMounted)if(s)N=_||l;else return;A[wt]&&A[wt](!0);const E=x[Y];E&&yn(e,E)&&E.el[wt]&&E.el[wt](),W(N,[A])},enter(A){if(!lt&&x[Y]===e)return;let N=c,E=u,D=f;if(!n.isMounted)if(s)N=S||c,E=T||u,D=R||f;else return;let J=!1;A[fr]=V=>{J||(J=!0,V?W(D,[A]):W(E,[A]),re.delayedLeave&&re.delayedLeave(),A[fr]=void 0)};const z=A[fr].bind(null,!1);N?M(N,[A,z]):z()},leave(A,N){const E=String(e.key);if(A[fr]&&A[fr](!0),n.isUnmounting)return N();W(p,[A]);let D=!1;A[wt]=z=>{D||(D=!0,N(),z?W(h,[A]):W(b,[A]),A[wt]=void 0,x[E]===e&&delete x[E])};const J=A[wt].bind(null,!1);x[E]=e,g?M(g,[A,J]):J()},clone(A){const N=Js(A,t,n,r,o);return o&&o(N),N}};return re}function Os(e){if(eo(e))return e=Ht(e),e.children=null,e}function Fa(e){if(!eo(e))return uu(e.type)&&e.children?pu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ue(n.default))return n.default()}}function Fr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fr(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 mu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ve?(i.patchFlag&128&&o++,r=r.concat(mu(i.children,t,a))):(t||i.type!==je)&&r.push(a!=null?Ht(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Pe(e,t){return ue(e)?Re({name:e.name},t,{setup:e}):e}function gu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ka=new WeakSet;function ja(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mo=new WeakMap;function Sr(e,t,n,r,o=!1){if(ie(e)){e.forEach((h,_)=>Sr(h,t&&(ie(t)?t[_]:t),n,r,o));return}if(Jn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Sr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?as(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(process.env.NODE_ENV!=="production"&&!a){U("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Ce?a.refs={}:a.refs,f=a.setupState,p=pe(f),g=f===Ce?bc:h=>process.env.NODE_ENV!=="production"&&(ge(p,h)&&!xe(p[h])&&U(`Template ref "${h}" used on a non-ref value. It will not work in the production build.`),ka.has(p[h]))||ja(u,h)?!1:ge(p,h),b=(h,_)=>!(process.env.NODE_ENV!=="production"&&ka.has(h)||_&&ja(u,_));if(c!=null&&c!==l){if(Ba(t),be(c))u[c]=null,g(c)&&(f[c]=null);else if(xe(c)){const h=t;b(c,h.k)&&(c.value=null),h.k&&(u[h.k]=null)}}if(ue(l))ir(l,a,12,[i,u]);else{const h=be(l),_=xe(l);if(h||_){const S=()=>{if(e.f){const T=h?g(l)?f[l]:u[l]:b(l)||!e.k?l.value:u[e.k];if(o)ie(T)&&Ai(T,s);else if(ie(T))T.includes(s)||T.push(s);else if(h)u[l]=[s],g(l)&&(f[l]=u[l]);else{const R=[s];b(l,e.k)&&(l.value=R),e.k&&(u[e.k]=R)}}else h?(u[l]=i,g(l)&&(f[l]=i)):_?(b(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i)):process.env.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)};if(i){const T=()=>{S(),Mo.delete(e)};T.id=-1,Mo.set(e,T),ot(T,n)}else Ba(e),S()}else process.env.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)}}function Ba(e){const t=Mo.get(e);t&&(t.flags|=8,Mo.delete(e))}Xr().requestIdleCallback;Xr().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Zh(e,t){vu(e,"a",t)}function Qh(e,t){vu(e,"da",t)}function vu(e,t,n=Be){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(os(t,r,n),n){let o=n.parent;for(;o&&o.parent;)eo(o.parent.vnode)&&e0(r,t,n,o),o=o.parent}}function e0(e,t,n,r){const o=os(t,e,r,!0);to(()=>{Ai(r[t],o)},n)}function os(e,t,n=Be,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Tt();const a=ro(n),l=Et(t,n,e,i);return a(),At(),l});return r?o.unshift(s):o.push(s),s}else if(process.env.NODE_ENV!=="production"){const o=vn(ki[e].replace(/ hook$/,""));U(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Qt=e=>(t,n=Be)=>{(!jr||e==="sp")&&os(e,(...r)=>t(...r),n)},t0=Qt("bm"),In=Qt("m"),n0=Qt("bu"),r0=Qt("u"),Hi=Qt("bum"),to=Qt("um"),o0=Qt("sp"),s0=Qt("rtg"),i0=Qt("rtc");function a0(e,t=Be){os("ec",e,t)}const Io="components",l0="directives";function Ie(e,t){return zi(Io,e,!0,t)||e}const _u=Symbol.for("v-ndc");function c0(e){return be(e)?zi(Io,e,!1)||e:e||_u}function yu(e){return zi(l0,e)}function zi(e,t,n=!0,r=!1){const o=Ue||Be;if(o){const s=o.type;if(e===Io){const a=Ji(s,!1);if(a&&(a===t||a===Ge(t)||a===Tn(Ge(t))))return s}const i=Ua(o[e]||s[e],t)||Ua(o.appContext[e],t);if(!i&&r)return s;if(process.env.NODE_ENV!=="production"&&n&&!i){const a=e===Io?`
|
|
25
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";U(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return i}else process.env.NODE_ENV!=="production"&&U(`resolve${Tn(e.slice(0,-1))} can only be used in render() or setup().`)}function Ua(e,t){return e&&(e[t]||e[Ge(t)]||e[Tn(Ge(t))])}function Cr(e,t,n,r){let o;const s=n,i=ie(e);if(i||be(e)){const a=i&&bt(e);let l=!1,c=!1;a&&(l=!et(e),c=Dt(e),e=es(e)),o=new Array(e.length);for(let u=0,f=e.length;u<f;u++)o[u]=t(l?c?Qn(Pt(e[u])):Pt(e[u]):e[u],u,void 0,s)}else if(typeof e=="number")if(process.env.NODE_ENV!=="production"&&(!Number.isInteger(e)||e<0))U(`The v-for range expects a positive integer value but got ${e}.`),o=[];else{o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(ve(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];o[l]=t(e[u],u,l,s)}}else o=[];return o}function cn(e,t,n={},r,o){if(Ue.ce||Ue.parent&&Jn(Ue.parent)&&Ue.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),G(),we(Ve,null,[Q("slot",n,r&&r())],c?-2:64)}let s=e[t];process.env.NODE_ENV!=="production"&&s&&s.length>1&&(U("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),G();const i=s&&wu(s(n)),a=n.key||i&&i.key,l=we(Ve,{key:(a&&!dt(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function wu(e){return e.some(t=>Zt(t)?!(t.type===je||t.type===Ve&&!wu(t.children)):!0)?e:null}const Xs=e=>e?Hu(e)?as(e):Xs(e.parent):null,xn=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?xt(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?xt(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?xt(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?xt(e.refs):e.refs,$parent:e=>Xs(e.parent),$root:e=>Xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ou(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=er.bind(e.proxy)),$watch:e=>zh.bind(e)}),Wi=e=>e==="_"||e==="$",Ns=(e,t)=>e!==Ce&&!e.__isScriptSetup&&ge(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Ns(r,t))return i[t]=1,r[t];if(o!==Ce&&ge(o,t))return i[t]=2,o[t];if(ge(s,t))return i[t]=3,s[t];if(n!==Ce&&ge(n,t))return i[t]=4,n[t];Zs&&(i[t]=0)}}const c=xn[t];let u,f;if(c)return t==="$attrs"?(ze(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&Ro()):process.env.NODE_ENV!=="production"&&t==="$slots"&&ze(e,"get",t),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ce&&ge(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ge(f,t))return f[t];process.env.NODE_ENV!=="production"&&Ue&&(!be(t)||t.indexOf("__v")!==0)&&(o!==Ce&&Wi(t[0])&&ge(o,t)?U(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Ue&&U(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Ns(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&ge(o,t)?(U(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Ce&&ge(r,t)?(r[t]=n,!0):ge(e.props,t)?(process.env.NODE_ENV!=="production"&&U(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&U(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},a){let l;return!!(n[a]||e!==Ce&&a[0]!=="$"&&ge(e,a)||Ns(t,a)||ge(s,a)||ge(r,a)||ge(xn,a)||ge(o.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(bu.ownKeys=e=>(U("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function u0(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(xn).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>xn[n](e),set:We})}),t}function f0(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:We})})}function d0(e){const{ctx:t,setupState:n}=e;Object.keys(pe(n)).forEach(r=>{if(!n.__isScriptSetup){if(Wi(r[0])){U(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:We})}})}function Ha(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function p0(){const e=Object.create(null);return(t,n)=>{e[n]?U(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Zs=!0;function h0(e){const t=Ou(e),n=e.proxy,r=e.ctx;Zs=!1,t.beforeCreate&&za(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:g,updated:b,activated:h,deactivated:_,beforeDestroy:S,beforeUnmount:T,destroyed:R,unmounted:Y,render:x,renderTracked:W,renderTriggered:M,errorCaptured:re,serverPrefetch:A,expose:N,inheritAttrs:E,components:D,directives:J,filters:z}=t,V=process.env.NODE_ENV!=="production"?p0():null;if(process.env.NODE_ENV!=="production"){const[B]=e.propsOptions;if(B)for(const $ in B)V("Props",$)}if(c&&m0(c,r,V),i)for(const B in i){const $=i[B];ue($)?(process.env.NODE_ENV!=="production"?Object.defineProperty(r,B,{value:$.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[B]=$.bind(n),process.env.NODE_ENV!=="production"&&V("Methods",B)):process.env.NODE_ENV!=="production"&&U(`Method "${B}" has type "${typeof $}" in the component definition. Did you reference the function correctly?`)}if(o){process.env.NODE_ENV!=="production"&&!ue(o)&&U("The data option must be a function. Plain object usage is no longer supported.");const B=o.call(n,n);if(process.env.NODE_ENV!=="production"&&Di(B)&&U("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!ve(B))process.env.NODE_ENV!=="production"&&U("data() should return an object.");else if(e.data=sr(B),process.env.NODE_ENV!=="production")for(const $ in B)V("Data",$),Wi($[0])||Object.defineProperty(r,$,{configurable:!0,enumerable:!0,get:()=>B[$],set:We})}if(Zs=!0,s)for(const B in s){const $=s[B],K=ue($)?$.bind(n,n):ue($.get)?$.get.bind(n,n):We;process.env.NODE_ENV!=="production"&&K===We&&U(`Computed property "${B}" has no getter.`);const O=!ue($)&&ue($.set)?$.set.bind(n):process.env.NODE_ENV!=="production"?()=>{U(`Write operation failed: computed property "${B}" is readonly.`)}:We,H=se({get:K,set:O});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>H.value,set:q=>H.value=q}),process.env.NODE_ENV!=="production"&&V("Computed",B)}if(a)for(const B in a)Eu(a[B],r,n,B);if(l){const B=ue(l)?l.call(n):l;Reflect.ownKeys(B).forEach($=>{Lr($,B[$])})}u&&za(u,e,"c");function L(B,$){ie($)?$.forEach(K=>B(K.bind(n))):$&&B($.bind(n))}if(L(t0,f),L(In,p),L(n0,g),L(r0,b),L(Zh,h),L(Qh,_),L(a0,re),L(i0,W),L(s0,M),L(Hi,T),L(to,Y),L(o0,A),ie(N))if(N.length){const B=e.exposed||(e.exposed={});N.forEach($=>{Object.defineProperty(B,$,{get:()=>n[$],set:K=>n[$]=K,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===We&&(e.render=x),E!=null&&(e.inheritAttrs=E),D&&(e.components=D),J&&(e.directives=J),A&&gu(e)}function m0(e,t,n=We){ie(e)&&(e=Qs(e));for(const r in e){const o=e[r];let s;ve(o)?"default"in o?s=ft(o.from||r,o.default,!0):s=ft(o.from||r):s=ft(o),xe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,process.env.NODE_ENV!=="production"&&n("Inject",r)}}function za(e,t,n){Et(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Eu(e,t,n,r){let o=r.includes(".")?lu(n,r):()=>n[r];if(be(e)){const s=t[e];ue(s)?Je(o,s):process.env.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e}"`,s)}else if(ue(e))Je(o,e.bind(n));else if(ve(e))if(ie(e))e.forEach(s=>Eu(s,t,n,r));else{const s=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(s)?Je(o,s,e):process.env.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${e.handler}"`,s)}else process.env.NODE_ENV!=="production"&&U(`Invalid watch option: "${r}"`,e)}function Ou(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Vo(l,c,i,!0)),Vo(l,t,i)),ve(t)&&s.set(t,l),l}function Vo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Vo(e,s,n,!0),o&&o.forEach(i=>Vo(e,i,n,!0));for(const i in t)if(r&&i==="expose")process.env.NODE_ENV!=="production"&&U('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=g0[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const g0={data:Wa,props:Ka,emits:Ka,methods:yr,computed:yr,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:yr,directives:yr,watch:_0,provide:Wa,inject:v0};function Wa(e,t){return t?e?function(){return Re(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function v0(e,t){return yr(Qs(e),Qs(t))}function Qs(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function yr(e,t){return e?Re(Object.create(null),e,t):t}function Ka(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:Re(Object.create(null),Ha(e),Ha(t??{})):t}function _0(e,t){if(!e)return t;if(!t)return e;const n=Re(Object.create(null),e);for(const r in t)n[r]=rt(e[r],t[r]);return n}function Nu(){return{app:null,config:{isNativeTag:bc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let y0=0;function w0(e,t){return function(r,o=null){ue(r)||(r=Re({},r)),o!=null&&!ve(o)&&(process.env.NODE_ENV!=="production"&&U("root props passed to app.mount() must be an object."),o=null);const s=Nu(),i=new WeakSet,a=[];let l=!1;const c=s.app={_uid:y0++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:rl,get config(){return s.config},set config(u){process.env.NODE_ENV!=="production"&&U("app.config cannot be replaced. Modify individual options instead.")},use(u,...f){return i.has(u)?process.env.NODE_ENV!=="production"&&U("Plugin has already been applied to target app."):u&&ue(u.install)?(i.add(u),u.install(c,...f)):ue(u)?(i.add(u),u(c,...f)):process.env.NODE_ENV!=="production"&&U('A plugin must either be a function or an object with an "install" function.'),c},mixin(u){return s.mixins.includes(u)?process.env.NODE_ENV!=="production"&&U("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):s.mixins.push(u),c},component(u,f){return process.env.NODE_ENV!=="production"&&oi(u,s.config),f?(process.env.NODE_ENV!=="production"&&s.components[u]&&U(`Component "${u}" has already been registered in target app.`),s.components[u]=f,c):s.components[u]},directive(u,f){return process.env.NODE_ENV!=="production"&&iu(u),f?(process.env.NODE_ENV!=="production"&&s.directives[u]&&U(`Directive "${u}" has already been registered in target app.`),s.directives[u]=f,c):s.directives[u]},mount(u,f,p){if(l)process.env.NODE_ENV!=="production"&&U("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{process.env.NODE_ENV!=="production"&&u.__vue_app__&&U("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const g=c._ceVNode||Q(r,o);return g.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),process.env.NODE_ENV!=="production"&&(s.reload=()=>{const b=Ht(g);b.el=null,e(b,u,p)}),e(g,u,p),l=!0,c._container=u,u.__vue_app__=c,process.env.NODE_ENV!=="production"&&(c._instance=g.component,Mh(c,rl)),as(g.component)}},onUnmount(u){process.env.NODE_ENV!=="production"&&typeof u!="function"&&U(`Expected function as first argument to app.onUnmount(), but got ${typeof u}`),a.push(u)},unmount(){l?(Et(a,c._instance,16),e(null,c._container),process.env.NODE_ENV!=="production"&&(c._instance=null,Ih(c)),delete c._container.__vue_app__):process.env.NODE_ENV!=="production"&&U("Cannot unmount an app that is not mounted.")},provide(u,f){return process.env.NODE_ENV!=="production"&&u in s.provides&&(ge(s.provides,u)?U(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`):U(`App already provides property with key "${String(u)}" inherited from its parent element. It will be overwritten with the new value.`)),s.provides[u]=f,c},runWithContext(u){const f=Sn;Sn=c;try{return u()}finally{Sn=f}}};return c}}let Sn=null;const b0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${Xt(t)}Modifiers`];function E0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ce;if(process.env.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[f]}=e;if(u)if(!(t in u))(!f||!(vn(Ge(t))in f))&&U(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${vn(Ge(t))}" prop.`);else{const p=u[t];ue(p)&&(p(...n)||U(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&b0(r,t.slice(7));if(i&&(i.trim&&(o=n.map(u=>be(u)?u.trim():u)),i.number&&(o=n.map(Fp))),process.env.NODE_ENV!=="production"&&jh(e,t,o),process.env.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&r[vn(u)]&&U(`Event "${u}" is emitted in component ${oo(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Xt(t)}" instead of "${t}".`)}let a,l=r[a=vn(t)]||r[a=vn(Ge(t))];!l&&s&&(l=r[a=vn(Xt(t))]),l&&Et(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Et(c,e,6,o)}}const O0=new WeakMap;function xu(e,t,n=!1){const r=n?O0:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ue(e)){const l=c=>{const u=xu(c,t,!0);u&&(a=!0,Re(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ve(e)&&r.set(e,null),null):(ie(s)?s.forEach(l=>i[l]=null):Re(i,s),ve(e)&&r.set(e,i),i)}function ss(e,t){return!e||!Yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,Xt(t))||ge(e,t))}let ei=!1;function Ro(){ei=!0}function qa(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:p,setupState:g,ctx:b,inheritAttrs:h}=e,_=$o(e);let S,T;process.env.NODE_ENV!=="production"&&(ei=!1);try{if(n.shapeFlag&4){const x=o||r,W=process.env.NODE_ENV!=="production"&&g.__isScriptSetup?new Proxy(x,{get(M,re,A){return U(`Property '${String(re)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(M,re,A)}}):x;S=Ot(c.call(W,x,u,process.env.NODE_ENV!=="production"?xt(f):f,g,p,b)),T=a}else{const x=t;process.env.NODE_ENV!=="production"&&a===f&&Ro(),S=Ot(x.length>1?x(process.env.NODE_ENV!=="production"?xt(f):f,process.env.NODE_ENV!=="production"?{get attrs(){return Ro(),xt(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):x(process.env.NODE_ENV!=="production"?xt(f):f,null)),T=t.props?a:N0(a)}}catch(x){Ar.length=0,Zr(x,e,1),S=Q(je)}let R=S,Y;if(process.env.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([R,Y]=Su(S)),T&&h!==!1){const x=Object.keys(T),{shapeFlag:W}=R;if(x.length){if(W&7)s&&x.some(Mr)&&(T=x0(T,s)),R=Ht(R,T,!1,!0);else if(process.env.NODE_ENV!=="production"&&!ei&&R.type!==je){const M=Object.keys(a),re=[],A=[];for(let N=0,E=M.length;N<E;N++){const D=M[N];Yr(D)?Mr(D)||re.push(D[2].toLowerCase()+D.slice(3)):A.push(D)}A.length&&U(`Extraneous non-props attributes (${A.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),re.length&&U(`Extraneous non-emits event listeners (${re.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(process.env.NODE_ENV!=="production"&&!Ga(R)&&U("Runtime directive used on component with non-element root node. The directives will not function as intended."),R=Ht(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(process.env.NODE_ENV!=="production"&&!Ga(R)&&U("Component inside <Transition> renders non-element root node that cannot be animated."),Fr(R,n.transition)),process.env.NODE_ENV!=="production"&&Y?Y(R):S=R,$o(_),S}const Su=e=>{const t=e.children,n=e.dynamicChildren,r=Ki(t,!1);if(r){if(process.env.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Su(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Ot(r),i]};function Ki(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Zt(o)){if(o.type!==je||o.children==="v-if"){if(n)return;if(n=o,process.env.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Ki(n.children)}}else return}return n}const N0=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yr(n))&&((t||(t={}))[n]=e[n]);return t},x0=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ga=e=>e.shapeFlag&7||e.type===je;function S0(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(process.env.NODE_ENV!=="production"&&(o||a)&<||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ya(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(Cu(i,r,p)&&!ss(c,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ya(r,i,c):!0:!!i;return!1}function Ya(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(Cu(t,e,s)&&!ss(n,s))return!0}return!1}function Cu(e,t,n){const r=e[n],o=t[n];return n==="style"&&ve(r)&&ve(o)?!$i(r,o):r!==o}function C0({vnode:e,parent:t,suspense:n},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=r,e=o),o===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Tu={},Au=()=>Object.create(Tu),Du=e=>Object.getPrototypeOf(e)===Tu;function T0(e,t,n,r=!1){const o={},s=Au();e.propsDefaults=Object.create(null),Pu(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);process.env.NODE_ENV!=="production"&&Mu(t||{},o,e),n?e.props=r?o:Fi(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function A0(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function D0(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=pe(o),[l]=e.propsOptions;let c=!1;if(!(process.env.NODE_ENV!=="production"&&A0(e))&&(r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(ss(e.emitsOptions,p))continue;const g=t[p];if(l)if(ge(s,p))g!==s[p]&&(s[p]=g,c=!0);else{const b=Ge(p);o[b]=ti(l,a,b,g,e,!1)}else g!==s[p]&&(s[p]=g,c=!0)}}}else{Pu(e,t,o,s)&&(c=!0);let u;for(const f in a)(!t||!ge(t,f)&&((u=Xt(f))===f||!ge(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=ti(l,a,f,void 0,e,!0)):delete o[f]);if(s!==a)for(const f in s)(!t||!ge(t,f))&&(delete s[f],c=!0)}c&&Ut(e.attrs,"set",""),process.env.NODE_ENV!=="production"&&Mu(t||{},o,e)}function Pu(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Or(l))continue;const c=t[l];let u;o&&ge(o,u=Ge(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:ss(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(s){const l=pe(n),c=a||Ce;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ti(o,l,f,c[f],e,!ge(c,f))}}return i}function ti(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=ge(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ue(l)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=ro(o);r=c[n]=l.call(null,t),u()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===Xt(n))&&(r=!0))}return r}const P0=new WeakMap;function $u(e,t,n=!1){const r=n?P0:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!ue(e)){const u=f=>{l=!0;const[p,g]=$u(f,t,!0);Re(i,p),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return ve(e)&&r.set(e,qn),qn;if(ie(s))for(let u=0;u<s.length;u++){process.env.NODE_ENV!=="production"&&!be(s[u])&&U("props must be strings when using array syntax.",s[u]);const f=Ge(s[u]);Ja(f)&&(i[f]=Ce)}else if(s){process.env.NODE_ENV!=="production"&&!ve(s)&&U("invalid props options",s);for(const u in s){const f=Ge(u);if(Ja(f)){const p=s[u],g=i[f]=ie(p)||ue(p)?{type:p}:Re({},p),b=g.type;let h=!1,_=!0;if(ie(b))for(let S=0;S<b.length;++S){const T=b[S],R=ue(T)&&T.name;if(R==="Boolean"){h=!0;break}else R==="String"&&(_=!1)}else h=ue(b)&&b.name==="Boolean";g[0]=h,g[1]=_,(h||ge(g,"default"))&&a.push(f)}}}const c=[i,a];return ve(e)&&r.set(e,c),c}function Ja(e){return e[0]!=="$"&&!Or(e)?!0:(process.env.NODE_ENV!=="production"&&U(`Invalid prop name: "${e}" is a reserved property.`),!1)}function $0(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Mu(e,t,n){const r=pe(t),o=n.propsOptions[0],s=Object.keys(e).map(i=>Ge(i));for(const i in o){let a=o[i];a!=null&&M0(i,r[i],a,process.env.NODE_ENV!=="production"?xt(r):r,!s.includes(i))}}function M0(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){U('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let c=!1;const u=ie(s)?s:[s],f=[];for(let p=0;p<u.length&&!c;p++){const{valid:g,expectedType:b}=V0(t,u[p]);f.push(b||""),c=g}if(!c){U(R0(e,t,f));return}}a&&!a(t,r)&&U('Invalid prop: custom validator check failed for prop "'+e+'".')}}const I0=or("String,Number,Boolean,Function,Symbol,BigInt");function V0(e,t){let n;const r=$0(t);if(r==="null")n=e===null;else if(I0(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=ve(e):r==="Array"?n=ie(e):n=e instanceof t;return{valid:n,expectedType:r}}function R0(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Tn).join(" | ")}`;const o=n[0],s=Pi(t),i=Xa(t,o),a=Xa(t,s);return n.length===1&&Za(o)&&L0(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,Za(s)&&(r+=`with value ${a}.`),r}function Xa(e,t){return dt(e)?e.toString():t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Za(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function L0(...e){return e.every(t=>{const n=t.toLowerCase();return n!=="boolean"&&n!=="symbol"})}const qi=e=>e==="_"||e==="_ctx"||e==="$stable",Gi=e=>ie(e)?e.map(Ot):[Ot(e)],F0=(e,t,n)=>{if(t._n)return t;const r=ae((...o)=>(process.env.NODE_ENV!=="production"&&Be&&!(n===null&&Ue)&&!(n&&n.root!==Be.root)&&U(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Gi(t(...o))),n);return r._c=!1,r},Iu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(qi(o))continue;const s=e[o];if(ue(s))t[o]=F0(o,s,r);else if(s!=null){process.env.NODE_ENV!=="production"&&U(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Gi(s);t[o]=()=>i}}},Vu=(e,t)=>{process.env.NODE_ENV!=="production"&&!eo(e.vnode)&&U("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Gi(t);e.slots.default=()=>n},ni=(e,t,n)=>{for(const r in t)(n||!qi(r))&&(e[r]=t[r])},k0=(e,t,n)=>{const r=e.slots=Au();if(e.vnode.shapeFlag&32){const o=t._;o?(ni(r,t,n),n&&Co(r,"_",o,!0)):Iu(t,r)}else t&&Vu(e,t)},j0=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Ce;if(r.shapeFlag&32){const a=t._;a?process.env.NODE_ENV!=="production"&<?(ni(o,t,n),Ut(e,"set","$slots")):n&&a===1?s=!1:ni(o,t,n):(s=!t.$stable,Iu(t,o)),i=t}else t&&(Vu(e,t),i={default:1});if(s)for(const a in o)!qi(a)&&i[a]==null&&delete o[a]};let dr,qt;function Bn(e,t){e.appContext.config.performance&&Lo()&&qt.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!=="production"&&Fh(e,t,Lo()?qt.now():Date.now())}function Un(e,t){if(e.appContext.config.performance&&Lo()){const n=`vue-${t}-${e.uid}`,r=n+":end",o=`<${oo(e,e.type)}> ${t}`;qt.mark(r),qt.measure(o,n,r),qt.clearMeasures(o),qt.clearMarks(n),qt.clearMarks(r)}process.env.NODE_ENV!=="production"&&kh(e,t,Lo()?qt.now():Date.now())}function Lo(){return dr!==void 0||(typeof window<"u"&&window.performance?(dr=!0,qt=window.performance):dr=!1),dr}function B0(){const e=[];if(process.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
24
|
+
`],...Oh(n))}),t}function Oh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${oo(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Nh(e.props),s]:[o+s]}function Nh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Jc(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Jc(e,t,n){return be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Se(t)?(t=Jc(e,pe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=pe(t),n?t:[`${e}=`,t])}function xh(e,t){process.env.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?H(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&H(`${t} is NaN - the duration expression might be incorrect.`))}const ki={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ir(e,t,n,r){try{return r?e(...r):e()}catch(o){Zr(o,t,n)}}function Et(e,t,n,r){if(ce(e)){const o=ir(e,t,n,r);return o&&Di(o)&&o.catch(s=>{Zr(s,t,n)}),o}if(se(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Et(e[s],t,n,r));return o}else process.env.NODE_ENV!=="production"&&H(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Zr(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Te;if(t){let a=t.parent;const l=t.proxy,c=process.env.NODE_ENV!=="production"?ki[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(s){Tt(),ir(s,null,10,[e,l,c]),At();return}}Sh(e,n,o,r,i)}function Sh(e,t,n,r=!0,o=!1){if(process.env.NODE_ENV!=="production"){const s=ki[t];if(n&&bo(n),H(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Eo(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}const it=[];let Ft=-1;const Yn=[];let an=null,Wn=0;const Xc=Promise.resolve();let Do=null;const Ch=100;function er(e){const t=Do||Xc;return e?t.then(this?e.bind(this):e):t}function Th(e){let t=Ft+1,n=it.length;for(;t<n;){const r=t+n>>>1,o=it[r],s=Rr(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function rs(e){if(!(e.flags&1)){const t=Rr(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=Rr(n)?it.push(e):it.splice(Th(t),0,e),e.flags|=1,Zc()}}function Zc(){Do||(Do=Xc.then(tu))}function Qc(e){se(e)?Yn.push(...e):an&&e.id===-1?an.splice(Wn+1,0,e):e.flags&1||(Yn.push(e),e.flags|=1),Zc()}function Ma(e,t,n=Ft+1){for(process.env.NODE_ENV!=="production"&&(t=t||new Map);n<it.length;n++){const r=it[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||process.env.NODE_ENV!=="production"&&ji(t,r))continue;it.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function eu(e){if(Yn.length){const t=[...new Set(Yn)].sort((n,r)=>Rr(n)-Rr(r));if(Yn.length=0,an){an.push(...t);return}for(an=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Wn=0;Wn<an.length;Wn++){const n=an[Wn];process.env.NODE_ENV!=="production"&&ji(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}an=null,Wn=0}}const Rr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function tu(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>ji(e,n):Ke;try{for(Ft=0;Ft<it.length;Ft++){const n=it[Ft];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),ir(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Ft<it.length;Ft++){const n=it[Ft];n&&(n.flags&=-2)}Ft=-1,it.length=0,eu(e),Do=null,(it.length||Yn.length)&&tu(e)}}function ji(e,t){const n=e.get(t)||0;if(n>Ch){const r=t.i,o=r&&Ji(r.type);return Zr(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let at=!1;const Ia=e=>{try{return at}finally{at=e}},Oo=new Map;process.env.NODE_ENV!=="production"&&(Xr().__VUE_HMR_RUNTIME__={createRecord:Es(nu),rerender:Es(Ph),reload:Es($h)});const An=new Map;function Ah(e){const t=e.type.__hmrId;let n=An.get(t);n||(nu(t,e.type),n=An.get(t)),n.instances.add(e)}function Dh(e){An.get(e.type.__hmrId).instances.delete(e)}function nu(e,t){return An.has(e)?!1:(An.set(e,{initialDef:Po(t),instances:new Set}),!0)}function Po(e){return Wu(e)?e.__vccOpts:e}function Ph(e,t){const n=An.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Po(r.type).render=t),r.renderCache=[],at=!0,r.job.flags&8||r.update(),at=!1}))}function $h(e,t){const n=An.get(e);if(!n)return;t=Po(t),Va(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=Po(s.type);let a=Oo.get(i);a||(i!==n.initialDef&&Va(i,t),Oo.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?rs(()=>{s.job.flags&8||(at=!0,s.parent.update(),at=!1,a.delete(s))}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}Qc(()=>{Oo.clear()})}function Va(e,t){Le(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Es(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Nt,vr=[],qs=!1;function Qr(e,...t){Nt?Nt.emit(e,...t):qs||vr.push({event:e,args:t})}function Bi(e,t){var n,r;Nt=e,Nt?(Nt.enabled=!0,vr.forEach(({event:o,args:s})=>Nt.emit(o,...s)),vr=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Bi(s,t)}),setTimeout(()=>{Nt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qs=!0,vr=[])},3e3)):(qs=!0,vr=[])}function Mh(e,t){Qr("app:init",e,t,{Fragment:Re,Text:no,Comment:Be,Static:No})}function Ih(e){Qr("app:unmount",e)}const Vh=Ui("component:added"),ru=Ui("component:updated"),Rh=Ui("component:removed"),Lh=e=>{Nt&&typeof Nt.cleanupBuffer=="function"&&!Nt.cleanupBuffer(e)&&Rh(e)};function Ui(e){return t=>{Qr(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Fh=ou("perf:start"),kh=ou("perf:end");function ou(e){return(t,n,r)=>{Qr(e,t.appContext.app,t.uid,t,n,r)}}function jh(e,t,n){Qr("component:emit",e.appContext.app,e,t,n)}let He=null,su=null;function $o(e){const t=He;return He=e,su=e&&e.type.__scopeId||null,t}function ie(e,t=He,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Fo(-1);const s=$o(t);let i;try{i=e(...o)}finally{$o(s),r._d&&Fo(1)}return process.env.NODE_ENV!=="production"&&ru(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function iu(e){Vp(e)&&H("Do not use built-in directive ids as custom directive id: "+e)}function tr(e,t){if(He===null)return process.env.NODE_ENV!=="production"&&H("withDirectives can only be used inside render functions."),e;const n=as(He),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Te]=t[o];s&&(ce(s)&&(s={mounted:s,updated:s}),s.deep&&Yt(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function fn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(Tt(),Et(l,n,8,[e.el,a,e,t]),At())}}function Lr(e,t){if(process.env.NODE_ENV!=="production"&&(!Ue||Ue.isMounted)&&H("provide() can only be used inside setup()."),Ue){let n=Ue.provides;const r=Ue.parent&&Ue.parent.provides;r===n&&(n=Ue.provides=Object.create(r)),n[e]=t}}function ft(e,t,n=!1){const r=$t();if(r||Sn){let o=Sn?Sn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&H(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&H("inject() can only be used inside setup() or functional components.")}function Bh(){return!!($t()||Sn)}const Uh=Symbol.for("v-scx"),Hh=()=>{{const e=ft(Uh);return e||process.env.NODE_ENV!=="production"&&H("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Je(e,t,n){return process.env.NODE_ENV!=="production"&&!ce(t)&&H("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),au(e,t,n)}function au(e,t,n=Te){const{immediate:r,deep:o,flush:s,once:i}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&H('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&H('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&H('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Le({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=H);const l=t&&r||!t&&s!=="post";let c;if(jr){if(s==="sync"){const g=Hh();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=Ke,g.resume=Ke,g.pause=Ke,g}}const u=Ue;a.call=(g,b,h)=>Et(g,u,b,h);let f=!1;s==="post"?a.scheduler=g=>{rt(g,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(g,b)=>{b?g():rs(g)}),a.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=wh(e,t,a);return jr&&(c?c.push(p):l&&p()),p}function zh(e,t,n){const r=this.proxy,o=be(e)?e.includes(".")?lu(r,e):()=>r[e]:e.bind(r,r);let s;ce(t)?s=t:(s=t.handler,n=t);const i=ro(this),a=au(o,s.bind(r),n);return i(),a}function lu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const sn=new WeakMap,cu=Symbol("_vte"),uu=e=>e.__isTeleport,Jt=e=>e&&(e.disabled||e.disabled===""),Wh=e=>e&&(e.defer||e.defer===""),Ra=e=>typeof SVGElement<"u"&&e instanceof SVGElement,La=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gs=(e,t)=>{const n=e&&e.to;if(be(n))if(t){const r=t(n);return process.env.NODE_ENV!=="production"&&!r&&!Jt(e)&&H(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return process.env.NODE_ENV!=="production"&&H("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return process.env.NODE_ENV!=="production"&&!n&&!Jt(e)&&H(`Invalid Teleport target: ${n}`),n},Kh={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:p,o:{insert:g,querySelector:b,createText:h,createComment:v,parentNode:S}}=c,T=Jt(t.props);let{dynamicChildren:F}=t;process.env.NODE_ENV!=="production"&&at&&(l=!1,F=null);const Y=(V,ne,A)=>{V.shapeFlag&16&&u(V.children,ne,A,o,s,i,a,l)},x=(V=t)=>{const ne=Jt(V.props),A=V.target=Gs(V.props,b),N=Ys(A,V,h,g);A?(i!=="svg"&&Ra(A)?i="svg":i!=="mathml"&&La(A)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(A),ne||(Y(V,A,N),_r(V,!1))):process.env.NODE_ENV!=="production"&&!ne&&H("Invalid Teleport target on mount:",A,`(${typeof A})`)},W=V=>{const ne=()=>{if(sn.get(V)===ne){if(sn.delete(V),Jt(V.props)){const A=S(V.el)||n;Y(V,A,V.anchor),_r(V,!0)}x(V)}};sn.set(V,ne),rt(ne,s)};if(e==null){const V=t.el=process.env.NODE_ENV!=="production"?v("teleport start"):h(""),ne=t.anchor=process.env.NODE_ENV!=="production"?v("teleport end"):h("");if(g(V,n,r),g(ne,n,r),Wh(t.props)||s&&s.pendingBranch){W(t);return}T&&(Y(t,n,ne),_r(t,!0)),x()}else{t.el=e.el;const V=t.anchor=e.anchor,ne=sn.get(e);if(ne){ne.flags|=8,sn.delete(e),W(t);return}t.targetStart=e.targetStart;const A=t.target=e.target,N=t.targetAnchor=e.targetAnchor,O=Jt(e.props),D=O?n:A,J=O?V:N;if(i==="svg"||Ra(A)?i="svg":(i==="mathml"||La(A))&&(i="mathml"),F?(p(e.dynamicChildren,F,D,o,s,i,a),Tr(e,t,process.env.NODE_ENV==="production")):l||f(e,t,D,J,o,s,i,a,!1),T)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):mo(t,n,V,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Gs(t.props,b);z?mo(t,z,null,c,0):process.env.NODE_ENV!=="production"&&H("Invalid Teleport target on update:",A,`(${typeof A})`)}else O&&mo(t,A,N,c,1);_r(t,T)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:p}=e,g=s||!Jt(p),b=sn.get(e);if(b&&(b.flags|=8,sn.delete(e)),f&&(o(c),o(u)),s&&o(l),!b&&i&16)for(let h=0;h<a.length;h++){const v=a[h];r(v,t,n,g,!!v.dynamicChildren)}},move:mo,hydrate:qh};function mo(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=s===2;if(f&&r(i,t,n),!sn.has(e)&&(!f||Jt(u))&&l&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);f&&r(a,t,n)}function qh(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){function p(v,S){let T=S;for(;T;){if(T&&T.nodeType===8){if(T.data==="teleport start anchor")t.targetStart=T;else if(T.data==="teleport anchor"){t.targetAnchor=T,v._lpa=t.targetAnchor&&i(t.targetAnchor);break}}T=i(T)}}function g(v,S){S.anchor=f(i(v),S,a(v),n,r,o,s)}const b=t.target=Gs(t.props,l),h=Jt(t.props);if(b){const v=b._lpa||b.firstChild;t.shapeFlag&16&&(h?(g(e,t),p(b,v),t.targetAnchor||Ys(b,t,u,c,a(e)===b?e:null)):(t.anchor=i(e),p(b,v),t.targetAnchor||Ys(b,t,u,c),f(v&&i(v),t,b,n,r,o,s))),_r(t,h)}else h&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Gh=Kh;function _r(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ys(e,t,n,r,o=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[cu]=i,e&&(r(s,e,o),r(i,e,o)),i}const wt=Symbol("_leaveCb"),fr=Symbol("_enterCb");function Yh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return In(()=>{e.isMounted=!0}),Hi(()=>{e.isUnmounting=!0}),e}const vt=[Function,Array],fu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vt,onEnter:vt,onAfterEnter:vt,onEnterCancelled:vt,onBeforeLeave:vt,onLeave:vt,onAfterLeave:vt,onLeaveCancelled:vt,onBeforeAppear:vt,onAppear:vt,onAfterAppear:vt,onAppearCancelled:vt},du=e=>{const t=e.subTree;return t.component?du(t.component):t},Jh={name:"BaseTransition",props:fu,setup(e,{slots:t}){const n=$t(),r=Yh();return()=>{const o=t.default&&mu(t.default(),!0),s=o&&o.length?pu(o):n.subTree?Ne():void 0;if(!s)return;const i=pe(e),{mode:a}=i;if(process.env.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&H(`invalid <transition> mode: ${a}`),r.isLeaving)return Os(s);const l=Fa(s);if(!l)return Os(s);let c=Js(l,i,r,n,f=>c=f);l.type!==Be&&Fr(l,c);let u=n.subTree&&Fa(n.subTree);if(u&&u.type!==Be&&!yn(u,l)&&du(n).type!==Be){let f=Js(u,i,r,n);if(Fr(u,f),a==="out-in"&&l.type!==Be)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Os(s);a==="in-out"&&l.type!==Be?f.delayLeave=(p,g,b)=>{const h=hu(r,u);h[String(u.key)]=u,p[wt]=()=>{g(),p[wt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{b(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function pu(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Be){if(process.env.NODE_ENV!=="production"&&n){H("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=r,n=!0,process.env.NODE_ENV==="production")break}}return t}const Xh=Jh;function hu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Js(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:b,onLeaveCancelled:h,onBeforeAppear:v,onAppear:S,onAfterAppear:T,onAppearCancelled:F}=t,Y=String(e.key),x=hu(n,e),W=(A,N)=>{A&&Et(A,r,9,N)},V=(A,N)=>{const O=N[1];W(A,N),se(A)?A.every(D=>D.length<=1)&&O():A.length<=1&&O()},ne={mode:i,persisted:a,beforeEnter(A){let N=l;if(!n.isMounted)if(s)N=v||l;else return;A[wt]&&A[wt](!0);const O=x[Y];O&&yn(e,O)&&O.el[wt]&&O.el[wt](),W(N,[A])},enter(A){if(!at&&x[Y]===e)return;let N=c,O=u,D=f;if(!n.isMounted)if(s)N=S||c,O=T||u,D=F||f;else return;let J=!1;A[fr]=R=>{J||(J=!0,R?W(D,[A]):W(O,[A]),ne.delayedLeave&&ne.delayedLeave(),A[fr]=void 0)};const z=A[fr].bind(null,!1);N?V(N,[A,z]):z()},leave(A,N){const O=String(e.key);if(A[fr]&&A[fr](!0),n.isUnmounting)return N();W(p,[A]);let D=!1;A[wt]=z=>{D||(D=!0,N(),z?W(h,[A]):W(b,[A]),A[wt]=void 0,x[O]===e&&delete x[O])};const J=A[wt].bind(null,!1);x[O]=e,g?V(g,[A,J]):J()},clone(A){const N=Js(A,t,n,r,o);return o&&o(N),N}};return ne}function Os(e){if(eo(e))return e=Ht(e),e.children=null,e}function Fa(e){if(!eo(e))return uu(e.type)&&e.children?pu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ce(n.default))return n.default()}}function Fr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fr(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 mu(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Re?(i.patchFlag&128&&o++,r=r.concat(mu(i.children,t,a))):(t||i.type!==Be)&&r.push(a!=null?Ht(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function $e(e,t){return ce(e)?Le({name:e.name},t,{setup:e}):e}function gu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ka=new WeakSet;function ja(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mo=new WeakMap;function Sr(e,t,n,r,o=!1){if(se(e)){e.forEach((h,v)=>Sr(h,t&&(se(t)?t[v]:t),n,r,o));return}if(Jn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Sr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?as(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(process.env.NODE_ENV!=="production"&&!a){H("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Te?a.refs={}:a.refs,f=a.setupState,p=pe(f),g=f===Te?bc:h=>process.env.NODE_ENV!=="production"&&(ge(p,h)&&!Se(p[h])&&H(`Template ref "${h}" used on a non-ref value. It will not work in the production build.`),ka.has(p[h]))||ja(u,h)?!1:ge(p,h),b=(h,v)=>!(process.env.NODE_ENV!=="production"&&ka.has(h)||v&&ja(u,v));if(c!=null&&c!==l){if(Ba(t),be(c))u[c]=null,g(c)&&(f[c]=null);else if(Se(c)){const h=t;b(c,h.k)&&(c.value=null),h.k&&(u[h.k]=null)}}if(ce(l))ir(l,a,12,[i,u]);else{const h=be(l),v=Se(l);if(h||v){const S=()=>{if(e.f){const T=h?g(l)?f[l]:u[l]:b(l)||!e.k?l.value:u[e.k];if(o)se(T)&&Ai(T,s);else if(se(T))T.includes(s)||T.push(s);else if(h)u[l]=[s],g(l)&&(f[l]=u[l]);else{const F=[s];b(l,e.k)&&(l.value=F),e.k&&(u[e.k]=F)}}else h?(u[l]=i,g(l)&&(f[l]=i)):v?(b(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i)):process.env.NODE_ENV!=="production"&&H("Invalid template ref type:",l,`(${typeof l})`)};if(i){const T=()=>{S(),Mo.delete(e)};T.id=-1,Mo.set(e,T),rt(T,n)}else Ba(e),S()}else process.env.NODE_ENV!=="production"&&H("Invalid template ref type:",l,`(${typeof l})`)}}function Ba(e){const t=Mo.get(e);t&&(t.flags|=8,Mo.delete(e))}Xr().requestIdleCallback;Xr().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Zh(e,t){vu(e,"a",t)}function Qh(e,t){vu(e,"da",t)}function vu(e,t,n=Ue){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(os(t,r,n),n){let o=n.parent;for(;o&&o.parent;)eo(o.parent.vnode)&&e0(r,t,n,o),o=o.parent}}function e0(e,t,n,r){const o=os(t,e,r,!0);to(()=>{Ai(r[t],o)},n)}function os(e,t,n=Ue,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Tt();const a=ro(n),l=Et(t,n,e,i);return a(),At(),l});return r?o.unshift(s):o.push(s),s}else if(process.env.NODE_ENV!=="production"){const o=vn(ki[e].replace(/ hook$/,""));H(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Qt=e=>(t,n=Ue)=>{(!jr||e==="sp")&&os(e,(...r)=>t(...r),n)},t0=Qt("bm"),In=Qt("m"),n0=Qt("bu"),r0=Qt("u"),Hi=Qt("bum"),to=Qt("um"),o0=Qt("sp"),s0=Qt("rtg"),i0=Qt("rtc");function a0(e,t=Ue){os("ec",e,t)}const Io="components",l0="directives";function Ie(e,t){return zi(Io,e,!0,t)||e}const _u=Symbol.for("v-ndc");function c0(e){return be(e)?zi(Io,e,!1)||e:e||_u}function yu(e){return zi(l0,e)}function zi(e,t,n=!0,r=!1){const o=He||Ue;if(o){const s=o.type;if(e===Io){const a=Ji(s,!1);if(a&&(a===t||a===Ye(t)||a===Tn(Ye(t))))return s}const i=Ua(o[e]||s[e],t)||Ua(o.appContext[e],t);if(!i&&r)return s;if(process.env.NODE_ENV!=="production"&&n&&!i){const a=e===Io?`
|
|
25
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";H(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return i}else process.env.NODE_ENV!=="production"&&H(`resolve${Tn(e.slice(0,-1))} can only be used in render() or setup().`)}function Ua(e,t){return e&&(e[t]||e[Ye(t)]||e[Tn(Ye(t))])}function Cr(e,t,n,r){let o;const s=n,i=se(e);if(i||be(e)){const a=i&&bt(e);let l=!1,c=!1;a&&(l=!et(e),c=Dt(e),e=es(e)),o=new Array(e.length);for(let u=0,f=e.length;u<f;u++)o[u]=t(l?c?Qn(Pt(e[u])):Pt(e[u]):e[u],u,void 0,s)}else if(typeof e=="number")if(process.env.NODE_ENV!=="production"&&(!Number.isInteger(e)||e<0))H(`The v-for range expects a positive integer value but got ${e}.`),o=[];else{o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(ve(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];o[l]=t(e[u],u,l,s)}}else o=[];return o}function cn(e,t,n={},r,o){if(He.ce||He.parent&&Jn(He.parent)&&He.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),q(),we(Re,null,[Q("slot",n,r&&r())],c?-2:64)}let s=e[t];process.env.NODE_ENV!=="production"&&s&&s.length>1&&(H("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),q();const i=s&&wu(s(n)),a=n.key||i&&i.key,l=we(Re,{key:(a&&!dt(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function wu(e){return e.some(t=>Zt(t)?!(t.type===Be||t.type===Re&&!wu(t.children)):!0)?e:null}const Xs=e=>e?Hu(e)?as(e):Xs(e.parent):null,xn=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?xt(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?xt(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?xt(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?xt(e.refs):e.refs,$parent:e=>Xs(e.parent),$root:e=>Xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ou(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=er.bind(e.proxy)),$watch:e=>zh.bind(e)}),Wi=e=>e==="_"||e==="$",Ns=(e,t)=>e!==Te&&!e.__isScriptSetup&&ge(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Ns(r,t))return i[t]=1,r[t];if(o!==Te&&ge(o,t))return i[t]=2,o[t];if(ge(s,t))return i[t]=3,s[t];if(n!==Te&&ge(n,t))return i[t]=4,n[t];Zs&&(i[t]=0)}}const c=xn[t];let u,f;if(c)return t==="$attrs"?(We(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&Ro()):process.env.NODE_ENV!=="production"&&t==="$slots"&&We(e,"get",t),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Te&&ge(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ge(f,t))return f[t];process.env.NODE_ENV!=="production"&&He&&(!be(t)||t.indexOf("__v")!==0)&&(o!==Te&&Wi(t[0])&&ge(o,t)?H(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===He&&H(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Ns(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&ge(o,t)?(H(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Te&&ge(r,t)?(r[t]=n,!0):ge(e.props,t)?(process.env.NODE_ENV!=="production"&&H(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&H(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:i}},a){let l;return!!(n[a]||e!==Te&&a[0]!=="$"&&ge(e,a)||Ns(t,a)||ge(s,a)||ge(r,a)||ge(xn,a)||ge(o.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(bu.ownKeys=e=>(H("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function u0(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(xn).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>xn[n](e),set:Ke})}),t}function f0(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:Ke})})}function d0(e){const{ctx:t,setupState:n}=e;Object.keys(pe(n)).forEach(r=>{if(!n.__isScriptSetup){if(Wi(r[0])){H(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:Ke})}})}function Ha(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function p0(){const e=Object.create(null);return(t,n)=>{e[n]?H(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let Zs=!0;function h0(e){const t=Ou(e),n=e.proxy,r=e.ctx;Zs=!1,t.beforeCreate&&za(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:g,updated:b,activated:h,deactivated:v,beforeDestroy:S,beforeUnmount:T,destroyed:F,unmounted:Y,render:x,renderTracked:W,renderTriggered:V,errorCaptured:ne,serverPrefetch:A,expose:N,inheritAttrs:O,components:D,directives:J,filters:z}=t,R=process.env.NODE_ENV!=="production"?p0():null;if(process.env.NODE_ENV!=="production"){const[B]=e.propsOptions;if(B)for(const $ in B)R("Props",$)}if(c&&m0(c,r,R),i)for(const B in i){const $=i[B];ce($)?(process.env.NODE_ENV!=="production"?Object.defineProperty(r,B,{value:$.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[B]=$.bind(n),process.env.NODE_ENV!=="production"&&R("Methods",B)):process.env.NODE_ENV!=="production"&&H(`Method "${B}" has type "${typeof $}" in the component definition. Did you reference the function correctly?`)}if(o){process.env.NODE_ENV!=="production"&&!ce(o)&&H("The data option must be a function. Plain object usage is no longer supported.");const B=o.call(n,n);if(process.env.NODE_ENV!=="production"&&Di(B)&&H("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!ve(B))process.env.NODE_ENV!=="production"&&H("data() should return an object.");else if(e.data=sr(B),process.env.NODE_ENV!=="production")for(const $ in B)R("Data",$),Wi($[0])||Object.defineProperty(r,$,{configurable:!0,enumerable:!0,get:()=>B[$],set:Ke})}if(Zs=!0,s)for(const B in s){const $=s[B],X=ce($)?$.bind(n,n):ce($.get)?$.get.bind(n,n):Ke;process.env.NODE_ENV!=="production"&&X===Ke&&H(`Computed property "${B}" has no getter.`);const E=!ce($)&&ce($.set)?$.set.bind(n):process.env.NODE_ENV!=="production"?()=>{H(`Write operation failed: computed property "${B}" is readonly.`)}:Ke,U=oe({get:X,set:E});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>U.value,set:K=>U.value=K}),process.env.NODE_ENV!=="production"&&R("Computed",B)}if(a)for(const B in a)Eu(a[B],r,n,B);if(l){const B=ce(l)?l.call(n):l;Reflect.ownKeys(B).forEach($=>{Lr($,B[$])})}u&&za(u,e,"c");function k(B,$){se($)?$.forEach(X=>B(X.bind(n))):$&&B($.bind(n))}if(k(t0,f),k(In,p),k(n0,g),k(r0,b),k(Zh,h),k(Qh,v),k(a0,ne),k(i0,W),k(s0,V),k(Hi,T),k(to,Y),k(o0,A),se(N))if(N.length){const B=e.exposed||(e.exposed={});N.forEach($=>{Object.defineProperty(B,$,{get:()=>n[$],set:X=>n[$]=X,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===Ke&&(e.render=x),O!=null&&(e.inheritAttrs=O),D&&(e.components=D),J&&(e.directives=J),A&&gu(e)}function m0(e,t,n=Ke){se(e)&&(e=Qs(e));for(const r in e){const o=e[r];let s;ve(o)?"default"in o?s=ft(o.from||r,o.default,!0):s=ft(o.from||r):s=ft(o),Se(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,process.env.NODE_ENV!=="production"&&n("Inject",r)}}function za(e,t,n){Et(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Eu(e,t,n,r){let o=r.includes(".")?lu(n,r):()=>n[r];if(be(e)){const s=t[e];ce(s)?Je(o,s):process.env.NODE_ENV!=="production"&&H(`Invalid watch handler specified by key "${e}"`,s)}else if(ce(e))Je(o,e.bind(n));else if(ve(e))if(se(e))e.forEach(s=>Eu(s,t,n,r));else{const s=ce(e.handler)?e.handler.bind(n):t[e.handler];ce(s)?Je(o,s,e):process.env.NODE_ENV!=="production"&&H(`Invalid watch handler specified by key "${e.handler}"`,s)}else process.env.NODE_ENV!=="production"&&H(`Invalid watch option: "${r}"`,e)}function Ou(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Vo(l,c,i,!0)),Vo(l,t,i)),ve(t)&&s.set(t,l),l}function Vo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Vo(e,s,n,!0),o&&o.forEach(i=>Vo(e,i,n,!0));for(const i in t)if(r&&i==="expose")process.env.NODE_ENV!=="production"&&H('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=g0[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const g0={data:Wa,props:Ka,emits:Ka,methods:yr,computed:yr,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:yr,directives:yr,watch:_0,provide:Wa,inject:v0};function Wa(e,t){return t?e?function(){return Le(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function v0(e,t){return yr(Qs(e),Qs(t))}function Qs(e){if(se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nt(e,t){return e?[...new Set([].concat(e,t))]:t}function yr(e,t){return e?Le(Object.create(null),e,t):t}function Ka(e,t){return e?se(e)&&se(t)?[...new Set([...e,...t])]:Le(Object.create(null),Ha(e),Ha(t??{})):t}function _0(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const r in t)n[r]=nt(e[r],t[r]);return n}function Nu(){return{app:null,config:{isNativeTag:bc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let y0=0;function w0(e,t){return function(r,o=null){ce(r)||(r=Le({},r)),o!=null&&!ve(o)&&(process.env.NODE_ENV!=="production"&&H("root props passed to app.mount() must be an object."),o=null);const s=Nu(),i=new WeakSet,a=[];let l=!1;const c=s.app={_uid:y0++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:rl,get config(){return s.config},set config(u){process.env.NODE_ENV!=="production"&&H("app.config cannot be replaced. Modify individual options instead.")},use(u,...f){return i.has(u)?process.env.NODE_ENV!=="production"&&H("Plugin has already been applied to target app."):u&&ce(u.install)?(i.add(u),u.install(c,...f)):ce(u)?(i.add(u),u(c,...f)):process.env.NODE_ENV!=="production"&&H('A plugin must either be a function or an object with an "install" function.'),c},mixin(u){return s.mixins.includes(u)?process.env.NODE_ENV!=="production"&&H("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):s.mixins.push(u),c},component(u,f){return process.env.NODE_ENV!=="production"&&oi(u,s.config),f?(process.env.NODE_ENV!=="production"&&s.components[u]&&H(`Component "${u}" has already been registered in target app.`),s.components[u]=f,c):s.components[u]},directive(u,f){return process.env.NODE_ENV!=="production"&&iu(u),f?(process.env.NODE_ENV!=="production"&&s.directives[u]&&H(`Directive "${u}" has already been registered in target app.`),s.directives[u]=f,c):s.directives[u]},mount(u,f,p){if(l)process.env.NODE_ENV!=="production"&&H("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{process.env.NODE_ENV!=="production"&&u.__vue_app__&&H("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const g=c._ceVNode||Q(r,o);return g.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),process.env.NODE_ENV!=="production"&&(s.reload=()=>{const b=Ht(g);b.el=null,e(b,u,p)}),e(g,u,p),l=!0,c._container=u,u.__vue_app__=c,process.env.NODE_ENV!=="production"&&(c._instance=g.component,Mh(c,rl)),as(g.component)}},onUnmount(u){process.env.NODE_ENV!=="production"&&typeof u!="function"&&H(`Expected function as first argument to app.onUnmount(), but got ${typeof u}`),a.push(u)},unmount(){l?(Et(a,c._instance,16),e(null,c._container),process.env.NODE_ENV!=="production"&&(c._instance=null,Ih(c)),delete c._container.__vue_app__):process.env.NODE_ENV!=="production"&&H("Cannot unmount an app that is not mounted.")},provide(u,f){return process.env.NODE_ENV!=="production"&&u in s.provides&&(ge(s.provides,u)?H(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`):H(`App already provides property with key "${String(u)}" inherited from its parent element. It will be overwritten with the new value.`)),s.provides[u]=f,c},runWithContext(u){const f=Sn;Sn=c;try{return u()}finally{Sn=f}}};return c}}let Sn=null;const b0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${Xt(t)}Modifiers`];function E0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Te;if(process.env.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[f]}=e;if(u)if(!(t in u))(!f||!(vn(Ye(t))in f))&&H(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${vn(Ye(t))}" prop.`);else{const p=u[t];ce(p)&&(p(...n)||H(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&b0(r,t.slice(7));if(i&&(i.trim&&(o=n.map(u=>be(u)?u.trim():u)),i.number&&(o=n.map(Fp))),process.env.NODE_ENV!=="production"&&jh(e,t,o),process.env.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&r[vn(u)]&&H(`Event "${u}" is emitted in component ${oo(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Xt(t)}" instead of "${t}".`)}let a,l=r[a=vn(t)]||r[a=vn(Ye(t))];!l&&s&&(l=r[a=vn(Xt(t))]),l&&Et(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Et(c,e,6,o)}}const O0=new WeakMap;function xu(e,t,n=!1){const r=n?O0:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ce(e)){const l=c=>{const u=xu(c,t,!0);u&&(a=!0,Le(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ve(e)&&r.set(e,null),null):(se(s)?s.forEach(l=>i[l]=null):Le(i,s),ve(e)&&r.set(e,i),i)}function ss(e,t){return!e||!Yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,Xt(t))||ge(e,t))}let ei=!1;function Ro(){ei=!0}function qa(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:p,setupState:g,ctx:b,inheritAttrs:h}=e,v=$o(e);let S,T;process.env.NODE_ENV!=="production"&&(ei=!1);try{if(n.shapeFlag&4){const x=o||r,W=process.env.NODE_ENV!=="production"&&g.__isScriptSetup?new Proxy(x,{get(V,ne,A){return H(`Property '${String(ne)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(V,ne,A)}}):x;S=Ot(c.call(W,x,u,process.env.NODE_ENV!=="production"?xt(f):f,g,p,b)),T=a}else{const x=t;process.env.NODE_ENV!=="production"&&a===f&&Ro(),S=Ot(x.length>1?x(process.env.NODE_ENV!=="production"?xt(f):f,process.env.NODE_ENV!=="production"?{get attrs(){return Ro(),xt(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):x(process.env.NODE_ENV!=="production"?xt(f):f,null)),T=t.props?a:N0(a)}}catch(x){Ar.length=0,Zr(x,e,1),S=Q(Be)}let F=S,Y;if(process.env.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([F,Y]=Su(S)),T&&h!==!1){const x=Object.keys(T),{shapeFlag:W}=F;if(x.length){if(W&7)s&&x.some(Mr)&&(T=x0(T,s)),F=Ht(F,T,!1,!0);else if(process.env.NODE_ENV!=="production"&&!ei&&F.type!==Be){const V=Object.keys(a),ne=[],A=[];for(let N=0,O=V.length;N<O;N++){const D=V[N];Yr(D)?Mr(D)||ne.push(D[2].toLowerCase()+D.slice(3)):A.push(D)}A.length&&H(`Extraneous non-props attributes (${A.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),ne.length&&H(`Extraneous non-emits event listeners (${ne.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(process.env.NODE_ENV!=="production"&&!Ga(F)&&H("Runtime directive used on component with non-element root node. The directives will not function as intended."),F=Ht(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(process.env.NODE_ENV!=="production"&&!Ga(F)&&H("Component inside <Transition> renders non-element root node that cannot be animated."),Fr(F,n.transition)),process.env.NODE_ENV!=="production"&&Y?Y(F):S=F,$o(v),S}const Su=e=>{const t=e.children,n=e.dynamicChildren,r=Ki(t,!1);if(r){if(process.env.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Su(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Ot(r),i]};function Ki(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Zt(o)){if(o.type!==Be||o.children==="v-if"){if(n)return;if(n=o,process.env.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Ki(n.children)}}else return}return n}const N0=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yr(n))&&((t||(t={}))[n]=e[n]);return t},x0=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ga=e=>e.shapeFlag&7||e.type===Be;function S0(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(process.env.NODE_ENV!=="production"&&(o||a)&&at||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ya(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(Cu(i,r,p)&&!ss(c,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ya(r,i,c):!0:!!i;return!1}function Ya(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(Cu(t,e,s)&&!ss(n,s))return!0}return!1}function Cu(e,t,n){const r=e[n],o=t[n];return n==="style"&&ve(r)&&ve(o)?!$i(r,o):r!==o}function C0({vnode:e,parent:t,suspense:n},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=r,e=o),o===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Tu={},Au=()=>Object.create(Tu),Du=e=>Object.getPrototypeOf(e)===Tu;function T0(e,t,n,r=!1){const o={},s=Au();e.propsDefaults=Object.create(null),Pu(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);process.env.NODE_ENV!=="production"&&Mu(t||{},o,e),n?e.props=r?o:Fi(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function A0(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function D0(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=pe(o),[l]=e.propsOptions;let c=!1;if(!(process.env.NODE_ENV!=="production"&&A0(e))&&(r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(ss(e.emitsOptions,p))continue;const g=t[p];if(l)if(ge(s,p))g!==s[p]&&(s[p]=g,c=!0);else{const b=Ye(p);o[b]=ti(l,a,b,g,e,!1)}else g!==s[p]&&(s[p]=g,c=!0)}}}else{Pu(e,t,o,s)&&(c=!0);let u;for(const f in a)(!t||!ge(t,f)&&((u=Xt(f))===f||!ge(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=ti(l,a,f,void 0,e,!0)):delete o[f]);if(s!==a)for(const f in s)(!t||!ge(t,f))&&(delete s[f],c=!0)}c&&Ut(e.attrs,"set",""),process.env.NODE_ENV!=="production"&&Mu(t||{},o,e)}function Pu(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Or(l))continue;const c=t[l];let u;o&&ge(o,u=Ye(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:ss(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(s){const l=pe(n),c=a||Te;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ti(o,l,f,c[f],e,!ge(c,f))}}return i}function ti(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=ge(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ce(l)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=ro(o);r=c[n]=l.call(null,t),u()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===Xt(n))&&(r=!0))}return r}const P0=new WeakMap;function $u(e,t,n=!1){const r=n?P0:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!ce(e)){const u=f=>{l=!0;const[p,g]=$u(f,t,!0);Le(i,p),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return ve(e)&&r.set(e,qn),qn;if(se(s))for(let u=0;u<s.length;u++){process.env.NODE_ENV!=="production"&&!be(s[u])&&H("props must be strings when using array syntax.",s[u]);const f=Ye(s[u]);Ja(f)&&(i[f]=Te)}else if(s){process.env.NODE_ENV!=="production"&&!ve(s)&&H("invalid props options",s);for(const u in s){const f=Ye(u);if(Ja(f)){const p=s[u],g=i[f]=se(p)||ce(p)?{type:p}:Le({},p),b=g.type;let h=!1,v=!0;if(se(b))for(let S=0;S<b.length;++S){const T=b[S],F=ce(T)&&T.name;if(F==="Boolean"){h=!0;break}else F==="String"&&(v=!1)}else h=ce(b)&&b.name==="Boolean";g[0]=h,g[1]=v,(h||ge(g,"default"))&&a.push(f)}}}const c=[i,a];return ve(e)&&r.set(e,c),c}function Ja(e){return e[0]!=="$"&&!Or(e)?!0:(process.env.NODE_ENV!=="production"&&H(`Invalid prop name: "${e}" is a reserved property.`),!1)}function $0(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Mu(e,t,n){const r=pe(t),o=n.propsOptions[0],s=Object.keys(e).map(i=>Ye(i));for(const i in o){let a=o[i];a!=null&&M0(i,r[i],a,process.env.NODE_ENV!=="production"?xt(r):r,!s.includes(i))}}function M0(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){H('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let c=!1;const u=se(s)?s:[s],f=[];for(let p=0;p<u.length&&!c;p++){const{valid:g,expectedType:b}=V0(t,u[p]);f.push(b||""),c=g}if(!c){H(R0(e,t,f));return}}a&&!a(t,r)&&H('Invalid prop: custom validator check failed for prop "'+e+'".')}}const I0=or("String,Number,Boolean,Function,Symbol,BigInt");function V0(e,t){let n;const r=$0(t);if(r==="null")n=e===null;else if(I0(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=ve(e):r==="Array"?n=se(e):n=e instanceof t;return{valid:n,expectedType:r}}function R0(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Tn).join(" | ")}`;const o=n[0],s=Pi(t),i=Xa(t,o),a=Xa(t,s);return n.length===1&&Za(o)&&L0(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,Za(s)&&(r+=`with value ${a}.`),r}function Xa(e,t){return dt(e)?e.toString():t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Za(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function L0(...e){return e.every(t=>{const n=t.toLowerCase();return n!=="boolean"&&n!=="symbol"})}const qi=e=>e==="_"||e==="_ctx"||e==="$stable",Gi=e=>se(e)?e.map(Ot):[Ot(e)],F0=(e,t,n)=>{if(t._n)return t;const r=ie((...o)=>(process.env.NODE_ENV!=="production"&&Ue&&!(n===null&&He)&&!(n&&n.root!==Ue.root)&&H(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Gi(t(...o))),n);return r._c=!1,r},Iu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(qi(o))continue;const s=e[o];if(ce(s))t[o]=F0(o,s,r);else if(s!=null){process.env.NODE_ENV!=="production"&&H(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Gi(s);t[o]=()=>i}}},Vu=(e,t)=>{process.env.NODE_ENV!=="production"&&!eo(e.vnode)&&H("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Gi(t);e.slots.default=()=>n},ni=(e,t,n)=>{for(const r in t)(n||!qi(r))&&(e[r]=t[r])},k0=(e,t,n)=>{const r=e.slots=Au();if(e.vnode.shapeFlag&32){const o=t._;o?(ni(r,t,n),n&&Co(r,"_",o,!0)):Iu(t,r)}else t&&Vu(e,t)},j0=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Te;if(r.shapeFlag&32){const a=t._;a?process.env.NODE_ENV!=="production"&&at?(ni(o,t,n),Ut(e,"set","$slots")):n&&a===1?s=!1:ni(o,t,n):(s=!t.$stable,Iu(t,o)),i=t}else t&&(Vu(e,t),i={default:1});if(s)for(const a in o)!qi(a)&&i[a]==null&&delete o[a]};let dr,qt;function Bn(e,t){e.appContext.config.performance&&Lo()&&qt.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!=="production"&&Fh(e,t,Lo()?qt.now():Date.now())}function Un(e,t){if(e.appContext.config.performance&&Lo()){const n=`vue-${t}-${e.uid}`,r=n+":end",o=`<${oo(e,e.type)}> ${t}`;qt.mark(r),qt.measure(o,n,r),qt.clearMeasures(o),qt.clearMarks(n),qt.clearMarks(r)}process.env.NODE_ENV!=="production"&&kh(e,t,Lo()?qt.now():Date.now())}function Lo(){return dr!==void 0||(typeof window<"u"&&window.performance?(dr=!0,qt=window.performance):dr=!1),dr}function B0(){const e=[];if(process.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
26
26
|
|
|
27
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const ot=K0;function U0(e){return H0(e)}function H0(e,t){B0();const n=Xr();n.__VUE__=!0,process.env.NODE_ENV!=="production"&&Bi(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:g=We,insertStaticContent:b}=e,h=(d,m,C,k=null,I=null,v=null,w=void 0,P=null,j=process.env.NODE_ENV!=="production"&<?!1:!!m.dynamicChildren)=>{if(d===m)return;d&&!yn(d,m)&&(k=me(d),te(d,I,v,!0),d=null),m.patchFlag===-2&&(j=!1,m.dynamicChildren=null);const{type:F,ref:le,shapeFlag:X}=m;switch(F){case no:_(d,m,C,k);break;case je:S(d,m,C,k);break;case No:d==null?T(m,C,k,w):process.env.NODE_ENV!=="production"&&R(d,m,C,w);break;case Ve:J(d,m,C,k,I,v,w,P,j);break;default:X&1?W(d,m,C,k,I,v,w,P,j):X&6?z(d,m,C,k,I,v,w,P,j):X&64||X&128?F.process(d,m,C,k,I,v,w,P,j,Fe):process.env.NODE_ENV!=="production"&&U("Invalid VNode type:",F,`(${typeof F})`)}le!=null&&I?Sr(le,d&&d.ref,v,m||d,!m):le==null&&d&&d.ref!=null&&Sr(d.ref,null,v,d,!0)},_=(d,m,C,k)=>{if(d==null)r(m.el=a(m.children),C,k);else{const I=m.el=d.el;m.children!==d.children&&c(I,m.children)}},S=(d,m,C,k)=>{d==null?r(m.el=l(m.children||""),C,k):m.el=d.el},T=(d,m,C,k)=>{[d.el,d.anchor]=b(d.children,m,C,k,d.el,d.anchor)},R=(d,m,C,k)=>{if(m.children!==d.children){const I=p(d.anchor);x(d),[m.el,m.anchor]=b(m.children,C,I,k)}else m.el=d.el,m.anchor=d.anchor},Y=({el:d,anchor:m},C,k)=>{let I;for(;d&&d!==m;)I=p(d),r(d,C,k),d=I;r(m,C,k)},x=({el:d,anchor:m})=>{let C;for(;d&&d!==m;)C=p(d),o(d),d=C;o(m)},W=(d,m,C,k,I,v,w,P,j)=>{if(m.type==="svg"?w="svg":m.type==="math"&&(w="mathml"),d==null)M(m,C,k,I,v,w,P,j);else{const F=d.el&&d.el._isVueCE?d.el:null;try{F&&F._beginPatch(),N(d,m,I,v,w,P,j)}finally{F&&F._endPatch()}}},M=(d,m,C,k,I,v,w,P)=>{let j,F;const{props:le,shapeFlag:X,transition:ce,dirs:de}=d;if(j=d.el=i(d.type,v,le&&le.is,le),X&8?u(j,d.children):X&16&&A(d.children,j,null,k,I,xs(d,v),w,P),de&&fn(d,null,k,"created"),re(j,d,d.scopeId,w,k),le){for(const Ee in le)Ee!=="value"&&!Or(Ee)&&s(j,Ee,null,le[Ee],v,k);"value"in le&&s(j,"value",null,le.value,v),(F=le.onVnodeBeforeMount)&&Lt(F,k,d)}process.env.NODE_ENV!=="production"&&(Co(j,"__vnode",d,!0),Co(j,"__vueParentComponent",k,!0)),de&&fn(d,null,k,"beforeMount");const ye=z0(I,ce);if(ye&&ce.beforeEnter(j),r(j,m,C),(F=le&&le.onVnodeMounted)||ye||de){const Ee=process.env.NODE_ENV!=="production"&<ot(()=>{let ee;process.env.NODE_ENV!=="production"&&(ee=Ia(Ee));try{F&&Lt(F,k,d),ye&&ce.enter(j),de&&fn(d,null,k,"mounted")}finally{process.env.NODE_ENV!=="production"&&Ia(ee)}},I)}},re=(d,m,C,k,I)=>{if(C&&g(d,C),k)for(let v=0;v<k.length;v++)g(d,k[v]);if(I){let v=I.subTree;if(process.env.NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&(v=Ki(v.children)||v),m===v||Fu(v.type)&&(v.ssContent===m||v.ssFallback===m)){const w=I.vnode;re(d,w,w.scopeId,w.slotScopeIds,I.parent)}}},A=(d,m,C,k,I,v,w,P,j=0)=>{for(let F=j;F<d.length;F++){const le=d[F]=P?Gt(d[F]):Ot(d[F]);h(null,le,m,C,k,I,v,w,P)}},N=(d,m,C,k,I,v,w)=>{const P=m.el=d.el;process.env.NODE_ENV!=="production"&&(P.__vnode=m);let{patchFlag:j,dynamicChildren:F,dirs:le}=m;j|=d.patchFlag&16;const X=d.props||Ce,ce=m.props||Ce;let de;if(C&&dn(C,!1),(de=ce.onVnodeBeforeUpdate)&&Lt(de,C,m,d),le&&fn(m,d,C,"beforeUpdate"),C&&dn(C,!0),process.env.NODE_ENV!=="production"&<&&(j=0,w=!1,F=null),(X.innerHTML&&ce.innerHTML==null||X.textContent&&ce.textContent==null)&&u(P,""),F?(E(d.dynamicChildren,F,P,C,k,xs(m,I),v),process.env.NODE_ENV!=="production"&&Tr(d,m)):w||K(d,m,P,null,C,k,xs(m,I),v,!1),j>0){if(j&16)D(P,X,ce,C,I);else if(j&2&&X.class!==ce.class&&s(P,"class",null,ce.class,I),j&4&&s(P,"style",X.style,ce.style,I),j&8){const ye=m.dynamicProps;for(let Ee=0;Ee<ye.length;Ee++){const ee=ye[Ee],$e=X[ee],Ye=ce[ee];(Ye!==$e||ee==="value")&&s(P,ee,$e,Ye,I,C)}}j&1&&d.children!==m.children&&u(P,m.children)}else!w&&F==null&&D(P,X,ce,C,I);((de=ce.onVnodeUpdated)||le)&&ot(()=>{de&&Lt(de,C,m,d),le&&fn(m,d,C,"updated")},k)},E=(d,m,C,k,I,v,w)=>{for(let P=0;P<m.length;P++){const j=d[P],F=m[P],le=j.el&&(j.type===Ve||!yn(j,F)||j.shapeFlag&198)?f(j.el):C;h(j,F,le,null,k,I,v,w,!0)}},D=(d,m,C,k,I)=>{if(m!==C){if(m!==Ce)for(const v in m)!Or(v)&&!(v in C)&&s(d,v,m[v],null,I,k);for(const v in C){if(Or(v))continue;const w=C[v],P=m[v];w!==P&&v!=="value"&&s(d,v,P,w,I,k)}"value"in C&&s(d,"value",m.value,C.value,I)}},J=(d,m,C,k,I,v,w,P,j)=>{const F=m.el=d?d.el:a(""),le=m.anchor=d?d.anchor:a("");let{patchFlag:X,dynamicChildren:ce,slotScopeIds:de}=m;process.env.NODE_ENV!=="production"&&(lt||X&2048)&&(X=0,j=!1,ce=null),de&&(P=P?P.concat(de):de),d==null?(r(F,C,k),r(le,C,k),A(m.children||[],C,le,I,v,w,P,j)):X>0&&X&64&&ce&&d.dynamicChildren&&d.dynamicChildren.length===ce.length?(E(d.dynamicChildren,ce,C,I,v,w,P),process.env.NODE_ENV!=="production"?Tr(d,m):(m.key!=null||I&&m===I.subTree)&&Tr(d,m,!0)):K(d,m,C,le,I,v,w,P,j)},z=(d,m,C,k,I,v,w,P,j)=>{m.slotScopeIds=P,d==null?m.shapeFlag&512?I.ctx.activate(m,C,k,w,j):V(m,C,k,I,v,w,j):L(d,m,j)},V=(d,m,C,k,I,v,w)=>{const P=d.component=Z0(d,k,I);if(process.env.NODE_ENV!=="production"&&P.type.__hmrId&&Ah(P),process.env.NODE_ENV!=="production"&&(bo(d),Bn(P,"mount")),eo(d)&&(P.ctx.renderer=Fe),process.env.NODE_ENV!=="production"&&Bn(P,"init"),em(P,!1,w),process.env.NODE_ENV!=="production"&&Un(P,"init"),process.env.NODE_ENV!=="production"&<&&(d.el=null),P.asyncDep){if(I&&I.registerDep(P,B,w),!d.el){const j=P.subTree=Q(je);S(null,j,m,C),d.placeholder=j.el}}else B(P,d,m,C,I,v,w);process.env.NODE_ENV!=="production"&&(Eo(),Un(P,"mount"))},L=(d,m,C)=>{const k=m.component=d.component;if(S0(d,m,C))if(k.asyncDep&&!k.asyncResolved){process.env.NODE_ENV!=="production"&&bo(m),$(k,m,C),process.env.NODE_ENV!=="production"&&Eo();return}else k.next=m,k.update();else m.el=d.el,k.vnode=m},B=(d,m,C,k,I,v,w)=>{const P=()=>{if(d.isMounted){let{next:X,bu:ce,u:de,parent:ye,vnode:Ee}=d;{const Vt=Ru(d);if(Vt){X&&(X.el=Ee.el,$(d,X,w)),Vt.asyncDep.then(()=>{ot(()=>{d.isUnmounted||F()},I)});return}}let ee=X,$e;process.env.NODE_ENV!=="production"&&bo(X||d.vnode),dn(d,!1),X?(X.el=Ee.el,$(d,X,w)):X=Ee,ce&&cr(ce),($e=X.props&&X.props.onVnodeBeforeUpdate)&&Lt($e,ye,X,Ee),dn(d,!0),process.env.NODE_ENV!=="production"&&Bn(d,"render");const Ye=qa(d);process.env.NODE_ENV!=="production"&&Un(d,"render");const It=d.subTree;d.subTree=Ye,process.env.NODE_ENV!=="production"&&Bn(d,"patch"),h(It,Ye,f(It.el),me(It),d,I,v),process.env.NODE_ENV!=="production"&&Un(d,"patch"),X.el=Ye.el,ee===null&&C0(d,Ye.el),de&&ot(de,I),($e=X.props&&X.props.onVnodeUpdated)&&ot(()=>Lt($e,ye,X,Ee),I),process.env.NODE_ENV!=="production"&&ru(d),process.env.NODE_ENV!=="production"&&Eo()}else{let X;const{el:ce,props:de}=m,{bm:ye,m:Ee,parent:ee,root:$e,type:Ye}=d,It=Jn(m);dn(d,!1),ye&&cr(ye),!It&&(X=de&&de.onVnodeBeforeMount)&&Lt(X,ee,m),dn(d,!0);{$e.ce&&$e.ce._hasShadowRoot()&&$e.ce._injectChildStyle(Ye,d.parent?d.parent.type:void 0),process.env.NODE_ENV!=="production"&&Bn(d,"render");const Vt=d.subTree=qa(d);process.env.NODE_ENV!=="production"&&Un(d,"render"),process.env.NODE_ENV!=="production"&&Bn(d,"patch"),h(null,Vt,C,k,d,I,v),process.env.NODE_ENV!=="production"&&Un(d,"patch"),m.el=Vt.el}if(Ee&&ot(Ee,I),!It&&(X=de&&de.onVnodeMounted)){const Vt=m;ot(()=>Lt(X,ee,Vt),I)}(m.shapeFlag&256||ee&&Jn(ee.vnode)&&ee.vnode.shapeFlag&256)&&d.a&&ot(d.a,I),d.isMounted=!0,process.env.NODE_ENV!=="production"&&Vh(d),m=C=k=null}};d.scope.on();const j=d.effect=new Dc(P);d.scope.off();const F=d.update=j.run.bind(j),le=d.job=j.runIfDirty.bind(j);le.i=d,le.id=d.uid,j.scheduler=()=>rs(le),dn(d,!0),process.env.NODE_ENV!=="production"&&(j.onTrack=d.rtc?X=>cr(d.rtc,X):void 0,j.onTrigger=d.rtg?X=>cr(d.rtg,X):void 0),F()},$=(d,m,C)=>{m.component=d;const k=d.vnode.props;d.vnode=m,d.next=null,D0(d,m.props,k,C),j0(d,m.children,C),Tt(),Ma(d),At()},K=(d,m,C,k,I,v,w,P,j=!1)=>{const F=d&&d.children,le=d?d.shapeFlag:0,X=m.children,{patchFlag:ce,shapeFlag:de}=m;if(ce>0){if(ce&128){H(F,X,C,k,I,v,w,P,j);return}else if(ce&256){O(F,X,C,k,I,v,w,P,j);return}}de&8?(le&16&&Ae(F,I,v),X!==F&&u(C,X)):le&16?de&16?H(F,X,C,k,I,v,w,P,j):Ae(F,I,v,!0):(le&8&&u(C,""),de&16&&A(X,C,k,I,v,w,P,j))},O=(d,m,C,k,I,v,w,P,j)=>{d=d||qn,m=m||qn;const F=d.length,le=m.length,X=Math.min(F,le);let ce;for(ce=0;ce<X;ce++){const de=m[ce]=j?Gt(m[ce]):Ot(m[ce]);h(d[ce],de,C,null,I,v,w,P,j)}F>le?Ae(d,I,v,!0,!1,X):A(m,C,k,I,v,w,P,j,X)},H=(d,m,C,k,I,v,w,P,j)=>{let F=0;const le=m.length;let X=d.length-1,ce=le-1;for(;F<=X&&F<=ce;){const de=d[F],ye=m[F]=j?Gt(m[F]):Ot(m[F]);if(yn(de,ye))h(de,ye,C,null,I,v,w,P,j);else break;F++}for(;F<=X&&F<=ce;){const de=d[X],ye=m[ce]=j?Gt(m[ce]):Ot(m[ce]);if(yn(de,ye))h(de,ye,C,null,I,v,w,P,j);else break;X--,ce--}if(F>X){if(F<=ce){const de=ce+1,ye=de<le?m[de].el:k;for(;F<=ce;)h(null,m[F]=j?Gt(m[F]):Ot(m[F]),C,ye,I,v,w,P,j),F++}}else if(F>ce)for(;F<=X;)te(d[F],I,v,!0),F++;else{const de=F,ye=F,Ee=new Map;for(F=ye;F<=ce;F++){const nt=m[F]=j?Gt(m[F]):Ot(m[F]);nt.key!=null&&(process.env.NODE_ENV!=="production"&&Ee.has(nt.key)&&U("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),Ee.set(nt.key,F))}let ee,$e=0;const Ye=ce-ye+1;let It=!1,Vt=0;const ar=new Array(Ye);for(F=0;F<Ye;F++)ar[F]=0;for(F=de;F<=X;F++){const nt=d[F];if($e>=Ye){te(nt,I,v,!0);continue}let Rt;if(nt.key!=null)Rt=Ee.get(nt.key);else for(ee=ye;ee<=ce;ee++)if(ar[ee-ye]===0&&yn(nt,m[ee])){Rt=ee;break}Rt===void 0?te(nt,I,v,!0):(ar[Rt-ye]=F+1,Rt>=Vt?Vt=Rt:It=!0,h(nt,m[Rt],C,null,I,v,w,P,j),$e++)}const ua=It?W0(ar):qn;for(ee=ua.length-1,F=Ye-1;F>=0;F--){const nt=ye+F,Rt=m[nt],fa=m[nt+1],da=nt+1<le?fa.el||Lu(fa):k;ar[F]===0?h(null,Rt,C,da,I,v,w,P,j):It&&(ee<0||F!==ua[ee]?q(Rt,C,da,2):ee--)}}},q=(d,m,C,k,I=null)=>{const{el:v,type:w,transition:P,children:j,shapeFlag:F}=d;if(F&6){q(d.component.subTree,m,C,k);return}if(F&128){d.suspense.move(m,C,k);return}if(F&64){w.move(d,m,C,Fe);return}if(w===Ve){r(v,m,C);for(let X=0;X<j.length;X++)q(j[X],m,C,k);r(d.anchor,m,C);return}if(w===No){Y(d,m,C);return}if(k!==2&&F&1&&P)if(k===0)P.persisted&&!v[wt]?r(v,m,C):(P.beforeEnter(v),r(v,m,C),ot(()=>P.enter(v),I));else{const{leave:X,delayLeave:ce,afterLeave:de}=P,ye=()=>{d.ctx.isUnmounted?o(v):r(v,m,C)},Ee=()=>{const ee=v._isLeaving||!!v[wt];v._isLeaving&&v[wt](!0),P.persisted&&!ee?ye():X(v,()=>{ye(),de&&de()})};ce?ce(v,ye,Ee):Ee()}else r(v,m,C)},te=(d,m,C,k=!1,I=!1)=>{const{type:v,props:w,ref:P,children:j,dynamicChildren:F,shapeFlag:le,patchFlag:X,dirs:ce,cacheIndex:de,memo:ye}=d;if(X===-2&&(I=!1),P!=null&&(Tt(),Sr(P,null,C,d,!0),At()),de!=null&&(m.renderCache[de]=void 0),le&256){m.ctx.deactivate(d);return}const Ee=le&1&&ce,ee=!Jn(d);let $e;if(ee&&($e=w&&w.onVnodeBeforeUnmount)&&Lt($e,m,d),le&6)tt(d.component,C,k);else{if(le&128){d.suspense.unmount(C,k);return}Ee&&fn(d,null,m,"beforeUnmount"),le&64?d.type.remove(d,m,C,Fe,k):F&&!F.hasOnce&&(v!==Ve||X>0&&X&64)?Ae(F,m,C,!1,!0):(v===Ve&&X&384||!I&&le&16)&&Ae(j,m,C),k&&_e(d)}const Ye=ye!=null&&de==null;(ee&&($e=w&&w.onVnodeUnmounted)||Ee||Ye)&&ot(()=>{$e&&Lt($e,m,d),Ee&&fn(d,null,m,"unmounted"),Ye&&(d.el=null)},C)},_e=d=>{const{type:m,el:C,anchor:k,transition:I}=d;if(m===Ve){process.env.NODE_ENV!=="production"&&d.patchFlag>0&&d.patchFlag&2048&&I&&!I.persisted?d.children.forEach(w=>{w.type===je?o(w.el):_e(w)}):Ne(C,k);return}if(m===No){x(d);return}const v=()=>{o(C),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(d.shapeFlag&1&&I&&!I.persisted){const{leave:w,delayLeave:P}=I,j=()=>w(C,v);P?P(d.el,v,j):j()}else v()},Ne=(d,m)=>{let C;for(;d!==m;)C=p(d),o(d),d=C;o(m)},tt=(d,m,C)=>{process.env.NODE_ENV!=="production"&&d.type.__hmrId&&Dh(d);const{bum:k,scope:I,job:v,subTree:w,um:P,m:j,a:F}=d;Qa(j),Qa(F),k&&cr(k),I.stop(),v&&(v.flags|=8,te(w,d,m,C)),P&&ot(P,m),ot(()=>{d.isUnmounted=!0},m),process.env.NODE_ENV!=="production"&&Lh(d)},Ae=(d,m,C,k=!1,I=!1,v=0)=>{for(let w=v;w<d.length;w++)te(d[w],m,C,k,I)},me=d=>{if(d.shapeFlag&6)return me(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const m=p(d.anchor||d.el),C=m&&m[cu];return C?p(C):m};let Le=!1;const De=(d,m,C)=>{let k;d==null?m._vnode&&(te(m._vnode,null,null,!0),k=m._vnode.component):h(m._vnode||null,d,m,null,null,null,C),m._vnode=d,Le||(Le=!0,Ma(k),eu(),Le=!1)},Fe={p:h,um:te,m:q,r:_e,mt:V,mc:A,pc:K,pbc:E,n:me,o:e};return{render:De,hydrate:void 0,createApp:w0(De)}}function xs({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 dn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function z0(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tr(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Gt(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Tr(i,a)),a.type===no&&(a.patchFlag===-1&&(a=o[s]=Gt(a)),a.el=i.el),a.type===je&&!a.el&&(a.el=i.el),process.env.NODE_ENV!=="production"&&a.el&&(a.el.__vnode=a)}}function W0(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Ru(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ru(t)}function Qa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Lu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Lu(t.subTree):null}const Fu=e=>e.__isSuspense;function K0(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}const Ve=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),je=Symbol.for("v-cmt"),No=Symbol.for("v-stc"),Ar=[];let pt=null;function G(e=!1){Ar.push(pt=e?null:[])}function q0(){Ar.pop(),pt=Ar[Ar.length-1]||null}let kr=1;function Fo(e,t=!1){kr+=e,e<0&&pt&&t&&(pt.hasOnce=!0)}function ku(e){return e.dynamicChildren=kr>0?pt||qn:null,q0(),kr>0&&pt&&pt.push(e),e}function fe(e,t,n,r,o,s){return ku(ne(e,t,n,r,o,s,!0))}function we(e,t,n,r,o){return ku(Q(e,t,n,r,o,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){if(process.env.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=Oo.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const G0=(...e)=>Bu(...e),ju=({key:e})=>e??null,xo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||xe(e)||ue(e)?{i:Ue,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,r=0,o=null,s=e===Ve?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ju(t),ref:t&&xo(t),scopeId:su,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ue};return a?(Yi(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&U("VNode created with invalid key (NaN). VNode type:",l.type),kr>0&&!i&&pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&pt.push(l),l}const Q=process.env.NODE_ENV!=="production"?G0:Bu;function Bu(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===_u)&&(process.env.NODE_ENV!=="production"&&!e&&U(`Invalid vnode type when creating vnode: ${e}.`),e=je),Zt(e)){const a=Ht(e,t,!0);return n&&Yi(a,n),kr>0&&!s&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag=-2,a}if(Wu(e)&&(e=e.__vccOpts),t){t=Y0(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=qe(a)),ve(l)&&(Zn(l)&&!ie(l)&&(l=Re({},l)),t.style=ln(l))}const i=be(e)?1:Fu(e)?128:uu(e)?64:ve(e)?4:ue(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&Zn(e)&&(e=pe(e),U("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
28
|
-
Component that was made reactive: `,e)),
|
|
27
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const rt=K0;function U0(e){return H0(e)}function H0(e,t){B0();const n=Xr();n.__VUE__=!0,process.env.NODE_ENV!=="production"&&Bi(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:g=Ke,insertStaticContent:b}=e,h=(d,m,C,j=null,L=null,I=null,w=void 0,y=null,P=process.env.NODE_ENV!=="production"&&at?!1:!!m.dynamicChildren)=>{if(d===m)return;d&&!yn(d,m)&&(j=me(d),ee(d,L,I,!0),d=null),m.patchFlag===-2&&(P=!1,m.dynamicChildren=null);const{type:M,ref:ue,shapeFlag:G}=m;switch(M){case no:v(d,m,C,j);break;case Be:S(d,m,C,j);break;case No:d==null?T(m,C,j,w):process.env.NODE_ENV!=="production"&&F(d,m,C,w);break;case Re:J(d,m,C,j,L,I,w,y,P);break;default:G&1?W(d,m,C,j,L,I,w,y,P):G&6?z(d,m,C,j,L,I,w,y,P):G&64||G&128?M.process(d,m,C,j,L,I,w,y,P,Ve):process.env.NODE_ENV!=="production"&&H("Invalid VNode type:",M,`(${typeof M})`)}ue!=null&&L?Sr(ue,d&&d.ref,I,m||d,!m):ue==null&&d&&d.ref!=null&&Sr(d.ref,null,I,d,!0)},v=(d,m,C,j)=>{if(d==null)r(m.el=a(m.children),C,j);else{const L=m.el=d.el;m.children!==d.children&&c(L,m.children)}},S=(d,m,C,j)=>{d==null?r(m.el=l(m.children||""),C,j):m.el=d.el},T=(d,m,C,j)=>{[d.el,d.anchor]=b(d.children,m,C,j,d.el,d.anchor)},F=(d,m,C,j)=>{if(m.children!==d.children){const L=p(d.anchor);x(d),[m.el,m.anchor]=b(m.children,C,L,j)}else m.el=d.el,m.anchor=d.anchor},Y=({el:d,anchor:m},C,j)=>{let L;for(;d&&d!==m;)L=p(d),r(d,C,j),d=L;r(m,C,j)},x=({el:d,anchor:m})=>{let C;for(;d&&d!==m;)C=p(d),o(d),d=C;o(m)},W=(d,m,C,j,L,I,w,y,P)=>{if(m.type==="svg"?w="svg":m.type==="math"&&(w="mathml"),d==null)V(m,C,j,L,I,w,y,P);else{const M=d.el&&d.el._isVueCE?d.el:null;try{M&&M._beginPatch(),N(d,m,L,I,w,y,P)}finally{M&&M._endPatch()}}},V=(d,m,C,j,L,I,w,y)=>{let P,M;const{props:ue,shapeFlag:G,transition:ae,dirs:de}=d;if(P=d.el=i(d.type,I,ue&&ue.is,ue),G&8?u(P,d.children):G&16&&A(d.children,P,null,j,L,xs(d,I),w,y),de&&fn(d,null,j,"created"),ne(P,d,d.scopeId,w,j),ue){for(const Oe in ue)Oe!=="value"&&!Or(Oe)&&s(P,Oe,null,ue[Oe],I,j);"value"in ue&&s(P,"value",null,ue.value,I),(M=ue.onVnodeBeforeMount)&&Lt(M,j,d)}process.env.NODE_ENV!=="production"&&(Co(P,"__vnode",d,!0),Co(P,"__vueParentComponent",j,!0)),de&&fn(d,null,j,"beforeMount");const ye=z0(L,ae);if(ye&&ae.beforeEnter(P),r(P,m,C),(M=ue&&ue.onVnodeMounted)||ye||de){const Oe=process.env.NODE_ENV!=="production"&&at;rt(()=>{let Ee;process.env.NODE_ENV!=="production"&&(Ee=Ia(Oe));try{M&&Lt(M,j,d),ye&&ae.enter(P),de&&fn(d,null,j,"mounted")}finally{process.env.NODE_ENV!=="production"&&Ia(Ee)}},L)}},ne=(d,m,C,j,L)=>{if(C&&g(d,C),j)for(let I=0;I<j.length;I++)g(d,j[I]);if(L){let I=L.subTree;if(process.env.NODE_ENV!=="production"&&I.patchFlag>0&&I.patchFlag&2048&&(I=Ki(I.children)||I),m===I||Fu(I.type)&&(I.ssContent===m||I.ssFallback===m)){const w=L.vnode;ne(d,w,w.scopeId,w.slotScopeIds,L.parent)}}},A=(d,m,C,j,L,I,w,y,P=0)=>{for(let M=P;M<d.length;M++){const ue=d[M]=y?Gt(d[M]):Ot(d[M]);h(null,ue,m,C,j,L,I,w,y)}},N=(d,m,C,j,L,I,w)=>{const y=m.el=d.el;process.env.NODE_ENV!=="production"&&(y.__vnode=m);let{patchFlag:P,dynamicChildren:M,dirs:ue}=m;P|=d.patchFlag&16;const G=d.props||Te,ae=m.props||Te;let de;if(C&&dn(C,!1),(de=ae.onVnodeBeforeUpdate)&&Lt(de,C,m,d),ue&&fn(m,d,C,"beforeUpdate"),C&&dn(C,!0),process.env.NODE_ENV!=="production"&&at&&(P=0,w=!1,M=null),(G.innerHTML&&ae.innerHTML==null||G.textContent&&ae.textContent==null)&&u(y,""),M?(O(d.dynamicChildren,M,y,C,j,xs(m,L),I),process.env.NODE_ENV!=="production"&&Tr(d,m)):w||X(d,m,y,null,C,j,xs(m,L),I,!1),P>0){if(P&16)D(y,G,ae,C,L);else if(P&2&&G.class!==ae.class&&s(y,"class",null,ae.class,L),P&4&&s(y,"style",G.style,ae.style,L),P&8){const ye=m.dynamicProps;for(let Oe=0;Oe<ye.length;Oe++){const Ee=ye[Oe],le=G[Ee],Fe=ae[Ee];(Fe!==le||Ee==="value")&&s(y,Ee,le,Fe,L,C)}}P&1&&d.children!==m.children&&u(y,m.children)}else!w&&M==null&&D(y,G,ae,C,L);((de=ae.onVnodeUpdated)||ue)&&rt(()=>{de&&Lt(de,C,m,d),ue&&fn(m,d,C,"updated")},j)},O=(d,m,C,j,L,I,w)=>{for(let y=0;y<m.length;y++){const P=d[y],M=m[y],ue=P.el&&(P.type===Re||!yn(P,M)||P.shapeFlag&198)?f(P.el):C;h(P,M,ue,null,j,L,I,w,!0)}},D=(d,m,C,j,L)=>{if(m!==C){if(m!==Te)for(const I in m)!Or(I)&&!(I in C)&&s(d,I,m[I],null,L,j);for(const I in C){if(Or(I))continue;const w=C[I],y=m[I];w!==y&&I!=="value"&&s(d,I,y,w,L,j)}"value"in C&&s(d,"value",m.value,C.value,L)}},J=(d,m,C,j,L,I,w,y,P)=>{const M=m.el=d?d.el:a(""),ue=m.anchor=d?d.anchor:a("");let{patchFlag:G,dynamicChildren:ae,slotScopeIds:de}=m;process.env.NODE_ENV!=="production"&&(at||G&2048)&&(G=0,P=!1,ae=null),de&&(y=y?y.concat(de):de),d==null?(r(M,C,j),r(ue,C,j),A(m.children||[],C,ue,L,I,w,y,P)):G>0&&G&64&&ae&&d.dynamicChildren&&d.dynamicChildren.length===ae.length?(O(d.dynamicChildren,ae,C,L,I,w,y),process.env.NODE_ENV!=="production"?Tr(d,m):(m.key!=null||L&&m===L.subTree)&&Tr(d,m,!0)):X(d,m,C,ue,L,I,w,y,P)},z=(d,m,C,j,L,I,w,y,P)=>{m.slotScopeIds=y,d==null?m.shapeFlag&512?L.ctx.activate(m,C,j,w,P):R(m,C,j,L,I,w,P):k(d,m,P)},R=(d,m,C,j,L,I,w)=>{const y=d.component=Z0(d,j,L);if(process.env.NODE_ENV!=="production"&&y.type.__hmrId&&Ah(y),process.env.NODE_ENV!=="production"&&(bo(d),Bn(y,"mount")),eo(d)&&(y.ctx.renderer=Ve),process.env.NODE_ENV!=="production"&&Bn(y,"init"),em(y,!1,w),process.env.NODE_ENV!=="production"&&Un(y,"init"),process.env.NODE_ENV!=="production"&&at&&(d.el=null),y.asyncDep){if(L&&L.registerDep(y,B,w),!d.el){const P=y.subTree=Q(Be);S(null,P,m,C),d.placeholder=P.el}}else B(y,d,m,C,L,I,w);process.env.NODE_ENV!=="production"&&(Eo(),Un(y,"mount"))},k=(d,m,C)=>{const j=m.component=d.component;if(S0(d,m,C))if(j.asyncDep&&!j.asyncResolved){process.env.NODE_ENV!=="production"&&bo(m),$(j,m,C),process.env.NODE_ENV!=="production"&&Eo();return}else j.next=m,j.update();else m.el=d.el,j.vnode=m},B=(d,m,C,j,L,I,w)=>{const y=()=>{if(d.isMounted){let{next:G,bu:ae,u:de,parent:ye,vnode:Oe}=d;{const Vt=Ru(d);if(Vt){G&&(G.el=Oe.el,$(d,G,w)),Vt.asyncDep.then(()=>{rt(()=>{d.isUnmounted||M()},L)});return}}let Ee=G,le;process.env.NODE_ENV!=="production"&&bo(G||d.vnode),dn(d,!1),G?(G.el=Oe.el,$(d,G,w)):G=Oe,ae&&cr(ae),(le=G.props&&G.props.onVnodeBeforeUpdate)&&Lt(le,ye,G,Oe),dn(d,!0),process.env.NODE_ENV!=="production"&&Bn(d,"render");const Fe=qa(d);process.env.NODE_ENV!=="production"&&Un(d,"render");const It=d.subTree;d.subTree=Fe,process.env.NODE_ENV!=="production"&&Bn(d,"patch"),h(It,Fe,f(It.el),me(It),d,L,I),process.env.NODE_ENV!=="production"&&Un(d,"patch"),G.el=Fe.el,Ee===null&&C0(d,Fe.el),de&&rt(de,L),(le=G.props&&G.props.onVnodeUpdated)&&rt(()=>Lt(le,ye,G,Oe),L),process.env.NODE_ENV!=="production"&&ru(d),process.env.NODE_ENV!=="production"&&Eo()}else{let G;const{el:ae,props:de}=m,{bm:ye,m:Oe,parent:Ee,root:le,type:Fe}=d,It=Jn(m);dn(d,!1),ye&&cr(ye),!It&&(G=de&&de.onVnodeBeforeMount)&&Lt(G,Ee,m),dn(d,!0);{le.ce&&le.ce._hasShadowRoot()&&le.ce._injectChildStyle(Fe,d.parent?d.parent.type:void 0),process.env.NODE_ENV!=="production"&&Bn(d,"render");const Vt=d.subTree=qa(d);process.env.NODE_ENV!=="production"&&Un(d,"render"),process.env.NODE_ENV!=="production"&&Bn(d,"patch"),h(null,Vt,C,j,d,L,I),process.env.NODE_ENV!=="production"&&Un(d,"patch"),m.el=Vt.el}if(Oe&&rt(Oe,L),!It&&(G=de&&de.onVnodeMounted)){const Vt=m;rt(()=>Lt(G,Ee,Vt),L)}(m.shapeFlag&256||Ee&&Jn(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&d.a&&rt(d.a,L),d.isMounted=!0,process.env.NODE_ENV!=="production"&&Vh(d),m=C=j=null}};d.scope.on();const P=d.effect=new Dc(y);d.scope.off();const M=d.update=P.run.bind(P),ue=d.job=P.runIfDirty.bind(P);ue.i=d,ue.id=d.uid,P.scheduler=()=>rs(ue),dn(d,!0),process.env.NODE_ENV!=="production"&&(P.onTrack=d.rtc?G=>cr(d.rtc,G):void 0,P.onTrigger=d.rtg?G=>cr(d.rtg,G):void 0),M()},$=(d,m,C)=>{m.component=d;const j=d.vnode.props;d.vnode=m,d.next=null,D0(d,m.props,j,C),j0(d,m.children,C),Tt(),Ma(d),At()},X=(d,m,C,j,L,I,w,y,P=!1)=>{const M=d&&d.children,ue=d?d.shapeFlag:0,G=m.children,{patchFlag:ae,shapeFlag:de}=m;if(ae>0){if(ae&128){U(M,G,C,j,L,I,w,y,P);return}else if(ae&256){E(M,G,C,j,L,I,w,y,P);return}}de&8?(ue&16&&De(M,L,I),G!==M&&u(C,G)):ue&16?de&16?U(M,G,C,j,L,I,w,y,P):De(M,L,I,!0):(ue&8&&u(C,""),de&16&&A(G,C,j,L,I,w,y,P))},E=(d,m,C,j,L,I,w,y,P)=>{d=d||qn,m=m||qn;const M=d.length,ue=m.length,G=Math.min(M,ue);let ae;for(ae=0;ae<G;ae++){const de=m[ae]=P?Gt(m[ae]):Ot(m[ae]);h(d[ae],de,C,null,L,I,w,y,P)}M>ue?De(d,L,I,!0,!1,G):A(m,C,j,L,I,w,y,P,G)},U=(d,m,C,j,L,I,w,y,P)=>{let M=0;const ue=m.length;let G=d.length-1,ae=ue-1;for(;M<=G&&M<=ae;){const de=d[M],ye=m[M]=P?Gt(m[M]):Ot(m[M]);if(yn(de,ye))h(de,ye,C,null,L,I,w,y,P);else break;M++}for(;M<=G&&M<=ae;){const de=d[G],ye=m[ae]=P?Gt(m[ae]):Ot(m[ae]);if(yn(de,ye))h(de,ye,C,null,L,I,w,y,P);else break;G--,ae--}if(M>G){if(M<=ae){const de=ae+1,ye=de<ue?m[de].el:j;for(;M<=ae;)h(null,m[M]=P?Gt(m[M]):Ot(m[M]),C,ye,L,I,w,y,P),M++}}else if(M>ae)for(;M<=G;)ee(d[M],L,I,!0),M++;else{const de=M,ye=M,Oe=new Map;for(M=ye;M<=ae;M++){const tt=m[M]=P?Gt(m[M]):Ot(m[M]);tt.key!=null&&(process.env.NODE_ENV!=="production"&&Oe.has(tt.key)&&H("Duplicate keys found during update:",JSON.stringify(tt.key),"Make sure keys are unique."),Oe.set(tt.key,M))}let Ee,le=0;const Fe=ae-ye+1;let It=!1,Vt=0;const ar=new Array(Fe);for(M=0;M<Fe;M++)ar[M]=0;for(M=de;M<=G;M++){const tt=d[M];if(le>=Fe){ee(tt,L,I,!0);continue}let Rt;if(tt.key!=null)Rt=Oe.get(tt.key);else for(Ee=ye;Ee<=ae;Ee++)if(ar[Ee-ye]===0&&yn(tt,m[Ee])){Rt=Ee;break}Rt===void 0?ee(tt,L,I,!0):(ar[Rt-ye]=M+1,Rt>=Vt?Vt=Rt:It=!0,h(tt,m[Rt],C,null,L,I,w,y,P),le++)}const ua=It?W0(ar):qn;for(Ee=ua.length-1,M=Fe-1;M>=0;M--){const tt=ye+M,Rt=m[tt],fa=m[tt+1],da=tt+1<ue?fa.el||Lu(fa):j;ar[M]===0?h(null,Rt,C,da,L,I,w,y,P):It&&(Ee<0||M!==ua[Ee]?K(Rt,C,da,2):Ee--)}}},K=(d,m,C,j,L=null)=>{const{el:I,type:w,transition:y,children:P,shapeFlag:M}=d;if(M&6){K(d.component.subTree,m,C,j);return}if(M&128){d.suspense.move(m,C,j);return}if(M&64){w.move(d,m,C,Ve);return}if(w===Re){r(I,m,C);for(let G=0;G<P.length;G++)K(P[G],m,C,j);r(d.anchor,m,C);return}if(w===No){Y(d,m,C);return}if(j!==2&&M&1&&y)if(j===0)y.persisted&&!I[wt]?r(I,m,C):(y.beforeEnter(I),r(I,m,C),rt(()=>y.enter(I),L));else{const{leave:G,delayLeave:ae,afterLeave:de}=y,ye=()=>{d.ctx.isUnmounted?o(I):r(I,m,C)},Oe=()=>{const Ee=I._isLeaving||!!I[wt];I._isLeaving&&I[wt](!0),y.persisted&&!Ee?ye():G(I,()=>{ye(),de&&de()})};ae?ae(I,ye,Oe):Oe()}else r(I,m,C)},ee=(d,m,C,j=!1,L=!1)=>{const{type:I,props:w,ref:y,children:P,dynamicChildren:M,shapeFlag:ue,patchFlag:G,dirs:ae,cacheIndex:de,memo:ye}=d;if(G===-2&&(L=!1),y!=null&&(Tt(),Sr(y,null,C,d,!0),At()),de!=null&&(m.renderCache[de]=void 0),ue&256){m.ctx.deactivate(d);return}const Oe=ue&1&&ae,Ee=!Jn(d);let le;if(Ee&&(le=w&&w.onVnodeBeforeUnmount)&&Lt(le,m,d),ue&6)ct(d.component,C,j);else{if(ue&128){d.suspense.unmount(C,j);return}Oe&&fn(d,null,m,"beforeUnmount"),ue&64?d.type.remove(d,m,C,Ve,j):M&&!M.hasOnce&&(I!==Re||G>0&&G&64)?De(M,m,C,!1,!0):(I===Re&&G&384||!L&&ue&16)&&De(P,m,C),j&&_e(d)}const Fe=ye!=null&&de==null;(Ee&&(le=w&&w.onVnodeUnmounted)||Oe||Fe)&&rt(()=>{le&&Lt(le,m,d),Oe&&fn(d,null,m,"unmounted"),Fe&&(d.el=null)},C)},_e=d=>{const{type:m,el:C,anchor:j,transition:L}=d;if(m===Re){process.env.NODE_ENV!=="production"&&d.patchFlag>0&&d.patchFlag&2048&&L&&!L.persisted?d.children.forEach(w=>{w.type===Be?o(w.el):_e(w)}):xe(C,j);return}if(m===No){x(d);return}const I=()=>{o(C),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(d.shapeFlag&1&&L&&!L.persisted){const{leave:w,delayLeave:y}=L,P=()=>w(C,I);y?y(d.el,I,P):P()}else I()},xe=(d,m)=>{let C;for(;d!==m;)C=p(d),o(d),d=C;o(m)},ct=(d,m,C)=>{process.env.NODE_ENV!=="production"&&d.type.__hmrId&&Dh(d);const{bum:j,scope:L,job:I,subTree:w,um:y,m:P,a:M}=d;Qa(P),Qa(M),j&&cr(j),L.stop(),I&&(I.flags|=8,ee(w,d,m,C)),y&&rt(y,m),rt(()=>{d.isUnmounted=!0},m),process.env.NODE_ENV!=="production"&&Lh(d)},De=(d,m,C,j=!1,L=!1,I=0)=>{for(let w=I;w<d.length;w++)ee(d[w],m,C,j,L)},me=d=>{if(d.shapeFlag&6)return me(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const m=p(d.anchor||d.el),C=m&&m[cu];return C?p(C):m};let je=!1;const Pe=(d,m,C)=>{let j;d==null?m._vnode&&(ee(m._vnode,null,null,!0),j=m._vnode.component):h(m._vnode||null,d,m,null,null,null,C),m._vnode=d,je||(je=!0,Ma(j),eu(),je=!1)},Ve={p:h,um:ee,m:K,r:_e,mt:R,mc:A,pc:X,pbc:O,n:me,o:e};return{render:Pe,hydrate:void 0,createApp:w0(Pe)}}function xs({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 dn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function z0(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tr(e,t,n=!1){const r=e.children,o=t.children;if(se(r)&&se(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Gt(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Tr(i,a)),a.type===no&&(a.patchFlag===-1&&(a=o[s]=Gt(a)),a.el=i.el),a.type===Be&&!a.el&&(a.el=i.el),process.env.NODE_ENV!=="production"&&a.el&&(a.el.__vnode=a)}}function W0(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Ru(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ru(t)}function Qa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Lu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Lu(t.subTree):null}const Fu=e=>e.__isSuspense;function K0(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}const Re=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Be=Symbol.for("v-cmt"),No=Symbol.for("v-stc"),Ar=[];let pt=null;function q(e=!1){Ar.push(pt=e?null:[])}function q0(){Ar.pop(),pt=Ar[Ar.length-1]||null}let kr=1;function Fo(e,t=!1){kr+=e,e<0&&pt&&t&&(pt.hasOnce=!0)}function ku(e){return e.dynamicChildren=kr>0?pt||qn:null,q0(),kr>0&&pt&&pt.push(e),e}function fe(e,t,n,r,o,s){return ku(te(e,t,n,r,o,s,!0))}function we(e,t,n,r,o){return ku(Q(e,t,n,r,o,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){if(process.env.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=Oo.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const G0=(...e)=>Bu(...e),ju=({key:e})=>e??null,xo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Se(e)||ce(e)?{i:He,r:e,k:t,f:!!n}:e:null);function te(e,t=null,n=null,r=0,o=null,s=e===Re?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ju(t),ref:t&&xo(t),scopeId:su,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:He};return a?(Yi(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&H("VNode created with invalid key (NaN). VNode type:",l.type),kr>0&&!i&&pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&pt.push(l),l}const Q=process.env.NODE_ENV!=="production"?G0:Bu;function Bu(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===_u)&&(process.env.NODE_ENV!=="production"&&!e&&H(`Invalid vnode type when creating vnode: ${e}.`),e=Be),Zt(e)){const a=Ht(e,t,!0);return n&&Yi(a,n),kr>0&&!s&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag=-2,a}if(Wu(e)&&(e=e.__vccOpts),t){t=Y0(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=Ge(a)),ve(l)&&(Zn(l)&&!se(l)&&(l=Le({},l)),t.style=ln(l))}const i=be(e)?1:Fu(e)?128:uu(e)?64:ve(e)?4:ce(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&Zn(e)&&(e=pe(e),H("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
28
|
+
Component that was made reactive: `,e)),te(e,t,n,r,o,i,s,!0)}function Y0(e){return e?Zn(e)||Du(e)?Le({},e):e:null}function Ht(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?is(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ju(c),ref:t&&t.ref?n&&s?se(s)?s.concat(xo(t)):[s,xo(t)]:xo(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&se(a)?a.map(Uu):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ht(e.ssContent),ssFallback:e.ssFallback&&Ht(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fr(u,l.clone(u)),u}function Uu(e){const t=Ht(e);return se(e.children)&&(t.children=e.children.map(Uu)),t}function qe(e=" ",t=0){return Q(no,null,e,t)}function Ne(e="",t=!1){return t?(q(),we(Be,null,e)):Q(Be,null,e)}function Ot(e){return e==null||typeof e=="boolean"?Q(Be):se(e)?Q(Re,null,e.slice()):Zt(e)?Gt(e):Q(no,null,String(e))}function Gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ht(e)}function Yi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Yi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Du(t)?t._ctx=He:o===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function is(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Ge([t.class,r.class]));else if(o==="style")t.style=ln([t.style,r.style]);else if(Yr(o)){const s=t[o],i=r[o];i&&s!==i&&!(se(s)&&s.includes(i))?t[o]=s?[].concat(s,i):i:i==null&&s==null&&!Mr(o)&&(t[o]=i)}else o!==""&&(t[o]=r[o])}return t}function Lt(e,t,n,r=null){Et(e,t,7,[n,r])}const J0=Nu();let X0=0;function Z0(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||J0,s={uid:X0++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Tc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$u(r,o),emitsOptions:xu(r,o),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:r.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return process.env.NODE_ENV!=="production"?s.ctx=u0(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=E0.bind(null,s),e.ce&&e.ce(s),s}let Ue=null;const $t=()=>Ue||He;let ko,ri;{const e=Xr(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};ko=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),ri=t("__VUE_SSR_SETTERS__",n=>jr=n)}const ro=e=>{const t=Ue;return ko(e),e.scope.on(),()=>{e.scope.off(),ko(t)}},el=()=>{Ue&&Ue.scope.off(),ko(null)},Q0=or("slot,component");function oi(e,{isNativeTag:t}){(Q0(e)||t(e))&&H("Do not use built-in or reserved HTML elements as component id: "+e)}function Hu(e){return e.vnode.shapeFlag&4}let jr=!1;function em(e,t=!1,n=!1){t&&ri(t);const{props:r,children:o}=e.vnode,s=Hu(e);T0(e,r,s,t),k0(e,o,n||t);const i=s?tm(e,t):void 0;return t&&ri(!1),i}function tm(e,t){const n=e.type;if(process.env.NODE_ENV!=="production"){if(n.name&&oi(n.name,e.appContext.config),n.components){const o=Object.keys(n.components);for(let s=0;s<o.length;s++)oi(o[s],e.appContext.config)}if(n.directives){const o=Object.keys(n.directives);for(let s=0;s<o.length;s++)iu(o[s])}n.compilerOptions&&nm()&&H('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu),process.env.NODE_ENV!=="production"&&f0(e);const{setup:r}=n;if(r){Tt();const o=e.setupContext=r.length>1?om(e):null,s=ro(e),i=ir(r,e,0,[process.env.NODE_ENV!=="production"?xt(e.props):e.props,o]),a=Di(i);if(At(),s(),(a||e.sp)&&!Jn(e)&&gu(e),a){if(i.then(el,el),t)return i.then(l=>{tl(e,l,t)}).catch(l=>{Zr(l,e,0)});if(e.asyncDep=i,process.env.NODE_ENV!=="production"&&!e.suspense){const l=oo(e,n);H(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else tl(e,i,t)}else zu(e,t)}function tl(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)?(process.env.NODE_ENV!=="production"&&Zt(t)&&H("setup() should not return VNodes directly - return a render function instead."),process.env.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Gc(t),process.env.NODE_ENV!=="production"&&d0(e)):process.env.NODE_ENV!=="production"&&t!==void 0&&H(`setup() should return an object. Received: ${t===null?"null":typeof t}`),zu(e,n)}const nm=()=>!0;function zu(e,t,n){const r=e.type;e.render||(e.render=r.render||Ke);{const o=ro(e);Tt();try{h0(e)}finally{At(),o()}}process.env.NODE_ENV!=="production"&&!r.render&&e.render===Ke&&!t&&(r.template?H('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):H("Component is missing template or render function: ",r))}const nl=process.env.NODE_ENV!=="production"?{get(e,t){return Ro(),We(e,"get",""),e[t]},set(){return H("setupContext.attrs is readonly."),!1},deleteProperty(){return H("setupContext.attrs is readonly."),!1}}:{get(e,t){return We(e,"get",""),e[t]}};function rm(e){return new Proxy(e.slots,{get(t,n){return We(e,"get","$slots"),t[n]}})}function om(e){const t=n=>{if(process.env.NODE_ENV!=="production"&&(e.exposed&&H("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(se(n)?r="array":Se(n)&&(r="ref")),r!=="object"&&H(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(process.env.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,nl))},get slots(){return r||(r=rm(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,nl),slots:e.slots,emit:e.emit,expose:t}}function as(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gc(Kn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xn)return xn[n](e)},has(t,n){return n in t||n in xn}})):e.proxy}const sm=/(?:^|[-_])\w/g,im=e=>e.replace(sm,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ji(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function oo(e,t,n=!1){let r=Ji(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return r?im(r):n?"App":"Anonymous"}function Wu(e){return ce(e)&&"__vccOpts"in e}const oe=(e,t)=>{const n=_h(e,t,jr);if(process.env.NODE_ENV!=="production"){const r=$t();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function am(e,t,n){try{Fo(-1);const r=arguments.length;return r===2?ve(t)&&!se(t)?Zt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zt(n)&&(n=[n]),Q(e,t,n))}finally{Fo(1)}}function lm(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(f){if(!ve(f))return null;if(f.__isVue)return["div",e,"VueInstance"];if(Se(f)){Tt();const p=f.value;return At(),["div",{},["span",e,u(f)],"<",a(p),">"]}else{if(bt(f))return["div",{},["span",e,et(f)?"ShallowReactive":"Reactive"],"<",a(f),`>${Dt(f)?" (readonly)":""}`];if(Dt(f))return["div",{},["span",e,et(f)?"ShallowReadonly":"Readonly"],"<",a(f),">"]}return null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...s(f.$)]}};function s(f){const p=[];f.type.props&&f.props&&p.push(i("props",pe(f.props))),f.setupState!==Te&&p.push(i("setup",f.setupState)),f.data!==Te&&p.push(i("data",pe(f.data)));const g=l(f,"computed");g&&p.push(i("computed",g));const b=l(f,"inject");return b&&p.push(i("injected",b)),p.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),p}function i(f,p){return p=Le({},p),Object.keys(p).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(p).map(g=>["div",{},["span",r,g+": "],a(p[g],!1)])]]:["span",{}]}function a(f,p=!0){return typeof f=="number"?["span",t,f]:typeof f=="string"?["span",n,JSON.stringify(f)]:typeof f=="boolean"?["span",r,f]:ve(f)?["object",{object:p?pe(f):f}]:["span",n,String(f)]}function l(f,p){const g=f.type;if(ce(g))return;const b={};for(const h in f.ctx)c(g,h,p)&&(b[h]=f.ctx[h]);return b}function c(f,p,g){const b=f[g];if(se(b)&&b.includes(p)||ve(b)&&p in b||f.extends&&c(f.extends,p,g)||f.mixins&&f.mixins.some(h=>c(h,p,g)))return!0}function u(f){return et(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const rl="3.5.35",so=process.env.NODE_ENV!=="production"?H:Ke;process.env.NODE_ENV;process.env.NODE_ENV;/**
|
|
29
29
|
* @vue/runtime-dom v3.5.35
|
|
30
30
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
31
31
|
* @license MIT
|
|
32
|
-
**/let si;const ol=typeof window<"u"&&window.trustedTypes;if(ol)try{si=ol.createPolicy("vue",{createHTML:e=>e})}catch(e){process.env.NODE_ENV!=="production"&&so(`Error creating trusted types policy: ${e}`)}const Ku=si?e=>si.createHTML(e):e=>e,cm="http://www.w3.org/2000/svg",um="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,sl=Kt&&Kt.createElement("template"),fm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Kt.createElementNS(cm,e):t==="mathml"?Kt.createElementNS(um,e):n?Kt.createElement(e,{is:n}):Kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{sl.innerHTML=Ku(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=sl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rn="transition",pr="animation",Br=Symbol("_vtc"),qu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dm=
|
|
33
|
-
Expected function or array of functions, received type ${typeof e}.`),
|
|
32
|
+
**/let si;const ol=typeof window<"u"&&window.trustedTypes;if(ol)try{si=ol.createPolicy("vue",{createHTML:e=>e})}catch(e){process.env.NODE_ENV!=="production"&&so(`Error creating trusted types policy: ${e}`)}const Ku=si?e=>si.createHTML(e):e=>e,cm="http://www.w3.org/2000/svg",um="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,sl=Kt&&Kt.createElement("template"),fm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Kt.createElementNS(cm,e):t==="mathml"?Kt.createElementNS(um,e):n?Kt.createElement(e,{is:n}):Kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{sl.innerHTML=Ku(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=sl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rn="transition",pr="animation",Br=Symbol("_vtc"),qu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dm=Le({},fu,qu),pm=e=>(e.displayName="Transition",e.props=dm,e),ls=pm((e,{slots:t})=>am(Xh,hm(e),t)),pn=(e,t=[])=>{se(e)?e.forEach(n=>n(...t)):e&&e(...t)},il=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function hm(e){const t={};for(const D in e)D in qu||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=mm(o),h=b&&b[0],v=b&&b[1],{onBeforeEnter:S,onEnter:T,onEnterCancelled:F,onLeave:Y,onLeaveCancelled:x,onBeforeAppear:W=S,onAppear:V=T,onAppearCancelled:ne=F}=t,A=(D,J,z,R)=>{D._enterCancelled=R,hn(D,J?u:a),hn(D,J?c:i),z&&z()},N=(D,J)=>{D._isLeaving=!1,hn(D,f),hn(D,g),hn(D,p),J&&J()},O=D=>(J,z)=>{const R=D?V:T,k=()=>A(J,D,z);pn(R,[J,k]),al(()=>{hn(J,D?l:s),Wt(J,D?u:a),il(R)||ll(J,r,h,k)})};return Le(t,{onBeforeEnter(D){pn(S,[D]),Wt(D,s),Wt(D,i)},onBeforeAppear(D){pn(W,[D]),Wt(D,l),Wt(D,c)},onEnter:O(!1),onAppear:O(!0),onLeave(D,J){D._isLeaving=!0;const z=()=>N(D,J);Wt(D,f),D._enterCancelled?(Wt(D,p),fl(D)):(fl(D),Wt(D,p)),al(()=>{D._isLeaving&&(hn(D,f),Wt(D,g),il(Y)||ll(D,r,v,z))}),pn(Y,[D,z])},onEnterCancelled(D){A(D,!1,void 0,!0),pn(F,[D])},onAppearCancelled(D){A(D,!0,void 0,!0),pn(ne,[D])},onLeaveCancelled(D){N(D),pn(x,[D])}})}function mm(e){if(e==null)return null;if(ve(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}function Ss(e){const t=kp(e);return process.env.NODE_ENV!=="production"&&xh(t,"<transition> explicit duration"),t}function Wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Br]||(e[Br]=new Set)).add(t)}function hn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Br];n&&(n.delete(t),n.size||(e[Br]=void 0))}function al(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gm=0;function ll(e,t,n,r){const o=e._endId=++gm,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=vm(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,p),s()},p=g=>{g.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,p)}function vm(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${rn}Delay`),s=r(`${rn}Duration`),i=cl(o,s),a=r(`${pr}Delay`),l=r(`${pr}Duration`),c=cl(a,l);let u=null,f=0,p=0;t===rn?i>0&&(u=rn,f=i,p=s.length):t===pr?c>0&&(u=pr,f=c,p=l.length):(f=Math.max(i,c),u=f>0?i>c?rn:pr:null,p=u?u===rn?s.length:l.length:0);const g=u===rn&&/\b(?:transform|all)(?:,|$)/.test(r(`${rn}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:g}}function cl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ul(n)+ul(e[r])))}function ul(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fl(e){return(e?e.ownerDocument:document).body.offsetHeight}function _m(e,t,n){const r=e[Br];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jo=Symbol("_vod"),Gu=Symbol("_vsh"),Bo={name:"show",beforeMount(e,{value:t},{transition:n}){e[jo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),hr(e,!0),r.enter(e)):r.leave(e,()=>{hr(e,!1)}):hr(e,t))},beforeUnmount(e,{value:t}){hr(e,t)}};function hr(e,t){e.style.display=t?e[jo]:"none",e[Gu]=!t}const ym=Symbol(process.env.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),wm=/(?:^|;)\s*display\s*:/;function bm(e,t,n){const r=e.style,o=be(n);let s=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&wr(r,a,"")}else for(const i in t)n[i]==null&&wr(r,i,"");for(const i in n){i==="display"&&(s=!0);const a=n[i];a!=null?Nm(e,i,!be(t)&&t?t[i]:void 0,a)||wr(r,i,a):wr(r,i,"")}}else if(o){if(t!==n){const i=r[ym];i&&(n+=";"+i),r.cssText=n,s=wm.test(n)}}else t&&e.removeAttribute("style");jo in e&&(e[jo]=s?r.display:"",e[Gu]&&(r.display="none"))}const Em=/[^\\];\s*$/,dl=/\s*!important$/;function wr(e,t,n){if(se(n))n.forEach(r=>wr(e,t,r));else if(n==null&&(n=""),process.env.NODE_ENV!=="production"&&Em.test(n)&&so(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=Om(e,t);dl.test(n)?e.setProperty(Xt(r),n.replace(dl,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],Cs={};function Om(e,t){const n=Cs[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Cs[t]=r;r=Tn(r);for(let o=0;o<pl.length;o++){const s=pl[o]+r;if(s in e)return Cs[t]=s}return t}function Nm(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(r)&&n===r}const hl="http://www.w3.org/1999/xlink";function ml(e,t,n,r,o,s=Kp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(hl,t.slice(6,t.length)):e.setAttributeNS(hl,t,n):n==null||s&&!xc(n)?e.removeAttribute(t):e.setAttribute(t,s?"":dt(n)?String(n):n)}function gl(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ku(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=xc(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch(a){process.env.NODE_ENV!=="production"&&!i&&so(`Failed setting prop "${t}" on <${s.toLowerCase()}>: value ${n} is invalid.`,a)}i&&e.removeAttribute(o||t)}function xm(e,t,n,r){e.addEventListener(t,n,r)}function Sm(e,t,n,r){e.removeEventListener(t,n,r)}const vl=Symbol("_vei");function Cm(e,t,n,r,o=null){const s=e[vl]||(e[vl]={}),i=s[t];if(r&&i)i.value=process.env.NODE_ENV!=="production"?yl(r,t):r;else{const[a,l]=Tm(t);if(r){const c=s[t]=Pm(process.env.NODE_ENV!=="production"?yl(r,t):r,o);xm(e,a,c,l)}else i&&(Sm(e,a,i,l),s[t]=void 0)}}const _l=/(?:Once|Passive|Capture)$/;function Tm(e){let t;if(_l.test(e)){t={};let r;for(;r=e.match(_l);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xt(e.slice(2)),t]}let Ts=0;const Am=Promise.resolve(),Dm=()=>Ts||(Am.then(()=>Ts=0),Ts=Date.now());function Pm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(se(o)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const i=o.slice(),a=[r];for(let l=0;l<i.length&&!r._stopped;l++){const c=i[l];c&&Et(c,t,5,a)}}else Et(o,t,5,[r])};return n.value=e,n.attached=Dm(),n}function yl(e,t){return ce(e)||se(e)?e:(so(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
33
|
+
Expected function or array of functions, received type ${typeof e}.`),Ke)}const wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$m=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?_m(e,r,i):t==="style"?bm(e,n,r):Yr(t)?Mr(t)||Cm(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mm(e,t,r,i))?(gl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ml(e,t,r,i,s,t!=="value")):e._isVueCE&&(Im(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(r)))?gl(e,Ye(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ml(e,t,r,i))};function Mm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&ce(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return wl(t)&&be(n)?!1:t in e}function Im(e,t){const n=e._def.props;if(!n)return!1;const r=Ye(t);return Array.isArray(n)?n.some(o=>Ye(o)===r):Object.keys(n).some(o=>Ye(o)===r)}const Vm=["ctrl","shift","alt","meta"],Rm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Vm.some(n=>e[`${n}Key`]&&!t.includes(n))},Yu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=Rm[t[i]];if(a&&a(o,t))return}return e(o,...s)})},Lm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=Xt(o.key);if(t.some(i=>i===s||Lm[i]===s))return e(o)})},km=Le({patchProp:$m},fm);let bl;function jm(){return bl||(bl=U0(km))}const El=(...e)=>{jm().render(...e)};/**
|
|
34
34
|
* vue v3.5.35
|
|
35
35
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
36
36
|
* @license MIT
|
|
37
|
-
**/function Bm(){lm()}process.env.NODE_ENV!=="production"&&Bm();/*! Element Plus Icons Vue v2.3.2 */var Um=Pe({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),Hm=Um,zm=Pe({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Wm=zm,Km=Pe({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),qm=Km;var Gm=Pe({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),Ym=Gm;var Jm=Pe({name:"Check",__name:"check",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Ju=Jm;var Xm=Pe({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ne("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Zm=Xm,Qm=Pe({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Xu=Qm,eg=Pe({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ne("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tg=eg;var ng=Pe({name:"Close",__name:"close",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Xi=ng;var rg=Pe({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ii=rg;var og=Pe({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Ol=og,sg=Pe({name:"Remove",__name:"remove",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),ne("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ig=sg;var ag=Pe({name:"Search",__name:"search",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),lg=ag;var cg=Pe({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Zu=cg,ug=Pe({name:"Switch",__name:"switch",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),fg=ug,dg=Pe({name:"Upload",__name:"upload",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),pg=dg;var hg=Pe({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(G(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Qu=hg;const mg={class:"yc-page-window__header"},gg={class:"yc-page-window__title"},vg={key:0,class:"yc-page-window__nav"},_g={class:"yc-page-window__opera"},yg={class:"yc-page-window__content"},wg=Pe({__name:"YcPageWindow",props:{visible:{type:Boolean},title:{default:""},type:{default:""},showButtons:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},contentMinHeight:{default:"calc(100vh - 175px)"},cancelText:{default:"取消"},confirmText:{default:"保存"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},zIndex:{default:9},list:{default:()=>[]},row:{default:null},rowKey:{default:"id"}},emits:["update:visible","update:type","confirm","close","opened","changeType","prev","next","checkRow"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=he(!1),i=se(()=>r.loading||s.value),a=se(()=>r.type==="detail"?"详情":r.type==="edit"?"编辑":r.type==="add"?"新增":""),l=se(()=>r.list.length>0&&r.row!=null),c=se(()=>["detail","edit"].includes(r.type)),u=se(()=>r.type!=="detail");function f(){if(!r.row)return-1;const T=r.rowKey,R=r.row[T];return r.list.findIndex(Y=>Y[T]===R)}function p(T){const R=f();return R<0?!0:T==="prev"?R<=0:R>=r.list.length-1}function g(){const T=f();if(T<=0)return;const R=r.list[T-1];o("checkRow",R),o("prev",R)}function b(){const T=f();if(T<0||T>=r.list.length-1)return;const R=r.list[T+1];o("checkRow",R),o("next",R)}function h(){const T=r.type==="detail"?"edit":"detail";o("update:type",T),o("changeType")}function _(){o("update:visible",!1),o("close")}function S(){s.value=!0,o("confirm",T=>{s.value=!1,T&&_()})}return Je(()=>r.visible,T=>{T&&o("opened")}),Hi(()=>{r.visible&&_()}),t({closeWindow:_}),(T,R)=>{const Y=Ie("el-icon"),x=Ie("el-button"),W=Ie("el-tooltip"),M=Ie("el-scrollbar"),re=yu("loading");return G(),we(ls,{name:"yc-page-window-fade",mode:"out-in"},{default:ae(()=>[tr(ne("div",{class:"yc-page-window",style:ln({zIndex:e.zIndex})},[ne("div",mg,[ne("div",gg,[Q(Y,{class:"yc-page-window__back",onClick:_},{default:ae(()=>[Q(Z(qm))]),_:1}),ne("span",null,Te(e.title)+Te(a.value),1),l.value?(G(),fe("div",vg,[Q(W,{content:"上一条",placement:"top"},{default:ae(()=>[Q(x,{round:"",text:"",disabled:p("prev"),onClick:g},{default:ae(()=>[Q(Y,null,{default:ae(()=>[Q(Z(Ym))]),_:1})]),_:1},8,["disabled"])]),_:1}),Q(W,{content:"下一条",placement:"top"},{default:ae(()=>[Q(x,{round:"",text:"",disabled:p("next"),onClick:b},{default:ae(()=>[Q(Y,null,{default:ae(()=>[Q(Z(Hm))]),_:1})]),_:1},8,["disabled"])]),_:1})])):Oe("",!0),c.value?(G(),we(x,{key:1,text:"",class:"yc-page-window__type-switch",type:e.type==="detail"?"primary":"success",onClick:h},{default:ae(()=>[Q(Y,{class:"m-r-4"},{default:ae(()=>[Q(Z(fg))]),_:1}),Ke(" "+Te(e.type==="detail"?"切换编辑":"切换详情"),1)]),_:1},8,["type"])):Oe("",!0)]),ne("div",_g,[cn(T.$slots,"opera",{},void 0,!0),e.showButtons&&u.value?(G(),fe(Ve,{key:0},[Q(x,{text:"",disabled:i.value,onClick:_},{default:ae(()=>[Q(Y,{class:"m-r-4"},{default:ae(()=>[Q(Z(Xi))]),_:1}),Ke(" "+Te(e.cancelText),1)]),_:1},8,["disabled"]),e.showConfirm?(G(),we(x,{key:0,type:"primary",loading:i.value,disabled:e.disabled,onClick:S},{default:ae(()=>[Q(Y,{class:"m-r-4"},{default:ae(()=>[Q(Z(Ju))]),_:1}),Ke(" "+Te(e.confirmText),1)]),_:1},8,["loading","disabled"])):Oe("",!0)],64)):Oe("",!0)])]),tr((G(),fe("div",yg,[Q(M,{class:"yc-page-window__scroll"},{default:ae(()=>[e.visible?(G(),fe("div",{key:0,class:"yc-page-window__body",style:ln({minHeight:e.contentMinHeight})},[cn(T.$slots,"default",{},void 0,!0)],4)):Oe("",!0)]),_:3})])),[[re,i.value]])],4),[[Bo,e.visible]])]),_:3})}}}),cs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Uo=cs(wg,[["__scopeId","data-v-b3e784c3"]]);function ef(e){e!=null&&e.aiTask&&(Jl(e.aiTask),$p()),e!=null&&e.imageSelector&&wc(e.imageSelector)}function bg(e,t){(t==null?void 0:t.registerPageWindow)!==!1&&(e.component("YcPageWindow",Uo),e.component("SkyPageWindow",Uo))}const tf={install(e,t){ef(t),bg(e,t)}};function go(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function As(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
37
|
+
**/function Bm(){lm()}process.env.NODE_ENV!=="production"&&Bm();/*! Element Plus Icons Vue v2.3.2 */var Um=$e({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),Hm=Um,zm=$e({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Wm=zm,Km=$e({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),qm=Km;var Gm=$e({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),Ym=Gm;var Jm=$e({name:"Check",__name:"check",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Ju=Jm;var Xm=$e({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),te("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Zm=Xm,Qm=$e({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Xu=Qm,eg=$e({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),te("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tg=eg;var ng=$e({name:"Close",__name:"close",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Xi=ng;var rg=$e({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ii=rg;var og=$e({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Ol=og,sg=$e({name:"Remove",__name:"remove",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),te("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ig=sg;var ag=$e({name:"Search",__name:"search",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),lg=ag;var cg=$e({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Zu=cg,ug=$e({name:"Switch",__name:"switch",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),fg=ug,dg=$e({name:"Upload",__name:"upload",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),pg=dg;var hg=$e({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(q(),fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Qu=hg;const mg={class:"yc-page-window__header"},gg={class:"yc-page-window__title"},vg={key:0,class:"yc-page-window__nav"},_g={class:"yc-page-window__opera"},yg={class:"yc-page-window__content"},wg=$e({__name:"YcPageWindow",props:{visible:{type:Boolean},title:{default:""},type:{default:""},showButtons:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},contentMinHeight:{default:"calc(100vh - 175px)"},cancelText:{default:"取消"},confirmText:{default:"保存"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},zIndex:{default:9},list:{default:()=>[]},row:{default:null},rowKey:{default:"id"}},emits:["update:visible","update:type","confirm","close","opened","changeType","prev","next","checkRow"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=he(!1),i=oe(()=>r.loading||s.value),a=oe(()=>r.type==="detail"?"详情":r.type==="edit"?"编辑":r.type==="add"?"新增":""),l=oe(()=>r.list.length>0&&r.row!=null),c=oe(()=>["detail","edit"].includes(r.type)),u=oe(()=>r.type!=="detail");function f(){if(!r.row)return-1;const T=r.rowKey,F=r.row[T];return r.list.findIndex(Y=>Y[T]===F)}function p(T){const F=f();return F<0?!0:T==="prev"?F<=0:F>=r.list.length-1}function g(){const T=f();if(T<=0)return;const F=r.list[T-1];o("checkRow",F),o("prev",F)}function b(){const T=f();if(T<0||T>=r.list.length-1)return;const F=r.list[T+1];o("checkRow",F),o("next",F)}function h(){const T=r.type==="detail"?"edit":"detail";o("update:type",T),o("changeType")}function v(){o("update:visible",!1),o("close")}function S(){s.value=!0,o("confirm",T=>{s.value=!1,T&&v()})}return Je(()=>r.visible,T=>{T&&o("opened")}),Hi(()=>{r.visible&&v()}),t({closeWindow:v}),(T,F)=>{const Y=Ie("el-icon"),x=Ie("el-button"),W=Ie("el-tooltip"),V=Ie("el-scrollbar"),ne=yu("loading");return q(),we(ls,{name:"yc-page-window-fade",mode:"out-in"},{default:ie(()=>[tr(te("div",{class:"yc-page-window",style:ln({zIndex:e.zIndex})},[te("div",mg,[te("div",gg,[Q(Y,{class:"yc-page-window__back",onClick:v},{default:ie(()=>[Q(Z(qm))]),_:1}),te("span",null,Ae(e.title)+Ae(a.value),1),l.value?(q(),fe("div",vg,[Q(W,{content:"上一条",placement:"top"},{default:ie(()=>[Q(x,{round:"",text:"",disabled:p("prev"),onClick:g},{default:ie(()=>[Q(Y,null,{default:ie(()=>[Q(Z(Ym))]),_:1})]),_:1},8,["disabled"])]),_:1}),Q(W,{content:"下一条",placement:"top"},{default:ie(()=>[Q(x,{round:"",text:"",disabled:p("next"),onClick:b},{default:ie(()=>[Q(Y,null,{default:ie(()=>[Q(Z(Hm))]),_:1})]),_:1},8,["disabled"])]),_:1})])):Ne("",!0),c.value?(q(),we(x,{key:1,text:"",class:"yc-page-window__type-switch",type:e.type==="detail"?"primary":"success",onClick:h},{default:ie(()=>[Q(Y,{class:"m-r-4"},{default:ie(()=>[Q(Z(fg))]),_:1}),qe(" "+Ae(e.type==="detail"?"切换编辑":"切换详情"),1)]),_:1},8,["type"])):Ne("",!0)]),te("div",_g,[cn(T.$slots,"opera",{},void 0,!0),e.showButtons&&u.value?(q(),fe(Re,{key:0},[Q(x,{text:"",disabled:i.value,onClick:v},{default:ie(()=>[Q(Y,{class:"m-r-4"},{default:ie(()=>[Q(Z(Xi))]),_:1}),qe(" "+Ae(e.cancelText),1)]),_:1},8,["disabled"]),e.showConfirm?(q(),we(x,{key:0,type:"primary",loading:i.value,disabled:e.disabled,onClick:S},{default:ie(()=>[Q(Y,{class:"m-r-4"},{default:ie(()=>[Q(Z(Ju))]),_:1}),qe(" "+Ae(e.confirmText),1)]),_:1},8,["loading","disabled"])):Ne("",!0)],64)):Ne("",!0)])]),tr((q(),fe("div",yg,[Q(V,{class:"yc-page-window__scroll"},{default:ie(()=>[e.visible?(q(),fe("div",{key:0,class:"yc-page-window__body",style:ln({minHeight:e.contentMinHeight})},[cn(T.$slots,"default",{},void 0,!0)],4)):Ne("",!0)]),_:3})])),[[ne,i.value]])],4),[[Bo,e.visible]])]),_:3})}}}),cs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Uo=cs(wg,[["__scopeId","data-v-b3e784c3"]]);function ef(e){e!=null&&e.aiTask&&(Jl(e.aiTask),$p()),e!=null&&e.imageSelector&&wc(e.imageSelector)}function bg(e,t){(t==null?void 0:t.registerPageWindow)!==!1&&(e.component("YcPageWindow",Uo),e.component("SkyPageWindow",Uo))}const tf={install(e,t){ef(t),bg(e,t)}};function go(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function As(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
38
38
|
* pinia v2.3.1
|
|
39
39
|
* (c) 2025 Eduardo San Martin Morote
|
|
40
40
|
* @license MIT
|
|
41
|
-
*/let br;const Ho=e=>br=e,Eg=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Dn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Dr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Dr||(Dr={}));const Er=typeof window<"u";function nf(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Dn(o)&&Dn(r)&&!
|
|
41
|
+
*/let br;const Ho=e=>br=e,Eg=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Dn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Dr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Dr||(Dr={}));const Er=typeof window<"u";function nf(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Dn(o)&&Dn(r)&&!Se(r)&&!bt(r)?e[n]=nf(o,r):e[n]=r}return e}const rf=()=>{};function Nl(e,t,n,r=rf){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Mi()&&Ac(o),o}function Hn(e,...t){e.slice().forEach(n=>{n(...t)})}const Og=e=>e(),xl=Symbol(),Ds=Symbol();function ai(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Dn(o)&&Dn(r)&&e.hasOwnProperty(n)&&!Se(r)&&!bt(r)?e[n]=ai(o,r):e[n]=r}return e}const Ng=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function xg(e){return!Dn(e)||!e.hasOwnProperty(Ng)}const{assign:_t}=Object;function Sl(e){return!!(Se(e)&&e.effect)}function Cl(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const u=process.env.NODE_ENV!=="production"&&r?$a(he(o?o():{}).value):$a(n.state.value[e]);return _t(u,s,Object.keys(i||{}).reduce((f,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),f[p]=Kn(oe(()=>{Ho(n);const g=n._s.get(e);return i[p].call(g,g)})),f),{}))}return l=li(e,c,t,n,r,!0),l}function li(e,t,n={},r,o,s){let i;const a=_t({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&(l.onTrigger=N=>{c?g=N:c==!1&&!V._hotUpdating&&(Array.isArray(g)?g.push(N):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,u,f=[],p=[],g;const b=r.state.value[e];!s&&!b&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const h=he({});let v;function S(N){let O;c=u=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof N=="function"?(N(r.state.value[e]),O={type:Dr.patchFunction,storeId:e,events:g}):(ai(r.state.value[e],N),O={type:Dr.patchObject,payload:N,storeId:e,events:g});const D=v=Symbol();er().then(()=>{v===D&&(c=!0)}),u=!0,Hn(f,O,r.state.value[e])}const T=s?function(){const{state:O}=n,D=O?O():{};this.$patch(J=>{_t(J,D)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:rf;function F(){i.stop(),f=[],p=[],r._s.delete(e)}const Y=(N,O="")=>{if(xl in N)return N[Ds]=O,N;const D=function(){Ho(r);const J=Array.from(arguments),z=[],R=[];function k(X){z.push(X)}function B(X){R.push(X)}Hn(p,{args:J,name:D[Ds],store:V,after:k,onError:B});let $;try{$=N.apply(this&&this.$id===e?this:V,J)}catch(X){throw Hn(R,X),X}return $ instanceof Promise?$.then(X=>(Hn(z,X),X)).catch(X=>(Hn(R,X),Promise.reject(X))):(Hn(z,$),$)};return D[xl]=!0,D[Ds]=O,D},x=Kn({actions:{},getters:{},state:[],hotState:h}),W={_p:r,$id:e,$onAction:Nl.bind(null,p),$patch:S,$reset:T,$subscribe(N,O={}){const D=Nl(f,N,O.detached,()=>J()),J=i.run(()=>Je(()=>r.state.value[e],z=>{(O.flush==="sync"?u:c)&&N({storeId:e,type:Dr.direct,events:g},z)},_t({},l,O)));return D},$dispose:F},V=sr(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Er?_t({_hmrPayload:x,_customProperties:Kn(new Set)},W):W);r._s.set(e,V);const A=(r._a&&r._a.runWithContext||Og)(()=>r._e.run(()=>(i=Gp()).run(()=>t({action:Y}))));for(const N in A){const O=A[N];if(Se(O)&&!Sl(O)||bt(O))process.env.NODE_ENV!=="production"&&o?go(h.value,N,wo(A,N)):s||(b&&xg(O)&&(Se(O)?O.value=b[N]:ai(O,b[N])),r.state.value[e][N]=O),process.env.NODE_ENV!=="production"&&x.state.push(N);else if(typeof O=="function"){const D=process.env.NODE_ENV!=="production"&&o?O:Y(O,N);A[N]=D,process.env.NODE_ENV!=="production"&&(x.actions[N]=O),a.actions[N]=O}else process.env.NODE_ENV!=="production"&&Sl(O)&&(x.getters[N]=s?n.getters[N]:O,Er&&(A._getters||(A._getters=Kn([]))).push(N))}if(_t(V,A),_t(pe(V),A),Object.defineProperty(V,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?h.value:r.state.value[e],set:N=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");S(O=>{_t(O,N)})}}),process.env.NODE_ENV!=="production"&&(V._hotUpdate=Kn(N=>{V._hotUpdating=!0,N._hmrPayload.state.forEach(O=>{if(O in V.$state){const D=N.$state[O],J=V.$state[O];typeof D=="object"&&Dn(D)&&Dn(J)?nf(D,J):N.$state[O]=J}go(V,O,wo(N.$state,O))}),Object.keys(V.$state).forEach(O=>{O in N.$state||As(V,O)}),c=!1,u=!1,r.state.value[e]=wo(N._hmrPayload,"hotState"),u=!0,er().then(()=>{c=!0});for(const O in N._hmrPayload.actions){const D=N[O];go(V,O,Y(D,O))}for(const O in N._hmrPayload.getters){const D=N._hmrPayload.getters[O],J=s?oe(()=>(Ho(r),D.call(V,V))):D;go(V,O,J)}Object.keys(V._hmrPayload.getters).forEach(O=>{O in N._hmrPayload.getters||As(V,O)}),Object.keys(V._hmrPayload.actions).forEach(O=>{O in N._hmrPayload.actions||As(V,O)}),V._hmrPayload=N._hmrPayload,V._getters=N._getters,V._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Er){const N={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(O=>{Object.defineProperty(V,O,_t({value:V[O]},N))})}return r._p.forEach(N=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Er){const O=i.run(()=>N({store:V,app:r._a,pinia:r,options:a}));Object.keys(O||{}).forEach(D=>V._customProperties.add(D)),_t(V,O)}else _t(V,i.run(()=>N({store:V,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&V.$state&&typeof V.$state=="object"&&typeof V.$state.constructor=="function"&&!V.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
42
42
|
state: () => new MyClass()
|
|
43
|
-
Found in store "${
|
|
43
|
+
Found in store "${V.$id}".`),b&&s&&n.hydrate&&n.hydrate(V.$state,b),c=!0,u=!0,V}/*! #__NO_SIDE_EFFECTS__ */function Sg(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const c=Bh();if(a=(process.env.NODE_ENV==="test"&&br&&br._testing?null:a)||(c?ft(Eg,null):null),a&&Ho(a),process.env.NODE_ENV!=="production"&&!br)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
44
44
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
45
|
-
This will fail in production.`);a=br,a._s.has(r)||(s?li(r,t,o,a):Cl(r,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(r);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+r,p=s?li(f,t,o,a,!0):Cl(f,_t({},o),a,!0);l._hotUpdate(p),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Er){const f=$t();if(f&&f.proxy&&!l){const p=f.proxy,g="_pStores"in p?p._pStores:p._pStores={};g[r]=u}}return u}return i.$id=r,i}function Cg(e){{const t=pe(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=
|
|
45
|
+
This will fail in production.`);a=br,a._s.has(r)||(s?li(r,t,o,a):Cl(r,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(r);if(process.env.NODE_ENV!=="production"&&l){const f="__hot:"+r,p=s?li(f,t,o,a,!0):Cl(f,_t({},o),a,!0);l._hotUpdate(p),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Er){const f=$t();if(f&&f.proxy&&!l){const p=f.proxy,g="_pStores"in p?p._pStores:p._pStores={};g[r]=u}}return u}return i.$id=r,i}function Cg(e){{const t=pe(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=oe({get:()=>e[r],set(s){e[r]=s}}):(Se(o)||bt(o))&&(n[r]=wo(e,r))}return n}}const Ps="__YC_COMPONENT_AI_DIALOG__",ci="yc-component:ai-dialog-open";function Tg(){const e=globalThis;return e[Ps]||(e[Ps]=sr({visible:!1,options:{}})),e[Ps]}const kt=Tg();function us(e={}){kt.options={...e},kt.visible=!0,globalThis.dispatchEvent(new CustomEvent(ci,{detail:{...e}}))}function Zi(){kt.visible=!1}function Ag(e={}){us(e)}function of(e){const{tasks:t,panelVisible:n,panelMinimized:r,dialogVisible:o,runningCount:s,activeCount:i,panelTitle:a,panelSubtitle:l}=Cg(e);return{tasks:t,panelVisible:n,panelMinimized:r,dialogVisible:o,runningCount:s,activeCount:i,panelTitle:a,panelSubtitle:l,openUseDialog:c=>{us(c??{}),e.openDialog(c??{})},closeUseDialog:()=>e.closeDialog(),openTaskPanel:()=>e.showPanel(),hideTaskPanel:()=>e.hidePanel(),togglePanelMinimize:()=>e.toggleMinimize(),submitTask:c=>e.enqueue(c),cancelTask:c=>e.cancelTask(c),cancelAll:()=>e.cancelAll(),clearFinished:()=>e.clearFinished(),removeTask:c=>e.removeTask(c),loadTaskResult:c=>e.loadTaskResult(c),refreshTasks:()=>e.refreshActiveTasks(),onTaskFinish:c=>e.onTaskFinish(c)}}const Dg="__YC_AI_TASK_CTX_KEY__",Pg="__YC_AI_TASK_STORE_KEY__";function sf(e){const t=globalThis;return t[e]||(t[e]=Symbol(e)),t[e]}const af=sf(Dg),lf=sf(Pg),$g=async e=>(await rr().post("/yc-ai/workflows/runs",e)).data,cf=async e=>(await rr().get(`/yc-ai/workflows/runs/${e}`)).data,Mg=e=>rr().post(`/yc-ai/workflows/runs/${e}/cancel`),Ig=(e,t)=>rr().post(`/yc-ai/workflows/runs/${e}/client-continue`,t);async function ui(e,t){return Mp(e,t)}function Vg(e,t){const n=e.trim();if(!n)return t;let r;try{n.includes("function")?r=new Function("result",`
|
|
46
46
|
${n}
|
|
47
47
|
if (typeof handler === 'function') return handler(result);
|
|
48
48
|
throw new Error('请定义 function handler(result) { ... }');
|
|
49
|
-
`):r=new Function("result",`return (${n})(result);`)}catch(o){throw new Error(`自定义脚本语法错误: ${o instanceof Error?o.message:String(o)}`)}try{return r(t)}catch(o){throw new Error(`自定义脚本执行失败: ${o instanceof Error?o.message:String(o)}`)}}async function Rg(e){return(await $g({projectId:Uf(),freeText:e.freeText,promptId:e.promptId,autoMatch:e.autoMatch})).runId}async function Lg(e,t){var r,o,s,i;const n=await cf(e);if(n.status==="WAITING_CLIENT"&&n.waitingStepKey&&n.waitingClientScript){(r=t==null?void 0:t.onProgress)==null||r.call(t,60,`执行脚本:${n.waitingStepKey}`);let a={};n.waitingArtifactId&&(a=await ui(e,n.waitingArtifactId));const l=Vg(n.waitingClientScript,a);return await Ig(e,{stepKey:n.waitingStepKey,output:l??{}}),null}if(n.status==="SUCCEEDED"){if(n.finalArtifactId){(o=t==null?void 0:t.onProgress)==null||o.call(t,95,"加载结果…");const a=await ui(e,n.finalArtifactId);return(s=t==null?void 0:t.onProgress)==null||s.call(t,100,"已完成"),{phase:"SUCCEEDED",runId:e,result:a}}return{phase:"SUCCEEDED",runId:e,result:{}}}return n.status==="FAILED"?{phase:"FAILED",runId:e,errorMessage:n.errorMessage||"工作流失败"}:n.status==="CANCELLED"?{phase:"FAILED",runId:e,errorMessage:"已取消"}:((i=t==null?void 0:t.onProgress)==null||i.call(t,jg(n),Bg(n)),null)}async function Fg(e){const t=await cf(e);return t.status!=="SUCCEEDED"||!t.finalArtifactId?null:await ui(e,t.finalArtifactId)}async function kg(e){await Mg(e)}function jg(e){if(e.status==="PENDING")return 8;const t=e.steps??[];if(!t.length)return 35;const n=t.filter(r=>r.status==="SUCCEEDED"||r.status==="SKIPPED").length;return Math.min(90,Math.round(20+n/t.length*70))}function Bg(e){var n;if(e.status==="PENDING")return"排队中…";const t=(n=e.steps)==null?void 0:n.find(r=>r.status==="RUNNING");return t?`执行中:${t.stepKey}`:"后端处理中…"}const uf=80;function Ug(){try{const e=localStorage.getItem(Xl());if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>n&&n.id&&n.createdAt).sort((n,r)=>r.createdAt-n.createdAt).slice(0,uf):[]}catch{return[]}}function Hg(e){const t=e.slice(0,uf).map(n=>({id:n.id,title:n.title,freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch,status:n.status,progress:n.progress,summary:n.summary,runId:n.runId,errorMessage:n.errorMessage,createdAt:n.createdAt,finishedAt:n.finishedAt}));localStorage.setItem(Xl(),JSON.stringify(t))}function zg(e){return{...e,logs:e.runId?[`ℹ 已从本地恢复,runId=${e.runId}`]:[],result:void 0}}function on(e){return e==="pending"||e==="running"}let fi=0,mr=null;const Wg=5e3;function Kg(){return fi+=1,`ai_task_${Date.now()}_${fi}`}function qg(e,t=28){const n=e.trim();return n.length<=t?n:`${n.slice(0,t)}…`}const Qi=Sg("ycAiTask",()=>{const e=he([]),t=he(!1),n=he(!1),r=he(!1),o=he({}),s=he(!1),i=new Set,a=new Map,l=new Set;function c(O,H){return{taskId:O.id,runId:O.runId,title:O.title,freeText:O.freeText,promptId:O.promptId,result:H,finishedAt:O.finishedAt??Date.now()}}function u(O,H){var _e;const q=e.value.find(Ne=>Ne.id===O);if(!(q!=null&&q.runId))return;const te=c(q,H);(_e=a.get(O))==null||_e(te),a.delete(O),l.forEach(Ne=>Ne(te))}function f(O){return l.add(O),()=>l.delete(O)}const p=se(()=>e.value.filter(O=>on(O.status)).length),g=se(()=>e.value.filter(O=>O.status==="running").length),b=se(()=>p.value>0?"AI 处理中":e.value.some(O=>O.status==="failed")?"部分任务失败":"AI 任务"),h=se(()=>{const O=e.value.length,H=p.value;return O===0?"暂无任务":H>0?`${H}/${O} 项任务进行中`:`${O} 项任务已完成`});function _(){Hg(e.value)}function S(O,H){const q=e.value.findIndex(te=>te.id===O);q>=0&&(e.value[q]={...e.value[q],...H},_())}function T(O,H){const q=e.value.find(te=>te.id===O);q&&(q.logs.unshift(H),q.logs.length>20&&q.logs.pop())}function R(){t.value=!0,n.value=!1}function Y(){t.value=!1}function x(){n.value=!n.value}function W(O={}){o.value={...O},r.value=!0,us(O)}function M(){r.value=!1,Zi()}function re(){mr||(mr=setInterval(()=>{N()},Wg))}function A(){p.value>0||mr&&(clearInterval(mr),mr=null)}async function N(){const O=e.value.filter(H=>H.runId&&on(H.status));if(!O.length){A();return}await Promise.all(O.map(H=>E(H.id)))}async function E(O){if(i.has(O))return;const H=e.value.find(q=>q.id===O);if(!(!(H!=null&&H.runId)||!on(H.status))){i.add(O);try{const q=await Lg(H.runId,{onProgress:(te,_e)=>S(O,{progress:te,summary:_e,status:"running"})});if(!q)return;if(q.phase==="SUCCEEDED"){const te=q.result??{};S(O,{status:"succeeded",progress:100,summary:"已完成",result:te,runId:q.runId,finishedAt:Date.now()}),u(O,te)}else S(O,{status:q.errorMessage==="已取消"?"cancelled":"failed",progress:100,summary:q.errorMessage||"失败",errorMessage:q.errorMessage,runId:q.runId,finishedAt:Date.now()});A()}catch(q){const te=q instanceof Error?q.message:"同步失败";T(O,`✗ ${te}`)}finally{i.delete(O)}}}async function D(){if(s.value)return;s.value=!0;const O=Ug();O.length&&(e.value=O.map(zg),fi=O.length);const H=e.value.filter(q=>q.runId&&on(q.status));H.length&&(await Promise.all(H.map(q=>E(q.id))),re());for(const q of e.value)q.status==="pending"&&!q.runId&&S(q.id,{status:"failed",summary:"页面刷新前未提交成功",finishedAt:Date.now()})}function J(O){const H=Kg(),q={id:H,title:O.title??qg(O.freeText),freeText:O.freeText.trim(),promptId:O.promptId,autoMatch:O.autoMatch,status:"pending",progress:0,summary:"正在提交…",createdAt:Date.now(),logs:[]};return e.value.unshift(q),_(),O.onFinish&&a.set(H,O.onFinish),O.showPanel!==!1&&R(),z(H),H}async function z(O){const H=e.value.find(q=>q.id===O);if(H)try{const q=await Rg({freeText:H.freeText,promptId:H.promptId,autoMatch:H.autoMatch});S(O,{runId:q,status:"running",progress:10,summary:"后端异步处理中…"}),T(O,`▶ 已提交 runId=${q}`),re(),E(O)}catch(q){const te=q instanceof Error?q.message:"提交失败";S(O,{status:"failed",progress:100,summary:te,errorMessage:te,finishedAt:Date.now()})}}async function V(O){const H=e.value.find(te=>te.id===O);if(!(H!=null&&H.runId))return null;if(H.result)return H.result;const q=await Fg(H.runId);return q&&S(O,{result:q}),q}async function L(O){const H=e.value.find(q=>q.id===O);if(H!=null&&H.runId&&on(H.status))try{await kg(H.runId)}catch{}H&&on(H.status)&&S(O,{status:"cancelled",summary:"已取消",finishedAt:Date.now()}),a.delete(O),A()}function B(){for(const O of e.value)on(O.status)&&L(O.id)}function $(){e.value=e.value.filter(O=>on(O.status)),_()}function K(O){L(O),a.delete(O),e.value=e.value.filter(H=>H.id!==O),_()}return{tasks:e,panelVisible:t,panelMinimized:n,dialogVisible:r,dialogOptions:o,hydrated:s,runningCount:p,activeCount:g,panelTitle:b,panelSubtitle:h,hydrate:D,showPanel:R,hidePanel:Y,toggleMinimize:x,openDialog:W,closeDialog:M,enqueue:J,onTaskFinish:f,refreshActiveTasks:N,loadTaskResult:V,cancelTask:L,cancelAll:B,clearFinished:$,removeTask:K}}),di={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Gg=["","default","small","large"];var ff=typeof global=="object"&&global&&global.Object===Object&&global,Yg=typeof self=="object"&&self&&self.Object===Object&&self,en=ff||Yg||Function("return this")(),un=en.Symbol,df=Object.prototype,Jg=df.hasOwnProperty,Xg=df.toString,gr=un?un.toStringTag:void 0;function Zg(e){var t=Jg.call(e,gr),n=e[gr];try{e[gr]=void 0;var r=!0}catch{}var o=Xg.call(e);return r&&(t?e[gr]=n:delete e[gr]),o}var Qg=Object.prototype,ev=Qg.toString;function tv(e){return ev.call(e)}var nv="[object Null]",rv="[object Undefined]",Tl=un?un.toStringTag:void 0;function Vn(e){return e==null?e===void 0?rv:nv:Tl&&Tl in Object(e)?Zg(e):tv(e)}function io(e){return e!=null&&typeof e=="object"}var ov="[object Symbol]";function ea(e){return typeof e=="symbol"||io(e)&&Vn(e)==ov}function sv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ta=Array.isArray,Al=un?un.prototype:void 0,Dl=Al?Al.toString:void 0;function pf(e){if(typeof e=="string")return e;if(ta(e))return sv(e,pf)+"";if(ea(e))return Dl?Dl.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iv="[object AsyncFunction]",av="[object Function]",lv="[object GeneratorFunction]",cv="[object Proxy]";function uv(e){if(!hf(e))return!1;var t=Vn(e);return t==av||t==lv||t==iv||t==cv}var $s=en["__core-js_shared__"],Pl=function(){var e=/[^.]+$/.exec($s&&$s.keys&&$s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fv(e){return!!Pl&&Pl in e}var dv=Function.prototype,pv=dv.toString;function Rn(e){if(e!=null){try{return pv.call(e)}catch{}try{return e+""}catch{}}return""}var hv=/[\\^$.*+?()[\]{}|]/g,mv=/^\[object .+?Constructor\]$/,gv=Function.prototype,vv=Object.prototype,_v=gv.toString,yv=vv.hasOwnProperty,wv=RegExp("^"+_v.call(yv).replace(hv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bv(e){if(!hf(e)||fv(e))return!1;var t=uv(e)?wv:mv;return t.test(Rn(e))}function Ev(e,t){return e==null?void 0:e[t]}function Ln(e,t){var n=Ev(e,t);return bv(n)?n:void 0}var pi=Ln(en,"WeakMap"),$l=function(){try{var e=Ln(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ov(e,t,n){t=="__proto__"&&$l?$l(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nv(e,t){return e===t||e!==e&&t!==t}var xv=Object.prototype,zy=xv.hasOwnProperty;var Sv=9007199254740991;function Cv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Sv}var Wy=Object.prototype;var Tv="[object Arguments]";function Ml(e){return io(e)&&Vn(e)==Tv}var mf=Object.prototype,Av=mf.hasOwnProperty,Dv=mf.propertyIsEnumerable,Ky=Ml(function(){return arguments}())?Ml:function(e){return io(e)&&Av.call(e,"callee")&&!Dv.call(e,"callee")};var gf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Il=gf&&typeof module=="object"&&module&&!module.nodeType&&module,Pv=Il&&Il.exports===gf,Vl=Pv?en.Buffer:void 0,qy=Vl?Vl.isBuffer:void 0;var $v="[object Arguments]",Mv="[object Array]",Iv="[object Boolean]",Vv="[object Date]",Rv="[object Error]",Lv="[object Function]",Fv="[object Map]",kv="[object Number]",jv="[object Object]",Bv="[object RegExp]",Uv="[object Set]",Hv="[object String]",zv="[object WeakMap]",Wv="[object ArrayBuffer]",Kv="[object DataView]",qv="[object Float32Array]",Gv="[object Float64Array]",Yv="[object Int8Array]",Jv="[object Int16Array]",Xv="[object Int32Array]",Zv="[object Uint8Array]",Qv="[object Uint8ClampedArray]",e_="[object Uint16Array]",t_="[object Uint32Array]",Me={};Me[qv]=Me[Gv]=Me[Yv]=Me[Jv]=Me[Xv]=Me[Zv]=Me[Qv]=Me[e_]=Me[t_]=!0;Me[$v]=Me[Mv]=Me[Wv]=Me[Iv]=Me[Kv]=Me[Vv]=Me[Rv]=Me[Lv]=Me[Fv]=Me[kv]=Me[jv]=Me[Bv]=Me[Uv]=Me[Hv]=Me[zv]=!1;function n_(e){return io(e)&&Cv(e.length)&&!!Me[Vn(e)]}function r_(e){return function(t){return e(t)}}var vf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pr=vf&&typeof module=="object"&&module&&!module.nodeType&&module,o_=Pr&&Pr.exports===vf,Ms=o_&&ff.process,Rl=function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||Ms&&Ms.binding&&Ms.binding("util")}catch{}}(),Ll=Rl&&Rl.isTypedArray,Gy=Ll?r_(Ll):n_,s_=Object.prototype,Yy=s_.hasOwnProperty;function _f(e,t){return function(n){return e(t(n))}}var Jy=_f(Object.keys,Object),i_=Object.prototype,Xy=i_.hasOwnProperty;var a_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l_=/^\w*$/;function c_(e,t){if(ta(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ea(e)?!0:l_.test(e)||!a_.test(e)||t!=null&&e in Object(t)}var Ur=Ln(Object,"create");function u_(){this.__data__=Ur?Ur(null):{},this.size=0}function f_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var d_="__lodash_hash_undefined__",p_=Object.prototype,h_=p_.hasOwnProperty;function m_(e){var t=this.__data__;if(Ur){var n=t[e];return n===d_?void 0:n}return h_.call(t,e)?t[e]:void 0}var g_=Object.prototype,v_=g_.hasOwnProperty;function __(e){var t=this.__data__;return Ur?t[e]!==void 0:v_.call(t,e)}var y_="__lodash_hash_undefined__";function w_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ur&&t===void 0?y_:t,this}function Pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pn.prototype.clear=u_;Pn.prototype.delete=f_;Pn.prototype.get=m_;Pn.prototype.has=__;Pn.prototype.set=w_;function b_(){this.__data__=[],this.size=0}function fs(e,t){for(var n=e.length;n--;)if(Nv(e[n][0],t))return n;return-1}var E_=Array.prototype,O_=E_.splice;function N_(e){var t=this.__data__,n=fs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():O_.call(t,n,1),--this.size,!0}function x_(e){var t=this.__data__,n=fs(t,e);return n<0?void 0:t[n][1]}function S_(e){return fs(this.__data__,e)>-1}function C_(e,t){var n=this.__data__,r=fs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=b_;tn.prototype.delete=N_;tn.prototype.get=x_;tn.prototype.has=S_;tn.prototype.set=C_;var Hr=Ln(en,"Map");function T_(){this.size=0,this.__data__={hash:new Pn,map:new(Hr||tn),string:new Pn}}function A_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ds(e,t){var n=e.__data__;return A_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function D_(e){var t=ds(this,e).delete(e);return this.size-=t?1:0,t}function P_(e){return ds(this,e).get(e)}function $_(e){return ds(this,e).has(e)}function M_(e,t){var n=ds(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nn.prototype.clear=T_;nn.prototype.delete=D_;nn.prototype.get=P_;nn.prototype.has=$_;nn.prototype.set=M_;var I_="Expected a function";function na(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(I_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(na.Cache||nn),n}na.Cache=nn;var V_=500;function R_(e){var t=na(e,function(r){return n.size===V_&&n.clear(),r}),n=t.cache;return t}var L_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F_=/\\(\\)?/g,k_=R_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_,function(n,r,o,s){t.push(o?s.replace(F_,"$1"):r||n)}),t});function j_(e){return e==null?"":pf(e)}function B_(e,t){return ta(e)?e:c_(e,t)?[e]:k_(j_(e))}function U_(e){if(typeof e=="string"||ea(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function H_(e,t){t=B_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[U_(t[n++])];return n&&n==r?e:void 0}function z_(e,t,n){var r=e==null?void 0:H_(e,t);return r===void 0?n:r}var W_=_f(Object.getPrototypeOf,Object),K_="[object Object]",q_=Function.prototype,G_=Object.prototype,yf=q_.toString,Y_=G_.hasOwnProperty,J_=yf.call(Object);function X_(e){if(!io(e)||Vn(e)!=K_)return!1;var t=W_(e);if(t===null)return!0;var n=Y_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yf.call(n)==J_}function Z_(){this.__data__=new tn,this.size=0}function Q_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function e2(e){return this.__data__.get(e)}function t2(e){return this.__data__.has(e)}var n2=200;function r2(e,t){var n=this.__data__;if(n instanceof tn){var r=n.__data__;if(!Hr||r.length<n2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nn(r)}return n.set(e,t),this.size=n.size,this}function ao(e){var t=this.__data__=new tn(e);this.size=t.size}ao.prototype.clear=Z_;ao.prototype.delete=Q_;ao.prototype.get=e2;ao.prototype.has=t2;ao.prototype.set=r2;var o2=Object.prototype,Zy=o2.propertyIsEnumerable;var hi=Ln(en,"DataView"),mi=Ln(en,"Promise"),gi=Ln(en,"Set"),Fl="[object Map]",s2="[object Object]",kl="[object Promise]",jl="[object Set]",Bl="[object WeakMap]",Ul="[object DataView]",i2=Rn(hi),a2=Rn(Hr),l2=Rn(mi),c2=Rn(gi),u2=Rn(pi),zn=Vn;(hi&&zn(new hi(new ArrayBuffer(1)))!=Ul||Hr&&zn(new Hr)!=Fl||mi&&zn(mi.resolve())!=kl||gi&&zn(new gi)!=jl||pi&&zn(new pi)!=Bl)&&(zn=function(e){var t=Vn(e),n=t==s2?e.constructor:void 0,r=n?Rn(n):"";if(r)switch(r){case i2:return Ul;case a2:return Fl;case l2:return kl;case c2:return jl;case u2:return Bl}return t});var Qy=en.Uint8Array,f2="__lodash_hash_undefined__";function d2(e){return this.__data__.set(e,f2),this}function p2(e){return this.__data__.has(e)}function vi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new nn;++t<n;)this.add(e[t])}vi.prototype.add=vi.prototype.push=d2;vi.prototype.has=p2;var Hl=un?un.prototype:void 0,ew=Hl?Hl.valueOf:void 0;var h2=Object.prototype,tw=h2.hasOwnProperty;var m2=Object.prototype,nw=m2.hasOwnProperty;function wf(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];Ov(r,o[0],o[1])}return r}function g2(e){return e==null}const Is=e=>typeof e=="boolean",$n=e=>typeof e=="number";const v2=e=>typeof Element>"u"?!1:e instanceof Element;const _2=e=>be(e)?!Number.isNaN(Number(e)):!1;const zl=e=>Object.keys(e);const y2="__epPropKey",it=e=>e,w2=e=>ve(e)&&!!e.__epPropKey,bf=(e,t)=>{if(!ve(e)||w2(e))return e;const{values:n,required:r,default:o,type:s,validator:i}=e,a={type:s,required:!!r,validator:n||i?l=>{let c=!1,u=[];if(n&&(u=Array.from(n),ge(e,"default")&&u.push(o),c||(c=u.includes(l))),i&&(c||(c=i(l))),!c&&u.length>0){const f=[...new Set(u)].map(p=>JSON.stringify(p)).join(", ");so(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[y2]:!0};return ge(e,"default")&&(a.default=o),a},lo=e=>wf(Object.entries(e).map(([t,n])=>[t,bf(n,t)]));var b2=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function co(e,t){{const n=be(e)?new b2(`[${e}] ${t}`):e;console.warn(n)}}function Ef(e,t){return Mi()?(Ac(e,t),!0):!1}const Fn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E2=Object.prototype.toString,O2=e=>E2.call(e)==="[object Object]";function Vs(e){return Array.isArray(e)?e:[e]}function N2(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,s=Kc(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){s.value=!1,a()}function c(...u){o&&e(),a(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=void 0,e(...u)},Gn(t))}return r&&(s.value=!0,Fn&&c()),Ef(l),{isPending:xt(s),start:c,stop:l}}function x2(e,t,n){return Je(e,t,{...n,immediate:!0})}const Of=Fn?window:void 0,rw=Fn?window.document:void 0;function _i(e){var t;const n=Gn(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function S2(...e){const t=(r,o,s,i)=>(r.addEventListener(o,s,i),()=>r.removeEventListener(o,s,i)),n=se(()=>{const r=Vs(Gn(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return x2(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>_i(s)))!==null&&r!==void 0?r:[Of].filter(s=>s!=null),Vs(Gn(n.value?e[1]:e[0])),Vs(Z(n.value?e[2]:e[1])),Gn(n.value?e[3]:e[2])]},([r,o,s,i],a,l)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(s!=null&&s.length))return;const c=O2(i)?{...i}:i,u=r.flatMap(f=>o.flatMap(p=>s.map(g=>t(f,p,g,c))));l(()=>{u.forEach(f=>f())})},{flush:"post"})}function C2(){const e=Kc(!1),t=$t();return t&&In(()=>{e.value=!0},t),e}function T2(e){const t=C2();return se(()=>(t.value,!!e()))}const ow=Symbol("vueuse-ssr-width");function A2(e,t,n={}){const{window:r=Of,...o}=n;let s;const i=T2(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=Je(se(()=>{const u=Gn(e);return Array.isArray(u)?u.map(f=>_i(f)):[_i(u)]}),u=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const f of u)f&&s.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return Ef(c),{isSupported:i,stop:c}}const D2=()=>Fn&&/android/i.test(window.navigator.userAgent),P2="utils/dom/style";function yi(e,t="px"){if(!e&&e!==0)return"";if($n(e)||_2(e))return`${e}${t}`;if(be(e))return e;co(P2,"binding value must be a string or number")}var $2={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const M2=e=>(t,n)=>I2(t,n,Z(e)),I2=(e,t,n)=>z_(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),V2=e=>({lang:se(()=>Z(e).name),locale:xe(e)?e:he(e),t:M2(e)}),Nf=Symbol("localeContextKey"),R2=e=>{const t=e||ft(Nf,he());return V2(se(()=>t.value||$2))},L2="is-",mn=(e,t,n,r,o)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},xf=Symbol("namespaceContextKey"),F2=e=>{const t=e||($t()?ft(xf,he("el")):he("el"));return se(()=>Z(t)||"el")},ra=(e,t)=>{const n=F2(t);return{namespace:n,b:(h="")=>mn(n.value,e,h,"",""),e:h=>h?mn(n.value,e,"",h,""):"",m:h=>h?mn(n.value,e,"","",h):"",be:(h,_)=>h&&_?mn(n.value,e,h,_,""):"",em:(h,_)=>h&&_?mn(n.value,e,"",h,_):"",bm:(h,_)=>h&&_?mn(n.value,e,h,"",_):"",bem:(h,_,S)=>h&&_&&S?mn(n.value,e,h,_,S):"",is:(h,..._)=>{const S=_.length>=1?_[0]:!0;return h&&S?`${L2}${h}`:""},cssVar:h=>{const _={};for(const S in h)h[S]&&(_[`--${n.value}-${S}`]=h[S]);return _},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const _={};for(const S in h)h[S]&&(_[`--${n.value}-${e}-${S}`]=h[S]);return _},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}};const k2=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=j2(e);if(t){if(Object.values(di).includes(t))return t;switch(t){case" ":return di.space;default:return""}}return""},j2=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&D2()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Wl={current:0},Kl=he(0),Sf=2e3,ql=Symbol("elZIndexContextKey"),Cf=Symbol("zIndexContextKey"),B2=e=>{const t=$t()?ft(ql,Wl):Wl,n=e||($t()?ft(Cf,void 0):void 0),r=se(()=>{const i=Z(n);return $n(i)?i:Sf}),o=se(()=>r.value+Kl.value),s=()=>(t.current++,Kl.value=t.current,o.value);return!Fn&&!ft(ql)&&co("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
50
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:o,nextZIndex:s}},U2=bf({type:String,values:Gg,required:!1}),H2=Symbol("size");const z2=Symbol("emptyValuesContextKey");const W2=lo({emptyValues:Array,valueOnClear:{type:it([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=ue(e)?e():e,ie(e)?e.every(t=>!t):!e)}});const K2=e=>{const t=e.props,n=ie(t)?wf(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(n){for(const[o,s]of Object.entries(r)){const i=n[o];if(ge(n,o)){if(X_(i)){n[o]={...i,default:s};continue}n[o]={type:i,default:s}}}e.props=n}}},Tf=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return K2(e),e},q2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e);const G2=it([String,Object,Function]);const Y2={Close:Xi,SuccessFilled:Zu,InfoFilled:ii,WarningFilled:Qu,CircleCloseFilled:Xu},Gl={primary:ii,success:Zu,warning:Qu,error:Xu,info:ii};const J2=lo({size:{type:it([Number,String])},color:{type:String}});var X2=Pe({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:J2,setup(e){const t=e,n=ra("icon"),r=se(()=>{const{size:o,color:s}=t,i=yi(o);return!i&&!s?{}:{fontSize:i,"--color":s}});return(o,s)=>(G(),fe("i",is({class:Z(n).b(),style:r.value},o.$attrs),[cn(o.$slots,"default")],16))}}),Z2=X2;const Yl=Tf(Z2),Q2=e=>e,e1=lo({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:it([String,Object,Array,Boolean]),default:void 0},offset:{type:it(Array),default:()=>[0,0]},badgeClass:{type:String}});var t1=Pe({name:"ElBadge",__name:"badge",props:e1,setup(e,{expose:t}){const n=e,r=ra("badge"),o=se(()=>n.isDot?"":$n(n.value)&&$n(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),s=se(()=>[{backgroundColor:n.color,marginRight:yi(-n.offset[0]),marginTop:yi(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(i,a)=>(G(),fe("div",{class:qe(Z(r).b())},[cn(i.$slots,"default"),Q(ls,{name:`${Z(r).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||i.$slots.content)?(G(),fe("sup",{key:0,class:qe([Z(r).e("content"),Z(r).em("content",e.type),Z(r).is("fixed",!!i.$slots.default),Z(r).is("dot",e.isDot),Z(r).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:ln(s.value)},[cn(i.$slots,"content",{value:o.value},()=>[Ke(Te(o.value),1)])],6)):Oe("v-if",!0)]),_:3},8,["name"])],2))}}),n1=t1;const r1=Tf(n1),Af=Symbol(),zo=he();function Df(e,t=void 0){const n=$t()?ft(Af,zo):zo;return e?se(()=>{var r;return((r=n.value)==null?void 0:r[e])??t}):n}function o1(e,t){const n=Df(),r=ra(e,se(()=>{var a;return((a=n.value)==null?void 0:a.namespace)||"el"})),o=R2(se(()=>{var a;return(a=n.value)==null?void 0:a.locale})),s=B2(se(()=>{var l;const a=(l=n.value)==null?void 0:l.zIndex;return g2(a)||Number.isNaN(a)?Sf:a})),i=se(()=>{var a;return Z(t)||((a=n.value)==null?void 0:a.size)||""});return s1(se(()=>Z(n)||{})),{ns:r,locale:o,zIndex:s,size:i}}const s1=(e,t,n=!1)=>{const r=!!$t(),o=r?Df():void 0,s=r?Lr:void 0;if(!s){co("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=se(()=>{const a=Z(e);return o!=null&&o.value?i1(o.value,a):a});return s(Af,i),s(Nf,se(()=>i.value.locale)),s(xf,se(()=>i.value.namespace)),s(Cf,se(()=>i.value.zIndex)),s(H2,{size:se(()=>i.value.size||"")}),s(z2,se(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!zo.value)&&(zo.value=i.value),i},i1=(e,t)=>{const n=[...new Set([...zl(e),...zl(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},sw=lo({a11y:{type:Boolean,default:!0},locale:{type:it(Object)},size:U2,button:{type:it(Object)},card:{type:it(Object)},dialog:{type:it(Object)},link:{type:it(Object)},experimentalFeatures:{type:it(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:it(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:it(Object)},...W2}),st={placement:"top"};var a1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Pf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(a1,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",f="month",p="quarter",g="year",b="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var V=["th","st","nd","rd"],L=z%100;return"["+z+(V[(L-20)%10]||V[L]||V[0])+"]"}},R=function(z,V,L){var B=String(z);return!B||B.length>=V?z:""+Array(V+1-B.length).join(L)+z},Y={s:R,z:function(z){var V=-z.utcOffset(),L=Math.abs(V),B=Math.floor(L/60),$=L%60;return(V<=0?"+":"-")+R(B,2,"0")+":"+R($,2,"0")},m:function z(V,L){if(V.date()<L.date())return-z(L,V);var B=12*(L.year()-V.year())+(L.month()-V.month()),$=V.clone().add(B,f),K=L-$<0,O=V.clone().add(B+(K?-1:1),f);return+(-(B+(L-$)/(K?$-O:O-$))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:f,y:g,w:u,d:c,D:b,h:l,m:a,s:i,ms:s,Q:p}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},x="en",W={};W[x]=T;var M="$isDayjsObject",re=function(z){return z instanceof D||!(!z||!z[M])},A=function z(V,L,B){var $;if(!V)return x;if(typeof V=="string"){var K=V.toLowerCase();W[K]&&($=K),L&&(W[K]=L,$=K);var O=V.split("-");if(!$&&O.length>1)return z(O[0])}else{var H=V.name;W[H]=V,$=H}return!B&&$&&(x=$),$||!B&&x},N=function(z,V){if(re(z))return z.clone();var L=typeof V=="object"?V:{};return L.date=z,L.args=arguments,new D(L)},E=Y;E.l=A,E.i=re,E.w=function(z,V){return N(z,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var D=function(){function z(L){this.$L=A(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[M]=!0}var V=z.prototype;return V.parse=function(L){this.$d=function(B){var $=B.date,K=B.utc;if($===null)return new Date(NaN);if(E.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var O=$.match(_);if(O){var H=O[2]-1||0,q=(O[7]||"0").substring(0,3);return K?new Date(Date.UTC(O[1],H,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)):new Date(O[1],H,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)}}return new Date($)}(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return E},V.isValid=function(){return this.$d.toString()!==h},V.isSame=function(L,B){var $=N(L);return this.startOf(B)<=$&&$<=this.endOf(B)},V.isAfter=function(L,B){return N(L)<this.startOf(B)},V.isBefore=function(L,B){return this.endOf(B)<N(L)},V.$g=function(L,B,$){return E.u(L)?this[B]:this.set($,L)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(L,B){var $=this,K=!!E.u(B)||B,O=E.p(L),H=function(Le,De){var Fe=E.w($.$u?Date.UTC($.$y,De,Le):new Date($.$y,De,Le),$);return K?Fe:Fe.endOf(c)},q=function(Le,De){return E.w($.toDate()[Le].apply($.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(De)),$)},te=this.$W,_e=this.$M,Ne=this.$D,tt="set"+(this.$u?"UTC":"");switch(O){case g:return K?H(1,0):H(31,11);case f:return K?H(1,_e):H(0,_e+1);case u:var Ae=this.$locale().weekStart||0,me=(te<Ae?te+7:te)-Ae;return H(K?Ne-me:Ne+(6-me),_e);case c:case b:return q(tt+"Hours",0);case l:return q(tt+"Minutes",1);case a:return q(tt+"Seconds",2);case i:return q(tt+"Milliseconds",3);default:return this.clone()}},V.endOf=function(L){return this.startOf(L,!1)},V.$set=function(L,B){var $,K=E.p(L),O="set"+(this.$u?"UTC":""),H=($={},$[c]=O+"Date",$[b]=O+"Date",$[f]=O+"Month",$[g]=O+"FullYear",$[l]=O+"Hours",$[a]=O+"Minutes",$[i]=O+"Seconds",$[s]=O+"Milliseconds",$)[K],q=K===c?this.$D+(B-this.$W):B;if(K===f||K===g){var te=this.clone().set(b,1);te.$d[H](q),te.init(),this.$d=te.set(b,Math.min(this.$D,te.daysInMonth())).$d}else H&&this.$d[H](q);return this.init(),this},V.set=function(L,B){return this.clone().$set(L,B)},V.get=function(L){return this[E.p(L)]()},V.add=function(L,B){var $,K=this;L=Number(L);var O=E.p(B),H=function(_e){var Ne=N(K);return E.w(Ne.date(Ne.date()+Math.round(_e*L)),K)};if(O===f)return this.set(f,this.$M+L);if(O===g)return this.set(g,this.$y+L);if(O===c)return H(1);if(O===u)return H(7);var q=($={},$[a]=r,$[l]=o,$[i]=n,$)[O]||1,te=this.$d.getTime()+L*q;return E.w(te,this)},V.subtract=function(L,B){return this.add(-1*L,B)},V.format=function(L){var B=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var K=L||"YYYY-MM-DDTHH:mm:ssZ",O=E.z(this),H=this.$H,q=this.$m,te=this.$M,_e=$.weekdays,Ne=$.months,tt=$.meridiem,Ae=function(De,Fe,mt,d){return De&&(De[Fe]||De(B,K))||mt[Fe].slice(0,d)},me=function(De){return E.s(H%12||12,De,"0")},Le=tt||function(De,Fe,mt){var d=De<12?"AM":"PM";return mt?d.toLowerCase():d};return K.replace(S,function(De,Fe){return Fe||function(mt){switch(mt){case"YY":return String(B.$y).slice(-2);case"YYYY":return E.s(B.$y,4,"0");case"M":return te+1;case"MM":return E.s(te+1,2,"0");case"MMM":return Ae($.monthsShort,te,Ne,3);case"MMMM":return Ae(Ne,te);case"D":return B.$D;case"DD":return E.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Ae($.weekdaysMin,B.$W,_e,2);case"ddd":return Ae($.weekdaysShort,B.$W,_e,3);case"dddd":return _e[B.$W];case"H":return String(H);case"HH":return E.s(H,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return Le(H,q,!0);case"A":return Le(H,q,!1);case"m":return String(q);case"mm":return E.s(q,2,"0");case"s":return String(B.$s);case"ss":return E.s(B.$s,2,"0");case"SSS":return E.s(B.$ms,3,"0");case"Z":return O}return null}(De)||O.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(L,B,$){var K,O=this,H=E.p(B),q=N(L),te=(q.utcOffset()-this.utcOffset())*r,_e=this-q,Ne=function(){return E.m(O,q)};switch(H){case g:K=Ne()/12;break;case f:K=Ne();break;case p:K=Ne()/3;break;case u:K=(_e-te)/6048e5;break;case c:K=(_e-te)/864e5;break;case l:K=_e/o;break;case a:K=_e/r;break;case i:K=_e/n;break;default:K=_e}return $?K:E.a(K)},V.daysInMonth=function(){return this.endOf(f).$D},V.$locale=function(){return W[this.$L]},V.locale=function(L,B){if(!L)return this.$L;var $=this.clone(),K=A(L,B,!0);return K&&($.$L=K),$},V.clone=function(){return E.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},z}(),J=D.prototype;return N.prototype=J,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",f],["$y",g],["$D",b]].forEach(function(z){J[z[1]]=function(V){return this.$g(V,z[0],z[1])}}),N.extend=function(z,V){return z.$i||(z(V,D,N),z.$i=!0),N},N.locale=A,N.isDayjs=re,N.unix=function(z){return N(1e3*z)},N.en=W[x],N.Ls=W,N.p={},N})})(Pf);var iw=Pf.exports;const $f=["primary","success","info","warning","error"],Mf=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Xe=Q2({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Fn?document.body:void 0}),l1=lo({customClass:{type:String,default:Xe.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Xe.dangerouslyUseHTMLString},duration:{type:Number,default:Xe.duration},icon:{type:G2,default:Xe.icon},id:{type:String,default:Xe.id},message:{type:it([String,Object,Function]),default:Xe.message},onClose:{type:it(Function),default:Xe.onClose},showClose:{type:Boolean,default:Xe.showClose},type:{type:String,values:$f,default:Xe.type},plain:{type:Boolean,default:Xe.plain},offset:{type:Number,default:Xe.offset},placement:{type:String,values:Mf,default:Xe.placement},zIndex:{type:Number,default:Xe.zIndex},grouping:{type:Boolean,default:Xe.grouping},repeatNum:{type:Number,default:Xe.repeatNum}}),c1={destroy:()=>!0},Ct=Fi({}),u1=e=>(Ct[e]||(Ct[e]=Fi([])),Ct[e]),f1=(e,t)=>{const n=Ct[t]||[],r=n.findIndex(i=>i.id===e),o=n[r];let s;return r>0&&(s=n[r-1]),{current:o,prev:s}},d1=(e,t)=>{const{prev:n}=f1(e,t);return n?n.vm.exposed.bottom.value:0},p1=(e,t,n)=>(Ct[n]||[]).findIndex(r=>r.id===e)>0?16:t,h1=["id"],m1=["innerHTML"];var g1=Pe({name:"ElMessage",__name:"message",props:l1,emits:c1,setup(e,{expose:t,emit:n}){const{Close:r}=Y2,o=e,s=n,i=he(!1),{ns:a,zIndex:l}=o1("message"),{currentZIndex:c,nextZIndex:u}=l,f=he(),p=he(!1),g=he(0);let b;const h=se(()=>o.type?o.type==="error"?"danger":o.type:"info"),_=se(()=>{const J=o.type;return{[a.bm("icon",J)]:J&&Gl[J]}}),S=se(()=>o.icon||Gl[o.type]||""),T=se(()=>o.placement||"top"),R=se(()=>d1(o.id,T.value)),Y=se(()=>Math.max(p1(o.id,o.offset,T.value)+R.value,o.offset)),x=se(()=>g.value+Y.value),W=se(()=>T.value.includes("left")?a.is("left"):T.value.includes("right")?a.is("right"):a.is("center")),M=se(()=>T.value.startsWith("top")?"top":"bottom"),re=se(()=>({[M.value]:`${Y.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:b}=N2(()=>{E()},o.duration))}function N(){b==null||b()}function E(){p.value=!1,er(()=>{var J;i.value||((J=o.onClose)==null||J.call(o),s("destroy"))})}function D(J){k2(J)===di.esc&&E()}return In(()=>{A(),u(),p.value=!0}),Je(()=>o.repeatNum,()=>{N(),A()}),S2(document,"keydown",D),A2(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:p,bottom:x,close:E}),(J,z)=>(G(),we(ls,{name:Z(a).b("fade"),onBeforeEnter:z[0]||(z[0]=V=>i.value=!0),onBeforeLeave:e.onClose,onAfterLeave:z[1]||(z[1]=V=>J.$emit("destroy")),persisted:""},{default:ae(()=>[tr(ne("div",{id:e.id,ref_key:"messageRef",ref:f,class:qe([Z(a).b(),{[Z(a).m(e.type)]:e.type},Z(a).is("closable",e.showClose),Z(a).is("plain",e.plain),Z(a).is("bottom",M.value==="bottom"),W.value,e.customClass]),style:ln(re.value),role:"alert",onMouseenter:N,onMouseleave:A},[e.repeatNum>1?(G(),we(Z(r1),{key:0,value:e.repeatNum,type:h.value,class:qe(Z(a).e("badge"))},null,8,["value","type","class"])):Oe("v-if",!0),S.value?(G(),we(Z(Yl),{key:1,class:qe([Z(a).e("icon"),_.value])},{default:ae(()=>[(G(),we(c0(S.value)))]),_:1},8,["class"])):Oe("v-if",!0),!e.dangerouslyUseHTMLString||J.$slots.default?(G(),fe("p",{key:2,class:qe(Z(a).e("content"))},[cn(J.$slots,"default",{},()=>[Ke(Te(e.message),1)])],2)):(G(),fe(Ve,{key:3},[Oe(" Caution here, message could've been compromised, never use user's input as message "),ne("p",{class:qe(Z(a).e("content")),innerHTML:e.message},null,10,m1)],2112)),e.showClose?(G(),we(Z(Yl),{key:4,class:qe(Z(a).e("closeBtn")),onClick:Yu(E,["stop"])},{default:ae(()=>[Q(Z(r))]),_:1},8,["class"])):Oe("v-if",!0)],46,h1),[[Bo,p.value]])]),_:3},8,["name","onBeforeLeave"]))}}),v1=g1;let _1=1;const y1=e=>{if(!e.appendTo)e.appendTo=document.body;else if(be(e.appendTo)){let t=document.querySelector(e.appendTo);v2(t)||(co("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},w1=e=>{!e.placement&&be(st.placement)&&st.placement&&(e.placement=st.placement),e.placement||(e.placement="top"),Mf.includes(e.placement)||(co("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},If=e=>{const t=!e||be(e)||Zt(e)||ue(e)?{message:e}:e,n={...Xe,...t};return y1(n),w1(n),Is(st.grouping)&&!n.grouping&&(n.grouping=st.grouping),$n(st.duration)&&n.duration===3e3&&(n.duration=st.duration),$n(st.offset)&&n.offset===16&&(n.offset=st.offset),Is(st.showClose)&&!n.showClose&&(n.showClose=st.showClose),Is(st.plain)&&!n.plain&&(n.plain=st.plain),n},b1=e=>{const t=Ct[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:r}=e;r.close()},E1=({appendTo:e,...t},n)=>{const r=`message_${_1++}`,o=t.onClose,s=document.createElement("div"),i={...t,id:r,onClose:()=>{o==null||o(),b1(c)},onDestroy:()=>{El(null,s)}},a=Q(v1,i,ue(i.message)||Zt(i.message)?{default:ue(i.message)?i.message:()=>i.message}:null);a.appContext=n||Mn._context,El(a,s),e.appendChild(s.firstElementChild);const l=a.component,c={id:r,vnode:a,vm:l,handler:{close:()=>{l.exposed.close()}},props:a.component.props};return c},Mn=(e={},t)=>{if(!Fn)return{close:()=>{}};const n=If(e),r=u1(n.placement||"top");if(n.grouping&&r.length){const s=r.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if($n(st.max)&&r.length>=st.max)return{close:()=>{}};const o=E1(n,t);return r.push(o),o.handler};$f.forEach(e=>{Mn[e]=(t={},n)=>Mn({...If(t),type:e},n)});function O1(e){for(const t in Ct)if(ge(Ct,t)){const n=[...Ct[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function N1(e){Ct[e]&&[...Ct[e]].forEach(t=>t.handler.close())}Mn.closeAll=O1;Mn.closeAllByPlacement=N1;Mn._context=null;const yt=q2(Mn,"$message");async function Vf(e){return(await rr().get("/yc-ai/ai/prompts",{params:e?{category:e}:{}})).data}function oa(){const e=ft(lf,null);return e||Qi()}const x1={class:"ai-use-dialog__footer"},S1={class:"ai-use-dialog__footer-actions"},C1=Pe({__name:"AiUseDialog",props:{title:{default:"AI 生成"},freeText:{default:""},promptId:{},autoMatch:{type:Boolean,default:!1},prompts:{},showAutoMatch:{type:Boolean,default:!1},showPromptSelect:{type:Boolean,default:!1},autoMatchLabel:{default:"自动匹配提示词"},promptLabel:{default:"提示词"},freeTextLabel:{default:"需求描述"},freeTextPlaceholder:{default:"描述要生成的页面或项目 JSON"},submitText:{default:"发送"},showTaskListButton:{type:Boolean,default:!0},taskListButtonText:{default:"查看 AI 任务"},width:{default:"520px"},modelValue:{type:Boolean},showDialog:{type:Boolean}},emits:["update:modelValue","submitted"],setup(e,{emit:t}){const n=e,r=t,o=oa(),s=se(()=>n.modelValue!==void 0),i=he(!1);Je(()=>n.modelValue,x=>{s.value&&(i.value=!!x)},{immediate:!0}),Je(i,x=>{if(s.value){r("update:modelValue",x);return}kt.visible=x,x||Zi()}),Je(()=>kt.visible,x=>{s.value||(i.value=x)},{immediate:!0});function a(x){if(s.value)return;const W=x.detail??{};b(W),i.value=!0}In(()=>{globalThis.addEventListener(ci,a),s.value||(i.value=kt.visible)}),to(()=>{globalThis.removeEventListener(ci,a)});const l=se(()=>(s.value?void 0:kt.options.title)??n.title??"AI 生成"),c=he({freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch}),u=he(n.prompts?[...n.prompts]:[]),f=he(!1),p=he(!1),g=he();function b(x){var W,M;c.value.freeText=x.freeText??n.freeText??"",c.value.promptId=x.promptId??n.promptId,c.value.autoMatch=x.autoMatch??n.autoMatch??!1,g.value=x.onFinish,(W=x.prompts)!=null&&W.length?u.value=[...x.prompts]:(M=n.prompts)!=null&&M.length&&(u.value=[...n.prompts])}async function h(){if(!(u.value.length>0)){f.value=!0;try{const x=Ei().listPrompts;u.value=x?await x():await Vf()}catch{yt.warning("加载提示词失败")}finally{f.value=!1}}}function _(){s.value?b({}):b(kt.options),n.showPromptSelect&&h()}Je(()=>n.prompts,x=>{x!=null&&x.length&&(u.value=[...x])},{deep:!0}),Je(()=>[n.freeText,n.promptId,n.autoMatch],([x,W,M])=>{i.value||(c.value.freeText=x??"",c.value.promptId=W,c.value.autoMatch=M??!1)});function S(){c.value.autoMatch&&(c.value.promptId=void 0)}function T(){p.value=!1}function R(){o.showPanel()}async function Y(){var A,N;if(!c.value.freeText.trim()){yt.warning("请填写需求描述");return}const x=c.value.autoMatch,W=x?void 0:c.value.promptId;if(!x&&W==null){const E=n.showPromptSelect||n.showAutoMatch?"请选择提示词或开启自动匹配":"请通过 promptId 传入提示词,或设置 autoMatch 为 true";yt.warning(E);return}p.value=!0;const M=s.value?g.value:kt.options.onFinish,re=o.enqueue({freeText:c.value.freeText.trim(),promptId:W,autoMatch:x&&W==null?!0:void 0,showPanel:!0,onFinish:M});s.value?r("submitted",re):(N=(A=kt.options).onSubmitted)==null||N.call(A,re),i.value=!1,p.value=!1,yt.success("已加入任务队列,可在任务面板查看进度")}return(x,W)=>{const M=Ie("el-switch"),re=Ie("el-form-item"),A=Ie("el-option"),N=Ie("el-select"),E=Ie("el-input"),D=Ie("el-form"),J=Ie("el-button"),z=Ie("el-dialog");return G(),we(z,{modelValue:i.value,"onUpdate:modelValue":W[4]||(W[4]=V=>i.value=V),title:l.value,width:e.width,"append-to-body":"",class:"ai-use-dialog",onClosed:T,onOpen:_},{footer:ae(()=>[ne("div",x1,[e.showTaskListButton?(G(),we(J,{key:0,link:"",type:"primary",onClick:R},{default:ae(()=>[Ke(Te(e.taskListButtonText),1)]),_:1})):Oe("",!0),ne("div",S1,[Q(J,{onClick:W[3]||(W[3]=V=>i.value=!1)},{default:ae(()=>[...W[5]||(W[5]=[Ke("取消",-1)])]),_:1}),Q(J,{type:"primary",loading:p.value,onClick:Y},{default:ae(()=>[Ke(Te(e.submitText),1)]),_:1},8,["loading"])])])]),default:ae(()=>[Q(D,{"label-position":"top"},{default:ae(()=>[e.showAutoMatch?(G(),we(re,{key:0,label:e.autoMatchLabel},{default:ae(()=>[Q(M,{modelValue:c.value.autoMatch,"onUpdate:modelValue":W[0]||(W[0]=V=>c.value.autoMatch=V),"active-text":"按需求自动选","inactive-text":"手动指定",onChange:S},null,8,["modelValue"])]),_:1},8,["label"])):Oe("",!0),e.showPromptSelect?(G(),we(re,{key:1,label:e.promptLabel,required:!c.value.autoMatch},{default:ae(()=>[Q(N,{modelValue:c.value.promptId,"onUpdate:modelValue":W[1]||(W[1]=V=>c.value.promptId=V),filterable:"",clearable:"",placeholder:c.value.autoMatch?"留空则自动匹配":"请选择提示词",style:{width:"100%"},loading:f.value},{default:ae(()=>[(G(!0),fe(Ve,null,Cr(u.value,V=>(G(),we(A,{key:V.id,label:V.name,value:V.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","loading"])]),_:1},8,["label","required"])):Oe("",!0),Q(re,{label:e.freeTextLabel,required:""},{default:ae(()=>[Q(E,{modelValue:c.value.freeText,"onUpdate:modelValue":W[2]||(W[2]=V=>c.value.freeText=V),type:"textarea",rows:4,placeholder:e.freeTextPlaceholder},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["modelValue","title","width"])}}}),sa=cs(C1,[["__scopeId","data-v-9aa82e83"]]),T1={class:"ai-task-panel"},A1={class:"ai-task-panel__header"},D1={class:"ai-task-panel__header-left"},P1={class:"ai-task-panel__titles"},$1={class:"ai-task-panel__subtitle"},M1={class:"ai-task-panel__title"},I1={class:"ai-task-panel__header-actions"},V1={class:"ai-task-panel__body"},R1={key:1,class:"ai-task-list"},L1={class:"ai-task-row__icon"},F1={class:"ai-task-row__main"},k1={class:"ai-task-row__title"},j1={class:"ai-task-row__meta"},B1={key:0},U1={key:0,class:"ai-task-row__summary"},H1={class:"ai-task-row__ops"},z1={key:0,class:"ai-task-panel__footer"},W1=Pe({__name:"AiTaskPanel",emits:["use"],setup(e,{emit:t}){const n=t,r=oa(),o=he(null),s={pending:"等待中",running:"执行中",succeeded:"已完成",failed:"失败",cancelled:"已取消"};function i(l){return s[l]??l}async function a(l){o.value=l.id;try{const c=l.result??await r.loadTaskResult(l.id);if(!c)return;n("use",{taskId:l.id,runId:l.runId,title:l.title,freeText:l.freeText,promptId:l.promptId,result:c,finishedAt:l.finishedAt??Date.now()})}finally{o.value=null}}return(l,c)=>{const u=Ie("el-icon"),f=Ie("el-button"),p=Ie("el-empty"),g=Ie("el-progress"),b=Ie("el-badge");return G(),we(Gh,{to:"body"},[Q(ls,{name:"ai-panel-slide"},{default:ae(()=>[tr(ne("div",T1,[ne("div",A1,[ne("div",D1,[ne("div",{class:qe(["ai-task-panel__icon",{spinning:Z(r).activeCount>0}])},[Q(u,null,{default:ae(()=>[Q(Z(Ol))]),_:1})],2),ne("div",P1,[ne("div",$1,Te(Z(r).panelSubtitle),1),ne("div",M1,Te(Z(r).panelTitle),1)])]),ne("div",I1,[Z(r).runningCount>0?(G(),we(f,{key:0,link:"",type:"primary",onClick:c[0]||(c[0]=h=>Z(r).cancelAll())},{default:ae(()=>[...c[5]||(c[5]=[Ke(" 取消全部 ",-1)])]),_:1})):Oe("",!0),Q(f,{link:"",onClick:c[1]||(c[1]=h=>Z(r).toggleMinimize())},{default:ae(()=>[Q(u,null,{default:ae(()=>[Q(Z(Wm))]),_:1})]),_:1}),Q(f,{link:"",onClick:c[2]||(c[2]=h=>Z(r).hidePanel())},{default:ae(()=>[Q(u,null,{default:ae(()=>[Q(Z(Xi))]),_:1})]),_:1})])]),ne("div",V1,[Z(r).tasks.length?(G(),fe("div",R1,[(G(!0),fe(Ve,null,Cr(Z(r).tasks,h=>(G(),fe("div",{key:h.id,class:"ai-task-row"},[ne("div",L1,[h.status==="succeeded"?(G(),we(u,{key:0,class:"ok"},{default:ae(()=>[Q(Z(Zm))]),_:1})):h.status==="failed"?(G(),we(u,{key:1,class:"err"},{default:ae(()=>[Q(Z(tg))]),_:1})):h.status==="running"||h.status==="pending"?(G(),we(g,{key:2,type:"circle",percentage:h.progress,width:36,"stroke-width":3},null,8,["percentage"])):(G(),we(u,{key:3,class:"muted"},{default:ae(()=>[Q(Z(ig))]),_:1}))]),ne("div",F1,[ne("div",k1,Te(h.title),1),ne("div",j1,[ne("span",null,Te(i(h.status)),1),h.runId?(G(),fe("span",B1," · #"+Te(h.runId),1)):Oe("",!0)]),h.summary?(G(),fe("div",U1,Te(h.summary),1)):Oe("",!0)]),ne("div",H1,[h.status==="running"||h.status==="pending"?(G(),we(f,{key:0,link:"",type:"danger",size:"small",onClick:_=>Z(r).cancelTask(h.id)},{default:ae(()=>[...c[6]||(c[6]=[Ke(" 取消 ",-1)])]),_:1},8,["onClick"])):Oe("",!0),h.status==="succeeded"&&h.runId?(G(),we(f,{key:1,link:"",type:"primary",size:"small",loading:o.value===h.id,onClick:_=>a(h)},{default:ae(()=>[...c[7]||(c[7]=[Ke(" 使用 ",-1)])]),_:1},8,["loading","onClick"])):Oe("",!0),h.status!=="running"&&h.status!=="pending"?(G(),we(f,{key:2,link:"",size:"small",onClick:_=>Z(r).removeTask(h.id)},{default:ae(()=>[...c[8]||(c[8]=[Ke(" 移除 ",-1)])]),_:1},8,["onClick"])):Oe("",!0)])]))),128))])):(G(),we(p,{key:0,description:"暂无 AI 任务","image-size":64}))]),Z(r).tasks.some(h=>h.status!=="running"&&h.status!=="pending")?(G(),fe("div",z1,[Q(f,{link:"",type:"info",onClick:c[3]||(c[3]=h=>Z(r).clearFinished())},{default:ae(()=>[...c[9]||(c[9]=[Ke("清除已完成",-1)])]),_:1})])):Oe("",!0)],512),[[Bo,Z(r).panelVisible&&!Z(r).panelMinimized]])]),_:1}),tr(ne("div",{class:"ai-task-panel-mini",onClick:c[4]||(c[4]=h=>Z(r).toggleMinimize())},[Z(r).activeCount>0?(G(),we(u,{key:0,class:"spinning"},{default:ae(()=>[Q(Z(Ol))]),_:1})):Oe("",!0),ne("span",null,Te(Z(r).panelSubtitle),1),Z(r).runningCount>0?(G(),we(b,{key:1,value:Z(r).runningCount,class:"m-l-8"},null,8,["value"])):Oe("",!0)],512),[[Bo,Z(r).panelVisible&&Z(r).panelMinimized]])])}}}),ia=cs(W1,[["__scopeId","data-v-812b3127"]]),Rf=Pe({__name:"AiTaskProvider",props:{title:{},freeText:{},promptId:{},autoMatch:{type:Boolean},prompts:{},showAutoMatch:{type:Boolean},showPromptSelect:{type:Boolean},autoMatchLabel:{},promptLabel:{},freeTextLabel:{},freeTextPlaceholder:{},submitText:{},showTaskListButton:{type:Boolean},taskListButtonText:{},width:{},modelValue:{type:Boolean},showDialog:{type:Boolean,default:!0}},emits:["finish","use"],setup(e,{emit:t}){const n=e,r=t,o=Qi();Lr(lf,o),Lr(af,of(o));const s=se(()=>{const l={title:n.title,freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch,prompts:n.prompts,showAutoMatch:n.showAutoMatch,showPromptSelect:n.showPromptSelect,autoMatchLabel:n.autoMatchLabel,promptLabel:n.promptLabel,freeTextLabel:n.freeTextLabel,freeTextPlaceholder:n.freeTextPlaceholder,submitText:n.submitText,showTaskListButton:n.showTaskListButton,taskListButtonText:n.taskListButtonText,width:n.width};return n.modelValue!==void 0&&(l.modelValue=n.modelValue),l});let i;function a(l){r("use",l)}return In(()=>{o.hydrate(),i=o.onTaskFinish(l=>r("finish",l))}),to(()=>{i==null||i()}),(l,c)=>(G(),fe(Ve,null,[e.showDialog!==!1?(G(),we(sa,zp(is({key:0},s.value)),null,16)):Oe("",!0),Q(ia,{onUse:a}),cn(l.$slots,"default")],64))}});function K1(){const e=ft(af,null);return e||of(oa())}const Rs="__YC_COMPONENT_IMAGE_SELECTOR__",wi="yc-component:image-selector-open";function q1(){const e=globalThis;return e[Rs]||(e[Rs]=sr({visible:!1,options:{}})),e[Rs]}const Ze=q1();function Lf(e={}){Ze.options={...e},Ze.visible=!0,globalThis.dispatchEvent(new CustomEvent(wi,{detail:{...e}}))}function Ff(){Ze.visible=!1}function kf(e={}){Lf(e)}const G1={class:"yc-image-selector"},Y1={class:"yc-image-selector__toolbar"},J1={class:"yc-image-selector__body"},X1={key:0,class:"yc-image-selector__aside"},Z1=["onClick"],Q1={key:0,class:"yc-image-selector__category-count"},ey={class:"yc-image-selector__main"},ty={key:1,class:"yc-image-selector__grid"},ny=["onClick"],ry={class:"yc-image-selector__thumb"},oy=["src","alt","onLoad"],sy={key:0,class:"yc-image-selector__order"},iy=["title"],ay={key:0,class:"yc-image-selector__selected-bar"},ly={class:"yc-image-selector__selected-bar-label"},cy={class:"yc-image-selector__selected-bar-list"},uy=["onClick"],fy=["src","alt"],dy={key:1,class:"yc-image-selector__pagination"},py={key:0,class:"yc-image-selector__footer"},hy={class:"yc-image-selector__selected-tip"},my={class:"yc-image-selector__footer-actions"},gy={key:1,class:"yc-image-selector__footer yc-image-selector__footer--quick"},vy={class:"yc-image-selector__selected-tip"},_y=Pe({__name:"YcImageSelectorDialog",props:{modelValue:{type:Boolean},title:{default:"选择图片"},multiple:{type:Boolean,default:!1},maxCount:{default:9},selected:{},width:{default:"860px"},pageSize:{default:8},showUpload:{type:Boolean,default:!0},accept:{default:"image/*"},showCategories:{type:Boolean,default:!1},categories:{},categoryAllLabel:{default:"全部"},showModeSwitch:{type:Boolean,default:!1},confirmOnSelect:{type:Boolean,default:!1},confirmText:{default:"确定"},cancelText:{default:"取消"},emptyText:{default:"暂无图片资源"},getImages:{},upload:{}},emits:["update:modelValue","confirm","cancel"],setup(e,{emit:t}){const n=e,r=t,o=se(()=>n.modelValue!==void 0),s=he(!1);Je(()=>n.modelValue,v=>{o.value&&(s.value=!!v)},{immediate:!0}),Je(s,v=>{if(o.value){r("update:modelValue",v);return}Ze.visible=v,v||Ff()}),Je(()=>Ze.visible,v=>{o.value||(s.value=v)},{immediate:!0});const i=se(()=>(o.value?void 0:Ze.options.title)??n.title??"选择图片"),a=se(()=>(o.value?void 0:Ze.options.multiple)??n.multiple),l=se(()=>(o.value?void 0:Ze.options.maxCount)??n.maxCount),c=se(()=>(o.value?void 0:Ze.options.showModeSwitch)??n.showModeSwitch),u=se(()=>(o.value?void 0:Ze.options.showCategories)??n.showCategories),f=se(()=>{var v,w;if((v=n.categories)!=null&&v.length)return n.categories;if(!o.value&&((w=Ze.options.categories)!=null&&w.length))return Ze.options.categories}),p=se(()=>u.value?f.value??re.value:[]),g=se(()=>!!n.confirmOnSelect),b=he("single"),h=[{label:"单选",value:"single"},{label:"多选",value:"multiple"}],_=se(()=>c.value?b.value==="multiple":a.value),S=he(""),T=he(""),R=he(1),Y=he(0),x=he(!1),W=he(!1),M=he([]),re=he([]),A=he(new Map),N=he(new Map),E=he(),D=he(),J=se(()=>[...A.value.values()]),z=se(()=>{var w,P;const v=J.value.length;return g.value?v?`已选:${((w=J.value[0])==null?void 0:w.name)||"1 张图片"}`:"单击图片即可完成选择":v?_.value?`已选 ${v} / ${l.value} 张`:`已选:${((P=J.value[0])==null?void 0:P.name)||"1 张图片"}`:_.value?`多选模式:最多 ${l.value} 张`:"单选模式:请选择一张图片"});function V(v){const w=J.value.findIndex(P=>K(P)===K(v));return w>=0?w+1:""}function L(v){if(v==="single"&&J.value.length>1){const w=J.value[0];A.value=new Map([[K(w),w]]),yt.info("已切换为单选,仅保留第一张")}}function B(){b.value=a.value?"multiple":"single"}function $(){A.value=new Map}function K(v){return v.id??v.url}function O(v){return A.value.has(K(v))}function H(v,w){return v<w?"portrait":v>w?"landscape":"square"}function q(v,w){const P=K(v);N.value.get(P)!==w&&(N.value.set(P,w),N.value=new Map(N.value))}function te(v){const w=N.value.get(K(v));return w?`yc-image-selector__img--${w}`:""}function _e(v,w){const P=v.target;!(P!=null&&P.naturalWidth)||!(P!=null&&P.naturalHeight)||q(w,H(P.naturalWidth,P.naturalHeight))}function Ne(v){v.width&&v.height&&q(v,H(v.width,v.height))}function tt(v){const w=new Map;if(!(v!=null&&v.length)){A.value=w;return}if(typeof v[0]=="string")for(const j of v)w.set(j,{id:j,url:j,name:j.split("/").pop()});else for(const j of v)w.set(K(j),j);A.value=w}function Ae(v){E.value=v.onConfirm,D.value=v.onCancel,tt(v.selected??n.selected)}function me(v){if(o.value)return;const w=v.detail??{};Ae(w),s.value=!0}In(()=>{globalThis.addEventListener(wi,me),o.value||(s.value=Ze.visible)}),to(()=>{globalThis.removeEventListener(wi,me)});async function Le(){var v;if(!n.getImages){yt.error("请通过 props.getImages 传入图片列表请求方法");return}x.value=!0;try{const w=await n.getImages({keyword:S.value.trim()||void 0,category:T.value||void 0,page:R.value,pageSize:n.pageSize});M.value=w.list,Y.value=w.total;for(const P of w.list)Ne(P);!f.value&&((v=w.categories)!=null&&v.length)&&(re.value=w.categories)}catch(w){yt.error(w instanceof Error?w.message:"加载图片失败")}finally{x.value=!1}}function De(){R.value=1,Le()}function Fe(v){T.value!==v&&(T.value=v,De())}function mt(v){const w=K(v);if(_.value){if(A.value.has(w)){A.value.delete(w),A.value=new Map(A.value);return}if(J.value.length>=l.value){yt.warning(`最多选择 ${l.value} 张图片`);return}A.value.set(w,v),A.value=new Map(A.value);return}if(A.value.has(w)){if(g.value){er(()=>I());return}A.value=new Map;return}A.value=new Map([[w,v]]),g.value&&er(()=>I())}async function d(v){if(!n.upload){yt.error("请通过 props.upload 传入图片上传方法");return}W.value=!0;try{const{resource:w}=await n.upload(v.file);if(yt.success("上传成功"),_.value)J.value.length<l.value&&(A.value.set(K(w),w),A.value=new Map(A.value));else if(A.value=new Map([[K(w),w]]),g.value){I();return}De()}catch(w){yt.error(w instanceof Error?w.message:"上传失败")}finally{W.value=!1}}function m(){S.value="",T.value="",R.value=1,N.value=new Map,B(),o.value?Ae({}):Ae(Ze.options),B(),Le()}function C(){W.value=!1}function k(){var v,w,P;(v=D.value)==null||v.call(D),o.value||(P=(w=Ze.options).onCancel)==null||P.call(w),r("cancel"),s.value=!1}function I(){var w,P,j;if(!J.value.length){yt.warning("请选择图片");return}const v=[...J.value];if(o.value){r("confirm",v),s.value=!1;return}(w=E.value)==null||w.call(E,v),(j=(P=Ze.options).onConfirm)==null||j.call(P,v),r("confirm",v),s.value=!1}return Je(()=>n.selected,v=>{s.value||tt(v)},{deep:!0}),(v,w)=>{const P=Ie("el-icon"),j=Ie("el-input"),F=Ie("el-segmented"),le=Ie("el-button"),X=Ie("el-upload"),ce=Ie("el-empty"),de=Ie("el-pagination"),ye=Ie("el-dialog"),Ee=yu("loading");return G(),we(ye,{modelValue:s.value,"onUpdate:modelValue":w[4]||(w[4]=ee=>s.value=ee),title:i.value,width:e.width,"append-to-body":"","destroy-on-close":"",class:"yc-image-selector-dialog",onClosed:C,onOpen:m},{footer:ae(()=>[g.value?(G(),fe("div",gy,[ne("span",vy,Te(z.value),1),Q(le,{link:"",type:"primary",onClick:k},{default:ae(()=>[Ke(Te(e.cancelText),1)]),_:1})])):(G(),fe("div",py,[ne("span",hy,Te(z.value),1),ne("div",my,[Q(le,{onClick:k},{default:ae(()=>[Ke(Te(e.cancelText),1)]),_:1}),Q(le,{type:"primary",disabled:!J.value.length,onClick:I},{default:ae(()=>[Ke(Te(e.confirmText),1)]),_:1},8,["disabled"])])]))]),default:ae(()=>[ne("div",G1,[ne("div",Y1,[Q(j,{modelValue:S.value,"onUpdate:modelValue":w[0]||(w[0]=ee=>S.value=ee),clearable:"",placeholder:"搜索图片名称",class:"yc-image-selector__search",onKeyup:Fm(De,["enter"]),onClear:De},{prefix:ae(()=>[Q(P,null,{default:ae(()=>[Q(Z(lg))]),_:1})]),_:1},8,["modelValue"]),c.value?(G(),we(F,{key:0,modelValue:b.value,"onUpdate:modelValue":w[1]||(w[1]=ee=>b.value=ee),options:h,class:"yc-image-selector__mode",onChange:L},null,8,["modelValue"])):Oe("",!0),e.showUpload&&e.upload?(G(),we(X,{key:1,"show-file-list":!1,accept:e.accept,"http-request":d,disabled:W.value},{default:ae(()=>[Q(le,{type:"primary",plain:"",loading:W.value},{default:ae(()=>[Q(P,{class:"m-r-4"},{default:ae(()=>[Q(Z(pg))]),_:1}),w[5]||(w[5]=Ke(" 上传图片 ",-1))]),_:1},8,["loading"])]),_:1},8,["accept","disabled"])):Oe("",!0)]),ne("div",J1,[u.value&&p.value.length?(G(),fe("aside",X1,[ne("div",{class:qe(["yc-image-selector__category",{"is-active":T.value===""}]),onClick:w[2]||(w[2]=ee=>Fe(""))},Te(e.categoryAllLabel),3),(G(!0),fe(Ve,null,Cr(p.value,ee=>(G(),fe("div",{key:ee.id,class:qe(["yc-image-selector__category",{"is-active":T.value===ee.id}]),onClick:$e=>Fe(ee.id)},[ne("span",null,Te(ee.name),1),ee.count!=null?(G(),fe("span",Q1,Te(ee.count),1)):Oe("",!0)],10,Z1))),128))])):Oe("",!0),tr((G(),fe("div",ey,[!x.value&&!M.value.length?(G(),we(ce,{key:0,description:e.emptyText},null,8,["description"])):(G(),fe("div",ty,[(G(!0),fe(Ve,null,Cr(M.value,ee=>(G(),fe("div",{key:String(ee.id),class:qe(["yc-image-selector__item",{"is-selected":O(ee),"is-single-mode":!_.value,"is-multi-mode":_.value}]),onClick:$e=>mt(ee)},[ne("div",ry,[ne("img",{src:ee.url,alt:ee.name||"image",loading:"lazy",class:qe(te(ee)),onLoad:$e=>_e($e,ee)},null,42,oy),ne("div",{class:qe(["yc-image-selector__indicator",{"is-checked":O(ee),"is-radio":!_.value,"is-checkbox":_.value}])},[O(ee)&&_.value?(G(),fe("span",sy,Te(V(ee)),1)):O(ee)?(G(),we(P,{key:1},{default:ae(()=>[Q(Z(Ju))]),_:1})):Oe("",!0)],2)]),ne("div",{class:"yc-image-selector__meta",title:ee.name},Te(ee.name||"未命名"),9,iy)],10,ny))),128))]))])),[[Ee,x.value]])]),_.value&&J.value.length?(G(),fe("div",ay,[ne("span",ly,"已选 "+Te(J.value.length)+" 张",1),ne("div",cy,[(G(!0),fe(Ve,null,Cr(J.value,ee=>(G(),fe("div",{key:String(ee.id),class:"yc-image-selector__selected-chip",onClick:Yu($e=>mt(ee),["stop"])},[ne("img",{src:ee.url,alt:ee.name},null,8,fy),w[6]||(w[6]=ne("span",{class:"yc-image-selector__selected-chip-remove"},"×",-1))],8,uy))),128))]),Q(le,{link:"",type:"primary",onClick:$},{default:ae(()=>[...w[7]||(w[7]=[Ke("清空",-1)])]),_:1})])):Oe("",!0),Y.value>0?(G(),fe("div",dy,[Q(de,{"current-page":R.value,"onUpdate:currentPage":w[3]||(w[3]=ee=>R.value=ee),background:"",layout:"total, prev, pager, next, jumper","page-size":e.pageSize,total:Y.value,onCurrentChange:Le},null,8,["current-page","page-size","total"])])):Oe("",!0)])]),_:1},8,["modelValue","title","width"])}}}),aa=cs(_y,[["__scopeId","data-v-f75b2f69"]]);function la(){const e=he(!1),t=he({});function n(o={}){t.value={...o},e.value=!0}function r(){e.value=!1}return{dialogVisible:e,dialogOptions:t,openImageSelector:n,closeImageSelector:r}}const yy="__YC_IMAGE_SELECTOR_CTX_KEY__";function wy(e){const t=globalThis;return t[e]||(t[e]=Symbol(e)),t[e]}const ca=wy(yy),jf=Pe({__name:"YcImageSelectorProvider",props:{modelValue:{type:Boolean},title:{default:"选择图片"},multiple:{type:Boolean,default:!1},maxCount:{default:9},selected:{},width:{default:"860px"},pageSize:{default:8},showUpload:{type:Boolean,default:!0},accept:{default:"image/*"},showCategories:{type:Boolean,default:!1},categories:{},categoryAllLabel:{default:"全部"},showModeSwitch:{type:Boolean,default:!1},confirmOnSelect:{type:Boolean,default:!1},confirmText:{default:"确定"},cancelText:{default:"取消"},emptyText:{default:"暂无图片资源"},getImages:{},upload:{},showDialog:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=e,r=la(),{dialogVisible:o,dialogOptions:s,openImageSelector:i,closeImageSelector:a}=r;Lr(ca,r);function l(p,g){return p in s.value?s.value[p]:g}const c=se(()=>({title:l("title",n.title),multiple:l("multiple",n.multiple),maxCount:l("maxCount",n.maxCount),selected:l("selected",n.selected),width:n.width,pageSize:n.pageSize,showUpload:n.showUpload,accept:n.accept,showCategories:l("showCategories",n.showCategories),categories:l("categories",n.categories),categoryAllLabel:l("categoryAllLabel",n.categoryAllLabel),showModeSwitch:l("showModeSwitch",n.showModeSwitch),confirmOnSelect:l("confirmOnSelect",n.confirmOnSelect),confirmText:n.confirmText,cancelText:n.cancelText,emptyText:n.emptyText,getImages:n.getImages,upload:n.upload}));function u(p){var g,b;(b=(g=s.value).onConfirm)==null||b.call(g,p),a()}function f(){var p,g;(g=(p=s.value).onCancel)==null||g.call(p),a()}return t({openImageSelector:i,closeImageSelector:a}),(p,g)=>(G(),fe(Ve,null,[e.showDialog!==!1?(G(),we(aa,is({key:0,modelValue:Z(o),"onUpdate:modelValue":g[0]||(g[0]=b=>xe(o)?o.value=b:null)},c.value,{onConfirm:u,onCancel:f}),null,16,["modelValue"])):Oe("",!0),cn(p.$slots,"default")],64))}});function by(){const e=ft(ca,null);if(e)return{openImageSelector:(n={})=>e.openImageSelector(n),closeImageSelector:()=>e.closeImageSelector()};const t=la();return{openImageSelector:(n={})=>{kf(n),t.openImageSelector(n)},closeImageSelector:()=>t.closeImageSelector()}}function Bf(){const{baseURL:e=""}=Xo();return ke.create({baseURL:e,timeout:3e4})}async function Ey(e){const t=Xo().fetchImages;if(t)return t(e);const n=Bf(),{data:r}=await n.get("/yc-media/images",{params:e});if(r.code!==200)throw new Error("加载图片资源失败");return r.data}async function Oy(e){const t=Xo().uploadImage;if(t)return t(e);const n=Bf(),r=new FormData;r.append("file",e);const{data:o}=await n.post("/yc-media/images/upload",r,{headers:{"Content-Type":"multipart/form-data"}});if(o.code!==200)throw new Error("上传图片失败");return o.data}exports.AiTaskPanel=ia;exports.AiTaskProvider=Rf;exports.AiUseDialog=sa;exports.IMAGE_SELECTOR_INJECT_KEY=ca;exports.ImageSelectorDialog=aa;exports.ImageSelectorProvider=jf;exports.SkyPageWindow=Uo;exports.YcAiTaskPanel=ia;exports.YcAiTaskProvider=Rf;exports.YcAiUseDialog=sa;exports.YcComponent=tf;exports.YcImageSelectorDialog=aa;exports.YcImageSelectorProvider=jf;exports.YcPageWindow=Uo;exports.createImageSelectorApi=la;exports.default=tf;exports.fetchImages=Ey;exports.getAiTaskConfig=Ei;exports.getImageSelectorConfig=Xo;exports.hideAiDialog=Zi;exports.hideImageSelectorDialog=Ff;exports.installYcComponent=ef;exports.listPrompts=Vf;exports.openAiUseDialog=Ag;exports.openImageSelector=kf;exports.setAiTaskConfig=Jl;exports.setImageSelectorConfig=wc;exports.showAiDialog=us;exports.showImageSelectorDialog=Lf;exports.uploadImage=Oy;exports.useAiTask=K1;exports.useAiTaskStore=Qi;exports.useImageSelector=by;
|
|
49
|
+
`):r=new Function("result",`return (${n})(result);`)}catch(o){throw new Error(`自定义脚本语法错误: ${o instanceof Error?o.message:String(o)}`)}try{return r(t)}catch(o){throw new Error(`自定义脚本执行失败: ${o instanceof Error?o.message:String(o)}`)}}async function Rg(e){return(await $g({projectId:Uf(),freeText:e.freeText,promptId:e.promptId,autoMatch:e.autoMatch})).runId}async function Lg(e,t){var r,o,s,i;const n=await cf(e);if(n.status==="WAITING_CLIENT"&&n.waitingStepKey&&n.waitingClientScript){(r=t==null?void 0:t.onProgress)==null||r.call(t,60,`执行脚本:${n.waitingStepKey}`);let a={};n.waitingArtifactId&&(a=await ui(e,n.waitingArtifactId));const l=Vg(n.waitingClientScript,a);return await Ig(e,{stepKey:n.waitingStepKey,output:l??{}}),null}if(n.status==="SUCCEEDED"){if(n.finalArtifactId){(o=t==null?void 0:t.onProgress)==null||o.call(t,95,"加载结果…");const a=await ui(e,n.finalArtifactId);return(s=t==null?void 0:t.onProgress)==null||s.call(t,100,"已完成"),{phase:"SUCCEEDED",runId:e,result:a}}return{phase:"SUCCEEDED",runId:e,result:{}}}return n.status==="FAILED"?{phase:"FAILED",runId:e,errorMessage:n.errorMessage||"工作流失败"}:n.status==="CANCELLED"?{phase:"FAILED",runId:e,errorMessage:"已取消"}:((i=t==null?void 0:t.onProgress)==null||i.call(t,jg(n),Bg(n)),null)}async function Fg(e){const t=await cf(e);return t.status!=="SUCCEEDED"||!t.finalArtifactId?null:await ui(e,t.finalArtifactId)}async function kg(e){await Mg(e)}function jg(e){if(e.status==="PENDING")return 8;const t=e.steps??[];if(!t.length)return 35;const n=t.filter(r=>r.status==="SUCCEEDED"||r.status==="SKIPPED").length;return Math.min(90,Math.round(20+n/t.length*70))}function Bg(e){var n;if(e.status==="PENDING")return"排队中…";const t=(n=e.steps)==null?void 0:n.find(r=>r.status==="RUNNING");return t?`执行中:${t.stepKey}`:"后端处理中…"}const uf=80;function Ug(){try{const e=localStorage.getItem(Xl());if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>n&&n.id&&n.createdAt).sort((n,r)=>r.createdAt-n.createdAt).slice(0,uf):[]}catch{return[]}}function Hg(e){const t=e.slice(0,uf).map(n=>({id:n.id,title:n.title,freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch,status:n.status,progress:n.progress,summary:n.summary,runId:n.runId,errorMessage:n.errorMessage,createdAt:n.createdAt,finishedAt:n.finishedAt}));localStorage.setItem(Xl(),JSON.stringify(t))}function zg(e){return{...e,logs:e.runId?[`ℹ 已从本地恢复,runId=${e.runId}`]:[],result:void 0}}function on(e){return e==="pending"||e==="running"}let fi=0,mr=null;const Wg=5e3;function Kg(){return fi+=1,`ai_task_${Date.now()}_${fi}`}function qg(e,t=28){const n=e.trim();return n.length<=t?n:`${n.slice(0,t)}…`}const Qi=Sg("ycAiTask",()=>{const e=he([]),t=he(!1),n=he(!1),r=he(!1),o=he({}),s=he(!1),i=new Set,a=new Map,l=new Set;function c(E,U){return{taskId:E.id,runId:E.runId,title:E.title,freeText:E.freeText,promptId:E.promptId,result:U,finishedAt:E.finishedAt??Date.now()}}function u(E,U){var _e;const K=e.value.find(xe=>xe.id===E);if(!(K!=null&&K.runId))return;const ee=c(K,U);(_e=a.get(E))==null||_e(ee),a.delete(E),l.forEach(xe=>xe(ee))}function f(E){return l.add(E),()=>l.delete(E)}const p=oe(()=>e.value.filter(E=>on(E.status)).length),g=oe(()=>e.value.filter(E=>E.status==="running").length),b=oe(()=>p.value>0?"AI 处理中":e.value.some(E=>E.status==="failed")?"部分任务失败":"AI 任务"),h=oe(()=>{const E=e.value.length,U=p.value;return E===0?"暂无任务":U>0?`${U}/${E} 项任务进行中`:`${E} 项任务已完成`});function v(){Hg(e.value)}function S(E,U){const K=e.value.findIndex(ee=>ee.id===E);K>=0&&(e.value[K]={...e.value[K],...U},v())}function T(E,U){const K=e.value.find(ee=>ee.id===E);K&&(K.logs.unshift(U),K.logs.length>20&&K.logs.pop())}function F(){t.value=!0,n.value=!1}function Y(){t.value=!1}function x(){n.value=!n.value}function W(E={}){o.value={...E},r.value=!0,us(E)}function V(){r.value=!1,Zi()}function ne(){mr||(mr=setInterval(()=>{N()},Wg))}function A(){p.value>0||mr&&(clearInterval(mr),mr=null)}async function N(){const E=e.value.filter(U=>U.runId&&on(U.status));if(!E.length){A();return}await Promise.all(E.map(U=>O(U.id)))}async function O(E){if(i.has(E))return;const U=e.value.find(K=>K.id===E);if(!(!(U!=null&&U.runId)||!on(U.status))){i.add(E);try{const K=await Lg(U.runId,{onProgress:(ee,_e)=>S(E,{progress:ee,summary:_e,status:"running"})});if(!K)return;if(K.phase==="SUCCEEDED"){const ee=K.result??{};S(E,{status:"succeeded",progress:100,summary:"已完成",result:ee,runId:K.runId,finishedAt:Date.now()}),u(E,ee)}else S(E,{status:K.errorMessage==="已取消"?"cancelled":"failed",progress:100,summary:K.errorMessage||"失败",errorMessage:K.errorMessage,runId:K.runId,finishedAt:Date.now()});A()}catch(K){const ee=K instanceof Error?K.message:"同步失败";T(E,`✗ ${ee}`)}finally{i.delete(E)}}}async function D(){if(s.value)return;s.value=!0;const E=Ug();E.length&&(e.value=E.map(zg),fi=E.length);const U=e.value.filter(K=>K.runId&&on(K.status));U.length&&(await Promise.all(U.map(K=>O(K.id))),ne());for(const K of e.value)K.status==="pending"&&!K.runId&&S(K.id,{status:"failed",summary:"页面刷新前未提交成功",finishedAt:Date.now()})}function J(E){const U=Kg(),K={id:U,title:E.title??qg(E.freeText),freeText:E.freeText.trim(),promptId:E.promptId,autoMatch:E.autoMatch,status:"pending",progress:0,summary:"正在提交…",createdAt:Date.now(),logs:[]};return e.value.unshift(K),v(),E.onFinish&&a.set(U,E.onFinish),E.showPanel!==!1&&F(),z(U),U}async function z(E){const U=e.value.find(K=>K.id===E);if(U)try{const K=await Rg({freeText:U.freeText,promptId:U.promptId,autoMatch:U.autoMatch});S(E,{runId:K,status:"running",progress:10,summary:"后端异步处理中…"}),T(E,`▶ 已提交 runId=${K}`),ne(),O(E)}catch(K){const ee=K instanceof Error?K.message:"提交失败";S(E,{status:"failed",progress:100,summary:ee,errorMessage:ee,finishedAt:Date.now()})}}async function R(E){const U=e.value.find(ee=>ee.id===E);if(!(U!=null&&U.runId))return null;if(U.result)return U.result;const K=await Fg(U.runId);return K&&S(E,{result:K}),K}async function k(E){const U=e.value.find(K=>K.id===E);if(U!=null&&U.runId&&on(U.status))try{await kg(U.runId)}catch{}U&&on(U.status)&&S(E,{status:"cancelled",summary:"已取消",finishedAt:Date.now()}),a.delete(E),A()}function B(){for(const E of e.value)on(E.status)&&k(E.id)}function $(){e.value=e.value.filter(E=>on(E.status)),v()}function X(E){k(E),a.delete(E),e.value=e.value.filter(U=>U.id!==E),v()}return{tasks:e,panelVisible:t,panelMinimized:n,dialogVisible:r,dialogOptions:o,hydrated:s,runningCount:p,activeCount:g,panelTitle:b,panelSubtitle:h,hydrate:D,showPanel:F,hidePanel:Y,toggleMinimize:x,openDialog:W,closeDialog:V,enqueue:J,onTaskFinish:f,refreshActiveTasks:N,loadTaskResult:R,cancelTask:k,cancelAll:B,clearFinished:$,removeTask:X}}),di={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Gg=["","default","small","large"];var ff=typeof global=="object"&&global&&global.Object===Object&&global,Yg=typeof self=="object"&&self&&self.Object===Object&&self,en=ff||Yg||Function("return this")(),un=en.Symbol,df=Object.prototype,Jg=df.hasOwnProperty,Xg=df.toString,gr=un?un.toStringTag:void 0;function Zg(e){var t=Jg.call(e,gr),n=e[gr];try{e[gr]=void 0;var r=!0}catch{}var o=Xg.call(e);return r&&(t?e[gr]=n:delete e[gr]),o}var Qg=Object.prototype,ev=Qg.toString;function tv(e){return ev.call(e)}var nv="[object Null]",rv="[object Undefined]",Tl=un?un.toStringTag:void 0;function Vn(e){return e==null?e===void 0?rv:nv:Tl&&Tl in Object(e)?Zg(e):tv(e)}function io(e){return e!=null&&typeof e=="object"}var ov="[object Symbol]";function ea(e){return typeof e=="symbol"||io(e)&&Vn(e)==ov}function sv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ta=Array.isArray,Al=un?un.prototype:void 0,Dl=Al?Al.toString:void 0;function pf(e){if(typeof e=="string")return e;if(ta(e))return sv(e,pf)+"";if(ea(e))return Dl?Dl.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iv="[object AsyncFunction]",av="[object Function]",lv="[object GeneratorFunction]",cv="[object Proxy]";function uv(e){if(!hf(e))return!1;var t=Vn(e);return t==av||t==lv||t==iv||t==cv}var $s=en["__core-js_shared__"],Pl=function(){var e=/[^.]+$/.exec($s&&$s.keys&&$s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fv(e){return!!Pl&&Pl in e}var dv=Function.prototype,pv=dv.toString;function Rn(e){if(e!=null){try{return pv.call(e)}catch{}try{return e+""}catch{}}return""}var hv=/[\\^$.*+?()[\]{}|]/g,mv=/^\[object .+?Constructor\]$/,gv=Function.prototype,vv=Object.prototype,_v=gv.toString,yv=vv.hasOwnProperty,wv=RegExp("^"+_v.call(yv).replace(hv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bv(e){if(!hf(e)||fv(e))return!1;var t=uv(e)?wv:mv;return t.test(Rn(e))}function Ev(e,t){return e==null?void 0:e[t]}function Ln(e,t){var n=Ev(e,t);return bv(n)?n:void 0}var pi=Ln(en,"WeakMap"),$l=function(){try{var e=Ln(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ov(e,t,n){t=="__proto__"&&$l?$l(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nv(e,t){return e===t||e!==e&&t!==t}var xv=Object.prototype,zy=xv.hasOwnProperty;var Sv=9007199254740991;function Cv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Sv}var Wy=Object.prototype;var Tv="[object Arguments]";function Ml(e){return io(e)&&Vn(e)==Tv}var mf=Object.prototype,Av=mf.hasOwnProperty,Dv=mf.propertyIsEnumerable,Ky=Ml(function(){return arguments}())?Ml:function(e){return io(e)&&Av.call(e,"callee")&&!Dv.call(e,"callee")};var gf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Il=gf&&typeof module=="object"&&module&&!module.nodeType&&module,Pv=Il&&Il.exports===gf,Vl=Pv?en.Buffer:void 0,qy=Vl?Vl.isBuffer:void 0;var $v="[object Arguments]",Mv="[object Array]",Iv="[object Boolean]",Vv="[object Date]",Rv="[object Error]",Lv="[object Function]",Fv="[object Map]",kv="[object Number]",jv="[object Object]",Bv="[object RegExp]",Uv="[object Set]",Hv="[object String]",zv="[object WeakMap]",Wv="[object ArrayBuffer]",Kv="[object DataView]",qv="[object Float32Array]",Gv="[object Float64Array]",Yv="[object Int8Array]",Jv="[object Int16Array]",Xv="[object Int32Array]",Zv="[object Uint8Array]",Qv="[object Uint8ClampedArray]",e_="[object Uint16Array]",t_="[object Uint32Array]",Me={};Me[qv]=Me[Gv]=Me[Yv]=Me[Jv]=Me[Xv]=Me[Zv]=Me[Qv]=Me[e_]=Me[t_]=!0;Me[$v]=Me[Mv]=Me[Wv]=Me[Iv]=Me[Kv]=Me[Vv]=Me[Rv]=Me[Lv]=Me[Fv]=Me[kv]=Me[jv]=Me[Bv]=Me[Uv]=Me[Hv]=Me[zv]=!1;function n_(e){return io(e)&&Cv(e.length)&&!!Me[Vn(e)]}function r_(e){return function(t){return e(t)}}var vf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pr=vf&&typeof module=="object"&&module&&!module.nodeType&&module,o_=Pr&&Pr.exports===vf,Ms=o_&&ff.process,Rl=function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||Ms&&Ms.binding&&Ms.binding("util")}catch{}}(),Ll=Rl&&Rl.isTypedArray,Gy=Ll?r_(Ll):n_,s_=Object.prototype,Yy=s_.hasOwnProperty;function _f(e,t){return function(n){return e(t(n))}}var Jy=_f(Object.keys,Object),i_=Object.prototype,Xy=i_.hasOwnProperty;var a_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l_=/^\w*$/;function c_(e,t){if(ta(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ea(e)?!0:l_.test(e)||!a_.test(e)||t!=null&&e in Object(t)}var Ur=Ln(Object,"create");function u_(){this.__data__=Ur?Ur(null):{},this.size=0}function f_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var d_="__lodash_hash_undefined__",p_=Object.prototype,h_=p_.hasOwnProperty;function m_(e){var t=this.__data__;if(Ur){var n=t[e];return n===d_?void 0:n}return h_.call(t,e)?t[e]:void 0}var g_=Object.prototype,v_=g_.hasOwnProperty;function __(e){var t=this.__data__;return Ur?t[e]!==void 0:v_.call(t,e)}var y_="__lodash_hash_undefined__";function w_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ur&&t===void 0?y_:t,this}function Pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pn.prototype.clear=u_;Pn.prototype.delete=f_;Pn.prototype.get=m_;Pn.prototype.has=__;Pn.prototype.set=w_;function b_(){this.__data__=[],this.size=0}function fs(e,t){for(var n=e.length;n--;)if(Nv(e[n][0],t))return n;return-1}var E_=Array.prototype,O_=E_.splice;function N_(e){var t=this.__data__,n=fs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():O_.call(t,n,1),--this.size,!0}function x_(e){var t=this.__data__,n=fs(t,e);return n<0?void 0:t[n][1]}function S_(e){return fs(this.__data__,e)>-1}function C_(e,t){var n=this.__data__,r=fs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=b_;tn.prototype.delete=N_;tn.prototype.get=x_;tn.prototype.has=S_;tn.prototype.set=C_;var Hr=Ln(en,"Map");function T_(){this.size=0,this.__data__={hash:new Pn,map:new(Hr||tn),string:new Pn}}function A_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ds(e,t){var n=e.__data__;return A_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function D_(e){var t=ds(this,e).delete(e);return this.size-=t?1:0,t}function P_(e){return ds(this,e).get(e)}function $_(e){return ds(this,e).has(e)}function M_(e,t){var n=ds(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nn.prototype.clear=T_;nn.prototype.delete=D_;nn.prototype.get=P_;nn.prototype.has=$_;nn.prototype.set=M_;var I_="Expected a function";function na(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(I_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(na.Cache||nn),n}na.Cache=nn;var V_=500;function R_(e){var t=na(e,function(r){return n.size===V_&&n.clear(),r}),n=t.cache;return t}var L_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F_=/\\(\\)?/g,k_=R_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_,function(n,r,o,s){t.push(o?s.replace(F_,"$1"):r||n)}),t});function j_(e){return e==null?"":pf(e)}function B_(e,t){return ta(e)?e:c_(e,t)?[e]:k_(j_(e))}function U_(e){if(typeof e=="string"||ea(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function H_(e,t){t=B_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[U_(t[n++])];return n&&n==r?e:void 0}function z_(e,t,n){var r=e==null?void 0:H_(e,t);return r===void 0?n:r}var W_=_f(Object.getPrototypeOf,Object),K_="[object Object]",q_=Function.prototype,G_=Object.prototype,yf=q_.toString,Y_=G_.hasOwnProperty,J_=yf.call(Object);function X_(e){if(!io(e)||Vn(e)!=K_)return!1;var t=W_(e);if(t===null)return!0;var n=Y_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yf.call(n)==J_}function Z_(){this.__data__=new tn,this.size=0}function Q_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function e2(e){return this.__data__.get(e)}function t2(e){return this.__data__.has(e)}var n2=200;function r2(e,t){var n=this.__data__;if(n instanceof tn){var r=n.__data__;if(!Hr||r.length<n2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nn(r)}return n.set(e,t),this.size=n.size,this}function ao(e){var t=this.__data__=new tn(e);this.size=t.size}ao.prototype.clear=Z_;ao.prototype.delete=Q_;ao.prototype.get=e2;ao.prototype.has=t2;ao.prototype.set=r2;var o2=Object.prototype,Zy=o2.propertyIsEnumerable;var hi=Ln(en,"DataView"),mi=Ln(en,"Promise"),gi=Ln(en,"Set"),Fl="[object Map]",s2="[object Object]",kl="[object Promise]",jl="[object Set]",Bl="[object WeakMap]",Ul="[object DataView]",i2=Rn(hi),a2=Rn(Hr),l2=Rn(mi),c2=Rn(gi),u2=Rn(pi),zn=Vn;(hi&&zn(new hi(new ArrayBuffer(1)))!=Ul||Hr&&zn(new Hr)!=Fl||mi&&zn(mi.resolve())!=kl||gi&&zn(new gi)!=jl||pi&&zn(new pi)!=Bl)&&(zn=function(e){var t=Vn(e),n=t==s2?e.constructor:void 0,r=n?Rn(n):"";if(r)switch(r){case i2:return Ul;case a2:return Fl;case l2:return kl;case c2:return jl;case u2:return Bl}return t});var Qy=en.Uint8Array,f2="__lodash_hash_undefined__";function d2(e){return this.__data__.set(e,f2),this}function p2(e){return this.__data__.has(e)}function vi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new nn;++t<n;)this.add(e[t])}vi.prototype.add=vi.prototype.push=d2;vi.prototype.has=p2;var Hl=un?un.prototype:void 0,ew=Hl?Hl.valueOf:void 0;var h2=Object.prototype,tw=h2.hasOwnProperty;var m2=Object.prototype,nw=m2.hasOwnProperty;function wf(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];Ov(r,o[0],o[1])}return r}function g2(e){return e==null}const Is=e=>typeof e=="boolean",$n=e=>typeof e=="number";const v2=e=>typeof Element>"u"?!1:e instanceof Element;const _2=e=>be(e)?!Number.isNaN(Number(e)):!1;const zl=e=>Object.keys(e);const y2="__epPropKey",st=e=>e,w2=e=>ve(e)&&!!e.__epPropKey,bf=(e,t)=>{if(!ve(e)||w2(e))return e;const{values:n,required:r,default:o,type:s,validator:i}=e,a={type:s,required:!!r,validator:n||i?l=>{let c=!1,u=[];if(n&&(u=Array.from(n),ge(e,"default")&&u.push(o),c||(c=u.includes(l))),i&&(c||(c=i(l))),!c&&u.length>0){const f=[...new Set(u)].map(p=>JSON.stringify(p)).join(", ");so(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[y2]:!0};return ge(e,"default")&&(a.default=o),a},lo=e=>wf(Object.entries(e).map(([t,n])=>[t,bf(n,t)]));var b2=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function co(e,t){{const n=be(e)?new b2(`[${e}] ${t}`):e;console.warn(n)}}function Ef(e,t){return Mi()?(Ac(e,t),!0):!1}const Fn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E2=Object.prototype.toString,O2=e=>E2.call(e)==="[object Object]";function Vs(e){return Array.isArray(e)?e:[e]}function N2(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,s=Kc(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){s.value=!1,a()}function c(...u){o&&e(),a(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=void 0,e(...u)},Gn(t))}return r&&(s.value=!0,Fn&&c()),Ef(l),{isPending:xt(s),start:c,stop:l}}function x2(e,t,n){return Je(e,t,{...n,immediate:!0})}const Of=Fn?window:void 0,rw=Fn?window.document:void 0;function _i(e){var t;const n=Gn(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function S2(...e){const t=(r,o,s,i)=>(r.addEventListener(o,s,i),()=>r.removeEventListener(o,s,i)),n=oe(()=>{const r=Vs(Gn(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return x2(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>_i(s)))!==null&&r!==void 0?r:[Of].filter(s=>s!=null),Vs(Gn(n.value?e[1]:e[0])),Vs(Z(n.value?e[2]:e[1])),Gn(n.value?e[3]:e[2])]},([r,o,s,i],a,l)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(s!=null&&s.length))return;const c=O2(i)?{...i}:i,u=r.flatMap(f=>o.flatMap(p=>s.map(g=>t(f,p,g,c))));l(()=>{u.forEach(f=>f())})},{flush:"post"})}function C2(){const e=Kc(!1),t=$t();return t&&In(()=>{e.value=!0},t),e}function T2(e){const t=C2();return oe(()=>(t.value,!!e()))}const ow=Symbol("vueuse-ssr-width");function A2(e,t,n={}){const{window:r=Of,...o}=n;let s;const i=T2(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=Je(oe(()=>{const u=Gn(e);return Array.isArray(u)?u.map(f=>_i(f)):[_i(u)]}),u=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const f of u)f&&s.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return Ef(c),{isSupported:i,stop:c}}const D2=()=>Fn&&/android/i.test(window.navigator.userAgent),P2="utils/dom/style";function yi(e,t="px"){if(!e&&e!==0)return"";if($n(e)||_2(e))return`${e}${t}`;if(be(e))return e;co(P2,"binding value must be a string or number")}var $2={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const M2=e=>(t,n)=>I2(t,n,Z(e)),I2=(e,t,n)=>z_(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),V2=e=>({lang:oe(()=>Z(e).name),locale:Se(e)?e:he(e),t:M2(e)}),Nf=Symbol("localeContextKey"),R2=e=>{const t=e||ft(Nf,he());return V2(oe(()=>t.value||$2))},L2="is-",mn=(e,t,n,r,o)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},xf=Symbol("namespaceContextKey"),F2=e=>{const t=e||($t()?ft(xf,he("el")):he("el"));return oe(()=>Z(t)||"el")},ra=(e,t)=>{const n=F2(t);return{namespace:n,b:(h="")=>mn(n.value,e,h,"",""),e:h=>h?mn(n.value,e,"",h,""):"",m:h=>h?mn(n.value,e,"","",h):"",be:(h,v)=>h&&v?mn(n.value,e,h,v,""):"",em:(h,v)=>h&&v?mn(n.value,e,"",h,v):"",bm:(h,v)=>h&&v?mn(n.value,e,h,"",v):"",bem:(h,v,S)=>h&&v&&S?mn(n.value,e,h,v,S):"",is:(h,...v)=>{const S=v.length>=1?v[0]:!0;return h&&S?`${L2}${h}`:""},cssVar:h=>{const v={};for(const S in h)h[S]&&(v[`--${n.value}-${S}`]=h[S]);return v},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const v={};for(const S in h)h[S]&&(v[`--${n.value}-${e}-${S}`]=h[S]);return v},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}};const k2=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=j2(e);if(t){if(Object.values(di).includes(t))return t;switch(t){case" ":return di.space;default:return""}}return""},j2=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&D2()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Wl={current:0},Kl=he(0),Sf=2e3,ql=Symbol("elZIndexContextKey"),Cf=Symbol("zIndexContextKey"),B2=e=>{const t=$t()?ft(ql,Wl):Wl,n=e||($t()?ft(Cf,void 0):void 0),r=oe(()=>{const i=Z(n);return $n(i)?i:Sf}),o=oe(()=>r.value+Kl.value),s=()=>(t.current++,Kl.value=t.current,o.value);return!Fn&&!ft(ql)&&co("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
50
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:o,nextZIndex:s}},U2=bf({type:String,values:Gg,required:!1}),H2=Symbol("size");const z2=Symbol("emptyValuesContextKey");const W2=lo({emptyValues:Array,valueOnClear:{type:st([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=ce(e)?e():e,se(e)?e.every(t=>!t):!e)}});const K2=e=>{const t=e.props,n=se(t)?wf(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(n){for(const[o,s]of Object.entries(r)){const i=n[o];if(ge(n,o)){if(X_(i)){n[o]={...i,default:s};continue}n[o]={type:i,default:s}}}e.props=n}}},Tf=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return K2(e),e},q2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e);const G2=st([String,Object,Function]);const Y2={Close:Xi,SuccessFilled:Zu,InfoFilled:ii,WarningFilled:Qu,CircleCloseFilled:Xu},Gl={primary:ii,success:Zu,warning:Qu,error:Xu,info:ii};const J2=lo({size:{type:st([Number,String])},color:{type:String}});var X2=$e({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:J2,setup(e){const t=e,n=ra("icon"),r=oe(()=>{const{size:o,color:s}=t,i=yi(o);return!i&&!s?{}:{fontSize:i,"--color":s}});return(o,s)=>(q(),fe("i",is({class:Z(n).b(),style:r.value},o.$attrs),[cn(o.$slots,"default")],16))}}),Z2=X2;const Yl=Tf(Z2),Q2=e=>e,e1=lo({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:st([String,Object,Array,Boolean]),default:void 0},offset:{type:st(Array),default:()=>[0,0]},badgeClass:{type:String}});var t1=$e({name:"ElBadge",__name:"badge",props:e1,setup(e,{expose:t}){const n=e,r=ra("badge"),o=oe(()=>n.isDot?"":$n(n.value)&&$n(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),s=oe(()=>[{backgroundColor:n.color,marginRight:yi(-n.offset[0]),marginTop:yi(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(i,a)=>(q(),fe("div",{class:Ge(Z(r).b())},[cn(i.$slots,"default"),Q(ls,{name:`${Z(r).namespace.value}-zoom-in-center`},{default:ie(()=>[!e.hidden&&(o.value||e.isDot||i.$slots.content)?(q(),fe("sup",{key:0,class:Ge([Z(r).e("content"),Z(r).em("content",e.type),Z(r).is("fixed",!!i.$slots.default),Z(r).is("dot",e.isDot),Z(r).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:ln(s.value)},[cn(i.$slots,"content",{value:o.value},()=>[qe(Ae(o.value),1)])],6)):Ne("v-if",!0)]),_:3},8,["name"])],2))}}),n1=t1;const r1=Tf(n1),Af=Symbol(),zo=he();function Df(e,t=void 0){const n=$t()?ft(Af,zo):zo;return e?oe(()=>{var r;return((r=n.value)==null?void 0:r[e])??t}):n}function o1(e,t){const n=Df(),r=ra(e,oe(()=>{var a;return((a=n.value)==null?void 0:a.namespace)||"el"})),o=R2(oe(()=>{var a;return(a=n.value)==null?void 0:a.locale})),s=B2(oe(()=>{var l;const a=(l=n.value)==null?void 0:l.zIndex;return g2(a)||Number.isNaN(a)?Sf:a})),i=oe(()=>{var a;return Z(t)||((a=n.value)==null?void 0:a.size)||""});return s1(oe(()=>Z(n)||{})),{ns:r,locale:o,zIndex:s,size:i}}const s1=(e,t,n=!1)=>{const r=!!$t(),o=r?Df():void 0,s=r?Lr:void 0;if(!s){co("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=oe(()=>{const a=Z(e);return o!=null&&o.value?i1(o.value,a):a});return s(Af,i),s(Nf,oe(()=>i.value.locale)),s(xf,oe(()=>i.value.namespace)),s(Cf,oe(()=>i.value.zIndex)),s(H2,{size:oe(()=>i.value.size||"")}),s(z2,oe(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!zo.value)&&(zo.value=i.value),i},i1=(e,t)=>{const n=[...new Set([...zl(e),...zl(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},sw=lo({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:U2,button:{type:st(Object)},card:{type:st(Object)},dialog:{type:st(Object)},link:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:st(Object)},...W2}),ot={placement:"top"};var a1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Pf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(a1,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",f="month",p="quarter",g="year",b="date",h="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var R=["th","st","nd","rd"],k=z%100;return"["+z+(R[(k-20)%10]||R[k]||R[0])+"]"}},F=function(z,R,k){var B=String(z);return!B||B.length>=R?z:""+Array(R+1-B.length).join(k)+z},Y={s:F,z:function(z){var R=-z.utcOffset(),k=Math.abs(R),B=Math.floor(k/60),$=k%60;return(R<=0?"+":"-")+F(B,2,"0")+":"+F($,2,"0")},m:function z(R,k){if(R.date()<k.date())return-z(k,R);var B=12*(k.year()-R.year())+(k.month()-R.month()),$=R.clone().add(B,f),X=k-$<0,E=R.clone().add(B+(X?-1:1),f);return+(-(B+(k-$)/(X?$-E:E-$))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:f,y:g,w:u,d:c,D:b,h:l,m:a,s:i,ms:s,Q:p}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},x="en",W={};W[x]=T;var V="$isDayjsObject",ne=function(z){return z instanceof D||!(!z||!z[V])},A=function z(R,k,B){var $;if(!R)return x;if(typeof R=="string"){var X=R.toLowerCase();W[X]&&($=X),k&&(W[X]=k,$=X);var E=R.split("-");if(!$&&E.length>1)return z(E[0])}else{var U=R.name;W[U]=R,$=U}return!B&&$&&(x=$),$||!B&&x},N=function(z,R){if(ne(z))return z.clone();var k=typeof R=="object"?R:{};return k.date=z,k.args=arguments,new D(k)},O=Y;O.l=A,O.i=ne,O.w=function(z,R){return N(z,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var D=function(){function z(k){this.$L=A(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[V]=!0}var R=z.prototype;return R.parse=function(k){this.$d=function(B){var $=B.date,X=B.utc;if($===null)return new Date(NaN);if(O.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var E=$.match(v);if(E){var U=E[2]-1||0,K=(E[7]||"0").substring(0,3);return X?new Date(Date.UTC(E[1],U,E[3]||1,E[4]||0,E[5]||0,E[6]||0,K)):new Date(E[1],U,E[3]||1,E[4]||0,E[5]||0,E[6]||0,K)}}return new Date($)}(k),this.init()},R.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},R.$utils=function(){return O},R.isValid=function(){return this.$d.toString()!==h},R.isSame=function(k,B){var $=N(k);return this.startOf(B)<=$&&$<=this.endOf(B)},R.isAfter=function(k,B){return N(k)<this.startOf(B)},R.isBefore=function(k,B){return this.endOf(B)<N(k)},R.$g=function(k,B,$){return O.u(k)?this[B]:this.set($,k)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(k,B){var $=this,X=!!O.u(B)||B,E=O.p(k),U=function(je,Pe){var Ve=O.w($.$u?Date.UTC($.$y,Pe,je):new Date($.$y,Pe,je),$);return X?Ve:Ve.endOf(c)},K=function(je,Pe){return O.w($.toDate()[je].apply($.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(Pe)),$)},ee=this.$W,_e=this.$M,xe=this.$D,ct="set"+(this.$u?"UTC":"");switch(E){case g:return X?U(1,0):U(31,11);case f:return X?U(1,_e):U(0,_e+1);case u:var De=this.$locale().weekStart||0,me=(ee<De?ee+7:ee)-De;return U(X?xe-me:xe+(6-me),_e);case c:case b:return K(ct+"Hours",0);case l:return K(ct+"Minutes",1);case a:return K(ct+"Seconds",2);case i:return K(ct+"Milliseconds",3);default:return this.clone()}},R.endOf=function(k){return this.startOf(k,!1)},R.$set=function(k,B){var $,X=O.p(k),E="set"+(this.$u?"UTC":""),U=($={},$[c]=E+"Date",$[b]=E+"Date",$[f]=E+"Month",$[g]=E+"FullYear",$[l]=E+"Hours",$[a]=E+"Minutes",$[i]=E+"Seconds",$[s]=E+"Milliseconds",$)[X],K=X===c?this.$D+(B-this.$W):B;if(X===f||X===g){var ee=this.clone().set(b,1);ee.$d[U](K),ee.init(),this.$d=ee.set(b,Math.min(this.$D,ee.daysInMonth())).$d}else U&&this.$d[U](K);return this.init(),this},R.set=function(k,B){return this.clone().$set(k,B)},R.get=function(k){return this[O.p(k)]()},R.add=function(k,B){var $,X=this;k=Number(k);var E=O.p(B),U=function(_e){var xe=N(X);return O.w(xe.date(xe.date()+Math.round(_e*k)),X)};if(E===f)return this.set(f,this.$M+k);if(E===g)return this.set(g,this.$y+k);if(E===c)return U(1);if(E===u)return U(7);var K=($={},$[a]=r,$[l]=o,$[i]=n,$)[E]||1,ee=this.$d.getTime()+k*K;return O.w(ee,this)},R.subtract=function(k,B){return this.add(-1*k,B)},R.format=function(k){var B=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var X=k||"YYYY-MM-DDTHH:mm:ssZ",E=O.z(this),U=this.$H,K=this.$m,ee=this.$M,_e=$.weekdays,xe=$.months,ct=$.meridiem,De=function(Pe,Ve,mt,d){return Pe&&(Pe[Ve]||Pe(B,X))||mt[Ve].slice(0,d)},me=function(Pe){return O.s(U%12||12,Pe,"0")},je=ct||function(Pe,Ve,mt){var d=Pe<12?"AM":"PM";return mt?d.toLowerCase():d};return X.replace(S,function(Pe,Ve){return Ve||function(mt){switch(mt){case"YY":return String(B.$y).slice(-2);case"YYYY":return O.s(B.$y,4,"0");case"M":return ee+1;case"MM":return O.s(ee+1,2,"0");case"MMM":return De($.monthsShort,ee,xe,3);case"MMMM":return De(xe,ee);case"D":return B.$D;case"DD":return O.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return De($.weekdaysMin,B.$W,_e,2);case"ddd":return De($.weekdaysShort,B.$W,_e,3);case"dddd":return _e[B.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return je(U,K,!0);case"A":return je(U,K,!1);case"m":return String(K);case"mm":return O.s(K,2,"0");case"s":return String(B.$s);case"ss":return O.s(B.$s,2,"0");case"SSS":return O.s(B.$ms,3,"0");case"Z":return E}return null}(Pe)||E.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(k,B,$){var X,E=this,U=O.p(B),K=N(k),ee=(K.utcOffset()-this.utcOffset())*r,_e=this-K,xe=function(){return O.m(E,K)};switch(U){case g:X=xe()/12;break;case f:X=xe();break;case p:X=xe()/3;break;case u:X=(_e-ee)/6048e5;break;case c:X=(_e-ee)/864e5;break;case l:X=_e/o;break;case a:X=_e/r;break;case i:X=_e/n;break;default:X=_e}return $?X:O.a(X)},R.daysInMonth=function(){return this.endOf(f).$D},R.$locale=function(){return W[this.$L]},R.locale=function(k,B){if(!k)return this.$L;var $=this.clone(),X=A(k,B,!0);return X&&($.$L=X),$},R.clone=function(){return O.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},z}(),J=D.prototype;return N.prototype=J,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",f],["$y",g],["$D",b]].forEach(function(z){J[z[1]]=function(R){return this.$g(R,z[0],z[1])}}),N.extend=function(z,R){return z.$i||(z(R,D,N),z.$i=!0),N},N.locale=A,N.isDayjs=ne,N.unix=function(z){return N(1e3*z)},N.en=W[x],N.Ls=W,N.p={},N})})(Pf);var iw=Pf.exports;const $f=["primary","success","info","warning","error"],Mf=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Xe=Q2({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Fn?document.body:void 0}),l1=lo({customClass:{type:String,default:Xe.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Xe.dangerouslyUseHTMLString},duration:{type:Number,default:Xe.duration},icon:{type:G2,default:Xe.icon},id:{type:String,default:Xe.id},message:{type:st([String,Object,Function]),default:Xe.message},onClose:{type:st(Function),default:Xe.onClose},showClose:{type:Boolean,default:Xe.showClose},type:{type:String,values:$f,default:Xe.type},plain:{type:Boolean,default:Xe.plain},offset:{type:Number,default:Xe.offset},placement:{type:String,values:Mf,default:Xe.placement},zIndex:{type:Number,default:Xe.zIndex},grouping:{type:Boolean,default:Xe.grouping},repeatNum:{type:Number,default:Xe.repeatNum}}),c1={destroy:()=>!0},Ct=Fi({}),u1=e=>(Ct[e]||(Ct[e]=Fi([])),Ct[e]),f1=(e,t)=>{const n=Ct[t]||[],r=n.findIndex(i=>i.id===e),o=n[r];let s;return r>0&&(s=n[r-1]),{current:o,prev:s}},d1=(e,t)=>{const{prev:n}=f1(e,t);return n?n.vm.exposed.bottom.value:0},p1=(e,t,n)=>(Ct[n]||[]).findIndex(r=>r.id===e)>0?16:t,h1=["id"],m1=["innerHTML"];var g1=$e({name:"ElMessage",__name:"message",props:l1,emits:c1,setup(e,{expose:t,emit:n}){const{Close:r}=Y2,o=e,s=n,i=he(!1),{ns:a,zIndex:l}=o1("message"),{currentZIndex:c,nextZIndex:u}=l,f=he(),p=he(!1),g=he(0);let b;const h=oe(()=>o.type?o.type==="error"?"danger":o.type:"info"),v=oe(()=>{const J=o.type;return{[a.bm("icon",J)]:J&&Gl[J]}}),S=oe(()=>o.icon||Gl[o.type]||""),T=oe(()=>o.placement||"top"),F=oe(()=>d1(o.id,T.value)),Y=oe(()=>Math.max(p1(o.id,o.offset,T.value)+F.value,o.offset)),x=oe(()=>g.value+Y.value),W=oe(()=>T.value.includes("left")?a.is("left"):T.value.includes("right")?a.is("right"):a.is("center")),V=oe(()=>T.value.startsWith("top")?"top":"bottom"),ne=oe(()=>({[V.value]:`${Y.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:b}=N2(()=>{O()},o.duration))}function N(){b==null||b()}function O(){p.value=!1,er(()=>{var J;i.value||((J=o.onClose)==null||J.call(o),s("destroy"))})}function D(J){k2(J)===di.esc&&O()}return In(()=>{A(),u(),p.value=!0}),Je(()=>o.repeatNum,()=>{N(),A()}),S2(document,"keydown",D),A2(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:p,bottom:x,close:O}),(J,z)=>(q(),we(ls,{name:Z(a).b("fade"),onBeforeEnter:z[0]||(z[0]=R=>i.value=!0),onBeforeLeave:e.onClose,onAfterLeave:z[1]||(z[1]=R=>J.$emit("destroy")),persisted:""},{default:ie(()=>[tr(te("div",{id:e.id,ref_key:"messageRef",ref:f,class:Ge([Z(a).b(),{[Z(a).m(e.type)]:e.type},Z(a).is("closable",e.showClose),Z(a).is("plain",e.plain),Z(a).is("bottom",V.value==="bottom"),W.value,e.customClass]),style:ln(ne.value),role:"alert",onMouseenter:N,onMouseleave:A},[e.repeatNum>1?(q(),we(Z(r1),{key:0,value:e.repeatNum,type:h.value,class:Ge(Z(a).e("badge"))},null,8,["value","type","class"])):Ne("v-if",!0),S.value?(q(),we(Z(Yl),{key:1,class:Ge([Z(a).e("icon"),v.value])},{default:ie(()=>[(q(),we(c0(S.value)))]),_:1},8,["class"])):Ne("v-if",!0),!e.dangerouslyUseHTMLString||J.$slots.default?(q(),fe("p",{key:2,class:Ge(Z(a).e("content"))},[cn(J.$slots,"default",{},()=>[qe(Ae(e.message),1)])],2)):(q(),fe(Re,{key:3},[Ne(" Caution here, message could've been compromised, never use user's input as message "),te("p",{class:Ge(Z(a).e("content")),innerHTML:e.message},null,10,m1)],2112)),e.showClose?(q(),we(Z(Yl),{key:4,class:Ge(Z(a).e("closeBtn")),onClick:Yu(O,["stop"])},{default:ie(()=>[Q(Z(r))]),_:1},8,["class"])):Ne("v-if",!0)],46,h1),[[Bo,p.value]])]),_:3},8,["name","onBeforeLeave"]))}}),v1=g1;let _1=1;const y1=e=>{if(!e.appendTo)e.appendTo=document.body;else if(be(e.appendTo)){let t=document.querySelector(e.appendTo);v2(t)||(co("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},w1=e=>{!e.placement&&be(ot.placement)&&ot.placement&&(e.placement=ot.placement),e.placement||(e.placement="top"),Mf.includes(e.placement)||(co("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},If=e=>{const t=!e||be(e)||Zt(e)||ce(e)?{message:e}:e,n={...Xe,...t};return y1(n),w1(n),Is(ot.grouping)&&!n.grouping&&(n.grouping=ot.grouping),$n(ot.duration)&&n.duration===3e3&&(n.duration=ot.duration),$n(ot.offset)&&n.offset===16&&(n.offset=ot.offset),Is(ot.showClose)&&!n.showClose&&(n.showClose=ot.showClose),Is(ot.plain)&&!n.plain&&(n.plain=ot.plain),n},b1=e=>{const t=Ct[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:r}=e;r.close()},E1=({appendTo:e,...t},n)=>{const r=`message_${_1++}`,o=t.onClose,s=document.createElement("div"),i={...t,id:r,onClose:()=>{o==null||o(),b1(c)},onDestroy:()=>{El(null,s)}},a=Q(v1,i,ce(i.message)||Zt(i.message)?{default:ce(i.message)?i.message:()=>i.message}:null);a.appContext=n||Mn._context,El(a,s),e.appendChild(s.firstElementChild);const l=a.component,c={id:r,vnode:a,vm:l,handler:{close:()=>{l.exposed.close()}},props:a.component.props};return c},Mn=(e={},t)=>{if(!Fn)return{close:()=>{}};const n=If(e),r=u1(n.placement||"top");if(n.grouping&&r.length){const s=r.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if($n(ot.max)&&r.length>=ot.max)return{close:()=>{}};const o=E1(n,t);return r.push(o),o.handler};$f.forEach(e=>{Mn[e]=(t={},n)=>Mn({...If(t),type:e},n)});function O1(e){for(const t in Ct)if(ge(Ct,t)){const n=[...Ct[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function N1(e){Ct[e]&&[...Ct[e]].forEach(t=>t.handler.close())}Mn.closeAll=O1;Mn.closeAllByPlacement=N1;Mn._context=null;const yt=q2(Mn,"$message");async function Vf(e){return(await rr().get("/yc-ai/ai/prompts",{params:e?{category:e}:{}})).data}function oa(){const e=ft(lf,null);return e||Qi()}const x1={class:"ai-use-dialog__footer"},S1={class:"ai-use-dialog__footer-actions"},C1=$e({__name:"AiUseDialog",props:{title:{default:"AI 生成"},freeText:{default:""},promptId:{},autoMatch:{type:Boolean,default:!1},prompts:{},showAutoMatch:{type:Boolean,default:!1},showPromptSelect:{type:Boolean,default:!1},autoMatchLabel:{default:"自动匹配提示词"},promptLabel:{default:"提示词"},freeTextLabel:{default:"需求描述"},freeTextPlaceholder:{default:"描述要生成的页面或项目 JSON"},submitText:{default:"发送"},showTaskListButton:{type:Boolean,default:!0},taskListButtonText:{default:"查看 AI 任务"},width:{default:"520px"},modelValue:{type:Boolean},showDialog:{type:Boolean}},emits:["update:modelValue","submitted"],setup(e,{emit:t}){const n=e,r=t,o=oa(),s=oe(()=>n.modelValue!==void 0),i=he(!1);Je(()=>n.modelValue,x=>{s.value&&(i.value=!!x)},{immediate:!0}),Je(i,x=>{if(s.value){r("update:modelValue",x);return}kt.visible=x,x||Zi()}),Je(()=>kt.visible,x=>{s.value||(i.value=x)},{immediate:!0});function a(x){if(s.value)return;const W=x.detail??{};b(W),i.value=!0}In(()=>{globalThis.addEventListener(ci,a),s.value||(i.value=kt.visible)}),to(()=>{globalThis.removeEventListener(ci,a)});const l=oe(()=>(s.value?void 0:kt.options.title)??n.title??"AI 生成"),c=he({freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch}),u=he(n.prompts?[...n.prompts]:[]),f=he(!1),p=he(!1),g=he();function b(x){var W,V;c.value.freeText=x.freeText??n.freeText??"",c.value.promptId=x.promptId??n.promptId,c.value.autoMatch=x.autoMatch??n.autoMatch??!1,g.value=x.onFinish,(W=x.prompts)!=null&&W.length?u.value=[...x.prompts]:(V=n.prompts)!=null&&V.length&&(u.value=[...n.prompts])}async function h(){if(!(u.value.length>0)){f.value=!0;try{const x=Ei().listPrompts;u.value=x?await x():await Vf()}catch{yt.warning("加载提示词失败")}finally{f.value=!1}}}function v(){s.value?b({}):b(kt.options),n.showPromptSelect&&h()}Je(()=>n.prompts,x=>{x!=null&&x.length&&(u.value=[...x])},{deep:!0}),Je(()=>[n.freeText,n.promptId,n.autoMatch],([x,W,V])=>{i.value||(c.value.freeText=x??"",c.value.promptId=W,c.value.autoMatch=V??!1)});function S(){c.value.autoMatch&&(c.value.promptId=void 0)}function T(){p.value=!1}function F(){o.showPanel()}async function Y(){var A,N;if(!c.value.freeText.trim()){yt.warning("请填写需求描述");return}const x=c.value.autoMatch,W=x?void 0:c.value.promptId;if(!x&&W==null){const O=n.showPromptSelect||n.showAutoMatch?"请选择提示词或开启自动匹配":"请通过 promptId 传入提示词,或设置 autoMatch 为 true";yt.warning(O);return}p.value=!0;const V=s.value?g.value:kt.options.onFinish,ne=o.enqueue({freeText:c.value.freeText.trim(),promptId:W,autoMatch:x&&W==null?!0:void 0,showPanel:!0,onFinish:V});s.value?r("submitted",ne):(N=(A=kt.options).onSubmitted)==null||N.call(A,ne),i.value=!1,p.value=!1,yt.success("已加入任务队列,可在任务面板查看进度")}return(x,W)=>{const V=Ie("el-switch"),ne=Ie("el-form-item"),A=Ie("el-option"),N=Ie("el-select"),O=Ie("el-input"),D=Ie("el-form"),J=Ie("el-button"),z=Ie("el-dialog");return q(),we(z,{modelValue:i.value,"onUpdate:modelValue":W[4]||(W[4]=R=>i.value=R),title:l.value,width:e.width,"append-to-body":"",class:"ai-use-dialog",onClosed:T,onOpen:v},{footer:ie(()=>[te("div",x1,[e.showTaskListButton?(q(),we(J,{key:0,link:"",type:"primary",onClick:F},{default:ie(()=>[qe(Ae(e.taskListButtonText),1)]),_:1})):Ne("",!0),te("div",S1,[Q(J,{onClick:W[3]||(W[3]=R=>i.value=!1)},{default:ie(()=>[...W[5]||(W[5]=[qe("取消",-1)])]),_:1}),Q(J,{type:"primary",loading:p.value,onClick:Y},{default:ie(()=>[qe(Ae(e.submitText),1)]),_:1},8,["loading"])])])]),default:ie(()=>[Q(D,{"label-position":"top"},{default:ie(()=>[e.showAutoMatch?(q(),we(ne,{key:0,label:e.autoMatchLabel},{default:ie(()=>[Q(V,{modelValue:c.value.autoMatch,"onUpdate:modelValue":W[0]||(W[0]=R=>c.value.autoMatch=R),"active-text":"按需求自动选","inactive-text":"手动指定",onChange:S},null,8,["modelValue"])]),_:1},8,["label"])):Ne("",!0),e.showPromptSelect?(q(),we(ne,{key:1,label:e.promptLabel,required:!c.value.autoMatch},{default:ie(()=>[Q(N,{modelValue:c.value.promptId,"onUpdate:modelValue":W[1]||(W[1]=R=>c.value.promptId=R),filterable:"",clearable:"",placeholder:c.value.autoMatch?"留空则自动匹配":"请选择提示词",style:{width:"100%"},loading:f.value},{default:ie(()=>[(q(!0),fe(Re,null,Cr(u.value,R=>(q(),we(A,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","loading"])]),_:1},8,["label","required"])):Ne("",!0),Q(ne,{label:e.freeTextLabel,required:""},{default:ie(()=>[Q(O,{modelValue:c.value.freeText,"onUpdate:modelValue":W[2]||(W[2]=R=>c.value.freeText=R),type:"textarea",rows:4,placeholder:e.freeTextPlaceholder},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["modelValue","title","width"])}}}),sa=cs(C1,[["__scopeId","data-v-9aa82e83"]]),T1={class:"ai-task-panel"},A1={class:"ai-task-panel__header"},D1={class:"ai-task-panel__header-left"},P1={class:"ai-task-panel__titles"},$1={class:"ai-task-panel__subtitle"},M1={class:"ai-task-panel__title"},I1={class:"ai-task-panel__header-actions"},V1={class:"ai-task-panel__body"},R1={key:1,class:"ai-task-list"},L1={class:"ai-task-row__icon"},F1={class:"ai-task-row__main"},k1={class:"ai-task-row__title"},j1={class:"ai-task-row__meta"},B1={key:0},U1={key:0,class:"ai-task-row__summary"},H1={class:"ai-task-row__ops"},z1={key:0,class:"ai-task-panel__footer"},W1=$e({__name:"AiTaskPanel",emits:["use"],setup(e,{emit:t}){const n=t,r=oa(),o=he(null),s={pending:"等待中",running:"执行中",succeeded:"已完成",failed:"失败",cancelled:"已取消"};function i(l){return s[l]??l}async function a(l){o.value=l.id;try{const c=l.result??await r.loadTaskResult(l.id);if(!c)return;n("use",{taskId:l.id,runId:l.runId,title:l.title,freeText:l.freeText,promptId:l.promptId,result:c,finishedAt:l.finishedAt??Date.now()})}finally{o.value=null}}return(l,c)=>{const u=Ie("el-icon"),f=Ie("el-button"),p=Ie("el-empty"),g=Ie("el-progress"),b=Ie("el-badge");return q(),we(Gh,{to:"body"},[Q(ls,{name:"ai-panel-slide"},{default:ie(()=>[tr(te("div",T1,[te("div",A1,[te("div",D1,[te("div",{class:Ge(["ai-task-panel__icon",{spinning:Z(r).activeCount>0}])},[Q(u,null,{default:ie(()=>[Q(Z(Ol))]),_:1})],2),te("div",P1,[te("div",$1,Ae(Z(r).panelSubtitle),1),te("div",M1,Ae(Z(r).panelTitle),1)])]),te("div",I1,[Z(r).runningCount>0?(q(),we(f,{key:0,link:"",type:"primary",onClick:c[0]||(c[0]=h=>Z(r).cancelAll())},{default:ie(()=>[...c[5]||(c[5]=[qe(" 取消全部 ",-1)])]),_:1})):Ne("",!0),Q(f,{link:"",onClick:c[1]||(c[1]=h=>Z(r).toggleMinimize())},{default:ie(()=>[Q(u,null,{default:ie(()=>[Q(Z(Wm))]),_:1})]),_:1}),Q(f,{link:"",onClick:c[2]||(c[2]=h=>Z(r).hidePanel())},{default:ie(()=>[Q(u,null,{default:ie(()=>[Q(Z(Xi))]),_:1})]),_:1})])]),te("div",V1,[Z(r).tasks.length?(q(),fe("div",R1,[(q(!0),fe(Re,null,Cr(Z(r).tasks,h=>(q(),fe("div",{key:h.id,class:"ai-task-row"},[te("div",L1,[h.status==="succeeded"?(q(),we(u,{key:0,class:"ok"},{default:ie(()=>[Q(Z(Zm))]),_:1})):h.status==="failed"?(q(),we(u,{key:1,class:"err"},{default:ie(()=>[Q(Z(tg))]),_:1})):h.status==="running"||h.status==="pending"?(q(),we(g,{key:2,type:"circle",percentage:h.progress,width:36,"stroke-width":3},null,8,["percentage"])):(q(),we(u,{key:3,class:"muted"},{default:ie(()=>[Q(Z(ig))]),_:1}))]),te("div",F1,[te("div",k1,Ae(h.title),1),te("div",j1,[te("span",null,Ae(i(h.status)),1),h.runId?(q(),fe("span",B1," · #"+Ae(h.runId),1)):Ne("",!0)]),h.summary?(q(),fe("div",U1,Ae(h.summary),1)):Ne("",!0)]),te("div",H1,[h.status==="running"||h.status==="pending"?(q(),we(f,{key:0,link:"",type:"danger",size:"small",onClick:v=>Z(r).cancelTask(h.id)},{default:ie(()=>[...c[6]||(c[6]=[qe(" 取消 ",-1)])]),_:1},8,["onClick"])):Ne("",!0),h.status==="succeeded"&&h.runId?(q(),we(f,{key:1,link:"",type:"primary",size:"small",loading:o.value===h.id,onClick:v=>a(h)},{default:ie(()=>[...c[7]||(c[7]=[qe(" 使用 ",-1)])]),_:1},8,["loading","onClick"])):Ne("",!0),h.status!=="running"&&h.status!=="pending"?(q(),we(f,{key:2,link:"",size:"small",onClick:v=>Z(r).removeTask(h.id)},{default:ie(()=>[...c[8]||(c[8]=[qe(" 移除 ",-1)])]),_:1},8,["onClick"])):Ne("",!0)])]))),128))])):(q(),we(p,{key:0,description:"暂无 AI 任务","image-size":64}))]),Z(r).tasks.some(h=>h.status!=="running"&&h.status!=="pending")?(q(),fe("div",z1,[Q(f,{link:"",type:"info",onClick:c[3]||(c[3]=h=>Z(r).clearFinished())},{default:ie(()=>[...c[9]||(c[9]=[qe("清除已完成",-1)])]),_:1})])):Ne("",!0)],512),[[Bo,Z(r).panelVisible&&!Z(r).panelMinimized]])]),_:1}),tr(te("div",{class:"ai-task-panel-mini",onClick:c[4]||(c[4]=h=>Z(r).toggleMinimize())},[Z(r).activeCount>0?(q(),we(u,{key:0,class:"spinning"},{default:ie(()=>[Q(Z(Ol))]),_:1})):Ne("",!0),te("span",null,Ae(Z(r).panelSubtitle),1),Z(r).runningCount>0?(q(),we(b,{key:1,value:Z(r).runningCount,class:"m-l-8"},null,8,["value"])):Ne("",!0)],512),[[Bo,Z(r).panelVisible&&Z(r).panelMinimized]])])}}}),ia=cs(W1,[["__scopeId","data-v-812b3127"]]),Rf=$e({__name:"AiTaskProvider",props:{title:{},freeText:{},promptId:{},autoMatch:{type:Boolean},prompts:{},showAutoMatch:{type:Boolean},showPromptSelect:{type:Boolean},autoMatchLabel:{},promptLabel:{},freeTextLabel:{},freeTextPlaceholder:{},submitText:{},showTaskListButton:{type:Boolean},taskListButtonText:{},width:{},modelValue:{type:Boolean},showDialog:{type:Boolean,default:!0}},emits:["finish","use"],setup(e,{emit:t}){const n=e,r=t,o=Qi();Lr(lf,o),Lr(af,of(o));const s=oe(()=>{const l={title:n.title,freeText:n.freeText,promptId:n.promptId,autoMatch:n.autoMatch,prompts:n.prompts,showAutoMatch:n.showAutoMatch,showPromptSelect:n.showPromptSelect,autoMatchLabel:n.autoMatchLabel,promptLabel:n.promptLabel,freeTextLabel:n.freeTextLabel,freeTextPlaceholder:n.freeTextPlaceholder,submitText:n.submitText,showTaskListButton:n.showTaskListButton,taskListButtonText:n.taskListButtonText,width:n.width};return n.modelValue!==void 0&&(l.modelValue=n.modelValue),l});let i;function a(l){r("use",l)}return In(()=>{o.hydrate(),i=o.onTaskFinish(l=>r("finish",l))}),to(()=>{i==null||i()}),(l,c)=>(q(),fe(Re,null,[e.showDialog!==!1?(q(),we(sa,zp(is({key:0},s.value)),null,16)):Ne("",!0),Q(ia,{onUse:a}),cn(l.$slots,"default")],64))}});function K1(){const e=ft(af,null);return e||of(oa())}const Rs="__YC_COMPONENT_IMAGE_SELECTOR__",wi="yc-component:image-selector-open";function q1(){const e=globalThis;return e[Rs]||(e[Rs]=sr({visible:!1,options:{}})),e[Rs]}const Ze=q1();function Lf(e={}){Ze.options={...e},Ze.visible=!0,globalThis.dispatchEvent(new CustomEvent(wi,{detail:{...e}}))}function Ff(){Ze.visible=!1}function kf(e={}){Lf(e)}const G1={class:"yc-image-selector"},Y1={class:"yc-image-selector__toolbar"},J1={class:"yc-image-selector__body"},X1={key:0,class:"yc-image-selector__aside"},Z1=["onClick"],Q1={key:0,class:"yc-image-selector__category-count"},ey={class:"yc-image-selector__main"},ty={key:1,class:"yc-image-selector__grid"},ny=["onClick"],ry={class:"yc-image-selector__thumb"},oy=["src","alt","onLoad"],sy={key:0,class:"yc-image-selector__order"},iy=["title"],ay={key:0,class:"yc-image-selector__selected-bar"},ly={class:"yc-image-selector__selected-bar-label"},cy={class:"yc-image-selector__selected-bar-list"},uy=["onClick"],fy=["src","alt"],dy={key:1,class:"yc-image-selector__pagination"},py={key:0,class:"yc-image-selector__footer"},hy={class:"yc-image-selector__selected-tip"},my={class:"yc-image-selector__footer-actions"},gy={key:1,class:"yc-image-selector__footer yc-image-selector__footer--quick"},vy={class:"yc-image-selector__selected-tip"},_y=$e({__name:"YcImageSelectorDialog",props:{modelValue:{type:Boolean},title:{default:"选择图片"},multiple:{type:Boolean,default:!1},maxCount:{default:9},selected:{},width:{default:"860px"},pageSize:{default:8},showUpload:{type:Boolean,default:!0},accept:{default:"image/*"},showCategories:{type:Boolean,default:!1},categories:{},categoryAllLabel:{default:"全部"},showModeSwitch:{type:Boolean,default:!1},confirmOnSelect:{type:Boolean,default:!1},confirmText:{default:"确定"},cancelText:{default:"取消"},emptyText:{default:"暂无图片资源"},getImages:{},upload:{},urlField:{default:"url"}},emits:["update:modelValue","confirm","cancel"],setup(e,{emit:t}){const n=e,r=t,o=oe(()=>n.modelValue!==void 0),s=he(!1);Je(()=>n.modelValue,w=>{o.value&&(s.value=!!w)},{immediate:!0}),Je(s,w=>{if(o.value){r("update:modelValue",w);return}Ze.visible=w,w||Ff()}),Je(()=>Ze.visible,w=>{o.value||(s.value=w)},{immediate:!0});const i=oe(()=>(o.value?void 0:Ze.options.title)??n.title??"选择图片"),a=oe(()=>(o.value?void 0:Ze.options.multiple)??n.multiple),l=oe(()=>(o.value?void 0:Ze.options.maxCount)??n.maxCount),c=oe(()=>(o.value?void 0:Ze.options.showModeSwitch)??n.showModeSwitch),u=oe(()=>(o.value?void 0:Ze.options.showCategories)??n.showCategories),f=oe(()=>{var w,y;if((w=n.categories)!=null&&w.length)return n.categories;if(!o.value&&((y=Ze.options.categories)!=null&&y.length))return Ze.options.categories}),p=oe(()=>u.value?f.value??ne.value:[]),g=oe(()=>!!n.confirmOnSelect),b=he("single"),h=[{label:"单选",value:"single"},{label:"多选",value:"multiple"}],v=oe(()=>c.value?b.value==="multiple":a.value),S=he(""),T=he(""),F=he(1),Y=he(0),x=he(!1),W=he(!1),V=he([]),ne=he([]),A=he(new Map),N=he(new Map),O=he(),D=he(),J=oe(()=>[...A.value.values()]),z=oe(()=>{var y,P;const w=J.value.length;return g.value?w?`已选:${((y=J.value[0])==null?void 0:y.name)||"1 张图片"}`:"单击图片即可完成选择":w?v.value?`已选 ${w} / ${l.value} 张`:`已选:${((P=J.value[0])==null?void 0:P.name)||"1 张图片"}`:v.value?`多选模式:最多 ${l.value} 张`:"单选模式:请选择一张图片"});function R(w){const y=J.value.findIndex(P=>E(P)===E(w));return y>=0?y+1:""}function k(w){if(w==="single"&&J.value.length>1){const y=J.value[0];A.value=new Map([[E(y),y]]),yt.info("已切换为单选,仅保留第一张")}}function B(){b.value=a.value?"multiple":"single"}function $(){A.value=new Map}function X(w){return w[n.urlField]}function E(w){return w.id??w.url}function U(w){return A.value.has(E(w))}function K(w,y){return w<y?"portrait":w>y?"landscape":"square"}function ee(w,y){const P=E(w);N.value.get(P)!==y&&(N.value.set(P,y),N.value=new Map(N.value))}function _e(w){const y=N.value.get(E(w));return y?`yc-image-selector__img--${y}`:""}function xe(w,y){const P=w.target;!(P!=null&&P.naturalWidth)||!(P!=null&&P.naturalHeight)||ee(y,K(P.naturalWidth,P.naturalHeight))}function ct(w){w.width&&w.height&&ee(w,K(w.width,w.height))}function De(w){const y=new Map;if(!(w!=null&&w.length)){A.value=y;return}if(typeof w[0]=="string")for(const M of w)y.set(M,{id:M,url:M,name:M.split("/").pop()});else for(const M of w)y.set(E(M),M);A.value=y}function me(w){O.value=w.onConfirm,D.value=w.onCancel,De(w.selected??n.selected)}function je(w){if(o.value)return;const y=w.detail??{};me(y),s.value=!0}In(()=>{globalThis.addEventListener(wi,je),o.value||(s.value=Ze.visible)}),to(()=>{globalThis.removeEventListener(wi,je)});async function Pe(){var w;if(!n.getImages){yt.error("请通过 props.getImages 传入图片列表请求方法");return}x.value=!0;try{const y=await n.getImages({keyword:S.value.trim()||void 0,category:T.value||void 0,page:F.value,pageSize:n.pageSize});V.value=y.list,Y.value=y.total;for(const P of y.list)ct(P);!f.value&&((w=y.categories)!=null&&w.length)&&(ne.value=y.categories)}catch(y){yt.error(y instanceof Error?y.message:"加载图片失败")}finally{x.value=!1}}function Ve(){F.value=1,Pe()}function mt(w){T.value!==w&&(T.value=w,Ve())}function d(w){const y=E(w);if(v.value){if(A.value.has(y)){A.value.delete(y),A.value=new Map(A.value);return}if(J.value.length>=l.value){yt.warning(`最多选择 ${l.value} 张图片`);return}A.value.set(y,w),A.value=new Map(A.value);return}if(A.value.has(y)){if(g.value){er(()=>I());return}A.value=new Map;return}A.value=new Map([[y,w]]),g.value&&er(()=>I())}async function m(w){if(!n.upload){yt.error("请通过 props.upload 传入图片上传方法");return}W.value=!0;try{const{resource:y}=await n.upload(w.file);if(yt.success("上传成功"),v.value)J.value.length<l.value&&(A.value.set(E(y),y),A.value=new Map(A.value));else if(A.value=new Map([[E(y),y]]),g.value){I();return}Ve()}catch(y){yt.error(y instanceof Error?y.message:"上传失败")}finally{W.value=!1}}function C(){S.value="",T.value="",F.value=1,N.value=new Map,B(),o.value?me({}):me(Ze.options),B(),Pe()}function j(){W.value=!1}function L(){var w,y,P;(w=D.value)==null||w.call(D),o.value||(P=(y=Ze.options).onCancel)==null||P.call(y),r("cancel"),s.value=!1}function I(){var y,P,M;if(!J.value.length){yt.warning("请选择图片");return}const w=[...J.value];if(o.value){r("confirm",w),s.value=!1;return}(y=O.value)==null||y.call(O,w),(M=(P=Ze.options).onConfirm)==null||M.call(P,w),r("confirm",w),s.value=!1}return Je(()=>n.selected,w=>{s.value||De(w)},{deep:!0}),(w,y)=>{const P=Ie("el-icon"),M=Ie("el-input"),ue=Ie("el-segmented"),G=Ie("el-button"),ae=Ie("el-upload"),de=Ie("el-empty"),ye=Ie("el-pagination"),Oe=Ie("el-dialog"),Ee=yu("loading");return q(),we(Oe,{modelValue:s.value,"onUpdate:modelValue":y[4]||(y[4]=le=>s.value=le),title:i.value,width:e.width,"append-to-body":"","destroy-on-close":"",class:"yc-image-selector-dialog",onClosed:j,onOpen:C},{footer:ie(()=>[g.value?(q(),fe("div",gy,[te("span",vy,Ae(z.value),1),Q(G,{link:"",type:"primary",onClick:L},{default:ie(()=>[qe(Ae(e.cancelText),1)]),_:1})])):(q(),fe("div",py,[te("span",hy,Ae(z.value),1),te("div",my,[Q(G,{onClick:L},{default:ie(()=>[qe(Ae(e.cancelText),1)]),_:1}),Q(G,{type:"primary",disabled:!J.value.length,onClick:I},{default:ie(()=>[qe(Ae(e.confirmText),1)]),_:1},8,["disabled"])])]))]),default:ie(()=>[te("div",G1,[te("div",Y1,[Q(M,{modelValue:S.value,"onUpdate:modelValue":y[0]||(y[0]=le=>S.value=le),clearable:"",placeholder:"搜索图片名称",class:"yc-image-selector__search",onKeyup:Fm(Ve,["enter"]),onClear:Ve},{prefix:ie(()=>[Q(P,null,{default:ie(()=>[Q(Z(lg))]),_:1})]),_:1},8,["modelValue"]),c.value?(q(),we(ue,{key:0,modelValue:b.value,"onUpdate:modelValue":y[1]||(y[1]=le=>b.value=le),options:h,class:"yc-image-selector__mode",onChange:k},null,8,["modelValue"])):Ne("",!0),e.showUpload&&e.upload?(q(),we(ae,{key:1,"show-file-list":!1,accept:e.accept,"http-request":m,disabled:W.value},{default:ie(()=>[Q(G,{type:"primary",plain:"",loading:W.value},{default:ie(()=>[Q(P,{class:"m-r-4"},{default:ie(()=>[Q(Z(pg))]),_:1}),y[5]||(y[5]=qe(" 上传图片 ",-1))]),_:1},8,["loading"])]),_:1},8,["accept","disabled"])):Ne("",!0)]),te("div",J1,[u.value&&p.value.length?(q(),fe("aside",X1,[te("div",{class:Ge(["yc-image-selector__category",{"is-active":T.value===""}]),onClick:y[2]||(y[2]=le=>mt(""))},Ae(e.categoryAllLabel),3),(q(!0),fe(Re,null,Cr(p.value,le=>(q(),fe("div",{key:le.id,class:Ge(["yc-image-selector__category",{"is-active":T.value===le.id}]),onClick:Fe=>mt(le.id)},[te("span",null,Ae(le.name),1),le.count!=null?(q(),fe("span",Q1,Ae(le.count),1)):Ne("",!0)],10,Z1))),128))])):Ne("",!0),tr((q(),fe("div",ey,[!x.value&&!V.value.length?(q(),we(de,{key:0,description:e.emptyText},null,8,["description"])):(q(),fe("div",ty,[(q(!0),fe(Re,null,Cr(V.value,le=>(q(),fe("div",{key:String(le.id),class:Ge(["yc-image-selector__item",{"is-selected":U(le),"is-single-mode":!v.value,"is-multi-mode":v.value}]),onClick:Fe=>d(le)},[te("div",ry,[te("img",{src:X(le),alt:le.name||"image",loading:"lazy",class:Ge(_e(le)),onLoad:Fe=>xe(Fe,le)},null,42,oy),te("div",{class:Ge(["yc-image-selector__indicator",{"is-checked":U(le),"is-radio":!v.value,"is-checkbox":v.value}])},[U(le)&&v.value?(q(),fe("span",sy,Ae(R(le)),1)):U(le)?(q(),we(P,{key:1},{default:ie(()=>[Q(Z(Ju))]),_:1})):Ne("",!0)],2)]),te("div",{class:"yc-image-selector__meta",title:le.name},Ae(le.name||"未命名"),9,iy)],10,ny))),128))]))])),[[Ee,x.value]])]),v.value&&J.value.length?(q(),fe("div",ay,[te("span",ly,"已选 "+Ae(J.value.length)+" 张",1),te("div",cy,[(q(!0),fe(Re,null,Cr(J.value,le=>(q(),fe("div",{key:String(le.id),class:"yc-image-selector__selected-chip",onClick:Yu(Fe=>d(le),["stop"])},[te("img",{src:X(le),alt:le.name},null,8,fy),y[6]||(y[6]=te("span",{class:"yc-image-selector__selected-chip-remove"},"×",-1))],8,uy))),128))]),Q(G,{link:"",type:"primary",onClick:$},{default:ie(()=>[...y[7]||(y[7]=[qe("清空",-1)])]),_:1})])):Ne("",!0),Y.value>0?(q(),fe("div",dy,[Q(ye,{"current-page":F.value,"onUpdate:currentPage":y[3]||(y[3]=le=>F.value=le),background:"",layout:"total, prev, pager, next, jumper","page-size":e.pageSize,total:Y.value,onCurrentChange:Pe},null,8,["current-page","page-size","total"])])):Ne("",!0)])]),_:1},8,["modelValue","title","width"])}}}),aa=cs(_y,[["__scopeId","data-v-4eb3e555"]]);function la(){const e=he(!1),t=he({});function n(o={}){t.value={...o},e.value=!0}function r(){e.value=!1}return{dialogVisible:e,dialogOptions:t,openImageSelector:n,closeImageSelector:r}}const yy="__YC_IMAGE_SELECTOR_CTX_KEY__";function wy(e){const t=globalThis;return t[e]||(t[e]=Symbol(e)),t[e]}const ca=wy(yy),jf=$e({__name:"YcImageSelectorProvider",props:{modelValue:{type:Boolean},title:{default:"选择图片"},multiple:{type:Boolean,default:!1},maxCount:{default:9},selected:{},width:{default:"860px"},pageSize:{default:8},showUpload:{type:Boolean,default:!0},accept:{default:"image/*"},showCategories:{type:Boolean,default:!1},categories:{},categoryAllLabel:{default:"全部"},showModeSwitch:{type:Boolean,default:!1},confirmOnSelect:{type:Boolean,default:!1},confirmText:{default:"确定"},cancelText:{default:"取消"},emptyText:{default:"暂无图片资源"},getImages:{},upload:{},urlField:{default:"url"},showDialog:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=e,r=la(),{dialogVisible:o,dialogOptions:s,openImageSelector:i,closeImageSelector:a}=r;Lr(ca,r);function l(p,g){return p in s.value?s.value[p]:g}const c=oe(()=>({title:l("title",n.title),multiple:l("multiple",n.multiple),maxCount:l("maxCount",n.maxCount),selected:l("selected",n.selected),width:n.width,pageSize:n.pageSize,showUpload:n.showUpload,accept:n.accept,showCategories:l("showCategories",n.showCategories),categories:l("categories",n.categories),categoryAllLabel:l("categoryAllLabel",n.categoryAllLabel),showModeSwitch:l("showModeSwitch",n.showModeSwitch),confirmOnSelect:l("confirmOnSelect",n.confirmOnSelect),confirmText:n.confirmText,cancelText:n.cancelText,emptyText:n.emptyText,getImages:n.getImages,upload:n.upload,urlField:n.urlField}));function u(p){var g,b;(b=(g=s.value).onConfirm)==null||b.call(g,p),a()}function f(){var p,g;(g=(p=s.value).onCancel)==null||g.call(p),a()}return t({openImageSelector:i,closeImageSelector:a}),(p,g)=>(q(),fe(Re,null,[e.showDialog!==!1?(q(),we(aa,is({key:0,modelValue:Z(o),"onUpdate:modelValue":g[0]||(g[0]=b=>Se(o)?o.value=b:null)},c.value,{onConfirm:u,onCancel:f}),null,16,["modelValue"])):Ne("",!0),cn(p.$slots,"default")],64))}});function by(){const e=ft(ca,null);if(e)return{openImageSelector:(n={})=>e.openImageSelector(n),closeImageSelector:()=>e.closeImageSelector()};const t=la();return{openImageSelector:(n={})=>{kf(n),t.openImageSelector(n)},closeImageSelector:()=>t.closeImageSelector()}}function Bf(){const{baseURL:e=""}=Xo();return ke.create({baseURL:e,timeout:3e4})}async function Ey(e){const t=Xo().fetchImages;if(t)return t(e);const n=Bf(),{data:r}=await n.get("/yc-media/images",{params:e});if(r.code!==200)throw new Error("加载图片资源失败");return r.data}async function Oy(e){const t=Xo().uploadImage;if(t)return t(e);const n=Bf(),r=new FormData;r.append("file",e);const{data:o}=await n.post("/yc-media/images/upload",r,{headers:{"Content-Type":"multipart/form-data"}});if(o.code!==200)throw new Error("上传图片失败");return o.data}exports.AiTaskPanel=ia;exports.AiTaskProvider=Rf;exports.AiUseDialog=sa;exports.IMAGE_SELECTOR_INJECT_KEY=ca;exports.ImageSelectorDialog=aa;exports.ImageSelectorProvider=jf;exports.SkyPageWindow=Uo;exports.YcAiTaskPanel=ia;exports.YcAiTaskProvider=Rf;exports.YcAiUseDialog=sa;exports.YcComponent=tf;exports.YcImageSelectorDialog=aa;exports.YcImageSelectorProvider=jf;exports.YcPageWindow=Uo;exports.createImageSelectorApi=la;exports.default=tf;exports.fetchImages=Ey;exports.getAiTaskConfig=Ei;exports.getImageSelectorConfig=Xo;exports.hideAiDialog=Zi;exports.hideImageSelectorDialog=Ff;exports.installYcComponent=ef;exports.listPrompts=Vf;exports.openAiUseDialog=Ag;exports.openImageSelector=kf;exports.setAiTaskConfig=Jl;exports.setImageSelectorConfig=wc;exports.showAiDialog=us;exports.showImageSelectorDialog=Lf;exports.uploadImage=Oy;exports.useAiTask=K1;exports.useAiTaskStore=Qi;exports.useImageSelector=by;
|