@wiajs/req 1.7.29 → 1.7.30
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/node/req.cjs +36 -31
- package/dist/req.js +65 -62
- package/dist/req.min.js +2 -2
- package/dist/web/req.cjs +1910 -2396
- package/dist/web/req.mjs +1916 -2420
- package/lib/adapters/http.js +37 -29
- package/lib/adapters/xhr.js +3 -3
- package/lib/cancel/CancelToken.js +40 -40
- package/lib/core/Axios.js +11 -11
- package/lib/core/AxiosHeaders.js +3 -3
- package/lib/core/InterceptorManager.js +3 -3
- package/lib/helpers/AxiosTransformStream.js +34 -34
- package/lib/helpers/formDataToStream.js +18 -18
- package/lib/platform/node/classes/URLSearchParams.js +1 -1
- package/package.json +1 -2
package/dist/node/req.cjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wia/req v1.7.
|
|
2
|
+
* @wia/req v1.7.30
|
|
3
3
|
* (c) 2024-2025 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
const FormData$1 = require('form-data');
|
|
9
|
-
const url = require('
|
|
9
|
+
const url = require('url');
|
|
10
10
|
const agent = require('@wiajs/agent');
|
|
11
11
|
const log$1 = require('@wiajs/log');
|
|
12
12
|
const request = require('@wiajs/request');
|
|
13
|
-
const util = require('
|
|
14
|
-
const
|
|
15
|
-
const stream$1 = require('node:stream');
|
|
16
|
-
const zlib = require('node:zlib');
|
|
13
|
+
const util = require('util');
|
|
14
|
+
const events = require('events');
|
|
17
15
|
const stream = require('stream');
|
|
16
|
+
const zlib = require('zlib');
|
|
18
17
|
|
|
19
18
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
20
19
|
function bind(fn, thisArg) {
|
|
@@ -2280,7 +2279,7 @@ class FormDataPart {
|
|
|
2280
2279
|
if (isStringValue) {
|
|
2281
2280
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
2282
2281
|
} else {
|
|
2283
|
-
headers += `Content-Type: ${value.type ||
|
|
2282
|
+
headers += `Content-Type: ${value.type || 'application/octet-stream'}${CRLF}`;
|
|
2284
2283
|
}
|
|
2285
2284
|
|
|
2286
2285
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
@@ -2293,12 +2292,12 @@ class FormDataPart {
|
|
|
2293
2292
|
this.value = value;
|
|
2294
2293
|
}
|
|
2295
2294
|
|
|
2296
|
-
async *encode(){
|
|
2295
|
+
async *encode() {
|
|
2297
2296
|
yield this.headers;
|
|
2298
2297
|
|
|
2299
2298
|
const {value} = this;
|
|
2300
2299
|
|
|
2301
|
-
if(utils$1.isTypedArray(value)) {
|
|
2300
|
+
if (utils$1.isTypedArray(value)) {
|
|
2302
2301
|
yield value;
|
|
2303
2302
|
} else {
|
|
2304
2303
|
yield* readBlob(value);
|
|
@@ -2308,11 +2307,15 @@ class FormDataPart {
|
|
|
2308
2307
|
}
|
|
2309
2308
|
|
|
2310
2309
|
static escapeName(name) {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2310
|
+
return String(name).replace(
|
|
2311
|
+
/[\r\n"]/g,
|
|
2312
|
+
match =>
|
|
2313
|
+
({
|
|
2314
|
+
'\r': '%0D',
|
|
2315
|
+
'\n': '%0A',
|
|
2316
|
+
'"': '%22',
|
|
2317
|
+
})[match]
|
|
2318
|
+
)
|
|
2316
2319
|
}
|
|
2317
2320
|
}
|
|
2318
2321
|
|
|
@@ -2320,11 +2323,11 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
2320
2323
|
const {
|
|
2321
2324
|
tag = 'form-data-boundary',
|
|
2322
2325
|
size = 25,
|
|
2323
|
-
boundary = tag + '-' + utils$1.generateString(size, BOUNDARY_ALPHABET)
|
|
2326
|
+
boundary = tag + '-' + utils$1.generateString(size, BOUNDARY_ALPHABET),
|
|
2324
2327
|
} = options || {};
|
|
2325
2328
|
|
|
2326
|
-
if(!utils$1.isFormData(form)) {
|
|
2327
|
-
throw TypeError('FormData instance required')
|
|
2329
|
+
if (!utils$1.isFormData(form)) {
|
|
2330
|
+
throw TypeError('FormData instance required')
|
|
2328
2331
|
}
|
|
2329
2332
|
|
|
2330
2333
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
@@ -2338,7 +2341,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
2338
2341
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
2339
2342
|
const part = new FormDataPart(name, value);
|
|
2340
2343
|
contentLength += part.size;
|
|
2341
|
-
return part
|
|
2344
|
+
return part
|
|
2342
2345
|
});
|
|
2343
2346
|
|
|
2344
2347
|
contentLength += boundaryBytes.byteLength * parts.length;
|
|
@@ -2346,7 +2349,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
2346
2349
|
contentLength = utils$1.toFiniteNumber(contentLength);
|
|
2347
2350
|
|
|
2348
2351
|
const computedHeaders = {
|
|
2349
|
-
'Content-Type': `multipart/form-data; boundary=${boundary}
|
|
2352
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
2350
2353
|
};
|
|
2351
2354
|
|
|
2352
2355
|
if (Number.isFinite(contentLength)) {
|
|
@@ -2355,14 +2358,16 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
2355
2358
|
|
|
2356
2359
|
headersHandler && headersHandler(computedHeaders);
|
|
2357
2360
|
|
|
2358
|
-
return stream.Readable.from(
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2361
|
+
return stream.Readable.from(
|
|
2362
|
+
(async function* () {
|
|
2363
|
+
for (const part of parts) {
|
|
2364
|
+
yield boundaryBytes;
|
|
2365
|
+
yield* part.encode();
|
|
2366
|
+
}
|
|
2363
2367
|
|
|
2364
|
-
|
|
2365
|
-
|
|
2368
|
+
yield footerBytes;
|
|
2369
|
+
})()
|
|
2370
|
+
)
|
|
2366
2371
|
};
|
|
2367
2372
|
|
|
2368
2373
|
function parseProtocol(url) {
|
|
@@ -2616,7 +2621,7 @@ class HttpAdapter {
|
|
|
2616
2621
|
constructor(config) {
|
|
2617
2622
|
this.config = config;
|
|
2618
2623
|
// temporary internal emitter until the AxiosRequest class will be implemented
|
|
2619
|
-
this.emitter = new
|
|
2624
|
+
this.emitter = new events.EventEmitter();
|
|
2620
2625
|
}
|
|
2621
2626
|
|
|
2622
2627
|
/**
|
|
@@ -2798,7 +2803,7 @@ class HttpAdapter {
|
|
|
2798
2803
|
} else if (utils$1.isBlob(data)) {
|
|
2799
2804
|
data.size && headers.setContentType(data.type || 'application/octet-stream');
|
|
2800
2805
|
headers.setContentLength(data.size || 0);
|
|
2801
|
-
data = stream
|
|
2806
|
+
data = stream.Readable.from(readBlob(data));
|
|
2802
2807
|
} else if (data && !utils$1.isStream(data)) {
|
|
2803
2808
|
if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) {
|
|
2804
2809
|
data = Buffer.from(new Uint8Array(data));
|
|
@@ -2838,10 +2843,10 @@ class HttpAdapter {
|
|
|
2838
2843
|
|
|
2839
2844
|
if (data && (onUploadProgress || maxUploadRate)) {
|
|
2840
2845
|
if (!utils$1.isStream(data)) {
|
|
2841
|
-
data = stream
|
|
2846
|
+
data = stream.Readable.from(data, {objectMode: false});
|
|
2842
2847
|
}
|
|
2843
2848
|
|
|
2844
|
-
data = stream
|
|
2849
|
+
data = stream.pipeline(
|
|
2845
2850
|
[
|
|
2846
2851
|
data,
|
|
2847
2852
|
new AxiosTransformStream({
|
|
@@ -3001,7 +3006,7 @@ class HttpAdapter {
|
|
|
3001
3006
|
convertedData = utils$1.stripBOM(convertedData);
|
|
3002
3007
|
}
|
|
3003
3008
|
} else if (responseType === 'stream') {
|
|
3004
|
-
convertedData = stream
|
|
3009
|
+
convertedData = stream.Readable.from(convertedData);
|
|
3005
3010
|
}
|
|
3006
3011
|
|
|
3007
3012
|
// 返回响应
|
package/dist/req.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wia/req v1.7.
|
|
2
|
+
* @wia/req v1.7.30
|
|
3
3
|
* (c) 2024-2025 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -998,9 +998,6 @@
|
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
let InterceptorManager = class InterceptorManager {
|
|
1001
|
-
constructor(){
|
|
1002
|
-
this.handlers = [];
|
|
1003
|
-
}
|
|
1004
1001
|
/**
|
|
1005
1002
|
* Add a new interceptor to the stack
|
|
1006
1003
|
*
|
|
@@ -1053,6 +1050,9 @@
|
|
|
1053
1050
|
}
|
|
1054
1051
|
});
|
|
1055
1052
|
}
|
|
1053
|
+
constructor(){
|
|
1054
|
+
this.handlers = [];
|
|
1055
|
+
}
|
|
1056
1056
|
};
|
|
1057
1057
|
var InterceptorManager$1 = InterceptorManager;
|
|
1058
1058
|
|
|
@@ -1793,8 +1793,11 @@
|
|
|
1793
1793
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1794
1794
|
}
|
|
1795
1795
|
|
|
1796
|
+
/* eslint-env browser */
|
|
1797
|
+
|
|
1796
1798
|
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
1797
|
-
|
|
1799
|
+
|
|
1800
|
+
var FormData$2 = /*@__PURE__*/getDefaultExportFromCjs(browser);
|
|
1798
1801
|
|
|
1799
1802
|
/**
|
|
1800
1803
|
* Determines if the given thing is a array or js object.
|
|
@@ -2421,9 +2424,6 @@
|
|
|
2421
2424
|
});
|
|
2422
2425
|
}
|
|
2423
2426
|
let AxiosHeaders = class AxiosHeaders {
|
|
2424
|
-
constructor(headers){
|
|
2425
|
-
headers && this.set(headers);
|
|
2426
|
-
}
|
|
2427
2427
|
/**
|
|
2428
2428
|
*
|
|
2429
2429
|
* @param {*} header
|
|
@@ -2582,6 +2582,9 @@
|
|
|
2582
2582
|
utils$2.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
2583
2583
|
return this;
|
|
2584
2584
|
}
|
|
2585
|
+
constructor(headers){
|
|
2586
|
+
headers && this.set(headers);
|
|
2587
|
+
}
|
|
2585
2588
|
};
|
|
2586
2589
|
AxiosHeaders.accessor([
|
|
2587
2590
|
'Content-Type',
|
|
@@ -2686,12 +2689,12 @@
|
|
|
2686
2689
|
|
|
2687
2690
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2688
2691
|
let XhrAdapter = class XhrAdapter {
|
|
2689
|
-
constructor(config){
|
|
2690
|
-
this.init(config);
|
|
2691
|
-
}
|
|
2692
2692
|
init(config) {}
|
|
2693
2693
|
request() {}
|
|
2694
2694
|
stream() {}
|
|
2695
|
+
constructor(config){
|
|
2696
|
+
this.init(config);
|
|
2697
|
+
}
|
|
2695
2698
|
};
|
|
2696
2699
|
var XhrAdapter$1 = isXHRAdapterSupported && XhrAdapter;
|
|
2697
2700
|
|
|
@@ -3004,17 +3007,6 @@
|
|
|
3004
3007
|
*
|
|
3005
3008
|
* @return {Axios} A new instance of Axios
|
|
3006
3009
|
*/ let Axios = class Axios {
|
|
3007
|
-
constructor(instanceConfig){
|
|
3008
|
-
this.defaults = instanceConfig;
|
|
3009
|
-
this.config = this.defaults // !+++
|
|
3010
|
-
;
|
|
3011
|
-
this.interceptors = {
|
|
3012
|
-
request: new InterceptorManager$1(),
|
|
3013
|
-
response: new InterceptorManager$1()
|
|
3014
|
-
};
|
|
3015
|
-
this.init() // !+++
|
|
3016
|
-
;
|
|
3017
|
-
}
|
|
3018
3010
|
/**
|
|
3019
3011
|
* !+++
|
|
3020
3012
|
* config 属性直接挂在到实例上,方便读取、设置、修改
|
|
@@ -3264,6 +3256,17 @@
|
|
|
3264
3256
|
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
3265
3257
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
3266
3258
|
}
|
|
3259
|
+
constructor(instanceConfig){
|
|
3260
|
+
this.defaults = instanceConfig;
|
|
3261
|
+
this.config = this.defaults // !+++
|
|
3262
|
+
;
|
|
3263
|
+
this.interceptors = {
|
|
3264
|
+
request: new InterceptorManager$1(),
|
|
3265
|
+
response: new InterceptorManager$1()
|
|
3266
|
+
};
|
|
3267
|
+
this.init() // !+++
|
|
3268
|
+
;
|
|
3269
|
+
}
|
|
3267
3270
|
};
|
|
3268
3271
|
// Provide aliases for supported request methods
|
|
3269
3272
|
utils$2.forEach([
|
|
@@ -3354,46 +3357,6 @@
|
|
|
3354
3357
|
*
|
|
3355
3358
|
* @returns {CancelToken}
|
|
3356
3359
|
*/ let CancelToken = class CancelToken {
|
|
3357
|
-
constructor(executor){
|
|
3358
|
-
if (typeof executor !== 'function') {
|
|
3359
|
-
throw new TypeError('executor must be a function.');
|
|
3360
|
-
}
|
|
3361
|
-
let resolvePromise;
|
|
3362
|
-
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
3363
|
-
resolvePromise = resolve;
|
|
3364
|
-
});
|
|
3365
|
-
const token = this;
|
|
3366
|
-
// eslint-disable-next-line func-names
|
|
3367
|
-
this.promise.then((cancel)=>{
|
|
3368
|
-
if (!token._listeners) return;
|
|
3369
|
-
let i = token._listeners.length;
|
|
3370
|
-
while(i-- > 0){
|
|
3371
|
-
token._listeners[i](cancel);
|
|
3372
|
-
}
|
|
3373
|
-
token._listeners = null;
|
|
3374
|
-
});
|
|
3375
|
-
// eslint-disable-next-line func-names
|
|
3376
|
-
this.promise.then = (onfulfilled)=>{
|
|
3377
|
-
let _resolve;
|
|
3378
|
-
// eslint-disable-next-line func-names
|
|
3379
|
-
const promise = new Promise((resolve)=>{
|
|
3380
|
-
token.subscribe(resolve);
|
|
3381
|
-
_resolve = resolve;
|
|
3382
|
-
}).then(onfulfilled);
|
|
3383
|
-
promise.cancel = function reject() {
|
|
3384
|
-
token.unsubscribe(_resolve);
|
|
3385
|
-
};
|
|
3386
|
-
return promise;
|
|
3387
|
-
};
|
|
3388
|
-
executor(function cancel(message, config, request) {
|
|
3389
|
-
if (token.reason) {
|
|
3390
|
-
// Cancellation has already been requested
|
|
3391
|
-
return;
|
|
3392
|
-
}
|
|
3393
|
-
token.reason = new CanceledError(message, config, request);
|
|
3394
|
-
resolvePromise(token.reason);
|
|
3395
|
-
});
|
|
3396
|
-
}
|
|
3397
3360
|
/**
|
|
3398
3361
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
3399
3362
|
*/ throwIfRequested() {
|
|
@@ -3449,6 +3412,46 @@
|
|
|
3449
3412
|
cancel
|
|
3450
3413
|
};
|
|
3451
3414
|
}
|
|
3415
|
+
constructor(executor){
|
|
3416
|
+
if (typeof executor !== 'function') {
|
|
3417
|
+
throw new TypeError('executor must be a function.');
|
|
3418
|
+
}
|
|
3419
|
+
let resolvePromise;
|
|
3420
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
3421
|
+
resolvePromise = resolve;
|
|
3422
|
+
});
|
|
3423
|
+
const token = this;
|
|
3424
|
+
// eslint-disable-next-line func-names
|
|
3425
|
+
this.promise.then((cancel)=>{
|
|
3426
|
+
if (!token._listeners) return;
|
|
3427
|
+
let i = token._listeners.length;
|
|
3428
|
+
while(i-- > 0){
|
|
3429
|
+
token._listeners[i](cancel);
|
|
3430
|
+
}
|
|
3431
|
+
token._listeners = null;
|
|
3432
|
+
});
|
|
3433
|
+
// eslint-disable-next-line func-names
|
|
3434
|
+
this.promise.then = (onfulfilled)=>{
|
|
3435
|
+
let _resolve;
|
|
3436
|
+
// eslint-disable-next-line func-names
|
|
3437
|
+
const promise = new Promise((resolve)=>{
|
|
3438
|
+
token.subscribe(resolve);
|
|
3439
|
+
_resolve = resolve;
|
|
3440
|
+
}).then(onfulfilled);
|
|
3441
|
+
promise.cancel = function reject() {
|
|
3442
|
+
token.unsubscribe(_resolve);
|
|
3443
|
+
};
|
|
3444
|
+
return promise;
|
|
3445
|
+
};
|
|
3446
|
+
executor(function cancel(message, config, request) {
|
|
3447
|
+
if (token.reason) {
|
|
3448
|
+
// Cancellation has already been requested
|
|
3449
|
+
return;
|
|
3450
|
+
}
|
|
3451
|
+
token.reason = new CanceledError(message, config, request);
|
|
3452
|
+
resolvePromise(token.reason);
|
|
3453
|
+
});
|
|
3454
|
+
}
|
|
3452
3455
|
};
|
|
3453
3456
|
var CancelToken$1 = CancelToken;
|
|
3454
3457
|
|
package/dist/req.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wia/req v1.7.
|
|
2
|
+
* @wia/req v1.7.30
|
|
3
3
|
* (c) 2024-2025 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).req=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),e=>{const r=t.call(e);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const s=e=>(e=e.toLowerCase(),t=>n(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,c=i("undefined");const u=s("ArrayBuffer");const l=i("string"),f=i("function"),p=i("number"),h=e=>null!==e&&"object"==typeof e,d=e=>{if("object"!==n(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=s("Date"),y=s("File"),b=s("Blob"),g=s("FileList"),O=s("URLSearchParams"),[E,w,S,A]=["ReadableStream","Request","Response","Headers"].map(s);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),a(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!c(e)&&e!==T;const P=(F="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>F&&e instanceof F);var F;const x=s("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),v=s("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",L={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D};const k=s("AsyncFunction"),U=(I="function"==typeof setImmediate,q=f(T.postMessage),I?setImmediate:q?(M=`axios@${Math.random()}`,z=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===M&&z.length&&z.shift()()}),!1),e=>{z.push(e),T.postMessage(M,"*")}):e=>setTimeout(e));var I,q,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var J={isArray:a,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=n(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer),t},isString:l,isNumber:p,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:d,isReadableStream:E,isRequest:w,isResponse:S,isHeaders:A,isUndefined:c,isDate:m,isFile:y,isBlob:b,isRegExp:v,isFunction:f,isStream:e=>h(e)&&f(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:g,forEach:R,merge:function e(){const{caseless:t}=_(this)&&this||{},r={},n=(n,o)=>{const s=t&&j(r,o)||o;d(r[s])&&d(n)?r[s]=e(r[s],n):d(n)?r[s]=e({},n):a(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(t,r,n,{allOwnKeys:o}={})=>(R(r,((r,o)=>{n&&f(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t),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,n,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!p(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:x,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(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 a(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:T,isContextDefined:_,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=a(e)?[]:{};return R(e,((e,t)=>{const s=r(e,n+1);!c(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:k,isThenable:e=>e&&(h(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:U,asap:H,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function V(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)}J.inherits(V,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=V.prototype,K={};["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=>{K[e]={value:e}})),Object.defineProperties(V,K),Object.defineProperty($,"isAxiosError",{value:!0}),V.from=(e,t,r,n,o,s)=>{const i=Object.create($);return J.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function W(e){return J.isPlainObject(e)||J.isArray(e)}function G(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=G(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Z=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=G(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===i?X([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(X(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),J.forEach(r,(function(r,s){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Y(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&&Q(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,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};const{toString:oe}=Object.prototype,{getPrototypeOf:se}=Object,ie=(e=>t=>{const r=oe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ae=e=>(e=e.toLowerCase(),t=>ie(t)===e),ce=e=>t=>typeof t===e,{isArray:ue}=Array,le=ce("undefined");const fe=ae("ArrayBuffer");const pe=ce("string"),he=ce("function"),de=ce("number"),me=e=>null!==e&&"object"==typeof e,ye=e=>{if("object"!==ie(e))return!1;const t=se(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},be=ae("Date"),ge=ae("File"),Oe=ae("Blob"),Ee=ae("FileList"),we=ae("URLSearchParams"),[Se,Ae,Re,je]=["ReadableStream","Request","Response","Headers"].map(ae);function Te(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),ue(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function _e(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 Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!le(e)&&e!==Pe;const xe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&se(Uint8Array)),Ne=ae("HTMLFormElement"),ve=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ce=ae("RegExp"),Be=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},De="abcdefghijklmnopqrstuvwxyz",Le="0123456789",ke={DIGIT:Le,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Le};const Ue=ae("AsyncFunction"),Ie=((e,t)=>e?setImmediate:t?((e,t)=>(Pe.addEventListener("message",(({source:r,data:n})=>{r===Pe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),Pe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,he(Pe.postMessage)),qe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pe):"undefined"!=typeof process&&process.nextTick||Ie;var Me={isArray:ue,isArrayBuffer:fe,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||he(e.append)&&("formdata"===(t=ie(e))||"object"===t&&he(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&fe(e.buffer),t},isString:pe,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:me,isPlainObject:ye,isReadableStream:Se,isRequest:Ae,isResponse:Re,isHeaders:je,isUndefined:le,isDate:be,isFile:ge,isBlob:Oe,isRegExp:Ce,isFunction:he,isStream:e=>me(e)&&he(e.pipe),isURLSearchParams:we,isTypedArray:xe,isFileList:Ee,forEach:Te,merge:function e(){const{caseless:t}=Fe(this)&&this||{},r={},n=(n,o)=>{const s=t&&_e(r,o)||o;ye(r[s])&&ye(n)?r[s]=e(r[s],n):ye(n)?r[s]=e({},n):ue(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Te(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Te(t,((t,n)=>{r&&he(t)?e[n]=function(e,t){return function(){return e.apply(t,arguments)}}(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&se(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ie,kindOfTest:ae,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(ue(e))return e;let t=e.length;if(!de(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:Ne,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Be,freezeMethods:e=>{Be(e,((t,r)=>{if(he(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];he(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 ue(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:_e,global:Pe,isContextDefined:Fe,ALPHABET:ke,generateString:(e=16,t=ke.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&he(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=ue(e)?[]:{};return Te(e,((e,t)=>{const s=r(e,n+1);!le(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Ue,isThenable:e=>e&&(me(e)||he(e))&&he(e.then)&&he(e.catch),setImmediate:Ie,asap:qe,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function ze(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)}Me.inherits(ze,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:Me.toJSONObject(this.config),code:this.code,status:this.status}}});const He=ze.prototype,Je={};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}["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=>{Je[e]={value:e}})),Object.defineProperties(ze,Je),Object.defineProperty(He,"isAxiosError",{value:!0}),ze.from=(e,t,r,n,o,s)=>{const i=Object.create(He);return Me.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ze.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var $e=Ve("object"==typeof self?self.FormData:window.FormData);function Ke(e){return Me.isPlainObject(e)||Me.isArray(e)}function We(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,r){return e?e.concat(t).map((function(e,t){return e=We(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Xe=Me.toFlatObject(Me,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ze(e,t,r){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new($e||FormData);const n=(r=Me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Me.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Me.isDate(e))return e.toISOString();if(!a&&Me.isBlob(e))throw new ze("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(e)||Me.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(Me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Me.isArray(e)&&function(e){return Me.isArray(e)&&!e.some(Ke)}(e)||(Me.isFileList(e)||Me.endsWith(r,"[]"))&&(a=Me.toArray(e)))return r=We(r),a.forEach((function(e,n){!Me.isUndefined(e)&&null!==e&&t.append(!0===i?Ge([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!Ke(e)||(t.append(Ge(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Xe,{defaultVisitor:u,convertValue:c,isVisitable:Ke});if(!Me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Me.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Me.forEach(r,(function(r,s){!0===(!(Me.isUndefined(r)||null===r)&&o.call(t,r,Me.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ye(e,t){this._pairs=[],e&&Ze(e,this,t)}const et=Ye.prototype;et.append=function(e,t){this._pairs.push([e,t])},et.toString=function(e){const t=e?function(t){return e.call(this,t,Qe)}:Qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var tt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const rt="undefined"!=typeof window&&"undefined"!=typeof document,nt="object"==typeof navigator&&navigator||void 0,ot=rt&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0),st="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,it=rt&&window.location.href||"http://localhost";var at={...Object.freeze({__proto__:null,hasBrowserEnv:rt,hasStandardBrowserEnv:ot,hasStandardBrowserWebWorkerEnv:st,navigator:nt,origin:it}),...tt};function ct(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(n)?n.length:s,a)return J.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&J.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&J.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ut={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return n?JSON.stringify(ct(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new at.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return at.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ut.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.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 V.from(e,V.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:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{ut.headers[e]={}}));var lt=ut;const ft=J.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 pt=Symbol("internals");function ht(e){return e&&String(e).trim().toLowerCase()}function dt(e){return!1===e||null==e?e:J.isArray(e)?e.map(dt):String(e)}function mt(e,t,r,n,o){return J.isFunction(n)?n.call(this,t,r):(o&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}let yt=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ht(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=dt(e))}const s=(e,t)=>J.forEach(e,((e,r)=>o(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&ft[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(J.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=ht(e)){const r=J.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(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ht(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!mt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ht(e)){const o=J.findKey(r,e);!o||t&&!mt(0,r[o],o,t)||(delete r[o],n=!0)}}return J.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&&!mt(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,o)=>{const s=J.findKey(r,o);if(s)return t[s]=dt(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=dt(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[pt]=this[pt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ht(e);t[n]||(!function(e,t){const r=J.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 J.isArray(e)?e.forEach(n):n(e),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(yt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(yt);var bt=yt;function gt(e,t){const r=this||lt,n=t||r,o=bt.from(n.headers);let s=n.data;return J.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Ot(e){return!(!e||!e.__CANCEL__)}function Et(e,t,r){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Et,V,{__CANCEL__:!0});const wt="undefined"!=typeof XMLHttpRequest;const St={http:null,xhr:wt&&class{constructor(e){this.init(e)}init(e){}request(){}stream(){}}};J.forEach(St,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var At=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=J.isString(r)?St[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new V(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(J.hasOwnProp(St,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!J.isFunction(n))throw new TypeError("adapter is not a function");return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function jt(e){let t;Rt(e),e.headers=bt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=new(At(e.adapter||lt.adapter))(e);return t=e.stream?r.request(this):r.request(this).then((t=>(Rt(e),t.data=gt.call(e,e.transformResponse,t),Object.defineProperty(t,"body",{get:()=>t.data}),t.headers=bt.from(t.headers),t)),(t=>(Ot(t)||(Rt(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.data&&!t.response.body&&(t.response.body=t.response.data),t.response.headers=bt.from(t.response.headers))),Promise.reject(t)))),t}const Tt=e=>e instanceof bt?{...e}:e;function _t(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!J.isUndefined(t))return n(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Tt(e),Tt(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);J.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Pt="1.7.7",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const xt={};Ft.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new V(n(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!xt[o]&&(xt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},Ft.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 V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new V("option "+s+" must be "+r,V.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}},validators:Ft};const{validators:vt}=Nt;let Ct=class{constructor(e){this.defaults=e,this.config=this.defaults,this.interceptors={request:new ne,response:new ne},this.init()}init(){const e=this;["url","method","baseURL","transformRequest","transformResponse","headers","params","paramsSerializer","body","data","timeout","withCredentials","adapter","auth","responseType","responseEncoding","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","maxBodyLength","validateStatus","maxRedirects","beforeRedirect","socketPath","httpAgent","httpsAgent","agent","cancelToken","signal","decompress","insecureHTTPParser","transitional","env","formSerializer","maxRate"].forEach((t=>Object.defineProperty(e,t,{enumerable:!0,get:()=>e.config[t],set(r){e.config[t]=r}})))}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,r=!1){let n=null;"string"==typeof e?(t=t||{}).url=e:t=e||{},!t.data&&t.body&&(t.data=t.body),t=_t(this.defaults,t);const{transitional:o,paramsSerializer:s,headers:i}=t;void 0!==o&&Nt.assertOptions(o,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),s&&(J.isFunction(s)?t.paramsSerializer={serialize:s}:Nt.assertOptions(s,{encode:vt.function,serialize:vt.function},!0)),Nt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=i&&J.merge(i.common,i[t.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=bt.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))}));const l=[];let f;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,h=0;if(r)t.stream=!0,n=jt.call(this,t);else if(u){p=c.length;let e=t;for(h=0;h<p;){const t=c[h++],r=c[h++];try{e=t(e)}catch(e){r.call(this,e);break}}try{for(f=jt.call(this,e),h=0,p=l.length;h<p;)f=f.then(l[h++],l[h++]);n=f}catch(e){n=Promise.reject(e)}}else{const e=[jt.bind(this),void 0];for(e.unshift(...c),e.push(...l),p=e.length,f=Promise.resolve(t);h<p;)f=f.then(e[h++],e[h++]);n=f}return n}stream(e,t){return this._request(e,t,!0)}getUri(e){e=_t(this.defaults,e);var t,r;return function(e,t,r){if(!t)return e;const n=r&&r.encode||re,o=r&&r.serialize;let s;if(s=o?o(t,r):J.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}((t=e.baseURL,r=e.url,t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(t,r):r),e.params,e.paramsSerializer)}};J.forEach(["head","options"],(function(e){Ct.prototype[e]=function(t,r){return this.request(_t(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["delete","get"],(function(e){Ct.prototype[e]=function(t,r,n){return this.request(_t(n||{},{method:e,url:t,params:r}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Form`]=t(!0)})),J.forEach(["gets"],(function(e){Ct.prototype[e]=function(t,r,n){return this.stream(_t(n||{},{method:e,url:t,params:r,data:(n||{}).data}))}})),J.forEach(["posts","puts","patchs"],(function(e){function t(t){return function(r,n,o){return this.stream(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Forms`]=t(!0)}));var Bt=Ct;var Dt=class e{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 Et(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 t;return{token:new e((function(e){t=e})),cancel:t}}};const Lt=function t(r){const n=new Bt(r),o=e(Bt.prototype.request,n);return J.extend(o,Bt.prototype,n,{allOwnKeys:!0}),J.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(_t(r,e))},o}(lt);return Lt.Axios=Bt,Lt.CanceledError=Et,Lt.CancelToken=Dt,Lt.isCancel=Ot,Lt.VERSION=Pt,Lt.toFormData=Q,Lt.AxiosError=V,Lt.Cancel=Lt.CanceledError,Lt.all=e=>Promise.all(e),Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=_t,Lt.AxiosHeaders=bt,Lt.formToJSON=e=>ct(J.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=At,Lt.default=Lt,Lt}));
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).req=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),e=>{const r=t.call(e);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const s=e=>(e=e.toLowerCase(),t=>n(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,c=i("undefined");const u=s("ArrayBuffer");const l=i("string"),f=i("function"),p=i("number"),h=e=>null!==e&&"object"==typeof e,d=e=>{if("object"!==n(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=s("Date"),y=s("File"),b=s("Blob"),g=s("FileList"),O=s("URLSearchParams"),[E,w,S,A]=["ReadableStream","Request","Response","Headers"].map(s);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),a(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!c(e)&&e!==T;const P=(F="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>F&&e instanceof F);var F;const x=s("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),v=s("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",L={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D};const k=s("AsyncFunction"),U=(I="function"==typeof setImmediate,q=f(T.postMessage),I?setImmediate:q?(M=`axios@${Math.random()}`,z=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===M&&z.length&&z.shift()()}),!1),e=>{z.push(e),T.postMessage(M,"*")}):e=>setTimeout(e));var I,q,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var J={isArray:a,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=n(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer),t},isString:l,isNumber:p,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:d,isReadableStream:E,isRequest:w,isResponse:S,isHeaders:A,isUndefined:c,isDate:m,isFile:y,isBlob:b,isRegExp:v,isFunction:f,isStream:e=>h(e)&&f(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:g,forEach:R,merge:function e(){const{caseless:t}=_(this)&&this||{},r={},n=(n,o)=>{const s=t&&j(r,o)||o;d(r[s])&&d(n)?r[s]=e(r[s],n):d(n)?r[s]=e({},n):a(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(t,r,n,{allOwnKeys:o}={})=>(R(r,((r,o)=>{n&&f(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t),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,n,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!p(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:x,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(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 a(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:T,isContextDefined:_,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=a(e)?[]:{};return R(e,((e,t)=>{const s=r(e,n+1);!c(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:k,isThenable:e=>e&&(h(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:U,asap:H,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function V(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)}J.inherits(V,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=V.prototype,K={};["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=>{K[e]={value:e}})),Object.defineProperties(V,K),Object.defineProperty($,"isAxiosError",{value:!0}),V.from=(e,t,r,n,o,s)=>{const i=Object.create($);return J.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function W(e){return J.isPlainObject(e)||J.isArray(e)}function G(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=G(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Z=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=G(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===i?X([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(X(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),J.forEach(r,(function(r,s){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Y(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&&Q(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,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=class{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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}constructor(){this.handlers=[]}};const{toString:oe}=Object.prototype,{getPrototypeOf:se}=Object,ie=(e=>t=>{const r=oe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ae=e=>(e=e.toLowerCase(),t=>ie(t)===e),ce=e=>t=>typeof t===e,{isArray:ue}=Array,le=ce("undefined");const fe=ae("ArrayBuffer");const pe=ce("string"),he=ce("function"),de=ce("number"),me=e=>null!==e&&"object"==typeof e,ye=e=>{if("object"!==ie(e))return!1;const t=se(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},be=ae("Date"),ge=ae("File"),Oe=ae("Blob"),Ee=ae("FileList"),we=ae("URLSearchParams"),[Se,Ae,Re,je]=["ReadableStream","Request","Response","Headers"].map(ae);function Te(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),ue(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function _e(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 Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!le(e)&&e!==Pe;const xe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&se(Uint8Array)),Ne=ae("HTMLFormElement"),ve=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ce=ae("RegExp"),Be=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},De="abcdefghijklmnopqrstuvwxyz",Le="0123456789",ke={DIGIT:Le,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Le};const Ue=ae("AsyncFunction"),Ie=((e,t)=>e?setImmediate:t?((e,t)=>(Pe.addEventListener("message",(({source:r,data:n})=>{r===Pe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),Pe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,he(Pe.postMessage)),qe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pe):"undefined"!=typeof process&&process.nextTick||Ie;var Me={isArray:ue,isArrayBuffer:fe,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||he(e.append)&&("formdata"===(t=ie(e))||"object"===t&&he(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&fe(e.buffer),t},isString:pe,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:me,isPlainObject:ye,isReadableStream:Se,isRequest:Ae,isResponse:Re,isHeaders:je,isUndefined:le,isDate:be,isFile:ge,isBlob:Oe,isRegExp:Ce,isFunction:he,isStream:e=>me(e)&&he(e.pipe),isURLSearchParams:we,isTypedArray:xe,isFileList:Ee,forEach:Te,merge:function e(){const{caseless:t}=Fe(this)&&this||{},r={},n=(n,o)=>{const s=t&&_e(r,o)||o;ye(r[s])&&ye(n)?r[s]=e(r[s],n):ye(n)?r[s]=e({},n):ue(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Te(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Te(t,((t,n)=>{r&&he(t)?e[n]=function(e,t){return function(){return e.apply(t,arguments)}}(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&se(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ie,kindOfTest:ae,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(ue(e))return e;let t=e.length;if(!de(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:Ne,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Be,freezeMethods:e=>{Be(e,((t,r)=>{if(he(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];he(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 ue(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:_e,global:Pe,isContextDefined:Fe,ALPHABET:ke,generateString:(e=16,t=ke.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&he(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=ue(e)?[]:{};return Te(e,((e,t)=>{const s=r(e,n+1);!le(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Ue,isThenable:e=>e&&(me(e)||he(e))&&he(e.then)&&he(e.catch),setImmediate:Ie,asap:qe,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function ze(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)}Me.inherits(ze,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:Me.toJSONObject(this.config),code:this.code,status:this.status}}});const He=ze.prototype,Je={};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}["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=>{Je[e]={value:e}})),Object.defineProperties(ze,Je),Object.defineProperty(He,"isAxiosError",{value:!0}),ze.from=(e,t,r,n,o,s)=>{const i=Object.create(He);return Me.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ze.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var $e=Ve("object"==typeof self?self.FormData:window.FormData);function Ke(e){return Me.isPlainObject(e)||Me.isArray(e)}function We(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,r){return e?e.concat(t).map((function(e,t){return e=We(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Xe=Me.toFlatObject(Me,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ze(e,t,r){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new($e||FormData);const n=(r=Me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Me.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Me.isDate(e))return e.toISOString();if(!a&&Me.isBlob(e))throw new ze("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(e)||Me.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(Me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Me.isArray(e)&&function(e){return Me.isArray(e)&&!e.some(Ke)}(e)||(Me.isFileList(e)||Me.endsWith(r,"[]"))&&(a=Me.toArray(e)))return r=We(r),a.forEach((function(e,n){!Me.isUndefined(e)&&null!==e&&t.append(!0===i?Ge([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!Ke(e)||(t.append(Ge(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Xe,{defaultVisitor:u,convertValue:c,isVisitable:Ke});if(!Me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Me.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Me.forEach(r,(function(r,s){!0===(!(Me.isUndefined(r)||null===r)&&o.call(t,r,Me.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ye(e,t){this._pairs=[],e&&Ze(e,this,t)}const et=Ye.prototype;et.append=function(e,t){this._pairs.push([e,t])},et.toString=function(e){const t=e?function(t){return e.call(this,t,Qe)}:Qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var tt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const rt="undefined"!=typeof window&&"undefined"!=typeof document,nt="object"==typeof navigator&&navigator||void 0,ot=rt&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0),st="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,it=rt&&window.location.href||"http://localhost";var at={...Object.freeze({__proto__:null,hasBrowserEnv:rt,hasStandardBrowserEnv:ot,hasStandardBrowserWebWorkerEnv:st,navigator:nt,origin:it}),...tt};function ct(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(n)?n.length:s,a)return J.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&J.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&J.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ut={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return n?JSON.stringify(ct(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new at.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return at.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ut.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.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 V.from(e,V.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:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{ut.headers[e]={}}));var lt=ut;const ft=J.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 pt=Symbol("internals");function ht(e){return e&&String(e).trim().toLowerCase()}function dt(e){return!1===e||null==e?e:J.isArray(e)?e.map(dt):String(e)}function mt(e,t,r,n,o){return J.isFunction(n)?n.call(this,t,r):(o&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}let yt=class{set(e,t,r){const n=this;function o(e,t,r){const o=ht(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=dt(e))}const s=(e,t)=>J.forEach(e,((e,r)=>o(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&ft[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(J.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=ht(e)){const r=J.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(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ht(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!mt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ht(e)){const o=J.findKey(r,e);!o||t&&!mt(0,r[o],o,t)||(delete r[o],n=!0)}}return J.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&&!mt(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,o)=>{const s=J.findKey(r,o);if(s)return t[s]=dt(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=dt(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[pt]=this[pt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ht(e);t[n]||(!function(e,t){const r=J.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 J.isArray(e)?e.forEach(n):n(e),this}constructor(e){e&&this.set(e)}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(yt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(yt);var bt=yt;function gt(e,t){const r=this||lt,n=t||r,o=bt.from(n.headers);let s=n.data;return J.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Ot(e){return!(!e||!e.__CANCEL__)}function Et(e,t,r){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Et,V,{__CANCEL__:!0});const wt="undefined"!=typeof XMLHttpRequest;const St={http:null,xhr:wt&&class{init(e){}request(){}stream(){}constructor(e){this.init(e)}}};J.forEach(St,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var At=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=J.isString(r)?St[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new V(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(J.hasOwnProp(St,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!J.isFunction(n))throw new TypeError("adapter is not a function");return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function jt(e){let t;Rt(e),e.headers=bt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=new(At(e.adapter||lt.adapter))(e);return t=e.stream?r.request(this):r.request(this).then((t=>(Rt(e),t.data=gt.call(e,e.transformResponse,t),Object.defineProperty(t,"body",{get:()=>t.data}),t.headers=bt.from(t.headers),t)),(t=>(Ot(t)||(Rt(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.data&&!t.response.body&&(t.response.body=t.response.data),t.response.headers=bt.from(t.response.headers))),Promise.reject(t)))),t}const Tt=e=>e instanceof bt?{...e}:e;function _t(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!J.isUndefined(t))return n(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Tt(e),Tt(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);J.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Pt="1.7.7",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const xt={};Ft.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new V(n(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!xt[o]&&(xt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},Ft.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 V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new V("option "+s+" must be "+r,V.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}},validators:Ft};const{validators:vt}=Nt;let Ct=class{init(){const e=this;["url","method","baseURL","transformRequest","transformResponse","headers","params","paramsSerializer","body","data","timeout","withCredentials","adapter","auth","responseType","responseEncoding","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","maxBodyLength","validateStatus","maxRedirects","beforeRedirect","socketPath","httpAgent","httpsAgent","agent","cancelToken","signal","decompress","insecureHTTPParser","transitional","env","formSerializer","maxRate"].forEach((t=>Object.defineProperty(e,t,{enumerable:!0,get:()=>e.config[t],set(r){e.config[t]=r}})))}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,r=!1){let n=null;"string"==typeof e?(t=t||{}).url=e:t=e||{},!t.data&&t.body&&(t.data=t.body),t=_t(this.defaults,t);const{transitional:o,paramsSerializer:s,headers:i}=t;void 0!==o&&Nt.assertOptions(o,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),s&&(J.isFunction(s)?t.paramsSerializer={serialize:s}:Nt.assertOptions(s,{encode:vt.function,serialize:vt.function},!0)),Nt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=i&&J.merge(i.common,i[t.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=bt.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))}));const l=[];let f;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,h=0;if(r)t.stream=!0,n=jt.call(this,t);else if(u){p=c.length;let e=t;for(h=0;h<p;){const t=c[h++],r=c[h++];try{e=t(e)}catch(e){r.call(this,e);break}}try{for(f=jt.call(this,e),h=0,p=l.length;h<p;)f=f.then(l[h++],l[h++]);n=f}catch(e){n=Promise.reject(e)}}else{const e=[jt.bind(this),void 0];for(e.unshift(...c),e.push(...l),p=e.length,f=Promise.resolve(t);h<p;)f=f.then(e[h++],e[h++]);n=f}return n}stream(e,t){return this._request(e,t,!0)}getUri(e){e=_t(this.defaults,e);var t,r;return function(e,t,r){if(!t)return e;const n=r&&r.encode||re,o=r&&r.serialize;let s;if(s=o?o(t,r):J.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}((t=e.baseURL,r=e.url,t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(t,r):r),e.params,e.paramsSerializer)}constructor(e){this.defaults=e,this.config=this.defaults,this.interceptors={request:new ne,response:new ne},this.init()}};J.forEach(["head","options"],(function(e){Ct.prototype[e]=function(t,r){return this.request(_t(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["delete","get"],(function(e){Ct.prototype[e]=function(t,r,n){return this.request(_t(n||{},{method:e,url:t,params:r}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Form`]=t(!0)})),J.forEach(["gets"],(function(e){Ct.prototype[e]=function(t,r,n){return this.stream(_t(n||{},{method:e,url:t,params:r,data:(n||{}).data}))}})),J.forEach(["posts","puts","patchs"],(function(e){function t(t){return function(r,n,o){return this.stream(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Forms`]=t(!0)}));var Bt=Ct;var Dt=class e{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 t;return{token:new e((function(e){t=e})),cancel:t}}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 Et(e,n,o),t(r.reason))}))}};const Lt=function t(r){const n=new Bt(r),o=e(Bt.prototype.request,n);return J.extend(o,Bt.prototype,n,{allOwnKeys:!0}),J.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(_t(r,e))},o}(lt);return Lt.Axios=Bt,Lt.CanceledError=Et,Lt.CancelToken=Dt,Lt.isCancel=Ot,Lt.VERSION=Pt,Lt.toFormData=Q,Lt.AxiosError=V,Lt.Cancel=Lt.CanceledError,Lt.all=e=>Promise.all(e),Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=_t,Lt.AxiosHeaders=bt,Lt.formToJSON=e=>ct(J.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=At,Lt.default=Lt,Lt}));
|