8 lines
251 KiB
JavaScript
Raw Normal View History

2024-07-29 17:29:30 +08:00
function fi(e,t){const s=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)s[n[o]]=!0;return t?o=>!!s[o.toLowerCase()]:o=>!!s[o]}const ke={},Sn=[],dt=()=>{},hd=()=>!1,pd=/^on[^a-z]/,ys=e=>pd.test(e),di=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Ai=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},md=Object.prototype.hasOwnProperty,ge=(e,t)=>md.call(e,t),le=Array.isArray,Tn=e=>bo(e)==="[object Map]",Fa=e=>bo(e)==="[object Set]",ae=e=>typeof e=="function",Le=e=>typeof e=="string",wo=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",qa=e=>(Ce(e)||ae(e))&&ae(e.then)&&ae(e.catch),Qa=Object.prototype.toString,bo=e=>Qa.call(e),gd=e=>bo(e).slice(8,-1),Ka=e=>bo(e)==="[object Object]",hi=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,os=fi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Co=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},vd=/-(\w)/g,yt=Co(e=>e.replace(vd,(t,s)=>s?s.toUpperCase():"")),yd=/\B([A-Z])/g,vn=Co(e=>e.replace(yd,"-$1").toLowerCase()),ko=Co(e=>e.charAt(0).toUpperCase()+e.slice(1)),vr=Co(e=>e?`on${ko(e)}`:""),mn=(e,t)=>!Object.is(e,t),Xs=(e,t)=>{for(let s=0;s<e.length;s++)e[s](t)},oo=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},Mr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wa=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let _l;const Nr=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nt(e){if(le(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=Le(n)?Cd(n):nt(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(Le(e)||Ce(e))return e}const _d=/;(?![^(]*\))/g,wd=/:([^]+)/,bd=/\/\*[^]*?\*\//g;function Cd(e){const t={};return e.replace(bd,"").split(_d).forEach(s=>{if(s){const n=s.split(wd);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function we(e){let t="";if(Le(e))t=e;else if(le(e))for(let s=0;s<e.length;s++){const n=we(e[s]);n&&(t+=n+" ")}else if(Ce(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function kd(e){if(!e)return null;let{class:t,style:s}=e;return t&&!Le(t)&&(e.class=we(t)),s&&(e.style=nt(s)),e}const Ed="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xd=fi(Ed);function Ya(e){return!!e||e===""}const j=e=>Le(e)?e:e==null?"":le(e)||Ce(e)&&(e.toString===Qa||!ae(e.toString))?JSON.stringify(e,Va,2):String(e),Va=(e,t)=>t&&t.__v_isRef?Va(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o])=>(s[`${n} =>`]=o,s),{})}:Fa(t)?{[`Set(${t.size})`]:[...t.values()]}:Ce(t)&&!le(t)&&!Ka(t)?String(t):t;let ct;class Ja{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const s=ct;try{return ct=this,t()}finally{ct=s}}}on(){ct=this}off(){ct=this.parent}stop(t){if(this._active){let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.scopes)for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Sd(e){return new Ja(e)}function Td(e,t=ct){t&&t.active&&t.effects.push(e)}function Rd(){return ct}const pi=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ga=e=>(e.w&Wt)>0,Xa=e=>(e.n&Wt)>0,Ld=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Wt},Id=e=>{const{deps:t}=e;if(t.length){let s=0;for(let n=0;n<t.length;n++){const o=t[n];Ga(o)&&!Xa(o)?o.delete(e):t[s++]=o,o.w&=~Wt,o.n&=~Wt}t.length=s}},ro=new WeakMap;let ns=0,Wt=1;const Hr=30;let ft;const dn=Symbol(""),Ur=Symbol("");class mi{constructor(t,s=null,n){this.fn=t,this.scheduler=s,this.active=!0,this.deps=[],this.parent=void 0,Td(this,n)}run(){if(!this.active)return this.fn();let t=ft,s=Qt;for(;t;){if(t===this)return;t=t.parent}try{return
`).forEach(function(i){o=i.indexOf(":"),s=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!s||t[s]&&zv[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},La=Symbol("internals");function ts(e){return e&&String(e).trim().toLowerCase()}function no(e){return e===!1||e==null?e:I.isArray(e)?e.map(no):String(e)}function $v(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}const ey=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Or(e,t,s,n,o){if(I.isFunction(n))return n.call(this,t,s);if(o&&(t=s),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function ty(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function ny(e,t){const s=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{value:function(o,r,i){return this[n].call(this,t,o,r,i)},configurable:!0})})}class Do{constructor(t){t&&this.set(t)}set(t,s,n){const o=this;function r(l,f,h){const u=ts(f);if(!u)throw new Error("header name must be a non-empty string");const A=I.findKey(o,u);(!A||o[A]===void 0||h===!0||h===void 0&&o[A]!==!1)&&(o[A||f]=no(l))}const i=(l,f)=>I.forEach(l,(h,u)=>r(h,u,f));return I.isPlainObject(t)||t instanceof this.constructor?i(t,s):I.isString(t)&&(t=t.trim())&&!ey(t)?i(Zv(t),s):t!=null&&r(s,t,n),this}get(t,s){if(t=ts(t),t){const n=I.findKey(this,t);if(n){const o=this[n];if(!s)return o;if(s===!0)return $v(o);if(I.isFunction(s))return s.call(this,o,n);if(I.isRegExp(s))return s.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=ts(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||Or(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let o=!1;function r(i){if(i=ts(i),i){const l=I.findKey(n,i);l&&(!s||Or(n,n[l],l,s))&&(delete n[l],o=!0)}}return I.isArray(t)?t.forEach(r):r(t),o}clear(t){const s=Object.keys(this);let n=s.length,o=!1;for(;n--;){const r=s[n];(!t||Or(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const s=this,n={};return I.forEach(this,(o,r)=>{const i=I.findKey(n,r);if(i){s[i]=no(o),delete s[r];return}const l=t?ty(r):String(r).trim();l!==r&&delete s[r],s[l]=no(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return I.forEach(this,(n,o)=>{n!=null&&n!==!1&&(s[o]=t&&I.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[La]=this[La]={accessors:{}}).accessors,o=this.prototype;function r(i){const l=ts(i);n[l]||(ny(o,i),n[l]=!0)}return I.isArray(t)?t.forEach(r):r(t),this}}Do.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Do.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});I.freezeMethods(Do);const Lt=Do;function Br(e,t){const s=this||Ki,n=t||s,o=Lt.from(n.headers);let r=n.data;return I.forEach(e,function(l){r=l.call(s,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Vu(e){return!!(e&&e.__CANCEL__)}function ks(e,t,s){me.call(this,e??"canceled",me.ERR_CANCELED,t,s),this.name="CanceledError"}I.inherits(ks,me,{__CANCEL__:!0});function sy(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new me("Request failed with status code "+s.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const oy=vt.hasStandardBrowserEnv?{write(e,t,s,n,o,r){const i=[e+"="+encodeURIComponent(t)];I.isNumber(s)&&i.push("expires="+new Date(s).toGMTString()),I.isString(n)&&i.push("path="+n),I.isString(o)&&i.push("domain="+o),r===!0&&i.push("secure"),document.cookie=i.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 ry(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ju(e,t){return e&&!ry(t)?iy(e,t):t}const ly=vt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let n;function o(r){let i=r;return t&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=o(window.location.href),function(i){const l=I.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function ay(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cy(e,t){e=e||10;const s=new Array(e),n=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),u=n[r];i||(i=h),s[o]=f,n[o]=h;let A=r,a=0;for(;A!==o;)a+=s[A++],A=A%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),h-i<t)return;const m=u&&h-u;return m?Math.round(a*1e3/m):void 0}}function Ia(e,t){let s=0;const n=cy(50,250);return o=>{const r=o.loaded,i=o.lengthComputable?o.total:void 0,l=r-s,f=n(l),h=r<=i;s=r;const u={loaded:r,total:i,progress:i?r/i:void 0,bytes:l,rate:f||void 0,estimated:f&&i&&h?(i-r)/f:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const uy=typeof XMLHttpRequest<"u",fy=uy&&function(e){return new Promise(function(s,n){let o=e.data;const r=Lt.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,f;function h(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let u;if(I.isFormData(o)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((u=r.getContentType())!==!1){const[E,...q]=u?u.split(";").map(Z=>Z.trim()).filter(Boolean):[];r.setContentType([E||"multipart/form-data",...q].join("; "))}}let A=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",q=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(E+":"+q))}const a=Ju(e.baseURL,e.url);A.open(e.method.toUpperCase(),Qu(a,e.params,e.paramsSerializer),!0),A.timeout=e.timeout;function m(){if(!A)return;const E=Lt.from("getAllResponseHeaders"in A&&A.getAllResponseHea
`+r.map(Oa).join(`
2024-07-29 17:38:27 +08:00
`):" "+Oa(r[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ai};function Pr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Ba(e){return Pr(e),e.headers=Lt.from(e.headers),e.data=Br.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gu.getAdapter(e.adapter||Ki.adapter)(e).then(function(n){return Pr(e),n.data=Br.call(e,e.transformResponse,n),n.headers=Lt.from(n.headers),n},function(n){return Vu(n)||(Pr(e),n&&n.response&&(n.response.data=Br.call(e,e.transformResponse,n.response),n.response.headers=Lt.from(n.response.headers))),Promise.reject(n)})}const Pa=e=>e instanceof Lt?e.toJSON():e;function Hn(e,t){t=t||{};const s={};function n(h,u,A){return I.isPlainObject(h)&&I.isPlainObject(u)?I.merge.call({caseless:A},h,u):I.isPlainObject(u)?I.merge({},u):I.isArray(u)?u.slice():u}function o(h,u,A){if(I.isUndefined(u)){if(!I.isUndefined(h))return n(void 0,h,A)}else return n(h,u,A)}function r(h,u){if(!I.isUndefined(u))return n(void 0,u)}function i(h,u){if(I.isUndefined(u)){if(!I.isUndefined(h))return n(void 0,h)}else return n(void 0,u)}function l(h,u,A){if(A in t)return n(h,u);if(A in e)return n(void 0,h)}const f={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(h,u)=>o(Pa(h),Pa(u),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(u){const A=f[u]||o,a=A(e[u],t[u],u);I.isUndefined(a)&&A!==l||(s[u]=a)}),s}const Xu="1.6.2",Wi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ma={};Wi.transitional=function(t,s,n){function o(r,i){return"[Axios v"+Xu+"] Transitional option '"+r+"'"+i+(n?". "+n:"")}return(r,i,l)=>{if(t===!1)throw new me(o(i," has been removed"+(s?" in "+s:"")),me.ERR_DEPRECATED);return s&&!Ma[i]&&(Ma[i]=!0,console.warn(o(i," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(r,i,l):!0}};function Ay(e,t,s){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const r=n[o],i=t[r];if(i){const l=e[r],f=l===void 0||i(l,r,e);if(f!==!0)throw new me("option "+r+" must be "+f,me.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new me("Unknown option "+r,me.ERR_BAD_OPTION)}}const ci={assertOptions:Ay,validators:Wi},jt=ci.validators;class _o{constructor(t){this.defaults=t,this.interceptors={request:new Ra,response:new Ra}}request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Hn(this.defaults,s);const{transitional:n,paramsSerializer:o,headers:r}=s;n!==void 0&&ci.assertOptions(n,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(I.isFunction(o)?s.paramsSerializer={serialize:o}:ci.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=r&&I.merge(r.common,r[s.method]);r&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),s.headers=Lt.concat(i,r);const l=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(s)===!1||(f=f&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let u,A=0,a;if(!f){const v=[Ba.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,h),a=v.length,u=Promise.resolve(s);A<a;)u=u.then(v[A++],v[A++]);return u}a=l.length;let m=s;for(A=0;A<a;
2024-07-29 17:29:30 +08:00
`).splice(1).map(A=>({text:A.replace("webpack:/","").replace(".vue",".js").trim(),internal:A.includes("node_modules")&&!A.includes(".cache")||A.includes("internal")||A.includes("new Promise")})).map(A=>`<span class="stack${A.internal?" internal":""}">${A.text}</span>`).join(`
2024-07-29 17:38:27 +08:00
`);const n=Number(s.statusCode||500),o=n===404,r=s.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=s.message||s.toString(),l=void 0,u=o?Pl(()=>ha(()=>import("./error-404.3c57685f.js"),["./error-404.3c57685f.js","./error-404.7fc72018.css"],import.meta.url).then(A=>A.default||A)):Pl(()=>ha(()=>import("./error-500.8f08bad4.js"),["./error-500.8f08bad4.js","./error-500.c5df6088.css"],import.meta.url).then(A=>A.default||A));return(A,a)=>(w(),Tt(Pe(u),kd(Wc({statusCode:Pe(n),statusMessage:Pe(r),description:Pe(i),stack:Pe(l)})),null,16))}},Yk=Wk,Vk={__name:"nuxt-root",setup(e){const t=()=>null,s=He(),n=s.deferHydration(),o=!1;Oc(Cu,ji()),s.hooks.callHookWith(l=>l.map(f=>f()),"vue:setup");const r=Di();Rc((l,f,h)=>{if(s.hooks.callHook("vue:error",l,f,h).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),eg(l)&&(l.fatal||l.unhandled))return s.runWithContext(()=>Zm(l)),!1});const i=!1;return(l,f)=>(w(),Tt(mA,{onResolve:Pe(n)},{default:xn(()=>[Pe(r)?(w(),Tt(Pe(Yk),{key:0,error:Pe(r)},null,8,["error"])):Pe(i)?(w(),Tt(Pe(t),{key:1,context:Pe(i)},null,8,["context"])):Pe(o)?(w(),Tt(AA(Pe(o)),{key:2})):(w(),Tt(Pe(Kk),{key:3}))]),_:1},8,["onResolve"]))}},Da=Vk;let ja;{let e;ja=async function(){var i,l;if(e)return e;const n=!!((i=window.__NUXT__)!=null&&i.serverRendered||((l=document.getElementById("__NUXT_DATA__"))==null?void 0:l.dataset.ssr)==="true")?jh(Da):Dh(Da),o=Qp({vueApp:n});async function r(f){await o.callHook("app:error",f),o.payload.error=o.payload.error||f}n.config.errorHandler=r;try{await Wp(o,Cg)}catch(f){r(f)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(ig),await o.hooks.callHook("app:mounted",n),await ut()}catch(f){r(f)}return n.config.errorHandler===r&&(n.config.errorHandler=void 0),n},e=ja().catch(t=>{console.error("Error while mounting app:",t)})}export{be as A,xn as B,ne as C,Jk as D,Gk as E,Py as _,Ru as a,ka as b,ah as c,_s as d,xi as e,Zk as f,Gc as g,Oo as h,Xk as i,Fn as j,eu as k,nu as l,go as m,zk as n,ps as o,bs as p,He as q,Q as r,ng as s,jm as t,Bo as u,w as v,Zr as w,b as x,c as y,j as z};