@ferry-core/ferry
Version:
common fetch tool for ferry service
7 lines • 67.9 kB
JavaScript
/*!
* @ferry-core/ferry with v0.1.2
* Author: yanpan
* Built on 2023-09-03, 23:14:37
* Released under the MIT License Copyright (c) 2023
*/
var e,t;e=this,t=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function r(e,t){return function(){return e.apply(t,arguments)}}"function"==typeof SuppressedError&&SuppressedError;const{toString:n}=Object.prototype,{getPrototypeOf:o}=Object,i=(a=Object.create(null),e=>{const t=n.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const s=e=>(e=e.toLowerCase(),t=>i(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,l=c("undefined"),f=s("ArrayBuffer"),p=c("string"),y=c("function"),d=c("number"),h=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==i(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=s("Date"),b=s("File"),v=s("Blob"),O=s("FileList"),w=s("URLSearchParams");function S(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),u(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 a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function j(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 E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=e=>!l(e)&&e!==E,P=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&o(Uint8Array)),R=s("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),T=s("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};S(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},_="abcdefghijklmnopqrstuvwxyz",C="0123456789",I={DIGIT:C,ALPHA:_,ALPHA_DIGIT:_+_.toUpperCase()+C},F=s("AsyncFunction");var U={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=i(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:p,isNumber:d,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:m,isUndefined:l,isDate:g,isFile:b,isBlob:v,isRegExp:T,isFunction:y,isStream:e=>h(e)&&y(e.pipe),isURLSearchParams:w,isTypedArray:P,isFileList:O,forEach:S,merge:function e(){const{caseless:t}=A(this)&&this||{},r={},n=(n,o)=>{const i=t&&j(r,o)||o;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&S(arguments[e],n);return r},extend:(e,t,n,{allOwnKeys:o}={})=>(S(t,((t,o)=>{n&&y(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),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 i,a,s;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:s,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(u(e))return e;let t=e.length;if(!d(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:R,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];y(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={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:j,global:E,isContextDefined:A,ALPHABET:I,generateString:(e=16,t=I.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return S(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(h(e)||y(e))&&y(e.then)&&y(e.catch)};function k(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)}U.inherits(k,Error,{toJSON:function(){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:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const D=k.prototype,B={};function L(e){return U.isPlainObject(e)||U.isArray(e)}function M(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function q(e,t,r){return e?e.concat(t).map((function(e,t){return e=M(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["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=>{B[e]={value:e}})),Object.defineProperties(k,B),Object.defineProperty(D,"isAxiosError",{value:!0}),k.from=(e,t,r,n,o,i)=>{const a=Object.create(D);return U.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),k.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const W=U.toFlatObject(U,{},null,(function(e){return/^is[A-Z]/.test(e)}));function H(e,t,r){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=U.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!U.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(U.isDate(e))return e.toISOString();if(!s&&U.isBlob(e))throw new k("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(e)||U.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(U.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(U.isArray(e)&&function(e){return U.isArray(e)&&!e.some(L)}(e)||(U.isFileList(e)||U.endsWith(r,"[]"))&&(s=U.toArray(e)))return r=M(r),s.forEach((function(e,n){!U.isUndefined(e)&&null!==e&&t.append(!0===a?q([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!L(e)||(t.append(q(o,r,i),c(e)),!1)}const l=[],f=Object.assign(W,{defaultVisitor:u,convertValue:c,isVisitable:L});if(!U.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!U.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),U.forEach(r,(function(r,i){!0===(!(U.isUndefined(r)||null===r)&&o.call(t,r,U.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&H(e,this,t)}const G=$.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V(e,t,r){if(!t)return e;const n=r&&r.encode||J,o=r&&r.serialize;let i;if(i=o?o(t,r):U.isURLSearchParams(t)?t.toString():new $(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}G.append=function(e,t){this._pairs.push([e,t])},G.toString=function(e){const t=e?function(t){return e.call(this,t,z)}:z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var K=class{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){U.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Z(e){function t(e,r,n,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&U.isArray(n)?n.length:i,s?(U.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&U.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&U.isArray(n[i])&&(n[i]=function(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}(n[i])),!a)}if(U.isFormData(e)&&U.isFunction(e.entries)){const r={};return U.forEachEntry(e,((e,n)=>{t(function(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const Y={transitional:Q,adapter:X.isNode?"http":"xhr",transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=U.isObject(e);if(o&&U.isHTMLForm(e)&&(e=new FormData(e)),U.isFormData(e))return n&&n?JSON.stringify(Z(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.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(e,t){return H(e,new X.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return X.isNode&&U.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=U.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return H(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Y.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&U.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 k.from(e,k.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:X.classes.FormData,Blob:X.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],(e=>{Y.headers[e]={}}));var ee=Y;const te=U.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"]),re=Symbol("internals");function ne(e){return e&&String(e).trim().toLowerCase()}function oe(e){return!1===e||null==e?e:U.isArray(e)?e.map(oe):String(e)}function ie(e,t,r,n,o){return U.isFunction(n)?n.call(this,t,r):(o&&(t=r),U.isString(t)?U.isString(n)?-1!==t.indexOf(n):U.isRegExp(n)?n.test(t):void 0:void 0)}class ae{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ne(t);if(!o)throw new Error("header name must be a non-empty string");const i=U.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=oe(e))}const i=(e,t)=>U.forEach(e,((e,r)=>o(e,r,t)));return U.isPlainObject(e)||e instanceof this.constructor?i(e,t):U.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&te[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&&o(t,e,r),this}get(e,t){if(e=ne(e)){const r=U.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(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(U.isFunction(t))return t.call(this,e,r);if(U.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ne(e)){const r=U.findKey(this,e);return!(!r||void 0===this[r]||t&&!ie(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ne(e)){const o=U.findKey(r,e);!o||t&&!ie(0,r[o],o,t)||(delete r[o],n=!0)}}return U.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!ie(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return U.forEach(this,((n,o)=>{const i=U.findKey(r,o);if(i)return t[i]=oe(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=oe(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return U.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&U.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[re]=this[re]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ne(e);t[n]||(function(e,t){const r=U.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 U.isArray(e)?e.forEach(n):n(e),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(ae.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),U.freezeMethods(ae);var se=ae;function ce(e,t){const r=this||ee,n=t||r,o=se.from(n.headers);let i=n.data;return U.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ue(e){return!(!e||!e.__CANCEL__)}function le(e,t,r){k.call(this,null==e?"canceled":e,k.ERR_CANCELED,t,r),this.name="CanceledError"}U.inherits(le,k,{__CANCEL__:!0});var fe=X.isStandardBrowserEnv?{write:function(e,t,r,n,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function pe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ye=X.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(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=n(window.location.href),function(e){const t=U.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function de(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s);r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const he={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=se.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}U.isFormData(n)&&(X.isStandardBrowserEnv||X.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=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 u=pe(e.baseURL,e.url);function l(){if(!c)return;const n=se.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new k("Request failed with status code "+r.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),s()}),(function(e){r(e),s()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),V(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(r(new k("Request aborted",k.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new k("Network Error",k.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Q;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new k(t,n.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,e,c)),c=null},X.isStandardBrowserEnv){const t=(e.withCredentials||ye(u))&&e.xsrfCookieName&&fe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&U.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),U.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",de(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",de(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(r(!t||t.type?new le(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===X.protocols.indexOf(f)?r(new k("Unsupported protocol "+f+":",k.ERR_BAD_REQUEST,e)):c.send(n||null)}))}};U.forEach(he,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var me=e=>{e=U.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=U.isString(r)?he[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new k(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(U.hasOwnProp(he,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!U.isFunction(n))throw new TypeError("adapter is not a function");return n};function ge(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new le(null,e)}function be(e){return ge(e),e.headers=se.from(e.headers),e.data=ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),me(e.adapter||ee.adapter)(e).then((function(t){return ge(e),t.data=ce.call(e,e.transformResponse,t),t.headers=se.from(t.headers),t}),(function(t){return ue(t)||(ge(e),t&&t.response&&(t.response.data=ce.call(e,e.transformResponse,t.response),t.response.headers=se.from(t.response.headers))),Promise.reject(t)}))}const ve=e=>e instanceof se?e.toJSON():e;function Oe(e,t){t=t||{};const r={};function n(e,t,r){return U.isPlainObject(e)&&U.isPlainObject(t)?U.merge.call({caseless:r},e,t):U.isPlainObject(t)?U.merge({},t):U.isArray(t)?t.slice():t}function o(e,t,r){return U.isUndefined(t)?U.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!U.isUndefined(t))return n(void 0,t)}function a(e,t){return U.isUndefined(t)?U.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(ve(e),ve(t),!0)};return U.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);U.isUndefined(a)&&i!==s||(r[n]=a)})),r}const we="1.5.0",Se={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Se[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const je={};Se.transitional=function(e,t,r){return(n,o,i)=>{if(!1===e)throw new k(function(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),k.ERR_DEPRECATED);return t&&!je[o]&&(je[o]=!0),!e||e(n,o,i)}};var Ee={assertOptions:function(e,t,r){if("object"!=typeof e)throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new k("option "+i+" must be "+r,k.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new k("Unknown option "+i,k.ERR_BAD_OPTION)}},validators:Se};const Ae=Ee.validators;class Pe{constructor(e){this.defaults=e,this.interceptors={request:new K,response:new K}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Ee.assertOptions(r,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean)},!1),null!=n&&(U.isFunction(n)?t.paramsSerializer={serialize:n}:Ee.assertOptions(n,{encode:Ae.function,serialize:Ae.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&U.merge(o.common,o[t.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=se.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[be.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let p=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=be.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return V(pe((e=Oe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}U.forEach(["delete","get","head","options"],(function(e){Pe.prototype[e]=function(t,r){return this.request(Oe(r||{},{method:e,url:t,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Oe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Pe.prototype[e]=t(),Pe.prototype[e+"Form"]=t(!0)}));var Re=Pe;class xe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(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(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new le(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;const t=new xe((function(t){e=t}));return{token:t,cancel:e}}}var Te=xe;const Ne={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ne).forEach((([e,t])=>{Ne[t]=e}));var _e=Ne;const Ce=function e(t){const n=new Re(t),o=r(Re.prototype.request,n);return U.extend(o,Re.prototype,n,{allOwnKeys:!0}),U.extend(o,n,null,{allOwnKeys:!0}),o.create=function(r){return e(Oe(t,r))},o}(ee);Ce.Axios=Re,Ce.CanceledError=le,Ce.CancelToken=Te,Ce.isCancel=ue,Ce.VERSION=we,Ce.toFormData=H,Ce.AxiosError=k,Ce.Cancel=Ce.CanceledError,Ce.all=function(e){return Promise.all(e)},Ce.spread=function(e){return function(t){return e.apply(null,t)}},Ce.isAxiosError=function(e){return U.isObject(e)&&!0===e.isAxiosError},Ce.mergeConfig=Oe,Ce.AxiosHeaders=se,Ce.formToJSON=e=>Z(U.isHTMLForm(e)?new FormData(e):e),Ce.getAdapter=me,Ce.HttpStatusCode=_e,Ce.default=Ce;var Ie=Ce;function Fe(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):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 Ue,ke="undefined"!=typeof Symbol&&Symbol,De=function(){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},Be={foo:{}},Le=Object,Me=Array.prototype.slice,qe=Object.prototype.toString,We=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==qe.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Me.call(arguments,1),o=Math.max(0,t.length-n.length),i=[],a=0;a<o;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,n.concat(Me.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Me.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},He=Function.prototype.bind||We,ze=He.call(Function.call,Object.prototype.hasOwnProperty),$e=SyntaxError,Ge=Function,Je=TypeError,Ve=function(e){try{return Ge('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ke=Object.getOwnPropertyDescriptor;if(Ke)try{Ke({},"")}catch(Ie){Ke=null}var Qe=function(){throw new Je},Xe=Ke?function(){try{return Qe}catch(e){try{return Ke(arguments,"callee").get}catch(e){return Qe}}}():Qe,Ze="function"==typeof ke&&"function"==typeof Symbol&&"symbol"==typeof ke("foo")&&"symbol"==typeof Symbol("bar")&&De(),Ye={__proto__:Be}.foo===Be.foo&&!({__proto__:null}instanceof Le),et=Object.getPrototypeOf||(Ye?function(e){return e.__proto__}:null),tt={},rt="undefined"!=typeof Uint8Array&&et?et(Uint8Array):Ue,nt={"%AggregateError%":"undefined"==typeof AggregateError?Ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ue:ArrayBuffer,"%ArrayIteratorPrototype%":Ze&&et?et([][Symbol.iterator]()):Ue,"%AsyncFromSyncIteratorPrototype%":Ue,"%AsyncFunction%":tt,"%AsyncGenerator%":tt,"%AsyncGeneratorFunction%":tt,"%AsyncIteratorPrototype%":tt,"%Atomics%":"undefined"==typeof Atomics?Ue:Atomics,"%BigInt%":"undefined"==typeof BigInt?Ue:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Ue:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Ue:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Ue:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Ue:FinalizationRegistry,"%Function%":Ge,"%GeneratorFunction%":tt,"%Int8Array%":"undefined"==typeof Int8Array?Ue:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Ue:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ze&&et?et(et([][Symbol.iterator]())):Ue,"%JSON%":"object"==typeof JSON?JSON:Ue,"%Map%":"undefined"==typeof Map?Ue:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ze&&et?et((new Map)[Symbol.iterator]()):Ue,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Ue:Promise,"%Proxy%":"undefined"==typeof Proxy?Ue:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Ue:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Ue:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ze&&et?et((new Set)[Symbol.iterator]()):Ue,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ze&&et?et(""[Symbol.iterator]()):Ue,"%Symbol%":Ze?Symbol:Ue,"%SyntaxError%":$e,"%ThrowTypeError%":Xe,"%TypedArray%":rt,"%TypeError%":Je,"%Uint8Array%":"undefined"==typeof Uint8Array?Ue:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ue:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Ue:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Ue:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Ue:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Ue:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Ue:WeakSet};if(et)try{null.error}catch(Ie){var ot=et(et(Ie));nt["%Error.prototype%"]=ot}var it=function e(t){var r;if("%AsyncFunction%"===t)r=Ve("async function () {}");else if("%GeneratorFunction%"===t)r=Ve("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ve("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&et&&(r=et(o.prototype))}return nt[t]=r,r},at={"%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"]},st=He,ct=ze,ut=st.call(Function.call,Array.prototype.concat),lt=st.call(Function.apply,Array.prototype.splice),ft=st.call(Function.call,String.prototype.replace),pt=st.call(Function.call,String.prototype.slice),yt=st.call(Function.call,RegExp.prototype.exec),dt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ht=/\\(\\)?/g,mt=function(e,t){var r,n=e;if(ct(at,n)&&(n="%"+(r=at[n])[0]+"%"),ct(nt,n)){var o=nt[n];if(o===tt&&(o=it(n)),void 0===o&&!t)throw new Je("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new $e("intrinsic "+e+" does not exist!")},gt=function(e,t){if("string"!=typeof e||0===e.length)throw new Je("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Je('"allowMissing" argument must be a boolean');if(null===yt(/^%?[^%]*%?$/,e))throw new $e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=pt(e,0,1),r=pt(e,-1);if("%"===t&&"%"!==r)throw new $e("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new $e("invalid intrinsic syntax, expected opening `%`");var n=[];return ft(e,dt,(function(e,t,r,o){n[n.length]=r?ft(o,ht,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=mt("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],lt(r,ut([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var f=r[u],p=pt(f,0,1),y=pt(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new $e("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),ct(nt,i="%"+(n+="."+f)+"%"))a=nt[i];else if(null!=a){if(!(f in a)){if(!t)throw new Je("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ke&&u+1>=r.length){var d=Ke(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=ct(a,f),a=a[f];l&&!s&&(nt[i]=a)}}return a},bt={exports:{}};!function(e){var t=He,r=gt,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var r=i(t,o,arguments);return a&&s&&a(r,"length").configurable&&s(r,"length",{value:1+c(0,e.length-(arguments.length-1))}),r};var u=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u}(bt);var vt=gt,Ot=bt.exports,wt=Ot(vt("String.prototype.indexOf")),St=Fe(Object.freeze({__proto__:null,default:{}})),jt="function"==typeof Map&&Map.prototype,Et=Object.getOwnPropertyDescriptor&&jt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,At=jt&&Et&&"function"==typeof Et.get?Et.get:null,Pt=jt&&Map.prototype.forEach,Rt="function"==typeof Set&&Set.prototype,xt=Object.getOwnPropertyDescriptor&&Rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tt=Rt&&xt&&"function"==typeof xt.get?xt.get:null,Nt=Rt&&Set.prototype.forEach,_t="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ct="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,It="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ft=Boolean.prototype.valueOf,Ut=Object.prototype.toString,kt=Function.prototype.toString,Dt=String.prototype.match,Bt=String.prototype.slice,Lt=String.prototype.replace,Mt=String.prototype.toUpperCase,qt=String.prototype.toLowerCase,Wt=RegExp.prototype.test,Ht=Array.prototype.concat,zt=Array.prototype.join,$t=Array.prototype.slice,Gt=Math.floor,Jt="function"==typeof BigInt?BigInt.prototype.valueOf:null,Vt=Object.getOwnPropertySymbols,Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Qt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Xt="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Zt=Object.prototype.propertyIsEnumerable,Yt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function er(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Wt.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Gt(-e):Gt(e);if(n!==e){var o=String(n),i=Bt.call(t,o.length+1);return Lt.call(o,r,"$&_")+"."+Lt.call(Lt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lt.call(t,r,"$&_")}var tr=St,rr=tr.custom,nr=cr(rr)?rr:null;function or(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ir(e){return Lt.call(String(e),/"/g,""")}function ar(e){return!("[object Array]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}function sr(e){return!("[object RegExp]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}function cr(e){if(Qt)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Kt)return!1;try{return Kt.call(e),!0}catch(e){}return!1}var ur=Object.prototype.hasOwnProperty||function(e){return e in this};function lr(e,t){return ur.call(e,t)}function fr(e){return Ut.call(e)}function pr(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function yr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return yr(Bt.call(e,0,t.maxStringLength),t)+n}return or(Lt.call(Lt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,dr),"single",t)}function dr(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Mt.call(t.toString(16))}function hr(e){return"Object("+e+")"}function mr(e){return e+" { ? }"}function gr(e,t,r,n){return e+" ("+t+") {"+(n?br(r,n):zt.call(r,", "))+"}"}function br(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+zt.call(e,","+r)+"\n"+t.prev}function vr(e,t){var r=ar(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=lr(e,o)?t(e[o],e):""}var i,a="function"==typeof Vt?Vt(e):[];if(Qt){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)lr(e,c)&&(r&&String(Number(c))===c&&c<e.length||Qt&&i["$"+c]instanceof Symbol||(Wt.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Vt)for(var u=0;u<a.length;u++)Zt.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Or=gt,wr=function(e,t){var r=vt(e,!!t);return"function"==typeof r&&wt(e,".prototype.")>-1?Ot(r):r},Sr=function e(t,r,n,o){var i=r||{};if(lr(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lr(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!lr(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lr(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lr(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return yr(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?er(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?er(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=l&&l>0&&"object"==typeof t)return ar(t)?"[Array]":"[Object]";var f,p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=zt.call(Array(e.indent+1)," ")}return{base:r,prev:zt.call(Array(t+1),r)}}(i,n);if(void 0===o)o=[];else if(pr(o,t)>=0)return"[Circular]";function y(t,r,a){if(r&&(o=$t.call(o)).push(r),a){var s={depth:i.depth};return lr(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t&&!sr(t)){var d=function(e){if(e.name)return e.name;var t=Dt.call(kt.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=vr(t,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+zt.call(h,", ")+" }":"")}if(cr(t)){var m=Qt?Lt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Kt.call(t);return"object"!=typeof t||Qt?m:hr(m)}if((f=t)&&"object"==typeof f&&("undefined"!=typeof HTMLElement&&f instanceof HTMLElement||"string"==typeof f.nodeName&&"function"==typeof f.getAttribute)){for(var g="<"+qt.call(String(t.nodeName)),b=t.attributes||[],v=0;v<b.length;v++)g+=" "+b[v].name+"="+or(ir(b[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+qt.call(String(t.nodeName))+">"}if(ar(t)){if(0===t.length)return"[]";var O=vr(t,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(pr(e[t],"\n")>=0)return!1;return!0}(O)?"["+br(O,p)+"]":"[ "+zt.call(O,", ")+" ]"}if(function(e){return!("[object Error]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}(t)){var w=vr(t,y);return"cause"in Error.prototype||!("cause"in t)||Zt.call(t,"cause")?0===w.length?"["+String(t)+"]":"{ ["+String(t)+"] "+zt.call(w,", ")+" }":"{ ["+String(t)+"] "+zt.call(Ht.call("[cause]: "+y(t.cause),w),", ")+" }"}if("object"==typeof t&&a){if(nr&&"function"==typeof t[nr]&&tr)return tr(t,{depth:l-n});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!At||!e||"object"!=typeof e)return!1;try{At.call(e);try{Tt.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var S=[];return Pt&&Pt.call(t,(function(e,r){S.push(y(r,t,!0)+" => "+y(e,t))})),gr("Map",At.call(t),S,p)}if(function(e){if(!Tt||!e||"object"!=typeof e)return!1;try{Tt.call(e);try{At.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var j=[];return Nt&&Nt.call(t,(function(e){j.push(y(e,t))})),gr("Set",Tt.call(t),j,p)}if(function(e){if(!_t||!e||"object"!=typeof e)return!1;try{_t.call(e,_t);try{Ct.call(e,Ct)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return mr("WeakMap");if(function(e){if(!Ct||!e||"object"!=typeof e)return!1;try{Ct.call(e,Ct);try{_t.call(e,_t)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return mr("WeakSet");if(function(e){if(!It||!e||"object"!=typeof e)return!1;try{return It.call(e),!0}catch(e){}return!1}(t))return mr("WeakRef");if(function(e){return!("[object Number]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}(t))return hr(y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Jt)return!1;try{return Jt.call(e),!0}catch(e){}return!1}(t))return hr(y(Jt.call(t)));if(function(e){return!("[object Boolean]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}(t))return hr(Ft.call(t));if(function(e){return!("[object String]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}(t))return hr(y(String(t)));if(!function(e){return!("[object Date]"!==fr(e)||Xt&&"object"==typeof e&&Xt in e)}(t)&&!sr(t)){var E=vr(t,y),A=Yt?Yt(t)===Object.prototype:t instanceof Object||t.constructor===Object,P=t instanceof Object?"":"null prototype",R=!A&&Xt&&Object(t)===t&&Xt in t?Bt.call(fr(t),8,-1):P?"Object":"",x=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(R||P?"["+zt.call(Ht.call([],R||[],P||[]),": ")+"] ":"");return 0===E.length?x+"{}":p?x+"{"+br(E,p)+"}":x+"{ "+zt.call(E,", ")+" }"}return String(t)},jr=Or("%TypeError%"),Er=Or("%WeakMap%",!0),Ar=Or("%Map%",!0),Pr=wr("WeakMap.prototype.get",!0),Rr=wr("WeakMap.prototype.set",!0),xr=wr("WeakMap.prototype.has",!0),Tr=wr("Map.prototype.get",!0),Nr=wr("Map.prototype.set",!0),_r=wr("Map.prototype.has",!0),Cr=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Ir=String.prototype.replace,Fr=/%20/g,Ur="RFC3986",kr={default:Ur,formatters:{RFC1738:function(e){return Ir.call(e,Fr,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ur},Dr=kr,Br=Object.prototype.hasOwnProperty,Lr=Array.isArray,Mr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),qr=function(e,t){for(var r=t&&t