@7uan/utils
Version:
This is the repository to make some utils functions, re-libraries, helpers, constants, types, etc...
4 lines • 51.6 kB
JavaScript
'use strict';var wn=Object.create;var ar=Object.defineProperty;var bn=Object.getOwnPropertyDescriptor;var Pn=Object.getOwnPropertyNames;var Dn=Object.getPrototypeOf,Un=Object.prototype.hasOwnProperty;var xn=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Mn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Pn(e))!Un.call(r,o)&&o!==t&&ar(r,o,{get:()=>e[o],enumerable:!(n=bn(e,o))||n.enumerable});return r};var Fn=(r,e,t)=>(t=r!=null?wn(Dn(r)):{},Mn(ar(t,"default",{value:r,enumerable:true}),r));var B=s((ga,cr)=>{cr.exports=TypeError;});var pr=s((Ta,ur)=>{ur.exports=xn("util").inspect;});var oe=s((Oa,Dr)=>{var Be=typeof Map=="function"&&Map.prototype,Pe=Object.getOwnPropertyDescriptor&&Be?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ee=Be&&Pe&&typeof Pe.get=="function"?Pe.get:null,yr=Be&&Map.prototype.forEach,Ge=typeof Set=="function"&&Set.prototype,De=Object.getOwnPropertyDescriptor&&Ge?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,de=Ge&&De&&typeof De.get=="function"?De.get:null,sr=Ge&&Set.prototype.forEach,Ln=typeof WeakMap=="function"&&WeakMap.prototype,re=Ln?WeakMap.prototype.has:null,qn=typeof WeakSet=="function"&&WeakSet.prototype,te=qn?WeakSet.prototype.has:null,$n=typeof WeakRef=="function"&&WeakRef.prototype,Er=$n?WeakRef.prototype.deref:null,Bn=Boolean.prototype.valueOf,Gn=Object.prototype.toString,Cn=Function.prototype.toString,Hn=String.prototype.match,Ce=String.prototype.slice,F=String.prototype.replace,Qn=String.prototype.toUpperCase,dr=String.prototype.toLowerCase,Ir=RegExp.prototype.test,vr=Array.prototype.concat,N=Array.prototype.join,Wn=Array.prototype.slice,mr=Math.floor,Me=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ue=Object.getOwnPropertySymbols,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||true)?Symbol.toStringTag:null,Nr=Object.prototype.propertyIsEnumerable,gr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Tr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Ir.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-mr(-r):mr(r);if(n!==r){var o=String(n),a=Ce.call(e,o.length+1);return F.call(o,t,"$&_")+"."+F.call(F.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(e,t,"$&_")}var Le=pr(),Or=Le.custom,hr=wr(Or)?Or:null,_r={__proto__:null,double:'"',single:"'"},kn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Dr.exports=function r(e,t,n,o){var a=t||{};if(b(a,"quoteStyle")&&!b(_r,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(b(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=b(a,"customInspect")?a.customInspect:true;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(b(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(b(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof e>"u")return "undefined";if(e===null)return "null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Pr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return u?Tr(e,f):f}if(typeof e=="bigint"){var y=String(e)+"n";return u?Tr(e,y):y}var p=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof e=="object")return qe(e)?"[Array]":"[Object]";var E=co(a,n);if(typeof o>"u")o=[];else if(br(o,e)>=0)return "[Circular]";function c(I,M,w){if(M&&(o=Wn.call(o),o.push(M)),w){var Z={depth:a.depth};return b(a,"quoteStyle")&&(Z.quoteStyle=a.quoteStyle),r(I,Z,n+1,o)}return r(I,a,n+1,o)}if(typeof e=="function"&&!Ar(e)){var g=eo(e),m=se(e,c);return "[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+N.call(m,", ")+" }":"")}if(wr(e)){var A=V?F.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Fe.call(e);return typeof e=="object"&&!V?ee(A):A}if(ao(e)){for(var R="<"+dr.call(String(e.nodeName)),P=e.attributes||[],D=0;D<P.length;D++)R+=" "+P[D].name+"="+Sr(Vn(P[D].value),"double",a);return R+=">",e.childNodes&&e.childNodes.length&&(R+="..."),R+="</"+dr.call(String(e.nodeName))+">",R}if(qe(e)){if(e.length===0)return "[]";var v=se(e,c);return E&&!fo(v)?"["+$e(v,E)+"]":"[ "+N.call(v,", ")+" ]"}if(Kn(e)){var U=se(e,c);return !("cause"in Error.prototype)&&"cause"in e&&!Nr.call(e,"cause")?"{ ["+String(e)+"] "+N.call(vr.call("[cause]: "+c(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+N.call(U,", ")+" }"}if(typeof e=="object"&&l){if(hr&&typeof e[hr]=="function"&&Le)return Le(e,{depth:p-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ro(e)){var q=[];return yr&&yr.call(e,function(I,M){q.push(c(M,e,true)+" => "+c(I,e));}),Rr("Map",Ee.call(e),q,E)}if(oo(e)){var X=[];return sr&&sr.call(e,function(I){X.push(c(I,e));}),Rr("Set",de.call(e),X,E)}if(to(e))return xe("WeakMap");if(io(e))return xe("WeakSet");if(no(e))return xe("WeakRef");if(jn(e))return ee(c(Number(e)));if(Xn(e))return ee(c(Me.call(e)));if(Jn(e))return ee(Bn.call(e));if(zn(e))return ee(c(String(e)));if(typeof window<"u"&&e===window)return "{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return "{ [object globalThis] }";if(!Yn(e)&&!Ar(e)){var W=se(e,c),pe=gr?gr(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",x=!pe&&ne&&Object(e)===e&&ne in e?Ce.call(L(e),8,-1):$?"Object":"",ye=pe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=ye+(x||$?"["+N.call(vr.call([],x||[],$||[]),": ")+"] ":"");return W.length===0?k+"{}":E?k+"{"+$e(W,E)+"}":k+"{ "+N.call(W,", ")+" }"}return String(e)};function Sr(r,e,t){var n=t.quoteStyle||e,o=_r[n];return o+r+o}function Vn(r){return F.call(String(r),/"/g,""")}function G(r){return !ne||!(typeof r=="object"&&(ne in r||typeof r[ne]<"u"))}function qe(r){return L(r)==="[object Array]"&&G(r)}function Yn(r){return L(r)==="[object Date]"&&G(r)}function Ar(r){return L(r)==="[object RegExp]"&&G(r)}function Kn(r){return L(r)==="[object Error]"&&G(r)}function zn(r){return L(r)==="[object String]"&&G(r)}function jn(r){return L(r)==="[object Number]"&&G(r)}function Jn(r){return L(r)==="[object Boolean]"&&G(r)}function wr(r){if(V)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return true;if(!r||typeof r!="object"||!Fe)return false;try{return Fe.call(r),!0}catch{}return false}function Xn(r){if(!r||typeof r!="object"||!Me)return false;try{return Me.call(r),!0}catch{}return false}var Zn=Object.prototype.hasOwnProperty||function(r){return r in this};function b(r,e){return Zn.call(r,e)}function L(r){return Gn.call(r)}function eo(r){if(r.name)return r.name;var e=Hn.call(Cn.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function br(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return -1}function ro(r){if(!Ee||!r||typeof r!="object")return false;try{Ee.call(r);try{de.call(r);}catch{return !0}return r instanceof Map}catch{}return false}function to(r){if(!re||!r||typeof r!="object")return false;try{re.call(r,re);try{te.call(r,te);}catch{return !0}return r instanceof WeakMap}catch{}return false}function no(r){if(!Er||!r||typeof r!="object")return false;try{return Er.call(r),!0}catch{}return false}function oo(r){if(!de||!r||typeof r!="object")return false;try{de.call(r);try{Ee.call(r);}catch{return !0}return r instanceof Set}catch{}return false}function io(r){if(!te||!r||typeof r!="object")return false;try{te.call(r,te);try{re.call(r,re);}catch{return !0}return r instanceof WeakSet}catch{}return false}function ao(r){return !r||typeof r!="object"?false:typeof HTMLElement<"u"&&r instanceof HTMLElement?true:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Pr(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Pr(Ce.call(r,0,e.maxStringLength),e)+n}var o=kn[e.quoteStyle||"single"];o.lastIndex=0;var a=F.call(F.call(r,o,"\\$1"),/[\x00-\x1f]/g,lo);return Sr(a,"single",e)}function lo(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Qn.call(e.toString(16))}function ee(r){return "Object("+r+")"}function xe(r){return r+" { ? }"}function Rr(r,e,t,n){var o=n?$e(t,n):N.call(t,", ");return r+" ("+e+") {"+o+"}"}function fo(r){for(var e=0;e<r.length;e++)if(br(r[e],`
`)>=0)return false;return true}function co(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=N.call(Array(r.indent+1)," ");else return null;return {base:t,prev:N.call(Array(e+1),t)}}function $e(r,e){if(r.length===0)return "";var t=`
`+e.prev+e.base;return t+N.call(r,","+t)+`
`+e.prev}function se(r,e){var t=qe(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=b(r,o)?e(r[o],r):"";}var a=typeof Ue=="function"?Ue(r):[],l;if(V){l={};for(var u=0;u<a.length;u++)l["$"+a[u]]=a[u];}for(var f in r)b(r,f)&&(t&&String(Number(f))===f&&f<r.length||V&&l["$"+f]instanceof Symbol||(Ir.call(/[^\w$]/,f)?n.push(e(f,r)+": "+e(r[f],r)):n.push(f+": "+e(r[f],r))));if(typeof Ue=="function")for(var y=0;y<a.length;y++)Nr.call(r,a[y])&&n.push("["+e(a[y])+"]: "+e(r[a[y]],r));return n}});var xr=s((ha,Ur)=>{var uo=oe(),po=B(),ve=function(r,e,t){for(var n=r,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,t||(o.next=r.next,r.next=o),o},yo=function(r,e){if(r){var t=ve(r,e);return t&&t.value}},so=function(r,e,t){var n=ve(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t};},Eo=function(r,e){return r?!!ve(r,e):false},vo=function(r,e){if(r)return ve(r,e,true)};Ur.exports=function(){var e,t={assert:function(n){if(!t.has(n))throw new po("Side channel does not contain "+uo(n))},delete:function(n){var o=e&&e.next,a=vo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return yo(e,n)},has:function(n){return Eo(e,n)},set:function(n,o){e||(e={next:void 0}),so(e,n,o);}};return t};});var He=s((Aa,Mr)=>{Mr.exports=Object;});var Lr=s((Ra,Fr)=>{Fr.exports=Error;});var $r=s((Ia,qr)=>{qr.exports=EvalError;});var Gr=s((Na,Br)=>{Br.exports=RangeError;});var Hr=s((_a,Cr)=>{Cr.exports=ReferenceError;});var Wr=s((Sa,Qr)=>{Qr.exports=SyntaxError;});var Vr=s((wa,kr)=>{kr.exports=URIError;});var Kr=s((ba,Yr)=>{Yr.exports=Math.abs;});var jr=s((Pa,zr)=>{zr.exports=Math.floor;});var Xr=s((Da,Jr)=>{Jr.exports=Math.max;});var et=s((Ua,Zr)=>{Zr.exports=Math.min;});var tt=s((xa,rt)=>{rt.exports=Math.pow;});var ot=s((Ma,nt)=>{nt.exports=Math.round;});var at=s((Fa,it)=>{it.exports=Number.isNaN||function(e){return e!==e};});var ft=s((La,lt)=>{var mo=at();lt.exports=function(e){return mo(e)||e===0?e:e<0?-1:1};});var ut=s((qa,ct)=>{ct.exports=Object.getOwnPropertyDescriptor;});var Qe=s(($a,pt)=>{var me=ut();if(me)try{me([],"length");}catch{me=null;}pt.exports=me;});var st=s((Ba,yt)=>{var ge=Object.defineProperty||false;if(ge)try{ge({},"a",{value:1});}catch{ge=false;}yt.exports=ge;});var dt=s((Ga,Et)=>{Et.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(typeof Symbol.iterator=="symbol")return true;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return false;var o=42;e[t]=o;for(var a in e)return false;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return false;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==o||u.enumerable!==true)return false}return true};});var gt=s((Ca,mt)=>{var vt=typeof Symbol<"u"&&Symbol,go=dt();mt.exports=function(){return typeof vt!="function"||typeof Symbol!="function"||typeof vt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?false:go()};});var We=s((Ha,Tt)=>{Tt.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var ke=s((Qa,Ot)=>{var To=He();Ot.exports=To.getPrototypeOf||null;});var Rt=s((Wa,At)=>{var Oo="Function.prototype.bind called on incompatible ",ho=Object.prototype.toString,Ao=Math.max,Ro="[object Function]",ht=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},Io=function(e,t){for(var n=[],o=t,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},No=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};At.exports=function(e){var t=this;if(typeof t!="function"||ho.apply(t)!==Ro)throw new TypeError(Oo+t);for(var n=Io(arguments,1),o,a=function(){if(this instanceof o){var p=t.apply(this,ht(n,arguments));return Object(p)===p?p:this}return t.apply(e,ht(n,arguments))},l=Ao(0,t.length-n.length),u=[],f=0;f<l;f++)u[f]="$"+f;if(o=Function("binder","return function ("+No(u,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var y=function(){};y.prototype=t.prototype,o.prototype=new y,y.prototype=null;}return o};});var ie=s((ka,It)=>{var _o=Rt();It.exports=Function.prototype.bind||_o;});var Te=s((Va,Nt)=>{Nt.exports=Function.prototype.call;});var Ve=s((Ya,_t)=>{_t.exports=Function.prototype.apply;});var wt=s((Ka,St)=>{St.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var Pt=s((za,bt)=>{var So=ie(),wo=Ve(),bo=Te(),Po=wt();bt.exports=Po||So.call(bo,wo);});var Ye=s((ja,Dt)=>{var Do=ie(),Uo=B(),xo=Te(),Mo=Pt();Dt.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Uo("a function is required");return Mo(Do,xo,e)};});var qt=s((Ja,Lt)=>{var Fo=Ye(),Ut=Qe(),Mt;try{Mt=[].__proto__===Array.prototype;}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Ke=!!Mt&&Ut&&Ut(Object.prototype,"__proto__"),Ft=Object,xt=Ft.getPrototypeOf;Lt.exports=Ke&&typeof Ke.get=="function"?Fo([Ke.get]):typeof xt=="function"?function(e){return xt(e==null?e:Ft(e))}:false;});var Ht=s((Xa,Ct)=>{var $t=We(),Bt=ke(),Gt=qt();Ct.exports=$t?function(e){return $t(e)}:Bt?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Bt(e)}:Gt?function(e){return Gt(e)}:null;});var Wt=s((Za,Qt)=>{var Lo=Function.prototype.call,qo=Object.prototype.hasOwnProperty,$o=ie();Qt.exports=$o.call(Lo,qo);});var Ae=s((el,jt)=>{var d,Bo=He(),Go=Lr(),Co=$r(),Ho=Gr(),Qo=Hr(),j=Wr(),z=B(),Wo=Vr(),ko=Kr(),Vo=jr(),Yo=Xr(),Ko=et(),zo=tt(),jo=ot(),Jo=ft(),Kt=Function,ze=function(r){try{return Kt('"use strict"; return ('+r+").constructor;")()}catch{}},ae=Qe(),Xo=st(),je=function(){throw new z},Zo=ae?function(){try{return arguments.callee,je}catch{try{return ae(arguments,"callee").get}catch{return je}}}():je,Y=gt()(),h=Ht(),ei=ke(),ri=We(),zt=Ve(),le=Te(),K={},ti=typeof Uint8Array>"u"||!h?d:h(Uint8Array),C={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&h?h([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Go,"%eval%":eval,"%EvalError%":Co,"%Float16Array%":typeof Float16Array>"u"?d:Float16Array,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":Kt,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&h?h(h([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!h?d:h(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Bo,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":Ho,"%ReferenceError%":Qo,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!h?d:h(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&h?h(""[Symbol.iterator]()):d,"%Symbol%":Y?Symbol:d,"%SyntaxError%":j,"%ThrowTypeError%":Zo,"%TypedArray%":ti,"%TypeError%":z,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":Wo,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet,"%Function.prototype.call%":le,"%Function.prototype.apply%":zt,"%Object.defineProperty%":Xo,"%Object.getPrototypeOf%":ei,"%Math.abs%":ko,"%Math.floor%":Vo,"%Math.max%":Yo,"%Math.min%":Ko,"%Math.pow%":zo,"%Math.round%":jo,"%Math.sign%":Jo,"%Reflect.getPrototypeOf%":ri};if(h)try{null.error;}catch(r){kt=h(h(r)),C["%Error.prototype%"]=kt;}var kt,ni=function r(e){var t;if(e==="%AsyncFunction%")t=ze("async function () {}");else if(e==="%GeneratorFunction%")t=ze("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=ze("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype);}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&h&&(t=h(o.prototype));}return C[e]=t,t},Vt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fe=ie(),Oe=Wt(),oi=fe.call(le,Array.prototype.concat),ii=fe.call(zt,Array.prototype.splice),Yt=fe.call(le,String.prototype.replace),he=fe.call(le,String.prototype.slice),ai=fe.call(le,RegExp.prototype.exec),li=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fi=/\\(\\)?/g,ci=function(e){var t=he(e,0,1),n=he(e,-1);if(t==="%"&&n!=="%")throw new j("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new j("invalid intrinsic syntax, expected opening `%`");var o=[];return Yt(e,li,function(a,l,u,f){o[o.length]=u?Yt(f,fi,"$1"):l||a;}),o},ui=function(e,t){var n=e,o;if(Oe(Vt,n)&&(o=Vt[n],n="%"+o[0]+"%"),Oe(C,n)){var a=C[n];if(a===K&&(a=ni(n)),typeof a>"u"&&!t)throw new z("intrinsic "+e+" exists, but is not available. Please file an issue!");return {alias:o,name:n,value:a}}throw new j("intrinsic "+e+" does not exist!")};jt.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new z('"allowMissing" argument must be a boolean');if(ai(/^%?[^%]*%?$/,e)===null)throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ci(e),o=n.length>0?n[0]:"",a=ui("%"+o+"%",t),l=a.name,u=a.value,f=false,y=a.alias;y&&(o=y[0],ii(n,oi([0,1],y)));for(var p=1,E=true;p<n.length;p+=1){var c=n[p],g=he(c,0,1),m=he(c,-1);if((g==='"'||g==="'"||g==="`"||m==='"'||m==="'"||m==="`")&&g!==m)throw new j("property names with quotes must have matching quotes");if((c==="constructor"||!E)&&(f=true),o+="."+c,l="%"+o+"%",Oe(C,l))u=C[l];else if(u!=null){if(!(c in u)){if(!t)throw new z("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&p+1>=n.length){var A=ae(u,c);E=!!A,E&&"get"in A&&!("originalValue"in A.get)?u=A.get:u=u[c];}else E=Oe(u,c),u=u[c];E&&!f&&(C[l]=u);}}return u};});var Je=s((rl,Zt)=>{var Jt=Ae(),Xt=Ye(),pi=Xt([Jt("%String.prototype.indexOf%")]);Zt.exports=function(e,t){var n=Jt(e,!!t);return typeof n=="function"&&pi(e,".prototype.")>-1?Xt([n]):n};});var Xe=s((tl,rn)=>{var yi=Ae(),ce=Je(),si=oe(),Ei=B(),en=yi("%Map%",true),di=ce("Map.prototype.get",true),vi=ce("Map.prototype.set",true),mi=ce("Map.prototype.has",true),gi=ce("Map.prototype.delete",true),Ti=ce("Map.prototype.size",true);rn.exports=!!en&&function(){var e,t={assert:function(n){if(!t.has(n))throw new Ei("Side channel does not contain "+si(n))},delete:function(n){if(e){var o=gi(e,n);return Ti(e)===0&&(e=void 0),o}return false},get:function(n){if(e)return di(e,n)},has:function(n){return e?mi(e,n):false},set:function(n,o){e||(e=new en),vi(e,n,o);}};return t};});var nn=s((nl,tn)=>{var Oi=Ae(),Ie=Je(),hi=oe(),Re=Xe(),Ai=B(),J=Oi("%WeakMap%",true),Ri=Ie("WeakMap.prototype.get",true),Ii=Ie("WeakMap.prototype.set",true),Ni=Ie("WeakMap.prototype.has",true),_i=Ie("WeakMap.prototype.delete",true);tn.exports=J?function(){var e,t,n={assert:function(o){if(!n.has(o))throw new Ai("Side channel does not contain "+hi(o))},delete:function(o){if(J&&o&&(typeof o=="object"||typeof o=="function")){if(e)return _i(e,o)}else if(Re&&t)return t.delete(o);return false},get:function(o){return J&&o&&(typeof o=="object"||typeof o=="function")&&e?Ri(e,o):t&&t.get(o)},has:function(o){return J&&o&&(typeof o=="object"||typeof o=="function")&&e?Ni(e,o):!!t&&t.has(o)},set:function(o,a){J&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new J),Ii(e,o,a)):Re&&(t||(t=Re()),t.set(o,a));}};return n}:Re;});var an=s((ol,on)=>{var Si=B(),wi=oe(),bi=xr(),Pi=Xe(),Di=nn(),Ui=Di||Pi||bi;on.exports=function(){var e,t={assert:function(n){if(!t.has(n))throw new Si("Side channel does not contain "+wi(n))},delete:function(n){return !!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return !!e&&e.has(n)},set:function(n,o){e||(e=Ui()),e.set(n,o);}};return t};});var Ne=s((il,ln)=>{var xi=String.prototype.replace,Mi=/%20/g,Ze={RFC1738:"RFC1738",RFC3986:"RFC3986"};ln.exports={default:Ze.RFC3986,formatters:{RFC1738:function(r){return xi.call(r,Mi,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ze.RFC1738,RFC3986:Ze.RFC3986};});var tr=s((al,cn)=>{var Fi=Ne(),er=Object.prototype.hasOwnProperty,H=Array.isArray,_=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Li=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(H(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);t.obj[t.prop]=o;}}},fn=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},qi=function r(e,t,n){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(H(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!er.call(Object.prototype,t))&&(e[t]=true);else return [e,t];return e}if(!e||typeof e!="object")return [e].concat(t);var o=e;return H(e)&&!H(t)&&(o=fn(e,n)),H(e)&&H(t)?(t.forEach(function(a,l){if(er.call(e,l)){var u=e[l];u&&typeof u=="object"&&a&&typeof a=="object"?e[l]=r(u,a,n):e.push(a);}else e[l]=a;}),e):Object.keys(t).reduce(function(a,l){var u=t[l];return er.call(a,l)?a[l]=r(a[l],u,n):a[l]=u,a},o)},$i=function(e,t){return Object.keys(t).reduce(function(n,o){return n[o]=t[o],n},e)},Bi=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},rr=1024,Gi=function(e,t,n,o,a){if(e.length===0)return e;var l=e;if(typeof e=="symbol"?l=Symbol.prototype.toString.call(e):typeof e!="string"&&(l=String(e)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(g){return "%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;f+=rr){for(var y=l.length>=rr?l.slice(f,f+rr):l,p=[],E=0;E<y.length;++E){var c=y.charCodeAt(E);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===Fi.RFC1738&&(c===40||c===41)){p[p.length]=y.charAt(E);continue}if(c<128){p[p.length]=_[c];continue}if(c<2048){p[p.length]=_[192|c>>6]+_[128|c&63];continue}if(c<55296||c>=57344){p[p.length]=_[224|c>>12]+_[128|c>>6&63]+_[128|c&63];continue}E+=1,c=65536+((c&1023)<<10|y.charCodeAt(E)&1023),p[p.length]=_[240|c>>18]+_[128|c>>12&63]+_[128|c>>6&63]+_[128|c&63];}u+=p.join("");}return u},Ci=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],l=a.obj[a.prop],u=Object.keys(l),f=0;f<u.length;++f){var y=u[f],p=l[y];typeof p=="object"&&p!==null&&n.indexOf(p)===-1&&(t.push({obj:l,prop:y}),n.push(p));}return Li(t),e},Hi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Qi=function(e){return !e||typeof e!="object"?false:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Wi=function(e,t){return [].concat(e,t)},ki=function(e,t){if(H(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)};cn.exports={arrayToObject:fn,assign:$i,combine:Wi,compact:Ci,decode:Bi,encode:Gi,isBuffer:Qi,isRegExp:Hi,maybeMap:ki,merge:qi};});var dn=s((ll,En)=>{var pn=an(),_e=tr(),ue=Ne(),Vi=Object.prototype.hasOwnProperty,yn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},S=Array.isArray,Yi=Array.prototype.push,sn=function(r,e){Yi.apply(r,S(e)?e:[e]);},Ki=Date.prototype.toISOString,un=ue.default,O={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:_e.encode,encodeValuesOnly:false,filter:void 0,format:un,formatter:ue.formatters[un],indices:false,serializeDate:function(e){return Ki.call(e)},skipNulls:false,strictNullHandling:false},zi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},nr={},ji=function r(e,t,n,o,a,l,u,f,y,p,E,c,g,m,A,R,P,D){for(var v=e,U=D,q=0,X=false;(U=U.get(nr))!==void 0&&!X;){var W=U.get(e);if(q+=1,typeof W<"u"){if(W===q)throw new RangeError("Cyclic object value");X=true;}typeof U.get(nr)>"u"&&(q=0);}if(typeof p=="function"?v=p(t,v):v instanceof Date?v=g(v):n==="comma"&&S(v)&&(v=_e.maybeMap(v,function(be){return be instanceof Date?g(be):be})),v===null){if(l)return y&&!R?y(t,O.encoder,P,"key",m):t;v="";}if(zi(v)||_e.isBuffer(v)){if(y){var pe=R?t:y(t,O.encoder,P,"key",m);return [A(pe)+"="+A(y(v,O.encoder,P,"value",m))]}return [A(t)+"="+A(String(v))]}var $=[];if(typeof v>"u")return $;var x;if(n==="comma"&&S(v))R&&y&&(v=_e.maybeMap(v,y)),x=[{value:v.length>0?v.join(",")||null:void 0}];else if(S(p))x=p;else {var ye=Object.keys(v);x=E?ye.sort(E):ye;}var k=f?String(t).replace(/\./g,"%2E"):String(t),I=o&&S(v)&&v.length===1?k+"[]":k;if(a&&S(v)&&v.length===0)return I+"[]";for(var M=0;M<x.length;++M){var w=x[M],Z=typeof w=="object"&&w&&typeof w.value<"u"?w.value:v[w];if(!(u&&Z===null)){var we=c&&f?String(w).replace(/\./g,"%2E"):String(w),Sn=S(v)?typeof n=="function"?n(I,we):I:I+(c?"."+we:"["+we+"]");D.set(e,q);var ir=pn();ir.set(nr,D),sn($,r(Z,Sn,n,o,a,l,u,f,n==="comma"&&R&&S(v)?null:y,p,E,c,g,m,A,R,P,ir));}}return $},Ji=function(e){if(!e)return O;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||O.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ue.default;if(typeof e.format<"u"){if(!Vi.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format;}var o=ue.formatters[n],a=O.filter;(typeof e.filter=="function"||S(e.filter))&&(a=e.filter);var l;if(e.arrayFormat in yn?l=e.arrayFormat:"indices"in e?l=e.indices?"indices":"repeat":l=O.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===true?true:O.allowDots:!!e.allowDots;return {addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:O.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:O.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:O.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?O.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:O.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:O.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:O.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:O.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:O.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:O.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:O.strictNullHandling}};En.exports=function(r,e){var t=r,n=Ji(e),o,a;typeof n.filter=="function"?(a=n.filter,t=a("",t)):S(n.filter)&&(a=n.filter,o=a);var l=[];if(typeof t!="object"||t===null)return "";var u=yn[n.arrayFormat],f=u==="comma"&&n.commaRoundTrip;o||(o=Object.keys(t)),n.sort&&o.sort(n.sort);for(var y=pn(),p=0;p<o.length;++p){var E=o[p],c=t[E];n.skipNulls&&c===null||sn(l,ji(c,E,u,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,y));}var g=l.join(n.delimiter),m=n.addQueryPrefix===true?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),g.length>0?m+g:""};});var Tn=s((fl,gn)=>{var Q=tr(),or=Object.prototype.hasOwnProperty,vn=Array.isArray,T={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:Q.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false,throwOnLimitExceeded:false},Xi=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},mn=function(r,e,t){if(r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1)return r.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return r},Zi="utf8=%26%2310003%3B",ea="utf8=%E2%9C%93",ra=function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,t.throwOnLimitExceeded?a+1:a);if(t.throwOnLimitExceeded&&l.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var u=-1,f,y=t.charset;if(t.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===ea?y="utf-8":l[f]===Zi&&(y="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var p=l[f],E=p.indexOf("]="),c=E===-1?p.indexOf("="):E+1,g,m;c===-1?(g=t.decoder(p,T.decoder,y,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(p.slice(0,c),T.decoder,y,"key"),m=Q.maybeMap(mn(p.slice(c+1),t,vn(n[g])?n[g].length:0),function(R){return t.decoder(R,T.decoder,y,"value")})),m&&t.interpretNumericEntities&&y==="iso-8859-1"&&(m=Xi(String(m))),p.indexOf("[]=")>-1&&(m=vn(m)?[m]:m);var A=or.call(n,g);A&&t.duplicates==="combine"?n[g]=Q.combine(n[g],m):(!A||t.duplicates==="last")&&(n[g]=m);}return n},ta=function(r,e,t,n){var o=0;if(r.length>0&&r[r.length-1]==="[]"){var a=r.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0;}for(var l=n?e:mn(e,t,o),u=r.length-1;u>=0;--u){var f,y=r[u];if(y==="[]"&&t.parseArrays)f=t.allowEmptyArrays&&(l===""||t.strictNullHandling&&l===null)?[]:Q.combine([],l);else {f=t.plainObjects?{__proto__:null}:{};var p=y.charAt(0)==="["&&y.charAt(y.length-1)==="]"?y.slice(1,-1):y,E=t.decodeDotInKeys?p.replace(/%2E/g,"."):p,c=parseInt(E,10);!t.parseArrays&&E===""?f={0:l}:!isNaN(c)&&y!==E&&String(c)===E&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(f=[],f[c]=l):E!=="__proto__"&&(f[E]=l);}l=f;}return l},na=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(a),y=f?a.slice(0,f.index):a,p=[];if(y){if(!n.plainObjects&&or.call(Object.prototype,y)&&!n.allowPrototypes)return;p.push(y);}for(var E=0;n.depth>0&&(f=u.exec(a))!==null&&E<n.depth;){if(E+=1,!n.plainObjects&&or.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(f[1]);}if(f){if(n.strictDepth===true)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");p.push("["+a.slice(f.index)+"]");}return ta(p,t,n,o)}},oa=function(e){if(!e)return T;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?T.charset:e.charset,n=typeof e.duplicates>"u"?T.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===true?true:T.allowDots:!!e.allowDots;return {allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:T.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:T.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:T.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:T.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:T.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:T.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:T.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:T.decoder,delimiter:typeof e.delimiter=="string"||Q.isRegExp(e.delimiter)?e.delimiter:T.delimiter,depth:typeof e.depth=="number"||e.depth===false?+e.depth:T.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:T.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:T.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:T.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:T.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:T.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:false}};gn.exports=function(r,e){var t=oa(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r=="string"?ra(r,t):r,o=t.plainObjects?{__proto__:null}:{},a=Object.keys(n),l=0;l<a.length;++l){var u=a[l],f=na(u,n[u],t,typeof r=="string");o=Q.merge(o,f,t);}return t.allowSparse===true?o:Q.compact(o)};});var hn=s((cl,On)=>{var ia=dn(),aa=Tn(),la=Ne();On.exports={formats:la,parse:aa,stringify:ia};});function lr(r){if(r==null)return r;if(Array.isArray(r))return r.map(e=>lr(e));if(r&&typeof r=="object"){let e={};return Object.keys(r).forEach(t=>{let n=t.replace(/_([a-z])/g,(a,l)=>l.toUpperCase()),o=r[t];e[n]=o&&typeof o=="object"?lr(o):o;}),e}throw new TypeError("Input must be an object or an array of objects.")}function fr(r){if(r==null||typeof r!="object"||r===null)return r;if(Array.isArray(r))return r.map(e=>fr(e));if(typeof r=="object"){let e={};return Object.keys(r).forEach(t=>{let n=t.replace(/[A-Z]/g,o=>`_${o.toLowerCase()}`);e[n]=fr(r[t]);}),e}throw new TypeError("Input must be an object or an array of objects.")}var Ea=r=>r?(r=r.toLowerCase(),r=r.normalize("NFD").replace(/[\u0300-\u036f]/g,""),r=r.replace(/[đĐ]/g,"d"),r=r.replace(/([^0-9a-z-\s])/g,""),r=r.replace(/(\s+)/g,"-"),r=r.replace(/-+/g,"-"),r=r.replace(/^-+|-+$/g,""),r):"";var va=(r,e="en-US",t="USD")=>new Intl.NumberFormat(e,{style:"currency",currency:t}).format(r);var An=Fn(hn());function ul(r,e,t){let n=r;if(e){let o=Array.isArray(e)?e.filter(Boolean).join("/"):e;n=o?`${r}/${o}`:r;}if(t&&typeof t=="object"&&Object.keys(t).length>0){let o=Object.fromEntries(Object.entries(t).filter(([l,u])=>u!=null&&u!=="")),a=An.default.stringify(o,{arrayFormat:"repeat"});a&&(n+=`?${a}`);}return n}var fa={StatusCodes:{ACCEPTED:202,BAD_GATEWAY:502,BAD_REQUEST:400,CONFLICT:409,CONTINUE:100,CREATED:201,EXPECTATION_FAILED:417,FAILED_DEPENDENCY:424,FORBIDDEN:403,GATEWAY_TIMEOUT:504,GONE:410,HTTP_VERSION_NOT_SUPPORTED:505,IM_A_TEAPOT:418,INSUFFICIENT_SPACE_ON_RESOURCE:419,INSUFFICIENT_STORAGE:507,INTERNAL_SERVER_ERROR:500,LENGTH_REQUIRED:411,LOCKED:423,METHOD_FAILURE:420,METHOD_NOT_ALLOWED:405,MOVED_PERMANENTLY:301,MOVED_TEMPORARILY:302,MULTI_STATUS:207,MULTIPLE_CHOICES:300,NETWORK_AUTHENTICATION_REQUIRED:511,NO_CONTENT:204,NON_AUTHORITATIVE_INFORMATION:203,NOT_ACCEPTABLE:406,NOT_FOUND:404,NOT_IMPLEMENTED:501,NOT_MODIFIED:304,OK:200,PARTIAL_CONTENT:206,PAYMENT_REQUIRED:402,PERMANENT_REDIRECT:308,PRECONDITION_FAILED:412,PRECONDITION_REQUIRED:428,PROCESSING:102,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_HEADER_FIELDS_TOO_LARGE:431,REQUEST_TIMEOUT:408,REQUEST_TOO_LONG:413,REQUEST_URI_TOO_LONG:414,REQUESTED_RANGE_NOT_SATISFIABLE:416,RESET_CONTENT:205,SEE_OTHER:303,SERVICE_UNAVAILABLE:503,SWITCHING_PROTOCOLS:101,TEMPORARY_REDIRECT:307,TOO_MANY_REQUESTS:429,UNAUTHORIZED:401,UNPROCESSABLE_ENTITY:422,UNSUPPORTED_MEDIA_TYPE:415,USE_PROXY:305}};var Rn=(i=>(i.ACCEPTED="Accepted",i.BAD_GATEWAY="Bad Gateway",i.BAD_REQUEST="Bad Request",i.CONFLICT="Conflict",i.CONTINUE="Continue",i.CREATED="Created",i.EXPECTATION_FAILED="Expectation Failed",i.FAILED_DEPENDENCY="Failed Dependency",i.FORBIDDEN="Forbidden",i.GATEWAY_TIMEOUT="Gateway Timeout",i.GONE="Gone",i.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",i.IM_A_TEAPOT="I'm a teapot",i.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",i.INSUFFICIENT_STORAGE="Insufficient Storage",i.INTERNAL_SERVER_ERROR="Internal Server Error",i.LENGTH_REQUIRED="Length Required",i.LOCKED="Locked",i.METHOD_FAILURE="Method Failure",i.METHOD_NOT_ALLOWED="Method Not Allowed",i.MOVED_PERMANENTLY="Moved Permanently",i.MOVED_TEMPORARILY="Moved Temporarily",i.MULTI_STATUS="Multi-Status",i.MULTIPLE_CHOICES="Multiple Choices",i.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",i.NO_CONTENT="No Content",i.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",i.NOT_ACCEPTABLE="Not Acceptable",i.NOT_FOUND="Not Found",i.NOT_IMPLEMENTED="Not Implemented",i.NOT_MODIFIED="Not Modified",i.OK="OK",i.PARTIAL_CONTENT="Partial Content",i.PAYMENT_REQUIRED="Payment Required",i.PERMANENT_REDIRECT="Permanent Redirect",i.PRECONDITION_FAILED="Precondition Failed",i.PRECONDITION_REQUIRED="Precondition Required",i.PROCESSING="Processing",i.EARLY_HINTS="Early Hints",i.UPGRADE_REQUIRED="Upgrade Required",i.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",i.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",i.REQUEST_TIMEOUT="Request Timeout",i.REQUEST_TOO_LONG="Request Entity Too Large",i.REQUEST_URI_TOO_LONG="Request-URI Too Long",i.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",i.RESET_CONTENT="Reset Content",i.SEE_OTHER="See Other",i.SERVICE_UNAVAILABLE="Service Unavailable",i.SWITCHING_PROTOCOLS="Switching Protocols",i.TEMPORARY_REDIRECT="Temporary Redirect",i.TOO_MANY_REQUESTS="Too Many Requests",i.UNAUTHORIZED="Unauthorized",i.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",i.UNPROCESSABLE_ENTITY="Unprocessable Entity",i.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",i.USE_PROXY="Use Proxy",i.MISDIRECTED_REQUEST="Misdirected Request",i))(Rn||{});var In=(i=>(i[i.CONTINUE=100]="CONTINUE",i[i.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",i[i.PROCESSING=102]="PROCESSING",i[i.EARLY_HINTS=103]="EARLY_HINTS",i[i.OK=200]="OK",i[i.CREATED=201]="CREATED",i[i.ACCEPTED=202]="ACCEPTED",i[i.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",i[i.NO_CONTENT=204]="NO_CONTENT",i[i.RESET_CONTENT=205]="RESET_CONTENT",i[i.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",i[i.MULTI_STATUS=207]="MULTI_STATUS",i[i.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",i[i.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",i[i.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",i[i.SEE_OTHER=303]="SEE_OTHER",i[i.NOT_MODIFIED=304]="NOT_MODIFIED",i[i.USE_PROXY=305]="USE_PROXY",i[i.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",i[i.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",i[i.BAD_REQUEST=400]="BAD_REQUEST",i[i.UNAUTHORIZED=401]="UNAUTHORIZED",i[i.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",i[i.FORBIDDEN=403]="FORBIDDEN",i[i.NOT_FOUND=404]="NOT_FOUND",i[i.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",i[i.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",i[i.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",i[i.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",i[i.CONFLICT=409]="CONFLICT",i[i.GONE=410]="GONE",i[i.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",i[i.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",i[i.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",i[i.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",i[i.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",i[i.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",i[i.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",i[i.IM_A_TEAPOT=418]="IM_A_TEAPOT",i[i.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",i[i.METHOD_FAILURE=420]="METHOD_FAILURE",i[i.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",i[i.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",i[i.LOCKED=423]="LOCKED",i[i.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",i[i.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",i[i.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",i[i.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",i[i.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",i[i.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",i[i.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",i[i.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",i[i.BAD_GATEWAY=502]="BAD_GATEWAY",i[i.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",i[i.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",i[i.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",i[i.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",i[i.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",i))(In||{});var Nn={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",419:"Insufficient Space on Resource",420:"Method Failure",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",507:"Insufficient Storage",511:"Network Authentication Required"},_n={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Early Hints":103,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Misdirected Request":421,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Entity Too Large":413,"Request Header Fields Too Large":431,"Request Timeout":408,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Upgrade Required":426,"Use Proxy":305};function ca(r){let e=Nn[r.toString()];if(!e)throw new Error(