diff --git a/mail-vue/src/axios/index.js b/mail-vue/src/axios/index.js index ece12b7..1831dc5 100644 --- a/mail-vue/src/axios/index.js +++ b/mail-vue/src/axios/index.js @@ -51,9 +51,7 @@ http.interceptors.response.use((res) => { }) reject(data) } - setTimeout(() => { - resolve(data.data) - },1000) + resolve(data.data) }) }, (error) => { diff --git a/mail-worker/dist/assets/index-B33pG0J-.js b/mail-worker/dist/assets/index-DAWlF_Pu.js similarity index 96% rename from mail-worker/dist/assets/index-B33pG0J-.js rename to mail-worker/dist/assets/index-DAWlF_Pu.js index 18c6ad4..961e124 100644 --- a/mail-worker/dist/assets/index-B33pG0J-.js +++ b/mail-worker/dist/assets/index-DAWlF_Pu.js @@ -46,7 +46,7 @@ `)}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(a=>r.set(a)),r}static accessor(t){const r=(this[_M]=this[_M]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=qf(o);r[s]||(gae(a,o),r[s]=!0)}return Ke.isArray(t)?t.forEach(i):i(t),this}};Aa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(Aa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ke.freezeMethods(Aa);function Jb(e,t){const n=this||fp,r=t||n,a=Aa.from(r.headers);let i=r.data;return Ke.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function R3(e){return!!(e&&e.__CANCEL__)}function kf(e,t,n){on.call(this,e??"canceled",on.ERR_CANCELED,t,n),this.name="CanceledError"}Ke.inherits(kf,on,{__CANCEL__:!0});function N3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new on("Request failed with status code "+n.status,[on.ERR_BAD_REQUEST,on.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mae(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yae(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{n=c,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const Cm=(e,t,n=3)=>{let r=0;const a=yae(50,250);return bae(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-r,u=a(l),c=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},wM=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},SM=e=>(...t)=>Ke.asap(()=>e(...t)),_ae=Xr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Xr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Xr.origin),Xr.navigator&&/(msie|trident)/i.test(Xr.navigator.userAgent)):()=>!0,wae=Xr.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];Ke.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ke.isString(r)&&o.push("path="+r),Ke.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Sae(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Cae(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $3(e,t,n){let r=!Sae(t);return e&&(r||n==!1)?Cae(e,t):t}const CM=e=>e instanceof Aa?{...e}:e;function Nu(e,t){t=t||{};const n={};function r(u,c,f,d){return Ke.isPlainObject(u)&&Ke.isPlainObject(c)?Ke.merge.call({caseless:d},u,c):Ke.isPlainObject(c)?Ke.merge({},c):Ke.isArray(c)?c.slice():c}function a(u,c,f,d){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function i(u,c){if(!Ke.isUndefined(c))return r(void 0,c)}function o(u,c){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>a(CM(u),CM(c),f,!0)};return Ke.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Ke.isUndefined(d)&&f!==s||(n[c]=d)}),n}const B3=e=>{const t=Nu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=Aa.from(o),t.url=P3($3(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ke.isFormData(n)){if(Xr.hasStandardBrowserEnv||Xr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Xr.hasStandardBrowserEnv&&(r&&Ke.isFunction(r)&&(r=r(t)),r||r!==!1&&_ae(t.url))){const u=a&&i&&wae.read(i);u&&o.set(a,u)}return t},xae=typeof XMLHttpRequest<"u",Tae=xae&&function(e){return new Promise(function(n,r){const a=B3(e);let i=a.data;const o=Aa.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,d,h,p;function v(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function m(){if(!g)return;const w=Aa.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};N3(function(T){n(T),v()},function(T){r(T),v()},C),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(r(new on("Request aborted",on.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new on("Network Error",on.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const C=a.transitional||O3;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),r(new on(_,C.clarifyTimeoutError?on.ETIMEDOUT:on.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&Ke.forEach(o.toJSON(),function(_,C){g.setRequestHeader(C,_)}),Ke.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([d,p]=Cm(u,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,h]=Cm(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=w=>{g&&(r(!w||w.type?new kf(null,e,g):w),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const b=mae(a.url);if(b&&Xr.protocols.indexOf(b)===-1){r(new on("Unsupported protocol "+b+":",on.ERR_BAD_REQUEST,e));return}g.send(i||null)})},kae=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof on?c:new kf(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new on(`timeout ${t} of ms exceeded`,on.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Ke.asap(s),l}},Eae=function*(e,t){let n=e.byteLength;if(n{const a=Mae(e,t);let i=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let f=c.byteLength;if(n){let d=i+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},r0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",F3=r0&&typeof ReadableStream=="function",Iae=r0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),V3=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Dae=F3&&V3(()=>{let e=!1;const t=new Request(Xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),TM=64*1024,Ew=F3&&V3(()=>Ke.isReadableStream(new Response("").body)),xm={stream:Ew&&(e=>e.body)};r0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xm[t]&&(xm[t]=Ke.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new on(`Response type '${t}' is not supported`,on.ERR_NOT_SUPPORT,r)})})})(new Response);const Pae=async e=>{if(e==null)return 0;if(Ke.isBlob(e))return e.size;if(Ke.isSpecCompliantForm(e))return(await new Request(Xr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ke.isArrayBufferView(e)||Ke.isArrayBuffer(e))return e.byteLength;if(Ke.isURLSearchParams(e)&&(e=e+""),Ke.isString(e))return(await Iae(e)).byteLength},Oae=async(e,t)=>{const n=Ke.toFiniteNumber(e.getContentLength());return n??Pae(t)},Lae=r0&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=B3(e);u=u?(u+"").toLowerCase():"text";let h=kae([a,i&&i.toAbortSignal()],o),p;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Dae&&n!=="get"&&n!=="head"&&(g=await Oae(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(Ke.isFormData(r)&&(x=C.headers.get("content-type"))&&c.setContentType(x),C.body){const[T,M]=wM(g,Cm(SM(l)));r=xM(C.body,TM,T,M)}}Ke.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let b=await fetch(p);const w=Ew&&(u==="stream"||u==="response");if(Ew&&(s||w&&v)){const C={};["status","statusText","headers"].forEach(E=>{C[E]=b[E]});const x=Ke.toFiniteNumber(b.headers.get("content-length")),[T,M]=s&&wM(x,Cm(SM(s),!0))||[];b=new Response(xM(b.body,TM,T,()=>{M&&M(),v&&v()}),C)}u=u||"text";let _=await xm[Ke.findKey(xm,u)||"text"](b,e);return!w&&v&&v(),await new Promise((C,x)=>{N3(C,x,{data:_,headers:Aa.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(m){throw v&&v(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new on("Network Error",on.ERR_NETWORK,e,p),{cause:m.cause||m}):on.from(m,m&&m.code,e,p)}}),Mw={http:qre,xhr:Tae,fetch:Lae};Ke.forEach(Mw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kM=e=>`- ${e}`,Rae=e=>Ke.isFunction(e)||e===null||e===!1,z3={getAdapter:e=>{e=Ke.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(kM).join(` `):" "+kM(i[0]):"as no adapter specified";throw new on("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Mw};function Qb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kf(null,e)}function EM(e){return Qb(e),e.headers=Aa.from(e.headers),e.data=Jb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z3.getAdapter(e.adapter||fp.adapter)(e).then(function(r){return Qb(e),r.data=Jb.call(e,e.transformResponse,r),r.headers=Aa.from(r.headers),r},function(r){return R3(r)||(Qb(e),r&&r.response&&(r.response.data=Jb.call(e,e.transformResponse,r.response),r.response.headers=Aa.from(r.response.headers))),Promise.reject(r)})}const H3="1.8.4",a0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const MM={};a0.transitional=function(t,n,r){function a(i,o){return"[Axios v"+H3+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new on(a(o," has been removed"+(n?" in "+n:"")),on.ERR_DEPRECATED);return n&&!MM[o]&&(MM[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};a0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Nae(e,t,n){if(typeof e!="object")throw new on("options must be an object",on.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new on("option "+i+" must be "+l,on.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new on("Unknown option "+i,on.ERR_BAD_OPTION)}}const Sg={assertOptions:Nae,validators:a0},so=Sg.validators;let ku=class{constructor(t){this.defaults=t,this.interceptors={request:new bM,response:new bM}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Sg.assertOptions(r,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),a!=null&&(Ke.isFunction(a)?n.paramsSerializer={serialize:a}:Sg.assertOptions(a,{encode:so.function,serialize:so.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sg.assertOptions(n,{baseUrl:so.spelling("baseURL"),withXsrfToken:so.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[n.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Aa.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[EM.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new kf(i,o,s),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 W3(function(a){t=a}),cancel:t}}};function Bae(e){return function(n){return e.apply(null,n)}}function Fae(e){return Ke.isObject(e)&&e.isAxiosError===!0}const Aw={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};Object.entries(Aw).forEach(([e,t])=>{Aw[t]=e});function U3(e){const t=new ku(e),n=w3(ku.prototype.request,t);return Ke.extend(n,ku.prototype,t,{allOwnKeys:!0}),Ke.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return U3(Nu(e,a))},n}const hr=U3(fp);hr.Axios=ku;hr.CanceledError=kf;hr.CancelToken=$ae;hr.isCancel=R3;hr.VERSION=H3;hr.toFormData=n0;hr.AxiosError=on;hr.Cancel=hr.CanceledError;hr.all=function(t){return Promise.all(t)};hr.spread=Bae;hr.isAxiosError=Fae;hr.mergeConfig=Nu;hr.AxiosHeaders=Aa;hr.formToJSON=e=>L3(Ke.isHTMLForm(e)?new FormData(e):e);hr.getAdapter=z3.getAdapter;hr.HttpStatusCode=Aw;hr.default=hr;const{Axios:ICe,AxiosError:DCe,CanceledError:PCe,isCancel:OCe,CancelToken:LCe,VERSION:RCe,all:NCe,Cancel:$Ce,isAxiosError:BCe,spread:FCe,toFormData:VCe,AxiosHeaders:zCe,HttpStatusCode:HCe,formToJSON:WCe,getAdapter:UCe,mergeConfig:KCe}=hr;let Gt=hr.create({baseURL:"/api"});Gt.interceptors.request.use(e=>(e.headers.Authorization=`${localStorage.getItem("token")}`,e));Gt.interceptors.response.use(e=>new Promise((t,n)=>{const r=e.config.noMsg,a=e.data;r?a.code===200?t(a.data):n(a):a.code===401?(xt({message:a.message,type:"error",plain:!0,grouping:!0,repeatNum:-4}),localStorage.removeItem("token"),jn.push("/login"),n(a)):a.code===403?(xt({message:a.message,type:"warning",plain:!0,grouping:!0,repeatNum:-4}),n(a)):a.code!==200&&(xt({message:a.message,type:"error",plain:!0,grouping:!0,repeatNum:-4}),n(a)),setTimeout(()=>{t(a.data)},1e3)}),e=>(e.config.noMsg||(e.message.includes("Network Error")?xt({message:"网络错误,请检查网络连接",type:"error",plain:!0,grouping:!0,repeatNum:-4}):e.code==="ECONNABORTED"?(xt({message:"请求超时,请稍后重试",type:"error",plain:!0,grouping:!0}),xt.error("")):e.response?xt({message:"服务器繁忙",type:"error",plain:!0,grouping:!0,repeatNum:-4}):xt({message:"请求失败,请稍后再试",type:"error",plain:!0,grouping:!0,repeatNum:-4})),Promise.reject(e)));function Tm(){return Gt.get("/my/loginUserInfo")}function Vae(e){return Gt.put("/my/resetPassword",{password:e})}function zae(){return Gt.delete("/my/delete")}const Ti=qu("user",{state:()=>({user:{},refreshList:0}),actions:{refreshUserList(){Tm().then(e=>{this.refreshList++})},refreshUserInfo(){Tm().then(e=>{this.user=e})}}}),La=qu("setting",{state:()=>({domainList:[],settings:{r2Domain:"",loginOpacity:1}}),actions:{}}),ys=qu("account",{state:()=>({currentAccountId:0,currentAccount:{},changeUserAccountName:""})});function oa(e){const{permKeys:t}=Ti().user;return t.includes("*")||t.includes(e)}function K3(e){const t=[];return Object.keys(AM).forEach(n=>{(e.includes(n)||e.includes("*"))&&t.push(AM[n])}),t}const AM={"user:query":{path:"/sys/user",name:"user",component:()=>Kr(()=>Promise.resolve().then(()=>Ece),void 0),meta:{title:"用户列表",name:"user",menu:!0}},"role:query":{path:"/sys/role",name:"role",component:()=>Kr(()=>Promise.resolve().then(()=>Bce),void 0),meta:{title:"权限控制",name:"role",menu:!0}},"setting:query":{path:"/sys/setting",name:"sys-setting",component:()=>Kr(()=>Promise.resolve().then(()=>Kfe),void 0),meta:{title:"系统设置",name:"sys-setting",menu:!0}},"reg-key:query":{path:"/sys/reg-key",name:"reg-key",component:()=>Kr(()=>Promise.resolve().then(()=>gde),void 0),meta:{title:"注册密钥",name:"reg-key",menu:!0}},"sys-email:query":{path:"/sys/email",name:"sys-email",component:()=>Kr(()=>Promise.resolve().then(()=>wde),void 0),meta:{title:"邮件列表",name:"sys-email",menu:!0}},"analysis:query":{path:"/analysis",name:"analysis",component:()=>Kr(()=>Promise.resolve().then(()=>xCe),void 0),meta:{title:"分析页",name:"analysis",menu:!0}}};function Hae(e){return Gt.put("/setting/set",e)}function IM(){return Gt.get("/setting/query")}function DM(){return Gt.get("/setting/websiteConfig")}function Wae(e){return Gt.put("/setting/setBackground",{background:e})}function Uae(){return Gt.delete("/setting/physicsDeleteAll")}function sf(e){return La().settings.r2Domain+"/"+e}async function Kae(){document.title="​";const e=La(),t=Ti(),n=ys(),r=localStorage.getItem("token");let a=null;if(r){const s=Tm().catch(c=>(console.error(c),null)),[l,u]=await Promise.all([DM(),s]);a=l,e.settings=a,e.domainList=a.domainList,document.title=a.title,u&&(n.currentAccountId=u.accountId,t.user=u,K3(u.permKeys).forEach(f=>{jn.addRoute("layout",f)}))}else a=await DM(),e.settings=a,e.domainList=a.domainList,document.title=a.title;const i=document.getElementById("loading-first");if(!a.background){i.remove();return}const o=new Image;o.src=sf(a.background),o.onload=()=>{i.remove()},o.onerror=()=>{console.warn("背景图片加载失败:",o.src),i.remove()}}const jae=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Yae=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Gae=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function qae(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Xae(e);return}return t}function Xae(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zae(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Gae.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jae.test(e)||Yae.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,qae)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function Jae(e,t){if(e==null)return;let n=e;for(let r=0;r1&&(t=yx(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function j3(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return yx(e,j3(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Y3(e,t){return t.map(n=>n.split(".")).map(n=>[n,Jae(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>yx(n,r[1],r[0]),{})}function G3(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>j3(n,r),e)}function PM(e,{storage:t,serializer:n,key:r,debug:a,pick:i,omit:o,beforeHydrate:s,afterHydrate:l},u,c=!0){try{c&&s?.(u);const f=t.getItem(r);if(f){const d=n.deserialize(f),h=i?Y3(d,i):d,p=o?G3(h,o):h;e.$patch(p)}c&&l?.(u)}catch(f){a&&console.error("[pinia-plugin-persistedstate]",f)}}function OM(e,{storage:t,serializer:n,key:r,debug:a,pick:i,omit:o}){try{const s=i?Y3(e,i):e,l=o?G3(s,o):s,u=n.serialize(l);t.setItem(r,u)}catch(s){a&&console.error("[pinia-plugin-persistedstate]",s)}}function Qae(e,t,n){const{pinia:r,store:a,options:{persist:i=n}}=e;if(!i)return;if(!(a.$id in r.state.value)){const l=r._s.get(a.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const s=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);a.$hydrate=({runHooks:l=!0}={})=>{s.forEach(u=>{PM(a,u,e,l)})},a.$persist=()=>{s.forEach(l=>{OM(a.$state,l)})},s.forEach(l=>{PM(a,l,e),a.$subscribe((u,c)=>OM(c,l),{detached:!0})})}function eie(e={}){return function(t){Qae(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>Zae(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var tie=eie();const nie={mounted(e,t){const r=Ti().user.permKeys,a=t.value;if(r.includes("*"))return;(Array.isArray(a)?a.some(o=>r.includes(o)):r.includes(a))||e.parentNode&&e.parentNode.removeChild(e)}},rie=Hne().use(tie),bx=hV(Lte).use(rie);await Kae();bx.use(jn).use(cre).directive("perm",nie);bx.config.devtools=!0;bx.mount("#app");const q3=/^[a-z0-9]+(-[a-z0-9]+)*$/,i0=(e,t,n,r="")=>{const a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;r=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const s=a.pop(),l=a.pop(),u={provider:a.length>0?a[0]:r,prefix:l,name:s};return t&&!Cg(u)?null:u}const i=a[0],o=i.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Cg(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!Cg(s,n)?null:s}return null},Cg=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,X3=Object.freeze({left:0,top:0,width:16,height:16}),km=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o0=Object.freeze({...X3,...km}),Iw=Object.freeze({...o0,body:"",hidden:!1});function aie(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function LM(e,t){const n=aie(e,t);for(const r in Iw)r in km?r in e&&!(r in n)&&(n[r]=km[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function iie(e,t){const n=e.icons,r=e.aliases||Object.create(null),a=Object.create(null);function i(o){if(n[o])return a[o]=[];if(!(o in a)){a[o]=null;const s=r[o]&&r[o].parent,l=s&&i(s);l&&(a[o]=[s].concat(l))}return a[o]}return Object.keys(n).concat(Object.keys(r)).forEach(i),a}function oie(e,t,n){const r=e.icons,a=e.aliases||Object.create(null);let i={};function o(s){i=LM(r[s]||a[s],i)}return o(t),n.forEach(o),LM(e,i)}function Z3(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(a=>{t(a,null),n.push(a)});const r=iie(e);for(const a in r){const i=r[a];i&&(t(a,oie(e,a,i)),n.push(a))}return n}const sie={provider:"",aliases:{},not_found:{},...X3};function e_(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function J3(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!e_(e,sie))return null;const n=t.icons;for(const a in n){const i=n[a];if(!a||typeof i.body!="string"||!e_(i,Iw))return null}const r=t.aliases||Object.create(null);for(const a in r){const i=r[a],o=i.parent;if(!a||typeof o!="string"||!n[o]&&!r[o]||!e_(i,Iw))return null}return t}const RM=Object.create(null);function lie(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function lf(e,t){const n=RM[e]||(RM[e]=Object.create(null));return n[t]||(n[t]=lie(e,t))}function Q3(e,t){return J3(t)?Z3(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function uie(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Dh=!1;function e$(e){return typeof e=="boolean"&&(Dh=e),Dh}function cie(e){const t=typeof e=="string"?i0(e,!0,Dh):e;if(t){const n=lf(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function fie(e,t){const n=i0(e,!0,Dh);if(!n)return!1;const r=lf(n.provider,n.prefix);return t?uie(r,n.name,t):(r.missing.add(n.name),!0)}function die(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Dh&&!t&&!e.prefix){let a=!1;return J3(e)&&(e.prefix="",Z3(e,(i,o)=>{fie(i,o)&&(a=!0)})),a}const n=e.prefix;if(!Cg({prefix:n,name:"a"}))return!1;const r=lf(t,n);return!!Q3(r,e)}const t$=Object.freeze({width:null,height:null}),n$=Object.freeze({...t$,...km}),hie=/(-?[0-9.]*[0-9]+[0-9.]*)/g,pie=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function NM(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(hie);if(r===null||!r.length)return e;const a=[];let i=r.shift(),o=pie.test(i);for(;;){if(o){const s=parseFloat(i);isNaN(s)?a.push(i):a.push(Math.ceil(s*t*n)/n)}else a.push(i);if(i=r.shift(),i===void 0)return a.join("");o=!o}}function vie(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const a=e.indexOf(">",r),i=e.indexOf("",i);if(o===-1)break;n+=e.slice(a+1,i).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function gie(e,t){return e?""+e+""+t:t}function mie(e,t,n){const r=vie(e);return gie(r.defs,t+r.content+n)}const yie=e=>e==="unset"||e==="undefined"||e==="none";function bie(e,t){const n={...o0,...e},r={...n$,...t},a={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(v=>{const g=[],m=v.hFlip,b=v.vFlip;let w=v.rotate;m?b?w+=2:(g.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),g.push("scale(-1 1)"),a.top=a.left=0):b&&(g.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),g.push("scale(1 -1)"),a.top=a.left=0);let _;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:_=a.height/2+a.top,g.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:g.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:_=a.width/2+a.left,g.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}w%2===1&&(a.left!==a.top&&(_=a.left,a.left=a.top,a.top=_),a.width!==a.height&&(_=a.width,a.width=a.height,a.height=_)),g.length&&(i=mie(i,'',""))});const o=r.width,s=r.height,l=a.width,u=a.height;let c,f;o===null?(f=s===null?"1em":s==="auto"?u:s,c=NM(f,l/u)):(c=o==="auto"?l:o,f=s===null?NM(c,u/l):s==="auto"?u:s);const d={},h=(v,g)=>{yie(g)||(d[v]=g.toString())};h("width",c),h("height",f);const p=[a.left,a.top,l,u];return d.viewBox=p.join(" "),{attributes:d,viewBox:p,body:i}}const _ie=/\sid="(\S+)"/g,wie="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Sie=0;function Cie(e,t=wie){const n=[];let r;for(;r=_ie.exec(e);)n.push(r[1]);if(!n.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const o=typeof t=="function"?t(i):t+(Sie++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}const Dw=Object.create(null);function xie(e,t){Dw[e]=t}function Pw(e){return Dw[e]||Dw[""]}function _x(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Sx=Object.create(null),Xf=["https://api.simplesvg.com","https://api.unisvg.com"],xg=[];for(;Xf.length>0;)Xf.length===1||Math.random()>.5?xg.push(Xf.shift()):xg.push(Xf.pop());Sx[""]=_x({resources:["https://api.iconify.design"].concat(xg)});function Tie(e,t){const n=_x(t);return n===null?!1:(Sx[e]=n,!0)}function Cx(e){return Sx[e]}const kie=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $M=kie();function Eie(e,t){const n=Cx(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let a=0;n.resources.forEach(o=>{a=Math.max(a,o.length)});const i=t+".json?icons=";r=n.maxURL-a-n.path.length-i.length}return r}function Mie(e){return e===404}const Aie=(e,t,n)=>{const r=[],a=Eie(e,t),i="icons";let o={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,u)=>{s+=l.length+1,s>=a&&u>0&&(r.push(o),o={type:i,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function Iie(e){if(typeof e=="string"){const t=Cx(e);if(t)return t.path}return"/"}const Die=(e,t,n)=>{if(!$M){n("abort",424);return}let r=Iie(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let a=503;$M(e+r).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{n(Mie(o)?"abort":"next",o)});return}return a=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",a)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",a)})},Pie={prepare:Aie,send:Die};function Oie(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((a,i)=>a.provider!==i.provider?a.provider.localeCompare(i.provider):a.prefix!==i.prefix?a.prefix.localeCompare(i.prefix):a.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(a=>{if(r.name===a.name&&r.prefix===a.prefix&&r.provider===a.provider)return;r=a;const i=a.provider,o=a.prefix,s=a.name,l=n[i]||(n[i]=Object.create(null)),u=l[o]||(l[o]=lf(i,o));let c;s in u.icons?c=t.loaded:o===""||u.missing.has(s)?c=t.missing:c=t.pending;const f={provider:i,prefix:o,name:s};c.push(f)}),t}function r$(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(a=>a.id!==t))})}function Lie(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,a=e.prefix;t.forEach(i=>{const o=i.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==a)return!0;const u=l.name;if(e.icons[u])o.loaded.push({provider:r,prefix:a,name:u});else if(e.missing.has(u))o.missing.push({provider:r,prefix:a,name:u});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||r$([e],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let Rie=0;function Nie(e,t,n){const r=Rie++,a=r$.bind(null,n,r);if(!t.pending.length)return a;const i={id:r,icons:t,callback:e,abort:a};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),a}function $ie(e,t=!0,n=!1){const r=[];return e.forEach(a=>{const i=typeof a=="string"?i0(a,t,n):a;i&&r.push(i)}),r}var Bie={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fie(e,t,n,r){const a=e.resources.length,i=e.random?Math.floor(Math.random()*a):e.index;let o;if(e.random){let x=e.resources.slice(0);for(o=[];x.length>1;){const T=Math.floor(Math.random()*x.length);o.push(x[T]),x=x.slice(0,T).concat(x.slice(T+1))}o=o.concat(x)}else o=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){l==="pending"&&(l="aborted"),p(),d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function g(x,T){T&&(h=[]),typeof x=="function"&&h.push(x)}function m(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:g,abort:v}}function b(){l="failed",h.forEach(x=>{x(void 0,c)})}function w(){d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function _(x,T,M){const E=T!=="success";switch(d=d.filter(A=>A!==x),l){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=M,b();return}if(E){c=M,d.length||(o.length?C():b());return}if(p(),w(),!e.random){const A=e.resources.indexOf(x.resource);A!==-1&&A!==e.index&&(e.index=A)}l="completed",h.forEach(A=>{A(M)})}function C(){if(l!=="pending")return;p();const x=o.shift();if(x===void 0){if(d.length){f=setTimeout(()=>{p(),l==="pending"&&(w(),b())},e.timeout);return}b();return}const T={status:"pending",resource:x,callback:(M,E)=>{_(T,M,E)}};d.push(T),u++,f=setTimeout(C,e.rotate),n(x,t,T.callback)}return setTimeout(C),m}function a$(e){const t={...Bie,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function a(s,l,u){const c=Fie(t,s,l,(f,d)=>{r(),u&&u(f,d)});return n.push(c),c}function i(s){return n.find(l=>s(l))||null}return{query:a,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function BM(){}const t_=Object.create(null);function Vie(e){if(!t_[e]){const t=Cx(e);if(!t)return;const n=a$(t),r={config:t,redundancy:n};t_[e]=r}return t_[e]}function zie(e,t,n){let r,a;if(typeof e=="string"){const i=Pw(e);if(!i)return n(void 0,424),BM;a=i.send;const o=Vie(e);o&&(r=o.redundancy)}else{const i=_x(e);if(i){r=a$(i);const o=e.resources?e.resources[0]:"",s=Pw(o);s&&(a=s.send)}}return!r||!a?(n(void 0,424),BM):r.query(t,a,n)().abort}function FM(){}function Hie(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Lie(e)}))}function Wie(e){const t=[],n=[];return e.forEach(r=>{(r.match(q3)?t:n).push(r)}),{valid:t,invalid:n}}function Zf(e,t,n){function r(){const a=e.pendingIcons;t.forEach(i=>{a&&a.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!Q3(e,n).length){r();return}}catch(a){console.error(a)}r(),Hie(e)}function VM(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Uie(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,a=e.iconsToLoad;if(delete e.iconsToLoad,!a||!a.length)return;const i=e.loadIcon;if(e.loadIcons&&(a.length>1||!i)){VM(e.loadIcons(a,r,n),c=>{Zf(e,a,c)});return}if(i){a.forEach(c=>{const f=i(c,r,n);VM(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;Zf(e,[c],h)})});return}const{valid:o,invalid:s}=Wie(a);if(s.length&&Zf(e,s,null),!o.length)return;const l=r.match(q3)?Pw(n):null;if(!l){Zf(e,o,null);return}l.prepare(n,r,o).forEach(c=>{zie(n,c,f=>{Zf(e,c.icons,f)})})}))}const Kie=(e,t)=>{const n=$ie(e,!0,e$()),r=Oie(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,FM)}),()=>{l=!1}}const a=Object.create(null),i=[];let o,s;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===s&&u===o)return;o=u,s=c,i.push(lf(u,c));const f=a[u]||(a[u]=Object.create(null));f[c]||(f[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,d=lf(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),a[u][c].push(f))}),i.forEach(l=>{const u=a[l.provider][l.prefix];u.length&&Uie(l,u)}),t?Nie(t,r,i):FM};function jie(e,t){const n={...e};for(const r in t){const a=t[r],i=typeof a;r in t$?(a===null||a&&(i==="string"||i==="number"))&&(n[r]=a):i===typeof n[r]&&(n[r]=r==="rotate"?a%4:a)}return n}const Yie=/[\s,]+/;function Gie(e,t){t.split(Yie).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function qie(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(a){for(;a<0;)a+=4;return a%4}if(n===""){const a=parseInt(e);return isNaN(a)?0:r(a)}else if(n!==e){let a=0;switch(n){case"%":a=25;break;case"deg":a=90}if(a){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/a,i%1===0?r(i):0)}}return t}function Xie(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Zie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Jie(e){return"data:image/svg+xml,"+Zie(e)}function Qie(e){return'url("'+Jie(e)+'")'}const zM={...n$,inline:!1},eoe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},toe={display:"inline-block"},Ow={backgroundColor:"currentColor"},i$={backgroundColor:"transparent"},HM={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},WM={webkitMask:Ow,mask:Ow,background:i$};for(const e in WM){const t=WM[e];for(const n in HM)t[e+n]=HM[n]}const Tg={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Tg[e+"-flip"]=t,Tg[e.slice(0,1)+"-flip"]=t,Tg[e+"Flip"]=t});function UM(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const KM=(e,t)=>{const n=jie(zM,t),r={...eoe},a=t.mode||"svg",i={},o=t.style,s=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Gie(n,g);break;case"color":i.color=g;break;case"rotate":typeof g=="string"?n[v]=qie(g):typeof g=="number"&&(n[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete r["aria-hidden"];break;default:{const m=Tg[v];m?(g===!0||g==="true"||g===1)&&(n[m]=!0):zM[v]===void 0&&(r[v]=g)}}}const l=bie(e,n),u=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),a==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),r.innerHTML=Cie(l.body,g?()=>g+"ID"+v++:"iconifyVue"),St("svg",r)}const{body:c,width:f,height:d}=e,h=a==="mask"||(a==="bg"?!1:c.indexOf("currentColor")!==-1),p=Xie(c,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":Qie(p),width:UM(u.width),height:UM(u.height),...toe,...h?Ow:i$,...s},St("span",r)};e$(!0);xie("",Pie);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!die(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const a=t[n];if(typeof a!="object"||!a||a.resources===void 0)continue;Tie(n,a)||console.error(r)}catch{console.error(r)}}}}const noe={...o0,body:""},nt=Te({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=i0(e,!1,!0))===null)return this.abortLoading(),null;let a=cie(r);if(!a)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",a!==null&&(this._loadingIcon={name:e,abort:Kie([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){a=Object.assign({},a);const o=n(a.body,r.name,r.prefix,r.provider);typeof o=="string"&&(a.body=o)}const i=["iconify"];return r.prefix!==""&&i.push("iconify--"+r.prefix),r.provider!==""&&i.push("iconify--"+r.provider),{data:a,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return KM(noe,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),KM({...o0,...t.data},n)}}),Jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},roe={class:"title"},aoe={class:"manage-title"},ioe={__name:"index",setup(e){const t=La(),n=Zy();return(r,a)=>{const i=mJ,o=gJ,s=ya,l=vs("perm");return R(),le(s,{class:"scroll"},{default:X(()=>[I("div",null,[I("div",roe,[V(y(nt),{icon:"mdi:email-outline",width:"24",height:"24"}),I("div",null,Ae(y(t).settings.title),1)]),V(o,{collapse:!1,"text-color":"#fff","active-text-color":"#fff",style:{"margin-top":"10px"}},{default:X(()=>[V(i,{onClick:a[0]||(a[0]=u=>y(jn).push({name:"email"})),index:"email",class:q(y(n).meta.name==="email"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"hugeicons:mailbox-01",width:"20",height:"20"}),a[11]||(a[11]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"收件箱",-1))]),_:1},8,["class"]),Ot((R(),le(i,{onClick:a[1]||(a[1]=u=>y(jn).push({name:"send"})),index:"send",class:q(y(n).meta.name==="send"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"cil:send",width:"20",height:"20"}),a[12]||(a[12]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"已发送",-1))]),_:1},8,["class"])),[[l,"email:send"]]),Ot((R(),le(i,{onClick:a[2]||(a[2]=u=>y(jn).push({name:"draft"})),index:"draft",class:q(y(n).meta.name==="draft"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"ep:document",width:"19",height:"19"}),a[13]||(a[13]=I("span",{class:"menu-name",style:{"margin-left":"22px"}},"草稿箱",-1))]),_:1},8,["class"])),[[l,"email:send"]]),V(i,{onClick:a[3]||(a[3]=u=>y(jn).push({name:"star"})),index:"star",class:q(y(n).meta.name==="star"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"solar:star-line-duotone",width:"20",height:"20"}),a[14]||(a[14]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"星标邮件",-1))]),_:1},8,["class"]),V(i,{onClick:a[4]||(a[4]=u=>y(jn).push({name:"setting"})),index:"setting",class:q(y(n).meta.name==="setting"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:settings-48-regular",width:"20",height:"20"}),a[15]||(a[15]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"个人设置",-1))]),_:1},8,["class"]),Ot((R(),Q("div",aoe,a[16]||(a[16]=[I("div",null,"管理",-1)]))),[[l,["user:query","role:query","setting:query","analysis:query"]]]),Ot((R(),le(i,{onClick:a[5]||(a[5]=u=>y(jn).push({name:"analysis"})),index:"analysis",class:q(y(n).meta.name==="analysis"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:data-pie-20-regular",width:"24",height:"24"}),a[17]||(a[17]=I("span",{class:"menu-name",style:{"margin-left":"18px"}},"分析页",-1))]),_:1},8,["class"])),[[l,"analysis:query"]]),Ot((R(),le(i,{onClick:a[6]||(a[6]=u=>y(jn).push({name:"user"})),index:"setting",class:q(y(n).meta.name==="user"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"si:user-alt-2-line",width:"20",height:"20"}),a[18]||(a[18]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"用户列表",-1))]),_:1},8,["class"])),[[l,"user:query"]]),Ot((R(),le(i,{onClick:a[7]||(a[7]=u=>y(jn).push({name:"sys-email"})),index:"sys-email",class:q(y(n).meta.name==="sys-email"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:mail-list-28-regular",width:"22",height:"22"}),a[19]||(a[19]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"邮件列表",-1))]),_:1},8,["class"])),[[l,"sys-email:query"]]),Ot((R(),le(i,{onClick:a[8]||(a[8]=u=>y(jn).push({name:"role"})),index:"setting",class:q(y(n).meta.name==="role"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:lock-closed-16-regular",width:"22",height:"22"}),a[20]||(a[20]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"权限控制",-1))]),_:1},8,["class"])),[[l,"role:query"]]),Ot((R(),le(i,{onClick:a[9]||(a[9]=u=>y(jn).push({name:"reg-key"})),index:"reg-key",class:q(y(n).meta.name==="reg-key"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:fingerprint-20-filled",width:"22",height:"22"}),a[21]||(a[21]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"注册密钥",-1))]),_:1},8,["class"])),[[l,"reg-key:query"]]),Ot((R(),le(i,{onClick:a[10]||(a[10]=u=>y(jn).push({name:"sys-setting"})),index:"sys-setting",class:q(y(n).meta.name==="sys-setting"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"eos-icons:system-ok-outlined",width:"18",height:"18"}),a[22]||(a[22]=I("span",{class:"menu-name",style:{"margin-left":"24px"}},"系统设置",-1))]),_:1},8,["class"])),[[l,"setting:query"]])]),_:1})])]),_:1})}}},ooe=Jn(ioe,[["__scopeId","data-v-2f7f8cd3"]]),soe={__name:"index",props:{isActive:{type:Boolean,default:!1}},setup(e,{emit:t}){const n=t,r=()=>{n("toggleClick")};return(a,i)=>(R(),Q("div",{style:{padding:"0 15px",cursor:"pointer"},onClick:r},[(R(),Q("svg",{class:q([{"is-active":e.isActive},"hamburger"]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"currentColor"},i[0]||(i[0]=[I("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"},null,-1)]),2))]))}},loe=Jn(soe,[["__scopeId","data-v-b2fb0d8c"]]);function uoe(e,t){return Gt.post("/login",{email:e,password:t})}function coe(){return Gt.delete("/logout")}function foe(e){return Gt.post("/register",e)}const jM=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],is=(()=>{if(typeof document>"u")return!1;const e=jM[0],t={};for(const n of jM)if(n?.[1]in document){for(const[a,i]of n.entries())t[e[a]]=i;return t}return!1})(),YM={change:is.fullscreenchange,error:is.fullscreenerror};let Va={request(e=document.documentElement,t){return new Promise((n,r)=>{const a=()=>{Va.off("change",a),n()};Va.on("change",a);const i=e[is.requestFullscreen](t);i instanceof Promise&&i.then(a).catch(r)})},exit(){return new Promise((e,t)=>{if(!Va.isFullscreen){e();return}const n=()=>{Va.off("change",n),e()};Va.on("change",n);const r=document[is.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},toggle(e,t){return Va.isFullscreen?Va.exit():Va.request(e,t)},onchange(e){Va.on("change",e)},onerror(e){Va.on("error",e)},on(e,t){const n=YM[e];n&&document.addEventListener(n,t,!1)},off(e,t){const n=YM[e];n&&document.removeEventListener(n,t,!1)},raw:is};Object.defineProperties(Va,{isFullscreen:{get:()=>!!document[is.fullscreenElement]},element:{enumerable:!0,get:()=>document[is.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[is.fullscreenEnabled]}});is||(Va={isEnabled:!1});const doe=Va,hoe={class:"header-btn"},poe={class:"breadcrumb-item"},voe={class:"writer"},goe={class:"toolbar"},moe={class:"email"},yoe={class:"avatar"},boe={class:"avatar-text"},_oe={class:"user-details"},woe={class:"details-avatar"},Soe={class:"user-name"},Coe={class:"detail-email"},xoe={class:"detail-user-type"},Toe={class:"action-info"},koe={key:0,style:{"margin-right":"5px"}},Eoe={key:1,style:{"margin-right":"5px"}},Moe={class:"logout"},Aoe={__name:"index",setup(e){const t=Zy(),n=La(),r=Ti(),a=El(),i=j(!1),o=Y(()=>r.user.role.accountCount),s=Y(()=>{if(!oa("email:send"))return"无权限";if(!r.user.role.sendCount)return"无限制";if(r.user.role.sendCount<0)return"无次数";if(r.user.role.sendType==="day")return"每天";if(r.user.role.sendType==="count")return"次数"}),l=Y(()=>!oa("email:send")||!r.user.role.sendCount||r.user.role.sendCount<0?null:r.user.sendCount+"/"+r.user.role.sendCount);function u(){a.writerRef.open()}function c(){a.asideShow=!a.asideShow}function f(){i.value=!0,coe().then(()=>{localStorage.removeItem("token"),jn.replace("/login")}).finally(()=>{i.value=!1})}function d(p){return p[0]?.toUpperCase()||""}function h(){doe.toggle()}return(p,v)=>{const g=Gu,m=$r,b=lp,w=vs("perm");return R(),Q("div",{class:q(["header",y(oa)("email:send")?"":"not-send"])},[I("div",hoe,[V(loe,{onClick:c}),I("span",poe,Ae(y(t).meta.title),1)]),Ot((R(),Q("div",{class:"writer-box",onClick:u},[I("div",voe,[V(y(nt),{icon:"material-symbols:edit-outline-sharp",width:"22",height:"22"})])])),[[w,"email:send"]]),I("div",goe,[I("div",moe,[I("span",null,Ae(y(r).user.email),1)]),V(b,{teleported:!1,"popper-class":"detail-dropdown"},{dropdown:X(()=>[I("div",_oe,[I("div",woe,Ae(d(y(r).user.email)),1),I("div",Soe,Ae(y(r).user.name),1),I("div",Coe,Ae(y(r).user.email),1),I("div",xoe,[V(g,null,{default:X(()=>[Xe(Ae(y(r).user.role.name),1)]),_:1})]),I("div",Toe,[v[3]||(v[3]=I("div",null,[I("span",{style:{"margin-right":"10px"}},"邮件发送 :"),I("span",{style:{"margin-right":"10px"}},"邮箱添加 :")],-1)),I("div",null,[I("div",null,[l.value?(R(),Q("span",koe,Ae(l.value),1)):ye("",!0),y(oa)("email:send")?(R(),le(g,{key:2},{default:X(()=>[Xe(Ae(s.value),1)]),_:1})):(R(),le(g,{key:1},{default:X(()=>[Xe(Ae(s.value),1)]),_:1}))]),I("div",null,[y(n).settings.manyEmail||y(n).settings.addEmail?(R(),le(g,{key:0},{default:X(()=>v[0]||(v[0]=[Xe("已关闭")])),_:1})):o.value&&y(oa)("account:add")?(R(),Q("span",Eoe,Ae(o.value)+"个",1)):!o.value&&y(oa)("account:add")?(R(),le(g,{key:2},{default:X(()=>v[1]||(v[1]=[Xe("无限制")])),_:1})):y(oa)("account:add")?ye("",!0):(R(),le(g,{key:3},{default:X(()=>v[2]||(v[2]=[Xe("无权限")])),_:1}))])])]),I("div",Moe,[V(m,{type:"primary",loading:i.value,onClick:f},{default:X(()=>v[4]||(v[4]=[Xe("退出")])),_:1},8,["loading"])])])]),default:X(()=>[I("div",yoe,[I("div",boe,[I("div",null,Ae(d(y(r).user.email)),1)]),V(y(nt),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"24",height:"24"})])]),_:1}),I("div",{class:"full",onClick:h},[V(y(nt),{icon:"iconamoon:screen-full-light",width:"22",height:"22"})])])],2)}}},Ioe=Jn(Aoe,[["__scopeId","data-v-9fc99a3e"]]);function Doe(e,t){return Gt.get("/account/list",{params:{accountId:e,size:t}})}function Poe(e,t){return Gt.post("/account/add",{email:e,token:t})}function o$(e,t){return Gt.put("/account/setName",{name:t,accountId:e})}function Ooe(e){return Gt.delete("/account/delete",{params:{accountId:e}})}function vl(e){return/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(e)}const Loe={class:"account-box"},Roe={class:"head-opt"},Noe={"infinite-scroll-distance":600,"infinite-scroll-immediate":!1},$oe={class:"account"},Boe={class:"opt"},Foe={style:{display:"flex","justify-content":"space-between"}},Voe={style:{display:"flex","justify-content":"space-between"}},zoe={key:2,class:"noLoading"},Hoe={key:3,class:"empty"},Woe={class:"container"},Uoe={style:{color:"#333"}},Koe=["data-sitekey"],joe={class:"container"},Yoe={__name:"index",setup(e){const t=Ti(),n=ys(),r=La(),a=j(!1),i=j(!1),o=r.domainList,s=Ut([]),l=j(!1),u=j(!1),c=j(!1),f=j(!1),d=j(!1),h=j(!1),p=j(null),v=j({});let g=null,m=null,b="";const w=Ut({email:"",suffix:r.domainList[0]}),_={accountId:0,size:20},C=j();oa("account:query")&&N(),je(()=>n.changeUserAccountName,()=>{s[0].name=n.changeUserAccountName});const x=()=>{C.value.toggleMenu()};window.onTurnstileSuccess=$=>{b=$,setTimeout(()=>{f.value=!1},1500)};function T(){let $=p.value;if($===g.name){d.value=!1;return}if(!$){xt({message:"用户名不能为空",type:"error",plain:!0});return}h.value=!0,o$(g.accountId,$).then(()=>{g.name=$,d.value=!1,g.accountId===t.user.accountId&&(t.user.name=$),xt({message:"保存成功",type:"success",plain:!0})}).finally(()=>{h.value=!1})}function M($){p.value=$.name,g=$,d.value=!0}function E($){return!oa("email:send")&&!($.accountId!==t.user.accountId&&oa("account:delete"))}function A($){return n.currentAccountId===$?"item-choose":""}function L($){ua.confirm(`确认删除${$.email}吗?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Ooe($.accountId).then(()=>{const O=s.findIndex(W=>W.accountId===$.accountId);s.splice(O,1),s.length<_.size&&N(),xt({message:"删除成功",type:"success",plain:!0})})})}function F(){u.value||(u.value=!1,c.value=!1,l.value=!1,_.accountId=0,s.splice(0,s.length),N())}function H($){n.currentAccountId=$.accountId,n.currentAccount=$}function U(){a.value=!0,setTimeout(()=>{v.value.focus()},100)}async function P($){try{await navigator.clipboard.writeText($),xt({message:"复制成功",type:"success",plain:!0})}catch(O){console.error("复制失败:",O),xt({message:"复制失败",type:"error",plain:!0})}}function N(){u.value||c.value||l.value||(s.length===0?u.value=!0:c.value=!0,Doe(_.accountId,_.size).then($=>{$.length<_.size&&(l.value=!0),s.length===0&&(n.currentAccount=$[0].accountId),_.accountId=$.at(-1).accountId,s.push(...$),u.value=!1,c.value=!1}).catch(()=>{u.value=!1,c.value=!1}))}function z(){if(!w.email){xt({message:"邮箱不能为空",type:"error",plain:!0});return}if(!vl(w.email+w.suffix)){xt({message:"非法邮箱",type:"error",plain:!0});return}if(!b&&r.settings.addEmailVerify===0){f.value=!0,m?window.turnstile.reset(m):Nt(()=>{m=window.turnstile.render(".add-email-turnstile")});return}i.value=!0,Poe(w.email+w.suffix,b).then($=>{i.value=!1,a.value=!1,w.email="",s.push($),b="",xt({message:"添加成功",type:"success",plain:!0}),t.refreshUserInfo()}).catch($=>{$.code===400&&(b="",window.turnstile.reset(m),f.value=!0),i.value=!1})}return($,O)=>{const W=Uy,ee=Ky,te=lp,re=KY,ce=gQ,ie=vQ,de=jy,se=ya,_e=kl,pe=Tl,$e=Sr,De=$r,Z=Cf,ne=vs("perm"),oe=JN;return R(),Q("div",Loe,[I("div",Roe,[Ot(V(y(nt),{class:"icon add",icon:"ion:add-outline",width:"23",height:"23",onClick:U},null,512),[[ne,"account:add"]]),V(y(nt),{class:"icon refresh",icon:"ion:reload",width:"18",height:"18",onClick:F})]),V(se,{class:"scrollbar"},{default:X(()=>[Ot((R(),Q("div",Noe,[(R(!0),Q(mt,null,en(s,ve=>(R(),le(re,{class:q(["item",A(ve.accountId)]),key:ve.accountId,onClick:Oe=>H(ve)},{default:X(()=>[I("div",$oe,Ae(ve.email),1),I("div",Boe,[I("div",{class:"send-email",onClick:O[0]||(O[0]=Pt(()=>{},["stop"]))},[V(y(nt),{icon:"eva:email-fill",width:"22",height:"22",color:"#fbbd08"})]),I("div",{class:"settings",onClick:O[1]||(O[1]=Pt(()=>{},["stop"]))},[V(y(nt),{icon:"streamline-ultimate-color:copy-paste-1",width:"19",height:"19",onClick:Pt(Oe=>P(ve.email),["stop"])},null,8,["onClick"]),E(ve)?(R(),le(y(nt),{key:0,icon:"fluent:settings-24-filled",width:"21",height:"21",color:"#909399"})):(R(),le(te,{key:1},{dropdown:X(()=>[V(ee,null,{default:X(()=>[y(oa)("email:send")?(R(),le(W,{key:0,onClick:Oe=>M(ve)},{default:X(()=>O[7]||(O[7]=[Xe("改名")])),_:2},1032,["onClick"])):ye("",!0),ve.accountId!==y(t).user.accountId&&y(oa)("account:delete")?(R(),le(W,{key:1,onClick:Oe=>L(ve)},{default:X(()=>O[8]||(O[8]=[Xe("删除")])),_:2},1032,["onClick"])):ye("",!0)]),_:2},1024)]),default:X(()=>[V(y(nt),{icon:"fluent:settings-24-filled",width:"21",height:"21",color:"#909399"})]),_:2},1024))])])]),_:2},1032,["class","onClick"]))),128)),u.value?(R(),Q(mt,{key:0},en(3,ve=>V(ie,{key:ve,animated:""},{template:X(()=>[V(re,{class:"item"},{default:X(()=>[V(ce,{variant:"p",style:{width:"70%",height:"20px","margin-bottom":"20px"}}),I("div",Foe,[V(ce,{variant:"text",style:{width:"20px"}}),V(ce,{variant:"text",style:{width:"20px"}})])]),_:1})]),_:2},1024)),64)):ye("",!0),s.length>0&&!l.value?(R(),le(ie,{key:1,animated:""},{template:X(()=>[V(re,{class:"item"},{default:X(()=>[V(ce,{variant:"p",style:{width:"70%",height:"20px","margin-bottom":"20px"}}),I("div",Voe,[V(ce,{variant:"text",style:{width:"20px"}}),V(ce,{variant:"text",style:{width:"20px"}})])]),_:1})]),_:1})):ye("",!0),l.value&&s.length>0?(R(),Q("div",zoe,O[9]||(O[9]=[I("div",null,"没有更多数据了",-1)]))):ye("",!0),l.value&&s.length===0?(R(),Q("div",Hoe,[V(de,{description:"没有任何邮件"})])):ye("",!0)])),[[oe,N]])]),_:1}),V(Z,{modelValue:a.value,"onUpdate:modelValue":O[4]||(O[4]=ve=>a.value=ve),title:"添加邮箱"},{default:X(()=>[I("div",Woe,[V($e,{modelValue:w.email,"onUpdate:modelValue":O[3]||(O[3]=ve=>w.email=ve),ref_key:"addRef",ref:v,type:"text",placeholder:"邮箱",autocomplete:"off"},{append:X(()=>[I("div",{onClick:Pt(x,["stop"])},[V(pe,{ref_key:"mySelect",ref:C,modelValue:w.suffix,"onUpdate:modelValue":O[2]||(O[2]=ve=>w.suffix=ve),placeholder:"请选择",class:"select"},{default:X(()=>[(R(!0),Q(mt,null,en(y(o),ve=>(R(),le(_e,{key:ve,label:ve,value:ve},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),I("div",Uoe,[I("span",null,Ae(w.suffix),1),V(y(nt),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),_:1},8,["modelValue"]),V(De,{class:"btn",type:"primary",onClick:z,loading:i.value},{default:X(()=>O[10]||(O[10]=[Xe("添加 ")])),_:1},8,["loading"])]),I("div",{class:q(["add-email-turnstile",f.value?"turnstile-show":"turnstile-hide"]),"data-sitekey":y(r).settings.siteKey,"data-callback":"onTurnstileSuccess"},null,10,Koe)]),_:1},8,["modelValue"]),V(Z,{modelValue:d.value,"onUpdate:modelValue":O[6]||(O[6]=ve=>d.value=ve),title:"修改用户名"},{default:X(()=>[I("div",joe,[V($e,{modelValue:p.value,"onUpdate:modelValue":O[5]||(O[5]=ve=>p.value=ve),type:"text",placeholder:"名字",autocomplete:"off"},null,8,["modelValue"]),V(De,{class:"btn",type:"primary",onClick:T,loading:h.value},{default:X(()=>O[11]||(O[11]=[Xe("保存 ")])),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}},Goe=Jn(Yoe,[["__scopeId","data-v-c7c27462"]]),qoe={__name:"index",props:{openSend:Function},setup(e){const t=La(),n=El(),r=Zy();let a=window.innerWidth;const i=Y(()=>n.accountShow&&t.settings.manyEmail===0);jt(()=>{window.addEventListener("resize",o),o()}),qn(()=>{window.removeEventListener("resize",o)});const o=()=>{["content","email","send"].includes(r.meta.name)&&a!==window.innerWidth&&(a=window.innerWidth,n.accountShow=window.innerWidth>=767)};return(s,l)=>{const u=Kt("router-view");return R(),Q("div",{class:q(i.value&&y(oa)("account:query")?"main-box-show":"main-box-hide")},[I("div",{class:q(i.value&&y(oa)("account:query")?"block-show":"block-hide"),onClick:l[0]||(l[0]=c=>y(n).accountShow=!1)},null,2),V(Goe,{class:q(i.value&&y(oa)("account:query")?"show":"hide")},null,8,["class"]),V(u,{class:"main-view"},{default:X(({Component:c,route:f})=>[(R(),le(K5,{include:["email","sys-email","send","sys-setting","star","user","role","analysis","reg-key","draft"]},[(R(),le(pn(c),{key:f.name}))],1024))]),_:1})],2)}}},Xoe=Jn(qoe,[["__scopeId","data-v-1cc53d07"]]),xx={props:{size:{type:Number,default:30}}},GM=()=>{eL(e=>({"69cdb3c9":e.size}))},qM=xx.setup;xx.setup=qM?(e,t)=>(GM(),qM(e,t)):GM;function Zoe(e,t,n,r,a,i){const o=Mt;return R(),le(o,{class:"is-loading",style:Ft({fontSize:`${n.size}px`})},{default:X(()=>t[0]||(t[0]=[I("svg",{class:"circular",viewBox:"0 0 20 20"},[I("g",{class:"path2 loading-path","stroke-width":"0",style:{animation:"none",stroke:"none"}},[I("circle",{r:"3.375",class:"dot1",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot2",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot4",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot3",rx:"0",ry:"0"})])],-1)])),_:1},8,["style"])}const us=Jn(xx,[["render",Zoe],["__scopeId","data-v-2599d553"]]);/*! +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Sg.assertOptions(r,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),a!=null&&(Ke.isFunction(a)?n.paramsSerializer={serialize:a}:Sg.assertOptions(a,{encode:so.function,serialize:so.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sg.assertOptions(n,{baseUrl:so.spelling("baseURL"),withXsrfToken:so.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[n.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Aa.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[EM.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new kf(i,o,s),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 W3(function(a){t=a}),cancel:t}}};function Bae(e){return function(n){return e.apply(null,n)}}function Fae(e){return Ke.isObject(e)&&e.isAxiosError===!0}const Aw={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};Object.entries(Aw).forEach(([e,t])=>{Aw[t]=e});function U3(e){const t=new ku(e),n=w3(ku.prototype.request,t);return Ke.extend(n,ku.prototype,t,{allOwnKeys:!0}),Ke.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return U3(Nu(e,a))},n}const hr=U3(fp);hr.Axios=ku;hr.CanceledError=kf;hr.CancelToken=$ae;hr.isCancel=R3;hr.VERSION=H3;hr.toFormData=n0;hr.AxiosError=on;hr.Cancel=hr.CanceledError;hr.all=function(t){return Promise.all(t)};hr.spread=Bae;hr.isAxiosError=Fae;hr.mergeConfig=Nu;hr.AxiosHeaders=Aa;hr.formToJSON=e=>L3(Ke.isHTMLForm(e)?new FormData(e):e);hr.getAdapter=z3.getAdapter;hr.HttpStatusCode=Aw;hr.default=hr;const{Axios:ICe,AxiosError:DCe,CanceledError:PCe,isCancel:OCe,CancelToken:LCe,VERSION:RCe,all:NCe,Cancel:$Ce,isAxiosError:BCe,spread:FCe,toFormData:VCe,AxiosHeaders:zCe,HttpStatusCode:HCe,formToJSON:WCe,getAdapter:UCe,mergeConfig:KCe}=hr;let Gt=hr.create({baseURL:"/api"});Gt.interceptors.request.use(e=>(e.headers.Authorization=`${localStorage.getItem("token")}`,e));Gt.interceptors.response.use(e=>new Promise((t,n)=>{const r=e.config.noMsg,a=e.data;r?a.code===200?t(a.data):n(a):a.code===401?(xt({message:a.message,type:"error",plain:!0,grouping:!0,repeatNum:-4}),localStorage.removeItem("token"),jn.push("/login"),n(a)):a.code===403?(xt({message:a.message,type:"warning",plain:!0,grouping:!0,repeatNum:-4}),n(a)):a.code!==200&&(xt({message:a.message,type:"error",plain:!0,grouping:!0,repeatNum:-4}),n(a)),t(a.data)}),e=>(e.config.noMsg||(e.message.includes("Network Error")?xt({message:"网络错误,请检查网络连接",type:"error",plain:!0,grouping:!0,repeatNum:-4}):e.code==="ECONNABORTED"?(xt({message:"请求超时,请稍后重试",type:"error",plain:!0,grouping:!0}),xt.error("")):e.response?xt({message:"服务器繁忙",type:"error",plain:!0,grouping:!0,repeatNum:-4}):xt({message:"请求失败,请稍后再试",type:"error",plain:!0,grouping:!0,repeatNum:-4})),Promise.reject(e)));function Tm(){return Gt.get("/my/loginUserInfo")}function Vae(e){return Gt.put("/my/resetPassword",{password:e})}function zae(){return Gt.delete("/my/delete")}const Ti=qu("user",{state:()=>({user:{},refreshList:0}),actions:{refreshUserList(){Tm().then(e=>{this.refreshList++})},refreshUserInfo(){Tm().then(e=>{this.user=e})}}}),La=qu("setting",{state:()=>({domainList:[],settings:{r2Domain:"",loginOpacity:1}}),actions:{}}),ys=qu("account",{state:()=>({currentAccountId:0,currentAccount:{},changeUserAccountName:""})});function oa(e){const{permKeys:t}=Ti().user;return t.includes("*")||t.includes(e)}function K3(e){const t=[];return Object.keys(AM).forEach(n=>{(e.includes(n)||e.includes("*"))&&t.push(AM[n])}),t}const AM={"user:query":{path:"/sys/user",name:"user",component:()=>Kr(()=>Promise.resolve().then(()=>Ece),void 0),meta:{title:"用户列表",name:"user",menu:!0}},"role:query":{path:"/sys/role",name:"role",component:()=>Kr(()=>Promise.resolve().then(()=>Bce),void 0),meta:{title:"权限控制",name:"role",menu:!0}},"setting:query":{path:"/sys/setting",name:"sys-setting",component:()=>Kr(()=>Promise.resolve().then(()=>Kfe),void 0),meta:{title:"系统设置",name:"sys-setting",menu:!0}},"reg-key:query":{path:"/sys/reg-key",name:"reg-key",component:()=>Kr(()=>Promise.resolve().then(()=>gde),void 0),meta:{title:"注册密钥",name:"reg-key",menu:!0}},"sys-email:query":{path:"/sys/email",name:"sys-email",component:()=>Kr(()=>Promise.resolve().then(()=>wde),void 0),meta:{title:"邮件列表",name:"sys-email",menu:!0}},"analysis:query":{path:"/analysis",name:"analysis",component:()=>Kr(()=>Promise.resolve().then(()=>xCe),void 0),meta:{title:"分析页",name:"analysis",menu:!0}}};function Hae(e){return Gt.put("/setting/set",e)}function IM(){return Gt.get("/setting/query")}function DM(){return Gt.get("/setting/websiteConfig")}function Wae(e){return Gt.put("/setting/setBackground",{background:e})}function Uae(){return Gt.delete("/setting/physicsDeleteAll")}function sf(e){return La().settings.r2Domain+"/"+e}async function Kae(){document.title="​";const e=La(),t=Ti(),n=ys(),r=localStorage.getItem("token");let a=null;if(r){const s=Tm().catch(c=>(console.error(c),null)),[l,u]=await Promise.all([DM(),s]);a=l,e.settings=a,e.domainList=a.domainList,document.title=a.title,u&&(n.currentAccountId=u.accountId,t.user=u,K3(u.permKeys).forEach(f=>{jn.addRoute("layout",f)}))}else a=await DM(),e.settings=a,e.domainList=a.domainList,document.title=a.title;const i=document.getElementById("loading-first");if(!a.background){i.remove();return}const o=new Image;o.src=sf(a.background),o.onload=()=>{i.remove()},o.onerror=()=>{console.warn("背景图片加载失败:",o.src),i.remove()}}const jae=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Yae=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Gae=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function qae(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Xae(e);return}return t}function Xae(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zae(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Gae.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jae.test(e)||Yae.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,qae)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function Jae(e,t){if(e==null)return;let n=e;for(let r=0;r1&&(t=yx(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function j3(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return yx(e,j3(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Y3(e,t){return t.map(n=>n.split(".")).map(n=>[n,Jae(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>yx(n,r[1],r[0]),{})}function G3(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>j3(n,r),e)}function PM(e,{storage:t,serializer:n,key:r,debug:a,pick:i,omit:o,beforeHydrate:s,afterHydrate:l},u,c=!0){try{c&&s?.(u);const f=t.getItem(r);if(f){const d=n.deserialize(f),h=i?Y3(d,i):d,p=o?G3(h,o):h;e.$patch(p)}c&&l?.(u)}catch(f){a&&console.error("[pinia-plugin-persistedstate]",f)}}function OM(e,{storage:t,serializer:n,key:r,debug:a,pick:i,omit:o}){try{const s=i?Y3(e,i):e,l=o?G3(s,o):s,u=n.serialize(l);t.setItem(r,u)}catch(s){a&&console.error("[pinia-plugin-persistedstate]",s)}}function Qae(e,t,n){const{pinia:r,store:a,options:{persist:i=n}}=e;if(!i)return;if(!(a.$id in r.state.value)){const l=r._s.get(a.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const s=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);a.$hydrate=({runHooks:l=!0}={})=>{s.forEach(u=>{PM(a,u,e,l)})},a.$persist=()=>{s.forEach(l=>{OM(a.$state,l)})},s.forEach(l=>{PM(a,l,e),a.$subscribe((u,c)=>OM(c,l),{detached:!0})})}function eie(e={}){return function(t){Qae(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>Zae(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var tie=eie();const nie={mounted(e,t){const r=Ti().user.permKeys,a=t.value;if(r.includes("*"))return;(Array.isArray(a)?a.some(o=>r.includes(o)):r.includes(a))||e.parentNode&&e.parentNode.removeChild(e)}},rie=Hne().use(tie),bx=hV(Lte).use(rie);await Kae();bx.use(jn).use(cre).directive("perm",nie);bx.config.devtools=!0;bx.mount("#app");const q3=/^[a-z0-9]+(-[a-z0-9]+)*$/,i0=(e,t,n,r="")=>{const a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;r=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const s=a.pop(),l=a.pop(),u={provider:a.length>0?a[0]:r,prefix:l,name:s};return t&&!Cg(u)?null:u}const i=a[0],o=i.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Cg(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!Cg(s,n)?null:s}return null},Cg=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,X3=Object.freeze({left:0,top:0,width:16,height:16}),km=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o0=Object.freeze({...X3,...km}),Iw=Object.freeze({...o0,body:"",hidden:!1});function aie(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function LM(e,t){const n=aie(e,t);for(const r in Iw)r in km?r in e&&!(r in n)&&(n[r]=km[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function iie(e,t){const n=e.icons,r=e.aliases||Object.create(null),a=Object.create(null);function i(o){if(n[o])return a[o]=[];if(!(o in a)){a[o]=null;const s=r[o]&&r[o].parent,l=s&&i(s);l&&(a[o]=[s].concat(l))}return a[o]}return Object.keys(n).concat(Object.keys(r)).forEach(i),a}function oie(e,t,n){const r=e.icons,a=e.aliases||Object.create(null);let i={};function o(s){i=LM(r[s]||a[s],i)}return o(t),n.forEach(o),LM(e,i)}function Z3(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(a=>{t(a,null),n.push(a)});const r=iie(e);for(const a in r){const i=r[a];i&&(t(a,oie(e,a,i)),n.push(a))}return n}const sie={provider:"",aliases:{},not_found:{},...X3};function e_(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function J3(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!e_(e,sie))return null;const n=t.icons;for(const a in n){const i=n[a];if(!a||typeof i.body!="string"||!e_(i,Iw))return null}const r=t.aliases||Object.create(null);for(const a in r){const i=r[a],o=i.parent;if(!a||typeof o!="string"||!n[o]&&!r[o]||!e_(i,Iw))return null}return t}const RM=Object.create(null);function lie(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function lf(e,t){const n=RM[e]||(RM[e]=Object.create(null));return n[t]||(n[t]=lie(e,t))}function Q3(e,t){return J3(t)?Z3(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function uie(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Dh=!1;function e$(e){return typeof e=="boolean"&&(Dh=e),Dh}function cie(e){const t=typeof e=="string"?i0(e,!0,Dh):e;if(t){const n=lf(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function fie(e,t){const n=i0(e,!0,Dh);if(!n)return!1;const r=lf(n.provider,n.prefix);return t?uie(r,n.name,t):(r.missing.add(n.name),!0)}function die(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Dh&&!t&&!e.prefix){let a=!1;return J3(e)&&(e.prefix="",Z3(e,(i,o)=>{fie(i,o)&&(a=!0)})),a}const n=e.prefix;if(!Cg({prefix:n,name:"a"}))return!1;const r=lf(t,n);return!!Q3(r,e)}const t$=Object.freeze({width:null,height:null}),n$=Object.freeze({...t$,...km}),hie=/(-?[0-9.]*[0-9]+[0-9.]*)/g,pie=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function NM(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(hie);if(r===null||!r.length)return e;const a=[];let i=r.shift(),o=pie.test(i);for(;;){if(o){const s=parseFloat(i);isNaN(s)?a.push(i):a.push(Math.ceil(s*t*n)/n)}else a.push(i);if(i=r.shift(),i===void 0)return a.join("");o=!o}}function vie(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const a=e.indexOf(">",r),i=e.indexOf("",i);if(o===-1)break;n+=e.slice(a+1,i).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function gie(e,t){return e?""+e+""+t:t}function mie(e,t,n){const r=vie(e);return gie(r.defs,t+r.content+n)}const yie=e=>e==="unset"||e==="undefined"||e==="none";function bie(e,t){const n={...o0,...e},r={...n$,...t},a={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(v=>{const g=[],m=v.hFlip,b=v.vFlip;let w=v.rotate;m?b?w+=2:(g.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),g.push("scale(-1 1)"),a.top=a.left=0):b&&(g.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),g.push("scale(1 -1)"),a.top=a.left=0);let _;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:_=a.height/2+a.top,g.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:g.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:_=a.width/2+a.left,g.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}w%2===1&&(a.left!==a.top&&(_=a.left,a.left=a.top,a.top=_),a.width!==a.height&&(_=a.width,a.width=a.height,a.height=_)),g.length&&(i=mie(i,'',""))});const o=r.width,s=r.height,l=a.width,u=a.height;let c,f;o===null?(f=s===null?"1em":s==="auto"?u:s,c=NM(f,l/u)):(c=o==="auto"?l:o,f=s===null?NM(c,u/l):s==="auto"?u:s);const d={},h=(v,g)=>{yie(g)||(d[v]=g.toString())};h("width",c),h("height",f);const p=[a.left,a.top,l,u];return d.viewBox=p.join(" "),{attributes:d,viewBox:p,body:i}}const _ie=/\sid="(\S+)"/g,wie="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Sie=0;function Cie(e,t=wie){const n=[];let r;for(;r=_ie.exec(e);)n.push(r[1]);if(!n.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const o=typeof t=="function"?t(i):t+(Sie++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}const Dw=Object.create(null);function xie(e,t){Dw[e]=t}function Pw(e){return Dw[e]||Dw[""]}function _x(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Sx=Object.create(null),Xf=["https://api.simplesvg.com","https://api.unisvg.com"],xg=[];for(;Xf.length>0;)Xf.length===1||Math.random()>.5?xg.push(Xf.shift()):xg.push(Xf.pop());Sx[""]=_x({resources:["https://api.iconify.design"].concat(xg)});function Tie(e,t){const n=_x(t);return n===null?!1:(Sx[e]=n,!0)}function Cx(e){return Sx[e]}const kie=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $M=kie();function Eie(e,t){const n=Cx(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let a=0;n.resources.forEach(o=>{a=Math.max(a,o.length)});const i=t+".json?icons=";r=n.maxURL-a-n.path.length-i.length}return r}function Mie(e){return e===404}const Aie=(e,t,n)=>{const r=[],a=Eie(e,t),i="icons";let o={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,u)=>{s+=l.length+1,s>=a&&u>0&&(r.push(o),o={type:i,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function Iie(e){if(typeof e=="string"){const t=Cx(e);if(t)return t.path}return"/"}const Die=(e,t,n)=>{if(!$M){n("abort",424);return}let r=Iie(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let a=503;$M(e+r).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{n(Mie(o)?"abort":"next",o)});return}return a=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",a)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",a)})},Pie={prepare:Aie,send:Die};function Oie(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((a,i)=>a.provider!==i.provider?a.provider.localeCompare(i.provider):a.prefix!==i.prefix?a.prefix.localeCompare(i.prefix):a.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(a=>{if(r.name===a.name&&r.prefix===a.prefix&&r.provider===a.provider)return;r=a;const i=a.provider,o=a.prefix,s=a.name,l=n[i]||(n[i]=Object.create(null)),u=l[o]||(l[o]=lf(i,o));let c;s in u.icons?c=t.loaded:o===""||u.missing.has(s)?c=t.missing:c=t.pending;const f={provider:i,prefix:o,name:s};c.push(f)}),t}function r$(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(a=>a.id!==t))})}function Lie(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,a=e.prefix;t.forEach(i=>{const o=i.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==a)return!0;const u=l.name;if(e.icons[u])o.loaded.push({provider:r,prefix:a,name:u});else if(e.missing.has(u))o.missing.push({provider:r,prefix:a,name:u});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||r$([e],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let Rie=0;function Nie(e,t,n){const r=Rie++,a=r$.bind(null,n,r);if(!t.pending.length)return a;const i={id:r,icons:t,callback:e,abort:a};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),a}function $ie(e,t=!0,n=!1){const r=[];return e.forEach(a=>{const i=typeof a=="string"?i0(a,t,n):a;i&&r.push(i)}),r}var Bie={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fie(e,t,n,r){const a=e.resources.length,i=e.random?Math.floor(Math.random()*a):e.index;let o;if(e.random){let x=e.resources.slice(0);for(o=[];x.length>1;){const T=Math.floor(Math.random()*x.length);o.push(x[T]),x=x.slice(0,T).concat(x.slice(T+1))}o=o.concat(x)}else o=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){l==="pending"&&(l="aborted"),p(),d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function g(x,T){T&&(h=[]),typeof x=="function"&&h.push(x)}function m(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:g,abort:v}}function b(){l="failed",h.forEach(x=>{x(void 0,c)})}function w(){d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function _(x,T,M){const E=T!=="success";switch(d=d.filter(A=>A!==x),l){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=M,b();return}if(E){c=M,d.length||(o.length?C():b());return}if(p(),w(),!e.random){const A=e.resources.indexOf(x.resource);A!==-1&&A!==e.index&&(e.index=A)}l="completed",h.forEach(A=>{A(M)})}function C(){if(l!=="pending")return;p();const x=o.shift();if(x===void 0){if(d.length){f=setTimeout(()=>{p(),l==="pending"&&(w(),b())},e.timeout);return}b();return}const T={status:"pending",resource:x,callback:(M,E)=>{_(T,M,E)}};d.push(T),u++,f=setTimeout(C,e.rotate),n(x,t,T.callback)}return setTimeout(C),m}function a$(e){const t={...Bie,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function a(s,l,u){const c=Fie(t,s,l,(f,d)=>{r(),u&&u(f,d)});return n.push(c),c}function i(s){return n.find(l=>s(l))||null}return{query:a,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function BM(){}const t_=Object.create(null);function Vie(e){if(!t_[e]){const t=Cx(e);if(!t)return;const n=a$(t),r={config:t,redundancy:n};t_[e]=r}return t_[e]}function zie(e,t,n){let r,a;if(typeof e=="string"){const i=Pw(e);if(!i)return n(void 0,424),BM;a=i.send;const o=Vie(e);o&&(r=o.redundancy)}else{const i=_x(e);if(i){r=a$(i);const o=e.resources?e.resources[0]:"",s=Pw(o);s&&(a=s.send)}}return!r||!a?(n(void 0,424),BM):r.query(t,a,n)().abort}function FM(){}function Hie(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Lie(e)}))}function Wie(e){const t=[],n=[];return e.forEach(r=>{(r.match(q3)?t:n).push(r)}),{valid:t,invalid:n}}function Zf(e,t,n){function r(){const a=e.pendingIcons;t.forEach(i=>{a&&a.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!Q3(e,n).length){r();return}}catch(a){console.error(a)}r(),Hie(e)}function VM(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Uie(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,a=e.iconsToLoad;if(delete e.iconsToLoad,!a||!a.length)return;const i=e.loadIcon;if(e.loadIcons&&(a.length>1||!i)){VM(e.loadIcons(a,r,n),c=>{Zf(e,a,c)});return}if(i){a.forEach(c=>{const f=i(c,r,n);VM(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;Zf(e,[c],h)})});return}const{valid:o,invalid:s}=Wie(a);if(s.length&&Zf(e,s,null),!o.length)return;const l=r.match(q3)?Pw(n):null;if(!l){Zf(e,o,null);return}l.prepare(n,r,o).forEach(c=>{zie(n,c,f=>{Zf(e,c.icons,f)})})}))}const Kie=(e,t)=>{const n=$ie(e,!0,e$()),r=Oie(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,FM)}),()=>{l=!1}}const a=Object.create(null),i=[];let o,s;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===s&&u===o)return;o=u,s=c,i.push(lf(u,c));const f=a[u]||(a[u]=Object.create(null));f[c]||(f[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,d=lf(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),a[u][c].push(f))}),i.forEach(l=>{const u=a[l.provider][l.prefix];u.length&&Uie(l,u)}),t?Nie(t,r,i):FM};function jie(e,t){const n={...e};for(const r in t){const a=t[r],i=typeof a;r in t$?(a===null||a&&(i==="string"||i==="number"))&&(n[r]=a):i===typeof n[r]&&(n[r]=r==="rotate"?a%4:a)}return n}const Yie=/[\s,]+/;function Gie(e,t){t.split(Yie).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function qie(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(a){for(;a<0;)a+=4;return a%4}if(n===""){const a=parseInt(e);return isNaN(a)?0:r(a)}else if(n!==e){let a=0;switch(n){case"%":a=25;break;case"deg":a=90}if(a){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/a,i%1===0?r(i):0)}}return t}function Xie(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Zie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Jie(e){return"data:image/svg+xml,"+Zie(e)}function Qie(e){return'url("'+Jie(e)+'")'}const zM={...n$,inline:!1},eoe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},toe={display:"inline-block"},Ow={backgroundColor:"currentColor"},i$={backgroundColor:"transparent"},HM={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},WM={webkitMask:Ow,mask:Ow,background:i$};for(const e in WM){const t=WM[e];for(const n in HM)t[e+n]=HM[n]}const Tg={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Tg[e+"-flip"]=t,Tg[e.slice(0,1)+"-flip"]=t,Tg[e+"Flip"]=t});function UM(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const KM=(e,t)=>{const n=jie(zM,t),r={...eoe},a=t.mode||"svg",i={},o=t.style,s=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Gie(n,g);break;case"color":i.color=g;break;case"rotate":typeof g=="string"?n[v]=qie(g):typeof g=="number"&&(n[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete r["aria-hidden"];break;default:{const m=Tg[v];m?(g===!0||g==="true"||g===1)&&(n[m]=!0):zM[v]===void 0&&(r[v]=g)}}}const l=bie(e,n),u=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),a==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),r.innerHTML=Cie(l.body,g?()=>g+"ID"+v++:"iconifyVue"),St("svg",r)}const{body:c,width:f,height:d}=e,h=a==="mask"||(a==="bg"?!1:c.indexOf("currentColor")!==-1),p=Xie(c,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":Qie(p),width:UM(u.width),height:UM(u.height),...toe,...h?Ow:i$,...s},St("span",r)};e$(!0);xie("",Pie);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!die(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const a=t[n];if(typeof a!="object"||!a||a.resources===void 0)continue;Tie(n,a)||console.error(r)}catch{console.error(r)}}}}const noe={...o0,body:""},nt=Te({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=i0(e,!1,!0))===null)return this.abortLoading(),null;let a=cie(r);if(!a)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",a!==null&&(this._loadingIcon={name:e,abort:Kie([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){a=Object.assign({},a);const o=n(a.body,r.name,r.prefix,r.provider);typeof o=="string"&&(a.body=o)}const i=["iconify"];return r.prefix!==""&&i.push("iconify--"+r.prefix),r.provider!==""&&i.push("iconify--"+r.provider),{data:a,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return KM(noe,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),KM({...o0,...t.data},n)}}),Jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},roe={class:"title"},aoe={class:"manage-title"},ioe={__name:"index",setup(e){const t=La(),n=Zy();return(r,a)=>{const i=mJ,o=gJ,s=ya,l=vs("perm");return R(),le(s,{class:"scroll"},{default:X(()=>[I("div",null,[I("div",roe,[V(y(nt),{icon:"mdi:email-outline",width:"24",height:"24"}),I("div",null,Ae(y(t).settings.title),1)]),V(o,{collapse:!1,"text-color":"#fff","active-text-color":"#fff",style:{"margin-top":"10px"}},{default:X(()=>[V(i,{onClick:a[0]||(a[0]=u=>y(jn).push({name:"email"})),index:"email",class:q(y(n).meta.name==="email"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"hugeicons:mailbox-01",width:"20",height:"20"}),a[11]||(a[11]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"收件箱",-1))]),_:1},8,["class"]),Ot((R(),le(i,{onClick:a[1]||(a[1]=u=>y(jn).push({name:"send"})),index:"send",class:q(y(n).meta.name==="send"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"cil:send",width:"20",height:"20"}),a[12]||(a[12]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"已发送",-1))]),_:1},8,["class"])),[[l,"email:send"]]),Ot((R(),le(i,{onClick:a[2]||(a[2]=u=>y(jn).push({name:"draft"})),index:"draft",class:q(y(n).meta.name==="draft"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"ep:document",width:"19",height:"19"}),a[13]||(a[13]=I("span",{class:"menu-name",style:{"margin-left":"22px"}},"草稿箱",-1))]),_:1},8,["class"])),[[l,"email:send"]]),V(i,{onClick:a[3]||(a[3]=u=>y(jn).push({name:"star"})),index:"star",class:q(y(n).meta.name==="star"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"solar:star-line-duotone",width:"20",height:"20"}),a[14]||(a[14]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"星标邮件",-1))]),_:1},8,["class"]),V(i,{onClick:a[4]||(a[4]=u=>y(jn).push({name:"setting"})),index:"setting",class:q(y(n).meta.name==="setting"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:settings-48-regular",width:"20",height:"20"}),a[15]||(a[15]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"个人设置",-1))]),_:1},8,["class"]),Ot((R(),Q("div",aoe,a[16]||(a[16]=[I("div",null,"管理",-1)]))),[[l,["user:query","role:query","setting:query","analysis:query"]]]),Ot((R(),le(i,{onClick:a[5]||(a[5]=u=>y(jn).push({name:"analysis"})),index:"analysis",class:q(y(n).meta.name==="analysis"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:data-pie-20-regular",width:"24",height:"24"}),a[17]||(a[17]=I("span",{class:"menu-name",style:{"margin-left":"18px"}},"分析页",-1))]),_:1},8,["class"])),[[l,"analysis:query"]]),Ot((R(),le(i,{onClick:a[6]||(a[6]=u=>y(jn).push({name:"user"})),index:"setting",class:q(y(n).meta.name==="user"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"si:user-alt-2-line",width:"20",height:"20"}),a[18]||(a[18]=I("span",{class:"menu-name",style:{"margin-left":"21px"}},"用户列表",-1))]),_:1},8,["class"])),[[l,"user:query"]]),Ot((R(),le(i,{onClick:a[7]||(a[7]=u=>y(jn).push({name:"sys-email"})),index:"sys-email",class:q(y(n).meta.name==="sys-email"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:mail-list-28-regular",width:"22",height:"22"}),a[19]||(a[19]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"邮件列表",-1))]),_:1},8,["class"])),[[l,"sys-email:query"]]),Ot((R(),le(i,{onClick:a[8]||(a[8]=u=>y(jn).push({name:"role"})),index:"setting",class:q(y(n).meta.name==="role"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:lock-closed-16-regular",width:"22",height:"22"}),a[20]||(a[20]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"权限控制",-1))]),_:1},8,["class"])),[[l,"role:query"]]),Ot((R(),le(i,{onClick:a[9]||(a[9]=u=>y(jn).push({name:"reg-key"})),index:"reg-key",class:q(y(n).meta.name==="reg-key"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"fluent:fingerprint-20-filled",width:"22",height:"22"}),a[21]||(a[21]=I("span",{class:"menu-name",style:{"margin-left":"20px"}},"注册密钥",-1))]),_:1},8,["class"])),[[l,"reg-key:query"]]),Ot((R(),le(i,{onClick:a[10]||(a[10]=u=>y(jn).push({name:"sys-setting"})),index:"sys-setting",class:q(y(n).meta.name==="sys-setting"?"choose-item":"")},{default:X(()=>[V(y(nt),{icon:"eos-icons:system-ok-outlined",width:"18",height:"18"}),a[22]||(a[22]=I("span",{class:"menu-name",style:{"margin-left":"24px"}},"系统设置",-1))]),_:1},8,["class"])),[[l,"setting:query"]])]),_:1})])]),_:1})}}},ooe=Jn(ioe,[["__scopeId","data-v-2f7f8cd3"]]),soe={__name:"index",props:{isActive:{type:Boolean,default:!1}},setup(e,{emit:t}){const n=t,r=()=>{n("toggleClick")};return(a,i)=>(R(),Q("div",{style:{padding:"0 15px",cursor:"pointer"},onClick:r},[(R(),Q("svg",{class:q([{"is-active":e.isActive},"hamburger"]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"currentColor"},i[0]||(i[0]=[I("path",{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"},null,-1)]),2))]))}},loe=Jn(soe,[["__scopeId","data-v-b2fb0d8c"]]);function uoe(e,t){return Gt.post("/login",{email:e,password:t})}function coe(){return Gt.delete("/logout")}function foe(e){return Gt.post("/register",e)}const jM=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],is=(()=>{if(typeof document>"u")return!1;const e=jM[0],t={};for(const n of jM)if(n?.[1]in document){for(const[a,i]of n.entries())t[e[a]]=i;return t}return!1})(),YM={change:is.fullscreenchange,error:is.fullscreenerror};let Va={request(e=document.documentElement,t){return new Promise((n,r)=>{const a=()=>{Va.off("change",a),n()};Va.on("change",a);const i=e[is.requestFullscreen](t);i instanceof Promise&&i.then(a).catch(r)})},exit(){return new Promise((e,t)=>{if(!Va.isFullscreen){e();return}const n=()=>{Va.off("change",n),e()};Va.on("change",n);const r=document[is.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},toggle(e,t){return Va.isFullscreen?Va.exit():Va.request(e,t)},onchange(e){Va.on("change",e)},onerror(e){Va.on("error",e)},on(e,t){const n=YM[e];n&&document.addEventListener(n,t,!1)},off(e,t){const n=YM[e];n&&document.removeEventListener(n,t,!1)},raw:is};Object.defineProperties(Va,{isFullscreen:{get:()=>!!document[is.fullscreenElement]},element:{enumerable:!0,get:()=>document[is.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[is.fullscreenEnabled]}});is||(Va={isEnabled:!1});const doe=Va,hoe={class:"header-btn"},poe={class:"breadcrumb-item"},voe={class:"writer"},goe={class:"toolbar"},moe={class:"email"},yoe={class:"avatar"},boe={class:"avatar-text"},_oe={class:"user-details"},woe={class:"details-avatar"},Soe={class:"user-name"},Coe={class:"detail-email"},xoe={class:"detail-user-type"},Toe={class:"action-info"},koe={key:0,style:{"margin-right":"5px"}},Eoe={key:1,style:{"margin-right":"5px"}},Moe={class:"logout"},Aoe={__name:"index",setup(e){const t=Zy(),n=La(),r=Ti(),a=El(),i=j(!1),o=Y(()=>r.user.role.accountCount),s=Y(()=>{if(!oa("email:send"))return"无权限";if(!r.user.role.sendCount)return"无限制";if(r.user.role.sendCount<0)return"无次数";if(r.user.role.sendType==="day")return"每天";if(r.user.role.sendType==="count")return"次数"}),l=Y(()=>!oa("email:send")||!r.user.role.sendCount||r.user.role.sendCount<0?null:r.user.sendCount+"/"+r.user.role.sendCount);function u(){a.writerRef.open()}function c(){a.asideShow=!a.asideShow}function f(){i.value=!0,coe().then(()=>{localStorage.removeItem("token"),jn.replace("/login")}).finally(()=>{i.value=!1})}function d(p){return p[0]?.toUpperCase()||""}function h(){doe.toggle()}return(p,v)=>{const g=Gu,m=$r,b=lp,w=vs("perm");return R(),Q("div",{class:q(["header",y(oa)("email:send")?"":"not-send"])},[I("div",hoe,[V(loe,{onClick:c}),I("span",poe,Ae(y(t).meta.title),1)]),Ot((R(),Q("div",{class:"writer-box",onClick:u},[I("div",voe,[V(y(nt),{icon:"material-symbols:edit-outline-sharp",width:"22",height:"22"})])])),[[w,"email:send"]]),I("div",goe,[I("div",moe,[I("span",null,Ae(y(r).user.email),1)]),V(b,{teleported:!1,"popper-class":"detail-dropdown"},{dropdown:X(()=>[I("div",_oe,[I("div",woe,Ae(d(y(r).user.email)),1),I("div",Soe,Ae(y(r).user.name),1),I("div",Coe,Ae(y(r).user.email),1),I("div",xoe,[V(g,null,{default:X(()=>[Xe(Ae(y(r).user.role.name),1)]),_:1})]),I("div",Toe,[v[3]||(v[3]=I("div",null,[I("span",{style:{"margin-right":"10px"}},"邮件发送 :"),I("span",{style:{"margin-right":"10px"}},"邮箱添加 :")],-1)),I("div",null,[I("div",null,[l.value?(R(),Q("span",koe,Ae(l.value),1)):ye("",!0),y(oa)("email:send")?(R(),le(g,{key:2},{default:X(()=>[Xe(Ae(s.value),1)]),_:1})):(R(),le(g,{key:1},{default:X(()=>[Xe(Ae(s.value),1)]),_:1}))]),I("div",null,[y(n).settings.manyEmail||y(n).settings.addEmail?(R(),le(g,{key:0},{default:X(()=>v[0]||(v[0]=[Xe("已关闭")])),_:1})):o.value&&y(oa)("account:add")?(R(),Q("span",Eoe,Ae(o.value)+"个",1)):!o.value&&y(oa)("account:add")?(R(),le(g,{key:2},{default:X(()=>v[1]||(v[1]=[Xe("无限制")])),_:1})):y(oa)("account:add")?ye("",!0):(R(),le(g,{key:3},{default:X(()=>v[2]||(v[2]=[Xe("无权限")])),_:1}))])])]),I("div",Moe,[V(m,{type:"primary",loading:i.value,onClick:f},{default:X(()=>v[4]||(v[4]=[Xe("退出")])),_:1},8,["loading"])])])]),default:X(()=>[I("div",yoe,[I("div",boe,[I("div",null,Ae(d(y(r).user.email)),1)]),V(y(nt),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"24",height:"24"})])]),_:1}),I("div",{class:"full",onClick:h},[V(y(nt),{icon:"iconamoon:screen-full-light",width:"22",height:"22"})])])],2)}}},Ioe=Jn(Aoe,[["__scopeId","data-v-9fc99a3e"]]);function Doe(e,t){return Gt.get("/account/list",{params:{accountId:e,size:t}})}function Poe(e,t){return Gt.post("/account/add",{email:e,token:t})}function o$(e,t){return Gt.put("/account/setName",{name:t,accountId:e})}function Ooe(e){return Gt.delete("/account/delete",{params:{accountId:e}})}function vl(e){return/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(e)}const Loe={class:"account-box"},Roe={class:"head-opt"},Noe={"infinite-scroll-distance":600,"infinite-scroll-immediate":!1},$oe={class:"account"},Boe={class:"opt"},Foe={style:{display:"flex","justify-content":"space-between"}},Voe={style:{display:"flex","justify-content":"space-between"}},zoe={key:2,class:"noLoading"},Hoe={key:3,class:"empty"},Woe={class:"container"},Uoe={style:{color:"#333"}},Koe=["data-sitekey"],joe={class:"container"},Yoe={__name:"index",setup(e){const t=Ti(),n=ys(),r=La(),a=j(!1),i=j(!1),o=r.domainList,s=Ut([]),l=j(!1),u=j(!1),c=j(!1),f=j(!1),d=j(!1),h=j(!1),p=j(null),v=j({});let g=null,m=null,b="";const w=Ut({email:"",suffix:r.domainList[0]}),_={accountId:0,size:20},C=j();oa("account:query")&&N(),je(()=>n.changeUserAccountName,()=>{s[0].name=n.changeUserAccountName});const x=()=>{C.value.toggleMenu()};window.onTurnstileSuccess=$=>{b=$,setTimeout(()=>{f.value=!1},1500)};function T(){let $=p.value;if($===g.name){d.value=!1;return}if(!$){xt({message:"用户名不能为空",type:"error",plain:!0});return}h.value=!0,o$(g.accountId,$).then(()=>{g.name=$,d.value=!1,g.accountId===t.user.accountId&&(t.user.name=$),xt({message:"保存成功",type:"success",plain:!0})}).finally(()=>{h.value=!1})}function M($){p.value=$.name,g=$,d.value=!0}function E($){return!oa("email:send")&&!($.accountId!==t.user.accountId&&oa("account:delete"))}function A($){return n.currentAccountId===$?"item-choose":""}function L($){ua.confirm(`确认删除${$.email}吗?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Ooe($.accountId).then(()=>{const O=s.findIndex(W=>W.accountId===$.accountId);s.splice(O,1),s.length<_.size&&N(),xt({message:"删除成功",type:"success",plain:!0})})})}function F(){u.value||(u.value=!1,c.value=!1,l.value=!1,_.accountId=0,s.splice(0,s.length),N())}function H($){n.currentAccountId=$.accountId,n.currentAccount=$}function U(){a.value=!0,setTimeout(()=>{v.value.focus()},100)}async function P($){try{await navigator.clipboard.writeText($),xt({message:"复制成功",type:"success",plain:!0})}catch(O){console.error("复制失败:",O),xt({message:"复制失败",type:"error",plain:!0})}}function N(){u.value||c.value||l.value||(s.length===0?u.value=!0:c.value=!0,Doe(_.accountId,_.size).then($=>{$.length<_.size&&(l.value=!0),s.length===0&&(n.currentAccount=$[0].accountId),_.accountId=$.at(-1).accountId,s.push(...$),u.value=!1,c.value=!1}).catch(()=>{u.value=!1,c.value=!1}))}function z(){if(!w.email){xt({message:"邮箱不能为空",type:"error",plain:!0});return}if(!vl(w.email+w.suffix)){xt({message:"非法邮箱",type:"error",plain:!0});return}if(!b&&r.settings.addEmailVerify===0){f.value=!0,m?window.turnstile.reset(m):Nt(()=>{m=window.turnstile.render(".add-email-turnstile")});return}i.value=!0,Poe(w.email+w.suffix,b).then($=>{i.value=!1,a.value=!1,w.email="",s.push($),b="",xt({message:"添加成功",type:"success",plain:!0}),t.refreshUserInfo()}).catch($=>{$.code===400&&(b="",window.turnstile.reset(m),f.value=!0),i.value=!1})}return($,O)=>{const W=Uy,ee=Ky,te=lp,re=KY,ce=gQ,ie=vQ,de=jy,se=ya,_e=kl,pe=Tl,$e=Sr,De=$r,Z=Cf,ne=vs("perm"),oe=JN;return R(),Q("div",Loe,[I("div",Roe,[Ot(V(y(nt),{class:"icon add",icon:"ion:add-outline",width:"23",height:"23",onClick:U},null,512),[[ne,"account:add"]]),V(y(nt),{class:"icon refresh",icon:"ion:reload",width:"18",height:"18",onClick:F})]),V(se,{class:"scrollbar"},{default:X(()=>[Ot((R(),Q("div",Noe,[(R(!0),Q(mt,null,en(s,ve=>(R(),le(re,{class:q(["item",A(ve.accountId)]),key:ve.accountId,onClick:Oe=>H(ve)},{default:X(()=>[I("div",$oe,Ae(ve.email),1),I("div",Boe,[I("div",{class:"send-email",onClick:O[0]||(O[0]=Pt(()=>{},["stop"]))},[V(y(nt),{icon:"eva:email-fill",width:"22",height:"22",color:"#fbbd08"})]),I("div",{class:"settings",onClick:O[1]||(O[1]=Pt(()=>{},["stop"]))},[V(y(nt),{icon:"streamline-ultimate-color:copy-paste-1",width:"19",height:"19",onClick:Pt(Oe=>P(ve.email),["stop"])},null,8,["onClick"]),E(ve)?(R(),le(y(nt),{key:0,icon:"fluent:settings-24-filled",width:"21",height:"21",color:"#909399"})):(R(),le(te,{key:1},{dropdown:X(()=>[V(ee,null,{default:X(()=>[y(oa)("email:send")?(R(),le(W,{key:0,onClick:Oe=>M(ve)},{default:X(()=>O[7]||(O[7]=[Xe("改名")])),_:2},1032,["onClick"])):ye("",!0),ve.accountId!==y(t).user.accountId&&y(oa)("account:delete")?(R(),le(W,{key:1,onClick:Oe=>L(ve)},{default:X(()=>O[8]||(O[8]=[Xe("删除")])),_:2},1032,["onClick"])):ye("",!0)]),_:2},1024)]),default:X(()=>[V(y(nt),{icon:"fluent:settings-24-filled",width:"21",height:"21",color:"#909399"})]),_:2},1024))])])]),_:2},1032,["class","onClick"]))),128)),u.value?(R(),Q(mt,{key:0},en(3,ve=>V(ie,{key:ve,animated:""},{template:X(()=>[V(re,{class:"item"},{default:X(()=>[V(ce,{variant:"p",style:{width:"70%",height:"20px","margin-bottom":"20px"}}),I("div",Foe,[V(ce,{variant:"text",style:{width:"20px"}}),V(ce,{variant:"text",style:{width:"20px"}})])]),_:1})]),_:2},1024)),64)):ye("",!0),s.length>0&&!l.value?(R(),le(ie,{key:1,animated:""},{template:X(()=>[V(re,{class:"item"},{default:X(()=>[V(ce,{variant:"p",style:{width:"70%",height:"20px","margin-bottom":"20px"}}),I("div",Voe,[V(ce,{variant:"text",style:{width:"20px"}}),V(ce,{variant:"text",style:{width:"20px"}})])]),_:1})]),_:1})):ye("",!0),l.value&&s.length>0?(R(),Q("div",zoe,O[9]||(O[9]=[I("div",null,"没有更多数据了",-1)]))):ye("",!0),l.value&&s.length===0?(R(),Q("div",Hoe,[V(de,{description:"没有任何邮件"})])):ye("",!0)])),[[oe,N]])]),_:1}),V(Z,{modelValue:a.value,"onUpdate:modelValue":O[4]||(O[4]=ve=>a.value=ve),title:"添加邮箱"},{default:X(()=>[I("div",Woe,[V($e,{modelValue:w.email,"onUpdate:modelValue":O[3]||(O[3]=ve=>w.email=ve),ref_key:"addRef",ref:v,type:"text",placeholder:"邮箱",autocomplete:"off"},{append:X(()=>[I("div",{onClick:Pt(x,["stop"])},[V(pe,{ref_key:"mySelect",ref:C,modelValue:w.suffix,"onUpdate:modelValue":O[2]||(O[2]=ve=>w.suffix=ve),placeholder:"请选择",class:"select"},{default:X(()=>[(R(!0),Q(mt,null,en(y(o),ve=>(R(),le(_e,{key:ve,label:ve,value:ve},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),I("div",Uoe,[I("span",null,Ae(w.suffix),1),V(y(nt),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),_:1},8,["modelValue"]),V(De,{class:"btn",type:"primary",onClick:z,loading:i.value},{default:X(()=>O[10]||(O[10]=[Xe("添加 ")])),_:1},8,["loading"])]),I("div",{class:q(["add-email-turnstile",f.value?"turnstile-show":"turnstile-hide"]),"data-sitekey":y(r).settings.siteKey,"data-callback":"onTurnstileSuccess"},null,10,Koe)]),_:1},8,["modelValue"]),V(Z,{modelValue:d.value,"onUpdate:modelValue":O[6]||(O[6]=ve=>d.value=ve),title:"修改用户名"},{default:X(()=>[I("div",joe,[V($e,{modelValue:p.value,"onUpdate:modelValue":O[5]||(O[5]=ve=>p.value=ve),type:"text",placeholder:"名字",autocomplete:"off"},null,8,["modelValue"]),V(De,{class:"btn",type:"primary",onClick:T,loading:h.value},{default:X(()=>O[11]||(O[11]=[Xe("保存 ")])),_:1},8,["loading"])])]),_:1},8,["modelValue"])])}}},Goe=Jn(Yoe,[["__scopeId","data-v-c7c27462"]]),qoe={__name:"index",props:{openSend:Function},setup(e){const t=La(),n=El(),r=Zy();let a=window.innerWidth;const i=Y(()=>n.accountShow&&t.settings.manyEmail===0);jt(()=>{window.addEventListener("resize",o),o()}),qn(()=>{window.removeEventListener("resize",o)});const o=()=>{["content","email","send"].includes(r.meta.name)&&a!==window.innerWidth&&(a=window.innerWidth,n.accountShow=window.innerWidth>=767)};return(s,l)=>{const u=Kt("router-view");return R(),Q("div",{class:q(i.value&&y(oa)("account:query")?"main-box-show":"main-box-hide")},[I("div",{class:q(i.value&&y(oa)("account:query")?"block-show":"block-hide"),onClick:l[0]||(l[0]=c=>y(n).accountShow=!1)},null,2),V(Goe,{class:q(i.value&&y(oa)("account:query")?"show":"hide")},null,8,["class"]),V(u,{class:"main-view"},{default:X(({Component:c,route:f})=>[(R(),le(K5,{include:["email","sys-email","send","sys-setting","star","user","role","analysis","reg-key","draft"]},[(R(),le(pn(c),{key:f.name}))],1024))]),_:1})],2)}}},Xoe=Jn(qoe,[["__scopeId","data-v-1cc53d07"]]),xx={props:{size:{type:Number,default:30}}},GM=()=>{eL(e=>({"69cdb3c9":e.size}))},qM=xx.setup;xx.setup=qM?(e,t)=>(GM(),qM(e,t)):GM;function Zoe(e,t,n,r,a,i){const o=Mt;return R(),le(o,{class:"is-loading",style:Ft({fontSize:`${n.size}px`})},{default:X(()=>t[0]||(t[0]=[I("svg",{class:"circular",viewBox:"0 0 20 20"},[I("g",{class:"path2 loading-path","stroke-width":"0",style:{animation:"none",stroke:"none"}},[I("circle",{r:"3.375",class:"dot1",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot2",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot4",rx:"0",ry:"0"}),I("circle",{r:"3.375",class:"dot3",rx:"0",ry:"0"})])],-1)])),_:1},8,["style"])}const us=Jn(xx,[["render",Zoe],["__scopeId","data-v-2599d553"]]);/*! * Compressor.js v1.2.1 * https://fengyuanchen.github.io/compressorjs * diff --git a/mail-worker/dist/index.html b/mail-worker/dist/index.html index 98e000b..f256409 100644 --- a/mail-worker/dist/index.html +++ b/mail-worker/dist/index.html @@ -6,7 +6,7 @@ - +