UNPKG

ebay-api

Version:

eBay API for Node and Browser

1 lines 215 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).eBayApi=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getAugmentedNamespace(e){var t=e.default;if("function"==typeof t){var r=function a(){if(this instanceof a){var e=[null];e.push.apply(e,arguments);var r=Function.bind.apply(t,e);return new r}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var t={},r={},n={},o={},i={},s={};function bind$2(e,t){return function wrap(){return e.apply(t,arguments)}}const{toString:u}=Object.prototype,{getPrototypeOf:c}=Object,l=(d=Object.create(null),e=>{const t=u.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const kindOfTest=e=>(e=e.toLowerCase(),t=>l(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:p}=Array,f=typeOfTest("undefined");const E=kindOfTest("ArrayBuffer");const _=typeOfTest("string"),g=typeOfTest("function"),h=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==l(e))return!1;const t=c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=kindOfTest("Date"),R=kindOfTest("File"),y=kindOfTest("Blob"),A=kindOfTest("FileList"),I=kindOfTest("URLSearchParams");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),p(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function findKey(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const T="undefined"==typeof self?void 0===e?void 0:e:self,isContextDefined=e=>!f(e)&&e!==T;const S=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&c(Uint8Array)),O=kindOfTest("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,((r,o)=>{!1!==t(r,o,e)&&(n[o]=r)})),Object.defineProperties(e,n)};var b={isArray:p,isArrayBuffer:E,isBuffer:function isBuffer$1(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||u.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&E(e.buffer),t},isString:_,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:isObject,isPlainObject:isPlainObject,isUndefined:f,isDate:m,isFile:R,isBlob:y,isRegExp:N,isFunction:g,isStream:e=>isObject(e)&&g(e.pipe),isURLSearchParams:I,isTypedArray:S,isFileList:A,forEach:forEach,merge:function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},assignValue=(r,n)=>{const o=e&&findKey(t,n)||n;isPlainObject(t[o])&&isPlainObject(r)?t[o]=merge$1(t[o],r):isPlainObject(r)?t[o]=merge$1({},r):p(r)?t[o]=r.slice():t[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],assignValue);return t},extend:(e,t,r,{allOwnKeys:n}={})=>(forEach(t,((t,n)=>{r&&g(t)?e[n]=bind$2(t,r):e[n]=t}),{allOwnKeys:n}),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,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const u={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==r&&c(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:kindOfTest,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!h(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:O,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,((t,r)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];g(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},define=e=>{e.forEach((e=>{r[e]=!0}))};return p(e)?define(e):define(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function replacer(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:findKey,global:T,isContextDefined:isContextDefined,toJSONObject:e=>{const t=new Array(10),visit=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const n=p(e)?[]:{};return forEach(e,((e,t)=>{const o=visit(e,r+1);!f(o)&&(n[t]=o)})),t[r]=void 0,n}}return e};return visit(e,0)}};function AxiosError(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}b.inherits(AxiosError,Error,{toJSON:function toJSON(){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:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const P=AxiosError.prototype,D={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{D[e]={value:e}})),Object.defineProperties(AxiosError,D),Object.defineProperty(P,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,o,i)=>{const s=Object.create(P);return b.toFlatObject(e,s,(function filter(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),AxiosError.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var U="object"==typeof self?self.FormData:window.FormData;function isVisitable(e){return b.isPlainObject(e)||b.isArray(e)}function removeBrackets(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map((function each(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const L=b.toFlatObject(b,{},null,(function filter(e){return/^is[A-Z]/.test(e)}));function toFormData(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new(U||FormData);const n=(r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function defined(e,t){return!b.isUndefined(t[e])}))).metaTokens,o=r.visitor||defaultVisitor,i=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&function isSpecCompliant(e){return e&&b.isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator]}(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(b.isDate(e))return e.toISOString();if(!u&&b.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(e)||b.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,r,o){let u=e;if(e&&!o&&"object"==typeof e)if(b.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(b.isArray(e)&&function isFlatArray(e){return b.isArray(e)&&!e.some(isVisitable)}(e)||b.isFileList(e)||b.endsWith(r,"[]")&&(u=b.toArray(e)))return r=removeBrackets(r),u.forEach((function each(e,n){!b.isUndefined(e)&&null!==e&&t.append(!0===s?renderKey([r],n,i):null===s?r:r+"[]",convertValue(e))})),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),convertValue(e)),!1)}const c=[],l=Object.assign(L,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});if(!b.isObject(e))throw new TypeError("data must be an object");return function build(e,r){if(!b.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+r.join("."));c.push(e),b.forEach(e,(function each(e,n){!0===(!(b.isUndefined(e)||null===e)&&o.call(t,e,b.isString(n)?n.trim():n,r,l))&&build(e,r?r.concat(n):[n])})),c.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function replacer(e){return t[e]}))}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const M=AxiosURLSearchParams.prototype;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode$2,o=r&&r.serialize;let i;if(i=o?o(t,r):b.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}M.append=function append(e,t){this._pairs.push([e,t])},M.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map((function each(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var v=class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))}},B={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,x=FormData;const w=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var G={isBrowser:!0,classes:{URLSearchParams:F,FormData:x,Blob:Blob},isStandardBrowserEnv:w,isStandardBrowserWebWorkerEnv:k,protocols:["http","https","file","blob","url","data"]};function formDataToJSON(e){function buildPath(e,t,r,n){let o=e[n++];const i=Number.isFinite(+o),s=n>=e.length;if(o=!o&&b.isArray(r)?r.length:o,s)return b.hasOwnProp(r,o)?r[o]=[r[o],t]:r[o]=t,!i;r[o]&&b.isObject(r[o])||(r[o]=[]);return buildPath(e,t,r[o],n)&&b.isArray(r[o])&&(r[o]=function arrayToObject$1(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(r[o])),!i}if(b.isFormData(e)&&b.isFunction(e.entries)){const t={};return b.forEachEntry(e,((e,r)=>{buildPath(function parsePropPath(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,t,0)})),t}return null}const Y={"Content-Type":void 0};const j={transitional:B,adapter:["xhr","http"],transformRequest:[function transformRequest(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=b.isObject(e);o&&b.isHTMLForm(e)&&(e=new FormData(e));if(b.isFormData(e))return n&&n?JSON.stringify(formDataToJSON(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function toURLEncodedForm(e,t){return toFormData(e,new G.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return G.isNode&&b.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function stringifySafely(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){const t=this.transitional||j.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&b.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};b.forEach(["delete","get","head"],(function forEachMethodNoData(e){j.headers[e]={}})),b.forEach(["post","put","patch"],(function forEachMethodWithData(e){j.headers[e]=b.merge(Y)}));var H=j;const $=b.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 V=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:b.isArray(e)?e.map(normalizeValue):String(e)}function matchHeaderValue(e,t,r,n){return b.isFunction(n)?n.call(this,t,r):b.isString(t)?b.isString(n)?-1!==t.indexOf(n):b.isRegExp(n)?n.test(t):void 0:void 0}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function setHeader(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=b.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const setHeaders=(e,t)=>b.forEach(e,((e,r)=>setHeader(e,r,t)));return b.isPlainObject(e)||e instanceof this.constructor?setHeaders(e,t):b.isString(e)&&(e=e.trim())&&!function isValidHeaderName(e){return/^[-_a-zA-Z]+$/.test(e.trim())}(e)?setHeaders((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function parser(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&$[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&setHeader(t,e,r),this}get(e,t){if(e=normalizeHeader(e)){const r=b.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(b.isFunction(t))return t.call(this,e,r);if(b.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=b.findKey(this,e);return!(!r||t&&!matchHeaderValue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function deleteHeader(e){if(e=normalizeHeader(e)){const o=b.findKey(r,e);!o||t&&!matchHeaderValue(0,r[o],o,t)||(delete r[o],n=!0)}}return b.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),n}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const t=this,r={};return b.forEach(this,((n,o)=>{const i=b.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const s=e?function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=normalizeValue(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return b.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&b.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[V]=this[V]={accessors:{}}).accessors,r=this.prototype;function defineAccessor(e){const n=normalizeHeader(e);t[n]||(!function buildAccessors(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return b.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),b.freezeMethods(AxiosHeaders.prototype),b.freezeMethods(AxiosHeaders);var K=AxiosHeaders;function transformData(e,t){const r=this||H,n=t||r,o=K.from(n.headers);let i=n.data;return b.forEach(e,(function transform(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var W=G.isStandardBrowserEnv?function standardBrowserEnv(){return{write:function write(e,t,r,n,o,i){const s=[];s.push(e+"="+encodeURIComponent(t)),b.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),b.isString(n)&&s.push("path="+n),b.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}};function buildFullPath(e,t){return e&&!function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var q=G.isStandardBrowserEnv?function standardBrowserEnv(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function resolveURL(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=resolveURL(window.location.href),function isURLSameOrigin(e){const t=b.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function isURLSameOrigin(){return!0};function progressEventReducer(e,t){let r=0;const n=function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function push(u){const c=Date.now(),l=n[s];o||(o=c),r[i]=u,n[i]=c;let d=s,p=0;for(;d!==i;)p+=r[d++],d%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*p/f):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,c=n(u);r=i;const l={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}var X="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function dispatchXhrRequest(t,r){let n=e.data;const o=K.from(e.headers).normalize(),i=e.responseType;let s;function done(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}b.isFormData(n)&&(G.isStandardBrowserEnv||G.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const c=buildFullPath(e.baseURL,e.url);function onloadend(){if(!u)return;const n=K.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function _resolve(e){t(e),done()}),(function _reject(e){r(e),done()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),buildURL(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=onloadend:u.onreadystatechange=function handleLoad(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(onloadend)},u.onabort=function handleAbort(){u&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,u)),u=null)},u.onerror=function handleError(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,u)),u=null},u.ontimeout=function handleTimeout(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||B;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new AxiosError(t,n.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,u)),u=null},G.isStandardBrowserEnv){const t=(e.withCredentials||q(c))&&e.xsrfCookieName&&W.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in u&&b.forEach(o.toJSON(),(function setRequestHeader(e,t){u.setRequestHeader(t,e)})),b.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&"json"!==i&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{u&&(r(!t||t.type?new CanceledError(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const l=function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);l&&-1===G.protocols.indexOf(l)?r(new AxiosError("Unsupported protocol "+l+":",AxiosError.ERR_BAD_REQUEST,e)):u.send(n||null)}))};const J={http:null,xhr:X};b.forEach(J,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var adapters_getAdapter=e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=b.isString(r)?J[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new AxiosError(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(b.hasOwnProp(J,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!b.isFunction(n))throw new TypeError("adapter is not a function");return n};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=K.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters_getAdapter(e.adapter||H.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=K.from(t.headers),t}),(function onAdapterRejection(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=K.from(t.response.headers))),Promise.reject(t)}))}const headersToObject=e=>e instanceof K?e.toJSON():e;function mergeConfig(e,t){t=t||{};const r={};function getMergedValue(e,t,r){return b.isPlainObject(e)&&b.isPlainObject(t)?b.merge.call({caseless:r},e,t):b.isPlainObject(t)?b.merge({},t):b.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,r){return b.isUndefined(t)?b.isUndefined(e)?void 0:getMergedValue(void 0,e,r):getMergedValue(e,t,r)}function valueFromConfig2(e,t){if(!b.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return b.isUndefined(t)?b.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(r,n,o){return o in t?getMergedValue(r,n):o in e?getMergedValue(void 0,r):void 0}const n={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t)=>mergeDeepProperties(headersToObject(e),headersToObject(t),!0)};return b.forEach(Object.keys(e).concat(Object.keys(t)),(function computeConfigValue(o){const i=n[o]||mergeDeepProperties,s=i(e[o],t[o],o);b.isUndefined(s)&&i!==mergeDirectKeys||(r[o]=s)})),r}const z="1.2.1",Q={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Q[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Z={};Q.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v1.2.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new AxiosError(formatMessage(n," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!Z[n]&&(Z[n]=!0,console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}};var ee={assertOptions:function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new AxiosError("option "+i+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}},validators:Q};const te=ee.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new v,response:new v}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;let i;void 0!==r&&ee.assertOptions(r,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean)},!1),void 0!==n&&ee.assertOptions(n,{encode:te.function,serialize:te.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&b.merge(o.common,o[t.method]),i&&b.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=K.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach((function unshiftRequestInterceptors(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function pushResponseInterceptors(e){c.push(e.fulfilled,e.rejected)}));let d,p=0;if(!u){const e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),d=e.length,l=Promise.resolve(t);p<d;)l=l.then(e[p++],e[p++]);return l}d=s.length;let f=t;for(p=0;p<d;){const e=s[p++],t=s[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=dispatchRequest.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,d=c.length;p<d;)l=l.then(c[p++],c[p++]);return l}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(mergeConfig(r||{},{method:e,url:t,data:(r||{}).data}))}})),b.forEach(["post","put","patch"],(function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(r,n,o){return this.request(mergeConfig(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)}));var re=Axios;class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function promiseExecutor(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function reject(){r.unsubscribe(t)},n},e((function cancel(e,n,o){r.reason||(r.reason=new CanceledError(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}}}var ne=CancelToken;const oe=function createInstance(e){const t=new re(e),r=bind$2(re.prototype.request,t);return b.extend(r,re.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function create(t){return createInstance(mergeConfig(e,t))},r}(H);oe.Axios=re,oe.CanceledError=CanceledError,oe.CancelToken=ne,oe.isCancel=isCancel,oe.VERSION=z,oe.toFormData=toFormData,oe.AxiosError=AxiosError,oe.Cancel=oe.CanceledError,oe.all=function all(e){return Promise.all(e)},oe.spread=function spread(e){return function wrap(t){return e.apply(null,t)}},oe.isAxiosError=function isAxiosError(e){return b.isObject(e)&&!0===e.isAxiosError},oe.mergeConfig=mergeConfig,oe.AxiosHeaders=K,oe.formToJSON=e=>formDataToJSON(b.isHTMLForm(e)?new FormData(e):e),oe.default=oe;var ie,ae,se=oe,ue={exports:{}};function requireMs(){if(ae)return ie;ae=1;var e=1e3,t=60*e,r=60*t,n=24*r,o=7*n,i=365.25*n;function plural(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}return ie=function(s,u){u=u||{};var c=typeof s;if("string"===c&&s.length>0)return function parse(s){if((s=String(s)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===c&&isFinite(s))return u.long?function fmtLong(o){var i=Math.abs(o);if(i>=n)return plural(o,i,n,"day");if(i>=r)return plural(o,i,r,"hour");if(i>=t)return plural(o,i,t,"minute");if(i>=e)return plural(o,i,e,"second");return o+" ms"}(s):function fmtShort(o){var i=Math.abs(o);if(i>=n)return Math.round(o/n)+"d";if(i>=r)return Math.round(o/r)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}var ce=function setup(e){function createDebug(e){let t,r,n,o=null;function debug(...e){if(!debug.enabled)return;const r=debug,n=Number(new Date),o=n-(t||n);r.diff=o,r.prev=t,r.curr=n,t=n,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if("%%"===t)return"%";i++;const o=createDebug.formatters[n];if("function"==typeof o){const n=e[i];t=o.call(r,n),e.splice(i,1),i--}return t})),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==createDebug.namespaces&&(r=createDebug.namespaces,n=createDebug.enabled(e)),n),set:e=>{o=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){let t;createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.slice(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")))},createDebug.enabled=function enabled(e){if("*"===e[e.length-1])return!0;let t,r;for(t=0,r=createDebug.skips.length;t<r;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,r=createDebug.names.length;t<r;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=requireMs(),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{createDebug[t]=e[t]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug};!function(e,t){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=ce(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ue,ue.exports);var le,de="undefined"!=typeof Symbol&&Symbol,pe=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},fe="Function.prototype.bind called on incompatible ",Ee=Array.prototype.slice,_e=Object.prototype.toString,ge="[object Function]",he=function bind(e){var t=this;if("function"!=typeof t||_e.call(t)!==ge)throw new TypeError(fe+t);for(var r,n=Ee.call(arguments,1),binder=function(){if(this instanceof r){var o=t.apply(this,n.concat(Ee.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Ee.call(arguments)))},o=Math.max(0,t.length-n.length),i=[],s=0;s<o;s++)i.push("$"+s);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(binder),t.prototype){var u=function Empty(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},me=Function.prototype.bind||he,Re=me.call(Function.call,Object.prototype.hasOwnProperty),ye=SyntaxError,Ae=Function,Ie=TypeError,getEvalledConstructor=function(e){try{return Ae('"use strict"; return ('+e+").constructor;")()}catch(e){}},Te=Object.getOwnPropertyDescriptor;if(Te)try{Te({},"")}catch(e){Te=null}var throwTypeError=function(){throw new Ie},Se=Te?function(){try{return throwTypeError}catch(e){try{return Te(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,Oe=function hasNativeSymbols(){return"function"==typeof de&&("function"==typeof Symbol&&("symbol"==typeof de("foo")&&("symbol"==typeof Symbol("bar")&&pe())))}(),Ce=Object.getPrototypeOf||function(e){return e.__proto__},Ne={},be="undefined"==typeof Uint8Array?le:Ce(Uint8Array),Pe={"%AggregateError%":"undefined"==typeof AggregateError?le:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?le:ArrayBuffer,"%ArrayIteratorPrototype%":Oe?Ce([][Symbol.iterator]()):le,"%AsyncFromSyncIteratorPrototype%":le,"%AsyncFunction%":Ne,"%AsyncGenerator%":Ne,"%AsyncGeneratorFunction%":Ne,"%AsyncIteratorPrototype%":Ne,"%Atomics%":"undefined"==typeof Atomics?le:Atomics,"%BigInt%":"undefined"==typeof BigInt?le:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?le:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?le:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?le:FinalizationRegistry,"%Function%":Ae,"%GeneratorFunction%":Ne,"%Int8Array%":"undefined"==typeof Int8Array?le:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?le:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oe?Ce(Ce([][Symbol.iterator]())):le,"%JSON%":"object"==typeof JSON?JSON:le,"%Map%":"undefined"==typeof Map?le:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Oe?Ce((new Map)[Symbol.iterator]()):le,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?le:Promise,"%Proxy%":"undefined"==typeof Proxy?le:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?le:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?le:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Oe?Ce((new Set)[Symbol.iterator]()):le,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oe?Ce(""[Symbol.iterator]()):le,"%Symbol%":Oe?Symbol:le,"%SyntaxError%":ye,"%ThrowTypeError%":Se,"%TypedArray%":be,"%TypeError%":Ie,"%Uint8Array%":"undefined"==typeof Uint8Array?le:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?le:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?le:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?le:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?le:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?le:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?le:WeakSet},De=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var r=doEval("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=doEval("%AsyncGenerator%");n&&(t=Ce(n.prototype))}return Pe[e]=t,t},Ue={"%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"]},Le=me,Me=Re,ve=Le.call(Function.call,Array.prototype.concat),Be=Le.call(Function.apply,Array.prototype.splice),Fe=Le.call(Function.call,String.prototype.replace),xe=Le.call(Function.call,String.prototype.slice),we=Le.call(Function.call,RegExp.prototype.exec),ke=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ge=/\\(\\)?/g,Ye=function stringToPath(e){var t=xe(e,0,1),r=xe(e,-1);if("%"===t&&"%"!==r)throw new ye("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ye("invalid intrinsic syntax, expected opening `%`");var n=[];return Fe(e,ke,(function(e,t,r,o){n[n.length]=r?Fe(o,Ge,"$1"):t||e})),n},je=function getBaseIntrinsic(e,t){var r,n=e;if(Me(Ue,n)&&(n="%"+(r=Ue[n])[0]+"%"),Me(Pe,n)){var o=Pe[n];if(o===Ne&&(o=De(n)),void 0===o&&!t)throw new Ie("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ye("intrinsic "+e+" does not exist!")},He=function GetIntrinsic(e,t){if("string"!=typeof e||0===e.length)throw new Ie("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ie('"allowMissing" argument must be a boolean');if(null===we(/^%?[^%]*%?$/,e))throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ye(e),n=r.length>0?r[0]:"",o=je("%"+n+"%",t),i=o.name,s=o.value,u=!1,c=o.alias;c&&(n=c[0],Be(r,ve([0,1],c)));for(var l=1,d=!0;l<r.length;l+=1){var p=r[l],f=xe(p,0,1),E=xe(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===E||"'"===E||"`"===E)&&f!==E)throw new ye("property names with quotes must have matching quotes");if("constructor"!==p&&d||(u=!0),Me(Pe,i="%"+(n+="."+p)+"%"))s=Pe[i];else if(null!=s){if(!(p in s)){if(!t)throw new Ie("base intrinsic for "+e+" exists, but the property is not available.");return}if(Te&&l+1>=r.length){var _=Te(s,p);s=(d=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:s[p]}else d=Me(s,p),s=s[p];d&&!u&&(Pe[i]=s)}}return s},$e={exports:{}};!function(e){var t=me,r=He,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),s=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function callBind(e){var r=i(t,o,arguments);if(s&&u){var n=s(r,"length");n.configurable&&u(r,"length",{value:1+c(0,e.length-(arguments.length-1))})}return r};var l=function applyBind(){return i(t,n,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}($e);var Ve=He,Ke=$e.exports,We=Ke(Ve("String.prototype.indexOf")),qe=getAugmentedNamespace(Object.freeze({__proto__:null,default:{}})),Xe="function"==typeof Map&&Map.prototype,Je=Object.getOwnPropertyDescriptor&&Xe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ze=Xe&&Je&&"function"==typeof Je.get?Je.get:null,Qe=Xe&&Map.prototype.forEach,Ze="function"==typeof Set&&Set.prototype,et=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,tt=Ze&&et&&"function"==typeof et.get?et.get:null,rt=Ze&&Set.prototype.forEach,nt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ot="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,it="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,at=Boolean.prototype.valueOf,st=Object.prototype.toString,ut=Function.prototype.toString,ct=String.prototype.match,lt=String.prototype.slice,dt=String.prototype.replace,pt=String.prototype.toUpperCase,ft=String.prototype.toLowerCase,Et=RegExp.prototype.test,_t=Array.prototype.concat,gt=Array.prototype.join,ht=Array.prototype.slice,mt=Math.floor,Rt="function"==typeof BigInt?Bi