UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

1 lines 698 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).StellarSdk={})}(this,function(e){"use strict";function t(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}var n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}var i=r,s=o;function a(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}"function"==typeof n.setTimeout&&(i=setTimeout),"function"==typeof n.clearTimeout&&(s=clearTimeout);var c,u=[],l=!1,d=-1;function h(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=a(h);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===o||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function f(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new g(e,t)),1!==u.length||l||a(p)}function g(e,t){this.fun=e,this.array=t}g.prototype.run=function(){this.fun.apply(null,this.array)};function m(){}var y=m,w=m,b=m,v=m,S=m,A=m,E=m;var T=n.performance||{},_=T.now||T.mozNow||T.msNow||T.oNow||T.webkitNow||function(){return(new Date).getTime()};var k=new Date;var C={nextTick:f,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:y,addListener:w,once:b,off:v,removeListener:S,removeAllListeners:A,emit:E,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*_.call(T),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-k)/1e3}};function R(e,t){return function(){return e.apply(t,arguments)}}const{toString:x}=Object.prototype,{getPrototypeOf:I}=Object,{iterator:B,toStringTag:O}=Symbol,P=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),P(n,t))return!0;n=I(n)}return!1},U=(N=Object.create(null),e=>{const t=x.call(e);return N[t]||(N[t]=t.slice(8,-1).toLowerCase())});var N;const F=e=>(e=e.toLowerCase(),t=>U(t)===e),D=e=>t=>typeof t===e,{isArray:M}=Array,V=D("undefined");function q(e){return null!==e&&!V(e)&&null!==e.constructor&&!V(e.constructor)&&$(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const H=F("ArrayBuffer");const z=D("string"),$=D("function"),j=D("number"),Z=e=>null!==e&&"object"==typeof e,G=e=>{if(!Z(e))return!1;const t=I(e);return!(null!==t&&t!==Object.prototype&&null!==I(t)||L(e,O)||L(e,B))},W=F("Date"),K=F("File"),X=F("Blob"),Y=F("FileList");const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},Q=void 0!==J.FormData?J.FormData:void 0,ee=F("URLSearchParams"),[te,ne,re,oe]=["ReadableStream","Request","Response","Headers"].map(F);function ie(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),M(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(q(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function se(e,t){if(q(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n,ce=e=>!V(e)&&e!==ae;const ue=(le="undefined"!=typeof Uint8Array&&I(Uint8Array),e=>le&&e instanceof le);var le;const de=F("HTMLFormElement"),{propertyIsEnumerable:he}=Object.prototype,pe=F("RegExp"),fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ie(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const ge=F("AsyncFunction"),me=(ye="function"==typeof setImmediate,we=$(ae.postMessage),ye?setImmediate:we?(be=`axios@${Math.random()}`,ve=[],ae.addEventListener("message",({source:e,data:t})=>{e===ae&&t===be&&ve.length&&ve.shift()()},!1),e=>{ve.push(e),ae.postMessage(be,"*")}):e=>setTimeout(e));var ye,we,be,ve;const Se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ae):void 0!==C&&C.nextTick||me,Ae=e=>null!=e&&$(e[B]);var Ee={isArray:M,isArrayBuffer:H,isBuffer:q,isFormData:e=>{if(!e)return!1;if(Q&&e instanceof Q)return!0;const t=I(e);if(!t||t===Object.prototype)return!1;if(!$(e.append))return!1;const n=U(e);return"formdata"===n||"object"===n&&$(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&H(e.buffer),t},isString:z,isNumber:j,isBoolean:e=>!0===e||!1===e,isObject:Z,isPlainObject:G,isEmptyObject:e=>{if(!Z(e)||q(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:te,isRequest:ne,isResponse:re,isHeaders:oe,isUndefined:V,isDate:W,isFile:K,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:X,isRegExp:pe,isFunction:$,isStream:e=>Z(e)&&$(e.pipe),isURLSearchParams:ee,isTypedArray:ue,isFileList:Y,forEach:ie,merge:function e(...t){const{caseless:n,skipUndefined:r}=ce(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=n&&"string"==typeof i&&se(o,i)||i,a=P(o,s)?o[s]:void 0;G(a)&&G(t)?o[s]=e(a,t):G(t)?o[s]=e({},t):M(t)?o[s]=t.slice():r&&V(t)||(o[s]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||q(n))continue;if(ie(n,i),"object"!=typeof n||M(n))continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];he.call(n,t)&&i(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(ie(t,(t,r)=>{n&&$(t)?Object.defineProperty(e,r,{__proto__:null,value:R(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&I(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U,kindOfTest:F,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!j(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[B]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:de,hasOwnProperty:P,hasOwnProp:P,hasOwnInPrototypeChain:L,getSafeProp:(e,t)=>null!=e&&L(e,t)?e[t]:void 0,reduceDescriptors:fe,freezeMethods:e=>{fe(e,(t,n)=>{if($(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];$(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return M(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:se,global:ae,isContextDefined:ce,isSpecCompliantForm:function(e){return!!(e&&$(e.append)&&"FormData"===e[O]&&e[B])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Z(e)){if(t.has(e))return;if(q(e))return e;if(!("toJSON"in e)){t.add(e);const r=M(e)?[]:{};return ie(e,(e,t)=>{const o=n(e);!V(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:ge,isThenable:e=>e&&(Z(e)||$(e))&&$(e.then)&&$(e.catch),setImmediate:me,asap:Se,isIterable:Ae,isSafeIterable:e=>null!=e&&L(e,B)&&Ae(e)},Te=[],_e=[],ke="undefined"!=typeof Uint8Array?Uint8Array:Array,Ce=!1;function Re(){Ce=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Te[t]=e[t],_e[e.charCodeAt(t)]=t;_e["-".charCodeAt(0)]=62,_e["_".charCodeAt(0)]=63}function xe(e){return Te[e>>18&63]+Te[e>>12&63]+Te[e>>6&63]+Te[63&e]}function Ie(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(xe(r));return o.join("")}function Be(e){var t;Ce||Re();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,c=n-r;a<c;a+=s)i.push(Ie(e,a,a+s>c?c:a+s));return 1===r?(t=e[n-1],o+=Te[t>>2],o+=Te[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Te[t>>10],o+=Te[t>>4&63],o+=Te[t<<2&63],o+="="),i.push(o),i.join("")}function Oe(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+d],d+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)}function Pe(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,d=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*c-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=f,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+p]=255&s,p+=f,s/=256,u-=8);e[n+p-f]|=128*g}var Le={}.toString,Ue=Array.isArray||function(e){return"[object Array]"==Le.call(e)};function Ne(){return De.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Fe(e,t){if(Ne()<t)throw new RangeError("Invalid typed array length");return De.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=De.prototype:(null===e&&(e=new De(t)),e.length=t),e}function De(e,t,n){if(!(De.TYPED_ARRAY_SUPPORT||this instanceof De))return new De(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return qe(this,e)}return Me(this,e,t,n)}function Me(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);De.TYPED_ARRAY_SUPPORT?(e=t).__proto__=De.prototype:e=He(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!De.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|je(t,n);e=Fe(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if($e(t)){var n=0|ze(t.length);return 0===(e=Fe(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Fe(e,0):He(e,t);if("Buffer"===t.type&&Ue(t.data))return He(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ve(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function qe(e,t){if(Ve(t),e=Fe(e,t<0?0:0|ze(t)),!De.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function He(e,t){var n=t.length<0?0:0|ze(t.length);e=Fe(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function ze(e){if(e>=Ne())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ne().toString(16)+" bytes");return 0|e}function $e(e){return!(null==e||!e._isBuffer)}function je(e,t){if($e(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return wt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return bt(e).length;default:if(r)return wt(e).length;t=(""+t).toLowerCase(),r=!0}}function Ze(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return at(this,t,n);case"utf8":case"utf-8":return rt(this,t,n);case"ascii":return it(this,t,n);case"latin1":case"binary":return st(this,t,n);case"base64":return nt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ge(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function We(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=De.from(t,r)),$e(t))return 0===t.length?-1:Ke(e,t,n,r,o);if("number"==typeof t)return t&=255,De.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ke(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Ke(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var d=!0,h=0;h<c;h++)if(u(e,i+h)!==u(t,h)){d=!1;break}if(d)return i}return-1}function Xe(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Ye(e,t,n,r){return vt(wt(t,e.length-n),e,n,r)}function Je(e,t,n,r){return vt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Qe(e,t,n,r){return Je(e,t,n,r)}function et(e,t,n,r){return vt(bt(t),e,n,r)}function tt(e,t,n,r){return vt(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function nt(e,t,n){return 0===t&&n===e.length?Be(e):Be(e.slice(t,n))}function rt(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,c,u=e[o],l=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=ot)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ot));return n}(r)}De.TYPED_ARRAY_SUPPORT=void 0===n.TYPED_ARRAY_SUPPORT||n.TYPED_ARRAY_SUPPORT,Ne(),De.poolSize=8192,De._augment=function(e){return e.__proto__=De.prototype,e},De.from=function(e,t,n){return Me(null,e,t,n)},De.TYPED_ARRAY_SUPPORT&&(De.prototype.__proto__=Uint8Array.prototype,De.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&De[Symbol.species]),De.alloc=function(e,t,n){return function(e,t,n,r){return Ve(t),t<=0?Fe(e,t):void 0!==n?"string"==typeof r?Fe(e,t).fill(n,r):Fe(e,t).fill(n):Fe(e,t)}(null,e,t,n)},De.allocUnsafe=function(e){return qe(null,e)},De.allocUnsafeSlow=function(e){return qe(null,e)},De.isBuffer=function(e){return null!=e&&(!!e._isBuffer||St(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&St(e.slice(0,0))}(e))},De.compare=function(e,t){if(!$e(e)||!$e(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},De.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},De.concat=function(e,t){if(!Ue(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return De.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=De.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!$e(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},De.byteLength=je,De.prototype._isBuffer=!0,De.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ge(this,t,t+1);return this},De.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ge(this,t,t+3),Ge(this,t+1,t+2);return this},De.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ge(this,t,t+7),Ge(this,t+1,t+6),Ge(this,t+2,t+5),Ge(this,t+3,t+4);return this},De.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?rt(this,0,e):Ze.apply(this,arguments)},De.prototype.equals=function(e){if(!$e(e))throw new TypeError("Argument must be a Buffer");return this===e||0===De.compare(this,e)},De.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},De.prototype.compare=function(e,t,n,r,o){if(!$e(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n),l=0;l<a;++l)if(c[l]!==u[l]){i=c[l],s=u[l];break}return i<s?-1:s<i?1:0},De.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},De.prototype.indexOf=function(e,t,n){return We(this,e,t,n,!0)},De.prototype.lastIndexOf=function(e,t,n){return We(this,e,t,n,!1)},De.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Xe(this,e,t,n);case"utf8":case"utf-8":return Ye(this,e,t,n);case"ascii":return Je(this,e,t,n);case"latin1":case"binary":return Qe(this,e,t,n);case"base64":return et(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},De.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ot=4096;function it(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function st(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function at(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=yt(e[i]);return o}function ct(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function ut(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function lt(e,t,n,r,o,i){if(!$e(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function dt(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function ht(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function pt(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ft(e,t,n,r,o){return o||pt(e,0,n,4),Pe(e,t,n,r,23,4),n+4}function gt(e,t,n,r,o){return o||pt(e,0,n,8),Pe(e,t,n,r,52,8),n+8}De.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),De.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=De.prototype;else{var o=t-e;n=new De(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},De.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ut(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},De.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ut(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},De.prototype.readUInt8=function(e,t){return t||ut(e,1,this.length),this[e]},De.prototype.readUInt16LE=function(e,t){return t||ut(e,2,this.length),this[e]|this[e+1]<<8},De.prototype.readUInt16BE=function(e,t){return t||ut(e,2,this.length),this[e]<<8|this[e+1]},De.prototype.readUInt32LE=function(e,t){return t||ut(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},De.prototype.readUInt32BE=function(e,t){return t||ut(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},De.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ut(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},De.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ut(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},De.prototype.readInt8=function(e,t){return t||ut(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},De.prototype.readInt16LE=function(e,t){t||ut(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},De.prototype.readInt16BE=function(e,t){t||ut(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},De.prototype.readInt32LE=function(e,t){return t||ut(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},De.prototype.readInt32BE=function(e,t){return t||ut(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},De.prototype.readFloatLE=function(e,t){return t||ut(e,4,this.length),Oe(this,e,!0,23,4)},De.prototype.readFloatBE=function(e,t){return t||ut(e,4,this.length),Oe(this,e,!1,23,4)},De.prototype.readDoubleLE=function(e,t){return t||ut(e,8,this.length),Oe(this,e,!0,52,8)},De.prototype.readDoubleBE=function(e,t){return t||ut(e,8,this.length),Oe(this,e,!1,52,8)},De.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},De.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},De.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,255,0),De.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},De.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dt(this,e,t,!0),t+2},De.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dt(this,e,t,!1),t+2},De.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),De.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ht(this,e,t,!0),t+4},De.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ht(this,e,t,!1),t+4},De.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},De.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},De.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,127,-128),De.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},De.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dt(this,e,t,!0),t+2},De.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dt(this,e,t,!1),t+2},De.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),De.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ht(this,e,t,!0),t+4},De.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),De.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ht(this,e,t,!1),t+4},De.prototype.writeFloatLE=function(e,t,n){return ft(this,e,t,!0,n)},De.prototype.writeFloatBE=function(e,t,n){return ft(this,e,t,!1,n)},De.prototype.writeDoubleLE=function(e,t,n){return gt(this,e,t,!0,n)},De.prototype.writeDoubleBE=function(e,t,n){return gt(this,e,t,!1,n)},De.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!De.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},De.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!De.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=$e(e)?e:wt(new De(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function yt(e){return e<16?"0"+e.toString(16):e.toString(16)}function wt(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function bt(e){return function(e){var t,n,r,o,i,s;Ce||Re();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ke(3*a/4-i),r=i>0?a-4:a;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)o=_e[e.charCodeAt(t)]<<18|_e[e.charCodeAt(t+1)]<<12|_e[e.charCodeAt(t+2)]<<6|_e[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=_e[e.charCodeAt(t)]<<2|_e[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=_e[e.charCodeAt(t)]<<10|_e[e.charCodeAt(t+1)]<<4|_e[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(mt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function vt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function St(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}const At=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Et=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Tt=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _t(e,t){return Ee.isArray(e)?e.map(e=>_t(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function kt(e){const t=Object.create(null);return Ee.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>_t(e,Tt))(e)}),t}const Ct=Symbol("internals");function Rt(e){return e&&String(e).trim().toLowerCase()}function xt(e){return!1===e||null==e?e:Ee.isArray(e)?e.map(xt):(e=>_t(e,Et))(String(e))}function It(e,t,n,r,o){return Ee.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ee.isString(t)?Ee.isString(r)?-1!==t.indexOf(r):Ee.isRegExp(r)?r.test(t):void 0:void 0)}let Bt=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Rt(t);if(!o)return;const i=Ee.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=xt(e))}const i=(e,t)=>Ee.forEach(e,(e,n)=>o(e,n,t));if(Ee.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ee.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&At[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Ee.isObject(e)&&Ee.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!Ee.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],Ee.hasOwnProp(o,r)?(n=o[r],o[r]=Ee.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Rt(e)){const n=Ee.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ee.isFunction(t))return t.call(this,e,n);if(Ee.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Rt(e)){const n=Ee.findKey(this,e);return!(!n||void 0===this[n]||t&&!It(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Rt(e)){const o=Ee.findKey(n,e);!o||t&&!It(0,n[o],o,t)||(delete n[o],r=!0)}}return Ee.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!It(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ee.forEach(this,(r,o)=>{const i=Ee.findKey(n,o);if(i)return t[i]=xt(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=xt(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ee.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ee.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ct]=this[Ct]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Rt(e);t[r]||(!function(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Ee.isArray(e)?e.forEach(r):r(e),this}};Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ee.reduceDescriptors(Bt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ee.freezeMethods(Bt);function Ot(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Ee.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof Bt&&(e=e.toJSON()),r.push(e),Ee.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Ee.isUndefined(r)||(t[n]=r)});else{if(!Ee.isPlainObject(e)&&function(e){if(Ee.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ee.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(i);Ee.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}let Pt=class e extends Error{static from(t,n,r,o,i,s){const a=new e(t.message,n||t.code,r,o,i);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Ee.hasOwnProp(e,"redact")?e.redact:void 0,n=Ee.isArray(t)&&t.length>0?Ot(e,t):Ee.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ut(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Nt,Ft;Pt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Pt.ERR_BAD_OPTION="ERR_BAD_OPTION",Pt.ECONNABORTED="ECONNABORTED",Pt.ETIMEDOUT="ETIMEDOUT",Pt.ECONNREFUSED="ECONNREFUSED",Pt.ERR_NETWORK="ERR_NETWORK",Pt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Pt.ERR_DEPRECATED="ERR_DEPRECATED",Pt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Pt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Pt.ERR_CANCELED="ERR_CANCELED",Pt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Pt.ERR_INVALID_URL="ERR_INVALID_URL",Pt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Dt=Lt(Ft?Nt:(Ft=1,Nt="object"==typeof self?self.FormData:window.FormData));function Mt(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function Vt(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function qt(e,t,n){return e?e.concat(t).map(function(e,t){return e=Vt(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ht=Ee.toFlatObject(Ee,{},null,function(e){return/^is[A-Z]/.test(e)});function zt(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new(Dt||FormData);const r=(n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ee.isUndefined(t[e])})).metaTokens,o=n.visitor||p,i=n.dots,s=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,u=a&&Ee.isSpecCompliantForm(t),l=[];if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(Ee.isDate(e))return e.toISOString();if(Ee.isBoolean(e))return e.toString();if(!u&&Ee.isBlob(e))throw new Pt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(e)||Ee.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):De.from(e):e}function h(e){if(e>c)throw new Pt("Object is too deeply nested ("+e+" levels). Max depth: "+c,Pt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,o){let a=e;if(Ee.isReactNative(t)&&Ee.isReactNativeBlob(e))return t.append(qt(o,n,i),d(e)),!1;if(e&&!o&&"object"==typeof e)if(Ee.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(c===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!Ee.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),h(t+n.length-1),r})}(e,1);else if(Ee.isArray(e)&&function(e){return Ee.isArray(e)&&!e.some(Mt)}(e)||(Ee.isFileList(e)||Ee.endsWith(n,"[]"))&&(a=Ee.toArray(e)))return n=Vt(n),a.forEach(function(e,r){!Ee.isUndefined(e)&&null!==e&&t.append(!0===s?qt([n],r,i):null===s?n:n+"[]",d(e))}),!1;return!!Mt(e)||(t.append(qt(o,n,i),d(e)),!1)}const f=Object.assign(Ht,{defaultVisitor:p,convertValue:d,isVisitable:Mt});if(!Ee.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!Ee.isUndefined(n)){if(h(i),-1!==l.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));l.push(n),Ee.forEach(n,function(n,s){!0===(!(Ee.isUndefined(n)||null===n)&&o.call(t,n,Ee.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s],i+1)}),l.pop()}}(e),t}function $t(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function jt(e,t){this._pairs=[],e&&zt(e,this,t)}const Zt=jt.prototype;function Gt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wt(e,t,n){if(!t)return e;const r=Ee.isFunction(n)?{serialize:n}:n,o=Ee.getSafeProp(r,"encode")||Gt,i=Ee.getSafeProp(r,"serialize");let s;if(s=i?i(t,r):Ee.isURLSearchParams(t)?t.toString():new jt(t,r).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Zt.append=function(e,t){this._pairs.push([e,t])},Zt.toString=function(e){const t=e?function(t){return e.call(this,t,$t)}:$t;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Kt{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ee.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Xt,Yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Jt={},Qt=2147483647,en=/[^\x20-\x7E]/,tn=/[\x2E\u3002\uFF0E\uFF61]/g,nn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},rn=Math.floor,on=String.fromCharCode;function sn(e){throw new RangeError(nn[e])}function an(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function cn(e,t,n){var r=0;for(e=n?rn(e/700):e>>1,e+=rn(e/t);e>455;r+=36)e=rn(e/35);return rn(r+36*e/(e+38))}function un(e){return function(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}((e=e.replace(tn,".")).split("."),t).join(".");return r+o}(e,function(e){return en.test(e)?"xn--"+function(e){var t,n,r,o,i,s,a,c,u,l,d,h,p,f,g,m=[];for(e=function(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}(e),h=e.length,t=128,n=0,i=72,s=0;s<h;++s)(d=e[s])<128&&m.push(on(d));for(r=o=m.length,o&&m.push("-");r<h;){for(a=Qt,s=0;s<h;++s)(d=e[s])>=t&&d<a&&(a=d);for(a-t>rn((Qt-n)/(p=r+1))&&sn("overflow"),n+=(a-t)*p,t=a,s=0;s<h;++s)if((d=e[s])<t&&++n>Qt&&sn("overflow"),d==t){for(c=n,u=36;!(c<(l=u<=i?1:u>=i+26?26:u-i));u+=36)g=c-l,f=36-l,m.push(on(an(l+g%f,0))),c=rn(g/f);m.push(on(an(c,0))),i=cn(n,p,r==o),n=0,++r}++n,++t}return m.join("")}(e):e})}Xt="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var ln=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},dn=/%[sdj%]/g;function hn(e){if(!Rn(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(yn(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(dn,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])_n(s)||!On(s)?i+=" "+s:i+=" "+yn(s);return i}function pn(e,t){if(In(n.process))return function(){return pn(e,t).apply(this,arguments)};if(!0===C.noDeprecation)return e;var r=!1;return function(){if(!r){if(C.throwDeprecation)throw new Error(t);C.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}}var fn,gn={};function mn(e){if(In(fn)&&(fn=C.env.NODE_DEBUG||""),e=e.toUpperCase(),!gn[e])if(new RegExp("\\b"+e+"\\b","i").test(fn)){gn[e]=function(){var t=hn.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else gn[e]=function(){};return gn[e]}function yn(e,t){var n={seen:[],stylize:bn};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Tn(t)?n.showHidden=t:t&&Hn(n,t),In(n.showHidden)&&(n.showHidden=!1),In(n.depth)&&(n.depth=2),In(n.colors)&&(n.colors=!1),In(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=wn),vn(n,e,n.depth)}function wn(e,t){var n=yn.styles[t];return n?"\x1b["+yn.colors[n][0]+"m"+e+"\x1b["+yn.colors[n][1]+"m":e}function bn(e,t){return e}function vn(e,t,n){if(e.customInspect&&t&&Un(t.inspect)&&t.inspect!==yn&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Rn(r)||(r=vn(e,r,n)),r}var o=function(e,t){if(In(t))return e.stylize("undefined","undefined");if(Rn(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Cn(t))return e.stylize(""+t,"number");if(Tn(t))return e.stylize(""+t,"boolean");if(_n(t))return e.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Ln(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Sn(t);if(0===i.length){if(Un(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Bn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Pn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ln(t))return Sn(t)}var c,u="",l=!1,d=["{","}"];(En(t)&&(l=!0,d=["[","]"]),Un(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return Bn(t)&&(u=" "+RegExp.prototype.toString.call(t)),Pn(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Ln(t)&&(u=" "+Sn(t)),0!==i.length||l&&0!=t.length?n<0?Bn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)zn(t,String(s))?i.push(An(e,t,n,r,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(An(e,t,n,r,o,!0))}),i}(e,t,n,s,i):i.map(function(r){return An(e,t,n,s,r,l)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,d)):d[0]+u+d[1]}function Sn(e){return"["+Error.prototype.toString.call(e)+"]"}function An(e,t,n,r,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),zn(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=_n(n)?vn(e,c.value,null):vn(e,c.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),In(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function En(e){return Array.isArray(e)}function Tn(e){return"boolean"==typeof e}function _n(e){return null===e}function kn(e){return null==e}function Cn(e){return"number"==typeof e}function Rn(e){return"string"==typeof e}function xn(e){return"symbol"==typeof e}function In(e){return void 0===e}function Bn(e){return On(e)&&"[object RegExp]"===Dn(e)}function On(e){return"object"==typeof e&&null!==e}function Pn(e){return On(e)&&"[object Date]"===Dn(e)}function Ln(e){return On(e)&&("[object Error]"===Dn(e)||e instanceof Error)}function Un(e){return"function"==typeof e}function Nn(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Fn(e){return De.isBuffer(e)}function Dn(e){return Object.prototype.toString.call(e)}function Mn(e){return e<10?"0"+e.toString(10):e.toString(10)}yn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},yn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Vn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qn(){var e,t;console.log("%s - %s",(e=new Date,t=[Mn(e.getHours()),Mn(e.getMinutes()),Mn(e.getSeconds())].join(":"),[e.getDate(),Vn[e.getMonth()],t].join(" ")),hn.apply(null,arguments))}function Hn(e,t){if(!t||!On(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function zn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $n="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function jn(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if($n&&e[$n]){var t;if("function"!=typeof(t=e[$n]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,$n,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function