workdesktop-ai 1.2.3 → 1.2.5
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/CHANGELOG.md +1 -0
- package/dist/api-button/index.mjs +1 -1
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/checkbox-list/index.mjs +1 -1
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs → ApiButton.vue_vue_type_script_setup_true_lang-ZLHP9S_H.mjs} +2 -2
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-3BjZSAPZ.mjs.map → ApiButton.vue_vue_type_script_setup_true_lang-ZLHP9S_H.mjs.map} +1 -1
- package/dist/chunks/{AutoComplete-C6Nxatvt.mjs → AutoComplete-BKWrR5pD.mjs} +2 -2
- package/dist/chunks/{AutoComplete-C6Nxatvt.mjs.map → AutoComplete-BKWrR5pD.mjs.map} +1 -1
- package/dist/chunks/{CheckboxList-5AEx33r5.mjs → CheckboxList-5o9E0Tzg.mjs} +2 -2
- package/dist/chunks/{CheckboxList-5AEx33r5.mjs.map → CheckboxList-5o9E0Tzg.mjs.map} +1 -1
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs → ConfirmButton.vue_vue_type_script_setup_true_lang-Cz1M6QsL.mjs} +2 -2
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-CXYH1Rlc.mjs.map → ConfirmButton.vue_vue_type_script_setup_true_lang-Cz1M6QsL.mjs.map} +1 -1
- package/dist/chunks/{DataForm-C6VLTSOm.mjs → DataForm-Dvx6GxlR.mjs} +8 -7
- package/dist/chunks/{DataForm-C6VLTSOm.mjs.map → DataForm-Dvx6GxlR.mjs.map} +1 -1
- package/dist/chunks/{DataGrid-Dd7n5JM7.mjs → DataGrid-Cw3yXhmR.mjs} +3 -3
- package/dist/chunks/{DataGrid-Dd7n5JM7.mjs.map → DataGrid-Cw3yXhmR.mjs.map} +1 -1
- package/dist/chunks/{DialogButton.vue_vue_type_script_setup_true_lang-CTXP79zc.mjs → DialogButton.vue_vue_type_script_setup_true_lang-ex2zYLZC.mjs} +2 -2
- package/dist/chunks/{DialogButton.vue_vue_type_script_setup_true_lang-CTXP79zc.mjs.map → DialogButton.vue_vue_type_script_setup_true_lang-ex2zYLZC.mjs.map} +1 -1
- package/dist/chunks/{Drawer-ucXKUecL.mjs → Drawer-BzdohcBg.mjs} +96 -90
- package/dist/chunks/Drawer-BzdohcBg.mjs.map +1 -0
- package/dist/chunks/{DrawerButton.vue_vue_type_script_setup_true_lang-DUda4p7_.mjs → DrawerButton.vue_vue_type_script_setup_true_lang-u5ifQw5k.mjs} +2 -2
- package/dist/chunks/{DrawerButton.vue_vue_type_script_setup_true_lang-DUda4p7_.mjs.map → DrawerButton.vue_vue_type_script_setup_true_lang-u5ifQw5k.mjs.map} +1 -1
- package/dist/chunks/{EditableGrid-CDeeVkaX.mjs → EditableGrid-Dr48XzLH.mjs} +6 -5
- package/dist/chunks/{EditableGrid-CDeeVkaX.mjs.map → EditableGrid-Dr48XzLH.mjs.map} +1 -1
- package/dist/chunks/Guide-AWaWvQoq.mjs +347 -0
- package/dist/chunks/Guide-AWaWvQoq.mjs.map +1 -0
- package/dist/chunks/Iframe-BB1Va2kZ.mjs +128 -0
- package/dist/chunks/Iframe-BB1Va2kZ.mjs.map +1 -0
- package/dist/chunks/{ImageUpload-CQA9XQ7Q.mjs → ImageUpload-DiJ16Aga.mjs} +5 -4
- package/dist/chunks/{ImageUpload-CQA9XQ7Q.mjs.map → ImageUpload-DiJ16Aga.mjs.map} +1 -1
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs → PromptButton.vue_vue_type_script_setup_true_lang-y_sfI324.mjs} +2 -2
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-oYaMH-CI.mjs.map → PromptButton.vue_vue_type_script_setup_true_lang-y_sfI324.mjs.map} +1 -1
- package/dist/chunks/{RadioList-BUWcP_Pk.mjs → RadioList-CQJDixnr.mjs} +2 -2
- package/dist/chunks/{RadioList-BUWcP_Pk.mjs.map → RadioList-CQJDixnr.mjs.map} +1 -1
- package/dist/chunks/Requester.vue_vue_type_script_setup_true_lang-nel6vN12.mjs +63 -0
- package/dist/chunks/Requester.vue_vue_type_script_setup_true_lang-nel6vN12.mjs.map +1 -0
- package/dist/chunks/{Select-uvFy7_NU.mjs → Select-ByH7uxuS.mjs} +2 -2
- package/dist/chunks/{Select-uvFy7_NU.mjs.map → Select-ByH7uxuS.mjs.map} +1 -1
- package/dist/chunks/{Station-BTP0SbBg.mjs → Station-DDoJem4F.mjs} +150 -139
- package/dist/chunks/Station-DDoJem4F.mjs.map +1 -0
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs → Switch.vue_vue_type_script_setup_true_lang-DrSXmsj6.mjs} +2 -2
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-DUhXAGs2.mjs.map → Switch.vue_vue_type_script_setup_true_lang-DrSXmsj6.mjs.map} +1 -1
- package/dist/chunks/Tips-B_18E4mc.mjs +71 -0
- package/dist/chunks/Tips-B_18E4mc.mjs.map +1 -0
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs → Upload.vue_vue_type_script_setup_true_lang-k-0PTz3l.mjs} +5 -4
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-CHGCjpKK.mjs.map → Upload.vue_vue_type_script_setup_true_lang-k-0PTz3l.mjs.map} +1 -1
- package/dist/chunks/{Viewer-CjLSQTrw.mjs → Viewer-CmTaneb6.mjs} +2 -2
- package/dist/chunks/{Viewer-CjLSQTrw.mjs.map → Viewer-CmTaneb6.mjs.map} +1 -1
- package/dist/chunks/config-CDqjABpD.mjs +1378 -0
- package/dist/chunks/config-CDqjABpD.mjs.map +1 -0
- package/dist/chunks/http-CW9konD4.mjs +2774 -0
- package/dist/chunks/http-CW9konD4.mjs.map +1 -0
- package/dist/chunks/{useApiAction-DxVQWWxv.mjs → useApiAction-CQVmN1MH.mjs} +2 -2
- package/dist/chunks/{useApiAction-DxVQWWxv.mjs.map → useApiAction-CQVmN1MH.mjs.map} +1 -1
- package/dist/chunks/{useColumnSettings-BwG2V9xp.mjs → useColumnSettings-CIFQCmzT.mjs} +22 -21
- package/dist/chunks/{useColumnSettings-BwG2V9xp.mjs.map → useColumnSettings-CIFQCmzT.mjs.map} +1 -1
- package/dist/chunks/useConfig-ChIkE3Lz.mjs +23 -0
- package/dist/chunks/useConfig-ChIkE3Lz.mjs.map +1 -0
- package/dist/chunks/{useOptionsLoader-DEVCYhrp.mjs → useOptionsLoader-BUO0VTjH.mjs} +2 -2
- package/dist/chunks/{useOptionsLoader-DEVCYhrp.mjs.map → useOptionsLoader-BUO0VTjH.mjs.map} +1 -1
- package/dist/confirm-button/index.mjs +1 -1
- package/dist/data-form/index.mjs +1 -1
- package/dist/data-grid/index.mjs +1 -1
- package/dist/dialog-button/index.mjs +1 -1
- package/dist/drawer/index.mjs +1 -1
- package/dist/drawer/style.css +1 -1
- package/dist/drawer-button/index.mjs +1 -1
- package/dist/editable-grid/index.mjs +1 -1
- package/dist/guide/index.mjs +7 -0
- package/dist/guide/index.mjs.map +1 -0
- package/dist/guide/style.css +1 -0
- package/dist/iframe/index.mjs +1 -1
- package/dist/iframe/style.css +1 -1
- package/dist/image-upload/index.mjs +1 -1
- package/dist/index.esm.js +194 -189
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +25 -21
- package/dist/index.umd.js.map +1 -1
- package/dist/prompt-button/index.mjs +1 -1
- package/dist/radio-list/index.mjs +1 -1
- package/dist/requester/index.mjs +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/station/index.mjs +1 -1
- package/dist/station/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/index.mjs +1 -1
- package/dist/tips/index.mjs +1 -1
- package/dist/tips/style.css +1 -1
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +3 -3
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +5 -5
- package/dist/types/src/components/buttons/DialogButton.vue.d.ts +3 -3
- package/dist/types/src/components/buttons/DrawerButton.vue.d.ts +4 -4
- package/dist/types/src/components/buttons/PopconfirmButton.vue.d.ts +6 -6
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +5 -5
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +1 -1
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +1 -1
- package/dist/types/src/components/containers/Drawer.vue.d.ts +4 -4
- package/dist/types/src/components/containers/Iframe.vue.d.ts +42 -0
- package/dist/types/src/components/data/datagrid/DataGrid.vue.d.ts +5 -5
- package/dist/types/src/components/data/editable-grid/EditableGrid.vue.d.ts +7 -7
- package/dist/types/src/components/data/viewer/Viewer.vue.d.ts +1 -1
- package/dist/types/src/components/form/FormItem.vue.d.ts +1 -1
- package/dist/types/src/components/form/SearchItem.vue.d.ts +1 -1
- package/dist/types/src/components/form/data-form/DataForm.vue.d.ts +10 -10
- package/dist/types/src/components/guide/Guide.vue.d.ts +116 -0
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +6 -6
- package/dist/types/src/components/inputs/CheckboxList.vue.d.ts +6 -6
- package/dist/types/src/components/inputs/RadioList.vue.d.ts +6 -6
- package/dist/types/src/components/inputs/Select.vue.d.ts +6 -6
- package/dist/types/src/components/inputs/Switch.vue.d.ts +9 -9
- package/dist/types/src/components/layout/Station.vue.d.ts +15 -4
- package/dist/types/src/components/layout/types.d.ts +2 -0
- package/dist/types/src/components/styles/Path.vue.d.ts +1 -1
- package/dist/types/src/components/styles/Tips.vue.d.ts +17 -0
- package/dist/types/src/components/upload/ImageUpload.vue.d.ts +5 -5
- package/dist/types/src/components/upload/Upload.vue.d.ts +5 -5
- package/dist/types/src/entries/guide.d.ts +9 -0
- package/dist/upload/index.mjs +1 -1
- package/dist/viewer/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunks/Drawer-ucXKUecL.mjs.map +0 -1
- package/dist/chunks/Iframe-CeSiMnvR.mjs +0 -65
- package/dist/chunks/Iframe-CeSiMnvR.mjs.map +0 -1
- package/dist/chunks/Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs +0 -80
- package/dist/chunks/Requester.vue_vue_type_script_setup_true_lang-DkLqAjug.mjs.map +0 -1
- package/dist/chunks/Station-BTP0SbBg.mjs.map +0 -1
- package/dist/chunks/Tips-IWCZcR1K.mjs +0 -63
- package/dist/chunks/Tips-IWCZcR1K.mjs.map +0 -1
- package/dist/chunks/http-C06mNpwY.mjs +0 -4141
- package/dist/chunks/http-C06mNpwY.mjs.map +0 -1
|
@@ -0,0 +1,2774 @@
|
|
|
1
|
+
var an = Object.defineProperty;
|
|
2
|
+
var cn = (t, e, n) => e in t ? an(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var Q = (t, e, n) => cn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { ElLoading as ln, ElMessage as un, ElNotification as fn, ElMessageBox as dn } from "element-plus";
|
|
5
|
+
import { d as hn, a as pn } from "./config-CDqjABpD.mjs";
|
|
6
|
+
function _t(t, e) {
|
|
7
|
+
return function() {
|
|
8
|
+
return t.apply(e, arguments);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
const { toString: mn } = Object.prototype, { getPrototypeOf: J } = Object, { iterator: me, toStringTag: xt } = Symbol, he = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Pt = (t) => typeof t == "string" && (t === "__proto__" || t === "constructor" || t === "prototype"), Tt = (t, e, n) => t === Object.prototype || !n && e === null, yn = (t) => {
|
|
12
|
+
if (!Object.isExtensible(t))
|
|
13
|
+
return !1;
|
|
14
|
+
const e = Object.getOwnPropertyNames(t);
|
|
15
|
+
return Object.getOwnPropertySymbols && e.push(...Object.getOwnPropertySymbols(t)), e.every((n) => {
|
|
16
|
+
if (Pt(n))
|
|
17
|
+
return !1;
|
|
18
|
+
const r = Object.getOwnPropertyDescriptor(t, n);
|
|
19
|
+
return !!r && r.configurable && r.writable === !0;
|
|
20
|
+
});
|
|
21
|
+
}, pe = (t, e) => {
|
|
22
|
+
let n = t;
|
|
23
|
+
const r = [];
|
|
24
|
+
for (; n != null; ) {
|
|
25
|
+
if (r.indexOf(n) !== -1)
|
|
26
|
+
return !1;
|
|
27
|
+
r.push(n);
|
|
28
|
+
const s = J(n);
|
|
29
|
+
if (Tt(n, s, n === t))
|
|
30
|
+
return !1;
|
|
31
|
+
if (he(n, e))
|
|
32
|
+
return !0;
|
|
33
|
+
n = s;
|
|
34
|
+
}
|
|
35
|
+
return !1;
|
|
36
|
+
}, gn = (t, e) => t != null && pe(t, e) ? t[e] : void 0, bn = (t) => {
|
|
37
|
+
if (t == null || typeof t != "object" && typeof t != "function")
|
|
38
|
+
return t;
|
|
39
|
+
const e = J(t);
|
|
40
|
+
if (e === null && yn(t))
|
|
41
|
+
return t;
|
|
42
|
+
const n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), s = [];
|
|
43
|
+
let o = t;
|
|
44
|
+
for (; o != null && s.indexOf(o) === -1; ) {
|
|
45
|
+
s.push(o);
|
|
46
|
+
const i = o === t ? e : J(o);
|
|
47
|
+
if (Tt(o, i, o === t))
|
|
48
|
+
break;
|
|
49
|
+
const c = Object.getOwnPropertyNames(o);
|
|
50
|
+
Object.getOwnPropertySymbols && c.push(...Object.getOwnPropertySymbols(o));
|
|
51
|
+
for (const l of c)
|
|
52
|
+
Pt(l) || he(r, l) || (n[l] = t[l], r[l] = !0);
|
|
53
|
+
o = i;
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
}, Ve = /* @__PURE__ */ ((t) => (e) => {
|
|
57
|
+
const n = mn.call(e);
|
|
58
|
+
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
59
|
+
})(/* @__PURE__ */ Object.create(null)), j = (t) => (t = t.toLowerCase(), (e) => Ve(e) === t), Ce = (t) => (e) => typeof e === t, { isArray: ee } = Array, te = Ce("undefined");
|
|
60
|
+
function oe(t) {
|
|
61
|
+
return t !== null && !te(t) && t.constructor !== null && !te(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
62
|
+
}
|
|
63
|
+
const Ct = j("ArrayBuffer");
|
|
64
|
+
function wn(t) {
|
|
65
|
+
let e;
|
|
66
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ct(t.buffer), e;
|
|
67
|
+
}
|
|
68
|
+
const En = Ce("string"), F = Ce("function"), Nt = Ce("number"), ie = (t) => t !== null && typeof t == "object", Rn = (t) => t === !0 || t === !1, Oe = (t) => {
|
|
69
|
+
if (!ie(t))
|
|
70
|
+
return !1;
|
|
71
|
+
const e = J(t);
|
|
72
|
+
return (e === null || e === Object.prototype || J(e) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
73
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
74
|
+
// only through shared or terminal prototype boundaries.
|
|
75
|
+
!pe(t, xt) && !pe(t, me);
|
|
76
|
+
}, Sn = (t) => {
|
|
77
|
+
if (!ie(t) || oe(t))
|
|
78
|
+
return !1;
|
|
79
|
+
try {
|
|
80
|
+
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
81
|
+
} catch {
|
|
82
|
+
return !1;
|
|
83
|
+
}
|
|
84
|
+
}, On = j("Date"), An = j("File"), _n = (t) => !!(t && typeof t.uri < "u"), xn = (t) => t && typeof t.getParts < "u", Pn = j("Blob"), Tn = j("FileList"), Cn = j("Set"), Nn = (t) => ie(t) && F(t.pipe);
|
|
85
|
+
function Dn() {
|
|
86
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
87
|
+
}
|
|
88
|
+
const ot = Dn(), it = typeof ot.FormData < "u" ? ot.FormData : void 0, Ln = (t) => {
|
|
89
|
+
if (!t) return !1;
|
|
90
|
+
if (it && t instanceof it) return !0;
|
|
91
|
+
const e = J(t);
|
|
92
|
+
if (!e || e === Object.prototype || !F(t.append)) return !1;
|
|
93
|
+
const n = Ve(t);
|
|
94
|
+
return n === "formdata" || // detect form-data instance
|
|
95
|
+
n === "object" && F(t.toString) && t.toString() === "[object FormData]";
|
|
96
|
+
}, Un = j("URLSearchParams"), [Fn, Bn, jn, In] = [
|
|
97
|
+
"ReadableStream",
|
|
98
|
+
"Request",
|
|
99
|
+
"Response",
|
|
100
|
+
"Headers"
|
|
101
|
+
].map(j), kn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
102
|
+
function ye(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
103
|
+
if (t === null || typeof t > "u")
|
|
104
|
+
return;
|
|
105
|
+
let r, s;
|
|
106
|
+
if (typeof t != "object" && (t = [t]), ee(t))
|
|
107
|
+
for (r = 0, s = t.length; r < s; r++)
|
|
108
|
+
e.call(null, t[r], r, t);
|
|
109
|
+
else {
|
|
110
|
+
if (oe(t))
|
|
111
|
+
return;
|
|
112
|
+
const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
|
|
113
|
+
let c;
|
|
114
|
+
for (r = 0; r < i; r++)
|
|
115
|
+
c = o[r], e.call(null, t[c], c, t);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function Dt(t, e) {
|
|
119
|
+
if (oe(t))
|
|
120
|
+
return null;
|
|
121
|
+
e = e.toLowerCase();
|
|
122
|
+
const n = Object.keys(t);
|
|
123
|
+
let r = n.length, s;
|
|
124
|
+
for (; r-- > 0; )
|
|
125
|
+
if (s = n[r], e === s.toLowerCase())
|
|
126
|
+
return s;
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
const Z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lt = (t) => !te(t) && t !== Z;
|
|
130
|
+
function ze(...t) {
|
|
131
|
+
const { caseless: e, skipUndefined: n } = Lt(this) && this || {}, r = {}, s = (o, i) => {
|
|
132
|
+
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
133
|
+
return;
|
|
134
|
+
const c = e && typeof i == "string" && Dt(r, i) || i, l = he(r, c) ? r[c] : void 0;
|
|
135
|
+
Oe(l) && Oe(o) ? r[c] = ze(l, o) : Oe(o) ? r[c] = ze({}, o) : ee(o) ? r[c] = o.slice() : (!n || !te(o)) && (r[c] = o);
|
|
136
|
+
};
|
|
137
|
+
for (let o = 0, i = t.length; o < i; o++) {
|
|
138
|
+
const c = t[o];
|
|
139
|
+
if (!c || oe(c) || (ye(c, s), typeof c != "object" || ee(c)))
|
|
140
|
+
continue;
|
|
141
|
+
const l = Object.getOwnPropertySymbols(c);
|
|
142
|
+
for (let d = 0; d < l.length; d++) {
|
|
143
|
+
const u = l[d];
|
|
144
|
+
Gn.call(c, u) && s(c[u], u);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return r;
|
|
148
|
+
}
|
|
149
|
+
const Mn = (t, e, n, { allOwnKeys: r } = {}) => (ye(
|
|
150
|
+
e,
|
|
151
|
+
(s, o) => {
|
|
152
|
+
n && F(s) ? Object.defineProperty(t, o, {
|
|
153
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
154
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
155
|
+
__proto__: null,
|
|
156
|
+
value: _t(s, n),
|
|
157
|
+
writable: !0,
|
|
158
|
+
enumerable: !0,
|
|
159
|
+
configurable: !0
|
|
160
|
+
}) : Object.defineProperty(t, o, {
|
|
161
|
+
__proto__: null,
|
|
162
|
+
value: s,
|
|
163
|
+
writable: !0,
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
configurable: !0
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
{ allOwnKeys: r }
|
|
169
|
+
), t), Hn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), qn = (t, e, n, r) => {
|
|
170
|
+
t.prototype = Object.create(e.prototype, r), Object.defineProperty(t.prototype, "constructor", {
|
|
171
|
+
__proto__: null,
|
|
172
|
+
value: t,
|
|
173
|
+
writable: !0,
|
|
174
|
+
enumerable: !1,
|
|
175
|
+
configurable: !0
|
|
176
|
+
}), Object.defineProperty(t, "super", {
|
|
177
|
+
__proto__: null,
|
|
178
|
+
value: e.prototype
|
|
179
|
+
}), n && Object.assign(t.prototype, n);
|
|
180
|
+
}, $n = (t, e, n, r) => {
|
|
181
|
+
let s, o, i;
|
|
182
|
+
const c = {};
|
|
183
|
+
if (e = e || {}, t == null) return e;
|
|
184
|
+
do {
|
|
185
|
+
for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
|
|
186
|
+
i = s[o], (!r || r(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0);
|
|
187
|
+
t = n !== !1 && J(t);
|
|
188
|
+
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
189
|
+
return e;
|
|
190
|
+
}, zn = (t, e, n) => {
|
|
191
|
+
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
192
|
+
const r = t.indexOf(e, n);
|
|
193
|
+
return r !== -1 && r === n;
|
|
194
|
+
}, vn = (t) => {
|
|
195
|
+
if (!t) return null;
|
|
196
|
+
if (ee(t)) return t;
|
|
197
|
+
let e = t.length;
|
|
198
|
+
if (!Nt(e)) return null;
|
|
199
|
+
const n = new Array(e);
|
|
200
|
+
for (; e-- > 0; )
|
|
201
|
+
n[e] = t[e];
|
|
202
|
+
return n;
|
|
203
|
+
}, Wn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && J(Uint8Array)), Vn = (t, e) => {
|
|
204
|
+
const r = (t && t[me]).call(t);
|
|
205
|
+
let s;
|
|
206
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
207
|
+
const o = s.value;
|
|
208
|
+
e.call(t, o[0], o[1]);
|
|
209
|
+
}
|
|
210
|
+
}, Jn = (t, e) => {
|
|
211
|
+
let n;
|
|
212
|
+
const r = [];
|
|
213
|
+
for (; (n = t.exec(e)) !== null; )
|
|
214
|
+
r.push(n);
|
|
215
|
+
return r;
|
|
216
|
+
}, Kn = j("HTMLFormElement"), Xn = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
217
|
+
return r.toUpperCase() + s;
|
|
218
|
+
}), { propertyIsEnumerable: Gn } = Object.prototype, Qn = j("RegExp"), Ut = (t, e) => {
|
|
219
|
+
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
220
|
+
ye(n, (s, o) => {
|
|
221
|
+
let i;
|
|
222
|
+
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
223
|
+
}), Object.defineProperties(t, r);
|
|
224
|
+
}, Zn = (t) => {
|
|
225
|
+
Ut(t, (e, n) => {
|
|
226
|
+
if (F(t) && ["arguments", "caller", "callee"].includes(n))
|
|
227
|
+
return !1;
|
|
228
|
+
const r = t[n];
|
|
229
|
+
if (F(r)) {
|
|
230
|
+
if (e.enumerable = !1, "writable" in e) {
|
|
231
|
+
e.writable = !1;
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
e.set || (e.set = () => {
|
|
235
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}, Yn = (t, e) => {
|
|
240
|
+
const n = {}, r = (s) => {
|
|
241
|
+
s.forEach((o) => {
|
|
242
|
+
n[o] = !0;
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
return ee(t) ? r(t) : r(String(t).split(e)), n;
|
|
246
|
+
}, er = () => {
|
|
247
|
+
}, tr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
248
|
+
function nr(t) {
|
|
249
|
+
return !!(t && F(t.append) && t[xt] === "FormData" && t[me]);
|
|
250
|
+
}
|
|
251
|
+
const rr = (t) => {
|
|
252
|
+
const e = /* @__PURE__ */ new WeakSet(), n = (r) => {
|
|
253
|
+
if (ie(r)) {
|
|
254
|
+
if (e.has(r))
|
|
255
|
+
return;
|
|
256
|
+
if (oe(r))
|
|
257
|
+
return r;
|
|
258
|
+
if (!("toJSON" in r)) {
|
|
259
|
+
e.add(r);
|
|
260
|
+
let s;
|
|
261
|
+
if (Cn(r)) {
|
|
262
|
+
s = [];
|
|
263
|
+
for (const o of r) {
|
|
264
|
+
const i = n(o);
|
|
265
|
+
!te(i) && s.push(i);
|
|
266
|
+
}
|
|
267
|
+
} else
|
|
268
|
+
s = ee(r) ? [] : {}, ye(r, (o, i) => {
|
|
269
|
+
const c = n(o);
|
|
270
|
+
!te(c) && (s[i] = c);
|
|
271
|
+
});
|
|
272
|
+
return e.delete(r), s;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return r;
|
|
276
|
+
};
|
|
277
|
+
return n(t);
|
|
278
|
+
}, sr = j("AsyncFunction"), or = (t) => t && (ie(t) || F(t)) && F(t.then) && F(t.catch), Ft = ((t, e) => t ? setImmediate : e ? ((n, r) => (Z.addEventListener(
|
|
279
|
+
"message",
|
|
280
|
+
({ source: s, data: o }) => {
|
|
281
|
+
s === Z && o === n && r.length && r.shift()();
|
|
282
|
+
},
|
|
283
|
+
!1
|
|
284
|
+
), (s) => {
|
|
285
|
+
r.push(s), Z.postMessage(n, "*");
|
|
286
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", F(Z.postMessage)), ir = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick || Ft, Bt = (t) => t != null && F(t[me]), ar = (t) => t != null && pe(t, me) && Bt(t), a = {
|
|
287
|
+
isArray: ee,
|
|
288
|
+
isArrayBuffer: Ct,
|
|
289
|
+
isBuffer: oe,
|
|
290
|
+
isFormData: Ln,
|
|
291
|
+
isArrayBufferView: wn,
|
|
292
|
+
isString: En,
|
|
293
|
+
isNumber: Nt,
|
|
294
|
+
isBoolean: Rn,
|
|
295
|
+
isObject: ie,
|
|
296
|
+
isPlainObject: Oe,
|
|
297
|
+
isEmptyObject: Sn,
|
|
298
|
+
isReadableStream: Fn,
|
|
299
|
+
isRequest: Bn,
|
|
300
|
+
isResponse: jn,
|
|
301
|
+
isHeaders: In,
|
|
302
|
+
isUndefined: te,
|
|
303
|
+
isDate: On,
|
|
304
|
+
isFile: An,
|
|
305
|
+
isReactNativeBlob: _n,
|
|
306
|
+
isReactNative: xn,
|
|
307
|
+
isBlob: Pn,
|
|
308
|
+
isRegExp: Qn,
|
|
309
|
+
isFunction: F,
|
|
310
|
+
isStream: Nn,
|
|
311
|
+
isURLSearchParams: Un,
|
|
312
|
+
isTypedArray: Wn,
|
|
313
|
+
isFileList: Tn,
|
|
314
|
+
forEach: ye,
|
|
315
|
+
merge: ze,
|
|
316
|
+
extend: Mn,
|
|
317
|
+
trim: kn,
|
|
318
|
+
stripBOM: Hn,
|
|
319
|
+
inherits: qn,
|
|
320
|
+
toFlatObject: $n,
|
|
321
|
+
kindOf: Ve,
|
|
322
|
+
kindOfTest: j,
|
|
323
|
+
endsWith: zn,
|
|
324
|
+
toArray: vn,
|
|
325
|
+
forEachEntry: Vn,
|
|
326
|
+
matchAll: Jn,
|
|
327
|
+
isHTMLForm: Kn,
|
|
328
|
+
hasOwnProperty: he,
|
|
329
|
+
hasOwnProp: he,
|
|
330
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
331
|
+
hasOwnInPrototypeChain: pe,
|
|
332
|
+
getSafeProp: gn,
|
|
333
|
+
toSafeFlatObject: bn,
|
|
334
|
+
reduceDescriptors: Ut,
|
|
335
|
+
freezeMethods: Zn,
|
|
336
|
+
toObjectSet: Yn,
|
|
337
|
+
toCamelCase: Xn,
|
|
338
|
+
noop: er,
|
|
339
|
+
toFiniteNumber: tr,
|
|
340
|
+
findKey: Dt,
|
|
341
|
+
global: Z,
|
|
342
|
+
isContextDefined: Lt,
|
|
343
|
+
isSpecCompliantForm: nr,
|
|
344
|
+
toJSONObject: rr,
|
|
345
|
+
isAsyncFn: sr,
|
|
346
|
+
isThenable: or,
|
|
347
|
+
setImmediate: Ft,
|
|
348
|
+
asap: ir,
|
|
349
|
+
isIterable: Bt,
|
|
350
|
+
isSafeIterable: ar
|
|
351
|
+
}, cr = a.toObjectSet([
|
|
352
|
+
"age",
|
|
353
|
+
"authorization",
|
|
354
|
+
"content-length",
|
|
355
|
+
"content-type",
|
|
356
|
+
"etag",
|
|
357
|
+
"expires",
|
|
358
|
+
"from",
|
|
359
|
+
"host",
|
|
360
|
+
"if-modified-since",
|
|
361
|
+
"if-unmodified-since",
|
|
362
|
+
"last-modified",
|
|
363
|
+
"location",
|
|
364
|
+
"max-forwards",
|
|
365
|
+
"proxy-authorization",
|
|
366
|
+
"referer",
|
|
367
|
+
"retry-after",
|
|
368
|
+
"user-agent"
|
|
369
|
+
]), lr = (t) => {
|
|
370
|
+
const e = {};
|
|
371
|
+
let n, r, s;
|
|
372
|
+
return t && t.split(`
|
|
373
|
+
`).forEach(function(i) {
|
|
374
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim();
|
|
375
|
+
const c = a.hasOwnProp(e, n);
|
|
376
|
+
!n || c && a.hasOwnProp(cr, n) || (n === "set-cookie" ? c ? e[n].push(r) : e[n] = [r] : e[n] = c ? e[n] + ", " + r : r);
|
|
377
|
+
}), e;
|
|
378
|
+
};
|
|
379
|
+
function ur(t) {
|
|
380
|
+
let e = 0, n = t.length;
|
|
381
|
+
for (; e < n; ) {
|
|
382
|
+
const r = t.charCodeAt(e);
|
|
383
|
+
if (r !== 9 && r !== 32)
|
|
384
|
+
break;
|
|
385
|
+
e += 1;
|
|
386
|
+
}
|
|
387
|
+
for (; n > e; ) {
|
|
388
|
+
const r = t.charCodeAt(n - 1);
|
|
389
|
+
if (r !== 9 && r !== 32)
|
|
390
|
+
break;
|
|
391
|
+
n -= 1;
|
|
392
|
+
}
|
|
393
|
+
return e === 0 && n === t.length ? t : t.slice(e, n);
|
|
394
|
+
}
|
|
395
|
+
const fr = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), dr = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
396
|
+
function Je(t, e) {
|
|
397
|
+
return a.isArray(t) ? t.map((n) => Je(n, e)) : ur(String(t).replace(e, ""));
|
|
398
|
+
}
|
|
399
|
+
const hr = (t) => Je(t, fr), pr = (t) => Je(t, dr);
|
|
400
|
+
function jt(t) {
|
|
401
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
402
|
+
return a.forEach(t.toJSON(), (n, r) => {
|
|
403
|
+
e[r] = pr(n);
|
|
404
|
+
}), e;
|
|
405
|
+
}
|
|
406
|
+
const at = Symbol("internals");
|
|
407
|
+
function ue(t) {
|
|
408
|
+
return t && String(t).trim().toLowerCase();
|
|
409
|
+
}
|
|
410
|
+
function Ae(t) {
|
|
411
|
+
return t === !1 || t == null ? t : a.isArray(t) ? t.map(Ae) : hr(String(t));
|
|
412
|
+
}
|
|
413
|
+
function mr(t) {
|
|
414
|
+
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
415
|
+
let r;
|
|
416
|
+
for (; r = n.exec(t); )
|
|
417
|
+
e[r[1]] = r[2];
|
|
418
|
+
return e;
|
|
419
|
+
}
|
|
420
|
+
const yr = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
421
|
+
function Be(t) {
|
|
422
|
+
let e = 0, n = t.length;
|
|
423
|
+
for (; e < n; ) {
|
|
424
|
+
const r = t.charCodeAt(e);
|
|
425
|
+
if (r !== 9 && r !== 32)
|
|
426
|
+
break;
|
|
427
|
+
e += 1;
|
|
428
|
+
}
|
|
429
|
+
for (; n > e; ) {
|
|
430
|
+
const r = t.charCodeAt(n - 1);
|
|
431
|
+
if (r !== 9 && r !== 32)
|
|
432
|
+
break;
|
|
433
|
+
n -= 1;
|
|
434
|
+
}
|
|
435
|
+
return e === 0 && n === t.length ? t : t.slice(e, n);
|
|
436
|
+
}
|
|
437
|
+
function gr(t) {
|
|
438
|
+
const e = t.length - 1;
|
|
439
|
+
if (e < 1 || t.charCodeAt(0) !== 34 || t.charCodeAt(e) !== 34)
|
|
440
|
+
return t;
|
|
441
|
+
let n = "";
|
|
442
|
+
for (let r = 1; r < e; r++) {
|
|
443
|
+
const s = t.charCodeAt(r);
|
|
444
|
+
if (s === 34 || s === 92 && (r += 1, r >= e))
|
|
445
|
+
return t;
|
|
446
|
+
n += t[r];
|
|
447
|
+
}
|
|
448
|
+
return n;
|
|
449
|
+
}
|
|
450
|
+
function br(t) {
|
|
451
|
+
const e = /* @__PURE__ */ Object.create(null), n = String(t);
|
|
452
|
+
let r = 0, s = !1, o = !1;
|
|
453
|
+
function i(c) {
|
|
454
|
+
const l = Be(n.slice(r, c)), d = l.indexOf("=");
|
|
455
|
+
if (d < 1)
|
|
456
|
+
return;
|
|
457
|
+
const u = Be(l.slice(0, d));
|
|
458
|
+
if (!yr.test(u))
|
|
459
|
+
return;
|
|
460
|
+
const h = u.toLowerCase();
|
|
461
|
+
if (h === "__proto__" || h === "constructor" || h === "prototype")
|
|
462
|
+
return;
|
|
463
|
+
const y = Be(l.slice(d + 1));
|
|
464
|
+
e[h] = gr(y);
|
|
465
|
+
}
|
|
466
|
+
for (let c = 0; c < n.length; c++) {
|
|
467
|
+
const l = n.charCodeAt(c);
|
|
468
|
+
s ? o ? o = !1 : l === 92 ? o = !0 : l === 34 && (s = !1) : l === 34 ? s = !0 : (l === 44 || l === 59) && (i(c), r = c + 1);
|
|
469
|
+
}
|
|
470
|
+
return i(n.length), e;
|
|
471
|
+
}
|
|
472
|
+
const wr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
473
|
+
function je(t, e, n, r, s) {
|
|
474
|
+
if (a.isFunction(r))
|
|
475
|
+
return r.call(this, e, n);
|
|
476
|
+
if (s && (e = n), !!a.isString(e)) {
|
|
477
|
+
if (a.isString(r))
|
|
478
|
+
return e.indexOf(r) !== -1;
|
|
479
|
+
if (a.isRegExp(r))
|
|
480
|
+
return r.test(e);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
function Er(t) {
|
|
484
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
485
|
+
}
|
|
486
|
+
function Rr(t, e) {
|
|
487
|
+
const n = a.toCamelCase(" " + e);
|
|
488
|
+
["get", "set", "has"].forEach((r) => {
|
|
489
|
+
Object.defineProperty(t, r + n, {
|
|
490
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
491
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
492
|
+
__proto__: null,
|
|
493
|
+
value: function(s, o, i) {
|
|
494
|
+
return this[r].call(this, e, s, o, i);
|
|
495
|
+
},
|
|
496
|
+
configurable: !0
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
let U = class {
|
|
501
|
+
constructor(e) {
|
|
502
|
+
e && this.set(e);
|
|
503
|
+
}
|
|
504
|
+
set(e, n, r) {
|
|
505
|
+
const s = this;
|
|
506
|
+
function o(c, l, d) {
|
|
507
|
+
const u = ue(l);
|
|
508
|
+
if (!u)
|
|
509
|
+
return;
|
|
510
|
+
const h = a.findKey(s, u);
|
|
511
|
+
(!h || s[h] === void 0 || d === !0 || d === void 0 && s[h] !== !1) && (s[h || l] = Ae(c));
|
|
512
|
+
}
|
|
513
|
+
const i = (c, l) => a.forEach(c, (d, u) => o(d, u, l));
|
|
514
|
+
if (a.isPlainObject(e) || e instanceof this.constructor)
|
|
515
|
+
i(e, n);
|
|
516
|
+
else if (a.isString(e) && (e = e.trim()) && !wr(e))
|
|
517
|
+
i(lr(e), n);
|
|
518
|
+
else if (a.isObject(e) && a.isSafeIterable(e)) {
|
|
519
|
+
let c = /* @__PURE__ */ Object.create(null), l, d;
|
|
520
|
+
for (const u of e) {
|
|
521
|
+
if (!a.isArray(u))
|
|
522
|
+
throw new TypeError("Object iterator must return a key-value pair");
|
|
523
|
+
d = u[0], a.hasOwnProp(c, d) ? (l = c[d], c[d] = a.isArray(l) ? [...l, u[1]] : [l, u[1]]) : c[d] = u[1];
|
|
524
|
+
}
|
|
525
|
+
i(c, n);
|
|
526
|
+
} else
|
|
527
|
+
e != null && o(n, e, r);
|
|
528
|
+
return this;
|
|
529
|
+
}
|
|
530
|
+
get(e, n) {
|
|
531
|
+
if (e = ue(e), e) {
|
|
532
|
+
const r = a.findKey(this, e);
|
|
533
|
+
if (r) {
|
|
534
|
+
const s = this[r];
|
|
535
|
+
if (!n)
|
|
536
|
+
return s;
|
|
537
|
+
if (n === !0)
|
|
538
|
+
return mr(s);
|
|
539
|
+
if (a.isFunction(n))
|
|
540
|
+
return n.call(this, s, r);
|
|
541
|
+
if (a.isRegExp(n))
|
|
542
|
+
return n.exec(s);
|
|
543
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
has(e, n) {
|
|
548
|
+
if (e = ue(e), e) {
|
|
549
|
+
const r = a.findKey(this, e);
|
|
550
|
+
return !!(r && this[r] !== void 0 && (!n || je(this, this[r], r, n)));
|
|
551
|
+
}
|
|
552
|
+
return !1;
|
|
553
|
+
}
|
|
554
|
+
delete(e, n) {
|
|
555
|
+
const r = this;
|
|
556
|
+
let s = !1;
|
|
557
|
+
function o(i) {
|
|
558
|
+
if (i = ue(i), i) {
|
|
559
|
+
const c = a.findKey(r, i);
|
|
560
|
+
c && (!n || je(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return a.isArray(e) ? e.forEach(o) : o(e), s;
|
|
564
|
+
}
|
|
565
|
+
clear(e) {
|
|
566
|
+
const n = Object.keys(this);
|
|
567
|
+
let r = n.length, s = !1;
|
|
568
|
+
for (; r--; ) {
|
|
569
|
+
const o = n[r];
|
|
570
|
+
(!e || je(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
571
|
+
}
|
|
572
|
+
return s;
|
|
573
|
+
}
|
|
574
|
+
normalize(e) {
|
|
575
|
+
const n = this, r = {};
|
|
576
|
+
return a.forEach(this, (s, o) => {
|
|
577
|
+
const i = a.findKey(r, o);
|
|
578
|
+
if (i) {
|
|
579
|
+
n[i] = Ae(s), delete n[o];
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
const c = e ? Er(o) : String(o).trim();
|
|
583
|
+
c !== o && delete n[o], n[c] = Ae(s), r[c] = !0;
|
|
584
|
+
}), this;
|
|
585
|
+
}
|
|
586
|
+
concat(...e) {
|
|
587
|
+
return this.constructor.concat(this, ...e);
|
|
588
|
+
}
|
|
589
|
+
toJSON(e) {
|
|
590
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
591
|
+
return a.forEach(this, (r, s) => {
|
|
592
|
+
r != null && r !== !1 && (n[s] = e && a.isArray(r) ? r.join(", ") : r);
|
|
593
|
+
}), n;
|
|
594
|
+
}
|
|
595
|
+
[Symbol.iterator]() {
|
|
596
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
597
|
+
}
|
|
598
|
+
toString() {
|
|
599
|
+
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
|
|
600
|
+
`);
|
|
601
|
+
}
|
|
602
|
+
getSetCookie() {
|
|
603
|
+
const e = this.get("set-cookie");
|
|
604
|
+
return a.isArray(e) ? e : e == null || e === !1 ? [] : [e];
|
|
605
|
+
}
|
|
606
|
+
get [Symbol.toStringTag]() {
|
|
607
|
+
return "AxiosHeaders";
|
|
608
|
+
}
|
|
609
|
+
static from(e) {
|
|
610
|
+
return e instanceof this ? e : new this(e);
|
|
611
|
+
}
|
|
612
|
+
static parseParameters(e) {
|
|
613
|
+
return br(e);
|
|
614
|
+
}
|
|
615
|
+
static concat(e, ...n) {
|
|
616
|
+
const r = new this(e);
|
|
617
|
+
return n.forEach((s) => r.set(s)), r;
|
|
618
|
+
}
|
|
619
|
+
static accessor(e) {
|
|
620
|
+
const r = (this[at] = this[at] = {
|
|
621
|
+
accessors: {}
|
|
622
|
+
}).accessors, s = this.prototype;
|
|
623
|
+
function o(i) {
|
|
624
|
+
const c = ue(i);
|
|
625
|
+
r[c] || (Rr(s, i), r[c] = !0);
|
|
626
|
+
}
|
|
627
|
+
return a.isArray(e) ? e.forEach(o) : o(e), this;
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
U.accessor([
|
|
631
|
+
"Content-Type",
|
|
632
|
+
"Content-Length",
|
|
633
|
+
"Accept",
|
|
634
|
+
"Accept-Encoding",
|
|
635
|
+
"User-Agent",
|
|
636
|
+
"Authorization"
|
|
637
|
+
]);
|
|
638
|
+
a.reduceDescriptors(U.prototype, ({ value: t }, e) => {
|
|
639
|
+
let n = e[0].toUpperCase() + e.slice(1);
|
|
640
|
+
return {
|
|
641
|
+
get: () => t,
|
|
642
|
+
set(r) {
|
|
643
|
+
this[n] = r;
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
});
|
|
647
|
+
a.freezeMethods(U);
|
|
648
|
+
const Pe = "[REDACTED ****]";
|
|
649
|
+
function Sr(t) {
|
|
650
|
+
if (a.hasOwnProp(t, "toJSON"))
|
|
651
|
+
return !0;
|
|
652
|
+
let e = Object.getPrototypeOf(t);
|
|
653
|
+
for (; e && e !== Object.prototype; ) {
|
|
654
|
+
if (a.hasOwnProp(e, "toJSON"))
|
|
655
|
+
return !0;
|
|
656
|
+
e = Object.getPrototypeOf(e);
|
|
657
|
+
}
|
|
658
|
+
return !1;
|
|
659
|
+
}
|
|
660
|
+
function Or(t, e) {
|
|
661
|
+
const n = new Set(e.map((o) => String(o).toLowerCase())), r = [], s = (o) => {
|
|
662
|
+
if (o === null || typeof o != "object" || a.isBuffer(o)) return o;
|
|
663
|
+
if (r.indexOf(o) !== -1) return;
|
|
664
|
+
o instanceof U && (o = o.toJSON()), r.push(o);
|
|
665
|
+
let i;
|
|
666
|
+
if (a.isArray(o))
|
|
667
|
+
i = [], o.forEach((c, l) => {
|
|
668
|
+
const d = s(c);
|
|
669
|
+
a.isUndefined(d) || (i[l] = d);
|
|
670
|
+
});
|
|
671
|
+
else {
|
|
672
|
+
if (!a.isPlainObject(o) && Sr(o))
|
|
673
|
+
return r.pop(), o;
|
|
674
|
+
i = /* @__PURE__ */ Object.create(null);
|
|
675
|
+
for (const [c, l] of Object.entries(o)) {
|
|
676
|
+
const d = n.has(c.toLowerCase()) ? Pe : s(l);
|
|
677
|
+
a.isUndefined(d) || (i[c] = d);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return r.pop(), i;
|
|
681
|
+
};
|
|
682
|
+
return s(t);
|
|
683
|
+
}
|
|
684
|
+
function ct(t) {
|
|
685
|
+
try {
|
|
686
|
+
return String(t);
|
|
687
|
+
} catch {
|
|
688
|
+
return "";
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
function Ar(t) {
|
|
692
|
+
return t.errors.map((n) => {
|
|
693
|
+
try {
|
|
694
|
+
return n && n.message ? ct(n.message) : ct(n);
|
|
695
|
+
} catch {
|
|
696
|
+
return "";
|
|
697
|
+
}
|
|
698
|
+
}).filter(Boolean).join("; ") || t.name || "AggregateError";
|
|
699
|
+
}
|
|
700
|
+
let p = class It extends Error {
|
|
701
|
+
static from(e, n, r, s, o, i) {
|
|
702
|
+
let c = e.message;
|
|
703
|
+
!c && a.isArray(e.errors) && e.errors.length && (c = Ar(e));
|
|
704
|
+
const l = new It(c, n || e.code, r, s, o);
|
|
705
|
+
return Object.defineProperty(l, "cause", {
|
|
706
|
+
__proto__: null,
|
|
707
|
+
value: e,
|
|
708
|
+
writable: !0,
|
|
709
|
+
enumerable: !1,
|
|
710
|
+
configurable: !0
|
|
711
|
+
}), l.name = e.name, e.status != null && l.status == null && (l.status = e.status), i && Object.assign(l, i), l;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
715
|
+
*
|
|
716
|
+
* @param {string} message The error message.
|
|
717
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
718
|
+
* @param {Object} [config] The config.
|
|
719
|
+
* @param {Object} [request] The request.
|
|
720
|
+
* @param {Object} [response] The response.
|
|
721
|
+
*
|
|
722
|
+
* @returns {Error} The created error.
|
|
723
|
+
*/
|
|
724
|
+
constructor(e, n, r, s, o) {
|
|
725
|
+
super(e), Object.defineProperty(this, "message", {
|
|
726
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
727
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
728
|
+
__proto__: null,
|
|
729
|
+
value: e,
|
|
730
|
+
enumerable: !0,
|
|
731
|
+
writable: !0,
|
|
732
|
+
configurable: !0
|
|
733
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status);
|
|
734
|
+
}
|
|
735
|
+
toJSON() {
|
|
736
|
+
const e = this.config, n = e && a.hasOwnProp(e, "redact") ? e.redact : void 0, r = a.isArray(n) && n.length > 0 ? Or(e, n) : a.toJSONObject(e);
|
|
737
|
+
return {
|
|
738
|
+
// Standard
|
|
739
|
+
message: this.message,
|
|
740
|
+
name: this.name,
|
|
741
|
+
// Microsoft
|
|
742
|
+
description: this.description,
|
|
743
|
+
number: this.number,
|
|
744
|
+
// Mozilla
|
|
745
|
+
fileName: this.fileName,
|
|
746
|
+
lineNumber: this.lineNumber,
|
|
747
|
+
columnNumber: this.columnNumber,
|
|
748
|
+
stack: this.stack,
|
|
749
|
+
// Axios
|
|
750
|
+
config: r,
|
|
751
|
+
code: this.code,
|
|
752
|
+
status: this.status
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
p.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
757
|
+
p.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
758
|
+
p.ECONNABORTED = "ECONNABORTED";
|
|
759
|
+
p.ETIMEDOUT = "ETIMEDOUT";
|
|
760
|
+
p.ECONNREFUSED = "ECONNREFUSED";
|
|
761
|
+
p.ERR_NETWORK = "ERR_NETWORK";
|
|
762
|
+
p.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
763
|
+
p.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
764
|
+
p.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
765
|
+
p.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
766
|
+
p.ERR_CANCELED = "ERR_CANCELED";
|
|
767
|
+
p.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
768
|
+
p.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
769
|
+
p.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
770
|
+
const _r = null, kt = 100;
|
|
771
|
+
function ve(t) {
|
|
772
|
+
return a.isPlainObject(t) || a.isArray(t);
|
|
773
|
+
}
|
|
774
|
+
function Mt(t) {
|
|
775
|
+
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
776
|
+
}
|
|
777
|
+
function Ie(t, e, n) {
|
|
778
|
+
return t ? t.concat(e).map(function(s, o) {
|
|
779
|
+
return s = Mt(s), !n && o ? "[" + s + "]" : s;
|
|
780
|
+
}).join(n ? "." : "") : e;
|
|
781
|
+
}
|
|
782
|
+
function xr(t) {
|
|
783
|
+
return a.isArray(t) && !t.some(ve);
|
|
784
|
+
}
|
|
785
|
+
const Pr = a.toFlatObject(a, {}, null, function(e) {
|
|
786
|
+
return /^is[A-Z]/.test(e);
|
|
787
|
+
});
|
|
788
|
+
function Ne(t, e, n) {
|
|
789
|
+
if (!a.isObject(t))
|
|
790
|
+
throw new TypeError("target must be an object");
|
|
791
|
+
e = e || new FormData();
|
|
792
|
+
const r = (m, E) => {
|
|
793
|
+
const b = a.getSafeProp(n, m);
|
|
794
|
+
return a.isUndefined(b) ? E : b;
|
|
795
|
+
}, s = r("metaTokens", !0), o = r("visitor") || S, i = r("dots", !1), c = r("indexes", !1), l = r("Blob") || typeof Blob < "u" && Blob, d = r("maxDepth", kt), u = l && a.isSpecCompliantForm(e), h = [];
|
|
796
|
+
if (!a.isFunction(o))
|
|
797
|
+
throw new TypeError("visitor must be a function");
|
|
798
|
+
function y(m) {
|
|
799
|
+
if (m === null) return "";
|
|
800
|
+
if (a.isDate(m))
|
|
801
|
+
return m.toISOString();
|
|
802
|
+
if (a.isBoolean(m))
|
|
803
|
+
return m.toString();
|
|
804
|
+
if (!u && a.isBlob(m))
|
|
805
|
+
throw new p("Blob is not supported. Use a Buffer instead.");
|
|
806
|
+
if (a.isArrayBuffer(m) || a.isTypedArray(m)) {
|
|
807
|
+
if (u && typeof l == "function")
|
|
808
|
+
return new l([m]);
|
|
809
|
+
throw new p(
|
|
810
|
+
"Blob is not supported. Use a Buffer instead.",
|
|
811
|
+
p.ERR_NOT_SUPPORT
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
return m;
|
|
815
|
+
}
|
|
816
|
+
function g(m) {
|
|
817
|
+
if (m > d)
|
|
818
|
+
throw new p(
|
|
819
|
+
"Object is too deeply nested (" + m + " levels). Max depth: " + d,
|
|
820
|
+
p.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
821
|
+
);
|
|
822
|
+
}
|
|
823
|
+
function R(m, E) {
|
|
824
|
+
if (d === 1 / 0)
|
|
825
|
+
return JSON.stringify(m);
|
|
826
|
+
const b = [];
|
|
827
|
+
return JSON.stringify(m, function(N, A) {
|
|
828
|
+
if (!a.isObject(A))
|
|
829
|
+
return A;
|
|
830
|
+
for (; b.length && b[b.length - 1] !== this; )
|
|
831
|
+
b.pop();
|
|
832
|
+
return b.push(A), g(E + b.length - 1), A;
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
function S(m, E, b) {
|
|
836
|
+
let P = m;
|
|
837
|
+
if (a.isReactNative(e) && a.isReactNativeBlob(m))
|
|
838
|
+
return e.append(Ie(b, E, i), y(m)), !1;
|
|
839
|
+
if (m && !b && typeof m == "object") {
|
|
840
|
+
if (a.endsWith(E, "{}"))
|
|
841
|
+
E = s ? E : E.slice(0, -2), m = R(m, 1);
|
|
842
|
+
else if (a.isArray(m) && xr(m) || (a.isFileList(m) || a.endsWith(E, "[]")) && (P = a.toArray(m)))
|
|
843
|
+
return E = Mt(E), P.forEach(function(A, k) {
|
|
844
|
+
!(a.isUndefined(A) || A === null) && e.append(
|
|
845
|
+
// eslint-disable-next-line no-nested-ternary
|
|
846
|
+
c === !0 ? Ie([E], k, i) : c === null ? E : E + "[]",
|
|
847
|
+
y(A)
|
|
848
|
+
);
|
|
849
|
+
}), !1;
|
|
850
|
+
}
|
|
851
|
+
return ve(m) ? !0 : (e.append(Ie(b, E, i), y(m)), !1);
|
|
852
|
+
}
|
|
853
|
+
const x = Object.assign(Pr, {
|
|
854
|
+
defaultVisitor: S,
|
|
855
|
+
convertValue: y,
|
|
856
|
+
isVisitable: ve
|
|
857
|
+
});
|
|
858
|
+
function f(m, E, b = 0) {
|
|
859
|
+
if (!a.isUndefined(m)) {
|
|
860
|
+
if (g(b), h.indexOf(m) !== -1)
|
|
861
|
+
throw new Error("Circular reference detected in " + E.join("."));
|
|
862
|
+
h.push(m), a.forEach(m, function(N, A) {
|
|
863
|
+
(!(a.isUndefined(N) || N === null) && o.call(e, N, a.isString(A) ? A.trim() : A, E, x)) === !0 && f(N, E ? E.concat(A) : [A], b + 1);
|
|
864
|
+
}), h.pop();
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
if (!a.isObject(t))
|
|
868
|
+
throw new TypeError("data must be an object");
|
|
869
|
+
return f(t), e;
|
|
870
|
+
}
|
|
871
|
+
function lt(t) {
|
|
872
|
+
const e = {
|
|
873
|
+
"!": "%21",
|
|
874
|
+
"'": "%27",
|
|
875
|
+
"(": "%28",
|
|
876
|
+
")": "%29",
|
|
877
|
+
"~": "%7E",
|
|
878
|
+
"%20": "+"
|
|
879
|
+
};
|
|
880
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20/g, function(r) {
|
|
881
|
+
return e[r];
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
function Ke(t, e) {
|
|
885
|
+
this._pairs = [], t && Ne(t, this, e);
|
|
886
|
+
}
|
|
887
|
+
const Ht = Ke.prototype;
|
|
888
|
+
Ht.append = function(e, n) {
|
|
889
|
+
this._pairs.push([e, n]);
|
|
890
|
+
};
|
|
891
|
+
Ht.toString = function(e) {
|
|
892
|
+
const n = e ? (r) => e.call(this, r, lt) : lt;
|
|
893
|
+
return this._pairs.map(function(s) {
|
|
894
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
895
|
+
}, "").join("&");
|
|
896
|
+
};
|
|
897
|
+
function Tr(t) {
|
|
898
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
899
|
+
}
|
|
900
|
+
function qt(t, e, n) {
|
|
901
|
+
if (!e)
|
|
902
|
+
return t;
|
|
903
|
+
t = t || "";
|
|
904
|
+
const r = a.isFunction(n) ? {
|
|
905
|
+
serialize: n
|
|
906
|
+
} : n, s = a.getSafeProp(r, "encode") || Tr, o = a.getSafeProp(r, "serialize");
|
|
907
|
+
let i;
|
|
908
|
+
if (o ? i = o(e, r) : i = a.isURLSearchParams(e) ? e.toString() : new Ke(e, r).toString(s), i) {
|
|
909
|
+
const c = t.indexOf("#");
|
|
910
|
+
c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
911
|
+
}
|
|
912
|
+
return t;
|
|
913
|
+
}
|
|
914
|
+
const fe = Symbol("internals");
|
|
915
|
+
function $t(t) {
|
|
916
|
+
return t ? t.length : 0;
|
|
917
|
+
}
|
|
918
|
+
function ut(t) {
|
|
919
|
+
if (t)
|
|
920
|
+
for (; t.length && t[t.length - 1] === null; )
|
|
921
|
+
t.pop();
|
|
922
|
+
}
|
|
923
|
+
function de(t, e) {
|
|
924
|
+
const n = t.handlers, r = $t(n);
|
|
925
|
+
n !== e.handlersRef ? (e.handlersRef = n, e.handlerEntries.clear()) : r !== e.handlersLength && (r ? e.handlerEntries.forEach(function(o, i) {
|
|
926
|
+
n[o.index] !== o.handler && e.handlerEntries.delete(i);
|
|
927
|
+
}) : e.handlerEntries.clear()), e.handlersLength = r;
|
|
928
|
+
}
|
|
929
|
+
class ft {
|
|
930
|
+
constructor() {
|
|
931
|
+
this.handlers = [], this[fe] = {
|
|
932
|
+
handlersRef: this.handlers,
|
|
933
|
+
handlersLength: this.handlers.length,
|
|
934
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
935
|
+
iterationDepth: 0,
|
|
936
|
+
nextId: 0
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Add a new interceptor to the stack
|
|
941
|
+
*
|
|
942
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
943
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
944
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
945
|
+
*
|
|
946
|
+
* @return {Number} An ID used to remove interceptor later
|
|
947
|
+
*/
|
|
948
|
+
use(e, n, r) {
|
|
949
|
+
const s = {
|
|
950
|
+
fulfilled: e,
|
|
951
|
+
rejected: n,
|
|
952
|
+
synchronous: r ? r.synchronous : !1,
|
|
953
|
+
runWhen: r ? r.runWhen : null
|
|
954
|
+
}, o = this[fe];
|
|
955
|
+
this.handlers == null && (this.handlers = []), de(this, o);
|
|
956
|
+
const i = o.nextId++;
|
|
957
|
+
return this.handlers.push(s), o.handlerEntries.set(i, {
|
|
958
|
+
handler: s,
|
|
959
|
+
index: this.handlers.length - 1
|
|
960
|
+
}), o.handlersLength = this.handlers.length, i;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Remove an interceptor from the stack
|
|
964
|
+
*
|
|
965
|
+
* @param {Number} id The ID that was returned by `use`
|
|
966
|
+
*
|
|
967
|
+
* @returns {void}
|
|
968
|
+
*/
|
|
969
|
+
eject(e) {
|
|
970
|
+
const n = this[fe];
|
|
971
|
+
de(this, n);
|
|
972
|
+
const r = n.handlerEntries.get(e);
|
|
973
|
+
if (r) {
|
|
974
|
+
if (n.handlerEntries.delete(e), this.handlers[r.index] !== r.handler)
|
|
975
|
+
return;
|
|
976
|
+
this.handlers[r.index] = null, n.iterationDepth || (ut(this.handlers), n.handlersLength = this.handlers.length);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* Clear all interceptors from the stack
|
|
981
|
+
*
|
|
982
|
+
* @returns {void}
|
|
983
|
+
*/
|
|
984
|
+
clear() {
|
|
985
|
+
this.handlers && (this.handlers = [], de(this, this[fe]));
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Iterate over all the registered interceptors
|
|
989
|
+
*
|
|
990
|
+
* This method is particularly useful for skipping over any
|
|
991
|
+
* interceptors that may have become `null` calling `eject`.
|
|
992
|
+
*
|
|
993
|
+
* @param {Function} fn The function to call for each interceptor
|
|
994
|
+
*
|
|
995
|
+
* @returns {void}
|
|
996
|
+
*/
|
|
997
|
+
forEach(e) {
|
|
998
|
+
const n = this[fe];
|
|
999
|
+
de(this, n), n.iterationDepth++;
|
|
1000
|
+
try {
|
|
1001
|
+
a.forEach(this.handlers, function(s) {
|
|
1002
|
+
s !== null && e(s);
|
|
1003
|
+
});
|
|
1004
|
+
} finally {
|
|
1005
|
+
--n.iterationDepth || (de(this, n), ut(this.handlers), n.handlersLength = $t(this.handlers));
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
const Xe = {
|
|
1010
|
+
silentJSONParsing: !0,
|
|
1011
|
+
forcedJSONParsing: !0,
|
|
1012
|
+
clarifyTimeoutError: !1,
|
|
1013
|
+
legacyInterceptorReqResOrdering: !0,
|
|
1014
|
+
advertiseZstdAcceptEncoding: !1,
|
|
1015
|
+
validateStatusUndefinedResolves: !0
|
|
1016
|
+
}, Cr = typeof URLSearchParams < "u" ? URLSearchParams : Ke, Nr = typeof FormData < "u" ? FormData : null, Dr = typeof Blob < "u" ? Blob : null, Lr = {
|
|
1017
|
+
isBrowser: !0,
|
|
1018
|
+
classes: {
|
|
1019
|
+
URLSearchParams: Cr,
|
|
1020
|
+
FormData: Nr,
|
|
1021
|
+
Blob: Dr
|
|
1022
|
+
},
|
|
1023
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1024
|
+
}, Ge = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, Ur = Ge && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), Fr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1025
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Br = Ge && window.location.href || "http://localhost", jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1026
|
+
__proto__: null,
|
|
1027
|
+
hasBrowserEnv: Ge,
|
|
1028
|
+
hasStandardBrowserEnv: Ur,
|
|
1029
|
+
hasStandardBrowserWebWorkerEnv: Fr,
|
|
1030
|
+
navigator: We,
|
|
1031
|
+
origin: Br
|
|
1032
|
+
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
1033
|
+
...jr,
|
|
1034
|
+
...Lr
|
|
1035
|
+
};
|
|
1036
|
+
function Ir(t, e) {
|
|
1037
|
+
return Ne(t, new T.classes.URLSearchParams(), {
|
|
1038
|
+
visitor: function(n, r, s, o) {
|
|
1039
|
+
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1040
|
+
},
|
|
1041
|
+
...e
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
const dt = kt;
|
|
1045
|
+
function zt(t) {
|
|
1046
|
+
if (t > dt)
|
|
1047
|
+
throw new p(
|
|
1048
|
+
"FormData field is too deeply nested (" + t + " levels). Max depth: " + dt,
|
|
1049
|
+
p.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
1050
|
+
);
|
|
1051
|
+
}
|
|
1052
|
+
function kr(t) {
|
|
1053
|
+
const e = [], n = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
1054
|
+
let r;
|
|
1055
|
+
for (; (r = n.exec(t)) !== null; )
|
|
1056
|
+
zt(e.length), e.push(r[0] === "[]" ? "" : r[1] || r[0]);
|
|
1057
|
+
return e;
|
|
1058
|
+
}
|
|
1059
|
+
function Mr(t) {
|
|
1060
|
+
const e = {}, n = Object.keys(t);
|
|
1061
|
+
let r;
|
|
1062
|
+
const s = n.length;
|
|
1063
|
+
let o;
|
|
1064
|
+
for (r = 0; r < s; r++)
|
|
1065
|
+
o = n[r], e[o] = t[o];
|
|
1066
|
+
return e;
|
|
1067
|
+
}
|
|
1068
|
+
function vt(t) {
|
|
1069
|
+
function e(n, r, s, o) {
|
|
1070
|
+
zt(o);
|
|
1071
|
+
let i = n[o++];
|
|
1072
|
+
if (i === "__proto__") return !0;
|
|
1073
|
+
const c = Number.isFinite(+i), l = o >= n.length;
|
|
1074
|
+
return i = !i && a.isArray(s) ? s.length : i, l ? (a.hasOwnProp(s, i) ? s[i] = a.isArray(s[i]) ? s[i].concat(r) : [s[i], r] : s[i] = r, !c) : ((!a.hasOwnProp(s, i) || !a.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Mr(s[i])), !c);
|
|
1075
|
+
}
|
|
1076
|
+
if (a.isFormData(t) && a.isFunction(t.entries)) {
|
|
1077
|
+
const n = {};
|
|
1078
|
+
return a.forEachEntry(t, (r, s) => {
|
|
1079
|
+
e(kr(r), s, n, 0);
|
|
1080
|
+
}), n;
|
|
1081
|
+
}
|
|
1082
|
+
return null;
|
|
1083
|
+
}
|
|
1084
|
+
const Wt = Object.freeze([
|
|
1085
|
+
"get",
|
|
1086
|
+
"delete",
|
|
1087
|
+
"head",
|
|
1088
|
+
"options",
|
|
1089
|
+
"post",
|
|
1090
|
+
"put",
|
|
1091
|
+
"patch",
|
|
1092
|
+
"purge",
|
|
1093
|
+
"link",
|
|
1094
|
+
"unlink",
|
|
1095
|
+
"query"
|
|
1096
|
+
]), se = (t, e) => t != null && a.hasOwnProp(t, e) ? t[e] : void 0;
|
|
1097
|
+
function Hr(t, e, n) {
|
|
1098
|
+
if (a.isString(t))
|
|
1099
|
+
try {
|
|
1100
|
+
return (e || JSON.parse)(t), a.trim(t);
|
|
1101
|
+
} catch (r) {
|
|
1102
|
+
if (r.name !== "SyntaxError")
|
|
1103
|
+
throw r;
|
|
1104
|
+
}
|
|
1105
|
+
return (n || JSON.stringify)(t);
|
|
1106
|
+
}
|
|
1107
|
+
const ge = {
|
|
1108
|
+
transitional: Xe,
|
|
1109
|
+
adapter: ["xhr", "http", "fetch"],
|
|
1110
|
+
transformRequest: [
|
|
1111
|
+
function(e, n) {
|
|
1112
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(e);
|
|
1113
|
+
if (o && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
|
|
1114
|
+
return s ? JSON.stringify(vt(e)) : e;
|
|
1115
|
+
if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
|
|
1116
|
+
return e;
|
|
1117
|
+
if (a.isArrayBufferView(e))
|
|
1118
|
+
return e.buffer;
|
|
1119
|
+
if (a.isURLSearchParams(e))
|
|
1120
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
1121
|
+
let c;
|
|
1122
|
+
if (o) {
|
|
1123
|
+
const l = se(this, "formSerializer");
|
|
1124
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1125
|
+
return Ir(e, l).toString();
|
|
1126
|
+
if ((c = a.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
1127
|
+
const d = se(this, "env"), u = d && d.FormData;
|
|
1128
|
+
return Ne(
|
|
1129
|
+
c ? { "files[]": e } : e,
|
|
1130
|
+
u && new u(),
|
|
1131
|
+
l
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return o || s ? (n.setContentType("application/json", !1), Hr(e)) : e;
|
|
1136
|
+
}
|
|
1137
|
+
],
|
|
1138
|
+
transformResponse: [
|
|
1139
|
+
function(e) {
|
|
1140
|
+
const n = se(this, "transitional") || ge.transitional, r = n && n.forcedJSONParsing, s = se(this, "responseType"), o = s === "json";
|
|
1141
|
+
if (a.isResponse(e) || a.isReadableStream(e))
|
|
1142
|
+
return e;
|
|
1143
|
+
if (e && a.isString(e) && (r && !s || o)) {
|
|
1144
|
+
const c = !(n && n.silentJSONParsing) && o;
|
|
1145
|
+
try {
|
|
1146
|
+
return JSON.parse(e, se(this, "parseReviver"));
|
|
1147
|
+
} catch (l) {
|
|
1148
|
+
if (c)
|
|
1149
|
+
throw l.name === "SyntaxError" ? p.from(l, p.ERR_BAD_RESPONSE, this, null, se(this, "response")) : l;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return e;
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
/**
|
|
1156
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
1157
|
+
* timeout is not created.
|
|
1158
|
+
*/
|
|
1159
|
+
timeout: 0,
|
|
1160
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
1161
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1162
|
+
maxContentLength: -1,
|
|
1163
|
+
maxBodyLength: -1,
|
|
1164
|
+
env: {
|
|
1165
|
+
FormData: T.classes.FormData,
|
|
1166
|
+
Blob: T.classes.Blob
|
|
1167
|
+
},
|
|
1168
|
+
validateStatus: function(e) {
|
|
1169
|
+
return e >= 200 && e < 300;
|
|
1170
|
+
},
|
|
1171
|
+
headers: {
|
|
1172
|
+
common: {
|
|
1173
|
+
Accept: "application/json, text/plain, */*",
|
|
1174
|
+
"Content-Type": void 0
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
a.forEach(Wt, (t) => {
|
|
1179
|
+
ge.headers[t] = {};
|
|
1180
|
+
});
|
|
1181
|
+
function ke(t, e) {
|
|
1182
|
+
const n = this || ge, r = e || n, s = U.from(r.headers);
|
|
1183
|
+
let o = r.data;
|
|
1184
|
+
return a.forEach(t, function(c) {
|
|
1185
|
+
o = c.call(n, o, s.normalize(), e ? e.status : void 0);
|
|
1186
|
+
}), s.normalize(), o;
|
|
1187
|
+
}
|
|
1188
|
+
function Vt(t) {
|
|
1189
|
+
return !!(t && t.__CANCEL__);
|
|
1190
|
+
}
|
|
1191
|
+
let be = class extends p {
|
|
1192
|
+
/**
|
|
1193
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
1194
|
+
*
|
|
1195
|
+
* @param {string=} message The message.
|
|
1196
|
+
* @param {Object=} config The config.
|
|
1197
|
+
* @param {Object=} request The request.
|
|
1198
|
+
*
|
|
1199
|
+
* @returns {CanceledError} The created error.
|
|
1200
|
+
*/
|
|
1201
|
+
constructor(e, n, r) {
|
|
1202
|
+
super(e ?? "canceled", p.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
function Jt(t, e, n) {
|
|
1206
|
+
const r = n.config.validateStatus;
|
|
1207
|
+
!n.status || !r || r(n.status) ? t(n) : e(new p(
|
|
1208
|
+
"Request failed with status code " + n.status,
|
|
1209
|
+
n.status >= 400 && n.status < 500 ? p.ERR_BAD_REQUEST : p.ERR_BAD_RESPONSE,
|
|
1210
|
+
n.config,
|
|
1211
|
+
n.request,
|
|
1212
|
+
n
|
|
1213
|
+
));
|
|
1214
|
+
}
|
|
1215
|
+
const qr = /[\t\n\r]/g;
|
|
1216
|
+
function Kt(t) {
|
|
1217
|
+
if (typeof t != "string")
|
|
1218
|
+
return t;
|
|
1219
|
+
let e = 0;
|
|
1220
|
+
for (; e < t.length && t.charCodeAt(e) <= 32; )
|
|
1221
|
+
e++;
|
|
1222
|
+
return t.slice(e).replace(qr, "");
|
|
1223
|
+
}
|
|
1224
|
+
function Me(t) {
|
|
1225
|
+
const e = /^([-+\w]{1,25}):(?:\/\/)?/.exec(t);
|
|
1226
|
+
return e && e[1] || "";
|
|
1227
|
+
}
|
|
1228
|
+
function $r(t, e) {
|
|
1229
|
+
t = t || 10;
|
|
1230
|
+
const n = new Array(t), r = new Array(t);
|
|
1231
|
+
let s = 0, o = 0, i;
|
|
1232
|
+
return e = e !== void 0 ? e : 1e3, function(l) {
|
|
1233
|
+
const d = Date.now(), u = r[o];
|
|
1234
|
+
i || (i = d), n[s] = l, r[s] = d;
|
|
1235
|
+
let h = o, y = 0;
|
|
1236
|
+
for (; h !== s; )
|
|
1237
|
+
y += n[h++], h = h % t;
|
|
1238
|
+
if (s = (s + 1) % t, s === o && (o = (o + 1) % t), d - i < e)
|
|
1239
|
+
return;
|
|
1240
|
+
const g = u && d - u;
|
|
1241
|
+
return g ? Math.round(y * 1e3 / g) : void 0;
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
function zr(t, e) {
|
|
1245
|
+
let n = 0, r = 1e3 / e, s, o;
|
|
1246
|
+
const i = (u, h = Date.now()) => {
|
|
1247
|
+
n = h, s = null, o && (clearTimeout(o), o = null), t(...u);
|
|
1248
|
+
};
|
|
1249
|
+
return [(...u) => {
|
|
1250
|
+
const h = Date.now(), y = h - n;
|
|
1251
|
+
y >= r ? i(u, h) : (s = u, o || (o = setTimeout(() => {
|
|
1252
|
+
o = null, i(s);
|
|
1253
|
+
}, r - y)));
|
|
1254
|
+
}, () => s && i(s), (...u) => i(u)];
|
|
1255
|
+
}
|
|
1256
|
+
const Te = (t, e, n = 3) => {
|
|
1257
|
+
let r = 0;
|
|
1258
|
+
const s = $r(50, 250);
|
|
1259
|
+
return zr((o) => {
|
|
1260
|
+
if (!o || !a.isNumber(o.loaded))
|
|
1261
|
+
return;
|
|
1262
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = Math.max(0, c != null ? Math.min(i, c) : i), d = Math.max(0, l - r), u = s(d);
|
|
1263
|
+
r = Math.max(r, l);
|
|
1264
|
+
const h = {
|
|
1265
|
+
loaded: l,
|
|
1266
|
+
total: c,
|
|
1267
|
+
progress: c ? l / c : void 0,
|
|
1268
|
+
bytes: d,
|
|
1269
|
+
rate: u || void 0,
|
|
1270
|
+
estimated: u && c ? (c - l) / u : void 0,
|
|
1271
|
+
event: o,
|
|
1272
|
+
lengthComputable: c != null,
|
|
1273
|
+
[e ? "download" : "upload"]: !0
|
|
1274
|
+
};
|
|
1275
|
+
t(h);
|
|
1276
|
+
}, n);
|
|
1277
|
+
}, ht = (t, e) => {
|
|
1278
|
+
const n = t != null;
|
|
1279
|
+
return [
|
|
1280
|
+
(r) => e[0]({
|
|
1281
|
+
lengthComputable: n,
|
|
1282
|
+
total: t,
|
|
1283
|
+
loaded: r
|
|
1284
|
+
}),
|
|
1285
|
+
e[1]
|
|
1286
|
+
];
|
|
1287
|
+
}, pt = (t, e = a.asap) => (...n) => e(() => t(...n)), vr = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, T.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
1288
|
+
new URL(T.origin),
|
|
1289
|
+
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
1290
|
+
) : () => !0, Wr = T.hasStandardBrowserEnv ? (
|
|
1291
|
+
// Standard browser envs support document.cookie
|
|
1292
|
+
{
|
|
1293
|
+
write(t, e, n, r, s, o, i) {
|
|
1294
|
+
if (typeof document > "u") return;
|
|
1295
|
+
const c = [`${t}=${encodeURIComponent(e)}`];
|
|
1296
|
+
a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), o === !0 && c.push("secure"), a.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
|
|
1297
|
+
},
|
|
1298
|
+
read(t) {
|
|
1299
|
+
if (typeof document > "u") return null;
|
|
1300
|
+
const e = document.cookie.split(";");
|
|
1301
|
+
for (let n = 0; n < e.length; n++) {
|
|
1302
|
+
const r = e[n].replace(/^\s+/, ""), s = r.indexOf("=");
|
|
1303
|
+
if (s !== -1 && r.slice(0, s) === t)
|
|
1304
|
+
try {
|
|
1305
|
+
return decodeURIComponent(r.slice(s + 1));
|
|
1306
|
+
} catch {
|
|
1307
|
+
return r.slice(s + 1);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
return null;
|
|
1311
|
+
},
|
|
1312
|
+
remove(t) {
|
|
1313
|
+
this.write(t, "", Date.now() - 864e5, "/");
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
) : (
|
|
1317
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1318
|
+
{
|
|
1319
|
+
write() {
|
|
1320
|
+
},
|
|
1321
|
+
read() {
|
|
1322
|
+
return null;
|
|
1323
|
+
},
|
|
1324
|
+
remove() {
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
);
|
|
1328
|
+
function Vr(t) {
|
|
1329
|
+
return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
1330
|
+
}
|
|
1331
|
+
function Jr(t, e) {
|
|
1332
|
+
if (!e)
|
|
1333
|
+
return t;
|
|
1334
|
+
let n = t.length;
|
|
1335
|
+
for (; n > 0 && t.charCodeAt(n - 1) === 47; )
|
|
1336
|
+
n--;
|
|
1337
|
+
return t.slice(0, n) + "/" + e.replace(/^\/+/, "");
|
|
1338
|
+
}
|
|
1339
|
+
const Kr = /^https?:(?!\/\/)/i;
|
|
1340
|
+
function Xr(t) {
|
|
1341
|
+
return t && t.replace(/(^|&)([^=&]*=)?[^&]+/g, (e, n, r = "") => `${n}${r}${Pe}`);
|
|
1342
|
+
}
|
|
1343
|
+
function Gr(t) {
|
|
1344
|
+
const e = t.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Pe}@`), n = e.indexOf("#"), s = (n === -1 ? e : e.slice(0, n)).replace(
|
|
1345
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
1346
|
+
`$1${Pe}`
|
|
1347
|
+
);
|
|
1348
|
+
return n === -1 ? s : `${s}#${Xr(e.slice(n + 1))}`;
|
|
1349
|
+
}
|
|
1350
|
+
function mt(t, e) {
|
|
1351
|
+
if (typeof t == "string") {
|
|
1352
|
+
const n = Kt(t);
|
|
1353
|
+
if (Kr.test(n))
|
|
1354
|
+
throw new p(
|
|
1355
|
+
`Invalid URL ${JSON.stringify(Gr(n))}: missing "//" after protocol`,
|
|
1356
|
+
p.ERR_INVALID_URL,
|
|
1357
|
+
e
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
function Xt(t, e, n, r) {
|
|
1362
|
+
mt(e, r);
|
|
1363
|
+
let s = !Vr(e);
|
|
1364
|
+
return t && (s || n === !1) ? (mt(t, r), Jr(t, e)) : e;
|
|
1365
|
+
}
|
|
1366
|
+
const yt = (t) => t instanceof U ? { ...t } : t, Qr = (t) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(t).concat(
|
|
1367
|
+
Object.getOwnPropertySymbols(t).filter(
|
|
1368
|
+
(e) => Object.getOwnPropertyDescriptor(t, e).enumerable
|
|
1369
|
+
)
|
|
1370
|
+
) : Object.keys(t);
|
|
1371
|
+
function ne(t, e) {
|
|
1372
|
+
t = t || {}, e = e || {};
|
|
1373
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
1374
|
+
Object.defineProperty(n, "hasOwnProperty", {
|
|
1375
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
1376
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
1377
|
+
__proto__: null,
|
|
1378
|
+
value: Object.prototype.hasOwnProperty,
|
|
1379
|
+
enumerable: !1,
|
|
1380
|
+
writable: !0,
|
|
1381
|
+
configurable: !0
|
|
1382
|
+
});
|
|
1383
|
+
function r(u, h, y, g) {
|
|
1384
|
+
return a.isPlainObject(u) && a.isPlainObject(h) ? a.merge.call({ caseless: g }, u, h) : a.isPlainObject(h) ? a.merge({}, h) : a.isArray(h) ? h.slice() : h;
|
|
1385
|
+
}
|
|
1386
|
+
function s(u, h, y, g) {
|
|
1387
|
+
if (a.isUndefined(h)) {
|
|
1388
|
+
if (!a.isUndefined(u))
|
|
1389
|
+
return r(void 0, u, y, g);
|
|
1390
|
+
} else return r(u, h, y, g);
|
|
1391
|
+
}
|
|
1392
|
+
function o(u, h) {
|
|
1393
|
+
if (!a.isUndefined(h))
|
|
1394
|
+
return r(void 0, h);
|
|
1395
|
+
}
|
|
1396
|
+
function i(u, h) {
|
|
1397
|
+
if (a.isUndefined(h)) {
|
|
1398
|
+
if (!a.isUndefined(u))
|
|
1399
|
+
return r(void 0, u);
|
|
1400
|
+
} else return r(void 0, h);
|
|
1401
|
+
}
|
|
1402
|
+
function c(u) {
|
|
1403
|
+
const h = a.hasOwnProp(e, "transitional") ? e.transitional : void 0;
|
|
1404
|
+
if (!a.isUndefined(h))
|
|
1405
|
+
if (a.isPlainObject(h)) {
|
|
1406
|
+
if (a.hasOwnProp(h, u))
|
|
1407
|
+
return h[u];
|
|
1408
|
+
} else
|
|
1409
|
+
return;
|
|
1410
|
+
const y = a.hasOwnProp(t, "transitional") ? t.transitional : void 0;
|
|
1411
|
+
if (a.isPlainObject(y) && a.hasOwnProp(y, u))
|
|
1412
|
+
return y[u];
|
|
1413
|
+
}
|
|
1414
|
+
function l(u, h, y) {
|
|
1415
|
+
if (a.hasOwnProp(e, y))
|
|
1416
|
+
return r(u, h);
|
|
1417
|
+
if (a.hasOwnProp(t, y))
|
|
1418
|
+
return r(void 0, u);
|
|
1419
|
+
}
|
|
1420
|
+
const d = {
|
|
1421
|
+
url: o,
|
|
1422
|
+
method: o,
|
|
1423
|
+
data: o,
|
|
1424
|
+
baseURL: i,
|
|
1425
|
+
transformRequest: i,
|
|
1426
|
+
transformResponse: i,
|
|
1427
|
+
paramsSerializer: i,
|
|
1428
|
+
timeout: i,
|
|
1429
|
+
timeoutErrorMessage: i,
|
|
1430
|
+
withCredentials: i,
|
|
1431
|
+
withXSRFToken: i,
|
|
1432
|
+
adapter: i,
|
|
1433
|
+
responseType: i,
|
|
1434
|
+
xsrfCookieName: i,
|
|
1435
|
+
xsrfHeaderName: i,
|
|
1436
|
+
onUploadProgress: i,
|
|
1437
|
+
onDownloadProgress: i,
|
|
1438
|
+
decompress: i,
|
|
1439
|
+
maxContentLength: i,
|
|
1440
|
+
maxBodyLength: i,
|
|
1441
|
+
beforeRedirect: i,
|
|
1442
|
+
transport: i,
|
|
1443
|
+
httpAgent: i,
|
|
1444
|
+
httpsAgent: i,
|
|
1445
|
+
cancelToken: i,
|
|
1446
|
+
socketPath: i,
|
|
1447
|
+
allowedSocketPaths: i,
|
|
1448
|
+
responseEncoding: i,
|
|
1449
|
+
validateStatus: l,
|
|
1450
|
+
headers: (u, h, y) => s(yt(u), yt(h), y, !0)
|
|
1451
|
+
};
|
|
1452
|
+
return a.forEach(Qr({ ...t, ...e }), function(h) {
|
|
1453
|
+
if (h === "__proto__" || h === "constructor" || h === "prototype") return;
|
|
1454
|
+
const y = a.hasOwnProp(d, h) ? d[h] : s, g = a.hasOwnProp(t, h) ? t[h] : void 0, R = a.hasOwnProp(e, h) ? e[h] : void 0, S = y(g, R, h);
|
|
1455
|
+
a.isUndefined(S) && y !== l || (n[h] = S);
|
|
1456
|
+
}), a.hasOwnProp(e, "validateStatus") && a.isUndefined(e.validateStatus) && c("validateStatusUndefinedResolves") === !1 && (a.hasOwnProp(t, "validateStatus") ? n.validateStatus = r(void 0, t.validateStatus) : delete n.validateStatus), n;
|
|
1457
|
+
}
|
|
1458
|
+
const Zr = ["content-type", "content-length"];
|
|
1459
|
+
function Yr(t, e, n) {
|
|
1460
|
+
if (n !== "content-only") {
|
|
1461
|
+
t.set(e);
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
Object.entries(e || {}).forEach(([r, s]) => {
|
|
1465
|
+
Zr.includes(r.toLowerCase()) && t.set(r, s);
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
const es = (t) => encodeURIComponent(t).replace(
|
|
1469
|
+
/%([0-9A-F]{2})/gi,
|
|
1470
|
+
(e, n) => String.fromCharCode(parseInt(n, 16))
|
|
1471
|
+
);
|
|
1472
|
+
function Gt(t) {
|
|
1473
|
+
const e = ne({}, t), n = (y) => a.hasOwnProp(e, y) ? e[y] : void 0, r = n("data");
|
|
1474
|
+
let s = n("withXSRFToken");
|
|
1475
|
+
const o = n("xsrfHeaderName"), i = n("xsrfCookieName");
|
|
1476
|
+
let c = n("headers");
|
|
1477
|
+
const l = n("auth"), d = n("baseURL"), u = n("allowAbsoluteUrls"), h = n("url");
|
|
1478
|
+
if (e.headers = c = U.from(c), e.url = qt(
|
|
1479
|
+
Xt(d, h, u, e),
|
|
1480
|
+
n("params"),
|
|
1481
|
+
n("paramsSerializer")
|
|
1482
|
+
), l) {
|
|
1483
|
+
const y = a.getSafeProp(l, "username") || "", g = a.getSafeProp(l, "password") || "";
|
|
1484
|
+
try {
|
|
1485
|
+
c.set(
|
|
1486
|
+
"Authorization",
|
|
1487
|
+
"Basic " + btoa(y + ":" + (g ? es(g) : ""))
|
|
1488
|
+
);
|
|
1489
|
+
} catch (R) {
|
|
1490
|
+
throw p.from(R, p.ERR_BAD_OPTION_VALUE, t);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
if (a.isFormData(r)) {
|
|
1494
|
+
const y = a.getSafeProp(r, "getHeaders");
|
|
1495
|
+
T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv || a.isReactNative(r) ? c.setContentType(void 0) : a.isFunction(y) && Yr(c, y.call(r), n("formDataHeaderPolicy"));
|
|
1496
|
+
}
|
|
1497
|
+
if (T.hasStandardBrowserEnv && (a.isFunction(s) && (s = s(e)), s === !0 || s == null && vr(e.url))) {
|
|
1498
|
+
const g = o && i && Wr.read(i);
|
|
1499
|
+
g && c.set(o, g);
|
|
1500
|
+
}
|
|
1501
|
+
return e;
|
|
1502
|
+
}
|
|
1503
|
+
const ts = typeof XMLHttpRequest < "u", ns = ts && function(t) {
|
|
1504
|
+
return new Promise(function(n, r) {
|
|
1505
|
+
const s = Gt(t);
|
|
1506
|
+
let o = s.data;
|
|
1507
|
+
const i = U.from(s.headers).normalize();
|
|
1508
|
+
let { responseType: c, onUploadProgress: l, onDownloadProgress: d } = s, u, h, y, g, R, S;
|
|
1509
|
+
function x() {
|
|
1510
|
+
g && g(), R && R(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1511
|
+
}
|
|
1512
|
+
let f = new XMLHttpRequest();
|
|
1513
|
+
f.open(s.method.toUpperCase(), s.url, !0), f.timeout = s.timeout;
|
|
1514
|
+
function m(b) {
|
|
1515
|
+
if (!f)
|
|
1516
|
+
return;
|
|
1517
|
+
if (f.status === 0 && (Me(Kt(s.url)) || Me(T.origin)) !== "file" && !(f.responseURL && f.responseURL.startsWith("file:"))) {
|
|
1518
|
+
r(new p("Request aborted", p.ECONNABORTED, t, f)), x(), f = null;
|
|
1519
|
+
return;
|
|
1520
|
+
}
|
|
1521
|
+
try {
|
|
1522
|
+
b ? S && S(b) : R && R();
|
|
1523
|
+
} catch (k) {
|
|
1524
|
+
setTimeout(() => {
|
|
1525
|
+
throw k;
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
if (!f)
|
|
1529
|
+
return;
|
|
1530
|
+
const P = U.from(
|
|
1531
|
+
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1532
|
+
), A = {
|
|
1533
|
+
data: !c || c === "text" || c === "json" ? f.responseText : f.response,
|
|
1534
|
+
status: f.status,
|
|
1535
|
+
statusText: f.statusText,
|
|
1536
|
+
headers: P,
|
|
1537
|
+
config: t,
|
|
1538
|
+
request: f
|
|
1539
|
+
};
|
|
1540
|
+
Jt(
|
|
1541
|
+
function(K) {
|
|
1542
|
+
n(K), x();
|
|
1543
|
+
},
|
|
1544
|
+
function(K) {
|
|
1545
|
+
r(K), x();
|
|
1546
|
+
},
|
|
1547
|
+
A
|
|
1548
|
+
), f = null;
|
|
1549
|
+
}
|
|
1550
|
+
"onloadend" in f ? f.onloadend = m : f.onreadystatechange = function() {
|
|
1551
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.startsWith("file:")) || setTimeout(m);
|
|
1552
|
+
}, f.onabort = function() {
|
|
1553
|
+
f && (r(new p("Request aborted", p.ECONNABORTED, t, f)), x(), f = null);
|
|
1554
|
+
}, f.onerror = function(P) {
|
|
1555
|
+
const N = P && P.message ? P.message : "Network Error", A = new p(N, p.ERR_NETWORK, t, f);
|
|
1556
|
+
A.event = P || null, r(A), x(), f = null;
|
|
1557
|
+
}, f.ontimeout = function() {
|
|
1558
|
+
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1559
|
+
const N = s.transitional || Xe;
|
|
1560
|
+
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(
|
|
1561
|
+
new p(
|
|
1562
|
+
P,
|
|
1563
|
+
N.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
|
|
1564
|
+
t,
|
|
1565
|
+
f
|
|
1566
|
+
)
|
|
1567
|
+
), x(), f = null;
|
|
1568
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && a.forEach(jt(i), function(P, N) {
|
|
1569
|
+
f.setRequestHeader(N, P);
|
|
1570
|
+
}), a.isUndefined(s.withCredentials) || (f.withCredentials = !!s.withCredentials), c && c !== "json" && (f.responseType = s.responseType), d && ([y, R, S] = Te(
|
|
1571
|
+
d,
|
|
1572
|
+
!0
|
|
1573
|
+
), f.addEventListener("progress", y)), l && f.upload && ([h, g] = Te(l), f.upload.addEventListener("progress", h), f.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (b) => {
|
|
1574
|
+
f && (r(!b || b.type ? new be(null, t, f) : b), f.abort(), x(), f = null);
|
|
1575
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1576
|
+
const E = Me(s.url);
|
|
1577
|
+
if (E && !T.protocols.includes(E)) {
|
|
1578
|
+
r(
|
|
1579
|
+
new p(
|
|
1580
|
+
"Unsupported protocol " + E + ":",
|
|
1581
|
+
p.ERR_BAD_REQUEST,
|
|
1582
|
+
t
|
|
1583
|
+
)
|
|
1584
|
+
), x();
|
|
1585
|
+
return;
|
|
1586
|
+
}
|
|
1587
|
+
f.send(o || null);
|
|
1588
|
+
});
|
|
1589
|
+
}, rs = (t, e) => {
|
|
1590
|
+
if (t = t ? t.filter(Boolean) : [], !e && !t.length)
|
|
1591
|
+
return;
|
|
1592
|
+
const n = new AbortController();
|
|
1593
|
+
let r = !1;
|
|
1594
|
+
const s = function(l) {
|
|
1595
|
+
if (!r) {
|
|
1596
|
+
r = !0, i();
|
|
1597
|
+
const d = l instanceof Error ? l : this.reason;
|
|
1598
|
+
n.abort(
|
|
1599
|
+
d instanceof p ? d : new be(d instanceof Error ? d.message : d)
|
|
1600
|
+
);
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
let o = e && setTimeout(() => {
|
|
1604
|
+
o = null, s(new p(`timeout of ${e}ms exceeded`, p.ETIMEDOUT));
|
|
1605
|
+
}, e);
|
|
1606
|
+
const i = () => {
|
|
1607
|
+
t && (o && clearTimeout(o), o = null, t.forEach((l) => {
|
|
1608
|
+
l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
|
|
1609
|
+
}), t = null);
|
|
1610
|
+
};
|
|
1611
|
+
t.forEach((l) => {
|
|
1612
|
+
if (!r) {
|
|
1613
|
+
if (l.aborted) {
|
|
1614
|
+
s.call(l);
|
|
1615
|
+
return;
|
|
1616
|
+
}
|
|
1617
|
+
l.addEventListener("abort", s, { once: !0 });
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
const { signal: c } = n;
|
|
1621
|
+
return c.unsubscribe = () => a.asap(i), c;
|
|
1622
|
+
}, ss = function* (t, e) {
|
|
1623
|
+
let n = t.byteLength;
|
|
1624
|
+
if (n < e) {
|
|
1625
|
+
yield t;
|
|
1626
|
+
return;
|
|
1627
|
+
}
|
|
1628
|
+
let r = 0, s;
|
|
1629
|
+
for (; r < n; )
|
|
1630
|
+
s = r + e, yield t.slice(r, s), r = s;
|
|
1631
|
+
}, os = async function* (t, e) {
|
|
1632
|
+
for await (const n of is(t))
|
|
1633
|
+
yield* ss(n, e);
|
|
1634
|
+
}, is = async function* (t) {
|
|
1635
|
+
if (t[Symbol.asyncIterator]) {
|
|
1636
|
+
yield* t;
|
|
1637
|
+
return;
|
|
1638
|
+
}
|
|
1639
|
+
const e = t.getReader();
|
|
1640
|
+
try {
|
|
1641
|
+
for (; ; ) {
|
|
1642
|
+
const { done: n, value: r } = await e.read();
|
|
1643
|
+
if (n)
|
|
1644
|
+
break;
|
|
1645
|
+
yield r;
|
|
1646
|
+
}
|
|
1647
|
+
} finally {
|
|
1648
|
+
await e.cancel();
|
|
1649
|
+
}
|
|
1650
|
+
}, gt = (t, e, n, r) => {
|
|
1651
|
+
const s = os(t, e);
|
|
1652
|
+
let o = 0, i, c = (l) => {
|
|
1653
|
+
i || (i = !0, r && r(l));
|
|
1654
|
+
};
|
|
1655
|
+
return new ReadableStream(
|
|
1656
|
+
{
|
|
1657
|
+
async pull(l) {
|
|
1658
|
+
try {
|
|
1659
|
+
const { done: d, value: u } = await s.next();
|
|
1660
|
+
if (d) {
|
|
1661
|
+
c(), l.close();
|
|
1662
|
+
return;
|
|
1663
|
+
}
|
|
1664
|
+
let h = u.byteLength;
|
|
1665
|
+
if (n) {
|
|
1666
|
+
let y = o += h;
|
|
1667
|
+
n(y);
|
|
1668
|
+
}
|
|
1669
|
+
l.enqueue(new Uint8Array(u));
|
|
1670
|
+
} catch (d) {
|
|
1671
|
+
throw c(d), d;
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
cancel(l) {
|
|
1675
|
+
return c(l), s.return();
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
highWaterMark: 2
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
}, bt = (t) => t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102, Qt = (t, e, n) => e + 2 < n && bt(t.charCodeAt(e + 1)) && bt(t.charCodeAt(e + 2)), wt = (t) => t <= 57 ? t - 48 : (t & 223) - 55, as = (t) => t >= 65 && t <= 90 || // A-Z
|
|
1683
|
+
t >= 97 && t <= 122 || // a-z
|
|
1684
|
+
t >= 48 && t <= 57 || // 0-9
|
|
1685
|
+
t === 43 || // +
|
|
1686
|
+
t === 47 || // /
|
|
1687
|
+
t === 45 || // - (base64url)
|
|
1688
|
+
t === 95, cs = (t) => t === 9 || t === 10 || t === 12 || t === 13 || t === 32, ls = (t) => {
|
|
1689
|
+
const e = Math.floor(t / 4), n = t % 4;
|
|
1690
|
+
return e * 3 + (n === 2 ? 1 : n === 3 ? 2 : 0);
|
|
1691
|
+
}, us = (t) => {
|
|
1692
|
+
const e = t.length;
|
|
1693
|
+
let n = 0;
|
|
1694
|
+
return e > 0 && t.charCodeAt(e - 1) === 61 && (n++, e > 1 && t.charCodeAt(e - 2) === 61 && n++), Math.floor((e - n) * 3 / 4);
|
|
1695
|
+
}, fs = (t) => {
|
|
1696
|
+
const e = t.length;
|
|
1697
|
+
let n = 0, r = 0, s = !1;
|
|
1698
|
+
for (let o = 0; o < e; o++) {
|
|
1699
|
+
let i = t.charCodeAt(o);
|
|
1700
|
+
if (i === 37 && Qt(t, o, e) && (i = wt(t.charCodeAt(o + 1)) * 16 + wt(t.charCodeAt(o + 2)), o += 2), !cs(i)) {
|
|
1701
|
+
if (i === 61) {
|
|
1702
|
+
r++;
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
if (!as(i) || r > 0) {
|
|
1706
|
+
s = !0;
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
n++;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
return s || r > 2 || r > 0 && (n + r) % 4 !== 0 || n % 4 === 1 ? us(t) : ls(n);
|
|
1713
|
+
}, ds = (t, e) => {
|
|
1714
|
+
if (!t || typeof t != "string" || !t.startsWith("data:")) return 0;
|
|
1715
|
+
const n = t.indexOf(",");
|
|
1716
|
+
if (n < 0) return 0;
|
|
1717
|
+
const r = t.slice(5, n), s = t.slice(n + 1);
|
|
1718
|
+
if (/;base64/i.test(r))
|
|
1719
|
+
return e(s);
|
|
1720
|
+
let i = 0;
|
|
1721
|
+
for (let c = 0, l = s.length; c < l; c++) {
|
|
1722
|
+
const d = s.charCodeAt(c);
|
|
1723
|
+
if (d === 37 && Qt(s, c, l))
|
|
1724
|
+
i += 1, c += 2;
|
|
1725
|
+
else if (d < 128)
|
|
1726
|
+
i += 1;
|
|
1727
|
+
else if (d < 2048)
|
|
1728
|
+
i += 2;
|
|
1729
|
+
else if (d >= 55296 && d <= 56319 && c + 1 < l) {
|
|
1730
|
+
const u = s.charCodeAt(c + 1);
|
|
1731
|
+
u >= 56320 && u <= 57343 ? (i += 4, c++) : i += 3;
|
|
1732
|
+
} else
|
|
1733
|
+
i += 3;
|
|
1734
|
+
}
|
|
1735
|
+
return i;
|
|
1736
|
+
};
|
|
1737
|
+
function hs(t) {
|
|
1738
|
+
const e = typeof t == "string" ? t.indexOf("#") : -1;
|
|
1739
|
+
return ds(
|
|
1740
|
+
e === -1 ? t : t.slice(0, e),
|
|
1741
|
+
fs
|
|
1742
|
+
);
|
|
1743
|
+
}
|
|
1744
|
+
const Qe = "1.20.0", Et = 64 * 1024, ps = {
|
|
1745
|
+
cache: "default",
|
|
1746
|
+
redirect: "follow",
|
|
1747
|
+
referrer: "about:client",
|
|
1748
|
+
referrerPolicy: "",
|
|
1749
|
+
mode: "cors",
|
|
1750
|
+
integrity: "",
|
|
1751
|
+
keepalive: !1,
|
|
1752
|
+
priority: "auto",
|
|
1753
|
+
window: null
|
|
1754
|
+
}, { isFunction: Se } = a, ms = (t) => encodeURIComponent(t).replace(
|
|
1755
|
+
/%([0-9A-F]{2})/gi,
|
|
1756
|
+
(e, n) => String.fromCharCode(parseInt(n, 16))
|
|
1757
|
+
), Rt = (t) => {
|
|
1758
|
+
if (!a.isString(t))
|
|
1759
|
+
return t;
|
|
1760
|
+
try {
|
|
1761
|
+
return decodeURIComponent(t);
|
|
1762
|
+
} catch {
|
|
1763
|
+
return t;
|
|
1764
|
+
}
|
|
1765
|
+
}, St = (t, ...e) => {
|
|
1766
|
+
try {
|
|
1767
|
+
return !!t(...e);
|
|
1768
|
+
} catch {
|
|
1769
|
+
return !1;
|
|
1770
|
+
}
|
|
1771
|
+
}, ys = (t) => {
|
|
1772
|
+
const e = t.indexOf("://");
|
|
1773
|
+
let n = t;
|
|
1774
|
+
return e !== -1 && (n = n.slice(e + 3)), n.includes("@") || n.includes(":");
|
|
1775
|
+
}, gs = (t) => {
|
|
1776
|
+
const e = a.global !== void 0 && a.global !== null ? a.global : globalThis, { ReadableStream: n, TextEncoder: r } = e;
|
|
1777
|
+
t = a.merge.call(
|
|
1778
|
+
{
|
|
1779
|
+
skipUndefined: !0
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
Request: e.Request,
|
|
1783
|
+
Response: e.Response
|
|
1784
|
+
},
|
|
1785
|
+
t
|
|
1786
|
+
);
|
|
1787
|
+
const { fetch: s, Request: o, Response: i } = t, c = s ? Se(s) : typeof fetch == "function", l = Se(o), d = Se(i);
|
|
1788
|
+
if (!c)
|
|
1789
|
+
return !1;
|
|
1790
|
+
const u = c && Se(n), h = c && (typeof r == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new r()) : async (f) => new Uint8Array(await new o(f).arrayBuffer())), y = l && u && St(() => {
|
|
1791
|
+
let f = !1;
|
|
1792
|
+
const m = new o(T.origin, {
|
|
1793
|
+
body: new n(),
|
|
1794
|
+
method: "POST",
|
|
1795
|
+
get duplex() {
|
|
1796
|
+
return f = !0, "half";
|
|
1797
|
+
}
|
|
1798
|
+
}), E = m.headers.has("Content-Type");
|
|
1799
|
+
return m.body != null && m.body.cancel(), f && !E;
|
|
1800
|
+
}), g = d && u && St(() => a.isReadableStream(new i("").body)), R = {
|
|
1801
|
+
stream: g && ((f) => f.body)
|
|
1802
|
+
};
|
|
1803
|
+
c && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
1804
|
+
!R[f] && (R[f] = (m, E) => {
|
|
1805
|
+
let b = m && m[f];
|
|
1806
|
+
if (b)
|
|
1807
|
+
return b.call(m);
|
|
1808
|
+
throw new p(
|
|
1809
|
+
`Response type '${f}' is not supported`,
|
|
1810
|
+
p.ERR_NOT_SUPPORT,
|
|
1811
|
+
E
|
|
1812
|
+
);
|
|
1813
|
+
});
|
|
1814
|
+
});
|
|
1815
|
+
const S = async (f) => {
|
|
1816
|
+
if (f == null)
|
|
1817
|
+
return 0;
|
|
1818
|
+
if (a.isBlob(f))
|
|
1819
|
+
return f.size;
|
|
1820
|
+
if (a.isSpecCompliantForm(f))
|
|
1821
|
+
return (await new o(T.origin, {
|
|
1822
|
+
method: "POST",
|
|
1823
|
+
body: f
|
|
1824
|
+
}).arrayBuffer()).byteLength;
|
|
1825
|
+
if (a.isArrayBufferView(f) || a.isArrayBuffer(f))
|
|
1826
|
+
return f.byteLength;
|
|
1827
|
+
if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
|
|
1828
|
+
return (await h(f)).byteLength;
|
|
1829
|
+
}, x = async (f, m) => {
|
|
1830
|
+
const E = a.toFiniteNumber(f.getContentLength());
|
|
1831
|
+
return E ?? S(m);
|
|
1832
|
+
};
|
|
1833
|
+
return async (f) => {
|
|
1834
|
+
let {
|
|
1835
|
+
url: m,
|
|
1836
|
+
method: E,
|
|
1837
|
+
data: b,
|
|
1838
|
+
signal: P,
|
|
1839
|
+
cancelToken: N,
|
|
1840
|
+
timeout: A,
|
|
1841
|
+
onDownloadProgress: k,
|
|
1842
|
+
onUploadProgress: K,
|
|
1843
|
+
responseType: z,
|
|
1844
|
+
headers: v,
|
|
1845
|
+
withCredentials: we = "same-origin",
|
|
1846
|
+
fetchOptions: Le,
|
|
1847
|
+
maxContentLength: M,
|
|
1848
|
+
maxBodyLength: Ee,
|
|
1849
|
+
maxRedirects: nn
|
|
1850
|
+
} = Gt(f);
|
|
1851
|
+
const ae = a.isNumber(M) && M > -1, Ue = a.isNumber(Ee) && Ee > -1, rn = (O) => a.hasOwnProp(f, O) ? f[O] : void 0;
|
|
1852
|
+
let et = s || fetch;
|
|
1853
|
+
z = z ? (z + "").toLowerCase() : "text";
|
|
1854
|
+
let W = rs(
|
|
1855
|
+
[P, N && N.toAbortSignal()],
|
|
1856
|
+
A
|
|
1857
|
+
), C = null;
|
|
1858
|
+
const X = W && W.unsubscribe && (() => {
|
|
1859
|
+
W.unsubscribe();
|
|
1860
|
+
});
|
|
1861
|
+
let re, ce = null;
|
|
1862
|
+
const tt = () => new p(
|
|
1863
|
+
"Request body larger than maxBodyLength limit",
|
|
1864
|
+
p.ERR_BAD_REQUEST,
|
|
1865
|
+
f,
|
|
1866
|
+
C
|
|
1867
|
+
);
|
|
1868
|
+
try {
|
|
1869
|
+
let O;
|
|
1870
|
+
const B = rn("auth");
|
|
1871
|
+
if (B) {
|
|
1872
|
+
const w = a.getSafeProp(B, "username") || "", D = a.getSafeProp(B, "password") || "";
|
|
1873
|
+
O = {
|
|
1874
|
+
username: w,
|
|
1875
|
+
password: D
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
if (ys(m)) {
|
|
1879
|
+
const w = new URL(m, T.origin);
|
|
1880
|
+
if (!O && (w.username || w.password)) {
|
|
1881
|
+
const D = Rt(w.username), V = Rt(w.password);
|
|
1882
|
+
O = {
|
|
1883
|
+
username: D,
|
|
1884
|
+
password: V
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
(w.username || w.password) && (w.username = "", w.password = "", m = w.href);
|
|
1888
|
+
}
|
|
1889
|
+
if (O && (v.delete("authorization"), v.set(
|
|
1890
|
+
"Authorization",
|
|
1891
|
+
"Basic " + btoa(ms((O.username || "") + ":" + (O.password || "")))
|
|
1892
|
+
)), ae && typeof m == "string" && m.startsWith("data:") && hs(m) > M)
|
|
1893
|
+
throw new p(
|
|
1894
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1895
|
+
p.ERR_BAD_RESPONSE,
|
|
1896
|
+
f,
|
|
1897
|
+
C
|
|
1898
|
+
);
|
|
1899
|
+
if (Ue && E !== "get" && E !== "head") {
|
|
1900
|
+
const w = await S(b);
|
|
1901
|
+
if (typeof w == "number" && isFinite(w) && (re = w, w > Ee))
|
|
1902
|
+
throw tt();
|
|
1903
|
+
}
|
|
1904
|
+
const Re = Ue && (a.isReadableStream(b) || a.isStream(b)), nt = (w, D, V) => gt(
|
|
1905
|
+
w,
|
|
1906
|
+
Et,
|
|
1907
|
+
(G) => {
|
|
1908
|
+
if (Ue && G > Ee)
|
|
1909
|
+
throw ce = tt();
|
|
1910
|
+
D && D(G);
|
|
1911
|
+
},
|
|
1912
|
+
V
|
|
1913
|
+
);
|
|
1914
|
+
if (y && E !== "get" && E !== "head" && (K || Re)) {
|
|
1915
|
+
if (re = re ?? await x(v, b), re !== 0 || Re) {
|
|
1916
|
+
let w = new o(m, {
|
|
1917
|
+
method: "POST",
|
|
1918
|
+
body: b,
|
|
1919
|
+
duplex: "half"
|
|
1920
|
+
}), D;
|
|
1921
|
+
if (a.isFormData(b) && (D = w.headers.get("content-type")) && v.setContentType(D), w.body) {
|
|
1922
|
+
const [V, G] = K && ht(
|
|
1923
|
+
re,
|
|
1924
|
+
Te(pt(K))
|
|
1925
|
+
) || [];
|
|
1926
|
+
b = nt(w.body, V, G);
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
} else if (Re && !l && u && E !== "get" && E !== "head")
|
|
1930
|
+
b = nt(b);
|
|
1931
|
+
else if (Re && l && !y && E !== "get" && E !== "head")
|
|
1932
|
+
throw new p(
|
|
1933
|
+
"Stream request bodies are not supported by the current fetch implementation",
|
|
1934
|
+
p.ERR_NOT_SUPPORT,
|
|
1935
|
+
f,
|
|
1936
|
+
C
|
|
1937
|
+
);
|
|
1938
|
+
a.isString(we) || (we = we ? "include" : "omit");
|
|
1939
|
+
const sn = l && "credentials" in o.prototype;
|
|
1940
|
+
if (a.isFormData(b)) {
|
|
1941
|
+
const w = v.getContentType();
|
|
1942
|
+
w && /^multipart\/form-data/i.test(w) && !/boundary=/i.test(w) && v.delete("content-type");
|
|
1943
|
+
}
|
|
1944
|
+
v.set("User-Agent", "axios/" + Qe, !1);
|
|
1945
|
+
const I = Le == null ? Le : Object.assign(/* @__PURE__ */ Object.create(null), Le);
|
|
1946
|
+
I && (delete I.body, delete I.headers, delete I.method, delete I.signal, delete I.duplex, delete I.credentials);
|
|
1947
|
+
const H = Object.assign(/* @__PURE__ */ Object.create(null), I, {
|
|
1948
|
+
signal: W,
|
|
1949
|
+
method: E.toUpperCase(),
|
|
1950
|
+
headers: jt(v.normalize()),
|
|
1951
|
+
body: b,
|
|
1952
|
+
duplex: "half",
|
|
1953
|
+
credentials: sn ? we : void 0
|
|
1954
|
+
});
|
|
1955
|
+
l && (a.forEach(ps, (w, D) => {
|
|
1956
|
+
H[D] === void 0 && (H[D] = w);
|
|
1957
|
+
}), H.signal === void 0 && (H.signal = null), H.body === void 0 && (H.body = null)), nn === 0 && (H.redirect = "manual", I && (I.redirect = "manual")), C = l && new o(m, H);
|
|
1958
|
+
let q = await (l ? et(C, I) : et(m, H));
|
|
1959
|
+
const rt = U.from(q.headers);
|
|
1960
|
+
if (ae) {
|
|
1961
|
+
const w = a.toFiniteNumber(rt.getContentLength());
|
|
1962
|
+
if (w != null && w > M)
|
|
1963
|
+
throw new p(
|
|
1964
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1965
|
+
p.ERR_BAD_RESPONSE,
|
|
1966
|
+
f,
|
|
1967
|
+
C
|
|
1968
|
+
);
|
|
1969
|
+
}
|
|
1970
|
+
const Fe = g && (z === "stream" || z === "response");
|
|
1971
|
+
if (g && q.body && (k || ae || Fe && X)) {
|
|
1972
|
+
const w = {};
|
|
1973
|
+
["status", "statusText", "headers"].forEach((le) => {
|
|
1974
|
+
w[le] = q[le];
|
|
1975
|
+
});
|
|
1976
|
+
const D = a.toFiniteNumber(rt.getContentLength()), [V, G] = k && ht(
|
|
1977
|
+
D,
|
|
1978
|
+
Te(pt(k), !0)
|
|
1979
|
+
) || [];
|
|
1980
|
+
let st = 0;
|
|
1981
|
+
const on = (le) => {
|
|
1982
|
+
if (ae && (st = le, st > M))
|
|
1983
|
+
throw new p(
|
|
1984
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1985
|
+
p.ERR_BAD_RESPONSE,
|
|
1986
|
+
f,
|
|
1987
|
+
C
|
|
1988
|
+
);
|
|
1989
|
+
V && V(le);
|
|
1990
|
+
};
|
|
1991
|
+
q = new i(
|
|
1992
|
+
gt(q.body, Et, on, () => {
|
|
1993
|
+
G && G(), X && X();
|
|
1994
|
+
}),
|
|
1995
|
+
w
|
|
1996
|
+
);
|
|
1997
|
+
}
|
|
1998
|
+
z = z || "text";
|
|
1999
|
+
let $ = await R[a.findKey(R, z) || "text"](
|
|
2000
|
+
q,
|
|
2001
|
+
f
|
|
2002
|
+
);
|
|
2003
|
+
if (ae && !g && !Fe) {
|
|
2004
|
+
let w;
|
|
2005
|
+
if ($ != null && (typeof $.byteLength == "number" ? w = $.byteLength : typeof $.size == "number" ? w = $.size : typeof $ == "string" && (w = typeof r == "function" ? new r().encode($).byteLength : $.length)), typeof w == "number" && w > M)
|
|
2006
|
+
throw new p(
|
|
2007
|
+
"maxContentLength size of " + M + " exceeded",
|
|
2008
|
+
p.ERR_BAD_RESPONSE,
|
|
2009
|
+
f,
|
|
2010
|
+
C
|
|
2011
|
+
);
|
|
2012
|
+
}
|
|
2013
|
+
return !Fe && X && X(), await new Promise((w, D) => {
|
|
2014
|
+
Jt(w, D, {
|
|
2015
|
+
data: $,
|
|
2016
|
+
headers: U.from(q.headers),
|
|
2017
|
+
status: q.status,
|
|
2018
|
+
statusText: q.statusText,
|
|
2019
|
+
config: f,
|
|
2020
|
+
request: C
|
|
2021
|
+
});
|
|
2022
|
+
});
|
|
2023
|
+
} catch (O) {
|
|
2024
|
+
if (X && X(), W && W.aborted && W.reason instanceof p) {
|
|
2025
|
+
const B = W.reason;
|
|
2026
|
+
throw B.config = f, C && (B.request = C), O !== B && Object.defineProperty(B, "cause", {
|
|
2027
|
+
__proto__: null,
|
|
2028
|
+
value: O,
|
|
2029
|
+
writable: !0,
|
|
2030
|
+
enumerable: !1,
|
|
2031
|
+
configurable: !0
|
|
2032
|
+
}), B;
|
|
2033
|
+
}
|
|
2034
|
+
if (ce)
|
|
2035
|
+
throw C && !ce.request && (ce.request = C), ce;
|
|
2036
|
+
if (O instanceof p)
|
|
2037
|
+
throw C && !O.request && (O.request = C), O;
|
|
2038
|
+
if (O && O.name === "TypeError" && /Load failed|fetch/i.test(O.message)) {
|
|
2039
|
+
const B = new p(
|
|
2040
|
+
"Network Error",
|
|
2041
|
+
p.ERR_NETWORK,
|
|
2042
|
+
f,
|
|
2043
|
+
C,
|
|
2044
|
+
O && O.response
|
|
2045
|
+
);
|
|
2046
|
+
throw Object.defineProperty(B, "cause", {
|
|
2047
|
+
__proto__: null,
|
|
2048
|
+
value: O.cause || O,
|
|
2049
|
+
writable: !0,
|
|
2050
|
+
enumerable: !1,
|
|
2051
|
+
configurable: !0
|
|
2052
|
+
}), B;
|
|
2053
|
+
}
|
|
2054
|
+
throw p.from(O, O && O.code, f, C, O && O.response);
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
}, bs = /* @__PURE__ */ new Map(), Zt = (t) => {
|
|
2058
|
+
let e = t && t.env || {};
|
|
2059
|
+
const { fetch: n, Request: r, Response: s } = e, o = [r, s, n];
|
|
2060
|
+
let i = o.length, c = i, l, d, u = bs;
|
|
2061
|
+
for (; c--; )
|
|
2062
|
+
l = o[c], d = u.get(l), d === void 0 && u.set(l, d = c ? /* @__PURE__ */ new Map() : gs(e)), u = d;
|
|
2063
|
+
return d;
|
|
2064
|
+
};
|
|
2065
|
+
Zt();
|
|
2066
|
+
const Ze = {
|
|
2067
|
+
http: _r,
|
|
2068
|
+
xhr: ns,
|
|
2069
|
+
fetch: {
|
|
2070
|
+
get: Zt
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
2073
|
+
a.forEach(Ze, (t, e) => {
|
|
2074
|
+
if (t) {
|
|
2075
|
+
try {
|
|
2076
|
+
Object.defineProperty(t, "name", { __proto__: null, value: e });
|
|
2077
|
+
} catch {
|
|
2078
|
+
}
|
|
2079
|
+
Object.defineProperty(t, "adapterName", { __proto__: null, value: e });
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
const Ot = (t) => `- ${t}`, ws = (t) => a.isFunction(t) || t === null || t === !1;
|
|
2083
|
+
function Es(t, e) {
|
|
2084
|
+
t = a.isArray(t) ? t : [t];
|
|
2085
|
+
const { length: n } = t;
|
|
2086
|
+
let r, s;
|
|
2087
|
+
const o = {};
|
|
2088
|
+
for (let i = 0; i < n; i++) {
|
|
2089
|
+
r = t[i];
|
|
2090
|
+
let c;
|
|
2091
|
+
if (s = r, !ws(r) && (s = Ze[(c = String(r)).toLowerCase()], s === void 0))
|
|
2092
|
+
throw new p(`Unknown adapter '${c}'`);
|
|
2093
|
+
if (s && (a.isFunction(s) || (s = s.get(e))))
|
|
2094
|
+
break;
|
|
2095
|
+
o[c || "#" + i] = s;
|
|
2096
|
+
}
|
|
2097
|
+
if (!s) {
|
|
2098
|
+
const i = Object.entries(o).map(
|
|
2099
|
+
([l, d]) => `adapter ${l} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2100
|
+
);
|
|
2101
|
+
let c = n ? i.length > 1 ? `since :
|
|
2102
|
+
` + i.map(Ot).join(`
|
|
2103
|
+
`) : " " + Ot(i[0]) : "as no adapter specified";
|
|
2104
|
+
throw new p(
|
|
2105
|
+
"There is no suitable adapter to dispatch the request " + c,
|
|
2106
|
+
p.ERR_NOT_SUPPORT
|
|
2107
|
+
);
|
|
2108
|
+
}
|
|
2109
|
+
return s;
|
|
2110
|
+
}
|
|
2111
|
+
const Yt = {
|
|
2112
|
+
/**
|
|
2113
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
2114
|
+
* @type {Function}
|
|
2115
|
+
*/
|
|
2116
|
+
getAdapter: Es,
|
|
2117
|
+
/**
|
|
2118
|
+
* Exposes all known adapters
|
|
2119
|
+
* @type {Object<string, Function|Object>}
|
|
2120
|
+
*/
|
|
2121
|
+
adapters: Ze
|
|
2122
|
+
};
|
|
2123
|
+
function He(t) {
|
|
2124
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
2125
|
+
throw new be(null, t);
|
|
2126
|
+
}
|
|
2127
|
+
function qe(t) {
|
|
2128
|
+
const e = a.toSafeFlatObject(t);
|
|
2129
|
+
return He(e), e.headers = U.from(a.getSafeProp(e, "headers")), e.data = ke.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Yt.getAdapter(e.adapter || ge.adapter, e)(e).then(
|
|
2130
|
+
function(s) {
|
|
2131
|
+
He(e), e.response = s;
|
|
2132
|
+
try {
|
|
2133
|
+
s.data = ke.call(e, e.transformResponse, s);
|
|
2134
|
+
} finally {
|
|
2135
|
+
delete e.response;
|
|
2136
|
+
}
|
|
2137
|
+
return s.headers = U.from(s.headers), s;
|
|
2138
|
+
},
|
|
2139
|
+
function(s) {
|
|
2140
|
+
if (!Vt(s) && (He(e), s && s.response)) {
|
|
2141
|
+
e.response = s.response;
|
|
2142
|
+
try {
|
|
2143
|
+
s.response.data = ke.call(
|
|
2144
|
+
e,
|
|
2145
|
+
e.transformResponse,
|
|
2146
|
+
s.response
|
|
2147
|
+
);
|
|
2148
|
+
} finally {
|
|
2149
|
+
delete e.response;
|
|
2150
|
+
}
|
|
2151
|
+
s.response.headers = U.from(s.response.headers);
|
|
2152
|
+
}
|
|
2153
|
+
return Promise.reject(s);
|
|
2154
|
+
}
|
|
2155
|
+
);
|
|
2156
|
+
}
|
|
2157
|
+
const De = {};
|
|
2158
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
2159
|
+
De[t] = function(r) {
|
|
2160
|
+
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
2161
|
+
};
|
|
2162
|
+
});
|
|
2163
|
+
const At = {};
|
|
2164
|
+
De.transitional = function(e, n, r) {
|
|
2165
|
+
function s(o, i) {
|
|
2166
|
+
return "[Axios v" + Qe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
2167
|
+
}
|
|
2168
|
+
return (o, i, c) => {
|
|
2169
|
+
if (e === !1)
|
|
2170
|
+
throw new p(
|
|
2171
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
2172
|
+
p.ERR_DEPRECATED
|
|
2173
|
+
);
|
|
2174
|
+
return n && !At[i] && (At[i] = !0, console.warn(
|
|
2175
|
+
s(
|
|
2176
|
+
i,
|
|
2177
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
2178
|
+
)
|
|
2179
|
+
)), e ? e(o, i, c) : !0;
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
2182
|
+
De.spelling = function(e) {
|
|
2183
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
2184
|
+
};
|
|
2185
|
+
function Rs(t, e, n) {
|
|
2186
|
+
if (typeof t != "object" || t === null)
|
|
2187
|
+
throw new p("options must be an object", p.ERR_BAD_OPTION_VALUE);
|
|
2188
|
+
const r = Object.keys(t);
|
|
2189
|
+
let s = r.length;
|
|
2190
|
+
for (; s-- > 0; ) {
|
|
2191
|
+
const o = r[s], i = Object.prototype.hasOwnProperty.call(e, o) ? e[o] : void 0;
|
|
2192
|
+
if (i) {
|
|
2193
|
+
const c = t[o], l = c === void 0 || i(c, o, t);
|
|
2194
|
+
if (l !== !0)
|
|
2195
|
+
throw new p(
|
|
2196
|
+
"option " + o + " must be " + l,
|
|
2197
|
+
p.ERR_BAD_OPTION_VALUE
|
|
2198
|
+
);
|
|
2199
|
+
continue;
|
|
2200
|
+
}
|
|
2201
|
+
if (n !== !0)
|
|
2202
|
+
throw new p("Unknown option " + o, p.ERR_BAD_OPTION);
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
const _e = {
|
|
2206
|
+
assertOptions: Rs,
|
|
2207
|
+
validators: De
|
|
2208
|
+
}, L = _e.validators;
|
|
2209
|
+
let Y = class {
|
|
2210
|
+
constructor(e) {
|
|
2211
|
+
this.defaults = e || {}, this.interceptors = {
|
|
2212
|
+
request: new ft(),
|
|
2213
|
+
response: new ft()
|
|
2214
|
+
};
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* Dispatch a request
|
|
2218
|
+
*
|
|
2219
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2220
|
+
* @param {?Object} config
|
|
2221
|
+
*
|
|
2222
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
2223
|
+
*/
|
|
2224
|
+
async request(e, n) {
|
|
2225
|
+
try {
|
|
2226
|
+
return await this._request(e, n);
|
|
2227
|
+
} catch (r) {
|
|
2228
|
+
if (r instanceof Error)
|
|
2229
|
+
try {
|
|
2230
|
+
let s = {};
|
|
2231
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
2232
|
+
const o = s.stack;
|
|
2233
|
+
let i = "";
|
|
2234
|
+
if (typeof o == "string") {
|
|
2235
|
+
const c = o.indexOf(`
|
|
2236
|
+
`);
|
|
2237
|
+
i = c === -1 ? "" : o.slice(c + 1);
|
|
2238
|
+
}
|
|
2239
|
+
if (!r.stack)
|
|
2240
|
+
r.stack = i;
|
|
2241
|
+
else if (i) {
|
|
2242
|
+
const c = i.indexOf(`
|
|
2243
|
+
`), l = c === -1 ? -1 : i.indexOf(`
|
|
2244
|
+
`, c + 1), d = l === -1 ? "" : i.slice(l + 1);
|
|
2245
|
+
String(r.stack).endsWith(d) || (r.stack += `
|
|
2246
|
+
` + i);
|
|
2247
|
+
}
|
|
2248
|
+
} catch {
|
|
2249
|
+
}
|
|
2250
|
+
throw r;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
_request(e, n) {
|
|
2254
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ne(this.defaults, n);
|
|
2255
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
2256
|
+
r !== void 0 && _e.assertOptions(
|
|
2257
|
+
r,
|
|
2258
|
+
{
|
|
2259
|
+
silentJSONParsing: L.transitional(L.boolean),
|
|
2260
|
+
forcedJSONParsing: L.transitional(L.boolean),
|
|
2261
|
+
clarifyTimeoutError: L.transitional(L.boolean),
|
|
2262
|
+
legacyInterceptorReqResOrdering: L.transitional(L.boolean),
|
|
2263
|
+
advertiseZstdAcceptEncoding: L.transitional(L.boolean),
|
|
2264
|
+
validateStatusUndefinedResolves: L.transitional(L.boolean)
|
|
2265
|
+
},
|
|
2266
|
+
!1
|
|
2267
|
+
), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
2268
|
+
serialize: s
|
|
2269
|
+
} : _e.assertOptions(
|
|
2270
|
+
s,
|
|
2271
|
+
{
|
|
2272
|
+
encode: L.function,
|
|
2273
|
+
serialize: L.function
|
|
2274
|
+
},
|
|
2275
|
+
!0
|
|
2276
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), _e.assertOptions(
|
|
2277
|
+
n,
|
|
2278
|
+
{
|
|
2279
|
+
baseUrl: L.spelling("baseURL"),
|
|
2280
|
+
withXsrfToken: L.spelling("withXSRFToken")
|
|
2281
|
+
},
|
|
2282
|
+
!0
|
|
2283
|
+
), n.method = (a.getSafeProp(n, "method") || a.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
2284
|
+
let i = o && a.merge(o.common, o[n.method]);
|
|
2285
|
+
o && a.forEach(Wt.concat("common"), (R) => {
|
|
2286
|
+
delete o[R];
|
|
2287
|
+
}), n.headers = U.concat(i, o);
|
|
2288
|
+
const c = [];
|
|
2289
|
+
let l = !0;
|
|
2290
|
+
this.interceptors.request.forEach(function(S) {
|
|
2291
|
+
if (typeof S.runWhen == "function" && S.runWhen(n) === !1)
|
|
2292
|
+
return;
|
|
2293
|
+
l = l && S.synchronous;
|
|
2294
|
+
const x = n.transitional || Xe;
|
|
2295
|
+
x && x.legacyInterceptorReqResOrdering ? c.unshift(S.fulfilled, S.rejected) : c.push(S.fulfilled, S.rejected);
|
|
2296
|
+
});
|
|
2297
|
+
const d = [];
|
|
2298
|
+
this.interceptors.response.forEach(function(S) {
|
|
2299
|
+
d.push(S.fulfilled, S.rejected);
|
|
2300
|
+
});
|
|
2301
|
+
let u, h = 0, y;
|
|
2302
|
+
if (!l) {
|
|
2303
|
+
const R = [qe.bind(this), void 0];
|
|
2304
|
+
for (R.unshift(...c), R.push(...d), y = R.length, u = Promise.resolve(n); h < y; )
|
|
2305
|
+
u = u.then(R[h++], R[h++]);
|
|
2306
|
+
return u;
|
|
2307
|
+
}
|
|
2308
|
+
y = c.length;
|
|
2309
|
+
let g = n;
|
|
2310
|
+
for (; h < y; ) {
|
|
2311
|
+
const R = c[h++], S = c[h++];
|
|
2312
|
+
try {
|
|
2313
|
+
g = R ? R(g) : g;
|
|
2314
|
+
} catch (x) {
|
|
2315
|
+
if (!S) {
|
|
2316
|
+
u = Promise.reject(x);
|
|
2317
|
+
break;
|
|
2318
|
+
}
|
|
2319
|
+
try {
|
|
2320
|
+
const f = S.call(this, x);
|
|
2321
|
+
a.isThenable(f) && (u = Promise.resolve(f).then(
|
|
2322
|
+
() => qe.call(this, g)
|
|
2323
|
+
));
|
|
2324
|
+
} catch (f) {
|
|
2325
|
+
u = Promise.reject(f);
|
|
2326
|
+
}
|
|
2327
|
+
break;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
if (!u)
|
|
2331
|
+
try {
|
|
2332
|
+
u = qe.call(this, g);
|
|
2333
|
+
} catch (R) {
|
|
2334
|
+
u = Promise.reject(R);
|
|
2335
|
+
}
|
|
2336
|
+
for (h = 0, y = d.length; h < y; )
|
|
2337
|
+
u = u.then(d[h++], d[h++]);
|
|
2338
|
+
return u;
|
|
2339
|
+
}
|
|
2340
|
+
getUri(e) {
|
|
2341
|
+
e = ne(this.defaults, e);
|
|
2342
|
+
const n = Xt(e.baseURL, e.url, e.allowAbsoluteUrls, e);
|
|
2343
|
+
return qt(n, e.params, e.paramsSerializer);
|
|
2344
|
+
}
|
|
2345
|
+
};
|
|
2346
|
+
a.forEach(["delete", "get", "head", "options"], function(e) {
|
|
2347
|
+
Y.prototype[e] = function(n, r) {
|
|
2348
|
+
return this.request(
|
|
2349
|
+
ne(r || {}, {
|
|
2350
|
+
method: e,
|
|
2351
|
+
url: n,
|
|
2352
|
+
data: r && a.hasOwnProp(r, "data") ? r.data : void 0
|
|
2353
|
+
})
|
|
2354
|
+
);
|
|
2355
|
+
};
|
|
2356
|
+
});
|
|
2357
|
+
a.forEach(["post", "put", "patch", "query"], function(e) {
|
|
2358
|
+
function n(r) {
|
|
2359
|
+
return function(o, i, c) {
|
|
2360
|
+
return this.request(
|
|
2361
|
+
ne(c || {}, {
|
|
2362
|
+
method: e,
|
|
2363
|
+
headers: r ? {
|
|
2364
|
+
"Content-Type": "multipart/form-data"
|
|
2365
|
+
} : {},
|
|
2366
|
+
url: o,
|
|
2367
|
+
data: i
|
|
2368
|
+
})
|
|
2369
|
+
);
|
|
2370
|
+
};
|
|
2371
|
+
}
|
|
2372
|
+
Y.prototype[e] = n(), e !== "query" && (Y.prototype[e + "Form"] = n(!0));
|
|
2373
|
+
});
|
|
2374
|
+
let Ss = class en {
|
|
2375
|
+
constructor(e) {
|
|
2376
|
+
if (typeof e != "function")
|
|
2377
|
+
throw new TypeError("executor must be a function.");
|
|
2378
|
+
let n;
|
|
2379
|
+
this.promise = new Promise(function(o) {
|
|
2380
|
+
n = o;
|
|
2381
|
+
});
|
|
2382
|
+
const r = this;
|
|
2383
|
+
this.promise.then((s) => {
|
|
2384
|
+
if (!r._listeners) return;
|
|
2385
|
+
let o = r._listeners.length;
|
|
2386
|
+
for (; o-- > 0; )
|
|
2387
|
+
r._listeners[o](s);
|
|
2388
|
+
r._listeners = null;
|
|
2389
|
+
}), this.promise.then = (s) => {
|
|
2390
|
+
let o;
|
|
2391
|
+
const i = new Promise((c) => {
|
|
2392
|
+
r.subscribe(c), o = c;
|
|
2393
|
+
}).then(s);
|
|
2394
|
+
return i.cancel = function() {
|
|
2395
|
+
r.unsubscribe(o);
|
|
2396
|
+
}, i;
|
|
2397
|
+
}, e(function(o, i, c) {
|
|
2398
|
+
r.reason || (r.reason = new be(o, i, c), n(r.reason));
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
/**
|
|
2402
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
2403
|
+
*/
|
|
2404
|
+
throwIfRequested() {
|
|
2405
|
+
if (this.reason)
|
|
2406
|
+
throw this.reason;
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Subscribe to the cancel signal
|
|
2410
|
+
*/
|
|
2411
|
+
subscribe(e) {
|
|
2412
|
+
if (this.reason) {
|
|
2413
|
+
e(this.reason);
|
|
2414
|
+
return;
|
|
2415
|
+
}
|
|
2416
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Unsubscribe from the cancel signal
|
|
2420
|
+
*/
|
|
2421
|
+
unsubscribe(e) {
|
|
2422
|
+
if (!this._listeners)
|
|
2423
|
+
return;
|
|
2424
|
+
const n = this._listeners.indexOf(e);
|
|
2425
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
2426
|
+
}
|
|
2427
|
+
toAbortSignal() {
|
|
2428
|
+
const e = new AbortController(), n = (r) => {
|
|
2429
|
+
e.abort(r);
|
|
2430
|
+
};
|
|
2431
|
+
return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2435
|
+
* cancels the `CancelToken`.
|
|
2436
|
+
*/
|
|
2437
|
+
static source() {
|
|
2438
|
+
let e;
|
|
2439
|
+
return {
|
|
2440
|
+
token: new en(function(s) {
|
|
2441
|
+
e = s;
|
|
2442
|
+
}),
|
|
2443
|
+
cancel: e
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
};
|
|
2447
|
+
function Os(t) {
|
|
2448
|
+
return function(n) {
|
|
2449
|
+
return t.apply(null, n);
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
function As(t) {
|
|
2453
|
+
return a.isObject(t) && t.isAxiosError === !0;
|
|
2454
|
+
}
|
|
2455
|
+
const xe = {
|
|
2456
|
+
Continue: 100,
|
|
2457
|
+
SwitchingProtocols: 101,
|
|
2458
|
+
Processing: 102,
|
|
2459
|
+
EarlyHints: 103,
|
|
2460
|
+
Ok: 200,
|
|
2461
|
+
Created: 201,
|
|
2462
|
+
Accepted: 202,
|
|
2463
|
+
NonAuthoritativeInformation: 203,
|
|
2464
|
+
NoContent: 204,
|
|
2465
|
+
ResetContent: 205,
|
|
2466
|
+
PartialContent: 206,
|
|
2467
|
+
MultiStatus: 207,
|
|
2468
|
+
AlreadyReported: 208,
|
|
2469
|
+
ImUsed: 226,
|
|
2470
|
+
MultipleChoices: 300,
|
|
2471
|
+
MovedPermanently: 301,
|
|
2472
|
+
Found: 302,
|
|
2473
|
+
SeeOther: 303,
|
|
2474
|
+
NotModified: 304,
|
|
2475
|
+
UseProxy: 305,
|
|
2476
|
+
Unused: 306,
|
|
2477
|
+
TemporaryRedirect: 307,
|
|
2478
|
+
PermanentRedirect: 308,
|
|
2479
|
+
BadRequest: 400,
|
|
2480
|
+
Unauthorized: 401,
|
|
2481
|
+
PaymentRequired: 402,
|
|
2482
|
+
Forbidden: 403,
|
|
2483
|
+
NotFound: 404,
|
|
2484
|
+
MethodNotAllowed: 405,
|
|
2485
|
+
NotAcceptable: 406,
|
|
2486
|
+
ProxyAuthenticationRequired: 407,
|
|
2487
|
+
RequestTimeout: 408,
|
|
2488
|
+
Conflict: 409,
|
|
2489
|
+
Gone: 410,
|
|
2490
|
+
LengthRequired: 411,
|
|
2491
|
+
PreconditionFailed: 412,
|
|
2492
|
+
/**
|
|
2493
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
2494
|
+
*/
|
|
2495
|
+
PayloadTooLarge: 413,
|
|
2496
|
+
ContentTooLarge: 413,
|
|
2497
|
+
UriTooLong: 414,
|
|
2498
|
+
UnsupportedMediaType: 415,
|
|
2499
|
+
RangeNotSatisfiable: 416,
|
|
2500
|
+
ExpectationFailed: 417,
|
|
2501
|
+
ImATeapot: 418,
|
|
2502
|
+
MisdirectedRequest: 421,
|
|
2503
|
+
/**
|
|
2504
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
2505
|
+
*/
|
|
2506
|
+
UnprocessableEntity: 422,
|
|
2507
|
+
UnprocessableContent: 422,
|
|
2508
|
+
Locked: 423,
|
|
2509
|
+
FailedDependency: 424,
|
|
2510
|
+
TooEarly: 425,
|
|
2511
|
+
UpgradeRequired: 426,
|
|
2512
|
+
PreconditionRequired: 428,
|
|
2513
|
+
TooManyRequests: 429,
|
|
2514
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
2515
|
+
UnavailableForLegalReasons: 451,
|
|
2516
|
+
InternalServerError: 500,
|
|
2517
|
+
NotImplemented: 501,
|
|
2518
|
+
BadGateway: 502,
|
|
2519
|
+
ServiceUnavailable: 503,
|
|
2520
|
+
GatewayTimeout: 504,
|
|
2521
|
+
HttpVersionNotSupported: 505,
|
|
2522
|
+
VariantAlsoNegotiates: 506,
|
|
2523
|
+
InsufficientStorage: 507,
|
|
2524
|
+
LoopDetected: 508,
|
|
2525
|
+
NotExtended: 510,
|
|
2526
|
+
NetworkAuthenticationRequired: 511,
|
|
2527
|
+
WebServerReturnsAnUnknownError: 520,
|
|
2528
|
+
WebServerIsDown: 521,
|
|
2529
|
+
ConnectionTimedOut: 522,
|
|
2530
|
+
OriginIsUnreachable: 523,
|
|
2531
|
+
TimeoutOccurred: 524,
|
|
2532
|
+
SslHandshakeFailed: 525,
|
|
2533
|
+
InvalidSslCertificate: 526
|
|
2534
|
+
};
|
|
2535
|
+
Object.entries(xe).forEach(([t, e]) => {
|
|
2536
|
+
xe[e] === void 0 && (xe[e] = t);
|
|
2537
|
+
});
|
|
2538
|
+
function tn(t) {
|
|
2539
|
+
const e = new Y(t), n = _t(Y.prototype.request, e);
|
|
2540
|
+
return a.extend(n, Y.prototype, e, { allOwnKeys: !0 }), a.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2541
|
+
return tn(ne(t, s));
|
|
2542
|
+
}, n;
|
|
2543
|
+
}
|
|
2544
|
+
const _ = tn(ge);
|
|
2545
|
+
_.Axios = Y;
|
|
2546
|
+
_.CanceledError = be;
|
|
2547
|
+
_.CancelToken = Ss;
|
|
2548
|
+
_.isCancel = Vt;
|
|
2549
|
+
_.VERSION = Qe;
|
|
2550
|
+
_.toFormData = Ne;
|
|
2551
|
+
_.AxiosError = p;
|
|
2552
|
+
_.Cancel = _.CanceledError;
|
|
2553
|
+
_.all = function(e) {
|
|
2554
|
+
return Promise.all(e);
|
|
2555
|
+
};
|
|
2556
|
+
_.spread = Os;
|
|
2557
|
+
_.isAxiosError = As;
|
|
2558
|
+
_.mergeConfig = ne;
|
|
2559
|
+
_.AxiosHeaders = U;
|
|
2560
|
+
_.formToJSON = (t) => vt(a.isHTMLForm(t) ? new FormData(t) : t);
|
|
2561
|
+
_.getAdapter = Yt.getAdapter;
|
|
2562
|
+
_.HttpStatusCode = xe;
|
|
2563
|
+
_.default = _;
|
|
2564
|
+
const {
|
|
2565
|
+
Axios: Ds,
|
|
2566
|
+
AxiosError: Ls,
|
|
2567
|
+
CanceledError: Us,
|
|
2568
|
+
isCancel: Fs,
|
|
2569
|
+
CancelToken: Bs,
|
|
2570
|
+
VERSION: js,
|
|
2571
|
+
all: Is,
|
|
2572
|
+
Cancel: ks,
|
|
2573
|
+
isAxiosError: Ms,
|
|
2574
|
+
spread: Hs,
|
|
2575
|
+
toFormData: qs,
|
|
2576
|
+
AxiosHeaders: $s,
|
|
2577
|
+
HttpStatusCode: zs,
|
|
2578
|
+
formToJSON: vs,
|
|
2579
|
+
getAdapter: Ws,
|
|
2580
|
+
mergeConfig: Vs,
|
|
2581
|
+
create: Js
|
|
2582
|
+
} = _;
|
|
2583
|
+
function $e(t, e) {
|
|
2584
|
+
if (!t || t.showTips === !1) return;
|
|
2585
|
+
const n = t.tipsMode;
|
|
2586
|
+
if (!n || n === "none") return;
|
|
2587
|
+
const r = t.tipsType || "info", s = t.props || {};
|
|
2588
|
+
if (n === "message") {
|
|
2589
|
+
un({ message: e, type: r, ...s });
|
|
2590
|
+
return;
|
|
2591
|
+
}
|
|
2592
|
+
if (n === "notify") {
|
|
2593
|
+
fn({ message: e, type: r, ...s });
|
|
2594
|
+
return;
|
|
2595
|
+
}
|
|
2596
|
+
if (n === "messagebox") {
|
|
2597
|
+
const o = t.title || "";
|
|
2598
|
+
dn.alert(e, o, { type: r, ...s }).catch(() => {
|
|
2599
|
+
});
|
|
2600
|
+
return;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
class Ye {
|
|
2604
|
+
constructor(e) {
|
|
2605
|
+
Q(this, "axiosInstance");
|
|
2606
|
+
Q(this, "listeners", /* @__PURE__ */ new Set());
|
|
2607
|
+
/** 组件/实例级配置覆盖(request.create 使用) */
|
|
2608
|
+
Q(this, "instanceConfig", {});
|
|
2609
|
+
Q(this, "loadingInstance", null);
|
|
2610
|
+
Q(this, "loadingCount", 0);
|
|
2611
|
+
/** 进行中的请求(in-flight dedup):key = method:url:序列化params,并发相同请求合并为一次网络调用 */
|
|
2612
|
+
Q(this, "inFlightRequests", /* @__PURE__ */ new Map());
|
|
2613
|
+
this.axiosInstance = _.create(e || {});
|
|
2614
|
+
}
|
|
2615
|
+
/**
|
|
2616
|
+
* 创建绑定组件级配置的实例(PRD 5.1)
|
|
2617
|
+
* 子实例复用父级监听器与去重表:同族实例(全局单例 + 各组件 create 出来的子实例)
|
|
2618
|
+
* 之间并发相同请求同样合并,保证表列内多行组件发起的相同请求只打一次网络。
|
|
2619
|
+
*/
|
|
2620
|
+
create(e) {
|
|
2621
|
+
const n = new Ye();
|
|
2622
|
+
return n.instanceConfig = e || {}, n.listeners = this.listeners, n.inFlightRequests = this.inFlightRequests, n;
|
|
2623
|
+
}
|
|
2624
|
+
on(e) {
|
|
2625
|
+
return this.listeners.add(e), () => this.listeners.delete(e);
|
|
2626
|
+
}
|
|
2627
|
+
off(e) {
|
|
2628
|
+
this.listeners.delete(e);
|
|
2629
|
+
}
|
|
2630
|
+
emit(e) {
|
|
2631
|
+
this.listeners.forEach((n) => {
|
|
2632
|
+
try {
|
|
2633
|
+
n(e);
|
|
2634
|
+
} catch (r) {
|
|
2635
|
+
console.error("[WorkDesktop] api event handler error:", r);
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* 取有效配置:全局配置 + 实例级覆盖
|
|
2641
|
+
*/
|
|
2642
|
+
resolveConfig() {
|
|
2643
|
+
const e = pn();
|
|
2644
|
+
return this.instanceConfig && Object.keys(this.instanceConfig).length ? hn(e, this.instanceConfig) : e;
|
|
2645
|
+
}
|
|
2646
|
+
openLoading(e) {
|
|
2647
|
+
var s;
|
|
2648
|
+
const n = this.resolveConfig();
|
|
2649
|
+
((e == null ? void 0 : e.showLoading) ?? n.request.loading.enable) && (this.loadingCount += 1, this.loadingCount === 1 && (this.loadingInstance = ln.service({
|
|
2650
|
+
...n.request.loading.props,
|
|
2651
|
+
...((s = e == null ? void 0 : e.axiosConfig) == null ? void 0 : s.loadingProps) || {}
|
|
2652
|
+
})));
|
|
2653
|
+
}
|
|
2654
|
+
closeLoading(e) {
|
|
2655
|
+
const n = this.resolveConfig();
|
|
2656
|
+
((e == null ? void 0 : e.showLoading) ?? n.request.loading.enable) && (this.loadingCount = Math.max(0, this.loadingCount - 1), this.loadingCount === 0 && this.loadingInstance && (this.loadingInstance.close(), this.loadingInstance = null));
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* 核心请求方法
|
|
2660
|
+
* 返回 Promise<ApiResult<T>>:业务失败也 resolve(success=false),仅网络异常 reject
|
|
2661
|
+
*/
|
|
2662
|
+
async request(e, n) {
|
|
2663
|
+
const r = this.resolveConfig(), s = (e.method || "get").toLowerCase(), o = this.buildUrl(e.url || "", r);
|
|
2664
|
+
if ((n == null ? void 0 : n.dedup) ?? r.request.dedup) {
|
|
2665
|
+
const c = this.buildDedupKey(s, o, e), l = this.inFlightRequests.get(c);
|
|
2666
|
+
if (l) return l;
|
|
2667
|
+
const d = this.executeRequest(e, n, o, s);
|
|
2668
|
+
return this.inFlightRequests.set(c, d), d.then(
|
|
2669
|
+
() => this.inFlightRequests.delete(c),
|
|
2670
|
+
() => this.inFlightRequests.delete(c)
|
|
2671
|
+
), d;
|
|
2672
|
+
}
|
|
2673
|
+
return this.executeRequest(e, n, o, s);
|
|
2674
|
+
}
|
|
2675
|
+
/** 去重 key:method + 解析后 url + 序列化请求体;请求体不可序列化时退化为固定后缀(该场景不合并) */
|
|
2676
|
+
buildDedupKey(e, n, r) {
|
|
2677
|
+
let s;
|
|
2678
|
+
try {
|
|
2679
|
+
s = JSON.stringify(r.data ?? r.params ?? null);
|
|
2680
|
+
} catch {
|
|
2681
|
+
s = "[unserializable]";
|
|
2682
|
+
}
|
|
2683
|
+
return `${e}:${n}:${s}`;
|
|
2684
|
+
}
|
|
2685
|
+
/** 真实请求执行体(含事件/loading/封解封),被 request() 去重包装后调用 */
|
|
2686
|
+
async executeRequest(e, n, r, s) {
|
|
2687
|
+
var d;
|
|
2688
|
+
const o = this.resolveConfig(), i = {
|
|
2689
|
+
type: "apiBefore",
|
|
2690
|
+
url: r,
|
|
2691
|
+
method: s,
|
|
2692
|
+
params: e.data ?? e.params
|
|
2693
|
+
};
|
|
2694
|
+
this.emit(i), this.openLoading(n);
|
|
2695
|
+
let c = {
|
|
2696
|
+
...o.request.axiosConfig,
|
|
2697
|
+
...e,
|
|
2698
|
+
url: r,
|
|
2699
|
+
method: s,
|
|
2700
|
+
signal: (n == null ? void 0 : n.signal) ?? e.signal
|
|
2701
|
+
};
|
|
2702
|
+
const l = o.request.transform.requestInterceptor;
|
|
2703
|
+
l && (c = await l(c) || c);
|
|
2704
|
+
try {
|
|
2705
|
+
let u = await this.axiosInstance.request(c);
|
|
2706
|
+
const h = o.request.transform.responseInterceptor;
|
|
2707
|
+
h && (u = await h(u) ?? u);
|
|
2708
|
+
const y = u.data, g = this.unpack(y, o, n, { url: r, method: s, params: i.params });
|
|
2709
|
+
return this.emit({
|
|
2710
|
+
type: g.success ? "apiSuccess" : "apiFail",
|
|
2711
|
+
url: r,
|
|
2712
|
+
method: s,
|
|
2713
|
+
params: i.params,
|
|
2714
|
+
data: g.data,
|
|
2715
|
+
code: g.code,
|
|
2716
|
+
message: g.message,
|
|
2717
|
+
raw: y
|
|
2718
|
+
}), this.emit({ type: "apiAfter", url: r, method: s, data: g.data, code: g.code, message: g.message }), g;
|
|
2719
|
+
} catch (u) {
|
|
2720
|
+
const h = (u == null ? void 0 : u.message) || "网络异常,请稍后重试", y = ((d = n == null ? void 0 : n.tipsConfig) == null ? void 0 : d.exception) ?? o.response.exception;
|
|
2721
|
+
if ($e(y, h), this.emit({ type: "apiException", url: r, method: s, params: i.params, error: u, message: h }), this.emit({ type: "apiAfter", url: r, method: s, error: u, message: h }), o.request.throwException)
|
|
2722
|
+
throw u;
|
|
2723
|
+
return Promise.reject(
|
|
2724
|
+
Object.assign(new Error(h), { success: !1, data: null, message: h, error: u })
|
|
2725
|
+
);
|
|
2726
|
+
} finally {
|
|
2727
|
+
this.closeLoading(n);
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
/**
|
|
2731
|
+
* 解封响应体:按 resConfig 取 code/message/data
|
|
2732
|
+
*/
|
|
2733
|
+
unpack(e, n, r, s) {
|
|
2734
|
+
var g, R;
|
|
2735
|
+
if (e == null || typeof e != "object" || Array.isArray(e))
|
|
2736
|
+
return { success: !0, data: e, raw: e };
|
|
2737
|
+
const { codeName: o, messageName: i, dataName: c } = n.response.props, l = e[o], d = e[i] ?? "", u = e[c];
|
|
2738
|
+
if (this.checkSuccess(l, n)) {
|
|
2739
|
+
const S = ((g = r == null ? void 0 : r.tipsConfig) == null ? void 0 : g.success) ?? n.response.success;
|
|
2740
|
+
return S != null && S.showTips && $e(S, d || "操作成功"), { success: !0, data: u, code: l, message: d, raw: e };
|
|
2741
|
+
}
|
|
2742
|
+
const y = ((R = r == null ? void 0 : r.tipsConfig) == null ? void 0 : R.fail) ?? n.response.fail;
|
|
2743
|
+
return (y == null ? void 0 : y.showTips) !== !1 && $e(y, d || "操作失败"), { success: !1, data: null, code: l, message: d, raw: e };
|
|
2744
|
+
}
|
|
2745
|
+
checkSuccess(e, n) {
|
|
2746
|
+
if (e == null) return !0;
|
|
2747
|
+
const r = Number(e);
|
|
2748
|
+
return Number.isNaN(r) ? !0 : r >= n.response.successCode;
|
|
2749
|
+
}
|
|
2750
|
+
buildUrl(e, n) {
|
|
2751
|
+
if (!e || /^https?:\/\//.test(e)) return e;
|
|
2752
|
+
const r = n.request.urlPrefix || "";
|
|
2753
|
+
return r ? `${r.replace(/\/$/, "")}/${e.replace(/^\//, "")}` : e;
|
|
2754
|
+
}
|
|
2755
|
+
// 便捷方法。返回值已解封业务 data(成功场景)
|
|
2756
|
+
get(e, n, r) {
|
|
2757
|
+
return this.request({ url: e, method: "get", params: n }, r);
|
|
2758
|
+
}
|
|
2759
|
+
post(e, n, r) {
|
|
2760
|
+
return this.request({ url: e, method: "post", data: n }, r);
|
|
2761
|
+
}
|
|
2762
|
+
put(e, n, r) {
|
|
2763
|
+
return this.request({ url: e, method: "put", data: n }, r);
|
|
2764
|
+
}
|
|
2765
|
+
delete(e, n, r) {
|
|
2766
|
+
return this.request({ url: e, method: "delete", params: n }, r);
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
const Ks = new Ye();
|
|
2770
|
+
export {
|
|
2771
|
+
Ye as R,
|
|
2772
|
+
Ks as r
|
|
2773
|
+
};
|
|
2774
|
+
//# sourceMappingURL=http-CW9konD4.mjs.map
|