8 lines
251 KiB
JavaScript
Raw Normal View History

2024-07-29 16:58:41 +08:00
function ui(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=()=>{},dd=()=>!1,Ad=/^on[^a-z]/,vs=e=>Ad.test(e),fi=e=>e.startsWith("onUpdate:"),Ne=Object.assign,di=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},hd=Object.prototype.hasOwnProperty,ge=(e,t)=>hd.call(e,t),le=Array.isArray,Tn=e=>bo(e)==="[object Map]",ja=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",Fa=e=>(Ce(e)||ae(e))&&ae(e.then)&&ae(e.catch),qa=Object.prototype.toString,bo=e=>qa.call(e),pd=e=>bo(e).slice(8,-1),Qa=e=>bo(e)==="[object Object]",Ai=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ss=ui(",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))},md=/-(\w)/g,yt=Co(e=>e.replace(md,(t,s)=>s?s.toUpperCase():"")),gd=/\B([A-Z])/g,vn=Co(e=>e.replace(gd,"-$1").toLowerCase()),ko=Co(e=>e.charAt(0).toUpperCase()+e.slice(1)),gr=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})},Pr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ka=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const Mr=()=>yl||(yl=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)?wd(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 vd=/;(?![^(]*\))/g,yd=/:([^]+)/,_d=/\/\*[^]*?\*\//g;function wd(e){const t={};return e.replace(_d,"").split(vd).forEach(s=>{if(s){const n=s.split(yd);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 bd(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 Cd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",kd=ui(Cd);function Wa(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,Ya,2):String(e),Ya=(e,t)=>t&&t.__v_isRef?Ya(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o])=>(s[`${n} =>`]=o,s),{})}:ja(t)?{[`Set(${t.size})`]:[...t.values()]}:Ce(t)&&!le(t)&&!Qa(t)?String(t):t;let ct;class Va{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 Ed(e){return new Va(e)}function xd(e,t=ct){t&&t.active&&t.effects.push(e)}function Sd(){return ct}const hi=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ja=e=>(e.w&Wt)>0,Ga=e=>(e.n&Wt)>0,Td=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Wt},Rd=e=>{const{deps:t}=e;if(t.length){let s=0;for(let n=0;n<t.length;n++){const o=t[n];Ja(o)&&!Ga(o)?o.delete(e):t[s++]=o,o.w&=~Wt,o.n&=~Wt}t.length=s}},ro=new WeakMap;let ts=0,Wt=1;const Nr=30;let ft;const dn=Symbol(""),Hr=Symbol("");class pi{constructor(t,s=null,n){this.fn=t,this.scheduler=s,this.active=!0,this.deps=[],this.parent=void 0,xd(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]&&Gv[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},Ra=Symbol("internals");function es(e){return e&&String(e).trim().toLowerCase()}function no(e){return e===!1||e==null?e:L.isArray(e)?e.map(no):String(e)}function zv(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 Zv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ir(e,t,s,n,o){if(L.isFunction(n))return n.call(this,t,s);if(o&&(t=s),!!L.isString(t)){if(L.isString(n))return t.indexOf(n)!==-1;if(L.isRegExp(n))return n.test(t)}}function $v(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function ey(e,t){const s=L.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=es(f);if(!u)throw new Error("header name must be a non-empty string");const A=L.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)=>L.forEach(l,(h,u)=>r(h,u,f));return L.isPlainObject(t)||t instanceof this.constructor?i(t,s):L.isString(t)&&(t=t.trim())&&!Zv(t)?i(Xv(t),s):t!=null&&r(s,t,n),this}get(t,s){if(t=es(t),t){const n=L.findKey(this,t);if(n){const o=this[n];if(!s)return o;if(s===!0)return zv(o);if(L.isFunction(s))return s.call(this,o,n);if(L.isRegExp(s))return s.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=es(t),t){const n=L.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||Ir(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let o=!1;function r(i){if(i=es(i),i){const l=L.findKey(n,i);l&&(!s||Ir(n,n[l],l,s))&&(delete n[l],o=!0)}}return L.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||Ir(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const s=this,n={};return L.forEach(this,(o,r)=>{const i=L.findKey(n,r);if(i){s[i]=no(o),delete s[r];return}const l=t?$v(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 L.forEach(this,(n,o)=>{n!=null&&n!==!1&&(s[o]=t&&L.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[Ra]=this[Ra]={accessors:{}}).accessors,o=this.prototype;function r(i){const l=es(i);n[l]||(ey(o,i),n[l]=!0)}return L.isArray(t)?t.forEach(r):r(t),this}}Do.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Do.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});L.freezeMethods(Do);const Lt=Do;function Or(e,t){const s=this||Qi,n=t||s,o=Lt.from(n.headers);let r=n.data;return L.forEach(e,function(l){r=l.call(s,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Yu(e){return!!(e&&e.__CANCEL__)}function Cs(e,t,s){me.call(this,e??"canceled",me.ERR_CANCELED,t,s),this.name="CanceledError"}L.inherits(Cs,me,{__CANCEL__:!0});function ty(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 ny=vt.hasStandardBrowserEnv?{write(e,t,s,n,o,r){const i=[e+"="+encodeURIComponent(t)];L.isNumber(s)&&i.push("expires="+new Date(s).toGMTString()),L.isString(n)&&i.push("path="+n),L.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 sy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Vu(e,t){return e&&!sy(t)?oy(e,t):t}const ry=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=L.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function iy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ly(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 La(e,t){let s=0;const n=ly(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 ay=typeof XMLHttpRequest<"u",cy=ay&&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(L.isFormData(o)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((u=r.getContentType())!==!1){const[E,...F]=u?u.split(";").map(z=>z.trim()).filter(Boolean):[];r.setContentType([E||"multipart/form-data",...F].join("; "))}}let A=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",F=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(E+":"+F))}const a=Vu(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(Ia).join(`
`):" "+Ia(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:li};function Br(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cs(null,e)}function Oa(e){return Br(e),e.headers=Lt.from(e.headers),e.data=Or.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ju.getAdapter(e.adapter||Qi.adapter)(e).then(function(n){return Br(e),n.data=Or.call(e,e.transformResponse,n),n.headers=Lt.from(n.headers),n},function(n){return Yu(n)||(Br(e),n&&n.response&&(n.response.data=Or.call(e,e.transformResponse,n.response),n.response.headers=Lt.from(n.response.headers))),Promise.reject(n)})}const Ba=e=>e instanceof Lt?e.toJSON():e;function Hn(e,t){t=t||{};const s={};function n(h,u,A){return L.isPlainObject(h)&&L.isPlainObject(u)?L.merge.call({caseless:A},h,u):L.isPlainObject(u)?L.merge({},u):L.isArray(u)?u.slice():u}function o(h,u,A){if(L.isUndefined(u)){if(!L.isUndefined(h))return n(void 0,h,A)}else return n(h,u,A)}function r(h,u){if(!L.isUndefined(u))return n(void 0,u)}function i(h,u){if(L.isUndefined(u)){if(!L.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(Ba(h),Ba(u),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(u){const A=f[u]||o,a=A(e[u],t[u],u);L.isUndefined(a)&&A!==l||(s[u]=a)}),s}const Gu="1.6.2",Ki={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ki[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Pa={};Ki.transitional=function(t,s,n){function o(r,i){return"[Axios v"+Gu+"] 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&&!Pa[i]&&(Pa[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 fy(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 ai={assertOptions:fy,validators:Ki},jt=ai.validators;class _o{constructor(t){this.defaults=t,this.interceptors={request:new Ta,response:new Ta}}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&&ai.assertOptions(n,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(L.isFunction(o)?s.paramsSerializer={serialize:o}:ai.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let i=r&&L.merge(r.common,r[s.method]);r&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete r[y]}),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 y=[Oa.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,h),a=y.length,u=Promise.resolve(s);A<a;)u=u.then(y[A++],y[A++]);return u}a=l.length;let m=s;for(A=0;A<a;
`).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(`
`);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?Bl(()=>Aa(()=>import("./error-404.3c11d8b8.js"),["./error-404.3c11d8b8.js","./error-404.7fc72018.css"],import.meta.url).then(A=>A.default||A)):Bl(()=>Aa(()=>import("./error-500.fefb5447.js"),["./error-500.fefb5447.js","./error-500.c5df6088.css"],import.meta.url).then(A=>A.default||A));return(A,a)=>(b(),Tt(Pe(u),bd(Kc({statusCode:Pe(n),statusMessage:Pe(r),description:Pe(i),stack:Pe(l)})),null,16))}},Kk=Qk,Wk={__name:"nuxt-root",setup(e){const t=()=>null,s=He(),n=s.deferHydration(),o=!1;Ic(bu,Di()),s.hooks.callHookWith(l=>l.map(f=>f()),"vue:setup");const r=Ui();Tc((l,f,h)=>{if(s.hooks.callHook("vue:error",l,f,h).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),Zm(l)&&(l.fatal||l.unhandled))return s.runWithContext(()=>Xm(l)),!1});const i=!1;return(l,f)=>(b(),Tt(hA,{onResolve:Pe(n)},{default:xn(()=>[Pe(r)?(b(),Tt(Pe(Kk),{key:0,error:Pe(r)},null,8,["error"])):Pe(i)?(b(),Tt(Pe(t),{key:1,context:Pe(i)},null,8,["context"])):Pe(o)?(b(),Tt(fA(Pe(o)),{key:2})):(b(),Tt(Pe(qk),{key:3}))]),_:1},8,["onResolve"]))}},Ua=Wk;let Da;{let e;Da=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")?Uh(Ua):Hh(Ua),o=Fp({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 Qp(o,wg)}catch(f){r(f)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(og),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=Da().catch(t=>{console.error("Error while mounting app:",t)})}export{be as A,xn as B,ne as C,Yk as D,Vk as E,Oy as _,Tu as a,Ca as b,ih as c,ys as d,Ei as e,Xk as f,Jc as g,Oo as h,Jk as i,Fn as j,$c as k,tu as l,go as m,Gk as n,hs as o,ws as p,He as q,q as r,eg as s,Um as t,Bo as u,b as v,zr as w,C as x,c as y,j as z};