@alpic-ai/sdk 0.0.0-dev.gf754aa0 → 0.0.0-dev.gf7cb35b
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/api/auth-scope.js +1 -0
- package/dist/api/auth-scope.js.map +1 -1
- package/dist/auth/api-key.d.ts +1 -0
- package/dist/auth/api-key.js +23 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/index.js +2 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/oauth-client.js +3 -2
- package/dist/auth/oauth-client.js.map +1 -1
- package/dist/auth/server/assets/authorize.html +1 -1
- package/dist/auth/store.js +1 -0
- package/dist/auth/store.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/emitter.js +5 -6
- package/dist/lib/emitter.js.map +1 -1
- package/dist/lib/errors.d.ts +3 -0
- package/dist/lib/errors.js +7 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/project/config.js +2 -0
- package/dist/project/config.js.map +1 -1
- package/dist/project/detect-runtime.js +21 -3
- package/dist/project/detect-runtime.js.map +1 -1
- package/dist/project/python-runtime.d.ts +1 -0
- package/dist/project/python-runtime.js +71 -0
- package/dist/project/python-runtime.js.map +1 -0
- package/dist/tunnel/tunnel.js +9 -19
- package/dist/tunnel/tunnel.js.map +1 -1
- package/dist/vendor/pipenet.js +1650 -530
- package/dist/vendor/pipenet.js.map +4 -4
- package/dist/whoami.js +2 -1
- package/dist/whoami.js.map +1 -1
- package/package.json +13 -13
package/dist/vendor/pipenet.js
CHANGED
|
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var require_delayed_stream = __commonJS({
|
|
46
46
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
|
47
47
|
var Stream = __require("stream").Stream;
|
|
48
|
-
var
|
|
48
|
+
var util4 = __require("util");
|
|
49
49
|
module.exports = DelayedStream;
|
|
50
50
|
function DelayedStream() {
|
|
51
51
|
this.source = null;
|
|
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
|
|
|
56
56
|
this._released = false;
|
|
57
57
|
this._bufferedEvents = [];
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
util4.inherits(DelayedStream, Stream);
|
|
60
60
|
DelayedStream.create = function(source, options) {
|
|
61
61
|
var delayedStream = new this();
|
|
62
62
|
options = options || {};
|
|
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
|
|
|
135
135
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
|
136
136
|
var require_combined_stream = __commonJS({
|
|
137
137
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
|
138
|
-
var
|
|
138
|
+
var util4 = __require("util");
|
|
139
139
|
var Stream = __require("stream").Stream;
|
|
140
140
|
var DelayedStream = require_delayed_stream();
|
|
141
141
|
module.exports = CombinedStream;
|
|
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
|
|
|
151
151
|
this._insideLoop = false;
|
|
152
152
|
this._pendingNext = false;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
util4.inherits(CombinedStream, Stream);
|
|
155
155
|
CombinedStream.create = function(options) {
|
|
156
156
|
var combinedStream = new this();
|
|
157
157
|
options = options || {};
|
|
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
|
|
|
9996
9996
|
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
9997
9997
|
"use strict";
|
|
9998
9998
|
var CombinedStream = require_combined_stream();
|
|
9999
|
-
var
|
|
9999
|
+
var util4 = __require("util");
|
|
10000
10000
|
var path = __require("path");
|
|
10001
10001
|
var http3 = __require("http");
|
|
10002
10002
|
var https2 = __require("https");
|
|
@@ -10025,7 +10025,7 @@ var require_form_data = __commonJS({
|
|
|
10025
10025
|
this[option] = options[option];
|
|
10026
10026
|
}
|
|
10027
10027
|
}
|
|
10028
|
-
|
|
10028
|
+
util4.inherits(FormData3, CombinedStream);
|
|
10029
10029
|
FormData3.LINE_BREAK = "\r\n";
|
|
10030
10030
|
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
10031
10031
|
FormData3.prototype.append = function(field, value, options) {
|
|
@@ -10907,14 +10907,14 @@ var require_supports_color = __commonJS({
|
|
|
10907
10907
|
var require_node = __commonJS({
|
|
10908
10908
|
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
|
|
10909
10909
|
var tty = __require("tty");
|
|
10910
|
-
var
|
|
10910
|
+
var util4 = __require("util");
|
|
10911
10911
|
exports.init = init;
|
|
10912
10912
|
exports.log = log3;
|
|
10913
10913
|
exports.formatArgs = formatArgs;
|
|
10914
10914
|
exports.save = save;
|
|
10915
10915
|
exports.load = load;
|
|
10916
10916
|
exports.useColors = useColors;
|
|
10917
|
-
exports.destroy =
|
|
10917
|
+
exports.destroy = util4.deprecate(
|
|
10918
10918
|
() => {
|
|
10919
10919
|
},
|
|
10920
10920
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -11045,7 +11045,7 @@ var require_node = __commonJS({
|
|
|
11045
11045
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
11046
11046
|
}
|
|
11047
11047
|
function log3(...args) {
|
|
11048
|
-
return process.stderr.write(
|
|
11048
|
+
return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
11049
11049
|
}
|
|
11050
11050
|
function save(namespaces) {
|
|
11051
11051
|
if (namespaces) {
|
|
@@ -11068,11 +11068,11 @@ var require_node = __commonJS({
|
|
|
11068
11068
|
var { formatters } = module.exports;
|
|
11069
11069
|
formatters.o = function(v) {
|
|
11070
11070
|
this.inspectOpts.colors = this.useColors;
|
|
11071
|
-
return
|
|
11071
|
+
return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
11072
11072
|
};
|
|
11073
11073
|
formatters.O = function(v) {
|
|
11074
11074
|
this.inspectOpts.colors = this.useColors;
|
|
11075
|
-
return
|
|
11075
|
+
return util4.inspect(v, this.inspectOpts);
|
|
11076
11076
|
};
|
|
11077
11077
|
}
|
|
11078
11078
|
});
|
|
@@ -11088,9 +11088,9 @@ var require_src = __commonJS({
|
|
|
11088
11088
|
}
|
|
11089
11089
|
});
|
|
11090
11090
|
|
|
11091
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11091
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js
|
|
11092
11092
|
var require_promisify = __commonJS({
|
|
11093
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11093
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
11094
11094
|
"use strict";
|
|
11095
11095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11096
11096
|
function promisify(fn) {
|
|
@@ -11110,9 +11110,9 @@ var require_promisify = __commonJS({
|
|
|
11110
11110
|
}
|
|
11111
11111
|
});
|
|
11112
11112
|
|
|
11113
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11113
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js
|
|
11114
11114
|
var require_src2 = __commonJS({
|
|
11115
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11115
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js"(exports, module) {
|
|
11116
11116
|
"use strict";
|
|
11117
11117
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11118
11118
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11293,9 +11293,9 @@ var require_src2 = __commonJS({
|
|
|
11293
11293
|
}
|
|
11294
11294
|
});
|
|
11295
11295
|
|
|
11296
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11296
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11297
11297
|
var require_parse_proxy_response = __commonJS({
|
|
11298
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11298
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11299
11299
|
"use strict";
|
|
11300
11300
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11301
11301
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11359,9 +11359,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
11359
11359
|
}
|
|
11360
11360
|
});
|
|
11361
11361
|
|
|
11362
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11362
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11363
11363
|
var require_agent = __commonJS({
|
|
11364
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11364
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11365
11365
|
"use strict";
|
|
11366
11366
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
11367
11367
|
function adopt(value) {
|
|
@@ -11519,9 +11519,9 @@ var require_agent = __commonJS({
|
|
|
11519
11519
|
}
|
|
11520
11520
|
});
|
|
11521
11521
|
|
|
11522
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
11522
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js
|
|
11523
11523
|
var require_dist = __commonJS({
|
|
11524
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11524
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11525
11525
|
"use strict";
|
|
11526
11526
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11527
11527
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
|
|
|
11538
11538
|
}
|
|
11539
11539
|
});
|
|
11540
11540
|
|
|
11541
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11541
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
|
|
11542
11542
|
var require_debug = __commonJS({
|
|
11543
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11543
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
11544
11544
|
var debug3;
|
|
11545
11545
|
module.exports = function() {
|
|
11546
11546
|
if (!debug3) {
|
|
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
|
|
|
11558
11558
|
}
|
|
11559
11559
|
});
|
|
11560
11560
|
|
|
11561
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11561
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
|
|
11562
11562
|
var require_follow_redirects = __commonJS({
|
|
11563
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11563
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
|
|
11564
11564
|
var url2 = __require("url");
|
|
11565
11565
|
var URL2 = url2.URL;
|
|
11566
11566
|
var http3 = __require("http");
|
|
@@ -11788,8 +11788,14 @@ var require_follow_redirects = __commonJS({
|
|
|
11788
11788
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
11789
11789
|
if (!options.headers) {
|
|
11790
11790
|
options.headers = {};
|
|
11791
|
+
} else if (Array.isArray(options.headers)) {
|
|
11792
|
+
var headerList = options.headers;
|
|
11793
|
+
options.headers = {};
|
|
11794
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
11795
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
11796
|
+
}
|
|
11791
11797
|
}
|
|
11792
|
-
if (!
|
|
11798
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
11793
11799
|
options.sensitiveHeaders = [];
|
|
11794
11800
|
}
|
|
11795
11801
|
if (options.host) {
|
|
@@ -12046,9 +12052,6 @@ var require_follow_redirects = __commonJS({
|
|
|
12046
12052
|
var dot = subdomain.length - domain.length - 1;
|
|
12047
12053
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
12048
12054
|
}
|
|
12049
|
-
function isArray2(value) {
|
|
12050
|
-
return value instanceof Array;
|
|
12051
|
-
}
|
|
12052
12055
|
function isString2(value) {
|
|
12053
12056
|
return typeof value === "string" || value instanceof String;
|
|
12054
12057
|
}
|
|
@@ -12062,24 +12065,101 @@ var require_follow_redirects = __commonJS({
|
|
|
12062
12065
|
return URL2 && value instanceof URL2;
|
|
12063
12066
|
}
|
|
12064
12067
|
function escapeRegex(regex) {
|
|
12065
|
-
return regex.replace(/[\]\\/()
|
|
12068
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
12066
12069
|
}
|
|
12067
12070
|
module.exports = wrap({ http: http3, https: https2 });
|
|
12068
12071
|
module.exports.wrap = wrap;
|
|
12069
12072
|
}
|
|
12070
12073
|
});
|
|
12071
12074
|
|
|
12072
|
-
// ../../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
|
|
12073
12076
|
function bind(fn, thisArg) {
|
|
12074
12077
|
return function wrap() {
|
|
12075
12078
|
return fn.apply(thisArg, arguments);
|
|
12076
12079
|
};
|
|
12077
12080
|
}
|
|
12078
12081
|
|
|
12079
|
-
// ../../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
|
|
12080
12083
|
var { toString } = Object.prototype;
|
|
12081
12084
|
var { getPrototypeOf } = Object;
|
|
12082
12085
|
var { iterator, toStringTag } = Symbol;
|
|
12086
|
+
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12087
|
+
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
12088
|
+
var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
|
|
12089
|
+
var isSafeAndFullyMutable = (obj) => {
|
|
12090
|
+
if (!Object.isExtensible(obj)) {
|
|
12091
|
+
return false;
|
|
12092
|
+
}
|
|
12093
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
12094
|
+
if (Object.getOwnPropertySymbols) {
|
|
12095
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
12096
|
+
}
|
|
12097
|
+
return props.every((prop) => {
|
|
12098
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12099
|
+
return false;
|
|
12100
|
+
}
|
|
12101
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
12102
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
12103
|
+
});
|
|
12104
|
+
};
|
|
12105
|
+
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
12106
|
+
let obj = thing;
|
|
12107
|
+
const seen = [];
|
|
12108
|
+
while (obj != null) {
|
|
12109
|
+
if (seen.indexOf(obj) !== -1) {
|
|
12110
|
+
return false;
|
|
12111
|
+
}
|
|
12112
|
+
seen.push(obj);
|
|
12113
|
+
const prototype2 = getPrototypeOf(obj);
|
|
12114
|
+
if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
|
|
12115
|
+
return false;
|
|
12116
|
+
}
|
|
12117
|
+
if (hasOwnProperty(obj, prop)) {
|
|
12118
|
+
return true;
|
|
12119
|
+
}
|
|
12120
|
+
obj = prototype2;
|
|
12121
|
+
}
|
|
12122
|
+
return false;
|
|
12123
|
+
};
|
|
12124
|
+
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
12125
|
+
var toSafeFlatObject = (thing) => {
|
|
12126
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
12127
|
+
return thing;
|
|
12128
|
+
}
|
|
12129
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
12130
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
12131
|
+
return thing;
|
|
12132
|
+
}
|
|
12133
|
+
const result = /* @__PURE__ */ Object.create(null);
|
|
12134
|
+
const merged = /* @__PURE__ */ Object.create(null);
|
|
12135
|
+
const seen = [];
|
|
12136
|
+
let current = thing;
|
|
12137
|
+
while (current != null) {
|
|
12138
|
+
if (seen.indexOf(current) !== -1) {
|
|
12139
|
+
break;
|
|
12140
|
+
}
|
|
12141
|
+
seen.push(current);
|
|
12142
|
+
const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
12143
|
+
if (isPrototypeBoundary(current, prototype2, current === thing)) {
|
|
12144
|
+
break;
|
|
12145
|
+
}
|
|
12146
|
+
const props = Object.getOwnPropertyNames(current);
|
|
12147
|
+
if (Object.getOwnPropertySymbols) {
|
|
12148
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
12149
|
+
}
|
|
12150
|
+
for (const prop of props) {
|
|
12151
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12152
|
+
continue;
|
|
12153
|
+
}
|
|
12154
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
12155
|
+
result[prop] = thing[prop];
|
|
12156
|
+
merged[prop] = true;
|
|
12157
|
+
}
|
|
12158
|
+
}
|
|
12159
|
+
current = prototype2;
|
|
12160
|
+
}
|
|
12161
|
+
return result;
|
|
12162
|
+
};
|
|
12083
12163
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
12084
12164
|
const str = toString.call(thing);
|
|
12085
12165
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -12110,11 +12190,14 @@ var isNumber = typeOfTest("number");
|
|
|
12110
12190
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
12111
12191
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
12112
12192
|
var isPlainObject = (val) => {
|
|
12113
|
-
if (
|
|
12193
|
+
if (!isObject(val)) {
|
|
12114
12194
|
return false;
|
|
12115
12195
|
}
|
|
12116
12196
|
const prototype2 = getPrototypeOf(val);
|
|
12117
|
-
return (prototype2 === null || prototype2 === Object.prototype ||
|
|
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);
|
|
12118
12201
|
};
|
|
12119
12202
|
var isEmptyObject = (val) => {
|
|
12120
12203
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -12134,6 +12217,7 @@ var isReactNativeBlob = (value) => {
|
|
|
12134
12217
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
12135
12218
|
var isBlob = kindOfTest("Blob");
|
|
12136
12219
|
var isFileList = kindOfTest("FileList");
|
|
12220
|
+
var isSet = kindOfTest("Set");
|
|
12137
12221
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
12138
12222
|
function getGlobal() {
|
|
12139
12223
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
@@ -12218,7 +12302,7 @@ function merge(...objs) {
|
|
|
12218
12302
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12219
12303
|
return;
|
|
12220
12304
|
}
|
|
12221
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
12305
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
12222
12306
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
12223
12307
|
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
12224
12308
|
result[targetKey] = merge(existing, val);
|
|
@@ -12231,7 +12315,21 @@ function merge(...objs) {
|
|
|
12231
12315
|
}
|
|
12232
12316
|
};
|
|
12233
12317
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
12234
|
-
|
|
12318
|
+
const source = objs[i];
|
|
12319
|
+
if (!source || isBuffer(source)) {
|
|
12320
|
+
continue;
|
|
12321
|
+
}
|
|
12322
|
+
forEach(source, assignValue);
|
|
12323
|
+
if (typeof source !== "object" || isArray(source)) {
|
|
12324
|
+
continue;
|
|
12325
|
+
}
|
|
12326
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
12327
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
12328
|
+
const symbol = symbols[j];
|
|
12329
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
12330
|
+
assignValue(source[symbol], symbol);
|
|
12331
|
+
}
|
|
12332
|
+
}
|
|
12235
12333
|
}
|
|
12236
12334
|
return result;
|
|
12237
12335
|
}
|
|
@@ -12353,7 +12451,7 @@ var toCamelCase = (str) => {
|
|
|
12353
12451
|
return p1.toUpperCase() + p2;
|
|
12354
12452
|
});
|
|
12355
12453
|
};
|
|
12356
|
-
var
|
|
12454
|
+
var { propertyIsEnumerable } = Object.prototype;
|
|
12357
12455
|
var isRegExp = kindOfTest("RegExp");
|
|
12358
12456
|
var reduceDescriptors = (obj, reducer) => {
|
|
12359
12457
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -12415,11 +12513,20 @@ var toJSONObject = (obj) => {
|
|
|
12415
12513
|
}
|
|
12416
12514
|
if (!("toJSON" in source)) {
|
|
12417
12515
|
visited.add(source);
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12516
|
+
let target;
|
|
12517
|
+
if (isSet(source)) {
|
|
12518
|
+
target = [];
|
|
12519
|
+
for (const value of source) {
|
|
12520
|
+
const reducedValue = visit(value);
|
|
12521
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
12522
|
+
}
|
|
12523
|
+
} else {
|
|
12524
|
+
target = isArray(source) ? [] : {};
|
|
12525
|
+
forEach(source, (value, key) => {
|
|
12526
|
+
const reducedValue = visit(value);
|
|
12527
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
12528
|
+
});
|
|
12529
|
+
}
|
|
12423
12530
|
visited.delete(source);
|
|
12424
12531
|
return target;
|
|
12425
12532
|
}
|
|
@@ -12452,6 +12559,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
12452
12559
|
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
12453
12560
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12454
12561
|
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
12562
|
+
var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
12455
12563
|
var utils_default = {
|
|
12456
12564
|
isArray,
|
|
12457
12565
|
isArrayBuffer,
|
|
@@ -12497,6 +12605,9 @@ var utils_default = {
|
|
|
12497
12605
|
hasOwnProperty,
|
|
12498
12606
|
hasOwnProp: hasOwnProperty,
|
|
12499
12607
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
12608
|
+
hasOwnInPrototypeChain,
|
|
12609
|
+
getSafeProp,
|
|
12610
|
+
toSafeFlatObject,
|
|
12500
12611
|
reduceDescriptors,
|
|
12501
12612
|
freezeMethods,
|
|
12502
12613
|
toObjectSet,
|
|
@@ -12512,10 +12623,11 @@ var utils_default = {
|
|
|
12512
12623
|
isThenable,
|
|
12513
12624
|
setImmediate: _setImmediate,
|
|
12514
12625
|
asap,
|
|
12515
|
-
isIterable
|
|
12626
|
+
isIterable,
|
|
12627
|
+
isSafeIterable
|
|
12516
12628
|
};
|
|
12517
12629
|
|
|
12518
|
-
// ../../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
|
|
12519
12631
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12520
12632
|
"age",
|
|
12521
12633
|
"authorization",
|
|
@@ -12544,23 +12656,24 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12544
12656
|
i = line.indexOf(":");
|
|
12545
12657
|
key = line.substring(0, i).trim().toLowerCase();
|
|
12546
12658
|
val = line.substring(i + 1).trim();
|
|
12547
|
-
|
|
12659
|
+
const hasKey = utils_default.hasOwnProp(parsed, key);
|
|
12660
|
+
if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
|
|
12548
12661
|
return;
|
|
12549
12662
|
}
|
|
12550
12663
|
if (key === "set-cookie") {
|
|
12551
|
-
if (
|
|
12664
|
+
if (hasKey) {
|
|
12552
12665
|
parsed[key].push(val);
|
|
12553
12666
|
} else {
|
|
12554
12667
|
parsed[key] = [val];
|
|
12555
12668
|
}
|
|
12556
12669
|
} else {
|
|
12557
|
-
parsed[key] =
|
|
12670
|
+
parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
12558
12671
|
}
|
|
12559
12672
|
});
|
|
12560
12673
|
return parsed;
|
|
12561
12674
|
};
|
|
12562
12675
|
|
|
12563
|
-
// ../../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
|
|
12564
12677
|
function trimSPorHTAB(str) {
|
|
12565
12678
|
let start = 0;
|
|
12566
12679
|
let end = str.length;
|
|
@@ -12598,7 +12711,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12598
12711
|
return byteStringHeaders;
|
|
12599
12712
|
}
|
|
12600
12713
|
|
|
12601
|
-
// ../../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
|
|
12602
12715
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12603
12716
|
function normalizeHeader(header) {
|
|
12604
12717
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12618,6 +12731,90 @@ function parseTokens(str) {
|
|
|
12618
12731
|
}
|
|
12619
12732
|
return tokens;
|
|
12620
12733
|
}
|
|
12734
|
+
var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
12735
|
+
function trimOWS(value) {
|
|
12736
|
+
let start = 0;
|
|
12737
|
+
let end = value.length;
|
|
12738
|
+
while (start < end) {
|
|
12739
|
+
const code = value.charCodeAt(start);
|
|
12740
|
+
if (code !== 9 && code !== 32) {
|
|
12741
|
+
break;
|
|
12742
|
+
}
|
|
12743
|
+
start += 1;
|
|
12744
|
+
}
|
|
12745
|
+
while (end > start) {
|
|
12746
|
+
const code = value.charCodeAt(end - 1);
|
|
12747
|
+
if (code !== 9 && code !== 32) {
|
|
12748
|
+
break;
|
|
12749
|
+
}
|
|
12750
|
+
end -= 1;
|
|
12751
|
+
}
|
|
12752
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
12753
|
+
}
|
|
12754
|
+
function decodeQuotedString(value) {
|
|
12755
|
+
const last = value.length - 1;
|
|
12756
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
|
|
12757
|
+
return value;
|
|
12758
|
+
}
|
|
12759
|
+
let decoded = "";
|
|
12760
|
+
for (let i = 1; i < last; i++) {
|
|
12761
|
+
const code = value.charCodeAt(i);
|
|
12762
|
+
if (code === 34) {
|
|
12763
|
+
return value;
|
|
12764
|
+
}
|
|
12765
|
+
if (code === 92) {
|
|
12766
|
+
i += 1;
|
|
12767
|
+
if (i >= last) {
|
|
12768
|
+
return value;
|
|
12769
|
+
}
|
|
12770
|
+
}
|
|
12771
|
+
decoded += value[i];
|
|
12772
|
+
}
|
|
12773
|
+
return decoded;
|
|
12774
|
+
}
|
|
12775
|
+
function parseParameters(value) {
|
|
12776
|
+
const parameters = /* @__PURE__ */ Object.create(null);
|
|
12777
|
+
const str = String(value);
|
|
12778
|
+
let start = 0;
|
|
12779
|
+
let quoted = false;
|
|
12780
|
+
let escaped = false;
|
|
12781
|
+
function parseParameter(end) {
|
|
12782
|
+
const part = trimOWS(str.slice(start, end));
|
|
12783
|
+
const equals = part.indexOf("=");
|
|
12784
|
+
if (equals < 1) {
|
|
12785
|
+
return;
|
|
12786
|
+
}
|
|
12787
|
+
const name = trimOWS(part.slice(0, equals));
|
|
12788
|
+
if (!parameterNameRE.test(name)) {
|
|
12789
|
+
return;
|
|
12790
|
+
}
|
|
12791
|
+
const normalizedName = name.toLowerCase();
|
|
12792
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
|
|
12793
|
+
return;
|
|
12794
|
+
}
|
|
12795
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
12796
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
12797
|
+
}
|
|
12798
|
+
for (let i = 0; i < str.length; i++) {
|
|
12799
|
+
const code = str.charCodeAt(i);
|
|
12800
|
+
if (quoted) {
|
|
12801
|
+
if (escaped) {
|
|
12802
|
+
escaped = false;
|
|
12803
|
+
} else if (code === 92) {
|
|
12804
|
+
escaped = true;
|
|
12805
|
+
} else if (code === 34) {
|
|
12806
|
+
quoted = false;
|
|
12807
|
+
}
|
|
12808
|
+
} else if (code === 34) {
|
|
12809
|
+
quoted = true;
|
|
12810
|
+
} else if (code === 44 || code === 59) {
|
|
12811
|
+
parseParameter(i);
|
|
12812
|
+
start = i + 1;
|
|
12813
|
+
}
|
|
12814
|
+
}
|
|
12815
|
+
parseParameter(str.length);
|
|
12816
|
+
return parameters;
|
|
12817
|
+
}
|
|
12621
12818
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
12622
12819
|
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
12623
12820
|
if (utils_default.isFunction(filter2)) {
|
|
@@ -12662,7 +12859,7 @@ var AxiosHeaders = class {
|
|
|
12662
12859
|
function setHeader(_value, _header, _rewrite) {
|
|
12663
12860
|
const lHeader = normalizeHeader(_header);
|
|
12664
12861
|
if (!lHeader) {
|
|
12665
|
-
|
|
12862
|
+
return;
|
|
12666
12863
|
}
|
|
12667
12864
|
const key = utils_default.findKey(self2, lHeader);
|
|
12668
12865
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
@@ -12674,13 +12871,19 @@ var AxiosHeaders = class {
|
|
|
12674
12871
|
setHeaders(header, valueOrRewrite);
|
|
12675
12872
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12676
12873
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12677
|
-
} else if (utils_default.isObject(header) && utils_default.
|
|
12678
|
-
let obj =
|
|
12874
|
+
} else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
|
|
12875
|
+
let obj = /* @__PURE__ */ Object.create(null), dest, key;
|
|
12679
12876
|
for (const entry of header) {
|
|
12680
12877
|
if (!utils_default.isArray(entry)) {
|
|
12681
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
12878
|
+
throw new TypeError("Object iterator must return a key-value pair");
|
|
12879
|
+
}
|
|
12880
|
+
key = entry[0];
|
|
12881
|
+
if (utils_default.hasOwnProp(obj, key)) {
|
|
12882
|
+
dest = obj[key];
|
|
12883
|
+
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
12884
|
+
} else {
|
|
12885
|
+
obj[key] = entry[1];
|
|
12682
12886
|
}
|
|
12683
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12684
12887
|
}
|
|
12685
12888
|
setHeaders(obj, valueOrRewrite);
|
|
12686
12889
|
} else {
|
|
@@ -12787,7 +12990,8 @@ var AxiosHeaders = class {
|
|
|
12787
12990
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
12788
12991
|
}
|
|
12789
12992
|
getSetCookie() {
|
|
12790
|
-
|
|
12993
|
+
const value = this.get("set-cookie");
|
|
12994
|
+
return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
12791
12995
|
}
|
|
12792
12996
|
get [Symbol.toStringTag]() {
|
|
12793
12997
|
return "AxiosHeaders";
|
|
@@ -12795,6 +12999,9 @@ var AxiosHeaders = class {
|
|
|
12795
12999
|
static from(thing) {
|
|
12796
13000
|
return thing instanceof this ? thing : new this(thing);
|
|
12797
13001
|
}
|
|
13002
|
+
static parseParameters(value) {
|
|
13003
|
+
return parseParameters(value);
|
|
13004
|
+
}
|
|
12798
13005
|
static concat(first, ...targets) {
|
|
12799
13006
|
const computed = new this(first);
|
|
12800
13007
|
targets.forEach((target) => computed.set(target));
|
|
@@ -12837,7 +13044,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
12837
13044
|
utils_default.freezeMethods(AxiosHeaders);
|
|
12838
13045
|
var AxiosHeaders_default = AxiosHeaders;
|
|
12839
13046
|
|
|
12840
|
-
// ../../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
|
|
12841
13048
|
var REDACTED = "[REDACTED ****]";
|
|
12842
13049
|
function hasOwnOrPrototypeToJSON(source) {
|
|
12843
13050
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -12890,10 +13097,37 @@ function redactConfig(config, redactKeys) {
|
|
|
12890
13097
|
};
|
|
12891
13098
|
return visit(config);
|
|
12892
13099
|
}
|
|
13100
|
+
function stringifySafely(value) {
|
|
13101
|
+
try {
|
|
13102
|
+
return String(value);
|
|
13103
|
+
} catch (err) {
|
|
13104
|
+
return "";
|
|
13105
|
+
}
|
|
13106
|
+
}
|
|
13107
|
+
function aggregateErrorMessage(error) {
|
|
13108
|
+
const message = error.errors.map((entry) => {
|
|
13109
|
+
try {
|
|
13110
|
+
return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
|
|
13111
|
+
} catch (err) {
|
|
13112
|
+
return "";
|
|
13113
|
+
}
|
|
13114
|
+
}).filter(Boolean).join("; ");
|
|
13115
|
+
return message || error.name || "AggregateError";
|
|
13116
|
+
}
|
|
12893
13117
|
var AxiosError = class _AxiosError extends Error {
|
|
12894
13118
|
static from(error, code, config, request, response, customProps) {
|
|
12895
|
-
|
|
12896
|
-
|
|
13119
|
+
let message = error.message;
|
|
13120
|
+
if (!message && utils_default.isArray(error.errors) && error.errors.length) {
|
|
13121
|
+
message = aggregateErrorMessage(error);
|
|
13122
|
+
}
|
|
13123
|
+
const axiosError = new _AxiosError(message, code || error.code, config, request, response);
|
|
13124
|
+
Object.defineProperty(axiosError, "cause", {
|
|
13125
|
+
__proto__: null,
|
|
13126
|
+
value: error,
|
|
13127
|
+
writable: true,
|
|
13128
|
+
enumerable: false,
|
|
13129
|
+
configurable: true
|
|
13130
|
+
});
|
|
12897
13131
|
axiosError.name = error.name;
|
|
12898
13132
|
if (error.status != null && axiosError.status == null) {
|
|
12899
13133
|
axiosError.status = error.status;
|
|
@@ -12972,11 +13206,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
12972
13206
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
12973
13207
|
var AxiosError_default = AxiosError;
|
|
12974
13208
|
|
|
12975
|
-
// ../../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
|
|
12976
13210
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
12977
13211
|
var FormData_default = import_form_data.default;
|
|
12978
13212
|
|
|
12979
|
-
// ../../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
|
|
13214
|
+
var Buffer_default = {
|
|
13215
|
+
isBufferAvailable() {
|
|
13216
|
+
return typeof Buffer !== "undefined";
|
|
13217
|
+
},
|
|
13218
|
+
from(value) {
|
|
13219
|
+
return Buffer.from(value);
|
|
13220
|
+
}
|
|
13221
|
+
};
|
|
13222
|
+
|
|
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
|
|
13224
|
+
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
12980
13225
|
function isVisitable(thing) {
|
|
12981
13226
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
12982
13227
|
}
|
|
@@ -13001,25 +13246,18 @@ function toFormData(obj, formData, options) {
|
|
|
13001
13246
|
throw new TypeError("target must be an object");
|
|
13002
13247
|
}
|
|
13003
13248
|
formData = formData || new (FormData_default || FormData)();
|
|
13004
|
-
|
|
13005
|
-
options,
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
}
|
|
13015
|
-
);
|
|
13016
|
-
const metaTokens = options.metaTokens;
|
|
13017
|
-
const visitor = options.visitor || defaultVisitor;
|
|
13018
|
-
const dots = options.dots;
|
|
13019
|
-
const indexes = options.indexes;
|
|
13020
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
13021
|
-
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
13249
|
+
const option = (name, fallback) => {
|
|
13250
|
+
const value = utils_default.getSafeProp(options, name);
|
|
13251
|
+
return utils_default.isUndefined(value) ? fallback : value;
|
|
13252
|
+
};
|
|
13253
|
+
const metaTokens = option("metaTokens", true);
|
|
13254
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
13255
|
+
const dots = option("dots", false);
|
|
13256
|
+
const indexes = option("indexes", false);
|
|
13257
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
13258
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
13022
13259
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
13260
|
+
const stack = [];
|
|
13023
13261
|
if (!utils_default.isFunction(visitor)) {
|
|
13024
13262
|
throw new TypeError("visitor must be a function");
|
|
13025
13263
|
}
|
|
@@ -13035,10 +13273,44 @@ function toFormData(obj, formData, options) {
|
|
|
13035
13273
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
13036
13274
|
}
|
|
13037
13275
|
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
13038
|
-
|
|
13276
|
+
if (useBlob && typeof _Blob === "function") {
|
|
13277
|
+
return new _Blob([value]);
|
|
13278
|
+
}
|
|
13279
|
+
if (Buffer_default && Buffer_default.isBufferAvailable()) {
|
|
13280
|
+
return Buffer_default.from(value);
|
|
13281
|
+
}
|
|
13282
|
+
throw new AxiosError_default(
|
|
13283
|
+
"Blob is not supported. Use a Buffer instead.",
|
|
13284
|
+
AxiosError_default.ERR_NOT_SUPPORT
|
|
13285
|
+
);
|
|
13039
13286
|
}
|
|
13040
13287
|
return value;
|
|
13041
13288
|
}
|
|
13289
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
13290
|
+
if (depth > maxDepth) {
|
|
13291
|
+
throw new AxiosError_default(
|
|
13292
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13293
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13294
|
+
);
|
|
13295
|
+
}
|
|
13296
|
+
}
|
|
13297
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
13298
|
+
if (maxDepth === Infinity) {
|
|
13299
|
+
return JSON.stringify(value);
|
|
13300
|
+
}
|
|
13301
|
+
const ancestors = [];
|
|
13302
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
13303
|
+
if (!utils_default.isObject(currentValue)) {
|
|
13304
|
+
return currentValue;
|
|
13305
|
+
}
|
|
13306
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
|
|
13307
|
+
ancestors.pop();
|
|
13308
|
+
}
|
|
13309
|
+
ancestors.push(currentValue);
|
|
13310
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
13311
|
+
return currentValue;
|
|
13312
|
+
});
|
|
13313
|
+
}
|
|
13042
13314
|
function defaultVisitor(value, key, path) {
|
|
13043
13315
|
let arr = value;
|
|
13044
13316
|
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
@@ -13048,7 +13320,7 @@ function toFormData(obj, formData, options) {
|
|
|
13048
13320
|
if (value && !path && typeof value === "object") {
|
|
13049
13321
|
if (utils_default.endsWith(key, "{}")) {
|
|
13050
13322
|
key = metaTokens ? key : key.slice(0, -2);
|
|
13051
|
-
value =
|
|
13323
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
13052
13324
|
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
13053
13325
|
key = removeBrackets(key);
|
|
13054
13326
|
arr.forEach(function each(el, index) {
|
|
@@ -13067,7 +13339,6 @@ function toFormData(obj, formData, options) {
|
|
|
13067
13339
|
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
13068
13340
|
return false;
|
|
13069
13341
|
}
|
|
13070
|
-
const stack = [];
|
|
13071
13342
|
const exposedHelpers = Object.assign(predicates, {
|
|
13072
13343
|
defaultVisitor,
|
|
13073
13344
|
convertValue,
|
|
@@ -13075,14 +13346,9 @@ function toFormData(obj, formData, options) {
|
|
|
13075
13346
|
});
|
|
13076
13347
|
function build(value, path, depth = 0) {
|
|
13077
13348
|
if (utils_default.isUndefined(value)) return;
|
|
13078
|
-
|
|
13079
|
-
throw new AxiosError_default(
|
|
13080
|
-
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13081
|
-
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13082
|
-
);
|
|
13083
|
-
}
|
|
13349
|
+
throwIfMaxDepthExceeded(depth);
|
|
13084
13350
|
if (stack.indexOf(value) !== -1) {
|
|
13085
|
-
throw Error("Circular reference detected in " + path.join("."));
|
|
13351
|
+
throw new Error("Circular reference detected in " + path.join("."));
|
|
13086
13352
|
}
|
|
13087
13353
|
stack.push(value);
|
|
13088
13354
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -13101,7 +13367,7 @@ function toFormData(obj, formData, options) {
|
|
|
13101
13367
|
}
|
|
13102
13368
|
var toFormData_default = toFormData;
|
|
13103
13369
|
|
|
13104
|
-
// ../../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
|
|
13105
13371
|
function encode(str) {
|
|
13106
13372
|
const charMap = {
|
|
13107
13373
|
"!": "%21",
|
|
@@ -13124,16 +13390,14 @@ prototype.append = function append(name, value) {
|
|
|
13124
13390
|
this._pairs.push([name, value]);
|
|
13125
13391
|
};
|
|
13126
13392
|
prototype.toString = function toString2(encoder) {
|
|
13127
|
-
const _encode = encoder ?
|
|
13128
|
-
return encoder.call(this, value, encode);
|
|
13129
|
-
} : encode;
|
|
13393
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
|
|
13130
13394
|
return this._pairs.map(function each(pair) {
|
|
13131
13395
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
13132
13396
|
}, "").join("&");
|
|
13133
13397
|
};
|
|
13134
13398
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13135
13399
|
|
|
13136
|
-
// ../../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
|
|
13137
13401
|
function encode2(val) {
|
|
13138
13402
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13139
13403
|
}
|
|
@@ -13141,11 +13405,12 @@ function buildURL(url2, params, options) {
|
|
|
13141
13405
|
if (!params) {
|
|
13142
13406
|
return url2;
|
|
13143
13407
|
}
|
|
13144
|
-
|
|
13408
|
+
url2 = url2 || "";
|
|
13145
13409
|
const _options = utils_default.isFunction(options) ? {
|
|
13146
13410
|
serialize: options
|
|
13147
13411
|
} : options;
|
|
13148
|
-
const
|
|
13412
|
+
const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
|
|
13413
|
+
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
13149
13414
|
let serializedParams;
|
|
13150
13415
|
if (serializeFn) {
|
|
13151
13416
|
serializedParams = serializeFn(params, _options);
|
|
@@ -13162,10 +13427,48 @@ function buildURL(url2, params, options) {
|
|
|
13162
13427
|
return url2;
|
|
13163
13428
|
}
|
|
13164
13429
|
|
|
13165
|
-
// ../../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
|
|
13431
|
+
var $internals2 = /* @__PURE__ */ Symbol("internals");
|
|
13432
|
+
function countHandlers(handlers) {
|
|
13433
|
+
return handlers ? handlers.length : 0;
|
|
13434
|
+
}
|
|
13435
|
+
function trimHandlers(handlers) {
|
|
13436
|
+
if (!handlers) {
|
|
13437
|
+
return;
|
|
13438
|
+
}
|
|
13439
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
13440
|
+
handlers.pop();
|
|
13441
|
+
}
|
|
13442
|
+
}
|
|
13443
|
+
function syncHandlerEntries(manager, internals) {
|
|
13444
|
+
const handlers = manager.handlers;
|
|
13445
|
+
const length = countHandlers(handlers);
|
|
13446
|
+
if (handlers !== internals.handlersRef) {
|
|
13447
|
+
internals.handlersRef = handlers;
|
|
13448
|
+
internals.handlerEntries.clear();
|
|
13449
|
+
} else if (length !== internals.handlersLength) {
|
|
13450
|
+
if (!length) {
|
|
13451
|
+
internals.handlerEntries.clear();
|
|
13452
|
+
} else {
|
|
13453
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
13454
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
13455
|
+
internals.handlerEntries.delete(id);
|
|
13456
|
+
}
|
|
13457
|
+
});
|
|
13458
|
+
}
|
|
13459
|
+
}
|
|
13460
|
+
internals.handlersLength = length;
|
|
13461
|
+
}
|
|
13166
13462
|
var InterceptorManager = class {
|
|
13167
13463
|
constructor() {
|
|
13168
13464
|
this.handlers = [];
|
|
13465
|
+
this[$internals2] = {
|
|
13466
|
+
handlersRef: this.handlers,
|
|
13467
|
+
handlersLength: this.handlers.length,
|
|
13468
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
13469
|
+
iterationDepth: 0,
|
|
13470
|
+
nextId: 0
|
|
13471
|
+
};
|
|
13169
13472
|
}
|
|
13170
13473
|
/**
|
|
13171
13474
|
* Add a new interceptor to the stack
|
|
@@ -13177,13 +13480,25 @@ var InterceptorManager = class {
|
|
|
13177
13480
|
* @return {Number} An ID used to remove interceptor later
|
|
13178
13481
|
*/
|
|
13179
13482
|
use(fulfilled, rejected, options) {
|
|
13180
|
-
|
|
13483
|
+
const handler = {
|
|
13181
13484
|
fulfilled,
|
|
13182
13485
|
rejected,
|
|
13183
13486
|
synchronous: options ? options.synchronous : false,
|
|
13184
13487
|
runWhen: options ? options.runWhen : null
|
|
13488
|
+
};
|
|
13489
|
+
const internals = this[$internals2];
|
|
13490
|
+
if (this.handlers == null) {
|
|
13491
|
+
this.handlers = [];
|
|
13492
|
+
}
|
|
13493
|
+
syncHandlerEntries(this, internals);
|
|
13494
|
+
const id = internals.nextId++;
|
|
13495
|
+
this.handlers.push(handler);
|
|
13496
|
+
internals.handlerEntries.set(id, {
|
|
13497
|
+
handler,
|
|
13498
|
+
index: this.handlers.length - 1
|
|
13185
13499
|
});
|
|
13186
|
-
|
|
13500
|
+
internals.handlersLength = this.handlers.length;
|
|
13501
|
+
return id;
|
|
13187
13502
|
}
|
|
13188
13503
|
/**
|
|
13189
13504
|
* Remove an interceptor from the stack
|
|
@@ -13193,8 +13508,19 @@ var InterceptorManager = class {
|
|
|
13193
13508
|
* @returns {void}
|
|
13194
13509
|
*/
|
|
13195
13510
|
eject(id) {
|
|
13196
|
-
|
|
13197
|
-
|
|
13511
|
+
const internals = this[$internals2];
|
|
13512
|
+
syncHandlerEntries(this, internals);
|
|
13513
|
+
const entry = internals.handlerEntries.get(id);
|
|
13514
|
+
if (entry) {
|
|
13515
|
+
internals.handlerEntries.delete(id);
|
|
13516
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
13517
|
+
return;
|
|
13518
|
+
}
|
|
13519
|
+
this.handlers[entry.index] = null;
|
|
13520
|
+
if (!internals.iterationDepth) {
|
|
13521
|
+
trimHandlers(this.handlers);
|
|
13522
|
+
internals.handlersLength = this.handlers.length;
|
|
13523
|
+
}
|
|
13198
13524
|
}
|
|
13199
13525
|
}
|
|
13200
13526
|
/**
|
|
@@ -13205,6 +13531,7 @@ var InterceptorManager = class {
|
|
|
13205
13531
|
clear() {
|
|
13206
13532
|
if (this.handlers) {
|
|
13207
13533
|
this.handlers = [];
|
|
13534
|
+
syncHandlerEntries(this, this[$internals2]);
|
|
13208
13535
|
}
|
|
13209
13536
|
}
|
|
13210
13537
|
/**
|
|
@@ -13218,31 +13545,44 @@ var InterceptorManager = class {
|
|
|
13218
13545
|
* @returns {void}
|
|
13219
13546
|
*/
|
|
13220
13547
|
forEach(fn) {
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13548
|
+
const internals = this[$internals2];
|
|
13549
|
+
syncHandlerEntries(this, internals);
|
|
13550
|
+
internals.iterationDepth++;
|
|
13551
|
+
try {
|
|
13552
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
13553
|
+
if (h !== null) {
|
|
13554
|
+
fn(h);
|
|
13555
|
+
}
|
|
13556
|
+
});
|
|
13557
|
+
} finally {
|
|
13558
|
+
if (!--internals.iterationDepth) {
|
|
13559
|
+
syncHandlerEntries(this, internals);
|
|
13560
|
+
trimHandlers(this.handlers);
|
|
13561
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
13224
13562
|
}
|
|
13225
|
-
}
|
|
13563
|
+
}
|
|
13226
13564
|
}
|
|
13227
13565
|
};
|
|
13228
13566
|
var InterceptorManager_default = InterceptorManager;
|
|
13229
13567
|
|
|
13230
|
-
// ../../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
|
|
13231
13569
|
var transitional_default = {
|
|
13232
13570
|
silentJSONParsing: true,
|
|
13233
13571
|
forcedJSONParsing: true,
|
|
13234
13572
|
clarifyTimeoutError: false,
|
|
13235
|
-
legacyInterceptorReqResOrdering: true
|
|
13573
|
+
legacyInterceptorReqResOrdering: true,
|
|
13574
|
+
advertiseZstdAcceptEncoding: false,
|
|
13575
|
+
validateStatusUndefinedResolves: true
|
|
13236
13576
|
};
|
|
13237
13577
|
|
|
13238
|
-
// ../../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
|
|
13239
13579
|
import crypto from "crypto";
|
|
13240
13580
|
|
|
13241
|
-
// ../../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
|
|
13242
13582
|
import url from "url";
|
|
13243
13583
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13244
13584
|
|
|
13245
|
-
// ../../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
|
|
13246
13586
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13247
13587
|
var DIGIT = "0123456789";
|
|
13248
13588
|
var ALPHABET = {
|
|
@@ -13272,7 +13612,7 @@ var node_default = {
|
|
|
13272
13612
|
protocols: ["http", "https", "file", "data"]
|
|
13273
13613
|
};
|
|
13274
13614
|
|
|
13275
|
-
// ../../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
|
|
13276
13616
|
var utils_exports = {};
|
|
13277
13617
|
__export(utils_exports, {
|
|
13278
13618
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13290,13 +13630,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13290
13630
|
})();
|
|
13291
13631
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13292
13632
|
|
|
13293
|
-
// ../../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
|
|
13294
13634
|
var platform_default = {
|
|
13295
13635
|
...utils_exports,
|
|
13296
13636
|
...node_default
|
|
13297
13637
|
};
|
|
13298
13638
|
|
|
13299
|
-
// ../../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
|
|
13300
13640
|
function toURLEncodedForm(data, options) {
|
|
13301
13641
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13302
13642
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13310,11 +13650,25 @@ function toURLEncodedForm(data, options) {
|
|
|
13310
13650
|
});
|
|
13311
13651
|
}
|
|
13312
13652
|
|
|
13313
|
-
// ../../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
|
|
13654
|
+
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13655
|
+
function throwIfDepthExceeded(index) {
|
|
13656
|
+
if (index > MAX_DEPTH) {
|
|
13657
|
+
throw new AxiosError_default(
|
|
13658
|
+
"FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
|
|
13659
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13660
|
+
);
|
|
13661
|
+
}
|
|
13662
|
+
}
|
|
13314
13663
|
function parsePropPath(name) {
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13664
|
+
const path = [];
|
|
13665
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
13666
|
+
let match;
|
|
13667
|
+
while ((match = pattern.exec(name)) !== null) {
|
|
13668
|
+
throwIfDepthExceeded(path.length);
|
|
13669
|
+
path.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
13670
|
+
}
|
|
13671
|
+
return path;
|
|
13318
13672
|
}
|
|
13319
13673
|
function arrayToObject(arr) {
|
|
13320
13674
|
const obj = {};
|
|
@@ -13330,6 +13684,7 @@ function arrayToObject(arr) {
|
|
|
13330
13684
|
}
|
|
13331
13685
|
function formDataToJSON(formData) {
|
|
13332
13686
|
function buildPath(path, value, target, index) {
|
|
13687
|
+
throwIfDepthExceeded(index);
|
|
13333
13688
|
let name = path[index++];
|
|
13334
13689
|
if (name === "__proto__") return true;
|
|
13335
13690
|
const isNumericKey = Number.isFinite(+name);
|
|
@@ -13363,9 +13718,25 @@ function formDataToJSON(formData) {
|
|
|
13363
13718
|
}
|
|
13364
13719
|
var formDataToJSON_default = formDataToJSON;
|
|
13365
13720
|
|
|
13366
|
-
// ../../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
|
|
13722
|
+
var methodList = Object.freeze([
|
|
13723
|
+
"get",
|
|
13724
|
+
"delete",
|
|
13725
|
+
"head",
|
|
13726
|
+
"options",
|
|
13727
|
+
"post",
|
|
13728
|
+
"put",
|
|
13729
|
+
"patch",
|
|
13730
|
+
"purge",
|
|
13731
|
+
"link",
|
|
13732
|
+
"unlink",
|
|
13733
|
+
"query"
|
|
13734
|
+
]);
|
|
13735
|
+
var methodList_default = methodList;
|
|
13736
|
+
|
|
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
|
|
13367
13738
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13368
|
-
function
|
|
13739
|
+
function stringifySafely2(rawValue, parser, encoder) {
|
|
13369
13740
|
if (utils_default.isString(rawValue)) {
|
|
13370
13741
|
try {
|
|
13371
13742
|
(parser || JSON.parse)(rawValue);
|
|
@@ -13421,7 +13792,7 @@ var defaults = {
|
|
|
13421
13792
|
}
|
|
13422
13793
|
if (isObjectPayload || hasJSONContentType) {
|
|
13423
13794
|
headers.setContentType("application/json", false);
|
|
13424
|
-
return
|
|
13795
|
+
return stringifySafely2(data);
|
|
13425
13796
|
}
|
|
13426
13797
|
return data;
|
|
13427
13798
|
}
|
|
@@ -13475,12 +13846,12 @@ var defaults = {
|
|
|
13475
13846
|
}
|
|
13476
13847
|
}
|
|
13477
13848
|
};
|
|
13478
|
-
utils_default.forEach(
|
|
13849
|
+
utils_default.forEach(methodList_default, (method) => {
|
|
13479
13850
|
defaults.headers[method] = {};
|
|
13480
13851
|
});
|
|
13481
13852
|
var defaults_default = defaults;
|
|
13482
13853
|
|
|
13483
|
-
// ../../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
|
|
13484
13855
|
function transformData(fns, response) {
|
|
13485
13856
|
const config = this || defaults_default;
|
|
13486
13857
|
const context = response || config;
|
|
@@ -13493,12 +13864,12 @@ function transformData(fns, response) {
|
|
|
13493
13864
|
return data;
|
|
13494
13865
|
}
|
|
13495
13866
|
|
|
13496
|
-
// ../../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
|
|
13497
13868
|
function isCancel(value) {
|
|
13498
13869
|
return !!(value && value.__CANCEL__);
|
|
13499
13870
|
}
|
|
13500
13871
|
|
|
13501
|
-
// ../../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
|
|
13502
13873
|
var CanceledError = class extends AxiosError_default {
|
|
13503
13874
|
/**
|
|
13504
13875
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13517,7 +13888,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13517
13888
|
};
|
|
13518
13889
|
var CanceledError_default = CanceledError;
|
|
13519
13890
|
|
|
13520
|
-
// ../../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
|
|
13521
13892
|
function settle(resolve, reject, response) {
|
|
13522
13893
|
const validateStatus2 = response.config.validateStatus;
|
|
13523
13894
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13533,7 +13904,7 @@ function settle(resolve, reject, response) {
|
|
|
13533
13904
|
}
|
|
13534
13905
|
}
|
|
13535
13906
|
|
|
13536
|
-
// ../../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
|
|
13537
13908
|
function isAbsoluteURL(url2) {
|
|
13538
13909
|
if (typeof url2 !== "string") {
|
|
13539
13910
|
return false;
|
|
@@ -13541,15 +13912,71 @@ function isAbsoluteURL(url2) {
|
|
|
13541
13912
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13542
13913
|
}
|
|
13543
13914
|
|
|
13544
|
-
// ../../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
|
|
13545
13916
|
function combineURLs(baseURL, relativeURL) {
|
|
13546
|
-
|
|
13917
|
+
if (!relativeURL) {
|
|
13918
|
+
return baseURL;
|
|
13919
|
+
}
|
|
13920
|
+
let end = baseURL.length;
|
|
13921
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
13922
|
+
end--;
|
|
13923
|
+
}
|
|
13924
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
13925
|
+
}
|
|
13926
|
+
|
|
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
|
|
13928
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
13929
|
+
function normalizeURLForProtocolCheck(url2) {
|
|
13930
|
+
if (typeof url2 !== "string") {
|
|
13931
|
+
return url2;
|
|
13932
|
+
}
|
|
13933
|
+
let start = 0;
|
|
13934
|
+
while (start < url2.length && url2.charCodeAt(start) <= 32) {
|
|
13935
|
+
start++;
|
|
13936
|
+
}
|
|
13937
|
+
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
13547
13938
|
}
|
|
13548
13939
|
|
|
13549
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13550
|
-
|
|
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
|
|
13941
|
+
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
13942
|
+
function redactFragment(fragment) {
|
|
13943
|
+
if (!fragment) {
|
|
13944
|
+
return fragment;
|
|
13945
|
+
}
|
|
13946
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
13947
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
13948
|
+
});
|
|
13949
|
+
}
|
|
13950
|
+
function redactSensitiveURLParts(url2) {
|
|
13951
|
+
const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
13952
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
13953
|
+
const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
13954
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(
|
|
13955
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
13956
|
+
`$1${REDACTED}`
|
|
13957
|
+
);
|
|
13958
|
+
if (fragmentIndex === -1) {
|
|
13959
|
+
return redactedURLWithoutFragment;
|
|
13960
|
+
}
|
|
13961
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
13962
|
+
}
|
|
13963
|
+
function assertValidHttpProtocolURL(url2, config) {
|
|
13964
|
+
if (typeof url2 === "string") {
|
|
13965
|
+
const normalizedURL = normalizeURLForProtocolCheck(url2);
|
|
13966
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
13967
|
+
throw new AxiosError_default(
|
|
13968
|
+
`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
|
|
13969
|
+
AxiosError_default.ERR_INVALID_URL,
|
|
13970
|
+
config
|
|
13971
|
+
);
|
|
13972
|
+
}
|
|
13973
|
+
}
|
|
13974
|
+
}
|
|
13975
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
13976
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
13551
13977
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
13552
13978
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
13979
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
13553
13980
|
return combineURLs(baseURL, requestedURL);
|
|
13554
13981
|
}
|
|
13555
13982
|
return requestedURL;
|
|
@@ -13622,27 +14049,27 @@ function getEnv(key) {
|
|
|
13622
14049
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13623
14050
|
}
|
|
13624
14051
|
|
|
13625
|
-
// ../../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
|
|
13626
14053
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
13627
14054
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
13628
14055
|
import http from "http";
|
|
13629
14056
|
import https from "https";
|
|
13630
|
-
import
|
|
13631
|
-
import
|
|
14057
|
+
import http22 from "http2";
|
|
14058
|
+
import util3 from "util";
|
|
13632
14059
|
import { resolve as resolvePath } from "path";
|
|
13633
14060
|
import zlib from "zlib";
|
|
13634
14061
|
|
|
13635
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13636
|
-
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";
|
|
13637
14064
|
|
|
13638
|
-
// ../../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
|
|
13639
14066
|
function parseProtocol(url2) {
|
|
13640
14067
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
13641
14068
|
return match && match[1] || "";
|
|
13642
14069
|
}
|
|
13643
14070
|
|
|
13644
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13645
|
-
var DATA_URL_PATTERN = /^([
|
|
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]*)$/;
|
|
13646
14073
|
function fromDataURI(uri, asBlob, options) {
|
|
13647
14074
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
13648
14075
|
const protocol = parseProtocol(uri);
|
|
@@ -13659,13 +14086,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13659
14086
|
const params = match[2];
|
|
13660
14087
|
const encoding = match[3] ? "base64" : "utf8";
|
|
13661
14088
|
const body = match[4];
|
|
13662
|
-
let mime;
|
|
14089
|
+
let mime = "";
|
|
13663
14090
|
if (type) {
|
|
13664
14091
|
mime = params ? type + params : type;
|
|
13665
14092
|
} else if (params) {
|
|
13666
14093
|
mime = "text/plain" + params;
|
|
13667
14094
|
}
|
|
13668
|
-
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
14095
|
+
const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
|
|
13669
14096
|
if (asBlob) {
|
|
13670
14097
|
if (!_Blob) {
|
|
13671
14098
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -13677,10 +14104,24 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13677
14104
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13678
14105
|
}
|
|
13679
14106
|
|
|
13680
|
-
// ../../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
|
|
13681
14108
|
import stream3 from "stream";
|
|
13682
14109
|
|
|
13683
|
-
// ../../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
|
|
14111
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14112
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14113
|
+
if (policy !== "content-only") {
|
|
14114
|
+
headers.set(formHeaders);
|
|
14115
|
+
return;
|
|
14116
|
+
}
|
|
14117
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
14118
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14119
|
+
headers.set(key, val);
|
|
14120
|
+
}
|
|
14121
|
+
});
|
|
14122
|
+
}
|
|
14123
|
+
|
|
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
|
|
13684
14125
|
import stream from "stream";
|
|
13685
14126
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13686
14127
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -13803,14 +14244,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
13803
14244
|
};
|
|
13804
14245
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13805
14246
|
|
|
13806
|
-
// ../../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
|
|
13807
14248
|
import { EventEmitter } from "events";
|
|
13808
14249
|
|
|
13809
|
-
// ../../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
|
|
13810
14251
|
import util from "util";
|
|
13811
14252
|
import { Readable } from "stream";
|
|
13812
14253
|
|
|
13813
|
-
// ../../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
|
|
13814
14255
|
var { asyncIterator } = Symbol;
|
|
13815
14256
|
var readBlob = async function* (blob) {
|
|
13816
14257
|
if (blob.stream) {
|
|
@@ -13825,7 +14266,7 @@ var readBlob = async function* (blob) {
|
|
|
13825
14266
|
};
|
|
13826
14267
|
var readBlob_default = readBlob;
|
|
13827
14268
|
|
|
13828
|
-
// ../../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
|
|
13829
14270
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13830
14271
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
13831
14272
|
var CRLF = "\r\n";
|
|
@@ -13876,10 +14317,10 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13876
14317
|
boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
|
|
13877
14318
|
} = options || {};
|
|
13878
14319
|
if (!utils_default.isFormData(form)) {
|
|
13879
|
-
throw TypeError("FormData instance required");
|
|
14320
|
+
throw new TypeError("FormData instance required");
|
|
13880
14321
|
}
|
|
13881
14322
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
13882
|
-
throw Error("boundary must be 1-70 characters long");
|
|
14323
|
+
throw new Error("boundary must be 1-70 characters long");
|
|
13883
14324
|
}
|
|
13884
14325
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
13885
14326
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -13910,7 +14351,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13910
14351
|
};
|
|
13911
14352
|
var formDataToStream_default = formDataToStream;
|
|
13912
14353
|
|
|
13913
|
-
// ../../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
|
|
13914
14355
|
import stream2 from "stream";
|
|
13915
14356
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
13916
14357
|
__transform(chunk, encoding, callback) {
|
|
@@ -13932,51 +14373,212 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
13932
14373
|
};
|
|
13933
14374
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
13934
14375
|
|
|
13935
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
13942
|
-
} catch (err) {
|
|
13943
|
-
cb(err);
|
|
13944
|
-
}
|
|
13945
|
-
}, cb);
|
|
13946
|
-
} : fn;
|
|
13947
|
-
};
|
|
13948
|
-
var callbackify_default = callbackify;
|
|
13949
|
-
|
|
13950
|
-
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
13951
|
-
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
13952
|
-
var isIPv4Loopback = (host) => {
|
|
13953
|
-
const parts = host.split(".");
|
|
13954
|
-
if (parts.length !== 4) return false;
|
|
13955
|
-
if (parts[0] !== "127") return false;
|
|
13956
|
-
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
13957
|
-
};
|
|
13958
|
-
var isIPv6Loopback = (host) => {
|
|
13959
|
-
if (host === "::1") return true;
|
|
13960
|
-
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
13961
|
-
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
13962
|
-
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
13963
|
-
if (v4MappedHex) {
|
|
13964
|
-
const high = parseInt(v4MappedHex[1], 16);
|
|
13965
|
-
return high >= 32512 && high <= 32767;
|
|
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
|
|
14377
|
+
import http2 from "http2";
|
|
14378
|
+
import util2 from "util";
|
|
14379
|
+
var Http2Sessions = class {
|
|
14380
|
+
constructor() {
|
|
14381
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
13966
14382
|
}
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
14383
|
+
getSession(authority, options) {
|
|
14384
|
+
options = Object.assign(
|
|
14385
|
+
/* @__PURE__ */ Object.create(null),
|
|
14386
|
+
{
|
|
14387
|
+
sessionTimeout: 1e3
|
|
14388
|
+
},
|
|
14389
|
+
options
|
|
14390
|
+
);
|
|
14391
|
+
let authoritySessions = this.sessions[authority];
|
|
14392
|
+
if (authoritySessions) {
|
|
14393
|
+
let len = authoritySessions.length;
|
|
14394
|
+
for (let i = 0; i < len; i++) {
|
|
14395
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14396
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14397
|
+
return sessionHandle;
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
13971
14400
|
}
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
14401
|
+
const session = http2.connect(authority, options);
|
|
14402
|
+
let removed;
|
|
14403
|
+
let timer;
|
|
14404
|
+
const removeSession = () => {
|
|
14405
|
+
if (removed) {
|
|
14406
|
+
return;
|
|
14407
|
+
}
|
|
14408
|
+
removed = true;
|
|
14409
|
+
if (timer) {
|
|
14410
|
+
clearTimeout(timer);
|
|
14411
|
+
timer = null;
|
|
14412
|
+
}
|
|
14413
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
14414
|
+
while (i--) {
|
|
14415
|
+
if (entries[i][0] === session) {
|
|
14416
|
+
if (len === 1) {
|
|
14417
|
+
delete this.sessions[authority];
|
|
14418
|
+
} else {
|
|
14419
|
+
entries.splice(i, 1);
|
|
14420
|
+
}
|
|
14421
|
+
if (!session.closed) {
|
|
14422
|
+
session.close();
|
|
14423
|
+
}
|
|
14424
|
+
return;
|
|
14425
|
+
}
|
|
14426
|
+
}
|
|
14427
|
+
};
|
|
14428
|
+
const originalRequestFn = session.request;
|
|
14429
|
+
const { sessionTimeout } = options;
|
|
14430
|
+
if (sessionTimeout != null) {
|
|
14431
|
+
let streamsCount = 0;
|
|
14432
|
+
session.request = function() {
|
|
14433
|
+
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14434
|
+
streamsCount++;
|
|
14435
|
+
if (timer) {
|
|
14436
|
+
clearTimeout(timer);
|
|
14437
|
+
timer = null;
|
|
14438
|
+
}
|
|
14439
|
+
stream4.once("close", () => {
|
|
14440
|
+
if (!--streamsCount) {
|
|
14441
|
+
timer = setTimeout(() => {
|
|
14442
|
+
timer = null;
|
|
14443
|
+
removeSession();
|
|
14444
|
+
}, sessionTimeout);
|
|
14445
|
+
}
|
|
14446
|
+
});
|
|
14447
|
+
return stream4;
|
|
14448
|
+
};
|
|
14449
|
+
}
|
|
14450
|
+
session.once("close", removeSession);
|
|
14451
|
+
session.once("error", removeSession);
|
|
14452
|
+
let entry = [session, options];
|
|
14453
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14454
|
+
return session;
|
|
14455
|
+
}
|
|
14456
|
+
};
|
|
14457
|
+
var Http2Sessions_default = Http2Sessions;
|
|
14458
|
+
|
|
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
|
|
14460
|
+
var callbackify = (fn, reducer) => {
|
|
14461
|
+
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14462
|
+
const cb = args.pop();
|
|
14463
|
+
fn.apply(this, args).then((value) => {
|
|
14464
|
+
try {
|
|
14465
|
+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
14466
|
+
} catch (err) {
|
|
14467
|
+
cb(err);
|
|
14468
|
+
}
|
|
14469
|
+
}, cb);
|
|
14470
|
+
} : fn;
|
|
14471
|
+
};
|
|
14472
|
+
var callbackify_default = callbackify;
|
|
14473
|
+
|
|
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
|
|
14475
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
14476
|
+
var trimTrailingDots = (value) => {
|
|
14477
|
+
let end = value.length;
|
|
14478
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
14479
|
+
end--;
|
|
14480
|
+
}
|
|
14481
|
+
return end === value.length ? value : value.slice(0, end);
|
|
14482
|
+
};
|
|
14483
|
+
var isIPv4Loopback = (host) => {
|
|
14484
|
+
const parts = host.split(".");
|
|
14485
|
+
if (parts.length !== 4) return false;
|
|
14486
|
+
if (parts[0] !== "127") return false;
|
|
14487
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
14488
|
+
};
|
|
14489
|
+
var parseIPv4Octet = (text) => {
|
|
14490
|
+
if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
|
|
14491
|
+
const n = parseInt(text.slice(2), 16);
|
|
14492
|
+
return Number.isFinite(n) ? n : null;
|
|
14493
|
+
}
|
|
14494
|
+
if (text.length > 1 && /^0[0-7]+$/.test(text)) {
|
|
14495
|
+
const n = parseInt(text, 8);
|
|
14496
|
+
return Number.isFinite(n) ? n : null;
|
|
14497
|
+
}
|
|
14498
|
+
if (text.length > 1 && /^0[0-9]+$/.test(text)) {
|
|
14499
|
+
return null;
|
|
14500
|
+
}
|
|
14501
|
+
if (/^[0-9]+$/.test(text)) {
|
|
14502
|
+
const n = parseInt(text, 10);
|
|
14503
|
+
return Number.isFinite(n) ? n : null;
|
|
14504
|
+
}
|
|
14505
|
+
return null;
|
|
14506
|
+
};
|
|
14507
|
+
var normalizeIPAddress = (host) => {
|
|
14508
|
+
if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
|
|
14509
|
+
return host;
|
|
14510
|
+
}
|
|
14511
|
+
let h = host;
|
|
14512
|
+
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
14513
|
+
h = h.slice(1, -1);
|
|
14514
|
+
}
|
|
14515
|
+
h = trimTrailingDots(h);
|
|
14516
|
+
if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
|
|
14517
|
+
const parts = h.split(".");
|
|
14518
|
+
if (parts.some((p) => p === "")) return host;
|
|
14519
|
+
if (parts.length === 4) {
|
|
14520
|
+
const octets = parts.map(parseIPv4Octet);
|
|
14521
|
+
if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
14522
|
+
return octets.join(".");
|
|
14523
|
+
}
|
|
14524
|
+
if (parts.length > 4) {
|
|
14525
|
+
return host;
|
|
14526
|
+
}
|
|
14527
|
+
if (parts.length === 1) return host;
|
|
14528
|
+
const literalOctets = parts.slice(0, -1);
|
|
14529
|
+
const tail = parts[parts.length - 1];
|
|
14530
|
+
const tailSlots = 4 - literalOctets.length;
|
|
14531
|
+
const tailValue = parseIPv4Octet(tail);
|
|
14532
|
+
if (tailValue === null) return host;
|
|
14533
|
+
const maxTail = (1 << 8 * tailSlots) - 1;
|
|
14534
|
+
if (tailValue < 0 || tailValue > maxTail) return host;
|
|
14535
|
+
const tailOctets = new Array(tailSlots).fill(0);
|
|
14536
|
+
for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
|
|
14537
|
+
tailOctets[i] = v & 255;
|
|
14538
|
+
}
|
|
14539
|
+
const literal = literalOctets.map(parseIPv4Octet);
|
|
14540
|
+
if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
|
|
14541
|
+
return [...literal, ...tailOctets].join(".");
|
|
14542
|
+
};
|
|
14543
|
+
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
14544
|
+
var isIPv6Unspecified = (host) => {
|
|
14545
|
+
if (host === "::") return true;
|
|
14546
|
+
const compressionIndex = host.indexOf("::");
|
|
14547
|
+
if (compressionIndex !== -1) {
|
|
14548
|
+
if (compressionIndex !== host.lastIndexOf("::")) return false;
|
|
14549
|
+
const left = host.slice(0, compressionIndex);
|
|
14550
|
+
const right = host.slice(compressionIndex + 2);
|
|
14551
|
+
const leftGroups = left ? left.split(":") : [];
|
|
14552
|
+
const rightGroups = right ? right.split(":") : [];
|
|
14553
|
+
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
14554
|
+
return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
|
|
14555
|
+
}
|
|
14556
|
+
const groups = host.split(":");
|
|
14557
|
+
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
14558
|
+
};
|
|
14559
|
+
var isIPv6Loopback = (host) => {
|
|
14560
|
+
if (host === "::1") return true;
|
|
14561
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
14562
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
14563
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
14564
|
+
if (v4MappedHex) {
|
|
14565
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
14566
|
+
return high >= 32512 && high <= 32767;
|
|
14567
|
+
}
|
|
14568
|
+
const groups = host.split(":");
|
|
14569
|
+
if (groups.length === 8) {
|
|
14570
|
+
for (let i = 0; i < 7; i++) {
|
|
14571
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
14572
|
+
}
|
|
14573
|
+
return /^0*1$/.test(groups[7]);
|
|
14574
|
+
}
|
|
14575
|
+
return false;
|
|
14576
|
+
};
|
|
14577
|
+
var isLoopback = (host) => {
|
|
13977
14578
|
if (!host) return false;
|
|
13978
14579
|
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
13979
14580
|
if (isIPv4Loopback(host)) return true;
|
|
14581
|
+
if (isIPv6Unspecified(host)) return true;
|
|
13980
14582
|
return isIPv6Loopback(host);
|
|
13981
14583
|
};
|
|
13982
14584
|
var DEFAULT_PORTS2 = {
|
|
@@ -14022,6 +14624,40 @@ var unmapIPv4MappedIPv6 = (host) => {
|
|
|
14022
14624
|
}
|
|
14023
14625
|
return host;
|
|
14024
14626
|
};
|
|
14627
|
+
var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
14628
|
+
var ipv4ToBytes = (host) => {
|
|
14629
|
+
const parts = host.split(".");
|
|
14630
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
14631
|
+
};
|
|
14632
|
+
var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
14633
|
+
var ipv6ToBytes = (host) => {
|
|
14634
|
+
const halves = host.split("::");
|
|
14635
|
+
if (halves.length > 2) {
|
|
14636
|
+
return null;
|
|
14637
|
+
}
|
|
14638
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
14639
|
+
if (halves.length === 2) {
|
|
14640
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
14641
|
+
const missing = 8 - groups.length - rear.length;
|
|
14642
|
+
if (missing < 1) {
|
|
14643
|
+
return null;
|
|
14644
|
+
}
|
|
14645
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
14646
|
+
}
|
|
14647
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
14648
|
+
return null;
|
|
14649
|
+
}
|
|
14650
|
+
return groups.flatMap((group) => {
|
|
14651
|
+
const value = Number.parseInt(group, 16);
|
|
14652
|
+
return [value >> 8 & 255, value & 255];
|
|
14653
|
+
});
|
|
14654
|
+
};
|
|
14655
|
+
var ipToBytes = (host) => {
|
|
14656
|
+
if (typeof host !== "string" || !host) {
|
|
14657
|
+
return null;
|
|
14658
|
+
}
|
|
14659
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
14660
|
+
};
|
|
14025
14661
|
var normalizeNoProxyHost = (hostname) => {
|
|
14026
14662
|
if (!hostname) {
|
|
14027
14663
|
return hostname;
|
|
@@ -14029,7 +14665,89 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
14029
14665
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
14030
14666
|
hostname = hostname.slice(1, -1);
|
|
14031
14667
|
}
|
|
14032
|
-
|
|
14668
|
+
const trimmed = trimTrailingDots(hostname);
|
|
14669
|
+
const ipv4 = normalizeIPAddress(trimmed);
|
|
14670
|
+
if (ipv4 !== trimmed) {
|
|
14671
|
+
return ipv4;
|
|
14672
|
+
}
|
|
14673
|
+
return unmapIPv4MappedIPv6(trimmed);
|
|
14674
|
+
};
|
|
14675
|
+
var normalizeCidrBase = (input) => {
|
|
14676
|
+
let base = input;
|
|
14677
|
+
const startsBracket = base.charAt(0) === "[";
|
|
14678
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
14679
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
14680
|
+
if (startsBracket || endsBracket) {
|
|
14681
|
+
if (!startsBracket || !endsBracket) {
|
|
14682
|
+
return null;
|
|
14683
|
+
}
|
|
14684
|
+
base = base.slice(1, -1);
|
|
14685
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
14686
|
+
return null;
|
|
14687
|
+
}
|
|
14688
|
+
} else if (hasBracket) {
|
|
14689
|
+
return null;
|
|
14690
|
+
}
|
|
14691
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
14692
|
+
return null;
|
|
14693
|
+
}
|
|
14694
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
14695
|
+
if (wasIPv6) {
|
|
14696
|
+
try {
|
|
14697
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
14698
|
+
} catch (_err) {
|
|
14699
|
+
return null;
|
|
14700
|
+
}
|
|
14701
|
+
} else {
|
|
14702
|
+
base = normalizeIPAddress(base);
|
|
14703
|
+
if (!ipv4ToBytes(base)) {
|
|
14704
|
+
return null;
|
|
14705
|
+
}
|
|
14706
|
+
}
|
|
14707
|
+
return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
|
|
14708
|
+
};
|
|
14709
|
+
var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
14710
|
+
var parseCidrEntry = (entry) => {
|
|
14711
|
+
if (entry.indexOf("/") === -1) {
|
|
14712
|
+
return void 0;
|
|
14713
|
+
}
|
|
14714
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
14715
|
+
if (!match) {
|
|
14716
|
+
return null;
|
|
14717
|
+
}
|
|
14718
|
+
let prefix = Number(match[2]);
|
|
14719
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
14720
|
+
if (!parsedBase) {
|
|
14721
|
+
return null;
|
|
14722
|
+
}
|
|
14723
|
+
const { normalized, wasIPv6 } = parsedBase;
|
|
14724
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
14725
|
+
if (prefix < 96) {
|
|
14726
|
+
return null;
|
|
14727
|
+
}
|
|
14728
|
+
prefix -= 96;
|
|
14729
|
+
}
|
|
14730
|
+
const bytes = ipToBytes(normalized);
|
|
14731
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
14732
|
+
return null;
|
|
14733
|
+
}
|
|
14734
|
+
return { bytes, prefix };
|
|
14735
|
+
};
|
|
14736
|
+
var isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
14737
|
+
const fullBytes = prefix >> 3;
|
|
14738
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
14739
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
14740
|
+
return false;
|
|
14741
|
+
}
|
|
14742
|
+
}
|
|
14743
|
+
const remainingBits = prefix & 7;
|
|
14744
|
+
if (remainingBits) {
|
|
14745
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
14746
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
14747
|
+
return false;
|
|
14748
|
+
}
|
|
14749
|
+
}
|
|
14750
|
+
return true;
|
|
14033
14751
|
};
|
|
14034
14752
|
function shouldBypassProxy(location) {
|
|
14035
14753
|
let parsed;
|
|
@@ -14047,10 +14765,18 @@ function shouldBypassProxy(location) {
|
|
|
14047
14765
|
}
|
|
14048
14766
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
14049
14767
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
14768
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
14050
14769
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
14051
14770
|
if (!entry) {
|
|
14052
14771
|
return false;
|
|
14053
14772
|
}
|
|
14773
|
+
if (entry === "*") {
|
|
14774
|
+
return true;
|
|
14775
|
+
}
|
|
14776
|
+
const cidr = parseCidrEntry(entry);
|
|
14777
|
+
if (cidr !== void 0) {
|
|
14778
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
14779
|
+
}
|
|
14054
14780
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
14055
14781
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
14056
14782
|
if (!entryHost) {
|
|
@@ -14069,7 +14795,7 @@ function shouldBypassProxy(location) {
|
|
|
14069
14795
|
});
|
|
14070
14796
|
}
|
|
14071
14797
|
|
|
14072
|
-
// ../../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
|
|
14073
14799
|
function speedometer(samplesCount, min) {
|
|
14074
14800
|
samplesCount = samplesCount || 10;
|
|
14075
14801
|
const bytes = new Array(samplesCount);
|
|
@@ -14105,7 +14831,7 @@ function speedometer(samplesCount, min) {
|
|
|
14105
14831
|
}
|
|
14106
14832
|
var speedometer_default = speedometer;
|
|
14107
14833
|
|
|
14108
|
-
// ../../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
|
|
14109
14835
|
function throttle(fn, freq) {
|
|
14110
14836
|
let timestamp = 0;
|
|
14111
14837
|
let threshold = 1e3 / freq;
|
|
@@ -14136,21 +14862,22 @@ function throttle(fn, freq) {
|
|
|
14136
14862
|
}
|
|
14137
14863
|
};
|
|
14138
14864
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
14139
|
-
|
|
14865
|
+
const flushWith = (...args) => invoke(args);
|
|
14866
|
+
return [throttled, flush, flushWith];
|
|
14140
14867
|
}
|
|
14141
14868
|
var throttle_default = throttle;
|
|
14142
14869
|
|
|
14143
|
-
// ../../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
|
|
14144
14871
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14145
14872
|
let bytesNotified = 0;
|
|
14146
14873
|
const _speedometer = speedometer_default(50, 250);
|
|
14147
14874
|
return throttle_default((e) => {
|
|
14148
|
-
if (!e ||
|
|
14875
|
+
if (!e || !utils_default.isNumber(e.loaded)) {
|
|
14149
14876
|
return;
|
|
14150
14877
|
}
|
|
14151
14878
|
const rawLoaded = e.loaded;
|
|
14152
14879
|
const total = e.lengthComputable ? e.total : void 0;
|
|
14153
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
14880
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
14154
14881
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
14155
14882
|
const rate = _speedometer(progressBytes);
|
|
14156
14883
|
bytesNotified = Math.max(bytesNotified, loaded);
|
|
@@ -14179,10 +14906,66 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
14179
14906
|
throttled[1]
|
|
14180
14907
|
];
|
|
14181
14908
|
};
|
|
14182
|
-
var asyncDecorator = (fn) => (...args) =>
|
|
14909
|
+
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
14183
14910
|
|
|
14184
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14185
|
-
|
|
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
|
|
14912
|
+
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
14913
|
+
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
14914
|
+
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
14915
|
+
var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
|
|
14916
|
+
charCode >= 97 && charCode <= 122 || // a-z
|
|
14917
|
+
charCode >= 48 && charCode <= 57 || // 0-9
|
|
14918
|
+
charCode === 43 || // +
|
|
14919
|
+
charCode === 47 || // /
|
|
14920
|
+
charCode === 45 || // - (base64url)
|
|
14921
|
+
charCode === 95;
|
|
14922
|
+
var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
14923
|
+
var base64Bytes = (significant) => {
|
|
14924
|
+
const groups = Math.floor(significant / 4);
|
|
14925
|
+
const remainder = significant % 4;
|
|
14926
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
14927
|
+
};
|
|
14928
|
+
var estimateBase64BufferAllocation = (body) => {
|
|
14929
|
+
const len = body.length;
|
|
14930
|
+
let padding = 0;
|
|
14931
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
14932
|
+
padding++;
|
|
14933
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) {
|
|
14934
|
+
padding++;
|
|
14935
|
+
}
|
|
14936
|
+
}
|
|
14937
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
14938
|
+
};
|
|
14939
|
+
var estimatePercentDecodedBase64Bytes = (body) => {
|
|
14940
|
+
const len = body.length;
|
|
14941
|
+
let significant = 0;
|
|
14942
|
+
let padding = 0;
|
|
14943
|
+
let invalid = false;
|
|
14944
|
+
for (let i = 0; i < len; i++) {
|
|
14945
|
+
let code = body.charCodeAt(i);
|
|
14946
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
14947
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
14948
|
+
i += 2;
|
|
14949
|
+
}
|
|
14950
|
+
if (isBase64Whitespace(code)) {
|
|
14951
|
+
continue;
|
|
14952
|
+
}
|
|
14953
|
+
if (code === 61) {
|
|
14954
|
+
padding++;
|
|
14955
|
+
continue;
|
|
14956
|
+
}
|
|
14957
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
14958
|
+
invalid = true;
|
|
14959
|
+
continue;
|
|
14960
|
+
}
|
|
14961
|
+
significant++;
|
|
14962
|
+
}
|
|
14963
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
|
|
14964
|
+
return estimateBase64BufferAllocation(body);
|
|
14965
|
+
}
|
|
14966
|
+
return base64Bytes(significant);
|
|
14967
|
+
};
|
|
14968
|
+
var estimateDataURLBytes = (url2, estimateBase64) => {
|
|
14186
14969
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
14187
14970
|
if (!url2.startsWith("data:")) return 0;
|
|
14188
14971
|
const comma = url2.indexOf(",");
|
|
@@ -14191,51 +14974,15 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14191
14974
|
const body = url2.slice(comma + 1);
|
|
14192
14975
|
const isBase64 = /;base64/i.test(meta);
|
|
14193
14976
|
if (isBase64) {
|
|
14194
|
-
|
|
14195
|
-
const len = body.length;
|
|
14196
|
-
for (let i = 0; i < len; i++) {
|
|
14197
|
-
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
14198
|
-
const a = body.charCodeAt(i + 1);
|
|
14199
|
-
const b = body.charCodeAt(i + 2);
|
|
14200
|
-
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
14201
|
-
if (isHex) {
|
|
14202
|
-
effectiveLen -= 2;
|
|
14203
|
-
i += 2;
|
|
14204
|
-
}
|
|
14205
|
-
}
|
|
14206
|
-
}
|
|
14207
|
-
let pad = 0;
|
|
14208
|
-
let idx = len - 1;
|
|
14209
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
|
14210
|
-
body.charCodeAt(j - 1) === 51 && // '3'
|
|
14211
|
-
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
14212
|
-
if (idx >= 0) {
|
|
14213
|
-
if (body.charCodeAt(idx) === 61) {
|
|
14214
|
-
pad++;
|
|
14215
|
-
idx--;
|
|
14216
|
-
} else if (tailIsPct3D(idx)) {
|
|
14217
|
-
pad++;
|
|
14218
|
-
idx -= 3;
|
|
14219
|
-
}
|
|
14220
|
-
}
|
|
14221
|
-
if (pad === 1 && idx >= 0) {
|
|
14222
|
-
if (body.charCodeAt(idx) === 61) {
|
|
14223
|
-
pad++;
|
|
14224
|
-
} else if (tailIsPct3D(idx)) {
|
|
14225
|
-
pad++;
|
|
14226
|
-
}
|
|
14227
|
-
}
|
|
14228
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
14229
|
-
const bytes2 = groups * 3 - (pad || 0);
|
|
14230
|
-
return bytes2 > 0 ? bytes2 : 0;
|
|
14231
|
-
}
|
|
14232
|
-
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
14233
|
-
return Buffer.byteLength(body, "utf8");
|
|
14977
|
+
return estimateBase64(body);
|
|
14234
14978
|
}
|
|
14235
14979
|
let bytes = 0;
|
|
14236
14980
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
14237
14981
|
const c = body.charCodeAt(i);
|
|
14238
|
-
if (c
|
|
14982
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
14983
|
+
bytes += 1;
|
|
14984
|
+
i += 2;
|
|
14985
|
+
} else if (c < 128) {
|
|
14239
14986
|
bytes += 1;
|
|
14240
14987
|
} else if (c < 2048) {
|
|
14241
14988
|
bytes += 2;
|
|
@@ -14252,9 +14999,19 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14252
14999
|
}
|
|
14253
15000
|
}
|
|
14254
15001
|
return bytes;
|
|
15002
|
+
};
|
|
15003
|
+
function estimateDataURLDecodedBytes(url2) {
|
|
15004
|
+
const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
|
|
15005
|
+
return estimateDataURLBytes(
|
|
15006
|
+
fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
|
|
15007
|
+
estimatePercentDecodedBase64Bytes
|
|
15008
|
+
);
|
|
15009
|
+
}
|
|
15010
|
+
function estimateDataURLBufferAllocation(url2) {
|
|
15011
|
+
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
14255
15012
|
}
|
|
14256
15013
|
|
|
14257
|
-
// ../../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
|
|
14258
15015
|
var zlibOptions = {
|
|
14259
15016
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
14260
15017
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -14263,26 +15020,57 @@ var brotliOptions = {
|
|
|
14263
15020
|
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
14264
15021
|
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
14265
15022
|
};
|
|
15023
|
+
var zstdOptions = {
|
|
15024
|
+
flush: zlib.constants.ZSTD_e_flush,
|
|
15025
|
+
finishFlush: zlib.constants.ZSTD_e_flush
|
|
15026
|
+
};
|
|
14266
15027
|
var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
|
|
15028
|
+
var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
|
|
15029
|
+
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
15030
|
+
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
15031
|
+
var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
|
|
14267
15032
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
14268
15033
|
var isHttps = /https:?/;
|
|
14269
|
-
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
14270
|
-
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
14271
|
-
if (policy !== "content-only") {
|
|
14272
|
-
headers.set(formHeaders);
|
|
14273
|
-
return;
|
|
14274
|
-
}
|
|
14275
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
14276
|
-
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
14277
|
-
headers.set(key, val);
|
|
14278
|
-
}
|
|
14279
|
-
});
|
|
14280
|
-
}
|
|
14281
15034
|
var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
|
|
14282
15035
|
var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
15036
|
+
function handleSocketError(err) {
|
|
15037
|
+
const current = this[kAxiosCurrentReq];
|
|
15038
|
+
if (current && !current.destroyed) {
|
|
15039
|
+
current.destroy(err);
|
|
15040
|
+
}
|
|
15041
|
+
}
|
|
14283
15042
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
14284
15043
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
14285
15044
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
15045
|
+
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
15046
|
+
22: 21,
|
|
15047
|
+
24: 5
|
|
15048
|
+
};
|
|
15049
|
+
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
|
|
15050
|
+
if (!nodeVersion) {
|
|
15051
|
+
return false;
|
|
15052
|
+
}
|
|
15053
|
+
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
|
|
15054
|
+
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
|
|
15055
|
+
return false;
|
|
15056
|
+
}
|
|
15057
|
+
if (major > 24) {
|
|
15058
|
+
return true;
|
|
15059
|
+
}
|
|
15060
|
+
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
|
|
15061
|
+
}
|
|
15062
|
+
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
|
|
15063
|
+
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
|
|
15064
|
+
return false;
|
|
15065
|
+
}
|
|
15066
|
+
const agentOptions = agent && agent.options;
|
|
15067
|
+
return Boolean(
|
|
15068
|
+
agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
|
|
15069
|
+
);
|
|
15070
|
+
}
|
|
15071
|
+
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
15072
|
+
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
15073
|
+
}
|
|
14286
15074
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
14287
15075
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
14288
15076
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -14290,6 +15078,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
|
14290
15078
|
if (agent) return agent;
|
|
14291
15079
|
const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
|
|
14292
15080
|
agent = new import_https_proxy_agent.default(merged);
|
|
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
|
+
}
|
|
14293
15088
|
agent[kAxiosInstalledTunnel] = true;
|
|
14294
15089
|
cache.set(key, agent);
|
|
14295
15090
|
return agent;
|
|
@@ -14311,90 +15106,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
|
14311
15106
|
stream4.on("end", flush).on("error", flush);
|
|
14312
15107
|
return throttled;
|
|
14313
15108
|
};
|
|
14314
|
-
var
|
|
14315
|
-
constructor() {
|
|
14316
|
-
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
14317
|
-
}
|
|
14318
|
-
getSession(authority, options) {
|
|
14319
|
-
options = Object.assign(
|
|
14320
|
-
{
|
|
14321
|
-
sessionTimeout: 1e3
|
|
14322
|
-
},
|
|
14323
|
-
options
|
|
14324
|
-
);
|
|
14325
|
-
let authoritySessions = this.sessions[authority];
|
|
14326
|
-
if (authoritySessions) {
|
|
14327
|
-
let len = authoritySessions.length;
|
|
14328
|
-
for (let i = 0; i < len; i++) {
|
|
14329
|
-
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14330
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14331
|
-
return sessionHandle;
|
|
14332
|
-
}
|
|
14333
|
-
}
|
|
14334
|
-
}
|
|
14335
|
-
const session = http2.connect(authority, options);
|
|
14336
|
-
let removed;
|
|
14337
|
-
const removeSession = () => {
|
|
14338
|
-
if (removed) {
|
|
14339
|
-
return;
|
|
14340
|
-
}
|
|
14341
|
-
removed = true;
|
|
14342
|
-
let entries = authoritySessions, len = entries.length, i = len;
|
|
14343
|
-
while (i--) {
|
|
14344
|
-
if (entries[i][0] === session) {
|
|
14345
|
-
if (len === 1) {
|
|
14346
|
-
delete this.sessions[authority];
|
|
14347
|
-
} else {
|
|
14348
|
-
entries.splice(i, 1);
|
|
14349
|
-
}
|
|
14350
|
-
if (!session.closed) {
|
|
14351
|
-
session.close();
|
|
14352
|
-
}
|
|
14353
|
-
return;
|
|
14354
|
-
}
|
|
14355
|
-
}
|
|
14356
|
-
};
|
|
14357
|
-
const originalRequestFn = session.request;
|
|
14358
|
-
const { sessionTimeout } = options;
|
|
14359
|
-
if (sessionTimeout != null) {
|
|
14360
|
-
let timer;
|
|
14361
|
-
let streamsCount = 0;
|
|
14362
|
-
session.request = function() {
|
|
14363
|
-
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14364
|
-
streamsCount++;
|
|
14365
|
-
if (timer) {
|
|
14366
|
-
clearTimeout(timer);
|
|
14367
|
-
timer = null;
|
|
14368
|
-
}
|
|
14369
|
-
stream4.once("close", () => {
|
|
14370
|
-
if (!--streamsCount) {
|
|
14371
|
-
timer = setTimeout(() => {
|
|
14372
|
-
timer = null;
|
|
14373
|
-
removeSession();
|
|
14374
|
-
}, sessionTimeout);
|
|
14375
|
-
}
|
|
14376
|
-
});
|
|
14377
|
-
return stream4;
|
|
14378
|
-
};
|
|
14379
|
-
}
|
|
14380
|
-
session.once("close", removeSession);
|
|
14381
|
-
let entry = [session, options];
|
|
14382
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14383
|
-
return session;
|
|
14384
|
-
}
|
|
14385
|
-
};
|
|
14386
|
-
var http2Sessions = new Http2Sessions();
|
|
15109
|
+
var http2Sessions = new Http2Sessions_default();
|
|
14387
15110
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
14388
15111
|
if (options.beforeRedirects.proxy) {
|
|
14389
15112
|
options.beforeRedirects.proxy(options);
|
|
14390
15113
|
}
|
|
15114
|
+
if (options.beforeRedirects.auth) {
|
|
15115
|
+
options.beforeRedirects.auth(options);
|
|
15116
|
+
}
|
|
15117
|
+
if (options.beforeRedirects.sensitiveHeaders) {
|
|
15118
|
+
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
15119
|
+
}
|
|
14391
15120
|
if (options.beforeRedirects.config) {
|
|
14392
15121
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
14393
15122
|
}
|
|
14394
15123
|
}
|
|
14395
|
-
function
|
|
15124
|
+
function stripMatchingHeaders(headers, sensitiveSet) {
|
|
15125
|
+
if (!headers) {
|
|
15126
|
+
return;
|
|
15127
|
+
}
|
|
15128
|
+
Object.keys(headers).forEach((header) => {
|
|
15129
|
+
if (sensitiveSet.has(header.toLowerCase())) {
|
|
15130
|
+
delete headers[header];
|
|
15131
|
+
}
|
|
15132
|
+
});
|
|
15133
|
+
}
|
|
15134
|
+
function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
15135
|
+
if (!requestDetails) {
|
|
15136
|
+
return false;
|
|
15137
|
+
}
|
|
15138
|
+
try {
|
|
15139
|
+
return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
|
|
15140
|
+
} catch (e) {
|
|
15141
|
+
return false;
|
|
15142
|
+
}
|
|
15143
|
+
}
|
|
15144
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
14396
15145
|
let proxy = configProxy;
|
|
14397
|
-
|
|
15146
|
+
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
15147
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
14398
15148
|
const proxyUrl = getProxyForUrl(location);
|
|
14399
15149
|
if (proxyUrl) {
|
|
14400
15150
|
if (!shouldBypassProxy(location)) {
|
|
@@ -14485,8 +15235,19 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
|
|
|
14485
15235
|
}
|
|
14486
15236
|
}
|
|
14487
15237
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
14488
|
-
setProxy(
|
|
15238
|
+
setProxy(
|
|
15239
|
+
redirectOptions,
|
|
15240
|
+
configProxy,
|
|
15241
|
+
redirectOptions.href,
|
|
15242
|
+
true,
|
|
15243
|
+
configHttpsAgent,
|
|
15244
|
+
configHttpAgent,
|
|
15245
|
+
allowEnvProxy
|
|
15246
|
+
);
|
|
14489
15247
|
};
|
|
15248
|
+
return Boolean(
|
|
15249
|
+
proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
|
|
15250
|
+
);
|
|
14490
15251
|
}
|
|
14491
15252
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
14492
15253
|
var wrapAsync = (asyncExecutor) => {
|
|
@@ -14511,7 +15272,7 @@ var wrapAsync = (asyncExecutor) => {
|
|
|
14511
15272
|
};
|
|
14512
15273
|
var resolveFamily = ({ address, family }) => {
|
|
14513
15274
|
if (!utils_default.isString(address)) {
|
|
14514
|
-
throw
|
|
15275
|
+
throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
14515
15276
|
}
|
|
14516
15277
|
return {
|
|
14517
15278
|
address,
|
|
@@ -14519,12 +15280,36 @@ var resolveFamily = ({ address, family }) => {
|
|
|
14519
15280
|
};
|
|
14520
15281
|
};
|
|
14521
15282
|
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
15283
|
+
var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
|
|
15284
|
+
var normalizeLookup = (lookup) => {
|
|
15285
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
15286
|
+
if (normalized) {
|
|
15287
|
+
return normalized;
|
|
15288
|
+
}
|
|
15289
|
+
const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
15290
|
+
normalized = (hostname, opt, cb) => {
|
|
15291
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
15292
|
+
if (err) {
|
|
15293
|
+
return cb(err);
|
|
15294
|
+
}
|
|
15295
|
+
let addresses;
|
|
15296
|
+
try {
|
|
15297
|
+
addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
15298
|
+
} catch (error) {
|
|
15299
|
+
return cb(error);
|
|
15300
|
+
}
|
|
15301
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
15302
|
+
});
|
|
15303
|
+
};
|
|
15304
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
15305
|
+
return normalized;
|
|
15306
|
+
};
|
|
14522
15307
|
var http2Transport = {
|
|
14523
15308
|
request(options, cb) {
|
|
14524
15309
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
14525
15310
|
const { http2Options, headers } = options;
|
|
14526
15311
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
14527
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } =
|
|
15312
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
|
|
14528
15313
|
const http2Headers = {
|
|
14529
15314
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
14530
15315
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -14548,39 +15333,56 @@ var http2Transport = {
|
|
|
14548
15333
|
};
|
|
14549
15334
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
14550
15335
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
14551
|
-
const own2 = (key) => utils_default.
|
|
15336
|
+
const own2 = (key) => utils_default.getSafeProp(config, key);
|
|
15337
|
+
const transitional2 = own2("transitional") || transitional_default;
|
|
14552
15338
|
let data = own2("data");
|
|
14553
15339
|
let lookup = own2("lookup");
|
|
14554
15340
|
let family = own2("family");
|
|
14555
15341
|
let httpVersion = own2("httpVersion");
|
|
14556
15342
|
if (httpVersion === void 0) httpVersion = 1;
|
|
15343
|
+
const rawHttpVersion = httpVersion;
|
|
14557
15344
|
let http2Options = own2("http2Options");
|
|
15345
|
+
const httpAgent = own2("httpAgent");
|
|
15346
|
+
const httpsAgent = own2("httpsAgent");
|
|
15347
|
+
const configProxy = own2("proxy");
|
|
14558
15348
|
const responseType = own2("responseType");
|
|
14559
15349
|
const responseEncoding = own2("responseEncoding");
|
|
14560
|
-
const
|
|
15350
|
+
const socketPath = own2("socketPath");
|
|
15351
|
+
const method = own2("method").toUpperCase();
|
|
15352
|
+
const maxRedirects = own2("maxRedirects");
|
|
15353
|
+
const maxBodyLength = own2("maxBodyLength");
|
|
15354
|
+
const maxContentLength = own2("maxContentLength");
|
|
15355
|
+
const decompress = own2("decompress");
|
|
14561
15356
|
let isDone;
|
|
14562
15357
|
let rejected = false;
|
|
14563
15358
|
let req;
|
|
14564
15359
|
let connectPhaseTimer;
|
|
14565
|
-
|
|
15360
|
+
try {
|
|
15361
|
+
httpVersion = +httpVersion;
|
|
15362
|
+
} catch (err) {
|
|
15363
|
+
throw new AxiosError_default(
|
|
15364
|
+
"Invalid protocol version: value is not a number",
|
|
15365
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15366
|
+
config
|
|
15367
|
+
);
|
|
15368
|
+
}
|
|
14566
15369
|
if (Number.isNaN(httpVersion)) {
|
|
14567
|
-
throw
|
|
15370
|
+
throw new AxiosError_default(
|
|
15371
|
+
`Invalid protocol version: '${rawHttpVersion}' is not a number`,
|
|
15372
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15373
|
+
config
|
|
15374
|
+
);
|
|
14568
15375
|
}
|
|
14569
15376
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
14570
|
-
throw
|
|
15377
|
+
throw new AxiosError_default(
|
|
15378
|
+
`Unsupported protocol version '${httpVersion}'`,
|
|
15379
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15380
|
+
config
|
|
15381
|
+
);
|
|
14571
15382
|
}
|
|
14572
15383
|
const isHttp2 = httpVersion === 2;
|
|
14573
15384
|
if (lookup) {
|
|
14574
|
-
|
|
14575
|
-
lookup = (hostname, opt, cb) => {
|
|
14576
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
14577
|
-
if (err) {
|
|
14578
|
-
return cb(err);
|
|
14579
|
-
}
|
|
14580
|
-
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
14581
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
14582
|
-
});
|
|
14583
|
-
};
|
|
15385
|
+
lookup = normalizeLookup(lookup);
|
|
14584
15386
|
}
|
|
14585
15387
|
const abortEmitter = new EventEmitter();
|
|
14586
15388
|
function abort(reason) {
|
|
@@ -14590,7 +15392,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14590
15392
|
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
14591
15393
|
);
|
|
14592
15394
|
} catch (err) {
|
|
14593
|
-
console.warn("emit error", err);
|
|
14594
15395
|
}
|
|
14595
15396
|
}
|
|
14596
15397
|
function clearConnectPhaseTimer() {
|
|
@@ -14600,10 +15401,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14600
15401
|
}
|
|
14601
15402
|
}
|
|
14602
15403
|
function createTimeoutError() {
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
15404
|
+
const configTimeout = own2("timeout");
|
|
15405
|
+
let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
|
|
15406
|
+
const configTimeoutErrorMessage = own2("timeoutErrorMessage");
|
|
15407
|
+
if (configTimeoutErrorMessage) {
|
|
15408
|
+
timeoutErrorMessage = configTimeoutErrorMessage;
|
|
14607
15409
|
}
|
|
14608
15410
|
return new AxiosError_default(
|
|
14609
15411
|
timeoutErrorMessage,
|
|
@@ -14647,17 +15449,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14647
15449
|
onFinished();
|
|
14648
15450
|
}
|
|
14649
15451
|
});
|
|
14650
|
-
const fullPath = buildFullPath(
|
|
14651
|
-
const
|
|
15452
|
+
const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
|
|
15453
|
+
const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
|
|
15454
|
+
const parsed = new URL(fullPath, urlBase);
|
|
14652
15455
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
14653
15456
|
if (protocol === "data:") {
|
|
14654
|
-
if (
|
|
14655
|
-
const dataUrl = String(
|
|
14656
|
-
const estimated =
|
|
14657
|
-
if (estimated >
|
|
15457
|
+
if (maxContentLength > -1) {
|
|
15458
|
+
const dataUrl = String(own2("url") || fullPath || "");
|
|
15459
|
+
const estimated = estimateDataURLBufferAllocation(dataUrl);
|
|
15460
|
+
if (estimated > maxContentLength) {
|
|
14658
15461
|
return reject(
|
|
14659
15462
|
new AxiosError_default(
|
|
14660
|
-
"maxContentLength size of " +
|
|
15463
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14661
15464
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14662
15465
|
config
|
|
14663
15466
|
)
|
|
@@ -14674,7 +15477,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14674
15477
|
});
|
|
14675
15478
|
}
|
|
14676
15479
|
try {
|
|
14677
|
-
convertedData = fromDataURI(
|
|
15480
|
+
convertedData = fromDataURI(own2("url"), responseType === "blob", {
|
|
14678
15481
|
Blob: config.env && config.env.Blob
|
|
14679
15482
|
});
|
|
14680
15483
|
} catch (err) {
|
|
@@ -14723,7 +15526,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14723
15526
|
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
14724
15527
|
if (!headers.hasContentLength()) {
|
|
14725
15528
|
try {
|
|
14726
|
-
const knownLength = await
|
|
15529
|
+
const knownLength = await util3.promisify(data.getLength).call(data);
|
|
14727
15530
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
14728
15531
|
} catch (e) {
|
|
14729
15532
|
}
|
|
@@ -14748,7 +15551,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14748
15551
|
);
|
|
14749
15552
|
}
|
|
14750
15553
|
headers.setContentLength(data.length, false);
|
|
14751
|
-
if (
|
|
15554
|
+
if (maxBodyLength > -1 && data.length > maxBodyLength) {
|
|
14752
15555
|
return reject(
|
|
14753
15556
|
new AxiosError_default(
|
|
14754
15557
|
"Request body larger than maxBodyLength limit",
|
|
@@ -14784,7 +15587,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14784
15587
|
data,
|
|
14785
15588
|
progressEventDecorator(
|
|
14786
15589
|
contentLength,
|
|
14787
|
-
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
15590
|
+
progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
|
|
14788
15591
|
)
|
|
14789
15592
|
)
|
|
14790
15593
|
);
|
|
@@ -14792,11 +15595,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14792
15595
|
let auth = void 0;
|
|
14793
15596
|
const configAuth = own2("auth");
|
|
14794
15597
|
if (configAuth) {
|
|
14795
|
-
const username = configAuth
|
|
14796
|
-
const password = configAuth
|
|
15598
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
15599
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
14797
15600
|
auth = username + ":" + password;
|
|
14798
15601
|
}
|
|
14799
|
-
if (!auth && parsed.username) {
|
|
15602
|
+
if (!auth && (parsed.username || parsed.password)) {
|
|
14800
15603
|
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
14801
15604
|
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
14802
15605
|
auth = urlUsername + ":" + urlPassword;
|
|
@@ -14806,96 +15609,165 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14806
15609
|
try {
|
|
14807
15610
|
path = buildURL(
|
|
14808
15611
|
parsed.pathname + parsed.search,
|
|
14809
|
-
|
|
14810
|
-
|
|
15612
|
+
own2("params"),
|
|
15613
|
+
own2("paramsSerializer")
|
|
14811
15614
|
).replace(/^\?/, "");
|
|
14812
15615
|
} catch (err) {
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
|
|
15616
|
+
return reject(
|
|
15617
|
+
AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
|
|
15618
|
+
url: own2("url"),
|
|
15619
|
+
exists: true
|
|
15620
|
+
})
|
|
15621
|
+
);
|
|
14818
15622
|
}
|
|
14819
15623
|
headers.set(
|
|
14820
15624
|
"Accept-Encoding",
|
|
14821
|
-
|
|
15625
|
+
utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
|
|
14822
15626
|
false
|
|
14823
15627
|
);
|
|
15628
|
+
if (isHttp2 && lookup) {
|
|
15629
|
+
http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
|
|
15630
|
+
}
|
|
14824
15631
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
14825
15632
|
path,
|
|
14826
15633
|
method,
|
|
14827
15634
|
headers: toByteStringHeaderObject(headers),
|
|
14828
|
-
agents: { http:
|
|
15635
|
+
agents: { http: httpAgent, https: httpsAgent },
|
|
14829
15636
|
auth,
|
|
14830
15637
|
protocol,
|
|
14831
15638
|
family,
|
|
14832
15639
|
beforeRedirect: dispatchBeforeRedirect,
|
|
14833
15640
|
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
14834
|
-
http2Options
|
|
15641
|
+
http2Options,
|
|
15642
|
+
createConnection: void 0
|
|
14835
15643
|
});
|
|
14836
15644
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
14837
|
-
|
|
14838
|
-
|
|
15645
|
+
let proxyApplied = false;
|
|
15646
|
+
if (socketPath) {
|
|
15647
|
+
if (typeof socketPath !== "string") {
|
|
14839
15648
|
return reject(
|
|
14840
15649
|
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
14841
15650
|
);
|
|
14842
15651
|
}
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
const
|
|
15652
|
+
const allowedSocketPaths = own2("allowedSocketPaths");
|
|
15653
|
+
if (allowedSocketPaths != null) {
|
|
15654
|
+
const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
|
|
15655
|
+
const resolvedSocket = resolvePath(socketPath);
|
|
14846
15656
|
const isAllowed = allowed.some(
|
|
14847
15657
|
(entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
|
|
14848
15658
|
);
|
|
14849
15659
|
if (!isAllowed) {
|
|
14850
15660
|
return reject(
|
|
14851
15661
|
new AxiosError_default(
|
|
14852
|
-
`socketPath "${
|
|
15662
|
+
`socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
|
|
14853
15663
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
14854
15664
|
config
|
|
14855
15665
|
)
|
|
14856
15666
|
);
|
|
14857
15667
|
}
|
|
14858
15668
|
}
|
|
14859
|
-
options.socketPath =
|
|
15669
|
+
options.socketPath = socketPath;
|
|
14860
15670
|
} else {
|
|
14861
15671
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
14862
15672
|
options.port = parsed.port;
|
|
14863
|
-
setProxy(
|
|
15673
|
+
proxyApplied = setProxy(
|
|
14864
15674
|
options,
|
|
14865
|
-
|
|
15675
|
+
configProxy,
|
|
14866
15676
|
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
14867
15677
|
false,
|
|
14868
|
-
|
|
15678
|
+
httpsAgent,
|
|
15679
|
+
httpAgent,
|
|
15680
|
+
// The HTTP/2 transport connects independently of HTTP/1 agents, so it
|
|
15681
|
+
// cannot apply either axios-resolved or agent-local environment proxies.
|
|
15682
|
+
// Explicit proxy config is still processed and rejected below.
|
|
15683
|
+
!isHttp2
|
|
14869
15684
|
);
|
|
14870
15685
|
}
|
|
14871
15686
|
let transport;
|
|
14872
15687
|
let isNativeTransport = false;
|
|
15688
|
+
let transportEnforcesMaxBodyLength = false;
|
|
14873
15689
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
14874
15690
|
if (options.agent == null) {
|
|
14875
|
-
options.agent = isHttpsRequest ?
|
|
15691
|
+
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
14876
15692
|
}
|
|
14877
15693
|
if (isHttp2) {
|
|
15694
|
+
if (proxyApplied) {
|
|
15695
|
+
return reject(
|
|
15696
|
+
new AxiosError_default(
|
|
15697
|
+
"HTTP/2 requests with a proxy are not supported",
|
|
15698
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
15699
|
+
config
|
|
15700
|
+
)
|
|
15701
|
+
);
|
|
15702
|
+
}
|
|
14878
15703
|
transport = http2Transport;
|
|
14879
15704
|
} else {
|
|
14880
15705
|
const configTransport = own2("transport");
|
|
14881
15706
|
if (configTransport) {
|
|
14882
15707
|
transport = configTransport;
|
|
14883
|
-
} else if (
|
|
15708
|
+
} else if (maxRedirects === 0) {
|
|
14884
15709
|
transport = isHttpsRequest ? https : http;
|
|
14885
15710
|
isNativeTransport = true;
|
|
14886
15711
|
} else {
|
|
14887
|
-
|
|
14888
|
-
|
|
15712
|
+
transportEnforcesMaxBodyLength = true;
|
|
15713
|
+
options.sensitiveHeaders = [];
|
|
15714
|
+
if (maxRedirects) {
|
|
15715
|
+
options.maxRedirects = maxRedirects;
|
|
14889
15716
|
}
|
|
14890
15717
|
const configBeforeRedirect = own2("beforeRedirect");
|
|
14891
15718
|
if (configBeforeRedirect) {
|
|
14892
15719
|
options.beforeRedirects.config = configBeforeRedirect;
|
|
14893
15720
|
}
|
|
15721
|
+
if (auth) {
|
|
15722
|
+
const requestOrigin = parsed.origin;
|
|
15723
|
+
const authToRestore = auth;
|
|
15724
|
+
options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
|
|
15725
|
+
try {
|
|
15726
|
+
if (new URL(redirectOptions.href).origin === requestOrigin) {
|
|
15727
|
+
redirectOptions.auth = authToRestore;
|
|
15728
|
+
}
|
|
15729
|
+
} catch (e) {
|
|
15730
|
+
}
|
|
15731
|
+
};
|
|
15732
|
+
}
|
|
15733
|
+
const sensitiveHeaders = own2("sensitiveHeaders");
|
|
15734
|
+
if (sensitiveHeaders != null) {
|
|
15735
|
+
if (!utils_default.isArray(sensitiveHeaders)) {
|
|
15736
|
+
return reject(
|
|
15737
|
+
new AxiosError_default(
|
|
15738
|
+
"sensitiveHeaders must be an array of strings",
|
|
15739
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15740
|
+
config
|
|
15741
|
+
)
|
|
15742
|
+
);
|
|
15743
|
+
}
|
|
15744
|
+
const sensitiveSet = /* @__PURE__ */ new Set();
|
|
15745
|
+
for (const header of sensitiveHeaders) {
|
|
15746
|
+
if (!utils_default.isString(header)) {
|
|
15747
|
+
return reject(
|
|
15748
|
+
new AxiosError_default(
|
|
15749
|
+
"sensitiveHeaders must be an array of strings",
|
|
15750
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15751
|
+
config
|
|
15752
|
+
)
|
|
15753
|
+
);
|
|
15754
|
+
}
|
|
15755
|
+
sensitiveSet.add(header.toLowerCase());
|
|
15756
|
+
}
|
|
15757
|
+
if (sensitiveSet.size) {
|
|
15758
|
+
options.sensitiveHeaders = Array.from(sensitiveSet);
|
|
15759
|
+
options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
|
|
15760
|
+
if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
|
|
15761
|
+
stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
|
|
15762
|
+
}
|
|
15763
|
+
};
|
|
15764
|
+
}
|
|
15765
|
+
}
|
|
14894
15766
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
14895
15767
|
}
|
|
14896
15768
|
}
|
|
14897
|
-
if (
|
|
14898
|
-
options.maxBodyLength =
|
|
15769
|
+
if (maxBodyLength > -1) {
|
|
15770
|
+
options.maxBodyLength = maxBodyLength;
|
|
14899
15771
|
} else {
|
|
14900
15772
|
options.maxBodyLength = Infinity;
|
|
14901
15773
|
}
|
|
@@ -14915,7 +15787,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14915
15787
|
transformStream,
|
|
14916
15788
|
progressEventDecorator(
|
|
14917
15789
|
responseLength,
|
|
14918
|
-
progressEventReducer(
|
|
15790
|
+
progressEventReducer(
|
|
15791
|
+
asyncDecorator(onDownloadProgress, scheduleProgress),
|
|
15792
|
+
true,
|
|
15793
|
+
3
|
|
15794
|
+
)
|
|
14919
15795
|
)
|
|
14920
15796
|
)
|
|
14921
15797
|
);
|
|
@@ -14923,7 +15799,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14923
15799
|
}
|
|
14924
15800
|
let responseStream = res;
|
|
14925
15801
|
const lastRequest = res.req || req;
|
|
14926
|
-
if (
|
|
15802
|
+
if (decompress !== false && res.headers["content-encoding"]) {
|
|
14927
15803
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
14928
15804
|
delete res.headers["content-encoding"];
|
|
14929
15805
|
}
|
|
@@ -14946,6 +15822,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14946
15822
|
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
14947
15823
|
delete res.headers["content-encoding"];
|
|
14948
15824
|
}
|
|
15825
|
+
break;
|
|
15826
|
+
case "zstd":
|
|
15827
|
+
if (isZstdSupported) {
|
|
15828
|
+
streams.push(zlib.createZstdDecompress(zstdOptions));
|
|
15829
|
+
delete res.headers["content-encoding"];
|
|
15830
|
+
}
|
|
15831
|
+
break;
|
|
14949
15832
|
}
|
|
14950
15833
|
}
|
|
14951
15834
|
responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
|
|
@@ -14957,8 +15840,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14957
15840
|
request: lastRequest
|
|
14958
15841
|
};
|
|
14959
15842
|
if (responseType === "stream") {
|
|
14960
|
-
if (
|
|
14961
|
-
const limit =
|
|
15843
|
+
if (maxContentLength > -1) {
|
|
15844
|
+
const limit = maxContentLength;
|
|
14962
15845
|
const source = responseStream;
|
|
14963
15846
|
async function* enforceMaxContentLength() {
|
|
14964
15847
|
let totalResponseBytes = 0;
|
|
@@ -14987,12 +15870,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14987
15870
|
responseStream.on("data", function handleStreamData(chunk) {
|
|
14988
15871
|
responseBuffer.push(chunk);
|
|
14989
15872
|
totalResponseBytes += chunk.length;
|
|
14990
|
-
if (
|
|
15873
|
+
if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
|
|
14991
15874
|
rejected = true;
|
|
14992
15875
|
responseStream.destroy();
|
|
14993
15876
|
abort(
|
|
14994
15877
|
new AxiosError_default(
|
|
14995
|
-
"maxContentLength size of " +
|
|
15878
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14996
15879
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14997
15880
|
config,
|
|
14998
15881
|
lastRequest
|
|
@@ -15053,14 +15936,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15053
15936
|
});
|
|
15054
15937
|
const boundSockets = /* @__PURE__ */ new Set();
|
|
15055
15938
|
req.on("socket", function handleRequestSocket(socket) {
|
|
15056
|
-
socket.setKeepAlive
|
|
15939
|
+
if (typeof socket.setKeepAlive === "function") {
|
|
15940
|
+
socket.setKeepAlive(true, 1e3 * 60);
|
|
15941
|
+
}
|
|
15057
15942
|
if (!socket[kAxiosSocketListener]) {
|
|
15058
|
-
socket.on("error",
|
|
15059
|
-
const current = socket[kAxiosCurrentReq];
|
|
15060
|
-
if (current && !current.destroyed) {
|
|
15061
|
-
current.destroy(err);
|
|
15062
|
-
}
|
|
15063
|
-
});
|
|
15943
|
+
socket.on("error", handleSocketError);
|
|
15064
15944
|
socket[kAxiosSocketListener] = true;
|
|
15065
15945
|
}
|
|
15066
15946
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -15075,8 +15955,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15075
15955
|
}
|
|
15076
15956
|
boundSockets.clear();
|
|
15077
15957
|
});
|
|
15078
|
-
if (
|
|
15079
|
-
const timeout = parseInt(
|
|
15958
|
+
if (own2("timeout")) {
|
|
15959
|
+
const timeout = parseInt(own2("timeout"), 10);
|
|
15080
15960
|
if (Number.isNaN(timeout)) {
|
|
15081
15961
|
abort(
|
|
15082
15962
|
new AxiosError_default(
|
|
@@ -15115,8 +15995,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15115
15995
|
}
|
|
15116
15996
|
});
|
|
15117
15997
|
let uploadStream = data;
|
|
15118
|
-
if (
|
|
15119
|
-
const limit =
|
|
15998
|
+
if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
|
|
15999
|
+
const limit = maxBodyLength;
|
|
15120
16000
|
let bytesSent = 0;
|
|
15121
16001
|
uploadStream = stream3.pipeline(
|
|
15122
16002
|
[
|
|
@@ -15152,7 +16032,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15152
16032
|
});
|
|
15153
16033
|
};
|
|
15154
16034
|
|
|
15155
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
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
|
|
15156
16036
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
15157
16037
|
url2 = new URL(url2, platform_default.origin);
|
|
15158
16038
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -15161,7 +16041,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
15161
16041
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
15162
16042
|
) : () => true;
|
|
15163
16043
|
|
|
15164
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
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
|
|
15165
16045
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
15166
16046
|
// Standard browser envs support document.cookie
|
|
15167
16047
|
{
|
|
@@ -15192,7 +16072,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15192
16072
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
15193
16073
|
const eq = cookie.indexOf("=");
|
|
15194
16074
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
15195
|
-
|
|
16075
|
+
try {
|
|
16076
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
16077
|
+
} catch (e) {
|
|
16078
|
+
return cookie.slice(eq + 1);
|
|
16079
|
+
}
|
|
15196
16080
|
}
|
|
15197
16081
|
}
|
|
15198
16082
|
return null;
|
|
@@ -15214,9 +16098,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15214
16098
|
}
|
|
15215
16099
|
);
|
|
15216
16100
|
|
|
15217
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
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
|
|
15218
16102
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
16103
|
+
var ownEnumerableKeys = (thing) => {
|
|
16104
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
16105
|
+
return Object.keys(thing).concat(
|
|
16106
|
+
Object.getOwnPropertySymbols(thing).filter(
|
|
16107
|
+
(symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
|
|
16108
|
+
)
|
|
16109
|
+
);
|
|
16110
|
+
}
|
|
16111
|
+
return Object.keys(thing);
|
|
16112
|
+
};
|
|
15219
16113
|
function mergeConfig(config1, config2) {
|
|
16114
|
+
config1 = config1 || {};
|
|
15220
16115
|
config2 = config2 || {};
|
|
15221
16116
|
const config = /* @__PURE__ */ Object.create(null);
|
|
15222
16117
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -15257,6 +16152,23 @@ function mergeConfig(config1, config2) {
|
|
|
15257
16152
|
return getMergedValue(void 0, a);
|
|
15258
16153
|
}
|
|
15259
16154
|
}
|
|
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;
|
|
16164
|
+
}
|
|
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;
|
|
16171
|
+
}
|
|
15260
16172
|
function mergeDirectKeys(a, b, prop) {
|
|
15261
16173
|
if (utils_default.hasOwnProp(config2, prop)) {
|
|
15262
16174
|
return getMergedValue(a, b);
|
|
@@ -15273,7 +16185,7 @@ function mergeConfig(config1, config2) {
|
|
|
15273
16185
|
transformResponse: defaultToConfig2,
|
|
15274
16186
|
paramsSerializer: defaultToConfig2,
|
|
15275
16187
|
timeout: defaultToConfig2,
|
|
15276
|
-
|
|
16188
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
15277
16189
|
withCredentials: defaultToConfig2,
|
|
15278
16190
|
withXSRFToken: defaultToConfig2,
|
|
15279
16191
|
adapter: defaultToConfig2,
|
|
@@ -15296,7 +16208,7 @@ function mergeConfig(config1, config2) {
|
|
|
15296
16208
|
validateStatus: mergeDirectKeys,
|
|
15297
16209
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
15298
16210
|
};
|
|
15299
|
-
utils_default.forEach(
|
|
16211
|
+
utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
15300
16212
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
15301
16213
|
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
15302
16214
|
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
@@ -15304,27 +16216,22 @@ function mergeConfig(config1, config2) {
|
|
|
15304
16216
|
const configValue = merge2(a, b, prop);
|
|
15305
16217
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
15306
16218
|
});
|
|
16219
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
16220
|
+
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
16221
|
+
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
16222
|
+
} else {
|
|
16223
|
+
delete config.validateStatus;
|
|
16224
|
+
}
|
|
16225
|
+
}
|
|
15307
16226
|
return config;
|
|
15308
16227
|
}
|
|
15309
16228
|
|
|
15310
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15311
|
-
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
15312
|
-
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
15313
|
-
if (policy !== "content-only") {
|
|
15314
|
-
headers.set(formHeaders);
|
|
15315
|
-
return;
|
|
15316
|
-
}
|
|
15317
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
15318
|
-
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
15319
|
-
headers.set(key, val);
|
|
15320
|
-
}
|
|
15321
|
-
});
|
|
15322
|
-
}
|
|
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
|
|
15323
16230
|
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
15324
16231
|
/%([0-9A-F]{2})/gi,
|
|
15325
16232
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
15326
16233
|
);
|
|
15327
|
-
|
|
16234
|
+
function resolveConfig(config) {
|
|
15328
16235
|
const newConfig = mergeConfig({}, config);
|
|
15329
16236
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
15330
16237
|
const data = own2("data");
|
|
@@ -15338,21 +16245,28 @@ var resolveConfig_default = (config) => {
|
|
|
15338
16245
|
const url2 = own2("url");
|
|
15339
16246
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
15340
16247
|
newConfig.url = buildURL(
|
|
15341
|
-
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
15342
|
-
|
|
15343
|
-
|
|
16248
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
|
|
16249
|
+
own2("params"),
|
|
16250
|
+
own2("paramsSerializer")
|
|
15344
16251
|
);
|
|
15345
16252
|
if (auth) {
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
16253
|
+
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
16254
|
+
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
16255
|
+
try {
|
|
16256
|
+
headers.set(
|
|
16257
|
+
"Authorization",
|
|
16258
|
+
"Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
|
|
16259
|
+
);
|
|
16260
|
+
} catch (e) {
|
|
16261
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
16262
|
+
}
|
|
15350
16263
|
}
|
|
15351
16264
|
if (utils_default.isFormData(data)) {
|
|
15352
|
-
|
|
16265
|
+
const getHeaders = utils_default.getSafeProp(data, "getHeaders");
|
|
16266
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
|
|
15353
16267
|
headers.setContentType(void 0);
|
|
15354
|
-
} else if (utils_default.isFunction(
|
|
15355
|
-
|
|
16268
|
+
} else if (utils_default.isFunction(getHeaders)) {
|
|
16269
|
+
setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
|
|
15356
16270
|
}
|
|
15357
16271
|
}
|
|
15358
16272
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -15368,9 +16282,10 @@ var resolveConfig_default = (config) => {
|
|
|
15368
16282
|
}
|
|
15369
16283
|
}
|
|
15370
16284
|
return newConfig;
|
|
15371
|
-
}
|
|
16285
|
+
}
|
|
16286
|
+
var resolveConfig_default = resolveConfig;
|
|
15372
16287
|
|
|
15373
|
-
// ../../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
|
|
15374
16289
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
15375
16290
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
15376
16291
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -15380,7 +16295,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15380
16295
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
15381
16296
|
let onCanceled;
|
|
15382
16297
|
let uploadThrottled, downloadThrottled;
|
|
15383
|
-
let flushUpload, flushDownload;
|
|
16298
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
15384
16299
|
function done() {
|
|
15385
16300
|
flushUpload && flushUpload();
|
|
15386
16301
|
flushDownload && flushDownload();
|
|
@@ -15390,7 +16305,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15390
16305
|
let request = new XMLHttpRequest();
|
|
15391
16306
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
15392
16307
|
request.timeout = _config.timeout;
|
|
15393
|
-
function onloadend() {
|
|
16308
|
+
function onloadend(event) {
|
|
16309
|
+
if (!request) {
|
|
16310
|
+
return;
|
|
16311
|
+
}
|
|
16312
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
16313
|
+
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
16314
|
+
done();
|
|
16315
|
+
request = null;
|
|
16316
|
+
return;
|
|
16317
|
+
}
|
|
16318
|
+
try {
|
|
16319
|
+
if (event) {
|
|
16320
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
16321
|
+
} else {
|
|
16322
|
+
flushDownload && flushDownload();
|
|
16323
|
+
}
|
|
16324
|
+
} catch (err) {
|
|
16325
|
+
setTimeout(() => {
|
|
16326
|
+
throw err;
|
|
16327
|
+
});
|
|
16328
|
+
}
|
|
15394
16329
|
if (!request) {
|
|
15395
16330
|
return;
|
|
15396
16331
|
}
|
|
@@ -15478,7 +16413,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15478
16413
|
request.responseType = _config.responseType;
|
|
15479
16414
|
}
|
|
15480
16415
|
if (onDownloadProgress) {
|
|
15481
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
16416
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
16417
|
+
onDownloadProgress,
|
|
16418
|
+
true
|
|
16419
|
+
);
|
|
15482
16420
|
request.addEventListener("progress", downloadThrottled);
|
|
15483
16421
|
}
|
|
15484
16422
|
if (onUploadProgress && request.upload) {
|
|
@@ -15510,13 +16448,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15510
16448
|
config
|
|
15511
16449
|
)
|
|
15512
16450
|
);
|
|
16451
|
+
done();
|
|
15513
16452
|
return;
|
|
15514
16453
|
}
|
|
15515
16454
|
request.send(requestData || null);
|
|
15516
16455
|
});
|
|
15517
16456
|
};
|
|
15518
16457
|
|
|
15519
|
-
// ../../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
|
|
15520
16459
|
var composeSignals = (signals, timeout) => {
|
|
15521
16460
|
signals = signals ? signals.filter(Boolean) : [];
|
|
15522
16461
|
if (!timeout && !signals.length) {
|
|
@@ -15549,14 +16488,23 @@ var composeSignals = (signals, timeout) => {
|
|
|
15549
16488
|
});
|
|
15550
16489
|
signals = null;
|
|
15551
16490
|
};
|
|
15552
|
-
signals.forEach((signal2) =>
|
|
16491
|
+
signals.forEach((signal2) => {
|
|
16492
|
+
if (aborted) {
|
|
16493
|
+
return;
|
|
16494
|
+
}
|
|
16495
|
+
if (signal2.aborted) {
|
|
16496
|
+
onabort.call(signal2);
|
|
16497
|
+
return;
|
|
16498
|
+
}
|
|
16499
|
+
signal2.addEventListener("abort", onabort, { once: true });
|
|
16500
|
+
});
|
|
15553
16501
|
const { signal } = controller;
|
|
15554
16502
|
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
15555
16503
|
return signal;
|
|
15556
16504
|
};
|
|
15557
16505
|
var composeSignals_default = composeSignals;
|
|
15558
16506
|
|
|
15559
|
-
// ../../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
|
|
15560
16508
|
var streamChunk = function* (chunk, chunkSize) {
|
|
15561
16509
|
let len = chunk.byteLength;
|
|
15562
16510
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -15636,9 +16584,34 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
15636
16584
|
);
|
|
15637
16585
|
};
|
|
15638
16586
|
|
|
15639
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
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
|
|
15640
16588
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
16589
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
16590
|
+
cache: "default",
|
|
16591
|
+
redirect: "follow",
|
|
16592
|
+
referrer: "about:client",
|
|
16593
|
+
referrerPolicy: "",
|
|
16594
|
+
mode: "cors",
|
|
16595
|
+
integrity: "",
|
|
16596
|
+
keepalive: false,
|
|
16597
|
+
priority: "auto",
|
|
16598
|
+
window: null
|
|
16599
|
+
};
|
|
15641
16600
|
var { isFunction: isFunction2 } = utils_default;
|
|
16601
|
+
var encodeUTF82 = (str) => encodeURIComponent(str).replace(
|
|
16602
|
+
/%([0-9A-F]{2})/gi,
|
|
16603
|
+
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
16604
|
+
);
|
|
16605
|
+
var decodeURIComponentSafe2 = (value) => {
|
|
16606
|
+
if (!utils_default.isString(value)) {
|
|
16607
|
+
return value;
|
|
16608
|
+
}
|
|
16609
|
+
try {
|
|
16610
|
+
return decodeURIComponent(value);
|
|
16611
|
+
} catch (error) {
|
|
16612
|
+
return value;
|
|
16613
|
+
}
|
|
16614
|
+
};
|
|
15642
16615
|
var test = (fn, ...args) => {
|
|
15643
16616
|
try {
|
|
15644
16617
|
return !!fn(...args);
|
|
@@ -15646,6 +16619,14 @@ var test = (fn, ...args) => {
|
|
|
15646
16619
|
return false;
|
|
15647
16620
|
}
|
|
15648
16621
|
};
|
|
16622
|
+
var maybeWithAuthCredentials = (url2) => {
|
|
16623
|
+
const protocolIndex = url2.indexOf("://");
|
|
16624
|
+
let urlToCheck = url2;
|
|
16625
|
+
if (protocolIndex !== -1) {
|
|
16626
|
+
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
16627
|
+
}
|
|
16628
|
+
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
16629
|
+
};
|
|
15649
16630
|
var factory = (env) => {
|
|
15650
16631
|
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
15651
16632
|
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
@@ -15746,10 +16727,12 @@ var factory = (env) => {
|
|
|
15746
16727
|
withCredentials = "same-origin",
|
|
15747
16728
|
fetchOptions,
|
|
15748
16729
|
maxContentLength,
|
|
15749
|
-
maxBodyLength
|
|
16730
|
+
maxBodyLength,
|
|
16731
|
+
maxRedirects
|
|
15750
16732
|
} = resolveConfig_default(config);
|
|
15751
16733
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
15752
16734
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
16735
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
15753
16736
|
let _fetch = envFetch || fetch;
|
|
15754
16737
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
15755
16738
|
let composedSignal = composeSignals_default(
|
|
@@ -15761,7 +16744,47 @@ var factory = (env) => {
|
|
|
15761
16744
|
composedSignal.unsubscribe();
|
|
15762
16745
|
});
|
|
15763
16746
|
let requestContentLength;
|
|
16747
|
+
let pendingBodyError = null;
|
|
16748
|
+
const maxBodyLengthError = () => new AxiosError_default(
|
|
16749
|
+
"Request body larger than maxBodyLength limit",
|
|
16750
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
16751
|
+
config,
|
|
16752
|
+
request
|
|
16753
|
+
);
|
|
15764
16754
|
try {
|
|
16755
|
+
let auth = void 0;
|
|
16756
|
+
const configAuth = own2("auth");
|
|
16757
|
+
if (configAuth) {
|
|
16758
|
+
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
16759
|
+
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
16760
|
+
auth = {
|
|
16761
|
+
username,
|
|
16762
|
+
password
|
|
16763
|
+
};
|
|
16764
|
+
}
|
|
16765
|
+
if (maybeWithAuthCredentials(url2)) {
|
|
16766
|
+
const parsedURL = new URL(url2, platform_default.origin);
|
|
16767
|
+
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
16768
|
+
const urlUsername = decodeURIComponentSafe2(parsedURL.username);
|
|
16769
|
+
const urlPassword = decodeURIComponentSafe2(parsedURL.password);
|
|
16770
|
+
auth = {
|
|
16771
|
+
username: urlUsername,
|
|
16772
|
+
password: urlPassword
|
|
16773
|
+
};
|
|
16774
|
+
}
|
|
16775
|
+
if (parsedURL.username || parsedURL.password) {
|
|
16776
|
+
parsedURL.username = "";
|
|
16777
|
+
parsedURL.password = "";
|
|
16778
|
+
url2 = parsedURL.href;
|
|
16779
|
+
}
|
|
16780
|
+
}
|
|
16781
|
+
if (auth) {
|
|
16782
|
+
headers.delete("authorization");
|
|
16783
|
+
headers.set(
|
|
16784
|
+
"Authorization",
|
|
16785
|
+
"Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
|
|
16786
|
+
);
|
|
16787
|
+
}
|
|
15765
16788
|
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
15766
16789
|
const estimated = estimateDataURLDecodedBytes(url2);
|
|
15767
16790
|
if (estimated > maxContentLength) {
|
|
@@ -15774,33 +16797,55 @@ var factory = (env) => {
|
|
|
15774
16797
|
}
|
|
15775
16798
|
}
|
|
15776
16799
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
15777
|
-
const outboundLength = await
|
|
15778
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
request
|
|
15784
|
-
);
|
|
16800
|
+
const outboundLength = await getBodyLength(data);
|
|
16801
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
16802
|
+
requestContentLength = outboundLength;
|
|
16803
|
+
if (outboundLength > maxBodyLength) {
|
|
16804
|
+
throw maxBodyLengthError();
|
|
16805
|
+
}
|
|
15785
16806
|
}
|
|
15786
16807
|
}
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
}
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
16808
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
|
|
16809
|
+
const trackRequestStream = (stream4, onProgress, flush) => trackStream(
|
|
16810
|
+
stream4,
|
|
16811
|
+
DEFAULT_CHUNK_SIZE,
|
|
16812
|
+
(loadedBytes) => {
|
|
16813
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
|
|
16814
|
+
throw pendingBodyError = maxBodyLengthError();
|
|
16815
|
+
}
|
|
16816
|
+
onProgress && onProgress(loadedBytes);
|
|
16817
|
+
},
|
|
16818
|
+
flush
|
|
16819
|
+
);
|
|
16820
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
16821
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
16822
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
16823
|
+
let _request = new Request(url2, {
|
|
16824
|
+
method: "POST",
|
|
16825
|
+
body: data,
|
|
16826
|
+
duplex: "half"
|
|
16827
|
+
});
|
|
16828
|
+
let contentTypeHeader;
|
|
16829
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
16830
|
+
headers.setContentType(contentTypeHeader);
|
|
16831
|
+
}
|
|
16832
|
+
if (_request.body) {
|
|
16833
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(
|
|
16834
|
+
requestContentLength,
|
|
16835
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
16836
|
+
) || [];
|
|
16837
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
16838
|
+
}
|
|
15803
16839
|
}
|
|
16840
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
|
|
16841
|
+
data = trackRequestStream(data);
|
|
16842
|
+
} else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
|
|
16843
|
+
throw new AxiosError_default(
|
|
16844
|
+
"Stream request bodies are not supported by the current fetch implementation",
|
|
16845
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
16846
|
+
config,
|
|
16847
|
+
request
|
|
16848
|
+
);
|
|
15804
16849
|
}
|
|
15805
16850
|
if (!utils_default.isString(withCredentials)) {
|
|
15806
16851
|
withCredentials = withCredentials ? "include" : "omit";
|
|
@@ -15813,19 +16858,47 @@ var factory = (env) => {
|
|
|
15813
16858
|
}
|
|
15814
16859
|
}
|
|
15815
16860
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
15816
|
-
const
|
|
15817
|
-
|
|
16861
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
|
|
16862
|
+
if (safeFetchOptions) {
|
|
16863
|
+
delete safeFetchOptions.body;
|
|
16864
|
+
delete safeFetchOptions.headers;
|
|
16865
|
+
delete safeFetchOptions.method;
|
|
16866
|
+
delete safeFetchOptions.signal;
|
|
16867
|
+
delete safeFetchOptions.duplex;
|
|
16868
|
+
delete safeFetchOptions.credentials;
|
|
16869
|
+
}
|
|
16870
|
+
const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
|
|
15818
16871
|
signal: composedSignal,
|
|
15819
16872
|
method: method.toUpperCase(),
|
|
15820
16873
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
15821
16874
|
body: data,
|
|
15822
16875
|
duplex: "half",
|
|
15823
16876
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
15824
|
-
};
|
|
16877
|
+
});
|
|
16878
|
+
if (isRequestSupported) {
|
|
16879
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
16880
|
+
if (resolvedOptions[key] === void 0) {
|
|
16881
|
+
resolvedOptions[key] = value;
|
|
16882
|
+
}
|
|
16883
|
+
});
|
|
16884
|
+
if (resolvedOptions.signal === void 0) {
|
|
16885
|
+
resolvedOptions.signal = null;
|
|
16886
|
+
}
|
|
16887
|
+
if (resolvedOptions.body === void 0) {
|
|
16888
|
+
resolvedOptions.body = null;
|
|
16889
|
+
}
|
|
16890
|
+
}
|
|
16891
|
+
if (maxRedirects === 0) {
|
|
16892
|
+
resolvedOptions.redirect = "manual";
|
|
16893
|
+
if (safeFetchOptions) {
|
|
16894
|
+
safeFetchOptions.redirect = "manual";
|
|
16895
|
+
}
|
|
16896
|
+
}
|
|
15825
16897
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
15826
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
16898
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
|
|
16899
|
+
const responseHeaders = AxiosHeaders_default.from(response.headers);
|
|
15827
16900
|
if (hasMaxContentLength) {
|
|
15828
|
-
const declaredLength = utils_default.toFiniteNumber(
|
|
16901
|
+
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
15829
16902
|
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
15830
16903
|
throw new AxiosError_default(
|
|
15831
16904
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
@@ -15841,7 +16914,7 @@ var factory = (env) => {
|
|
|
15841
16914
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
15842
16915
|
options[prop] = response[prop];
|
|
15843
16916
|
});
|
|
15844
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
16917
|
+
const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
15845
16918
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
15846
16919
|
responseContentLength,
|
|
15847
16920
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
@@ -15911,22 +16984,41 @@ var factory = (env) => {
|
|
|
15911
16984
|
const canceledError = composedSignal.reason;
|
|
15912
16985
|
canceledError.config = config;
|
|
15913
16986
|
request && (canceledError.request = request);
|
|
15914
|
-
err !== canceledError
|
|
16987
|
+
if (err !== canceledError) {
|
|
16988
|
+
Object.defineProperty(canceledError, "cause", {
|
|
16989
|
+
__proto__: null,
|
|
16990
|
+
value: err,
|
|
16991
|
+
writable: true,
|
|
16992
|
+
enumerable: false,
|
|
16993
|
+
configurable: true
|
|
16994
|
+
});
|
|
16995
|
+
}
|
|
15915
16996
|
throw canceledError;
|
|
15916
16997
|
}
|
|
16998
|
+
if (pendingBodyError) {
|
|
16999
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
17000
|
+
throw pendingBodyError;
|
|
17001
|
+
}
|
|
17002
|
+
if (err instanceof AxiosError_default) {
|
|
17003
|
+
request && !err.request && (err.request = request);
|
|
17004
|
+
throw err;
|
|
17005
|
+
}
|
|
15917
17006
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
err && err.response
|
|
15925
|
-
),
|
|
15926
|
-
{
|
|
15927
|
-
cause: err.cause || err
|
|
15928
|
-
}
|
|
17007
|
+
const networkError = new AxiosError_default(
|
|
17008
|
+
"Network Error",
|
|
17009
|
+
AxiosError_default.ERR_NETWORK,
|
|
17010
|
+
config,
|
|
17011
|
+
request,
|
|
17012
|
+
err && err.response
|
|
15929
17013
|
);
|
|
17014
|
+
Object.defineProperty(networkError, "cause", {
|
|
17015
|
+
__proto__: null,
|
|
17016
|
+
value: err.cause || err,
|
|
17017
|
+
writable: true,
|
|
17018
|
+
enumerable: false,
|
|
17019
|
+
configurable: true
|
|
17020
|
+
});
|
|
17021
|
+
throw networkError;
|
|
15930
17022
|
}
|
|
15931
17023
|
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
15932
17024
|
}
|
|
@@ -15948,7 +17040,7 @@ var getFetch = (config) => {
|
|
|
15948
17040
|
};
|
|
15949
17041
|
var adapter = getFetch();
|
|
15950
17042
|
|
|
15951
|
-
// ../../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
|
|
15952
17044
|
var knownAdapters = {
|
|
15953
17045
|
http: http_default,
|
|
15954
17046
|
xhr: xhr_default,
|
|
@@ -15995,7 +17087,7 @@ function getAdapter(adapters, config) {
|
|
|
15995
17087
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
15996
17088
|
throw new AxiosError_default(
|
|
15997
17089
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
15998
|
-
|
|
17090
|
+
AxiosError_default.ERR_NOT_SUPPORT
|
|
15999
17091
|
);
|
|
16000
17092
|
}
|
|
16001
17093
|
return adapter2;
|
|
@@ -16013,7 +17105,7 @@ var adapters_default = {
|
|
|
16013
17105
|
adapters: knownAdapters
|
|
16014
17106
|
};
|
|
16015
17107
|
|
|
16016
|
-
// ../../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
|
|
16017
17109
|
function throwIfCancellationRequested(config) {
|
|
16018
17110
|
if (config.cancelToken) {
|
|
16019
17111
|
config.cancelToken.throwIfRequested();
|
|
@@ -16022,9 +17114,10 @@ function throwIfCancellationRequested(config) {
|
|
|
16022
17114
|
throw new CanceledError_default(null, config);
|
|
16023
17115
|
}
|
|
16024
17116
|
}
|
|
16025
|
-
function dispatchRequest(
|
|
17117
|
+
function dispatchRequest(_config) {
|
|
17118
|
+
const config = utils_default.toSafeFlatObject(_config);
|
|
16026
17119
|
throwIfCancellationRequested(config);
|
|
16027
|
-
config.headers = AxiosHeaders_default.from(config
|
|
17120
|
+
config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
|
|
16028
17121
|
config.data = transformData.call(config, config.transformRequest);
|
|
16029
17122
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
16030
17123
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
@@ -16064,7 +17157,7 @@ function dispatchRequest(config) {
|
|
|
16064
17157
|
);
|
|
16065
17158
|
}
|
|
16066
17159
|
|
|
16067
|
-
// ../../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
|
|
16068
17161
|
var validators = {};
|
|
16069
17162
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
16070
17163
|
validators[type] = function validator(thing) {
|
|
@@ -16102,7 +17195,7 @@ validators.spelling = function spelling(correctSpelling) {
|
|
|
16102
17195
|
};
|
|
16103
17196
|
};
|
|
16104
17197
|
function assertOptions(options, schema, allowUnknown) {
|
|
16105
|
-
if (typeof options !== "object") {
|
|
17198
|
+
if (typeof options !== "object" || options === null) {
|
|
16106
17199
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
16107
17200
|
}
|
|
16108
17201
|
const keys = Object.keys(options);
|
|
@@ -16131,7 +17224,7 @@ var validator_default = {
|
|
|
16131
17224
|
validators
|
|
16132
17225
|
};
|
|
16133
17226
|
|
|
16134
|
-
// ../../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
|
|
16135
17228
|
var validators2 = validator_default.validators;
|
|
16136
17229
|
var Axios = class {
|
|
16137
17230
|
constructor(instanceConfig) {
|
|
@@ -16154,16 +17247,15 @@ var Axios = class {
|
|
|
16154
17247
|
return await this._request(configOrUrl, config);
|
|
16155
17248
|
} catch (err) {
|
|
16156
17249
|
if (err instanceof Error) {
|
|
16157
|
-
let dummy = {};
|
|
16158
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
16159
|
-
const stack = (() => {
|
|
16160
|
-
if (!dummy.stack) {
|
|
16161
|
-
return "";
|
|
16162
|
-
}
|
|
16163
|
-
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
16164
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
16165
|
-
})();
|
|
16166
17250
|
try {
|
|
17251
|
+
let dummy = {};
|
|
17252
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
17253
|
+
const dummyStack = dummy.stack;
|
|
17254
|
+
let stack = "";
|
|
17255
|
+
if (typeof dummyStack === "string") {
|
|
17256
|
+
const firstNewlineIndex = dummyStack.indexOf("\n");
|
|
17257
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
17258
|
+
}
|
|
16167
17259
|
if (!err.stack) {
|
|
16168
17260
|
err.stack = stack;
|
|
16169
17261
|
} else if (stack) {
|
|
@@ -16196,7 +17288,9 @@ var Axios = class {
|
|
|
16196
17288
|
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
16197
17289
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
16198
17290
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
16199
|
-
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
17291
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
|
|
17292
|
+
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
17293
|
+
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
16200
17294
|
},
|
|
16201
17295
|
false
|
|
16202
17296
|
);
|
|
@@ -16231,9 +17325,9 @@ var Axios = class {
|
|
|
16231
17325
|
},
|
|
16232
17326
|
true
|
|
16233
17327
|
);
|
|
16234
|
-
config.method = (config
|
|
17328
|
+
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
16235
17329
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
16236
|
-
headers && utils_default.forEach(
|
|
17330
|
+
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
16237
17331
|
delete headers[method];
|
|
16238
17332
|
});
|
|
16239
17333
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -16276,16 +17370,31 @@ var Axios = class {
|
|
|
16276
17370
|
const onFulfilled = requestInterceptorChain[i++];
|
|
16277
17371
|
const onRejected = requestInterceptorChain[i++];
|
|
16278
17372
|
try {
|
|
16279
|
-
newConfig = onFulfilled(newConfig);
|
|
17373
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
16280
17374
|
} catch (error) {
|
|
16281
|
-
onRejected
|
|
17375
|
+
if (!onRejected) {
|
|
17376
|
+
promise = Promise.reject(error);
|
|
17377
|
+
break;
|
|
17378
|
+
}
|
|
17379
|
+
try {
|
|
17380
|
+
const rejectedResult = onRejected.call(this, error);
|
|
17381
|
+
if (utils_default.isThenable(rejectedResult)) {
|
|
17382
|
+
promise = Promise.resolve(rejectedResult).then(
|
|
17383
|
+
() => dispatchRequest.call(this, newConfig)
|
|
17384
|
+
);
|
|
17385
|
+
}
|
|
17386
|
+
} catch (rejectedError) {
|
|
17387
|
+
promise = Promise.reject(rejectedError);
|
|
17388
|
+
}
|
|
16282
17389
|
break;
|
|
16283
17390
|
}
|
|
16284
17391
|
}
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
17392
|
+
if (!promise) {
|
|
17393
|
+
try {
|
|
17394
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
17395
|
+
} catch (error) {
|
|
17396
|
+
promise = Promise.reject(error);
|
|
17397
|
+
}
|
|
16289
17398
|
}
|
|
16290
17399
|
i = 0;
|
|
16291
17400
|
len = responseInterceptorChain.length;
|
|
@@ -16296,7 +17405,7 @@ var Axios = class {
|
|
|
16296
17405
|
}
|
|
16297
17406
|
getUri(config) {
|
|
16298
17407
|
config = mergeConfig(this.defaults, config);
|
|
16299
|
-
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
17408
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
16300
17409
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
16301
17410
|
}
|
|
16302
17411
|
};
|
|
@@ -16306,7 +17415,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
16306
17415
|
mergeConfig(config || {}, {
|
|
16307
17416
|
method,
|
|
16308
17417
|
url: url2,
|
|
16309
|
-
data: (config
|
|
17418
|
+
data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
|
|
16310
17419
|
})
|
|
16311
17420
|
);
|
|
16312
17421
|
};
|
|
@@ -16333,7 +17442,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
16333
17442
|
});
|
|
16334
17443
|
var Axios_default = Axios;
|
|
16335
17444
|
|
|
16336
|
-
// ../../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
|
|
16337
17446
|
var CancelToken = class _CancelToken {
|
|
16338
17447
|
constructor(executor) {
|
|
16339
17448
|
if (typeof executor !== "function") {
|
|
@@ -16431,19 +17540,19 @@ var CancelToken = class _CancelToken {
|
|
|
16431
17540
|
};
|
|
16432
17541
|
var CancelToken_default = CancelToken;
|
|
16433
17542
|
|
|
16434
|
-
// ../../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
|
|
16435
17544
|
function spread(callback) {
|
|
16436
17545
|
return function wrap(arr) {
|
|
16437
17546
|
return callback.apply(null, arr);
|
|
16438
17547
|
};
|
|
16439
17548
|
}
|
|
16440
17549
|
|
|
16441
|
-
// ../../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
|
|
16442
17551
|
function isAxiosError(payload) {
|
|
16443
17552
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
16444
17553
|
}
|
|
16445
17554
|
|
|
16446
|
-
// ../../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
|
|
16447
17556
|
var HttpStatusCode = {
|
|
16448
17557
|
Continue: 100,
|
|
16449
17558
|
SwitchingProtocols: 101,
|
|
@@ -16481,14 +17590,22 @@ var HttpStatusCode = {
|
|
|
16481
17590
|
Gone: 410,
|
|
16482
17591
|
LengthRequired: 411,
|
|
16483
17592
|
PreconditionFailed: 412,
|
|
17593
|
+
/**
|
|
17594
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
17595
|
+
*/
|
|
16484
17596
|
PayloadTooLarge: 413,
|
|
17597
|
+
ContentTooLarge: 413,
|
|
16485
17598
|
UriTooLong: 414,
|
|
16486
17599
|
UnsupportedMediaType: 415,
|
|
16487
17600
|
RangeNotSatisfiable: 416,
|
|
16488
17601
|
ExpectationFailed: 417,
|
|
16489
17602
|
ImATeapot: 418,
|
|
16490
17603
|
MisdirectedRequest: 421,
|
|
17604
|
+
/**
|
|
17605
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
17606
|
+
*/
|
|
16491
17607
|
UnprocessableEntity: 422,
|
|
17608
|
+
UnprocessableContent: 422,
|
|
16492
17609
|
Locked: 423,
|
|
16493
17610
|
FailedDependency: 424,
|
|
16494
17611
|
TooEarly: 425,
|
|
@@ -16508,6 +17625,7 @@ var HttpStatusCode = {
|
|
|
16508
17625
|
LoopDetected: 508,
|
|
16509
17626
|
NotExtended: 510,
|
|
16510
17627
|
NetworkAuthenticationRequired: 511,
|
|
17628
|
+
WebServerReturnsAnUnknownError: 520,
|
|
16511
17629
|
WebServerIsDown: 521,
|
|
16512
17630
|
ConnectionTimedOut: 522,
|
|
16513
17631
|
OriginIsUnreachable: 523,
|
|
@@ -16516,11 +17634,13 @@ var HttpStatusCode = {
|
|
|
16516
17634
|
InvalidSslCertificate: 526
|
|
16517
17635
|
};
|
|
16518
17636
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
16519
|
-
HttpStatusCode[value]
|
|
17637
|
+
if (HttpStatusCode[value] === void 0) {
|
|
17638
|
+
HttpStatusCode[value] = key;
|
|
17639
|
+
}
|
|
16520
17640
|
});
|
|
16521
17641
|
var HttpStatusCode_default = HttpStatusCode;
|
|
16522
17642
|
|
|
16523
|
-
// ../../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
|
|
16524
17644
|
function createInstance(defaultConfig) {
|
|
16525
17645
|
const context = new Axios_default(defaultConfig);
|
|
16526
17646
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -16553,7 +17673,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
16553
17673
|
axios.default = axios;
|
|
16554
17674
|
var axios_default = axios;
|
|
16555
17675
|
|
|
16556
|
-
// ../../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
|
|
16557
17677
|
var {
|
|
16558
17678
|
Axios: Axios2,
|
|
16559
17679
|
AxiosError: AxiosError2,
|
|
@@ -16574,18 +17694,18 @@ var {
|
|
|
16574
17694
|
create
|
|
16575
17695
|
} = axios_default;
|
|
16576
17696
|
|
|
16577
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17697
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
16578
17698
|
var import_debug2 = __toESM(require_src(), 1);
|
|
16579
17699
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
16580
17700
|
|
|
16581
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17701
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
16582
17702
|
var import_debug = __toESM(require_src(), 1);
|
|
16583
17703
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
16584
17704
|
import fs from "fs";
|
|
16585
17705
|
import net from "net";
|
|
16586
17706
|
import tls from "tls";
|
|
16587
17707
|
|
|
16588
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17708
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
|
|
16589
17709
|
import { Transform } from "stream";
|
|
16590
17710
|
var HeaderHostTransformer = class extends Transform {
|
|
16591
17711
|
host;
|
|
@@ -16603,7 +17723,7 @@ var HeaderHostTransformer = class extends Transform {
|
|
|
16603
17723
|
}
|
|
16604
17724
|
};
|
|
16605
17725
|
|
|
16606
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17726
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
16607
17727
|
var log = (0, import_debug.default)("pipenet:client");
|
|
16608
17728
|
var TunnelCluster = class extends EventEmitter2 {
|
|
16609
17729
|
opts;
|
|
@@ -16703,7 +17823,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
16703
17823
|
}
|
|
16704
17824
|
};
|
|
16705
17825
|
|
|
16706
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17826
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
16707
17827
|
var log2 = (0, import_debug2.default)("pipenet:client");
|
|
16708
17828
|
var Tunnel = class extends EventEmitter3 {
|
|
16709
17829
|
cachedUrl;
|
|
@@ -16851,7 +17971,7 @@ var Tunnel = class extends EventEmitter3 {
|
|
|
16851
17971
|
}
|
|
16852
17972
|
};
|
|
16853
17973
|
|
|
16854
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17974
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
|
|
16855
17975
|
function pipenet(arg1, arg2, arg3) {
|
|
16856
17976
|
const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
|
|
16857
17977
|
const callback = typeof arg1 === "object" ? arg2 : arg3;
|