@alpic-ai/sdk 0.0.0-dev.g67e02fa → 0.0.0-dev.g6830578
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vendor/pipenet.js +266 -837
- package/dist/vendor/pipenet.js.map +4 -4
- package/package.json +9 -9
package/dist/vendor/pipenet.js
CHANGED
|
@@ -9132,9 +9132,9 @@ var require_asynckit = __commonJS({
|
|
|
9132
9132
|
}
|
|
9133
9133
|
});
|
|
9134
9134
|
|
|
9135
|
-
// ../../node_modules/.pnpm/es-object-atoms@1.1.
|
|
9135
|
+
// ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
|
|
9136
9136
|
var require_es_object_atoms = __commonJS({
|
|
9137
|
-
"../../node_modules/.pnpm/es-object-atoms@1.1.
|
|
9137
|
+
"../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
|
|
9138
9138
|
"use strict";
|
|
9139
9139
|
module.exports = Object;
|
|
9140
9140
|
}
|
|
@@ -12072,14 +12072,14 @@ var require_follow_redirects = __commonJS({
|
|
|
12072
12072
|
}
|
|
12073
12073
|
});
|
|
12074
12074
|
|
|
12075
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12075
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
12076
12076
|
function bind(fn, thisArg) {
|
|
12077
12077
|
return function wrap() {
|
|
12078
12078
|
return fn.apply(thisArg, arguments);
|
|
12079
12079
|
};
|
|
12080
12080
|
}
|
|
12081
12081
|
|
|
12082
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12082
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
12083
12083
|
var { toString } = Object.prototype;
|
|
12084
12084
|
var { getPrototypeOf } = Object;
|
|
12085
12085
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -12194,16 +12194,10 @@ var isPlainObject = (val) => {
|
|
|
12194
12194
|
return false;
|
|
12195
12195
|
}
|
|
12196
12196
|
const prototype2 = getPrototypeOf(val);
|
|
12197
|
-
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as
|
|
12198
|
-
// value is tagged/iterable, ignoring members reachable
|
|
12199
|
-
// or terminal prototype boundaries.
|
|
12200
|
-
|
|
12201
|
-
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
12202
|
-
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
12203
|
-
// and stops before even those when `val` is itself the boundary
|
|
12204
|
-
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
12205
|
-
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
12206
|
-
(isPrototypeBoundary(val, prototype2, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
|
|
12197
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
12198
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
12199
|
+
// only through shared or terminal prototype boundaries.
|
|
12200
|
+
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
12207
12201
|
};
|
|
12208
12202
|
var isEmptyObject = (val) => {
|
|
12209
12203
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -12304,21 +12298,11 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
|
|
|
12304
12298
|
function merge(...objs) {
|
|
12305
12299
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
12306
12300
|
const result = {};
|
|
12307
|
-
const lowerCaseKeys = caseless ? /* @__PURE__ */ Object.create(null) : null;
|
|
12308
12301
|
const assignValue = (val, key) => {
|
|
12309
12302
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12310
12303
|
return;
|
|
12311
12304
|
}
|
|
12312
|
-
|
|
12313
|
-
if (lowerCaseKeys && typeof key === "string") {
|
|
12314
|
-
const lowerKey = key.toLowerCase();
|
|
12315
|
-
const knownKey = lowerCaseKeys[lowerKey];
|
|
12316
|
-
if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) {
|
|
12317
|
-
targetKey = knownKey;
|
|
12318
|
-
} else {
|
|
12319
|
-
lowerCaseKeys[lowerKey] = key;
|
|
12320
|
-
}
|
|
12321
|
-
}
|
|
12305
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
12322
12306
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
12323
12307
|
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
12324
12308
|
result[targetKey] = merge(existing, val);
|
|
@@ -12336,7 +12320,7 @@ function merge(...objs) {
|
|
|
12336
12320
|
continue;
|
|
12337
12321
|
}
|
|
12338
12322
|
forEach(source, assignValue);
|
|
12339
|
-
if (typeof source !== "object" || isArray(source)
|
|
12323
|
+
if (typeof source !== "object" || isArray(source)) {
|
|
12340
12324
|
continue;
|
|
12341
12325
|
}
|
|
12342
12326
|
const symbols = Object.getOwnPropertySymbols(source);
|
|
@@ -12432,24 +12416,7 @@ var toArray = (thing) => {
|
|
|
12432
12416
|
if (!thing) return null;
|
|
12433
12417
|
if (isArray(thing)) return thing;
|
|
12434
12418
|
let i = thing.length;
|
|
12435
|
-
if (!
|
|
12436
|
-
const indexes = /* @__PURE__ */ new Set();
|
|
12437
|
-
const seen = /* @__PURE__ */ new Set();
|
|
12438
|
-
let source = thing;
|
|
12439
|
-
while (source != null && indexes.size < i) {
|
|
12440
|
-
if (seen.has(source)) return null;
|
|
12441
|
-
seen.add(source);
|
|
12442
|
-
const prototype2 = getPrototypeOf(source);
|
|
12443
|
-
if (isPrototypeBoundary(source, prototype2, source === thing)) break;
|
|
12444
|
-
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
12445
|
-
const index = +key;
|
|
12446
|
-
if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) {
|
|
12447
|
-
indexes.add(index);
|
|
12448
|
-
}
|
|
12449
|
-
});
|
|
12450
|
-
source = prototype2;
|
|
12451
|
-
}
|
|
12452
|
-
if (indexes.size !== i) return null;
|
|
12419
|
+
if (!isNumber(i)) return null;
|
|
12453
12420
|
const arr = new Array(i);
|
|
12454
12421
|
while (i-- > 0) {
|
|
12455
12422
|
arr[i] = thing[i];
|
|
@@ -12660,7 +12627,7 @@ var utils_default = {
|
|
|
12660
12627
|
isSafeIterable
|
|
12661
12628
|
};
|
|
12662
12629
|
|
|
12663
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12630
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12664
12631
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12665
12632
|
"age",
|
|
12666
12633
|
"authorization",
|
|
@@ -12681,7 +12648,7 @@ var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
|
12681
12648
|
"user-agent"
|
|
12682
12649
|
]);
|
|
12683
12650
|
var parseHeaders_default = (rawHeaders) => {
|
|
12684
|
-
const parsed =
|
|
12651
|
+
const parsed = {};
|
|
12685
12652
|
let key;
|
|
12686
12653
|
let val;
|
|
12687
12654
|
let i;
|
|
@@ -12706,7 +12673,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12706
12673
|
return parsed;
|
|
12707
12674
|
};
|
|
12708
12675
|
|
|
12709
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12676
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
12710
12677
|
function trimSPorHTAB(str) {
|
|
12711
12678
|
let start = 0;
|
|
12712
12679
|
let end = str.length;
|
|
@@ -12744,7 +12711,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12744
12711
|
return byteStringHeaders;
|
|
12745
12712
|
}
|
|
12746
12713
|
|
|
12747
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12714
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12748
12715
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12749
12716
|
function normalizeHeader(header) {
|
|
12750
12717
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12849,11 +12816,9 @@ function parseParameters(value) {
|
|
|
12849
12816
|
return parameters;
|
|
12850
12817
|
}
|
|
12851
12818
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12852
|
-
var PROTO_HEADER_SLOT = "__Proto__";
|
|
12853
|
-
var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
|
|
12854
12819
|
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12855
12820
|
if (utils_default.isFunction(filter2)) {
|
|
12856
|
-
return filter2.call(
|
|
12821
|
+
return filter2.call(this, value, header);
|
|
12857
12822
|
}
|
|
12858
12823
|
if (isHeaderNameFilter) {
|
|
12859
12824
|
value = header;
|
|
@@ -12898,7 +12863,7 @@ var AxiosHeaders = class {
|
|
|
12898
12863
|
}
|
|
12899
12864
|
const key = utils_default.findKey(self2, lHeader);
|
|
12900
12865
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
12901
|
-
self2[
|
|
12866
|
+
self2[key || _header] = normalizeValue(_value);
|
|
12902
12867
|
}
|
|
12903
12868
|
}
|
|
12904
12869
|
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
@@ -12991,7 +12956,7 @@ var AxiosHeaders = class {
|
|
|
12991
12956
|
}
|
|
12992
12957
|
normalize(format) {
|
|
12993
12958
|
const self2 = this;
|
|
12994
|
-
const headers =
|
|
12959
|
+
const headers = {};
|
|
12995
12960
|
utils_default.forEach(this, (value, header) => {
|
|
12996
12961
|
const key = utils_default.findKey(headers, header);
|
|
12997
12962
|
if (key) {
|
|
@@ -12999,7 +12964,7 @@ var AxiosHeaders = class {
|
|
|
12999
12964
|
delete self2[header];
|
|
13000
12965
|
return;
|
|
13001
12966
|
}
|
|
13002
|
-
const normalized =
|
|
12967
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
13003
12968
|
if (normalized !== header) {
|
|
13004
12969
|
delete self2[header];
|
|
13005
12970
|
}
|
|
@@ -13079,7 +13044,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
13079
13044
|
utils_default.freezeMethods(AxiosHeaders);
|
|
13080
13045
|
var AxiosHeaders_default = AxiosHeaders;
|
|
13081
13046
|
|
|
13082
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13047
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
13083
13048
|
var REDACTED = "[REDACTED ****]";
|
|
13084
13049
|
function hasOwnOrPrototypeToJSON(source) {
|
|
13085
13050
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -13149,28 +13114,6 @@ function aggregateErrorMessage(error) {
|
|
|
13149
13114
|
}).filter(Boolean).join("; ");
|
|
13150
13115
|
return message || error.name || "AggregateError";
|
|
13151
13116
|
}
|
|
13152
|
-
var CAUSED_BY_SEPARATOR = "\nCaused by: ";
|
|
13153
|
-
var $causeStack = /* @__PURE__ */ Symbol("causeStack");
|
|
13154
|
-
function getCauseStackIndex(error, stack) {
|
|
13155
|
-
const causeStack = utils_default.hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
13156
|
-
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
13157
|
-
}
|
|
13158
|
-
function appendCauseStack(target, source) {
|
|
13159
|
-
try {
|
|
13160
|
-
const sourceStack = source && source.stack;
|
|
13161
|
-
if (typeof sourceStack !== "string" || !sourceStack) {
|
|
13162
|
-
return;
|
|
13163
|
-
}
|
|
13164
|
-
const targetStack = target.stack;
|
|
13165
|
-
if (typeof targetStack !== "string" || !targetStack) {
|
|
13166
|
-
return;
|
|
13167
|
-
}
|
|
13168
|
-
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
13169
|
-
target.stack = targetStack + causeStack;
|
|
13170
|
-
Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
|
|
13171
|
-
} catch (e) {
|
|
13172
|
-
}
|
|
13173
|
-
}
|
|
13174
13117
|
var AxiosError = class _AxiosError extends Error {
|
|
13175
13118
|
static from(error, code, config, request, response, customProps) {
|
|
13176
13119
|
let message = error.message;
|
|
@@ -13186,7 +13129,6 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
13186
13129
|
configurable: true
|
|
13187
13130
|
});
|
|
13188
13131
|
axiosError.name = error.name;
|
|
13189
|
-
appendCauseStack(axiosError, error);
|
|
13190
13132
|
if (error.status != null && axiosError.status == null) {
|
|
13191
13133
|
axiosError.status = error.status;
|
|
13192
13134
|
}
|
|
@@ -13264,11 +13206,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
13264
13206
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
13265
13207
|
var AxiosError_default = AxiosError;
|
|
13266
13208
|
|
|
13267
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13209
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
13268
13210
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
13269
13211
|
var FormData_default = import_form_data.default;
|
|
13270
13212
|
|
|
13271
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13213
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
|
|
13272
13214
|
var Buffer_default = {
|
|
13273
13215
|
isBufferAvailable() {
|
|
13274
13216
|
return typeof Buffer !== "undefined";
|
|
@@ -13278,7 +13220,7 @@ var Buffer_default = {
|
|
|
13278
13220
|
}
|
|
13279
13221
|
};
|
|
13280
13222
|
|
|
13281
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13223
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
|
|
13282
13224
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
13283
13225
|
function isVisitable(thing) {
|
|
13284
13226
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
@@ -13425,7 +13367,7 @@ function toFormData(obj, formData, options) {
|
|
|
13425
13367
|
}
|
|
13426
13368
|
var toFormData_default = toFormData;
|
|
13427
13369
|
|
|
13428
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13370
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
13429
13371
|
function encode(str) {
|
|
13430
13372
|
const charMap = {
|
|
13431
13373
|
"!": "%21",
|
|
@@ -13455,7 +13397,7 @@ prototype.toString = function toString2(encoder) {
|
|
|
13455
13397
|
};
|
|
13456
13398
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13457
13399
|
|
|
13458
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13400
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
13459
13401
|
function encode2(val) {
|
|
13460
13402
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13461
13403
|
}
|
|
@@ -13485,7 +13427,7 @@ function buildURL(url2, params, options) {
|
|
|
13485
13427
|
return url2;
|
|
13486
13428
|
}
|
|
13487
13429
|
|
|
13488
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13430
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
13489
13431
|
var $internals2 = /* @__PURE__ */ Symbol("internals");
|
|
13490
13432
|
function countHandlers(handlers) {
|
|
13491
13433
|
return handlers ? handlers.length : 0;
|
|
@@ -13498,12 +13440,6 @@ function trimHandlers(handlers) {
|
|
|
13498
13440
|
handlers.pop();
|
|
13499
13441
|
}
|
|
13500
13442
|
}
|
|
13501
|
-
function normalizeHandlerId(id) {
|
|
13502
|
-
if (typeof id === "string" && id !== "" && String(Number(id)) === id) {
|
|
13503
|
-
return Number(id);
|
|
13504
|
-
}
|
|
13505
|
-
return id;
|
|
13506
|
-
}
|
|
13507
13443
|
function syncHandlerEntries(manager, internals) {
|
|
13508
13444
|
const handlers = manager.handlers;
|
|
13509
13445
|
const length = countHandlers(handlers);
|
|
@@ -13574,10 +13510,9 @@ var InterceptorManager = class {
|
|
|
13574
13510
|
eject(id) {
|
|
13575
13511
|
const internals = this[$internals2];
|
|
13576
13512
|
syncHandlerEntries(this, internals);
|
|
13577
|
-
const
|
|
13578
|
-
const entry = internals.handlerEntries.get(handlerId);
|
|
13513
|
+
const entry = internals.handlerEntries.get(id);
|
|
13579
13514
|
if (entry) {
|
|
13580
|
-
internals.handlerEntries.delete(
|
|
13515
|
+
internals.handlerEntries.delete(id);
|
|
13581
13516
|
if (this.handlers[entry.index] !== entry.handler) {
|
|
13582
13517
|
return;
|
|
13583
13518
|
}
|
|
@@ -13630,25 +13565,24 @@ var InterceptorManager = class {
|
|
|
13630
13565
|
};
|
|
13631
13566
|
var InterceptorManager_default = InterceptorManager;
|
|
13632
13567
|
|
|
13633
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13568
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
13634
13569
|
var transitional_default = {
|
|
13635
13570
|
silentJSONParsing: true,
|
|
13636
13571
|
forcedJSONParsing: true,
|
|
13637
13572
|
clarifyTimeoutError: false,
|
|
13638
13573
|
legacyInterceptorReqResOrdering: true,
|
|
13639
13574
|
advertiseZstdAcceptEncoding: false,
|
|
13640
|
-
validateStatusUndefinedResolves: true
|
|
13641
|
-
encodeBasicAuthUsername: false
|
|
13575
|
+
validateStatusUndefinedResolves: true
|
|
13642
13576
|
};
|
|
13643
13577
|
|
|
13644
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13578
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13645
13579
|
import crypto from "crypto";
|
|
13646
13580
|
|
|
13647
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13581
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
13648
13582
|
import url from "url";
|
|
13649
13583
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13650
13584
|
|
|
13651
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13585
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13652
13586
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13653
13587
|
var DIGIT = "0123456789";
|
|
13654
13588
|
var ALPHABET = {
|
|
@@ -13678,7 +13612,7 @@ var node_default = {
|
|
|
13678
13612
|
protocols: ["http", "https", "file", "data"]
|
|
13679
13613
|
};
|
|
13680
13614
|
|
|
13681
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13615
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
13682
13616
|
var utils_exports = {};
|
|
13683
13617
|
__export(utils_exports, {
|
|
13684
13618
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13696,13 +13630,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13696
13630
|
})();
|
|
13697
13631
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13698
13632
|
|
|
13699
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13633
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
13700
13634
|
var platform_default = {
|
|
13701
13635
|
...utils_exports,
|
|
13702
13636
|
...node_default
|
|
13703
13637
|
};
|
|
13704
13638
|
|
|
13705
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13639
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
13706
13640
|
function toURLEncodedForm(data, options) {
|
|
13707
13641
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13708
13642
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13716,7 +13650,7 @@ function toURLEncodedForm(data, options) {
|
|
|
13716
13650
|
});
|
|
13717
13651
|
}
|
|
13718
13652
|
|
|
13719
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13653
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
13720
13654
|
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13721
13655
|
function throwIfDepthExceeded(index) {
|
|
13722
13656
|
if (index > MAX_DEPTH) {
|
|
@@ -13748,24 +13682,6 @@ function arrayToObject(arr) {
|
|
|
13748
13682
|
}
|
|
13749
13683
|
return obj;
|
|
13750
13684
|
}
|
|
13751
|
-
function normalizeArray(value) {
|
|
13752
|
-
if (!utils_default.isArray(value)) return value;
|
|
13753
|
-
const keys = Object.keys(value);
|
|
13754
|
-
return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
|
|
13755
|
-
}
|
|
13756
|
-
function normalizeArrays(obj) {
|
|
13757
|
-
const pending = [obj];
|
|
13758
|
-
while (pending.length) {
|
|
13759
|
-
const target = pending.pop();
|
|
13760
|
-
Object.keys(target).forEach((key) => {
|
|
13761
|
-
const value = target[key] = normalizeArray(target[key]);
|
|
13762
|
-
if (utils_default.isArray(value) || utils_default.isPlainObject(value)) {
|
|
13763
|
-
pending.push(value);
|
|
13764
|
-
}
|
|
13765
|
-
});
|
|
13766
|
-
}
|
|
13767
|
-
return obj;
|
|
13768
|
-
}
|
|
13769
13685
|
function formDataToJSON(formData) {
|
|
13770
13686
|
function buildPath(path, value, target, index) {
|
|
13771
13687
|
throwIfDepthExceeded(index);
|
|
@@ -13776,7 +13692,6 @@ function formDataToJSON(formData) {
|
|
|
13776
13692
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
13777
13693
|
if (isLast) {
|
|
13778
13694
|
if (utils_default.hasOwnProp(target, name)) {
|
|
13779
|
-
target[name] = normalizeArray(target[name]);
|
|
13780
13695
|
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
13781
13696
|
} else {
|
|
13782
13697
|
target[name] = value;
|
|
@@ -13797,13 +13712,13 @@ function formDataToJSON(formData) {
|
|
|
13797
13712
|
utils_default.forEachEntry(formData, (name, value) => {
|
|
13798
13713
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
13799
13714
|
});
|
|
13800
|
-
return
|
|
13715
|
+
return obj;
|
|
13801
13716
|
}
|
|
13802
13717
|
return null;
|
|
13803
13718
|
}
|
|
13804
13719
|
var formDataToJSON_default = formDataToJSON;
|
|
13805
13720
|
|
|
13806
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13721
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
|
|
13807
13722
|
var methodList = Object.freeze([
|
|
13808
13723
|
"get",
|
|
13809
13724
|
"delete",
|
|
@@ -13819,7 +13734,7 @@ var methodList = Object.freeze([
|
|
|
13819
13734
|
]);
|
|
13820
13735
|
var methodList_default = methodList;
|
|
13821
13736
|
|
|
13822
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13737
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
13823
13738
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13824
13739
|
function stringifySafely2(rawValue, parser, encoder) {
|
|
13825
13740
|
if (utils_default.isString(rawValue)) {
|
|
@@ -13936,7 +13851,7 @@ utils_default.forEach(methodList_default, (method) => {
|
|
|
13936
13851
|
});
|
|
13937
13852
|
var defaults_default = defaults;
|
|
13938
13853
|
|
|
13939
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13854
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
13940
13855
|
function transformData(fns, response) {
|
|
13941
13856
|
const config = this || defaults_default;
|
|
13942
13857
|
const context = response || config;
|
|
@@ -13949,12 +13864,12 @@ function transformData(fns, response) {
|
|
|
13949
13864
|
return data;
|
|
13950
13865
|
}
|
|
13951
13866
|
|
|
13952
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13867
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
13953
13868
|
function isCancel(value) {
|
|
13954
13869
|
return !!(value && value.__CANCEL__);
|
|
13955
13870
|
}
|
|
13956
13871
|
|
|
13957
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13872
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
13958
13873
|
var CanceledError = class extends AxiosError_default {
|
|
13959
13874
|
/**
|
|
13960
13875
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13973,7 +13888,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13973
13888
|
};
|
|
13974
13889
|
var CanceledError_default = CanceledError;
|
|
13975
13890
|
|
|
13976
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13891
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
13977
13892
|
function settle(resolve, reject, response) {
|
|
13978
13893
|
const validateStatus2 = response.config.validateStatus;
|
|
13979
13894
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13989,7 +13904,7 @@ function settle(resolve, reject, response) {
|
|
|
13989
13904
|
}
|
|
13990
13905
|
}
|
|
13991
13906
|
|
|
13992
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13907
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
13993
13908
|
function isAbsoluteURL(url2) {
|
|
13994
13909
|
if (typeof url2 !== "string") {
|
|
13995
13910
|
return false;
|
|
@@ -13997,7 +13912,7 @@ function isAbsoluteURL(url2) {
|
|
|
13997
13912
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13998
13913
|
}
|
|
13999
13914
|
|
|
14000
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13915
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
14001
13916
|
function combineURLs(baseURL, relativeURL) {
|
|
14002
13917
|
if (!relativeURL) {
|
|
14003
13918
|
return baseURL;
|
|
@@ -14009,7 +13924,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
14009
13924
|
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
14010
13925
|
}
|
|
14011
13926
|
|
|
14012
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13927
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
14013
13928
|
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
14014
13929
|
function normalizeURLForProtocolCheck(url2) {
|
|
14015
13930
|
if (typeof url2 !== "string") {
|
|
@@ -14022,7 +13937,7 @@ function normalizeURLForProtocolCheck(url2) {
|
|
|
14022
13937
|
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
14023
13938
|
}
|
|
14024
13939
|
|
|
14025
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13940
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
14026
13941
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
14027
13942
|
function redactFragment(fragment) {
|
|
14028
13943
|
if (!fragment) {
|
|
@@ -14134,7 +14049,7 @@ function getEnv(key) {
|
|
|
14134
14049
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
14135
14050
|
}
|
|
14136
14051
|
|
|
14137
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14052
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14138
14053
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
14139
14054
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
14140
14055
|
import http from "http";
|
|
@@ -14144,17 +14059,17 @@ import util3 from "util";
|
|
|
14144
14059
|
import { resolve as resolvePath } from "path";
|
|
14145
14060
|
import zlib from "zlib";
|
|
14146
14061
|
|
|
14147
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14148
|
-
var VERSION = "1.
|
|
14062
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
14063
|
+
var VERSION = "1.20.0";
|
|
14149
14064
|
|
|
14150
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14065
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
14151
14066
|
function parseProtocol(url2) {
|
|
14152
14067
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
14153
|
-
return match && match[1]
|
|
14068
|
+
return match && match[1] || "";
|
|
14154
14069
|
}
|
|
14155
14070
|
|
|
14156
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14157
|
-
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)
|
|
14071
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
14072
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
14158
14073
|
function fromDataURI(uri, asBlob, options) {
|
|
14159
14074
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
14160
14075
|
const protocol = parseProtocol(uri);
|
|
@@ -14177,10 +14092,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
14177
14092
|
} else if (params) {
|
|
14178
14093
|
mime = "text/plain" + params;
|
|
14179
14094
|
}
|
|
14180
|
-
const buffer = encoding === "base64" ? Buffer.from(
|
|
14181
|
-
body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))),
|
|
14182
|
-
"base64"
|
|
14183
|
-
) : Buffer.from(decodeURIComponent(body), encoding);
|
|
14095
|
+
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
14184
14096
|
if (asBlob) {
|
|
14185
14097
|
if (!_Blob) {
|
|
14186
14098
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -14192,10 +14104,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
14192
14104
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
14193
14105
|
}
|
|
14194
14106
|
|
|
14195
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14107
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14196
14108
|
import stream3 from "stream";
|
|
14197
14109
|
|
|
14198
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14110
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
14199
14111
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14200
14112
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14201
14113
|
if (policy !== "content-only") {
|
|
@@ -14209,7 +14121,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
14209
14121
|
});
|
|
14210
14122
|
}
|
|
14211
14123
|
|
|
14212
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14124
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
14213
14125
|
import stream from "stream";
|
|
14214
14126
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
14215
14127
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -14266,10 +14178,7 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14266
14178
|
const timeWindow = internals.timeWindow;
|
|
14267
14179
|
const divider = 1e3 / timeWindow;
|
|
14268
14180
|
const bytesThreshold = maxRate / divider;
|
|
14269
|
-
|
|
14270
|
-
if (maxRate) {
|
|
14271
|
-
minChunkSize = Math.min(bytesThreshold, minChunkSize);
|
|
14272
|
-
}
|
|
14181
|
+
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
14273
14182
|
const pushChunk = (_chunk, _callback) => {
|
|
14274
14183
|
const bytes = Buffer.byteLength(_chunk);
|
|
14275
14184
|
internals.bytesSeen += bytes;
|
|
@@ -14285,9 +14194,6 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14285
14194
|
}
|
|
14286
14195
|
};
|
|
14287
14196
|
const transformChunk = (_chunk, _callback) => {
|
|
14288
|
-
if (this.destroyed) {
|
|
14289
|
-
return _callback();
|
|
14290
|
-
}
|
|
14291
14197
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
14292
14198
|
let chunkRemainder = null;
|
|
14293
14199
|
let maxChunkSize = readableHighWaterMark;
|
|
@@ -14310,7 +14216,7 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14310
14216
|
}, timeWindow - passed);
|
|
14311
14217
|
}
|
|
14312
14218
|
if (bytesLeft < maxChunkSize) {
|
|
14313
|
-
maxChunkSize =
|
|
14219
|
+
maxChunkSize = bytesLeft;
|
|
14314
14220
|
}
|
|
14315
14221
|
}
|
|
14316
14222
|
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
|
@@ -14338,14 +14244,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14338
14244
|
};
|
|
14339
14245
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
14340
14246
|
|
|
14341
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14247
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14342
14248
|
import { EventEmitter } from "events";
|
|
14343
14249
|
|
|
14344
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14250
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14345
14251
|
import util from "util";
|
|
14346
14252
|
import { Readable } from "stream";
|
|
14347
14253
|
|
|
14348
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14254
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
|
|
14349
14255
|
var { asyncIterator } = Symbol;
|
|
14350
14256
|
var readBlob = async function* (blob) {
|
|
14351
14257
|
if (blob.stream) {
|
|
@@ -14360,7 +14266,7 @@ var readBlob = async function* (blob) {
|
|
|
14360
14266
|
};
|
|
14361
14267
|
var readBlob_default = readBlob;
|
|
14362
14268
|
|
|
14363
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14269
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14364
14270
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
14365
14271
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
14366
14272
|
var CRLF = "\r\n";
|
|
@@ -14368,9 +14274,9 @@ var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
|
14368
14274
|
var CRLF_BYTES_COUNT = 2;
|
|
14369
14275
|
var FormDataPart = class {
|
|
14370
14276
|
constructor(name, value) {
|
|
14371
|
-
const { escapeName
|
|
14277
|
+
const { escapeName } = this.constructor;
|
|
14372
14278
|
const isStringValue = utils_default.isString(value);
|
|
14373
|
-
let headers = `Content-Disposition: form-data; name="${
|
|
14279
|
+
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
|
|
14374
14280
|
if (isStringValue) {
|
|
14375
14281
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
14376
14282
|
} else {
|
|
@@ -14445,7 +14351,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
14445
14351
|
};
|
|
14446
14352
|
var formDataToStream_default = formDataToStream;
|
|
14447
14353
|
|
|
14448
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14354
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
14449
14355
|
import stream2 from "stream";
|
|
14450
14356
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
14451
14357
|
__transform(chunk, encoding, callback) {
|
|
@@ -14467,7 +14373,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
14467
14373
|
};
|
|
14468
14374
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
14469
14375
|
|
|
14470
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14376
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
|
|
14471
14377
|
import http2 from "http2";
|
|
14472
14378
|
import util2 from "util";
|
|
14473
14379
|
var Http2Sessions = class {
|
|
@@ -14531,7 +14437,7 @@ var Http2Sessions = class {
|
|
|
14531
14437
|
timer = null;
|
|
14532
14438
|
}
|
|
14533
14439
|
stream4.once("close", () => {
|
|
14534
|
-
if (!--streamsCount
|
|
14440
|
+
if (!--streamsCount) {
|
|
14535
14441
|
timer = setTimeout(() => {
|
|
14536
14442
|
timer = null;
|
|
14537
14443
|
removeSession();
|
|
@@ -14543,7 +14449,6 @@ var Http2Sessions = class {
|
|
|
14543
14449
|
}
|
|
14544
14450
|
session.once("close", removeSession);
|
|
14545
14451
|
session.once("error", removeSession);
|
|
14546
|
-
session.once("goaway", removeSession);
|
|
14547
14452
|
let entry = [session, options];
|
|
14548
14453
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14549
14454
|
return session;
|
|
@@ -14551,7 +14456,7 @@ var Http2Sessions = class {
|
|
|
14551
14456
|
};
|
|
14552
14457
|
var Http2Sessions_default = Http2Sessions;
|
|
14553
14458
|
|
|
14554
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14459
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
14555
14460
|
var callbackify = (fn, reducer) => {
|
|
14556
14461
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14557
14462
|
const cb = args.pop();
|
|
@@ -14566,8 +14471,7 @@ var callbackify = (fn, reducer) => {
|
|
|
14566
14471
|
};
|
|
14567
14472
|
var callbackify_default = callbackify;
|
|
14568
14473
|
|
|
14569
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14570
|
-
import { domainToASCII } from "url";
|
|
14474
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
14571
14475
|
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
14572
14476
|
var trimTrailingDots = (value) => {
|
|
14573
14477
|
let end = value.length;
|
|
@@ -14761,20 +14665,7 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
14761
14665
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
14762
14666
|
hostname = hostname.slice(1, -1);
|
|
14763
14667
|
}
|
|
14764
|
-
|
|
14765
|
-
if (trimmed.indexOf(":") !== -1) {
|
|
14766
|
-
try {
|
|
14767
|
-
trimmed = new URL("http://[" + trimmed + "]/").hostname.slice(1, -1);
|
|
14768
|
-
} catch (_err) {
|
|
14769
|
-
return trimmed;
|
|
14770
|
-
}
|
|
14771
|
-
} else if (/[\u0080-\uffff]/.test(trimmed)) {
|
|
14772
|
-
const prefix = /^[*.]+/.exec(trimmed);
|
|
14773
|
-
const start = prefix ? prefix[0] : "";
|
|
14774
|
-
const ascii = domainToASCII(trimmed.slice(start.length));
|
|
14775
|
-
if (!ascii) return "";
|
|
14776
|
-
trimmed = start + trimTrailingDots(ascii);
|
|
14777
|
-
}
|
|
14668
|
+
const trimmed = trimTrailingDots(hostname);
|
|
14778
14669
|
const ipv4 = normalizeIPAddress(trimmed);
|
|
14779
14670
|
if (ipv4 !== trimmed) {
|
|
14780
14671
|
return ipv4;
|
|
@@ -14904,7 +14795,7 @@ function shouldBypassProxy(location) {
|
|
|
14904
14795
|
});
|
|
14905
14796
|
}
|
|
14906
14797
|
|
|
14907
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14798
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
14908
14799
|
function speedometer(samplesCount, min) {
|
|
14909
14800
|
samplesCount = samplesCount || 10;
|
|
14910
14801
|
const bytes = new Array(samplesCount);
|
|
@@ -14940,7 +14831,7 @@ function speedometer(samplesCount, min) {
|
|
|
14940
14831
|
}
|
|
14941
14832
|
var speedometer_default = speedometer;
|
|
14942
14833
|
|
|
14943
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14834
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
14944
14835
|
function throttle(fn, freq) {
|
|
14945
14836
|
let timestamp = 0;
|
|
14946
14837
|
let threshold = 1e3 / freq;
|
|
@@ -14976,7 +14867,7 @@ function throttle(fn, freq) {
|
|
|
14976
14867
|
}
|
|
14977
14868
|
var throttle_default = throttle;
|
|
14978
14869
|
|
|
14979
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14870
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
14980
14871
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14981
14872
|
let bytesNotified = 0;
|
|
14982
14873
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -15017,7 +14908,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
15017
14908
|
};
|
|
15018
14909
|
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
15019
14910
|
|
|
15020
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14911
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
15021
14912
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
15022
14913
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
15023
14914
|
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
@@ -15045,26 +14936,6 @@ var estimateBase64BufferAllocation = (body) => {
|
|
|
15045
14936
|
}
|
|
15046
14937
|
return Math.floor((len - padding) * 3 / 4);
|
|
15047
14938
|
};
|
|
15048
|
-
var estimatePercentDecodedBase64BufferAllocation = (body) => {
|
|
15049
|
-
if (body.indexOf("%") === -1) {
|
|
15050
|
-
return estimateBase64BufferAllocation(body);
|
|
15051
|
-
}
|
|
15052
|
-
let length = 0;
|
|
15053
|
-
let previous = 0;
|
|
15054
|
-
let last = 0;
|
|
15055
|
-
for (let i = 0, len = body.length; i < len; i++) {
|
|
15056
|
-
let code = body.charCodeAt(i);
|
|
15057
|
-
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
15058
|
-
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
15059
|
-
i += 2;
|
|
15060
|
-
}
|
|
15061
|
-
length++;
|
|
15062
|
-
previous = last;
|
|
15063
|
-
last = code;
|
|
15064
|
-
}
|
|
15065
|
-
const padding = last === 61 ? previous === 61 ? 2 : 1 : 0;
|
|
15066
|
-
return Math.floor((length - padding) * 3 / 4);
|
|
15067
|
-
};
|
|
15068
14939
|
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
15069
14940
|
const len = body.length;
|
|
15070
14941
|
let significant = 0;
|
|
@@ -15094,14 +14965,14 @@ var estimatePercentDecodedBase64Bytes = (body) => {
|
|
|
15094
14965
|
}
|
|
15095
14966
|
return base64Bytes(significant);
|
|
15096
14967
|
};
|
|
15097
|
-
var estimateDataURLBytes = (url2, estimateBase64
|
|
14968
|
+
var estimateDataURLBytes = (url2, estimateBase64) => {
|
|
15098
14969
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
15099
|
-
if (
|
|
14970
|
+
if (!url2.startsWith("data:")) return 0;
|
|
15100
14971
|
const comma = url2.indexOf(",");
|
|
15101
14972
|
if (comma < 0) return 0;
|
|
15102
14973
|
const meta = url2.slice(5, comma);
|
|
15103
14974
|
const body = url2.slice(comma + 1);
|
|
15104
|
-
const isBase64 =
|
|
14975
|
+
const isBase64 = /;base64/i.test(meta);
|
|
15105
14976
|
if (isBase64) {
|
|
15106
14977
|
return estimateBase64(body);
|
|
15107
14978
|
}
|
|
@@ -15133,15 +15004,14 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
15133
15004
|
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
15134
15005
|
return estimateDataURLBytes(
|
|
15135
15006
|
fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
|
|
15136
|
-
estimatePercentDecodedBase64Bytes
|
|
15137
|
-
/; *base64[\t\n\f\r ]*$/i
|
|
15007
|
+
estimatePercentDecodedBase64Bytes
|
|
15138
15008
|
);
|
|
15139
15009
|
}
|
|
15140
15010
|
function estimateDataURLBufferAllocation(url2) {
|
|
15141
|
-
return estimateDataURLBytes(url2,
|
|
15011
|
+
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
15142
15012
|
}
|
|
15143
15013
|
|
|
15144
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15014
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
15145
15015
|
var zlibOptions = {
|
|
15146
15016
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
15147
15017
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -15172,18 +15042,6 @@ function handleSocketError(err) {
|
|
|
15172
15042
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
15173
15043
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
15174
15044
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
15175
|
-
var directAgents = /* @__PURE__ */ new WeakMap();
|
|
15176
|
-
var directAgentHooks = ["createConnection", "getName"];
|
|
15177
|
-
var nativeAgentPoolHooks = [
|
|
15178
|
-
"addRequest",
|
|
15179
|
-
"createSocket",
|
|
15180
|
-
"removeSocket",
|
|
15181
|
-
"keepSocketAlive",
|
|
15182
|
-
"reuseSocket",
|
|
15183
|
-
"_getSession",
|
|
15184
|
-
"_cacheSession",
|
|
15185
|
-
"_evictSession"
|
|
15186
|
-
];
|
|
15187
15045
|
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
15188
15046
|
22: 21,
|
|
15189
15047
|
24: 5
|
|
@@ -15213,49 +15071,6 @@ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.
|
|
|
15213
15071
|
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15214
15072
|
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
15215
15073
|
}
|
|
15216
|
-
function getDirectAgent(configuredAgent, transport) {
|
|
15217
|
-
if (!process.allowedNodeEnvironmentFlags || !process.allowedNodeEnvironmentFlags.has("--use-env-proxy")) {
|
|
15218
|
-
return configuredAgent;
|
|
15219
|
-
}
|
|
15220
|
-
const agent = configuredAgent || transport.globalAgent;
|
|
15221
|
-
const options = agent && agent.options;
|
|
15222
|
-
if (!(agent instanceof transport.Agent) || agent.protocol !== transport.globalAgent.protocol || !options || !utils_default.hasOwnProp(options, "proxyEnv") || typeof options.proxyEnv !== "object" || options.proxyEnv === null) {
|
|
15223
|
-
return configuredAgent;
|
|
15224
|
-
}
|
|
15225
|
-
for (const hook of nativeAgentPoolHooks) {
|
|
15226
|
-
if (utils_default.isFunction(transport.Agent.prototype[hook]) && agent[hook] !== transport.Agent.prototype[hook]) {
|
|
15227
|
-
throw new AxiosError_default(
|
|
15228
|
-
"proxy: false cannot adapt an agent overriding " + hook + "; use an agent constructed without proxyEnv",
|
|
15229
|
-
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
15230
|
-
);
|
|
15231
|
-
}
|
|
15232
|
-
}
|
|
15233
|
-
let direct = directAgents.get(agent);
|
|
15234
|
-
if (!direct) {
|
|
15235
|
-
direct = new transport.Agent({ ...options, proxyEnv: void 0 });
|
|
15236
|
-
const destroy = agent.destroy;
|
|
15237
|
-
agent.destroy = function destroyWithDirectAgent() {
|
|
15238
|
-
try {
|
|
15239
|
-
return destroy.apply(this, arguments);
|
|
15240
|
-
} finally {
|
|
15241
|
-
direct.destroy();
|
|
15242
|
-
}
|
|
15243
|
-
};
|
|
15244
|
-
directAgents.set(agent, direct);
|
|
15245
|
-
}
|
|
15246
|
-
for (const hook of directAgentHooks) {
|
|
15247
|
-
direct[hook] = agent[hook] === transport.Agent.prototype[hook] ? transport.Agent.prototype[hook] : bind(agent[hook], agent);
|
|
15248
|
-
}
|
|
15249
|
-
return direct;
|
|
15250
|
-
}
|
|
15251
|
-
function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15252
|
-
const secure = isHttps.test(options.protocol);
|
|
15253
|
-
const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? https : http);
|
|
15254
|
-
options.agent = agent;
|
|
15255
|
-
if (options.agents) {
|
|
15256
|
-
options.agents[secure ? "https" : "http"] = agent;
|
|
15257
|
-
}
|
|
15258
|
-
}
|
|
15259
15074
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
15260
15075
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
15261
15076
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -15263,12 +15078,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
|
15263
15078
|
if (agent) return agent;
|
|
15264
15079
|
const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
|
|
15265
15080
|
agent = new import_https_proxy_agent.default(merged);
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
const
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15081
|
+
if (userHttpsAgent && userHttpsAgent.options) {
|
|
15082
|
+
const originTLSOptions = { ...userHttpsAgent.options };
|
|
15083
|
+
const callback = agent.callback;
|
|
15084
|
+
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
15085
|
+
return callback.call(this, req, { ...originTLSOptions, ...opts });
|
|
15086
|
+
};
|
|
15087
|
+
}
|
|
15272
15088
|
agent[kAxiosInstalledTunnel] = true;
|
|
15273
15089
|
cache.set(key, agent);
|
|
15274
15090
|
return agent;
|
|
@@ -15292,10 +15108,6 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
|
15292
15108
|
};
|
|
15293
15109
|
var http2Sessions = new Http2Sessions_default();
|
|
15294
15110
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
15295
|
-
if (!isSameOriginRedirect(options, requestDetails)) {
|
|
15296
|
-
stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
|
|
15297
|
-
delete options.auth;
|
|
15298
|
-
}
|
|
15299
15111
|
if (options.beforeRedirects.proxy) {
|
|
15300
15112
|
options.beforeRedirects.proxy(options);
|
|
15301
15113
|
}
|
|
@@ -15305,9 +15117,6 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
|
15305
15117
|
if (options.beforeRedirects.sensitiveHeaders) {
|
|
15306
15118
|
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
15307
15119
|
}
|
|
15308
|
-
if (options.beforeRedirects.direct) {
|
|
15309
|
-
options.beforeRedirects.direct(options);
|
|
15310
|
-
}
|
|
15311
15120
|
if (options.beforeRedirects.config) {
|
|
15312
15121
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
15313
15122
|
}
|
|
@@ -15353,9 +15162,6 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
|
|
|
15353
15162
|
if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
|
|
15354
15163
|
options.agent = void 0;
|
|
15355
15164
|
}
|
|
15356
|
-
if (isRedirect && options.agents && options.agents.https && options.agents.https[kAxiosInstalledTunnel]) {
|
|
15357
|
-
options.agents.https = configHttpsAgent;
|
|
15358
|
-
}
|
|
15359
15165
|
if (proxy) {
|
|
15360
15166
|
const isProxyURL = proxy instanceof URL;
|
|
15361
15167
|
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
@@ -15536,9 +15342,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15536
15342
|
if (httpVersion === void 0) httpVersion = 1;
|
|
15537
15343
|
const rawHttpVersion = httpVersion;
|
|
15538
15344
|
let http2Options = own2("http2Options");
|
|
15539
|
-
const configProxy = own2("proxy");
|
|
15540
15345
|
const httpAgent = own2("httpAgent");
|
|
15541
15346
|
const httpsAgent = own2("httpsAgent");
|
|
15347
|
+
const configProxy = own2("proxy");
|
|
15542
15348
|
const responseType = own2("responseType");
|
|
15543
15349
|
const responseEncoding = own2("responseEncoding");
|
|
15544
15350
|
const socketPath = own2("socketPath");
|
|
@@ -15677,15 +15483,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15677
15483
|
} catch (err) {
|
|
15678
15484
|
throw AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config);
|
|
15679
15485
|
}
|
|
15680
|
-
if (maxContentLength > -1 && (responseType === "blob" ? convertedData.size : convertedData.length) > maxContentLength) {
|
|
15681
|
-
return reject(
|
|
15682
|
-
new AxiosError_default(
|
|
15683
|
-
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
15684
|
-
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15685
|
-
config
|
|
15686
|
-
)
|
|
15687
|
-
);
|
|
15688
|
-
}
|
|
15689
15486
|
if (responseType === "text") {
|
|
15690
15487
|
convertedData = convertedData.toString(responseEncoding);
|
|
15691
15488
|
if (!responseEncoding || responseEncoding === "utf8") {
|
|
@@ -15888,13 +15685,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15888
15685
|
}
|
|
15889
15686
|
let transport;
|
|
15890
15687
|
let isNativeTransport = false;
|
|
15688
|
+
let transportEnforcesMaxBodyLength = false;
|
|
15891
15689
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
15892
|
-
if (
|
|
15893
|
-
setDirectAgent(options, httpAgent, httpsAgent);
|
|
15894
|
-
options.beforeRedirects.direct = (redirectOptions) => {
|
|
15895
|
-
setDirectAgent(redirectOptions, httpAgent, httpsAgent);
|
|
15896
|
-
};
|
|
15897
|
-
} else if (options.agent == null) {
|
|
15690
|
+
if (options.agent == null) {
|
|
15898
15691
|
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
15899
15692
|
}
|
|
15900
15693
|
if (isHttp2) {
|
|
@@ -15916,6 +15709,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15916
15709
|
transport = isHttpsRequest ? https : http;
|
|
15917
15710
|
isNativeTransport = true;
|
|
15918
15711
|
} else {
|
|
15712
|
+
transportEnforcesMaxBodyLength = true;
|
|
15919
15713
|
options.sensitiveHeaders = [];
|
|
15920
15714
|
if (maxRedirects) {
|
|
15921
15715
|
options.maxRedirects = maxRedirects;
|
|
@@ -16201,7 +15995,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16201
15995
|
}
|
|
16202
15996
|
});
|
|
16203
15997
|
let uploadStream = data;
|
|
16204
|
-
if (maxBodyLength > -1) {
|
|
15998
|
+
if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
|
|
16205
15999
|
const limit = maxBodyLength;
|
|
16206
16000
|
let bytesSent = 0;
|
|
16207
16001
|
uploadStream = stream3.pipeline(
|
|
@@ -16238,14 +16032,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16238
16032
|
});
|
|
16239
16033
|
};
|
|
16240
16034
|
|
|
16241
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16242
|
-
var
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16035
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
16036
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
16037
|
+
url2 = new URL(url2, platform_default.origin);
|
|
16038
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
16039
|
+
})(
|
|
16040
|
+
new URL(platform_default.origin),
|
|
16041
|
+
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
16042
|
+
) : () => true;
|
|
16043
|
+
|
|
16044
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
16249
16045
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
16250
16046
|
// Standard browser envs support document.cookie
|
|
16251
16047
|
{
|
|
@@ -16271,29 +16067,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
16271
16067
|
},
|
|
16272
16068
|
read(name) {
|
|
16273
16069
|
if (typeof document === "undefined") return null;
|
|
16274
|
-
const
|
|
16275
|
-
if (!cookieString) return null;
|
|
16276
|
-
const cookies = cookieString.split(";");
|
|
16070
|
+
const cookies = document.cookie.split(";");
|
|
16277
16071
|
for (let i = 0; i < cookies.length; i++) {
|
|
16278
16072
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
16279
16073
|
const eq = cookie.indexOf("=");
|
|
16280
16074
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
16281
|
-
|
|
16075
|
+
try {
|
|
16076
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
16077
|
+
} catch (e) {
|
|
16078
|
+
return cookie.slice(eq + 1);
|
|
16079
|
+
}
|
|
16282
16080
|
}
|
|
16283
16081
|
}
|
|
16284
16082
|
return null;
|
|
16285
16083
|
},
|
|
16286
|
-
async readAsync(name) {
|
|
16287
|
-
try {
|
|
16288
|
-
const store = typeof window !== "undefined" && window.cookieStore;
|
|
16289
|
-
if (store && utils_default.isFunction(store.get)) {
|
|
16290
|
-
const cookie = await store.get(name);
|
|
16291
|
-
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
16292
|
-
}
|
|
16293
|
-
} catch (e) {
|
|
16294
|
-
}
|
|
16295
|
-
return this.read(name);
|
|
16296
|
-
},
|
|
16297
16084
|
remove(name) {
|
|
16298
16085
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
16299
16086
|
}
|
|
@@ -16306,224 +16093,130 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
16306
16093
|
read() {
|
|
16307
16094
|
return null;
|
|
16308
16095
|
},
|
|
16309
|
-
async readAsync() {
|
|
16310
|
-
return null;
|
|
16311
|
-
},
|
|
16312
16096
|
remove() {
|
|
16313
16097
|
}
|
|
16314
16098
|
}
|
|
16315
16099
|
);
|
|
16316
16100
|
|
|
16317
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16318
|
-
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2) => (url2) => {
|
|
16319
|
-
url2 = new URL(url2, document.baseURI || platform_default.origin);
|
|
16320
|
-
return origin2.protocol === url2.protocol && origin2.host === url2.host && origin2.port === url2.port;
|
|
16321
|
-
})(new URL(platform_default.origin)) : () => true;
|
|
16322
|
-
|
|
16323
|
-
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js
|
|
16324
|
-
function assertParamsAcyclic(params) {
|
|
16325
|
-
const pending = [{ value: params }];
|
|
16326
|
-
const active = /* @__PURE__ */ new WeakSet();
|
|
16327
|
-
const visited = /* @__PURE__ */ new WeakSet();
|
|
16328
|
-
while (pending.length) {
|
|
16329
|
-
const { value, done } = pending.pop();
|
|
16330
|
-
if (!utils_default.isPlainObject(value) && !utils_default.isArray(value)) continue;
|
|
16331
|
-
if (done) {
|
|
16332
|
-
active.delete(value);
|
|
16333
|
-
continue;
|
|
16334
|
-
}
|
|
16335
|
-
if (active.has(value)) {
|
|
16336
|
-
throw new AxiosError_default(
|
|
16337
|
-
"Circular reference detected in params",
|
|
16338
|
-
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
16339
|
-
);
|
|
16340
|
-
}
|
|
16341
|
-
if (visited.has(value)) continue;
|
|
16342
|
-
visited.add(value);
|
|
16343
|
-
active.add(value);
|
|
16344
|
-
pending.push({ value, done: true });
|
|
16345
|
-
const keys = Object.keys(value);
|
|
16346
|
-
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16347
|
-
Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
16348
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
16349
|
-
if (descriptor && descriptor.enumerable) keys.push(key);
|
|
16350
|
-
});
|
|
16351
|
-
}
|
|
16352
|
-
keys.forEach((key) => {
|
|
16353
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
16354
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
16355
|
-
if (descriptor && utils_default.hasOwnProp(descriptor, "value")) {
|
|
16356
|
-
pending.push({ value: descriptor.value });
|
|
16357
|
-
}
|
|
16358
|
-
} else {
|
|
16359
|
-
pending.push({ value: value[key] });
|
|
16360
|
-
}
|
|
16361
|
-
});
|
|
16362
|
-
}
|
|
16363
|
-
}
|
|
16364
|
-
|
|
16365
|
-
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
16101
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
16366
16102
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
16367
16103
|
var ownEnumerableKeys = (thing) => {
|
|
16368
16104
|
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16369
16105
|
return Object.keys(thing).concat(
|
|
16370
|
-
Object.getOwnPropertySymbols(thing).filter(
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
})
|
|
16106
|
+
Object.getOwnPropertySymbols(thing).filter(
|
|
16107
|
+
(symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
|
|
16108
|
+
)
|
|
16374
16109
|
);
|
|
16375
16110
|
}
|
|
16376
16111
|
return Object.keys(thing);
|
|
16377
16112
|
};
|
|
16378
|
-
function
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
const
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
if (
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
const { base, source, result: target } = pending.pop();
|
|
16401
|
-
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
16402
|
-
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
16403
|
-
const keys = /* @__PURE__ */ new Set([...baseKeys, ...sourceKeys]);
|
|
16404
|
-
keys.forEach((key) => {
|
|
16405
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
16406
|
-
const hasSource = sourceKeys.has(key);
|
|
16407
|
-
const value = hasSource ? source[key] : void 0;
|
|
16408
|
-
const previous = (!hasSource || utils_default.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
|
|
16409
|
-
target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
|
|
16410
|
-
});
|
|
16113
|
+
function mergeConfig(config1, config2) {
|
|
16114
|
+
config1 = config1 || {};
|
|
16115
|
+
config2 = config2 || {};
|
|
16116
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
16117
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
16118
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
16119
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
16120
|
+
__proto__: null,
|
|
16121
|
+
value: Object.prototype.hasOwnProperty,
|
|
16122
|
+
enumerable: false,
|
|
16123
|
+
writable: true,
|
|
16124
|
+
configurable: true
|
|
16125
|
+
});
|
|
16126
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
16127
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
16128
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
16129
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
16130
|
+
return utils_default.merge({}, source);
|
|
16131
|
+
} else if (utils_default.isArray(source)) {
|
|
16132
|
+
return source.slice();
|
|
16133
|
+
}
|
|
16134
|
+
return source;
|
|
16411
16135
|
}
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
} else if (utils_default.isPlainObject(source)) {
|
|
16419
|
-
return utils_default.merge({}, source);
|
|
16420
|
-
} else if (utils_default.isArray(source)) {
|
|
16421
|
-
return source.slice();
|
|
16422
|
-
}
|
|
16423
|
-
return source;
|
|
16424
|
-
}
|
|
16425
|
-
function mergeDeepProperties(a, b, prop, caseless) {
|
|
16426
|
-
if (!utils_default.isUndefined(b)) {
|
|
16427
|
-
return getMergedValue(a, b, prop, caseless);
|
|
16428
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
16429
|
-
return getMergedValue(void 0, a, prop, caseless);
|
|
16136
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
16137
|
+
if (!utils_default.isUndefined(b)) {
|
|
16138
|
+
return getMergedValue(a, b, prop, caseless);
|
|
16139
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
16140
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
16141
|
+
}
|
|
16430
16142
|
}
|
|
16431
|
-
|
|
16432
|
-
|
|
16433
|
-
|
|
16434
|
-
|
|
16143
|
+
function valueFromConfig2(a, b) {
|
|
16144
|
+
if (!utils_default.isUndefined(b)) {
|
|
16145
|
+
return getMergedValue(void 0, b);
|
|
16146
|
+
}
|
|
16435
16147
|
}
|
|
16436
|
-
|
|
16437
|
-
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16148
|
+
function defaultToConfig2(a, b) {
|
|
16149
|
+
if (!utils_default.isUndefined(b)) {
|
|
16150
|
+
return getMergedValue(void 0, b);
|
|
16151
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
16152
|
+
return getMergedValue(void 0, a);
|
|
16153
|
+
}
|
|
16442
16154
|
}
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
|
|
16448
|
-
|
|
16449
|
-
|
|
16155
|
+
function getMergedTransitionalOption(prop) {
|
|
16156
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
16157
|
+
if (!utils_default.isUndefined(transitional2)) {
|
|
16158
|
+
if (utils_default.isPlainObject(transitional2)) {
|
|
16159
|
+
if (utils_default.hasOwnProp(transitional2, prop)) {
|
|
16160
|
+
return transitional2[prop];
|
|
16161
|
+
}
|
|
16162
|
+
} else {
|
|
16163
|
+
return void 0;
|
|
16450
16164
|
}
|
|
16451
|
-
} else {
|
|
16452
|
-
return void 0;
|
|
16453
16165
|
}
|
|
16166
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
16167
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
16168
|
+
return transitional1[prop];
|
|
16169
|
+
}
|
|
16170
|
+
return void 0;
|
|
16454
16171
|
}
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
|
|
16459
|
-
|
|
16460
|
-
}
|
|
16461
|
-
|
|
16462
|
-
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
onDownloadProgress: defaultToConfig2,
|
|
16497
|
-
decompress: defaultToConfig2,
|
|
16498
|
-
maxContentLength: defaultToConfig2,
|
|
16499
|
-
maxBodyLength: defaultToConfig2,
|
|
16500
|
-
beforeRedirect: defaultToConfig2,
|
|
16501
|
-
transport: defaultToConfig2,
|
|
16502
|
-
httpAgent: defaultToConfig2,
|
|
16503
|
-
httpsAgent: defaultToConfig2,
|
|
16504
|
-
cancelToken: defaultToConfig2,
|
|
16505
|
-
socketPath: defaultToConfig2,
|
|
16506
|
-
allowedSocketPaths: defaultToConfig2,
|
|
16507
|
-
responseEncoding: defaultToConfig2,
|
|
16508
|
-
validateStatus: mergeDirectKeys,
|
|
16509
|
-
headers: mergeHeaders
|
|
16510
|
-
};
|
|
16511
|
-
function mergeConfig(config1, config2) {
|
|
16512
|
-
config1 = config1 || {};
|
|
16513
|
-
config2 = config2 || {};
|
|
16514
|
-
const config = /* @__PURE__ */ Object.create(null);
|
|
16515
|
-
Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
|
|
16516
|
-
const keys = ownEnumerableKeys({ ...config1, ...config2 });
|
|
16517
|
-
for (let i = 0, len = keys.length; i < len; i++) {
|
|
16518
|
-
const prop = keys[i];
|
|
16519
|
-
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") continue;
|
|
16172
|
+
function mergeDirectKeys(a, b, prop) {
|
|
16173
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
16174
|
+
return getMergedValue(a, b);
|
|
16175
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
16176
|
+
return getMergedValue(void 0, a);
|
|
16177
|
+
}
|
|
16178
|
+
}
|
|
16179
|
+
const mergeMap = {
|
|
16180
|
+
url: valueFromConfig2,
|
|
16181
|
+
method: valueFromConfig2,
|
|
16182
|
+
data: valueFromConfig2,
|
|
16183
|
+
baseURL: defaultToConfig2,
|
|
16184
|
+
transformRequest: defaultToConfig2,
|
|
16185
|
+
transformResponse: defaultToConfig2,
|
|
16186
|
+
paramsSerializer: defaultToConfig2,
|
|
16187
|
+
timeout: defaultToConfig2,
|
|
16188
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
16189
|
+
withCredentials: defaultToConfig2,
|
|
16190
|
+
withXSRFToken: defaultToConfig2,
|
|
16191
|
+
adapter: defaultToConfig2,
|
|
16192
|
+
responseType: defaultToConfig2,
|
|
16193
|
+
xsrfCookieName: defaultToConfig2,
|
|
16194
|
+
xsrfHeaderName: defaultToConfig2,
|
|
16195
|
+
onUploadProgress: defaultToConfig2,
|
|
16196
|
+
onDownloadProgress: defaultToConfig2,
|
|
16197
|
+
decompress: defaultToConfig2,
|
|
16198
|
+
maxContentLength: defaultToConfig2,
|
|
16199
|
+
maxBodyLength: defaultToConfig2,
|
|
16200
|
+
beforeRedirect: defaultToConfig2,
|
|
16201
|
+
transport: defaultToConfig2,
|
|
16202
|
+
httpAgent: defaultToConfig2,
|
|
16203
|
+
httpsAgent: defaultToConfig2,
|
|
16204
|
+
cancelToken: defaultToConfig2,
|
|
16205
|
+
socketPath: defaultToConfig2,
|
|
16206
|
+
allowedSocketPaths: defaultToConfig2,
|
|
16207
|
+
responseEncoding: defaultToConfig2,
|
|
16208
|
+
validateStatus: mergeDirectKeys,
|
|
16209
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
16210
|
+
};
|
|
16211
|
+
utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
16212
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
16520
16213
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
16521
16214
|
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
16522
16215
|
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
16523
|
-
const configValue = merge2
|
|
16216
|
+
const configValue = merge2(a, b, prop);
|
|
16524
16217
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
16525
|
-
}
|
|
16526
|
-
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption(
|
|
16218
|
+
});
|
|
16219
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
16527
16220
|
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
16528
16221
|
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
16529
16222
|
} else {
|
|
@@ -16533,13 +16226,12 @@ function mergeConfig(config1, config2) {
|
|
|
16533
16226
|
return config;
|
|
16534
16227
|
}
|
|
16535
16228
|
|
|
16536
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16229
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
16537
16230
|
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
16538
16231
|
/%([0-9A-F]{2})/gi,
|
|
16539
16232
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
16540
16233
|
);
|
|
16541
|
-
|
|
16542
|
-
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
16234
|
+
function resolveConfig(config) {
|
|
16543
16235
|
const newConfig = mergeConfig({}, config);
|
|
16544
16236
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
16545
16237
|
const data = own2("data");
|
|
@@ -16560,15 +16252,10 @@ function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
|
16560
16252
|
if (auth) {
|
|
16561
16253
|
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
16562
16254
|
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
16563
|
-
const transitional2 = own2("transitional");
|
|
16564
|
-
const encodeUsername = transitional2 && utils_default.hasOwnProp(transitional2, "encodeBasicAuthUsername") && transitional2.encodeBasicAuthUsername === true;
|
|
16565
16255
|
try {
|
|
16566
16256
|
headers.set(
|
|
16567
16257
|
"Authorization",
|
|
16568
|
-
|
|
16569
|
-
"Basic " + btoa(
|
|
16570
|
-
(encodeUsername ? encodeUTF8(username) : username) + ":" + (password ? encodeUTF8(password) : "")
|
|
16571
|
-
)
|
|
16258
|
+
"Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
|
|
16572
16259
|
);
|
|
16573
16260
|
} catch (e) {
|
|
16574
16261
|
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
@@ -16588,7 +16275,7 @@ function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
|
16588
16275
|
}
|
|
16589
16276
|
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
16590
16277
|
if (shouldSendXSRF) {
|
|
16591
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
16278
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
16592
16279
|
if (xsrfValue) {
|
|
16593
16280
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
16594
16281
|
}
|
|
@@ -16598,54 +16285,20 @@ function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
|
16598
16285
|
}
|
|
16599
16286
|
var resolveConfig_default = resolveConfig;
|
|
16600
16287
|
|
|
16601
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16288
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
|
|
16602
16289
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
16603
16290
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
16604
16291
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
16605
|
-
|
|
16606
|
-
try {
|
|
16607
|
-
const store = platform_default.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
|
|
16608
|
-
useAsyncXsrf = store && utils_default.isFunction(store.get);
|
|
16609
|
-
} catch (e) {
|
|
16610
|
-
}
|
|
16611
|
-
let xsrfCookieName;
|
|
16612
|
-
const _config = resolveConfig_default(
|
|
16613
|
-
config,
|
|
16614
|
-
useAsyncXsrf ? (name) => {
|
|
16615
|
-
xsrfCookieName = name;
|
|
16616
|
-
return null;
|
|
16617
|
-
} : void 0
|
|
16618
|
-
);
|
|
16292
|
+
const _config = resolveConfig_default(config);
|
|
16619
16293
|
let requestData = _config.data;
|
|
16620
16294
|
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
16621
16295
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
16622
16296
|
let onCanceled;
|
|
16623
|
-
let timeoutId;
|
|
16624
16297
|
let uploadThrottled, downloadThrottled;
|
|
16625
16298
|
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
16626
16299
|
function done() {
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
flushUpload && flushUpload();
|
|
16630
|
-
} catch (err) {
|
|
16631
|
-
setTimeout(() => {
|
|
16632
|
-
throw err;
|
|
16633
|
-
});
|
|
16634
|
-
}
|
|
16635
|
-
try {
|
|
16636
|
-
flushDownload && flushDownload();
|
|
16637
|
-
} catch (err) {
|
|
16638
|
-
setTimeout(() => {
|
|
16639
|
-
throw err;
|
|
16640
|
-
});
|
|
16641
|
-
}
|
|
16642
|
-
if (request) {
|
|
16643
|
-
downloadThrottled && request.removeEventListener("progress", downloadThrottled);
|
|
16644
|
-
if (request.upload) {
|
|
16645
|
-
uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
|
|
16646
|
-
flushUpload && request.upload.removeEventListener("loadend", flushUpload);
|
|
16647
|
-
}
|
|
16648
|
-
}
|
|
16300
|
+
flushUpload && flushUpload();
|
|
16301
|
+
flushDownload && flushDownload();
|
|
16649
16302
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
16650
16303
|
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
16651
16304
|
}
|
|
@@ -16731,7 +16384,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16731
16384
|
request = null;
|
|
16732
16385
|
};
|
|
16733
16386
|
request.ontimeout = function handleTimeout() {
|
|
16734
|
-
if (!request) return;
|
|
16735
16387
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
16736
16388
|
const transitional2 = _config.transitional || transitional_default;
|
|
16737
16389
|
if (_config.timeoutErrorMessage) {
|
|
@@ -16749,6 +16401,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16749
16401
|
request = null;
|
|
16750
16402
|
};
|
|
16751
16403
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
16404
|
+
if ("setRequestHeader" in request) {
|
|
16405
|
+
utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
16406
|
+
request.setRequestHeader(key, val);
|
|
16407
|
+
});
|
|
16408
|
+
}
|
|
16752
16409
|
if (!utils_default.isUndefined(_config.withCredentials)) {
|
|
16753
16410
|
request.withCredentials = !!_config.withCredentials;
|
|
16754
16411
|
}
|
|
@@ -16773,18 +16430,15 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16773
16430
|
return;
|
|
16774
16431
|
}
|
|
16775
16432
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
16776
|
-
|
|
16433
|
+
request.abort();
|
|
16777
16434
|
done();
|
|
16778
16435
|
request = null;
|
|
16779
|
-
xhr.abort();
|
|
16780
16436
|
};
|
|
16781
16437
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
16782
|
-
if (!request) return;
|
|
16783
16438
|
if (_config.signal) {
|
|
16784
16439
|
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
16785
16440
|
}
|
|
16786
16441
|
}
|
|
16787
|
-
if (!request) return;
|
|
16788
16442
|
const protocol = parseProtocol(_config.url);
|
|
16789
16443
|
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
16790
16444
|
reject(
|
|
@@ -16797,62 +16451,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16797
16451
|
done();
|
|
16798
16452
|
return;
|
|
16799
16453
|
}
|
|
16800
|
-
|
|
16801
|
-
if (!request) return;
|
|
16802
|
-
if ("setRequestHeader" in request) {
|
|
16803
|
-
utils_default.forEach(
|
|
16804
|
-
toByteStringHeaderObject(requestHeaders),
|
|
16805
|
-
function setRequestHeader(val, key) {
|
|
16806
|
-
request.setRequestHeader(key, val);
|
|
16807
|
-
}
|
|
16808
|
-
);
|
|
16809
|
-
}
|
|
16810
|
-
request.send(requestData || null);
|
|
16811
|
-
};
|
|
16812
|
-
if (xsrfCookieName) {
|
|
16813
|
-
const now = typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
|
|
16814
|
-
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
|
|
16815
|
-
const abortOnTimeout = () => {
|
|
16816
|
-
if (!request) return;
|
|
16817
|
-
const xhr = request;
|
|
16818
|
-
xhr.ontimeout();
|
|
16819
|
-
xhr.abort();
|
|
16820
|
-
};
|
|
16821
|
-
if (deadline !== void 0) {
|
|
16822
|
-
const scheduleTimeout = () => {
|
|
16823
|
-
const remaining = deadline - now();
|
|
16824
|
-
if (remaining > 0) {
|
|
16825
|
-
timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
|
|
16826
|
-
} else {
|
|
16827
|
-
abortOnTimeout();
|
|
16828
|
-
}
|
|
16829
|
-
};
|
|
16830
|
-
scheduleTimeout();
|
|
16831
|
-
}
|
|
16832
|
-
cookies_default.readAsync(xsrfCookieName).then((value) => {
|
|
16833
|
-
if (!request) return;
|
|
16834
|
-
if (deadline !== void 0 && now() >= deadline) {
|
|
16835
|
-
abortOnTimeout();
|
|
16836
|
-
return;
|
|
16837
|
-
}
|
|
16838
|
-
if (value) {
|
|
16839
|
-
const headerName = utils_default.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
|
|
16840
|
-
requestHeaders.set(headerName, value);
|
|
16841
|
-
}
|
|
16842
|
-
sendRequest();
|
|
16843
|
-
}).catch((error) => {
|
|
16844
|
-
if (!request) return;
|
|
16845
|
-
reject(AxiosError_default.from(error, null, config, request));
|
|
16846
|
-
done();
|
|
16847
|
-
request = null;
|
|
16848
|
-
});
|
|
16849
|
-
} else {
|
|
16850
|
-
sendRequest();
|
|
16851
|
-
}
|
|
16454
|
+
request.send(requestData || null);
|
|
16852
16455
|
});
|
|
16853
16456
|
};
|
|
16854
16457
|
|
|
16855
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16458
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
16856
16459
|
var composeSignals = (signals, timeout) => {
|
|
16857
16460
|
signals = signals ? signals.filter(Boolean) : [];
|
|
16858
16461
|
if (!timeout && !signals.length) {
|
|
@@ -16881,8 +16484,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
16881
16484
|
timer && clearTimeout(timer);
|
|
16882
16485
|
timer = null;
|
|
16883
16486
|
signals.forEach((signal2) => {
|
|
16884
|
-
|
|
16885
|
-
utils_default.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal2, onabort) : signal2.removeEventListener("abort", onabort);
|
|
16487
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
16886
16488
|
});
|
|
16887
16489
|
signals = null;
|
|
16888
16490
|
};
|
|
@@ -16902,7 +16504,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
16902
16504
|
};
|
|
16903
16505
|
var composeSignals_default = composeSignals;
|
|
16904
16506
|
|
|
16905
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16507
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
16906
16508
|
var streamChunk = function* (chunk, chunkSize) {
|
|
16907
16509
|
let len = chunk.byteLength;
|
|
16908
16510
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -16982,111 +16584,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
16982
16584
|
);
|
|
16983
16585
|
};
|
|
16984
16586
|
|
|
16985
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16986
|
-
var CRLF2 = "\r\n";
|
|
16987
|
-
var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF2);
|
|
16988
|
-
var escapeName = (value) => String(value).replace(
|
|
16989
|
-
/[\r\n"]/g,
|
|
16990
|
-
(char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22"
|
|
16991
|
-
);
|
|
16992
|
-
var stringBytes = (value, normalize) => {
|
|
16993
|
-
let length = 0;
|
|
16994
|
-
for (let i = 0; i < value.length; i++) {
|
|
16995
|
-
const code = value.charCodeAt(i);
|
|
16996
|
-
if (normalize && (code === 13 || code === 10)) {
|
|
16997
|
-
if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
|
|
16998
|
-
length += 2;
|
|
16999
|
-
} else if (code < 128) {
|
|
17000
|
-
length++;
|
|
17001
|
-
} else if (code < 2048) {
|
|
17002
|
-
length += 2;
|
|
17003
|
-
} else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
|
|
17004
|
-
length += 4;
|
|
17005
|
-
i++;
|
|
17006
|
-
} else {
|
|
17007
|
-
length += 3;
|
|
17008
|
-
}
|
|
17009
|
-
}
|
|
17010
|
-
return length;
|
|
17011
|
-
};
|
|
17012
|
-
var FormDataError = class extends TypeError {
|
|
17013
|
-
constructor(message, reason) {
|
|
17014
|
-
super(message);
|
|
17015
|
-
this.name = "FormDataError";
|
|
17016
|
-
this.reason = reason;
|
|
17017
|
-
}
|
|
17018
|
-
};
|
|
17019
|
-
function formDataToBlob(form, Blob2, limit, limitError, boundary) {
|
|
17020
|
-
if (!utils_default.isFunction(Blob2)) {
|
|
17021
|
-
throw new FormDataError("Blob is not supported", "blob");
|
|
17022
|
-
}
|
|
17023
|
-
if (!utils_default.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) {
|
|
17024
|
-
throw new FormDataError("Invalid multipart boundary", "boundary");
|
|
17025
|
-
}
|
|
17026
|
-
const footer = "--" + boundary + "--" + CRLF2;
|
|
17027
|
-
let length = footer.length;
|
|
17028
|
-
const parts = [];
|
|
17029
|
-
const checkLength = (extra) => {
|
|
17030
|
-
if (length + extra > limit) throw limitError();
|
|
17031
|
-
};
|
|
17032
|
-
checkLength(0);
|
|
17033
|
-
for (const [name, value] of form) {
|
|
17034
|
-
const isString2 = utils_default.isString(value);
|
|
17035
|
-
const valueLength = isString2 ? stringBytes(value, true) : value.size;
|
|
17036
|
-
if (!Number.isFinite(valueLength) || valueLength < 0) {
|
|
17037
|
-
throw new FormDataError("Unsupported FormData part size", "part");
|
|
17038
|
-
}
|
|
17039
|
-
checkLength(
|
|
17040
|
-
valueLength + stringBytes(name, true) + (!isString2 && value.name ? stringBytes(value.name, false) : 0) + (!isString2 && value.type ? stringBytes(value.type, false) : 0)
|
|
17041
|
-
);
|
|
17042
|
-
let header = "--" + boundary + CRLF2 + 'Content-Disposition: form-data; name="' + escapeName(normalizeLines(name)) + '"';
|
|
17043
|
-
if (!isString2) {
|
|
17044
|
-
header += '; filename="' + escapeName(utils_default.isString(value.name) ? value.name : "blob") + '"' + CRLF2 + "Content-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
17045
|
-
}
|
|
17046
|
-
header += CRLF2 + CRLF2;
|
|
17047
|
-
const partLength = stringBytes(header, false) + valueLength + CRLF2.length;
|
|
17048
|
-
checkLength(partLength);
|
|
17049
|
-
length += partLength;
|
|
17050
|
-
parts.push({ header, value, isString: isString2 });
|
|
17051
|
-
}
|
|
17052
|
-
const blobParts = [];
|
|
17053
|
-
for (const part of parts) {
|
|
17054
|
-
blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF2);
|
|
17055
|
-
}
|
|
17056
|
-
blobParts.push(footer);
|
|
17057
|
-
return new Blob2(blobParts, { type: "multipart/form-data; boundary=" + boundary });
|
|
17058
|
-
}
|
|
17059
|
-
|
|
17060
|
-
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js
|
|
17061
|
-
function createMultipartBody(form, Blob2, limit, limitError, boundary) {
|
|
17062
|
-
if (!utils_default.isFunction(Blob2)) {
|
|
17063
|
-
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
17064
|
-
}
|
|
17065
|
-
if (boundary === void 0) {
|
|
17066
|
-
if (utils_default.isFunction(platform_default.generateString)) {
|
|
17067
|
-
boundary = "axios-" + platform_default.generateString(36, "0123456789abcdef");
|
|
17068
|
-
} else {
|
|
17069
|
-
const crypto2 = utils_default.global.crypto;
|
|
17070
|
-
if (!crypto2 || !utils_default.isFunction(crypto2.getRandomValues)) {
|
|
17071
|
-
throw new AxiosError_default("Random byte generation is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
17072
|
-
}
|
|
17073
|
-
const random = new Uint8Array(18);
|
|
17074
|
-
crypto2.getRandomValues(random);
|
|
17075
|
-
boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
|
|
17076
|
-
}
|
|
17077
|
-
}
|
|
17078
|
-
try {
|
|
17079
|
-
return formDataToBlob(form, Blob2, limit, limitError, boundary);
|
|
17080
|
-
} catch (error) {
|
|
17081
|
-
if (error instanceof FormDataError) {
|
|
17082
|
-
const code = error.reason === "boundary" ? AxiosError_default.ERR_BAD_OPTION_VALUE : AxiosError_default.ERR_BAD_REQUEST;
|
|
17083
|
-
throw new AxiosError_default(error.message, code);
|
|
17084
|
-
}
|
|
17085
|
-
throw error;
|
|
17086
|
-
}
|
|
17087
|
-
}
|
|
17088
|
-
|
|
17089
|
-
// ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
16587
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
17090
16588
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
17091
16589
|
var DEFAULT_REQUEST_OPTIONS = {
|
|
17092
16590
|
cache: "default",
|
|
@@ -17138,13 +16636,11 @@ var factory = (env) => {
|
|
|
17138
16636
|
},
|
|
17139
16637
|
{
|
|
17140
16638
|
Request: globalObject.Request,
|
|
17141
|
-
Response: globalObject.Response
|
|
17142
|
-
Blob: globalObject.Blob
|
|
16639
|
+
Response: globalObject.Response
|
|
17143
16640
|
},
|
|
17144
16641
|
env
|
|
17145
16642
|
);
|
|
17146
|
-
const
|
|
17147
|
-
const { Request, Response, Blob: Blob2 } = env;
|
|
16643
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
17148
16644
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
17149
16645
|
const isRequestSupported = isFunction2(Request);
|
|
17150
16646
|
const isResponseSupported = isFunction2(Response);
|
|
@@ -17170,13 +16666,6 @@ var factory = (env) => {
|
|
|
17170
16666
|
return duplexAccessed && !hasContentType;
|
|
17171
16667
|
});
|
|
17172
16668
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
17173
|
-
const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
17174
|
-
if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
17175
|
-
delete requestDefaults.cache;
|
|
17176
|
-
if (!test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
17177
|
-
requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
17178
|
-
}
|
|
17179
|
-
}
|
|
17180
16669
|
const resolvers = {
|
|
17181
16670
|
stream: supportsResponseStream && ((res) => res.body)
|
|
17182
16671
|
};
|
|
@@ -17202,6 +16691,13 @@ var factory = (env) => {
|
|
|
17202
16691
|
if (utils_default.isBlob(body)) {
|
|
17203
16692
|
return body.size;
|
|
17204
16693
|
}
|
|
16694
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
16695
|
+
const _request = new Request(platform_default.origin, {
|
|
16696
|
+
method: "POST",
|
|
16697
|
+
body
|
|
16698
|
+
});
|
|
16699
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
16700
|
+
}
|
|
17205
16701
|
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
17206
16702
|
return body.byteLength;
|
|
17207
16703
|
}
|
|
@@ -17249,7 +16745,6 @@ var factory = (env) => {
|
|
|
17249
16745
|
});
|
|
17250
16746
|
let requestContentLength;
|
|
17251
16747
|
let pendingBodyError = null;
|
|
17252
|
-
let pendingResponseError = null;
|
|
17253
16748
|
const maxBodyLengthError = () => new AxiosError_default(
|
|
17254
16749
|
"Request body larger than maxBodyLength limit",
|
|
17255
16750
|
AxiosError_default.ERR_BAD_REQUEST,
|
|
@@ -17267,9 +16762,8 @@ var factory = (env) => {
|
|
|
17267
16762
|
password
|
|
17268
16763
|
};
|
|
17269
16764
|
}
|
|
17270
|
-
let parsedURL;
|
|
17271
16765
|
if (maybeWithAuthCredentials(url2)) {
|
|
17272
|
-
parsedURL = new URL(url2, platform_default.origin);
|
|
16766
|
+
const parsedURL = new URL(url2, platform_default.origin);
|
|
17273
16767
|
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
17274
16768
|
const urlUsername = decodeURIComponentSafe2(parsedURL.username);
|
|
17275
16769
|
const urlPassword = decodeURIComponentSafe2(parsedURL.password);
|
|
@@ -17291,8 +16785,8 @@ var factory = (env) => {
|
|
|
17291
16785
|
"Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
|
|
17292
16786
|
);
|
|
17293
16787
|
}
|
|
17294
|
-
if (hasMaxContentLength &&
|
|
17295
|
-
const estimated = estimateDataURLDecodedBytes(
|
|
16788
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
16789
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
17296
16790
|
if (estimated > maxContentLength) {
|
|
17297
16791
|
throw new AxiosError_default(
|
|
17298
16792
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
@@ -17302,23 +16796,6 @@ var factory = (env) => {
|
|
|
17302
16796
|
);
|
|
17303
16797
|
}
|
|
17304
16798
|
}
|
|
17305
|
-
const formContentType = utils_default.isSpecCompliantForm(data) && AxiosHeaders_default.from(own2("headers")).getContentType();
|
|
17306
|
-
let formBoundary;
|
|
17307
|
-
if (utils_default.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
|
|
17308
|
-
const parameters = AxiosHeaders_default.parseParameters(formContentType);
|
|
17309
|
-
if (utils_default.hasOwnProp(parameters, "boundary")) formBoundary = parameters.boundary;
|
|
17310
|
-
}
|
|
17311
|
-
if (utils_default.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
|
|
17312
|
-
data = createMultipartBody(
|
|
17313
|
-
data,
|
|
17314
|
-
Blob2,
|
|
17315
|
-
hasMaxBodyLength ? maxBodyLength : Infinity,
|
|
17316
|
-
maxBodyLengthError,
|
|
17317
|
-
formBoundary
|
|
17318
|
-
);
|
|
17319
|
-
headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
|
|
17320
|
-
requestContentLength = data.size;
|
|
17321
|
-
}
|
|
17322
16799
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
17323
16800
|
const outboundLength = await getBodyLength(data);
|
|
17324
16801
|
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
@@ -17399,7 +16876,7 @@ var factory = (env) => {
|
|
|
17399
16876
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
17400
16877
|
});
|
|
17401
16878
|
if (isRequestSupported) {
|
|
17402
|
-
utils_default.forEach(
|
|
16879
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
17403
16880
|
if (resolvedOptions[key] === void 0) {
|
|
17404
16881
|
resolvedOptions[key] = value;
|
|
17405
16882
|
}
|
|
@@ -17447,7 +16924,7 @@ var factory = (env) => {
|
|
|
17447
16924
|
if (hasMaxContentLength) {
|
|
17448
16925
|
bytesRead = loadedBytes;
|
|
17449
16926
|
if (bytesRead > maxContentLength) {
|
|
17450
|
-
throw
|
|
16927
|
+
throw new AxiosError_default(
|
|
17451
16928
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
17452
16929
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
17453
16930
|
config,
|
|
@@ -17522,9 +16999,6 @@ var factory = (env) => {
|
|
|
17522
16999
|
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
17523
17000
|
throw pendingBodyError;
|
|
17524
17001
|
}
|
|
17525
|
-
if (pendingResponseError) {
|
|
17526
|
-
throw pendingResponseError;
|
|
17527
|
-
}
|
|
17528
17002
|
if (err instanceof AxiosError_default) {
|
|
17529
17003
|
request && !err.request && (err.request = request);
|
|
17530
17004
|
throw err;
|
|
@@ -17552,15 +17026,9 @@ var factory = (env) => {
|
|
|
17552
17026
|
};
|
|
17553
17027
|
var seedCache = /* @__PURE__ */ new Map();
|
|
17554
17028
|
var getFetch = (config) => {
|
|
17555
|
-
|
|
17556
|
-
const
|
|
17557
|
-
[
|
|
17558
|
-
if (configuredEnv && utils_default.hasOwnProp(configuredEnv, key)) {
|
|
17559
|
-
env[key] = configuredEnv[key];
|
|
17560
|
-
}
|
|
17561
|
-
});
|
|
17562
|
-
const { fetch: fetch2, Request, Response, Blob: Blob2 } = env;
|
|
17563
|
-
const seeds = [Request, Response, fetch2, Blob2];
|
|
17029
|
+
let env = config && config.env || {};
|
|
17030
|
+
const { fetch: fetch2, Request, Response } = env;
|
|
17031
|
+
const seeds = [Request, Response, fetch2];
|
|
17564
17032
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
17565
17033
|
while (i--) {
|
|
17566
17034
|
seed = seeds[i];
|
|
@@ -17572,7 +17040,7 @@ var getFetch = (config) => {
|
|
|
17572
17040
|
};
|
|
17573
17041
|
var adapter = getFetch();
|
|
17574
17042
|
|
|
17575
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17043
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
17576
17044
|
var knownAdapters = {
|
|
17577
17045
|
http: http_default,
|
|
17578
17046
|
xhr: xhr_default,
|
|
@@ -17637,7 +17105,7 @@ var adapters_default = {
|
|
|
17637
17105
|
adapters: knownAdapters
|
|
17638
17106
|
};
|
|
17639
17107
|
|
|
17640
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17108
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
17641
17109
|
function throwIfCancellationRequested(config) {
|
|
17642
17110
|
if (config.cancelToken) {
|
|
17643
17111
|
config.cancelToken.throwIfRequested();
|
|
@@ -17646,9 +17114,6 @@ function throwIfCancellationRequested(config) {
|
|
|
17646
17114
|
throw new CanceledError_default(null, config);
|
|
17647
17115
|
}
|
|
17648
17116
|
}
|
|
17649
|
-
function elapsedSince(start) {
|
|
17650
|
-
return Math.max(0, Date.now() - start);
|
|
17651
|
-
}
|
|
17652
17117
|
function dispatchRequest(_config) {
|
|
17653
17118
|
const config = utils_default.toSafeFlatObject(_config);
|
|
17654
17119
|
throwIfCancellationRequested(config);
|
|
@@ -17658,11 +17123,9 @@ function dispatchRequest(_config) {
|
|
|
17658
17123
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
17659
17124
|
}
|
|
17660
17125
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
17661
|
-
const start = Date.now();
|
|
17662
17126
|
return adapter2(config).then(
|
|
17663
17127
|
function onAdapterResolution(response) {
|
|
17664
17128
|
throwIfCancellationRequested(config);
|
|
17665
|
-
response.duration = elapsedSince(start);
|
|
17666
17129
|
config.response = response;
|
|
17667
17130
|
try {
|
|
17668
17131
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -17676,7 +17139,6 @@ function dispatchRequest(_config) {
|
|
|
17676
17139
|
if (!isCancel(reason)) {
|
|
17677
17140
|
throwIfCancellationRequested(config);
|
|
17678
17141
|
if (reason && reason.response) {
|
|
17679
|
-
reason.response.duration = elapsedSince(start);
|
|
17680
17142
|
config.response = reason.response;
|
|
17681
17143
|
try {
|
|
17682
17144
|
reason.response.data = transformData.call(
|
|
@@ -17695,7 +17157,7 @@ function dispatchRequest(_config) {
|
|
|
17695
17157
|
);
|
|
17696
17158
|
}
|
|
17697
17159
|
|
|
17698
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17160
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
17699
17161
|
var validators = {};
|
|
17700
17162
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
17701
17163
|
validators[type] = function validator(thing) {
|
|
@@ -17762,29 +17224,8 @@ var validator_default = {
|
|
|
17762
17224
|
validators
|
|
17763
17225
|
};
|
|
17764
17226
|
|
|
17765
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17227
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
17766
17228
|
var validators2 = validator_default.validators;
|
|
17767
|
-
var isHeadersBucket = (value) => {
|
|
17768
|
-
if (value == null || utils_default.isPlainObject(value) || value instanceof AxiosHeaders_default) {
|
|
17769
|
-
return true;
|
|
17770
|
-
}
|
|
17771
|
-
try {
|
|
17772
|
-
return utils_default.isObject(value) && utils_default.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && [
|
|
17773
|
-
"toJSON",
|
|
17774
|
-
"set",
|
|
17775
|
-
"get",
|
|
17776
|
-
"has",
|
|
17777
|
-
"delete",
|
|
17778
|
-
"clear",
|
|
17779
|
-
"normalize",
|
|
17780
|
-
"concat",
|
|
17781
|
-
"toString",
|
|
17782
|
-
Symbol.iterator
|
|
17783
|
-
].every((method) => utils_default.isFunction(utils_default.getSafeProp(value, method)));
|
|
17784
|
-
} catch (e) {
|
|
17785
|
-
return false;
|
|
17786
|
-
}
|
|
17787
|
-
};
|
|
17788
17229
|
var Axios = class {
|
|
17789
17230
|
constructor(instanceConfig) {
|
|
17790
17231
|
this.defaults = instanceConfig || {};
|
|
@@ -17820,13 +17261,9 @@ var Axios = class {
|
|
|
17820
17261
|
} else if (stack) {
|
|
17821
17262
|
const firstNewlineIndex = stack.indexOf("\n");
|
|
17822
17263
|
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
17823
|
-
const
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
17827
|
-
const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
|
|
17828
|
-
if (!stackHead.endsWith(duplicateCheckSuffix)) {
|
|
17829
|
-
err.stack = stackHead + "\n" + stack + causeSection;
|
|
17264
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
17265
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
17266
|
+
err.stack += "\n" + stack;
|
|
17830
17267
|
}
|
|
17831
17268
|
}
|
|
17832
17269
|
} catch (e) {
|
|
@@ -17853,8 +17290,7 @@ var Axios = class {
|
|
|
17853
17290
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
17854
17291
|
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
|
|
17855
17292
|
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
17856
|
-
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
17857
|
-
encodeBasicAuthUsername: validators2.transitional(validators2.boolean)
|
|
17293
|
+
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
17858
17294
|
},
|
|
17859
17295
|
false
|
|
17860
17296
|
);
|
|
@@ -17876,7 +17312,7 @@ var Axios = class {
|
|
|
17876
17312
|
}
|
|
17877
17313
|
}
|
|
17878
17314
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
17879
|
-
} else if (
|
|
17315
|
+
} else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
17880
17316
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
17881
17317
|
} else {
|
|
17882
17318
|
config.allowAbsoluteUrls = true;
|
|
@@ -17890,16 +17326,9 @@ var Axios = class {
|
|
|
17890
17326
|
true
|
|
17891
17327
|
);
|
|
17892
17328
|
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
17893
|
-
|
|
17894
|
-
const methodHeaders = utils_default.getSafeProp(headers, config.method);
|
|
17895
|
-
const contextHeaders = headers && utils_default.merge(
|
|
17896
|
-
isHeadersBucket(commonHeaders) ? commonHeaders : void 0,
|
|
17897
|
-
isHeadersBucket(methodHeaders) ? methodHeaders : void 0
|
|
17898
|
-
);
|
|
17329
|
+
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
17899
17330
|
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
17900
|
-
|
|
17901
|
-
delete headers[method];
|
|
17902
|
-
}
|
|
17331
|
+
delete headers[method];
|
|
17903
17332
|
});
|
|
17904
17333
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
17905
17334
|
const requestInterceptorChain = [];
|
|
@@ -17981,7 +17410,7 @@ var Axios = class {
|
|
|
17981
17410
|
}
|
|
17982
17411
|
};
|
|
17983
17412
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
17984
|
-
Axios.prototype[method] =
|
|
17413
|
+
Axios.prototype[method] = function(url2, config) {
|
|
17985
17414
|
return this.request(
|
|
17986
17415
|
mergeConfig(config || {}, {
|
|
17987
17416
|
method,
|
|
@@ -17993,7 +17422,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
17993
17422
|
});
|
|
17994
17423
|
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
17995
17424
|
function generateHTTPMethod(isForm) {
|
|
17996
|
-
return
|
|
17425
|
+
return function httpMethod(url2, data, config) {
|
|
17997
17426
|
return this.request(
|
|
17998
17427
|
mergeConfig(config || {}, {
|
|
17999
17428
|
method,
|
|
@@ -18013,7 +17442,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
18013
17442
|
});
|
|
18014
17443
|
var Axios_default = Axios;
|
|
18015
17444
|
|
|
18016
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17445
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
18017
17446
|
var CancelToken = class _CancelToken {
|
|
18018
17447
|
constructor(executor) {
|
|
18019
17448
|
if (typeof executor !== "function") {
|
|
@@ -18111,19 +17540,19 @@ var CancelToken = class _CancelToken {
|
|
|
18111
17540
|
};
|
|
18112
17541
|
var CancelToken_default = CancelToken;
|
|
18113
17542
|
|
|
18114
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17543
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
18115
17544
|
function spread(callback) {
|
|
18116
17545
|
return function wrap(arr) {
|
|
18117
17546
|
return callback.apply(null, arr);
|
|
18118
17547
|
};
|
|
18119
17548
|
}
|
|
18120
17549
|
|
|
18121
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17550
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
18122
17551
|
function isAxiosError(payload) {
|
|
18123
17552
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
18124
17553
|
}
|
|
18125
17554
|
|
|
18126
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17555
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
18127
17556
|
var HttpStatusCode = {
|
|
18128
17557
|
Continue: 100,
|
|
18129
17558
|
SwitchingProtocols: 101,
|
|
@@ -18211,7 +17640,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
18211
17640
|
});
|
|
18212
17641
|
var HttpStatusCode_default = HttpStatusCode;
|
|
18213
17642
|
|
|
18214
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17643
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
18215
17644
|
function createInstance(defaultConfig) {
|
|
18216
17645
|
const context = new Axios_default(defaultConfig);
|
|
18217
17646
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -18244,7 +17673,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
18244
17673
|
axios.default = axios;
|
|
18245
17674
|
var axios_default = axios;
|
|
18246
17675
|
|
|
18247
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17676
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
|
|
18248
17677
|
var {
|
|
18249
17678
|
Axios: Axios2,
|
|
18250
17679
|
AxiosError: AxiosError2,
|