apify-client 2.26.0 → 2.26.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1099 -320
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -18634,7 +18634,7 @@ function isStream(value) {
|
|
|
18634
18634
|
function getVersionData() {
|
|
18635
18635
|
if (true) {
|
|
18636
18636
|
return {
|
|
18637
|
-
version: "2.26.0"
|
|
18637
|
+
version: "2.26.1-beta.0"
|
|
18638
18638
|
};
|
|
18639
18639
|
}
|
|
18640
18640
|
// eslint-disable-next-line
|
|
@@ -22624,14 +22624,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22624
22624
|
/* import */ var _utils_js__rspack_import_0 = __webpack_require__("Kv");
|
|
22625
22625
|
/* import */ var _core_AxiosError_js__rspack_import_2 = __webpack_require__("f");
|
|
22626
22626
|
/* import */ var _helpers_composeSignals_js__rspack_import_4 = __webpack_require__("oS");
|
|
22627
|
-
/* import */ var
|
|
22628
|
-
/* import */ var
|
|
22629
|
-
/* import */ var
|
|
22627
|
+
/* import */ var _helpers_trackStream_js__rspack_import_8 = __webpack_require__("M");
|
|
22628
|
+
/* import */ var _core_createMultipartBody_js__rspack_import_7 = __webpack_require__("vE");
|
|
22629
|
+
/* import */ var _core_AxiosHeaders_js__rspack_import_6 = __webpack_require__("Z");
|
|
22630
|
+
/* import */ var _helpers_progressEventReducer_js__rspack_import_9 = __webpack_require__("Qs");
|
|
22630
22631
|
/* import */ var _helpers_resolveConfig_js__rspack_import_3 = __webpack_require__("t");
|
|
22631
|
-
/* import */ var
|
|
22632
|
+
/* import */ var _core_settle_js__rspack_import_12 = __webpack_require__("iS");
|
|
22632
22633
|
/* import */ var _helpers_estimateDataURLDecodedBytes_js__rspack_import_5 = __webpack_require__("Ua");
|
|
22633
|
-
/* import */ var
|
|
22634
|
-
/* import */ var
|
|
22634
|
+
/* import */ var _env_data_js__rspack_import_10 = __webpack_require__("f6");
|
|
22635
|
+
/* import */ var _helpers_sanitizeHeaderValue_js__rspack_import_11 = __webpack_require__("A");
|
|
22636
|
+
|
|
22635
22637
|
|
|
22636
22638
|
|
|
22637
22639
|
|
|
@@ -22719,11 +22721,13 @@ const factory = (env) => {
|
|
|
22719
22721
|
{
|
|
22720
22722
|
Request: globalObject.Request,
|
|
22721
22723
|
Response: globalObject.Response,
|
|
22724
|
+
Blob: globalObject.Blob,
|
|
22722
22725
|
},
|
|
22723
22726
|
env
|
|
22724
22727
|
);
|
|
22725
22728
|
|
|
22726
|
-
const
|
|
22729
|
+
const envFetch = _utils_js__rspack_import_0["default"].hasOwnProp(env, 'fetch') ? env.fetch : undefined;
|
|
22730
|
+
const { Request, Response, Blob } = env;
|
|
22727
22731
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
22728
22732
|
const isRequestSupported = isFunction(Request);
|
|
22729
22733
|
const isResponseSupported = isFunction(Response);
|
|
@@ -22772,6 +22776,20 @@ const factory = (env) => {
|
|
|
22772
22776
|
isReadableStreamSupported &&
|
|
22773
22777
|
test(() => _utils_js__rspack_import_0["default"].isReadableStream(new Response('').body));
|
|
22774
22778
|
|
|
22779
|
+
// Some runtimes reject every explicit cache mode. Use own defaults for both
|
|
22780
|
+
// probes so unrelated polluted options cannot affect cache-mode detection.
|
|
22781
|
+
const requestDefaults = Object.assign(Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
22782
|
+
|
|
22783
|
+
if (isRequestSupported && !test(() => new Request(_platform_index_js__rspack_import_1["default"].origin, requestDefaults))) {
|
|
22784
|
+
delete requestDefaults.cache;
|
|
22785
|
+
|
|
22786
|
+
// Only omit cache when that makes Request construction succeed. Otherwise
|
|
22787
|
+
// retain the explicit default that protects supporting runtimes from pollution.
|
|
22788
|
+
if (!test(() => new Request(_platform_index_js__rspack_import_1["default"].origin, requestDefaults))) {
|
|
22789
|
+
requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
22790
|
+
}
|
|
22791
|
+
}
|
|
22792
|
+
|
|
22775
22793
|
const resolvers = {
|
|
22776
22794
|
stream: supportsResponseStream && ((res) => res.body),
|
|
22777
22795
|
};
|
|
@@ -22805,14 +22823,6 @@ const factory = (env) => {
|
|
|
22805
22823
|
return body.size;
|
|
22806
22824
|
}
|
|
22807
22825
|
|
|
22808
|
-
if (_utils_js__rspack_import_0["default"].isSpecCompliantForm(body)) {
|
|
22809
|
-
const _request = new Request(_platform_index_js__rspack_import_1["default"].origin, {
|
|
22810
|
-
method: 'POST',
|
|
22811
|
-
body,
|
|
22812
|
-
});
|
|
22813
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
22814
|
-
}
|
|
22815
|
-
|
|
22816
22826
|
if (_utils_js__rspack_import_0["default"].isArrayBufferView(body) || _utils_js__rspack_import_0["default"].isArrayBuffer(body)) {
|
|
22817
22827
|
return body.byteLength;
|
|
22818
22828
|
}
|
|
@@ -22875,11 +22885,12 @@ const factory = (env) => {
|
|
|
22875
22885
|
|
|
22876
22886
|
let requestContentLength;
|
|
22877
22887
|
|
|
22878
|
-
//
|
|
22888
|
+
// AxiosErrors we raise while request or response bodies are being streamed. Captured
|
|
22879
22889
|
// by identity so the catch block can surface it directly, regardless of
|
|
22880
22890
|
// how the runtime wraps the resulting fetch rejection (undici exposes it
|
|
22881
22891
|
// as `err.cause`; some browsers drop the original error entirely).
|
|
22882
22892
|
let pendingBodyError = null;
|
|
22893
|
+
let pendingResponseError = null;
|
|
22883
22894
|
|
|
22884
22895
|
const maxBodyLengthError = () =>
|
|
22885
22896
|
new _core_AxiosError_js__rspack_import_2["default"](
|
|
@@ -22903,8 +22914,9 @@ const factory = (env) => {
|
|
|
22903
22914
|
};
|
|
22904
22915
|
}
|
|
22905
22916
|
|
|
22917
|
+
let parsedURL;
|
|
22906
22918
|
if (maybeWithAuthCredentials(url)) {
|
|
22907
|
-
|
|
22919
|
+
parsedURL = new URL(url, _platform_index_js__rspack_import_1["default"].origin);
|
|
22908
22920
|
|
|
22909
22921
|
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
22910
22922
|
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
@@ -22933,8 +22945,8 @@ const factory = (env) => {
|
|
|
22933
22945
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
22934
22946
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
22935
22947
|
// "if (protocol === 'data:')" branch).
|
|
22936
|
-
if (hasMaxContentLength &&
|
|
22937
|
-
const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__rspack_import_5["default"])(
|
|
22948
|
+
if (hasMaxContentLength && parsedURL && parsedURL.protocol === 'data:') {
|
|
22949
|
+
const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__rspack_import_5["default"])(parsedURL.href);
|
|
22938
22950
|
if (estimated > maxContentLength) {
|
|
22939
22951
|
throw new _core_AxiosError_js__rspack_import_2["default"](
|
|
22940
22952
|
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
@@ -22945,6 +22957,38 @@ const factory = (env) => {
|
|
|
22945
22957
|
}
|
|
22946
22958
|
}
|
|
22947
22959
|
|
|
22960
|
+
const formContentType =
|
|
22961
|
+
_utils_js__rspack_import_0["default"].isSpecCompliantForm(data) && _core_AxiosHeaders_js__rspack_import_6["default"].from(own('headers')).getContentType();
|
|
22962
|
+
let formBoundary;
|
|
22963
|
+
if (
|
|
22964
|
+
_utils_js__rspack_import_0["default"].isString(formContentType) &&
|
|
22965
|
+
/^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())
|
|
22966
|
+
) {
|
|
22967
|
+
const parameters = _core_AxiosHeaders_js__rspack_import_6["default"].parseParameters(formContentType);
|
|
22968
|
+
if (_utils_js__rspack_import_0["default"].hasOwnProp(parameters, 'boundary')) formBoundary = parameters.boundary;
|
|
22969
|
+
}
|
|
22970
|
+
|
|
22971
|
+
if (
|
|
22972
|
+
_utils_js__rspack_import_0["default"].isSpecCompliantForm(data) &&
|
|
22973
|
+
method !== 'get' &&
|
|
22974
|
+
method !== 'head' &&
|
|
22975
|
+
(hasMaxBodyLength ||
|
|
22976
|
+
(onUploadProgress && supportsRequestStream) ||
|
|
22977
|
+
formBoundary !== undefined)
|
|
22978
|
+
) {
|
|
22979
|
+
data = (0,_core_createMultipartBody_js__rspack_import_7["default"])(
|
|
22980
|
+
data,
|
|
22981
|
+
Blob,
|
|
22982
|
+
hasMaxBodyLength ? maxBodyLength : Infinity,
|
|
22983
|
+
maxBodyLengthError,
|
|
22984
|
+
formBoundary
|
|
22985
|
+
);
|
|
22986
|
+
// Blob.type lowercases its value, including a case-sensitive boundary.
|
|
22987
|
+
// Retain the caller's header when an explicit boundary was serialized.
|
|
22988
|
+
headers.setContentType(formBoundary === undefined ? data.type : formContentType);
|
|
22989
|
+
requestContentLength = data.size;
|
|
22990
|
+
}
|
|
22991
|
+
|
|
22948
22992
|
// Enforce maxBodyLength against known-size bodies before dispatch using
|
|
22949
22993
|
// the body's *actual* size — never a caller-declared Content-Length,
|
|
22950
22994
|
// which could under-report to slip an oversized body past the check.
|
|
@@ -22966,7 +23010,7 @@ const factory = (env) => {
|
|
|
22966
23010
|
hasMaxBodyLength && (_utils_js__rspack_import_0["default"].isReadableStream(data) || _utils_js__rspack_import_0["default"].isStream(data));
|
|
22967
23011
|
|
|
22968
23012
|
const trackRequestStream = (stream, onProgress, flush) =>
|
|
22969
|
-
(0,
|
|
23013
|
+
(0,_helpers_trackStream_js__rspack_import_8.trackStream)(
|
|
22970
23014
|
stream,
|
|
22971
23015
|
DEFAULT_CHUNK_SIZE,
|
|
22972
23016
|
(loadedBytes) => {
|
|
@@ -23010,9 +23054,9 @@ const factory = (env) => {
|
|
|
23010
23054
|
if (_request.body) {
|
|
23011
23055
|
const [onProgress, flush] =
|
|
23012
23056
|
(onUploadProgress &&
|
|
23013
|
-
(0,
|
|
23057
|
+
(0,_helpers_progressEventReducer_js__rspack_import_9.progressEventDecorator)(
|
|
23014
23058
|
requestContentLength,
|
|
23015
|
-
(0,
|
|
23059
|
+
(0,_helpers_progressEventReducer_js__rspack_import_9.progressEventReducer)((0,_helpers_progressEventReducer_js__rspack_import_9.asyncDecorator)(onUploadProgress))
|
|
23016
23060
|
)) ||
|
|
23017
23061
|
[];
|
|
23018
23062
|
|
|
@@ -23064,7 +23108,7 @@ const factory = (env) => {
|
|
|
23064
23108
|
}
|
|
23065
23109
|
|
|
23066
23110
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
23067
|
-
headers.set('User-Agent', 'axios/' +
|
|
23111
|
+
headers.set('User-Agent', 'axios/' + _env_data_js__rspack_import_10.VERSION, false);
|
|
23068
23112
|
|
|
23069
23113
|
const safeFetchOptions =
|
|
23070
23114
|
fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
@@ -23083,14 +23127,14 @@ const factory = (env) => {
|
|
|
23083
23127
|
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
23084
23128
|
signal: composedSignal,
|
|
23085
23129
|
method: method.toUpperCase(),
|
|
23086
|
-
headers: (0,
|
|
23130
|
+
headers: (0,_helpers_sanitizeHeaderValue_js__rspack_import_11.toByteStringHeaderObject)(headers.normalize()),
|
|
23087
23131
|
body: data,
|
|
23088
23132
|
duplex: 'half',
|
|
23089
23133
|
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
23090
23134
|
});
|
|
23091
23135
|
|
|
23092
23136
|
if (isRequestSupported) {
|
|
23093
|
-
_utils_js__rspack_import_0["default"].forEach(
|
|
23137
|
+
_utils_js__rspack_import_0["default"].forEach(requestDefaults, (value, key) => {
|
|
23094
23138
|
if (resolvedOptions[key] === undefined) {
|
|
23095
23139
|
resolvedOptions[key] = value;
|
|
23096
23140
|
}
|
|
@@ -23119,7 +23163,7 @@ const factory = (env) => {
|
|
|
23119
23163
|
? _fetch(request, safeFetchOptions)
|
|
23120
23164
|
: _fetch(url, resolvedOptions));
|
|
23121
23165
|
|
|
23122
|
-
const responseHeaders =
|
|
23166
|
+
const responseHeaders = _core_AxiosHeaders_js__rspack_import_6["default"].from(response.headers);
|
|
23123
23167
|
|
|
23124
23168
|
// Cheap pre-check: if the server honestly declares a content-length that
|
|
23125
23169
|
// already exceeds the cap, reject before we start streaming.
|
|
@@ -23153,9 +23197,9 @@ const factory = (env) => {
|
|
|
23153
23197
|
|
|
23154
23198
|
const [onProgress, flush] =
|
|
23155
23199
|
(onDownloadProgress &&
|
|
23156
|
-
(0,
|
|
23200
|
+
(0,_helpers_progressEventReducer_js__rspack_import_9.progressEventDecorator)(
|
|
23157
23201
|
responseContentLength,
|
|
23158
|
-
(0,
|
|
23202
|
+
(0,_helpers_progressEventReducer_js__rspack_import_9.progressEventReducer)((0,_helpers_progressEventReducer_js__rspack_import_9.asyncDecorator)(onDownloadProgress), true)
|
|
23159
23203
|
)) ||
|
|
23160
23204
|
[];
|
|
23161
23205
|
|
|
@@ -23164,19 +23208,19 @@ const factory = (env) => {
|
|
|
23164
23208
|
if (hasMaxContentLength) {
|
|
23165
23209
|
bytesRead = loadedBytes;
|
|
23166
23210
|
if (bytesRead > maxContentLength) {
|
|
23167
|
-
throw new _core_AxiosError_js__rspack_import_2["default"](
|
|
23211
|
+
throw (pendingResponseError = new _core_AxiosError_js__rspack_import_2["default"](
|
|
23168
23212
|
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
23169
23213
|
_core_AxiosError_js__rspack_import_2["default"].ERR_BAD_RESPONSE,
|
|
23170
23214
|
config,
|
|
23171
23215
|
request
|
|
23172
|
-
);
|
|
23216
|
+
));
|
|
23173
23217
|
}
|
|
23174
23218
|
}
|
|
23175
23219
|
onProgress && onProgress(loadedBytes);
|
|
23176
23220
|
};
|
|
23177
23221
|
|
|
23178
23222
|
response = new Response(
|
|
23179
|
-
(0,
|
|
23223
|
+
(0,_helpers_trackStream_js__rspack_import_8.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
23180
23224
|
flush && flush();
|
|
23181
23225
|
unsubscribe && unsubscribe();
|
|
23182
23226
|
}),
|
|
@@ -23221,9 +23265,9 @@ const factory = (env) => {
|
|
|
23221
23265
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
23222
23266
|
|
|
23223
23267
|
return await new Promise((resolve, reject) => {
|
|
23224
|
-
(0,
|
|
23268
|
+
(0,_core_settle_js__rspack_import_12["default"])(resolve, reject, {
|
|
23225
23269
|
data: responseData,
|
|
23226
|
-
headers:
|
|
23270
|
+
headers: _core_AxiosHeaders_js__rspack_import_6["default"].from(response.headers),
|
|
23227
23271
|
status: response.status,
|
|
23228
23272
|
statusText: response.statusText,
|
|
23229
23273
|
config,
|
|
@@ -23255,7 +23299,7 @@ const factory = (env) => {
|
|
|
23255
23299
|
}
|
|
23256
23300
|
|
|
23257
23301
|
// Surface a maxBodyLength violation we raised while the request body was
|
|
23258
|
-
// being streamed.
|
|
23302
|
+
// being streamed. Keeping the original error (rather than reading
|
|
23259
23303
|
// `err.cause.isAxiosError`) keeps the error deterministic across runtimes
|
|
23260
23304
|
// and avoids both prototype-pollution reads and mis-attributing a foreign
|
|
23261
23305
|
// AxiosError that merely happened to land in `err.cause`.
|
|
@@ -23264,6 +23308,10 @@ const factory = (env) => {
|
|
|
23264
23308
|
throw pendingBodyError;
|
|
23265
23309
|
}
|
|
23266
23310
|
|
|
23311
|
+
if (pendingResponseError) {
|
|
23312
|
+
throw pendingResponseError;
|
|
23313
|
+
}
|
|
23314
|
+
|
|
23267
23315
|
// Re-throw AxiosErrors we raised synchronously (data: URL / content-length
|
|
23268
23316
|
// pre-checks, response size enforcement) without re-wrapping them.
|
|
23269
23317
|
if (err instanceof _core_AxiosError_js__rspack_import_2["default"]) {
|
|
@@ -23299,9 +23347,15 @@ const factory = (env) => {
|
|
|
23299
23347
|
const seedCache = new Map();
|
|
23300
23348
|
|
|
23301
23349
|
const getFetch = (config) => {
|
|
23302
|
-
|
|
23303
|
-
const
|
|
23304
|
-
|
|
23350
|
+
const env = Object.create(null);
|
|
23351
|
+
const configuredEnv = config && _utils_js__rspack_import_0["default"].hasOwnProp(config, 'env') && config.env;
|
|
23352
|
+
['fetch', 'Request', 'Response', 'Blob'].forEach((key) => {
|
|
23353
|
+
if (configuredEnv && _utils_js__rspack_import_0["default"].hasOwnProp(configuredEnv, key)) {
|
|
23354
|
+
env[key] = configuredEnv[key];
|
|
23355
|
+
}
|
|
23356
|
+
});
|
|
23357
|
+
const { fetch, Request, Response, Blob } = env;
|
|
23358
|
+
const seeds = [Request, Response, fetch, Blob];
|
|
23305
23359
|
|
|
23306
23360
|
let len = seeds.length,
|
|
23307
23361
|
i = len,
|
|
@@ -23335,18 +23389,20 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23335
23389
|
"TV"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
23336
23390
|
"use strict";
|
|
23337
23391
|
__webpack_require__.r(__webpack_exports__);
|
|
23338
|
-
/* import */ var
|
|
23339
|
-
/* import */ var
|
|
23340
|
-
/* import */ var
|
|
23341
|
-
/* import */ var
|
|
23342
|
-
/* import */ var
|
|
23343
|
-
/* import */ var
|
|
23344
|
-
/* import */ var
|
|
23345
|
-
/* import */ var
|
|
23346
|
-
/* import */ var
|
|
23347
|
-
/* import */ var
|
|
23348
|
-
/* import */ var
|
|
23349
|
-
/* import */ var
|
|
23392
|
+
/* import */ var _utils_js__rspack_import_1 = __webpack_require__("Kv");
|
|
23393
|
+
/* import */ var _core_settle_js__rspack_import_7 = __webpack_require__("iS");
|
|
23394
|
+
/* import */ var _defaults_transitional_js__rspack_import_8 = __webpack_require__("goR");
|
|
23395
|
+
/* import */ var _core_AxiosError_js__rspack_import_6 = __webpack_require__("f");
|
|
23396
|
+
/* import */ var _cancel_CanceledError_js__rspack_import_10 = __webpack_require__("mi");
|
|
23397
|
+
/* import */ var _helpers_normalizeURLForProtocolCheck_js__rspack_import_5 = __webpack_require__("Yv");
|
|
23398
|
+
/* import */ var _helpers_parseProtocol_js__rspack_import_4 = __webpack_require__("Ox");
|
|
23399
|
+
/* import */ var _platform_index_js__rspack_import_0 = __webpack_require__("nF");
|
|
23400
|
+
/* import */ var _core_AxiosHeaders_js__rspack_import_3 = __webpack_require__("Z");
|
|
23401
|
+
/* import */ var _helpers_cookies_js__rspack_import_12 = __webpack_require__("jD");
|
|
23402
|
+
/* import */ var _helpers_progressEventReducer_js__rspack_import_9 = __webpack_require__("Qs");
|
|
23403
|
+
/* import */ var _helpers_resolveConfig_js__rspack_import_2 = __webpack_require__("t");
|
|
23404
|
+
/* import */ var _helpers_sanitizeHeaderValue_js__rspack_import_11 = __webpack_require__("A");
|
|
23405
|
+
|
|
23350
23406
|
|
|
23351
23407
|
|
|
23352
23408
|
|
|
@@ -23365,17 +23421,60 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23365
23421
|
/* export default */ __webpack_exports__["default"] = (isXHRAdapterSupported &&
|
|
23366
23422
|
function (config) {
|
|
23367
23423
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
23368
|
-
|
|
23424
|
+
let useAsyncXsrf;
|
|
23425
|
+
try {
|
|
23426
|
+
const store =
|
|
23427
|
+
_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv && typeof window !== 'undefined' && window.cookieStore;
|
|
23428
|
+
useAsyncXsrf = store && _utils_js__rspack_import_1["default"].isFunction(store.get);
|
|
23429
|
+
} catch (e) {
|
|
23430
|
+
// A restricted Cookie Store getter must retain the synchronous fallback.
|
|
23431
|
+
}
|
|
23432
|
+
let xsrfCookieName;
|
|
23433
|
+
const _config = (0,_helpers_resolveConfig_js__rspack_import_2["default"])(
|
|
23434
|
+
config,
|
|
23435
|
+
useAsyncXsrf
|
|
23436
|
+
? (name) => {
|
|
23437
|
+
xsrfCookieName = name;
|
|
23438
|
+
return null;
|
|
23439
|
+
}
|
|
23440
|
+
: undefined
|
|
23441
|
+
);
|
|
23369
23442
|
let requestData = _config.data;
|
|
23370
|
-
const requestHeaders =
|
|
23443
|
+
const requestHeaders = _core_AxiosHeaders_js__rspack_import_3["default"].from(_config.headers).normalize();
|
|
23371
23444
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
23372
23445
|
let onCanceled;
|
|
23446
|
+
let timeoutId;
|
|
23373
23447
|
let uploadThrottled, downloadThrottled;
|
|
23374
23448
|
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
23375
23449
|
|
|
23376
23450
|
function done() {
|
|
23377
|
-
|
|
23378
|
-
|
|
23451
|
+
clearTimeout(timeoutId);
|
|
23452
|
+
// A final progress callback must not prevent the remaining cleanup.
|
|
23453
|
+
// Report errors asynchronously, as onloadend and the throttle timer do.
|
|
23454
|
+
try {
|
|
23455
|
+
flushUpload && flushUpload(); // flush events
|
|
23456
|
+
} catch (err) {
|
|
23457
|
+
setTimeout(() => {
|
|
23458
|
+
throw err;
|
|
23459
|
+
});
|
|
23460
|
+
}
|
|
23461
|
+
try {
|
|
23462
|
+
flushDownload && flushDownload(); // flush events
|
|
23463
|
+
} catch (err) {
|
|
23464
|
+
setTimeout(() => {
|
|
23465
|
+
throw err;
|
|
23466
|
+
});
|
|
23467
|
+
}
|
|
23468
|
+
|
|
23469
|
+
// A flush can synchronously cancel the request and reenter done().
|
|
23470
|
+
// In that case the inner call has already detached these listeners.
|
|
23471
|
+
if (request) {
|
|
23472
|
+
downloadThrottled && request.removeEventListener('progress', downloadThrottled);
|
|
23473
|
+
if (request.upload) {
|
|
23474
|
+
uploadThrottled && request.upload.removeEventListener('progress', uploadThrottled);
|
|
23475
|
+
flushUpload && request.upload.removeEventListener('loadend', flushUpload);
|
|
23476
|
+
}
|
|
23477
|
+
}
|
|
23379
23478
|
|
|
23380
23479
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
23381
23480
|
|
|
@@ -23404,11 +23503,11 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23404
23503
|
// by responseURL where implemented.
|
|
23405
23504
|
if (
|
|
23406
23505
|
request.status === 0 &&
|
|
23407
|
-
((0,
|
|
23408
|
-
(0,
|
|
23506
|
+
((0,_helpers_parseProtocol_js__rspack_import_4["default"])((0,_helpers_normalizeURLForProtocolCheck_js__rspack_import_5["default"])(_config.url)) ||
|
|
23507
|
+
(0,_helpers_parseProtocol_js__rspack_import_4["default"])(_platform_index_js__rspack_import_0["default"].origin)) !== 'file' &&
|
|
23409
23508
|
!(request.responseURL && request.responseURL.startsWith('file:'))
|
|
23410
23509
|
) {
|
|
23411
|
-
reject(new
|
|
23510
|
+
reject(new _core_AxiosError_js__rspack_import_6["default"]('Request aborted', _core_AxiosError_js__rspack_import_6["default"].ECONNABORTED, config, request));
|
|
23412
23511
|
done();
|
|
23413
23512
|
|
|
23414
23513
|
// Clean up request
|
|
@@ -23439,7 +23538,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23439
23538
|
}
|
|
23440
23539
|
|
|
23441
23540
|
// Prepare the response
|
|
23442
|
-
const responseHeaders =
|
|
23541
|
+
const responseHeaders = _core_AxiosHeaders_js__rspack_import_3["default"].from(
|
|
23443
23542
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
23444
23543
|
);
|
|
23445
23544
|
const responseData =
|
|
@@ -23455,7 +23554,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23455
23554
|
request,
|
|
23456
23555
|
};
|
|
23457
23556
|
|
|
23458
|
-
(0,
|
|
23557
|
+
(0,_core_settle_js__rspack_import_7["default"])(
|
|
23459
23558
|
function _resolve(value) {
|
|
23460
23559
|
resolve(value);
|
|
23461
23560
|
done();
|
|
@@ -23503,7 +23602,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23503
23602
|
return;
|
|
23504
23603
|
}
|
|
23505
23604
|
|
|
23506
|
-
reject(new
|
|
23605
|
+
reject(new _core_AxiosError_js__rspack_import_6["default"]('Request aborted', _core_AxiosError_js__rspack_import_6["default"].ECONNABORTED, config, request));
|
|
23507
23606
|
done();
|
|
23508
23607
|
|
|
23509
23608
|
// Clean up request
|
|
@@ -23516,7 +23615,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23516
23615
|
// (message may be empty; when present, surface it)
|
|
23517
23616
|
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
23518
23617
|
const msg = event && event.message ? event.message : 'Network Error';
|
|
23519
|
-
const err = new
|
|
23618
|
+
const err = new _core_AxiosError_js__rspack_import_6["default"](msg, _core_AxiosError_js__rspack_import_6["default"].ERR_NETWORK, config, request);
|
|
23520
23619
|
// attach the underlying event for consumers who want details
|
|
23521
23620
|
err.event = event || null;
|
|
23522
23621
|
reject(err);
|
|
@@ -23526,17 +23625,18 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23526
23625
|
|
|
23527
23626
|
// Handle timeout
|
|
23528
23627
|
request.ontimeout = function handleTimeout() {
|
|
23628
|
+
if (!request) return;
|
|
23529
23629
|
let timeoutErrorMessage = _config.timeout
|
|
23530
23630
|
? 'timeout of ' + _config.timeout + 'ms exceeded'
|
|
23531
23631
|
: 'timeout exceeded';
|
|
23532
|
-
const transitional = _config.transitional ||
|
|
23632
|
+
const transitional = _config.transitional || _defaults_transitional_js__rspack_import_8["default"];
|
|
23533
23633
|
if (_config.timeoutErrorMessage) {
|
|
23534
23634
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
23535
23635
|
}
|
|
23536
23636
|
reject(
|
|
23537
|
-
new
|
|
23637
|
+
new _core_AxiosError_js__rspack_import_6["default"](
|
|
23538
23638
|
timeoutErrorMessage,
|
|
23539
|
-
transitional.clarifyTimeoutError ?
|
|
23639
|
+
transitional.clarifyTimeoutError ? _core_AxiosError_js__rspack_import_6["default"].ETIMEDOUT : _core_AxiosError_js__rspack_import_6["default"].ECONNABORTED,
|
|
23540
23640
|
config,
|
|
23541
23641
|
request
|
|
23542
23642
|
)
|
|
@@ -23550,15 +23650,8 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23550
23650
|
// Remove Content-Type if data is undefined
|
|
23551
23651
|
requestData === undefined && requestHeaders.setContentType(null);
|
|
23552
23652
|
|
|
23553
|
-
// Add headers to the request
|
|
23554
|
-
if ('setRequestHeader' in request) {
|
|
23555
|
-
_utils_js__rspack_import_8["default"].forEach((0,_helpers_sanitizeHeaderValue_js__rspack_import_9.toByteStringHeaderObject)(requestHeaders), function setRequestHeader(val, key) {
|
|
23556
|
-
request.setRequestHeader(key, val);
|
|
23557
|
-
});
|
|
23558
|
-
}
|
|
23559
|
-
|
|
23560
23653
|
// Add withCredentials to request if needed
|
|
23561
|
-
if (!
|
|
23654
|
+
if (!_utils_js__rspack_import_1["default"].isUndefined(_config.withCredentials)) {
|
|
23562
23655
|
request.withCredentials = !!_config.withCredentials;
|
|
23563
23656
|
}
|
|
23564
23657
|
|
|
@@ -23569,7 +23662,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23569
23662
|
|
|
23570
23663
|
// Handle progress if needed
|
|
23571
23664
|
if (onDownloadProgress) {
|
|
23572
|
-
[downloadThrottled, flushDownload, flushDownloadWithEvent] = (0,
|
|
23665
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = (0,_helpers_progressEventReducer_js__rspack_import_9.progressEventReducer)(
|
|
23573
23666
|
onDownloadProgress,
|
|
23574
23667
|
true
|
|
23575
23668
|
);
|
|
@@ -23578,7 +23671,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23578
23671
|
|
|
23579
23672
|
// Not all browsers support upload events
|
|
23580
23673
|
if (onUploadProgress && request.upload) {
|
|
23581
|
-
[uploadThrottled, flushUpload] = (0,
|
|
23674
|
+
[uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__rspack_import_9.progressEventReducer)(onUploadProgress);
|
|
23582
23675
|
|
|
23583
23676
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
23584
23677
|
|
|
@@ -23592,13 +23685,15 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23592
23685
|
if (!request) {
|
|
23593
23686
|
return;
|
|
23594
23687
|
}
|
|
23595
|
-
reject(!cancel || cancel.type ? new
|
|
23596
|
-
request
|
|
23688
|
+
reject(!cancel || cancel.type ? new _cancel_CanceledError_js__rspack_import_10["default"](null, config, request) : cancel);
|
|
23689
|
+
const xhr = request;
|
|
23597
23690
|
done();
|
|
23598
23691
|
request = null;
|
|
23692
|
+
xhr.abort();
|
|
23599
23693
|
};
|
|
23600
23694
|
|
|
23601
23695
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
23696
|
+
if (!request) return;
|
|
23602
23697
|
if (_config.signal) {
|
|
23603
23698
|
_config.signal.aborted
|
|
23604
23699
|
? onCanceled()
|
|
@@ -23606,13 +23701,15 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23606
23701
|
}
|
|
23607
23702
|
}
|
|
23608
23703
|
|
|
23609
|
-
|
|
23704
|
+
if (!request) return;
|
|
23705
|
+
|
|
23706
|
+
const protocol = (0,_helpers_parseProtocol_js__rspack_import_4["default"])(_config.url);
|
|
23610
23707
|
|
|
23611
|
-
if (protocol && !
|
|
23708
|
+
if (protocol && !_platform_index_js__rspack_import_0["default"].protocols.includes(protocol)) {
|
|
23612
23709
|
reject(
|
|
23613
|
-
new
|
|
23710
|
+
new _core_AxiosError_js__rspack_import_6["default"](
|
|
23614
23711
|
'Unsupported protocol ' + protocol + ':',
|
|
23615
|
-
|
|
23712
|
+
_core_AxiosError_js__rspack_import_6["default"].ERR_BAD_REQUEST,
|
|
23616
23713
|
config
|
|
23617
23714
|
)
|
|
23618
23715
|
);
|
|
@@ -23620,8 +23717,72 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
23620
23717
|
return;
|
|
23621
23718
|
}
|
|
23622
23719
|
|
|
23623
|
-
|
|
23624
|
-
|
|
23720
|
+
const sendRequest = () => {
|
|
23721
|
+
if (!request) return;
|
|
23722
|
+
// Apply headers after an asynchronous XSRF read so existing headers are
|
|
23723
|
+
// replaced through AxiosHeaders rather than appended by the native XHR.
|
|
23724
|
+
if ('setRequestHeader' in request) {
|
|
23725
|
+
_utils_js__rspack_import_1["default"].forEach(
|
|
23726
|
+
(0,_helpers_sanitizeHeaderValue_js__rspack_import_11.toByteStringHeaderObject)(requestHeaders),
|
|
23727
|
+
function setRequestHeader(val, key) {
|
|
23728
|
+
request.setRequestHeader(key, val);
|
|
23729
|
+
}
|
|
23730
|
+
);
|
|
23731
|
+
}
|
|
23732
|
+
request.send(requestData || null);
|
|
23733
|
+
};
|
|
23734
|
+
|
|
23735
|
+
if (xsrfCookieName) {
|
|
23736
|
+
// Native XHR timeout starts at send(). Cover cookie preparation and the
|
|
23737
|
+
// subsequent request with the same budget and existing timeout handler.
|
|
23738
|
+
const now =
|
|
23739
|
+
typeof performance !== 'undefined' && _utils_js__rspack_import_1["default"].isFunction(performance.now)
|
|
23740
|
+
? () => performance.now()
|
|
23741
|
+
: Date.now;
|
|
23742
|
+
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : undefined;
|
|
23743
|
+
const abortOnTimeout = () => {
|
|
23744
|
+
if (!request) return;
|
|
23745
|
+
const xhr = request;
|
|
23746
|
+
xhr.ontimeout();
|
|
23747
|
+
xhr.abort();
|
|
23748
|
+
};
|
|
23749
|
+
if (deadline !== undefined) {
|
|
23750
|
+
const scheduleTimeout = () => {
|
|
23751
|
+
const remaining = deadline - now();
|
|
23752
|
+
if (remaining > 0) {
|
|
23753
|
+
// Browser timers overflow above the signed 32-bit delay limit.
|
|
23754
|
+
timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 0x7fffffff));
|
|
23755
|
+
} else {
|
|
23756
|
+
abortOnTimeout();
|
|
23757
|
+
}
|
|
23758
|
+
};
|
|
23759
|
+
scheduleTimeout();
|
|
23760
|
+
}
|
|
23761
|
+
|
|
23762
|
+
_helpers_cookies_js__rspack_import_12["default"].readAsync(xsrfCookieName)
|
|
23763
|
+
.then((value) => {
|
|
23764
|
+
if (!request) return;
|
|
23765
|
+
// Promise callbacks may run before an overdue timer after a busy task.
|
|
23766
|
+
if (deadline !== undefined && now() >= deadline) {
|
|
23767
|
+
abortOnTimeout();
|
|
23768
|
+
return;
|
|
23769
|
+
}
|
|
23770
|
+
if (value) {
|
|
23771
|
+
const headerName =
|
|
23772
|
+
_utils_js__rspack_import_1["default"].hasOwnProp(_config, 'xsrfHeaderName') && _config.xsrfHeaderName;
|
|
23773
|
+
requestHeaders.set(headerName, value);
|
|
23774
|
+
}
|
|
23775
|
+
sendRequest();
|
|
23776
|
+
})
|
|
23777
|
+
.catch((error) => {
|
|
23778
|
+
if (!request) return;
|
|
23779
|
+
reject(_core_AxiosError_js__rspack_import_6["default"].from(error, null, config, request));
|
|
23780
|
+
done();
|
|
23781
|
+
request = null;
|
|
23782
|
+
});
|
|
23783
|
+
} else {
|
|
23784
|
+
sendRequest();
|
|
23785
|
+
}
|
|
23625
23786
|
});
|
|
23626
23787
|
});
|
|
23627
23788
|
|
|
@@ -23928,16 +24089,18 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23928
24089
|
"FS"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
23929
24090
|
"use strict";
|
|
23930
24091
|
__webpack_require__.r(__webpack_exports__);
|
|
23931
|
-
/* import */ var
|
|
23932
|
-
/* import */ var
|
|
23933
|
-
/* import */ var
|
|
23934
|
-
/* import */ var
|
|
23935
|
-
/* import */ var
|
|
23936
|
-
/* import */ var
|
|
23937
|
-
/* import */ var
|
|
24092
|
+
/* import */ var _utils_js__rspack_import_1 = __webpack_require__("Kv");
|
|
24093
|
+
/* import */ var _helpers_buildURL_js__rspack_import_10 = __webpack_require__("Tw");
|
|
24094
|
+
/* import */ var _InterceptorManager_js__rspack_import_3 = __webpack_require__("jR");
|
|
24095
|
+
/* import */ var _dispatchRequest_js__rspack_import_8 = __webpack_require__("Gd");
|
|
24096
|
+
/* import */ var _mergeConfig_js__rspack_import_5 = __webpack_require__("yf");
|
|
24097
|
+
/* import */ var _buildFullPath_js__rspack_import_9 = __webpack_require__("zE");
|
|
24098
|
+
/* import */ var _methodList_js__rspack_import_6 = __webpack_require__("Y");
|
|
23938
24099
|
/* import */ var _helpers_validator_js__rspack_import_0 = __webpack_require__("ig");
|
|
23939
|
-
/* import */ var
|
|
23940
|
-
/* import */ var
|
|
24100
|
+
/* import */ var _AxiosHeaders_js__rspack_import_2 = __webpack_require__("Z");
|
|
24101
|
+
/* import */ var _defaults_transitional_js__rspack_import_7 = __webpack_require__("goR");
|
|
24102
|
+
/* import */ var _AxiosError_js__rspack_import_4 = __webpack_require__("f");
|
|
24103
|
+
|
|
23941
24104
|
|
|
23942
24105
|
|
|
23943
24106
|
|
|
@@ -23953,6 +24116,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23953
24116
|
|
|
23954
24117
|
const validators = _helpers_validator_js__rspack_import_0["default"].validators;
|
|
23955
24118
|
|
|
24119
|
+
// Recognize header maps without consuming objects intended as literal values.
|
|
24120
|
+
// AxiosHeaders from other builds share a brand and header-container interface,
|
|
24121
|
+
// but not constructor identity. A tag and toJSON alone can describe a literal.
|
|
24122
|
+
const isHeadersBucket = (value) => {
|
|
24123
|
+
if (value == null || _utils_js__rspack_import_1["default"].isPlainObject(value) || value instanceof _AxiosHeaders_js__rspack_import_2["default"]) {
|
|
24124
|
+
return true;
|
|
24125
|
+
}
|
|
24126
|
+
|
|
24127
|
+
try {
|
|
24128
|
+
return (
|
|
24129
|
+
_utils_js__rspack_import_1["default"].isObject(value) &&
|
|
24130
|
+
_utils_js__rspack_import_1["default"].getSafeProp(value, Symbol.toStringTag) === 'AxiosHeaders' &&
|
|
24131
|
+
[
|
|
24132
|
+
'toJSON',
|
|
24133
|
+
'set',
|
|
24134
|
+
'get',
|
|
24135
|
+
'has',
|
|
24136
|
+
'delete',
|
|
24137
|
+
'clear',
|
|
24138
|
+
'normalize',
|
|
24139
|
+
'concat',
|
|
24140
|
+
'toString',
|
|
24141
|
+
Symbol.iterator,
|
|
24142
|
+
].every((method) => _utils_js__rspack_import_1["default"].isFunction(_utils_js__rspack_import_1["default"].getSafeProp(value, method)))
|
|
24143
|
+
);
|
|
24144
|
+
} catch (e) {
|
|
24145
|
+
// A failed optional brand probe must not prevent literal header serialization.
|
|
24146
|
+
return false;
|
|
24147
|
+
}
|
|
24148
|
+
};
|
|
24149
|
+
|
|
23956
24150
|
/**
|
|
23957
24151
|
* Create a new instance of Axios
|
|
23958
24152
|
*
|
|
@@ -23964,8 +24158,8 @@ class Axios {
|
|
|
23964
24158
|
constructor(instanceConfig) {
|
|
23965
24159
|
this.defaults = instanceConfig || {};
|
|
23966
24160
|
this.interceptors = {
|
|
23967
|
-
request: new
|
|
23968
|
-
response: new
|
|
24161
|
+
request: new _InterceptorManager_js__rspack_import_3["default"](),
|
|
24162
|
+
response: new _InterceptorManager_js__rspack_import_3["default"](),
|
|
23969
24163
|
};
|
|
23970
24164
|
}
|
|
23971
24165
|
|
|
@@ -23999,16 +24193,26 @@ class Axios {
|
|
|
23999
24193
|
|
|
24000
24194
|
if (!err.stack) {
|
|
24001
24195
|
err.stack = stack;
|
|
24002
|
-
// match without the 2 top stack lines
|
|
24003
24196
|
} else if (stack) {
|
|
24197
|
+
// Match a common suffix after the 2 top frames when available,
|
|
24198
|
+
// otherwise compare the full reconstructed stack.
|
|
24004
24199
|
const firstNewlineIndex = stack.indexOf('\n');
|
|
24005
24200
|
const secondNewlineIndex =
|
|
24006
24201
|
firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
|
|
24007
|
-
const
|
|
24008
|
-
secondNewlineIndex === -1 ?
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24202
|
+
const duplicateCheckSuffix =
|
|
24203
|
+
secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
|
|
24204
|
+
|
|
24205
|
+
// `AxiosError.from()` may have already inlined the wrapped error's
|
|
24206
|
+
// stack under a `Caused by:` marker. Keep the reconstructed caller
|
|
24207
|
+
// frames ahead of that marker so stack-only reporters do not read
|
|
24208
|
+
// them as part of the low-level cause.
|
|
24209
|
+
const currentStack = String(err.stack);
|
|
24210
|
+
const causeIndex = (0,_AxiosError_js__rspack_import_4.getCauseStackIndex)(err, currentStack);
|
|
24211
|
+
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
24212
|
+
const causeSection = causeIndex === -1 ? '' : currentStack.slice(causeIndex);
|
|
24213
|
+
|
|
24214
|
+
if (!stackHead.endsWith(duplicateCheckSuffix)) {
|
|
24215
|
+
err.stack = stackHead + '\n' + stack + causeSection;
|
|
24012
24216
|
}
|
|
24013
24217
|
}
|
|
24014
24218
|
} catch (e) {
|
|
@@ -24030,7 +24234,7 @@ class Axios {
|
|
|
24030
24234
|
config = configOrUrl || {};
|
|
24031
24235
|
}
|
|
24032
24236
|
|
|
24033
|
-
config = (0,
|
|
24237
|
+
config = (0,_mergeConfig_js__rspack_import_5["default"])(this.defaults, config);
|
|
24034
24238
|
|
|
24035
24239
|
const { transitional, paramsSerializer, headers } = config;
|
|
24036
24240
|
|
|
@@ -24044,13 +24248,14 @@ class Axios {
|
|
|
24044
24248
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
24045
24249
|
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
24046
24250
|
validateStatusUndefinedResolves: validators.transitional(validators.boolean),
|
|
24251
|
+
encodeBasicAuthUsername: validators.transitional(validators.boolean),
|
|
24047
24252
|
},
|
|
24048
24253
|
false
|
|
24049
24254
|
);
|
|
24050
24255
|
}
|
|
24051
24256
|
|
|
24052
24257
|
if (paramsSerializer != null) {
|
|
24053
|
-
if (
|
|
24258
|
+
if (_utils_js__rspack_import_1["default"].isFunction(paramsSerializer)) {
|
|
24054
24259
|
config.paramsSerializer = {
|
|
24055
24260
|
serialize: paramsSerializer,
|
|
24056
24261
|
};
|
|
@@ -24069,7 +24274,10 @@ class Axios {
|
|
|
24069
24274
|
// Set config.allowAbsoluteUrls
|
|
24070
24275
|
if (config.allowAbsoluteUrls !== undefined) {
|
|
24071
24276
|
// do nothing
|
|
24072
|
-
} else if (
|
|
24277
|
+
} else if (
|
|
24278
|
+
_utils_js__rspack_import_1["default"].hasOwnProp(this.defaults, 'allowAbsoluteUrls') &&
|
|
24279
|
+
this.defaults.allowAbsoluteUrls !== undefined
|
|
24280
|
+
) {
|
|
24073
24281
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
24074
24282
|
} else {
|
|
24075
24283
|
config.allowAbsoluteUrls = true;
|
|
@@ -24086,20 +24294,29 @@ class Axios {
|
|
|
24086
24294
|
|
|
24087
24295
|
// Set config.method
|
|
24088
24296
|
config.method = (
|
|
24089
|
-
|
|
24090
|
-
|
|
24297
|
+
_utils_js__rspack_import_1["default"].getSafeProp(config, 'method') ||
|
|
24298
|
+
_utils_js__rspack_import_1["default"].getSafeProp(this.defaults, 'method') ||
|
|
24091
24299
|
'get'
|
|
24092
24300
|
).toLowerCase();
|
|
24093
24301
|
|
|
24094
|
-
// Flatten headers
|
|
24095
|
-
|
|
24302
|
+
// Flatten header defaults without consuming literal method-named headers.
|
|
24303
|
+
const commonHeaders = _utils_js__rspack_import_1["default"].getSafeProp(headers, 'common');
|
|
24304
|
+
const methodHeaders = _utils_js__rspack_import_1["default"].getSafeProp(headers, config.method);
|
|
24305
|
+
const contextHeaders =
|
|
24306
|
+
headers &&
|
|
24307
|
+
_utils_js__rspack_import_1["default"].merge(
|
|
24308
|
+
isHeadersBucket(commonHeaders) ? commonHeaders : undefined,
|
|
24309
|
+
isHeadersBucket(methodHeaders) ? methodHeaders : undefined
|
|
24310
|
+
);
|
|
24096
24311
|
|
|
24097
24312
|
headers &&
|
|
24098
|
-
|
|
24099
|
-
|
|
24313
|
+
_utils_js__rspack_import_1["default"].forEach(_methodList_js__rspack_import_6["default"].concat('common'), (method) => {
|
|
24314
|
+
if (isHeadersBucket(_utils_js__rspack_import_1["default"].getSafeProp(headers, method))) {
|
|
24315
|
+
delete headers[method];
|
|
24316
|
+
}
|
|
24100
24317
|
});
|
|
24101
24318
|
|
|
24102
|
-
config.headers =
|
|
24319
|
+
config.headers = _AxiosHeaders_js__rspack_import_2["default"].concat(contextHeaders, headers);
|
|
24103
24320
|
|
|
24104
24321
|
// filter out skipped interceptors
|
|
24105
24322
|
const requestInterceptorChain = [];
|
|
@@ -24111,7 +24328,7 @@ class Axios {
|
|
|
24111
24328
|
|
|
24112
24329
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
24113
24330
|
|
|
24114
|
-
const transitional = config.transitional ||
|
|
24331
|
+
const transitional = config.transitional || _defaults_transitional_js__rspack_import_7["default"];
|
|
24115
24332
|
const legacyInterceptorReqResOrdering =
|
|
24116
24333
|
transitional && transitional.legacyInterceptorReqResOrdering;
|
|
24117
24334
|
|
|
@@ -24132,7 +24349,7 @@ class Axios {
|
|
|
24132
24349
|
let len;
|
|
24133
24350
|
|
|
24134
24351
|
if (!synchronousRequestInterceptors) {
|
|
24135
|
-
const chain = [
|
|
24352
|
+
const chain = [_dispatchRequest_js__rspack_import_8["default"].bind(this), undefined];
|
|
24136
24353
|
chain.unshift(...requestInterceptorChain);
|
|
24137
24354
|
chain.push(...responseInterceptorChain);
|
|
24138
24355
|
len = chain.length;
|
|
@@ -24164,9 +24381,9 @@ class Axios {
|
|
|
24164
24381
|
try {
|
|
24165
24382
|
const rejectedResult = onRejected.call(this, error);
|
|
24166
24383
|
|
|
24167
|
-
if (
|
|
24384
|
+
if (_utils_js__rspack_import_1["default"].isThenable(rejectedResult)) {
|
|
24168
24385
|
promise = Promise.resolve(rejectedResult).then(() =>
|
|
24169
|
-
|
|
24386
|
+
_dispatchRequest_js__rspack_import_8["default"].call(this, newConfig)
|
|
24170
24387
|
);
|
|
24171
24388
|
}
|
|
24172
24389
|
} catch (rejectedError) {
|
|
@@ -24179,7 +24396,7 @@ class Axios {
|
|
|
24179
24396
|
|
|
24180
24397
|
if (!promise) {
|
|
24181
24398
|
try {
|
|
24182
|
-
promise =
|
|
24399
|
+
promise = _dispatchRequest_js__rspack_import_8["default"].call(this, newConfig);
|
|
24183
24400
|
} catch (error) {
|
|
24184
24401
|
promise = Promise.reject(error);
|
|
24185
24402
|
}
|
|
@@ -24196,31 +24413,31 @@ class Axios {
|
|
|
24196
24413
|
}
|
|
24197
24414
|
|
|
24198
24415
|
getUri(config) {
|
|
24199
|
-
config = (0,
|
|
24200
|
-
const fullPath = (0,
|
|
24201
|
-
return (0,
|
|
24416
|
+
config = (0,_mergeConfig_js__rspack_import_5["default"])(this.defaults, config);
|
|
24417
|
+
const fullPath = (0,_buildFullPath_js__rspack_import_9["default"])(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
24418
|
+
return (0,_helpers_buildURL_js__rspack_import_10["default"])(fullPath, config.params, config.paramsSerializer);
|
|
24202
24419
|
}
|
|
24203
24420
|
}
|
|
24204
24421
|
|
|
24205
24422
|
// Provide aliases for supported request methods
|
|
24206
|
-
|
|
24423
|
+
_utils_js__rspack_import_1["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
24207
24424
|
/*eslint func-names:0*/
|
|
24208
|
-
Axios.prototype[method] = function (url, config) {
|
|
24425
|
+
Axios.prototype[method] = async function (url, config) {
|
|
24209
24426
|
return this.request(
|
|
24210
|
-
(0,
|
|
24427
|
+
(0,_mergeConfig_js__rspack_import_5["default"])(config || {}, {
|
|
24211
24428
|
method,
|
|
24212
24429
|
url,
|
|
24213
|
-
data: config &&
|
|
24430
|
+
data: config && _utils_js__rspack_import_1["default"].hasOwnProp(config, 'data') ? config.data : undefined,
|
|
24214
24431
|
})
|
|
24215
24432
|
);
|
|
24216
24433
|
};
|
|
24217
24434
|
});
|
|
24218
24435
|
|
|
24219
|
-
|
|
24436
|
+
_utils_js__rspack_import_1["default"].forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
|
|
24220
24437
|
function generateHTTPMethod(isForm) {
|
|
24221
|
-
return function httpMethod(url, data, config) {
|
|
24438
|
+
return async function httpMethod(url, data, config) {
|
|
24222
24439
|
return this.request(
|
|
24223
|
-
(0,
|
|
24440
|
+
(0,_mergeConfig_js__rspack_import_5["default"])(config || {}, {
|
|
24224
24441
|
method,
|
|
24225
24442
|
headers: isForm
|
|
24226
24443
|
? {
|
|
@@ -24349,6 +24566,61 @@ function aggregateErrorMessage(error) {
|
|
|
24349
24566
|
return message || error.name || 'AggregateError';
|
|
24350
24567
|
}
|
|
24351
24568
|
|
|
24569
|
+
// Shared with `Axios.prototype.request`, which splices the reconstructed
|
|
24570
|
+
// caller frames in ahead of this marker.
|
|
24571
|
+
const CAUSED_BY_SEPARATOR = '\nCaused by: ';
|
|
24572
|
+
const $causeStack = Symbol('causeStack');
|
|
24573
|
+
|
|
24574
|
+
// Match the section we appended, not marker-like text in an error message or
|
|
24575
|
+
// a replacement stack supplied by the caller. Do not re-read the cause's stack.
|
|
24576
|
+
function getCauseStackIndex(error, stack) {
|
|
24577
|
+
const causeStack = _utils_js__rspack_import_0["default"].hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
24578
|
+
|
|
24579
|
+
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
24580
|
+
}
|
|
24581
|
+
|
|
24582
|
+
/**
|
|
24583
|
+
* Append the stack of a wrapped error to `target.stack`.
|
|
24584
|
+
*
|
|
24585
|
+
* `cause` already exposes the original error for tooling that walks the standard
|
|
24586
|
+
* cause chain, but many error reporters read `stack` and nothing else. Inlining
|
|
24587
|
+
* the wrapped stack there means those reporters surface the underlying failure
|
|
24588
|
+
* instead of the axios frames that normalized it (see #6670).
|
|
24589
|
+
*
|
|
24590
|
+
* Every read is defensive: a custom `Error.prepareStackTrace` hook, a runtime
|
|
24591
|
+
* without stack support, or a replaced `stack` property can leave the value
|
|
24592
|
+
* missing, non-string, or read-only, and normalizing an error must not throw
|
|
24593
|
+
* because of that.
|
|
24594
|
+
*
|
|
24595
|
+
* @param {Error} target The AxiosError being built.
|
|
24596
|
+
* @param {Error} source The error being wrapped.
|
|
24597
|
+
*
|
|
24598
|
+
* @returns {void}
|
|
24599
|
+
*/
|
|
24600
|
+
function appendCauseStack(target, source) {
|
|
24601
|
+
try {
|
|
24602
|
+
const sourceStack = source && source.stack;
|
|
24603
|
+
|
|
24604
|
+
if (typeof sourceStack !== 'string' || !sourceStack) {
|
|
24605
|
+
return;
|
|
24606
|
+
}
|
|
24607
|
+
|
|
24608
|
+
const targetStack = target.stack;
|
|
24609
|
+
|
|
24610
|
+
if (typeof targetStack !== 'string' || !targetStack) {
|
|
24611
|
+
return;
|
|
24612
|
+
}
|
|
24613
|
+
|
|
24614
|
+
// Each call to `from()` creates a fresh target. Re-wrapping includes the
|
|
24615
|
+
// previous stack verbatim, adding one cause section per wrap.
|
|
24616
|
+
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
24617
|
+
target.stack = targetStack + causeStack;
|
|
24618
|
+
Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
|
|
24619
|
+
} catch (e) {
|
|
24620
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
24621
|
+
}
|
|
24622
|
+
}
|
|
24623
|
+
|
|
24352
24624
|
class AxiosError extends Error {
|
|
24353
24625
|
static from(error, code, config, request, response, customProps) {
|
|
24354
24626
|
// `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
|
|
@@ -24375,6 +24647,10 @@ class AxiosError extends Error {
|
|
|
24375
24647
|
});
|
|
24376
24648
|
axiosError.name = error.name;
|
|
24377
24649
|
|
|
24650
|
+
// Inline the wrapped stack for reporters that read only `stack`; the `cause`
|
|
24651
|
+
// property above already covers cause-aware tooling.
|
|
24652
|
+
appendCauseStack(axiosError, error);
|
|
24653
|
+
|
|
24378
24654
|
// Preserve status from the original error if not already set from response
|
|
24379
24655
|
if (error.status != null && axiosError.status == null) {
|
|
24380
24656
|
axiosError.status = error.status;
|
|
@@ -24473,7 +24749,9 @@ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
|
24473
24749
|
/* export default */ __webpack_exports__["default"] = (AxiosError);
|
|
24474
24750
|
|
|
24475
24751
|
__webpack_require__.d(__webpack_exports__, {
|
|
24752
|
+
getCauseStackIndex: () => (getCauseStackIndex)
|
|
24476
24753
|
}, {
|
|
24754
|
+
CAUSED_BY_SEPARATOR: CAUSED_BY_SEPARATOR,
|
|
24477
24755
|
REDACTED: REDACTED
|
|
24478
24756
|
});
|
|
24479
24757
|
|
|
@@ -24637,9 +24915,22 @@ function parseParameters(value) {
|
|
|
24637
24915
|
|
|
24638
24916
|
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
24639
24917
|
|
|
24918
|
+
// `__proto__` is a valid field name, and the one name the uppercase mapping at
|
|
24919
|
+
// the bottom of this file cannot reach: it is inherited from Object.prototype
|
|
24920
|
+
// instead of being declared on AxiosHeaders.prototype, so `self.__proto__ = v`
|
|
24921
|
+
// runs the inherited setter. That silently discards the header, and an array
|
|
24922
|
+
// value replaces the instance prototype, taking every method with it.
|
|
24923
|
+
// Store it under the same kind of case variant that mapping uses for `set` and
|
|
24924
|
+
// `constructor`. Header lookup is caseless, so it reads back under either
|
|
24925
|
+
// spelling, and no own `__proto__` slot is ever created for a later
|
|
24926
|
+
// `Object.assign` to copy onto a plain object through the same setter.
|
|
24927
|
+
const PROTO_HEADER_SLOT = '__Proto__';
|
|
24928
|
+
|
|
24929
|
+
const headerSlot = (name) => (name === '__proto__' ? PROTO_HEADER_SLOT : name);
|
|
24930
|
+
|
|
24640
24931
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
24641
24932
|
if (_utils_js__rspack_import_0["default"].isFunction(filter)) {
|
|
24642
|
-
return filter.call(
|
|
24933
|
+
return filter.call(context, value, header);
|
|
24643
24934
|
}
|
|
24644
24935
|
|
|
24645
24936
|
if (isHeaderNameFilter) {
|
|
@@ -24705,7 +24996,7 @@ class AxiosHeaders {
|
|
|
24705
24996
|
_rewrite === true ||
|
|
24706
24997
|
(_rewrite === undefined && self[key] !== false)
|
|
24707
24998
|
) {
|
|
24708
|
-
self[key || _header] = normalizeValue(_value);
|
|
24999
|
+
self[headerSlot(key || _header)] = normalizeValue(_value);
|
|
24709
25000
|
}
|
|
24710
25001
|
}
|
|
24711
25002
|
|
|
@@ -24834,7 +25125,7 @@ class AxiosHeaders {
|
|
|
24834
25125
|
|
|
24835
25126
|
normalize(format) {
|
|
24836
25127
|
const self = this;
|
|
24837
|
-
const headers =
|
|
25128
|
+
const headers = Object.create(null);
|
|
24838
25129
|
|
|
24839
25130
|
_utils_js__rspack_import_0["default"].forEach(this, (value, header) => {
|
|
24840
25131
|
const key = _utils_js__rspack_import_0["default"].findKey(headers, header);
|
|
@@ -24845,7 +25136,7 @@ class AxiosHeaders {
|
|
|
24845
25136
|
return;
|
|
24846
25137
|
}
|
|
24847
25138
|
|
|
24848
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
25139
|
+
const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
|
|
24849
25140
|
|
|
24850
25141
|
if (normalized !== header) {
|
|
24851
25142
|
delete self[header];
|
|
@@ -24989,6 +25280,16 @@ function trimHandlers(handlers) {
|
|
|
24989
25280
|
}
|
|
24990
25281
|
}
|
|
24991
25282
|
|
|
25283
|
+
// Preserve the array-key coercion used before IDs were stored in a Map, without
|
|
25284
|
+
// treating null, empty strings, or noncanonical numeric strings as ID zero.
|
|
25285
|
+
function normalizeHandlerId(id) {
|
|
25286
|
+
if (typeof id === 'string' && id !== '' && String(Number(id)) === id) {
|
|
25287
|
+
return Number(id);
|
|
25288
|
+
}
|
|
25289
|
+
|
|
25290
|
+
return id;
|
|
25291
|
+
}
|
|
25292
|
+
|
|
24992
25293
|
function syncHandlerEntries(manager, internals) {
|
|
24993
25294
|
const handlers = manager.handlers;
|
|
24994
25295
|
const length = countHandlers(handlers);
|
|
@@ -25071,10 +25372,11 @@ class InterceptorManager {
|
|
|
25071
25372
|
|
|
25072
25373
|
syncHandlerEntries(this, internals);
|
|
25073
25374
|
|
|
25074
|
-
const
|
|
25375
|
+
const handlerId = normalizeHandlerId(id);
|
|
25376
|
+
const entry = internals.handlerEntries.get(handlerId);
|
|
25075
25377
|
|
|
25076
25378
|
if (entry) {
|
|
25077
|
-
internals.handlerEntries.delete(
|
|
25379
|
+
internals.handlerEntries.delete(handlerId);
|
|
25078
25380
|
|
|
25079
25381
|
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
25080
25382
|
if (this.handlers[entry.index] !== entry.handler) {
|
|
@@ -25139,6 +25441,67 @@ class InterceptorManager {
|
|
|
25139
25441
|
/* export default */ __webpack_exports__["default"] = (InterceptorManager);
|
|
25140
25442
|
|
|
25141
25443
|
|
|
25444
|
+
},
|
|
25445
|
+
"xN"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25446
|
+
"use strict";
|
|
25447
|
+
__webpack_require__.r(__webpack_exports__);
|
|
25448
|
+
/* import */ var _utils_js__rspack_import_0 = __webpack_require__("Kv");
|
|
25449
|
+
/* import */ var _AxiosError_js__rspack_import_1 = __webpack_require__("f");
|
|
25450
|
+
|
|
25451
|
+
|
|
25452
|
+
|
|
25453
|
+
|
|
25454
|
+
|
|
25455
|
+
function assertParamsAcyclic(params) {
|
|
25456
|
+
const pending = [{ value: params }];
|
|
25457
|
+
const active = new WeakSet();
|
|
25458
|
+
const visited = new WeakSet();
|
|
25459
|
+
|
|
25460
|
+
while (pending.length) {
|
|
25461
|
+
const { value, done } = pending.pop();
|
|
25462
|
+
if (!_utils_js__rspack_import_0["default"].isPlainObject(value) && !_utils_js__rspack_import_0["default"].isArray(value)) continue;
|
|
25463
|
+
if (done) {
|
|
25464
|
+
active.delete(value);
|
|
25465
|
+
continue;
|
|
25466
|
+
}
|
|
25467
|
+
if (active.has(value)) {
|
|
25468
|
+
throw new _AxiosError_js__rspack_import_1["default"](
|
|
25469
|
+
'Circular reference detected in params',
|
|
25470
|
+
_AxiosError_js__rspack_import_1["default"].ERR_BAD_OPTION_VALUE
|
|
25471
|
+
);
|
|
25472
|
+
}
|
|
25473
|
+
if (visited.has(value)) continue;
|
|
25474
|
+
visited.add(value);
|
|
25475
|
+
active.add(value);
|
|
25476
|
+
pending.push({ value, done: true });
|
|
25477
|
+
|
|
25478
|
+
const keys = Object.keys(value);
|
|
25479
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
25480
|
+
Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
25481
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
25482
|
+
if (descriptor && descriptor.enumerable) keys.push(key);
|
|
25483
|
+
});
|
|
25484
|
+
}
|
|
25485
|
+
// Shallow array elements retain fields filtered during plain-object merges.
|
|
25486
|
+
// Inspect reserved data properties without evaluating their accessors.
|
|
25487
|
+
keys.forEach((key) => {
|
|
25488
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
25489
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
25490
|
+
if (descriptor && _utils_js__rspack_import_0["default"].hasOwnProp(descriptor, 'value')) {
|
|
25491
|
+
pending.push({ value: descriptor.value });
|
|
25492
|
+
}
|
|
25493
|
+
} else {
|
|
25494
|
+
pending.push({ value: value[key] });
|
|
25495
|
+
}
|
|
25496
|
+
});
|
|
25497
|
+
}
|
|
25498
|
+
}
|
|
25499
|
+
|
|
25500
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
25501
|
+
"default": () => (assertParamsAcyclic)
|
|
25502
|
+
});
|
|
25503
|
+
|
|
25504
|
+
|
|
25142
25505
|
},
|
|
25143
25506
|
"zE"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25144
25507
|
"use strict";
|
|
@@ -25229,6 +25592,57 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
25229
25592
|
});
|
|
25230
25593
|
|
|
25231
25594
|
|
|
25595
|
+
},
|
|
25596
|
+
"vE"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25597
|
+
"use strict";
|
|
25598
|
+
__webpack_require__.r(__webpack_exports__);
|
|
25599
|
+
/* import */ var _utils_js__rspack_import_0 = __webpack_require__("Kv");
|
|
25600
|
+
/* import */ var _platform_index_js__rspack_import_2 = __webpack_require__("nF");
|
|
25601
|
+
/* import */ var _AxiosError_js__rspack_import_1 = __webpack_require__("f");
|
|
25602
|
+
/* import */ var _helpers_formDataToBlob_js__rspack_import_3 = __webpack_require__("D");
|
|
25603
|
+
|
|
25604
|
+
|
|
25605
|
+
|
|
25606
|
+
|
|
25607
|
+
|
|
25608
|
+
function createMultipartBody(form, Blob, limit, limitError, boundary) {
|
|
25609
|
+
// Report missing Blob support before trying to select a random source.
|
|
25610
|
+
if (!_utils_js__rspack_import_0["default"].isFunction(Blob)) {
|
|
25611
|
+
throw new _AxiosError_js__rspack_import_1["default"]('Blob is not supported', _AxiosError_js__rspack_import_1["default"].ERR_NOT_SUPPORT);
|
|
25612
|
+
}
|
|
25613
|
+
|
|
25614
|
+
if (boundary === undefined) {
|
|
25615
|
+
if (_utils_js__rspack_import_0["default"].isFunction(_platform_index_js__rspack_import_2["default"].generateString)) {
|
|
25616
|
+
boundary = 'axios-' + _platform_index_js__rspack_import_2["default"].generateString(36, '0123456789abcdef');
|
|
25617
|
+
} else {
|
|
25618
|
+
const crypto = _utils_js__rspack_import_0["default"].global.crypto;
|
|
25619
|
+
if (!crypto || !_utils_js__rspack_import_0["default"].isFunction(crypto.getRandomValues)) {
|
|
25620
|
+
throw new _AxiosError_js__rspack_import_1["default"]('Random byte generation is not supported', _AxiosError_js__rspack_import_1["default"].ERR_NOT_SUPPORT);
|
|
25621
|
+
}
|
|
25622
|
+
const random = new Uint8Array(18);
|
|
25623
|
+
crypto.getRandomValues(random);
|
|
25624
|
+
boundary =
|
|
25625
|
+
'axios-' + Array.from(random, (value) => ('0' + value.toString(16)).slice(-2)).join('');
|
|
25626
|
+
}
|
|
25627
|
+
}
|
|
25628
|
+
|
|
25629
|
+
try {
|
|
25630
|
+
return (0,_helpers_formDataToBlob_js__rspack_import_3["default"])(form, Blob, limit, limitError, boundary);
|
|
25631
|
+
} catch (error) {
|
|
25632
|
+
if (error instanceof _helpers_formDataToBlob_js__rspack_import_3.FormDataError) {
|
|
25633
|
+
const code =
|
|
25634
|
+
error.reason === 'boundary' ? _AxiosError_js__rspack_import_1["default"].ERR_BAD_OPTION_VALUE : _AxiosError_js__rspack_import_1["default"].ERR_BAD_REQUEST;
|
|
25635
|
+
throw new _AxiosError_js__rspack_import_1["default"](error.message, code);
|
|
25636
|
+
}
|
|
25637
|
+
throw error;
|
|
25638
|
+
}
|
|
25639
|
+
}
|
|
25640
|
+
|
|
25641
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
25642
|
+
"default": () => (createMultipartBody)
|
|
25643
|
+
});
|
|
25644
|
+
|
|
25645
|
+
|
|
25232
25646
|
},
|
|
25233
25647
|
"Gd"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25234
25648
|
"use strict";
|
|
@@ -25267,6 +25681,37 @@ function throwIfCancellationRequested(config) {
|
|
|
25267
25681
|
}
|
|
25268
25682
|
}
|
|
25269
25683
|
|
|
25684
|
+
/**
|
|
25685
|
+
* Resolve the clock used to time adapter execution.
|
|
25686
|
+
*
|
|
25687
|
+
* Prefers the monotonic `performance.now()` so wall-clock adjustments do not
|
|
25688
|
+
* skew the measurement, and so frameworks that forbid reading the current
|
|
25689
|
+
* time during prerendering (e.g. Next.js Cache Components) accept it. Falls
|
|
25690
|
+
* back to `Date.now()` in runtimes without the High Resolution Time API.
|
|
25691
|
+
*
|
|
25692
|
+
* @returns {() => number} Millisecond clock
|
|
25693
|
+
*/
|
|
25694
|
+
function resolveClock() {
|
|
25695
|
+
return typeof performance !== 'undefined' && _utils_js__rspack_import_1["default"].isFunction(performance.now)
|
|
25696
|
+
? () => performance.now()
|
|
25697
|
+
: Date.now;
|
|
25698
|
+
}
|
|
25699
|
+
|
|
25700
|
+
/**
|
|
25701
|
+
* Whole milliseconds elapsed since `start`, floored at zero.
|
|
25702
|
+
*
|
|
25703
|
+
* Rounded so the value stays an integer as with `Date.now()`. The fallback
|
|
25704
|
+
* wall clock can move backwards mid-request, so the result is clamped.
|
|
25705
|
+
*
|
|
25706
|
+
* @param {() => number} now Clock returned by `resolveClock()`
|
|
25707
|
+
* @param {number} start Timestamp read from `now`
|
|
25708
|
+
*
|
|
25709
|
+
* @returns {number} Non-negative elapsed milliseconds
|
|
25710
|
+
*/
|
|
25711
|
+
function elapsedSince(now, start) {
|
|
25712
|
+
return Math.max(0, Math.round(now() - start));
|
|
25713
|
+
}
|
|
25714
|
+
|
|
25270
25715
|
/**
|
|
25271
25716
|
* Dispatch a request to the server using the configured adapter.
|
|
25272
25717
|
*
|
|
@@ -25293,10 +25738,15 @@ function dispatchRequest(_config) {
|
|
|
25293
25738
|
|
|
25294
25739
|
const adapter = _adapters_adapters_js__rspack_import_4["default"].getAdapter(config.adapter || _defaults_index_js__rspack_import_5["default"].adapter, config);
|
|
25295
25740
|
|
|
25741
|
+
const now = resolveClock();
|
|
25742
|
+
const start = now();
|
|
25743
|
+
|
|
25296
25744
|
return adapter(config).then(
|
|
25297
25745
|
function onAdapterResolution(response) {
|
|
25298
25746
|
throwIfCancellationRequested(config);
|
|
25299
25747
|
|
|
25748
|
+
response.duration = elapsedSince(now, start);
|
|
25749
|
+
|
|
25300
25750
|
// Expose the current response on config so that transformResponse can
|
|
25301
25751
|
// attach it to any AxiosError it throws (e.g. on JSON parse failure).
|
|
25302
25752
|
// We clean it up afterwards to avoid polluting the config object.
|
|
@@ -25317,6 +25767,7 @@ function dispatchRequest(_config) {
|
|
|
25317
25767
|
|
|
25318
25768
|
// Transform response data
|
|
25319
25769
|
if (reason && reason.response) {
|
|
25770
|
+
reason.response.duration = elapsedSince(now, start);
|
|
25320
25771
|
config.response = reason.response;
|
|
25321
25772
|
try {
|
|
25322
25773
|
reason.response.data = _transformData_js__rspack_import_3["default"].call(
|
|
@@ -25347,6 +25798,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
25347
25798
|
__webpack_require__.r(__webpack_exports__);
|
|
25348
25799
|
/* import */ var _utils_js__rspack_import_1 = __webpack_require__("Kv");
|
|
25349
25800
|
/* import */ var _AxiosHeaders_js__rspack_import_0 = __webpack_require__("Z");
|
|
25801
|
+
/* import */ var _assertParamsAcyclic_js__rspack_import_2 = __webpack_require__("xN");
|
|
25802
|
+
|
|
25350
25803
|
|
|
25351
25804
|
|
|
25352
25805
|
|
|
@@ -25357,14 +25810,184 @@ const headersToObject = (thing) => (thing instanceof _AxiosHeaders_js__rspack_im
|
|
|
25357
25810
|
const ownEnumerableKeys = (thing) => {
|
|
25358
25811
|
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
25359
25812
|
return Object.keys(thing).concat(
|
|
25360
|
-
Object.getOwnPropertySymbols(thing).filter(
|
|
25361
|
-
|
|
25362
|
-
|
|
25813
|
+
Object.getOwnPropertySymbols(thing).filter((symbol) => {
|
|
25814
|
+
const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
|
|
25815
|
+
return descriptor && descriptor.enumerable;
|
|
25816
|
+
})
|
|
25363
25817
|
);
|
|
25364
25818
|
}
|
|
25365
25819
|
return Object.keys(thing);
|
|
25366
25820
|
};
|
|
25367
25821
|
|
|
25822
|
+
// Copy params without recursive merges so the serializer remains responsible
|
|
25823
|
+
// for its depth policy. Only visit defaults that contribute to the result.
|
|
25824
|
+
function mergeParams(a, b) {
|
|
25825
|
+
const pending = [];
|
|
25826
|
+
const copies = new WeakMap();
|
|
25827
|
+
const empty = {};
|
|
25828
|
+
|
|
25829
|
+
function copy(target, source) {
|
|
25830
|
+
if (!_utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
25831
|
+
return _utils_js__rspack_import_1["default"].isArray(source) ? source.slice() : source;
|
|
25832
|
+
}
|
|
25833
|
+
|
|
25834
|
+
const base = _utils_js__rspack_import_1["default"].isPlainObject(target) ? target : empty;
|
|
25835
|
+
let bases = copies.get(source);
|
|
25836
|
+
if (!bases) {
|
|
25837
|
+
bases = new WeakMap();
|
|
25838
|
+
copies.set(source, bases);
|
|
25839
|
+
}
|
|
25840
|
+
if (bases.has(base)) return bases.get(base);
|
|
25841
|
+
|
|
25842
|
+
const result = {};
|
|
25843
|
+
bases.set(base, result);
|
|
25844
|
+
pending.push({ base, source, result });
|
|
25845
|
+
return result;
|
|
25846
|
+
}
|
|
25847
|
+
|
|
25848
|
+
const result = _utils_js__rspack_import_1["default"].isUndefined(b) ? copy(undefined, a) : copy(a, b);
|
|
25849
|
+
while (pending.length) {
|
|
25850
|
+
const { base, source, result: target } = pending.pop();
|
|
25851
|
+
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
25852
|
+
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
25853
|
+
const keys = new Set([...baseKeys, ...sourceKeys]);
|
|
25854
|
+
|
|
25855
|
+
keys.forEach((key) => {
|
|
25856
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') return;
|
|
25857
|
+
const hasSource = sourceKeys.has(key);
|
|
25858
|
+
const value = hasSource ? source[key] : undefined;
|
|
25859
|
+
const previous =
|
|
25860
|
+
(!hasSource || _utils_js__rspack_import_1["default"].isPlainObject(value)) && baseKeys.has(key) ? base[key] : undefined;
|
|
25861
|
+
target[key] = hasSource ? copy(previous, value) : copy(undefined, previous);
|
|
25862
|
+
});
|
|
25863
|
+
}
|
|
25864
|
+
|
|
25865
|
+
(0,_assertParamsAcyclic_js__rspack_import_2["default"])(result);
|
|
25866
|
+
return result;
|
|
25867
|
+
}
|
|
25868
|
+
|
|
25869
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
25870
|
+
if (_utils_js__rspack_import_1["default"].isPlainObject(target) && _utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
25871
|
+
return _utils_js__rspack_import_1["default"].merge.call({ caseless }, target, source);
|
|
25872
|
+
} else if (_utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
25873
|
+
return _utils_js__rspack_import_1["default"].merge({}, source);
|
|
25874
|
+
} else if (_utils_js__rspack_import_1["default"].isArray(source)) {
|
|
25875
|
+
return source.slice();
|
|
25876
|
+
}
|
|
25877
|
+
return source;
|
|
25878
|
+
}
|
|
25879
|
+
|
|
25880
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
25881
|
+
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
25882
|
+
return getMergedValue(a, b, prop, caseless);
|
|
25883
|
+
} else if (!_utils_js__rspack_import_1["default"].isUndefined(a)) {
|
|
25884
|
+
return getMergedValue(undefined, a, prop, caseless);
|
|
25885
|
+
}
|
|
25886
|
+
}
|
|
25887
|
+
|
|
25888
|
+
// eslint-disable-next-line consistent-return
|
|
25889
|
+
function valueFromConfig2(a, b) {
|
|
25890
|
+
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
25891
|
+
return getMergedValue(undefined, b);
|
|
25892
|
+
}
|
|
25893
|
+
}
|
|
25894
|
+
|
|
25895
|
+
// eslint-disable-next-line consistent-return
|
|
25896
|
+
function defaultToConfig2(a, b) {
|
|
25897
|
+
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
25898
|
+
return getMergedValue(undefined, b);
|
|
25899
|
+
} else if (!_utils_js__rspack_import_1["default"].isUndefined(a)) {
|
|
25900
|
+
return getMergedValue(undefined, a);
|
|
25901
|
+
}
|
|
25902
|
+
}
|
|
25903
|
+
|
|
25904
|
+
function getMergedTransitionalOption(config1, config2, prop) {
|
|
25905
|
+
const transitional2 = _utils_js__rspack_import_1["default"].hasOwnProp(config2, 'transitional')
|
|
25906
|
+
? config2.transitional
|
|
25907
|
+
: undefined;
|
|
25908
|
+
|
|
25909
|
+
if (!_utils_js__rspack_import_1["default"].isUndefined(transitional2)) {
|
|
25910
|
+
if (_utils_js__rspack_import_1["default"].isPlainObject(transitional2)) {
|
|
25911
|
+
if (_utils_js__rspack_import_1["default"].hasOwnProp(transitional2, prop)) {
|
|
25912
|
+
return transitional2[prop];
|
|
25913
|
+
}
|
|
25914
|
+
} else {
|
|
25915
|
+
return undefined;
|
|
25916
|
+
}
|
|
25917
|
+
}
|
|
25918
|
+
|
|
25919
|
+
const transitional1 = _utils_js__rspack_import_1["default"].hasOwnProp(config1, 'transitional')
|
|
25920
|
+
? config1.transitional
|
|
25921
|
+
: undefined;
|
|
25922
|
+
|
|
25923
|
+
if (_utils_js__rspack_import_1["default"].isPlainObject(transitional1) && _utils_js__rspack_import_1["default"].hasOwnProp(transitional1, prop)) {
|
|
25924
|
+
return transitional1[prop];
|
|
25925
|
+
}
|
|
25926
|
+
|
|
25927
|
+
return undefined;
|
|
25928
|
+
}
|
|
25929
|
+
|
|
25930
|
+
// eslint-disable-next-line consistent-return
|
|
25931
|
+
function mergeDirectKeys(a, b, prop, config1, config2) {
|
|
25932
|
+
if (_utils_js__rspack_import_1["default"].hasOwnProp(config2, prop)) {
|
|
25933
|
+
return getMergedValue(a, b);
|
|
25934
|
+
} else if (_utils_js__rspack_import_1["default"].hasOwnProp(config1, prop)) {
|
|
25935
|
+
return getMergedValue(undefined, a);
|
|
25936
|
+
}
|
|
25937
|
+
}
|
|
25938
|
+
|
|
25939
|
+
function mergeHeaders(a, b, prop) {
|
|
25940
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
25941
|
+
}
|
|
25942
|
+
|
|
25943
|
+
// Null-proto, frozen descriptor so a polluted Object.prototype.get cannot turn
|
|
25944
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
25945
|
+
// defineProperty only reads it, so one shared instance serves every call.
|
|
25946
|
+
const hasOwnPropertyDescriptor = Object.freeze({
|
|
25947
|
+
__proto__: null,
|
|
25948
|
+
value: Object.prototype.hasOwnProperty,
|
|
25949
|
+
enumerable: false,
|
|
25950
|
+
writable: true,
|
|
25951
|
+
configurable: true,
|
|
25952
|
+
});
|
|
25953
|
+
|
|
25954
|
+
// The strategy table and the strategies above are stateless, so they are
|
|
25955
|
+
// built once at module load instead of on every call: mergeConfig runs at
|
|
25956
|
+
// most twice per request (once from a method alias, once from `_request`).
|
|
25957
|
+
const mergeMap = {
|
|
25958
|
+
url: valueFromConfig2,
|
|
25959
|
+
method: valueFromConfig2,
|
|
25960
|
+
data: valueFromConfig2,
|
|
25961
|
+
baseURL: defaultToConfig2,
|
|
25962
|
+
transformRequest: defaultToConfig2,
|
|
25963
|
+
transformResponse: defaultToConfig2,
|
|
25964
|
+
params: mergeParams,
|
|
25965
|
+
paramsSerializer: defaultToConfig2,
|
|
25966
|
+
timeout: defaultToConfig2,
|
|
25967
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
25968
|
+
withCredentials: defaultToConfig2,
|
|
25969
|
+
withXSRFToken: defaultToConfig2,
|
|
25970
|
+
adapter: defaultToConfig2,
|
|
25971
|
+
responseType: defaultToConfig2,
|
|
25972
|
+
xsrfCookieName: defaultToConfig2,
|
|
25973
|
+
xsrfHeaderName: defaultToConfig2,
|
|
25974
|
+
onUploadProgress: defaultToConfig2,
|
|
25975
|
+
onDownloadProgress: defaultToConfig2,
|
|
25976
|
+
decompress: defaultToConfig2,
|
|
25977
|
+
maxContentLength: defaultToConfig2,
|
|
25978
|
+
maxBodyLength: defaultToConfig2,
|
|
25979
|
+
beforeRedirect: defaultToConfig2,
|
|
25980
|
+
transport: defaultToConfig2,
|
|
25981
|
+
httpAgent: defaultToConfig2,
|
|
25982
|
+
httpsAgent: defaultToConfig2,
|
|
25983
|
+
cancelToken: defaultToConfig2,
|
|
25984
|
+
socketPath: defaultToConfig2,
|
|
25985
|
+
allowedSocketPaths: defaultToConfig2,
|
|
25986
|
+
responseEncoding: defaultToConfig2,
|
|
25987
|
+
validateStatus: mergeDirectKeys,
|
|
25988
|
+
headers: mergeHeaders,
|
|
25989
|
+
};
|
|
25990
|
+
|
|
25368
25991
|
/**
|
|
25369
25992
|
* Config-specific merge-function which creates a new config-object
|
|
25370
25993
|
* by merging two configuration objects together.
|
|
@@ -25384,133 +26007,25 @@ function mergeConfig(config1, config2) {
|
|
|
25384
26007
|
// `hasOwnProperty` is restored as a non-enumerable own slot to preserve
|
|
25385
26008
|
// ergonomics for user code that relies on it.
|
|
25386
26009
|
const config = Object.create(null);
|
|
25387
|
-
Object.defineProperty(config, 'hasOwnProperty',
|
|
25388
|
-
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
25389
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
25390
|
-
__proto__: null,
|
|
25391
|
-
value: Object.prototype.hasOwnProperty,
|
|
25392
|
-
enumerable: false,
|
|
25393
|
-
writable: true,
|
|
25394
|
-
configurable: true,
|
|
25395
|
-
});
|
|
25396
|
-
|
|
25397
|
-
function getMergedValue(target, source, prop, caseless) {
|
|
25398
|
-
if (_utils_js__rspack_import_1["default"].isPlainObject(target) && _utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
25399
|
-
return _utils_js__rspack_import_1["default"].merge.call({ caseless }, target, source);
|
|
25400
|
-
} else if (_utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
25401
|
-
return _utils_js__rspack_import_1["default"].merge({}, source);
|
|
25402
|
-
} else if (_utils_js__rspack_import_1["default"].isArray(source)) {
|
|
25403
|
-
return source.slice();
|
|
25404
|
-
}
|
|
25405
|
-
return source;
|
|
25406
|
-
}
|
|
26010
|
+
Object.defineProperty(config, 'hasOwnProperty', hasOwnPropertyDescriptor);
|
|
25407
26011
|
|
|
25408
|
-
|
|
25409
|
-
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
25410
|
-
return getMergedValue(a, b, prop, caseless);
|
|
25411
|
-
} else if (!_utils_js__rspack_import_1["default"].isUndefined(a)) {
|
|
25412
|
-
return getMergedValue(undefined, a, prop, caseless);
|
|
25413
|
-
}
|
|
25414
|
-
}
|
|
25415
|
-
|
|
25416
|
-
// eslint-disable-next-line consistent-return
|
|
25417
|
-
function valueFromConfig2(a, b) {
|
|
25418
|
-
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
25419
|
-
return getMergedValue(undefined, b);
|
|
25420
|
-
}
|
|
25421
|
-
}
|
|
26012
|
+
const keys = ownEnumerableKeys({ ...config1, ...config2 });
|
|
25422
26013
|
|
|
25423
|
-
|
|
25424
|
-
|
|
25425
|
-
if (
|
|
25426
|
-
return getMergedValue(undefined, b);
|
|
25427
|
-
} else if (!_utils_js__rspack_import_1["default"].isUndefined(a)) {
|
|
25428
|
-
return getMergedValue(undefined, a);
|
|
25429
|
-
}
|
|
25430
|
-
}
|
|
25431
|
-
|
|
25432
|
-
function getMergedTransitionalOption(prop) {
|
|
25433
|
-
const transitional2 = _utils_js__rspack_import_1["default"].hasOwnProp(config2, 'transitional')
|
|
25434
|
-
? config2.transitional
|
|
25435
|
-
: undefined;
|
|
25436
|
-
|
|
25437
|
-
if (!_utils_js__rspack_import_1["default"].isUndefined(transitional2)) {
|
|
25438
|
-
if (_utils_js__rspack_import_1["default"].isPlainObject(transitional2)) {
|
|
25439
|
-
if (_utils_js__rspack_import_1["default"].hasOwnProp(transitional2, prop)) {
|
|
25440
|
-
return transitional2[prop];
|
|
25441
|
-
}
|
|
25442
|
-
} else {
|
|
25443
|
-
return undefined;
|
|
25444
|
-
}
|
|
25445
|
-
}
|
|
25446
|
-
|
|
25447
|
-
const transitional1 = _utils_js__rspack_import_1["default"].hasOwnProp(config1, 'transitional')
|
|
25448
|
-
? config1.transitional
|
|
25449
|
-
: undefined;
|
|
25450
|
-
|
|
25451
|
-
if (_utils_js__rspack_import_1["default"].isPlainObject(transitional1) && _utils_js__rspack_import_1["default"].hasOwnProp(transitional1, prop)) {
|
|
25452
|
-
return transitional1[prop];
|
|
25453
|
-
}
|
|
25454
|
-
|
|
25455
|
-
return undefined;
|
|
25456
|
-
}
|
|
25457
|
-
|
|
25458
|
-
// eslint-disable-next-line consistent-return
|
|
25459
|
-
function mergeDirectKeys(a, b, prop) {
|
|
25460
|
-
if (_utils_js__rspack_import_1["default"].hasOwnProp(config2, prop)) {
|
|
25461
|
-
return getMergedValue(a, b);
|
|
25462
|
-
} else if (_utils_js__rspack_import_1["default"].hasOwnProp(config1, prop)) {
|
|
25463
|
-
return getMergedValue(undefined, a);
|
|
25464
|
-
}
|
|
25465
|
-
}
|
|
25466
|
-
|
|
25467
|
-
const mergeMap = {
|
|
25468
|
-
url: valueFromConfig2,
|
|
25469
|
-
method: valueFromConfig2,
|
|
25470
|
-
data: valueFromConfig2,
|
|
25471
|
-
baseURL: defaultToConfig2,
|
|
25472
|
-
transformRequest: defaultToConfig2,
|
|
25473
|
-
transformResponse: defaultToConfig2,
|
|
25474
|
-
paramsSerializer: defaultToConfig2,
|
|
25475
|
-
timeout: defaultToConfig2,
|
|
25476
|
-
timeoutErrorMessage: defaultToConfig2,
|
|
25477
|
-
withCredentials: defaultToConfig2,
|
|
25478
|
-
withXSRFToken: defaultToConfig2,
|
|
25479
|
-
adapter: defaultToConfig2,
|
|
25480
|
-
responseType: defaultToConfig2,
|
|
25481
|
-
xsrfCookieName: defaultToConfig2,
|
|
25482
|
-
xsrfHeaderName: defaultToConfig2,
|
|
25483
|
-
onUploadProgress: defaultToConfig2,
|
|
25484
|
-
onDownloadProgress: defaultToConfig2,
|
|
25485
|
-
decompress: defaultToConfig2,
|
|
25486
|
-
maxContentLength: defaultToConfig2,
|
|
25487
|
-
maxBodyLength: defaultToConfig2,
|
|
25488
|
-
beforeRedirect: defaultToConfig2,
|
|
25489
|
-
transport: defaultToConfig2,
|
|
25490
|
-
httpAgent: defaultToConfig2,
|
|
25491
|
-
httpsAgent: defaultToConfig2,
|
|
25492
|
-
cancelToken: defaultToConfig2,
|
|
25493
|
-
socketPath: defaultToConfig2,
|
|
25494
|
-
allowedSocketPaths: defaultToConfig2,
|
|
25495
|
-
responseEncoding: defaultToConfig2,
|
|
25496
|
-
validateStatus: mergeDirectKeys,
|
|
25497
|
-
headers: (a, b, prop) =>
|
|
25498
|
-
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
25499
|
-
};
|
|
25500
|
-
|
|
25501
|
-
_utils_js__rspack_import_1["default"].forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
25502
|
-
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
|
26014
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
26015
|
+
const prop = keys[i];
|
|
26016
|
+
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') continue;
|
|
25503
26017
|
const merge = _utils_js__rspack_import_1["default"].hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
25504
26018
|
const a = _utils_js__rspack_import_1["default"].hasOwnProp(config1, prop) ? config1[prop] : undefined;
|
|
25505
26019
|
const b = _utils_js__rspack_import_1["default"].hasOwnProp(config2, prop) ? config2[prop] : undefined;
|
|
25506
|
-
const configValue =
|
|
26020
|
+
const configValue =
|
|
26021
|
+
merge === mergeDirectKeys ? merge(a, b, prop, config1, config2) : merge(a, b, prop);
|
|
25507
26022
|
(_utils_js__rspack_import_1["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
25508
|
-
}
|
|
26023
|
+
}
|
|
25509
26024
|
|
|
25510
26025
|
if (
|
|
25511
26026
|
_utils_js__rspack_import_1["default"].hasOwnProp(config2, 'validateStatus') &&
|
|
25512
26027
|
_utils_js__rspack_import_1["default"].isUndefined(config2.validateStatus) &&
|
|
25513
|
-
getMergedTransitionalOption('validateStatusUndefinedResolves') === false
|
|
26028
|
+
getMergedTransitionalOption(config1, config2, 'validateStatusUndefinedResolves') === false
|
|
25514
26029
|
) {
|
|
25515
26030
|
if (_utils_js__rspack_import_1["default"].hasOwnProp(config1, 'validateStatus')) {
|
|
25516
26031
|
config.validateStatus = getMergedValue(undefined, config1.validateStatus);
|
|
@@ -25871,6 +26386,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25871
26386
|
legacyInterceptorReqResOrdering: true,
|
|
25872
26387
|
advertiseZstdAcceptEncoding: false,
|
|
25873
26388
|
validateStatusUndefinedResolves: true,
|
|
26389
|
+
encodeBasicAuthUsername: false,
|
|
25874
26390
|
});
|
|
25875
26391
|
|
|
25876
26392
|
|
|
@@ -25878,7 +26394,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25878
26394
|
"f6"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25879
26395
|
"use strict";
|
|
25880
26396
|
__webpack_require__.r(__webpack_exports__);
|
|
25881
|
-
const VERSION = "1.
|
|
26397
|
+
const VERSION = "1.21.1";
|
|
25882
26398
|
__webpack_require__.d(__webpack_exports__, {
|
|
25883
26399
|
}, {
|
|
25884
26400
|
VERSION: VERSION
|
|
@@ -26227,12 +26743,15 @@ const composeSignals = (signals, timeout) => {
|
|
|
26227
26743
|
}, timeout);
|
|
26228
26744
|
|
|
26229
26745
|
const unsubscribe = () => {
|
|
26230
|
-
if (!signals) {
|
|
26746
|
+
if (!signals) {
|
|
26747
|
+
return;
|
|
26748
|
+
}
|
|
26231
26749
|
timer && clearTimeout(timer);
|
|
26232
26750
|
timer = null;
|
|
26233
26751
|
signals.forEach((signal) => {
|
|
26234
|
-
signal
|
|
26235
|
-
|
|
26752
|
+
const unsubscribeSignal = _utils_js__rspack_import_2["default"].getSafeProp(signal, 'unsubscribe');
|
|
26753
|
+
_utils_js__rspack_import_2["default"].isFunction(unsubscribeSignal)
|
|
26754
|
+
? unsubscribeSignal.call(signal, onabort)
|
|
26236
26755
|
: signal.removeEventListener('abort', onabort);
|
|
26237
26756
|
});
|
|
26238
26757
|
signals = null;
|
|
@@ -26270,6 +26789,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26270
26789
|
|
|
26271
26790
|
|
|
26272
26791
|
|
|
26792
|
+
const decodeCookieValue = (value) => {
|
|
26793
|
+
try {
|
|
26794
|
+
return decodeURIComponent(value);
|
|
26795
|
+
} catch (e) {
|
|
26796
|
+
return value;
|
|
26797
|
+
}
|
|
26798
|
+
};
|
|
26799
|
+
|
|
26273
26800
|
/* export default */ __webpack_exports__["default"] = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv
|
|
26274
26801
|
? // Standard browser envs support document.cookie
|
|
26275
26802
|
{
|
|
@@ -26299,26 +26826,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26299
26826
|
|
|
26300
26827
|
read(name) {
|
|
26301
26828
|
if (typeof document === 'undefined') return null;
|
|
26829
|
+
const cookieString = document.cookie;
|
|
26830
|
+
if (!cookieString) return null;
|
|
26302
26831
|
// Match name=value by splitting on the semicolon separator instead of building a
|
|
26303
26832
|
// RegExp from `name` — interpolating an unescaped string into a RegExp would let
|
|
26304
26833
|
// metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
|
|
26305
26834
|
// match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
|
|
26306
26835
|
// "; ", so ignore optional whitespace before each cookie name.
|
|
26307
|
-
const cookies =
|
|
26836
|
+
const cookies = cookieString.split(';');
|
|
26308
26837
|
for (let i = 0; i < cookies.length; i++) {
|
|
26309
26838
|
const cookie = cookies[i].replace(/^\s+/, '');
|
|
26310
26839
|
const eq = cookie.indexOf('=');
|
|
26311
26840
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
26312
|
-
|
|
26313
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
26314
|
-
} catch (e) {
|
|
26315
|
-
return cookie.slice(eq + 1);
|
|
26316
|
-
}
|
|
26841
|
+
return decodeCookieValue(cookie.slice(eq + 1));
|
|
26317
26842
|
}
|
|
26318
26843
|
}
|
|
26319
26844
|
return null;
|
|
26320
26845
|
},
|
|
26321
26846
|
|
|
26847
|
+
async readAsync(name) {
|
|
26848
|
+
try {
|
|
26849
|
+
const store = typeof window !== 'undefined' && window.cookieStore;
|
|
26850
|
+
if (store && _utils_js__rspack_import_1["default"].isFunction(store.get)) {
|
|
26851
|
+
const cookie = await store.get(name);
|
|
26852
|
+
// Both APIs expose stored bytes; preserve Axios's existing URI decoding.
|
|
26853
|
+
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
26854
|
+
}
|
|
26855
|
+
} catch (e) {
|
|
26856
|
+
// Restricted or unavailable storage retains the synchronous fallback.
|
|
26857
|
+
}
|
|
26858
|
+
|
|
26859
|
+
return this.read(name);
|
|
26860
|
+
},
|
|
26861
|
+
|
|
26322
26862
|
remove(name) {
|
|
26323
26863
|
this.write(name, '', Date.now() - 86400000, '/');
|
|
26324
26864
|
},
|
|
@@ -26329,6 +26869,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26329
26869
|
read() {
|
|
26330
26870
|
return null;
|
|
26331
26871
|
},
|
|
26872
|
+
async readAsync() {
|
|
26873
|
+
return null;
|
|
26874
|
+
},
|
|
26332
26875
|
remove() {},
|
|
26333
26876
|
});
|
|
26334
26877
|
|
|
@@ -26341,7 +26884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26341
26884
|
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
26342
26885
|
* - Fetch percent-decodes a base64 body before decoding it.
|
|
26343
26886
|
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
26344
|
-
*
|
|
26887
|
+
* percent-decoded body, including ignored characters and content after padding.
|
|
26345
26888
|
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
26346
26889
|
*/
|
|
26347
26890
|
const isHexDigit = (charCode) =>
|
|
@@ -26389,6 +26932,31 @@ const estimateBase64BufferAllocation = (body) => {
|
|
|
26389
26932
|
return Math.floor(((len - padding) * 3) / 4);
|
|
26390
26933
|
};
|
|
26391
26934
|
|
|
26935
|
+
const estimatePercentDecodedBase64BufferAllocation = (body) => {
|
|
26936
|
+
// Ordinary Base64 needs only its length and trailing padding.
|
|
26937
|
+
if (body.indexOf('%') === -1) {
|
|
26938
|
+
return estimateBase64BufferAllocation(body);
|
|
26939
|
+
}
|
|
26940
|
+
|
|
26941
|
+
let length = 0;
|
|
26942
|
+
let previous = 0;
|
|
26943
|
+
let last = 0;
|
|
26944
|
+
|
|
26945
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
26946
|
+
let code = body.charCodeAt(i);
|
|
26947
|
+
if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
|
|
26948
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
26949
|
+
i += 2;
|
|
26950
|
+
}
|
|
26951
|
+
length++;
|
|
26952
|
+
previous = last;
|
|
26953
|
+
last = code;
|
|
26954
|
+
}
|
|
26955
|
+
|
|
26956
|
+
const padding = last === 61 ? (previous === 61 ? 2 : 1) : 0;
|
|
26957
|
+
return Math.floor(((length - padding) * 3) / 4);
|
|
26958
|
+
};
|
|
26959
|
+
|
|
26392
26960
|
const estimatePercentDecodedBase64Bytes = (body) => {
|
|
26393
26961
|
const len = body.length;
|
|
26394
26962
|
let significant = 0;
|
|
@@ -26434,16 +27002,16 @@ const estimatePercentDecodedBase64Bytes = (body) => {
|
|
|
26434
27002
|
return base64Bytes(significant);
|
|
26435
27003
|
};
|
|
26436
27004
|
|
|
26437
|
-
const estimateDataURLBytes = (url, estimateBase64) => {
|
|
27005
|
+
const estimateDataURLBytes = (url, estimateBase64, base64Pattern) => {
|
|
26438
27006
|
if (!url || typeof url !== 'string') return 0;
|
|
26439
|
-
if (
|
|
27007
|
+
if (!/^data:/i.test(url)) return 0;
|
|
26440
27008
|
|
|
26441
27009
|
const comma = url.indexOf(',');
|
|
26442
27010
|
if (comma < 0) return 0;
|
|
26443
27011
|
|
|
26444
27012
|
const meta = url.slice(5, comma);
|
|
26445
27013
|
const body = url.slice(comma + 1);
|
|
26446
|
-
const isBase64 =
|
|
27014
|
+
const isBase64 = base64Pattern.test(meta);
|
|
26447
27015
|
|
|
26448
27016
|
if (isBase64) {
|
|
26449
27017
|
return estimateBase64(body);
|
|
@@ -26490,18 +27058,20 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
26490
27058
|
|
|
26491
27059
|
return estimateDataURLBytes(
|
|
26492
27060
|
fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
|
|
26493
|
-
estimatePercentDecodedBase64Bytes
|
|
27061
|
+
estimatePercentDecodedBase64Bytes,
|
|
27062
|
+
/; *base64[\t\n\f\r ]*$/i
|
|
26494
27063
|
);
|
|
26495
27064
|
}
|
|
26496
27065
|
|
|
26497
27066
|
/**
|
|
26498
|
-
* Estimate the Buffer backing allocation used
|
|
27067
|
+
* Estimate the Buffer backing allocation used after Node's percent-decoding step.
|
|
26499
27068
|
*
|
|
26500
27069
|
* @param {string} url
|
|
26501
27070
|
* @returns {number}
|
|
26502
27071
|
*/
|
|
26503
27072
|
function estimateDataURLBufferAllocation(url) {
|
|
26504
|
-
|
|
27073
|
+
// Match fromDataURI's case-insensitive protocol and encoding suffix.
|
|
27074
|
+
return estimateDataURLBytes(url, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
|
|
26505
27075
|
}
|
|
26506
27076
|
|
|
26507
27077
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -26510,6 +27080,131 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
26510
27080
|
});
|
|
26511
27081
|
|
|
26512
27082
|
|
|
27083
|
+
},
|
|
27084
|
+
"D"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
27085
|
+
"use strict";
|
|
27086
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27087
|
+
/* import */ var _utils_js__rspack_import_0 = __webpack_require__("Kv");
|
|
27088
|
+
|
|
27089
|
+
|
|
27090
|
+
const CRLF = '\r\n';
|
|
27091
|
+
const normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF);
|
|
27092
|
+
const escapeName = (value) =>
|
|
27093
|
+
String(value).replace(/[\r\n"]/g, (char) =>
|
|
27094
|
+
char === '\r' ? '%0D' : char === '\n' ? '%0A' : '%22'
|
|
27095
|
+
);
|
|
27096
|
+
|
|
27097
|
+
// Count UTF-8 bytes without allocating an encoded copy of a field. FormData
|
|
27098
|
+
// string values normalize line endings; Blob/File contents remain unchanged.
|
|
27099
|
+
const stringBytes = (value, normalize) => {
|
|
27100
|
+
let length = 0;
|
|
27101
|
+
for (let i = 0; i < value.length; i++) {
|
|
27102
|
+
const code = value.charCodeAt(i);
|
|
27103
|
+
if (normalize && (code === 13 || code === 10)) {
|
|
27104
|
+
if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
|
|
27105
|
+
length += 2;
|
|
27106
|
+
} else if (code < 0x80) {
|
|
27107
|
+
length++;
|
|
27108
|
+
} else if (code < 0x800) {
|
|
27109
|
+
length += 2;
|
|
27110
|
+
} else if (
|
|
27111
|
+
code >= 0xd800 &&
|
|
27112
|
+
code <= 0xdbff &&
|
|
27113
|
+
value.charCodeAt(i + 1) >= 0xdc00 &&
|
|
27114
|
+
value.charCodeAt(i + 1) <= 0xdfff
|
|
27115
|
+
) {
|
|
27116
|
+
length += 4;
|
|
27117
|
+
i++;
|
|
27118
|
+
} else {
|
|
27119
|
+
length += 3;
|
|
27120
|
+
}
|
|
27121
|
+
}
|
|
27122
|
+
return length;
|
|
27123
|
+
};
|
|
27124
|
+
|
|
27125
|
+
// Describe serialization failures independently of any request library.
|
|
27126
|
+
class FormDataError extends TypeError {
|
|
27127
|
+
constructor(message, reason) {
|
|
27128
|
+
super(message);
|
|
27129
|
+
this.name = 'FormDataError';
|
|
27130
|
+
this.reason = reason;
|
|
27131
|
+
}
|
|
27132
|
+
}
|
|
27133
|
+
|
|
27134
|
+
// The caller supplies the boundary, Blob implementation, and limit error.
|
|
27135
|
+
function formDataToBlob(form, Blob, limit, limitError, boundary) {
|
|
27136
|
+
if (!_utils_js__rspack_import_0["default"].isFunction(Blob)) {
|
|
27137
|
+
throw new FormDataError('Blob is not supported', 'blob');
|
|
27138
|
+
}
|
|
27139
|
+
|
|
27140
|
+
if (
|
|
27141
|
+
!_utils_js__rspack_import_0["default"].isString(boundary) ||
|
|
27142
|
+
!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) ||
|
|
27143
|
+
/ $/.test(boundary)
|
|
27144
|
+
) {
|
|
27145
|
+
throw new FormDataError('Invalid multipart boundary', 'boundary');
|
|
27146
|
+
}
|
|
27147
|
+
const footer = '--' + boundary + '--' + CRLF;
|
|
27148
|
+
let length = footer.length;
|
|
27149
|
+
const parts = [];
|
|
27150
|
+
const checkLength = (extra) => {
|
|
27151
|
+
if (length + extra > limit) throw limitError();
|
|
27152
|
+
};
|
|
27153
|
+
checkLength(0);
|
|
27154
|
+
|
|
27155
|
+
for (const [name, value] of form) {
|
|
27156
|
+
const isString = _utils_js__rspack_import_0["default"].isString(value);
|
|
27157
|
+
const valueLength = isString ? stringBytes(value, true) : value.size;
|
|
27158
|
+
if (!Number.isFinite(valueLength) || valueLength < 0) {
|
|
27159
|
+
throw new FormDataError('Unsupported FormData part size', 'part');
|
|
27160
|
+
}
|
|
27161
|
+
// Reject large values and names before building normalized header strings.
|
|
27162
|
+
checkLength(
|
|
27163
|
+
valueLength +
|
|
27164
|
+
stringBytes(name, true) +
|
|
27165
|
+
(!isString && value.name ? stringBytes(value.name, false) : 0) +
|
|
27166
|
+
(!isString && value.type ? stringBytes(value.type, false) : 0)
|
|
27167
|
+
);
|
|
27168
|
+
|
|
27169
|
+
let header =
|
|
27170
|
+
'--' +
|
|
27171
|
+
boundary +
|
|
27172
|
+
CRLF +
|
|
27173
|
+
'Content-Disposition: form-data; name="' +
|
|
27174
|
+
escapeName(normalizeLines(name)) +
|
|
27175
|
+
'"';
|
|
27176
|
+
if (!isString) {
|
|
27177
|
+
header +=
|
|
27178
|
+
'; filename="' +
|
|
27179
|
+
escapeName(_utils_js__rspack_import_0["default"].isString(value.name) ? value.name : 'blob') +
|
|
27180
|
+
'"' +
|
|
27181
|
+
CRLF +
|
|
27182
|
+
'Content-Type: ' +
|
|
27183
|
+
String(value.type || 'application/octet-stream').replace(/[\r\n]/g, '');
|
|
27184
|
+
}
|
|
27185
|
+
header += CRLF + CRLF;
|
|
27186
|
+
const partLength = stringBytes(header, false) + valueLength + CRLF.length;
|
|
27187
|
+
checkLength(partLength);
|
|
27188
|
+
length += partLength;
|
|
27189
|
+
parts.push({ header, value, isString });
|
|
27190
|
+
}
|
|
27191
|
+
|
|
27192
|
+
// Native Blob composition retains existing Blob/File data. No file is read
|
|
27193
|
+
// and no complete multipart ArrayBuffer is created to determine its length.
|
|
27194
|
+
const blobParts = [];
|
|
27195
|
+
for (const part of parts) {
|
|
27196
|
+
blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF);
|
|
27197
|
+
}
|
|
27198
|
+
blobParts.push(footer);
|
|
27199
|
+
return new Blob(blobParts, { type: 'multipart/form-data; boundary=' + boundary });
|
|
27200
|
+
}
|
|
27201
|
+
|
|
27202
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27203
|
+
FormDataError: () => (FormDataError),
|
|
27204
|
+
"default": () => (formDataToBlob)
|
|
27205
|
+
});
|
|
27206
|
+
|
|
27207
|
+
|
|
26513
27208
|
},
|
|
26514
27209
|
"Cj"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
26515
27210
|
"use strict";
|
|
@@ -26584,6 +27279,29 @@ function arrayToObject(arr) {
|
|
|
26584
27279
|
return obj;
|
|
26585
27280
|
}
|
|
26586
27281
|
|
|
27282
|
+
function normalizeArray(value) {
|
|
27283
|
+
if (!_utils_js__rspack_import_2["default"].isArray(value)) return value;
|
|
27284
|
+
|
|
27285
|
+
const keys = Object.keys(value);
|
|
27286
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index))
|
|
27287
|
+
? arrayToObject(value)
|
|
27288
|
+
: value;
|
|
27289
|
+
}
|
|
27290
|
+
|
|
27291
|
+
function normalizeArrays(obj) {
|
|
27292
|
+
const pending = [obj];
|
|
27293
|
+
while (pending.length) {
|
|
27294
|
+
const target = pending.pop();
|
|
27295
|
+
Object.keys(target).forEach((key) => {
|
|
27296
|
+
const value = (target[key] = normalizeArray(target[key]));
|
|
27297
|
+
if (_utils_js__rspack_import_2["default"].isArray(value) || _utils_js__rspack_import_2["default"].isPlainObject(value)) {
|
|
27298
|
+
pending.push(value);
|
|
27299
|
+
}
|
|
27300
|
+
});
|
|
27301
|
+
}
|
|
27302
|
+
return obj;
|
|
27303
|
+
}
|
|
27304
|
+
|
|
26587
27305
|
/**
|
|
26588
27306
|
* It takes a FormData object and returns a JavaScript object
|
|
26589
27307
|
*
|
|
@@ -26605,6 +27323,7 @@ function formDataToJSON(formData) {
|
|
|
26605
27323
|
|
|
26606
27324
|
if (isLast) {
|
|
26607
27325
|
if (_utils_js__rspack_import_2["default"].hasOwnProp(target, name)) {
|
|
27326
|
+
target[name] = normalizeArray(target[name]);
|
|
26608
27327
|
target[name] = _utils_js__rspack_import_2["default"].isArray(target[name])
|
|
26609
27328
|
? target[name].concat(value)
|
|
26610
27329
|
: [target[name], value];
|
|
@@ -26635,7 +27354,7 @@ function formDataToJSON(formData) {
|
|
|
26635
27354
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
26636
27355
|
});
|
|
26637
27356
|
|
|
26638
|
-
return obj;
|
|
27357
|
+
return normalizeArrays(obj);
|
|
26639
27358
|
}
|
|
26640
27359
|
|
|
26641
27360
|
return null;
|
|
@@ -26706,18 +27425,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26706
27425
|
|
|
26707
27426
|
|
|
26708
27427
|
/* export default */ __webpack_exports__["default"] = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv
|
|
26709
|
-
? ((origin
|
|
26710
|
-
url = new URL(url, _platform_index_js__rspack_import_0["default"].origin);
|
|
27428
|
+
? ((origin) => (url) => {
|
|
27429
|
+
url = new URL(url, document.baseURI || _platform_index_js__rspack_import_0["default"].origin);
|
|
26711
27430
|
|
|
26712
27431
|
return (
|
|
26713
|
-
origin.protocol === url.protocol &&
|
|
26714
|
-
origin.host === url.host &&
|
|
26715
|
-
(isMSIE || origin.port === url.port)
|
|
27432
|
+
origin.protocol === url.protocol && origin.host === url.host && origin.port === url.port
|
|
26716
27433
|
);
|
|
26717
|
-
})(
|
|
26718
|
-
new URL(_platform_index_js__rspack_import_0["default"].origin),
|
|
26719
|
-
_platform_index_js__rspack_import_0["default"].navigator && /(msie|trident)/i.test(_platform_index_js__rspack_import_0["default"].navigator.userAgent)
|
|
26720
|
-
)
|
|
27434
|
+
})(new URL(_platform_index_js__rspack_import_0["default"].origin))
|
|
26721
27435
|
: () => true);
|
|
26722
27436
|
|
|
26723
27437
|
|
|
@@ -26809,7 +27523,8 @@ const ignoreDuplicateOf = _utils_js__rspack_import_0["default"].toObjectSet([
|
|
|
26809
27523
|
* @returns {Object} Headers parsed into an object
|
|
26810
27524
|
*/
|
|
26811
27525
|
/* export default */ __webpack_exports__["default"] = ((rawHeaders) => {
|
|
26812
|
-
|
|
27526
|
+
// Header names are data, including __proto__; avoid inherited setters.
|
|
27527
|
+
const parsed = Object.create(null);
|
|
26813
27528
|
let key;
|
|
26814
27529
|
let val;
|
|
26815
27530
|
let i;
|
|
@@ -26849,7 +27564,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26849
27564
|
|
|
26850
27565
|
function parseProtocol(url) {
|
|
26851
27566
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
26852
|
-
return (match && match[1]) || '';
|
|
27567
|
+
return (match && match[1].toLowerCase()) || '';
|
|
26853
27568
|
}
|
|
26854
27569
|
|
|
26855
27570
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -26931,16 +27646,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
26931
27646
|
"t"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
26932
27647
|
"use strict";
|
|
26933
27648
|
__webpack_require__.r(__webpack_exports__);
|
|
26934
|
-
/* import */ var
|
|
26935
|
-
/* import */ var
|
|
26936
|
-
/* import */ var
|
|
26937
|
-
/* import */ var
|
|
26938
|
-
/* import */ var
|
|
26939
|
-
/* import */ var
|
|
26940
|
-
/* import */ var
|
|
26941
|
-
/* import */ var
|
|
26942
|
-
/* import */ var
|
|
26943
|
-
/* import */ var
|
|
27649
|
+
/* import */ var _platform_index_js__rspack_import_7 = __webpack_require__("nF");
|
|
27650
|
+
/* import */ var _utils_js__rspack_import_2 = __webpack_require__("Kv");
|
|
27651
|
+
/* import */ var _core_AxiosError_js__rspack_import_6 = __webpack_require__("f");
|
|
27652
|
+
/* import */ var _isURLSameOrigin_js__rspack_import_9 = __webpack_require__("uS");
|
|
27653
|
+
/* import */ var _cookies_js__rspack_import_0 = __webpack_require__("jD");
|
|
27654
|
+
/* import */ var _core_buildFullPath_js__rspack_import_5 = __webpack_require__("zE");
|
|
27655
|
+
/* import */ var _core_mergeConfig_js__rspack_import_1 = __webpack_require__("yf");
|
|
27656
|
+
/* import */ var _core_AxiosHeaders_js__rspack_import_3 = __webpack_require__("Z");
|
|
27657
|
+
/* import */ var _core_setFormDataHeaders_js__rspack_import_8 = __webpack_require__("p8");
|
|
27658
|
+
/* import */ var _buildURL_js__rspack_import_4 = __webpack_require__("Tw");
|
|
26944
27659
|
|
|
26945
27660
|
|
|
26946
27661
|
|
|
@@ -26965,12 +27680,14 @@ const encodeUTF8 = (str) =>
|
|
|
26965
27680
|
String.fromCharCode(parseInt(hex, 16))
|
|
26966
27681
|
);
|
|
26967
27682
|
|
|
26968
|
-
|
|
26969
|
-
|
|
27683
|
+
const readCookie = (name) => _cookies_js__rspack_import_0["default"].read(name);
|
|
27684
|
+
|
|
27685
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
27686
|
+
const newConfig = (0,_core_mergeConfig_js__rspack_import_1["default"])({}, config);
|
|
26970
27687
|
|
|
26971
27688
|
// Read only own properties to prevent prototype pollution gadgets
|
|
26972
27689
|
// (e.g. Object.prototype.baseURL = 'https://evil.com').
|
|
26973
|
-
const own = (key) => (
|
|
27690
|
+
const own = (key) => (_utils_js__rspack_import_2["default"].hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
|
|
26974
27691
|
|
|
26975
27692
|
const data = own('data');
|
|
26976
27693
|
let withXSRFToken = own('withXSRFToken');
|
|
@@ -26982,41 +27699,52 @@ function resolveConfig(config) {
|
|
|
26982
27699
|
const allowAbsoluteUrls = own('allowAbsoluteUrls');
|
|
26983
27700
|
const url = own('url');
|
|
26984
27701
|
|
|
26985
|
-
newConfig.headers = headers =
|
|
27702
|
+
newConfig.headers = headers = _core_AxiosHeaders_js__rspack_import_3["default"].from(headers);
|
|
26986
27703
|
|
|
26987
|
-
newConfig.url = (0,
|
|
26988
|
-
(0,
|
|
27704
|
+
newConfig.url = (0,_buildURL_js__rspack_import_4["default"])(
|
|
27705
|
+
(0,_core_buildFullPath_js__rspack_import_5["default"])(baseURL, url, allowAbsoluteUrls, newConfig),
|
|
26989
27706
|
own('params'),
|
|
26990
27707
|
own('paramsSerializer')
|
|
26991
27708
|
);
|
|
26992
27709
|
|
|
26993
27710
|
// HTTP basic authentication
|
|
26994
27711
|
if (auth) {
|
|
26995
|
-
const username =
|
|
26996
|
-
const password =
|
|
27712
|
+
const username = _utils_js__rspack_import_2["default"].getSafeProp(auth, 'username') || '';
|
|
27713
|
+
const password = _utils_js__rspack_import_2["default"].getSafeProp(auth, 'password') || '';
|
|
27714
|
+
const transitional = own('transitional');
|
|
27715
|
+
const encodeUsername =
|
|
27716
|
+
transitional &&
|
|
27717
|
+
_utils_js__rspack_import_2["default"].hasOwnProp(transitional, 'encodeBasicAuthUsername') &&
|
|
27718
|
+
transitional.encodeBasicAuthUsername === true;
|
|
26997
27719
|
|
|
26998
27720
|
try {
|
|
26999
27721
|
headers.set(
|
|
27000
27722
|
'Authorization',
|
|
27001
|
-
|
|
27723
|
+
// Preserve legacy username bytes unless the caller opts in to UTF-8.
|
|
27724
|
+
'Basic ' +
|
|
27725
|
+
btoa(
|
|
27726
|
+
(encodeUsername ? encodeUTF8(username) : username) +
|
|
27727
|
+
':' +
|
|
27728
|
+
(password ? encodeUTF8(password) : '')
|
|
27729
|
+
)
|
|
27002
27730
|
);
|
|
27003
27731
|
} catch (e) {
|
|
27004
|
-
throw
|
|
27732
|
+
throw _core_AxiosError_js__rspack_import_6["default"].from(e, _core_AxiosError_js__rspack_import_6["default"].ERR_BAD_OPTION_VALUE, config);
|
|
27005
27733
|
}
|
|
27006
27734
|
}
|
|
27007
27735
|
|
|
27008
|
-
if (
|
|
27009
|
-
const getHeaders =
|
|
27736
|
+
if (_utils_js__rspack_import_2["default"].isFormData(data)) {
|
|
27737
|
+
const getHeaders = _utils_js__rspack_import_2["default"].getSafeProp(data, 'getHeaders');
|
|
27010
27738
|
|
|
27011
27739
|
if (
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27740
|
+
_platform_index_js__rspack_import_7["default"].hasStandardBrowserEnv ||
|
|
27741
|
+
_platform_index_js__rspack_import_7["default"].hasStandardBrowserWebWorkerEnv ||
|
|
27742
|
+
_utils_js__rspack_import_2["default"].isReactNative(data)
|
|
27015
27743
|
) {
|
|
27016
27744
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
27017
|
-
} else if (
|
|
27745
|
+
} else if (_utils_js__rspack_import_2["default"].isFunction(getHeaders)) {
|
|
27018
27746
|
// Node.js FormData (like form-data package)
|
|
27019
|
-
(0,
|
|
27747
|
+
(0,_core_setFormDataHeaders_js__rspack_import_8["default"])(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
27020
27748
|
}
|
|
27021
27749
|
}
|
|
27022
27750
|
|
|
@@ -27024,8 +27752,8 @@ function resolveConfig(config) {
|
|
|
27024
27752
|
// This is only done if running in a standard browser environment.
|
|
27025
27753
|
// Specifically not if we're in a web worker, or react-native.
|
|
27026
27754
|
|
|
27027
|
-
if (
|
|
27028
|
-
if (
|
|
27755
|
+
if (_platform_index_js__rspack_import_7["default"].hasStandardBrowserEnv) {
|
|
27756
|
+
if (_utils_js__rspack_import_2["default"].isFunction(withXSRFToken)) {
|
|
27029
27757
|
withXSRFToken = withXSRFToken(newConfig);
|
|
27030
27758
|
}
|
|
27031
27759
|
|
|
@@ -27033,10 +27761,10 @@ function resolveConfig(config) {
|
|
|
27033
27761
|
// and misconfigurations (e.g. "false") from short-circuiting the same-origin check and leaking
|
|
27034
27762
|
// the XSRF token cross-origin.
|
|
27035
27763
|
const shouldSendXSRF =
|
|
27036
|
-
withXSRFToken === true || (withXSRFToken == null && (0,
|
|
27764
|
+
withXSRFToken === true || (withXSRFToken == null && (0,_isURLSameOrigin_js__rspack_import_9["default"])(newConfig.url));
|
|
27037
27765
|
|
|
27038
27766
|
if (shouldSendXSRF) {
|
|
27039
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
27767
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
27040
27768
|
|
|
27041
27769
|
if (xsrfValue) {
|
|
27042
27770
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -28269,11 +28997,17 @@ const isPlainObject = (val) => {
|
|
|
28269
28997
|
const prototype = getPrototypeOf(val);
|
|
28270
28998
|
return (
|
|
28271
28999
|
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
28272
|
-
// Treat
|
|
28273
|
-
//
|
|
28274
|
-
//
|
|
28275
|
-
|
|
28276
|
-
|
|
29000
|
+
// Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
|
|
29001
|
+
// value is tagged/iterable, ignoring members reachable only through shared
|
|
29002
|
+
// or terminal prototype boundaries. This is exactly what
|
|
29003
|
+
// hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
|
|
29004
|
+
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
29005
|
+
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
29006
|
+
// and stops before even those when `val` is itself the boundary
|
|
29007
|
+
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
29008
|
+
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
29009
|
+
(isPrototypeBoundary(val, prototype, true) ||
|
|
29010
|
+
(!hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator)))
|
|
28277
29011
|
);
|
|
28278
29012
|
};
|
|
28279
29013
|
|
|
@@ -28537,15 +29271,30 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
28537
29271
|
function merge(...objs) {
|
|
28538
29272
|
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
28539
29273
|
const result = {};
|
|
29274
|
+
// Caseless lookup only applies to string keys — symbol keys are
|
|
29275
|
+
// identity-matched. Every string key that reaches `result` passes through
|
|
29276
|
+
// this index first, so it can never hold two case variants of one key and a
|
|
29277
|
+
// lowercase -> key map is exactly what findKey(result, key) would rescan
|
|
29278
|
+
// Object.keys(result) for on each assignment.
|
|
29279
|
+
const lowerCaseKeys = caseless ? Object.create(null) : null;
|
|
28540
29280
|
const assignValue = (val, key) => {
|
|
28541
29281
|
// Skip dangerous property names to prevent prototype pollution
|
|
28542
29282
|
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
28543
29283
|
return;
|
|
28544
29284
|
}
|
|
28545
29285
|
|
|
28546
|
-
|
|
28547
|
-
|
|
28548
|
-
|
|
29286
|
+
let targetKey = key;
|
|
29287
|
+
if (lowerCaseKeys && typeof key === 'string') {
|
|
29288
|
+
const lowerKey = key.toLowerCase();
|
|
29289
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
29290
|
+
// A key recorded but absent from `result` was skipped by skipUndefined;
|
|
29291
|
+
// the later spelling wins then, as it does for findKey.
|
|
29292
|
+
if (knownKey !== undefined && hasOwnProperty(result, knownKey)) {
|
|
29293
|
+
targetKey = knownKey;
|
|
29294
|
+
} else {
|
|
29295
|
+
lowerCaseKeys[lowerKey] = key;
|
|
29296
|
+
}
|
|
29297
|
+
}
|
|
28549
29298
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
28550
29299
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
28551
29300
|
// copied into the merged result.
|
|
@@ -28569,7 +29318,7 @@ function merge(...objs) {
|
|
|
28569
29318
|
|
|
28570
29319
|
forEach(source, assignValue);
|
|
28571
29320
|
|
|
28572
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
29321
|
+
if (typeof source !== 'object' || isArray(source) || !Object.getOwnPropertySymbols) {
|
|
28573
29322
|
continue;
|
|
28574
29323
|
}
|
|
28575
29324
|
|
|
@@ -28728,7 +29477,37 @@ const toArray = (thing) => {
|
|
|
28728
29477
|
if (!thing) return null;
|
|
28729
29478
|
if (isArray(thing)) return thing;
|
|
28730
29479
|
let i = thing.length;
|
|
28731
|
-
if (!
|
|
29480
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 0xffffffff) return null;
|
|
29481
|
+
|
|
29482
|
+
// Bound the copy by actual indexed properties, including hidden and inherited
|
|
29483
|
+
// members of array-like collections, rather than by the declared length alone.
|
|
29484
|
+
const indexes = new Set();
|
|
29485
|
+
const seen = new Set();
|
|
29486
|
+
let source = thing;
|
|
29487
|
+
|
|
29488
|
+
while (source != null && indexes.size < i) {
|
|
29489
|
+
if (seen.has(source)) return null;
|
|
29490
|
+
seen.add(source);
|
|
29491
|
+
|
|
29492
|
+
const prototype = getPrototypeOf(source);
|
|
29493
|
+
if (isPrototypeBoundary(source, prototype, source === thing)) break;
|
|
29494
|
+
|
|
29495
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
29496
|
+
const index = +key;
|
|
29497
|
+
if (
|
|
29498
|
+
Number.isInteger(index) &&
|
|
29499
|
+
index >= 0 &&
|
|
29500
|
+
index < i &&
|
|
29501
|
+
String(index) === key &&
|
|
29502
|
+
hasOwnProperty(source, key)
|
|
29503
|
+
) {
|
|
29504
|
+
indexes.add(index);
|
|
29505
|
+
}
|
|
29506
|
+
});
|
|
29507
|
+
source = prototype;
|
|
29508
|
+
}
|
|
29509
|
+
|
|
29510
|
+
if (indexes.size !== i) return null;
|
|
28732
29511
|
const arr = new Array(i);
|
|
28733
29512
|
while (i-- > 0) {
|
|
28734
29513
|
arr[i] = thing[i];
|