import{a1 as F,r as k,a2 as L,a3 as j,a4 as M,a5 as O,G as H,q as K,a6 as E,O as T,K as N,c as q,a7 as x,a8 as W,a9 as $,m as I}from"./entry.b5dacd44.js";function J(...s){var b;const a=typeof s[s.length-1]=="string"?s.pop():void 0;typeof s[0]!="string"&&s.unshift(a);let[r,e,t={}]=s;if(typeof r!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof e!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const n=K(),o=()=>null,l=()=>n.isHydrating?n.payload.data[r]:n.static.data[r];t.server=t.server??!0,t.default=t.default??o,t.getCachedData=t.getCachedData??l,t.lazy=t.lazy??!1,t.immediate=t.immediate??!0,t.deep=t.deep??F.deep;const c=()=>![null,void 0].includes(t.getCachedData(r));if(!n._asyncData[r]||!t.immediate){(b=n.payload._errors)[r]??(b[r]=null);const d=t.deep?k:L;n._asyncData[r]={data:d(t.getCachedData(r)??t.default()),pending:k(!c()),error:j(n.payload._errors,r),status:k("idle")}}const i={...n._asyncData[r]};i.refresh=i.execute=(d={})=>{if(n._asyncDataPromises[r]){if(d.dedupe===!1)return n._asyncDataPromises[r];n._asyncDataPromises[r].cancelled=!0}if((d._initial||n.isHydrating&&d._initial!==!1)&&c())return Promise.resolve(t.getCachedData(r));i.pending.value=!0,i.status.value="pending";const g=new Promise((h,p)=>{try{h(e(n))}catch(D){p(D)}}).then(h=>{if(g.cancelled)return n._asyncDataPromises[r];let p=h;t.transform&&(p=t.transform(h)),t.pick&&(p=V(p,t.pick)),n.payload.data[r]=p,i.data.value=p,i.error.value=null,i.status.value="success"}).catch(h=>{if(g.cancelled)return n._asyncDataPromises[r];i.error.value=E(h),i.data.value=T(t.default()),i.status.value="error"}).finally(()=>{g.cancelled||(i.pending.value=!1,delete n._asyncDataPromises[r])});return n._asyncDataPromises[r]=g,n._asyncDataPromises[r]};const f=()=>i.refresh({_initial:!0}),y=t.server!==!1&&n.payload.serverRendered;{const d=N();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const h=d._nuxtOnBeforeMountCbs;d&&(M(()=>{h.forEach(p=>{p()}),h.splice(0,h.length)}),O(()=>h.splice(0,h.length)))}y&&n.isHydrating&&(i.error.value||c())?(i.pending.value=!1,i.status.value=i.error.value?"error":"success"):d&&(n.payload.serverRendered&&n.isHydrating||t.lazy)&&t.immediate?d._nuxtOnBeforeMountCbs.push(f):t.immediate&&f(),t.watch&&H(t.watch,()=>i.refresh());const g=n.hook("app:data:refresh",async h=>{(!h||h.includes(r))&&await i.refresh()});d&&O(g)}const u=Promise.resolve(n._asyncDataPromises[r]).then(()=>i);return Object.assign(u,i),u}function V(s,a){const r={};for(const e of a)r[e]=s[e];return r}const U=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function G(s,a){a?a={...U,...a}:a=U;const r=R(a);return r.dispatch(s),r.toString()}const Q=Object.freeze(["prototype","__proto__","constructor"]);function R(s){let a="",r=new Map;const e=t=>{a+=t};return{toString(){return a},getContext(){return r},dispatch(t){return s.replacer&&(t=s.replacer(t)),this[t===null?"null":typeof t](t)},object(t){if(t&&typeof t.toJSON=="function")return this.object(t.toJSON());const n=Object.prototype.toString.call(t);let o="";const l=n.length;l<10?o="unknown:["+n+"]":o=n.slice(8,l-1),o=o.toLowerCase();let c=null;if((c=r.get(t))===void 0)r.set(t,r.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(t))return e("buffer:"),e(t.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](t):s.ignoreUnknown||this.unkown(t,o);else{let i=Object.keys(t);s.unorderedObjects&&(i=i.sort());let f=[];s.respectType!==!1&&!z(t)&&(f=Q),s.excludeKeys&&(i=i.filter(u=>!s.excludeKeys(u)),f=f.filter(u=>!s.excludeKeys(u))),e("object:"+(i.length+f.length)+":");const y=u=>{this.dispatch(u),e(":"),s.excludeValues||this.dispatch(t[u]),e(",")};for(const u of i)y(u);for(const u of f)y(u)}},array(t,n){if(n=n===void 0?s.unorderedArrays!==!1:n,e("array:"+t.length+":"),!n||t.length<=1){for(const c of t)this.dispatch(c);return}const o=new Map,l=t.map(c=>{const i=R(s);i.dispatch(c);for(const[f,y]of i.getContext())o.set(f,y);return i.toString()});return r=o,l.sort(),this.array(l,!1)},date(t){return e("date:"+t.toJSON())},symbol(t){return e("symbol:"+t.toString())},unkown(t,n){if(e(n),!!t&&(e(":"),t&&typeof t.entries=="function"))return this.array(Array.from(t.entries()),!0)},error(t){return e("error:"+t.toString())},boolean(t){return e("bool:"+t)},string(t){e("string:"+t.length+":"),e(t)},function(t){e("fn:"),z(t)?this.dispatch("[native]"):this.dispatch(t.toString()),s.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),s.respectFunctionProperties&&this.object(t)},number(t){return e("number:"+t)},xml(t){return e("xml:"+t.toString())},null(){return e("Null")},undefined(){return e("Undefined")},regexp(t){return e("regex:"+t.toString())},uint8array(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},uint8clampedarray(t){return e("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},int8array(t){return e("int8array:"),this.dispatch(Array.prototype.slice.call(t))},uint16array(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},int16array(t){return e("int16array:"),this.dispatch(Array.prototype.slice.call(t))},uint32array(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},int32array(t){return e("int32array:"),this.dispatch(Array.prototype.slice.call(t))},float32array(t){return e("float32array:"),this.dispatch(Array.prototype.slice.call(t))},float64array(t){return e("float64array:"),this.dispatch(Array.prototype.slice.call(t))},arraybuffer(t){return e("arraybuffer:"),this.dispatch(new Uint8Array(t))},url(t){return e("url:"+t.toString())},map(t){e("map:");const n=[...t];return this.array(n,s.unorderedSets!==!1)},set(t){e("set:");const n=[...t];return this.array(n,s.unorderedSets!==!1)},file(t){return e("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},blob(){if(s.ignoreUnknown)return e("[blob]");throw new Error(`Hashing Blob objects is currently not supported
Use "options.replacer" or "options.ignoreUnknown"
`)},domwindow(){return e("domwindow")},bigint(t){return e("bigint:"+t.toString())},process(){return e("process")},timer(){return e("timer")},pipe(){return e("pipe")},tcp(){return e("tcp")},udp(){return e("udp")},tty(){return e("tty")},statwatcher(){return e("statwatcher")},securecontext(){return e("securecontext")},connection(){return e("connection")},zlib(){return e("zlib")},context(){return e("context")},nodescript(){return e("nodescript")},httpparser(){return e("httpparser")},dataview(){return e("dataview")},signal(){return e("signal")},fsevent(){return e("fsevent")},tlswrap(){return e("tlswrap")}}}const A="[native code] }",X=A.length;function z(s){return typeof s!="function"?!1:Function.prototype.toString.call(s).slice(-X)===A}class _{constructor(a,r){a=this.words=a||[],this.sigBytes=r===void 0?a.length*4:r}toString(a){return(a||Y).stringify(this)}concat(a){if(this.clamp(),this.sigBytes%4)for(let r=0;r<a.sigBytes;r++){const e=a.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=e<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<a.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=a.words[r>>>2];return this.sigBytes+=a.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new _([...this.words])}}const Y={stringify(s){const a=[];for(let r=0;r<s.sigBytes;r++){const e=s.words[r>>>2]>>>24-r%4*8&255;a.push((e>>>4).toString(16),(e&15).toString(16))}return a.join("")}},Z={stringify(s){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[];for(let e=0;e<s.sigBytes;e+=3){const t=s.words[e>>>2]>>>24-e%4*8&255,n=s.words[e+1>>>2]>>>24-(e+1)%4*8&255,o=s.words[e+2>>>2]>>>24-(e+2)%4*8&255,l=t<<16|n<<8|o;for(let c=0;c<4&&e*8+c*6<s.sigBytes*8;c++)r.push(a.charAt(l>>>6*(3-c)&63))}return r.join("")}},tt={parse(s){const a=s.length,r=[];for(let e=0;e<a;e++)r[e>>>2]|=(s.charCodeAt(e)&255)<<24-e%4*8;return new _(r,a)}},et={parse(s){return tt.parse(unescape(encodeURIComponent(s)))}};class rt{constructor(){this._data=new _,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new _,this._nDataBytes=0}_append(a){typeof a=="string"&&(a=et.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes}_doProcessBlock(a,r){}_process(a){let r,e=this._data.sigBytes/(this.blockSize*4);a?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const t=e*this.blockSize,n=Math.min(t*4,this._data.sigBytes);if(t){for(let o=0;o<t;o+=this.blockSize)this._doProcessBlock(this._data.words,o);r=this._data.words.splice(0,t),this._data.sigBytes-=n}return new _(r,n)}}class st extends rt{update(a){return this._append(a),this._process(),this}finalize(a){a&&this._append(a)}}const P=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],nt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],v=[];class at extends st{constructor(){super(...arguments),this._hash=new _([...P])}reset(){super.reset(),this._hash=new _([...P])}_doProcessBlock(a,r){const e=this._hash.words;let t=e[0],n=e[1],o=e[2],l=e[3],c=e[4],i=e[5],f=e[6],y=e[7];for(let u=0;u<64;u++){if(u<16)v[u]=a[r+u]|0;else{const B=v[u-15],m=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,S=v[u-2],w=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;v[u]=m+v[u-7]+w+v[u-16]}const b=c&i^~c&f,d=t&n^t&o^n&o,g=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),h=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),p=y+h+b+nt[u]+v[u],D=g+d;y=f,f=i,i=c,c=l+p|0,l=o,o=n,n=t,t=p+D|0}e[0]=e[0]+t|0,e[1]=e[1]+n|0,e[2]=e[2]+o|0,e[3]=e[3]+l|0,e[4]=e[4]+c|0,e[5]=e[5]+i|0,e[6]=e[6]+f|0,e[7]=e[7]+y|0}finalize(a){super.finalize(a);const r=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(e+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function it(s){return new at().finalize(s).toString(Z)}function ot(s,a={}){const r=typeof s=="string"?s:G(s,a);return it(r).slice(0,10)}function ct(s,a,r){const[e={},t]=typeof a=="string"?[{},a]:[a,r],n=q(()=>{let w=s;return typeof w=="function"&&(w=w()),x(w)}),o=e.key||ot([t,typeof n.value=="string"?n.value:"",...ut(e)]);if(!o||typeof o!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+o);if(!s)throw new Error("[nuxt] [useFetch] request is missing.");const l=o===t?"$f"+o:o;if(!e.baseURL&&typeof n.value=="string"&&n.value.startsWith("//"))throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:c,lazy:i,default:f,transform:y,pick:u,watch:b,immediate:d,getCachedData:g,deep:h,...p}=e,D=W({...$,...p,cache:typeof e.cache=="boolean"?void 0:e.cache}),B={server:c,lazy:i,default:f,transform:y,pick:u,immediate:d,getCachedData:g,deep:h,watch:b===!1?[]:[D,n,...b||[]]};let m;return J(l,()=>{var C;(C=m==null?void 0:m.abort)==null||C.call(m),m=typeof AbortController<"u"?new AbortController:{};const w=x(e.timeout);return w&&setTimeout(()=>m.abort(),w),(e.$fetch||globalThis.$fetch)(n.value,{signal:m.signal,...D})},B)}function ut(s){var r;const a=[((r=x(s.method))==null?void 0:r.toUpperCase())||"GET",x(s.baseURL)];for(const e of[s.params||s.query]){const t=x(e);if(!t)continue;const n={},o=Array.isArray(t)?t:Object.entries(t);for(const[l,c]of o)n[x(l)]=x(c);a.push(n)}return a}function lt(){return new URL(window.location.href)}async function dt(s,a){var i,f,y;const r=lt();let e=!1,t={};const o=I().public.baseUrl+(s!=null&&s.startsWith("/")?s.replace("/",""):s),{data:l,error:c}=await ct(r.protocol+o,a,"$UqgiltlUfE");return String((i=l.value)==null?void 0:i.code)!=="200"?(e=!0,t={apiUrl:o,msg:((f=l.value)==null?void 0:f.message)||c||"请求出现错误..."}):t=(y=l.value)==null?void 0:y.data,[e,t]}export{dt as u};
