@chenpu17/cc-gw 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ var ft=e=>{throw TypeError(e)};var Ie=(e,t,n)=>t.has(e)||ft("Cannot "+n);var h=(e,t,n)=>(Ie(e,t,"read from private field"),n?n.call(e):t.get(e)),P=(e,t,n)=>t.has(e)?ft("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,s)=>(Ie(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),A=(e,t,n)=>(Ie(e,t,"access private method"),n);import{S as fn,p as dt,b as v,s as qe,c as be,n as He,i as ze,d as ht,t as dn,e as Ce,f as hn,h as pn,k as pt,l as kt,r as V,m as mn,o as yn,q as bn}from"./index-tMD4UuQh.js";var k,g,we,U,ne,ce,Q,X,ge,ue,le,se,re,G,fe,R,ye,$e,Je,Qe,Ve,We,Ke,Xe,Bt,Dt,wn=(Dt=class extends fn{constructor(t,n){super();P(this,R);P(this,k);P(this,g);P(this,we);P(this,U);P(this,ne);P(this,ce);P(this,Q);P(this,X);P(this,ge);P(this,ue);P(this,le);P(this,se);P(this,re);P(this,G);P(this,fe,new Set);this.options=n,O(this,k,t),O(this,X,null),O(this,Q,dt()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(h(this,g).addObserver(this),mt(h(this,g),this.options)?A(this,R,ye).call(this):this.updateResult(),A(this,R,Ve).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ge(h(this,g),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ge(h(this,g),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,A(this,R,We).call(this),A(this,R,Ke).call(this),h(this,g).removeObserver(this)}setOptions(t){const n=this.options,s=h(this,g);if(this.options=h(this,k).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof v(this.options.enabled,h(this,g))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");A(this,R,Xe).call(this),h(this,g).setOptions(this.options),n._defaulted&&!qe(this.options,n)&&h(this,k).getQueryCache().notify({type:"observerOptionsUpdated",query:h(this,g),observer:this});const r=this.hasListeners();r&&yt(h(this,g),s,this.options,n)&&A(this,R,ye).call(this),this.updateResult(),r&&(h(this,g)!==s||v(this.options.enabled,h(this,g))!==v(n.enabled,h(this,g))||be(this.options.staleTime,h(this,g))!==be(n.staleTime,h(this,g)))&&A(this,R,$e).call(this);const o=A(this,R,Je).call(this);r&&(h(this,g)!==s||v(this.options.enabled,h(this,g))!==v(n.enabled,h(this,g))||o!==h(this,G))&&A(this,R,Qe).call(this,o)}getOptimisticResult(t){const n=h(this,k).getQueryCache().build(h(this,k),t),s=this.createResult(n,t);return En(this,s)&&(O(this,U,s),O(this,ce,this.options),O(this,ne,h(this,g).state)),s}getCurrentResult(){return h(this,U)}trackResult(t,n){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&!this.options.experimental_prefetchInRender&&h(this,Q).status==="pending"&&h(this,Q).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,r))})}trackProp(t){h(this,fe).add(t)}getCurrentQuery(){return h(this,g)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=h(this,k).defaultQueryOptions(t),s=h(this,k).getQueryCache().build(h(this,k),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return A(this,R,ye).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),h(this,U)))}createResult(t,n){var Z;const s=h(this,g),r=this.options,o=h(this,U),i=h(this,ne),c=h(this,ce),u=t!==s?t.state:h(this,we),{state:l}=t;let p={...l},E=!1,w;if(n._optimisticResults){const N=this.hasListeners(),Y=!N&&mt(t,n),M=N&&yt(t,s,n,r);(Y||M)&&(p={...p,...pn(l.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:f,errorUpdatedAt:y,status:m}=p;w=p.data;let S=!1;if(n.placeholderData!==void 0&&w===void 0&&m==="pending"){let N;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(N=o.data,S=!0):N=typeof n.placeholderData=="function"?n.placeholderData((Z=h(this,le))==null?void 0:Z.state.data,h(this,le)):n.placeholderData,N!==void 0&&(m="success",w=pt(o==null?void 0:o.data,N,n),E=!0)}if(n.select&&w!==void 0&&!S)if(o&&w===(i==null?void 0:i.data)&&n.select===h(this,ge))w=h(this,ue);else try{O(this,ge,n.select),w=n.select(w),w=pt(o==null?void 0:o.data,w,n),O(this,ue,w),O(this,X,null)}catch(N){O(this,X,N)}h(this,X)&&(f=h(this,X),w=h(this,ue),y=Date.now(),m="error");const F=p.fetchStatus==="fetching",T=m==="pending",x=m==="error",L=T&&F,H=w!==void 0,D={status:m,fetchStatus:p.fetchStatus,isPending:T,isSuccess:m==="success",isError:x,isInitialLoading:L,isLoading:L,data:w,dataUpdatedAt:p.dataUpdatedAt,error:f,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:F,isRefetching:F&&!T,isLoadingError:x&&!H,isPaused:p.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:x&&H,isStale:st(t,n),refetch:this.refetch,promise:h(this,Q),isEnabled:v(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=z=>{D.status==="error"?z.reject(D.error):D.data!==void 0&&z.resolve(D.data)},Y=()=>{const z=O(this,Q,D.promise=dt());N(z)},M=h(this,Q);switch(M.status){case"pending":t.queryHash===s.queryHash&&N(M);break;case"fulfilled":(D.status==="error"||D.data!==M.value)&&Y();break;case"rejected":(D.status!=="error"||D.error!==M.reason)&&Y();break}}return D}updateResult(){const t=h(this,U),n=this.createResult(h(this,g),this.options);if(O(this,ne,h(this,g).state),O(this,ce,this.options),h(this,ne).data!==void 0&&O(this,le,h(this,g)),qe(n,t))return;O(this,U,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!h(this,fe).size)return!0;const i=new Set(o??h(this,fe));return this.options.throwOnError&&i.add("error"),Object.keys(h(this,U)).some(c=>{const d=c;return h(this,U)[d]!==t[d]&&i.has(d)})};A(this,R,Bt).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&A(this,R,Ve).call(this)}},k=new WeakMap,g=new WeakMap,we=new WeakMap,U=new WeakMap,ne=new WeakMap,ce=new WeakMap,Q=new WeakMap,X=new WeakMap,ge=new WeakMap,ue=new WeakMap,le=new WeakMap,se=new WeakMap,re=new WeakMap,G=new WeakMap,fe=new WeakMap,R=new WeakSet,ye=function(t){A(this,R,Xe).call(this);let n=h(this,g).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(He)),n},$e=function(){A(this,R,We).call(this);const t=be(this.options.staleTime,h(this,g));if(ze||h(this,U).isStale||!ht(t))return;const s=dn(h(this,U).dataUpdatedAt,t)+1;O(this,se,Ce.setTimeout(()=>{h(this,U).isStale||this.updateResult()},s))},Je=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(h(this,g)):this.options.refetchInterval)??!1},Qe=function(t){A(this,R,Ke).call(this),O(this,G,t),!(ze||v(this.options.enabled,h(this,g))===!1||!ht(h(this,G))||h(this,G)===0)&&O(this,re,Ce.setInterval(()=>{(this.options.refetchIntervalInBackground||hn.isFocused())&&A(this,R,ye).call(this)},h(this,G)))},Ve=function(){A(this,R,$e).call(this),A(this,R,Qe).call(this,A(this,R,Je).call(this))},We=function(){h(this,se)&&(Ce.clearTimeout(h(this,se)),O(this,se,void 0))},Ke=function(){h(this,re)&&(Ce.clearInterval(h(this,re)),O(this,re,void 0))},Xe=function(){const t=h(this,k).getQueryCache().build(h(this,k),this.options);if(t===h(this,g))return;const n=h(this,g);O(this,g,t),O(this,we,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Bt=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(h(this,U))}),h(this,k).getQueryCache().notify({query:h(this,g),type:"observerResultsUpdated"})})},Dt);function gn(e,t){return v(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mt(e,t){return gn(e,t)||e.state.data!==void 0&&Ge(e,t,t.refetchOnMount)}function Ge(e,t,n){if(v(t.enabled,e)!==!1&&be(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&st(e,t)}return!1}function yt(e,t,n,s){return(e!==t||v(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&st(e,n)}function st(e,t){return v(t.enabled,e)!==!1&&e.isStaleByTime(be(t.staleTime,e))}function En(e,t){return!qe(e.getCurrentResult(),t)}var It=V.createContext(!1),Rn=()=>V.useContext(It);It.Provider;function Sn(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var On=V.createContext(Sn()),Tn=()=>V.useContext(On),Cn=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},An=e=>{V.useEffect(()=>{e.clearReset()},[e])},xn=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||mn(n,[e.error,s])),Pn=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...r)=>n(s(...r)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Fn=(e,t)=>e.isLoading&&e.isFetching&&!t,_n=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Nn(e,t,n){var p,E,w,f,y;const s=Rn(),r=Tn(),o=yn(),i=o.defaultQueryOptions(e);(E=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||E.call(p,i),i._optimisticResults=s?"isRestoring":"optimistic",Pn(i),Cn(i,r),An(r);const c=!o.getQueryCache().get(i.queryHash),[d]=V.useState(()=>new t(o,i)),u=d.getOptimisticResult(i),l=!s&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(m=>{const S=l?d.subscribe(kt.batchCalls(m)):He;return d.updateResult(),S},[d,l]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),V.useEffect(()=>{d.setOptions(i)},[i,d]),_n(i,u))throw bt(i,d,r);if(xn({result:u,errorResetBoundary:r,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((f=(w=o.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||f.call(w,i,u),i.experimental_prefetchInRender&&!ze&&Fn(u,s)){const m=c?bt(i,d,r):(y=o.getQueryCache().get(i.queryHash))==null?void 0:y.promise;m==null||m.catch(He).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?u:d.trackResult(u)}function Un(e,t){return Nn(e,wn)}function jt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ln}=Object.prototype,{getPrototypeOf:rt}=Object,{iterator:Ne,toStringTag:Mt}=Symbol,Ue=(e=>t=>{const n=Ln.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=e=>(e=e.toLowerCase(),t=>Ue(t)===e),Le=e=>t=>typeof t===e,{isArray:he}=Array,de=Le("undefined");function Ee(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vt=q("ArrayBuffer");function Dn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vt(e.buffer),t}const kn=Le("string"),B=Le("function"),qt=Le("number"),Re=e=>e!==null&&typeof e=="object",Bn=e=>e===!0||e===!1,xe=e=>{if(Ue(e)!=="object")return!1;const t=rt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Mt in e)&&!(Ne in e)},In=e=>{if(!Re(e)||Ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jn=q("Date"),Mn=q("File"),vn=q("Blob"),qn=q("FileList"),Hn=e=>Re(e)&&B(e.pipe),zn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||B(e.append)&&((t=Ue(e))==="formdata"||t==="object"&&B(e.toString)&&e.toString()==="[object FormData]"))},$n=q("URLSearchParams"),[Jn,Qn,Vn,Wn]=["ReadableStream","Request","Response","Headers"].map(q),Kn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),he(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(Ee(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(s=0;s<i;s++)c=o[s],t.call(null,e[c],c,e)}}function Ht(e,t){if(Ee(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const te=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zt=e=>!de(e)&&e!==te;function Ze(){const{caseless:e,skipUndefined:t}=zt(this)&&this||{},n={},s=(r,o)=>{const i=e&&Ht(n,o)||o;xe(n[i])&&xe(r)?n[i]=Ze(n[i],r):xe(r)?n[i]=Ze({},r):he(r)?n[i]=r.slice():(!t||!de(r))&&(n[i]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Se(arguments[r],s);return n}const Xn=(e,t,n,{allOwnKeys:s}={})=>(Se(t,(r,o)=>{n&&B(r)?e[o]=jt(r,n):e[o]=r},{allOwnKeys:s}),e),Gn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zn=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Yn=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&rt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},es=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ts=e=>{if(!e)return null;if(he(e))return e;let t=e.length;if(!qt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ns=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rt(Uint8Array)),ss=(e,t)=>{const s=(e&&e[Ne]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},rs=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},is=q("HTMLFormElement"),os=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),wt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),as=q("RegExp"),$t=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Se(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},cs=e=>{$t(e,(t,n)=>{if(B(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(B(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},us=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return he(e)?s(e):s(String(e).split(t)),n},ls=()=>{},fs=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ds(e){return!!(e&&B(e.append)&&e[Mt]==="FormData"&&e[Ne])}const hs=e=>{const t=new Array(10),n=(s,r)=>{if(Re(s)){if(t.indexOf(s)>=0)return;if(Ee(s))return s;if(!("toJSON"in s)){t[r]=s;const o=he(s)?[]:{};return Se(s,(i,c)=>{const d=n(i,r+1);!de(d)&&(o[c]=d)}),t[r]=void 0,o}}return s};return n(e,0)},ps=q("AsyncFunction"),ms=e=>e&&(Re(e)||B(e))&&B(e.then)&&B(e.catch),Jt=((e,t)=>e?setImmediate:t?((n,s)=>(te.addEventListener("message",({source:r,data:o})=>{r===te&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),te.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",B(te.postMessage)),ys=typeof queueMicrotask<"u"?queueMicrotask.bind(te):typeof process<"u"&&process.nextTick||Jt,bs=e=>e!=null&&B(e[Ne]),a={isArray:he,isArrayBuffer:vt,isBuffer:Ee,isFormData:zn,isArrayBufferView:Dn,isString:kn,isNumber:qt,isBoolean:Bn,isObject:Re,isPlainObject:xe,isEmptyObject:In,isReadableStream:Jn,isRequest:Qn,isResponse:Vn,isHeaders:Wn,isUndefined:de,isDate:jn,isFile:Mn,isBlob:vn,isRegExp:as,isFunction:B,isStream:Hn,isURLSearchParams:$n,isTypedArray:ns,isFileList:qn,forEach:Se,merge:Ze,extend:Xn,trim:Kn,stripBOM:Gn,inherits:Zn,toFlatObject:Yn,kindOf:Ue,kindOfTest:q,endsWith:es,toArray:ts,forEachEntry:ss,matchAll:rs,isHTMLForm:is,hasOwnProperty:wt,hasOwnProp:wt,reduceDescriptors:$t,freezeMethods:cs,toObjectSet:us,toCamelCase:os,noop:ls,toFiniteNumber:fs,findKey:Ht,global:te,isContextDefined:zt,isSpecCompliantForm:ds,toJSONObject:hs,isAsyncFn:ps,isThenable:ms,setImmediate:Jt,asap:ys,isIterable:bs};function b(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}a.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Qt=b.prototype,Vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Vt[e]={value:e}});Object.defineProperties(b,Vt);Object.defineProperty(Qt,"isAxiosError",{value:!0});b.from=(e,t,n,s,r,o)=>{const i=Object.create(Qt);a.toFlatObject(e,i,function(l){return l!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return b.call(i,c,d,n,s,r),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const ws=null;function Ye(e){return a.isPlainObject(e)||a.isArray(e)}function Wt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function gt(e,t,n){return e?e.concat(t).map(function(r,o){return r=Wt(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function gs(e){return a.isArray(e)&&!e.some(Ye)}const Es=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function De(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,m){return!a.isUndefined(m[y])});const s=n.metaTokens,r=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(a.isBoolean(f))return f.toString();if(!d&&a.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function l(f,y,m){let S=f;if(f&&!m&&typeof f=="object"){if(a.endsWith(y,"{}"))y=s?y:y.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&gs(f)||(a.isFileList(f)||a.endsWith(y,"[]"))&&(S=a.toArray(f)))return y=Wt(y),S.forEach(function(T,x){!(a.isUndefined(T)||T===null)&&t.append(i===!0?gt([y],x,o):i===null?y:y+"[]",u(T))}),!1}return Ye(f)?!0:(t.append(gt(m,y,o),u(f)),!1)}const p=[],E=Object.assign(Es,{defaultVisitor:l,convertValue:u,isVisitable:Ye});function w(f,y){if(!a.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(f),a.forEach(f,function(S,F){(!(a.isUndefined(S)||S===null)&&r.call(t,S,a.isString(F)?F.trim():F,y,E))===!0&&w(S,y?y.concat(F):[F])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function it(e,t){this._pairs=[],e&&De(e,this,t)}const Kt=it.prototype;Kt.append=function(t,n){this._pairs.push([t,n])};Kt.toString=function(t){const n=t?function(s){return t.call(this,s,Et)}:Et;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Rs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xt(e,t,n){if(!t)return e;const s=n&&n.encode||Rs;a.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=a.isURLSearchParams(t)?t.toString():new it(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Rt{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ss=typeof URLSearchParams<"u"?URLSearchParams:it,Os=typeof FormData<"u"?FormData:null,Ts=typeof Blob<"u"?Blob:null,Cs={isBrowser:!0,classes:{URLSearchParams:Ss,FormData:Os,Blob:Ts},protocols:["http","https","file","blob","url","data"]},ot=typeof window<"u"&&typeof document<"u",et=typeof navigator=="object"&&navigator||void 0,As=ot&&(!et||["ReactNative","NativeScript","NS"].indexOf(et.product)<0),xs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ps=ot&&window.location.href||"http://localhost",Fs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:As,hasStandardBrowserWebWorkerEnv:xs,navigator:et,origin:Ps},Symbol.toStringTag,{value:"Module"})),_={...Fs,...Cs};function _s(e,t){return De(e,new _.classes.URLSearchParams,{visitor:function(n,s,r,o){return _.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Ns(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Us(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function Zt(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(r)?r.length:i,d?(a.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!a.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&a.isArray(r[i])&&(r[i]=Us(r[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(Ns(s),r,n,0)}),n}return null}function Ls(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Oe={transitional:Gt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(Zt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return _s(t,this.formSerializer).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return De(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Ls(t)):t}],transformResponse:[function(t){const n=this.transitional||Oe.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(c){if(i)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{Oe.headers[e]={}});const Ds=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ks=e=>{const t={};let n,s,r;return e&&e.split(`
2
+ `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Ds[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},St=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return e===!1||e==null?e:a.isArray(e)?e.map(Pe):String(e)}function Bs(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 Is=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function je(e,t,n,s,r){if(a.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function js(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Ms(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}let I=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,d,u){const l=me(d);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(r,l);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||d]=Pe(c))}const i=(c,d)=>a.forEach(c,(u,l)=>o(u,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Is(t))i(ks(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(d=c[u])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=me(t),t){const s=a.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Bs(r);if(a.isFunction(n))return n.call(this,r,s);if(a.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=me(t),t){const s=a.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||je(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=me(i),i){const c=a.findKey(s,i);c&&(!n||je(s,s[c],c,n))&&(delete s[c],r=!0)}}return a.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||je(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return a.forEach(this,(r,o)=>{const i=a.findKey(s,o);if(i){n[i]=Pe(r),delete n[o];return}const c=t?js(o):String(o).trim();c!==o&&delete n[o],n[c]=Pe(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&a.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(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}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(r=>s.set(r)),s}static accessor(t){const s=(this[St]=this[St]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=me(i);s[c]||(Ms(r,i),s[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(I.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});a.freezeMethods(I);function Me(e,t){const n=this||Oe,s=t||n,r=I.from(s.headers);let o=s.data;return a.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Yt(e){return!!(e&&e.__CANCEL__)}function pe(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(pe,b,{__CANCEL__:!0});function en(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qs(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const u=Date.now(),l=s[o];i||(i=u),n[r]=d,s[r]=u;let p=o,E=0;for(;p!==r;)E+=n[p++],p=p%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i<t)return;const w=l&&u-l;return w?Math.round(E*1e3/w):void 0}}function Hs(e,t){let n=0,s=1e3/t,r,o;const i=(u,l=Date.now())=>{n=l,r=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const l=Date.now(),p=l-n;p>=s?i(u,l):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-p)))},()=>r&&i(r)]}const _e=(e,t,n=3)=>{let s=0;const r=qs(50,250);return Hs(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,d=i-s,u=r(d),l=i<=c;s=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Ot=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Tt=e=>(...t)=>a.asap(()=>e(...t)),zs=_.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_.origin),_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent)):()=>!0,$s=_.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(s)&&i.push("path="+s),a.isString(r)&&i.push("domain="+r),o===!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 Js(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tn(e,t,n){let s=!Js(t);return e&&(s||n==!1)?Qs(e,t):t}const Ct=e=>e instanceof I?{...e}:e;function oe(e,t){t=t||{};const n={};function s(u,l,p,E){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:E},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function r(u,l,p,E){if(a.isUndefined(l)){if(!a.isUndefined(u))return s(void 0,u,p,E)}else return s(u,l,p,E)}function o(u,l){if(!a.isUndefined(l))return s(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,l)}function c(u,l,p){if(p in t)return s(u,l);if(p in e)return s(void 0,u)}const d={url:o,method:o,data:o,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:c,headers:(u,l,p)=>r(Ct(u),Ct(l),p,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const p=d[l]||r,E=p(e[l],t[l],l);a.isUndefined(E)&&p!==c||(n[l]=E)}),n}const nn=e=>{const t=oe({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=I.from(i),t.url=Xt(tn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([l,p])=>{u.includes(l.toLowerCase())&&i.set(l,p)})}}if(_.hasStandardBrowserEnv&&(s&&a.isFunction(s)&&(s=s(t)),s||s!==!1&&zs(t.url))){const d=r&&o&&$s.read(o);d&&i.set(r,d)}return t},Vs=typeof XMLHttpRequest<"u",Ws=Vs&&function(e){return new Promise(function(n,s){const r=nn(e);let o=r.data;const i=I.from(r.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=r,l,p,E,w,f;function y(){w&&w(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function S(){if(!m)return;const T=I.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:T,config:e,request:m};en(function(j){n(j),y()},function(j){s(j),y()},L),m=null}"onloadend"in m?m.onloadend=S:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(S)},m.onabort=function(){m&&(s(new b("Request aborted",b.ECONNABORTED,e,m)),m=null)},m.onerror=function(x){const L=x&&x.message?x.message:"Network Error",H=new b(L,b.ERR_NETWORK,e,m);H.event=x||null,s(H),m=null},m.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const L=r.transitional||Gt;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),s(new b(x,L.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(x,L){m.setRequestHeader(L,x)}),a.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),c&&c!=="json"&&(m.responseType=r.responseType),u&&([E,f]=_e(u,!0),m.addEventListener("progress",E)),d&&m.upload&&([p,w]=_e(d),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(l=T=>{m&&(s(!T||T.type?new pe(null,e,m):T),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const F=vs(r.url);if(F&&_.protocols.indexOf(F)===-1){s(new b("Unsupported protocol "+F+":",b.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Ks=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,c();const l=u instanceof Error?u:this.reason;s.abort(l instanceof b?l:new pe(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:d}=s;return d.unsubscribe=()=>a.asap(c),d}},Xs=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Gs=async function*(e,t){for await(const n of Zs(e))yield*Xs(n,t)},Zs=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},At=(e,t,n,s)=>{const r=Gs(e,t);let o=0,i,c=d=>{i||(i=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:u,value:l}=await r.next();if(u){c(),d.close();return}let p=l.byteLength;if(n){let E=o+=p;n(E)}d.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(d){return c(d),r.return()}},{highWaterMark:2})},xt=64*1024,{isFunction:Ae}=a,Ys=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Pt,TextEncoder:Ft}=a.global,_t=(e,...t)=>{try{return!!e(...t)}catch{return!1}},er=e=>{e=a.merge.call({skipUndefined:!0},Ys,e);const{fetch:t,Request:n,Response:s}=e,r=t?Ae(t):typeof fetch=="function",o=Ae(n),i=Ae(s);if(!r)return!1;const c=r&&Ae(Pt),d=r&&(typeof Ft=="function"?(f=>y=>f.encode(y))(new Ft):async f=>new Uint8Array(await new n(f).arrayBuffer())),u=o&&c&&_t(()=>{let f=!1;const y=new n(_.origin,{body:new Pt,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!y}),l=i&&c&&_t(()=>a.isReadableStream(new s("").body)),p={stream:l&&(f=>f.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!p[f]&&(p[f]=(y,m)=>{let S=y&&y[f];if(S)return S.call(y);throw new b(`Response type '${f}' is not supported`,b.ERR_NOT_SUPPORT,m)})});const E=async f=>{if(f==null)return 0;if(a.isBlob(f))return f.size;if(a.isSpecCompliantForm(f))return(await new n(_.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(a.isArrayBufferView(f)||a.isArrayBuffer(f))return f.byteLength;if(a.isURLSearchParams(f)&&(f=f+""),a.isString(f))return(await d(f)).byteLength},w=async(f,y)=>{const m=a.toFiniteNumber(f.getContentLength());return m??E(y)};return async f=>{let{url:y,method:m,data:S,signal:F,cancelToken:T,timeout:x,onDownloadProgress:L,onUploadProgress:H,responseType:j,headers:D,withCredentials:Z="same-origin",fetchOptions:N}=nn(f),Y=t||fetch;j=j?(j+"").toLowerCase():"text";let M=Ks([F,T&&T.toAbortSignal()],x),z=null;const ee=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let at;try{if(H&&u&&m!=="get"&&m!=="head"&&(at=await w(D,S))!==0){let K=new n(y,{method:"POST",body:S,duplex:"half"}),ae;if(a.isFormData(S)&&(ae=K.headers.get("content-type"))&&D.setContentType(ae),K.body){const[Be,Te]=Ot(at,_e(Tt(H)));S=At(K.body,xt,Be,Te)}}a.isString(Z)||(Z=Z?"include":"omit");const $=o&&"credentials"in n.prototype,ct={...N,signal:M,method:m.toUpperCase(),headers:D.normalize().toJSON(),body:S,duplex:"half",credentials:$?Z:void 0};z=o&&new n(y,ct);let W=await(o?Y(z,N):Y(y,ct));const ut=l&&(j==="stream"||j==="response");if(l&&(L||ut&&ee)){const K={};["status","statusText","headers"].forEach(lt=>{K[lt]=W[lt]});const ae=a.toFiniteNumber(W.headers.get("content-length")),[Be,Te]=L&&Ot(ae,_e(Tt(L),!0))||[];W=new s(At(W.body,xt,Be,()=>{Te&&Te(),ee&&ee()}),K)}j=j||"text";let ln=await p[a.findKey(p,j)||"text"](W,f);return!ut&&ee&&ee(),await new Promise((K,ae)=>{en(K,ae,{data:ln,headers:I.from(W.headers),status:W.status,statusText:W.statusText,config:f,request:z})})}catch($){throw ee&&ee(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,f,z),{cause:$.cause||$}):b.from($,$&&$.code,f,z)}}},tr=new Map,sn=e=>{let t=e?e.env:{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let i=o.length,c=i,d,u,l=tr;for(;c--;)d=o[c],u=l.get(d),u===void 0&&l.set(d,u=c?new Map:er(t)),l=u;return u};sn();const tt={http:ws,xhr:Ws,fetch:{get:sn}};a.forEach(tt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nt=e=>`- ${e}`,nr=e=>a.isFunction(e)||e===null||e===!1,rn={getAdapter:(e,t)=>{e=a.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let i=0;i<n;i++){s=e[i];let c;if(r=s,!nr(s)&&(r=tt[(c=String(s)).toLowerCase()],r===void 0))throw new b(`Unknown adapter '${c}'`);if(r&&(a.isFunction(r)||(r=r.get(t))))break;o[c||"#"+i]=r}if(!r){const i=Object.entries(o).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
4
+ `+i.map(Nt).join(`
5
+ `):" "+Nt(i[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:tt};function ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pe(null,e)}function Ut(e){return ve(e),e.headers=I.from(e.headers),e.data=Me.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rn.getAdapter(e.adapter||Oe.adapter,e)(e).then(function(s){return ve(e),s.data=Me.call(e,e.transformResponse,s),s.headers=I.from(s.headers),s},function(s){return Yt(s)||(ve(e),s&&s.response&&(s.response.data=Me.call(e,e.transformResponse,s.response),s.response.headers=I.from(s.response.headers))),Promise.reject(s)})}const on="1.12.2",ke={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ke[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Lt={};ke.transitional=function(t,n,s){function r(o,i){return"[Axios v"+on+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new b(r(i," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Lt[i]&&(Lt[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};ke.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function sr(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],d=c===void 0||i(c,o,e);if(d!==!0)throw new b("option "+o+" must be "+d,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const Fe={assertOptions:sr,validators:ke},J=Fe.validators;let ie=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Rt,response:new Rt}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
6
+ `+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=oe(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Fe.assertOptions(s,{silentJSONParsing:J.transitional(J.boolean),forcedJSONParsing:J.transitional(J.boolean),clarifyTimeoutError:J.transitional(J.boolean)},!1),r!=null&&(a.isFunction(r)?n.paramsSerializer={serialize:r}:Fe.assertOptions(r,{encode:J.function,serialize:J.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fe.assertOptions(n,{baseUrl:J.spelling("baseURL"),withXsrfToken:J.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=I.concat(i,o);const c=[];let d=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(d=d&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,p=0,E;if(!d){const f=[Ut.bind(this),void 0];for(f.unshift(...c),f.push(...u),E=f.length,l=Promise.resolve(n);p<E;)l=l.then(f[p++],f[p++]);return l}E=c.length;let w=n;for(;p<E;){const f=c[p++],y=c[p++];try{w=f(w)}catch(m){y.call(this,m);break}}try{l=Ut.call(this,w)}catch(f){return Promise.reject(f)}for(p=0,E=u.length;p<E;)l=l.then(u[p++],u[p++]);return l}getUri(t){t=oe(this.defaults,t);const n=tn(t.baseURL,t.url,t.allowAbsoluteUrls);return Xt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){ie.prototype[t]=function(n,s){return this.request(oe(s||{},{method:t,url:n,data:(s||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,c){return this.request(oe(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ie.prototype[t]=n(),ie.prototype[t+"Form"]=n(!0)});let rr=class an{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new pe(o,i,c),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new an(function(r){t=r}),cancel:t}}};function ir(e){return function(n){return e.apply(null,n)}}function or(e){return a.isObject(e)&&e.isAxiosError===!0}const nt={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(nt).forEach(([e,t])=>{nt[t]=e});function cn(e){const t=new ie(e),n=jt(ie.prototype.request,t);return a.extend(n,ie.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return cn(oe(e,r))},n}const C=cn(Oe);C.Axios=ie;C.CanceledError=pe;C.CancelToken=rr;C.isCancel=Yt;C.VERSION=on;C.toFormData=De;C.AxiosError=b;C.Cancel=C.CanceledError;C.all=function(t){return Promise.all(t)};C.spread=ir;C.isAxiosError=or;C.mergeConfig=oe;C.AxiosHeaders=I;C.formToJSON=e=>Zt(a.isHTMLForm(e)?new FormData(e):e);C.getAdapter=rn.getAdapter;C.HttpStatusCode=nt;C.default=C;const{Axios:dr,AxiosError:hr,CanceledError:pr,isCancel:mr,CancelToken:yr,VERSION:br,all:wr,Cancel:gr,isAxiosError:Er,spread:Rr,toFormData:Sr,AxiosHeaders:Or,HttpStatusCode:Tr,formToJSON:Cr,getAdapter:Ar,mergeConfig:xr}=C,un=C.create({baseURL:"/",timeout:15e3});un.interceptors.response.use(e=>e,e=>Promise.reject(e));function ar(e){var t,n,s;if(C.isAxiosError(e)){const r=(t=e.response)==null?void 0:t.status;return{message:((s=(n=e.response)==null?void 0:n.data)==null?void 0:s.error)||e.message||"请求失败,请稍后再试",status:r,code:String(r??"unknown")}}return{message:e instanceof Error?e.message:"请求失败,请稍后再试"}}function Pr(e,t,n){return Un({queryKey:e,placeholderData:bn,...n,queryFn:async()=>{try{return(await un.request(t)).data}catch(s){throw ar(s)}}})}export{un as a,Pr as u};
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN" data-theme="light">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>cc-gw 控制台</title>
7
+ <script type="module" crossorigin src="/assets/index-tMD4UuQh.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-BXlilpwV.css">
9
+ </head>
10
+ <body class="bg-slate-50 text-slate-900 dark:bg-slate-900 dark:text-slate-50">
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>