8 lines
238 KiB
JavaScript
Raw Normal View History

2023-12-18 18:47:07 +08:00
function Jr(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const be={},kn=[],ct=()=>{},Rf=()=>!1,Lf=/^on[^a-z]/,ps=e=>Lf.test(e),Gr=e=>e.startsWith("onUpdate:"),Re=Object.assign,zr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bf=Object.prototype.hasOwnProperty,pe=(e,t)=>Bf.call(e,t),se=Array.isArray,xn=e=>ho(e)==="[object Map]",ya=e=>ho(e)==="[object Set]",oe=e=>typeof e=="function",ke=e=>typeof e=="string",Ao=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",va=e=>(we(e)||oe(e))&&oe(e.then)&&oe(e.catch),wa=Object.prototype.toString,ho=e=>wa.call(e),If=e=>ho(e).slice(8,-1),ba=e=>ho(e)==="[object Object]",Xr=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ts=Jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),po=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Of=/-(\w)/g,yt=po(e=>e.replace(Of,(t,n)=>n?n.toUpperCase():"")),Pf=/\B([A-Z])/g,dn=po(e=>e.replace(Pf,"-$1").toLowerCase()),mo=po(e=>e.charAt(0).toUpperCase()+e.slice(1)),tr=po(e=>e?`on${mo(e)}`:""),un=(e,t)=>!Object.is(e,t),Fs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},yr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_a=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Xi;const vr=()=>Xi||(Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ht(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ke(s)?Nf(s):ht(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ke(e)||we(e))return e}const Mf=/;(?![^(]*\))/g,Uf=/:([^]+)/,Hf=/\/\*[^]*?\*\//g;function Nf(e){const t={};return e.replace(Hf,"").split(Mf).forEach(n=>{if(n){const s=n.split(Uf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ce(e){let t="";if(ke(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const s=Ce(e[n]);s&&(t+=s+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Df(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=Ce(t)),n&&(e.style=ht(n)),e}const Ff="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qf=Jr(Ff);function Ca(e){return!!e||e===""}const Z=e=>ke(e)?e:e==null?"":se(e)||we(e)&&(e.toString===wa||!oe(e.toString))?JSON.stringify(e,Ea,2):String(e),Ea=(e,t)=>t&&t.__v_isRef?Ea(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:ya(t)?{[`Set(${t.size})`]:[...t.values()]}:we(t)&&!se(t)&&!ba(t)?String(t):t;let lt;class ka{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=lt,!t&&lt&&(this.index=(lt.scopes||(lt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){lt=this}off(){lt=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].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 jf(e){return new ka(e)}function Qf(e,t=lt){t&&t.active&&t.effects.push(e)}function Kf(){return lt}const Zr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},xa=e=>(e.w&qt)>0,Sa=e=>(e.n&qt)>0,Wf=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=qt},Yf=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];xa(o)&&!Sa(o)?o.delete(e):t[n++]=o,o.w&=~qt,o.n&=~qt}t.length=n}},zs=new WeakMap;let $n=0,qt=1;const wr=30;let at;const an=Symbol(""),br=Symbol("");class $r{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Qf(this,s)}run(){if(!this.active)return this.fn();let t=at,n=Ht;for(;t;){if(t===this)return;t=t.parent}try{return
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||t[n]&&jg[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},la=Symbol("internals");function Zn(e){return e&&String(e).trim().toLowerCase()}function Vs(e){return e===!1||e==null?e:x.isArray(e)?e.map(Vs):String(e)}function Kg(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Wg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pr(e,t,n,s,o){if(x.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(s))return t.indexOf(s)!==-1;if(x.isRegExp(s))return s.test(t)}}function Yg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Vg(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,r,i){return this[s].call(this,t,o,r,i)},configurable:!0})})}class Io{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function r(a,f,l){const c=Zn(f);if(!c)throw new Error("header name must be a non-empty string");const u=x.findKey(o,c);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||f]=Vs(a))}const i=(a,f)=>x.forEach(a,(l,c)=>r(l,c,f));return x.isPlainObject(t)||t instanceof this.constructor?i(t,n):x.isString(t)&&(t=t.trim())&&!Wg(t)?i(Qg(t),n):t!=null&&r(n,t,s),this}get(t,n){if(t=Zn(t),t){const s=x.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return Kg(o);if(x.isFunction(n))return n.call(this,o,s);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zn(t),t){const s=x.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||pr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function r(i){if(i=Zn(i),i){const a=x.findKey(s,i);a&&(!n||pr(s,s[a],a,n))&&(delete s[a],o=!0)}}return x.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!t||pr(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,s={};return x.forEach(this,(o,r)=>{const i=x.findKey(s,r);if(i){n[i]=Vs(o),delete n[r];return}const a=t?Yg(r):String(r).trim();a!==r&&delete n[r],n[a]=Vs(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&x.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[la]=this[la]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=Zn(i);s[a]||(Vg(o,i),s[a]=!0)}return x.isArray(t)?t.forEach(r):r(t),this}}Io.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Io.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});x.freezeMethods(Io);const Et=Io;function mr(e,t){const n=this||Si,s=t||n,o=Et.from(s.headers);let r=s.data;return x.forEach(e,function(a){r=a.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Eu(e){return!!(e&&e.__CANCEL__)}function vs(e,t,n){he.call(this,e??"canceled",he.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(vs,he,{__CANCEL__:!0});function Jg(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Gg=gt.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(s)&&i.push("path="+s),x.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 zg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xg(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ku(e,t){return e&&!zg(t)?Xg(e,t):t}const Zg=gt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(r){let i=r;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(i){const a=x.isString(i)?o(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function $g(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ey(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),c=s[r];i||(i=l),n[o]=f,s[o]=l;let u=r,h=0;for(;u!==o;)h+=n[u++],u=u%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),l-i<t)return;const y=c&&l-c;return y?Math.round(h*1e3/y):void 0}}function aa(e,t){let n=0;const s=ey(50,250);return o=>{const r=o.loaded,i=o.lengthComputable?o.total:void 0,a=r-n,f=s(a),l=r<=i;n=r;const c={loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:f||void 0,estimated:f&&i&&l?(i-r)/f:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const ty=typeof XMLHttpRequest<"u",ny=ty&&function(e){return new Promise(function(n,s){let o=e.data;const r=Et.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let c;if(x.isFormData(o)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((c=r.getContentType())!==!1){const[b,...D]=c?c.split(";").map(z=>z.trim()).filter(Boolean):[];r.setContentType([b||"multipart/form-data",...D].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",D=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(b+":"+D))}const h=ku(e.baseURL,e.url);u.open(e.method.toUpperCase(),wu(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function y(){if(!u)return;const b=Et.from("getAllResponseHeaders"in u&&u.getAllResponseHea
`+r.map(ca).join(`
`):" "+ca(r[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Wr};function gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vs(null,e)}function ua(e){return gr(e),e.headers=Et.from(e.headers),e.data=mr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xu.getAdapter(e.adapter||Si.adapter)(e).then(function(s){return gr(e),s.data=mr.call(e,e.transformResponse,s),s.headers=Et.from(s.headers),s},function(s){return Eu(s)||(gr(e),s&&s.response&&(s.response.data=mr.call(e,e.transformResponse,s.response),s.response.headers=Et.from(s.response.headers))),Promise.reject(s)})}const fa=e=>e instanceof Et?e.toJSON():e;function Mn(e,t){t=t||{};const n={};function s(l,c,u){return x.isPlainObject(l)&&x.isPlainObject(c)?x.merge.call({caseless:u},l,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function o(l,c,u){if(x.isUndefined(c)){if(!x.isUndefined(l))return s(void 0,l,u)}else return s(l,c,u)}function r(l,c){if(!x.isUndefined(c))return s(void 0,c)}function i(l,c){if(x.isUndefined(c)){if(!x.isUndefined(l))return s(void 0,l)}else return s(void 0,c)}function a(l,c,u){if(u in t)return s(l,c);if(u in e)return s(void 0,l)}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:a,headers:(l,c)=>o(fa(l),fa(c),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=f[c]||o,h=u(e[c],t[c],c);x.isUndefined(h)&&u!==a||(n[c]=h)}),n}const Su="1.6.2",Ti={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ti[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const da={};Ti.transitional=function(t,n,s){function o(r,i){return"[Axios v"+Su+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(t===!1)throw new he(o(i," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!da[i]&&(da[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,i,a):!0}};function oy(e,t,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const r=s[o],i=t[r];if(i){const a=e[r],f=a===void 0||i(a,r,e);if(f!==!0)throw new he("option "+r+" must be "+f,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+r,he.ERR_BAD_OPTION)}}const Yr={assertOptions:oy,validators:Ti},Pt=Yr.validators;class fo{constructor(t){this.defaults=t,this.interceptors={request:new ia,response:new ia}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&Yr.assertOptions(s,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Yr.assertOptions(o,{encode:Pt.function,serialize:Pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&x.merge(r.common,r[n.method]);r&&x.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),n.headers=Et.concat(i,r);const a=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let c,u=0,h;if(!f){const v=[ua.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,l),h=v.length,c=Promise.resolve(n);u<h;)c=c.then(v[u++],v[u++]);return c}h=a.length;let y=n;for(u=0;u<h;
`).splice(1).map(u=>({text:u.replace("webpack:/","").replace(".vue",".js").trim(),internal:u.includes("node_modules")&&!u.includes(".cache")||u.includes("internal")||u.includes("new Promise")})).map(u=>`<span class="stack${u.internal?" internal":""}">${u.text}</span>`).join(`
`);const s=Number(n.statusCode||500),o=s===404,r=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?fl(()=>Wl(()=>import("./error-404.c0709d99.js"),["./error-404.c0709d99.js","./error-404.7fc72018.css"],import.meta.url).then(u=>u.default||u)):fl(()=>Wl(()=>import("./error-500.799ea7bb.js"),["./error-500.799ea7bb.js","./error-500.c5df6088.css"],import.meta.url).then(u=>u.default||u));return(u,h)=>(k(),sn(Oe(c),Df(_c({statusCode:Oe(s),statusMessage:Oe(r),description:Oe(i),stack:Oe(a)})),null,16))}},P_=O_,M_={__name:"nuxt-root",setup(e){const t=()=>null,n=Le(),s=n.deferHydration(),o=!1;cc(eu,Ci()),n.hooks.callHookWith(a=>a.map(f=>f()),"vue:setup");const r=_i();ic((a,f,l)=>{if(n.hooks.callHook("vue:error",a,f,l).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),pm(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Am(a)),!1});const i=!1;return(a,f)=>(k(),sn(Bd,{onResolve:Oe(s)},{default:ns(()=>[Oe(r)?(k(),sn(Oe(P_),{key:0,error:Oe(r)},null,8,["error"])):Oe(i)?(k(),sn(Oe(t),{key:1,context:Oe(i)},null,8,["context"])):Oe(o)?(k(),sn(Td(Oe(o)),{key:2})):(k(),sn(Oe(I_),{key:3}))]),_:1},8,["onResolve"]))}},ma=M_;let ga;{let e;ga=async function(){var i,a;if(e)return e;const s=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?th(ma):eh(ma),o=op({vueApp:s});async function r(f){await o.callHook("app:error",f),o.payload.error=o.payload.error||f}s.config.errorHandler=r;try{await ip(o,Nm)}catch(f){r(f)}try{await o.hooks.callHook("app:created",s),await o.hooks.callHook("app:beforeMount",s),s.mount(bm),await o.hooks.callHook("app:mounted",s),await rn()}catch(f){r(f)}return s.config.errorHandler===r&&(s.config.errorHandler=void 0),s},e=ga().catch(t=>{console.error("Error while mounting app:",t)})}export{ve as A,ns as B,ue as C,U_ as D,H_ as E,ky as _,iu as a,ta as b,CA as c,bo as d,ci as e,F_ as f,xc as g,ko as h,N_ as i,Dn as j,Bc as k,Oc as l,ao as m,D_ as n,eo as o,gs as p,Le as q,K as r,gm as s,tm as t,xo as u,k as v,Mr as w,T as x,d as y,Z as z};