newt-client-js 3.3.9 → 3.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/newtClient.js +1 -1
- package/package.json +1 -1
package/dist/umd/newtClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).newtClient={})}(this,(function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,o=(i=Object.create(null),e=>{const t=r.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>o(t)===e),s=e=>t=>typeof t===e,{isArray:c}=Array,u=s("undefined");const l=a("ArrayBuffer");const f=s("string"),p=s("function"),d=s("number"),y=e=>null!==e&&"object"==typeof e,h=e=>{if("object"!==o(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=a("Date"),g=a("File"),b=a("Blob"),w=a("FileList"),E=a("URLSearchParams"),[S,O,v,R]=["ReadableStream","Request","Response","Headers"].map(a);function A(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(r=0;r<i;r++)a=n[r],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 P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!u(e)&&e!==P;const _=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),N=a("HTMLFormElement"),x=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),U=a("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};A(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const F=a("AsyncFunction"),L=(D="function"==typeof setImmediate,k=p(P.postMessage),D?setImmediate:k?(I=`axios@${Math.random()}`,B=[],P.addEventListener("message",(e=>{let{source:t,data:r}=e;t===P&&r===I&&B.length&&B.shift()()}),!1),e=>{B.push(e),P.postMessage(I,"*")}):e=>setTimeout(e));var D,k,I,B;const M="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||L;var q={isArray:c,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=o(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer),t},isString:f,isNumber:d,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:h,isReadableStream:S,isRequest:O,isResponse:v,isHeaders:R,isUndefined:u,isDate:m,isFile:g,isBlob:b,isRegExp:U,isFunction:p,isStream:e=>y(e)&&p(e.pipe),isURLSearchParams:E,isTypedArray:_,isFileList:w,forEach:A,merge:function e(){const{caseless:t}=T(this)&&this||{},r={},n=(n,o)=>{const i=t&&j(r,o)||o;h(r[i])&&h(n)?r[i]=e(r[i],n):h(n)?r[i]=e({},n):c(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&A(arguments[e],n);return r},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A(r,((r,o)=>{n&&p(r)?e[o]=t(r,n):e[o]=r}),{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,o)=>{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],o&&!o(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,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(c(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:N,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(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 c(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:j,global:P,isContextDefined:T,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=c(e)?[]:{};return A(e,((e,t)=>{const i=r(e,n+1);!u(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(y(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:L,asap:M};function W(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,this.status=o.status?o.status:null)}q.inherits(W,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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const H=W.prototype,z={};["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=>{z[e]={value:e}})),Object.defineProperties(W,z),Object.defineProperty(H,"isAxiosError",{value:!0}),W.from=(e,t,r,n,o,i)=>{const a=Object.create(H);return q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function $(e){return q.isPlainObject(e)||q.isArray(e)}function G(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function V(e,t,r){return e?e.concat(t).map((function(e,t){return e=G(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const J=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function K(e,t,r){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!s&&q.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.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(q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some($)}(e)||(q.isFileList(e)||q.endsWith(r,"[]"))&&(s=q.toArray(e)))return r=G(r),s.forEach((function(e,n){!q.isUndefined(e)&&null!==e&&t.append(!0===a?V([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!$(e)||(t.append(V(o,r,i),c(e)),!1)}const l=[],f=Object.assign(J,{defaultVisitor:u,convertValue:c,isVisitable:$});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!q.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),q.forEach(r,(function(r,i){!0===(!(q.isUndefined(r)||null===r)&&o.call(t,r,q.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function X(e,t){this._pairs=[],e&&K(e,this,t)}const Y=X.prototype;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,r){if(!t)return e;const n=r&&r.encode||Z;q.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):q.isURLSearchParams(t)?t.toString():new X(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Y.append=function(e,t){this._pairs.push([e,t])},Y.toString=function(e){const t=e?function(t){return e.call(this,t,Q)}:Q;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var te=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){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const oe="undefined"!=typeof window&&"undefined"!=typeof document,ie="object"==typeof navigator&&navigator||void 0,ae=oe&&(!ie||["ReactNative","NativeScript","NS"].indexOf(ie.product)<0),se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ce=oe&&window.location.href||"http://localhost";var ue={...Object.freeze({__proto__:null,hasBrowserEnv:oe,hasStandardBrowserWebWorkerEnv:se,hasStandardBrowserEnv:ae,navigator:ie,origin:ce}),...ne};function le(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&q.isArray(n)?n.length:i,s)return q.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&q.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&q.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(q.isFormData(e)&&q.isFunction(e.entries)){const r={};return q.forEachEntry(e,((e,n)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const fe={transitional:re,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=q.isObject(e);o&&q.isHTMLForm(e)&&(e=new FormData(e));if(q.isFormData(e))return n?JSON.stringify(le(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.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 K(e,new ue.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ue.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return K(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.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 W.from(e,W.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:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{fe.headers[e]={}}));var pe=fe;const de=q.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 ye=Symbol("internals");function he(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:q.isArray(e)?e.map(me):String(e)}function ge(e,t,r,n,o){return q.isFunction(n)?n.call(this,t,r):(o&&(t=r),q.isString(t)?q.isString(n)?-1!==t.indexOf(n):q.isRegExp(n)?n.test(t):void 0:void 0)}class be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=he(t);if(!o)throw new Error("header name must be a non-empty string");const i=q.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=me(e))}const i=(e,t)=>q.forEach(e,((e,r)=>o(e,r,t)));if(q.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(q.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]&&de[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(q.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=he(e)){const r=q.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(q.isFunction(t))return t.call(this,e,r);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=he(e)){const r=q.findKey(this,e);return!(!r||void 0===this[r]||t&&!ge(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=he(e)){const o=q.findKey(r,e);!o||t&&!ge(0,r[o],o,t)||(delete r[o],n=!0)}}return q.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&&!ge(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return q.forEach(this,((n,o)=>{const i=q.findKey(r,o);if(i)return t[i]=me(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]=me(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return q.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&q.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=he(e);t[n]||(!function(e,t){const r=q.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 q.isArray(e)?e.forEach(n):n(e),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(be.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),q.freezeMethods(be);var we=be;function Ee(e,t){const r=this||pe,n=t||r,o=we.from(n.headers);let i=n.data;return q.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Se(e){return!(!e||!e.__CANCEL__)}function Oe(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function ve(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}q.inherits(Oe,W,{__CANCEL__:!0});const Re=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=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 function(e,t){let r,n,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];t>=i?a(c,e):(r=c,n||(n=setTimeout((()=>{n=null,a(r)}),i-t)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({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:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},Ae=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},je=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return q.asap((()=>e(...r)))};var Pe=ue.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ue.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,Te=ue.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];q.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),q.isString(n)&&a.push("path="+n),q.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function _e(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&n||0==r?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ne=e=>e instanceof we?{...e}:e;function xe(e,t){t=t||{};const r={};function n(e,t,r,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,r,o){return q.isUndefined(t)?q.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!q.isUndefined(t))return n(void 0,t)}function a(e,t){return q.isUndefined(t)?q.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,withXSRFToken: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,r)=>o(Ne(e),Ne(t),0,!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);q.isUndefined(a)&&i!==s||(r[n]=a)})),r}var Ue=e=>{const t=xe({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=we.from(s),t.url=ee(_e(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),q.isFormData(n))if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ue.hasStandardBrowserEnv&&(o&&q.isFunction(o)&&(o=o(t)),o||!1!==o&&Pe(t.url))){const e=i&&a&&Te.read(a);e&&s.set(i,e)}return t};var Ce="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ue(e);let o=n.data;const i=we.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function y(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=we.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());ve((function(e){t(e),y()}),(function(e){r(e),y()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new W("Request aborted",W.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||re;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&q.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),q.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),d&&([c,l]=Re(d,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Re(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Oe(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===ue.protocols.indexOf(g)?r(new W("Unsupported protocol "+g+":",W.ERR_BAD_REQUEST,e)):h.send(o||null)}))};var Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new Oe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>q.asap(a),s}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},De=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ke=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of De(e))yield*Le(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ie="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Be=Ie&&"function"==typeof ReadableStream,Me=Ie&&("function"==typeof TextEncoder?(qe=new TextEncoder,e=>qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qe;const We=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},He=Be&&We((()=>{let e=!1;const t=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ze=Be&&We((()=>q.isReadableStream(new Response("").body))),$e={stream:ze&&(e=>e.body)};var Ge;Ie&&(Ge=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=q.isFunction(Ge[e])?t=>t[e]():(t,r)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})})));const Ve=async(e,t)=>{const r=q.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new Request(ue.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await Me(e)).byteLength:void 0)})(t):r};const Je={http:null,xhr:Ce,fetch:Ie&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Ue(e);u=u?(u+"").toLowerCase():"text";let d,y=Fe([o,i&&i.toAbortSignal()],a);const h=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let m;try{if(c&&He&&"get"!==r&&"head"!==r&&0!==(m=await Ve(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(q.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Ae(m,Re(je(c)));n=ke(r.body,65536,e,t)}}q.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...p,signal:y,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(d);const a=ze&&("stream"===u||"response"===u);if(ze&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=q.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Ae(t,Re(je(s),!0))||[];i=new Response(ke(i.body,65536,r,(()=>{n&&n(),h&&h()})),e)}u=u||"text";let g=await $e[q.findKey($e,u)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,r)=>{ve(t,r,{data:g,headers:we.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:t.cause||t});throw W.from(t,t&&t.code,e,d)}})};q.forEach(Je,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ke=e=>`- ${e}`,Qe=e=>q.isFunction(e)||null===e||!1===e;var Xe=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Qe(r)&&(n=Je[(t=String(r)).toLowerCase()],void 0===n))throw new W(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new W("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ke).join("\n"):" "+Ke(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oe(null,e)}function Ze(e){Ye(e),e.headers=we.from(e.headers),e.data=Ee.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Xe(e.adapter||pe.adapter)(e).then((function(t){return Ye(e),t.data=Ee.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t}),(function(t){return Se(t)||(Ye(e),t&&t.response&&(t.response.data=Ee.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)}))}const et="1.8.2",tt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{tt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const rt={};tt.transitional=function(e,t,r){function n(e,t){return"[Axios v1.8.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!rt[o]&&(rt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},tt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var nt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.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 W("option "+i+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}},validators:tt};const ot=nt.validators;class it{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=xe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&nt.assertOptions(r,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean)},!1),null!=n&&(q.isFunction(n)?t.paramsSerializer={serialize:n}:nt.assertOptions(n,{encode:ot.function,serialize:ot.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nt.assertOptions(t,{baseUrl:ot.spelling("baseURL"),withXsrfToken:ot.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=we.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=[Ze.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=Ze.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 ee(_e((e=xe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){it.prototype[e]=function(t,r){return this.request(xe(r||{},{method:e,url:t,data:(r||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(xe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}it.prototype[e]=t(),it.prototype[e+"Form"]=t(!0)}));var at=it;class st{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 Oe(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new st((function(t){e=t})),cancel:e}}}var ct=st;const ut={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(ut).forEach((e=>{let[t,r]=e;ut[r]=t}));var lt=ut;const ft=function e(r){const n=new at(r),o=t(at.prototype.request,n);return q.extend(o,at.prototype,n,{allOwnKeys:!0}),q.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(xe(r,t))},o}(pe);ft.Axios=at,ft.CanceledError=Oe,ft.CancelToken=ct,ft.isCancel=Se,ft.VERSION=et,ft.toFormData=K,ft.AxiosError=W,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=xe,ft.AxiosHeaders=we,ft.formToJSON=e=>le(q.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=Xe,ft.HttpStatusCode=lt,ft.default=ft;var pt=ft;function dt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}const yt=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function ht(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ht(i,n,o,a,s,"next",e)}function s(e){ht(i,n,o,a,s,"throw",e)}a(void 0)}))}}function gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et="axios-retry";function St(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(e=>!yt.has(e&&e.code))(e)}var Ot=["get","head","options"],vt=Ot.concat(["put","delete"]);function Rt(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function At(e){return!!e.config&&(Rt(e)&&-1!==vt.indexOf(e.config.method))}function jt(e){return St(e)||At(e)}function Pt(){return 0}function Tt(e){var t=e[Et]||{};return t.retryCount=t.retryCount||0,e[Et]=t,t}function _t(){return(_t=mt((function*(e,t,r,n){var o=r.retryCount<e&&t(n);if("object"==typeof o)try{return yield o,!0}catch(e){return!1}return o}))).apply(this,arguments)}function Nt(e,t){e.interceptors.request.use((e=>(Tt(e).lastRequestTime=Date.now(),e))),e.interceptors.response.use(null,function(){var r=mt((function*(r){var{config:n}=r;if(!n)return Promise.reject(r);var{retries:o=3,retryCondition:i=jt,retryDelay:a=Pt,shouldResetTimeout:s=!1}=function(e,t){return bt(bt({},t),e[Et])}(n,t),c=Tt(n);if(yield function(e,t,r,n){return _t.apply(this,arguments)}(o,i,c,r)){c.retryCount+=1;var u=a(c.retryCount,r);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,n),!s&&n.timeout&&c.lastRequestTime){var l=Date.now()-c.lastRequestTime;n.timeout=Math.max(n.timeout-l-u,1)}return n.transformRequest=[e=>e],new Promise((t=>setTimeout((()=>t(e(n))),u)))}return Promise.reject(r)}));return function(e){return r.apply(this,arguments)}}())}Nt.isNetworkError=St,Nt.isSafeRequestError=function(e){return!!e.config&&(Rt(e)&&-1!==Ot.indexOf(e.config.method))},Nt.isIdempotentRequestError=At,Nt.isNetworkOrIdempotentRequestError=jt,Nt.exponentialDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()},Nt.isRetryableError=Rt;var xt,Ut="undefined"!=typeof Symbol&&Symbol,Ct=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},Ft=Array.prototype.slice,Lt=Object.prototype.toString,Dt=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Lt.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Ft.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(Ft.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Ft.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},kt=Function.prototype.bind||Dt,It=kt.call(Function.call,Object.prototype.hasOwnProperty),Bt=SyntaxError,Mt=Function,qt=TypeError,Wt=function(e){try{return Mt('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ht=Object.getOwnPropertyDescriptor;if(Ht)try{Ht({},"")}catch(e){Ht=null}var zt=function(){throw new qt},$t=Ht?function(){try{return zt}catch(e){try{return Ht(arguments,"callee").get}catch(e){return zt}}}():zt,Gt="function"==typeof Ut&&"function"==typeof Symbol&&"symbol"==typeof Ut("foo")&&"symbol"==typeof Symbol("bar")&&Ct(),Vt=Object.getPrototypeOf||function(e){return e.__proto__},Jt={},Kt="undefined"==typeof Uint8Array?xt:Vt(Uint8Array),Qt={"%AggregateError%":"undefined"==typeof AggregateError?xt:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?xt:ArrayBuffer,"%ArrayIteratorPrototype%":Gt?Vt([][Symbol.iterator]()):xt,"%AsyncFromSyncIteratorPrototype%":xt,"%AsyncFunction%":Jt,"%AsyncGenerator%":Jt,"%AsyncGeneratorFunction%":Jt,"%AsyncIteratorPrototype%":Jt,"%Atomics%":"undefined"==typeof Atomics?xt:Atomics,"%BigInt%":"undefined"==typeof BigInt?xt:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?xt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?xt:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?xt:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?xt:FinalizationRegistry,"%Function%":Mt,"%GeneratorFunction%":Jt,"%Int8Array%":"undefined"==typeof Int8Array?xt:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?xt:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?xt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gt?Vt(Vt([][Symbol.iterator]())):xt,"%JSON%":"object"==typeof JSON?JSON:xt,"%Map%":"undefined"==typeof Map?xt:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Gt?Vt((new Map)[Symbol.iterator]()):xt,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?xt:Promise,"%Proxy%":"undefined"==typeof Proxy?xt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?xt:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?xt:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Gt?Vt((new Set)[Symbol.iterator]()):xt,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?xt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gt?Vt(""[Symbol.iterator]()):xt,"%Symbol%":Gt?Symbol:xt,"%SyntaxError%":Bt,"%ThrowTypeError%":$t,"%TypedArray%":Kt,"%TypeError%":qt,"%Uint8Array%":"undefined"==typeof Uint8Array?xt:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?xt:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?xt:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?xt:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?xt:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?xt:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?xt:WeakSet},Xt=function e(t){var r;if("%AsyncFunction%"===t)r=Wt("async function () {}");else if("%GeneratorFunction%"===t)r=Wt("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Wt("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=Vt(o.prototype))}return Qt[t]=r,r},Yt={"%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"]},Zt=kt,er=It,tr=Zt.call(Function.call,Array.prototype.concat),rr=Zt.call(Function.apply,Array.prototype.splice),nr=Zt.call(Function.call,String.prototype.replace),or=Zt.call(Function.call,String.prototype.slice),ir=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ar=/\\(\\)?/g,sr=function(e,t){var r,n=e;if(er(Yt,n)&&(n="%"+(r=Yt[n])[0]+"%"),er(Qt,n)){var o=Qt[n];if(o===Jt&&(o=Xt(n)),void 0===o&&!t)throw new qt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Bt("intrinsic "+e+" does not exist!")},cr=function(e,t){if("string"!=typeof e||0===e.length)throw new qt("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new qt('"allowMissing" argument must be a boolean');var r=function(e){var t=or(e,0,1),r=or(e,-1);if("%"===t&&"%"!==r)throw new Bt("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Bt("invalid intrinsic syntax, expected opening `%`");var n=[];return nr(e,ir,(function(e,t,r,o){n[n.length]=r?nr(o,ar,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=sr("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],rr(r,tr([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var f=r[u],p=or(f,0,1),d=or(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===d||"'"===d||"`"===d)&&p!==d)throw new Bt("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),er(Qt,i="%"+(n+="."+f)+"%"))a=Qt[i];else if(null!=a){if(!(f in a)){if(!t)throw new qt("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ht&&u+1>=r.length){var y=Ht(a,f);a=(l=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else l=er(a,f),a=a[f];l&&!s&&(Qt[i]=a)}}return a},ur={exports:{}};!function(e){var t=kt,r=cr,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);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+c(0,e.length-(arguments.length-1))}));return r};var u=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u}(ur);var lr=cr,fr=ur.exports,pr=fr(lr("String.prototype.indexOf")),dr=dt(Object.freeze({__proto__:null,default:{}})),yr="function"==typeof Map&&Map.prototype,hr=Object.getOwnPropertyDescriptor&&yr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mr=yr&&hr&&"function"==typeof hr.get?hr.get:null,gr=yr&&Map.prototype.forEach,br="function"==typeof Set&&Set.prototype,wr=Object.getOwnPropertyDescriptor&&br?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Er=br&&wr&&"function"==typeof wr.get?wr.get:null,Sr=br&&Set.prototype.forEach,Or="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,vr="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Rr="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ar=Boolean.prototype.valueOf,jr=Object.prototype.toString,Pr=Function.prototype.toString,Tr=String.prototype.match,_r="function"==typeof BigInt?BigInt.prototype.valueOf:null,Nr=Object.getOwnPropertySymbols,xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Ur="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Cr=Object.prototype.propertyIsEnumerable,Fr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),Lr=dr.custom,Dr=Lr&&qr(Lr)?Lr:null,kr="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function Ir(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Br(e){return String(e).replace(/"/g,""")}function Mr(e){return!("[object Array]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}function qr(e){if(Ur)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!xr)return!1;try{return xr.call(e),!0}catch(e){}return!1}var Wr=Object.prototype.hasOwnProperty||function(e){return e in this};function Hr(e,t){return Wr.call(e,t)}function zr(e){return jr.call(e)}function $r(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 Gr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Gr(e.slice(0,t.maxStringLength),t)+n}return Ir(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Vr),"single",t)}function Vr(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":"")+t.toString(16).toUpperCase()}function Jr(e){return"Object("+e+")"}function Kr(e){return e+" { ? }"}function Qr(e,t,r,n){return e+" ("+t+") {"+(n?Xr(r,n):r.join(", "))+"}"}function Xr(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Yr(e,t){var r=Mr(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Hr(e,o)?t(e[o],e):""}var i,a="function"==typeof Nr?Nr(e):[];if(Ur){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)Hr(e,c)&&(r&&String(Number(c))===c&&c<e.length||Ur&&i["$"+c]instanceof Symbol||(/[^\w$]/.test(c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Nr)for(var u=0;u<a.length;u++)Cr.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Zr=cr,en=function(e,t){var r=lr(e,!!t);return"function"==typeof r&&pr(e,".prototype.")>-1?fr(r):r},tn=function e(t,r,n,o){var i=r||{};if(Hr(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Hr(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=!Hr(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Hr(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Gr(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=s&&s>0&&"object"==typeof t)return Mr(t)?"[Array]":"[Object]";var c=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(i,n);if(void 0===o)o=[];else if($r(o,t)>=0)return"[Circular]";function u(t,r,a){if(r&&(o=o.slice()).push(r),a){var s={depth:i.depth};return Hr(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var l=function(e){if(e.name)return e.name;var t=Tr.call(Pr.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Yr(t,u);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(qr(t)){var p=Ur?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):xr.call(t);return"object"!=typeof t||Ur?p:Jr(p)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+Ir(Br(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(Mr(t)){if(0===t.length)return"[]";var m=Yr(t,u);return c&&!function(e){for(var t=0;t<e.length;t++)if($r(e[t],"\n")>=0)return!1;return!0}(m)?"["+Xr(m,c)+"]":"[ "+m.join(", ")+" ]"}if(function(e){return!("[object Error]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t)){var g=Yr(t,u);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(Dr&&"function"==typeof t[Dr])return t[Dr]();if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!mr||!e||"object"!=typeof e)return!1;try{mr.call(e);try{Er.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var b=[];return gr.call(t,(function(e,r){b.push(u(r,t,!0)+" => "+u(e,t))})),Qr("Map",mr.call(t),b,c)}if(function(e){if(!Er||!e||"object"!=typeof e)return!1;try{Er.call(e);try{mr.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Sr.call(t,(function(e){w.push(u(e,t))})),Qr("Set",Er.call(t),w,c)}if(function(e){if(!Or||!e||"object"!=typeof e)return!1;try{Or.call(e,Or);try{vr.call(e,vr)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Kr("WeakMap");if(function(e){if(!vr||!e||"object"!=typeof e)return!1;try{vr.call(e,vr);try{Or.call(e,Or)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Kr("WeakSet");if(function(e){if(!Rr||!e||"object"!=typeof e)return!1;try{return Rr.call(e),!0}catch(e){}return!1}(t))return Kr("WeakRef");if(function(e){return!("[object Number]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t))return Jr(u(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_r)return!1;try{return _r.call(e),!0}catch(e){}return!1}(t))return Jr(u(_r.call(t)));if(function(e){return!("[object Boolean]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t))return Jr(Ar.call(t));if(function(e){return!("[object String]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t))return Jr(u(String(t)));if(!function(e){return!("[object Date]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t)&&!function(e){return!("[object RegExp]"!==zr(e)||kr&&"object"==typeof e&&kr in e)}(t)){var E=Yr(t,u),S=Fr?Fr(t)===Object.prototype:t instanceof Object||t.constructor===Object,O=t instanceof Object?"":"null prototype",v=!S&&kr&&Object(t)===t&&kr in t?zr(t).slice(8,-1):O?"Object":"",R=(S||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(v||O?"["+[].concat(v||[],O||[]).join(": ")+"] ":"");return 0===E.length?R+"{}":c?R+"{"+Xr(E,c)+"}":R+"{ "+E.join(", ")+" }"}return String(t)},rn=Zr("%TypeError%"),nn=Zr("%WeakMap%",!0),on=Zr("%Map%",!0),an=en("WeakMap.prototype.get",!0),sn=en("WeakMap.prototype.set",!0),cn=en("WeakMap.prototype.has",!0),un=en("Map.prototype.get",!0),ln=en("Map.prototype.set",!0),fn=en("Map.prototype.has",!0),pn=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},dn=String.prototype.replace,yn=/%20/g,hn="RFC3986",mn={default:hn,formatters:{RFC1738:function(e){return dn.call(e,yn,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:hn},gn=mn,bn=Object.prototype.hasOwnProperty,wn=Array.isArray,En=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Sn=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},On={arrayToObject:Sn,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(wn(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var c=i.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===gn.RFC1738&&(40===c||41===c)?a+=i.charAt(s):c<128?a+=En[c]:c<2048?a+=En[192|c>>6]+En[128|63&c]:c<55296||c>=57344?a+=En[224|c>>12]+En[128|c>>6&63]+En[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),a+=En[240|c>>18]+En[128|c>>12&63]+En[128|c>>6&63]+En[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(wn(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(wn(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!bn.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return wn(t)&&!wn(r)&&(o=Sn(t,n)),wn(t)&&wn(r)?(r.forEach((function(r,o){if(bn.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return bn.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},vn=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new rn("Side channel does not contain "+tn(e))},get:function(n){if(nn&&n&&("object"==typeof n||"function"==typeof n)){if(e)return an(e,n)}else if(on){if(t)return un(t,n)}else if(r)return function(e,t){var r=pn(e,t);return r&&r.value}(r,n)},has:function(n){if(nn&&n&&("object"==typeof n||"function"==typeof n)){if(e)return cn(e,n)}else if(on){if(t)return fn(t,n)}else if(r)return function(e,t){return!!pn(e,t)}(r,n);return!1},set:function(n,o){nn&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new nn),sn(e,n,o)):on?(t||(t=new on),ln(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=pn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},Rn=On,An=mn,jn=Object.prototype.hasOwnProperty,Pn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Tn=Array.isArray,_n=String.prototype.split,Nn=Array.prototype.push,xn=function(e,t){Nn.apply(e,Tn(t)?t:[t])},Un=Date.prototype.toISOString,Cn=An.default,Fn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Rn.encode,encodeValuesOnly:!1,format:Cn,formatter:An.formatters[Cn],indices:!1,serializeDate:function(e){return Un.call(e)},skipNulls:!1,strictNullHandling:!1},Ln={},Dn=function e(t,r,n,o,i,a,s,c,u,l,f,p,d,y,h){for(var m,g=t,b=h,w=0,E=!1;void 0!==(b=b.get(Ln))&&!E;){var S=b.get(t);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");E=!0}void 0===b.get(Ln)&&(w=0)}if("function"==typeof s?g=s(r,g):g instanceof Date?g=l(g):"comma"===n&&Tn(g)&&(g=Rn.maybeMap(g,(function(e){return e instanceof Date?l(e):e}))),null===g){if(o)return a&&!d?a(r,Fn.encoder,y,"key",f):r;g=""}if("string"==typeof(m=g)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||Rn.isBuffer(g)){if(a){var O=d?r:a(r,Fn.encoder,y,"key",f);if("comma"===n&&d){for(var v=_n.call(String(g),","),R="",A=0;A<v.length;++A)R+=(0===A?"":",")+p(a(v[A],Fn.encoder,y,"value",f));return[p(O)+"="+R]}return[p(O)+"="+p(a(g,Fn.encoder,y,"value",f))]}return[p(r)+"="+p(String(g))]}var j,P=[];if(void 0===g)return P;if("comma"===n&&Tn(g))j=[{value:g.length>0?g.join(",")||null:void 0}];else if(Tn(s))j=s;else{var T=Object.keys(g);j=c?T.sort(c):T}for(var _=0;_<j.length;++_){var N=j[_],x="object"==typeof N&&void 0!==N.value?N.value:g[N];if(!i||null!==x){var U=Tn(g)?"function"==typeof n?n(r,N):r:r+(u?"."+N:"["+N+"]");h.set(t,w);var C=vn();C.set(Ln,h),xn(P,e(x,U,n,o,i,a,s,c,u,l,f,p,d,y,C))}}return P},kn=On,In=Object.prototype.hasOwnProperty,Bn=Array.isArray,Mn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:kn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},qn=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Wn=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Hn=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,c=[];if(s){if(!r.plainObjects&&In.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;r.depth>0&&null!==(a=i.exec(o))&&u<r.depth;){if(u+=1,!r.plainObjects&&In.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:Wn(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);r.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[])[u]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,r,n)}},zn=function(e,t){var r,n=e,o=function(e){if(!e)return Fn;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Fn.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=An.default;if(void 0!==e.format){if(!jn.call(An.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=An.formatters[r],o=Fn.filter;return("function"==typeof e.filter||Tn(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Fn.addQueryPrefix,allowDots:void 0===e.allowDots?Fn.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Fn.charsetSentinel,delimiter:void 0===e.delimiter?Fn.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Fn.encode,encoder:"function"==typeof e.encoder?e.encoder:Fn.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Fn.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Fn.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Fn.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Fn.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Tn(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Pn?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Pn[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=vn(),u=0;u<r.length;++u){var l=r[u];o.skipNulls&&null===n[l]||xn(a,Dn(n[l],l,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var f=a.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},$n={formats:mn,parse:function(e,t){var r=function(e){if(!e)return Mn;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Mn.charset:e.charset;return{allowDots:void 0===e.allowDots?Mn.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Mn.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Mn.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Mn.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Mn.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Mn.comma,decoder:"function"==typeof e.decoder?e.decoder:Mn.decoder,delimiter:"string"==typeof e.delimiter||kn.isRegExp(e.delimiter)?e.delimiter:Mn.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Mn.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Mn.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Mn.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Mn.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Mn.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var u,l,f=a[r],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(u=t.decoder(f,Mn.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(f.slice(0,d),Mn.decoder,c,"key"),l=kn.maybeMap(Wn(f.slice(d+1),t),(function(e){return t.decoder(e,Mn.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=qn(l)),f.indexOf("[]=")>-1&&(l=Bn(l)?[l]:l),In.call(n,u)?n[u]=kn.combine(n[u],l):n[u]=l}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Hn(s,n[s],r,"string"==typeof e);o=kn.merge(o,c,r)}return!0===r.allowSparse?o:kn.compact(o)},stringify:zn};const Gn=e=>{let t={raw:"",encoded:""};e.and&&(t=(e=>{if(!e)throw new Error("invalid query");const t=[],r=[];return e.forEach((e=>{const{raw:n,encoded:o}=Gn(e);t.push(n),r.push(o)})),{raw:t.join("&"),encoded:r.join("&")}})(e.and),delete e.and);let r={raw:"",encoded:""};e.or&&(r=(e=>{if(!e)throw new Error("invalid query");const t=[];e.forEach((e=>{const{raw:r}=Gn(e);t.push(r)}));const r=new URLSearchParams;return r.set("[or]",`(${t.join(";")})`),{raw:`[or]=(${t.join(";")})`,encoded:r.toString()}})(e.or),delete e.or);const n=$n.stringify(e,{encode:!1,arrayFormat:"comma"}),o=$n.stringify(e,{arrayFormat:"comma"});return{raw:[n,r.raw,t.raw].filter((e=>e)).join("&"),encoded:[o,r.encoded,t.encoded].filter((e=>e)).join("&")}},Vn=e=>{if(!pt.isAxiosError(e))throw e;const{config:t,response:r}=e;if(null==r||!r.data)throw e;const{data:n}=r,o={status:n.status,code:n.code,message:n.message};if(t&&(o.request={method:t.method,headers:t.headers},t.url)){const e=new URL(t.url,t.baseURL);o.request.url=e.toString()}const i=new Error;i.name=`${n.status} ${n.code}`;try{i.message=JSON.stringify(o,null,2)}catch{i.message=n.message}throw i},Jn=(e,t)=>{if(!(e=>{if("object"!=typeof e||null===e)return!1;const t=e;return"number"==typeof t.status&&"string"==typeof t.code&&"string"==typeof t.message})(e))throw e;const{status:r,code:n,message:o}=e,i={status:r,code:n,message:o,request:t},a=new Error;a.name=`${r} ${n}`;try{a.message=JSON.stringify(i,null,2)}catch{a.message=o}throw a};e.createClient=e=>{let{spaceUid:t,token:r,apiType:n="cdn",adapter:o,retryOnError:i=!0,retryLimit:a=3,fetch:s}=e;if(!t)throw new Error("spaceUid parameter is required.");if(!r)throw new Error("token parameter is required.");if(!["cdn","api"].includes(n))throw new Error(`apiType parameter should be set to "cdn" or "api". apiType: ${n}`);if(a>10)throw new Error("retryLimit should be a value less than or equal to 10.");const c=new URL(`https://${t}.${n}.newt.so`),u={Authorization:`Bearer ${r}`},l=pt.create({baseURL:c.toString(),headers:u,adapter:o});i&&Nt(l,{retries:a,retryCondition:e=>{var t,r;return 429===(null===(t=e.response)||void 0===t?void 0:t.status)||500===(null===(r=e.response)||void 0===r?void 0:r.status)},retryDelay:e=>1e3*e});const f=async e=>{let{appUid:t,modelUid:r,query:n}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");const o=new URL(`/v1/${t}/${r}`,c.toString());if(n&&Object.keys(n).length){const{encoded:e}=Gn(n);o.search=e}if(s){const e={method:"get",headers:u,url:o.toString()};try{const t=await s(o.toString(),{headers:u}),r=await t.json();return t.ok?r:Jn(r,e)}catch(t){return Jn(t,e)}}else try{const{data:e}=await l.get(o.pathname+o.search);return e}catch(e){return Vn(e)}};return{getContents:f,getContent:async e=>{let{appUid:t,modelUid:r,contentId:n,query:o}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");if(!n)throw new Error("contentId parameter is required.");const i=new URL(`/v1/${t}/${r}/${n}`,c.toString());if(o&&Object.keys(o).length){const{encoded:e}=Gn(o);i.search=e}if(s){const e={method:"get",headers:u,url:i.toString()};try{const t=await s(i.toString(),{headers:u}),r=await t.json();return t.ok?r:Jn(r,e)}catch(t){return Jn(t,e)}}else try{const{data:e}=await l.get(i.pathname+i.search);return e}catch(e){return Vn(e)}},getFirstContent:async e=>{let{appUid:t,modelUid:r,query:n}=e;if(n&&n.limit)throw new Error("query.limit parameter cannot have a value.");const o={...n,limit:1},{items:i}=await f({appUid:t,modelUid:r,query:o});return 0===i.length?null:i[0]},getApp:async e=>{let{appUid:t}=e;if(!t)throw new Error("appUid parameter is required.");const r=new URL(`/v1/space/apps/${t}`,c.toString());if(s){const e={method:"get",headers:u,url:r.toString()};try{const t=await s(r.toString(),{headers:u}),n=await t.json();return t.ok?n:Jn(n,e)}catch(t){return Jn(t,e)}}else try{const{data:e}=await l.get(r.pathname);return e}catch(e){return Vn(e)}}}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).newtClient={})}(this,(function(e){"use strict";function t(e,t){return function(){return e.apply(t,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:o,toStringTag:i}=Symbol,a=(s=Object.create(null),e=>{const t=r.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,f=u("undefined");function p(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=c("ArrayBuffer");const y=u("string"),h=u("function"),m=u("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||i in e||o in e)},w=c("Date"),E=c("File"),O=c("Blob"),v=c("FileList"),S=c("URLSearchParams"),[A,R,j,P]=["ReadableStream","Request","Response","Headers"].map(c);function T(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{if(p(e))return;const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let a;for(r=0;r<i;r++)a=n[r],t.call(null,e[a],a,e)}}function _(e,t){if(p(e))return null;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 N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=e=>!f(e)&&e!==N;const U=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&n(Uint8Array)),C=c("HTMLFormElement"),F=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),L=c("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};T(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const D=c("AsyncFunction"),I=(B="function"==typeof setImmediate,M=h(N.postMessage),B?setImmediate:M?(q=`axios@${Math.random()}`,W=[],N.addEventListener("message",(e=>{let{source:t,data:r}=e;t===N&&r===q&&W.length&&W.shift()()}),!1),e=>{W.push(e),N.postMessage(q,"*")}):e=>setTimeout(e));var B,M,q,W;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||I;var z={isArray:l,isArrayBuffer:d,isBuffer:p,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=a(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:y,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isEmptyObject:e=>{if(!g(e)||p(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:A,isRequest:R,isResponse:j,isHeaders:P,isUndefined:f,isDate:w,isFile:E,isBlob:O,isRegExp:L,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:S,isTypedArray:U,isFileList:v,forEach:T,merge:function e(){const{caseless:t,skipUndefined:r}=x(this)&&this||{},n={},o=(o,i)=>{const a=t&&_(n,i)||i;b(n[a])&&b(o)?n[a]=e(n[a],o):b(o)?n[a]=e({},o):l(o)?n[a]=o.slice():r&&f(o)||(n[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],o);return n},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return T(r,((r,o)=>{n&&h(r)?e[o]=t(r,n):e[o]=r}),{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,o)=>{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],o&&!o(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,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(l(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).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:C,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(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 l(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_,global:N,isContextDefined:x,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[i]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(p(e))return e;if(!("toJSON"in e)){t[n]=e;const o=l(e)?[]:{};return T(e,((e,t)=>{const i=r(e,n+1);!f(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:I,asap:H,isIterable:e=>null!=e&&h(e[o])};function $(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,this.status=o.status?o.status:null)}z.inherits($,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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const G=$.prototype,V={};["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=>{V[e]={value:e}})),Object.defineProperties($,V),Object.defineProperty(G,"isAxiosError",{value:!0}),$.from=(e,t,r,n,o,i)=>{const a=Object.create(G);z.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return $.call(a,s,c,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function J(e){return z.isPlainObject(e)||z.isArray(e)}function K(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map((function(e,t){return e=K(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const X=z.toFlatObject(z,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Y(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!z.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(z.isDate(e))return e.toISOString();if(z.isBoolean(e))return e.toString();if(!s&&z.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(e)||z.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(z.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(z.isArray(e)&&function(e){return z.isArray(e)&&!e.some(J)}(e)||(z.isFileList(e)||z.endsWith(r,"[]"))&&(s=z.toArray(e)))return r=K(r),s.forEach((function(e,n){!z.isUndefined(e)&&null!==e&&t.append(!0===a?Q([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!J(e)||(t.append(Q(o,r,i),c(e)),!1)}const l=[],f=Object.assign(X,{defaultVisitor:u,convertValue:c,isVisitable:J});if(!z.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!z.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),z.forEach(r,(function(r,i){!0===(!(z.isUndefined(r)||null===r)&&o.call(t,r,z.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 ee(e,t){this._pairs=[],e&&Y(e,this,t)}const te=ee.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ne(e,t,r){if(!t)return e;const n=r&&r.encode||re;z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):z.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}te.append=function(e,t){this._pairs.push([e,t])},te.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 oe=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){z.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ae={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const se="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,ue=se&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=se&&window.location.href||"http://localhost";var pe={...Object.freeze({__proto__:null,hasBrowserEnv:se,hasStandardBrowserWebWorkerEnv:le,hasStandardBrowserEnv:ue,navigator:ce,origin:fe}),...ae};function de(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&z.isArray(n)?n.length:i,s)return z.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&z.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&z.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(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,((e,n)=>{t(function(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ye={transitional:ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=z.isObject(e);o&&z.isHTMLForm(e)&&(e=new FormData(e));if(z.isFormData(e))return n?JSON.stringify(de(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e)||z.isReadableStream(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.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 Y(e,new pe.classes.URLSearchParams,{visitor:function(e,t,r,n){return pe.isNode&&z.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=z.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Y(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(z.isResponse(e)||z.isReadableStream(e))return e;if(e&&z.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.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:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var he=ye;const me=z.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 ge=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:z.isArray(e)?e.map(we):String(e)}function Ee(e,t,r,n,o){return z.isFunction(n)?n.call(this,t,r):(o&&(t=r),z.isString(t)?z.isString(n)?-1!==t.indexOf(n):z.isRegExp(n)?n.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=be(t);if(!o)throw new Error("header name must be a non-empty string");const i=z.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=we(e))}const i=(e,t)=>z.forEach(e,((e,r)=>o(e,r,t)));if(z.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(z.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]&&me[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(z.isObject(e)&&z.isIterable(e)){let r,n,o={};for(const t of e){if(!z.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?z.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=be(e)){const r=z.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(z.isFunction(t))return t.call(this,e,r);if(z.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=z.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ee(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=be(e)){const o=z.findKey(r,e);!o||t&&!Ee(0,r[o],o,t)||(delete r[o],n=!0)}}return z.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&&!Ee(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return z.forEach(this,((n,o)=>{const i=z.findKey(r,o);if(i)return t[i]=we(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]=we(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return z.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&z.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(!function(e,t){const r=z.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 z.isArray(e)?e.forEach(n):n(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Oe.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),z.freezeMethods(Oe);var ve=Oe;function Se(e,t){const r=this||he,n=t||r,o=ve.from(n.headers);let i=n.data;return z.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Re(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function je(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}z.inherits(Re,$,{__CANCEL__:!0});const Pe=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=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 function(e,t){let r,n,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];t>=i?a(c,e):(r=c,n||(n=setTimeout((()=>{n=null,a(r)}),i-t)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({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:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},Te=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_e=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z.asap((()=>e(...r)))};var Ne=pe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,pe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,xe=pe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ue(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof ve?{...e}:e;function Fe(e,t){t=t||{};const r={};function n(e,t,r,n){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:n},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function o(e,t,r,o){return z.isUndefined(t)?z.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!z.isUndefined(t))return n(void 0,t)}function a(e,t){return z.isUndefined(t)?z.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,withXSRFToken: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,r)=>o(Ce(e),Ce(t),0,!0)};return z.forEach(Object.keys({...e,...t}),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);z.isUndefined(a)&&i!==s||(r[n]=a)})),r}var Le=e=>{const t=Fe({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ve.from(a),t.url=ne(Ue(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),z.isFormData(r))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(z.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[r,n]=e;t.includes(r.toLowerCase())&&a.set(r,n)}))}if(pe.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(t)),n||!1!==n&&Ne(t.url))){const e=o&&i&&xe.read(i);e&&a.set(o,e)}return t};var ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Le(e);let o=n.data;const i=ve.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function y(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=ve.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());je((function(e){t(e),y()}),(function(e){r(e),y()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new $("Request aborted",$.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=new $(t&&t.message?t.message:"Network Error",$.ERR_NETWORK,e,h);n.event=t||null,r(n),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ie;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&z.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),z.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),d&&([c,l]=Pe(d,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Pe(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Re(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===pe.protocols.indexOf(g)?r(new $("Unsupported protocol "+g+":",$.ERR_BAD_REQUEST,e)):h.send(o||null)}))};var De=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new Re(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>z.asap(a),s}};const Ie=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Be=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Me=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Be(e))yield*Ie(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:qe}=z,We=(e=>{let{fetch:t,Request:r,Response:n}=e;return{fetch:t,Request:r,Response:n}})(z.global),{ReadableStream:He,TextEncoder:ze}=z.global,$e=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},Ge=e=>{const{fetch:t,Request:r,Response:n}=Object.assign({},We,e),o=qe(t),i=qe(r),a=qe(n);if(!o)return!1;const s=o&&qe(He),c=o&&("function"==typeof ze?(u=new ze,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const l=i&&s&&$e((()=>{let e=!1;const t=new r(pe.origin,{body:new He,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=a&&s&&$e((()=>z.isReadableStream(new n("").body))),p={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})}));const d=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e)){const t=new r(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return z.isArrayBufferView(e)||z.isArrayBuffer(e)?e.byteLength:(z.isURLSearchParams(e)&&(e+=""),z.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:u,timeout:y,onDownloadProgress:h,onUploadProgress:m,responseType:g,headers:b,withCredentials:w="same-origin",fetchOptions:E}=Le(e);g=g?(g+"").toLowerCase():"text";let O=De([c,u&&u.toAbortSignal()],y),v=null;const S=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let A;try{if(m&&l&&"get"!==a&&"head"!==a&&0!==(A=await d(b,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(z.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=Te(A,Pe(_e(m)));s=Me(t.body,65536,e,r)}}z.isString(w)||(w=w?"include":"omit");const c=i&&"credentials"in r.prototype,u={...E,signal:O,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:c?w:void 0};v=i&&new r(o,u);let y=await(i?t(v,E):t(o,u));const R=f&&("stream"===g||"response"===g);if(f&&(h||R&&S)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=y[t]}));const t=z.toFiniteNumber(y.headers.get("content-length")),[r,o]=h&&Te(t,Pe(_e(h),!0))||[];y=new n(Me(y.body,65536,r,(()=>{o&&o(),S&&S()})),e)}g=g||"text";let j=await p[z.findKey(p,g)||"text"](y,e);return!R&&S&&S(),await new Promise(((t,r)=>{je(t,r,{data:j,headers:ve.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:v})}))}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,v),{cause:t.cause||t});throw $.from(t,t&&t.code,e,v)}}},Ve=new Map,Je=e=>{let t=z.merge.call({skipUndefined:!0},We,e?e.env:null);const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,u=Ve;for(;c--;)a=i[c],s=u.get(a),void 0===s&&u.set(a,s=c?new Map:Ge(t)),u=s;return s};Je();const Ke={http:null,xhr:ke,fetch:{get:Je}};z.forEach(Ke,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,Xe=e=>z.isFunction(e)||null===e||!1===e;var Ye=(e,t)=>{e=z.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!Xe(n)&&(o=Ke[(r=String(n)).toLowerCase()],void 0===o))throw new $(`Unknown adapter '${r}'`);if(o&&(z.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const e=Object.entries(i).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new $("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function Ze(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function et(e){Ze(e),e.headers=ve.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ye(e.adapter||he.adapter,e)(e).then((function(t){return Ze(e),t.data=Se.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return Ae(t)||(Ze(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const tt="1.12.0",rt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const nt={};rt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $(n(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!nt[o]&&(nt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},rt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $("options must be an object",$.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 $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:rt};const it=ot.validators;class at{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=n&&(z.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:it.function,serialize:it.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&z.merge(o.common,o[t.method]);o&&z.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ve.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=[et.bind(this),void 0];for(e.unshift(...a),e.push(...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=et.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 ne(Ue((e=Fe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}z.forEach(["delete","get","head","options"],(function(e){at.prototype[e]=function(t,r){return this.request(Fe(r||{},{method:e,url:t,data:(r||{}).data}))}})),z.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Fe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}at.prototype[e]=t(),at.prototype[e+"Form"]=t(!0)}));var st=at;class ct{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 Re(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ct((function(t){e=t})),cancel:e}}}var ut=ct;const lt={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(lt).forEach((e=>{let[t,r]=e;lt[r]=t}));var ft=lt;const pt=function e(r){const n=new st(r),o=t(st.prototype.request,n);return z.extend(o,st.prototype,n,{allOwnKeys:!0}),z.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(Fe(r,t))},o}(he);pt.Axios=st,pt.CanceledError=Re,pt.CancelToken=ut,pt.isCancel=Ae,pt.VERSION=tt,pt.toFormData=Y,pt.AxiosError=$,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return z.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Fe,pt.AxiosHeaders=ve,pt.formToJSON=e=>de(z.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=Ye,pt.HttpStatusCode=ft,pt.default=pt;var dt=pt;function yt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}const ht=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function mt(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function gt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){mt(i,n,o,a,s,"next",e)}function s(e){mt(i,n,o,a,s,"throw",e)}a(void 0)}))}}function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){Et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ot="axios-retry";function vt(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(e=>!ht.has(e&&e.code))(e)}var St=["get","head","options"],At=St.concat(["put","delete"]);function Rt(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function jt(e){return!!e.config&&(Rt(e)&&-1!==At.indexOf(e.config.method))}function Pt(e){return vt(e)||jt(e)}function Tt(){return 0}function _t(e){var t=e[Ot]||{};return t.retryCount=t.retryCount||0,e[Ot]=t,t}function Nt(){return(Nt=gt((function*(e,t,r,n){var o=r.retryCount<e&&t(n);if("object"==typeof o)try{return yield o,!0}catch(e){return!1}return o}))).apply(this,arguments)}function xt(e,t){e.interceptors.request.use((e=>(_t(e).lastRequestTime=Date.now(),e))),e.interceptors.response.use(null,function(){var r=gt((function*(r){var{config:n}=r;if(!n)return Promise.reject(r);var{retries:o=3,retryCondition:i=Pt,retryDelay:a=Tt,shouldResetTimeout:s=!1}=function(e,t){return wt(wt({},t),e[Ot])}(n,t),c=_t(n);if(yield function(e,t,r,n){return Nt.apply(this,arguments)}(o,i,c,r)){c.retryCount+=1;var u=a(c.retryCount,r);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,n),!s&&n.timeout&&c.lastRequestTime){var l=Date.now()-c.lastRequestTime;n.timeout=Math.max(n.timeout-l-u,1)}return n.transformRequest=[e=>e],new Promise((t=>setTimeout((()=>t(e(n))),u)))}return Promise.reject(r)}));return function(e){return r.apply(this,arguments)}}())}xt.isNetworkError=vt,xt.isSafeRequestError=function(e){return!!e.config&&(Rt(e)&&-1!==St.indexOf(e.config.method))},xt.isIdempotentRequestError=jt,xt.isNetworkOrIdempotentRequestError=Pt,xt.exponentialDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()},xt.isRetryableError=Rt;var Ut,Ct="undefined"!=typeof Symbol&&Symbol,Ft=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},Lt=Array.prototype.slice,kt=Object.prototype.toString,Dt=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==kt.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Lt.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(Lt.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Lt.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},It=Function.prototype.bind||Dt,Bt=It.call(Function.call,Object.prototype.hasOwnProperty),Mt=SyntaxError,qt=Function,Wt=TypeError,Ht=function(e){try{return qt('"use strict"; return ('+e+").constructor;")()}catch(e){}},zt=Object.getOwnPropertyDescriptor;if(zt)try{zt({},"")}catch(e){zt=null}var $t=function(){throw new Wt},Gt=zt?function(){try{return $t}catch(e){try{return zt(arguments,"callee").get}catch(e){return $t}}}():$t,Vt="function"==typeof Ct&&"function"==typeof Symbol&&"symbol"==typeof Ct("foo")&&"symbol"==typeof Symbol("bar")&&Ft(),Jt=Object.getPrototypeOf||function(e){return e.__proto__},Kt={},Qt="undefined"==typeof Uint8Array?Ut:Jt(Uint8Array),Xt={"%AggregateError%":"undefined"==typeof AggregateError?Ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ut:ArrayBuffer,"%ArrayIteratorPrototype%":Vt?Jt([][Symbol.iterator]()):Ut,"%AsyncFromSyncIteratorPrototype%":Ut,"%AsyncFunction%":Kt,"%AsyncGenerator%":Kt,"%AsyncGeneratorFunction%":Kt,"%AsyncIteratorPrototype%":Kt,"%Atomics%":"undefined"==typeof Atomics?Ut:Atomics,"%BigInt%":"undefined"==typeof BigInt?Ut:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Ut:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Ut:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Ut:FinalizationRegistry,"%Function%":qt,"%GeneratorFunction%":Kt,"%Int8Array%":"undefined"==typeof Int8Array?Ut:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Ut:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vt?Jt(Jt([][Symbol.iterator]())):Ut,"%JSON%":"object"==typeof JSON?JSON:Ut,"%Map%":"undefined"==typeof Map?Ut:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Vt?Jt((new Map)[Symbol.iterator]()):Ut,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Ut:Promise,"%Proxy%":"undefined"==typeof Proxy?Ut:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Ut:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Ut:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Vt?Jt((new Set)[Symbol.iterator]()):Ut,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vt?Jt(""[Symbol.iterator]()):Ut,"%Symbol%":Vt?Symbol:Ut,"%SyntaxError%":Mt,"%ThrowTypeError%":Gt,"%TypedArray%":Qt,"%TypeError%":Wt,"%Uint8Array%":"undefined"==typeof Uint8Array?Ut:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ut:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Ut:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Ut:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Ut:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Ut:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Ut:WeakSet},Yt=function e(t){var r;if("%AsyncFunction%"===t)r=Ht("async function () {}");else if("%GeneratorFunction%"===t)r=Ht("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ht("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=Jt(o.prototype))}return Xt[t]=r,r},Zt={"%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"]},er=It,tr=Bt,rr=er.call(Function.call,Array.prototype.concat),nr=er.call(Function.apply,Array.prototype.splice),or=er.call(Function.call,String.prototype.replace),ir=er.call(Function.call,String.prototype.slice),ar=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sr=/\\(\\)?/g,cr=function(e,t){var r,n=e;if(tr(Zt,n)&&(n="%"+(r=Zt[n])[0]+"%"),tr(Xt,n)){var o=Xt[n];if(o===Kt&&(o=Yt(n)),void 0===o&&!t)throw new Wt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Mt("intrinsic "+e+" does not exist!")},ur=function(e,t){if("string"!=typeof e||0===e.length)throw new Wt("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Wt('"allowMissing" argument must be a boolean');var r=function(e){var t=ir(e,0,1),r=ir(e,-1);if("%"===t&&"%"!==r)throw new Mt("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Mt("invalid intrinsic syntax, expected opening `%`");var n=[];return or(e,ar,(function(e,t,r,o){n[n.length]=r?or(o,sr,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=cr("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],nr(r,rr([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var f=r[u],p=ir(f,0,1),d=ir(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===d||"'"===d||"`"===d)&&p!==d)throw new Mt("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),tr(Xt,i="%"+(n+="."+f)+"%"))a=Xt[i];else if(null!=a){if(!(f in a)){if(!t)throw new Wt("base intrinsic for "+e+" exists, but the property is not available.");return}if(zt&&u+1>=r.length){var y=zt(a,f);a=(l=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else l=tr(a,f),a=a[f];l&&!s&&(Xt[i]=a)}}return a},lr={exports:{}};!function(e){var t=It,r=ur,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);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+c(0,e.length-(arguments.length-1))}));return r};var u=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u}(lr);var fr=ur,pr=lr.exports,dr=pr(fr("String.prototype.indexOf")),yr=yt(Object.freeze({__proto__:null,default:{}})),hr="function"==typeof Map&&Map.prototype,mr=Object.getOwnPropertyDescriptor&&hr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,gr=hr&&mr&&"function"==typeof mr.get?mr.get:null,br=hr&&Map.prototype.forEach,wr="function"==typeof Set&&Set.prototype,Er=Object.getOwnPropertyDescriptor&&wr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Or=wr&&Er&&"function"==typeof Er.get?Er.get:null,vr=wr&&Set.prototype.forEach,Sr="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ar="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Rr="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,jr=Boolean.prototype.valueOf,Pr=Object.prototype.toString,Tr=Function.prototype.toString,_r=String.prototype.match,Nr="function"==typeof BigInt?BigInt.prototype.valueOf:null,xr=Object.getOwnPropertySymbols,Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Cr="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Fr=Object.prototype.propertyIsEnumerable,Lr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),kr=yr.custom,Dr=kr&&Wr(kr)?kr:null,Ir="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function Br(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Mr(e){return String(e).replace(/"/g,""")}function qr(e){return!("[object Array]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}function Wr(e){if(Cr)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Ur)return!1;try{return Ur.call(e),!0}catch(e){}return!1}var Hr=Object.prototype.hasOwnProperty||function(e){return e in this};function zr(e,t){return Hr.call(e,t)}function $r(e){return Pr.call(e)}function Gr(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 Vr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Vr(e.slice(0,t.maxStringLength),t)+n}return Br(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Jr),"single",t)}function Jr(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":"")+t.toString(16).toUpperCase()}function Kr(e){return"Object("+e+")"}function Qr(e){return e+" { ? }"}function Xr(e,t,r,n){return e+" ("+t+") {"+(n?Yr(r,n):r.join(", "))+"}"}function Yr(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function Zr(e,t){var r=qr(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=zr(e,o)?t(e[o],e):""}var i,a="function"==typeof xr?xr(e):[];if(Cr){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)zr(e,c)&&(r&&String(Number(c))===c&&c<e.length||Cr&&i["$"+c]instanceof Symbol||(/[^\w$]/.test(c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof xr)for(var u=0;u<a.length;u++)Fr.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var en=ur,tn=function(e,t){var r=fr(e,!!t);return"function"==typeof r&&dr(e,".prototype.")>-1?pr(r):r},rn=function e(t,r,n,o){var i=r||{};if(zr(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zr(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=!zr(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zr(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Vr(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=s&&s>0&&"object"==typeof t)return qr(t)?"[Array]":"[Object]";var c=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(i,n);if(void 0===o)o=[];else if(Gr(o,t)>=0)return"[Circular]";function u(t,r,a){if(r&&(o=o.slice()).push(r),a){var s={depth:i.depth};return zr(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,n+1,o)}return e(t,i,n+1,o)}if("function"==typeof t){var l=function(e){if(e.name)return e.name;var t=_r.call(Tr.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=Zr(t,u);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(Wr(t)){var p=Cr?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Ur.call(t);return"object"!=typeof t||Cr?p:Kr(p)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),y=t.attributes||[],h=0;h<y.length;h++)d+=" "+y[h].name+"="+Br(Mr(y[h].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(qr(t)){if(0===t.length)return"[]";var m=Zr(t,u);return c&&!function(e){for(var t=0;t<e.length;t++)if(Gr(e[t],"\n")>=0)return!1;return!0}(m)?"["+Yr(m,c)+"]":"[ "+m.join(", ")+" ]"}if(function(e){return!("[object Error]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t)){var g=Zr(t,u);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(Dr&&"function"==typeof t[Dr])return t[Dr]();if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!gr||!e||"object"!=typeof e)return!1;try{gr.call(e);try{Or.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var b=[];return br.call(t,(function(e,r){b.push(u(r,t,!0)+" => "+u(e,t))})),Xr("Map",gr.call(t),b,c)}if(function(e){if(!Or||!e||"object"!=typeof e)return!1;try{Or.call(e);try{gr.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return vr.call(t,(function(e){w.push(u(e,t))})),Xr("Set",Or.call(t),w,c)}if(function(e){if(!Sr||!e||"object"!=typeof e)return!1;try{Sr.call(e,Sr);try{Ar.call(e,Ar)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Qr("WeakMap");if(function(e){if(!Ar||!e||"object"!=typeof e)return!1;try{Ar.call(e,Ar);try{Sr.call(e,Sr)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Qr("WeakSet");if(function(e){if(!Rr||!e||"object"!=typeof e)return!1;try{return Rr.call(e),!0}catch(e){}return!1}(t))return Qr("WeakRef");if(function(e){return!("[object Number]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t))return Kr(u(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Nr)return!1;try{return Nr.call(e),!0}catch(e){}return!1}(t))return Kr(u(Nr.call(t)));if(function(e){return!("[object Boolean]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t))return Kr(jr.call(t));if(function(e){return!("[object String]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t))return Kr(u(String(t)));if(!function(e){return!("[object Date]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t)&&!function(e){return!("[object RegExp]"!==$r(e)||Ir&&"object"==typeof e&&Ir in e)}(t)){var E=Zr(t,u),O=Lr?Lr(t)===Object.prototype:t instanceof Object||t.constructor===Object,v=t instanceof Object?"":"null prototype",S=!O&&Ir&&Object(t)===t&&Ir in t?$r(t).slice(8,-1):v?"Object":"",A=(O||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||v?"["+[].concat(S||[],v||[]).join(": ")+"] ":"");return 0===E.length?A+"{}":c?A+"{"+Yr(E,c)+"}":A+"{ "+E.join(", ")+" }"}return String(t)},nn=en("%TypeError%"),on=en("%WeakMap%",!0),an=en("%Map%",!0),sn=tn("WeakMap.prototype.get",!0),cn=tn("WeakMap.prototype.set",!0),un=tn("WeakMap.prototype.has",!0),ln=tn("Map.prototype.get",!0),fn=tn("Map.prototype.set",!0),pn=tn("Map.prototype.has",!0),dn=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},yn=String.prototype.replace,hn=/%20/g,mn="RFC3986",gn={default:mn,formatters:{RFC1738:function(e){return yn.call(e,hn,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:mn},bn=gn,wn=Object.prototype.hasOwnProperty,En=Array.isArray,On=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vn=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Sn={arrayToObject:vn,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(En(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var c=i.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===bn.RFC1738&&(40===c||41===c)?a+=i.charAt(s):c<128?a+=On[c]:c<2048?a+=On[192|c>>6]+On[128|63&c]:c<55296||c>=57344?a+=On[224|c>>12]+On[128|c>>6&63]+On[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),a+=On[240|c>>18]+On[128|c>>12&63]+On[128|c>>6&63]+On[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(En(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(En(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!wn.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return En(t)&&!En(r)&&(o=vn(t,n)),En(t)&&En(r)?(r.forEach((function(r,o){if(wn.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return wn.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},An=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new nn("Side channel does not contain "+rn(e))},get:function(n){if(on&&n&&("object"==typeof n||"function"==typeof n)){if(e)return sn(e,n)}else if(an){if(t)return ln(t,n)}else if(r)return function(e,t){var r=dn(e,t);return r&&r.value}(r,n)},has:function(n){if(on&&n&&("object"==typeof n||"function"==typeof n)){if(e)return un(e,n)}else if(an){if(t)return pn(t,n)}else if(r)return function(e,t){return!!dn(e,t)}(r,n);return!1},set:function(n,o){on&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new on),cn(e,n,o)):an?(t||(t=new an),fn(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=dn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},Rn=Sn,jn=gn,Pn=Object.prototype.hasOwnProperty,Tn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},_n=Array.isArray,Nn=String.prototype.split,xn=Array.prototype.push,Un=function(e,t){xn.apply(e,_n(t)?t:[t])},Cn=Date.prototype.toISOString,Fn=jn.default,Ln={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Rn.encode,encodeValuesOnly:!1,format:Fn,formatter:jn.formatters[Fn],indices:!1,serializeDate:function(e){return Cn.call(e)},skipNulls:!1,strictNullHandling:!1},kn={},Dn=function e(t,r,n,o,i,a,s,c,u,l,f,p,d,y,h){for(var m,g=t,b=h,w=0,E=!1;void 0!==(b=b.get(kn))&&!E;){var O=b.get(t);if(w+=1,void 0!==O){if(O===w)throw new RangeError("Cyclic object value");E=!0}void 0===b.get(kn)&&(w=0)}if("function"==typeof s?g=s(r,g):g instanceof Date?g=l(g):"comma"===n&&_n(g)&&(g=Rn.maybeMap(g,(function(e){return e instanceof Date?l(e):e}))),null===g){if(o)return a&&!d?a(r,Ln.encoder,y,"key",f):r;g=""}if("string"==typeof(m=g)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||Rn.isBuffer(g)){if(a){var v=d?r:a(r,Ln.encoder,y,"key",f);if("comma"===n&&d){for(var S=Nn.call(String(g),","),A="",R=0;R<S.length;++R)A+=(0===R?"":",")+p(a(S[R],Ln.encoder,y,"value",f));return[p(v)+"="+A]}return[p(v)+"="+p(a(g,Ln.encoder,y,"value",f))]}return[p(r)+"="+p(String(g))]}var j,P=[];if(void 0===g)return P;if("comma"===n&&_n(g))j=[{value:g.length>0?g.join(",")||null:void 0}];else if(_n(s))j=s;else{var T=Object.keys(g);j=c?T.sort(c):T}for(var _=0;_<j.length;++_){var N=j[_],x="object"==typeof N&&void 0!==N.value?N.value:g[N];if(!i||null!==x){var U=_n(g)?"function"==typeof n?n(r,N):r:r+(u?"."+N:"["+N+"]");h.set(t,w);var C=An();C.set(kn,h),Un(P,e(x,U,n,o,i,a,s,c,u,l,f,p,d,y,C))}}return P},In=Sn,Bn=Object.prototype.hasOwnProperty,Mn=Array.isArray,qn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:In.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Wn=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Hn=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},zn=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,c=[];if(s){if(!r.plainObjects&&Bn.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;r.depth>0&&null!==(a=i.exec(o))&&u<r.depth;){if(u+=1,!r.plainObjects&&Bn.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:Hn(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);r.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[])[u]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,r,n)}},$n=function(e,t){var r,n=e,o=function(e){if(!e)return Ln;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ln.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=jn.default;if(void 0!==e.format){if(!Pn.call(jn.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=jn.formatters[r],o=Ln.filter;return("function"==typeof e.filter||_n(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ln.addQueryPrefix,allowDots:void 0===e.allowDots?Ln.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ln.charsetSentinel,delimiter:void 0===e.delimiter?Ln.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ln.encode,encoder:"function"==typeof e.encoder?e.encoder:Ln.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ln.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ln.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ln.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ln.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):_n(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Tn?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Tn[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=An(),u=0;u<r.length;++u){var l=r[u];o.skipNulls&&null===n[l]||Un(a,Dn(n[l],l,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var f=a.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},Gn={formats:gn,parse:function(e,t){var r=function(e){if(!e)return qn;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?qn.charset:e.charset;return{allowDots:void 0===e.allowDots?qn.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:qn.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:qn.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:qn.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qn.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:qn.comma,decoder:"function"==typeof e.decoder?e.decoder:qn.decoder,delimiter:"string"==typeof e.delimiter||In.isRegExp(e.delimiter)?e.delimiter:qn.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:qn.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:qn.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:qn.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:qn.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qn.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var u,l,f=a[r],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(u=t.decoder(f,qn.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(f.slice(0,d),qn.decoder,c,"key"),l=In.maybeMap(Hn(f.slice(d+1),t),(function(e){return t.decoder(e,qn.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Wn(l)),f.indexOf("[]=")>-1&&(l=Mn(l)?[l]:l),Bn.call(n,u)?n[u]=In.combine(n[u],l):n[u]=l}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=zn(s,n[s],r,"string"==typeof e);o=In.merge(o,c,r)}return!0===r.allowSparse?o:In.compact(o)},stringify:$n};const Vn=e=>{let t={raw:"",encoded:""};e.and&&(t=(e=>{if(!e)throw new Error("invalid query");const t=[],r=[];return e.forEach((e=>{const{raw:n,encoded:o}=Vn(e);t.push(n),r.push(o)})),{raw:t.join("&"),encoded:r.join("&")}})(e.and),delete e.and);let r={raw:"",encoded:""};e.or&&(r=(e=>{if(!e)throw new Error("invalid query");const t=[];e.forEach((e=>{const{raw:r}=Vn(e);t.push(r)}));const r=new URLSearchParams;return r.set("[or]",`(${t.join(";")})`),{raw:`[or]=(${t.join(";")})`,encoded:r.toString()}})(e.or),delete e.or);const n=Gn.stringify(e,{encode:!1,arrayFormat:"comma"}),o=Gn.stringify(e,{arrayFormat:"comma"});return{raw:[n,r.raw,t.raw].filter((e=>e)).join("&"),encoded:[o,r.encoded,t.encoded].filter((e=>e)).join("&")}},Jn=e=>{if(!dt.isAxiosError(e))throw e;const{config:t,response:r}=e;if(null==r||!r.data)throw e;const{data:n}=r,o={status:n.status,code:n.code,message:n.message};if(t&&(o.request={method:t.method,headers:t.headers},t.url)){const e=new URL(t.url,t.baseURL);o.request.url=e.toString()}const i=new Error;i.name=`${n.status} ${n.code}`;try{i.message=JSON.stringify(o,null,2)}catch{i.message=n.message}throw i},Kn=(e,t)=>{if(!(e=>{if("object"!=typeof e||null===e)return!1;const t=e;return"number"==typeof t.status&&"string"==typeof t.code&&"string"==typeof t.message})(e))throw e;const{status:r,code:n,message:o}=e,i={status:r,code:n,message:o,request:t},a=new Error;a.name=`${r} ${n}`;try{a.message=JSON.stringify(i,null,2)}catch{a.message=o}throw a};e.createClient=e=>{let{spaceUid:t,token:r,apiType:n="cdn",adapter:o,retryOnError:i=!0,retryLimit:a=3,fetch:s}=e;if(!t)throw new Error("spaceUid parameter is required.");if(!r)throw new Error("token parameter is required.");if(!["cdn","api"].includes(n))throw new Error(`apiType parameter should be set to "cdn" or "api". apiType: ${n}`);if(a>10)throw new Error("retryLimit should be a value less than or equal to 10.");const c=new URL(`https://${t}.${n}.newt.so`),u={Authorization:`Bearer ${r}`},l=dt.create({baseURL:c.toString(),headers:u,adapter:o});i&&xt(l,{retries:a,retryCondition:e=>{var t,r;return 429===(null===(t=e.response)||void 0===t?void 0:t.status)||500===(null===(r=e.response)||void 0===r?void 0:r.status)},retryDelay:e=>1e3*e});const f=async e=>{let{appUid:t,modelUid:r,query:n}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");const o=new URL(`/v1/${t}/${r}`,c.toString());if(n&&Object.keys(n).length){const{encoded:e}=Vn(n);o.search=e}if(s){const e={method:"get",headers:u,url:o.toString()};try{const t=await s(o.toString(),{headers:u}),r=await t.json();return t.ok?r:Kn(r,e)}catch(t){return Kn(t,e)}}else try{const{data:e}=await l.get(o.pathname+o.search);return e}catch(e){return Jn(e)}};return{getContents:f,getContent:async e=>{let{appUid:t,modelUid:r,contentId:n,query:o}=e;if(!t)throw new Error("appUid parameter is required.");if(!r)throw new Error("modelUid parameter is required.");if(!n)throw new Error("contentId parameter is required.");const i=new URL(`/v1/${t}/${r}/${n}`,c.toString());if(o&&Object.keys(o).length){const{encoded:e}=Vn(o);i.search=e}if(s){const e={method:"get",headers:u,url:i.toString()};try{const t=await s(i.toString(),{headers:u}),r=await t.json();return t.ok?r:Kn(r,e)}catch(t){return Kn(t,e)}}else try{const{data:e}=await l.get(i.pathname+i.search);return e}catch(e){return Jn(e)}},getFirstContent:async e=>{let{appUid:t,modelUid:r,query:n}=e;if(n&&n.limit)throw new Error("query.limit parameter cannot have a value.");const o={...n,limit:1},{items:i}=await f({appUid:t,modelUid:r,query:o});return 0===i.length?null:i[0]},getApp:async e=>{let{appUid:t}=e;if(!t)throw new Error("appUid parameter is required.");const r=new URL(`/v1/space/apps/${t}`,c.toString());if(s){const e={method:"get",headers:u,url:r.toString()};try{const t=await s(r.toString(),{headers:u}),n=await t.json();return t.ok?n:Kn(n,e)}catch(t){return Kn(t,e)}}else try{const{data:e}=await l.get(r.pathname);return e}catch(e){return Jn(e)}}}},Object.defineProperty(e,"__esModule",{value:!0})}));
|