1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-08-12 09:20:31 +00:00
Classworks/assets/vendor-utils-SR2uUhRI.js

10 lines
52 KiB
JavaScript

function Ft(e,t){return function(){return e.apply(t,arguments)}}const{toString:On}=Object.prototype,{getPrototypeOf:ne}=Object,{iterator:fe,toStringTag:Bt}=Symbol,Ae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ue=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Ae(n,t))return!0;n=ne(n)}return!1},Sn=(e,t)=>e!=null&&ue(e,t)?e[t]:void 0,Je=(e=>t=>{const n=On.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),I=e=>(e=e.toLowerCase(),t=>Je(t)===e),Te=e=>t=>typeof t===e,{isArray:Z}=Array,G=Te("undefined");function re(e){return e!==null&&!G(e)&&e.constructor!==null&&!G(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lt=I("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lt(e.buffer),t}const xn=Te("string"),B=Te("function"),jt=Te("number"),se=e=>e!==null&&typeof e=="object",_n=e=>e===!0||e===!1,Ee=e=>{if(!se(e))return!1;const t=ne(e);return(t===null||t===Object.prototype||ne(t)===null)&&!ue(e,Bt)&&!ue(e,fe)},Tn=e=>{if(!se(e)||re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pn=I("Date"),Cn=I("File"),Un=e=>!!(e&&typeof e.uri<"u"),Dn=e=>e&&typeof e.getParts<"u",Nn=I("Blob"),Fn=I("FileList"),Bn=I("Set"),Ln=e=>se(e)&&B(e.pipe);function jn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const lt=jn(),ut=typeof lt.FormData<"u"?lt.FormData:void 0,In=e=>{if(!e)return!1;if(ut&&e instanceof ut)return!0;const t=ne(e);if(!t||t===Object.prototype||!B(e.append))return!1;const n=Je(e);return n==="formdata"||n==="object"&&B(e.toString)&&e.toString()==="[object FormData]"},kn=I("URLSearchParams"),[qn,Hn,Mn,zn]=["ReadableStream","Request","Response","Headers"].map(I),$n=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function de(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Z(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(re(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function It(e,t){if(re(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kt=e=>!G(e)&&e!==K;function Me(...e){const{caseless:t,skipUndefined:n}=kt(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&&typeof i=="string"&&It(r,i)||i,l=Ae(r,c)?r[c]:void 0;Ee(l)&&Ee(o)?r[c]=Me(l,o):Ee(o)?r[c]=Me({},o):Z(o)?r[c]=o.slice():(!n||!G(o))&&(r[c]=o)};for(let o=0,i=e.length;o<i;o++){const c=e[o];if(!c||re(c)||(de(c,s),typeof c!="object"||Z(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let d=0;d<l.length;d++){const u=l[d];tr.call(c,u)&&s(c[u],u)}}return r}const Vn=(e,t,n,{allOwnKeys:r}={})=>(de(t,(s,o)=>{n&&B(s)?Object.defineProperty(e,o,{__proto__:null,value:Ft(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),vn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Jn=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ne(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Xn=e=>{if(!e)return null;if(Z(e))return e;let t=e.length;if(!jt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ne(Uint8Array)),Gn=(e,t)=>{const r=(e&&e[fe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Qn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yn=I("HTMLFormElement"),er=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:tr}=Object.prototype,nr=I("RegExp"),qt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};de(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},rr=e=>{qt(e,(t,n)=>{if(B(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(B(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sr=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Z(e)?r(e):r(String(e).split(t)),n},or=()=>{},ir=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ar(e){return!!(e&&B(e.append)&&e[Bt]==="FormData"&&e[fe])}const cr=e=>{const t=new WeakSet,n=r=>{if(se(r)){if(t.has(r))return;if(re(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(Bn(r)){s=[];for(const o of r){const i=n(o);!G(i)&&s.push(i)}}else s=Z(r)?[]:{},de(r,(o,i)=>{const c=n(o);!G(c)&&(s[i]=c)});return t.delete(r),s}}return r};return n(e)},lr=I("AsyncFunction"),ur=e=>e&&(se(e)||B(e))&&B(e.then)&&B(e.catch),Ht=((e,t)=>e?setImmediate:t?((n,r)=>(K.addEventListener("message",({source:s,data:o})=>{s===K&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),K.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",B(K.postMessage)),fr=typeof queueMicrotask<"u"?queueMicrotask.bind(K):typeof process<"u"&&process.nextTick||Ht,Mt=e=>e!=null&&B(e[fe]),dr=e=>e!=null&&ue(e,fe)&&Mt(e),a={isArray:Z,isArrayBuffer:Lt,isBuffer:re,isFormData:In,isArrayBufferView:An,isString:xn,isNumber:jt,isBoolean:_n,isObject:se,isPlainObject:Ee,isEmptyObject:Tn,isReadableStream:qn,isRequest:Hn,isResponse:Mn,isHeaders:zn,isUndefined:G,isDate:Pn,isFile:Cn,isReactNativeBlob:Un,isReactNative:Dn,isBlob:Nn,isRegExp:nr,isFunction:B,isStream:Ln,isURLSearchParams:kn,isTypedArray:Zn,isFileList:Fn,forEach:de,merge:Me,extend:Vn,trim:$n,stripBOM:vn,inherits:Wn,toFlatObject:Jn,kindOf:Je,kindOfTest:I,endsWith:Kn,toArray:Xn,forEachEntry:Gn,matchAll:Qn,isHTMLForm:Yn,hasOwnProperty:Ae,hasOwnProp:Ae,hasOwnInPrototypeChain:ue,getSafeProp:Sn,reduceDescriptors:qt,freezeMethods:rr,toObjectSet:sr,toCamelCase:er,noop:or,toFiniteNumber:ir,findKey:It,global:K,isContextDefined:kt,isSpecCompliantForm:ar,toJSONObject:cr,isAsyncFn:lr,isThenable:ur,setImmediate:Ht,asap:fr,isIterable:Mt,isSafeIterable:dr},pr=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"]),hr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim();const c=a.hasOwnProp(t,n);!n||c&&a.hasOwnProp(pr,n)||(n==="set-cookie"?c?t[n].push(r):t[n]=[r]:t[n]=c?t[n]+", "+r:r)}),t};function mr(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const yr=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),br=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ke(e,t){return a.isArray(e)?e.map(n=>Ke(n,t)):mr(String(e).replace(t,""))}const wr=e=>Ke(e,yr),gr=e=>Ke(e,br);function zt(e){const t=Object.create(null);return a.forEach(e.toJSON(),(n,r)=>{t[r]=gr(n)}),t}const ft=Symbol("internals");function ce(e){return e&&String(e).trim().toLowerCase()}function Re(e){return e===!1||e==null?e:a.isArray(e)?e.map(Re):wr(String(e))}function Er(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Rr=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Be(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Or(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const s=e.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Sr(e){const t=Object.create(null),n=String(e);let r=0,s=!1,o=!1;function i(c){const l=Be(n.slice(r,c)),d=l.indexOf("=");if(d<1)return;const u=Be(l.slice(0,d));if(!Rr.test(u))return;const p=u.toLowerCase();if(p==="__proto__"||p==="constructor"||p==="prototype")return;const b=Be(l.slice(d+1));t[p]=Or(b)}for(let c=0;c<n.length;c++){const l=n.charCodeAt(c);s?o?o=!1:l===92?o=!0:l===34&&(s=!1):l===34?s=!0:(l===44||l===59)&&(i(c),r=c+1)}return i(n.length),t}const Ar=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Le(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function xr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _r(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let F=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,d){const u=ce(l);if(!u)return;const p=a.findKey(s,u);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||l]=Re(c))}const i=(c,l)=>a.forEach(c,(d,u)=>o(d,u,l));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Ar(t))i(hr(t),n);else if(a.isObject(t)&&a.isSafeIterable(t)){let c=Object.create(null),l,d;for(const u of t){if(!a.isArray(u))throw new TypeError("Object iterator must return a key-value pair");d=u[0],a.hasOwnProp(c,d)?(l=c[d],c[d]=a.isArray(l)?[...l,u[1]]:[l,u[1]]):c[d]=u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ce(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Er(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ce(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ce(i),i){const c=a.findKey(r,i);c&&(!n||Le(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Le(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Re(s),delete n[o];return}const c=t?xr(o):String(o).trim();c!==o&&delete n[o],n[c]=Re(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){const t=this.get("set-cookie");return a.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Sr(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ft]=this[ft]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=ce(i);r[c]||(_r(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(F);const xe="[REDACTED ****]";function Tr(e){if(a.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Pr(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||a.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof F&&(o=o.toJSON()),r.push(o);let i;if(a.isArray(o))i=[],o.forEach((c,l)=>{const d=s(c);a.isUndefined(d)||(i[l]=d)});else{if(!a.isPlainObject(o)&&Tr(o))return r.pop(),o;i=Object.create(null);for(const[c,l]of Object.entries(o)){const d=n.has(c.toLowerCase())?xe:s(l);a.isUndefined(d)||(i[c]=d)}}return r.pop(),i};return s(e)}function dt(e){try{return String(e)}catch{return""}}function Cr(e){return e.errors.map(n=>{try{return n&&n.message?dt(n.message):dt(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let h=class $t extends Error{static from(t,n,r,s,o,i){let c=t.message;!c&&a.isArray(t.errors)&&t.errors.length&&(c=Cr(t));const l=new $t(c,n||t.code,r,s,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&a.hasOwnProp(t,"redact")?t.redact:void 0,r=a.isArray(n)&&n.length>0?Pr(t,n):a.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ur=null,Vt=100;function ze(e){return a.isPlainObject(e)||a.isArray(e)}function vt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function je(e,t,n){return e?e.concat(t).map(function(s,o){return s=vt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Dr(e){return a.isArray(e)&&!e.some(ze)}const Nr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Pe(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,w){return!a.isUndefined(w[y])});const r=n.metaTokens,s=n.visitor||R,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?Vt:n.maxDepth,d=c&&a.isSpecCompliantForm(t),u=[];if(!a.isFunction(s))throw new TypeError("visitor must be a function");function p(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 h("Blob is not supported. Use a Buffer instead.");if(a.isArrayBuffer(f)||a.isTypedArray(f)){if(d&&typeof c=="function")return new c([f]);throw new h("Blob is not supported. Use a Buffer instead.",h.ERR_NOT_SUPPORT)}return f}function b(f){if(f>l)throw new h("Object is too deeply nested ("+f+" levels). Max depth: "+l,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(f,y){if(l===1/0)return JSON.stringify(f);const w=[];return JSON.stringify(f,function(D,x){if(!a.isObject(x))return x;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(x),b(y+w.length-1),x})}function R(f,y,w){let O=f;if(a.isReactNative(t)&&a.isReactNativeBlob(f))return t.append(je(w,y,o),p(f)),!1;if(f&&!w&&typeof f=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),f=E(f,1);else if(a.isArray(f)&&Dr(f)||(a.isFileList(f)||a.endsWith(y,"[]"))&&(O=a.toArray(f)))return y=vt(y),O.forEach(function(x,M){!(a.isUndefined(x)||x===null)&&t.append(i===!0?je([y],M,o):i===null?y:y+"[]",p(x))}),!1}return ze(f)?!0:(t.append(je(w,y,o),p(f)),!1)}const S=Object.assign(Nr,{defaultVisitor:R,convertValue:p,isVisitable:ze});function m(f,y,w=0){if(!a.isUndefined(f)){if(b(w),u.indexOf(f)!==-1)throw new Error("Circular reference detected in "+y.join("."));u.push(f),a.forEach(f,function(D,x){(!(a.isUndefined(D)||D===null)&&s.call(t,D,a.isString(x)?x.trim():x,y,S))===!0&&m(D,y?y.concat(x):[x],w+1)}),u.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return m(e),t}function pt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Xe(e,t){this._pairs=[],e&&Pe(e,this,t)}const Wt=Xe.prototype;Wt.append=function(t,n){this._pairs.push([t,n])};Wt.toString=function(t){const n=t?r=>t.call(this,r,pt):pt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jt(e,t,n){if(!t)return e;e=e||"";const r=a.isFunction(n)?{serialize:n}:n,s=a.getSafeProp(r,"encode")||Fr,o=a.getSafeProp(r,"serialize");let i;if(o?i=o(t,r):i=a.isURLSearchParams(t)?t.toString():new Xe(t,r).toString(s),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ht{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}}const Ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Br=typeof URLSearchParams<"u"?URLSearchParams:Xe,Lr=typeof FormData<"u"?FormData:null,jr=typeof Blob<"u"?Blob:null,Ir={isBrowser:!0,classes:{URLSearchParams:Br,FormData:Lr,Blob:jr},protocols:["http","https","file","blob","url","data"]},Ge=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,kr=Ge&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),qr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hr=Ge&&window.location.href||"http://localhost",Mr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:kr,hasStandardBrowserWebWorkerEnv:qr,navigator:$e,origin:Hr},Symbol.toStringTag,{value:"Module"})),U={...Mr,...Ir};function zr(e,t){return Pe(e,new U.classes.URLSearchParams,{visitor:function(n,r,s,o){return U.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const mt=Vt;function Kt(e){if(e>mt)throw new h("FormData field is too deeply nested ("+e+" levels). Max depth: "+mt,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function $r(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Kt(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Vr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Xt(e){function t(n,r,s,o){Kt(o);let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,l?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!c):((!a.hasOwnProp(s,i)||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Vr(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t($r(r),s,n,0)}),n}return null}const ee=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function vr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pe={transitional:Ze,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Xt(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){const l=ee(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return zr(t,l).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=ee(this,"env"),u=d&&d.FormData;return Pe(c?{"files[]":t}:t,u&&new u,l)}}return o||s?(n.setContentType("application/json",!1),vr(t)):t}],transformResponse:[function(t){const n=ee(this,"transitional")||pe.transitional,r=n&&n.forcedJSONParsing,s=ee(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!s||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,ee(this,"parseReviver"))}catch(l){if(c)throw l.name==="SyntaxError"?h.from(l,h.ERR_BAD_RESPONSE,this,null,ee(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.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","query"],e=>{pe.headers[e]={}});function Ie(e,t){const n=this||pe,r=t||n,s=F.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Zt(e){return!!(e&&e.__CANCEL__)}let he=class extends h{constructor(t,n,r){super(t??"canceled",h.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Gt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new h("Request failed with status code "+n.status,n.status>=400&&n.status<500?h.ERR_BAD_REQUEST:h.ERR_BAD_RESPONSE,n.config,n.request,n))}function Wr(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Jr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=r[o];i||(i=d),n[s]=l,r[s]=d;let p=o,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-i<t)return;const E=u&&d-u;return E?Math.round(b*1e3/E):void 0}}function Kr(e,t){let n=0,r=1e3/t,s,o;const i=(d,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const u=Date.now(),p=u-n;p>=r?i(d,u):(s=d,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const _e=(e,t,n=3)=>{let r=0;const s=Jr(50,250);return Kr(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=Math.max(0,c!=null?Math.min(i,c):i),d=Math.max(0,l-r),u=s(d);r=Math.max(r,l);const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c?(c-l)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},yt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bt=(e,t=a.asap)=>(...n)=>t(()=>e(...n)),Xr=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,Zr=U.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Gr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qr(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const Yr=/^https?:(?!\/\/)/i,es=/[\t\n\r]/g;function ts(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function ns(e){return ts(e).replace(es,"")}function rs(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${xe}`)}function ss(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${xe}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${xe}`);return n===-1?s:`${s}#${rs(t.slice(n+1))}`}function wt(e,t){if(typeof e=="string"){const n=ns(e);if(Yr.test(n))throw new h(`Invalid URL ${JSON.stringify(ss(n))}: missing "//" after protocol`,h.ERR_INVALID_URL,t)}}function Qt(e,t,n,r){wt(t,r);let s=!Gr(t);return e&&(s||n===!1)?(wt(e,r),Qr(e,t)):t}const gt=e=>e instanceof F?{...e}:e,os=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Q(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,p,b,E){return a.isPlainObject(u)&&a.isPlainObject(p)?a.merge.call({caseless:E},u,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function s(u,p,b,E){if(a.isUndefined(p)){if(!a.isUndefined(u))return r(void 0,u,b,E)}else return r(u,p,b,E)}function o(u,p){if(!a.isUndefined(p))return r(void 0,p)}function i(u,p){if(a.isUndefined(p)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function c(u){const p=a.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!a.isUndefined(p))if(a.isPlainObject(p)){if(a.hasOwnProp(p,u))return p[u]}else return;const b=a.hasOwnProp(e,"transitional")?e.transitional:void 0;if(a.isPlainObject(b)&&a.hasOwnProp(b,u))return b[u]}function l(u,p,b){if(a.hasOwnProp(t,b))return r(u,p);if(a.hasOwnProp(e,b))return r(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,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(u,p,b)=>s(gt(u),gt(p),b,!0)};return a.forEach(os({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const b=a.hasOwnProp(d,p)?d[p]:s,E=a.hasOwnProp(e,p)?e[p]:void 0,R=a.hasOwnProp(t,p)?t[p]:void 0,S=b(E,R,p);a.isUndefined(S)&&b!==l||(n[p]=S)}),a.hasOwnProp(t,"validateStatus")&&a.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(a.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const is=["content-type","content-length"];function as(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{is.includes(r.toLowerCase())&&e.set(r,s)})}const cs=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Yt(e){const t=Q({},e),n=b=>a.hasOwnProp(t,b)?t[b]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const l=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),p=n("url");if(t.headers=c=F.from(c),t.url=Jt(Qt(d,p,u,t),n("params"),n("paramsSerializer")),l){const b=a.getSafeProp(l,"username")||"",E=a.getSafeProp(l,"password")||"";try{c.set("Authorization","Basic "+btoa(b+":"+(E?cs(E):"")))}catch(R){throw h.from(R,h.ERR_BAD_OPTION_VALUE,e)}}if(a.isFormData(r)&&(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv||a.isReactNative(r)?c.setContentType(void 0):a.isFunction(r.getHeaders)&&as(c,r.getHeaders(),n("formDataHeaderPolicy"))),U.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&Xr(t.url))){const E=o&&i&&Zr.read(i);E&&c.set(o,E)}return t}const ls=typeof XMLHttpRequest<"u",us=ls&&function(e){return new Promise(function(n,r){const s=Yt(e);let o=s.data;const i=F.from(s.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=s,u,p,b,E,R;function S(){E&&E(),R&&R(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function f(){if(!m)return;const w=F.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),D={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};Gt(function(M){n(M),S()},function(M){r(M),S()},D),m=null}"onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(f)},m.onabort=function(){m&&(r(new h("Request aborted",h.ECONNABORTED,e,m)),S(),m=null)},m.onerror=function(O){const D=O&&O.message?O.message:"Network Error",x=new h(D,h.ERR_NETWORK,e,m);x.event=O||null,r(x),S(),m=null},m.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||Ze;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new h(O,D.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,m)),S(),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(zt(i),function(O,D){m.setRequestHeader(D,O)}),a.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),c&&c!=="json"&&(m.responseType=s.responseType),d&&([b,R]=_e(d,!0),m.addEventListener("progress",b)),l&&m.upload&&([p,E]=_e(l),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(u=w=>{m&&(r(!w||w.type?new he(null,e,m):w),m.abort(),S(),m=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const y=Wr(s.url);if(y&&!U.protocols.includes(y)){r(new h("Unsupported protocol "+y+":",h.ERR_BAD_REQUEST,e)),S();return}m.send(o||null)})},fs=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(l){if(!r){r=!0,i();const d=l instanceof Error?l:this.reason;n.abort(d instanceof h?d:new he(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new h(`timeout of ${t}ms exceeded`,h.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){s.call(l);return}l.addEventListener("abort",s,{once:!0})}});const{signal:c}=n;return c.unsubscribe=()=>a.asap(i),c},ds=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ps=async function*(e,t){for await(const n of hs(e))yield*ds(n,t)},hs=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Et=(e,t,n,r)=>{const s=ps(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await s.next();if(d){c(),l.close();return}let p=u.byteLength;if(n){let b=o+=p;n(b)}l.enqueue(new Uint8Array(u))}catch(d){throw c(d),d}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},Rt=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,en=(e,t,n)=>t+2<n&&Rt(e.charCodeAt(t+1))&&Rt(e.charCodeAt(t+2)),Ot=e=>e<=57?e-48:(e&223)-55,ms=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,ys=e=>e===9||e===10||e===12||e===13||e===32,bs=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},ws=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},gs=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let i=e.charCodeAt(o);if(i===37&&en(e,o,t)&&(i=Ot(e.charCodeAt(o+1))*16+Ot(e.charCodeAt(o+2)),o+=2),!ys(i)){if(i===61){r++;continue}if(!ms(i)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?ws(e):bs(n)},Es=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let i=0;for(let c=0,l=s.length;c<l;c++){const d=s.charCodeAt(c);if(d===37&&en(s,c,l))i+=1,c+=2;else if(d<128)i+=1;else if(d<2048)i+=2;else if(d>=55296&&d<=56319&&c+1<l){const u=s.charCodeAt(c+1);u>=56320&&u<=57343?(i+=4,c++):i+=3}else i+=3}return i};function Rs(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Es(t===-1?e:e.slice(0,t),gs)}const Qe="1.19.0",St=64*1024,{isFunction:we}=a,Os=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),At=e=>{if(!a.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},xt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ss=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},As=e=>{const t=a.global!==void 0&&a.global!==null?a.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=a.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,c=s?we(s):typeof fetch=="function",l=we(o),d=we(i);if(!c)return!1;const u=c&&we(n),p=c&&(typeof r=="function"?(f=>y=>f.encode(y))(new r):async f=>new Uint8Array(await new o(f).arrayBuffer())),b=l&&u&&xt(()=>{let f=!1;const y=new o(U.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),w=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),f&&!w}),E=d&&u&&xt(()=>a.isReadableStream(new i("").body)),R={stream:E&&(f=>f.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!R[f]&&(R[f]=(y,w)=>{let O=y&&y[f];if(O)return O.call(y);throw new h(`Response type '${f}' is not supported`,h.ERR_NOT_SUPPORT,w)})});const S=async f=>{if(f==null)return 0;if(a.isBlob(f))return f.size;if(a.isSpecCompliantForm(f))return(await new o(U.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 p(f)).byteLength},m=async(f,y)=>{const w=a.toFiniteNumber(f.getContentLength());return w??S(y)};return async f=>{let{url:y,method:w,data:O,signal:D,cancelToken:x,timeout:M,onDownloadProgress:Ue,onUploadProgress:De,responseType:z,headers:$,withCredentials:me="same-origin",fetchOptions:nt,maxContentLength:k,maxBodyLength:ye}=Yt(f);const oe=a.isNumber(k)&&k>-1,Ne=a.isNumber(ye)&&ye>-1,gn=A=>a.hasOwnProp(f,A)?f[A]:void 0;let rt=s||fetch;z=z?(z+"").toLowerCase():"text";let V=fs([D,x&&x.toAbortSignal()],M),T=null;const W=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let Y,ie=null;const st=()=>new h("Request body larger than maxBodyLength limit",h.ERR_BAD_REQUEST,f,T);try{let A;const j=gn("auth");if(j){const g=a.getSafeProp(j,"username")||"",L=a.getSafeProp(j,"password")||"";A={username:g,password:L}}if(Ss(y)){const g=new URL(y,U.origin);if(!A&&(g.username||g.password)){const L=At(g.username),v=At(g.password);A={username:L,password:v}}(g.username||g.password)&&(g.username="",g.password="",y=g.href)}if(A&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(Os((A.username||"")+":"+(A.password||""))))),oe&&typeof y=="string"&&y.startsWith("data:")&&Rs(y)>k)throw new h("maxContentLength size of "+k+" exceeded",h.ERR_BAD_RESPONSE,f,T);if(Ne&&w!=="get"&&w!=="head"){const g=await S(O);if(typeof g=="number"&&isFinite(g)&&(Y=g,g>ye))throw st()}const be=Ne&&(a.isReadableStream(O)||a.isStream(O)),ot=(g,L,v)=>Et(g,St,J=>{if(Ne&&J>ye)throw ie=st();L&&L(J)},v);if(b&&w!=="get"&&w!=="head"&&(De||be)){if(Y=Y??await m($,O),Y!==0||be){let g=new o(y,{method:"POST",body:O,duplex:"half"}),L;if(a.isFormData(O)&&(L=g.headers.get("content-type"))&&$.setContentType(L),g.body){const[v,J]=De&&yt(Y,_e(bt(De)))||[];O=ot(g.body,v,J)}}}else if(be&&!l&&u&&w!=="get"&&w!=="head")O=ot(O);else if(be&&l&&!b&&w!=="get"&&w!=="head")throw new h("Stream request bodies are not supported by the current fetch implementation",h.ERR_NOT_SUPPORT,f,T);a.isString(me)||(me=me?"include":"omit");const En=l&&"credentials"in o.prototype;if(a.isFormData(O)){const g=$.getContentType();g&&/^multipart\/form-data/i.test(g)&&!/boundary=/i.test(g)&&$.delete("content-type")}$.set("User-Agent","axios/"+Qe,!1);const it={...nt,signal:V,method:w.toUpperCase(),headers:zt($.normalize()),body:O,duplex:"half",credentials:En?me:void 0};T=l&&new o(y,it);let q=await(l?rt(T,nt):rt(y,it));const at=F.from(q.headers);if(oe){const g=a.toFiniteNumber(at.getContentLength());if(g!=null&&g>k)throw new h("maxContentLength size of "+k+" exceeded",h.ERR_BAD_RESPONSE,f,T)}const Fe=E&&(z==="stream"||z==="response");if(E&&q.body&&(Ue||oe||Fe&&W)){const g={};["status","statusText","headers"].forEach(ae=>{g[ae]=q[ae]});const L=a.toFiniteNumber(at.getContentLength()),[v,J]=Ue&&yt(L,_e(bt(Ue),!0))||[];let ct=0;const Rn=ae=>{if(oe&&(ct=ae,ct>k))throw new h("maxContentLength size of "+k+" exceeded",h.ERR_BAD_RESPONSE,f,T);v&&v(ae)};q=new i(Et(q.body,St,Rn,()=>{J&&J(),W&&W()}),g)}z=z||"text";let H=await R[a.findKey(R,z)||"text"](q,f);if(oe&&!E&&!Fe){let g;if(H!=null&&(typeof H.byteLength=="number"?g=H.byteLength:typeof H.size=="number"?g=H.size:typeof H=="string"&&(g=typeof r=="function"?new r().encode(H).byteLength:H.length)),typeof g=="number"&&g>k)throw new h("maxContentLength size of "+k+" exceeded",h.ERR_BAD_RESPONSE,f,T)}return!Fe&&W&&W(),await new Promise((g,L)=>{Gt(g,L,{data:H,headers:F.from(q.headers),status:q.status,statusText:q.statusText,config:f,request:T})})}catch(A){if(W&&W(),V&&V.aborted&&V.reason instanceof h){const j=V.reason;throw j.config=f,T&&(j.request=T),A!==j&&Object.defineProperty(j,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0}),j}if(ie)throw T&&!ie.request&&(ie.request=T),ie;if(A instanceof h)throw T&&!A.request&&(A.request=T),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){const j=new h("Network Error",h.ERR_NETWORK,f,T,A&&A.response);throw Object.defineProperty(j,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),j}throw h.from(A,A&&A.code,f,T,A&&A.response)}}},xs=new Map,tn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,l,d,u=xs;for(;c--;)l=o[c],d=u.get(l),d===void 0&&u.set(l,d=c?new Map:As(t)),u=d;return d};tn();const Ye={http:Ur,xhr:us,fetch:{get:tn}};a.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const _t=e=>`- ${e}`,_s=e=>a.isFunction(e)||e===null||e===!1;function Ts(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!_s(r)&&(s=Ye[(c=String(r)).toLowerCase()],s===void 0))throw new h(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
`+i.map(_t).join(`
`):" "+_t(i[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,h.ERR_NOT_SUPPORT)}return s}const nn={getAdapter:Ts,adapters:Ye};function ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new he(null,e)}function qe(e){return ke(e),e.headers=F.from(e.headers),e.data=Ie.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nn.getAdapter(e.adapter||pe.adapter,e)(e).then(function(r){ke(e),e.response=r;try{r.data=Ie.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=F.from(r.headers),r},function(r){if(!Zt(r)&&(ke(e),r&&r.response)){e.response=r.response;try{r.response.data=Ie.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=F.from(r.response.headers)}return Promise.reject(r)})}const Ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tt={};Ce.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Qe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new h(s(i," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!Tt[i]&&(Tt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Ce.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ps(e,t,n){if(typeof e!="object"||e===null)throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new h("option "+o+" must be "+l,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const Oe={assertOptions:Ps,validators:Ce},N=Oe.validators;let X=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ht,response:new ht}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(`
`);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(`
`),c=i===-1?-1:o.indexOf(`
`,i+1),l=c===-1?"":o.slice(c+1);String(r.stack).endsWith(l)||(r.stack+=`
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Oe.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean),advertiseZstdAcceptEncoding:N.transitional(N.boolean),validateStatusUndefinedResolves:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Oe.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Oe.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.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","query","common"],R=>{delete o[R]}),n.headers=F.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;l=l&&S.synchronous;const m=n.transitional||Ze;m&&m.legacyInterceptorReqResOrdering?c.unshift(S.fulfilled,S.rejected):c.push(S.fulfilled,S.rejected)});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let u,p=0,b;if(!l){const R=[qe.bind(this),void 0];for(R.unshift(...c),R.push(...d),b=R.length,u=Promise.resolve(n);p<b;)u=u.then(R[p++],R[p++]);return u}b=c.length;let E=n;for(;p<b;){const R=c[p++],S=c[p++];try{E=R?R(E):E}catch(m){if(!S){u=Promise.reject(m);break}try{const f=S.call(this,m);a.isThenable(f)&&(u=Promise.resolve(f).then(()=>qe.call(this,E)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=qe.call(this,E)}catch(R){u=Promise.reject(R)}for(p=0,b=d.length;p<b;)u=u.then(d[p++],d[p++]);return u}getUri(t){t=Q(this.defaults,t);const n=Qt(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Jt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){X.prototype[t]=function(n,r){return this.request(Q(r||{},{method:t,url:n,data:r&&a.hasOwnProp(r,"data")?r.data:void 0}))}});a.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,c){return this.request(Q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}X.prototype[t]=n(),t!=="query"&&(X.prototype[t+"Form"]=n(!0))});let Cs=class rn{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 r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new he(o,i,c),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new rn(function(s){t=s}),cancel:t}}};function Us(e){return function(n){return e.apply(null,n)}}function Ds(e){return a.isObject(e)&&e.isAxiosError===!0}const Ve={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ve).forEach(([e,t])=>{Ve[t]=e});function sn(e){const t=new X(e),n=Ft(X.prototype.request,t);return a.extend(n,X.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return sn(Q(e,s))},n}const _=sn(pe);_.Axios=X;_.CanceledError=he;_.CancelToken=Cs;_.isCancel=Zt;_.VERSION=Qe;_.toFormData=Pe;_.AxiosError=h;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Us;_.isAxiosError=Ds;_.mergeConfig=Q;_.AxiosHeaders=F;_.formToJSON=e=>Xt(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=nn.getAdapter;_.HttpStatusCode=Ve;_.default=_;const{Axios:Gs,AxiosError:Qs,CanceledError:Ys,isCancel:eo,CancelToken:to,VERSION:no,all:ro,Cancel:so,isAxiosError:oo,spread:io,toFormData:ao,AxiosHeaders:co,HttpStatusCode:lo,formToJSON:uo,getAdapter:fo,mergeConfig:po,create:ho}=_,on="3.9.2",Ns=on,Pt=typeof TextDecoder=="function"?new TextDecoder("utf-8",{ignoreBOM:!0}):void 0,Ct=typeof TextEncoder=="function"?new TextEncoder:void 0,Fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",le=Array.prototype.slice.call(Fs),ge=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(le),Bs=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,C=String.fromCharCode.bind(String),Ls=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),an=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),cn=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),ln=e=>{let t,n,r,s,o="";const i=e.length%3;for(let c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(s=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,o+=le[t>>18&63]+le[t>>12&63]+le[t>>6&63]+le[t&63]}return i?o.slice(0,i-3)+"===".substring(i):o},et=typeof btoa=="function"?e=>btoa(e):ln,ve=typeof Uint8Array.prototype.toBase64=="function"?e=>e.toBase64():e=>{let n=[];for(let r=0,s=e.length;r<s;r+=4096)n.push(C.apply(null,e.subarray(r,r+4096)));return et(n.join(""))},Se=(e,t=!1)=>t?an(ve(e)):ve(e),js=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?C(192|t>>>6)+C(128|t&63):C(224|t>>>12&15)+C(128|t>>>6&63)+C(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return C(240|t>>>18&7)+C(128|t>>>12&63)+C(128|t>>>6&63)+C(128|t&63)}},Is=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,un=e=>e.replace(Is,js),Ut=Ct?e=>ve(Ct.encode(e)):e=>et(un(e)),te=(e,t=!1)=>t?an(Ut(e)):Ut(e),Dt=e=>te(e,!0),ks=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,qs=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return C((n>>>10)+55296)+C((n&1023)+56320);case 3:return C((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return C((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},fn=e=>e.replace(ks,qs),dn=e=>{if(e=e.replace(/\s+/g,""),!Bs.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n,r,s=[];for(let o=0;o<e.length;)t=ge[e.charAt(o++)]<<18|ge[e.charAt(o++)]<<12|(n=ge[e.charAt(o++)])<<6|(r=ge[e.charAt(o++)]),n===64?s.push(C(t>>16&255)):r===64?s.push(C(t>>16&255,t>>8&255)):s.push(C(t>>16&255,t>>8&255,t&255));return s.join("")},tt=typeof atob=="function"?e=>atob(cn(e)):dn,pn=typeof Uint8Array.fromBase64=="function"?e=>Uint8Array.fromBase64(e):e=>Ls(tt(e).split("").map(t=>t.charCodeAt(0))),hn=e=>pn(mn(e)),Hs=Pt?e=>Pt.decode(pn(e)):e=>fn(tt(e)),mn=e=>cn(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),We=e=>Hs(mn(e)),Ms=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},yn=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),bn=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,yn(n));e("fromBase64",function(){return We(this)}),e("toBase64",function(t){return te(this,t)}),e("toBase64URI",function(){return te(this,!0)}),e("toBase64URL",function(){return te(this,!0)}),e("toUint8Array",function(){return hn(this)})},wn=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,yn(n));e("toBase64",function(t){return Se(this,t)}),e("toBase64URI",function(){return Se(this,!0)}),e("toBase64URL",function(){return Se(this,!0)})},zs=()=>{bn(),wn()},mo={version:on,VERSION:Ns,atob:tt,atobPolyfill:dn,btoa:et,btoaPolyfill:ln,fromBase64:We,toBase64:te,encode:te,encodeURI:Dt,encodeURL:Dt,utob:un,btou:fn,decode:We,isValid:Ms,fromUint8Array:Se,toUint8Array:hn,extendString:bn,extendUint8Array:wn,extendBuiltins:zs},P=[];for(let e=0;e<256;++e)P.push((e+256).toString(16).slice(1));function $s(e,t=0){return(P[e[t+0]]+P[e[t+1]]+P[e[t+2]]+P[e[t+3]]+"-"+P[e[t+4]]+P[e[t+5]]+"-"+P[e[t+6]]+P[e[t+7]]+"-"+P[e[t+8]]+P[e[t+9]]+"-"+P[e[t+10]]+P[e[t+11]]+P[e[t+12]]+P[e[t+13]]+P[e[t+14]]+P[e[t+15]]).toLowerCase()}let He;const Vs=new Uint8Array(16);function vs(){if(!He){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");He=crypto.getRandomValues.bind(crypto)}return He(Vs)}const Ws=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nt={randomUUID:Ws};function Js(e,t,n){var s;e=e||{};const r=e.random??((s=e.rng)==null?void 0:s.call(e))??vs();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,$s(r)}function yo(e,t,n){return Nt.randomUUID&&!e?Nt.randomUUID():Js(e)}export{_ as a,mo as g,yo as v};