hook-fetch 0.0.6-beta → 0.0.8-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var t,e,r,n,o,i,a,u,l,c,s,p,f,y,d,h,m,g,b,w,v,S,O,A,E,P,j,R,x=t=>{throw TypeError(t)},T=(t,e,r)=>e.has(t)||x("Cannot "+r),_=(t,e,r)=>(T(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>e.has(t)?x("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),M=(t,e,r,n)=>(T(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),D=(t,e,r)=>(T(t,e,"access private method"),r),I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}function U(){return R?j:(R=1,j=TypeError)}const W=F(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var L,C,B,q,K,H,G,$,z,V,J,Q,X,Y,Z,tt,et,rt,nt,ot,it,at,ut,lt,ct,st,pt,ft,yt,dt,ht,mt,gt,bt,wt,vt,St,Ot,At,Et,Pt,jt,Rt,xt,Tt,_t,kt,Mt,Dt,It,Nt,Ft,Ut,Wt,Lt,Ct,Bt,qt,Kt,Ht,Gt,$t,zt,Vt,Jt,Qt,Xt,Yt,Zt,te,ee,re,ne,oe,ie,ae,ue,le,ce,se,pe,fe,ye,de,he,me,ge,be;function we(){if(C)return L;C=1;var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=t&&e&&"function"==typeof e.get?e.get:null,n=t&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,u=o&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,f=Object.prototype.toString,y=Function.prototype.toString,d=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,b=String.prototype.toLowerCase,w=RegExp.prototype.test,v=Array.prototype.concat,S=Array.prototype.join,O=Array.prototype.slice,A=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function k(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),i=h.call(e,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(e,r,"$&_")}var M=W,D=M.custom,N=$(D)?D:null,F={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,e,r){var n=r.quoteStyle||e,o=F[n];return o+t+o}function q(t){return m.call(String(t),/"/g,"&quot;")}function K(t){return!x||!("object"==typeof t&&(x in t||void 0!==t[x]))}function H(t){return"[object Array]"===J(t)&&K(t)}function G(t){return"[object RegExp]"===J(t)&&K(t)}function $(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(e){}return!1}L=function t(e,o,i,f){var g=o||{};if(V(g,"quoteStyle")&&!V(F,g.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var w=!V(g,"customInspect")||g.customInspect;if("boolean"!=typeof w&&"symbol"!==w)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var A=g.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return X(e,g);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var P=String(e);return A?k(e,P):P}if("bigint"==typeof e){var D=String(e)+"n";return A?k(e,D):D}var U=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=U&&U>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var W=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=S.call(Array(t.indent+1)," ")}return{base:r,prev:S.call(Array(e+1),r)}}(g,i);if(void 0===f)f=[];else if(Q(f,e)>=0)return"[Circular]";function L(e,r,n){if(r&&(f=O.call(f)).push(r),n){var o={depth:g.depth};return V(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),t(e,o,i+1,f)}return t(e,g,i+1,f)}if("function"==typeof e&&!G(e)){var C=function(t){if(t.name)return t.name;var e=d.call(y.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),z=nt(e,L);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(z.length>0?" { "+S.call(z,", ")+" }":"")}if($(e)){var Y=R?m.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!=typeof e||R?Y:Z(Y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var ot="<"+b.call(String(e.nodeName)),it=e.attributes||[],at=0;at<it.length;at++)ot+=" "+it[at].name+"="+B(q(it[at].value),"double",g);return ot+=">",e.childNodes&&e.childNodes.length&&(ot+="..."),ot+="</"+b.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var ut=nt(e,L);return W&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(ut)?"["+rt(ut,W)+"]":"[ "+S.call(ut,", ")+" ]"}if(function(t){return"[object Error]"===J(t)&&K(t)}(e)){var lt=nt(e,L);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===lt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+S.call(lt,", ")+" }":"{ ["+String(e)+"] "+S.call(v.call("[cause]: "+L(e.cause),lt),", ")+" }"}if("object"==typeof e&&w){if(N&&"function"==typeof e[N]&&M)return M(e,{depth:U-i});if("symbol"!==w&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!r||!t||"object"!=typeof t)return!1;try{r.call(t);try{a.call(t)}catch(ot){return!0}return t instanceof Map}catch(e){}return!1}(e)){var ct=[];return n&&n.call(e,(function(t,r){ct.push(L(r,e,!0)+" => "+L(t,e))})),et("Map",r.call(e),ct,W)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{r.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var st=[];return u&&u.call(e,(function(t){st.push(L(t,e))})),et("Set",a.call(e),st,W)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{c.call(t,c)}catch(ot){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return tt("WeakMap");if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t,c);try{l.call(t,l)}catch(ot){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return tt("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(e){}return!1}(e))return tt("WeakRef");if(function(t){return"[object Number]"===J(t)&&K(t)}(e))return Z(L(Number(e)));if(function(t){if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(e){}return!1}(e))return Z(L(E.call(e)));if(function(t){return"[object Boolean]"===J(t)&&K(t)}(e))return Z(p.call(e));if(function(t){return"[object String]"===J(t)&&K(t)}(e))return Z(L(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==I&&e===I)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===J(t)&&K(t)}(e)&&!G(e)){var pt=nt(e,L),ft=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,yt=e instanceof Object?"":"null prototype",dt=!ft&&x&&Object(e)===e&&x in e?h.call(J(e),8,-1):yt?"Object":"",ht=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(dt||yt?"["+S.call(v.call([],dt||[],yt||[]),": ")+"] ":"");return 0===pt.length?ht+"{}":W?ht+"{"+rt(pt,W)+"}":ht+"{ "+S.call(pt,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return z.call(t,e)}function J(t){return f.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function X(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return X(h.call(t,0,e.maxStringLength),e)+n}var o=U[e.quoteStyle||"single"];return o.lastIndex=0,B(m.call(m.call(t,o,"\\$1"),/[\x00-\x1f]/g,Y),"single",e)}function Y(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+g.call(e.toString(16))}function Z(t){return"Object("+t+")"}function tt(t){return t+" { ? }"}function et(t,e,r,n){return t+" ("+e+") {"+(n?rt(r,n):S.call(r,", "))+"}"}function rt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+S.call(t,","+r)+"\n"+e.prev}function nt(t,e){var r=H(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=V(t,o)?e(t[o],t):""}var i,a="function"==typeof P?P(t):[];if(R){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var l in t)V(t,l)&&(r&&String(Number(l))===l&&l<t.length||R&&i["$"+l]instanceof Symbol||(w.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof P)for(var c=0;c<a.length;c++)T.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}return L}function ve(){if(q)return B;q=1;var t=we(),e=U(),r=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};return B=function(){var n,o={assert:function(r){if(!o.has(r))throw new e("Side channel does not contain "+t(r))},delete:function(t){var e=n&&n.next,o=function(t,e){if(t)return r(t,e,!0)}(n,t);return o&&e&&e===o&&(n=void 0),!!o},get:function(t){return function(t,e){if(t){var n=r(t,e);return n&&n.value}}(n,t)},has:function(t){return function(t,e){return!!t&&!!r(t,e)}(n,t)},set:function(t,e){n||(n={next:void 0}),function(t,e,n){var o=r(t,e);o?o.value=n:t.next={key:e,next:t.next,value:n}}(n,t,e)}};return o}}function Se(){return H?K:(H=1,K=Object)}function Oe(){return $?G:($=1,G=Error)}function Ae(){return V?z:(V=1,z=EvalError)}function Ee(){return Q?J:(Q=1,J=RangeError)}function Pe(){return Y?X:(Y=1,X=ReferenceError)}function je(){return tt?Z:(tt=1,Z=SyntaxError)}function Re(){return rt?et:(rt=1,et=URIError)}function xe(){return ot?nt:(ot=1,nt=Math.abs)}function Te(){return at?it:(at=1,it=Math.floor)}function _e(){return lt?ut:(lt=1,ut=Math.max)}function ke(){return st?ct:(st=1,ct=Math.min)}function Me(){return ft?pt:(ft=1,pt=Math.pow)}function De(){return dt?yt:(dt=1,yt=Math.round)}function Ie(){return mt?ht:(mt=1,ht=Number.isNaN||function(t){return t!=t})}function Ne(){if(bt)return gt;bt=1;var t=Ie();return gt=function(e){return t(e)||0===e?e:e<0?-1:1}}function Fe(){return vt?wt:(vt=1,wt=Object.getOwnPropertyDescriptor)}function Ue(){if(Ot)return St;Ot=1;var t=Fe();if(t)try{t([],"length")}catch(e){t=null}return St=t}function We(){if(Et)return At;Et=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return At=t}function Le(){if(xt)return Rt;xt=1;var t="undefined"!=typeof Symbol&&Symbol,e=jt?Pt:(jt=1,Pt=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return Rt=function(){return"function"==typeof t&&("function"==typeof Symbol&&("symbol"==typeof t("foo")&&("symbol"==typeof Symbol("bar")&&e())))}}function Ce(){return _t?Tt:(_t=1,Tt="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Be(){return Mt?kt:(Mt=1,kt=Se().getPrototypeOf||null)}function qe(){if(Ft)return Nt;Ft=1;var t=function(){if(It)return Dt;It=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};return Dt=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),u=e(0,o.length-a.length),l=[],c=0;c<u;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(n,r(a,arguments))})),o.prototype){var s=function(){};s.prototype=o.prototype,i.prototype=new s,s.prototype=null}return i},Dt}();return Nt=Function.prototype.bind||t}function Ke(){return Wt?Ut:(Wt=1,Ut=Function.prototype.call)}function He(){return Ct?Lt:(Ct=1,Lt=Function.prototype.apply)}function Ge(){if(Ht)return Kt;Ht=1;var t=qe(),e=He(),r=Ke(),n=qt?Bt:(qt=1,Bt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return Kt=n||t.call(r,e)}function $e(){if($t)return Gt;$t=1;var t=qe(),e=U(),r=Ke(),n=Ge();return Gt=function(o){if(o.length<1||"function"!=typeof o[0])throw new e("a function is required");return n(t,r,o)}}function ze(){if(Vt)return zt;Vt=1;var t,e=$e(),r=Ue();try{t=[].__proto__===Array.prototype}catch(a){if(!a||"object"!=typeof a||!("code"in a)||"ERR_PROTO_ACCESS"!==a.code)throw a}var n=!!t&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return zt=n&&"function"==typeof n.get?e([n.get]):"function"==typeof i&&function(t){return i(null==t?t:o(t))}}function Ve(){if(Yt)return Xt;Yt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=qe();return Xt=r.call(t,e)}function Je(){if(te)return Zt;var t;te=1;var e=Se(),r=Oe(),n=Ae(),o=Ee(),i=Pe(),a=je(),u=U(),l=Re(),c=xe(),s=Te(),p=_e(),f=ke(),y=Me(),d=De(),h=Ne(),m=Function,g=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(e){}},b=Ue(),w=We(),v=function(){throw new u},S=b?function(){try{return v}catch(t){try{return b(arguments,"callee").get}catch(e){return v}}}():v,O=Le()(),A=function(){if(Qt)return Jt;Qt=1;var t=Ce(),e=Be(),r=ze();return Jt=t?function(e){return t(e)}:e?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return e(t)}:r?function(t){return r(t)}:null}(),E=Be(),P=Ce(),j=He(),R=Ke(),x={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):t,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?t:ArrayBuffer,"%ArrayIteratorPrototype%":O&&A?A([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":"undefined"==typeof Atomics?t:Atomics,"%BigInt%":"undefined"==typeof BigInt?t:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?t:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":"undefined"==typeof Float16Array?t:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?t:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?t:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?t:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":x,"%Int8Array%":"undefined"==typeof Int8Array?t:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?t:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&A?A(A([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":"undefined"==typeof Map?t:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&A?A((new Map)[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?t:Promise,"%Proxy%":"undefined"==typeof Proxy?t:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?t:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?t:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&A?A((new Set)[Symbol.iterator]()):t,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&A?A(""[Symbol.iterator]()):t,"%Symbol%":O?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?t:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?t:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?t:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?t:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?t:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?t:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?t:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":j,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":c,"%Math.floor%":s,"%Math.max%":p,"%Math.min%":f,"%Math.pow%":y,"%Math.round%":d,"%Math.sign%":h,"%Reflect.getPrototypeOf%":P};if(A)try{null.error}catch(G){var k=A(A(G));_["%Error.prototype%"]=k}var M=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return _[e]=r,r},D={__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"]},I=qe(),N=Ve(),F=I.call(R,Array.prototype.concat),W=I.call(j,Array.prototype.splice),L=I.call(R,String.prototype.replace),C=I.call(R,String.prototype.slice),B=I.call(R,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,H=function(t,e){var r,n=t;if(N(D,n)&&(n="%"+(r=D[n])[0]+"%"),N(_,n)){var o=_[n];if(o===x&&(o=M(n)),void 0===o&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+t+" does not exist!")};return Zt=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=C(t,0,1),r=C(t,-1);if("%"===e&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return L(t,q,(function(t,e,r,o){n[n.length]=r?L(o,K,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,l=o.value,c=!1,s=o.alias;s&&(n=s[0],W(r,F([0,1],s)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],d=C(y,0,1),h=C(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new a("property names with quotes must have matching quotes");if("constructor"!==y&&f||(c=!0),N(_,i="%"+(n+="."+y)+"%"))l=_[i];else if(null!=l){if(!(y in l)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(b&&p+1>=r.length){var m=b(l,y);l=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:l[y]}else f=N(l,y),l=l[y];f&&!c&&(_[i]=l)}}return l},Zt}function Qe(){if(re)return ee;re=1;var t=Je(),e=$e(),r=e([t("%String.prototype.indexOf%")]);return ee=function(n,o){var i=t(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?e([i]):i}}function Xe(){if(oe)return ne;oe=1;var t=Je(),e=Qe(),r=we(),n=U(),o=t("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),u=e("Map.prototype.has",!0),l=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ne=!!o&&function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+r(t))},delete:function(e){if(t){var r=l(t,e);return 0===c(t)&&(t=void 0),r}return!1},get:function(e){if(t)return i(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new o),a(t,e,r)}};return e}}function Ye(){if(le)return ue;le=1;var t=U(),e=we(),r=ve(),n=Xe(),o=function(){if(ae)return ie;ae=1;var t=Je(),e=Qe(),r=we(),n=Xe(),o=U(),i=t("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),u=e("WeakMap.prototype.set",!0),l=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return ie=i?function(){var t,e,s={assert:function(t){if(!s.has(t))throw new o("Side channel does not contain "+r(t))},delete:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(n&&e)return e.delete(r);return!1},get:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?a(t,r):e&&e.get(r)},has:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?l(t,r):!!e&&e.has(r)},set:function(r,o){i&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new i),u(t,r,o)):n&&(e||(e=n()),e.set(r,o))}};return s}:n}(),i=o||n||r;return ue=function(){var r,n={assert:function(r){if(!n.has(r))throw new t("Side channel does not contain "+e(r))},delete:function(t){return!!r&&r.delete(t)},get:function(t){return r&&r.get(t)},has:function(t){return!!r&&r.has(t)},set:function(t,e){r||(r=i()),r.set(t,e)}};return n}}function Ze(){if(se)return ce;se=1;var t=String.prototype.replace,e=/%20/g,r="RFC3986";return ce={default:r,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}}function tr(){if(fe)return pe;fe=1;var t=Ze(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},i=1024;return pe={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],o=0;o<e.length;++o)for(var i=e[o],a=i.obj[i.prop],u=Object.keys(a),l=0;l<u.length;++l){var c=u[l],s=a[c];"object"==typeof s&&null!==s&&-1===n.indexOf(s)&&(e.push({obj:a,prop:c}),n.push(s))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,r,o,a,u){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===o)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",s=0;s<l.length;s+=i){for(var p=l.length>=i?l.slice(s,s+i):l,f=[],y=0;y<p.length;++y){var d=p.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||u===t.RFC1738&&(40===d||41===d)?f[f.length]=p.charAt(y):d<128?f[f.length]=n[d]:d<2048?f[f.length]=n[192|d>>6]+n[128|63&d]:d<55296||d>=57344?f[f.length]=n[224|d>>12]+n[128|d>>6&63]+n[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(y)),f[f.length]=n[240|d>>18]+n[128|d>>12&63]+n[128|d>>6&63]+n[128|63&d])}c+=f.join("")}return c},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(r(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(e(t[o]));return n}return e(t)},merge:function t(n,i,a){if(!i)return n;if("object"!=typeof i&&"function"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var u=n;return r(n)&&!r(i)&&(u=o(n,a)),r(n)&&r(i)?(i.forEach((function(r,o){if(e.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=t(i,r,a):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return e.call(r,n)?r[n]=t(r[n],o,a):r[n]=o,r}),u)}}}function er(){if(de)return ye;de=1;var t=Ye(),e=tr(),r=Ze(),n=Object.prototype.hasOwnProperty,o={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,a=Array.prototype.push,u=function(t,e){a.apply(t,i(e)?e:[e])},l=Date.prototype.toISOString,c=r.default,s={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:r.formatters[c],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},p={},f=function r(n,o,a,l,c,f,y,d,h,m,g,b,w,v,S,O,A,E){for(var P,j=n,R=E,x=0,T=!1;void 0!==(R=R.get(p))&&!T;){var _=R.get(n);if(x+=1,void 0!==_){if(_===x)throw new RangeError("Cyclic object value");T=!0}void 0===R.get(p)&&(x=0)}if("function"==typeof m?j=m(o,j):j instanceof Date?j=w(j):"comma"===a&&i(j)&&(j=e.maybeMap(j,(function(t){return t instanceof Date?w(t):t}))),null===j){if(f)return h&&!O?h(o,s.encoder,A,"key",v):o;j=""}if("string"==typeof(P=j)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||e.isBuffer(j))return h?[S(O?o:h(o,s.encoder,A,"key",v))+"="+S(h(j,s.encoder,A,"value",v))]:[S(o)+"="+S(String(j))];var k,M=[];if(void 0===j)return M;if("comma"===a&&i(j))O&&h&&(j=e.maybeMap(j,h)),k=[{value:j.length>0?j.join(",")||null:void 0}];else if(i(m))k=m;else{var D=Object.keys(j);k=g?D.sort(g):D}var I=d?String(o).replace(/\./g,"%2E"):String(o),N=l&&i(j)&&1===j.length?I+"[]":I;if(c&&i(j)&&0===j.length)return N+"[]";for(var F=0;F<k.length;++F){var U=k[F],W="object"==typeof U&&U&&void 0!==U.value?U.value:j[U];if(!y||null!==W){var L=b&&d?String(U).replace(/\./g,"%2E"):String(U),C=i(j)?"function"==typeof a?a(N,L):N:N+(b?"."+L:"["+L+"]");E.set(n,x);var B=t();B.set(p,E),u(M,r(W,C,a,l,c,f,y,d,"comma"===a&&O&&i(j)?null:h,m,g,b,w,v,S,O,A,B))}}return M};return ye=function(e,a){var l,c=e,p=function(t){if(!t)return s;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||s.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==t.format){if(!n.call(r.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var u,l=r.formatters[a],c=s.filter;if(("function"==typeof t.filter||i(t.filter))&&(c=t.filter),u=t.arrayFormat in o?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":s.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===t.allowDots?!0===t.encodeDotInKeys||s.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:s.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:s.allowEmptyArrays,arrayFormat:u,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?s.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:s.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:s.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:s.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:s.encodeValuesOnly,filter:c,format:a,formatter:l,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:s.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:s.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(a);"function"==typeof p.filter?c=(0,p.filter)("",c):i(p.filter)&&(l=p.filter);var y=[];if("object"!=typeof c||null===c)return"";var d=o[p.arrayFormat],h="comma"===d&&p.commaRoundTrip;l||(l=Object.keys(c)),p.sort&&l.sort(p.sort);for(var m=t(),g=0;g<l.length;++g){var b=l[g],w=c[b];p.skipNulls&&null===w||u(y,f(w,b,d,h,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var v=y.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),v.length>0?S+v:""}}function rr(){if(me)return he;me=1;var t=tr(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},i=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},a=function(r,n,o,a){if(r){var u=o.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,l=/(\[[^[\]]*])/g,c=o.depth>0&&/(\[[^[\]]*])/.exec(u),s=c?u.slice(0,c.index):u,p=[];if(s){if(!o.plainObjects&&e.call(Object.prototype,s)&&!o.allowPrototypes)return;p.push(s)}for(var f=0;o.depth>0&&null!==(c=l.exec(u))&&f<o.depth;){if(f+=1,!o.plainObjects&&e.call(Object.prototype,c[1].slice(1,-1))&&!o.allowPrototypes)return;p.push(c[1])}if(c){if(!0===o.strictDepth)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");p.push("["+u.slice(c.index)+"]")}return function(e,r,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var u=e.slice(0,-1).join("");a=Array.isArray(r)&&r[u]?r[u].length:0}for(var l=o?r:i(r,n,a),c=e.length-1;c>=0;--c){var s,p=e[c];if("[]"===p&&n.parseArrays)s=n.allowEmptyArrays&&(""===l||n.strictNullHandling&&null===l)?[]:t.combine([],l);else{s=n.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,y=n.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10);n.parseArrays||""!==y?!isNaN(d)&&p!==y&&String(d)===y&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[])[d]=l:"__proto__"!==y&&(s[y]=l):s={0:l}}l=s}return l}(p,n,o,a)}};return he=function(u,l){var c=function(e){if(!e)return n;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=void 0===e.charset?n.charset:e.charset,o=void 0===e.duplicates?n.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||n.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:n.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:n.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:n.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:n.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:n.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:n.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:n.decoder,delimiter:"string"==typeof e.delimiter||t.isRegExp(e.delimiter)?e.delimiter:n.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:n.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:n.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:n.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:n.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(l);if(""===u||null==u)return c.plainObjects?{__proto__:null}:{};for(var s="string"==typeof u?function(a,u){var l={__proto__:null},c=u.ignoreQueryPrefix?a.replace(/^\?/,""):a;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=u.parameterLimit===1/0?void 0:u.parameterLimit,p=c.split(u.delimiter,u.throwOnLimitExceeded?s+1:s);if(u.throwOnLimitExceeded&&p.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(1===s?"":"s")+" allowed.");var f,y=-1,d=u.charset;if(u.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[f]?d="utf-8":"utf8=%26%2310003%3B"===p[f]&&(d="iso-8859-1"),y=f,f=p.length);for(f=0;f<p.length;++f)if(f!==y){var h,m,g=p[f],b=g.indexOf("]="),w=-1===b?g.indexOf("="):b+1;-1===w?(h=u.decoder(g,n.decoder,d,"key"),m=u.strictNullHandling?null:""):(h=u.decoder(g.slice(0,w),n.decoder,d,"key"),m=t.maybeMap(i(g.slice(w+1),u,r(l[h])?l[h].length:0),(function(t){return u.decoder(t,n.decoder,d,"value")}))),m&&u.interpretNumericEntities&&"iso-8859-1"===d&&(m=o(String(m))),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var v=e.call(l,h);v&&"combine"===u.duplicates?l[h]=t.combine(l[h],m):v&&"last"!==u.duplicates||(l[h]=m)}return l}(u,c):u,p=c.plainObjects?{__proto__:null}:{},f=Object.keys(s),y=0;y<f.length;++y){var d=f[y],h=a(d,s[d],c,"string"==typeof u);p=t.merge(p,h,c)}return!0===c.allowSparse?p:t.compact(p)}}function nr(){if(be)return ge;be=1;var t=er(),e=rr();return ge={formats:Ze(),parse:e,stringify:t}}const or=N(nr());var ir=(t=>(t.JSON="application/json",t.FORM_URLENCODED="application/x-www-form-urlencoded",t.FORM_DATA="multipart/form-data",t.TEXT="text/plain",t.HTML="text/html",t.XML="text/xml",t.CSV="text/csv",t.STREAM="application/octet-stream",t))(ir||{}),ar=(t=>(t[t.TIME_OUT=408]="TIME_OUT",t[t.ABORTED=499]="ABORTED",t[t.NETWORK_ERROR=599]="NETWORK_ERROR",t[t.BODY_NULL=502]="BODY_NULL",t[t.UNKNOWN=601]="UNKNOWN",t))(ar||{});class ur extends Error{constructor({message:a,status:u,statusText:l,response:c,config:s,name:p}){super(a),k(this,t),k(this,e),k(this,r),k(this,n),k(this,o),k(this,i),M(this,t,a),M(this,r,u),M(this,n,l),M(this,o,c),M(this,i,s),M(this,e,p??a)}get message(){return _(this,t)}get status(){return _(this,r)}get statusText(){return _(this,n)}get response(){return _(this,o)}get config(){return _(this,i)}get name(){return _(this,e)}}t=new WeakMap,e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap;const lr=(t={},e={})=>{const r=t instanceof Headers?t:new Headers(t);var n;return(n=e)instanceof Headers||(n=new Headers(n)),n.forEach(((t,e)=>{r.set(e,t)})),r},cr=["PATCH","POST","PUT"],sr=["GET","HEAD","OPTIONS","DELETE"];class pr{constructor(t){k(this,p),k(this,a),k(this,u),k(this,l),k(this,c),k(this,s,!1);const{plugins:e=[],controller:r,url:n,baseURL:o="",params:i,data:y,qsArrayFormat:d="repeat",withCredentials:h,extra:m,method:g="GET",headers:b}=t;M(this,u,r??new AbortController),M(this,a,(t=>{const e=new Set;t.forEach((t=>{e.add(t)}));const r=Array.from(e).sort(((t,e)=>(t.priority??0)-(e.priority??0))),n=[],o=[],i=[],a=[],u=[];return r.forEach((t=>{t.beforeRequest&&n.push(t.beforeRequest),t.afterResponse&&o.push(t.afterResponse),t.onError&&i.push(t.onError),t.onFinally&&a.push(t.onFinally),t.transformStreamChunk&&u.push(t.transformStreamChunk)})),{beforeRequestPlugins:n,afterResponsePlugins:o,errorPlugins:i,finallyPlugins:a,transformStreamChunkPlugins:u}})(e)),M(this,l,{url:n,baseURL:o,params:i,data:y,withCredentials:h,extra:m,method:g,headers:b,qsArrayFormat:d}),M(this,c,D(this,p,f).call(this,t))}then(t,e){return _(this,p,h).then(t,e)}catch(t){return _(this,p,h).catch(t)}finally(t){return _(this,p,h).finally(t)}abort(){_(this,u).abort()}blob(){return _(this,p,m).then((t=>t.blob()))}text(){return _(this,p,m).then((t=>t.text()))}arrayBuffer(){return _(this,p,m).then((t=>t.arrayBuffer()))}formData(){return _(this,p,m).then((t=>t.formData()))}bytes(){return _(this,p,m).then((t=>t.bytes()))}async*stream(){var t,e;const r=null==(e=null==(t=(await _(this,c)).clone())?void 0:t.body)?void 0:e.getReader();if(r)for(;;){const{done:t,value:e}=await r.read();if(t)break;let o={source:e,result:e,error:null};try{for(const t of _(this,a).transformStreamChunkPlugins)o=await t(o);yield o}catch(n){o.error=n,o.result=null,yield o}}}}a=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap,s=new WeakMap,p=new WeakSet,f=function({timeout:t}){return new Promise((async(e,r)=>{let n=_(this,l);const{beforeRequestPlugins:o}=_(this,a);for(const t of o)n=await t(n);const i=((t,e,r="repeat")=>{if(e){const n=or.stringify(e,{arrayFormat:r});n&&(t=t.includes("?")?`${t}&${n}`:`${t}?${n}`)}return t})(n.baseURL+n.url,n.params,n.qsArrayFormat),c=((t,e,r,n="repeat")=>{if(!t)return null;let o=null;if(cr.includes(e.toUpperCase())){const e=new Headers(r||{}).get("Content-Type")||"";if(e.includes(ir.JSON))o=JSON.stringify(t);else if(e.includes(ir.FORM_URLENCODED))o=or.stringify(t,{arrayFormat:n});else if(e.includes(ir.FORM_DATA)){const e=new FormData;if(!(t instanceof FormData)&&"object"==typeof t){const r=t;Object.keys(r).forEach((t=>{r.prototype.hasOwnProperty.call(t)&&e.append(t,r[t])})),o=e}}}return sr.includes(e.toUpperCase())&&(o=null),o})(n.data,n.method,n.headers,n.qsArrayFormat);var f,y;const h={...(y=["baseURL","data","extra","headers","method","params","url","withCredentials"],(f=n??{})?y&&0!==y.length?y.reduce(((t,e)=>(delete t[e],t)),{...f}):f:{}),method:n.method,headers:n.headers,signal:_(this,u).signal,credentials:n.withCredentials?"include":"omit",body:c};let m=[fetch(i,h)],g=null;if(t){const e=new Promise((e=>{g=setTimeout((()=>{var t;M(this,s,!0),null==(t=_(this,u))||t.abort()}),t)}));m.push(e)}try{const t=await Promise.race(m);return t?(t.ok&&e(t),r(new ur({message:"Fail Request",status:t.status,statusText:t.statusText,config:_(this,l),name:"Fail Request"}))):r(new ur({message:"NETWORK_ERROR",status:ar.NETWORK_ERROR,statusText:"Network Error",config:_(this,l),name:"Network Error"}))}catch(b){r(await D(this,p,d).call(this,b))}finally{g&&clearTimeout(g)}}))},y=async function(t){return t instanceof ur?t:t instanceof TypeError?"AbortError"===t.name?_(this,s)?new ur({message:"Request timeout",status:ar.TIME_OUT,statusText:"Request timeout",config:_(this,l),name:"Request timeout",response:await _(this,p,m)}):new ur({message:"Request aborted",status:ar.ABORTED,statusText:"Request aborted",config:_(this,l),name:"Request aborted",response:await _(this,p,m)}):new ur({message:t.message,status:ar.NETWORK_ERROR,statusText:"Unknown Request Error",config:_(this,l),name:t.name,response:await _(this,p,m)}):new ur({message:(null==t?void 0:t.message)??"Unknown Request Error",status:ar.UNKNOWN,statusText:"Unknown Request Error",config:_(this,l),name:"Unknown Request Error",response:await _(this,p,m)})},d=async function(t){let e=await D(this,p,y).call(this,t);for(const r of _(this,a).errorPlugins)e=await r(e);return e},h=function(){return new Promise(((t,e)=>{_(this,p,m).then((t=>t.json())).then((async e=>{let r=e;for(const t of _(this,a).afterResponsePlugins)r=await t(r);t(r)})).catch((async t=>{e(await D(this,p,d).call(this,t))})).finally((async()=>{const t={config:_(this,l),response:await _(this,p,m).then((t=>t.clone()))};for(const e of _(this,a).finallyPlugins)e(t)}))}))},m=function(){return _(this,c).then((t=>t.clone()))};const fr=t=>new pr(t);class yr{constructor({timeout:t=0,baseURL:e="",headers:r={},plugins:n=[],withCredentials:o=!1}){k(this,A),k(this,g),k(this,b),k(this,w),k(this,v,[]),k(this,S,[]),k(this,O),M(this,g,t),M(this,b,e),M(this,w,r),M(this,S,n),M(this,O,o),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return _(this,S).push(t),this}request(t,{timeout:e,headers:r,method:n="GET",params:o,data:i,qsArrayFormat:a,withCredentials:u,extra:l}={}){const c=new AbortController;_(this,v).push(c);const s=fr({url:t,baseURL:_(this,b),timeout:e??_(this,g),plugins:_(this,S),headers:lr(_(this,w),r),controller:c,method:n,params:o,data:i,qsArrayFormat:a,withCredentials:u??_(this,O),extra:l});return s.finally((()=>{M(this,v,_(this,v).filter((t=>t!==c)))})),s}get(t,e={},r){return D(this,A,E).call(this,t,e,{...r,method:"GET"})}head(t,e={},r){return D(this,A,E).call(this,t,e,{...r,method:"HEAD"})}options(t,e={},r){return D(this,A,E).call(this,t,e,{...r,method:"OPTIONS"})}delete(t,e){return this.request(t,{...e,method:"DELETE"})}post(t,e,r){return D(this,A,P).call(this,t,e,{...r,method:"POST"})}put(t,e,r){return D(this,A,P).call(this,t,e,{...r,method:"PUT"})}patch(t,e,r){return D(this,A,P).call(this,t,e,{...r,method:"PATCH"})}abortAll(){_(this,v).forEach((t=>t.abort())),M(this,v,[])}}g=new WeakMap,b=new WeakMap,w=new WeakMap,v=new WeakMap,S=new WeakMap,O=new WeakMap,A=new WeakSet,E=function(t,e={},r={}){return this.request(t,{...r,params:e})},P=function(t,e={},r={}){return this.request(t,{...r,data:e})};const dr=(t,e={})=>fr({url:t,baseURL:"",...e});dr.create=t=>new yr(t),module.exports=dr;
1
+ "use strict";var t,e,r,n,o,i,a,l,u,s,c,p,f,y,h,d,m,g,b,w,v,S,O,A,E,P,j,R,x,T,_,k,M,D=t=>{throw TypeError(t)},F=(t,e,r)=>e.has(t)||D("Cannot "+r),I=(t,e,r)=>(F(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>e.has(t)?D("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),U=(t,e,r,n)=>(F(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),W=(t,e,r)=>(F(t,e,"access private method"),r),L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function B(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}function q(){return M?k:(M=1,k=TypeError)}const K=B(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var H,G,$,z,V,J,Q,X,Y,Z,tt,et,rt,nt,ot,it,at,lt,ut,st,ct,pt,ft,yt,ht,dt,mt,gt,bt,wt,vt,St,Ot,At,Et,Pt,jt,Rt,xt,Tt,_t,kt,Mt,Dt,Ft,It,Nt,Ut,Wt,Lt,Ct,Bt,qt,Kt,Ht,Gt,$t,zt,Vt,Jt,Qt,Xt,Yt,Zt,te,ee,re,ne,oe,ie,ae,le,ue,se,ce,pe,fe,ye,he,de,me,ge,be,we,ve,Se,Oe,Ae;function Ee(){if(G)return H;G=1;var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=t&&e&&"function"==typeof e.get?e.get:null,n=t&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,l=o&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,c="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,f=Object.prototype.toString,y=Function.prototype.toString,h=String.prototype.match,d=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,b=String.prototype.toLowerCase,w=RegExp.prototype.test,v=Array.prototype.concat,S=Array.prototype.join,O=Array.prototype.slice,A=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function k(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),i=d.call(e,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(e,r,"$&_")}var M=K,D=M.custom,F=$(D)?D:null,I={__proto__:null,double:'"',single:"'"},N={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(t,e,r){var n=r.quoteStyle||e,o=I[n];return o+t+o}function W(t){return m.call(String(t),/"/g,"&quot;")}function C(t){return!x||!("object"==typeof t&&(x in t||void 0!==t[x]))}function B(t){return"[object Array]"===J(t)&&C(t)}function q(t){return"[object RegExp]"===J(t)&&C(t)}function $(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(e){}return!1}H=function t(e,o,i,f){var g=o||{};if(V(g,"quoteStyle")&&!V(I,g.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var w=!V(g,"customInspect")||g.customInspect;if("boolean"!=typeof w&&"symbol"!==w)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var A=g.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return X(e,g);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var P=String(e);return A?k(e,P):P}if("bigint"==typeof e){var D=String(e)+"n";return A?k(e,D):D}var N=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=N&&N>0&&"object"==typeof e)return B(e)?"[Array]":"[Object]";var K=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=S.call(Array(t.indent+1)," ")}return{base:r,prev:S.call(Array(e+1),r)}}(g,i);if(void 0===f)f=[];else if(Q(f,e)>=0)return"[Circular]";function H(e,r,n){if(r&&(f=O.call(f)).push(r),n){var o={depth:g.depth};return V(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),t(e,o,i+1,f)}return t(e,g,i+1,f)}if("function"==typeof e&&!q(e)){var G=function(t){if(t.name)return t.name;var e=h.call(y.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),z=nt(e,H);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(z.length>0?" { "+S.call(z,", ")+" }":"")}if($(e)){var Y=R?m.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!=typeof e||R?Y:Z(Y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var ot="<"+b.call(String(e.nodeName)),it=e.attributes||[],at=0;at<it.length;at++)ot+=" "+it[at].name+"="+U(W(it[at].value),"double",g);return ot+=">",e.childNodes&&e.childNodes.length&&(ot+="..."),ot+="</"+b.call(String(e.nodeName))+">"}if(B(e)){if(0===e.length)return"[]";var lt=nt(e,H);return K&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(lt)?"["+rt(lt,K)+"]":"[ "+S.call(lt,", ")+" ]"}if(function(t){return"[object Error]"===J(t)&&C(t)}(e)){var ut=nt(e,H);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===ut.length?"["+String(e)+"]":"{ ["+String(e)+"] "+S.call(ut,", ")+" }":"{ ["+String(e)+"] "+S.call(v.call("[cause]: "+H(e.cause),ut),", ")+" }"}if("object"==typeof e&&w){if(F&&"function"==typeof e[F]&&M)return M(e,{depth:N-i});if("symbol"!==w&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!r||!t||"object"!=typeof t)return!1;try{r.call(t);try{a.call(t)}catch(ot){return!0}return t instanceof Map}catch(e){}return!1}(e)){var st=[];return n&&n.call(e,(function(t,r){st.push(H(r,e,!0)+" => "+H(t,e))})),et("Map",r.call(e),st,K)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{r.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var ct=[];return l&&l.call(e,(function(t){ct.push(H(t,e))})),et("Set",a.call(e),ct,K)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t,u);try{s.call(t,s)}catch(ot){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return tt("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{u.call(t,u)}catch(ot){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return tt("WeakSet");if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{return c.call(t),!0}catch(e){}return!1}(e))return tt("WeakRef");if(function(t){return"[object Number]"===J(t)&&C(t)}(e))return Z(H(Number(e)));if(function(t){if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(e){}return!1}(e))return Z(H(E.call(e)));if(function(t){return"[object Boolean]"===J(t)&&C(t)}(e))return Z(p.call(e));if(function(t){return"[object String]"===J(t)&&C(t)}(e))return Z(H(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==L&&e===L)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===J(t)&&C(t)}(e)&&!q(e)){var pt=nt(e,H),ft=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,yt=e instanceof Object?"":"null prototype",ht=!ft&&x&&Object(e)===e&&x in e?d.call(J(e),8,-1):yt?"Object":"",dt=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||yt?"["+S.call(v.call([],ht||[],yt||[]),": ")+"] ":"");return 0===pt.length?dt+"{}":K?dt+"{"+rt(pt,K)+"}":dt+"{ "+S.call(pt,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return z.call(t,e)}function J(t){return f.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function X(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return X(d.call(t,0,e.maxStringLength),e)+n}var o=N[e.quoteStyle||"single"];return o.lastIndex=0,U(m.call(m.call(t,o,"\\$1"),/[\x00-\x1f]/g,Y),"single",e)}function Y(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+g.call(e.toString(16))}function Z(t){return"Object("+t+")"}function tt(t){return t+" { ? }"}function et(t,e,r,n){return t+" ("+e+") {"+(n?rt(r,n):S.call(r,", "))+"}"}function rt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+S.call(t,","+r)+"\n"+e.prev}function nt(t,e){var r=B(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=V(t,o)?e(t[o],t):""}var i,a="function"==typeof P?P(t):[];if(R){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in t)V(t,u)&&(r&&String(Number(u))===u&&u<t.length||R&&i["$"+u]instanceof Symbol||(w.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof P)for(var s=0;s<a.length;s++)T.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}return H}function Pe(){if(z)return $;z=1;var t=Ee(),e=q(),r=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};return $=function(){var n,o={assert:function(r){if(!o.has(r))throw new e("Side channel does not contain "+t(r))},delete:function(t){var e=n&&n.next,o=function(t,e){if(t)return r(t,e,!0)}(n,t);return o&&e&&e===o&&(n=void 0),!!o},get:function(t){return function(t,e){if(t){var n=r(t,e);return n&&n.value}}(n,t)},has:function(t){return function(t,e){return!!t&&!!r(t,e)}(n,t)},set:function(t,e){n||(n={next:void 0}),function(t,e,n){var o=r(t,e);o?o.value=n:t.next={key:e,next:t.next,value:n}}(n,t,e)}};return o}}function je(){return J?V:(J=1,V=Object)}function Re(){return X?Q:(X=1,Q=Error)}function xe(){return Z?Y:(Z=1,Y=EvalError)}function Te(){return et?tt:(et=1,tt=RangeError)}function _e(){return nt?rt:(nt=1,rt=ReferenceError)}function ke(){return it?ot:(it=1,ot=SyntaxError)}function Me(){return lt?at:(lt=1,at=URIError)}function De(){return st?ut:(st=1,ut=Math.abs)}function Fe(){return pt?ct:(pt=1,ct=Math.floor)}function Ie(){return yt?ft:(yt=1,ft=Math.max)}function Ne(){return dt?ht:(dt=1,ht=Math.min)}function Ue(){return gt?mt:(gt=1,mt=Math.pow)}function We(){return wt?bt:(wt=1,bt=Math.round)}function Le(){return St?vt:(St=1,vt=Number.isNaN||function(t){return t!=t})}function Ce(){if(At)return Ot;At=1;var t=Le();return Ot=function(e){return t(e)||0===e?e:e<0?-1:1}}function Be(){return Pt?Et:(Pt=1,Et=Object.getOwnPropertyDescriptor)}function qe(){if(Rt)return jt;Rt=1;var t=Be();if(t)try{t([],"length")}catch(e){t=null}return jt=t}function Ke(){if(Tt)return xt;Tt=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return xt=t}function He(){if(Dt)return Mt;Dt=1;var t="undefined"!=typeof Symbol&&Symbol,e=kt?_t:(kt=1,_t=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return Mt=function(){return"function"==typeof t&&("function"==typeof Symbol&&("symbol"==typeof t("foo")&&("symbol"==typeof Symbol("bar")&&e())))}}function Ge(){return It?Ft:(It=1,Ft="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function $e(){return Ut?Nt:(Ut=1,Nt=je().getPrototypeOf||null)}function ze(){if(Bt)return Ct;Bt=1;var t=function(){if(Lt)return Wt;Lt=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};return Wt=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),l=e(0,o.length-a.length),u=[],s=0;s<l;s++)u[s]="$"+s;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(n,r(a,arguments))})),o.prototype){var c=function(){};c.prototype=o.prototype,i.prototype=new c,c.prototype=null}return i},Wt}();return Ct=Function.prototype.bind||t}function Ve(){return Kt?qt:(Kt=1,qt=Function.prototype.call)}function Je(){return Gt?Ht:(Gt=1,Ht=Function.prototype.apply)}function Qe(){if(Jt)return Vt;Jt=1;var t=ze(),e=Je(),r=Ve(),n=zt?$t:(zt=1,$t="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return Vt=n||t.call(r,e)}function Xe(){if(Xt)return Qt;Xt=1;var t=ze(),e=q(),r=Ve(),n=Qe();return Qt=function(o){if(o.length<1||"function"!=typeof o[0])throw new e("a function is required");return n(t,r,o)}}function Ye(){if(Zt)return Yt;Zt=1;var t,e=Xe(),r=qe();try{t=[].__proto__===Array.prototype}catch(a){if(!a||"object"!=typeof a||!("code"in a)||"ERR_PROTO_ACCESS"!==a.code)throw a}var n=!!t&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Yt=n&&"function"==typeof n.get?e([n.get]):"function"==typeof i&&function(t){return i(null==t?t:o(t))}}function Ze(){if(ne)return re;ne=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=ze();return re=r.call(t,e)}function tr(){if(ie)return oe;var t;ie=1;var e=je(),r=Re(),n=xe(),o=Te(),i=_e(),a=ke(),l=q(),u=Me(),s=De(),c=Fe(),p=Ie(),f=Ne(),y=Ue(),h=We(),d=Ce(),m=Function,g=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(e){}},b=qe(),w=Ke(),v=function(){throw new l},S=b?function(){try{return v}catch(t){try{return b(arguments,"callee").get}catch(e){return v}}}():v,O=He()(),A=function(){if(ee)return te;ee=1;var t=Ge(),e=$e(),r=Ye();return te=t?function(e){return t(e)}:e?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return e(t)}:r?function(t){return r(t)}:null}(),E=$e(),P=Ge(),j=Je(),R=Ve(),x={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):t,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?t:ArrayBuffer,"%ArrayIteratorPrototype%":O&&A?A([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":"undefined"==typeof Atomics?t:Atomics,"%BigInt%":"undefined"==typeof BigInt?t:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?t:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":"undefined"==typeof Float16Array?t:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?t:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?t:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?t:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":x,"%Int8Array%":"undefined"==typeof Int8Array?t:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?t:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&A?A(A([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":"undefined"==typeof Map?t:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&A?A((new Map)[Symbol.iterator]()):t,"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?t:Promise,"%Proxy%":"undefined"==typeof Proxy?t:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?t:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?t:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&A?A((new Set)[Symbol.iterator]()):t,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&A?A(""[Symbol.iterator]()):t,"%Symbol%":O?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?t:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?t:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?t:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?t:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?t:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?t:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?t:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":j,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":s,"%Math.floor%":c,"%Math.max%":p,"%Math.min%":f,"%Math.pow%":y,"%Math.round%":h,"%Math.sign%":d,"%Reflect.getPrototypeOf%":P};if(A)try{null.error}catch(G){var k=A(A(G));_["%Error.prototype%"]=k}var M=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return _[e]=r,r},D={__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"]},F=ze(),I=Ze(),N=F.call(R,Array.prototype.concat),U=F.call(j,Array.prototype.splice),W=F.call(R,String.prototype.replace),L=F.call(R,String.prototype.slice),C=F.call(R,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,H=function(t,e){var r,n=t;if(I(D,n)&&(n="%"+(r=D[n])[0]+"%"),I(_,n)){var o=_[n];if(o===x&&(o=M(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new a("intrinsic "+t+" does not exist!")};return oe=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=L(t,0,1),r=L(t,-1);if("%"===e&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return W(t,B,(function(t,e,r,o){n[n.length]=r?W(o,K,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,u=o.value,s=!1,c=o.alias;c&&(n=c[0],U(r,N([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],h=L(y,0,1),d=L(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new a("property names with quotes must have matching quotes");if("constructor"!==y&&f||(s=!0),I(_,i="%"+(n+="."+y)+"%"))u=_[i];else if(null!=u){if(!(y in u)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(b&&p+1>=r.length){var m=b(u,y);u=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[y]}else f=I(u,y),u=u[y];f&&!s&&(_[i]=u)}}return u},oe}function er(){if(le)return ae;le=1;var t=tr(),e=Xe(),r=e([t("%String.prototype.indexOf%")]);return ae=function(n,o){var i=t(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?e([i]):i}}function rr(){if(se)return ue;se=1;var t=tr(),e=er(),r=Ee(),n=q(),o=t("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),s=e("Map.prototype.size",!0);return ue=!!o&&function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+r(t))},delete:function(e){if(t){var r=u(t,e);return 0===s(t)&&(t=void 0),r}return!1},get:function(e){if(t)return i(t,e)},has:function(e){return!!t&&l(t,e)},set:function(e,r){t||(t=new o),a(t,e,r)}};return e}}function nr(){if(ye)return fe;ye=1;var t=q(),e=Ee(),r=Pe(),n=rr(),o=function(){if(pe)return ce;pe=1;var t=tr(),e=er(),r=Ee(),n=rr(),o=q(),i=t("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),s=e("WeakMap.prototype.delete",!0);return ce=i?function(){var t,e,c={assert:function(t){if(!c.has(t))throw new o("Side channel does not contain "+r(t))},delete:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(n&&e)return e.delete(r);return!1},get:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?a(t,r):e&&e.get(r)},has:function(r){return i&&r&&("object"==typeof r||"function"==typeof r)&&t?u(t,r):!!e&&e.has(r)},set:function(r,o){i&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new i),l(t,r,o)):n&&(e||(e=n()),e.set(r,o))}};return c}:n}(),i=o||n||r;return fe=function(){var r,n={assert:function(r){if(!n.has(r))throw new t("Side channel does not contain "+e(r))},delete:function(t){return!!r&&r.delete(t)},get:function(t){return r&&r.get(t)},has:function(t){return!!r&&r.has(t)},set:function(t,e){r||(r=i()),r.set(t,e)}};return n}}function or(){if(de)return he;de=1;var t=String.prototype.replace,e=/%20/g,r="RFC3986";return he={default:r,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}}function ir(){if(ge)return me;ge=1;var t=or(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},i=1024;return me={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],o=0;o<e.length;++o)for(var i=e[o],a=i.obj[i.prop],l=Object.keys(a),u=0;u<l.length;++u){var s=l[u],c=a[s];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:a,prop:s}),n.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,r,o,a,l){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===o)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var s="",c=0;c<u.length;c+=i){for(var p=u.length>=i?u.slice(c,c+i):u,f=[],y=0;y<p.length;++y){var h=p.charCodeAt(y);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||l===t.RFC1738&&(40===h||41===h)?f[f.length]=p.charAt(y):h<128?f[f.length]=n[h]:h<2048?f[f.length]=n[192|h>>6]+n[128|63&h]:h<55296||h>=57344?f[f.length]=n[224|h>>12]+n[128|h>>6&63]+n[128|63&h]:(y+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(y)),f[f.length]=n[240|h>>18]+n[128|h>>12&63]+n[128|h>>6&63]+n[128|63&h])}s+=f.join("")}return s},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(r(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(e(t[o]));return n}return e(t)},merge:function t(n,i,a){if(!i)return n;if("object"!=typeof i&&"function"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var l=n;return r(n)&&!r(i)&&(l=o(n,a)),r(n)&&r(i)?(i.forEach((function(r,o){if(e.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=t(i,r,a):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return e.call(r,n)?r[n]=t(r[n],o,a):r[n]=o,r}),l)}}}function ar(){if(we)return be;we=1;var t=nr(),e=ir(),r=or(),n=Object.prototype.hasOwnProperty,o={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,a=Array.prototype.push,l=function(t,e){a.apply(t,i(e)?e:[e])},u=Date.prototype.toISOString,s=r.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:s,formatter:r.formatters[s],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p={},f=function r(n,o,a,u,s,f,y,h,d,m,g,b,w,v,S,O,A,E){for(var P,j=n,R=E,x=0,T=!1;void 0!==(R=R.get(p))&&!T;){var _=R.get(n);if(x+=1,void 0!==_){if(_===x)throw new RangeError("Cyclic object value");T=!0}void 0===R.get(p)&&(x=0)}if("function"==typeof m?j=m(o,j):j instanceof Date?j=w(j):"comma"===a&&i(j)&&(j=e.maybeMap(j,(function(t){return t instanceof Date?w(t):t}))),null===j){if(f)return d&&!O?d(o,c.encoder,A,"key",v):o;j=""}if("string"==typeof(P=j)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||e.isBuffer(j))return d?[S(O?o:d(o,c.encoder,A,"key",v))+"="+S(d(j,c.encoder,A,"value",v))]:[S(o)+"="+S(String(j))];var k,M=[];if(void 0===j)return M;if("comma"===a&&i(j))O&&d&&(j=e.maybeMap(j,d)),k=[{value:j.length>0?j.join(",")||null:void 0}];else if(i(m))k=m;else{var D=Object.keys(j);k=g?D.sort(g):D}var F=h?String(o).replace(/\./g,"%2E"):String(o),I=u&&i(j)&&1===j.length?F+"[]":F;if(s&&i(j)&&0===j.length)return I+"[]";for(var N=0;N<k.length;++N){var U=k[N],W="object"==typeof U&&U&&void 0!==U.value?U.value:j[U];if(!y||null!==W){var L=b&&h?String(U).replace(/\./g,"%2E"):String(U),C=i(j)?"function"==typeof a?a(I,L):I:I+(b?"."+L:"["+L+"]");E.set(n,x);var B=t();B.set(p,E),l(M,r(W,C,a,u,s,f,y,h,"comma"===a&&O&&i(j)?null:d,m,g,b,w,v,S,O,A,B))}}return M};return be=function(e,a){var u,s=e,p=function(t){if(!t)return c;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||c.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==t.format){if(!n.call(r.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var l,u=r.formatters[a],s=c.filter;if(("function"==typeof t.filter||i(t.filter))&&(s=t.filter),l=t.arrayFormat in o?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":c.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===t.allowDots?!0===t.encodeDotInKeys||c.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:c.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:l,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?c.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:c.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:c.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:c.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:c.encodeValuesOnly,filter:s,format:a,formatter:u,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:c.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:c.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:c.strictNullHandling}}(a);"function"==typeof p.filter?s=(0,p.filter)("",s):i(p.filter)&&(u=p.filter);var y=[];if("object"!=typeof s||null===s)return"";var h=o[p.arrayFormat],d="comma"===h&&p.commaRoundTrip;u||(u=Object.keys(s)),p.sort&&u.sort(p.sort);for(var m=t(),g=0;g<u.length;++g){var b=u[g],w=s[b];p.skipNulls&&null===w||l(y,f(w,b,h,d,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var v=y.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),v.length>0?S+v:""}}function lr(){if(Se)return ve;Se=1;var t=ir(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},i=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},a=function(r,n,o,a){if(r){var l=o.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,u=/(\[[^[\]]*])/g,s=o.depth>0&&/(\[[^[\]]*])/.exec(l),c=s?l.slice(0,s.index):l,p=[];if(c){if(!o.plainObjects&&e.call(Object.prototype,c)&&!o.allowPrototypes)return;p.push(c)}for(var f=0;o.depth>0&&null!==(s=u.exec(l))&&f<o.depth;){if(f+=1,!o.plainObjects&&e.call(Object.prototype,s[1].slice(1,-1))&&!o.allowPrototypes)return;p.push(s[1])}if(s){if(!0===o.strictDepth)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");p.push("["+l.slice(s.index)+"]")}return function(e,r,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var l=e.slice(0,-1).join("");a=Array.isArray(r)&&r[l]?r[l].length:0}for(var u=o?r:i(r,n,a),s=e.length-1;s>=0;--s){var c,p=e[s];if("[]"===p&&n.parseArrays)c=n.allowEmptyArrays&&(""===u||n.strictNullHandling&&null===u)?[]:t.combine([],u);else{c=n.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,y=n.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(y,10);n.parseArrays||""!==y?!isNaN(h)&&p!==y&&String(h)===y&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(c=[])[h]=u:"__proto__"!==y&&(c[y]=u):c={0:u}}u=c}return u}(p,n,o,a)}};return ve=function(l,u){var s=function(e){if(!e)return n;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=void 0===e.charset?n.charset:e.charset,o=void 0===e.duplicates?n.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||n.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:n.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:n.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:n.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:n.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:n.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:n.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:n.decoder,delimiter:"string"==typeof e.delimiter||t.isRegExp(e.delimiter)?e.delimiter:n.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:n.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:n.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:n.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:n.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(u);if(""===l||null==l)return s.plainObjects?{__proto__:null}:{};for(var c="string"==typeof l?function(a,l){var u={__proto__:null},s=l.ignoreQueryPrefix?a.replace(/^\?/,""):a;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=l.parameterLimit===1/0?void 0:l.parameterLimit,p=s.split(l.delimiter,l.throwOnLimitExceeded?c+1:c);if(l.throwOnLimitExceeded&&p.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var f,y=-1,h=l.charset;if(l.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[f]?h="utf-8":"utf8=%26%2310003%3B"===p[f]&&(h="iso-8859-1"),y=f,f=p.length);for(f=0;f<p.length;++f)if(f!==y){var d,m,g=p[f],b=g.indexOf("]="),w=-1===b?g.indexOf("="):b+1;-1===w?(d=l.decoder(g,n.decoder,h,"key"),m=l.strictNullHandling?null:""):(d=l.decoder(g.slice(0,w),n.decoder,h,"key"),m=t.maybeMap(i(g.slice(w+1),l,r(u[d])?u[d].length:0),(function(t){return l.decoder(t,n.decoder,h,"value")}))),m&&l.interpretNumericEntities&&"iso-8859-1"===h&&(m=o(String(m))),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var v=e.call(u,d);v&&"combine"===l.duplicates?u[d]=t.combine(u[d],m):v&&"last"!==l.duplicates||(u[d]=m)}return u}(l,s):l,p=s.plainObjects?{__proto__:null}:{},f=Object.keys(c),y=0;y<f.length;++y){var h=f[y],d=a(h,c[h],s,"string"==typeof l);p=t.merge(p,d,s)}return!0===s.allowSparse?p:t.compact(p)}}function ur(){if(Ae)return Oe;Ae=1;var t=ar(),e=lr();return Oe={formats:or(),parse:e,stringify:t}}const sr=C(ur());var cr=(t=>(t.JSON="application/json",t.FORM_URLENCODED="application/x-www-form-urlencoded",t.FORM_DATA="multipart/form-data",t.TEXT="text/plain",t.HTML="text/html",t.XML="text/xml",t.CSV="text/csv",t.STREAM="application/octet-stream",t))(cr||{}),pr=(t=>(t[t.TIME_OUT=408]="TIME_OUT",t[t.ABORTED=499]="ABORTED",t[t.NETWORK_ERROR=599]="NETWORK_ERROR",t[t.BODY_NULL=502]="BODY_NULL",t[t.UNKNOWN=601]="UNKNOWN",t))(pr||{});class fr extends Error{constructor({message:a,status:l,statusText:u,response:s,config:c,name:p}){super(a),N(this,t),N(this,e),N(this,r),N(this,n),N(this,o),N(this,i),U(this,t,a),U(this,r,l),U(this,n,u),U(this,o,s),U(this,i,c),U(this,e,p??a)}get message(){return I(this,t)}get status(){return I(this,r)}get statusText(){return I(this,n)}get response(){return I(this,o)}get config(){return I(this,i)}get name(){return I(this,e)}}t=new WeakMap,e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap;const yr=(t={},e={})=>{const r=t instanceof Headers?t:new Headers(t);var n;return(n=e)instanceof Headers||(n=new Headers(n)),n.forEach(((t,e)=>{r.set(e,t)})),r},hr=["PATCH","POST","PUT"],dr=["GET","HEAD","OPTIONS","DELETE"];class mr{constructor(t){N(this,h),N(this,a),N(this,l),N(this,u),N(this,s),N(this,c,!1),N(this,p,null),N(this,f,[]),N(this,y,"json");const{plugins:e=[],controller:r,url:n,baseURL:o="",params:i,data:m,qsArrayFormat:g="repeat",withCredentials:b,extra:w,method:v="GET",headers:S}=t;U(this,l,r??new AbortController),U(this,a,(t=>{const e=new Set;t.forEach((t=>{e.add(t)}));const r=Array.from(e).sort(((t,e)=>(t.priority??0)-(e.priority??0))),n=[],o=[],i=[],a=[],l=[];return r.forEach((t=>{t.beforeRequest&&n.push(t.beforeRequest),t.afterResponse&&o.push(t.afterResponse),t.onError&&i.push(t.onError),t.onFinally&&a.push(t.onFinally),t.transformStreamChunk&&l.push(t.transformStreamChunk)})),{beforeRequestPlugins:n,afterResponsePlugins:o,errorPlugins:i,finallyPlugins:a,transformStreamChunkPlugins:l}})(e)),U(this,u,{url:n,baseURL:o,params:i,data:m,withCredentials:b,extra:w,method:v,headers:S,qsArrayFormat:g}),U(this,s,W(this,h,d).call(this,t))}lazyFinally(t){return I(this,p)?I(this,p).finally((()=>{for(const t of I(this,f))t();U(this,f,[])})):(t&&I(this,f).push(t),null)}then(t,e){return I(this,h,w).then((async e=>null==t?void 0:t.call(this,await W(this,h,v).call(this,e))),(async t=>null==e?void 0:e.call(this,await W(this,h,g).call(this,t))))}catch(t){return I(this,h,w).catch(t)}finally(t){return I(this,h,w).finally(t)}abort(){I(this,l).abort()}blob(){return U(this,p,I(this,h,S).then((t=>t.blob())).then((t=>(U(this,y,"blob"),W(this,h,v).call(this,t))))),I(this,p)}text(){return U(this,p,I(this,h,S).then((t=>t.text())).then((t=>(U(this,y,"text"),W(this,h,v).call(this,t))))),I(this,p).finally(this.lazyFinally.bind(this)),I(this,p)}arrayBuffer(){return U(this,p,I(this,h,S).then((t=>t.arrayBuffer())).then((t=>(U(this,y,"arrayBuffer"),W(this,h,v).call(this,t))))),I(this,p).finally(this.lazyFinally.bind(this)),I(this,p)}formData(){return U(this,p,I(this,h,S).then((t=>t.formData())).then((t=>(U(this,y,"formData"),W(this,h,v).call(this,t))))),I(this,p).finally(this.lazyFinally.bind(this)),I(this,p)}bytes(){return U(this,p,I(this,h,S).then((t=>t.bytes())).then((t=>(U(this,y,"bytes"),W(this,h,v).call(this,t))))),I(this,p).finally(this.lazyFinally.bind(this)),I(this,p)}async*stream(){var t,e;const r=null==(e=null==(t=(await I(this,s)).clone())?void 0:t.body)?void 0:e.getReader();if(r)for(;;){const{done:t,value:e}=await r.read();if(t)break;let o={source:e,result:e,error:null};try{for(const t of I(this,a).transformStreamChunkPlugins)o=await t(o);yield o}catch(n){o.error=n,o.result=null,yield o}}}}a=new WeakMap,l=new WeakMap,u=new WeakMap,s=new WeakMap,c=new WeakMap,p=new WeakMap,f=new WeakMap,y=new WeakMap,h=new WeakSet,d=function({timeout:t}){return new Promise((async(e,r)=>{let n=I(this,u);const{beforeRequestPlugins:o}=I(this,a);for(const t of o)n=await t(n);const i=((t,e,r="repeat")=>{if(e){const n=sr.stringify(e,{arrayFormat:r});n&&(t=t.includes("?")?`${t}&${n}`:`${t}?${n}`)}return t})(n.baseURL+n.url,n.params,n.qsArrayFormat),s=((t,e,r,n="repeat")=>{if(!t)return null;let o=null;if(hr.includes(e.toUpperCase())){const e=new Headers(r||{}).get("Content-Type")||"";if(e.includes(cr.JSON))o=JSON.stringify(t);else if(e.includes(cr.FORM_URLENCODED))o=sr.stringify(t,{arrayFormat:n});else if(e.includes(cr.FORM_DATA)){const e=new FormData;if(!(t instanceof FormData)&&"object"==typeof t){const r=t;Object.keys(r).forEach((t=>{r.prototype.hasOwnProperty.call(t)&&e.append(t,r[t])})),o=e}}}return dr.includes(e.toUpperCase())&&(o=null),o})(n.data,n.method,n.headers,n.qsArrayFormat);var p,f;const y={...(f=["baseURL","data","extra","headers","method","params","url","withCredentials"],(p=n??{})?f&&0!==f.length?f.reduce(((t,e)=>(delete t[e],t)),{...p}):p:{}),method:n.method,headers:n.headers,signal:I(this,l).signal,credentials:n.withCredentials?"include":"omit",body:s};let d=[fetch(i,y)],m=null;if(t){const e=new Promise((e=>{m=setTimeout((()=>{var t;U(this,c,!0),null==(t=I(this,l))||t.abort()}),t)}));d.push(e)}try{const t=await Promise.race(d);return t?(t.ok&&e(t),r(new fr({message:"Fail Request",status:t.status,statusText:t.statusText,config:I(this,u),name:"Fail Request"}))):r(new fr({message:"NETWORK_ERROR",status:pr.NETWORK_ERROR,statusText:"Network Error",config:I(this,u),name:"Network Error"}))}catch(b){r(await W(this,h,g).call(this,b))}finally{m&&clearTimeout(m)}}))},m=async function(t){return t instanceof fr?t:t instanceof TypeError?"AbortError"===t.name?I(this,c)?new fr({message:"Request timeout",status:pr.TIME_OUT,statusText:"Request timeout",config:I(this,u),name:"Request timeout",response:await I(this,h,S)}):new fr({message:"Request aborted",status:pr.ABORTED,statusText:"Request aborted",config:I(this,u),name:"Request aborted",response:await I(this,h,S)}):new fr({message:t.message,status:pr.NETWORK_ERROR,statusText:"Unknown Request Error",config:I(this,u),name:t.name,response:await I(this,h,S)}):new fr({message:(null==t?void 0:t.message)??"Unknown Request Error",status:pr.UNKNOWN,statusText:"Unknown Request Error",config:I(this,u),name:"Unknown Request Error",response:await I(this,h,S)})},g=async function(t){let e=await W(this,h,m).call(this,t);for(const r of I(this,a).errorPlugins)e=await r(e);return e},b=function(){return I(this,h,S).then((t=>t.json())).then((t=>(U(this,y,"json"),W(this,h,v).call(this,t))))},w=function(){return I(this,p)?I(this,p):I(this,h,b)},v=async function(t){const e=I(this,a).afterResponsePlugins;let r={config:I(this,u),response:await I(this,h,S).then((t=>t.clone())),responseType:I(this,y),controller:I(this,l),result:t};for(const n of e)r=await n(r);return r.result},S=function(){return I(this,s).then((t=>t.clone()))};const gr=t=>new mr(t);class br{constructor({timeout:t=0,baseURL:e="",headers:r={},plugins:n=[],withCredentials:o=!1}){N(this,x),N(this,O),N(this,A),N(this,E),N(this,P,[]),N(this,j,[]),N(this,R),U(this,O,t),U(this,A,e),U(this,E,r),U(this,j,n),U(this,R,o),this.request=this.request.bind(this),this.get=this.get.bind(this),this.head=this.head.bind(this),this.options=this.options.bind(this),this.delete=this.delete.bind(this),this.post=this.post.bind(this),this.put=this.put.bind(this),this.patch=this.patch.bind(this),this.abortAll=this.abortAll.bind(this),this.use=this.use.bind(this)}use(t){return I(this,j).push(t),this}request(t,{timeout:e,headers:r,method:n="GET",params:o,data:i,qsArrayFormat:a,withCredentials:l,extra:u}={}){const s=new AbortController;I(this,P).push(s);const c=gr({url:t,baseURL:I(this,A),timeout:e??I(this,O),plugins:I(this,j),headers:yr(I(this,E),r),controller:s,method:n,params:o,data:i,qsArrayFormat:a,withCredentials:l??I(this,R),extra:u});return c.lazyFinally((()=>{U(this,P,I(this,P).filter((t=>t!==s)))})),c}get(t,e={},r){return W(this,x,T).call(this,t,e,{...r,method:"GET"})}head(t,e={},r){return W(this,x,T).call(this,t,e,{...r,method:"HEAD"})}options(t,e={},r){return W(this,x,T).call(this,t,e,{...r,method:"OPTIONS"})}delete(t,e){return this.request(t,{...e,method:"DELETE"})}post(t,e,r){return W(this,x,_).call(this,t,e,{...r,method:"POST"})}put(t,e,r){return W(this,x,_).call(this,t,e,{...r,method:"PUT"})}patch(t,e,r){return W(this,x,_).call(this,t,e,{...r,method:"PATCH"})}abortAll(){I(this,P).forEach((t=>t.abort())),U(this,P,[])}}O=new WeakMap,A=new WeakMap,E=new WeakMap,P=new WeakMap,j=new WeakMap,R=new WeakMap,x=new WeakSet,T=function(t,e={},r={}){return this.request(t,{...r,params:e})},_=function(t,e={},r={}){return this.request(t,{...r,data:e})};const wr=(t,e={})=>gr({url:t,baseURL:"",...e});wr.create=t=>new br(t),module.exports=wr;
2
2
  //# sourceMappingURL=index.js.map
package/dist/es/index.js CHANGED
@@ -6,7 +6,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
6
6
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
7
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
8
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
9
- var _message, _name, _status, _statusText, _response, _config, _plugins, _controller, _config2, _promise, _isTimeout, _HookFetch_instances, init_fn, createNormalizeError_fn, normalizeError_fn, json_get, response_get, _timeout, _baseURL, _commonHeaders, _queue, _plugins2, _withCredentials, _Base_instances, requestWithParams_fn, requestWithBody_fn;
9
+ var _message, _name, _status, _statusText, _response, _config, _plugins, _controller, _config2, _promise, _isTimeout, _executor, _finallyCallbacks, _responseType, _HookFetch_instances, init_fn, createNormalizeError_fn, normalizeError_fn, json_get, getExecutor_get, resolve_fn, response_get, _timeout, _baseURL, _commonHeaders, _queue, _plugins2, _withCredentials, _Base_instances, requestWithParams_fn, requestWithBody_fn;
10
10
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11
11
  function getDefaultExportFromCjs(x) {
12
12
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -2611,6 +2611,10 @@ class HookFetch {
2611
2611
  __privateAdd(this, _config2);
2612
2612
  __privateAdd(this, _promise);
2613
2613
  __privateAdd(this, _isTimeout, false);
2614
+ // eslint-disable-next-line no-explicit-any
2615
+ __privateAdd(this, _executor, null);
2616
+ __privateAdd(this, _finallyCallbacks, []);
2617
+ __privateAdd(this, _responseType, "json");
2614
2618
  const { plugins = [], controller, url, baseURL = "", params, data, qsArrayFormat = "repeat", withCredentials, extra, method = "GET", headers } = options;
2615
2619
  __privateSet(this, _controller, controller ?? new AbortController());
2616
2620
  __privateSet(this, _plugins, parsePlugins(plugins));
@@ -2627,33 +2631,73 @@ class HookFetch {
2627
2631
  });
2628
2632
  __privateSet(this, _promise, __privateMethod(this, _HookFetch_instances, init_fn).call(this, options));
2629
2633
  }
2634
+ lazyFinally(onfinally) {
2635
+ if (!__privateGet(this, _executor)) {
2636
+ if (onfinally) {
2637
+ __privateGet(this, _finallyCallbacks).push(onfinally);
2638
+ }
2639
+ return null;
2640
+ }
2641
+ return __privateGet(this, _executor).finally(() => {
2642
+ for (const callback of __privateGet(this, _finallyCallbacks)) {
2643
+ callback();
2644
+ }
2645
+ __privateSet(this, _finallyCallbacks, []);
2646
+ });
2647
+ }
2630
2648
  then(onfulfilled, onrejected) {
2631
- return __privateGet(this, _HookFetch_instances, json_get).then(onfulfilled, onrejected);
2649
+ return __privateGet(this, _HookFetch_instances, getExecutor_get).then(
2650
+ async (v) => onfulfilled == null ? void 0 : onfulfilled.call(this, await __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, v)),
2651
+ async (e) => onrejected == null ? void 0 : onrejected.call(this, await __privateMethod(this, _HookFetch_instances, normalizeError_fn).call(this, e))
2652
+ );
2632
2653
  }
2633
- // 没有走插件错误处理x
2634
2654
  catch(onrejected) {
2635
- return __privateGet(this, _HookFetch_instances, json_get).catch(onrejected);
2655
+ return __privateGet(this, _HookFetch_instances, getExecutor_get).catch(onrejected);
2636
2656
  }
2637
2657
  finally(onfinally) {
2638
- return __privateGet(this, _HookFetch_instances, json_get).finally(onfinally);
2658
+ return __privateGet(this, _HookFetch_instances, getExecutor_get).finally(onfinally);
2639
2659
  }
2640
2660
  abort() {
2641
2661
  __privateGet(this, _controller).abort();
2642
2662
  }
2643
2663
  blob() {
2644
- return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.blob());
2664
+ __privateSet(this, _executor, __privateGet(this, _HookFetch_instances, response_get).then((r) => r.blob()).then((r) => {
2665
+ __privateSet(this, _responseType, "blob");
2666
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2667
+ }));
2668
+ return __privateGet(this, _executor);
2645
2669
  }
2646
2670
  text() {
2647
- return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.text());
2671
+ __privateSet(this, _executor, __privateGet(this, _HookFetch_instances, response_get).then((r) => r.text()).then((r) => {
2672
+ __privateSet(this, _responseType, "text");
2673
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2674
+ }));
2675
+ __privateGet(this, _executor).finally(this.lazyFinally.bind(this));
2676
+ return __privateGet(this, _executor);
2648
2677
  }
2649
2678
  arrayBuffer() {
2650
- return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.arrayBuffer());
2679
+ __privateSet(this, _executor, __privateGet(this, _HookFetch_instances, response_get).then((r) => r.arrayBuffer()).then((r) => {
2680
+ __privateSet(this, _responseType, "arrayBuffer");
2681
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2682
+ }));
2683
+ __privateGet(this, _executor).finally(this.lazyFinally.bind(this));
2684
+ return __privateGet(this, _executor);
2651
2685
  }
2652
2686
  formData() {
2653
- return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.formData());
2687
+ __privateSet(this, _executor, __privateGet(this, _HookFetch_instances, response_get).then((r) => r.formData()).then((r) => {
2688
+ __privateSet(this, _responseType, "formData");
2689
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2690
+ }));
2691
+ __privateGet(this, _executor).finally(this.lazyFinally.bind(this));
2692
+ return __privateGet(this, _executor);
2654
2693
  }
2655
2694
  bytes() {
2656
- return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.bytes());
2695
+ __privateSet(this, _executor, __privateGet(this, _HookFetch_instances, response_get).then((r) => r.bytes()).then((r) => {
2696
+ __privateSet(this, _responseType, "bytes");
2697
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2698
+ }));
2699
+ __privateGet(this, _executor).finally(this.lazyFinally.bind(this));
2700
+ return __privateGet(this, _executor);
2657
2701
  }
2658
2702
  async *stream() {
2659
2703
  var _a, _b;
@@ -2690,6 +2734,9 @@ _controller = new WeakMap();
2690
2734
  _config2 = new WeakMap();
2691
2735
  _promise = new WeakMap();
2692
2736
  _isTimeout = new WeakMap();
2737
+ _executor = new WeakMap();
2738
+ _finallyCallbacks = new WeakMap();
2739
+ _responseType = new WeakMap();
2693
2740
  _HookFetch_instances = new WeakSet();
2694
2741
  init_fn = function({ timeout }) {
2695
2742
  return new Promise(async (resolve, reject) => {
@@ -2802,26 +2849,29 @@ normalizeError_fn = async function(error) {
2802
2849
  return err;
2803
2850
  };
2804
2851
  json_get = function() {
2805
- return new Promise((resolve, reject) => {
2806
- __privateGet(this, _HookFetch_instances, response_get).then((r) => r.json()).then(async (res) => {
2807
- let result = res;
2808
- for (const plugin of __privateGet(this, _plugins).afterResponsePlugins) {
2809
- result = await plugin(result);
2810
- }
2811
- resolve(result);
2812
- }).catch(async (err) => {
2813
- reject(await __privateMethod(this, _HookFetch_instances, normalizeError_fn).call(this, err));
2814
- }).finally(async () => {
2815
- const options = {
2816
- config: __privateGet(this, _config2),
2817
- response: await __privateGet(this, _HookFetch_instances, response_get).then((r) => r.clone())
2818
- };
2819
- for (const plugin of __privateGet(this, _plugins).finallyPlugins) {
2820
- plugin(options);
2821
- }
2822
- });
2852
+ return __privateGet(this, _HookFetch_instances, response_get).then((r) => r.json()).then((r) => {
2853
+ __privateSet(this, _responseType, "json");
2854
+ return __privateMethod(this, _HookFetch_instances, resolve_fn).call(this, r);
2823
2855
  });
2824
2856
  };
2857
+ getExecutor_get = function() {
2858
+ if (__privateGet(this, _executor)) return __privateGet(this, _executor);
2859
+ return __privateGet(this, _HookFetch_instances, json_get);
2860
+ };
2861
+ resolve_fn = async function(v) {
2862
+ const plugins = __privateGet(this, _plugins).afterResponsePlugins;
2863
+ let ctx = {
2864
+ config: __privateGet(this, _config2),
2865
+ response: await __privateGet(this, _HookFetch_instances, response_get).then((r) => r.clone()),
2866
+ responseType: __privateGet(this, _responseType),
2867
+ controller: __privateGet(this, _controller),
2868
+ result: v
2869
+ };
2870
+ for (const plugin of plugins) {
2871
+ ctx = await plugin(ctx);
2872
+ }
2873
+ return ctx.result;
2874
+ };
2825
2875
  response_get = function() {
2826
2876
  return __privateGet(this, _promise).then((r) => r.clone());
2827
2877
  };
@@ -2875,7 +2925,7 @@ class Base {
2875
2925
  withCredentials: withCredentials ?? __privateGet(this, _withCredentials),
2876
2926
  extra
2877
2927
  });
2878
- req.finally(() => {
2928
+ req.lazyFinally(() => {
2879
2929
  __privateSet(this, _queue, __privateGet(this, _queue).filter((item) => item !== controller));
2880
2930
  });
2881
2931
  return req;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "hook-fetch-plugin-response-transform",
19
19
  "hook-fetch-plugin-request-transform"
20
20
  ],
21
- "version": "0.0.6-beta",
21
+ "version": "0.0.8-beta",
22
22
  "type": "module",
23
23
  "files": [
24
24
  "dist",
@@ -41,6 +41,11 @@
41
41
  "require": "./dist/cjs/plugins/index.js",
42
42
  "import": "./dist/es/plugins/index.js",
43
43
  "types": "./types/plugins/index.d.ts"
44
+ },
45
+ "./src": {
46
+ "require": "./src/index.ts",
47
+ "import": "./src/index.ts",
48
+ "types": "./types/plugins/index.d.ts"
44
49
  }
45
50
  },
46
51
  "repository": {
@@ -56,20 +61,32 @@
56
61
  "dev": "vite",
57
62
  "build": "tsc && vite build",
58
63
  "ci:publish": "pnpm changeset publish -r",
59
- "test": "vitest"
64
+ "test": "vitest",
65
+ "lint-staged": "lint-staged"
60
66
  },
61
67
  "devDependencies": {
68
+ "@commitlint/cli": "^19.5.0",
69
+ "@commitlint/config-conventional": "^19.5.0",
70
+ "husky": "^9.1.7",
71
+ "cz-git": "^1.11.1",
72
+ "lint-staged": "^13.2.0",
62
73
  "@changesets/cli": "^2.28.1",
63
74
  "@types/qs": "^6.9.18",
64
75
  "terser": "^5.39.0",
65
76
  "typescript": "^5.7.3",
66
77
  "typescript-api-pro": "workspace:^",
67
78
  "vite": "^6.1.1",
79
+ "oxlint": "^0.16.3",
68
80
  "vite-plugin-dts": "^4.5.3",
69
81
  "vitest": "^3.0.8"
70
82
  },
71
83
  "dependencies": {
72
84
  "qs": "^6.14.0",
73
85
  "radash": "^12.1.0"
86
+ },
87
+ "config": {
88
+ "commitizen": {
89
+ "path": "node_modules/cz-git"
90
+ }
74
91
  }
75
92
  }
package/types/types.d.ts CHANGED
@@ -11,9 +11,11 @@ export interface RequestConfig<P, D, E = AnyObject> extends Omit<RequestInit, 'b
11
11
  method: RequestMethod;
12
12
  qsArrayFormat?: QueryString.IStringifyOptions['arrayFormat'];
13
13
  }
14
+ export type FetchResponseType = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'formData' | 'bytes';
14
15
  export interface FetchPluginContext<T = unknown, E = unknown, P = unknown, D = unknown> {
15
16
  config: RequestConfig<P, D, E>;
16
17
  response: Response;
18
+ responseType: FetchResponseType;
17
19
  result?: T;
18
20
  controller: AbortController;
19
21
  }
package/types/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as QueryString } from 'qs';
2
2
  import { AnyObject } from 'typescript-api-pro';
3
- import { HookFetchPlugin, BaseRequestOptions, OnFinallyHandler, RequestConfig, RequestMethod, ResponseErrorOptions, StreamContext } from './types';
3
+ import { HookFetchPlugin, BaseRequestOptions, FetchPluginContext, RequestConfig, RequestMethod, ResponseErrorOptions, StreamContext } from './types';
4
4
  export declare const delay: (ms: number) => Promise<unknown>;
5
5
  export declare const timeoutCallback: (controller: AbortController) => void;
6
6
  export declare class ResponseError<E = unknown> extends Error {
@@ -15,9 +15,9 @@ export declare class ResponseError<E = unknown> extends Error {
15
15
  }
16
16
  export declare const parsePlugins: (plugins: HookFetchPlugin[]) => {
17
17
  beforeRequestPlugins: ((config: RequestConfig<unknown, unknown, unknown>) => Promise<RequestConfig<unknown, unknown, unknown>>)[];
18
- afterResponsePlugins: ((context: import('./types').FetchPluginContext<unknown, unknown, unknown, unknown>) => Promise<import('./types').FetchPluginContext<any>>)[];
18
+ afterResponsePlugins: ((context: FetchPluginContext<unknown, unknown, unknown, unknown>) => Promise<FetchPluginContext<any>>)[];
19
19
  errorPlugins: ((error: Error) => Promise<void | Error | ResponseError<unknown>>)[];
20
- finallyPlugins: OnFinallyHandler<unknown, unknown, unknown>[];
20
+ finallyPlugins: import('./types').OnFinallyHandler<unknown, unknown, unknown>[];
21
21
  transformStreamChunkPlugins: ((chunk: StreamContext<any>) => Promise<StreamContext>)[];
22
22
  };
23
23
  export declare const buildUrl: (url: string, params?: AnyObject, qsArrayFormat?: QueryString.IStringifyOptions["arrayFormat"]) => string;
@@ -26,14 +26,15 @@ export declare const getBody: (body: AnyObject, method: RequestMethod, headers?:
26
26
  export declare class HookFetch<T, E> implements PromiseLike<T> {
27
27
  #private;
28
28
  constructor(options: BaseRequestOptions<unknown, unknown, E>);
29
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;
29
+ lazyFinally(onfinally?: (() => void) | null | undefined): Promise<T> | null;
30
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
30
31
  catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null | undefined): Promise<T | TResult>;
31
32
  finally(onfinally?: (() => void) | null | undefined): Promise<T>;
32
33
  abort(): void;
33
- blob(): Promise<Blob>;
34
- text(): Promise<string>;
35
- arrayBuffer(): Promise<ArrayBuffer>;
36
- formData(): Promise<FormData>;
37
- bytes(): Promise<Uint8Array<ArrayBufferLike>>;
34
+ blob(): Promise<any>;
35
+ text(): Promise<any>;
36
+ arrayBuffer(): Promise<any>;
37
+ formData(): Promise<any>;
38
+ bytes(): Promise<any>;
38
39
  stream<T>(): AsyncGenerator<StreamContext<T> | StreamContext<null>, void, unknown>;
39
40
  }