fdb2 1.0.27 → 1.0.31
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/bin/fdb2.js +18 -2
- package/dist/public/.vite/manifest.json +4 -4
- package/dist/public/bootstrap.js +6 -5
- package/dist/public/explorer.js +318 -193
- package/dist/public/index.css +59 -0
- package/dist/public/index.js +486 -259
- package/dist/public/layout.js +2 -2
- package/dist/public/rolldown-runtime.js +8 -1
- package/dist/public/vconsole.min.js +0 -26
- package/dist/public/vue.js +5238 -5192
- package/dist/server/cli/format.d.ts +6 -0
- package/dist/server/cli/format.d.ts.map +1 -0
- package/dist/server/cli/format.js +116 -0
- package/dist/server/cli/format.js.map +1 -0
- package/dist/server/cli/format.ts +104 -0
- package/dist/server/cli/main.d.ts +3 -0
- package/dist/server/cli/main.d.ts.map +1 -0
- package/dist/server/cli/main.js +710 -0
- package/dist/server/cli/main.js.map +1 -0
- package/dist/server/cli/main.ts +746 -0
- package/dist/server/cli/parse.d.ts +18 -0
- package/dist/server/cli/parse.d.ts.map +1 -0
- package/dist/server/cli/parse.js +150 -0
- package/dist/server/cli/parse.js.map +1 -0
- package/dist/server/cli/parse.ts +148 -0
- package/dist/server/core/column-spec.d.ts +29 -0
- package/dist/server/core/column-spec.d.ts.map +1 -0
- package/dist/server/core/column-spec.js +148 -0
- package/dist/server/core/column-spec.js.map +1 -0
- package/dist/server/core/column-spec.ts +147 -0
- package/dist/server/core/config.d.ts +34 -0
- package/dist/server/core/config.d.ts.map +1 -0
- package/dist/server/core/config.js +187 -0
- package/dist/server/core/config.js.map +1 -0
- package/dist/server/core/config.ts +165 -0
- package/dist/server/core/db-api.d.ts +169 -0
- package/dist/server/core/db-api.d.ts.map +1 -0
- package/dist/server/core/db-api.js +1078 -0
- package/dist/server/core/db-api.js.map +1 -0
- package/dist/server/core/db-api.ts +1181 -0
- package/dist/server/core/dialect.d.ts +44 -0
- package/dist/server/core/dialect.d.ts.map +1 -0
- package/dist/server/core/dialect.js +260 -0
- package/dist/server/core/dialect.js.map +1 -0
- package/dist/server/core/dialect.ts +293 -0
- package/dist/server/core/errors.d.ts +22 -0
- package/dist/server/core/errors.d.ts.map +1 -0
- package/dist/server/core/errors.js +61 -0
- package/dist/server/core/errors.js.map +1 -0
- package/dist/server/core/errors.ts +58 -0
- package/dist/server/core/filter-dsl.d.ts +39 -0
- package/dist/server/core/filter-dsl.d.ts.map +1 -0
- package/dist/server/core/filter-dsl.js +167 -0
- package/dist/server/core/filter-dsl.js.map +1 -0
- package/dist/server/core/filter-dsl.ts +180 -0
- package/dist/server/core/guard.d.ts +54 -0
- package/dist/server/core/guard.d.ts.map +1 -0
- package/dist/server/core/guard.js +207 -0
- package/dist/server/core/guard.js.map +1 -0
- package/dist/server/core/guard.ts +205 -0
- package/dist/server/core/query-builder.d.ts +72 -0
- package/dist/server/core/query-builder.d.ts.map +1 -0
- package/dist/server/core/query-builder.js +478 -0
- package/dist/server/core/query-builder.js.map +1 -0
- package/dist/server/core/query-builder.ts +502 -0
- package/dist/server/service/connection.service.d.ts.map +1 -1
- package/dist/server/service/connection.service.js +7 -3
- package/dist/server/service/connection.service.js.map +1 -1
- package/dist/server/service/connection.service.ts +5 -3
- package/dist/server/utils/data-dir.d.ts.map +1 -1
- package/dist/server/utils/data-dir.js +2 -0
- package/dist/server/utils/data-dir.js.map +1 -1
- package/dist/server/utils/data-dir.ts +2 -0
- package/electron/updater.js +12 -66
- package/package.json +22 -22
package/dist/public/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./layout.js","./rolldown-runtime.js","./vue.js","./layout.css","./explorer.js","./explorer.css","./vconsole.min.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { a as __toESM, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
3
|
-
import { $ as reactive, A as getCurrentInstance, B as renderSlot, C as createCommentVNode, D as createTextVNode, H as resolveDynamicComponent, I as onMounted, K as effectScope, L as onUnmounted, N as inject, O as createVNode, P as nextTick, Q as onScopeDispose, R as openBlock, S as createBlock, U as watch, V as resolveComponent, X as isRef, Y as isReactive, Z as markRaw, a as
|
|
3
|
+
import { $ as reactive, A as getCurrentInstance, B as renderSlot, C as createCommentVNode, D as createTextVNode, F as onBeforeUnmount, H as resolveDynamicComponent, I as onMounted, K as effectScope, L as onUnmounted, N as inject, O as createVNode, P as nextTick, Q as onScopeDispose, R as openBlock, S as createBlock, U as watch, V as resolveComponent, X as isRef, Y as isReactive, Z as markRaw, a as init_vue_router, at as normalizeClass, b as computed, c as createI18n, d as init_vue_runtime_esm_bundler, et as ref, f as createApp, i as createWebHistory, j as hasInjectionContext, k as defineComponent, l as init_vue_i18n, n as useTitle, nt as toRefs, ot as normalizeStyle, q as getCurrentScope, r as createRouter, rt as unref, st as toDisplayString, t as init_core, tt as toRaw, u as useI18n, v as withModifiers, w as createElementBlock, x as createBaseVNode, y as Fragment, z as renderList } from "./vue.js";
|
|
4
4
|
import { i as init_bootstrap, n as init_bootstrap_esm, r as init_bootstrap_icons, t as Modal } from "./bootstrap.js";
|
|
5
5
|
//#region \0vite/modulepreload-polyfill.js
|
|
6
6
|
(function polyfill() {
|
|
@@ -33,30 +33,86 @@ import { i as init_bootstrap, n as init_bootstrap_esm, r as init_bootstrap_icons
|
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
//#region src/platform/App.vue?vue&type=script&setup=true&lang.ts
|
|
37
|
+
var _hoisted_1$5, _hoisted_2$5, DOWNLOAD_URL, App_vue_vue_type_script_setup_true_lang_default;
|
|
38
|
+
var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
39
|
+
init_vue_runtime_esm_bundler();
|
|
40
|
+
init_vue_i18n();
|
|
41
|
+
_hoisted_1$5 = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "update-banner"
|
|
43
44
|
};
|
|
45
|
+
_hoisted_2$5 = { class: "update-banner-text" };
|
|
46
|
+
DOWNLOAD_URL = "https://github.com/fefeding/fdb2/releases/latest";
|
|
47
|
+
App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
48
|
+
__name: "App",
|
|
49
|
+
setup(__props) {
|
|
50
|
+
const { t } = useI18n();
|
|
51
|
+
const updateState = reactive({
|
|
52
|
+
showBanner: false,
|
|
53
|
+
version: ""
|
|
54
|
+
});
|
|
55
|
+
let unsubscribeUpdate = null;
|
|
56
|
+
let unsubscribeMenu = null;
|
|
57
|
+
/** 跳转到下载页(在 Electron 中会通过外部浏览器打开) */
|
|
58
|
+
function handleDownload() {
|
|
59
|
+
window.open(DOWNLOAD_URL, "_blank");
|
|
60
|
+
}
|
|
61
|
+
function handleDismiss() {
|
|
62
|
+
updateState.showBanner = false;
|
|
63
|
+
}
|
|
64
|
+
onMounted(() => {
|
|
65
|
+
const electronAPI = window.electronAPI;
|
|
66
|
+
if (!electronAPI?.updater) return;
|
|
67
|
+
unsubscribeUpdate = electronAPI.updater.onEvent((msg) => {
|
|
68
|
+
const { event, data } = msg;
|
|
69
|
+
if (event === "available") {
|
|
70
|
+
updateState.version = data?.version || "";
|
|
71
|
+
updateState.showBanner = true;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
unsubscribeMenu = electronAPI.updater.onMenuAction((action) => {
|
|
75
|
+
if (action === "check-update") electronAPI?.updater?.checkForUpdates();
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
onBeforeUnmount(() => {
|
|
79
|
+
unsubscribeUpdate?.();
|
|
80
|
+
unsubscribeMenu?.();
|
|
81
|
+
});
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
const _component_router_view = resolveComponent("router-view");
|
|
84
|
+
return openBlock(), createElementBlock(Fragment, null, [updateState.showBanner ? (openBlock(), createElementBlock("div", _hoisted_1$5, [createBaseVNode("div", {
|
|
85
|
+
class: "update-banner-content",
|
|
86
|
+
onClick: handleDownload
|
|
87
|
+
}, [
|
|
88
|
+
_cache[0] || (_cache[0] = createBaseVNode("i", { class: "bi bi-cloud-arrow-down" }, null, -1)),
|
|
89
|
+
createBaseVNode("span", _hoisted_2$5, toDisplayString(unref(t)("update.available", { version: updateState.version })), 1),
|
|
90
|
+
createBaseVNode("button", {
|
|
91
|
+
class: "update-btn",
|
|
92
|
+
onClick: withModifiers(handleDownload, ["stop"])
|
|
93
|
+
}, toDisplayString(unref(t)("update.downloadNow")), 1)
|
|
94
|
+
]), createBaseVNode("button", {
|
|
95
|
+
class: "update-banner-close",
|
|
96
|
+
onClick: handleDismiss
|
|
97
|
+
}, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])])])) : createCommentVNode("", true), createVNode(_component_router_view)], 64);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
44
101
|
}));
|
|
45
102
|
//#endregion
|
|
103
|
+
//#region src/platform/App.vue?vue&type=style&index=0&lang.css
|
|
104
|
+
var init_App_vue_vue_type_style_index_0_lang = __esmMin((() => {}));
|
|
105
|
+
//#endregion
|
|
46
106
|
//#region src/platform/App.vue
|
|
47
|
-
|
|
48
|
-
const _component_router_view = resolveComponent("router-view");
|
|
49
|
-
return openBlock(), createBlock(_component_router_view);
|
|
50
|
-
}
|
|
51
|
-
var _sfc_main, App_default;
|
|
107
|
+
var App_default;
|
|
52
108
|
var init_App = __esmMin((() => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
App_default =
|
|
109
|
+
init_App_vue_vue_type_script_setup_true_lang();
|
|
110
|
+
init_App_vue_vue_type_script_setup_true_lang();
|
|
111
|
+
init_App_vue_vue_type_style_index_0_lang();
|
|
112
|
+
App_default = App_vue_vue_type_script_setup_true_lang_default;
|
|
57
113
|
}));
|
|
58
114
|
//#endregion
|
|
59
|
-
//#region node_modules/.pnpm/axios@1.
|
|
115
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/bind.js
|
|
60
116
|
/**
|
|
61
117
|
* Create a bound version of a function with a specified `this` context
|
|
62
118
|
*
|
|
@@ -71,7 +127,7 @@ function bind(fn, thisArg) {
|
|
|
71
127
|
}
|
|
72
128
|
var init_bind = __esmMin((() => {}));
|
|
73
129
|
//#endregion
|
|
74
|
-
//#region node_modules/.pnpm/axios@1.
|
|
130
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/utils.js
|
|
75
131
|
/**
|
|
76
132
|
* Determine if a value is a Buffer
|
|
77
133
|
*
|
|
@@ -215,12 +271,25 @@ function merge(...objs) {
|
|
|
215
271
|
function isSpecCompliantForm(thing) {
|
|
216
272
|
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
217
273
|
}
|
|
218
|
-
var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase,
|
|
274
|
+
var toString, getPrototypeOf, iterator, toStringTag, hasOwnProperty, hasOwnInPrototypeChain, getSafeProp, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, propertyIsEnumerable, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop$1, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, isSafeIterable, utils_default;
|
|
219
275
|
var init_utils$1 = __esmMin((() => {
|
|
220
276
|
init_bind();
|
|
221
277
|
({toString} = Object.prototype);
|
|
222
278
|
({getPrototypeOf} = Object);
|
|
223
279
|
({iterator, toStringTag} = Symbol);
|
|
280
|
+
hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
281
|
+
hasOwnInPrototypeChain = (thing, prop) => {
|
|
282
|
+
let obj = thing;
|
|
283
|
+
const seen = [];
|
|
284
|
+
while (obj != null && obj !== Object.prototype) {
|
|
285
|
+
if (seen.indexOf(obj) !== -1) return false;
|
|
286
|
+
seen.push(obj);
|
|
287
|
+
if (hasOwnProperty(obj, prop)) return true;
|
|
288
|
+
obj = getPrototypeOf(obj);
|
|
289
|
+
}
|
|
290
|
+
return false;
|
|
291
|
+
};
|
|
292
|
+
getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
224
293
|
kindOf = ((cache) => (thing) => {
|
|
225
294
|
const str = toString.call(thing);
|
|
226
295
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -239,9 +308,9 @@ var init_utils$1 = __esmMin((() => {
|
|
|
239
308
|
isObject = (thing) => thing !== null && typeof thing === "object";
|
|
240
309
|
isBoolean = (thing) => thing === true || thing === false;
|
|
241
310
|
isPlainObject$1 = (val) => {
|
|
242
|
-
if (
|
|
311
|
+
if (!isObject(val)) return false;
|
|
243
312
|
const prototype = getPrototypeOf(val);
|
|
244
|
-
return (prototype === null || prototype === Object.prototype ||
|
|
313
|
+
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
245
314
|
};
|
|
246
315
|
isEmptyObject = (val) => {
|
|
247
316
|
if (!isObject(val) || isBuffer(val)) return false;
|
|
@@ -386,7 +455,6 @@ var init_utils$1 = __esmMin((() => {
|
|
|
386
455
|
return p1.toUpperCase() + p2;
|
|
387
456
|
});
|
|
388
457
|
};
|
|
389
|
-
hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
390
458
|
({propertyIsEnumerable} = Object.prototype);
|
|
391
459
|
isRegExp = kindOfTest("RegExp");
|
|
392
460
|
reduceDescriptors = (obj, reducer) => {
|
|
@@ -468,6 +536,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
468
536
|
})(typeof setImmediate === "function", isFunction$1(_global$1.postMessage));
|
|
469
537
|
asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global$1) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
470
538
|
isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
539
|
+
isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
471
540
|
utils_default = {
|
|
472
541
|
isArray,
|
|
473
542
|
isArrayBuffer,
|
|
@@ -512,6 +581,8 @@ var init_utils$1 = __esmMin((() => {
|
|
|
512
581
|
isHTMLForm,
|
|
513
582
|
hasOwnProperty,
|
|
514
583
|
hasOwnProp: hasOwnProperty,
|
|
584
|
+
hasOwnInPrototypeChain,
|
|
585
|
+
getSafeProp,
|
|
515
586
|
reduceDescriptors,
|
|
516
587
|
freezeMethods,
|
|
517
588
|
toObjectSet,
|
|
@@ -527,11 +598,12 @@ var init_utils$1 = __esmMin((() => {
|
|
|
527
598
|
isThenable,
|
|
528
599
|
setImmediate: _setImmediate,
|
|
529
600
|
asap,
|
|
530
|
-
isIterable
|
|
601
|
+
isIterable,
|
|
602
|
+
isSafeIterable
|
|
531
603
|
};
|
|
532
604
|
}));
|
|
533
605
|
//#endregion
|
|
534
|
-
//#region node_modules/.pnpm/axios@1.
|
|
606
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
535
607
|
var ignoreDuplicateOf, parseHeaders_default;
|
|
536
608
|
var init_parseHeaders = __esmMin((() => {
|
|
537
609
|
init_utils$1();
|
|
@@ -572,7 +644,7 @@ var init_parseHeaders = __esmMin((() => {
|
|
|
572
644
|
};
|
|
573
645
|
}));
|
|
574
646
|
//#endregion
|
|
575
|
-
//#region node_modules/.pnpm/axios@1.
|
|
647
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
576
648
|
function trimSPorHTAB(str) {
|
|
577
649
|
let start = 0;
|
|
578
650
|
let end = str.length;
|
|
@@ -608,7 +680,7 @@ var init_sanitizeHeaderValue = __esmMin((() => {
|
|
|
608
680
|
sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
|
|
609
681
|
}));
|
|
610
682
|
//#endregion
|
|
611
|
-
//#region node_modules/.pnpm/axios@1.
|
|
683
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
612
684
|
function normalizeHeader(header) {
|
|
613
685
|
return header && String(header).trim().toLowerCase();
|
|
614
686
|
}
|
|
@@ -651,14 +723,14 @@ function buildAccessors(obj, header) {
|
|
|
651
723
|
});
|
|
652
724
|
});
|
|
653
725
|
}
|
|
654
|
-
var $internals, isValidHeaderName, AxiosHeaders
|
|
726
|
+
var $internals, isValidHeaderName, AxiosHeaders;
|
|
655
727
|
var init_AxiosHeaders = __esmMin((() => {
|
|
656
728
|
init_utils$1();
|
|
657
729
|
init_parseHeaders();
|
|
658
730
|
init_sanitizeHeaderValue();
|
|
659
731
|
$internals = Symbol("internals");
|
|
660
732
|
isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
661
|
-
AxiosHeaders
|
|
733
|
+
AxiosHeaders = class {
|
|
662
734
|
constructor(headers) {
|
|
663
735
|
headers && this.set(headers);
|
|
664
736
|
}
|
|
@@ -673,11 +745,15 @@ var init_AxiosHeaders = __esmMin((() => {
|
|
|
673
745
|
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
674
746
|
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
675
747
|
else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
676
|
-
else if (utils_default.isObject(header) && utils_default.
|
|
677
|
-
let obj =
|
|
748
|
+
else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
|
|
749
|
+
let obj = Object.create(null), dest, key;
|
|
678
750
|
for (const entry of header) {
|
|
679
751
|
if (!utils_default.isArray(entry)) throw new TypeError("Object iterator must return a key-value pair");
|
|
680
|
-
|
|
752
|
+
key = entry[0];
|
|
753
|
+
if (utils_default.hasOwnProp(obj, key)) {
|
|
754
|
+
dest = obj[key];
|
|
755
|
+
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
756
|
+
} else obj[key] = entry[1];
|
|
681
757
|
}
|
|
682
758
|
setHeaders(obj, valueOrRewrite);
|
|
683
759
|
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
@@ -796,7 +872,7 @@ var init_AxiosHeaders = __esmMin((() => {
|
|
|
796
872
|
return this;
|
|
797
873
|
}
|
|
798
874
|
};
|
|
799
|
-
AxiosHeaders
|
|
875
|
+
AxiosHeaders.accessor([
|
|
800
876
|
"Content-Type",
|
|
801
877
|
"Content-Length",
|
|
802
878
|
"Accept",
|
|
@@ -804,7 +880,7 @@ var init_AxiosHeaders = __esmMin((() => {
|
|
|
804
880
|
"User-Agent",
|
|
805
881
|
"Authorization"
|
|
806
882
|
]);
|
|
807
|
-
utils_default.reduceDescriptors(AxiosHeaders
|
|
883
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
808
884
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
809
885
|
return {
|
|
810
886
|
get: () => value,
|
|
@@ -813,10 +889,10 @@ var init_AxiosHeaders = __esmMin((() => {
|
|
|
813
889
|
}
|
|
814
890
|
};
|
|
815
891
|
});
|
|
816
|
-
utils_default.freezeMethods(AxiosHeaders
|
|
892
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
817
893
|
}));
|
|
818
894
|
//#endregion
|
|
819
|
-
//#region node_modules/.pnpm/axios@1.
|
|
895
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/AxiosError.js
|
|
820
896
|
function hasOwnOrPrototypeToJSON(source) {
|
|
821
897
|
if (utils_default.hasOwnProp(source, "toJSON")) return true;
|
|
822
898
|
let prototype = Object.getPrototypeOf(source);
|
|
@@ -833,7 +909,7 @@ function redactConfig(config, redactKeys) {
|
|
|
833
909
|
if (source === null || typeof source !== "object") return source;
|
|
834
910
|
if (utils_default.isBuffer(source)) return source;
|
|
835
911
|
if (seen.indexOf(source) !== -1) return void 0;
|
|
836
|
-
if (source instanceof AxiosHeaders
|
|
912
|
+
if (source instanceof AxiosHeaders) source = source.toJSON();
|
|
837
913
|
seen.push(source);
|
|
838
914
|
let result;
|
|
839
915
|
if (utils_default.isArray(source)) {
|
|
@@ -858,15 +934,21 @@ function redactConfig(config, redactKeys) {
|
|
|
858
934
|
};
|
|
859
935
|
return visit(config);
|
|
860
936
|
}
|
|
861
|
-
var REDACTED, AxiosError
|
|
937
|
+
var REDACTED, AxiosError;
|
|
862
938
|
var init_AxiosError = __esmMin((() => {
|
|
863
939
|
init_utils$1();
|
|
864
940
|
init_AxiosHeaders();
|
|
865
941
|
REDACTED = "[REDACTED ****]";
|
|
866
|
-
AxiosError
|
|
942
|
+
AxiosError = class AxiosError extends Error {
|
|
867
943
|
static from(error, code, config, request, response, customProps) {
|
|
868
|
-
const axiosError = new AxiosError
|
|
869
|
-
axiosError
|
|
944
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
945
|
+
Object.defineProperty(axiosError, "cause", {
|
|
946
|
+
__proto__: null,
|
|
947
|
+
value: error,
|
|
948
|
+
writable: true,
|
|
949
|
+
enumerable: false,
|
|
950
|
+
configurable: true
|
|
951
|
+
});
|
|
870
952
|
axiosError.name = error.name;
|
|
871
953
|
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
872
954
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -921,26 +1003,26 @@ var init_AxiosError = __esmMin((() => {
|
|
|
921
1003
|
};
|
|
922
1004
|
}
|
|
923
1005
|
};
|
|
924
|
-
AxiosError
|
|
925
|
-
AxiosError
|
|
926
|
-
AxiosError
|
|
927
|
-
AxiosError
|
|
928
|
-
AxiosError
|
|
929
|
-
AxiosError
|
|
930
|
-
AxiosError
|
|
931
|
-
AxiosError
|
|
932
|
-
AxiosError
|
|
933
|
-
AxiosError
|
|
934
|
-
AxiosError
|
|
935
|
-
AxiosError
|
|
936
|
-
AxiosError
|
|
937
|
-
AxiosError
|
|
1006
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
1007
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
1008
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
1009
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
1010
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
1011
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
1012
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
1013
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
1014
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
1015
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
1016
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
1017
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
1018
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1019
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
938
1020
|
}));
|
|
939
1021
|
//#endregion
|
|
940
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1022
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/null.js
|
|
941
1023
|
var init_null = __esmMin((() => {}));
|
|
942
1024
|
//#endregion
|
|
943
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1025
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/toFormData.js
|
|
944
1026
|
/**
|
|
945
1027
|
* Determines if the given thing is a array or js object.
|
|
946
1028
|
*
|
|
@@ -1009,7 +1091,7 @@ function isFlatArray(arr) {
|
|
|
1009
1091
|
*
|
|
1010
1092
|
* @returns
|
|
1011
1093
|
*/
|
|
1012
|
-
function toFormData
|
|
1094
|
+
function toFormData(obj, formData, options) {
|
|
1013
1095
|
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
1014
1096
|
formData = formData || new FormData();
|
|
1015
1097
|
options = utils_default.toFlatObject(options, {
|
|
@@ -1026,15 +1108,34 @@ function toFormData$1(obj, formData, options) {
|
|
|
1026
1108
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
1027
1109
|
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
1028
1110
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
1111
|
+
const stack = [];
|
|
1029
1112
|
if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
|
|
1030
1113
|
function convertValue(value) {
|
|
1031
1114
|
if (value === null) return "";
|
|
1032
1115
|
if (utils_default.isDate(value)) return value.toISOString();
|
|
1033
1116
|
if (utils_default.isBoolean(value)) return value.toString();
|
|
1034
|
-
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError
|
|
1035
|
-
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value))
|
|
1117
|
+
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
1118
|
+
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
1119
|
+
if (useBlob && typeof _Blob === "function") return new _Blob([value]);
|
|
1120
|
+
if (typeof Buffer !== "undefined") return Buffer.from(value);
|
|
1121
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
|
|
1122
|
+
}
|
|
1036
1123
|
return value;
|
|
1037
1124
|
}
|
|
1125
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
1126
|
+
if (depth > maxDepth) throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
1127
|
+
}
|
|
1128
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
1129
|
+
if (maxDepth === Infinity) return JSON.stringify(value);
|
|
1130
|
+
const ancestors = [];
|
|
1131
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
1132
|
+
if (!utils_default.isObject(currentValue)) return currentValue;
|
|
1133
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
1134
|
+
ancestors.push(currentValue);
|
|
1135
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
1136
|
+
return currentValue;
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1038
1139
|
/**
|
|
1039
1140
|
* Default visitor.
|
|
1040
1141
|
*
|
|
@@ -1054,7 +1155,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
1054
1155
|
if (value && !path && typeof value === "object") {
|
|
1055
1156
|
if (utils_default.endsWith(key, "{}")) {
|
|
1056
1157
|
key = metaTokens ? key : key.slice(0, -2);
|
|
1057
|
-
value =
|
|
1158
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
1058
1159
|
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
1059
1160
|
key = removeBrackets(key);
|
|
1060
1161
|
arr.forEach(function each(el, index) {
|
|
@@ -1067,7 +1168,6 @@ function toFormData$1(obj, formData, options) {
|
|
|
1067
1168
|
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1068
1169
|
return false;
|
|
1069
1170
|
}
|
|
1070
|
-
const stack = [];
|
|
1071
1171
|
const exposedHelpers = Object.assign(predicates, {
|
|
1072
1172
|
defaultVisitor,
|
|
1073
1173
|
convertValue,
|
|
@@ -1075,7 +1175,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
1075
1175
|
});
|
|
1076
1176
|
function build(value, path, depth = 0) {
|
|
1077
1177
|
if (utils_default.isUndefined(value)) return;
|
|
1078
|
-
|
|
1178
|
+
throwIfMaxDepthExceeded(depth);
|
|
1079
1179
|
if (stack.indexOf(value) !== -1) throw new Error("Circular reference detected in " + path.join("."));
|
|
1080
1180
|
stack.push(value);
|
|
1081
1181
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -1097,7 +1197,7 @@ var init_toFormData = __esmMin((() => {
|
|
|
1097
1197
|
});
|
|
1098
1198
|
}));
|
|
1099
1199
|
//#endregion
|
|
1100
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1200
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
1101
1201
|
/**
|
|
1102
1202
|
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
1103
1203
|
* their percent-encoded equivalents
|
|
@@ -1129,7 +1229,7 @@ function encode$1(str) {
|
|
|
1129
1229
|
*/
|
|
1130
1230
|
function AxiosURLSearchParams(params, options) {
|
|
1131
1231
|
this._pairs = [];
|
|
1132
|
-
params && toFormData
|
|
1232
|
+
params && toFormData(params, this, options);
|
|
1133
1233
|
}
|
|
1134
1234
|
var prototype;
|
|
1135
1235
|
var init_AxiosURLSearchParams = __esmMin((() => {
|
|
@@ -1139,16 +1239,14 @@ var init_AxiosURLSearchParams = __esmMin((() => {
|
|
|
1139
1239
|
this._pairs.push([name, value]);
|
|
1140
1240
|
};
|
|
1141
1241
|
prototype.toString = function toString(encoder) {
|
|
1142
|
-
const _encode = encoder ?
|
|
1143
|
-
return encoder.call(this, value, encode$1);
|
|
1144
|
-
} : encode$1;
|
|
1242
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode$1) : encode$1;
|
|
1145
1243
|
return this._pairs.map(function each(pair) {
|
|
1146
1244
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
1147
1245
|
}, "").join("&");
|
|
1148
1246
|
};
|
|
1149
1247
|
}));
|
|
1150
1248
|
//#endregion
|
|
1151
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1249
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/buildURL.js
|
|
1152
1250
|
/**
|
|
1153
1251
|
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
1154
1252
|
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
@@ -1171,9 +1269,10 @@ function encode(val) {
|
|
|
1171
1269
|
*/
|
|
1172
1270
|
function buildURL(url, params, options) {
|
|
1173
1271
|
if (!params) return url;
|
|
1174
|
-
|
|
1272
|
+
url = url || "";
|
|
1175
1273
|
const _options = utils_default.isFunction(options) ? { serialize: options } : options;
|
|
1176
|
-
const
|
|
1274
|
+
const _encode = utils_default.getSafeProp(_options, "encode") || encode;
|
|
1275
|
+
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
1177
1276
|
let serializedParams;
|
|
1178
1277
|
if (serializeFn) serializedParams = serializeFn(params, _options);
|
|
1179
1278
|
else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
@@ -1189,7 +1288,7 @@ var init_buildURL = __esmMin((() => {
|
|
|
1189
1288
|
init_AxiosURLSearchParams();
|
|
1190
1289
|
}));
|
|
1191
1290
|
//#endregion
|
|
1192
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1291
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
1193
1292
|
var InterceptorManager;
|
|
1194
1293
|
var init_InterceptorManager = __esmMin((() => {
|
|
1195
1294
|
init_utils$1();
|
|
@@ -1251,7 +1350,7 @@ var init_InterceptorManager = __esmMin((() => {
|
|
|
1251
1350
|
};
|
|
1252
1351
|
}));
|
|
1253
1352
|
//#endregion
|
|
1254
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1353
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/defaults/transitional.js
|
|
1255
1354
|
var transitional_default;
|
|
1256
1355
|
var init_transitional = __esmMin((() => {
|
|
1257
1356
|
transitional_default = {
|
|
@@ -1259,30 +1358,31 @@ var init_transitional = __esmMin((() => {
|
|
|
1259
1358
|
forcedJSONParsing: true,
|
|
1260
1359
|
clarifyTimeoutError: false,
|
|
1261
1360
|
legacyInterceptorReqResOrdering: true,
|
|
1262
|
-
advertiseZstdAcceptEncoding: false
|
|
1361
|
+
advertiseZstdAcceptEncoding: false,
|
|
1362
|
+
validateStatusUndefinedResolves: true
|
|
1263
1363
|
};
|
|
1264
1364
|
}));
|
|
1265
1365
|
//#endregion
|
|
1266
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1366
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
|
|
1267
1367
|
var URLSearchParams_default;
|
|
1268
1368
|
var init_URLSearchParams = __esmMin((() => {
|
|
1269
1369
|
init_AxiosURLSearchParams();
|
|
1270
1370
|
URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
1271
1371
|
}));
|
|
1272
1372
|
//#endregion
|
|
1273
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1373
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/browser/classes/FormData.js
|
|
1274
1374
|
var FormData_default;
|
|
1275
1375
|
var init_FormData = __esmMin((() => {
|
|
1276
1376
|
FormData_default = typeof FormData !== "undefined" ? FormData : null;
|
|
1277
1377
|
}));
|
|
1278
1378
|
//#endregion
|
|
1279
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1379
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/browser/classes/Blob.js
|
|
1280
1380
|
var Blob_default;
|
|
1281
1381
|
var init_Blob = __esmMin((() => {
|
|
1282
1382
|
Blob_default = typeof Blob !== "undefined" ? Blob : null;
|
|
1283
1383
|
}));
|
|
1284
1384
|
//#endregion
|
|
1285
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1385
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/browser/index.js
|
|
1286
1386
|
var browser_default;
|
|
1287
1387
|
var init_browser = __esmMin((() => {
|
|
1288
1388
|
init_URLSearchParams();
|
|
@@ -1306,7 +1406,7 @@ var init_browser = __esmMin((() => {
|
|
|
1306
1406
|
};
|
|
1307
1407
|
}));
|
|
1308
1408
|
//#endregion
|
|
1309
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1409
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/common/utils.js
|
|
1310
1410
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
1311
1411
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
1312
1412
|
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
@@ -1329,7 +1429,7 @@ var init_utils = __esmMin((() => {
|
|
|
1329
1429
|
origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
1330
1430
|
}));
|
|
1331
1431
|
//#endregion
|
|
1332
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1432
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/platform/index.js
|
|
1333
1433
|
var platform_default;
|
|
1334
1434
|
var init_platform = __esmMin((() => {
|
|
1335
1435
|
init_browser();
|
|
@@ -1340,9 +1440,9 @@ var init_platform = __esmMin((() => {
|
|
|
1340
1440
|
};
|
|
1341
1441
|
}));
|
|
1342
1442
|
//#endregion
|
|
1343
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1443
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1344
1444
|
function toURLEncodedForm(data, options) {
|
|
1345
|
-
return toFormData
|
|
1445
|
+
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
1346
1446
|
visitor: function(value, key, path, helpers) {
|
|
1347
1447
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
1348
1448
|
this.append(key, value.toString("base64"));
|
|
@@ -1359,7 +1459,10 @@ var init_toURLEncodedForm = __esmMin((() => {
|
|
|
1359
1459
|
init_platform();
|
|
1360
1460
|
}));
|
|
1361
1461
|
//#endregion
|
|
1362
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1462
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1463
|
+
function throwIfDepthExceeded(index) {
|
|
1464
|
+
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);
|
|
1465
|
+
}
|
|
1363
1466
|
/**
|
|
1364
1467
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
1365
1468
|
*
|
|
@@ -1368,9 +1471,14 @@ var init_toURLEncodedForm = __esmMin((() => {
|
|
|
1368
1471
|
* @returns An array of strings.
|
|
1369
1472
|
*/
|
|
1370
1473
|
function parsePropPath(name) {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1474
|
+
const path = [];
|
|
1475
|
+
const pattern = /\w+|\[(\w*)]/g;
|
|
1476
|
+
let match;
|
|
1477
|
+
while ((match = pattern.exec(name)) !== null) {
|
|
1478
|
+
throwIfDepthExceeded(path.length);
|
|
1479
|
+
path.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
1480
|
+
}
|
|
1481
|
+
return path;
|
|
1374
1482
|
}
|
|
1375
1483
|
/**
|
|
1376
1484
|
* Convert an array to an object.
|
|
@@ -1400,6 +1508,7 @@ function arrayToObject(arr) {
|
|
|
1400
1508
|
*/
|
|
1401
1509
|
function formDataToJSON(formData) {
|
|
1402
1510
|
function buildPath(path, value, target, index) {
|
|
1511
|
+
throwIfDepthExceeded(index);
|
|
1403
1512
|
let name = path[index++];
|
|
1404
1513
|
if (name === "__proto__") return true;
|
|
1405
1514
|
const isNumericKey = Number.isFinite(+name);
|
|
@@ -1423,11 +1532,15 @@ function formDataToJSON(formData) {
|
|
|
1423
1532
|
}
|
|
1424
1533
|
return null;
|
|
1425
1534
|
}
|
|
1535
|
+
var MAX_DEPTH;
|
|
1426
1536
|
var init_formDataToJSON = __esmMin((() => {
|
|
1427
1537
|
init_utils$1();
|
|
1538
|
+
init_AxiosError();
|
|
1539
|
+
init_toFormData();
|
|
1540
|
+
MAX_DEPTH = 100;
|
|
1428
1541
|
}));
|
|
1429
1542
|
//#endregion
|
|
1430
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1543
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/defaults/index.js
|
|
1431
1544
|
/**
|
|
1432
1545
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
1433
1546
|
* of the input
|
|
@@ -1483,7 +1596,7 @@ var init_defaults = __esmMin((() => {
|
|
|
1483
1596
|
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
1484
1597
|
const env = own(this, "env");
|
|
1485
1598
|
const _FormData = env && env.FormData;
|
|
1486
|
-
return toFormData
|
|
1599
|
+
return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
|
|
1487
1600
|
}
|
|
1488
1601
|
}
|
|
1489
1602
|
if (isObjectPayload || hasJSONContentType) {
|
|
@@ -1504,7 +1617,7 @@ var init_defaults = __esmMin((() => {
|
|
|
1504
1617
|
return JSON.parse(data, own(this, "parseReviver"));
|
|
1505
1618
|
} catch (e) {
|
|
1506
1619
|
if (strictJSONParsing) {
|
|
1507
|
-
if (e.name === "SyntaxError") throw AxiosError
|
|
1620
|
+
if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
1508
1621
|
throw e;
|
|
1509
1622
|
}
|
|
1510
1623
|
}
|
|
@@ -1545,7 +1658,7 @@ var init_defaults = __esmMin((() => {
|
|
|
1545
1658
|
});
|
|
1546
1659
|
}));
|
|
1547
1660
|
//#endregion
|
|
1548
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1661
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/transformData.js
|
|
1549
1662
|
/**
|
|
1550
1663
|
* Transform the data for a request or a response
|
|
1551
1664
|
*
|
|
@@ -1557,7 +1670,7 @@ var init_defaults = __esmMin((() => {
|
|
|
1557
1670
|
function transformData(fns, response) {
|
|
1558
1671
|
const config = this || defaults;
|
|
1559
1672
|
const context = response || config;
|
|
1560
|
-
const headers = AxiosHeaders
|
|
1673
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
1561
1674
|
let data = context.data;
|
|
1562
1675
|
utils_default.forEach(fns, function transform(fn) {
|
|
1563
1676
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -1571,17 +1684,17 @@ var init_transformData = __esmMin((() => {
|
|
|
1571
1684
|
init_AxiosHeaders();
|
|
1572
1685
|
}));
|
|
1573
1686
|
//#endregion
|
|
1574
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1575
|
-
function isCancel
|
|
1687
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/isCancel.js
|
|
1688
|
+
function isCancel(value) {
|
|
1576
1689
|
return !!(value && value.__CANCEL__);
|
|
1577
1690
|
}
|
|
1578
1691
|
var init_isCancel = __esmMin((() => {}));
|
|
1579
1692
|
//#endregion
|
|
1580
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1581
|
-
var CanceledError
|
|
1693
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
1694
|
+
var CanceledError;
|
|
1582
1695
|
var init_CanceledError = __esmMin((() => {
|
|
1583
1696
|
init_AxiosError();
|
|
1584
|
-
CanceledError
|
|
1697
|
+
CanceledError = class extends AxiosError {
|
|
1585
1698
|
/**
|
|
1586
1699
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
1587
1700
|
*
|
|
@@ -1592,14 +1705,14 @@ var init_CanceledError = __esmMin((() => {
|
|
|
1592
1705
|
* @returns {CanceledError} The created error.
|
|
1593
1706
|
*/
|
|
1594
1707
|
constructor(message, config, request) {
|
|
1595
|
-
super(message == null ? "canceled" : message, AxiosError
|
|
1708
|
+
super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
1596
1709
|
this.name = "CanceledError";
|
|
1597
1710
|
this.__CANCEL__ = true;
|
|
1598
1711
|
}
|
|
1599
1712
|
};
|
|
1600
1713
|
}));
|
|
1601
1714
|
//#endregion
|
|
1602
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1715
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js
|
|
1603
1716
|
/**
|
|
1604
1717
|
* Resolve or reject a Promise based on response status.
|
|
1605
1718
|
*
|
|
@@ -1612,20 +1725,20 @@ var init_CanceledError = __esmMin((() => {
|
|
|
1612
1725
|
function settle(resolve, reject, response) {
|
|
1613
1726
|
const validateStatus = response.config.validateStatus;
|
|
1614
1727
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
1615
|
-
else reject(new AxiosError
|
|
1728
|
+
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));
|
|
1616
1729
|
}
|
|
1617
1730
|
var init_settle = __esmMin((() => {
|
|
1618
1731
|
init_AxiosError();
|
|
1619
1732
|
}));
|
|
1620
1733
|
//#endregion
|
|
1621
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1734
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
1622
1735
|
function parseProtocol(url) {
|
|
1623
1736
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
1624
1737
|
return match && match[1] || "";
|
|
1625
1738
|
}
|
|
1626
1739
|
var init_parseProtocol = __esmMin((() => {}));
|
|
1627
1740
|
//#endregion
|
|
1628
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1741
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/speedometer.js
|
|
1629
1742
|
/**
|
|
1630
1743
|
* Calculate data maxRate
|
|
1631
1744
|
* @param {Number} [samplesCount= 10]
|
|
@@ -1661,7 +1774,7 @@ function speedometer(samplesCount, min) {
|
|
|
1661
1774
|
}
|
|
1662
1775
|
var init_speedometer = __esmMin((() => {}));
|
|
1663
1776
|
//#endregion
|
|
1664
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1777
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/throttle.js
|
|
1665
1778
|
/**
|
|
1666
1779
|
* Throttle decorator
|
|
1667
1780
|
* @param {Function} fn
|
|
@@ -1699,7 +1812,7 @@ function throttle(fn, freq) {
|
|
|
1699
1812
|
}
|
|
1700
1813
|
var init_throttle = __esmMin((() => {}));
|
|
1701
1814
|
//#endregion
|
|
1702
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1815
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
1703
1816
|
var progressEventReducer, progressEventDecorator, asyncDecorator;
|
|
1704
1817
|
var init_progressEventReducer = __esmMin((() => {
|
|
1705
1818
|
init_speedometer();
|
|
@@ -1740,7 +1853,7 @@ var init_progressEventReducer = __esmMin((() => {
|
|
|
1740
1853
|
asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
1741
1854
|
}));
|
|
1742
1855
|
//#endregion
|
|
1743
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1856
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
1744
1857
|
var isURLSameOrigin_default;
|
|
1745
1858
|
var init_isURLSameOrigin = __esmMin((() => {
|
|
1746
1859
|
init_platform();
|
|
@@ -1750,7 +1863,7 @@ var init_isURLSameOrigin = __esmMin((() => {
|
|
|
1750
1863
|
})(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
|
|
1751
1864
|
}));
|
|
1752
1865
|
//#endregion
|
|
1753
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1866
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/cookies.js
|
|
1754
1867
|
var cookies_default;
|
|
1755
1868
|
var init_cookies = __esmMin((() => {
|
|
1756
1869
|
init_utils$1();
|
|
@@ -1772,7 +1885,11 @@ var init_cookies = __esmMin((() => {
|
|
|
1772
1885
|
for (let i = 0; i < cookies.length; i++) {
|
|
1773
1886
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
1774
1887
|
const eq = cookie.indexOf("=");
|
|
1775
|
-
if (eq !== -1 && cookie.slice(0, eq) === name)
|
|
1888
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) try {
|
|
1889
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
1890
|
+
} catch (e) {
|
|
1891
|
+
return cookie.slice(eq + 1);
|
|
1892
|
+
}
|
|
1776
1893
|
}
|
|
1777
1894
|
return null;
|
|
1778
1895
|
},
|
|
@@ -1788,7 +1905,7 @@ var init_cookies = __esmMin((() => {
|
|
|
1788
1905
|
};
|
|
1789
1906
|
}));
|
|
1790
1907
|
//#endregion
|
|
1791
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1908
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1792
1909
|
/**
|
|
1793
1910
|
* Determines whether the specified URL is absolute
|
|
1794
1911
|
*
|
|
@@ -1802,7 +1919,7 @@ function isAbsoluteURL(url) {
|
|
|
1802
1919
|
}
|
|
1803
1920
|
var init_isAbsoluteURL = __esmMin((() => {}));
|
|
1804
1921
|
//#endregion
|
|
1805
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1922
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
1806
1923
|
/**
|
|
1807
1924
|
* Creates a new URL by combining the specified URLs
|
|
1808
1925
|
*
|
|
@@ -1816,7 +1933,18 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
1816
1933
|
}
|
|
1817
1934
|
var init_combineURLs = __esmMin((() => {}));
|
|
1818
1935
|
//#endregion
|
|
1819
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1936
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/buildFullPath.js
|
|
1937
|
+
function stripLeadingC0ControlOrSpace(url) {
|
|
1938
|
+
let i = 0;
|
|
1939
|
+
while (i < url.length && url.charCodeAt(i) <= 32) i++;
|
|
1940
|
+
return url.slice(i);
|
|
1941
|
+
}
|
|
1942
|
+
function normalizeURLForProtocolCheck(url) {
|
|
1943
|
+
return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, "");
|
|
1944
|
+
}
|
|
1945
|
+
function assertValidHttpProtocolURL(url, config) {
|
|
1946
|
+
if (typeof url === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) throw new AxiosError("Invalid URL: missing \"//\" after protocol", AxiosError.ERR_INVALID_URL, config);
|
|
1947
|
+
}
|
|
1820
1948
|
/**
|
|
1821
1949
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
1822
1950
|
* only when the requestedURL is not already an absolute URL.
|
|
@@ -1827,17 +1955,25 @@ var init_combineURLs = __esmMin((() => {}));
|
|
|
1827
1955
|
*
|
|
1828
1956
|
* @returns {string} The combined full path
|
|
1829
1957
|
*/
|
|
1830
|
-
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
1958
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
1959
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
1831
1960
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
1832
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false))
|
|
1961
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
1962
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
1963
|
+
return combineURLs(baseURL, requestedURL);
|
|
1964
|
+
}
|
|
1833
1965
|
return requestedURL;
|
|
1834
1966
|
}
|
|
1967
|
+
var malformedHttpProtocol, httpProtocolControlCharacters;
|
|
1835
1968
|
var init_buildFullPath = __esmMin((() => {
|
|
1969
|
+
init_AxiosError();
|
|
1836
1970
|
init_isAbsoluteURL();
|
|
1837
1971
|
init_combineURLs();
|
|
1972
|
+
malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
1973
|
+
httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
1838
1974
|
}));
|
|
1839
1975
|
//#endregion
|
|
1840
|
-
//#region node_modules/.pnpm/axios@1.
|
|
1976
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/mergeConfig.js
|
|
1841
1977
|
/**
|
|
1842
1978
|
* Config-specific merge-function which creates a new config-object
|
|
1843
1979
|
* by merging two configuration objects together.
|
|
@@ -1847,7 +1983,8 @@ var init_buildFullPath = __esmMin((() => {
|
|
|
1847
1983
|
*
|
|
1848
1984
|
* @returns {Object} New object resulting from merging config2 to config1
|
|
1849
1985
|
*/
|
|
1850
|
-
function mergeConfig
|
|
1986
|
+
function mergeConfig(config1, config2) {
|
|
1987
|
+
config1 = config1 || {};
|
|
1851
1988
|
config2 = config2 || {};
|
|
1852
1989
|
const config = Object.create(null);
|
|
1853
1990
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -1874,6 +2011,14 @@ function mergeConfig$1(config1, config2) {
|
|
|
1874
2011
|
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
1875
2012
|
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
|
|
1876
2013
|
}
|
|
2014
|
+
function getMergedTransitionalOption(prop) {
|
|
2015
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
2016
|
+
if (!utils_default.isUndefined(transitional2)) if (utils_default.isPlainObject(transitional2)) {
|
|
2017
|
+
if (utils_default.hasOwnProp(transitional2, prop)) return transitional2[prop];
|
|
2018
|
+
} else return;
|
|
2019
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
2020
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) return transitional1[prop];
|
|
2021
|
+
}
|
|
1877
2022
|
function mergeDirectKeys(a, b, prop) {
|
|
1878
2023
|
if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
1879
2024
|
else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
@@ -1919,27 +2064,29 @@ function mergeConfig$1(config1, config2) {
|
|
|
1919
2064
|
const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
|
|
1920
2065
|
utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
1921
2066
|
});
|
|
2067
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) if (utils_default.hasOwnProp(config1, "validateStatus")) config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
2068
|
+
else delete config.validateStatus;
|
|
1922
2069
|
return config;
|
|
1923
2070
|
}
|
|
1924
2071
|
var headersToObject;
|
|
1925
2072
|
var init_mergeConfig = __esmMin((() => {
|
|
1926
2073
|
init_utils$1();
|
|
1927
2074
|
init_AxiosHeaders();
|
|
1928
|
-
headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
2075
|
+
headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
1929
2076
|
}));
|
|
1930
2077
|
//#endregion
|
|
1931
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2078
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
1932
2079
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
1933
2080
|
if (policy !== "content-only") {
|
|
1934
2081
|
headers.set(formHeaders);
|
|
1935
2082
|
return;
|
|
1936
2083
|
}
|
|
1937
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
2084
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
1938
2085
|
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
|
|
1939
2086
|
});
|
|
1940
2087
|
}
|
|
1941
2088
|
function resolveConfig(config) {
|
|
1942
|
-
const newConfig = mergeConfig
|
|
2089
|
+
const newConfig = mergeConfig({}, config);
|
|
1943
2090
|
const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
1944
2091
|
const data = own("data");
|
|
1945
2092
|
let withXSRFToken = own("withXSRFToken");
|
|
@@ -1950,9 +2097,17 @@ function resolveConfig(config) {
|
|
|
1950
2097
|
const baseURL = own("baseURL");
|
|
1951
2098
|
const allowAbsoluteUrls = own("allowAbsoluteUrls");
|
|
1952
2099
|
const url = own("url");
|
|
1953
|
-
newConfig.headers = headers = AxiosHeaders
|
|
1954
|
-
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), own("params"), own("paramsSerializer"));
|
|
1955
|
-
if (auth)
|
|
2100
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2101
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig), own("params"), own("paramsSerializer"));
|
|
2102
|
+
if (auth) {
|
|
2103
|
+
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
2104
|
+
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
2105
|
+
try {
|
|
2106
|
+
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8$1(password) : "")));
|
|
2107
|
+
} catch (e) {
|
|
2108
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
1956
2111
|
if (utils_default.isFormData(data)) {
|
|
1957
2112
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) headers.setContentType(void 0);
|
|
1958
2113
|
else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
|
|
@@ -1970,6 +2125,7 @@ var FORM_DATA_CONTENT_HEADERS, encodeUTF8$1;
|
|
|
1970
2125
|
var init_resolveConfig = __esmMin((() => {
|
|
1971
2126
|
init_platform();
|
|
1972
2127
|
init_utils$1();
|
|
2128
|
+
init_AxiosError();
|
|
1973
2129
|
init_isURLSameOrigin();
|
|
1974
2130
|
init_cookies();
|
|
1975
2131
|
init_buildFullPath();
|
|
@@ -1980,7 +2136,7 @@ var init_resolveConfig = __esmMin((() => {
|
|
|
1980
2136
|
encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
1981
2137
|
}));
|
|
1982
2138
|
//#endregion
|
|
1983
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2139
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/xhr.js
|
|
1984
2140
|
var isXHRAdapterSupported, xhr_default;
|
|
1985
2141
|
var init_xhr = __esmMin((() => {
|
|
1986
2142
|
init_utils$1();
|
|
@@ -1999,7 +2155,7 @@ var init_xhr = __esmMin((() => {
|
|
|
1999
2155
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2000
2156
|
const _config = resolveConfig(config);
|
|
2001
2157
|
let requestData = _config.data;
|
|
2002
|
-
const requestHeaders = AxiosHeaders
|
|
2158
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
2003
2159
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
2004
2160
|
let onCanceled;
|
|
2005
2161
|
let uploadThrottled, downloadThrottled;
|
|
@@ -2015,7 +2171,7 @@ var init_xhr = __esmMin((() => {
|
|
|
2015
2171
|
request.timeout = _config.timeout;
|
|
2016
2172
|
function onloadend() {
|
|
2017
2173
|
if (!request) return;
|
|
2018
|
-
const responseHeaders = AxiosHeaders
|
|
2174
|
+
const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
2019
2175
|
settle(function _resolve(value) {
|
|
2020
2176
|
resolve(value);
|
|
2021
2177
|
done();
|
|
@@ -2040,12 +2196,12 @@ var init_xhr = __esmMin((() => {
|
|
|
2040
2196
|
};
|
|
2041
2197
|
request.onabort = function handleAbort() {
|
|
2042
2198
|
if (!request) return;
|
|
2043
|
-
reject(new AxiosError
|
|
2199
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
2044
2200
|
done();
|
|
2045
2201
|
request = null;
|
|
2046
2202
|
};
|
|
2047
2203
|
request.onerror = function handleError(event) {
|
|
2048
|
-
const err = new AxiosError
|
|
2204
|
+
const err = new AxiosError(event && event.message ? event.message : "Network Error", AxiosError.ERR_NETWORK, config, request);
|
|
2049
2205
|
err.event = event || null;
|
|
2050
2206
|
reject(err);
|
|
2051
2207
|
done();
|
|
@@ -2055,7 +2211,7 @@ var init_xhr = __esmMin((() => {
|
|
|
2055
2211
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
2056
2212
|
const transitional = _config.transitional || transitional_default;
|
|
2057
2213
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2058
|
-
reject(new AxiosError
|
|
2214
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
2059
2215
|
done();
|
|
2060
2216
|
request = null;
|
|
2061
2217
|
};
|
|
@@ -2077,7 +2233,7 @@ var init_xhr = __esmMin((() => {
|
|
|
2077
2233
|
if (_config.cancelToken || _config.signal) {
|
|
2078
2234
|
onCanceled = (cancel) => {
|
|
2079
2235
|
if (!request) return;
|
|
2080
|
-
reject(!cancel || cancel.type ? new CanceledError
|
|
2236
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
2081
2237
|
request.abort();
|
|
2082
2238
|
done();
|
|
2083
2239
|
request = null;
|
|
@@ -2087,7 +2243,8 @@ var init_xhr = __esmMin((() => {
|
|
|
2087
2243
|
}
|
|
2088
2244
|
const protocol = parseProtocol(_config.url);
|
|
2089
2245
|
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
2090
|
-
reject(new AxiosError
|
|
2246
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
2247
|
+
done();
|
|
2091
2248
|
return;
|
|
2092
2249
|
}
|
|
2093
2250
|
request.send(requestData || null);
|
|
@@ -2095,7 +2252,7 @@ var init_xhr = __esmMin((() => {
|
|
|
2095
2252
|
};
|
|
2096
2253
|
}));
|
|
2097
2254
|
//#endregion
|
|
2098
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2255
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
2099
2256
|
var composeSignals;
|
|
2100
2257
|
var init_composeSignals = __esmMin((() => {
|
|
2101
2258
|
init_CanceledError();
|
|
@@ -2111,12 +2268,12 @@ var init_composeSignals = __esmMin((() => {
|
|
|
2111
2268
|
aborted = true;
|
|
2112
2269
|
unsubscribe();
|
|
2113
2270
|
const err = reason instanceof Error ? reason : this.reason;
|
|
2114
|
-
controller.abort(err instanceof AxiosError
|
|
2271
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
2115
2272
|
}
|
|
2116
2273
|
};
|
|
2117
2274
|
let timer = timeout && setTimeout(() => {
|
|
2118
2275
|
timer = null;
|
|
2119
|
-
onabort(new AxiosError
|
|
2276
|
+
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
2120
2277
|
}, timeout);
|
|
2121
2278
|
const unsubscribe = () => {
|
|
2122
2279
|
if (!signals) return;
|
|
@@ -2127,14 +2284,14 @@ var init_composeSignals = __esmMin((() => {
|
|
|
2127
2284
|
});
|
|
2128
2285
|
signals = null;
|
|
2129
2286
|
};
|
|
2130
|
-
signals.forEach((signal) => signal.addEventListener("abort", onabort));
|
|
2287
|
+
signals.forEach((signal) => signal.addEventListener("abort", onabort, { once: true }));
|
|
2131
2288
|
const { signal } = controller;
|
|
2132
2289
|
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
2133
2290
|
return signal;
|
|
2134
2291
|
};
|
|
2135
2292
|
}));
|
|
2136
2293
|
//#endregion
|
|
2137
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2294
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/trackStream.js
|
|
2138
2295
|
var streamChunk, readBytes, readStream, trackStream;
|
|
2139
2296
|
var init_trackStream = __esmMin((() => {
|
|
2140
2297
|
streamChunk = function* (chunk, chunkSize) {
|
|
@@ -2205,16 +2362,7 @@ var init_trackStream = __esmMin((() => {
|
|
|
2205
2362
|
};
|
|
2206
2363
|
}));
|
|
2207
2364
|
//#endregion
|
|
2208
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2209
|
-
/**
|
|
2210
|
-
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
2211
|
-
* - For base64: compute exact decoded size using length and padding;
|
|
2212
|
-
* handle %XX at the character-count level (no string allocation).
|
|
2213
|
-
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
2214
|
-
*
|
|
2215
|
-
* @param {string} url
|
|
2216
|
-
* @returns {number}
|
|
2217
|
-
*/
|
|
2365
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
2218
2366
|
function estimateDataURLDecodedBytes(url) {
|
|
2219
2367
|
if (!url || typeof url !== "string") return 0;
|
|
2220
2368
|
if (!url.startsWith("data:")) return 0;
|
|
@@ -2228,7 +2376,7 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
2228
2376
|
for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
2229
2377
|
const a = body.charCodeAt(i + 1);
|
|
2230
2378
|
const b = body.charCodeAt(i + 2);
|
|
2231
|
-
if ((a
|
|
2379
|
+
if (isHexDigit(a) && isHexDigit(b)) {
|
|
2232
2380
|
effectiveLen -= 2;
|
|
2233
2381
|
i += 2;
|
|
2234
2382
|
}
|
|
@@ -2252,11 +2400,13 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
2252
2400
|
const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
|
|
2253
2401
|
return bytes > 0 ? bytes : 0;
|
|
2254
2402
|
}
|
|
2255
|
-
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
|
|
2256
2403
|
let bytes = 0;
|
|
2257
2404
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
2258
2405
|
const c = body.charCodeAt(i);
|
|
2259
|
-
if (c
|
|
2406
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
2407
|
+
bytes += 1;
|
|
2408
|
+
i += 2;
|
|
2409
|
+
} else if (c < 128) bytes += 1;
|
|
2260
2410
|
else if (c < 2048) bytes += 2;
|
|
2261
2411
|
else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
2262
2412
|
const next = body.charCodeAt(i + 1);
|
|
@@ -2268,12 +2418,16 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
2268
2418
|
}
|
|
2269
2419
|
return bytes;
|
|
2270
2420
|
}
|
|
2271
|
-
var
|
|
2421
|
+
var isHexDigit, isPercentEncodedByte;
|
|
2422
|
+
var init_estimateDataURLDecodedBytes = __esmMin((() => {
|
|
2423
|
+
isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
2424
|
+
isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
2425
|
+
}));
|
|
2272
2426
|
//#endregion
|
|
2273
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2274
|
-
var VERSION
|
|
2427
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/env/data.js
|
|
2428
|
+
var VERSION;
|
|
2275
2429
|
var init_data = __esmMin((() => {
|
|
2276
|
-
VERSION
|
|
2430
|
+
VERSION = "1.18.1";
|
|
2277
2431
|
})), DEFAULT_CHUNK_SIZE, isFunction, encodeUTF8, decodeURIComponentSafe, test, maybeWithAuthCredentials, factory, seedCache, getFetch;
|
|
2278
2432
|
var init_fetch = __esmMin((() => {
|
|
2279
2433
|
init_platform();
|
|
@@ -2353,7 +2507,7 @@ var init_fetch = __esmMin((() => {
|
|
|
2353
2507
|
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
2354
2508
|
let method = res && res[type];
|
|
2355
2509
|
if (method) return method.call(res);
|
|
2356
|
-
throw new AxiosError
|
|
2510
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2357
2511
|
});
|
|
2358
2512
|
});
|
|
2359
2513
|
})();
|
|
@@ -2385,12 +2539,14 @@ var init_fetch = __esmMin((() => {
|
|
|
2385
2539
|
composedSignal.unsubscribe();
|
|
2386
2540
|
});
|
|
2387
2541
|
let requestContentLength;
|
|
2542
|
+
let pendingBodyError = null;
|
|
2543
|
+
const maxBodyLengthError = () => new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
2388
2544
|
try {
|
|
2389
2545
|
let auth = void 0;
|
|
2390
2546
|
const configAuth = own("auth");
|
|
2391
2547
|
if (configAuth) auth = {
|
|
2392
|
-
username: configAuth
|
|
2393
|
-
password: configAuth
|
|
2548
|
+
username: utils_default.getSafeProp(configAuth, "username") || "",
|
|
2549
|
+
password: utils_default.getSafeProp(configAuth, "password") || ""
|
|
2394
2550
|
};
|
|
2395
2551
|
if (maybeWithAuthCredentials(url)) {
|
|
2396
2552
|
const parsedURL = new URL(url, platform_default.origin);
|
|
@@ -2409,32 +2565,44 @@ var init_fetch = __esmMin((() => {
|
|
|
2409
2565
|
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
2410
2566
|
}
|
|
2411
2567
|
if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
|
|
2412
|
-
if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError
|
|
2568
|
+
if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
2413
2569
|
}
|
|
2414
2570
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
2415
|
-
const outboundLength = await
|
|
2416
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
let _request = new Request(url, {
|
|
2420
|
-
method: "POST",
|
|
2421
|
-
body: data,
|
|
2422
|
-
duplex: "half"
|
|
2423
|
-
});
|
|
2424
|
-
let contentTypeHeader;
|
|
2425
|
-
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
|
|
2426
|
-
if (_request.body) {
|
|
2427
|
-
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
2428
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
2571
|
+
const outboundLength = await getBodyLength(data);
|
|
2572
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
2573
|
+
requestContentLength = outboundLength;
|
|
2574
|
+
if (outboundLength > maxBodyLength) throw maxBodyLengthError();
|
|
2429
2575
|
}
|
|
2430
2576
|
}
|
|
2577
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
|
|
2578
|
+
const trackRequestStream = (stream, onProgress, flush) => trackStream(stream, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
|
|
2579
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) throw pendingBodyError = maxBodyLengthError();
|
|
2580
|
+
onProgress && onProgress(loadedBytes);
|
|
2581
|
+
}, flush);
|
|
2582
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
2583
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
2584
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
2585
|
+
let _request = new Request(url, {
|
|
2586
|
+
method: "POST",
|
|
2587
|
+
body: data,
|
|
2588
|
+
duplex: "half"
|
|
2589
|
+
});
|
|
2590
|
+
let contentTypeHeader;
|
|
2591
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
|
|
2592
|
+
if (_request.body) {
|
|
2593
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
|
|
2594
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") data = trackRequestStream(data);
|
|
2598
|
+
else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") throw new AxiosError("Stream request bodies are not supported by the current fetch implementation", AxiosError.ERR_NOT_SUPPORT, config, request);
|
|
2431
2599
|
if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
|
|
2432
2600
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
2433
2601
|
if (utils_default.isFormData(data)) {
|
|
2434
2602
|
const contentType = headers.getContentType();
|
|
2435
2603
|
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
|
|
2436
2604
|
}
|
|
2437
|
-
headers.set("User-Agent", "axios/" + VERSION
|
|
2605
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
2438
2606
|
const resolvedOptions = {
|
|
2439
2607
|
...fetchOptions,
|
|
2440
2608
|
signal: composedSignal,
|
|
@@ -2446,9 +2614,10 @@ var init_fetch = __esmMin((() => {
|
|
|
2446
2614
|
};
|
|
2447
2615
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2448
2616
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
2617
|
+
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
2449
2618
|
if (hasMaxContentLength) {
|
|
2450
|
-
const declaredLength = utils_default.toFiniteNumber(
|
|
2451
|
-
if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError
|
|
2619
|
+
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
2620
|
+
if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
2452
2621
|
}
|
|
2453
2622
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
2454
2623
|
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
@@ -2460,13 +2629,13 @@ var init_fetch = __esmMin((() => {
|
|
|
2460
2629
|
].forEach((prop) => {
|
|
2461
2630
|
options[prop] = response[prop];
|
|
2462
2631
|
});
|
|
2463
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
2632
|
+
const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
2464
2633
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
2465
2634
|
let bytesRead = 0;
|
|
2466
2635
|
const onChunkProgress = (loadedBytes) => {
|
|
2467
2636
|
if (hasMaxContentLength) {
|
|
2468
2637
|
bytesRead = loadedBytes;
|
|
2469
|
-
if (bytesRead > maxContentLength) throw new AxiosError
|
|
2638
|
+
if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
2470
2639
|
}
|
|
2471
2640
|
onProgress && onProgress(loadedBytes);
|
|
2472
2641
|
};
|
|
@@ -2484,13 +2653,13 @@ var init_fetch = __esmMin((() => {
|
|
|
2484
2653
|
else if (typeof responseData.size === "number") materializedSize = responseData.size;
|
|
2485
2654
|
else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
|
|
2486
2655
|
}
|
|
2487
|
-
if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError
|
|
2656
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
2488
2657
|
}
|
|
2489
2658
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
2490
2659
|
return await new Promise((resolve, reject) => {
|
|
2491
2660
|
settle(resolve, reject, {
|
|
2492
2661
|
data: responseData,
|
|
2493
|
-
headers: AxiosHeaders
|
|
2662
|
+
headers: AxiosHeaders.from(response.headers),
|
|
2494
2663
|
status: response.status,
|
|
2495
2664
|
statusText: response.statusText,
|
|
2496
2665
|
config,
|
|
@@ -2499,15 +2668,39 @@ var init_fetch = __esmMin((() => {
|
|
|
2499
2668
|
});
|
|
2500
2669
|
} catch (err) {
|
|
2501
2670
|
unsubscribe && unsubscribe();
|
|
2502
|
-
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError
|
|
2671
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
|
|
2503
2672
|
const canceledError = composedSignal.reason;
|
|
2504
2673
|
canceledError.config = config;
|
|
2505
2674
|
request && (canceledError.request = request);
|
|
2506
|
-
err !== canceledError
|
|
2675
|
+
if (err !== canceledError) Object.defineProperty(canceledError, "cause", {
|
|
2676
|
+
__proto__: null,
|
|
2677
|
+
value: err,
|
|
2678
|
+
writable: true,
|
|
2679
|
+
enumerable: false,
|
|
2680
|
+
configurable: true
|
|
2681
|
+
});
|
|
2507
2682
|
throw canceledError;
|
|
2508
2683
|
}
|
|
2509
|
-
if (
|
|
2510
|
-
|
|
2684
|
+
if (pendingBodyError) {
|
|
2685
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
2686
|
+
throw pendingBodyError;
|
|
2687
|
+
}
|
|
2688
|
+
if (err instanceof AxiosError) {
|
|
2689
|
+
request && !err.request && (err.request = request);
|
|
2690
|
+
throw err;
|
|
2691
|
+
}
|
|
2692
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
2693
|
+
const networkError = new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response);
|
|
2694
|
+
Object.defineProperty(networkError, "cause", {
|
|
2695
|
+
__proto__: null,
|
|
2696
|
+
value: err.cause || err,
|
|
2697
|
+
writable: true,
|
|
2698
|
+
enumerable: false,
|
|
2699
|
+
configurable: true
|
|
2700
|
+
});
|
|
2701
|
+
throw networkError;
|
|
2702
|
+
}
|
|
2703
|
+
throw AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
2511
2704
|
}
|
|
2512
2705
|
};
|
|
2513
2706
|
};
|
|
@@ -2532,7 +2725,7 @@ var init_fetch = __esmMin((() => {
|
|
|
2532
2725
|
getFetch();
|
|
2533
2726
|
}));
|
|
2534
2727
|
//#endregion
|
|
2535
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2728
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/adapters.js
|
|
2536
2729
|
/**
|
|
2537
2730
|
* Get the first suitable adapter from the provided list.
|
|
2538
2731
|
* Tries each adapter in order until a supported one is found.
|
|
@@ -2543,7 +2736,7 @@ var init_fetch = __esmMin((() => {
|
|
|
2543
2736
|
* @throws {AxiosError} If no suitable adapter is available
|
|
2544
2737
|
* @returns {Function} The resolved adapter function
|
|
2545
2738
|
*/
|
|
2546
|
-
function getAdapter
|
|
2739
|
+
function getAdapter(adapters, config) {
|
|
2547
2740
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
2548
2741
|
const { length } = adapters;
|
|
2549
2742
|
let nameOrAdapter;
|
|
@@ -2555,14 +2748,14 @@ function getAdapter$1(adapters, config) {
|
|
|
2555
2748
|
adapter = nameOrAdapter;
|
|
2556
2749
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
2557
2750
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
2558
|
-
if (adapter === void 0) throw new AxiosError
|
|
2751
|
+
if (adapter === void 0) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
2559
2752
|
}
|
|
2560
2753
|
if (adapter && (utils_default.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
2561
2754
|
rejectedReasons[id || "#" + i] = adapter;
|
|
2562
2755
|
}
|
|
2563
2756
|
if (!adapter) {
|
|
2564
2757
|
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
2565
|
-
throw new AxiosError
|
|
2758
|
+
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), AxiosError.ERR_NOT_SUPPORT);
|
|
2566
2759
|
}
|
|
2567
2760
|
return adapter;
|
|
2568
2761
|
}
|
|
@@ -2599,7 +2792,7 @@ var init_adapters = __esmMin((() => {
|
|
|
2599
2792
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2600
2793
|
* @type {Function}
|
|
2601
2794
|
*/
|
|
2602
|
-
getAdapter
|
|
2795
|
+
getAdapter,
|
|
2603
2796
|
/**
|
|
2604
2797
|
* Exposes all known adapters
|
|
2605
2798
|
* @type {Object<string, Function|Object>}
|
|
@@ -2608,7 +2801,7 @@ var init_adapters = __esmMin((() => {
|
|
|
2608
2801
|
};
|
|
2609
2802
|
}));
|
|
2610
2803
|
//#endregion
|
|
2611
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2804
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
2612
2805
|
/**
|
|
2613
2806
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
2614
2807
|
*
|
|
@@ -2618,7 +2811,7 @@ var init_adapters = __esmMin((() => {
|
|
|
2618
2811
|
*/
|
|
2619
2812
|
function throwIfCancellationRequested(config) {
|
|
2620
2813
|
if (config.cancelToken) config.cancelToken.throwIfRequested();
|
|
2621
|
-
if (config.signal && config.signal.aborted) throw new CanceledError
|
|
2814
|
+
if (config.signal && config.signal.aborted) throw new CanceledError(null, config);
|
|
2622
2815
|
}
|
|
2623
2816
|
/**
|
|
2624
2817
|
* Dispatch a request to the server using the configured adapter.
|
|
@@ -2629,7 +2822,7 @@ function throwIfCancellationRequested(config) {
|
|
|
2629
2822
|
*/
|
|
2630
2823
|
function dispatchRequest(config) {
|
|
2631
2824
|
throwIfCancellationRequested(config);
|
|
2632
|
-
config.headers = AxiosHeaders
|
|
2825
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
2633
2826
|
config.data = transformData.call(config, config.transformRequest);
|
|
2634
2827
|
if ([
|
|
2635
2828
|
"post",
|
|
@@ -2644,10 +2837,10 @@ function dispatchRequest(config) {
|
|
|
2644
2837
|
} finally {
|
|
2645
2838
|
delete config.response;
|
|
2646
2839
|
}
|
|
2647
|
-
response.headers = AxiosHeaders
|
|
2840
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
2648
2841
|
return response;
|
|
2649
2842
|
}, function onAdapterRejection(reason) {
|
|
2650
|
-
if (!isCancel
|
|
2843
|
+
if (!isCancel(reason)) {
|
|
2651
2844
|
throwIfCancellationRequested(config);
|
|
2652
2845
|
if (reason && reason.response) {
|
|
2653
2846
|
config.response = reason.response;
|
|
@@ -2656,7 +2849,7 @@ function dispatchRequest(config) {
|
|
|
2656
2849
|
} finally {
|
|
2657
2850
|
delete config.response;
|
|
2658
2851
|
}
|
|
2659
|
-
reason.response.headers = AxiosHeaders
|
|
2852
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
2660
2853
|
}
|
|
2661
2854
|
}
|
|
2662
2855
|
return Promise.reject(reason);
|
|
@@ -2671,7 +2864,7 @@ var init_dispatchRequest = __esmMin((() => {
|
|
|
2671
2864
|
init_adapters();
|
|
2672
2865
|
}));
|
|
2673
2866
|
//#endregion
|
|
2674
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2867
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/validator.js
|
|
2675
2868
|
/**
|
|
2676
2869
|
* Assert object's properties type
|
|
2677
2870
|
*
|
|
@@ -2682,7 +2875,7 @@ var init_dispatchRequest = __esmMin((() => {
|
|
|
2682
2875
|
* @returns {object}
|
|
2683
2876
|
*/
|
|
2684
2877
|
function assertOptions(options, schema, allowUnknown) {
|
|
2685
|
-
if (typeof options !== "object") throw new AxiosError
|
|
2878
|
+
if (typeof options !== "object" || options === null) throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2686
2879
|
const keys = Object.keys(options);
|
|
2687
2880
|
let i = keys.length;
|
|
2688
2881
|
while (i-- > 0) {
|
|
@@ -2691,10 +2884,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
2691
2884
|
if (validator) {
|
|
2692
2885
|
const value = options[opt];
|
|
2693
2886
|
const result = value === void 0 || validator(value, opt, options);
|
|
2694
|
-
if (result !== true) throw new AxiosError
|
|
2887
|
+
if (result !== true) throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2695
2888
|
continue;
|
|
2696
2889
|
}
|
|
2697
|
-
if (allowUnknown !== true) throw new AxiosError
|
|
2890
|
+
if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
2698
2891
|
}
|
|
2699
2892
|
}
|
|
2700
2893
|
var validators$1, deprecatedWarnings, validator_default;
|
|
@@ -2726,10 +2919,10 @@ var init_validator = __esmMin((() => {
|
|
|
2726
2919
|
*/
|
|
2727
2920
|
validators$1.transitional = function transitional(validator, version, message) {
|
|
2728
2921
|
function formatMessage(opt, desc) {
|
|
2729
|
-
return "[Axios v" + VERSION
|
|
2922
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
2730
2923
|
}
|
|
2731
2924
|
return (value, opt, opts) => {
|
|
2732
|
-
if (validator === false) throw new AxiosError
|
|
2925
|
+
if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
|
|
2733
2926
|
if (version && !deprecatedWarnings[opt]) {
|
|
2734
2927
|
deprecatedWarnings[opt] = true;
|
|
2735
2928
|
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
@@ -2749,8 +2942,8 @@ var init_validator = __esmMin((() => {
|
|
|
2749
2942
|
};
|
|
2750
2943
|
}));
|
|
2751
2944
|
//#endregion
|
|
2752
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2753
|
-
var validators, Axios
|
|
2945
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/Axios.js
|
|
2946
|
+
var validators, Axios;
|
|
2754
2947
|
var init_Axios = __esmMin((() => {
|
|
2755
2948
|
init_utils$1();
|
|
2756
2949
|
init_buildURL();
|
|
@@ -2762,7 +2955,7 @@ var init_Axios = __esmMin((() => {
|
|
|
2762
2955
|
init_AxiosHeaders();
|
|
2763
2956
|
init_transitional();
|
|
2764
2957
|
validators = validator_default.validators;
|
|
2765
|
-
Axios
|
|
2958
|
+
Axios = class {
|
|
2766
2959
|
constructor(instanceConfig) {
|
|
2767
2960
|
this.defaults = instanceConfig || {};
|
|
2768
2961
|
this.interceptors = {
|
|
@@ -2808,14 +3001,15 @@ var init_Axios = __esmMin((() => {
|
|
|
2808
3001
|
config = config || {};
|
|
2809
3002
|
config.url = configOrUrl;
|
|
2810
3003
|
} else config = configOrUrl || {};
|
|
2811
|
-
config = mergeConfig
|
|
3004
|
+
config = mergeConfig(this.defaults, config);
|
|
2812
3005
|
const { transitional, paramsSerializer, headers } = config;
|
|
2813
3006
|
if (transitional !== void 0) validator_default.assertOptions(transitional, {
|
|
2814
3007
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
2815
3008
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
2816
3009
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
2817
3010
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
2818
|
-
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
|
|
3011
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
3012
|
+
validateStatusUndefinedResolves: validators.transitional(validators.boolean)
|
|
2819
3013
|
}, false);
|
|
2820
3014
|
if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
|
|
2821
3015
|
else validator_default.assertOptions(paramsSerializer, {
|
|
@@ -2842,7 +3036,7 @@ var init_Axios = __esmMin((() => {
|
|
|
2842
3036
|
], (method) => {
|
|
2843
3037
|
delete headers[method];
|
|
2844
3038
|
});
|
|
2845
|
-
config.headers = AxiosHeaders
|
|
3039
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
2846
3040
|
const requestInterceptorChain = [];
|
|
2847
3041
|
let synchronousRequestInterceptors = true;
|
|
2848
3042
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -2891,8 +3085,8 @@ var init_Axios = __esmMin((() => {
|
|
|
2891
3085
|
return promise;
|
|
2892
3086
|
}
|
|
2893
3087
|
getUri(config) {
|
|
2894
|
-
config = mergeConfig
|
|
2895
|
-
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3088
|
+
config = mergeConfig(this.defaults, config);
|
|
3089
|
+
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config), config.params, config.paramsSerializer);
|
|
2896
3090
|
}
|
|
2897
3091
|
};
|
|
2898
3092
|
utils_default.forEach([
|
|
@@ -2901,11 +3095,11 @@ var init_Axios = __esmMin((() => {
|
|
|
2901
3095
|
"head",
|
|
2902
3096
|
"options"
|
|
2903
3097
|
], function forEachMethodNoData(method) {
|
|
2904
|
-
Axios
|
|
2905
|
-
return this.request(mergeConfig
|
|
3098
|
+
Axios.prototype[method] = function(url, config) {
|
|
3099
|
+
return this.request(mergeConfig(config || {}, {
|
|
2906
3100
|
method,
|
|
2907
3101
|
url,
|
|
2908
|
-
data: (config
|
|
3102
|
+
data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
|
|
2909
3103
|
}));
|
|
2910
3104
|
};
|
|
2911
3105
|
});
|
|
@@ -2917,7 +3111,7 @@ var init_Axios = __esmMin((() => {
|
|
|
2917
3111
|
], function forEachMethodWithData(method) {
|
|
2918
3112
|
function generateHTTPMethod(isForm) {
|
|
2919
3113
|
return function httpMethod(url, data, config) {
|
|
2920
|
-
return this.request(mergeConfig
|
|
3114
|
+
return this.request(mergeConfig(config || {}, {
|
|
2921
3115
|
method,
|
|
2922
3116
|
headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
|
|
2923
3117
|
url,
|
|
@@ -2925,16 +3119,16 @@ var init_Axios = __esmMin((() => {
|
|
|
2925
3119
|
}));
|
|
2926
3120
|
};
|
|
2927
3121
|
}
|
|
2928
|
-
Axios
|
|
2929
|
-
if (method !== "query") Axios
|
|
3122
|
+
Axios.prototype[method] = generateHTTPMethod();
|
|
3123
|
+
if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
2930
3124
|
});
|
|
2931
3125
|
}));
|
|
2932
3126
|
//#endregion
|
|
2933
|
-
//#region node_modules/.pnpm/axios@1.
|
|
2934
|
-
var CancelToken
|
|
3127
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
3128
|
+
var CancelToken;
|
|
2935
3129
|
var init_CancelToken = __esmMin((() => {
|
|
2936
3130
|
init_CanceledError();
|
|
2937
|
-
CancelToken
|
|
3131
|
+
CancelToken = class CancelToken {
|
|
2938
3132
|
constructor(executor) {
|
|
2939
3133
|
if (typeof executor !== "function") throw new TypeError("executor must be a function.");
|
|
2940
3134
|
let resolvePromise;
|
|
@@ -2961,7 +3155,7 @@ var init_CancelToken = __esmMin((() => {
|
|
|
2961
3155
|
};
|
|
2962
3156
|
executor(function cancel(message, config, request) {
|
|
2963
3157
|
if (token.reason) return;
|
|
2964
|
-
token.reason = new CanceledError
|
|
3158
|
+
token.reason = new CanceledError(message, config, request);
|
|
2965
3159
|
resolvePromise(token.reason);
|
|
2966
3160
|
});
|
|
2967
3161
|
}
|
|
@@ -3006,7 +3200,7 @@ var init_CancelToken = __esmMin((() => {
|
|
|
3006
3200
|
static source() {
|
|
3007
3201
|
let cancel;
|
|
3008
3202
|
return {
|
|
3009
|
-
token: new CancelToken
|
|
3203
|
+
token: new CancelToken(function executor(c) {
|
|
3010
3204
|
cancel = c;
|
|
3011
3205
|
}),
|
|
3012
3206
|
cancel
|
|
@@ -3015,7 +3209,7 @@ var init_CancelToken = __esmMin((() => {
|
|
|
3015
3209
|
};
|
|
3016
3210
|
}));
|
|
3017
3211
|
//#endregion
|
|
3018
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3212
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/spread.js
|
|
3019
3213
|
/**
|
|
3020
3214
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
3021
3215
|
*
|
|
@@ -3037,14 +3231,14 @@ var init_CancelToken = __esmMin((() => {
|
|
|
3037
3231
|
*
|
|
3038
3232
|
* @returns {Function}
|
|
3039
3233
|
*/
|
|
3040
|
-
function spread
|
|
3234
|
+
function spread(callback) {
|
|
3041
3235
|
return function wrap(arr) {
|
|
3042
3236
|
return callback.apply(null, arr);
|
|
3043
3237
|
};
|
|
3044
3238
|
}
|
|
3045
3239
|
var init_spread = __esmMin((() => {}));
|
|
3046
3240
|
//#endregion
|
|
3047
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3241
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
3048
3242
|
/**
|
|
3049
3243
|
* Determines whether the payload is an error thrown by Axios
|
|
3050
3244
|
*
|
|
@@ -3052,17 +3246,17 @@ var init_spread = __esmMin((() => {}));
|
|
|
3052
3246
|
*
|
|
3053
3247
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
3054
3248
|
*/
|
|
3055
|
-
function isAxiosError
|
|
3249
|
+
function isAxiosError(payload) {
|
|
3056
3250
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
3057
3251
|
}
|
|
3058
3252
|
var init_isAxiosError = __esmMin((() => {
|
|
3059
3253
|
init_utils$1();
|
|
3060
3254
|
}));
|
|
3061
3255
|
//#endregion
|
|
3062
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3063
|
-
var HttpStatusCode
|
|
3256
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
3257
|
+
var HttpStatusCode;
|
|
3064
3258
|
var init_HttpStatusCode = __esmMin((() => {
|
|
3065
|
-
HttpStatusCode
|
|
3259
|
+
HttpStatusCode = {
|
|
3066
3260
|
Continue: 100,
|
|
3067
3261
|
SwitchingProtocols: 101,
|
|
3068
3262
|
Processing: 102,
|
|
@@ -3133,12 +3327,12 @@ var init_HttpStatusCode = __esmMin((() => {
|
|
|
3133
3327
|
SslHandshakeFailed: 525,
|
|
3134
3328
|
InvalidSslCertificate: 526
|
|
3135
3329
|
};
|
|
3136
|
-
Object.entries(HttpStatusCode
|
|
3137
|
-
HttpStatusCode
|
|
3330
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
3331
|
+
HttpStatusCode[value] = key;
|
|
3138
3332
|
});
|
|
3139
3333
|
}));
|
|
3140
3334
|
//#endregion
|
|
3141
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3335
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/axios.js
|
|
3142
3336
|
/**
|
|
3143
3337
|
* Create an instance of Axios
|
|
3144
3338
|
*
|
|
@@ -3147,12 +3341,12 @@ var init_HttpStatusCode = __esmMin((() => {
|
|
|
3147
3341
|
* @returns {Axios} A new instance of Axios
|
|
3148
3342
|
*/
|
|
3149
3343
|
function createInstance(defaultConfig) {
|
|
3150
|
-
const context = new Axios
|
|
3151
|
-
const instance = bind(Axios
|
|
3152
|
-
utils_default.extend(instance, Axios
|
|
3344
|
+
const context = new Axios(defaultConfig);
|
|
3345
|
+
const instance = bind(Axios.prototype.request, context);
|
|
3346
|
+
utils_default.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
3153
3347
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
3154
3348
|
instance.create = function create(instanceConfig) {
|
|
3155
|
-
return createInstance(mergeConfig
|
|
3349
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
3156
3350
|
};
|
|
3157
3351
|
return instance;
|
|
3158
3352
|
}
|
|
@@ -3176,32 +3370,30 @@ var init_axios$1 = __esmMin((() => {
|
|
|
3176
3370
|
init_adapters();
|
|
3177
3371
|
init_HttpStatusCode();
|
|
3178
3372
|
axios$1 = createInstance(defaults);
|
|
3179
|
-
axios$1.Axios = Axios
|
|
3180
|
-
axios$1.CanceledError = CanceledError
|
|
3181
|
-
axios$1.CancelToken = CancelToken
|
|
3182
|
-
axios$1.isCancel = isCancel
|
|
3183
|
-
axios$1.VERSION = VERSION
|
|
3184
|
-
axios$1.toFormData = toFormData
|
|
3185
|
-
axios$1.AxiosError = AxiosError
|
|
3373
|
+
axios$1.Axios = Axios;
|
|
3374
|
+
axios$1.CanceledError = CanceledError;
|
|
3375
|
+
axios$1.CancelToken = CancelToken;
|
|
3376
|
+
axios$1.isCancel = isCancel;
|
|
3377
|
+
axios$1.VERSION = VERSION;
|
|
3378
|
+
axios$1.toFormData = toFormData;
|
|
3379
|
+
axios$1.AxiosError = AxiosError;
|
|
3186
3380
|
axios$1.Cancel = axios$1.CanceledError;
|
|
3187
3381
|
axios$1.all = function all(promises) {
|
|
3188
3382
|
return Promise.all(promises);
|
|
3189
3383
|
};
|
|
3190
|
-
axios$1.spread = spread
|
|
3191
|
-
axios$1.isAxiosError = isAxiosError
|
|
3192
|
-
axios$1.mergeConfig = mergeConfig
|
|
3193
|
-
axios$1.AxiosHeaders = AxiosHeaders
|
|
3384
|
+
axios$1.spread = spread;
|
|
3385
|
+
axios$1.isAxiosError = isAxiosError;
|
|
3386
|
+
axios$1.mergeConfig = mergeConfig;
|
|
3387
|
+
axios$1.AxiosHeaders = AxiosHeaders;
|
|
3194
3388
|
axios$1.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3195
3389
|
axios$1.getAdapter = adapters_default.getAdapter;
|
|
3196
|
-
axios$1.HttpStatusCode = HttpStatusCode
|
|
3390
|
+
axios$1.HttpStatusCode = HttpStatusCode;
|
|
3197
3391
|
axios$1.default = axios$1;
|
|
3198
3392
|
}));
|
|
3199
3393
|
//#endregion
|
|
3200
|
-
//#region node_modules/.pnpm/axios@1.
|
|
3201
|
-
var Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create;
|
|
3394
|
+
//#region node_modules/.pnpm/axios@1.18.1/node_modules/axios/index.js
|
|
3202
3395
|
var init_axios = __esmMin((() => {
|
|
3203
3396
|
init_axios$1();
|
|
3204
|
-
({Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create} = axios$1);
|
|
3205
3397
|
}));
|
|
3206
3398
|
//#endregion
|
|
3207
3399
|
//#region src/base/config.ts
|
|
@@ -3328,7 +3520,8 @@ var init_ajax = __esmMin((() => {
|
|
|
3328
3520
|
//#endregion
|
|
3329
3521
|
//#region node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
|
|
3330
3522
|
var require_eventemitter3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3331
|
-
var has = Object.prototype.hasOwnProperty
|
|
3523
|
+
var has = Object.prototype.hasOwnProperty;
|
|
3524
|
+
var prefix = "~";
|
|
3332
3525
|
/**
|
|
3333
3526
|
* Constructor to create a storage for our `EE` objects.
|
|
3334
3527
|
* An `Events` instance is a plain object whose properties are event names.
|
|
@@ -3725,7 +3918,7 @@ var init_SysConfig = __esmMin((() => {
|
|
|
3725
3918
|
sysConfig = new SysConfig(config_default.state);
|
|
3726
3919
|
}));
|
|
3727
3920
|
//#endregion
|
|
3728
|
-
//#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.
|
|
3921
|
+
//#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.39_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
|
|
3729
3922
|
/*!
|
|
3730
3923
|
* pinia v3.0.4
|
|
3731
3924
|
* (c) 2025 Eduardo San Martin Morote
|
|
@@ -3921,7 +4114,8 @@ function createOptionsStore(id, options, pinia, hot) {
|
|
|
3921
4114
|
if (!initialState && true)
|
|
3922
4115
|
/* istanbul ignore if */
|
|
3923
4116
|
pinia.state.value[id] = state ? state() : {};
|
|
3924
|
-
|
|
4117
|
+
const localState = toRefs(pinia.state.value[id]);
|
|
4118
|
+
return assign$2(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name) => {
|
|
3925
4119
|
computedGetters[name] = markRaw(computed(() => {
|
|
3926
4120
|
setActivePinia(pinia);
|
|
3927
4121
|
const store = pinia._s.get(id);
|
|
@@ -4285,13 +4479,16 @@ var init_detect = __esmMin((() => {
|
|
|
4285
4479
|
UA.match(/Web[kK]it[/]{0,1}([\d.]+)/);
|
|
4286
4480
|
android = UA.match(/(Android);?[\s/]+([\d.]+)?/);
|
|
4287
4481
|
UA.match(/\(Macintosh; Intel /);
|
|
4288
|
-
ipad = UA.match(/(iPad).*OS\s([\d_]+)/)
|
|
4482
|
+
ipad = UA.match(/(iPad).*OS\s([\d_]+)/);
|
|
4483
|
+
ipod = UA.match(/(iPod)(.*OS\s([\d_]+))?/);
|
|
4484
|
+
iphone = !ipad && UA.match(/(iPhone\sOS)\s([\d_]+)/);
|
|
4289
4485
|
UA.match(/(webOS|hpwOS)[\s/]([\d.]+)/);
|
|
4290
4486
|
/Win\d{2}|Windows/.test(navigator.platform);
|
|
4291
4487
|
UA.match(/(BlackBerry).*Version\/([\d.]+)/);
|
|
4292
4488
|
UA.match(/(BB10).*Version\/([\d.]+)/);
|
|
4293
4489
|
UA.match(/PlayBook/);
|
|
4294
|
-
chrome = UA.match(/Chrome\/([\d.]+)/) || UA.match(/CriOS\/([\d.]+)/)
|
|
4490
|
+
chrome = UA.match(/Chrome\/([\d.]+)/) || UA.match(/CriOS\/([\d.]+)/);
|
|
4491
|
+
x5 = UA.match(/MQQBrowser\/([\d.]+)/i);
|
|
4295
4492
|
UA.match(/MSIE\s([\d.]+)/) || UA.match(/Trident\/[\d](?=[^?]+).*rv:([0-9.].)/);
|
|
4296
4493
|
!chrome && UA.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/) || UA.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);
|
|
4297
4494
|
if (android) os.android = true, os.version = android[2];
|
|
@@ -5252,6 +5449,11 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5252
5449
|
author: "作者",
|
|
5253
5450
|
license: "许可证",
|
|
5254
5451
|
homepage: "主页"
|
|
5452
|
+
},
|
|
5453
|
+
update: {
|
|
5454
|
+
available: "发现新版本 v{version},点击下载更新。",
|
|
5455
|
+
downloadNow: "下载",
|
|
5456
|
+
later: "稍后"
|
|
5255
5457
|
}
|
|
5256
5458
|
};
|
|
5257
5459
|
}));
|
|
@@ -5996,6 +6198,11 @@ var init_en_US = __esmMin((() => {
|
|
|
5996
6198
|
author: "Author",
|
|
5997
6199
|
license: "License",
|
|
5998
6200
|
homepage: "Homepage"
|
|
6201
|
+
},
|
|
6202
|
+
update: {
|
|
6203
|
+
available: "New version v{version} is available.",
|
|
6204
|
+
downloadNow: "Download",
|
|
6205
|
+
later: "Later"
|
|
5999
6206
|
}
|
|
6000
6207
|
};
|
|
6001
6208
|
}));
|
|
@@ -6051,17 +6258,24 @@ var init_preload_helper = __esmMin((() => {
|
|
|
6051
6258
|
reason
|
|
6052
6259
|
}))));
|
|
6053
6260
|
}
|
|
6261
|
+
function importMetaResolve(specifier) {
|
|
6262
|
+
if (import.meta.resolve) return import.meta.resolve(specifier);
|
|
6263
|
+
return new URL(
|
|
6264
|
+
specifier,
|
|
6265
|
+
/** #__KEEP__ */
|
|
6266
|
+
import.meta.url
|
|
6267
|
+
).href;
|
|
6268
|
+
}
|
|
6054
6269
|
promise = allSettled(deps.map((dep) => {
|
|
6055
6270
|
dep = assetsURL(dep, importerUrl);
|
|
6271
|
+
dep = importMetaResolve(dep);
|
|
6056
6272
|
if (dep in seen) return;
|
|
6057
6273
|
seen[dep] = true;
|
|
6058
6274
|
const isCss = dep.endsWith(".css");
|
|
6059
|
-
|
|
6060
|
-
if (!!importerUrl) for (let i = links.length - 1; i >= 0; i--) {
|
|
6275
|
+
for (let i = links.length - 1; i >= 0; i--) {
|
|
6061
6276
|
const link = links[i];
|
|
6062
6277
|
if (link.href === dep && (!isCss || link.rel === "stylesheet")) return;
|
|
6063
6278
|
}
|
|
6064
|
-
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
6065
6279
|
const link = document.createElement("link");
|
|
6066
6280
|
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
6067
6281
|
if (!isCss) link.as = "script";
|
|
@@ -6157,7 +6371,7 @@ var init_router = __esmMin((() => {
|
|
|
6157
6371
|
});
|
|
6158
6372
|
}));
|
|
6159
6373
|
//#endregion
|
|
6160
|
-
//#region node_modules/.pnpm/pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@5.9.3_vue@3.5.
|
|
6374
|
+
//#region node_modules/.pnpm/pinia-plugin-persistedstate@4.7.1_pinia@3.0.4_typescript@5.9.3_vue@3.5.39_typescript@5.9.3__/node_modules/pinia-plugin-persistedstate/dist/index.js
|
|
6161
6375
|
function get(obj, path) {
|
|
6162
6376
|
if (obj == null) return void 0;
|
|
6163
6377
|
let value = obj;
|
|
@@ -6339,6 +6553,16 @@ var init_toast_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
6339
6553
|
//#region src/components/toast/toast.vue?vue&type=style&index=0&scoped=7d639c44&lang.css
|
|
6340
6554
|
var init_toast_vue_vue_type_style_index_0_scoped_7d639c44_lang = __esmMin((() => {}));
|
|
6341
6555
|
//#endregion
|
|
6556
|
+
//#region \0plugin-vue:export-helper
|
|
6557
|
+
var _plugin_vue_export_helper_default;
|
|
6558
|
+
var init__plugin_vue_export_helper = __esmMin((() => {
|
|
6559
|
+
_plugin_vue_export_helper_default = (sfc, props) => {
|
|
6560
|
+
const target = sfc.__vccOpts || sfc;
|
|
6561
|
+
for (const [key, val] of props) target[key] = val;
|
|
6562
|
+
return target;
|
|
6563
|
+
};
|
|
6564
|
+
}));
|
|
6565
|
+
//#endregion
|
|
6342
6566
|
//#region src/components/toast/toast.vue
|
|
6343
6567
|
var toast_default$1;
|
|
6344
6568
|
var init_toast$2 = __esmMin((() => {
|
|
@@ -7138,23 +7362,25 @@ var init_modal = __esmMin((() => {
|
|
|
7138
7362
|
open: () => globalModalInstance.show(),
|
|
7139
7363
|
close: () => globalModalInstance.hide(),
|
|
7140
7364
|
alert(options) {
|
|
7141
|
-
|
|
7365
|
+
const opts = typeof options === "string" ? {
|
|
7142
7366
|
content: options,
|
|
7143
7367
|
type: "info",
|
|
7144
7368
|
showCancel: false
|
|
7145
7369
|
} : {
|
|
7146
7370
|
...options,
|
|
7147
7371
|
showCancel: false
|
|
7148
|
-
}
|
|
7372
|
+
};
|
|
7373
|
+
return showModal(opts);
|
|
7149
7374
|
},
|
|
7150
7375
|
confirm(options) {
|
|
7151
|
-
|
|
7376
|
+
const opts = typeof options === "string" ? {
|
|
7152
7377
|
content: options,
|
|
7153
7378
|
type: "warning"
|
|
7154
7379
|
} : {
|
|
7155
7380
|
...options,
|
|
7156
7381
|
showCancel: true
|
|
7157
|
-
}
|
|
7382
|
+
};
|
|
7383
|
+
return showModal(opts);
|
|
7158
7384
|
},
|
|
7159
7385
|
success(content) {
|
|
7160
7386
|
const t = getT();
|
|
@@ -7250,8 +7476,9 @@ var init_modal = __esmMin((() => {
|
|
|
7250
7476
|
});
|
|
7251
7477
|
};
|
|
7252
7478
|
showConfirm = (content, options) => {
|
|
7479
|
+
const t = getT();
|
|
7253
7480
|
return showModal({
|
|
7254
|
-
title:
|
|
7481
|
+
title: t("common.confirmTitle"),
|
|
7255
7482
|
content,
|
|
7256
7483
|
type: "warning",
|
|
7257
7484
|
showCancel: true,
|
|
@@ -7291,4 +7518,4 @@ var init_modal = __esmMin((() => {
|
|
|
7291
7518
|
app.mount("#app");
|
|
7292
7519
|
})))();
|
|
7293
7520
|
//#endregion
|
|
7294
|
-
export {
|
|
7521
|
+
export { init_i18n as _, dataGrid_default as a, defineStore as b, modal_default$1 as c, toast as d, init_toast$2 as f, getT as g, init__plugin_vue_export_helper as h, showConfirm as i, init_loading as l, _plugin_vue_export_helper_default as m, init_modal as n, init_dataGrid as o, toast_default$1 as p, showAlert as r, init_modal$1 as s, getModalInstance as t, init_toast$1 as u, init_base as v, init_pinia as x, request as y };
|