@aiderdesk/aiderdesk 0.64.0 → 0.66.0
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/out/cli.js +1 -0
- package/out/{open-telemetry-CcefKvbB.js → open-telemetry-baOvr6sK.js} +1 -1
- package/out/renderer/assets/{arc-DoIK-bD2.js → arc-BXuUWHai.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-Q4EWVU46-B8_dgBXp.js → architectureDiagram-3BPJPVTR-Bm9oFTP_.js} +11 -9
- package/out/renderer/assets/{blockDiagram-DXYQGD6D-BDOvGPDN.js → blockDiagram-GPEHLZMM-DQ2DevZl.js} +218 -30
- package/out/renderer/assets/{c4Diagram-AHTNJAMY-1ABZnJ2v.js → c4Diagram-AAUBKEIU-BdR46VbA.js} +2 -2
- package/out/renderer/assets/{channel-Cr_H2zdE.js → channel-DUdp1NJ7.js} +1 -1
- package/out/renderer/assets/{chunk-EDXVE4YY-Dt80V_EG.js → chunk-2J33WTMH-Dzi-idRV.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-d88VZY9C.js → chunk-4BX2VUAB-DEyFpixF.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-BO1oJBQV.js → chunk-55IACEB6-DyyQMIZa.js} +1 -1
- package/out/renderer/assets/{chunk-4TB4RGXK-DLcMuHVI.js → chunk-727SXJPM-vXEiesCP.js} +245 -149
- package/out/renderer/assets/{chunk-OYMX7WX6-DBFhtMcs.js → chunk-AQP2D5EJ-B0SWmbrS.js} +92 -78
- package/out/renderer/assets/{chunk-FMBD7UC4-D5MNbIWZ.js → chunk-FMBD7UC4-CoPwvBCa.js} +1 -1
- package/out/renderer/assets/{chunk-YZCP3GAM-gAcMGuhT.js → chunk-ND2GUHAM-ku5t5SwP.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-Bxwt_pyh.js → chunk-QZHKN3VN-DBGBAqit.js} +1 -1
- package/out/renderer/assets/{classDiagram-6PBFFD2Q-B7lgamMP.js → classDiagram-4FO5ZUOK-DTyjsHX9.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-HSJHXN6E-B7lgamMP.js → classDiagram-v2-Q7XG4LA2-DTyjsHX9.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-BZNBIG2x.js → cose-bilkent-S5V4N54A-wGfE9wIx.js} +1 -1
- package/out/renderer/assets/{dagre-KV5264BT-C3hXUNb-.js → dagre-BM42HDAG-cwyj1-l0.js} +17 -6
- package/out/renderer/assets/{diagram-MMDJMWI5-BcI1Ek4N.js → diagram-2AECGRRQ-BYvCxkOs.js} +3 -5
- package/out/renderer/assets/{diagram-5BDNPKRD-DNh45EqP.js → diagram-5GNKFQAL--ZlqvgmY.js} +4 -6
- package/out/renderer/assets/diagram-KO2AKTUF-CoPNrPhx.js +632 -0
- package/out/renderer/assets/{diagram-TYMM5635-DuHcW-s7.js → diagram-LMA3HP47-wjhxYTWf.js} +3 -5
- package/out/renderer/assets/{diagram-G4DWMVQ6-8lhqJfPk.js → diagram-OG6HWLK6-DhYpewbd.js} +4 -6
- package/out/renderer/assets/{erDiagram-SMLLAGMA-I6Q9HYdF.js → erDiagram-TEJ5UH35-DolRLBng.js} +4 -4
- package/out/renderer/assets/{flowDiagram-DWJPFMVM-BzRjtX5C.js → flowDiagram-I6XJVG4X-DjAbl_XC.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-T4ZO3ILL-DVkem_IA.js → ganttDiagram-6RSMTGT7-AF7-XgtX.js} +7 -1
- package/out/renderer/assets/{gitGraphDiagram-UUTBAWPF-BYpvdMpK.js → gitGraphDiagram-PVQCEYII-BMZLakzH.js} +4 -6
- package/out/renderer/assets/{graph-CAtr5PoG.js → graph-B_ifajWk.js} +490 -135
- package/out/renderer/assets/{index-CNL53LoL.js → index-3bI-dJm8.js} +9752 -6469
- package/out/renderer/assets/{index-Duw36zwk.css → index-B62bIfbt.css} +107 -11
- package/out/renderer/assets/{infoDiagram-42DDH7IO-BcmBthOY.js → infoDiagram-5YYISTIA-0f7Qxxvp.js} +3 -5
- package/out/renderer/assets/{ishikawaDiagram-UXIWVN3A-moTWny-V.js → ishikawaDiagram-YF4QCWOH-BX_EIAMn.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-VCZTEJTY-DOW8zaZt.js → journeyDiagram-JHISSGLW-Dmitv8wD.js} +4 -4
- package/out/renderer/assets/{kanban-definition-6JOO6SKY-DpJjTob4.js → kanban-definition-UN3LZRKU-By2GFUNB.js} +2 -2
- package/out/renderer/assets/{layout-BvH51Ui9.js → layout-DAkKffy1.js} +459 -32
- package/out/renderer/assets/{mindmap-definition-QFDTVHPH-DggFFNHq.js → mindmap-definition-RKZ34NQL-yIrV1m0y.js} +3 -3
- package/out/renderer/assets/{pieDiagram-DEJITSTG-BED4dnMF.js → pieDiagram-4H26LBE5-PV9y5rw_.js} +4 -6
- package/out/renderer/assets/{quadrantDiagram-34T5L4WZ-RpQ3qNU5.js → quadrantDiagram-W4KKPZXB-DeX0zTCp.js} +22 -20
- package/out/renderer/assets/{requirementDiagram-MS252O5E-VQt4zBMB.js → requirementDiagram-4Y6WPE33-Bzfk_KE-.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-XADWPNL6-DywR7qAk.js → sankeyDiagram-5OEKKPKP-BuCv8QIY.js} +80 -11
- package/out/renderer/assets/{sequenceDiagram-FGHM5R23-CVPfZD4e.js → sequenceDiagram-3UESZ5HK-Zg7Ukud8.js} +21 -9
- package/out/renderer/assets/{stateDiagram-FHFEXIEX-BrH8Q8ZG.js → stateDiagram-AJRCARHV-CLaqfYR8.js} +6 -8
- package/out/renderer/assets/{stateDiagram-v2-QKLJ7IA2-BTWk2K0H.js → stateDiagram-v2-BHNVJYJU-Cmm1ljQ4.js} +4 -4
- package/out/renderer/assets/{timeline-definition-GMOUNBTQ-DwDUCrTb.js → timeline-definition-PNZ67QCA-DQBaAVcC.js} +2 -2
- package/out/renderer/assets/{vennDiagram-DHZGUBPP-Bjvr7yGM.js → vennDiagram-CIIHVFJN-CuplbU_R.js} +1 -1
- package/out/renderer/assets/{wardley-RL74JXVD-Bo-sW7uQ.js → wardley-L42UT6IY-BiqfHMim.js} +25605 -19118
- package/out/renderer/assets/{wardleyDiagram-NUSXRM2D-DRW_1PCJ.js → wardleyDiagram-YWT4CUSO-BaV0FnUu.js} +112 -38
- package/out/renderer/assets/worker-CfJUABHG.js +12626 -0
- package/out/renderer/assets/{xychartDiagram-5P7HB3ND-Ds-qS4nC.js → xychartDiagram-2RQKCTM6-DA_Miw-n.js} +1 -1
- package/out/renderer/index.html +2 -2
- package/out/renderer/progress.html +4 -48
- package/out/resources/connector/connector.py +5 -0
- package/out/resources/mcp-server/aider-desk-mcp-server.js +1051 -501
- package/out/runner.js +1711 -329
- package/package.json +29 -21
- package/scripts/generate-package.mjs +10 -2
- package/out/renderer/assets/_baseUniq-C6Q8LpuQ.js +0 -381
- package/out/renderer/assets/clone-DKkqtIT8.js +0 -8
- package/out/renderer/assets/min-CowxrbD6.js +0 -41
|
@@ -3105,6 +3105,9 @@ var require_utils = __commonJS({
|
|
|
3105
3105
|
"use strict";
|
|
3106
3106
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3107
3107
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3108
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3109
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3110
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
3108
3111
|
function stringArrayToHexStripped(input) {
|
|
3109
3112
|
let acc = "";
|
|
3110
3113
|
let code = 0;
|
|
@@ -3297,27 +3300,77 @@ var require_utils = __commonJS({
|
|
|
3297
3300
|
}
|
|
3298
3301
|
return output.join("");
|
|
3299
3302
|
}
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3303
|
+
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3304
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3305
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
3306
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
3307
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
3308
|
+
re.lastIndex = 0;
|
|
3309
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
3310
|
+
}
|
|
3311
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
3312
|
+
if (input.indexOf("%") === -1) {
|
|
3313
|
+
return input;
|
|
3310
3314
|
}
|
|
3311
|
-
|
|
3312
|
-
|
|
3315
|
+
let output = "";
|
|
3316
|
+
for (let i = 0; i < input.length; i++) {
|
|
3317
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3318
|
+
const hex3 = input.slice(i + 1, i + 3);
|
|
3319
|
+
if (isHexPair(hex3)) {
|
|
3320
|
+
const normalizedHex = hex3.toUpperCase();
|
|
3321
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3322
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
3323
|
+
output += decoded;
|
|
3324
|
+
} else {
|
|
3325
|
+
output += "%" + normalizedHex;
|
|
3326
|
+
}
|
|
3327
|
+
i += 2;
|
|
3328
|
+
continue;
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
output += input[i];
|
|
3313
3332
|
}
|
|
3314
|
-
|
|
3315
|
-
|
|
3333
|
+
return output;
|
|
3334
|
+
}
|
|
3335
|
+
function normalizePathEncoding(input) {
|
|
3336
|
+
let output = "";
|
|
3337
|
+
for (let i = 0; i < input.length; i++) {
|
|
3338
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3339
|
+
const hex3 = input.slice(i + 1, i + 3);
|
|
3340
|
+
if (isHexPair(hex3)) {
|
|
3341
|
+
const normalizedHex = hex3.toUpperCase();
|
|
3342
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3343
|
+
if (decoded !== "." && isUnreserved(decoded)) {
|
|
3344
|
+
output += decoded;
|
|
3345
|
+
} else {
|
|
3346
|
+
output += "%" + normalizedHex;
|
|
3347
|
+
}
|
|
3348
|
+
i += 2;
|
|
3349
|
+
continue;
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
if (isPathCharacter(input[i])) {
|
|
3353
|
+
output += input[i];
|
|
3354
|
+
} else {
|
|
3355
|
+
output += escape(input[i]);
|
|
3356
|
+
}
|
|
3316
3357
|
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3358
|
+
return output;
|
|
3359
|
+
}
|
|
3360
|
+
function escapePreservingEscapes(input) {
|
|
3361
|
+
let output = "";
|
|
3362
|
+
for (let i = 0; i < input.length; i++) {
|
|
3363
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3364
|
+
const hex3 = input.slice(i + 1, i + 3);
|
|
3365
|
+
if (isHexPair(hex3)) {
|
|
3366
|
+
output += "%" + hex3.toUpperCase();
|
|
3367
|
+
i += 2;
|
|
3368
|
+
continue;
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
output += escape(input[i]);
|
|
3319
3372
|
}
|
|
3320
|
-
return
|
|
3373
|
+
return output;
|
|
3321
3374
|
}
|
|
3322
3375
|
function recomposeAuthority(component) {
|
|
3323
3376
|
const uriTokens = [];
|
|
@@ -3332,7 +3385,7 @@ var require_utils = __commonJS({
|
|
|
3332
3385
|
if (ipV6res.isIPV6 === true) {
|
|
3333
3386
|
host = `[${ipV6res.escapedHost}]`;
|
|
3334
3387
|
} else {
|
|
3335
|
-
host =
|
|
3388
|
+
host = reescapeHostDelimiters(host, false);
|
|
3336
3389
|
}
|
|
3337
3390
|
}
|
|
3338
3391
|
uriTokens.push(host);
|
|
@@ -3346,7 +3399,10 @@ var require_utils = __commonJS({
|
|
|
3346
3399
|
module2.exports = {
|
|
3347
3400
|
nonSimpleDomain,
|
|
3348
3401
|
recomposeAuthority,
|
|
3349
|
-
|
|
3402
|
+
reescapeHostDelimiters,
|
|
3403
|
+
normalizePercentEncoding,
|
|
3404
|
+
normalizePathEncoding,
|
|
3405
|
+
escapePreservingEscapes,
|
|
3350
3406
|
removeDotSegments,
|
|
3351
3407
|
isIPv4,
|
|
3352
3408
|
isUUID,
|
|
@@ -3570,12 +3626,12 @@ var require_schemes = __commonJS({
|
|
|
3570
3626
|
var require_fast_uri = __commonJS({
|
|
3571
3627
|
"node_modules/fast-uri/index.js"(exports2, module2) {
|
|
3572
3628
|
"use strict";
|
|
3573
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
3629
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3574
3630
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3575
3631
|
function normalize(uri, options) {
|
|
3576
3632
|
if (typeof uri === "string") {
|
|
3577
3633
|
uri = /** @type {T} */
|
|
3578
|
-
|
|
3634
|
+
normalizeString(uri, options);
|
|
3579
3635
|
} else if (typeof uri === "object") {
|
|
3580
3636
|
uri = /** @type {T} */
|
|
3581
3637
|
parse3(serialize(uri, options), options);
|
|
@@ -3642,19 +3698,9 @@ var require_fast_uri = __commonJS({
|
|
|
3642
3698
|
return target;
|
|
3643
3699
|
}
|
|
3644
3700
|
function equal(uriA, uriB, options) {
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
} else if (typeof uriA === "object") {
|
|
3649
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
3650
|
-
}
|
|
3651
|
-
if (typeof uriB === "string") {
|
|
3652
|
-
uriB = unescape(uriB);
|
|
3653
|
-
uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), { ...options, skipEscape: true });
|
|
3654
|
-
} else if (typeof uriB === "object") {
|
|
3655
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
3656
|
-
}
|
|
3657
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
3701
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
3702
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
3703
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
3658
3704
|
}
|
|
3659
3705
|
function serialize(cmpts, opts) {
|
|
3660
3706
|
const component = {
|
|
@@ -3679,12 +3725,12 @@ var require_fast_uri = __commonJS({
|
|
|
3679
3725
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3680
3726
|
if (component.path !== void 0) {
|
|
3681
3727
|
if (!options.skipEscape) {
|
|
3682
|
-
component.path =
|
|
3728
|
+
component.path = escapePreservingEscapes(component.path);
|
|
3683
3729
|
if (component.scheme !== void 0) {
|
|
3684
3730
|
component.path = component.path.split("%3A").join(":");
|
|
3685
3731
|
}
|
|
3686
3732
|
} else {
|
|
3687
|
-
component.path =
|
|
3733
|
+
component.path = normalizePercentEncoding(component.path);
|
|
3688
3734
|
}
|
|
3689
3735
|
}
|
|
3690
3736
|
if (options.reference !== "suffix" && component.scheme) {
|
|
@@ -3719,7 +3765,16 @@ var require_fast_uri = __commonJS({
|
|
|
3719
3765
|
return uriTokens.join("");
|
|
3720
3766
|
}
|
|
3721
3767
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
3722
|
-
function
|
|
3768
|
+
function getParseError(parsed, matches) {
|
|
3769
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
3770
|
+
return 'URI path must start with "/" when authority is present.';
|
|
3771
|
+
}
|
|
3772
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
|
|
3773
|
+
return "URI port is malformed.";
|
|
3774
|
+
}
|
|
3775
|
+
return void 0;
|
|
3776
|
+
}
|
|
3777
|
+
function parseWithStatus(uri, opts) {
|
|
3723
3778
|
const options = Object.assign({}, opts);
|
|
3724
3779
|
const parsed = {
|
|
3725
3780
|
scheme: void 0,
|
|
@@ -3730,6 +3785,7 @@ var require_fast_uri = __commonJS({
|
|
|
3730
3785
|
query: void 0,
|
|
3731
3786
|
fragment: void 0
|
|
3732
3787
|
};
|
|
3788
|
+
let malformedAuthorityOrPort = false;
|
|
3733
3789
|
let isIP = false;
|
|
3734
3790
|
if (options.reference === "suffix") {
|
|
3735
3791
|
if (options.scheme) {
|
|
@@ -3750,6 +3806,11 @@ var require_fast_uri = __commonJS({
|
|
|
3750
3806
|
if (isNaN(parsed.port)) {
|
|
3751
3807
|
parsed.port = matches[5];
|
|
3752
3808
|
}
|
|
3809
|
+
const parseError = getParseError(parsed, matches);
|
|
3810
|
+
if (parseError !== void 0) {
|
|
3811
|
+
parsed.error = parsed.error || parseError;
|
|
3812
|
+
malformedAuthorityOrPort = true;
|
|
3813
|
+
}
|
|
3753
3814
|
if (parsed.host) {
|
|
3754
3815
|
const ipv4result = isIPv4(parsed.host);
|
|
3755
3816
|
if (ipv4result === false) {
|
|
@@ -3788,14 +3849,18 @@ var require_fast_uri = __commonJS({
|
|
|
3788
3849
|
parsed.scheme = unescape(parsed.scheme);
|
|
3789
3850
|
}
|
|
3790
3851
|
if (parsed.host !== void 0) {
|
|
3791
|
-
parsed.host = unescape(parsed.host);
|
|
3852
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
3792
3853
|
}
|
|
3793
3854
|
}
|
|
3794
3855
|
if (parsed.path) {
|
|
3795
|
-
parsed.path =
|
|
3856
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
3796
3857
|
}
|
|
3797
3858
|
if (parsed.fragment) {
|
|
3798
|
-
|
|
3859
|
+
try {
|
|
3860
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
3861
|
+
} catch {
|
|
3862
|
+
parsed.error = parsed.error || "URI malformed";
|
|
3863
|
+
}
|
|
3799
3864
|
}
|
|
3800
3865
|
}
|
|
3801
3866
|
if (schemeHandler && schemeHandler.parse) {
|
|
@@ -3804,7 +3869,29 @@ var require_fast_uri = __commonJS({
|
|
|
3804
3869
|
} else {
|
|
3805
3870
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
3806
3871
|
}
|
|
3807
|
-
return parsed;
|
|
3872
|
+
return { parsed, malformedAuthorityOrPort };
|
|
3873
|
+
}
|
|
3874
|
+
function parse3(uri, opts) {
|
|
3875
|
+
return parseWithStatus(uri, opts).parsed;
|
|
3876
|
+
}
|
|
3877
|
+
function normalizeString(uri, opts) {
|
|
3878
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
3879
|
+
}
|
|
3880
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
3881
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
3882
|
+
return {
|
|
3883
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
3884
|
+
malformedAuthorityOrPort
|
|
3885
|
+
};
|
|
3886
|
+
}
|
|
3887
|
+
function normalizeComparableURI(uri, opts) {
|
|
3888
|
+
if (typeof uri === "string") {
|
|
3889
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
3890
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
3891
|
+
}
|
|
3892
|
+
if (typeof uri === "object") {
|
|
3893
|
+
return serialize(uri, opts);
|
|
3894
|
+
}
|
|
3808
3895
|
}
|
|
3809
3896
|
var fastUri = {
|
|
3810
3897
|
SCHEMES,
|
|
@@ -34868,9 +34955,14 @@ function getGlobal() {
|
|
|
34868
34955
|
var G = getGlobal();
|
|
34869
34956
|
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
34870
34957
|
var isFormData = (thing) => {
|
|
34871
|
-
|
|
34872
|
-
|
|
34873
|
-
|
|
34958
|
+
if (!thing) return false;
|
|
34959
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
34960
|
+
const proto = getPrototypeOf(thing);
|
|
34961
|
+
if (!proto || proto === Object.prototype) return false;
|
|
34962
|
+
if (!isFunction(thing.append)) return false;
|
|
34963
|
+
const kind = kindOf(thing);
|
|
34964
|
+
return kind === "formdata" || // detect form-data instance
|
|
34965
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
|
|
34874
34966
|
};
|
|
34875
34967
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
34876
34968
|
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
@@ -34929,7 +35021,7 @@ var _global = (() => {
|
|
|
34929
35021
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
34930
35022
|
})();
|
|
34931
35023
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
34932
|
-
function merge2() {
|
|
35024
|
+
function merge2(...objs) {
|
|
34933
35025
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
34934
35026
|
const result = {};
|
|
34935
35027
|
const assignValue = (val, key) => {
|
|
@@ -34937,8 +35029,9 @@ function merge2() {
|
|
|
34937
35029
|
return;
|
|
34938
35030
|
}
|
|
34939
35031
|
const targetKey = caseless && findKey(result, key) || key;
|
|
34940
|
-
|
|
34941
|
-
|
|
35032
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
35033
|
+
if (isPlainObject3(existing) && isPlainObject3(val)) {
|
|
35034
|
+
result[targetKey] = merge2(existing, val);
|
|
34942
35035
|
} else if (isPlainObject3(val)) {
|
|
34943
35036
|
result[targetKey] = merge2({}, val);
|
|
34944
35037
|
} else if (isArray(val)) {
|
|
@@ -34947,8 +35040,8 @@ function merge2() {
|
|
|
34947
35040
|
result[targetKey] = val;
|
|
34948
35041
|
}
|
|
34949
35042
|
};
|
|
34950
|
-
for (let i = 0, l =
|
|
34951
|
-
|
|
35043
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
35044
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
34952
35045
|
}
|
|
34953
35046
|
return result;
|
|
34954
35047
|
}
|
|
@@ -34958,6 +35051,9 @@ var extend2 = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
34958
35051
|
(val, key) => {
|
|
34959
35052
|
if (thisArg && isFunction(val)) {
|
|
34960
35053
|
Object.defineProperty(a, key, {
|
|
35054
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
35055
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
35056
|
+
__proto__: null,
|
|
34961
35057
|
value: bind(val, thisArg),
|
|
34962
35058
|
writable: true,
|
|
34963
35059
|
enumerable: true,
|
|
@@ -34965,6 +35061,7 @@ var extend2 = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
34965
35061
|
});
|
|
34966
35062
|
} else {
|
|
34967
35063
|
Object.defineProperty(a, key, {
|
|
35064
|
+
__proto__: null,
|
|
34968
35065
|
value: val,
|
|
34969
35066
|
writable: true,
|
|
34970
35067
|
enumerable: true,
|
|
@@ -34985,12 +35082,14 @@ var stripBOM = (content) => {
|
|
|
34985
35082
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
34986
35083
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
34987
35084
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
35085
|
+
__proto__: null,
|
|
34988
35086
|
value: constructor,
|
|
34989
35087
|
writable: true,
|
|
34990
35088
|
enumerable: false,
|
|
34991
35089
|
configurable: true
|
|
34992
35090
|
});
|
|
34993
35091
|
Object.defineProperty(constructor, "super", {
|
|
35092
|
+
__proto__: null,
|
|
34994
35093
|
value: superConstructor.prototype
|
|
34995
35094
|
});
|
|
34996
35095
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -35079,7 +35178,7 @@ var reduceDescriptors = (obj, reducer) => {
|
|
|
35079
35178
|
};
|
|
35080
35179
|
var freezeMethods = (obj) => {
|
|
35081
35180
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
35082
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
35181
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
|
|
35083
35182
|
return false;
|
|
35084
35183
|
}
|
|
35085
35184
|
const value = obj[name];
|
|
@@ -35226,7 +35325,366 @@ var utils_default = {
|
|
|
35226
35325
|
isIterable
|
|
35227
35326
|
};
|
|
35228
35327
|
|
|
35328
|
+
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
35329
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
35330
|
+
"age",
|
|
35331
|
+
"authorization",
|
|
35332
|
+
"content-length",
|
|
35333
|
+
"content-type",
|
|
35334
|
+
"etag",
|
|
35335
|
+
"expires",
|
|
35336
|
+
"from",
|
|
35337
|
+
"host",
|
|
35338
|
+
"if-modified-since",
|
|
35339
|
+
"if-unmodified-since",
|
|
35340
|
+
"last-modified",
|
|
35341
|
+
"location",
|
|
35342
|
+
"max-forwards",
|
|
35343
|
+
"proxy-authorization",
|
|
35344
|
+
"referer",
|
|
35345
|
+
"retry-after",
|
|
35346
|
+
"user-agent"
|
|
35347
|
+
]);
|
|
35348
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
35349
|
+
const parsed = {};
|
|
35350
|
+
let key;
|
|
35351
|
+
let val;
|
|
35352
|
+
let i;
|
|
35353
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
35354
|
+
i = line.indexOf(":");
|
|
35355
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
35356
|
+
val = line.substring(i + 1).trim();
|
|
35357
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
35358
|
+
return;
|
|
35359
|
+
}
|
|
35360
|
+
if (key === "set-cookie") {
|
|
35361
|
+
if (parsed[key]) {
|
|
35362
|
+
parsed[key].push(val);
|
|
35363
|
+
} else {
|
|
35364
|
+
parsed[key] = [val];
|
|
35365
|
+
}
|
|
35366
|
+
} else {
|
|
35367
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
35368
|
+
}
|
|
35369
|
+
});
|
|
35370
|
+
return parsed;
|
|
35371
|
+
};
|
|
35372
|
+
|
|
35373
|
+
// node_modules/axios/lib/core/AxiosHeaders.js
|
|
35374
|
+
var $internals = Symbol("internals");
|
|
35375
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
35376
|
+
function trimSPorHTAB(str) {
|
|
35377
|
+
let start = 0;
|
|
35378
|
+
let end = str.length;
|
|
35379
|
+
while (start < end) {
|
|
35380
|
+
const code = str.charCodeAt(start);
|
|
35381
|
+
if (code !== 9 && code !== 32) {
|
|
35382
|
+
break;
|
|
35383
|
+
}
|
|
35384
|
+
start += 1;
|
|
35385
|
+
}
|
|
35386
|
+
while (end > start) {
|
|
35387
|
+
const code = str.charCodeAt(end - 1);
|
|
35388
|
+
if (code !== 9 && code !== 32) {
|
|
35389
|
+
break;
|
|
35390
|
+
}
|
|
35391
|
+
end -= 1;
|
|
35392
|
+
}
|
|
35393
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
35394
|
+
}
|
|
35395
|
+
function normalizeHeader(header) {
|
|
35396
|
+
return header && String(header).trim().toLowerCase();
|
|
35397
|
+
}
|
|
35398
|
+
function sanitizeHeaderValue(str) {
|
|
35399
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
35400
|
+
}
|
|
35401
|
+
function normalizeValue(value) {
|
|
35402
|
+
if (value === false || value == null) {
|
|
35403
|
+
return value;
|
|
35404
|
+
}
|
|
35405
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
35406
|
+
}
|
|
35407
|
+
function parseTokens(str) {
|
|
35408
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
35409
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
35410
|
+
let match;
|
|
35411
|
+
while (match = tokensRE.exec(str)) {
|
|
35412
|
+
tokens[match[1]] = match[2];
|
|
35413
|
+
}
|
|
35414
|
+
return tokens;
|
|
35415
|
+
}
|
|
35416
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
35417
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
35418
|
+
if (utils_default.isFunction(filter2)) {
|
|
35419
|
+
return filter2.call(this, value, header);
|
|
35420
|
+
}
|
|
35421
|
+
if (isHeaderNameFilter) {
|
|
35422
|
+
value = header;
|
|
35423
|
+
}
|
|
35424
|
+
if (!utils_default.isString(value)) return;
|
|
35425
|
+
if (utils_default.isString(filter2)) {
|
|
35426
|
+
return value.indexOf(filter2) !== -1;
|
|
35427
|
+
}
|
|
35428
|
+
if (utils_default.isRegExp(filter2)) {
|
|
35429
|
+
return filter2.test(value);
|
|
35430
|
+
}
|
|
35431
|
+
}
|
|
35432
|
+
function formatHeader(header) {
|
|
35433
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
35434
|
+
return char.toUpperCase() + str;
|
|
35435
|
+
});
|
|
35436
|
+
}
|
|
35437
|
+
function buildAccessors(obj, header) {
|
|
35438
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
35439
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
35440
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
35441
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
35442
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
35443
|
+
__proto__: null,
|
|
35444
|
+
value: function(arg1, arg2, arg3) {
|
|
35445
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
35446
|
+
},
|
|
35447
|
+
configurable: true
|
|
35448
|
+
});
|
|
35449
|
+
});
|
|
35450
|
+
}
|
|
35451
|
+
var AxiosHeaders = class {
|
|
35452
|
+
constructor(headers) {
|
|
35453
|
+
headers && this.set(headers);
|
|
35454
|
+
}
|
|
35455
|
+
set(header, valueOrRewrite, rewrite) {
|
|
35456
|
+
const self2 = this;
|
|
35457
|
+
function setHeader(_value, _header, _rewrite) {
|
|
35458
|
+
const lHeader = normalizeHeader(_header);
|
|
35459
|
+
if (!lHeader) {
|
|
35460
|
+
throw new Error("header name must be a non-empty string");
|
|
35461
|
+
}
|
|
35462
|
+
const key = utils_default.findKey(self2, lHeader);
|
|
35463
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
35464
|
+
self2[key || _header] = normalizeValue(_value);
|
|
35465
|
+
}
|
|
35466
|
+
}
|
|
35467
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
35468
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
35469
|
+
setHeaders(header, valueOrRewrite);
|
|
35470
|
+
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
35471
|
+
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
35472
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
35473
|
+
let obj = {}, dest, key;
|
|
35474
|
+
for (const entry of header) {
|
|
35475
|
+
if (!utils_default.isArray(entry)) {
|
|
35476
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
35477
|
+
}
|
|
35478
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
35479
|
+
}
|
|
35480
|
+
setHeaders(obj, valueOrRewrite);
|
|
35481
|
+
} else {
|
|
35482
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
35483
|
+
}
|
|
35484
|
+
return this;
|
|
35485
|
+
}
|
|
35486
|
+
get(header, parser) {
|
|
35487
|
+
header = normalizeHeader(header);
|
|
35488
|
+
if (header) {
|
|
35489
|
+
const key = utils_default.findKey(this, header);
|
|
35490
|
+
if (key) {
|
|
35491
|
+
const value = this[key];
|
|
35492
|
+
if (!parser) {
|
|
35493
|
+
return value;
|
|
35494
|
+
}
|
|
35495
|
+
if (parser === true) {
|
|
35496
|
+
return parseTokens(value);
|
|
35497
|
+
}
|
|
35498
|
+
if (utils_default.isFunction(parser)) {
|
|
35499
|
+
return parser.call(this, value, key);
|
|
35500
|
+
}
|
|
35501
|
+
if (utils_default.isRegExp(parser)) {
|
|
35502
|
+
return parser.exec(value);
|
|
35503
|
+
}
|
|
35504
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
35505
|
+
}
|
|
35506
|
+
}
|
|
35507
|
+
}
|
|
35508
|
+
has(header, matcher) {
|
|
35509
|
+
header = normalizeHeader(header);
|
|
35510
|
+
if (header) {
|
|
35511
|
+
const key = utils_default.findKey(this, header);
|
|
35512
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
35513
|
+
}
|
|
35514
|
+
return false;
|
|
35515
|
+
}
|
|
35516
|
+
delete(header, matcher) {
|
|
35517
|
+
const self2 = this;
|
|
35518
|
+
let deleted = false;
|
|
35519
|
+
function deleteHeader(_header) {
|
|
35520
|
+
_header = normalizeHeader(_header);
|
|
35521
|
+
if (_header) {
|
|
35522
|
+
const key = utils_default.findKey(self2, _header);
|
|
35523
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
35524
|
+
delete self2[key];
|
|
35525
|
+
deleted = true;
|
|
35526
|
+
}
|
|
35527
|
+
}
|
|
35528
|
+
}
|
|
35529
|
+
if (utils_default.isArray(header)) {
|
|
35530
|
+
header.forEach(deleteHeader);
|
|
35531
|
+
} else {
|
|
35532
|
+
deleteHeader(header);
|
|
35533
|
+
}
|
|
35534
|
+
return deleted;
|
|
35535
|
+
}
|
|
35536
|
+
clear(matcher) {
|
|
35537
|
+
const keys = Object.keys(this);
|
|
35538
|
+
let i = keys.length;
|
|
35539
|
+
let deleted = false;
|
|
35540
|
+
while (i--) {
|
|
35541
|
+
const key = keys[i];
|
|
35542
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
35543
|
+
delete this[key];
|
|
35544
|
+
deleted = true;
|
|
35545
|
+
}
|
|
35546
|
+
}
|
|
35547
|
+
return deleted;
|
|
35548
|
+
}
|
|
35549
|
+
normalize(format) {
|
|
35550
|
+
const self2 = this;
|
|
35551
|
+
const headers = {};
|
|
35552
|
+
utils_default.forEach(this, (value, header) => {
|
|
35553
|
+
const key = utils_default.findKey(headers, header);
|
|
35554
|
+
if (key) {
|
|
35555
|
+
self2[key] = normalizeValue(value);
|
|
35556
|
+
delete self2[header];
|
|
35557
|
+
return;
|
|
35558
|
+
}
|
|
35559
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
35560
|
+
if (normalized !== header) {
|
|
35561
|
+
delete self2[header];
|
|
35562
|
+
}
|
|
35563
|
+
self2[normalized] = normalizeValue(value);
|
|
35564
|
+
headers[normalized] = true;
|
|
35565
|
+
});
|
|
35566
|
+
return this;
|
|
35567
|
+
}
|
|
35568
|
+
concat(...targets) {
|
|
35569
|
+
return this.constructor.concat(this, ...targets);
|
|
35570
|
+
}
|
|
35571
|
+
toJSON(asStrings) {
|
|
35572
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
35573
|
+
utils_default.forEach(this, (value, header) => {
|
|
35574
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
35575
|
+
});
|
|
35576
|
+
return obj;
|
|
35577
|
+
}
|
|
35578
|
+
[Symbol.iterator]() {
|
|
35579
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
35580
|
+
}
|
|
35581
|
+
toString() {
|
|
35582
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
35583
|
+
}
|
|
35584
|
+
getSetCookie() {
|
|
35585
|
+
return this.get("set-cookie") || [];
|
|
35586
|
+
}
|
|
35587
|
+
get [Symbol.toStringTag]() {
|
|
35588
|
+
return "AxiosHeaders";
|
|
35589
|
+
}
|
|
35590
|
+
static from(thing) {
|
|
35591
|
+
return thing instanceof this ? thing : new this(thing);
|
|
35592
|
+
}
|
|
35593
|
+
static concat(first, ...targets) {
|
|
35594
|
+
const computed = new this(first);
|
|
35595
|
+
targets.forEach((target) => computed.set(target));
|
|
35596
|
+
return computed;
|
|
35597
|
+
}
|
|
35598
|
+
static accessor(header) {
|
|
35599
|
+
const internals = this[$internals] = this[$internals] = {
|
|
35600
|
+
accessors: {}
|
|
35601
|
+
};
|
|
35602
|
+
const accessors = internals.accessors;
|
|
35603
|
+
const prototype2 = this.prototype;
|
|
35604
|
+
function defineAccessor(_header) {
|
|
35605
|
+
const lHeader = normalizeHeader(_header);
|
|
35606
|
+
if (!accessors[lHeader]) {
|
|
35607
|
+
buildAccessors(prototype2, _header);
|
|
35608
|
+
accessors[lHeader] = true;
|
|
35609
|
+
}
|
|
35610
|
+
}
|
|
35611
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
35612
|
+
return this;
|
|
35613
|
+
}
|
|
35614
|
+
};
|
|
35615
|
+
AxiosHeaders.accessor([
|
|
35616
|
+
"Content-Type",
|
|
35617
|
+
"Content-Length",
|
|
35618
|
+
"Accept",
|
|
35619
|
+
"Accept-Encoding",
|
|
35620
|
+
"User-Agent",
|
|
35621
|
+
"Authorization"
|
|
35622
|
+
]);
|
|
35623
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
35624
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
35625
|
+
return {
|
|
35626
|
+
get: () => value,
|
|
35627
|
+
set(headerValue) {
|
|
35628
|
+
this[mapped] = headerValue;
|
|
35629
|
+
}
|
|
35630
|
+
};
|
|
35631
|
+
});
|
|
35632
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
35633
|
+
var AxiosHeaders_default = AxiosHeaders;
|
|
35634
|
+
|
|
35229
35635
|
// node_modules/axios/lib/core/AxiosError.js
|
|
35636
|
+
var REDACTED = "[REDACTED ****]";
|
|
35637
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
35638
|
+
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
35639
|
+
return true;
|
|
35640
|
+
}
|
|
35641
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
35642
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
35643
|
+
if (utils_default.hasOwnProp(prototype2, "toJSON")) {
|
|
35644
|
+
return true;
|
|
35645
|
+
}
|
|
35646
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
35647
|
+
}
|
|
35648
|
+
return false;
|
|
35649
|
+
}
|
|
35650
|
+
function redactConfig(config2, redactKeys) {
|
|
35651
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
35652
|
+
const seen = [];
|
|
35653
|
+
const visit = (source) => {
|
|
35654
|
+
if (source === null || typeof source !== "object") return source;
|
|
35655
|
+
if (utils_default.isBuffer(source)) return source;
|
|
35656
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
35657
|
+
if (source instanceof AxiosHeaders_default) {
|
|
35658
|
+
source = source.toJSON();
|
|
35659
|
+
}
|
|
35660
|
+
seen.push(source);
|
|
35661
|
+
let result;
|
|
35662
|
+
if (utils_default.isArray(source)) {
|
|
35663
|
+
result = [];
|
|
35664
|
+
source.forEach((v, i) => {
|
|
35665
|
+
const reducedValue = visit(v);
|
|
35666
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
35667
|
+
result[i] = reducedValue;
|
|
35668
|
+
}
|
|
35669
|
+
});
|
|
35670
|
+
} else {
|
|
35671
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
35672
|
+
seen.pop();
|
|
35673
|
+
return source;
|
|
35674
|
+
}
|
|
35675
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
35676
|
+
for (const [key, value] of Object.entries(source)) {
|
|
35677
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
35678
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
35679
|
+
result[key] = reducedValue;
|
|
35680
|
+
}
|
|
35681
|
+
}
|
|
35682
|
+
}
|
|
35683
|
+
seen.pop();
|
|
35684
|
+
return result;
|
|
35685
|
+
};
|
|
35686
|
+
return visit(config2);
|
|
35687
|
+
}
|
|
35230
35688
|
var AxiosError = class _AxiosError extends Error {
|
|
35231
35689
|
static from(error2, code, config2, request, response, customProps) {
|
|
35232
35690
|
const axiosError = new _AxiosError(error2.message, code || error2.code, config2, request, response);
|
|
@@ -35252,6 +35710,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
35252
35710
|
constructor(message, code, config2, request, response) {
|
|
35253
35711
|
super(message);
|
|
35254
35712
|
Object.defineProperty(this, "message", {
|
|
35713
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
35714
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
35715
|
+
__proto__: null,
|
|
35255
35716
|
value: message,
|
|
35256
35717
|
enumerable: true,
|
|
35257
35718
|
writable: true,
|
|
@@ -35268,6 +35729,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
35268
35729
|
}
|
|
35269
35730
|
}
|
|
35270
35731
|
toJSON() {
|
|
35732
|
+
const config2 = this.config;
|
|
35733
|
+
const redactKeys = config2 && utils_default.hasOwnProp(config2, "redact") ? config2.redact : void 0;
|
|
35734
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config2, redactKeys) : utils_default.toJSONObject(config2);
|
|
35271
35735
|
return {
|
|
35272
35736
|
// Standard
|
|
35273
35737
|
message: this.message,
|
|
@@ -35281,7 +35745,7 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
35281
35745
|
columnNumber: this.columnNumber,
|
|
35282
35746
|
stack: this.stack,
|
|
35283
35747
|
// Axios
|
|
35284
|
-
config:
|
|
35748
|
+
config: serializedConfig,
|
|
35285
35749
|
code: this.code,
|
|
35286
35750
|
status: this.status
|
|
35287
35751
|
};
|
|
@@ -35291,6 +35755,7 @@ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
|
35291
35755
|
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
35292
35756
|
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
35293
35757
|
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
35758
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
35294
35759
|
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
35295
35760
|
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
35296
35761
|
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
@@ -35299,6 +35764,7 @@ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
35299
35764
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
35300
35765
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
35301
35766
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
35767
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
35302
35768
|
var AxiosError_default = AxiosError;
|
|
35303
35769
|
|
|
35304
35770
|
// node_modules/axios/lib/platform/node/classes/FormData.js
|
|
@@ -35347,6 +35813,7 @@ function toFormData(obj, formData, options) {
|
|
|
35347
35813
|
const dots = options.dots;
|
|
35348
35814
|
const indexes = options.indexes;
|
|
35349
35815
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
35816
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
35350
35817
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
35351
35818
|
if (!utils_default.isFunction(visitor)) {
|
|
35352
35819
|
throw new TypeError("visitor must be a function");
|
|
@@ -35401,8 +35868,14 @@ function toFormData(obj, formData, options) {
|
|
|
35401
35868
|
convertValue,
|
|
35402
35869
|
isVisitable
|
|
35403
35870
|
});
|
|
35404
|
-
function build(value, path) {
|
|
35871
|
+
function build(value, path, depth = 0) {
|
|
35405
35872
|
if (utils_default.isUndefined(value)) return;
|
|
35873
|
+
if (depth > maxDepth) {
|
|
35874
|
+
throw new AxiosError_default(
|
|
35875
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
35876
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
35877
|
+
);
|
|
35878
|
+
}
|
|
35406
35879
|
if (stack.indexOf(value) !== -1) {
|
|
35407
35880
|
throw Error("Circular reference detected in " + path.join("."));
|
|
35408
35881
|
}
|
|
@@ -35410,7 +35883,7 @@ function toFormData(obj, formData, options) {
|
|
|
35410
35883
|
utils_default.forEach(value, function each(el, key) {
|
|
35411
35884
|
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
35412
35885
|
if (result === true) {
|
|
35413
|
-
build(el, path ? path.concat(key) : [key]);
|
|
35886
|
+
build(el, path ? path.concat(key) : [key], depth + 1);
|
|
35414
35887
|
}
|
|
35415
35888
|
});
|
|
35416
35889
|
stack.pop();
|
|
@@ -35431,10 +35904,9 @@ function encode3(str) {
|
|
|
35431
35904
|
"(": "%28",
|
|
35432
35905
|
")": "%29",
|
|
35433
35906
|
"~": "%7E",
|
|
35434
|
-
"%20": "+"
|
|
35435
|
-
"%00": "\0"
|
|
35907
|
+
"%20": "+"
|
|
35436
35908
|
};
|
|
35437
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
35909
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
35438
35910
|
return charMap[match];
|
|
35439
35911
|
});
|
|
35440
35912
|
}
|
|
@@ -35660,7 +36132,7 @@ function formDataToJSON(formData) {
|
|
|
35660
36132
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
35661
36133
|
if (isLast) {
|
|
35662
36134
|
if (utils_default.hasOwnProp(target, name)) {
|
|
35663
|
-
target[name] = [target[name], value];
|
|
36135
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
35664
36136
|
} else {
|
|
35665
36137
|
target[name] = value;
|
|
35666
36138
|
}
|
|
@@ -35687,6 +36159,7 @@ function formDataToJSON(formData) {
|
|
|
35687
36159
|
var formDataToJSON_default = formDataToJSON;
|
|
35688
36160
|
|
|
35689
36161
|
// node_modules/axios/lib/defaults/index.js
|
|
36162
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
35690
36163
|
function stringifySafely(rawValue, parser, encoder) {
|
|
35691
36164
|
if (utils_default.isString(rawValue)) {
|
|
35692
36165
|
try {
|
|
@@ -35727,15 +36200,17 @@ var defaults = {
|
|
|
35727
36200
|
}
|
|
35728
36201
|
let isFileList2;
|
|
35729
36202
|
if (isObjectPayload) {
|
|
36203
|
+
const formSerializer = own(this, "formSerializer");
|
|
35730
36204
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
35731
|
-
return toURLEncodedForm(data,
|
|
36205
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
35732
36206
|
}
|
|
35733
36207
|
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
35734
|
-
const
|
|
36208
|
+
const env = own(this, "env");
|
|
36209
|
+
const _FormData = env && env.FormData;
|
|
35735
36210
|
return toFormData_default(
|
|
35736
36211
|
isFileList2 ? { "files[]": data } : data,
|
|
35737
36212
|
_FormData && new _FormData(),
|
|
35738
|
-
|
|
36213
|
+
formSerializer
|
|
35739
36214
|
);
|
|
35740
36215
|
}
|
|
35741
36216
|
}
|
|
@@ -35748,21 +36223,22 @@ var defaults = {
|
|
|
35748
36223
|
],
|
|
35749
36224
|
transformResponse: [
|
|
35750
36225
|
function transformResponse(data) {
|
|
35751
|
-
const transitional2 = this
|
|
36226
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
35752
36227
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
35753
|
-
const
|
|
36228
|
+
const responseType = own(this, "responseType");
|
|
36229
|
+
const JSONRequested = responseType === "json";
|
|
35754
36230
|
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
35755
36231
|
return data;
|
|
35756
36232
|
}
|
|
35757
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !
|
|
36233
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
35758
36234
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
35759
36235
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
35760
36236
|
try {
|
|
35761
|
-
return JSON.parse(data, this
|
|
36237
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
35762
36238
|
} catch (e) {
|
|
35763
36239
|
if (strictJSONParsing) {
|
|
35764
36240
|
if (e.name === "SyntaxError") {
|
|
35765
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this
|
|
36241
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
35766
36242
|
}
|
|
35767
36243
|
throw e;
|
|
35768
36244
|
}
|
|
@@ -35794,317 +36270,11 @@ var defaults = {
|
|
|
35794
36270
|
}
|
|
35795
36271
|
}
|
|
35796
36272
|
};
|
|
35797
|
-
utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
36273
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
35798
36274
|
defaults.headers[method] = {};
|
|
35799
36275
|
});
|
|
35800
36276
|
var defaults_default = defaults;
|
|
35801
36277
|
|
|
35802
|
-
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
35803
|
-
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
35804
|
-
"age",
|
|
35805
|
-
"authorization",
|
|
35806
|
-
"content-length",
|
|
35807
|
-
"content-type",
|
|
35808
|
-
"etag",
|
|
35809
|
-
"expires",
|
|
35810
|
-
"from",
|
|
35811
|
-
"host",
|
|
35812
|
-
"if-modified-since",
|
|
35813
|
-
"if-unmodified-since",
|
|
35814
|
-
"last-modified",
|
|
35815
|
-
"location",
|
|
35816
|
-
"max-forwards",
|
|
35817
|
-
"proxy-authorization",
|
|
35818
|
-
"referer",
|
|
35819
|
-
"retry-after",
|
|
35820
|
-
"user-agent"
|
|
35821
|
-
]);
|
|
35822
|
-
var parseHeaders_default = (rawHeaders) => {
|
|
35823
|
-
const parsed = {};
|
|
35824
|
-
let key;
|
|
35825
|
-
let val;
|
|
35826
|
-
let i;
|
|
35827
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
35828
|
-
i = line.indexOf(":");
|
|
35829
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
35830
|
-
val = line.substring(i + 1).trim();
|
|
35831
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
35832
|
-
return;
|
|
35833
|
-
}
|
|
35834
|
-
if (key === "set-cookie") {
|
|
35835
|
-
if (parsed[key]) {
|
|
35836
|
-
parsed[key].push(val);
|
|
35837
|
-
} else {
|
|
35838
|
-
parsed[key] = [val];
|
|
35839
|
-
}
|
|
35840
|
-
} else {
|
|
35841
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
35842
|
-
}
|
|
35843
|
-
});
|
|
35844
|
-
return parsed;
|
|
35845
|
-
};
|
|
35846
|
-
|
|
35847
|
-
// node_modules/axios/lib/core/AxiosHeaders.js
|
|
35848
|
-
var $internals = Symbol("internals");
|
|
35849
|
-
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
35850
|
-
function assertValidHeaderValue(value, header) {
|
|
35851
|
-
if (value === false || value == null) {
|
|
35852
|
-
return;
|
|
35853
|
-
}
|
|
35854
|
-
if (utils_default.isArray(value)) {
|
|
35855
|
-
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
35856
|
-
return;
|
|
35857
|
-
}
|
|
35858
|
-
if (!isValidHeaderValue(String(value))) {
|
|
35859
|
-
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
35860
|
-
}
|
|
35861
|
-
}
|
|
35862
|
-
function normalizeHeader(header) {
|
|
35863
|
-
return header && String(header).trim().toLowerCase();
|
|
35864
|
-
}
|
|
35865
|
-
function stripTrailingCRLF(str) {
|
|
35866
|
-
let end = str.length;
|
|
35867
|
-
while (end > 0) {
|
|
35868
|
-
const charCode = str.charCodeAt(end - 1);
|
|
35869
|
-
if (charCode !== 10 && charCode !== 13) {
|
|
35870
|
-
break;
|
|
35871
|
-
}
|
|
35872
|
-
end -= 1;
|
|
35873
|
-
}
|
|
35874
|
-
return end === str.length ? str : str.slice(0, end);
|
|
35875
|
-
}
|
|
35876
|
-
function normalizeValue(value) {
|
|
35877
|
-
if (value === false || value == null) {
|
|
35878
|
-
return value;
|
|
35879
|
-
}
|
|
35880
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
35881
|
-
}
|
|
35882
|
-
function parseTokens(str) {
|
|
35883
|
-
const tokens = /* @__PURE__ */ Object.create(null);
|
|
35884
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
35885
|
-
let match;
|
|
35886
|
-
while (match = tokensRE.exec(str)) {
|
|
35887
|
-
tokens[match[1]] = match[2];
|
|
35888
|
-
}
|
|
35889
|
-
return tokens;
|
|
35890
|
-
}
|
|
35891
|
-
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
35892
|
-
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
35893
|
-
if (utils_default.isFunction(filter2)) {
|
|
35894
|
-
return filter2.call(this, value, header);
|
|
35895
|
-
}
|
|
35896
|
-
if (isHeaderNameFilter) {
|
|
35897
|
-
value = header;
|
|
35898
|
-
}
|
|
35899
|
-
if (!utils_default.isString(value)) return;
|
|
35900
|
-
if (utils_default.isString(filter2)) {
|
|
35901
|
-
return value.indexOf(filter2) !== -1;
|
|
35902
|
-
}
|
|
35903
|
-
if (utils_default.isRegExp(filter2)) {
|
|
35904
|
-
return filter2.test(value);
|
|
35905
|
-
}
|
|
35906
|
-
}
|
|
35907
|
-
function formatHeader(header) {
|
|
35908
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
35909
|
-
return char.toUpperCase() + str;
|
|
35910
|
-
});
|
|
35911
|
-
}
|
|
35912
|
-
function buildAccessors(obj, header) {
|
|
35913
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
35914
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
35915
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
35916
|
-
value: function(arg1, arg2, arg3) {
|
|
35917
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
35918
|
-
},
|
|
35919
|
-
configurable: true
|
|
35920
|
-
});
|
|
35921
|
-
});
|
|
35922
|
-
}
|
|
35923
|
-
var AxiosHeaders = class {
|
|
35924
|
-
constructor(headers) {
|
|
35925
|
-
headers && this.set(headers);
|
|
35926
|
-
}
|
|
35927
|
-
set(header, valueOrRewrite, rewrite) {
|
|
35928
|
-
const self2 = this;
|
|
35929
|
-
function setHeader(_value, _header, _rewrite) {
|
|
35930
|
-
const lHeader = normalizeHeader(_header);
|
|
35931
|
-
if (!lHeader) {
|
|
35932
|
-
throw new Error("header name must be a non-empty string");
|
|
35933
|
-
}
|
|
35934
|
-
const key = utils_default.findKey(self2, lHeader);
|
|
35935
|
-
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
35936
|
-
assertValidHeaderValue(_value, _header);
|
|
35937
|
-
self2[key || _header] = normalizeValue(_value);
|
|
35938
|
-
}
|
|
35939
|
-
}
|
|
35940
|
-
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
35941
|
-
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
35942
|
-
setHeaders(header, valueOrRewrite);
|
|
35943
|
-
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
35944
|
-
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
35945
|
-
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
35946
|
-
let obj = {}, dest, key;
|
|
35947
|
-
for (const entry of header) {
|
|
35948
|
-
if (!utils_default.isArray(entry)) {
|
|
35949
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
35950
|
-
}
|
|
35951
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
35952
|
-
}
|
|
35953
|
-
setHeaders(obj, valueOrRewrite);
|
|
35954
|
-
} else {
|
|
35955
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
35956
|
-
}
|
|
35957
|
-
return this;
|
|
35958
|
-
}
|
|
35959
|
-
get(header, parser) {
|
|
35960
|
-
header = normalizeHeader(header);
|
|
35961
|
-
if (header) {
|
|
35962
|
-
const key = utils_default.findKey(this, header);
|
|
35963
|
-
if (key) {
|
|
35964
|
-
const value = this[key];
|
|
35965
|
-
if (!parser) {
|
|
35966
|
-
return value;
|
|
35967
|
-
}
|
|
35968
|
-
if (parser === true) {
|
|
35969
|
-
return parseTokens(value);
|
|
35970
|
-
}
|
|
35971
|
-
if (utils_default.isFunction(parser)) {
|
|
35972
|
-
return parser.call(this, value, key);
|
|
35973
|
-
}
|
|
35974
|
-
if (utils_default.isRegExp(parser)) {
|
|
35975
|
-
return parser.exec(value);
|
|
35976
|
-
}
|
|
35977
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
35978
|
-
}
|
|
35979
|
-
}
|
|
35980
|
-
}
|
|
35981
|
-
has(header, matcher) {
|
|
35982
|
-
header = normalizeHeader(header);
|
|
35983
|
-
if (header) {
|
|
35984
|
-
const key = utils_default.findKey(this, header);
|
|
35985
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
35986
|
-
}
|
|
35987
|
-
return false;
|
|
35988
|
-
}
|
|
35989
|
-
delete(header, matcher) {
|
|
35990
|
-
const self2 = this;
|
|
35991
|
-
let deleted = false;
|
|
35992
|
-
function deleteHeader(_header) {
|
|
35993
|
-
_header = normalizeHeader(_header);
|
|
35994
|
-
if (_header) {
|
|
35995
|
-
const key = utils_default.findKey(self2, _header);
|
|
35996
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
35997
|
-
delete self2[key];
|
|
35998
|
-
deleted = true;
|
|
35999
|
-
}
|
|
36000
|
-
}
|
|
36001
|
-
}
|
|
36002
|
-
if (utils_default.isArray(header)) {
|
|
36003
|
-
header.forEach(deleteHeader);
|
|
36004
|
-
} else {
|
|
36005
|
-
deleteHeader(header);
|
|
36006
|
-
}
|
|
36007
|
-
return deleted;
|
|
36008
|
-
}
|
|
36009
|
-
clear(matcher) {
|
|
36010
|
-
const keys = Object.keys(this);
|
|
36011
|
-
let i = keys.length;
|
|
36012
|
-
let deleted = false;
|
|
36013
|
-
while (i--) {
|
|
36014
|
-
const key = keys[i];
|
|
36015
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
36016
|
-
delete this[key];
|
|
36017
|
-
deleted = true;
|
|
36018
|
-
}
|
|
36019
|
-
}
|
|
36020
|
-
return deleted;
|
|
36021
|
-
}
|
|
36022
|
-
normalize(format) {
|
|
36023
|
-
const self2 = this;
|
|
36024
|
-
const headers = {};
|
|
36025
|
-
utils_default.forEach(this, (value, header) => {
|
|
36026
|
-
const key = utils_default.findKey(headers, header);
|
|
36027
|
-
if (key) {
|
|
36028
|
-
self2[key] = normalizeValue(value);
|
|
36029
|
-
delete self2[header];
|
|
36030
|
-
return;
|
|
36031
|
-
}
|
|
36032
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
36033
|
-
if (normalized !== header) {
|
|
36034
|
-
delete self2[header];
|
|
36035
|
-
}
|
|
36036
|
-
self2[normalized] = normalizeValue(value);
|
|
36037
|
-
headers[normalized] = true;
|
|
36038
|
-
});
|
|
36039
|
-
return this;
|
|
36040
|
-
}
|
|
36041
|
-
concat(...targets) {
|
|
36042
|
-
return this.constructor.concat(this, ...targets);
|
|
36043
|
-
}
|
|
36044
|
-
toJSON(asStrings) {
|
|
36045
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
36046
|
-
utils_default.forEach(this, (value, header) => {
|
|
36047
|
-
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
36048
|
-
});
|
|
36049
|
-
return obj;
|
|
36050
|
-
}
|
|
36051
|
-
[Symbol.iterator]() {
|
|
36052
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
36053
|
-
}
|
|
36054
|
-
toString() {
|
|
36055
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
36056
|
-
}
|
|
36057
|
-
getSetCookie() {
|
|
36058
|
-
return this.get("set-cookie") || [];
|
|
36059
|
-
}
|
|
36060
|
-
get [Symbol.toStringTag]() {
|
|
36061
|
-
return "AxiosHeaders";
|
|
36062
|
-
}
|
|
36063
|
-
static from(thing) {
|
|
36064
|
-
return thing instanceof this ? thing : new this(thing);
|
|
36065
|
-
}
|
|
36066
|
-
static concat(first, ...targets) {
|
|
36067
|
-
const computed = new this(first);
|
|
36068
|
-
targets.forEach((target) => computed.set(target));
|
|
36069
|
-
return computed;
|
|
36070
|
-
}
|
|
36071
|
-
static accessor(header) {
|
|
36072
|
-
const internals = this[$internals] = this[$internals] = {
|
|
36073
|
-
accessors: {}
|
|
36074
|
-
};
|
|
36075
|
-
const accessors = internals.accessors;
|
|
36076
|
-
const prototype2 = this.prototype;
|
|
36077
|
-
function defineAccessor(_header) {
|
|
36078
|
-
const lHeader = normalizeHeader(_header);
|
|
36079
|
-
if (!accessors[lHeader]) {
|
|
36080
|
-
buildAccessors(prototype2, _header);
|
|
36081
|
-
accessors[lHeader] = true;
|
|
36082
|
-
}
|
|
36083
|
-
}
|
|
36084
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
36085
|
-
return this;
|
|
36086
|
-
}
|
|
36087
|
-
};
|
|
36088
|
-
AxiosHeaders.accessor([
|
|
36089
|
-
"Content-Type",
|
|
36090
|
-
"Content-Length",
|
|
36091
|
-
"Accept",
|
|
36092
|
-
"Accept-Encoding",
|
|
36093
|
-
"User-Agent",
|
|
36094
|
-
"Authorization"
|
|
36095
|
-
]);
|
|
36096
|
-
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
36097
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
36098
|
-
return {
|
|
36099
|
-
get: () => value,
|
|
36100
|
-
set(headerValue) {
|
|
36101
|
-
this[mapped] = headerValue;
|
|
36102
|
-
}
|
|
36103
|
-
};
|
|
36104
|
-
});
|
|
36105
|
-
utils_default.freezeMethods(AxiosHeaders);
|
|
36106
|
-
var AxiosHeaders_default = AxiosHeaders;
|
|
36107
|
-
|
|
36108
36278
|
// node_modules/axios/lib/core/transformData.js
|
|
36109
36279
|
function transformData(fns, response) {
|
|
36110
36280
|
const config2 = this || defaults_default;
|
|
@@ -36148,15 +36318,13 @@ function settle(resolve, reject, response) {
|
|
|
36148
36318
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
36149
36319
|
resolve(response);
|
|
36150
36320
|
} else {
|
|
36151
|
-
reject(
|
|
36152
|
-
|
|
36153
|
-
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
|
|
36157
|
-
|
|
36158
|
-
)
|
|
36159
|
-
);
|
|
36321
|
+
reject(new AxiosError_default(
|
|
36322
|
+
"Request failed with status code " + response.status,
|
|
36323
|
+
response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
|
|
36324
|
+
response.config,
|
|
36325
|
+
response.request,
|
|
36326
|
+
response
|
|
36327
|
+
));
|
|
36160
36328
|
}
|
|
36161
36329
|
}
|
|
36162
36330
|
|
|
@@ -36176,7 +36344,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
36176
36344
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
36177
36345
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
36178
36346
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
36179
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
36347
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
36180
36348
|
return combineURLs(baseURL, requestedURL);
|
|
36181
36349
|
}
|
|
36182
36350
|
return requestedURL;
|
|
@@ -36254,15 +36422,16 @@ var import_http = __toESM(require("http"), 1);
|
|
|
36254
36422
|
var import_https = __toESM(require("https"), 1);
|
|
36255
36423
|
var import_http2 = __toESM(require("http2"), 1);
|
|
36256
36424
|
var import_util7 = __toESM(require("util"), 1);
|
|
36425
|
+
var import_path = require("path");
|
|
36257
36426
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
36258
36427
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
36259
36428
|
|
|
36260
36429
|
// node_modules/axios/lib/env/data.js
|
|
36261
|
-
var VERSION = "1.
|
|
36430
|
+
var VERSION = "1.16.0";
|
|
36262
36431
|
|
|
36263
36432
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
36264
36433
|
function parseProtocol(url3) {
|
|
36265
|
-
const match = /^([-+\w]{1,25})(
|
|
36434
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url3);
|
|
36266
36435
|
return match && match[1] || "";
|
|
36267
36436
|
}
|
|
36268
36437
|
|
|
@@ -36457,7 +36626,8 @@ var FormDataPart = class {
|
|
|
36457
36626
|
if (isStringValue) {
|
|
36458
36627
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
36459
36628
|
} else {
|
|
36460
|
-
|
|
36629
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
36630
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
36461
36631
|
}
|
|
36462
36632
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
36463
36633
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -36496,7 +36666,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
36496
36666
|
throw TypeError("FormData instance required");
|
|
36497
36667
|
}
|
|
36498
36668
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
36499
|
-
throw Error("boundary must be
|
|
36669
|
+
throw Error("boundary must be 1-70 characters long");
|
|
36500
36670
|
}
|
|
36501
36671
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
36502
36672
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -36565,6 +36735,37 @@ var callbackify = (fn, reducer) => {
|
|
|
36565
36735
|
var callbackify_default = callbackify;
|
|
36566
36736
|
|
|
36567
36737
|
// node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
36738
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
36739
|
+
var isIPv4Loopback = (host) => {
|
|
36740
|
+
const parts = host.split(".");
|
|
36741
|
+
if (parts.length !== 4) return false;
|
|
36742
|
+
if (parts[0] !== "127") return false;
|
|
36743
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
36744
|
+
};
|
|
36745
|
+
var isIPv6Loopback = (host) => {
|
|
36746
|
+
if (host === "::1") return true;
|
|
36747
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
36748
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
36749
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
36750
|
+
if (v4MappedHex) {
|
|
36751
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
36752
|
+
return high >= 32512 && high <= 32767;
|
|
36753
|
+
}
|
|
36754
|
+
const groups = host.split(":");
|
|
36755
|
+
if (groups.length === 8) {
|
|
36756
|
+
for (let i = 0; i < 7; i++) {
|
|
36757
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
36758
|
+
}
|
|
36759
|
+
return /^0*1$/.test(groups[7]);
|
|
36760
|
+
}
|
|
36761
|
+
return false;
|
|
36762
|
+
};
|
|
36763
|
+
var isLoopback = (host) => {
|
|
36764
|
+
if (!host) return false;
|
|
36765
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
36766
|
+
if (isIPv4Loopback(host)) return true;
|
|
36767
|
+
return isIPv6Loopback(host);
|
|
36768
|
+
};
|
|
36568
36769
|
var DEFAULT_PORTS2 = {
|
|
36569
36770
|
http: 80,
|
|
36570
36771
|
https: 443,
|
|
@@ -36594,6 +36795,20 @@ var parseNoProxyEntry = (entry) => {
|
|
|
36594
36795
|
}
|
|
36595
36796
|
return [entryHost, entryPort];
|
|
36596
36797
|
};
|
|
36798
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
36799
|
+
var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
36800
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
36801
|
+
if (typeof host !== "string" || host.indexOf(":") === -1) return host;
|
|
36802
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
36803
|
+
if (dotted) return dotted[1];
|
|
36804
|
+
const hex3 = host.match(IPV4_MAPPED_HEX_RE);
|
|
36805
|
+
if (hex3) {
|
|
36806
|
+
const high = parseInt(hex3[1], 16);
|
|
36807
|
+
const low = parseInt(hex3[2], 16);
|
|
36808
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
36809
|
+
}
|
|
36810
|
+
return host;
|
|
36811
|
+
};
|
|
36597
36812
|
var normalizeNoProxyHost = (hostname3) => {
|
|
36598
36813
|
if (!hostname3) {
|
|
36599
36814
|
return hostname3;
|
|
@@ -36601,7 +36816,7 @@ var normalizeNoProxyHost = (hostname3) => {
|
|
|
36601
36816
|
if (hostname3.charAt(0) === "[" && hostname3.charAt(hostname3.length - 1) === "]") {
|
|
36602
36817
|
hostname3 = hostname3.slice(1, -1);
|
|
36603
36818
|
}
|
|
36604
|
-
return hostname3.replace(/\.+$/, "");
|
|
36819
|
+
return unmapIPv4MappedIPv6(hostname3.replace(/\.+$/, ""));
|
|
36605
36820
|
};
|
|
36606
36821
|
function shouldBypassProxy(location) {
|
|
36607
36822
|
let parsed;
|
|
@@ -36637,7 +36852,7 @@ function shouldBypassProxy(location) {
|
|
|
36637
36852
|
if (entryHost.charAt(0) === ".") {
|
|
36638
36853
|
return hostname3.endsWith(entryHost);
|
|
36639
36854
|
}
|
|
36640
|
-
return hostname3 === entryHost;
|
|
36855
|
+
return hostname3 === entryHost || isLoopback(hostname3) && isLoopback(entryHost);
|
|
36641
36856
|
});
|
|
36642
36857
|
}
|
|
36643
36858
|
|
|
@@ -36717,19 +36932,19 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
36717
36932
|
let bytesNotified = 0;
|
|
36718
36933
|
const _speedometer = speedometer_default(50, 250);
|
|
36719
36934
|
return throttle_default((e) => {
|
|
36720
|
-
const
|
|
36935
|
+
const rawLoaded = e.loaded;
|
|
36721
36936
|
const total = e.lengthComputable ? e.total : void 0;
|
|
36722
|
-
const
|
|
36937
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
36938
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
36723
36939
|
const rate = _speedometer(progressBytes);
|
|
36724
|
-
|
|
36725
|
-
bytesNotified = loaded;
|
|
36940
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
36726
36941
|
const data = {
|
|
36727
36942
|
loaded,
|
|
36728
36943
|
total,
|
|
36729
36944
|
progress: total ? loaded / total : void 0,
|
|
36730
36945
|
bytes: progressBytes,
|
|
36731
36946
|
rate: rate ? rate : void 0,
|
|
36732
|
-
estimated: rate && total
|
|
36947
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
36733
36948
|
event: e,
|
|
36734
36949
|
lengthComputable: total != null,
|
|
36735
36950
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -36795,10 +37010,32 @@ function estimateDataURLDecodedBytes(url3) {
|
|
|
36795
37010
|
}
|
|
36796
37011
|
}
|
|
36797
37012
|
const groups = Math.floor(effectiveLen / 4);
|
|
36798
|
-
const
|
|
36799
|
-
return
|
|
37013
|
+
const bytes2 = groups * 3 - (pad || 0);
|
|
37014
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
37015
|
+
}
|
|
37016
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
37017
|
+
return Buffer.byteLength(body, "utf8");
|
|
37018
|
+
}
|
|
37019
|
+
let bytes = 0;
|
|
37020
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
37021
|
+
const c = body.charCodeAt(i);
|
|
37022
|
+
if (c < 128) {
|
|
37023
|
+
bytes += 1;
|
|
37024
|
+
} else if (c < 2048) {
|
|
37025
|
+
bytes += 2;
|
|
37026
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
37027
|
+
const next = body.charCodeAt(i + 1);
|
|
37028
|
+
if (next >= 56320 && next <= 57343) {
|
|
37029
|
+
bytes += 4;
|
|
37030
|
+
i++;
|
|
37031
|
+
} else {
|
|
37032
|
+
bytes += 3;
|
|
37033
|
+
}
|
|
37034
|
+
} else {
|
|
37035
|
+
bytes += 3;
|
|
37036
|
+
}
|
|
36800
37037
|
}
|
|
36801
|
-
return
|
|
37038
|
+
return bytes;
|
|
36802
37039
|
}
|
|
36803
37040
|
|
|
36804
37041
|
// node_modules/axios/lib/adapters/http.js
|
|
@@ -36813,9 +37050,33 @@ var brotliOptions = {
|
|
|
36813
37050
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
36814
37051
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
36815
37052
|
var isHttps = /https:?/;
|
|
37053
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
37054
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
37055
|
+
if (policy !== "content-only") {
|
|
37056
|
+
headers.set(formHeaders);
|
|
37057
|
+
return;
|
|
37058
|
+
}
|
|
37059
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
37060
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
37061
|
+
headers.set(key, val);
|
|
37062
|
+
}
|
|
37063
|
+
});
|
|
37064
|
+
}
|
|
37065
|
+
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
37066
|
+
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
36816
37067
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
36817
37068
|
return protocol + ":";
|
|
36818
37069
|
});
|
|
37070
|
+
var decodeURIComponentSafe = (value) => {
|
|
37071
|
+
if (!utils_default.isString(value)) {
|
|
37072
|
+
return value;
|
|
37073
|
+
}
|
|
37074
|
+
try {
|
|
37075
|
+
return decodeURIComponent(value);
|
|
37076
|
+
} catch (error2) {
|
|
37077
|
+
return value;
|
|
37078
|
+
}
|
|
37079
|
+
};
|
|
36819
37080
|
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
36820
37081
|
stream4.on("end", flush).on("error", flush);
|
|
36821
37082
|
return throttled;
|
|
@@ -36893,15 +37154,15 @@ var Http2Sessions = class {
|
|
|
36893
37154
|
}
|
|
36894
37155
|
};
|
|
36895
37156
|
var http2Sessions = new Http2Sessions();
|
|
36896
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
37157
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
36897
37158
|
if (options.beforeRedirects.proxy) {
|
|
36898
37159
|
options.beforeRedirects.proxy(options);
|
|
36899
37160
|
}
|
|
36900
37161
|
if (options.beforeRedirects.config) {
|
|
36901
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
37162
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
36902
37163
|
}
|
|
36903
37164
|
}
|
|
36904
|
-
function setProxy(options, configProxy, location) {
|
|
37165
|
+
function setProxy(options, configProxy, location, isRedirect) {
|
|
36905
37166
|
let proxy = configProxy;
|
|
36906
37167
|
if (!proxy && proxy !== false) {
|
|
36907
37168
|
const proxyUrl = getProxyForUrl(location);
|
|
@@ -36911,32 +37172,57 @@ function setProxy(options, configProxy, location) {
|
|
|
36911
37172
|
}
|
|
36912
37173
|
}
|
|
36913
37174
|
}
|
|
36914
|
-
if (
|
|
36915
|
-
|
|
36916
|
-
|
|
37175
|
+
if (isRedirect && options.headers) {
|
|
37176
|
+
for (const name of Object.keys(options.headers)) {
|
|
37177
|
+
if (name.toLowerCase() === "proxy-authorization") {
|
|
37178
|
+
delete options.headers[name];
|
|
37179
|
+
}
|
|
36917
37180
|
}
|
|
36918
|
-
|
|
36919
|
-
|
|
37181
|
+
}
|
|
37182
|
+
if (proxy) {
|
|
37183
|
+
const isProxyURL = proxy instanceof URL;
|
|
37184
|
+
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
37185
|
+
const proxyUsername = readProxyField("username");
|
|
37186
|
+
const proxyPassword = readProxyField("password");
|
|
37187
|
+
let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
37188
|
+
if (proxyUsername) {
|
|
37189
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
37190
|
+
}
|
|
37191
|
+
if (proxyAuth) {
|
|
37192
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
37193
|
+
const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
37194
|
+
const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
37195
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
36920
37196
|
if (validProxyAuth) {
|
|
36921
|
-
|
|
36922
|
-
} else if (
|
|
37197
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
37198
|
+
} else if (authIsObject) {
|
|
36923
37199
|
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
36924
37200
|
}
|
|
36925
|
-
const base643 = Buffer.from(
|
|
37201
|
+
const base643 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
36926
37202
|
options.headers["Proxy-Authorization"] = "Basic " + base643;
|
|
36927
37203
|
}
|
|
36928
|
-
|
|
36929
|
-
const
|
|
37204
|
+
let hasUserHostHeader = false;
|
|
37205
|
+
for (const name of Object.keys(options.headers)) {
|
|
37206
|
+
if (name.toLowerCase() === "host") {
|
|
37207
|
+
hasUserHostHeader = true;
|
|
37208
|
+
break;
|
|
37209
|
+
}
|
|
37210
|
+
}
|
|
37211
|
+
if (!hasUserHostHeader) {
|
|
37212
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
37213
|
+
}
|
|
37214
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
36930
37215
|
options.hostname = proxyHost;
|
|
36931
37216
|
options.host = proxyHost;
|
|
36932
|
-
options.port =
|
|
37217
|
+
options.port = readProxyField("port");
|
|
36933
37218
|
options.path = location;
|
|
36934
|
-
|
|
36935
|
-
|
|
37219
|
+
const proxyProtocol = readProxyField("protocol");
|
|
37220
|
+
if (proxyProtocol) {
|
|
37221
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
36936
37222
|
}
|
|
36937
37223
|
}
|
|
36938
37224
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
36939
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
37225
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true);
|
|
36940
37226
|
};
|
|
36941
37227
|
}
|
|
36942
37228
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -36999,12 +37285,20 @@ var http2Transport = {
|
|
|
36999
37285
|
};
|
|
37000
37286
|
var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
37001
37287
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
37002
|
-
|
|
37003
|
-
|
|
37288
|
+
const own2 = (key) => utils_default.hasOwnProp(config2, key) ? config2[key] : void 0;
|
|
37289
|
+
let data = own2("data");
|
|
37290
|
+
let lookup = own2("lookup");
|
|
37291
|
+
let family = own2("family");
|
|
37292
|
+
let httpVersion = own2("httpVersion");
|
|
37293
|
+
if (httpVersion === void 0) httpVersion = 1;
|
|
37294
|
+
let http2Options = own2("http2Options");
|
|
37295
|
+
const responseType = own2("responseType");
|
|
37296
|
+
const responseEncoding = own2("responseEncoding");
|
|
37004
37297
|
const method = config2.method.toUpperCase();
|
|
37005
37298
|
let isDone;
|
|
37006
37299
|
let rejected = false;
|
|
37007
37300
|
let req;
|
|
37301
|
+
let connectPhaseTimer;
|
|
37008
37302
|
httpVersion = +httpVersion;
|
|
37009
37303
|
if (Number.isNaN(httpVersion)) {
|
|
37010
37304
|
throw TypeError(`Invalid protocol version: '${config2.httpVersion}' is not a number`);
|
|
@@ -37036,8 +37330,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37036
37330
|
console.warn("emit error", err);
|
|
37037
37331
|
}
|
|
37038
37332
|
}
|
|
37333
|
+
function clearConnectPhaseTimer() {
|
|
37334
|
+
if (connectPhaseTimer) {
|
|
37335
|
+
clearTimeout(connectPhaseTimer);
|
|
37336
|
+
connectPhaseTimer = null;
|
|
37337
|
+
}
|
|
37338
|
+
}
|
|
37339
|
+
function createTimeoutError() {
|
|
37340
|
+
let timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
|
|
37341
|
+
const transitional2 = config2.transitional || transitional_default;
|
|
37342
|
+
if (config2.timeoutErrorMessage) {
|
|
37343
|
+
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
37344
|
+
}
|
|
37345
|
+
return new AxiosError_default(
|
|
37346
|
+
timeoutErrorMessage,
|
|
37347
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
37348
|
+
config2,
|
|
37349
|
+
req
|
|
37350
|
+
);
|
|
37351
|
+
}
|
|
37039
37352
|
abortEmitter.once("abort", reject);
|
|
37040
37353
|
const onFinished = () => {
|
|
37354
|
+
clearConnectPhaseTimer();
|
|
37041
37355
|
if (config2.cancelToken) {
|
|
37042
37356
|
config2.cancelToken.unsubscribe(abort);
|
|
37043
37357
|
}
|
|
@@ -37054,6 +37368,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37054
37368
|
}
|
|
37055
37369
|
onDone((response, isRejected) => {
|
|
37056
37370
|
isDone = true;
|
|
37371
|
+
clearConnectPhaseTimer();
|
|
37057
37372
|
if (isRejected) {
|
|
37058
37373
|
rejected = true;
|
|
37059
37374
|
onFinished();
|
|
@@ -37141,8 +37456,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37141
37456
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
37142
37457
|
}
|
|
37143
37458
|
);
|
|
37144
|
-
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
37145
|
-
headers
|
|
37459
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
37460
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
37146
37461
|
if (!headers.hasContentLength()) {
|
|
37147
37462
|
try {
|
|
37148
37463
|
const knownLength = await import_util7.default.promisify(data.getLength).call(data);
|
|
@@ -37212,14 +37527,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37212
37527
|
);
|
|
37213
37528
|
}
|
|
37214
37529
|
let auth = void 0;
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
const
|
|
37530
|
+
const configAuth = own2("auth");
|
|
37531
|
+
if (configAuth) {
|
|
37532
|
+
const username = configAuth.username || "";
|
|
37533
|
+
const password = configAuth.password || "";
|
|
37218
37534
|
auth = username + ":" + password;
|
|
37219
37535
|
}
|
|
37220
37536
|
if (!auth && parsed.username) {
|
|
37221
|
-
const urlUsername = parsed.username;
|
|
37222
|
-
const urlPassword = parsed.password;
|
|
37537
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
37538
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
37223
37539
|
auth = urlUsername + ":" + urlPassword;
|
|
37224
37540
|
}
|
|
37225
37541
|
auth && headers.delete("authorization");
|
|
@@ -37242,7 +37558,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37242
37558
|
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
37243
37559
|
false
|
|
37244
37560
|
);
|
|
37245
|
-
const options = {
|
|
37561
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
37246
37562
|
path,
|
|
37247
37563
|
method,
|
|
37248
37564
|
headers: headers.toJSON(),
|
|
@@ -37251,11 +37567,32 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37251
37567
|
protocol,
|
|
37252
37568
|
family,
|
|
37253
37569
|
beforeRedirect: dispatchBeforeRedirect,
|
|
37254
|
-
beforeRedirects:
|
|
37570
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
37255
37571
|
http2Options
|
|
37256
|
-
};
|
|
37572
|
+
});
|
|
37257
37573
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
37258
37574
|
if (config2.socketPath) {
|
|
37575
|
+
if (typeof config2.socketPath !== "string") {
|
|
37576
|
+
return reject(
|
|
37577
|
+
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config2)
|
|
37578
|
+
);
|
|
37579
|
+
}
|
|
37580
|
+
if (config2.allowedSocketPaths != null) {
|
|
37581
|
+
const allowed = Array.isArray(config2.allowedSocketPaths) ? config2.allowedSocketPaths : [config2.allowedSocketPaths];
|
|
37582
|
+
const resolvedSocket = (0, import_path.resolve)(config2.socketPath);
|
|
37583
|
+
const isAllowed = allowed.some(
|
|
37584
|
+
(entry) => typeof entry === "string" && (0, import_path.resolve)(entry) === resolvedSocket
|
|
37585
|
+
);
|
|
37586
|
+
if (!isAllowed) {
|
|
37587
|
+
return reject(
|
|
37588
|
+
new AxiosError_default(
|
|
37589
|
+
`socketPath "${config2.socketPath}" is not permitted by allowedSocketPaths`,
|
|
37590
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
37591
|
+
config2
|
|
37592
|
+
)
|
|
37593
|
+
);
|
|
37594
|
+
}
|
|
37595
|
+
}
|
|
37259
37596
|
options.socketPath = config2.socketPath;
|
|
37260
37597
|
} else {
|
|
37261
37598
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
@@ -37267,21 +37604,25 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37267
37604
|
);
|
|
37268
37605
|
}
|
|
37269
37606
|
let transport;
|
|
37607
|
+
let isNativeTransport = false;
|
|
37270
37608
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
37271
37609
|
options.agent = isHttpsRequest ? config2.httpsAgent : config2.httpAgent;
|
|
37272
37610
|
if (isHttp2) {
|
|
37273
37611
|
transport = http2Transport;
|
|
37274
37612
|
} else {
|
|
37275
|
-
|
|
37276
|
-
|
|
37613
|
+
const configTransport = own2("transport");
|
|
37614
|
+
if (configTransport) {
|
|
37615
|
+
transport = configTransport;
|
|
37277
37616
|
} else if (config2.maxRedirects === 0) {
|
|
37278
37617
|
transport = isHttpsRequest ? import_https.default : import_http.default;
|
|
37618
|
+
isNativeTransport = true;
|
|
37279
37619
|
} else {
|
|
37280
37620
|
if (config2.maxRedirects) {
|
|
37281
37621
|
options.maxRedirects = config2.maxRedirects;
|
|
37282
37622
|
}
|
|
37283
|
-
|
|
37284
|
-
|
|
37623
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
37624
|
+
if (configBeforeRedirect) {
|
|
37625
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
37285
37626
|
}
|
|
37286
37627
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
37287
37628
|
}
|
|
@@ -37291,10 +37632,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37291
37632
|
} else {
|
|
37292
37633
|
options.maxBodyLength = Infinity;
|
|
37293
37634
|
}
|
|
37294
|
-
|
|
37295
|
-
options.insecureHTTPParser = config2.insecureHTTPParser;
|
|
37296
|
-
}
|
|
37635
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
37297
37636
|
req = transport.request(options, function handleResponse(res) {
|
|
37637
|
+
clearConnectPhaseTimer();
|
|
37298
37638
|
if (req.destroyed) return;
|
|
37299
37639
|
const streams = [res];
|
|
37300
37640
|
const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
|
|
@@ -37350,6 +37690,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37350
37690
|
request: lastRequest
|
|
37351
37691
|
};
|
|
37352
37692
|
if (responseType === "stream") {
|
|
37693
|
+
if (config2.maxContentLength > -1) {
|
|
37694
|
+
const limit = config2.maxContentLength;
|
|
37695
|
+
const source = responseStream;
|
|
37696
|
+
async function* enforceMaxContentLength() {
|
|
37697
|
+
let totalResponseBytes = 0;
|
|
37698
|
+
for await (const chunk of source) {
|
|
37699
|
+
totalResponseBytes += chunk.length;
|
|
37700
|
+
if (totalResponseBytes > limit) {
|
|
37701
|
+
throw new AxiosError_default(
|
|
37702
|
+
"maxContentLength size of " + limit + " exceeded",
|
|
37703
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
37704
|
+
config2,
|
|
37705
|
+
lastRequest
|
|
37706
|
+
);
|
|
37707
|
+
}
|
|
37708
|
+
yield chunk;
|
|
37709
|
+
}
|
|
37710
|
+
}
|
|
37711
|
+
responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
|
|
37712
|
+
objectMode: false
|
|
37713
|
+
});
|
|
37714
|
+
}
|
|
37353
37715
|
response.data = responseStream;
|
|
37354
37716
|
settle(resolve, reject, response);
|
|
37355
37717
|
} else {
|
|
@@ -37379,14 +37741,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37379
37741
|
"stream has been aborted",
|
|
37380
37742
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
37381
37743
|
config2,
|
|
37382
|
-
lastRequest
|
|
37744
|
+
lastRequest,
|
|
37745
|
+
response
|
|
37383
37746
|
);
|
|
37384
37747
|
responseStream.destroy(err);
|
|
37385
37748
|
reject(err);
|
|
37386
37749
|
});
|
|
37387
37750
|
responseStream.on("error", function handleStreamError(err) {
|
|
37388
|
-
if (
|
|
37389
|
-
reject(AxiosError_default.from(err, null, config2, lastRequest));
|
|
37751
|
+
if (rejected) return;
|
|
37752
|
+
reject(AxiosError_default.from(err, null, config2, lastRequest, response));
|
|
37390
37753
|
});
|
|
37391
37754
|
responseStream.on("end", function handleStreamEnd() {
|
|
37392
37755
|
try {
|
|
@@ -37421,8 +37784,29 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37421
37784
|
req.on("error", function handleRequestError(err) {
|
|
37422
37785
|
reject(AxiosError_default.from(err, null, config2, req));
|
|
37423
37786
|
});
|
|
37787
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
37424
37788
|
req.on("socket", function handleRequestSocket(socket) {
|
|
37425
37789
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
37790
|
+
if (!socket[kAxiosSocketListener]) {
|
|
37791
|
+
socket.on("error", function handleSocketError(err) {
|
|
37792
|
+
const current = socket[kAxiosCurrentReq];
|
|
37793
|
+
if (current && !current.destroyed) {
|
|
37794
|
+
current.destroy(err);
|
|
37795
|
+
}
|
|
37796
|
+
});
|
|
37797
|
+
socket[kAxiosSocketListener] = true;
|
|
37798
|
+
}
|
|
37799
|
+
socket[kAxiosCurrentReq] = req;
|
|
37800
|
+
boundSockets.add(socket);
|
|
37801
|
+
});
|
|
37802
|
+
req.once("close", function clearCurrentReq() {
|
|
37803
|
+
clearConnectPhaseTimer();
|
|
37804
|
+
for (const socket of boundSockets) {
|
|
37805
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
37806
|
+
socket[kAxiosCurrentReq] = null;
|
|
37807
|
+
}
|
|
37808
|
+
}
|
|
37809
|
+
boundSockets.clear();
|
|
37426
37810
|
});
|
|
37427
37811
|
if (config2.timeout) {
|
|
37428
37812
|
const timeout = parseInt(config2.timeout, 10);
|
|
@@ -37437,22 +37821,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37437
37821
|
);
|
|
37438
37822
|
return;
|
|
37439
37823
|
}
|
|
37440
|
-
|
|
37824
|
+
const handleTimeout = function handleTimeout2() {
|
|
37441
37825
|
if (isDone) return;
|
|
37442
|
-
|
|
37443
|
-
|
|
37444
|
-
|
|
37445
|
-
|
|
37446
|
-
|
|
37447
|
-
|
|
37448
|
-
new AxiosError_default(
|
|
37449
|
-
timeoutErrorMessage,
|
|
37450
|
-
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
37451
|
-
config2,
|
|
37452
|
-
req
|
|
37453
|
-
)
|
|
37454
|
-
);
|
|
37455
|
-
});
|
|
37826
|
+
abort(createTimeoutError());
|
|
37827
|
+
};
|
|
37828
|
+
if (isNativeTransport && timeout > 0) {
|
|
37829
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
37830
|
+
}
|
|
37831
|
+
req.setTimeout(timeout, handleTimeout);
|
|
37456
37832
|
} else {
|
|
37457
37833
|
req.setTimeout(0);
|
|
37458
37834
|
}
|
|
@@ -37471,7 +37847,37 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
37471
37847
|
abort(new CanceledError_default("Request stream has been aborted", config2, req));
|
|
37472
37848
|
}
|
|
37473
37849
|
});
|
|
37474
|
-
data
|
|
37850
|
+
let uploadStream = data;
|
|
37851
|
+
if (config2.maxBodyLength > -1 && config2.maxRedirects === 0) {
|
|
37852
|
+
const limit = config2.maxBodyLength;
|
|
37853
|
+
let bytesSent = 0;
|
|
37854
|
+
uploadStream = import_stream4.default.pipeline(
|
|
37855
|
+
[
|
|
37856
|
+
data,
|
|
37857
|
+
new import_stream4.default.Transform({
|
|
37858
|
+
transform(chunk, _enc, cb) {
|
|
37859
|
+
bytesSent += chunk.length;
|
|
37860
|
+
if (bytesSent > limit) {
|
|
37861
|
+
return cb(
|
|
37862
|
+
new AxiosError_default(
|
|
37863
|
+
"Request body larger than maxBodyLength limit",
|
|
37864
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
37865
|
+
config2,
|
|
37866
|
+
req
|
|
37867
|
+
)
|
|
37868
|
+
);
|
|
37869
|
+
}
|
|
37870
|
+
cb(null, chunk);
|
|
37871
|
+
}
|
|
37872
|
+
})
|
|
37873
|
+
],
|
|
37874
|
+
utils_default.noop
|
|
37875
|
+
);
|
|
37876
|
+
uploadStream.on("error", (err) => {
|
|
37877
|
+
if (!req.destroyed) req.destroy(err);
|
|
37878
|
+
});
|
|
37879
|
+
}
|
|
37880
|
+
uploadStream.pipe(req);
|
|
37475
37881
|
} else {
|
|
37476
37882
|
data && req.write(data);
|
|
37477
37883
|
req.end();
|
|
@@ -37514,8 +37920,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
37514
37920
|
},
|
|
37515
37921
|
read(name) {
|
|
37516
37922
|
if (typeof document === "undefined") return null;
|
|
37517
|
-
const
|
|
37518
|
-
|
|
37923
|
+
const cookies = document.cookie.split(";");
|
|
37924
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
37925
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
37926
|
+
const eq = cookie.indexOf("=");
|
|
37927
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
37928
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
37929
|
+
}
|
|
37930
|
+
}
|
|
37931
|
+
return null;
|
|
37519
37932
|
},
|
|
37520
37933
|
remove(name) {
|
|
37521
37934
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -37538,7 +37951,16 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
37538
37951
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
37539
37952
|
function mergeConfig(config1, config2) {
|
|
37540
37953
|
config2 = config2 || {};
|
|
37541
|
-
const config3 =
|
|
37954
|
+
const config3 = /* @__PURE__ */ Object.create(null);
|
|
37955
|
+
Object.defineProperty(config3, "hasOwnProperty", {
|
|
37956
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
37957
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
37958
|
+
__proto__: null,
|
|
37959
|
+
value: Object.prototype.hasOwnProperty,
|
|
37960
|
+
enumerable: false,
|
|
37961
|
+
writable: true,
|
|
37962
|
+
configurable: true
|
|
37963
|
+
});
|
|
37542
37964
|
function getMergedValue(target, source, prop, caseless) {
|
|
37543
37965
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
37544
37966
|
return utils_default.merge.call({ caseless }, target, source);
|
|
@@ -37569,9 +37991,9 @@ function mergeConfig(config1, config2) {
|
|
|
37569
37991
|
}
|
|
37570
37992
|
}
|
|
37571
37993
|
function mergeDirectKeys(a, b, prop) {
|
|
37572
|
-
if (prop
|
|
37994
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
37573
37995
|
return getMergedValue(a, b);
|
|
37574
|
-
} else if (prop
|
|
37996
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
37575
37997
|
return getMergedValue(void 0, a);
|
|
37576
37998
|
}
|
|
37577
37999
|
}
|
|
@@ -37602,6 +38024,7 @@ function mergeConfig(config1, config2) {
|
|
|
37602
38024
|
httpsAgent: defaultToConfig2,
|
|
37603
38025
|
cancelToken: defaultToConfig2,
|
|
37604
38026
|
socketPath: defaultToConfig2,
|
|
38027
|
+
allowedSocketPaths: defaultToConfig2,
|
|
37605
38028
|
responseEncoding: defaultToConfig2,
|
|
37606
38029
|
validateStatus: mergeDirectKeys,
|
|
37607
38030
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -37609,46 +38032,68 @@ function mergeConfig(config1, config2) {
|
|
|
37609
38032
|
utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
37610
38033
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
37611
38034
|
const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
37612
|
-
const
|
|
38035
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
38036
|
+
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
38037
|
+
const configValue = merge3(a, b, prop);
|
|
37613
38038
|
utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
37614
38039
|
});
|
|
37615
38040
|
return config3;
|
|
37616
38041
|
}
|
|
37617
38042
|
|
|
37618
38043
|
// node_modules/axios/lib/helpers/resolveConfig.js
|
|
38044
|
+
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
38045
|
+
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
38046
|
+
if (policy !== "content-only") {
|
|
38047
|
+
headers.set(formHeaders);
|
|
38048
|
+
return;
|
|
38049
|
+
}
|
|
38050
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
38051
|
+
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
38052
|
+
headers.set(key, val);
|
|
38053
|
+
}
|
|
38054
|
+
});
|
|
38055
|
+
}
|
|
38056
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
38057
|
+
/%([0-9A-F]{2})/gi,
|
|
38058
|
+
(_, hex3) => String.fromCharCode(parseInt(hex3, 16))
|
|
38059
|
+
);
|
|
37619
38060
|
var resolveConfig_default = (config2) => {
|
|
37620
38061
|
const newConfig = mergeConfig({}, config2);
|
|
37621
|
-
|
|
38062
|
+
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
38063
|
+
const data = own2("data");
|
|
38064
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
38065
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
38066
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
38067
|
+
let headers = own2("headers");
|
|
38068
|
+
const auth = own2("auth");
|
|
38069
|
+
const baseURL = own2("baseURL");
|
|
38070
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
38071
|
+
const url3 = own2("url");
|
|
37622
38072
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
37623
38073
|
newConfig.url = buildURL(
|
|
37624
|
-
buildFullPath(
|
|
38074
|
+
buildFullPath(baseURL, url3, allowAbsoluteUrls),
|
|
37625
38075
|
config2.params,
|
|
37626
38076
|
config2.paramsSerializer
|
|
37627
38077
|
);
|
|
37628
38078
|
if (auth) {
|
|
37629
38079
|
headers.set(
|
|
37630
38080
|
"Authorization",
|
|
37631
|
-
"Basic " + btoa(
|
|
37632
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
37633
|
-
)
|
|
38081
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
37634
38082
|
);
|
|
37635
38083
|
}
|
|
37636
38084
|
if (utils_default.isFormData(data)) {
|
|
37637
38085
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
37638
38086
|
headers.setContentType(void 0);
|
|
37639
38087
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
37640
|
-
|
|
37641
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
37642
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
37643
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
37644
|
-
headers.set(key, val);
|
|
37645
|
-
}
|
|
37646
|
-
});
|
|
38088
|
+
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
37647
38089
|
}
|
|
37648
38090
|
}
|
|
37649
38091
|
if (platform_default.hasStandardBrowserEnv) {
|
|
37650
|
-
|
|
37651
|
-
|
|
38092
|
+
if (utils_default.isFunction(withXSRFToken)) {
|
|
38093
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
38094
|
+
}
|
|
38095
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
38096
|
+
if (shouldSendXSRF) {
|
|
37652
38097
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
37653
38098
|
if (xsrfValue) {
|
|
37654
38099
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -37714,7 +38159,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37714
38159
|
if (!request || request.readyState !== 4) {
|
|
37715
38160
|
return;
|
|
37716
38161
|
}
|
|
37717
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
38162
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
37718
38163
|
return;
|
|
37719
38164
|
}
|
|
37720
38165
|
setTimeout(onloadend);
|
|
@@ -37725,6 +38170,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37725
38170
|
return;
|
|
37726
38171
|
}
|
|
37727
38172
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config2, request));
|
|
38173
|
+
done();
|
|
37728
38174
|
request = null;
|
|
37729
38175
|
};
|
|
37730
38176
|
request.onerror = function handleError(event) {
|
|
@@ -37732,6 +38178,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37732
38178
|
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config2, request);
|
|
37733
38179
|
err.event = event || null;
|
|
37734
38180
|
reject(err);
|
|
38181
|
+
done();
|
|
37735
38182
|
request = null;
|
|
37736
38183
|
};
|
|
37737
38184
|
request.ontimeout = function handleTimeout() {
|
|
@@ -37748,6 +38195,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37748
38195
|
request
|
|
37749
38196
|
)
|
|
37750
38197
|
);
|
|
38198
|
+
done();
|
|
37751
38199
|
request = null;
|
|
37752
38200
|
};
|
|
37753
38201
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -37778,6 +38226,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37778
38226
|
}
|
|
37779
38227
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config2, request) : cancel);
|
|
37780
38228
|
request.abort();
|
|
38229
|
+
done();
|
|
37781
38230
|
request = null;
|
|
37782
38231
|
};
|
|
37783
38232
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -37786,7 +38235,7 @@ var xhr_default = isXHRAdapterSupported && function(config2) {
|
|
|
37786
38235
|
}
|
|
37787
38236
|
}
|
|
37788
38237
|
const protocol = parseProtocol(_config.url);
|
|
37789
|
-
if (protocol && platform_default.protocols.
|
|
38238
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
37790
38239
|
reject(
|
|
37791
38240
|
new AxiosError_default(
|
|
37792
38241
|
"Unsupported protocol " + protocol + ":",
|
|
@@ -37921,11 +38370,6 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
37921
38370
|
// node_modules/axios/lib/adapters/fetch.js
|
|
37922
38371
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
37923
38372
|
var { isFunction: isFunction2 } = utils_default;
|
|
37924
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
37925
|
-
Request,
|
|
37926
|
-
Response
|
|
37927
|
-
}))(utils_default.global);
|
|
37928
|
-
var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
|
|
37929
38373
|
var test = (fn, ...args) => {
|
|
37930
38374
|
try {
|
|
37931
38375
|
return !!fn(...args);
|
|
@@ -37934,11 +38378,16 @@ var test = (fn, ...args) => {
|
|
|
37934
38378
|
}
|
|
37935
38379
|
};
|
|
37936
38380
|
var factory = (env) => {
|
|
38381
|
+
const globalObject = utils_default.global ?? globalThis;
|
|
38382
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
37937
38383
|
env = utils_default.merge.call(
|
|
37938
38384
|
{
|
|
37939
38385
|
skipUndefined: true
|
|
37940
38386
|
},
|
|
37941
|
-
|
|
38387
|
+
{
|
|
38388
|
+
Request: globalObject.Request,
|
|
38389
|
+
Response: globalObject.Response
|
|
38390
|
+
},
|
|
37942
38391
|
env
|
|
37943
38392
|
);
|
|
37944
38393
|
const { fetch: envFetch, Request, Response } = env;
|
|
@@ -37952,16 +38401,18 @@ var factory = (env) => {
|
|
|
37952
38401
|
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
37953
38402
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
37954
38403
|
let duplexAccessed = false;
|
|
37955
|
-
const
|
|
37956
|
-
|
|
37957
|
-
body,
|
|
38404
|
+
const request = new Request(platform_default.origin, {
|
|
38405
|
+
body: new ReadableStream2(),
|
|
37958
38406
|
method: "POST",
|
|
37959
38407
|
get duplex() {
|
|
37960
38408
|
duplexAccessed = true;
|
|
37961
38409
|
return "half";
|
|
37962
38410
|
}
|
|
37963
|
-
})
|
|
37964
|
-
|
|
38411
|
+
});
|
|
38412
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
38413
|
+
if (request.body != null) {
|
|
38414
|
+
request.body.cancel();
|
|
38415
|
+
}
|
|
37965
38416
|
return duplexAccessed && !hasContentType;
|
|
37966
38417
|
});
|
|
37967
38418
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -38024,8 +38475,12 @@ var factory = (env) => {
|
|
|
38024
38475
|
responseType,
|
|
38025
38476
|
headers,
|
|
38026
38477
|
withCredentials = "same-origin",
|
|
38027
|
-
fetchOptions
|
|
38478
|
+
fetchOptions,
|
|
38479
|
+
maxContentLength,
|
|
38480
|
+
maxBodyLength
|
|
38028
38481
|
} = resolveConfig_default(config2);
|
|
38482
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
38483
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
38029
38484
|
let _fetch = envFetch || fetch;
|
|
38030
38485
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
38031
38486
|
let composedSignal = composeSignals_default(
|
|
@@ -38038,6 +38493,28 @@ var factory = (env) => {
|
|
|
38038
38493
|
});
|
|
38039
38494
|
let requestContentLength;
|
|
38040
38495
|
try {
|
|
38496
|
+
if (hasMaxContentLength && typeof url3 === "string" && url3.startsWith("data:")) {
|
|
38497
|
+
const estimated = estimateDataURLDecodedBytes(url3);
|
|
38498
|
+
if (estimated > maxContentLength) {
|
|
38499
|
+
throw new AxiosError_default(
|
|
38500
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
38501
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
38502
|
+
config2,
|
|
38503
|
+
request
|
|
38504
|
+
);
|
|
38505
|
+
}
|
|
38506
|
+
}
|
|
38507
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
38508
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
38509
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
38510
|
+
throw new AxiosError_default(
|
|
38511
|
+
"Request body larger than maxBodyLength limit",
|
|
38512
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
38513
|
+
config2,
|
|
38514
|
+
request
|
|
38515
|
+
);
|
|
38516
|
+
}
|
|
38517
|
+
}
|
|
38041
38518
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
38042
38519
|
let _request = new Request(url3, {
|
|
38043
38520
|
method: "POST",
|
|
@@ -38060,6 +38537,13 @@ var factory = (env) => {
|
|
|
38060
38537
|
withCredentials = withCredentials ? "include" : "omit";
|
|
38061
38538
|
}
|
|
38062
38539
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
38540
|
+
if (utils_default.isFormData(data)) {
|
|
38541
|
+
const contentType = headers.getContentType();
|
|
38542
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
38543
|
+
headers.delete("content-type");
|
|
38544
|
+
}
|
|
38545
|
+
}
|
|
38546
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
38063
38547
|
const resolvedOptions = {
|
|
38064
38548
|
...fetchOptions,
|
|
38065
38549
|
signal: composedSignal,
|
|
@@ -38071,8 +38555,19 @@ var factory = (env) => {
|
|
|
38071
38555
|
};
|
|
38072
38556
|
request = isRequestSupported && new Request(url3, resolvedOptions);
|
|
38073
38557
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url3, resolvedOptions));
|
|
38558
|
+
if (hasMaxContentLength) {
|
|
38559
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
38560
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
38561
|
+
throw new AxiosError_default(
|
|
38562
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
38563
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
38564
|
+
config2,
|
|
38565
|
+
request
|
|
38566
|
+
);
|
|
38567
|
+
}
|
|
38568
|
+
}
|
|
38074
38569
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
38075
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
38570
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
38076
38571
|
const options = {};
|
|
38077
38572
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
38078
38573
|
options[prop] = response[prop];
|
|
@@ -38082,8 +38577,23 @@ var factory = (env) => {
|
|
|
38082
38577
|
responseContentLength,
|
|
38083
38578
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
38084
38579
|
) || [];
|
|
38580
|
+
let bytesRead = 0;
|
|
38581
|
+
const onChunkProgress = (loadedBytes) => {
|
|
38582
|
+
if (hasMaxContentLength) {
|
|
38583
|
+
bytesRead = loadedBytes;
|
|
38584
|
+
if (bytesRead > maxContentLength) {
|
|
38585
|
+
throw new AxiosError_default(
|
|
38586
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
38587
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
38588
|
+
config2,
|
|
38589
|
+
request
|
|
38590
|
+
);
|
|
38591
|
+
}
|
|
38592
|
+
}
|
|
38593
|
+
onProgress && onProgress(loadedBytes);
|
|
38594
|
+
};
|
|
38085
38595
|
response = new Response(
|
|
38086
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
38596
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
38087
38597
|
flush && flush();
|
|
38088
38598
|
unsubscribe && unsubscribe();
|
|
38089
38599
|
}),
|
|
@@ -38095,6 +38605,26 @@ var factory = (env) => {
|
|
|
38095
38605
|
response,
|
|
38096
38606
|
config2
|
|
38097
38607
|
);
|
|
38608
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
38609
|
+
let materializedSize;
|
|
38610
|
+
if (responseData != null) {
|
|
38611
|
+
if (typeof responseData.byteLength === "number") {
|
|
38612
|
+
materializedSize = responseData.byteLength;
|
|
38613
|
+
} else if (typeof responseData.size === "number") {
|
|
38614
|
+
materializedSize = responseData.size;
|
|
38615
|
+
} else if (typeof responseData === "string") {
|
|
38616
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
38617
|
+
}
|
|
38618
|
+
}
|
|
38619
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
38620
|
+
throw new AxiosError_default(
|
|
38621
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
38622
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
38623
|
+
config2,
|
|
38624
|
+
request
|
|
38625
|
+
);
|
|
38626
|
+
}
|
|
38627
|
+
}
|
|
38098
38628
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
38099
38629
|
return await new Promise((resolve, reject) => {
|
|
38100
38630
|
settle(resolve, reject, {
|
|
@@ -38108,6 +38638,13 @@ var factory = (env) => {
|
|
|
38108
38638
|
});
|
|
38109
38639
|
} catch (err) {
|
|
38110
38640
|
unsubscribe && unsubscribe();
|
|
38641
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
|
|
38642
|
+
const canceledError = composedSignal.reason;
|
|
38643
|
+
canceledError.config = config2;
|
|
38644
|
+
request && (canceledError.request = request);
|
|
38645
|
+
err !== canceledError && (canceledError.cause = err);
|
|
38646
|
+
throw canceledError;
|
|
38647
|
+
}
|
|
38111
38648
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
38112
38649
|
throw Object.assign(
|
|
38113
38650
|
new AxiosError_default(
|
|
@@ -38153,10 +38690,10 @@ var knownAdapters = {
|
|
|
38153
38690
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
38154
38691
|
if (fn) {
|
|
38155
38692
|
try {
|
|
38156
|
-
Object.defineProperty(fn, "name", { value });
|
|
38693
|
+
Object.defineProperty(fn, "name", { __proto__: null, value });
|
|
38157
38694
|
} catch (e) {
|
|
38158
38695
|
}
|
|
38159
|
-
Object.defineProperty(fn, "adapterName", { value });
|
|
38696
|
+
Object.defineProperty(fn, "adapterName", { __proto__: null, value });
|
|
38160
38697
|
}
|
|
38161
38698
|
});
|
|
38162
38699
|
var renderReason = (reason) => `- ${reason}`;
|
|
@@ -38227,7 +38764,12 @@ function dispatchRequest(config2) {
|
|
|
38227
38764
|
return adapter2(config2).then(
|
|
38228
38765
|
function onAdapterResolution(response) {
|
|
38229
38766
|
throwIfCancellationRequested(config2);
|
|
38230
|
-
response
|
|
38767
|
+
config2.response = response;
|
|
38768
|
+
try {
|
|
38769
|
+
response.data = transformData.call(config2, config2.transformResponse, response);
|
|
38770
|
+
} finally {
|
|
38771
|
+
delete config2.response;
|
|
38772
|
+
}
|
|
38231
38773
|
response.headers = AxiosHeaders_default.from(response.headers);
|
|
38232
38774
|
return response;
|
|
38233
38775
|
},
|
|
@@ -38235,11 +38777,16 @@ function dispatchRequest(config2) {
|
|
|
38235
38777
|
if (!isCancel(reason)) {
|
|
38236
38778
|
throwIfCancellationRequested(config2);
|
|
38237
38779
|
if (reason && reason.response) {
|
|
38238
|
-
|
|
38239
|
-
|
|
38240
|
-
|
|
38241
|
-
|
|
38242
|
-
|
|
38780
|
+
config2.response = reason.response;
|
|
38781
|
+
try {
|
|
38782
|
+
reason.response.data = transformData.call(
|
|
38783
|
+
config2,
|
|
38784
|
+
config2.transformResponse,
|
|
38785
|
+
reason.response
|
|
38786
|
+
);
|
|
38787
|
+
} finally {
|
|
38788
|
+
delete config2.response;
|
|
38789
|
+
}
|
|
38243
38790
|
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
38244
38791
|
}
|
|
38245
38792
|
}
|
|
@@ -38293,7 +38840,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
38293
38840
|
let i = keys.length;
|
|
38294
38841
|
while (i-- > 0) {
|
|
38295
38842
|
const opt = keys[i];
|
|
38296
|
-
const validator = schema[opt];
|
|
38843
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
38297
38844
|
if (validator) {
|
|
38298
38845
|
const value = options[opt];
|
|
38299
38846
|
const result = value === void 0 || validator(value, opt, options);
|
|
@@ -38417,7 +38964,7 @@ var Axios = class {
|
|
|
38417
38964
|
);
|
|
38418
38965
|
config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
|
|
38419
38966
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config2.method]);
|
|
38420
|
-
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
38967
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
38421
38968
|
delete headers[method];
|
|
38422
38969
|
});
|
|
38423
38970
|
config2.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -38495,7 +39042,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
38495
39042
|
);
|
|
38496
39043
|
};
|
|
38497
39044
|
});
|
|
38498
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
39045
|
+
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
38499
39046
|
function generateHTTPMethod(isForm) {
|
|
38500
39047
|
return function httpMethod(url3, data, config2) {
|
|
38501
39048
|
return this.request(
|
|
@@ -38511,7 +39058,9 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
38511
39058
|
};
|
|
38512
39059
|
}
|
|
38513
39060
|
Axios.prototype[method] = generateHTTPMethod();
|
|
38514
|
-
|
|
39061
|
+
if (method !== "query") {
|
|
39062
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
39063
|
+
}
|
|
38515
39064
|
});
|
|
38516
39065
|
var Axios_default = Axios;
|
|
38517
39066
|
|
|
@@ -38708,7 +39257,7 @@ function createInstance(defaultConfig) {
|
|
|
38708
39257
|
const instance = bind(Axios_default.prototype.request, context);
|
|
38709
39258
|
utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
|
|
38710
39259
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
38711
|
-
instance.create = function
|
|
39260
|
+
instance.create = function create2(instanceConfig) {
|
|
38712
39261
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
38713
39262
|
};
|
|
38714
39263
|
return instance;
|
|
@@ -38752,7 +39301,8 @@ var {
|
|
|
38752
39301
|
HttpStatusCode: HttpStatusCode2,
|
|
38753
39302
|
formToJSON,
|
|
38754
39303
|
getAdapter: getAdapter2,
|
|
38755
|
-
mergeConfig: mergeConfig2
|
|
39304
|
+
mergeConfig: mergeConfig2,
|
|
39305
|
+
create
|
|
38756
39306
|
} = axios_default;
|
|
38757
39307
|
|
|
38758
39308
|
// src/mcp-server/aider-desk-mcp-server.ts
|