fds-vue-core 8.12.0 → 8.12.2
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/components/IconRescue/IconRescueIcon.vue.d.ts +54 -0
- package/dist/components/IconRescue/iconGame.d.ts +150 -0
- package/dist/components/IconRescue/iconTargets.d.ts +26 -0
- package/dist/components/IconRescue/types.d.ts +18 -0
- package/dist/fds-vue-core.cjs.js +647 -223
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +647 -223
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +6 -1
- package/src/components/IconRescue/IconRescue.stories.ts +630 -0
- package/src/components/IconRescue/IconRescueIcon.vue +2465 -0
- package/src/components/IconRescue/iconGame.ts +152 -0
- package/src/components/IconRescue/iconTargets.ts +34 -0
- package/src/components/IconRescue/types.ts +16 -0
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1792,7 +1792,7 @@ var FdsButtonCopy_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
1794
|
//#endregion
|
|
1795
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1795
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
1796
1796
|
/**
|
|
1797
1797
|
* Create a bound version of a function with a specified `this` context
|
|
1798
1798
|
*
|
|
@@ -1806,7 +1806,7 @@ function bind(fn, thisArg) {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
}
|
|
1808
1808
|
//#endregion
|
|
1809
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1809
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
1810
1810
|
var { toString } = Object.prototype;
|
|
1811
1811
|
var { getPrototypeOf } = Object;
|
|
1812
1812
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -2025,7 +2025,7 @@ var isBoolean = (thing) => thing === true || thing === false;
|
|
|
2025
2025
|
var isPlainObject = (val) => {
|
|
2026
2026
|
if (!isObject$2(val)) return false;
|
|
2027
2027
|
const prototype = getPrototypeOf(val);
|
|
2028
|
-
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !
|
|
2028
|
+
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && (isPrototypeBoundary(val, prototype, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
|
|
2029
2029
|
};
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
@@ -2234,9 +2234,16 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
|
|
|
2234
2234
|
function merge$1(...objs) {
|
|
2235
2235
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
2236
2236
|
const result = {};
|
|
2237
|
+
const lowerCaseKeys = caseless ? Object.create(null) : null;
|
|
2237
2238
|
const assignValue = (val, key) => {
|
|
2238
2239
|
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
2239
|
-
|
|
2240
|
+
let targetKey = key;
|
|
2241
|
+
if (lowerCaseKeys && typeof key === "string") {
|
|
2242
|
+
const lowerKey = key.toLowerCase();
|
|
2243
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
2244
|
+
if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) targetKey = knownKey;
|
|
2245
|
+
else lowerCaseKeys[lowerKey] = key;
|
|
2246
|
+
}
|
|
2240
2247
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
2241
2248
|
if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge$1(existing, val);
|
|
2242
2249
|
else if (isPlainObject(val)) result[targetKey] = merge$1({}, val);
|
|
@@ -2247,7 +2254,7 @@ function merge$1(...objs) {
|
|
|
2247
2254
|
const source = objs[i];
|
|
2248
2255
|
if (!source || isBuffer(source)) continue;
|
|
2249
2256
|
forEach(source, assignValue);
|
|
2250
|
-
if (typeof source !== "object" || isArray(source)) continue;
|
|
2257
|
+
if (typeof source !== "object" || isArray(source) || !Object.getOwnPropertySymbols) continue;
|
|
2251
2258
|
const symbols = Object.getOwnPropertySymbols(source);
|
|
2252
2259
|
for (let j = 0; j < symbols.length; j++) {
|
|
2253
2260
|
const symbol = symbols[j];
|
|
@@ -2378,7 +2385,22 @@ var toArray = (thing) => {
|
|
|
2378
2385
|
if (!thing) return null;
|
|
2379
2386
|
if (isArray(thing)) return thing;
|
|
2380
2387
|
let i = thing.length;
|
|
2381
|
-
if (!
|
|
2388
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 4294967295) return null;
|
|
2389
|
+
const indexes = /* @__PURE__ */ new Set();
|
|
2390
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2391
|
+
let source = thing;
|
|
2392
|
+
while (source != null && indexes.size < i) {
|
|
2393
|
+
if (seen.has(source)) return null;
|
|
2394
|
+
seen.add(source);
|
|
2395
|
+
const prototype = getPrototypeOf(source);
|
|
2396
|
+
if (isPrototypeBoundary(source, prototype, source === thing)) break;
|
|
2397
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
2398
|
+
const index = +key;
|
|
2399
|
+
if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) indexes.add(index);
|
|
2400
|
+
});
|
|
2401
|
+
source = prototype;
|
|
2402
|
+
}
|
|
2403
|
+
if (indexes.size !== i) return null;
|
|
2382
2404
|
const arr = new Array(i);
|
|
2383
2405
|
while (i-- > 0) arr[i] = thing[i];
|
|
2384
2406
|
return arr;
|
|
@@ -2661,7 +2683,7 @@ var utils_default = {
|
|
|
2661
2683
|
isSafeIterable
|
|
2662
2684
|
};
|
|
2663
2685
|
//#endregion
|
|
2664
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2686
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
2665
2687
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
2666
2688
|
"age",
|
|
2667
2689
|
"authorization",
|
|
@@ -2696,7 +2718,7 @@ var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
|
2696
2718
|
* @returns {Object} Headers parsed into an object
|
|
2697
2719
|
*/
|
|
2698
2720
|
var parseHeaders_default = (rawHeaders) => {
|
|
2699
|
-
const parsed =
|
|
2721
|
+
const parsed = Object.create(null);
|
|
2700
2722
|
let key;
|
|
2701
2723
|
let val;
|
|
2702
2724
|
let i;
|
|
@@ -2714,7 +2736,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
2714
2736
|
return parsed;
|
|
2715
2737
|
};
|
|
2716
2738
|
//#endregion
|
|
2717
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2739
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
2718
2740
|
function trimSPorHTAB(str) {
|
|
2719
2741
|
let start = 0;
|
|
2720
2742
|
let end = str.length;
|
|
@@ -2746,7 +2768,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
2746
2768
|
return byteStringHeaders;
|
|
2747
2769
|
}
|
|
2748
2770
|
//#endregion
|
|
2749
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2771
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
2750
2772
|
var $internals$1 = Symbol("internals");
|
|
2751
2773
|
function normalizeHeader(header) {
|
|
2752
2774
|
return header && String(header).trim().toLowerCase();
|
|
@@ -2826,8 +2848,10 @@ function parseParameters(value) {
|
|
|
2826
2848
|
return parameters;
|
|
2827
2849
|
}
|
|
2828
2850
|
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
2851
|
+
var PROTO_HEADER_SLOT = "__Proto__";
|
|
2852
|
+
var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
|
|
2829
2853
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
2830
|
-
if (utils_default.isFunction(filter)) return filter.call(
|
|
2854
|
+
if (utils_default.isFunction(filter)) return filter.call(context, value, header);
|
|
2831
2855
|
if (isHeaderNameFilter) value = header;
|
|
2832
2856
|
if (!utils_default.isString(value)) return;
|
|
2833
2857
|
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
@@ -2864,7 +2888,7 @@ var AxiosHeaders = class {
|
|
|
2864
2888
|
const lHeader = normalizeHeader(_header);
|
|
2865
2889
|
if (!lHeader) return;
|
|
2866
2890
|
const key = utils_default.findKey(self, lHeader);
|
|
2867
|
-
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
2891
|
+
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[headerSlot(key || _header)] = normalizeValue(_value);
|
|
2868
2892
|
}
|
|
2869
2893
|
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
2870
2894
|
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
@@ -2937,7 +2961,7 @@ var AxiosHeaders = class {
|
|
|
2937
2961
|
}
|
|
2938
2962
|
normalize(format) {
|
|
2939
2963
|
const self = this;
|
|
2940
|
-
const headers =
|
|
2964
|
+
const headers = Object.create(null);
|
|
2941
2965
|
utils_default.forEach(this, (value, header) => {
|
|
2942
2966
|
const key = utils_default.findKey(headers, header);
|
|
2943
2967
|
if (key) {
|
|
@@ -2945,7 +2969,7 @@ var AxiosHeaders = class {
|
|
|
2945
2969
|
delete self[header];
|
|
2946
2970
|
return;
|
|
2947
2971
|
}
|
|
2948
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
2972
|
+
const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
|
|
2949
2973
|
if (normalized !== header) delete self[header];
|
|
2950
2974
|
self[normalized] = normalizeValue(value);
|
|
2951
2975
|
headers[normalized] = true;
|
|
@@ -3019,7 +3043,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
3019
3043
|
});
|
|
3020
3044
|
utils_default.freezeMethods(AxiosHeaders);
|
|
3021
3045
|
//#endregion
|
|
3022
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3046
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
3023
3047
|
var REDACTED = "[REDACTED ****]";
|
|
3024
3048
|
function hasOwnOrPrototypeToJSON(source) {
|
|
3025
3049
|
if (utils_default.hasOwnProp(source, "toJSON")) return true;
|
|
@@ -3078,6 +3102,44 @@ function aggregateErrorMessage(error) {
|
|
|
3078
3102
|
}
|
|
3079
3103
|
}).filter(Boolean).join("; ") || error.name || "AggregateError";
|
|
3080
3104
|
}
|
|
3105
|
+
var CAUSED_BY_SEPARATOR = "\nCaused by: ";
|
|
3106
|
+
var $causeStack = Symbol("causeStack");
|
|
3107
|
+
function getCauseStackIndex(error, stack) {
|
|
3108
|
+
const causeStack = utils_default.hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
3109
|
+
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
3110
|
+
}
|
|
3111
|
+
/**
|
|
3112
|
+
* Append the stack of a wrapped error to `target.stack`.
|
|
3113
|
+
*
|
|
3114
|
+
* `cause` already exposes the original error for tooling that walks the standard
|
|
3115
|
+
* cause chain, but many error reporters read `stack` and nothing else. Inlining
|
|
3116
|
+
* the wrapped stack there means those reporters surface the underlying failure
|
|
3117
|
+
* instead of the axios frames that normalized it (see #6670).
|
|
3118
|
+
*
|
|
3119
|
+
* Every read is defensive: a custom `Error.prepareStackTrace` hook, a runtime
|
|
3120
|
+
* without stack support, or a replaced `stack` property can leave the value
|
|
3121
|
+
* missing, non-string, or read-only, and normalizing an error must not throw
|
|
3122
|
+
* because of that.
|
|
3123
|
+
*
|
|
3124
|
+
* @param {Error} target The AxiosError being built.
|
|
3125
|
+
* @param {Error} source The error being wrapped.
|
|
3126
|
+
*
|
|
3127
|
+
* @returns {void}
|
|
3128
|
+
*/
|
|
3129
|
+
function appendCauseStack(target, source) {
|
|
3130
|
+
try {
|
|
3131
|
+
const sourceStack = source && source.stack;
|
|
3132
|
+
if (typeof sourceStack !== "string" || !sourceStack) return;
|
|
3133
|
+
const targetStack = target.stack;
|
|
3134
|
+
if (typeof targetStack !== "string" || !targetStack) return;
|
|
3135
|
+
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
3136
|
+
target.stack = targetStack + causeStack;
|
|
3137
|
+
Object.defineProperty(target, $causeStack, {
|
|
3138
|
+
__proto__: null,
|
|
3139
|
+
value: causeStack
|
|
3140
|
+
});
|
|
3141
|
+
} catch (e) {}
|
|
3142
|
+
}
|
|
3081
3143
|
var AxiosError = class AxiosError extends Error {
|
|
3082
3144
|
static from(error, code, config, request, response, customProps) {
|
|
3083
3145
|
let message = error.message;
|
|
@@ -3091,6 +3153,7 @@ var AxiosError = class AxiosError extends Error {
|
|
|
3091
3153
|
configurable: true
|
|
3092
3154
|
});
|
|
3093
3155
|
axiosError.name = error.name;
|
|
3156
|
+
appendCauseStack(axiosError, error);
|
|
3094
3157
|
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
3095
3158
|
customProps && Object.assign(axiosError, customProps);
|
|
3096
3159
|
return axiosError;
|
|
@@ -3322,7 +3385,7 @@ function toFormData(obj, formData, options) {
|
|
|
3322
3385
|
return formData;
|
|
3323
3386
|
}
|
|
3324
3387
|
//#endregion
|
|
3325
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3388
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
3326
3389
|
/**
|
|
3327
3390
|
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
3328
3391
|
* their percent-encoded equivalents
|
|
@@ -3367,7 +3430,7 @@ prototype.toString = function toString(encoder) {
|
|
|
3367
3430
|
}, "").join("&");
|
|
3368
3431
|
};
|
|
3369
3432
|
//#endregion
|
|
3370
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3433
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
3371
3434
|
/**
|
|
3372
3435
|
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
3373
3436
|
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
@@ -3405,7 +3468,7 @@ function buildURL(url, params, options) {
|
|
|
3405
3468
|
return url;
|
|
3406
3469
|
}
|
|
3407
3470
|
//#endregion
|
|
3408
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3471
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
3409
3472
|
var $internals = Symbol("internals");
|
|
3410
3473
|
function countHandlers(handlers) {
|
|
3411
3474
|
return handlers ? handlers.length : 0;
|
|
@@ -3414,6 +3477,10 @@ function trimHandlers(handlers) {
|
|
|
3414
3477
|
if (!handlers) return;
|
|
3415
3478
|
while (handlers.length && handlers[handlers.length - 1] === null) handlers.pop();
|
|
3416
3479
|
}
|
|
3480
|
+
function normalizeHandlerId(id) {
|
|
3481
|
+
if (typeof id === "string" && id !== "" && String(Number(id)) === id) return Number(id);
|
|
3482
|
+
return id;
|
|
3483
|
+
}
|
|
3417
3484
|
function syncHandlerEntries(manager, internals) {
|
|
3418
3485
|
const handlers = manager.handlers;
|
|
3419
3486
|
const length = countHandlers(handlers);
|
|
@@ -3477,9 +3544,10 @@ var InterceptorManager = class {
|
|
|
3477
3544
|
eject(id) {
|
|
3478
3545
|
const internals = this[$internals];
|
|
3479
3546
|
syncHandlerEntries(this, internals);
|
|
3480
|
-
const
|
|
3547
|
+
const handlerId = normalizeHandlerId(id);
|
|
3548
|
+
const entry = internals.handlerEntries.get(handlerId);
|
|
3481
3549
|
if (entry) {
|
|
3482
|
-
internals.handlerEntries.delete(
|
|
3550
|
+
internals.handlerEntries.delete(handlerId);
|
|
3483
3551
|
if (this.handlers[entry.index] !== entry.handler) return;
|
|
3484
3552
|
this.handlers[entry.index] = null;
|
|
3485
3553
|
if (!internals.iterationDepth) {
|
|
@@ -3527,17 +3595,18 @@ var InterceptorManager = class {
|
|
|
3527
3595
|
}
|
|
3528
3596
|
};
|
|
3529
3597
|
//#endregion
|
|
3530
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3598
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
3531
3599
|
var transitional_default = {
|
|
3532
3600
|
silentJSONParsing: true,
|
|
3533
3601
|
forcedJSONParsing: true,
|
|
3534
3602
|
clarifyTimeoutError: false,
|
|
3535
3603
|
legacyInterceptorReqResOrdering: true,
|
|
3536
3604
|
advertiseZstdAcceptEncoding: false,
|
|
3537
|
-
validateStatusUndefinedResolves: true
|
|
3605
|
+
validateStatusUndefinedResolves: true,
|
|
3606
|
+
encodeBasicAuthUsername: false
|
|
3538
3607
|
};
|
|
3539
3608
|
//#endregion
|
|
3540
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3609
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/index.js
|
|
3541
3610
|
var browser_default = {
|
|
3542
3611
|
isBrowser: true,
|
|
3543
3612
|
classes: {
|
|
@@ -3555,7 +3624,7 @@ var browser_default = {
|
|
|
3555
3624
|
]
|
|
3556
3625
|
};
|
|
3557
3626
|
//#endregion
|
|
3558
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3627
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
3559
3628
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
3560
3629
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
3561
3630
|
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
@@ -3601,13 +3670,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
3601
3670
|
})();
|
|
3602
3671
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
3603
3672
|
//#endregion
|
|
3604
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3673
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
3605
3674
|
var platform_default = {
|
|
3606
3675
|
...utils_exports,
|
|
3607
3676
|
...browser_default
|
|
3608
3677
|
};
|
|
3609
3678
|
//#endregion
|
|
3610
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3679
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
3611
3680
|
function toURLEncodedForm(data, options) {
|
|
3612
3681
|
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
3613
3682
|
visitor: function(value, key, path, helpers) {
|
|
@@ -3621,7 +3690,7 @@ function toURLEncodedForm(data, options) {
|
|
|
3621
3690
|
});
|
|
3622
3691
|
}
|
|
3623
3692
|
//#endregion
|
|
3624
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3693
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
3625
3694
|
var MAX_DEPTH = 100;
|
|
3626
3695
|
function throwIfDepthExceeded(index) {
|
|
3627
3696
|
if (index > MAX_DEPTH) throw new AxiosError("FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
@@ -3662,6 +3731,22 @@ function arrayToObject(arr) {
|
|
|
3662
3731
|
}
|
|
3663
3732
|
return obj;
|
|
3664
3733
|
}
|
|
3734
|
+
function normalizeArray(value) {
|
|
3735
|
+
if (!utils_default.isArray(value)) return value;
|
|
3736
|
+
const keys = Object.keys(value);
|
|
3737
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
|
|
3738
|
+
}
|
|
3739
|
+
function normalizeArrays(obj) {
|
|
3740
|
+
const pending = [obj];
|
|
3741
|
+
while (pending.length) {
|
|
3742
|
+
const target = pending.pop();
|
|
3743
|
+
Object.keys(target).forEach((key) => {
|
|
3744
|
+
const value = target[key] = normalizeArray(target[key]);
|
|
3745
|
+
if (utils_default.isArray(value) || utils_default.isPlainObject(value)) pending.push(value);
|
|
3746
|
+
});
|
|
3747
|
+
}
|
|
3748
|
+
return obj;
|
|
3749
|
+
}
|
|
3665
3750
|
/**
|
|
3666
3751
|
* It takes a FormData object and returns a JavaScript object
|
|
3667
3752
|
*
|
|
@@ -3678,8 +3763,10 @@ function formDataToJSON(formData) {
|
|
|
3678
3763
|
const isLast = index >= path.length;
|
|
3679
3764
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
3680
3765
|
if (isLast) {
|
|
3681
|
-
if (utils_default.hasOwnProp(target, name))
|
|
3682
|
-
|
|
3766
|
+
if (utils_default.hasOwnProp(target, name)) {
|
|
3767
|
+
target[name] = normalizeArray(target[name]);
|
|
3768
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
3769
|
+
} else target[name] = value;
|
|
3683
3770
|
return !isNumericKey;
|
|
3684
3771
|
}
|
|
3685
3772
|
if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) target[name] = [];
|
|
@@ -3691,12 +3778,12 @@ function formDataToJSON(formData) {
|
|
|
3691
3778
|
utils_default.forEachEntry(formData, (name, value) => {
|
|
3692
3779
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
3693
3780
|
});
|
|
3694
|
-
return obj;
|
|
3781
|
+
return normalizeArrays(obj);
|
|
3695
3782
|
}
|
|
3696
3783
|
return null;
|
|
3697
3784
|
}
|
|
3698
3785
|
//#endregion
|
|
3699
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3786
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
|
|
3700
3787
|
var methodList = Object.freeze([
|
|
3701
3788
|
"get",
|
|
3702
3789
|
"delete",
|
|
@@ -3711,7 +3798,7 @@ var methodList = Object.freeze([
|
|
|
3711
3798
|
"query"
|
|
3712
3799
|
]);
|
|
3713
3800
|
//#endregion
|
|
3714
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3801
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
3715
3802
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
3716
3803
|
/**
|
|
3717
3804
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
@@ -3811,7 +3898,7 @@ utils_default.forEach(methodList, (method) => {
|
|
|
3811
3898
|
defaults.headers[method] = {};
|
|
3812
3899
|
});
|
|
3813
3900
|
//#endregion
|
|
3814
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3901
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
3815
3902
|
/**
|
|
3816
3903
|
* Transform the data for a request or a response
|
|
3817
3904
|
*
|
|
@@ -3832,12 +3919,12 @@ function transformData(fns, response) {
|
|
|
3832
3919
|
return data;
|
|
3833
3920
|
}
|
|
3834
3921
|
//#endregion
|
|
3835
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3922
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
3836
3923
|
function isCancel(value) {
|
|
3837
3924
|
return !!(value && value.__CANCEL__);
|
|
3838
3925
|
}
|
|
3839
3926
|
//#endregion
|
|
3840
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3927
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
3841
3928
|
var CanceledError = class extends AxiosError {
|
|
3842
3929
|
/**
|
|
3843
3930
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -3855,7 +3942,7 @@ var CanceledError = class extends AxiosError {
|
|
|
3855
3942
|
}
|
|
3856
3943
|
};
|
|
3857
3944
|
//#endregion
|
|
3858
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3945
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
3859
3946
|
/**
|
|
3860
3947
|
* Resolve or reject a Promise based on response status.
|
|
3861
3948
|
*
|
|
@@ -3871,7 +3958,7 @@ function settle(resolve, reject, response) {
|
|
|
3871
3958
|
else reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
3872
3959
|
}
|
|
3873
3960
|
//#endregion
|
|
3874
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3961
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
3875
3962
|
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
3876
3963
|
/**
|
|
3877
3964
|
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
@@ -3887,13 +3974,68 @@ function normalizeURLForProtocolCheck(url) {
|
|
|
3887
3974
|
return url.slice(start).replace(urlParserControlCharacters, "");
|
|
3888
3975
|
}
|
|
3889
3976
|
//#endregion
|
|
3890
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3977
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
3891
3978
|
function parseProtocol(url) {
|
|
3892
3979
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
3893
|
-
return match && match[1] || "";
|
|
3980
|
+
return match && match[1].toLowerCase() || "";
|
|
3894
3981
|
}
|
|
3895
3982
|
//#endregion
|
|
3896
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3983
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
3984
|
+
var decodeCookieValue = (value) => {
|
|
3985
|
+
try {
|
|
3986
|
+
return decodeURIComponent(value);
|
|
3987
|
+
} catch (e) {
|
|
3988
|
+
return value;
|
|
3989
|
+
}
|
|
3990
|
+
};
|
|
3991
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
3992
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
3993
|
+
if (typeof document === "undefined") return;
|
|
3994
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
3995
|
+
if (utils_default.isNumber(expires)) cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
3996
|
+
if (utils_default.isString(path)) cookie.push(`path=${path}`);
|
|
3997
|
+
if (utils_default.isString(domain)) cookie.push(`domain=${domain}`);
|
|
3998
|
+
if (secure === true) cookie.push("secure");
|
|
3999
|
+
if (utils_default.isString(sameSite)) cookie.push(`SameSite=${sameSite}`);
|
|
4000
|
+
document.cookie = cookie.join("; ");
|
|
4001
|
+
},
|
|
4002
|
+
read(name) {
|
|
4003
|
+
if (typeof document === "undefined") return null;
|
|
4004
|
+
const cookieString = document.cookie;
|
|
4005
|
+
if (!cookieString) return null;
|
|
4006
|
+
const cookies = cookieString.split(";");
|
|
4007
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
4008
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
4009
|
+
const eq = cookie.indexOf("=");
|
|
4010
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) return decodeCookieValue(cookie.slice(eq + 1));
|
|
4011
|
+
}
|
|
4012
|
+
return null;
|
|
4013
|
+
},
|
|
4014
|
+
async readAsync(name) {
|
|
4015
|
+
try {
|
|
4016
|
+
const store = typeof window !== "undefined" && window.cookieStore;
|
|
4017
|
+
if (store && utils_default.isFunction(store.get)) {
|
|
4018
|
+
const cookie = await store.get(name);
|
|
4019
|
+
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
4020
|
+
}
|
|
4021
|
+
} catch (e) {}
|
|
4022
|
+
return this.read(name);
|
|
4023
|
+
},
|
|
4024
|
+
remove(name) {
|
|
4025
|
+
this.write(name, "", Date.now() - 864e5, "/");
|
|
4026
|
+
}
|
|
4027
|
+
} : {
|
|
4028
|
+
write() {},
|
|
4029
|
+
read() {
|
|
4030
|
+
return null;
|
|
4031
|
+
},
|
|
4032
|
+
async readAsync() {
|
|
4033
|
+
return null;
|
|
4034
|
+
},
|
|
4035
|
+
remove() {}
|
|
4036
|
+
};
|
|
4037
|
+
//#endregion
|
|
4038
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
3897
4039
|
/**
|
|
3898
4040
|
* Calculate data maxRate
|
|
3899
4041
|
* @param {Number} [samplesCount= 10]
|
|
@@ -3928,7 +4070,7 @@ function speedometer(samplesCount, min) {
|
|
|
3928
4070
|
};
|
|
3929
4071
|
}
|
|
3930
4072
|
//#endregion
|
|
3931
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4073
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
3932
4074
|
/**
|
|
3933
4075
|
* Throttle decorator
|
|
3934
4076
|
* @param {Function} fn
|
|
@@ -3970,7 +4112,7 @@ function throttle(fn, freq) {
|
|
|
3970
4112
|
];
|
|
3971
4113
|
}
|
|
3972
4114
|
//#endregion
|
|
3973
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4115
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
3974
4116
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3975
4117
|
let bytesNotified = 0;
|
|
3976
4118
|
const _speedometer = speedometer(50, 250);
|
|
@@ -4005,50 +4147,13 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
4005
4147
|
};
|
|
4006
4148
|
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
4007
4149
|
//#endregion
|
|
4008
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4009
|
-
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin
|
|
4010
|
-
url = new URL(url, platform_default.origin);
|
|
4011
|
-
return origin.protocol === url.protocol && origin.host === url.host &&
|
|
4012
|
-
})(new URL(platform_default.origin)
|
|
4013
|
-
//#endregion
|
|
4014
|
-
//#region node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
4015
|
-
var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
4016
|
-
write(name, value, expires, path, domain, secure, sameSite) {
|
|
4017
|
-
if (typeof document === "undefined") return;
|
|
4018
|
-
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
4019
|
-
if (utils_default.isNumber(expires)) cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
4020
|
-
if (utils_default.isString(path)) cookie.push(`path=${path}`);
|
|
4021
|
-
if (utils_default.isString(domain)) cookie.push(`domain=${domain}`);
|
|
4022
|
-
if (secure === true) cookie.push("secure");
|
|
4023
|
-
if (utils_default.isString(sameSite)) cookie.push(`SameSite=${sameSite}`);
|
|
4024
|
-
document.cookie = cookie.join("; ");
|
|
4025
|
-
},
|
|
4026
|
-
read(name) {
|
|
4027
|
-
if (typeof document === "undefined") return null;
|
|
4028
|
-
const cookies = document.cookie.split(";");
|
|
4029
|
-
for (let i = 0; i < cookies.length; i++) {
|
|
4030
|
-
const cookie = cookies[i].replace(/^\s+/, "");
|
|
4031
|
-
const eq = cookie.indexOf("=");
|
|
4032
|
-
if (eq !== -1 && cookie.slice(0, eq) === name) try {
|
|
4033
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
4034
|
-
} catch (e) {
|
|
4035
|
-
return cookie.slice(eq + 1);
|
|
4036
|
-
}
|
|
4037
|
-
}
|
|
4038
|
-
return null;
|
|
4039
|
-
},
|
|
4040
|
-
remove(name) {
|
|
4041
|
-
this.write(name, "", Date.now() - 864e5, "/");
|
|
4042
|
-
}
|
|
4043
|
-
} : {
|
|
4044
|
-
write() {},
|
|
4045
|
-
read() {
|
|
4046
|
-
return null;
|
|
4047
|
-
},
|
|
4048
|
-
remove() {}
|
|
4049
|
-
};
|
|
4150
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
4151
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin) => (url) => {
|
|
4152
|
+
url = new URL(url, document.baseURI || platform_default.origin);
|
|
4153
|
+
return origin.protocol === url.protocol && origin.host === url.host && origin.port === url.port;
|
|
4154
|
+
})(new URL(platform_default.origin)) : () => true;
|
|
4050
4155
|
//#endregion
|
|
4051
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4156
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
4052
4157
|
/**
|
|
4053
4158
|
* Determines whether the specified URL is absolute
|
|
4054
4159
|
*
|
|
@@ -4061,7 +4166,7 @@ function isAbsoluteURL(url) {
|
|
|
4061
4166
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
4062
4167
|
}
|
|
4063
4168
|
//#endregion
|
|
4064
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4169
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
4065
4170
|
/**
|
|
4066
4171
|
* Creates a new URL by combining the specified URLs
|
|
4067
4172
|
*
|
|
@@ -4077,7 +4182,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
4077
4182
|
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
4078
4183
|
}
|
|
4079
4184
|
//#endregion
|
|
4080
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4185
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
4081
4186
|
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
4082
4187
|
function redactFragment(fragment) {
|
|
4083
4188
|
if (!fragment) return fragment;
|
|
@@ -4118,12 +4223,161 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
|
4118
4223
|
return requestedURL;
|
|
4119
4224
|
}
|
|
4120
4225
|
//#endregion
|
|
4121
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4226
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js
|
|
4227
|
+
function assertParamsAcyclic(params) {
|
|
4228
|
+
const pending = [{ value: params }];
|
|
4229
|
+
const active = /* @__PURE__ */ new WeakSet();
|
|
4230
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
4231
|
+
while (pending.length) {
|
|
4232
|
+
const { value, done } = pending.pop();
|
|
4233
|
+
if (!utils_default.isPlainObject(value) && !utils_default.isArray(value)) continue;
|
|
4234
|
+
if (done) {
|
|
4235
|
+
active.delete(value);
|
|
4236
|
+
continue;
|
|
4237
|
+
}
|
|
4238
|
+
if (active.has(value)) throw new AxiosError("Circular reference detected in params", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4239
|
+
if (visited.has(value)) continue;
|
|
4240
|
+
visited.add(value);
|
|
4241
|
+
active.add(value);
|
|
4242
|
+
pending.push({
|
|
4243
|
+
value,
|
|
4244
|
+
done: true
|
|
4245
|
+
});
|
|
4246
|
+
const keys = Object.keys(value);
|
|
4247
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
4248
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
4249
|
+
if (descriptor && descriptor.enumerable) keys.push(key);
|
|
4250
|
+
});
|
|
4251
|
+
keys.forEach((key) => {
|
|
4252
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
4253
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
4254
|
+
if (descriptor && utils_default.hasOwnProp(descriptor, "value")) pending.push({ value: descriptor.value });
|
|
4255
|
+
} else pending.push({ value: value[key] });
|
|
4256
|
+
});
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
//#endregion
|
|
4260
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
4122
4261
|
var headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
4123
4262
|
var ownEnumerableKeys = (thing) => {
|
|
4124
|
-
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) =>
|
|
4263
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => {
|
|
4264
|
+
const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
|
|
4265
|
+
return descriptor && descriptor.enumerable;
|
|
4266
|
+
}));
|
|
4125
4267
|
return Object.keys(thing);
|
|
4126
4268
|
};
|
|
4269
|
+
function mergeParams(a, b) {
|
|
4270
|
+
const pending = [];
|
|
4271
|
+
const copies = /* @__PURE__ */ new WeakMap();
|
|
4272
|
+
const empty = {};
|
|
4273
|
+
function copy(target, source) {
|
|
4274
|
+
if (!utils_default.isPlainObject(source)) return utils_default.isArray(source) ? source.slice() : source;
|
|
4275
|
+
const base = utils_default.isPlainObject(target) ? target : empty;
|
|
4276
|
+
let bases = copies.get(source);
|
|
4277
|
+
if (!bases) {
|
|
4278
|
+
bases = /* @__PURE__ */ new WeakMap();
|
|
4279
|
+
copies.set(source, bases);
|
|
4280
|
+
}
|
|
4281
|
+
if (bases.has(base)) return bases.get(base);
|
|
4282
|
+
const result = {};
|
|
4283
|
+
bases.set(base, result);
|
|
4284
|
+
pending.push({
|
|
4285
|
+
base,
|
|
4286
|
+
source,
|
|
4287
|
+
result
|
|
4288
|
+
});
|
|
4289
|
+
return result;
|
|
4290
|
+
}
|
|
4291
|
+
const result = utils_default.isUndefined(b) ? copy(void 0, a) : copy(a, b);
|
|
4292
|
+
while (pending.length) {
|
|
4293
|
+
const { base, source, result: target } = pending.pop();
|
|
4294
|
+
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
4295
|
+
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
4296
|
+
(/* @__PURE__ */ new Set([...baseKeys, ...sourceKeys])).forEach((key) => {
|
|
4297
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
4298
|
+
const hasSource = sourceKeys.has(key);
|
|
4299
|
+
const value = hasSource ? source[key] : void 0;
|
|
4300
|
+
const previous = (!hasSource || utils_default.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
|
|
4301
|
+
target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
|
|
4302
|
+
});
|
|
4303
|
+
}
|
|
4304
|
+
assertParamsAcyclic(result);
|
|
4305
|
+
return result;
|
|
4306
|
+
}
|
|
4307
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
4308
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
|
|
4309
|
+
else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
|
|
4310
|
+
else if (utils_default.isArray(source)) return source.slice();
|
|
4311
|
+
return source;
|
|
4312
|
+
}
|
|
4313
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
4314
|
+
if (!utils_default.isUndefined(b)) return getMergedValue(a, b, prop, caseless);
|
|
4315
|
+
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a, prop, caseless);
|
|
4316
|
+
}
|
|
4317
|
+
function valueFromConfig2(a, b) {
|
|
4318
|
+
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
4319
|
+
}
|
|
4320
|
+
function defaultToConfig2(a, b) {
|
|
4321
|
+
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
4322
|
+
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
|
|
4323
|
+
}
|
|
4324
|
+
function getMergedTransitionalOption(config1, config2, prop) {
|
|
4325
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
4326
|
+
if (!utils_default.isUndefined(transitional2)) {
|
|
4327
|
+
if (utils_default.isPlainObject(transitional2)) {
|
|
4328
|
+
if (utils_default.hasOwnProp(transitional2, prop)) return transitional2[prop];
|
|
4329
|
+
} else return;
|
|
4330
|
+
}
|
|
4331
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
4332
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) return transitional1[prop];
|
|
4333
|
+
}
|
|
4334
|
+
function mergeDirectKeys(a, b, prop, config1, config2) {
|
|
4335
|
+
if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
4336
|
+
else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
4337
|
+
}
|
|
4338
|
+
function mergeHeaders(a, b, prop) {
|
|
4339
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
4340
|
+
}
|
|
4341
|
+
var hasOwnPropertyDescriptor = Object.freeze({
|
|
4342
|
+
__proto__: null,
|
|
4343
|
+
value: Object.prototype.hasOwnProperty,
|
|
4344
|
+
enumerable: false,
|
|
4345
|
+
writable: true,
|
|
4346
|
+
configurable: true
|
|
4347
|
+
});
|
|
4348
|
+
var mergeMap = {
|
|
4349
|
+
url: valueFromConfig2,
|
|
4350
|
+
method: valueFromConfig2,
|
|
4351
|
+
data: valueFromConfig2,
|
|
4352
|
+
baseURL: defaultToConfig2,
|
|
4353
|
+
transformRequest: defaultToConfig2,
|
|
4354
|
+
transformResponse: defaultToConfig2,
|
|
4355
|
+
params: mergeParams,
|
|
4356
|
+
paramsSerializer: defaultToConfig2,
|
|
4357
|
+
timeout: defaultToConfig2,
|
|
4358
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
4359
|
+
withCredentials: defaultToConfig2,
|
|
4360
|
+
withXSRFToken: defaultToConfig2,
|
|
4361
|
+
adapter: defaultToConfig2,
|
|
4362
|
+
responseType: defaultToConfig2,
|
|
4363
|
+
xsrfCookieName: defaultToConfig2,
|
|
4364
|
+
xsrfHeaderName: defaultToConfig2,
|
|
4365
|
+
onUploadProgress: defaultToConfig2,
|
|
4366
|
+
onDownloadProgress: defaultToConfig2,
|
|
4367
|
+
decompress: defaultToConfig2,
|
|
4368
|
+
maxContentLength: defaultToConfig2,
|
|
4369
|
+
maxBodyLength: defaultToConfig2,
|
|
4370
|
+
beforeRedirect: defaultToConfig2,
|
|
4371
|
+
transport: defaultToConfig2,
|
|
4372
|
+
httpAgent: defaultToConfig2,
|
|
4373
|
+
httpsAgent: defaultToConfig2,
|
|
4374
|
+
cancelToken: defaultToConfig2,
|
|
4375
|
+
socketPath: defaultToConfig2,
|
|
4376
|
+
allowedSocketPaths: defaultToConfig2,
|
|
4377
|
+
responseEncoding: defaultToConfig2,
|
|
4378
|
+
validateStatus: mergeDirectKeys,
|
|
4379
|
+
headers: mergeHeaders
|
|
4380
|
+
};
|
|
4127
4381
|
/**
|
|
4128
4382
|
* Config-specific merge-function which creates a new config-object
|
|
4129
4383
|
* by merging two configuration objects together.
|
|
@@ -4137,93 +4391,28 @@ function mergeConfig(config1, config2) {
|
|
|
4137
4391
|
config1 = config1 || {};
|
|
4138
4392
|
config2 = config2 || {};
|
|
4139
4393
|
const config = Object.create(null);
|
|
4140
|
-
Object.defineProperty(config, "hasOwnProperty",
|
|
4141
|
-
|
|
4142
|
-
value: Object.prototype.hasOwnProperty,
|
|
4143
|
-
enumerable: false,
|
|
4144
|
-
writable: true,
|
|
4145
|
-
configurable: true
|
|
4146
|
-
});
|
|
4147
|
-
function getMergedValue(target, source, prop, caseless) {
|
|
4148
|
-
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
|
|
4149
|
-
else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
|
|
4150
|
-
else if (utils_default.isArray(source)) return source.slice();
|
|
4151
|
-
return source;
|
|
4152
|
-
}
|
|
4153
|
-
function mergeDeepProperties(a, b, prop, caseless) {
|
|
4154
|
-
if (!utils_default.isUndefined(b)) return getMergedValue(a, b, prop, caseless);
|
|
4155
|
-
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a, prop, caseless);
|
|
4156
|
-
}
|
|
4157
|
-
function valueFromConfig2(a, b) {
|
|
4158
|
-
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
4159
|
-
}
|
|
4160
|
-
function defaultToConfig2(a, b) {
|
|
4161
|
-
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
4162
|
-
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
|
|
4163
|
-
}
|
|
4164
|
-
function getMergedTransitionalOption(prop) {
|
|
4165
|
-
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
4166
|
-
if (!utils_default.isUndefined(transitional2)) {
|
|
4167
|
-
if (utils_default.isPlainObject(transitional2)) {
|
|
4168
|
-
if (utils_default.hasOwnProp(transitional2, prop)) return transitional2[prop];
|
|
4169
|
-
} else return;
|
|
4170
|
-
}
|
|
4171
|
-
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
4172
|
-
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) return transitional1[prop];
|
|
4173
|
-
}
|
|
4174
|
-
function mergeDirectKeys(a, b, prop) {
|
|
4175
|
-
if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
4176
|
-
else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
4177
|
-
}
|
|
4178
|
-
const mergeMap = {
|
|
4179
|
-
url: valueFromConfig2,
|
|
4180
|
-
method: valueFromConfig2,
|
|
4181
|
-
data: valueFromConfig2,
|
|
4182
|
-
baseURL: defaultToConfig2,
|
|
4183
|
-
transformRequest: defaultToConfig2,
|
|
4184
|
-
transformResponse: defaultToConfig2,
|
|
4185
|
-
paramsSerializer: defaultToConfig2,
|
|
4186
|
-
timeout: defaultToConfig2,
|
|
4187
|
-
timeoutErrorMessage: defaultToConfig2,
|
|
4188
|
-
withCredentials: defaultToConfig2,
|
|
4189
|
-
withXSRFToken: defaultToConfig2,
|
|
4190
|
-
adapter: defaultToConfig2,
|
|
4191
|
-
responseType: defaultToConfig2,
|
|
4192
|
-
xsrfCookieName: defaultToConfig2,
|
|
4193
|
-
xsrfHeaderName: defaultToConfig2,
|
|
4194
|
-
onUploadProgress: defaultToConfig2,
|
|
4195
|
-
onDownloadProgress: defaultToConfig2,
|
|
4196
|
-
decompress: defaultToConfig2,
|
|
4197
|
-
maxContentLength: defaultToConfig2,
|
|
4198
|
-
maxBodyLength: defaultToConfig2,
|
|
4199
|
-
beforeRedirect: defaultToConfig2,
|
|
4200
|
-
transport: defaultToConfig2,
|
|
4201
|
-
httpAgent: defaultToConfig2,
|
|
4202
|
-
httpsAgent: defaultToConfig2,
|
|
4203
|
-
cancelToken: defaultToConfig2,
|
|
4204
|
-
socketPath: defaultToConfig2,
|
|
4205
|
-
allowedSocketPaths: defaultToConfig2,
|
|
4206
|
-
responseEncoding: defaultToConfig2,
|
|
4207
|
-
validateStatus: mergeDirectKeys,
|
|
4208
|
-
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
4209
|
-
};
|
|
4210
|
-
utils_default.forEach(ownEnumerableKeys({
|
|
4394
|
+
Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
|
|
4395
|
+
const keys = ownEnumerableKeys({
|
|
4211
4396
|
...config1,
|
|
4212
4397
|
...config2
|
|
4213
|
-
})
|
|
4214
|
-
|
|
4398
|
+
});
|
|
4399
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
4400
|
+
const prop = keys[i];
|
|
4401
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") continue;
|
|
4215
4402
|
const merge = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
4216
|
-
const
|
|
4403
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
4404
|
+
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
4405
|
+
const configValue = merge === mergeDirectKeys ? merge(a, b, prop, config1, config2) : merge(a, b, prop);
|
|
4217
4406
|
utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
4218
|
-
}
|
|
4219
|
-
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
4407
|
+
}
|
|
4408
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption(config1, config2, "validateStatusUndefinedResolves") === false) {
|
|
4220
4409
|
if (utils_default.hasOwnProp(config1, "validateStatus")) config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
4221
4410
|
else delete config.validateStatus;
|
|
4222
4411
|
}
|
|
4223
4412
|
return config;
|
|
4224
4413
|
}
|
|
4225
4414
|
//#endregion
|
|
4226
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4415
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
4227
4416
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
4228
4417
|
/**
|
|
4229
4418
|
* Apply the headers generated by a FormData implementation to the request headers,
|
|
@@ -4246,7 +4435,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
4246
4435
|
});
|
|
4247
4436
|
}
|
|
4248
4437
|
//#endregion
|
|
4249
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4438
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
4250
4439
|
/**
|
|
4251
4440
|
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
4252
4441
|
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
@@ -4256,7 +4445,8 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
4256
4445
|
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
4257
4446
|
*/
|
|
4258
4447
|
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
4259
|
-
|
|
4448
|
+
var readCookie = (name) => cookies_default.read(name);
|
|
4449
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
4260
4450
|
const newConfig = mergeConfig({}, config);
|
|
4261
4451
|
const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
4262
4452
|
const data = own("data");
|
|
@@ -4273,8 +4463,10 @@ function resolveConfig(config) {
|
|
|
4273
4463
|
if (auth) {
|
|
4274
4464
|
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
4275
4465
|
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
4466
|
+
const transitional = own("transitional");
|
|
4467
|
+
const encodeUsername = transitional && utils_default.hasOwnProp(transitional, "encodeBasicAuthUsername") && transitional.encodeBasicAuthUsername === true;
|
|
4276
4468
|
try {
|
|
4277
|
-
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8$1(password) : "")));
|
|
4469
|
+
headers.set("Authorization", "Basic " + btoa((encodeUsername ? encodeUTF8$1(username) : username) + ":" + (password ? encodeUTF8$1(password) : "")));
|
|
4278
4470
|
} catch (e) {
|
|
4279
4471
|
throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
4280
4472
|
}
|
|
@@ -4287,7 +4479,7 @@ function resolveConfig(config) {
|
|
|
4287
4479
|
if (platform_default.hasStandardBrowserEnv) {
|
|
4288
4480
|
if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
|
|
4289
4481
|
if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
|
|
4290
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
4482
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
4291
4483
|
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
4292
4484
|
}
|
|
4293
4485
|
}
|
|
@@ -4295,16 +4487,46 @@ function resolveConfig(config) {
|
|
|
4295
4487
|
}
|
|
4296
4488
|
var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
4297
4489
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
4298
|
-
|
|
4490
|
+
let useAsyncXsrf;
|
|
4491
|
+
try {
|
|
4492
|
+
const store = platform_default.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
|
|
4493
|
+
useAsyncXsrf = store && utils_default.isFunction(store.get);
|
|
4494
|
+
} catch (e) {}
|
|
4495
|
+
let xsrfCookieName;
|
|
4496
|
+
const _config = resolveConfig(config, useAsyncXsrf ? (name) => {
|
|
4497
|
+
xsrfCookieName = name;
|
|
4498
|
+
return null;
|
|
4499
|
+
} : void 0);
|
|
4299
4500
|
let requestData = _config.data;
|
|
4300
4501
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
4301
4502
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
4302
4503
|
let onCanceled;
|
|
4504
|
+
let timeoutId;
|
|
4303
4505
|
let uploadThrottled, downloadThrottled;
|
|
4304
4506
|
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
4305
4507
|
function done() {
|
|
4306
|
-
|
|
4307
|
-
|
|
4508
|
+
clearTimeout(timeoutId);
|
|
4509
|
+
try {
|
|
4510
|
+
flushUpload && flushUpload();
|
|
4511
|
+
} catch (err) {
|
|
4512
|
+
setTimeout(() => {
|
|
4513
|
+
throw err;
|
|
4514
|
+
});
|
|
4515
|
+
}
|
|
4516
|
+
try {
|
|
4517
|
+
flushDownload && flushDownload();
|
|
4518
|
+
} catch (err) {
|
|
4519
|
+
setTimeout(() => {
|
|
4520
|
+
throw err;
|
|
4521
|
+
});
|
|
4522
|
+
}
|
|
4523
|
+
if (request) {
|
|
4524
|
+
downloadThrottled && request.removeEventListener("progress", downloadThrottled);
|
|
4525
|
+
if (request.upload) {
|
|
4526
|
+
uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
|
|
4527
|
+
flushUpload && request.upload.removeEventListener("loadend", flushUpload);
|
|
4528
|
+
}
|
|
4529
|
+
}
|
|
4308
4530
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
4309
4531
|
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
4310
4532
|
}
|
|
@@ -4365,6 +4587,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
4365
4587
|
request = null;
|
|
4366
4588
|
};
|
|
4367
4589
|
request.ontimeout = function handleTimeout() {
|
|
4590
|
+
if (!request) return;
|
|
4368
4591
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
4369
4592
|
const transitional = _config.transitional || transitional_default;
|
|
4370
4593
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
@@ -4373,9 +4596,6 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
4373
4596
|
request = null;
|
|
4374
4597
|
};
|
|
4375
4598
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
4376
|
-
if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
4377
|
-
request.setRequestHeader(key, val);
|
|
4378
|
-
});
|
|
4379
4599
|
if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
|
|
4380
4600
|
if (responseType && responseType !== "json") request.responseType = _config.responseType;
|
|
4381
4601
|
if (onDownloadProgress) {
|
|
@@ -4391,24 +4611,68 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
4391
4611
|
onCanceled = (cancel) => {
|
|
4392
4612
|
if (!request) return;
|
|
4393
4613
|
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
4394
|
-
request
|
|
4614
|
+
const xhr = request;
|
|
4395
4615
|
done();
|
|
4396
4616
|
request = null;
|
|
4617
|
+
xhr.abort();
|
|
4397
4618
|
};
|
|
4398
4619
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
4620
|
+
if (!request) return;
|
|
4399
4621
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
4400
4622
|
}
|
|
4623
|
+
if (!request) return;
|
|
4401
4624
|
const protocol = parseProtocol(_config.url);
|
|
4402
4625
|
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
4403
4626
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
4404
4627
|
done();
|
|
4405
4628
|
return;
|
|
4406
4629
|
}
|
|
4407
|
-
|
|
4630
|
+
const sendRequest = () => {
|
|
4631
|
+
if (!request) return;
|
|
4632
|
+
if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
4633
|
+
request.setRequestHeader(key, val);
|
|
4634
|
+
});
|
|
4635
|
+
request.send(requestData || null);
|
|
4636
|
+
};
|
|
4637
|
+
if (xsrfCookieName) {
|
|
4638
|
+
const now = typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
|
|
4639
|
+
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
|
|
4640
|
+
const abortOnTimeout = () => {
|
|
4641
|
+
if (!request) return;
|
|
4642
|
+
const xhr = request;
|
|
4643
|
+
xhr.ontimeout();
|
|
4644
|
+
xhr.abort();
|
|
4645
|
+
};
|
|
4646
|
+
if (deadline !== void 0) {
|
|
4647
|
+
const scheduleTimeout = () => {
|
|
4648
|
+
const remaining = deadline - now();
|
|
4649
|
+
if (remaining > 0) timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
|
|
4650
|
+
else abortOnTimeout();
|
|
4651
|
+
};
|
|
4652
|
+
scheduleTimeout();
|
|
4653
|
+
}
|
|
4654
|
+
cookies_default.readAsync(xsrfCookieName).then((value) => {
|
|
4655
|
+
if (!request) return;
|
|
4656
|
+
if (deadline !== void 0 && now() >= deadline) {
|
|
4657
|
+
abortOnTimeout();
|
|
4658
|
+
return;
|
|
4659
|
+
}
|
|
4660
|
+
if (value) {
|
|
4661
|
+
const headerName = utils_default.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
|
|
4662
|
+
requestHeaders.set(headerName, value);
|
|
4663
|
+
}
|
|
4664
|
+
sendRequest();
|
|
4665
|
+
}).catch((error) => {
|
|
4666
|
+
if (!request) return;
|
|
4667
|
+
reject(AxiosError.from(error, null, config, request));
|
|
4668
|
+
done();
|
|
4669
|
+
request = null;
|
|
4670
|
+
});
|
|
4671
|
+
} else sendRequest();
|
|
4408
4672
|
});
|
|
4409
4673
|
};
|
|
4410
4674
|
//#endregion
|
|
4411
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4675
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
4412
4676
|
var composeSignals = (signals, timeout) => {
|
|
4413
4677
|
signals = signals ? signals.filter(Boolean) : [];
|
|
4414
4678
|
if (!timeout && !signals.length) return;
|
|
@@ -4431,7 +4695,8 @@ var composeSignals = (signals, timeout) => {
|
|
|
4431
4695
|
timer && clearTimeout(timer);
|
|
4432
4696
|
timer = null;
|
|
4433
4697
|
signals.forEach((signal) => {
|
|
4434
|
-
|
|
4698
|
+
const unsubscribeSignal = utils_default.getSafeProp(signal, "unsubscribe");
|
|
4699
|
+
utils_default.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal, onabort) : signal.removeEventListener("abort", onabort);
|
|
4435
4700
|
});
|
|
4436
4701
|
signals = null;
|
|
4437
4702
|
};
|
|
@@ -4448,7 +4713,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
4448
4713
|
return signal;
|
|
4449
4714
|
};
|
|
4450
4715
|
//#endregion
|
|
4451
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4716
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
4452
4717
|
var streamChunk = function* (chunk, chunkSize) {
|
|
4453
4718
|
let len = chunk.byteLength;
|
|
4454
4719
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -4516,12 +4781,96 @@ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
4516
4781
|
}, { highWaterMark: 2 });
|
|
4517
4782
|
};
|
|
4518
4783
|
//#endregion
|
|
4519
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4784
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js
|
|
4785
|
+
var CRLF = "\r\n";
|
|
4786
|
+
var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF);
|
|
4787
|
+
var escapeName = (value) => String(value).replace(/[\r\n"]/g, (char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22");
|
|
4788
|
+
var stringBytes = (value, normalize) => {
|
|
4789
|
+
let length = 0;
|
|
4790
|
+
for (let i = 0; i < value.length; i++) {
|
|
4791
|
+
const code = value.charCodeAt(i);
|
|
4792
|
+
if (normalize && (code === 13 || code === 10)) {
|
|
4793
|
+
if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
|
|
4794
|
+
length += 2;
|
|
4795
|
+
} else if (code < 128) length++;
|
|
4796
|
+
else if (code < 2048) length += 2;
|
|
4797
|
+
else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
|
|
4798
|
+
length += 4;
|
|
4799
|
+
i++;
|
|
4800
|
+
} else length += 3;
|
|
4801
|
+
}
|
|
4802
|
+
return length;
|
|
4803
|
+
};
|
|
4804
|
+
var FormDataError = class extends TypeError {
|
|
4805
|
+
constructor(message, reason) {
|
|
4806
|
+
super(message);
|
|
4807
|
+
this.name = "FormDataError";
|
|
4808
|
+
this.reason = reason;
|
|
4809
|
+
}
|
|
4810
|
+
};
|
|
4811
|
+
function formDataToBlob(form, Blob, limit, limitError, boundary) {
|
|
4812
|
+
if (!utils_default.isFunction(Blob)) throw new FormDataError("Blob is not supported", "blob");
|
|
4813
|
+
if (!utils_default.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) throw new FormDataError("Invalid multipart boundary", "boundary");
|
|
4814
|
+
const footer = "--" + boundary + "--\r\n";
|
|
4815
|
+
let length = footer.length;
|
|
4816
|
+
const parts = [];
|
|
4817
|
+
const checkLength = (extra) => {
|
|
4818
|
+
if (length + extra > limit) throw limitError();
|
|
4819
|
+
};
|
|
4820
|
+
checkLength(0);
|
|
4821
|
+
for (const [name, value] of form) {
|
|
4822
|
+
const isString = utils_default.isString(value);
|
|
4823
|
+
const valueLength = isString ? stringBytes(value, true) : value.size;
|
|
4824
|
+
if (!Number.isFinite(valueLength) || valueLength < 0) throw new FormDataError("Unsupported FormData part size", "part");
|
|
4825
|
+
checkLength(valueLength + stringBytes(name, true) + (!isString && value.name ? stringBytes(value.name, false) : 0) + (!isString && value.type ? stringBytes(value.type, false) : 0));
|
|
4826
|
+
let header = "--" + boundary + "\r\nContent-Disposition: form-data; name=\"" + escapeName(normalizeLines(name)) + "\"";
|
|
4827
|
+
if (!isString) header += "; filename=\"" + escapeName(utils_default.isString(value.name) ? value.name : "blob") + "\"\r\nContent-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
4828
|
+
header += "\r\n\r\n";
|
|
4829
|
+
const partLength = stringBytes(header, false) + valueLength + 2;
|
|
4830
|
+
checkLength(partLength);
|
|
4831
|
+
length += partLength;
|
|
4832
|
+
parts.push({
|
|
4833
|
+
header,
|
|
4834
|
+
value,
|
|
4835
|
+
isString
|
|
4836
|
+
});
|
|
4837
|
+
}
|
|
4838
|
+
const blobParts = [];
|
|
4839
|
+
for (const part of parts) blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF);
|
|
4840
|
+
blobParts.push(footer);
|
|
4841
|
+
return new Blob(blobParts, { type: "multipart/form-data; boundary=" + boundary });
|
|
4842
|
+
}
|
|
4843
|
+
//#endregion
|
|
4844
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js
|
|
4845
|
+
function createMultipartBody(form, Blob, limit, limitError, boundary) {
|
|
4846
|
+
if (!utils_default.isFunction(Blob)) throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
4847
|
+
if (boundary === void 0) {
|
|
4848
|
+
if (utils_default.isFunction(platform_default.generateString)) boundary = "axios-" + platform_default.generateString(36, "0123456789abcdef");
|
|
4849
|
+
else {
|
|
4850
|
+
const crypto = utils_default.global.crypto;
|
|
4851
|
+
if (!crypto || !utils_default.isFunction(crypto.getRandomValues)) throw new AxiosError("Random byte generation is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
4852
|
+
const random = /* @__PURE__ */ new Uint8Array(18);
|
|
4853
|
+
crypto.getRandomValues(random);
|
|
4854
|
+
boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
|
|
4855
|
+
}
|
|
4856
|
+
}
|
|
4857
|
+
try {
|
|
4858
|
+
return formDataToBlob(form, Blob, limit, limitError, boundary);
|
|
4859
|
+
} catch (error) {
|
|
4860
|
+
if (error instanceof FormDataError) {
|
|
4861
|
+
const code = error.reason === "boundary" ? AxiosError.ERR_BAD_OPTION_VALUE : AxiosError.ERR_BAD_REQUEST;
|
|
4862
|
+
throw new AxiosError(error.message, code);
|
|
4863
|
+
}
|
|
4864
|
+
throw error;
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
//#endregion
|
|
4868
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
4520
4869
|
/**
|
|
4521
4870
|
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
4522
4871
|
* - Fetch percent-decodes a base64 body before decoding it.
|
|
4523
4872
|
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
4524
|
-
*
|
|
4873
|
+
* percent-decoded body, including ignored characters and content after padding.
|
|
4525
4874
|
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
4526
4875
|
*/
|
|
4527
4876
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
@@ -4568,14 +4917,14 @@ var estimatePercentDecodedBase64Bytes = (body) => {
|
|
|
4568
4917
|
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) return estimateBase64BufferAllocation(body);
|
|
4569
4918
|
return base64Bytes(significant);
|
|
4570
4919
|
};
|
|
4571
|
-
var estimateDataURLBytes = (url, estimateBase64) => {
|
|
4920
|
+
var estimateDataURLBytes = (url, estimateBase64, base64Pattern) => {
|
|
4572
4921
|
if (!url || typeof url !== "string") return 0;
|
|
4573
|
-
if (
|
|
4922
|
+
if (!/^data:/i.test(url)) return 0;
|
|
4574
4923
|
const comma = url.indexOf(",");
|
|
4575
4924
|
if (comma < 0) return 0;
|
|
4576
4925
|
const meta = url.slice(5, comma);
|
|
4577
4926
|
const body = url.slice(comma + 1);
|
|
4578
|
-
if (
|
|
4927
|
+
if (base64Pattern.test(meta)) return estimateBase64(body);
|
|
4579
4928
|
let bytes = 0;
|
|
4580
4929
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
4581
4930
|
const c = body.charCodeAt(i);
|
|
@@ -4602,13 +4951,13 @@ var estimateDataURLBytes = (url, estimateBase64) => {
|
|
|
4602
4951
|
*/
|
|
4603
4952
|
function estimateDataURLDecodedBytes(url) {
|
|
4604
4953
|
const fragmentIndex = typeof url === "string" ? url.indexOf("#") : -1;
|
|
4605
|
-
return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
4954
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes, /; *base64[\t\n\f\r ]*$/i);
|
|
4606
4955
|
}
|
|
4607
4956
|
//#endregion
|
|
4608
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4609
|
-
var VERSION = "1.
|
|
4957
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
4958
|
+
var VERSION = "1.21.0";
|
|
4610
4959
|
//#endregion
|
|
4611
|
-
//#region node_modules/.pnpm/axios@1.
|
|
4960
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
4612
4961
|
var DEFAULT_CHUNK_SIZE = 65536;
|
|
4613
4962
|
var DEFAULT_REQUEST_OPTIONS = {
|
|
4614
4963
|
cache: "default",
|
|
@@ -4657,9 +5006,11 @@ var factory = (env) => {
|
|
|
4657
5006
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
4658
5007
|
env = utils_default.merge.call({ skipUndefined: true }, {
|
|
4659
5008
|
Request: globalObject.Request,
|
|
4660
|
-
Response: globalObject.Response
|
|
5009
|
+
Response: globalObject.Response,
|
|
5010
|
+
Blob: globalObject.Blob
|
|
4661
5011
|
}, env);
|
|
4662
|
-
const
|
|
5012
|
+
const envFetch = utils_default.hasOwnProp(env, "fetch") ? env.fetch : void 0;
|
|
5013
|
+
const { Request, Response, Blob } = env;
|
|
4663
5014
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
4664
5015
|
const isRequestSupported = isFunction(Request);
|
|
4665
5016
|
const isResponseSupported = isFunction(Response);
|
|
@@ -4681,6 +5032,11 @@ var factory = (env) => {
|
|
|
4681
5032
|
return duplexAccessed && !hasContentType;
|
|
4682
5033
|
});
|
|
4683
5034
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
5035
|
+
const requestDefaults = Object.assign(Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
5036
|
+
if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
5037
|
+
delete requestDefaults.cache;
|
|
5038
|
+
if (!test(() => new Request(platform_default.origin, requestDefaults))) requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
5039
|
+
}
|
|
4684
5040
|
const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
|
|
4685
5041
|
isFetchSupported && (() => {
|
|
4686
5042
|
[
|
|
@@ -4700,10 +5056,6 @@ var factory = (env) => {
|
|
|
4700
5056
|
const getBodyLength = async (body) => {
|
|
4701
5057
|
if (body == null) return 0;
|
|
4702
5058
|
if (utils_default.isBlob(body)) return body.size;
|
|
4703
|
-
if (utils_default.isSpecCompliantForm(body)) return (await new Request(platform_default.origin, {
|
|
4704
|
-
method: "POST",
|
|
4705
|
-
body
|
|
4706
|
-
}).arrayBuffer()).byteLength;
|
|
4707
5059
|
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) return body.byteLength;
|
|
4708
5060
|
if (utils_default.isURLSearchParams(body)) body = body + "";
|
|
4709
5061
|
if (utils_default.isString(body)) return (await encodeText(body)).byteLength;
|
|
@@ -4726,6 +5078,7 @@ var factory = (env) => {
|
|
|
4726
5078
|
});
|
|
4727
5079
|
let requestContentLength;
|
|
4728
5080
|
let pendingBodyError = null;
|
|
5081
|
+
let pendingResponseError = null;
|
|
4729
5082
|
const maxBodyLengthError = () => new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
4730
5083
|
try {
|
|
4731
5084
|
let auth = void 0;
|
|
@@ -4734,8 +5087,9 @@ var factory = (env) => {
|
|
|
4734
5087
|
username: utils_default.getSafeProp(configAuth, "username") || "",
|
|
4735
5088
|
password: utils_default.getSafeProp(configAuth, "password") || ""
|
|
4736
5089
|
};
|
|
5090
|
+
let parsedURL;
|
|
4737
5091
|
if (maybeWithAuthCredentials(url)) {
|
|
4738
|
-
|
|
5092
|
+
parsedURL = new URL(url, platform_default.origin);
|
|
4739
5093
|
if (!auth && (parsedURL.username || parsedURL.password)) auth = {
|
|
4740
5094
|
username: decodeURIComponentSafe(parsedURL.username),
|
|
4741
5095
|
password: decodeURIComponentSafe(parsedURL.password)
|
|
@@ -4750,8 +5104,19 @@ var factory = (env) => {
|
|
|
4750
5104
|
headers.delete("authorization");
|
|
4751
5105
|
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
4752
5106
|
}
|
|
4753
|
-
if (hasMaxContentLength &&
|
|
4754
|
-
if (estimateDataURLDecodedBytes(
|
|
5107
|
+
if (hasMaxContentLength && parsedURL && parsedURL.protocol === "data:") {
|
|
5108
|
+
if (estimateDataURLDecodedBytes(parsedURL.href) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
5109
|
+
}
|
|
5110
|
+
const formContentType = utils_default.isSpecCompliantForm(data) && AxiosHeaders.from(own("headers")).getContentType();
|
|
5111
|
+
let formBoundary;
|
|
5112
|
+
if (utils_default.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
|
|
5113
|
+
const parameters = AxiosHeaders.parseParameters(formContentType);
|
|
5114
|
+
if (utils_default.hasOwnProp(parameters, "boundary")) formBoundary = parameters.boundary;
|
|
5115
|
+
}
|
|
5116
|
+
if (utils_default.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
|
|
5117
|
+
data = createMultipartBody(data, Blob, hasMaxBodyLength ? maxBodyLength : Infinity, maxBodyLengthError, formBoundary);
|
|
5118
|
+
headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
|
|
5119
|
+
requestContentLength = data.size;
|
|
4755
5120
|
}
|
|
4756
5121
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
4757
5122
|
const outboundLength = await getBodyLength(data);
|
|
@@ -4807,7 +5172,7 @@ var factory = (env) => {
|
|
|
4807
5172
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
4808
5173
|
});
|
|
4809
5174
|
if (isRequestSupported) {
|
|
4810
|
-
utils_default.forEach(
|
|
5175
|
+
utils_default.forEach(requestDefaults, (value, key) => {
|
|
4811
5176
|
if (resolvedOptions[key] === void 0) resolvedOptions[key] = value;
|
|
4812
5177
|
});
|
|
4813
5178
|
if (resolvedOptions.signal === void 0) resolvedOptions.signal = null;
|
|
@@ -4840,7 +5205,7 @@ var factory = (env) => {
|
|
|
4840
5205
|
const onChunkProgress = (loadedBytes) => {
|
|
4841
5206
|
if (hasMaxContentLength) {
|
|
4842
5207
|
bytesRead = loadedBytes;
|
|
4843
|
-
if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
5208
|
+
if (bytesRead > maxContentLength) throw pendingResponseError = new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
4844
5209
|
}
|
|
4845
5210
|
onProgress && onProgress(loadedBytes);
|
|
4846
5211
|
};
|
|
@@ -4890,6 +5255,7 @@ var factory = (env) => {
|
|
|
4890
5255
|
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
4891
5256
|
throw pendingBodyError;
|
|
4892
5257
|
}
|
|
5258
|
+
if (pendingResponseError) throw pendingResponseError;
|
|
4893
5259
|
if (err instanceof AxiosError) {
|
|
4894
5260
|
request && !err.request && (err.request = request);
|
|
4895
5261
|
throw err;
|
|
@@ -4911,12 +5277,22 @@ var factory = (env) => {
|
|
|
4911
5277
|
};
|
|
4912
5278
|
var seedCache = /* @__PURE__ */ new Map();
|
|
4913
5279
|
var getFetch = (config) => {
|
|
4914
|
-
|
|
4915
|
-
const
|
|
5280
|
+
const env = Object.create(null);
|
|
5281
|
+
const configuredEnv = config && utils_default.hasOwnProp(config, "env") && config.env;
|
|
5282
|
+
[
|
|
5283
|
+
"fetch",
|
|
5284
|
+
"Request",
|
|
5285
|
+
"Response",
|
|
5286
|
+
"Blob"
|
|
5287
|
+
].forEach((key) => {
|
|
5288
|
+
if (configuredEnv && utils_default.hasOwnProp(configuredEnv, key)) env[key] = configuredEnv[key];
|
|
5289
|
+
});
|
|
5290
|
+
const { fetch, Request, Response, Blob } = env;
|
|
4916
5291
|
const seeds = [
|
|
4917
5292
|
Request,
|
|
4918
5293
|
Response,
|
|
4919
|
-
fetch
|
|
5294
|
+
fetch,
|
|
5295
|
+
Blob
|
|
4920
5296
|
];
|
|
4921
5297
|
let i = seeds.length, seed, target, map = seedCache;
|
|
4922
5298
|
while (i--) {
|
|
@@ -4929,7 +5305,7 @@ var getFetch = (config) => {
|
|
|
4929
5305
|
};
|
|
4930
5306
|
getFetch();
|
|
4931
5307
|
//#endregion
|
|
4932
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5308
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
4933
5309
|
/**
|
|
4934
5310
|
* Known adapters mapping.
|
|
4935
5311
|
* Provides environment-specific adapters for Axios:
|
|
@@ -5021,7 +5397,7 @@ var adapters_default = {
|
|
|
5021
5397
|
adapters: knownAdapters
|
|
5022
5398
|
};
|
|
5023
5399
|
//#endregion
|
|
5024
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5400
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
5025
5401
|
/**
|
|
5026
5402
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
5027
5403
|
*
|
|
@@ -5034,6 +5410,20 @@ function throwIfCancellationRequested(config) {
|
|
|
5034
5410
|
if (config.signal && config.signal.aborted) throw new CanceledError(null, config);
|
|
5035
5411
|
}
|
|
5036
5412
|
/**
|
|
5413
|
+
* Milliseconds elapsed since `start`, floored at zero.
|
|
5414
|
+
*
|
|
5415
|
+
* Wall-clock, to match the rest of the codebase (speedometer, throttle,
|
|
5416
|
+
* AxiosTransformStream). A backwards clock adjustment mid-request would
|
|
5417
|
+
* otherwise produce a negative duration, so the result is clamped.
|
|
5418
|
+
*
|
|
5419
|
+
* @param {number} start Timestamp from `Date.now()`
|
|
5420
|
+
*
|
|
5421
|
+
* @returns {number} Non-negative elapsed milliseconds
|
|
5422
|
+
*/
|
|
5423
|
+
function elapsedSince(start) {
|
|
5424
|
+
return Math.max(0, Date.now() - start);
|
|
5425
|
+
}
|
|
5426
|
+
/**
|
|
5037
5427
|
* Dispatch a request to the server using the configured adapter.
|
|
5038
5428
|
*
|
|
5039
5429
|
* @param {object} config The config that is to be used for the request
|
|
@@ -5050,8 +5440,11 @@ function dispatchRequest(_config) {
|
|
|
5050
5440
|
"put",
|
|
5051
5441
|
"patch"
|
|
5052
5442
|
].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
5053
|
-
|
|
5443
|
+
const adapter = adapters_default.getAdapter(config.adapter || defaults.adapter, config);
|
|
5444
|
+
const start = Date.now();
|
|
5445
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
5054
5446
|
throwIfCancellationRequested(config);
|
|
5447
|
+
response.duration = elapsedSince(start);
|
|
5055
5448
|
config.response = response;
|
|
5056
5449
|
try {
|
|
5057
5450
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -5064,6 +5457,7 @@ function dispatchRequest(_config) {
|
|
|
5064
5457
|
if (!isCancel(reason)) {
|
|
5065
5458
|
throwIfCancellationRequested(config);
|
|
5066
5459
|
if (reason && reason.response) {
|
|
5460
|
+
reason.response.duration = elapsedSince(start);
|
|
5067
5461
|
config.response = reason.response;
|
|
5068
5462
|
try {
|
|
5069
5463
|
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
@@ -5077,7 +5471,7 @@ function dispatchRequest(_config) {
|
|
|
5077
5471
|
});
|
|
5078
5472
|
}
|
|
5079
5473
|
//#endregion
|
|
5080
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5474
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
5081
5475
|
var validators$1 = {};
|
|
5082
5476
|
[
|
|
5083
5477
|
"object",
|
|
@@ -5150,8 +5544,27 @@ var validator_default = {
|
|
|
5150
5544
|
validators: validators$1
|
|
5151
5545
|
};
|
|
5152
5546
|
//#endregion
|
|
5153
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5547
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
5154
5548
|
var validators = validator_default.validators;
|
|
5549
|
+
var isHeadersBucket = (value) => {
|
|
5550
|
+
if (value == null || utils_default.isPlainObject(value) || value instanceof AxiosHeaders) return true;
|
|
5551
|
+
try {
|
|
5552
|
+
return utils_default.isObject(value) && utils_default.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && [
|
|
5553
|
+
"toJSON",
|
|
5554
|
+
"set",
|
|
5555
|
+
"get",
|
|
5556
|
+
"has",
|
|
5557
|
+
"delete",
|
|
5558
|
+
"clear",
|
|
5559
|
+
"normalize",
|
|
5560
|
+
"concat",
|
|
5561
|
+
"toString",
|
|
5562
|
+
Symbol.iterator
|
|
5563
|
+
].every((method) => utils_default.isFunction(utils_default.getSafeProp(value, method)));
|
|
5564
|
+
} catch (e) {
|
|
5565
|
+
return false;
|
|
5566
|
+
}
|
|
5567
|
+
};
|
|
5155
5568
|
/**
|
|
5156
5569
|
* Create a new instance of Axios
|
|
5157
5570
|
*
|
|
@@ -5192,8 +5605,12 @@ var Axios = class {
|
|
|
5192
5605
|
else if (stack) {
|
|
5193
5606
|
const firstNewlineIndex = stack.indexOf("\n");
|
|
5194
5607
|
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
5195
|
-
const
|
|
5196
|
-
|
|
5608
|
+
const duplicateCheckSuffix = secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
|
|
5609
|
+
const currentStack = String(err.stack);
|
|
5610
|
+
const causeIndex = getCauseStackIndex(err, currentStack);
|
|
5611
|
+
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
5612
|
+
const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
|
|
5613
|
+
if (!stackHead.endsWith(duplicateCheckSuffix)) err.stack = stackHead + "\n" + stack + causeSection;
|
|
5197
5614
|
}
|
|
5198
5615
|
} catch (e) {}
|
|
5199
5616
|
throw err;
|
|
@@ -5212,7 +5629,8 @@ var Axios = class {
|
|
|
5212
5629
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
5213
5630
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
5214
5631
|
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
5215
|
-
validateStatusUndefinedResolves: validators.transitional(validators.boolean)
|
|
5632
|
+
validateStatusUndefinedResolves: validators.transitional(validators.boolean),
|
|
5633
|
+
encodeBasicAuthUsername: validators.transitional(validators.boolean)
|
|
5216
5634
|
}, false);
|
|
5217
5635
|
if (paramsSerializer != null) {
|
|
5218
5636
|
if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
|
|
@@ -5221,16 +5639,18 @@ var Axios = class {
|
|
|
5221
5639
|
serialize: validators.function
|
|
5222
5640
|
}, true);
|
|
5223
5641
|
}
|
|
5224
|
-
if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
5642
|
+
if (config.allowAbsoluteUrls !== void 0) {} else if (utils_default.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
5225
5643
|
else config.allowAbsoluteUrls = true;
|
|
5226
5644
|
validator_default.assertOptions(config, {
|
|
5227
5645
|
baseUrl: validators.spelling("baseURL"),
|
|
5228
5646
|
withXsrfToken: validators.spelling("withXSRFToken")
|
|
5229
5647
|
}, true);
|
|
5230
5648
|
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
5231
|
-
|
|
5649
|
+
const commonHeaders = utils_default.getSafeProp(headers, "common");
|
|
5650
|
+
const methodHeaders = utils_default.getSafeProp(headers, config.method);
|
|
5651
|
+
const contextHeaders = headers && utils_default.merge(isHeadersBucket(commonHeaders) ? commonHeaders : void 0, isHeadersBucket(methodHeaders) ? methodHeaders : void 0);
|
|
5232
5652
|
headers && utils_default.forEach(methodList.concat("common"), (method) => {
|
|
5233
|
-
delete headers[method];
|
|
5653
|
+
if (isHeadersBucket(utils_default.getSafeProp(headers, method))) delete headers[method];
|
|
5234
5654
|
});
|
|
5235
5655
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
5236
5656
|
const requestInterceptorChain = [];
|
|
@@ -5300,7 +5720,7 @@ utils_default.forEach([
|
|
|
5300
5720
|
"head",
|
|
5301
5721
|
"options"
|
|
5302
5722
|
], function forEachMethodNoData(method) {
|
|
5303
|
-
Axios.prototype[method] = function(url, config) {
|
|
5723
|
+
Axios.prototype[method] = async function(url, config) {
|
|
5304
5724
|
return this.request(mergeConfig(config || {}, {
|
|
5305
5725
|
method,
|
|
5306
5726
|
url,
|
|
@@ -5315,7 +5735,7 @@ utils_default.forEach([
|
|
|
5315
5735
|
"query"
|
|
5316
5736
|
], function forEachMethodWithData(method) {
|
|
5317
5737
|
function generateHTTPMethod(isForm) {
|
|
5318
|
-
return function httpMethod(url, data, config) {
|
|
5738
|
+
return async function httpMethod(url, data, config) {
|
|
5319
5739
|
return this.request(mergeConfig(config || {}, {
|
|
5320
5740
|
method,
|
|
5321
5741
|
headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
|
|
@@ -5328,7 +5748,7 @@ utils_default.forEach([
|
|
|
5328
5748
|
if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
5329
5749
|
});
|
|
5330
5750
|
//#endregion
|
|
5331
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5751
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
5332
5752
|
/**
|
|
5333
5753
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
5334
5754
|
*
|
|
@@ -5416,7 +5836,7 @@ var CancelToken = class CancelToken {
|
|
|
5416
5836
|
}
|
|
5417
5837
|
};
|
|
5418
5838
|
//#endregion
|
|
5419
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5839
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
5420
5840
|
/**
|
|
5421
5841
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
5422
5842
|
*
|
|
@@ -5444,7 +5864,7 @@ function spread(callback) {
|
|
|
5444
5864
|
};
|
|
5445
5865
|
}
|
|
5446
5866
|
//#endregion
|
|
5447
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5867
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
5448
5868
|
/**
|
|
5449
5869
|
* Determines whether the payload is an error thrown by Axios
|
|
5450
5870
|
*
|
|
@@ -5456,7 +5876,7 @@ function isAxiosError(payload) {
|
|
|
5456
5876
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
5457
5877
|
}
|
|
5458
5878
|
//#endregion
|
|
5459
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5879
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
5460
5880
|
var HttpStatusCode = {
|
|
5461
5881
|
Continue: 100,
|
|
5462
5882
|
SwitchingProtocols: 101,
|
|
@@ -5541,7 +5961,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
5541
5961
|
if (HttpStatusCode[value] === void 0) HttpStatusCode[value] = key;
|
|
5542
5962
|
});
|
|
5543
5963
|
//#endregion
|
|
5544
|
-
//#region node_modules/.pnpm/axios@1.
|
|
5964
|
+
//#region node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
5545
5965
|
/**
|
|
5546
5966
|
* Create an instance of Axios
|
|
5547
5967
|
*
|
|
@@ -13563,6 +13983,10 @@ var FdsSearchSelectPro_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13563
13983
|
toggleMultipleSelection(item);
|
|
13564
13984
|
filterAndPaginate();
|
|
13565
13985
|
};
|
|
13986
|
+
const handleOptionClick = (event, item) => {
|
|
13987
|
+
if (isMultiple.value && event.target.closest("label")) return;
|
|
13988
|
+
handleMultipleSelectionChange(item);
|
|
13989
|
+
};
|
|
13566
13990
|
const handleSingleSelection = (item) => {
|
|
13567
13991
|
const firstField = searchFields.value[0];
|
|
13568
13992
|
searchTerm.value = (firstField ? item[firstField] : "") || "";
|
|
@@ -13815,7 +14239,7 @@ var FdsSearchSelectPro_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13815
14239
|
innerHTML: handleMatchingString(item)
|
|
13816
14240
|
}, null, 14, _hoisted_6$7)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
13817
14241
|
key: 1,
|
|
13818
|
-
onClick: () =>
|
|
14242
|
+
onClick: (event) => handleOptionClick(event, item),
|
|
13819
14243
|
class: (0, vue.normalizeClass)([labelClasses.value, listItemClasses.value]),
|
|
13820
14244
|
style: (0, vue.normalizeStyle)((0, vue.unref)(optionPaddingStyle)(item))
|
|
13821
14245
|
}, [__props.multiple ? ((0, vue.openBlock)(), (0, vue.createBlock)(FdsCheckbox_default, {
|