epic-designer-gold 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ETable-adkZzXhI.cjs +1 -0
- package/dist/ETable-ogvH56w7.js +50 -0
- package/dist/ETd-BCM7zA8V.cjs +1 -0
- package/dist/{row-DAy14ve9.js → ETd-CRUvOVnZ.js} +13 -13
- package/dist/ETr-BqGghav2.cjs +1 -0
- package/dist/ETr-nIjGkdzO.js +43 -0
- package/dist/attributeView-BCjRZKcy.cjs +1 -0
- package/dist/{attributeView-Cu_tjo9A.js → attributeView-CcnkUeu9.js} +7 -7
- package/dist/axios-CXDYiOMX.js +1704 -0
- package/dist/axios-tuVKNgv9.cjs +6 -0
- package/dist/card-C9ua0f7r.cjs +1 -0
- package/dist/card-CI6L3YKU.js +33 -0
- package/dist/cell-AML-qIH9.cjs +1 -0
- package/dist/cell-B_q5hgzb.js +35 -0
- package/dist/col-C4lVVBzC.cjs +1 -0
- package/dist/col-DcVPBKEc.js +31 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -2
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +3 -2
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +10 -0
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +18 -0
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +10 -0
- package/dist/eventView-5fa6mfSD.cjs +1 -0
- package/dist/eventView-C2wKhfU_.js +63 -0
- package/dist/{form-CthzLIgs.cjs → form-Bofkrmkd.cjs} +1 -1
- package/dist/{form-6cUK-Ari.js → form-VbfBmb63.js} +5 -5
- package/dist/iframe-CRF3GSRv.cjs +1 -0
- package/dist/iframe-Fgbk3vqJ.js +48 -0
- package/dist/index-0WmqAKuy.js +4 -0
- package/dist/index-5yjG3fiB.cjs +1 -0
- package/dist/{index-DxNdcsD-.js → index-B0OgKtuT.js} +105 -100
- package/dist/{index-Dg7MK40D.js → index-B1s67XDZ.js} +17 -17
- package/dist/index-BEUYVwRA.cjs +1 -0
- package/dist/{index-DeFAvWuV.cjs → index-BHEw6RsQ.cjs} +1 -1
- package/dist/index-BHZbtFEF.cjs +1 -0
- package/dist/index-BU05X44j.cjs +1 -0
- package/dist/index-BY37Ndo7.cjs +10 -0
- package/dist/index-BoL2PSBk.cjs +1 -0
- package/dist/index-BvfkMKTv.cjs +1 -0
- package/dist/{index-BLJT8e0Q.js → index-BvvGezNc.js} +4 -4
- package/dist/{index-CHCOxt3B.js → index-BydHABbW.js} +3 -3
- package/dist/index-C2s4IuAR.cjs +1 -0
- package/dist/index-CCCx1tbF.cjs +1 -0
- package/dist/index-CD00bJyK.js +839 -0
- package/dist/{index-Bybwt7-u.js → index-CG0UEELU.js} +1 -1
- package/dist/index-CdnV7DS4.js +265 -0
- package/dist/{index-D0kQz_zt.js → index-Cln9MN7u.js} +1 -1
- package/dist/index-CpBfljmg.cjs +1 -0
- package/dist/{index-CMbBKMQU.js → index-CpTA2IRB.js} +2 -2
- package/dist/index-CpevxZqj.cjs +1 -0
- package/dist/index-CraRg8wh.js +107 -0
- package/dist/{index-CEDIwmNK.js → index-Cx7gKpkD.js} +2 -2
- package/dist/index-DYQi05p8.cjs +1 -0
- package/dist/{index-CjIIhZdV.js → index-E8jDNKrc.js} +3 -3
- package/dist/index-FgdbKgb5.cjs +1 -0
- package/dist/index-GIYb626z.js +1422 -0
- package/dist/{index-CgwN4ucQ.js → index-IGxCNti8.js} +48 -28
- package/dist/{index-CqeRfqUw.cjs → index-IPz4bbk7.cjs} +1 -1
- package/dist/index-R2r9Rw5O.cjs +1 -0
- package/dist/index-WkZdU_zw.js +47 -0
- package/dist/index-v2u1WTMm.cjs +1 -0
- package/dist/index-vCJWgHu-.js +142 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/locale/lang/en-US.d.ts +2 -0
- package/dist/locale/lang/zh-cn.d.ts +2 -0
- package/dist/modal-DCBqsiP2.cjs +1 -0
- package/dist/modal-DZRBS-Mt.js +58 -0
- package/dist/outline-BE98qFHQ.cjs +1 -0
- package/dist/{outline-DxCKINRN.js → outline-Ch5PHy3c.js} +2 -2
- package/dist/pluginManager-BCnrHPYv.js +660 -0
- package/dist/pluginManager-DWHAX8kP.cjs +1 -0
- package/dist/sign-BS-9u6is.cjs +1 -0
- package/dist/{sign-B-FCN_7O.js → sign-l63EYvVo.js} +61 -56
- package/dist/style.css +1 -1
- package/dist/styleView-Dhj1GDqf.js +140 -0
- package/dist/styleView-DocskQJQ.cjs +1 -0
- package/dist/tabPanel-CXZYMEwi.cjs +1 -0
- package/dist/{col-D4hvKfJ6.js → tabPanel-DAw7ENrC.js} +7 -7
- package/dist/table-75K2lqjD.js +65 -0
- package/dist/table-CN2LNWqY.cjs +1 -0
- package/dist/tabs-CYH9lAUk.cjs +1 -0
- package/dist/tabs-DCyifACM.js +41 -0
- package/dist/text-B92ioaoV.cjs +1 -0
- package/dist/text-C-b94tBH.js +47 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js +243 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs +1 -0
- package/dist/ui/elementPlus/ETable/ETable.d.ts +20 -0
- package/dist/ui/elementPlus/ETd/ETd.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/ETr.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/index.d.ts +3 -0
- package/dist/ui/elementPlus/iframe/iframe.d.ts +29 -0
- package/dist/ui/elementPlus/iframe/index.d.ts +3 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +904 -403
- package/dist/ui/elementPlus/rate/index.d.ts +3 -0
- package/dist/ui/elementPlus/tab-panel/index.d.ts +3 -0
- package/dist/ui/elementPlus/table/table.d.ts +9 -0
- package/dist/ui/elementPlus/table-cell/index.d.ts +3 -0
- package/dist/ui/elementPlus/tabs/index.d.ts +2 -0
- package/dist/ui/elementPlus/tabs/tabs.d.ts +29 -0
- package/dist/ui/elementPlus/text/text.d.ts +9 -0
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/uploadFile-pgvj4Lm9.cjs +1 -0
- package/dist/uploadFile-qCbXuHfd.js +81 -0
- package/dist/uploadImage-B3sOX-5F.cjs +1 -0
- package/dist/{uploadImage-CF7fobUP.cjs → uploadImage-CNMsK4Lh.cjs} +1 -1
- package/dist/uploadImage-DQmVV0jl.js +121 -0
- package/dist/{uploadImage-COCC3pxH.js → uploadImage-VFICaVgX.js} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-B2dWB_U2.cjs +0 -1
- package/dist/axios-B8aFvCWj.cjs +0 -6
- package/dist/axios-Bb3STC1u.js +0 -2362
- package/dist/card-BowzD9vN.cjs +0 -1
- package/dist/card-CNGNDzPp.js +0 -31
- package/dist/col-B1GUMkMK.cjs +0 -1
- package/dist/col-BNNn9Yx8.cjs +0 -1
- package/dist/col-u5YiB-UK.js +0 -41
- package/dist/index-21c4Pe3i.cjs +0 -1
- package/dist/index-B553TaXm.js +0 -44
- package/dist/index-BULuVnVl.js +0 -1359
- package/dist/index-BV9SE7wG.cjs +0 -1
- package/dist/index-BhcwWM1G.cjs +0 -1
- package/dist/index-Bn8pwpgq.cjs +0 -1
- package/dist/index-Bxi3JLms.cjs +0 -1
- package/dist/index-CEvDmc0a.js +0 -104
- package/dist/index-CI3dhGXT.cjs +0 -1
- package/dist/index-CYAKMqdR.cjs +0 -1
- package/dist/index-Cq6eLpKZ.cjs +0 -1
- package/dist/index-CrV5FaWU.cjs +0 -10
- package/dist/index-DR80h8IU.js +0 -4
- package/dist/index-DUMEtCCN.cjs +0 -1
- package/dist/index-DddTXMY9.cjs +0 -1
- package/dist/index-DeZ09CHf.cjs +0 -1
- package/dist/index-DzxQG0o7.cjs +0 -1
- package/dist/index-VblxMq6V.js +0 -742
- package/dist/modal-BLOgN3us.cjs +0 -1
- package/dist/modal-UFu4bD6x.js +0 -57
- package/dist/outline-CK-jNomF.cjs +0 -1
- package/dist/row-BWnbt6dh.cjs +0 -1
- package/dist/sign-Dho4kHTC.cjs +0 -1
- package/dist/styleView-CRUqDcCl.cjs +0 -1
- package/dist/styleView-ClMjCfMk.js +0 -106
- package/dist/table-CnBJm7Bx.js +0 -43
- package/dist/table-DM2-xHlv.cjs +0 -1
- package/dist/text-C-52xLjs.js +0 -33
- package/dist/text-X9fl5oe8.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js +0 -242
- package/dist/tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs +0 -1
- package/dist/uploadFile-Bc5Rxk0b.js +0 -77
- package/dist/uploadFile-oB2-NP-v.cjs +0 -1
- package/dist/uploadImage-4tgp3t7X.cjs +0 -1
- package/dist/uploadImage-CGXm3zNQ.js +0 -96
- /package/dist/ui/elementPlus/{table-col → ETable}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-row → ETd}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-col/col.d.ts → tab-panel/tabPanel.d.ts} +0 -0
- /package/dist/ui/elementPlus/{table-row/row.d.ts → table-cell/cell.d.ts} +0 -0
package/dist/axios-Bb3STC1u.js
DELETED
|
@@ -1,2362 +0,0 @@
|
|
|
1
|
-
var ct = Object.defineProperty;
|
|
2
|
-
var lt = (t, e, n) => e in t ? ct(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var T = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { defineAsyncComponent as ut, ref as Se, shallowRef as Ee } from "vue";
|
|
5
|
-
import { u as ft } from "./index-Dg7MK40D.js";
|
|
6
|
-
const ee = (t, e) => ut({
|
|
7
|
-
loader: t,
|
|
8
|
-
loadingComponent: e,
|
|
9
|
-
delay: 80
|
|
10
|
-
});
|
|
11
|
-
function pe(t = 10) {
|
|
12
|
-
const e = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
13
|
-
let n = "";
|
|
14
|
-
for (let r = 0; r < t; r++) {
|
|
15
|
-
const s = Math.floor(Math.random() * e.length);
|
|
16
|
-
n += e[s];
|
|
17
|
-
}
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
function Qn(t) {
|
|
21
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
22
|
-
}
|
|
23
|
-
const { t: Re } = ft();
|
|
24
|
-
function oe(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
25
|
-
if (typeof t != "object" || t === null)
|
|
26
|
-
return t;
|
|
27
|
-
if (e.has(t))
|
|
28
|
-
return e.get(t);
|
|
29
|
-
if (Array.isArray(t)) {
|
|
30
|
-
const r = t.map((s) => oe(s, e));
|
|
31
|
-
return e.set(t, r), r;
|
|
32
|
-
}
|
|
33
|
-
const n = {};
|
|
34
|
-
return e.set(t, n), Object.keys(t).forEach((r) => {
|
|
35
|
-
n[r] = oe(t[r], e);
|
|
36
|
-
}), n;
|
|
37
|
-
}
|
|
38
|
-
function Zn(t) {
|
|
39
|
-
const [e] = pt([oe(t)], (n) => {
|
|
40
|
-
var s, o;
|
|
41
|
-
const r = {
|
|
42
|
-
...n,
|
|
43
|
-
id: `${n.type}_${pe(8)}`
|
|
44
|
-
};
|
|
45
|
-
return (r.field || r.input) && !((o = (s = wt.getComponentConfingByType(r.type)) == null ? void 0 : s.editConstraints) != null && o.fixedField) && (r.field = r.id), r;
|
|
46
|
-
});
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
function Ue(t, e, n = !0) {
|
|
50
|
-
for (const [r, s] of Object.entries(e)) {
|
|
51
|
-
let o = t == null ? void 0 : t[r];
|
|
52
|
-
o && s && typeof o == "object" && typeof s == "object" ? (Array.isArray(o) && !Array.isArray(s) ? o = t[r] = {} : !Array.isArray(o) && Array.isArray(s) && (o = t[r] = []), Ue(o, s, n)) : t[r] = s;
|
|
53
|
-
}
|
|
54
|
-
n && Object.keys(t).reverse().forEach((r) => {
|
|
55
|
-
e.hasOwnProperty(r) || (Array.isArray(t) ? t.splice(Number(r), 1) : delete t[r]);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function Yn(t, e, n = [], r = /* @__PURE__ */ new WeakMap()) {
|
|
59
|
-
const s = (o) => {
|
|
60
|
-
if (Array.isArray(o))
|
|
61
|
-
return o.map(s);
|
|
62
|
-
if (typeof o == "object" && o !== null) {
|
|
63
|
-
if (r.has(o))
|
|
64
|
-
return "[Circular]";
|
|
65
|
-
r.set(o, !0);
|
|
66
|
-
const i = Object.keys(o).sort(), c = {};
|
|
67
|
-
return i.forEach((f) => {
|
|
68
|
-
n.includes(f) || (c[f] = s(o[f]));
|
|
69
|
-
}), r.delete(o), c;
|
|
70
|
-
} else
|
|
71
|
-
return o;
|
|
72
|
-
};
|
|
73
|
-
return JSON.stringify(s(t)) === JSON.stringify(s(e));
|
|
74
|
-
}
|
|
75
|
-
function er(t, e) {
|
|
76
|
-
const n = [];
|
|
77
|
-
let r = !1;
|
|
78
|
-
function s(o) {
|
|
79
|
-
if (n.push(o), o.id === e && (r = !0), !r && o.children != null && o.children.length > 0)
|
|
80
|
-
for (let i = 0; i < o.children.length && (s(o.children[i]), !r); i++)
|
|
81
|
-
;
|
|
82
|
-
if (!r && o.slots)
|
|
83
|
-
for (let i in o.slots)
|
|
84
|
-
for (let c = 0; c < o.slots[i].length && (s(o.slots[i][c]), !r); c++)
|
|
85
|
-
;
|
|
86
|
-
r || n.pop();
|
|
87
|
-
}
|
|
88
|
-
return t.forEach(s), r || console.error(`没有查询到id为${e}的节点`), n;
|
|
89
|
-
}
|
|
90
|
-
function tr(t, e, n) {
|
|
91
|
-
const r = e.split(".");
|
|
92
|
-
let s = t;
|
|
93
|
-
for (let o = 0; o < r.length; o++) {
|
|
94
|
-
if (s == null)
|
|
95
|
-
return n;
|
|
96
|
-
s = s[r[o]];
|
|
97
|
-
}
|
|
98
|
-
return s === void 0 ? n : s;
|
|
99
|
-
}
|
|
100
|
-
function nr(t, e, n) {
|
|
101
|
-
const r = e.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
102
|
-
let s = t;
|
|
103
|
-
for (let o = 0; o < r.length - 1; o++) {
|
|
104
|
-
const i = r[o];
|
|
105
|
-
s[i] == null && (s[i] = isNaN(Number(r[o + 1])) ? {} : []), s = s[i];
|
|
106
|
-
}
|
|
107
|
-
return s[r[r.length - 1]] = n, t;
|
|
108
|
-
}
|
|
109
|
-
function rr(t, e = "default") {
|
|
110
|
-
return dt(t, e).map((r) => r.field);
|
|
111
|
-
}
|
|
112
|
-
function dt(t, e = "default") {
|
|
113
|
-
const n = V(
|
|
114
|
-
t,
|
|
115
|
-
(s) => {
|
|
116
|
-
var o;
|
|
117
|
-
return s.type === "form" && (((o = s.componentProps) == null ? void 0 : o.name) ?? s.name === e);
|
|
118
|
-
},
|
|
119
|
-
!0
|
|
120
|
-
);
|
|
121
|
-
return V(
|
|
122
|
-
(n == null ? void 0 : n.children) ?? [],
|
|
123
|
-
(s) => !!s.input,
|
|
124
|
-
!1,
|
|
125
|
-
(s) => s.type !== "subform"
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
function V(t, e, n = !1, r) {
|
|
129
|
-
const s = [], o = [...t];
|
|
130
|
-
for (; o.length; ) {
|
|
131
|
-
const i = o.pop();
|
|
132
|
-
if (i != null && i.children && (!r || r(i)) && o.push(...i.children), i != null && i.slots && (!r || r(i)))
|
|
133
|
-
for (let c in i.slots)
|
|
134
|
-
o.push(...i.slots[c]);
|
|
135
|
-
if (e(i) && (s.push(i), n))
|
|
136
|
-
return i;
|
|
137
|
-
}
|
|
138
|
-
return n ? !1 : s;
|
|
139
|
-
}
|
|
140
|
-
function pt(t, e, n) {
|
|
141
|
-
const r = [...t];
|
|
142
|
-
for (; r.length; ) {
|
|
143
|
-
const s = r.pop();
|
|
144
|
-
if (s != null && s.children && (!n || n(s)) && r.push(...s.children), s != null && s.slots && (!n || n(s)))
|
|
145
|
-
for (let o in s.slots)
|
|
146
|
-
r.push(...s.slots[o]);
|
|
147
|
-
Ue(s, e(s));
|
|
148
|
-
}
|
|
149
|
-
return t;
|
|
150
|
-
}
|
|
151
|
-
function sr(t, e) {
|
|
152
|
-
const n = V(
|
|
153
|
-
t,
|
|
154
|
-
(r) => r.id === e,
|
|
155
|
-
!0
|
|
156
|
-
);
|
|
157
|
-
if (!n)
|
|
158
|
-
throw new Error(`没有查询到id为${e}的节点`);
|
|
159
|
-
return n;
|
|
160
|
-
}
|
|
161
|
-
function or(t, e) {
|
|
162
|
-
const n = [{ type: "", children: t }];
|
|
163
|
-
let r = 0, s = null;
|
|
164
|
-
if (V(
|
|
165
|
-
n,
|
|
166
|
-
(o) => {
|
|
167
|
-
if (s = o.children ?? null, !s) {
|
|
168
|
-
if (o != null && o.slots)
|
|
169
|
-
for (let i in o.slots) {
|
|
170
|
-
s = o.slots[i];
|
|
171
|
-
for (let c = 0; c < s.length; c++)
|
|
172
|
-
if (s[c].id === e)
|
|
173
|
-
return r = c, !0;
|
|
174
|
-
}
|
|
175
|
-
return !1;
|
|
176
|
-
}
|
|
177
|
-
for (let i = 0; i < s.length; i++)
|
|
178
|
-
if (s[i].id === e)
|
|
179
|
-
return r = i, !0;
|
|
180
|
-
return !1;
|
|
181
|
-
},
|
|
182
|
-
!0
|
|
183
|
-
), !s)
|
|
184
|
-
throw new Error(`没有查询到id为${e}的节点`);
|
|
185
|
-
return {
|
|
186
|
-
list: s,
|
|
187
|
-
schema: s[r],
|
|
188
|
-
index: r
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function ir(t) {
|
|
192
|
-
const e = {
|
|
193
|
-
schemas: [
|
|
194
|
-
{
|
|
195
|
-
type: "page",
|
|
196
|
-
id: "root",
|
|
197
|
-
label: Re("page"),
|
|
198
|
-
children: [
|
|
199
|
-
{
|
|
200
|
-
label: Re("form"),
|
|
201
|
-
type: "form",
|
|
202
|
-
icon: "epic-icon-daibanshixiang",
|
|
203
|
-
labelWidth: t.config.labelWidth || 100,
|
|
204
|
-
name: "default",
|
|
205
|
-
componentProps: {
|
|
206
|
-
layout: t.config.layout || "horizontal",
|
|
207
|
-
labelWidth: t.config.labelWidth || 100,
|
|
208
|
-
labelLayout: t.config.labelLayout === "flex" ? "fixed" : "flex",
|
|
209
|
-
labelCol: t.config.labelCol || { span: 5 },
|
|
210
|
-
wrapperCol: t.config.wrapperCol || { span: 19 },
|
|
211
|
-
hideRequiredMark: t.config.hideRequiredMark || !1,
|
|
212
|
-
colon: t.config.colon || !0,
|
|
213
|
-
labelAlign: t.config.labelAlign || "right",
|
|
214
|
-
size: t.config.size || "middle"
|
|
215
|
-
},
|
|
216
|
-
children: [],
|
|
217
|
-
id: "form_" + pe()
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
componentProps: {
|
|
221
|
-
style: {
|
|
222
|
-
padding: "16px"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
script: t.script || ""
|
|
228
|
-
};
|
|
229
|
-
return e.schemas[0].children[0].children = q(t.list), e;
|
|
230
|
-
}
|
|
231
|
-
function q(t, e) {
|
|
232
|
-
return t.map((n) => {
|
|
233
|
-
var f, l, u;
|
|
234
|
-
let r = n.type ?? "";
|
|
235
|
-
const s = n.options ?? {}, o = (d, w) => {
|
|
236
|
-
r === d && (r = w, s.defaultValue && (s.defaultValue = JSON.parse(s.defaultValue)));
|
|
237
|
-
};
|
|
238
|
-
if (o("uploadImg", "upload-image"), o("uploadFile", "upload-file"), r === "date" && s.range && (s.type = "daterange", delete s.range), (r === "date" || r === "time") && (s.valueFormat = s.format), r === "textarea") {
|
|
239
|
-
const { minRows: d, maxRows: w } = s;
|
|
240
|
-
s.autoSize = { minRows: d, maxRows: w }, delete s.minRows, delete s.maxRows;
|
|
241
|
-
}
|
|
242
|
-
r === "number" && !s.precision && delete s.precision, s.width && (s.style = { width: s.width }, delete s.width), r === "grid" && (r = "row"), e && e.type === "grid" && (r = "col", s.span = n.span, n.key = pe());
|
|
243
|
-
const i = {
|
|
244
|
-
label: n.label,
|
|
245
|
-
type: r,
|
|
246
|
-
icon: n.icon || "",
|
|
247
|
-
field: n.model,
|
|
248
|
-
componentProps: s,
|
|
249
|
-
id: n.key
|
|
250
|
-
};
|
|
251
|
-
return (s.noFormItem || !s.showLabel) && (i.noFormItem = !0, delete s.noFormItem, delete s.showLabel), s.clearable && (s.allowClear = !0, delete s.clearable), [
|
|
252
|
-
"input",
|
|
253
|
-
"textarea",
|
|
254
|
-
"number",
|
|
255
|
-
"password",
|
|
256
|
-
"select",
|
|
257
|
-
"cascader",
|
|
258
|
-
"checkbox",
|
|
259
|
-
"radio",
|
|
260
|
-
"date",
|
|
261
|
-
"time",
|
|
262
|
-
"slider",
|
|
263
|
-
"switch",
|
|
264
|
-
"color-picker",
|
|
265
|
-
"upload-file",
|
|
266
|
-
"upload-image"
|
|
267
|
-
].includes(r) && (i.input = !0, ((l = (f = n.rules) == null ? void 0 : f[0]) == null ? void 0 : l.required) === !1 && n.rules.shift(), ((u = n.rules) == null ? void 0 : u.length) > 0 && (i.rules = n.rules)), n.list && (i.children = q(n.list, n)), n.columns && (i.children = q(n.columns, n)), n.trs && (i.children = q(n.trs, n)), n.tds && (i.children = q(n.tds, n)), i;
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
function ht(t) {
|
|
271
|
-
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
272
|
-
var r = t.get(e);
|
|
273
|
-
r ? r.push(n) : t.set(e, [n]);
|
|
274
|
-
}, off: function(e, n) {
|
|
275
|
-
var r = t.get(e);
|
|
276
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : t.set(e, []));
|
|
277
|
-
}, emit: function(e, n) {
|
|
278
|
-
var r = t.get(e);
|
|
279
|
-
r && r.slice().map(function(s) {
|
|
280
|
-
s(n);
|
|
281
|
-
}), (r = t.get("*")) && r.slice().map(function(s) {
|
|
282
|
-
s(e, n);
|
|
283
|
-
});
|
|
284
|
-
} };
|
|
285
|
-
}
|
|
286
|
-
const mt = ht();
|
|
287
|
-
class yt {
|
|
288
|
-
constructor() {
|
|
289
|
-
// 已初始化基础UI
|
|
290
|
-
T(this, "initialized", Se(!1));
|
|
291
|
-
// 数据源存储
|
|
292
|
-
T(this, "sourceData", []);
|
|
293
|
-
// 组件对象字典,key 为组件type,value 为组件
|
|
294
|
-
T(this, "components", {});
|
|
295
|
-
// 组件配置记录字典,key 为组件type,value 为组件配置
|
|
296
|
-
T(this, "componentConfigs", {});
|
|
297
|
-
// 基础组件type,切换ui时,可先移除该数组记录的type
|
|
298
|
-
T(this, "baseComponentTypes", []);
|
|
299
|
-
// 组件模式分组,使用 Vue Composition API 的 ref 进行响应式处理
|
|
300
|
-
T(this, "componentSchemaGroups", Se([]));
|
|
301
|
-
// 隐藏的组件列表,存储需要隐藏的组件名称
|
|
302
|
-
T(this, "hiddenComponents", []);
|
|
303
|
-
// 表单模式默认schema数据
|
|
304
|
-
T(this, "formSchemas", [
|
|
305
|
-
{
|
|
306
|
-
label: "表单",
|
|
307
|
-
type: "form",
|
|
308
|
-
componentProps: {
|
|
309
|
-
layout: "horizontal",
|
|
310
|
-
name: "default",
|
|
311
|
-
labelWidth: 100,
|
|
312
|
-
labelLayout: "fixed",
|
|
313
|
-
labelCol: {
|
|
314
|
-
span: 5
|
|
315
|
-
},
|
|
316
|
-
wrapperCol: {
|
|
317
|
-
span: 19
|
|
318
|
-
},
|
|
319
|
-
colon: !0,
|
|
320
|
-
labelAlign: "right",
|
|
321
|
-
labelPlacement: "left"
|
|
322
|
-
},
|
|
323
|
-
children: [],
|
|
324
|
-
id: "root"
|
|
325
|
-
}
|
|
326
|
-
]);
|
|
327
|
-
// 组件分组名称映射,key 为组件原名称,value 为组件分组映射名称
|
|
328
|
-
T(this, "componentGroupNameMap", {});
|
|
329
|
-
// 组件分组排序列表(设置之后,按该数组下标排序)
|
|
330
|
-
T(this, "sortedGroups", ["表单", "布局"]);
|
|
331
|
-
// 视图容器模型,包含活动栏和右侧边栏的配置
|
|
332
|
-
T(this, "viewsContainers", {
|
|
333
|
-
activitybars: Ee([]),
|
|
334
|
-
// 活动栏配置列表
|
|
335
|
-
rightSidebars: Ee([])
|
|
336
|
-
// 右侧边栏配置列表
|
|
337
|
-
});
|
|
338
|
-
// 公共方法模型,存储插件的公共方法
|
|
339
|
-
T(this, "publicMethods", {
|
|
340
|
-
// 示例数据
|
|
341
|
-
// publicTest: {
|
|
342
|
-
// describe: "测试函数",
|
|
343
|
-
// name: "test",
|
|
344
|
-
// handler: (e) => {
|
|
345
|
-
// console.log(e)
|
|
346
|
-
// // alert("测试函数弹出");
|
|
347
|
-
// },
|
|
348
|
-
// },
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* 添加组件到插件管理器中
|
|
353
|
-
* @param componentType 组件类型
|
|
354
|
-
* @param component 组件
|
|
355
|
-
*/
|
|
356
|
-
component(e, n) {
|
|
357
|
-
typeof n == "function" && (n = ee(n)), this.components[e] = n;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* 注册组件到插件管理器中
|
|
361
|
-
* @param componentConfig 组件配置
|
|
362
|
-
*/
|
|
363
|
-
registerComponent(e) {
|
|
364
|
-
this.component(e.defaultSchema.type, e.component), e.defaultSchema.input && (e.config.action || (e.config.action = []), e.config.action.unshift(
|
|
365
|
-
{
|
|
366
|
-
type: "setValue",
|
|
367
|
-
describe: "设置值",
|
|
368
|
-
// 参数配置
|
|
369
|
-
argsConfigs: [
|
|
370
|
-
{
|
|
371
|
-
...e.defaultSchema,
|
|
372
|
-
label: "设置数据",
|
|
373
|
-
field: "0"
|
|
374
|
-
}
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
type: "getValue",
|
|
379
|
-
describe: "获取值"
|
|
380
|
-
}
|
|
381
|
-
)), this.componentConfigs[e.defaultSchema.type] = e, this.computedComponentSchemaGroups();
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* 从已记录的基础组件类型中移除特定类型的组件
|
|
385
|
-
* @param componentType 要移除的组件类型
|
|
386
|
-
*/
|
|
387
|
-
removeComponent(e) {
|
|
388
|
-
delete this.componentConfigs[e], delete this.components[e];
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* 设置数据源
|
|
392
|
-
* @param
|
|
393
|
-
*/
|
|
394
|
-
setSourceData(e) {
|
|
395
|
-
this.sourceData = e, mt.emit("updateSource", /* @__PURE__ */ new Date());
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* 获取数据源
|
|
399
|
-
* @returns
|
|
400
|
-
*/
|
|
401
|
-
getSourceData() {
|
|
402
|
-
return Object.prototype.toString.call(this.sourceData) === "[object Array]" ? this.sourceData : [];
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* 记录基础组件类型
|
|
406
|
-
* @returns baseComponentTypes string[]
|
|
407
|
-
*/
|
|
408
|
-
setBaseComponentTypes(e) {
|
|
409
|
-
this.baseComponentTypes = e;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* 添加基础组件类型
|
|
413
|
-
* @returns baseComponentType string
|
|
414
|
-
*/
|
|
415
|
-
addBaseComponentTypes(e) {
|
|
416
|
-
this.baseComponentTypes.push(e);
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* 移除已记录的基础组件类型
|
|
420
|
-
*/
|
|
421
|
-
removeBaseComponents() {
|
|
422
|
-
this.baseComponentTypes.forEach((e) => {
|
|
423
|
-
this.removeComponent(e);
|
|
424
|
-
}), this.setBaseComponentTypes([]), this.computedComponentSchemaGroups();
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* 获取所有插件管理中的所有组件
|
|
428
|
-
* @returns components
|
|
429
|
-
*/
|
|
430
|
-
getComponents() {
|
|
431
|
-
return this.components;
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* 通过type 查询相应的组件
|
|
435
|
-
* @returns components
|
|
436
|
-
*/
|
|
437
|
-
getComponent(e) {
|
|
438
|
-
return this.components[e];
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* 注册或更新活动栏(Activitybar)模型。
|
|
442
|
-
* 如果模型中的组件是一个函数,则异步加载该组件。
|
|
443
|
-
* @param activitybar 要注册或更新的活动栏模型
|
|
444
|
-
*/
|
|
445
|
-
registerActivitybar(e) {
|
|
446
|
-
typeof e.component == "function" && (e.component = ee(e.component)), typeof e.visible > "u" && (e.visible = !0);
|
|
447
|
-
const n = this.viewsContainers.activitybars.value.findIndex((r) => r.id === e.id);
|
|
448
|
-
n !== -1 ? this.viewsContainers.activitybars.value[n] = e : this.viewsContainers.activitybars.value.push(e);
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* 获取所有activitybars
|
|
452
|
-
* @returns activitybars
|
|
453
|
-
*/
|
|
454
|
-
getActivitybars() {
|
|
455
|
-
return this.viewsContainers.activitybars.value;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* 隐藏活动栏
|
|
459
|
-
* @param value 属性
|
|
460
|
-
* @param attr 查询字段 默认值 title
|
|
461
|
-
*/
|
|
462
|
-
hideActivitybar(e, n = "title") {
|
|
463
|
-
const r = this.viewsContainers.activitybars.value.findIndex((s) => s[n] === e);
|
|
464
|
-
r !== -1 && (this.viewsContainers.activitybars.value[r].visible = !1);
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* 显示活动栏
|
|
468
|
-
* @param value 属性
|
|
469
|
-
* @param attr 查询字段 默认值 title
|
|
470
|
-
*/
|
|
471
|
-
showActivitybar(e, n = "title") {
|
|
472
|
-
const r = this.viewsContainers.activitybars.value.findIndex((s) => s[n] === e);
|
|
473
|
-
r !== -1 && (this.viewsContainers.activitybars.value[r].visible = !0);
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* 注册右侧栏
|
|
477
|
-
*/
|
|
478
|
-
registerRightSidebar(e) {
|
|
479
|
-
typeof e.component == "function" && (e.component = ee(e.component)), typeof e.visible > "u" && (e.visible = !0);
|
|
480
|
-
const n = this.viewsContainers.rightSidebars.value.findIndex((r) => r.id === e.id);
|
|
481
|
-
n !== -1 ? this.viewsContainers.rightSidebars.value[n] = e : this.viewsContainers.rightSidebars.value.push(e);
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* 获取所有rightSidebars
|
|
485
|
-
* @returns rightSidebars
|
|
486
|
-
*/
|
|
487
|
-
getRightSidebars() {
|
|
488
|
-
return this.viewsContainers.rightSidebars.value;
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* 隐藏右侧边栏
|
|
492
|
-
* @param value 属性
|
|
493
|
-
* @param attr 查询字段 默认值 title
|
|
494
|
-
*/
|
|
495
|
-
hideRightSidebar(e, n = "title") {
|
|
496
|
-
const r = this.viewsContainers.rightSidebars.value.findIndex((s) => s[n] === e);
|
|
497
|
-
r !== -1 && (this.viewsContainers.rightSidebars.value[r].visible = !1);
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* 显示右侧边栏
|
|
501
|
-
* @param value 属性
|
|
502
|
-
* @param attr 查询字段 默认值 title
|
|
503
|
-
*/
|
|
504
|
-
showRightSidebar(e, n = "title") {
|
|
505
|
-
const r = this.viewsContainers.rightSidebars.value.findIndex((s) => s[n] === e);
|
|
506
|
-
r !== -1 && (this.viewsContainers.rightSidebars.value[r].visible = !0);
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* 获取所有插件管理中的所有组件配置
|
|
510
|
-
* @returns componentAttrs
|
|
511
|
-
*/
|
|
512
|
-
getComponentConfings() {
|
|
513
|
-
return this.componentConfigs;
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* 通过type获取ComponentConfing
|
|
517
|
-
* @returns
|
|
518
|
-
*/
|
|
519
|
-
getComponentConfingByType(e) {
|
|
520
|
-
return this.componentConfigs[e];
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* 计算componentSchemaGroups
|
|
524
|
-
*/
|
|
525
|
-
computedComponentSchemaGroups() {
|
|
526
|
-
const e = [];
|
|
527
|
-
Object.values(this.componentConfigs).forEach((n) => {
|
|
528
|
-
if (!this.hiddenComponents.includes(n.defaultSchema.type) && n.groupName) {
|
|
529
|
-
const r = this.componentGroupNameMap[n.groupName] ?? n.groupName;
|
|
530
|
-
let s = e.findIndex((i) => i.title === r);
|
|
531
|
-
s === -1 && (e.push({
|
|
532
|
-
title: r,
|
|
533
|
-
list: []
|
|
534
|
-
}), s = e.length - 1);
|
|
535
|
-
let o = e[s].list.findIndex(
|
|
536
|
-
(i) => i.type === n.defaultSchema.type
|
|
537
|
-
);
|
|
538
|
-
o !== -1 ? e[s].list[o] = n.defaultSchema : e[s].list.push(n.defaultSchema);
|
|
539
|
-
}
|
|
540
|
-
}), e.sort((n, r) => {
|
|
541
|
-
const s = this.sortedGroups.indexOf(n.title), o = this.sortedGroups.indexOf(r.title);
|
|
542
|
-
return s === -1 ? 1 : o === -1 ? -1 : s - o;
|
|
543
|
-
}), e.forEach((n) => {
|
|
544
|
-
n.list.sort((r, s) => {
|
|
545
|
-
var c, f;
|
|
546
|
-
const o = ((c = this.componentConfigs[r.type]) == null ? void 0 : c.sort) ?? 1e3, i = ((f = this.componentConfigs[s.type]) == null ? void 0 : f.sort) ?? 1e3;
|
|
547
|
-
return o - i;
|
|
548
|
-
});
|
|
549
|
-
}), this.componentSchemaGroups.value = e;
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* 按照分组获取componentSchemaGroups 暂时没啥用
|
|
553
|
-
* @returns componentSchemaGroups
|
|
554
|
-
*/
|
|
555
|
-
getComponentSchemaGroups() {
|
|
556
|
-
return this.componentSchemaGroups;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* 设置组件分组名称到映射名称的关系
|
|
560
|
-
* @param groupName 组件分组名称
|
|
561
|
-
* @param mapName 映射的名称
|
|
562
|
-
*/
|
|
563
|
-
setComponentGroupNameMap(e, n) {
|
|
564
|
-
this.componentGroupNameMap[e] = n;
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* 清空组件分组名称到映射名称的关系
|
|
568
|
-
*/
|
|
569
|
-
clearComponentGroupNameMap() {
|
|
570
|
-
this.componentGroupNameMap = {};
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* 设置组件分组的排序
|
|
574
|
-
* @param sortedGroups 包含组名和排序字段的对象数组
|
|
575
|
-
*/
|
|
576
|
-
setSortedGroups(e) {
|
|
577
|
-
this.sortedGroups = e, this.computedComponentSchemaGroups();
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* 清空组件分组的排序
|
|
581
|
-
*/
|
|
582
|
-
clearSortedGroups() {
|
|
583
|
-
this.sortedGroups = [], this.computedComponentSchemaGroups();
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* 添加需要隐藏的组件类型
|
|
587
|
-
* @param {*} type
|
|
588
|
-
* @returns
|
|
589
|
-
*/
|
|
590
|
-
hideComponent(e) {
|
|
591
|
-
this.hiddenComponents.push(e), this.computedComponentSchemaGroups();
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* 移除需要隐藏的组件类型
|
|
595
|
-
* @param {*} type
|
|
596
|
-
* @returns
|
|
597
|
-
*/
|
|
598
|
-
showComponent(e) {
|
|
599
|
-
this.hiddenComponents = this.hiddenComponents.filter((n) => n !== e), this.computedComponentSchemaGroups();
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
* 设置需要隐藏的组件类型数组
|
|
603
|
-
* @param {*} type[]
|
|
604
|
-
* @returns
|
|
605
|
-
*/
|
|
606
|
-
setHideComponents(e) {
|
|
607
|
-
this.hiddenComponents = e, this.computedComponentSchemaGroups();
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* 设置initialized的状态。
|
|
611
|
-
*
|
|
612
|
-
* @param value 要设置的布尔值。
|
|
613
|
-
*/
|
|
614
|
-
setInitialized(e) {
|
|
615
|
-
this.initialized.value = e;
|
|
616
|
-
}
|
|
617
|
-
/**
|
|
618
|
-
* 添加公共方法
|
|
619
|
-
* @param publicMethod
|
|
620
|
-
*/
|
|
621
|
-
addPublicMethod(e) {
|
|
622
|
-
const n = e.methodName ?? e.name, r = e.method ?? e.handler;
|
|
623
|
-
this.publicMethods[n] = {
|
|
624
|
-
...e,
|
|
625
|
-
name: n,
|
|
626
|
-
handler: r
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* 移除公共方法
|
|
631
|
-
* @param methodName
|
|
632
|
-
*/
|
|
633
|
-
removePublicMethod(e) {
|
|
634
|
-
delete this.publicMethods[e];
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
const wt = new yt();
|
|
638
|
-
function Ie(t, e) {
|
|
639
|
-
return function() {
|
|
640
|
-
return t.apply(e, arguments);
|
|
641
|
-
};
|
|
642
|
-
}
|
|
643
|
-
const { toString: gt } = Object.prototype, { getPrototypeOf: he } = Object, K = /* @__PURE__ */ ((t) => (e) => {
|
|
644
|
-
const n = gt.call(e);
|
|
645
|
-
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
646
|
-
})(/* @__PURE__ */ Object.create(null)), P = (t) => (t = t.toLowerCase(), (e) => K(e) === t), X = (t) => (e) => typeof e === t, { isArray: v } = Array, M = X("undefined");
|
|
647
|
-
function bt(t) {
|
|
648
|
-
return t !== null && !M(t) && t.constructor !== null && !M(t.constructor) && x(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
649
|
-
}
|
|
650
|
-
const qe = P("ArrayBuffer");
|
|
651
|
-
function St(t) {
|
|
652
|
-
let e;
|
|
653
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && qe(t.buffer), e;
|
|
654
|
-
}
|
|
655
|
-
const Et = X("string"), x = X("function"), Me = X("number"), Q = (t) => t !== null && typeof t == "object", Rt = (t) => t === !0 || t === !1, G = (t) => {
|
|
656
|
-
if (K(t) !== "object")
|
|
657
|
-
return !1;
|
|
658
|
-
const e = he(t);
|
|
659
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
660
|
-
}, Ct = P("Date"), At = P("File"), Ot = P("Blob"), Tt = P("FileList"), xt = (t) => Q(t) && x(t.pipe), Pt = (t) => {
|
|
661
|
-
let e;
|
|
662
|
-
return t && (typeof FormData == "function" && t instanceof FormData || x(t.append) && ((e = K(t)) === "formdata" || // detect form-data instance
|
|
663
|
-
e === "object" && x(t.toString) && t.toString() === "[object FormData]"));
|
|
664
|
-
}, Nt = P("URLSearchParams"), [Ft, Bt, Lt, _t] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Dt = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
665
|
-
function H(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
666
|
-
if (t === null || typeof t > "u")
|
|
667
|
-
return;
|
|
668
|
-
let r, s;
|
|
669
|
-
if (typeof t != "object" && (t = [t]), v(t))
|
|
670
|
-
for (r = 0, s = t.length; r < s; r++)
|
|
671
|
-
e.call(null, t[r], r, t);
|
|
672
|
-
else {
|
|
673
|
-
const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
|
|
674
|
-
let c;
|
|
675
|
-
for (r = 0; r < i; r++)
|
|
676
|
-
c = o[r], e.call(null, t[c], c, t);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
function He(t, e) {
|
|
680
|
-
e = e.toLowerCase();
|
|
681
|
-
const n = Object.keys(t);
|
|
682
|
-
let r = n.length, s;
|
|
683
|
-
for (; r-- > 0; )
|
|
684
|
-
if (s = n[r], e === s.toLowerCase())
|
|
685
|
-
return s;
|
|
686
|
-
return null;
|
|
687
|
-
}
|
|
688
|
-
const _ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ze = (t) => !M(t) && t !== _;
|
|
689
|
-
function ie() {
|
|
690
|
-
const { caseless: t } = ze(this) && this || {}, e = {}, n = (r, s) => {
|
|
691
|
-
const o = t && He(e, s) || s;
|
|
692
|
-
G(e[o]) && G(r) ? e[o] = ie(e[o], r) : G(r) ? e[o] = ie({}, r) : v(r) ? e[o] = r.slice() : e[o] = r;
|
|
693
|
-
};
|
|
694
|
-
for (let r = 0, s = arguments.length; r < s; r++)
|
|
695
|
-
arguments[r] && H(arguments[r], n);
|
|
696
|
-
return e;
|
|
697
|
-
}
|
|
698
|
-
const kt = (t, e, n, { allOwnKeys: r } = {}) => (H(e, (s, o) => {
|
|
699
|
-
n && x(s) ? t[o] = Ie(s, n) : t[o] = s;
|
|
700
|
-
}, { allOwnKeys: r }), t), vt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ut = (t, e, n, r) => {
|
|
701
|
-
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
702
|
-
value: e.prototype
|
|
703
|
-
}), n && Object.assign(t.prototype, n);
|
|
704
|
-
}, It = (t, e, n, r) => {
|
|
705
|
-
let s, o, i;
|
|
706
|
-
const c = {};
|
|
707
|
-
if (e = e || {}, t == null) return e;
|
|
708
|
-
do {
|
|
709
|
-
for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
|
|
710
|
-
i = s[o], (!r || r(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0);
|
|
711
|
-
t = n !== !1 && he(t);
|
|
712
|
-
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
713
|
-
return e;
|
|
714
|
-
}, qt = (t, e, n) => {
|
|
715
|
-
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
716
|
-
const r = t.indexOf(e, n);
|
|
717
|
-
return r !== -1 && r === n;
|
|
718
|
-
}, Mt = (t) => {
|
|
719
|
-
if (!t) return null;
|
|
720
|
-
if (v(t)) return t;
|
|
721
|
-
let e = t.length;
|
|
722
|
-
if (!Me(e)) return null;
|
|
723
|
-
const n = new Array(e);
|
|
724
|
-
for (; e-- > 0; )
|
|
725
|
-
n[e] = t[e];
|
|
726
|
-
return n;
|
|
727
|
-
}, Ht = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && he(Uint8Array)), zt = (t, e) => {
|
|
728
|
-
const r = (t && t[Symbol.iterator]).call(t);
|
|
729
|
-
let s;
|
|
730
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
731
|
-
const o = s.value;
|
|
732
|
-
e.call(t, o[0], o[1]);
|
|
733
|
-
}
|
|
734
|
-
}, jt = (t, e) => {
|
|
735
|
-
let n;
|
|
736
|
-
const r = [];
|
|
737
|
-
for (; (n = t.exec(e)) !== null; )
|
|
738
|
-
r.push(n);
|
|
739
|
-
return r;
|
|
740
|
-
}, Gt = P("HTMLFormElement"), Jt = (t) => t.toLowerCase().replace(
|
|
741
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
742
|
-
function(n, r, s) {
|
|
743
|
-
return r.toUpperCase() + s;
|
|
744
|
-
}
|
|
745
|
-
), Ce = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Vt = P("RegExp"), je = (t, e) => {
|
|
746
|
-
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
747
|
-
H(n, (s, o) => {
|
|
748
|
-
let i;
|
|
749
|
-
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
750
|
-
}), Object.defineProperties(t, r);
|
|
751
|
-
}, Wt = (t) => {
|
|
752
|
-
je(t, (e, n) => {
|
|
753
|
-
if (x(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
754
|
-
return !1;
|
|
755
|
-
const r = t[n];
|
|
756
|
-
if (x(r)) {
|
|
757
|
-
if (e.enumerable = !1, "writable" in e) {
|
|
758
|
-
e.writable = !1;
|
|
759
|
-
return;
|
|
760
|
-
}
|
|
761
|
-
e.set || (e.set = () => {
|
|
762
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
}, $t = (t, e) => {
|
|
767
|
-
const n = {}, r = (s) => {
|
|
768
|
-
s.forEach((o) => {
|
|
769
|
-
n[o] = !0;
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
return v(t) ? r(t) : r(String(t).split(e)), n;
|
|
773
|
-
}, Kt = () => {
|
|
774
|
-
}, Xt = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, te = "abcdefghijklmnopqrstuvwxyz", Ae = "0123456789", Ge = {
|
|
775
|
-
DIGIT: Ae,
|
|
776
|
-
ALPHA: te,
|
|
777
|
-
ALPHA_DIGIT: te + te.toUpperCase() + Ae
|
|
778
|
-
}, Qt = (t = 16, e = Ge.ALPHA_DIGIT) => {
|
|
779
|
-
let n = "";
|
|
780
|
-
const { length: r } = e;
|
|
781
|
-
for (; t--; )
|
|
782
|
-
n += e[Math.random() * r | 0];
|
|
783
|
-
return n;
|
|
784
|
-
};
|
|
785
|
-
function Zt(t) {
|
|
786
|
-
return !!(t && x(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
787
|
-
}
|
|
788
|
-
const Yt = (t) => {
|
|
789
|
-
const e = new Array(10), n = (r, s) => {
|
|
790
|
-
if (Q(r)) {
|
|
791
|
-
if (e.indexOf(r) >= 0)
|
|
792
|
-
return;
|
|
793
|
-
if (!("toJSON" in r)) {
|
|
794
|
-
e[s] = r;
|
|
795
|
-
const o = v(r) ? [] : {};
|
|
796
|
-
return H(r, (i, c) => {
|
|
797
|
-
const f = n(i, s + 1);
|
|
798
|
-
!M(f) && (o[c] = f);
|
|
799
|
-
}), e[s] = void 0, o;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return r;
|
|
803
|
-
};
|
|
804
|
-
return n(t, 0);
|
|
805
|
-
}, en = P("AsyncFunction"), tn = (t) => t && (Q(t) || x(t)) && x(t.then) && x(t.catch), Je = ((t, e) => t ? setImmediate : e ? ((n, r) => (_.addEventListener("message", ({ source: s, data: o }) => {
|
|
806
|
-
s === _ && o === n && r.length && r.shift()();
|
|
807
|
-
}, !1), (s) => {
|
|
808
|
-
r.push(s), _.postMessage(n, "*");
|
|
809
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
810
|
-
typeof setImmediate == "function",
|
|
811
|
-
x(_.postMessage)
|
|
812
|
-
), nn = typeof queueMicrotask < "u" ? queueMicrotask.bind(_) : typeof process < "u" && process.nextTick || Je, a = {
|
|
813
|
-
isArray: v,
|
|
814
|
-
isArrayBuffer: qe,
|
|
815
|
-
isBuffer: bt,
|
|
816
|
-
isFormData: Pt,
|
|
817
|
-
isArrayBufferView: St,
|
|
818
|
-
isString: Et,
|
|
819
|
-
isNumber: Me,
|
|
820
|
-
isBoolean: Rt,
|
|
821
|
-
isObject: Q,
|
|
822
|
-
isPlainObject: G,
|
|
823
|
-
isReadableStream: Ft,
|
|
824
|
-
isRequest: Bt,
|
|
825
|
-
isResponse: Lt,
|
|
826
|
-
isHeaders: _t,
|
|
827
|
-
isUndefined: M,
|
|
828
|
-
isDate: Ct,
|
|
829
|
-
isFile: At,
|
|
830
|
-
isBlob: Ot,
|
|
831
|
-
isRegExp: Vt,
|
|
832
|
-
isFunction: x,
|
|
833
|
-
isStream: xt,
|
|
834
|
-
isURLSearchParams: Nt,
|
|
835
|
-
isTypedArray: Ht,
|
|
836
|
-
isFileList: Tt,
|
|
837
|
-
forEach: H,
|
|
838
|
-
merge: ie,
|
|
839
|
-
extend: kt,
|
|
840
|
-
trim: Dt,
|
|
841
|
-
stripBOM: vt,
|
|
842
|
-
inherits: Ut,
|
|
843
|
-
toFlatObject: It,
|
|
844
|
-
kindOf: K,
|
|
845
|
-
kindOfTest: P,
|
|
846
|
-
endsWith: qt,
|
|
847
|
-
toArray: Mt,
|
|
848
|
-
forEachEntry: zt,
|
|
849
|
-
matchAll: jt,
|
|
850
|
-
isHTMLForm: Gt,
|
|
851
|
-
hasOwnProperty: Ce,
|
|
852
|
-
hasOwnProp: Ce,
|
|
853
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
854
|
-
reduceDescriptors: je,
|
|
855
|
-
freezeMethods: Wt,
|
|
856
|
-
toObjectSet: $t,
|
|
857
|
-
toCamelCase: Jt,
|
|
858
|
-
noop: Kt,
|
|
859
|
-
toFiniteNumber: Xt,
|
|
860
|
-
findKey: He,
|
|
861
|
-
global: _,
|
|
862
|
-
isContextDefined: ze,
|
|
863
|
-
ALPHABET: Ge,
|
|
864
|
-
generateString: Qt,
|
|
865
|
-
isSpecCompliantForm: Zt,
|
|
866
|
-
toJSONObject: Yt,
|
|
867
|
-
isAsyncFn: en,
|
|
868
|
-
isThenable: tn,
|
|
869
|
-
setImmediate: Je,
|
|
870
|
-
asap: nn
|
|
871
|
-
};
|
|
872
|
-
function m(t, e, n, r, s) {
|
|
873
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
874
|
-
}
|
|
875
|
-
a.inherits(m, Error, {
|
|
876
|
-
toJSON: function() {
|
|
877
|
-
return {
|
|
878
|
-
// Standard
|
|
879
|
-
message: this.message,
|
|
880
|
-
name: this.name,
|
|
881
|
-
// Microsoft
|
|
882
|
-
description: this.description,
|
|
883
|
-
number: this.number,
|
|
884
|
-
// Mozilla
|
|
885
|
-
fileName: this.fileName,
|
|
886
|
-
lineNumber: this.lineNumber,
|
|
887
|
-
columnNumber: this.columnNumber,
|
|
888
|
-
stack: this.stack,
|
|
889
|
-
// Axios
|
|
890
|
-
config: a.toJSONObject(this.config),
|
|
891
|
-
code: this.code,
|
|
892
|
-
status: this.status
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
});
|
|
896
|
-
const Ve = m.prototype, We = {};
|
|
897
|
-
[
|
|
898
|
-
"ERR_BAD_OPTION_VALUE",
|
|
899
|
-
"ERR_BAD_OPTION",
|
|
900
|
-
"ECONNABORTED",
|
|
901
|
-
"ETIMEDOUT",
|
|
902
|
-
"ERR_NETWORK",
|
|
903
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
904
|
-
"ERR_DEPRECATED",
|
|
905
|
-
"ERR_BAD_RESPONSE",
|
|
906
|
-
"ERR_BAD_REQUEST",
|
|
907
|
-
"ERR_CANCELED",
|
|
908
|
-
"ERR_NOT_SUPPORT",
|
|
909
|
-
"ERR_INVALID_URL"
|
|
910
|
-
// eslint-disable-next-line func-names
|
|
911
|
-
].forEach((t) => {
|
|
912
|
-
We[t] = { value: t };
|
|
913
|
-
});
|
|
914
|
-
Object.defineProperties(m, We);
|
|
915
|
-
Object.defineProperty(Ve, "isAxiosError", { value: !0 });
|
|
916
|
-
m.from = (t, e, n, r, s, o) => {
|
|
917
|
-
const i = Object.create(Ve);
|
|
918
|
-
return a.toFlatObject(t, i, function(f) {
|
|
919
|
-
return f !== Error.prototype;
|
|
920
|
-
}, (c) => c !== "isAxiosError"), m.call(i, t.message, e, n, r, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
|
|
921
|
-
};
|
|
922
|
-
const rn = null;
|
|
923
|
-
function ae(t) {
|
|
924
|
-
return a.isPlainObject(t) || a.isArray(t);
|
|
925
|
-
}
|
|
926
|
-
function $e(t) {
|
|
927
|
-
return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
928
|
-
}
|
|
929
|
-
function Oe(t, e, n) {
|
|
930
|
-
return t ? t.concat(e).map(function(s, o) {
|
|
931
|
-
return s = $e(s), !n && o ? "[" + s + "]" : s;
|
|
932
|
-
}).join(n ? "." : "") : e;
|
|
933
|
-
}
|
|
934
|
-
function sn(t) {
|
|
935
|
-
return a.isArray(t) && !t.some(ae);
|
|
936
|
-
}
|
|
937
|
-
const on = a.toFlatObject(a, {}, null, function(e) {
|
|
938
|
-
return /^is[A-Z]/.test(e);
|
|
939
|
-
});
|
|
940
|
-
function Z(t, e, n) {
|
|
941
|
-
if (!a.isObject(t))
|
|
942
|
-
throw new TypeError("target must be an object");
|
|
943
|
-
e = e || new FormData(), n = a.toFlatObject(n, {
|
|
944
|
-
metaTokens: !0,
|
|
945
|
-
dots: !1,
|
|
946
|
-
indexes: !1
|
|
947
|
-
}, !1, function(y, h) {
|
|
948
|
-
return !a.isUndefined(h[y]);
|
|
949
|
-
});
|
|
950
|
-
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
|
|
951
|
-
if (!a.isFunction(s))
|
|
952
|
-
throw new TypeError("visitor must be a function");
|
|
953
|
-
function l(p) {
|
|
954
|
-
if (p === null) return "";
|
|
955
|
-
if (a.isDate(p))
|
|
956
|
-
return p.toISOString();
|
|
957
|
-
if (!f && a.isBlob(p))
|
|
958
|
-
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
959
|
-
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
960
|
-
}
|
|
961
|
-
function u(p, y, h) {
|
|
962
|
-
let g = p;
|
|
963
|
-
if (p && !h && typeof p == "object") {
|
|
964
|
-
if (a.endsWith(y, "{}"))
|
|
965
|
-
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
966
|
-
else if (a.isArray(p) && sn(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (g = a.toArray(p)))
|
|
967
|
-
return y = $e(y), g.forEach(function(R, N) {
|
|
968
|
-
!(a.isUndefined(R) || R === null) && e.append(
|
|
969
|
-
// eslint-disable-next-line no-nested-ternary
|
|
970
|
-
i === !0 ? Oe([y], N, o) : i === null ? y : y + "[]",
|
|
971
|
-
l(R)
|
|
972
|
-
);
|
|
973
|
-
}), !1;
|
|
974
|
-
}
|
|
975
|
-
return ae(p) ? !0 : (e.append(Oe(h, y, o), l(p)), !1);
|
|
976
|
-
}
|
|
977
|
-
const d = [], w = Object.assign(on, {
|
|
978
|
-
defaultVisitor: u,
|
|
979
|
-
convertValue: l,
|
|
980
|
-
isVisitable: ae
|
|
981
|
-
});
|
|
982
|
-
function b(p, y) {
|
|
983
|
-
if (!a.isUndefined(p)) {
|
|
984
|
-
if (d.indexOf(p) !== -1)
|
|
985
|
-
throw Error("Circular reference detected in " + y.join("."));
|
|
986
|
-
d.push(p), a.forEach(p, function(g, S) {
|
|
987
|
-
(!(a.isUndefined(g) || g === null) && s.call(
|
|
988
|
-
e,
|
|
989
|
-
g,
|
|
990
|
-
a.isString(S) ? S.trim() : S,
|
|
991
|
-
y,
|
|
992
|
-
w
|
|
993
|
-
)) === !0 && b(g, y ? y.concat(S) : [S]);
|
|
994
|
-
}), d.pop();
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
if (!a.isObject(t))
|
|
998
|
-
throw new TypeError("data must be an object");
|
|
999
|
-
return b(t), e;
|
|
1000
|
-
}
|
|
1001
|
-
function Te(t) {
|
|
1002
|
-
const e = {
|
|
1003
|
-
"!": "%21",
|
|
1004
|
-
"'": "%27",
|
|
1005
|
-
"(": "%28",
|
|
1006
|
-
")": "%29",
|
|
1007
|
-
"~": "%7E",
|
|
1008
|
-
"%20": "+",
|
|
1009
|
-
"%00": "\0"
|
|
1010
|
-
};
|
|
1011
|
-
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
1012
|
-
return e[r];
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
function me(t, e) {
|
|
1016
|
-
this._pairs = [], t && Z(t, this, e);
|
|
1017
|
-
}
|
|
1018
|
-
const Ke = me.prototype;
|
|
1019
|
-
Ke.append = function(e, n) {
|
|
1020
|
-
this._pairs.push([e, n]);
|
|
1021
|
-
};
|
|
1022
|
-
Ke.toString = function(e) {
|
|
1023
|
-
const n = e ? function(r) {
|
|
1024
|
-
return e.call(this, r, Te);
|
|
1025
|
-
} : Te;
|
|
1026
|
-
return this._pairs.map(function(s) {
|
|
1027
|
-
return n(s[0]) + "=" + n(s[1]);
|
|
1028
|
-
}, "").join("&");
|
|
1029
|
-
};
|
|
1030
|
-
function an(t) {
|
|
1031
|
-
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1032
|
-
}
|
|
1033
|
-
function Xe(t, e, n) {
|
|
1034
|
-
if (!e)
|
|
1035
|
-
return t;
|
|
1036
|
-
const r = n && n.encode || an, s = n && n.serialize;
|
|
1037
|
-
let o;
|
|
1038
|
-
if (s ? o = s(e, n) : o = a.isURLSearchParams(e) ? e.toString() : new me(e, n).toString(r), o) {
|
|
1039
|
-
const i = t.indexOf("#");
|
|
1040
|
-
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
1041
|
-
}
|
|
1042
|
-
return t;
|
|
1043
|
-
}
|
|
1044
|
-
class xe {
|
|
1045
|
-
constructor() {
|
|
1046
|
-
this.handlers = [];
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Add a new interceptor to the stack
|
|
1050
|
-
*
|
|
1051
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1052
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1053
|
-
*
|
|
1054
|
-
* @return {Number} An ID used to remove interceptor later
|
|
1055
|
-
*/
|
|
1056
|
-
use(e, n, r) {
|
|
1057
|
-
return this.handlers.push({
|
|
1058
|
-
fulfilled: e,
|
|
1059
|
-
rejected: n,
|
|
1060
|
-
synchronous: r ? r.synchronous : !1,
|
|
1061
|
-
runWhen: r ? r.runWhen : null
|
|
1062
|
-
}), this.handlers.length - 1;
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Remove an interceptor from the stack
|
|
1066
|
-
*
|
|
1067
|
-
* @param {Number} id The ID that was returned by `use`
|
|
1068
|
-
*
|
|
1069
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
1070
|
-
*/
|
|
1071
|
-
eject(e) {
|
|
1072
|
-
this.handlers[e] && (this.handlers[e] = null);
|
|
1073
|
-
}
|
|
1074
|
-
/**
|
|
1075
|
-
* Clear all interceptors from the stack
|
|
1076
|
-
*
|
|
1077
|
-
* @returns {void}
|
|
1078
|
-
*/
|
|
1079
|
-
clear() {
|
|
1080
|
-
this.handlers && (this.handlers = []);
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Iterate over all the registered interceptors
|
|
1084
|
-
*
|
|
1085
|
-
* This method is particularly useful for skipping over any
|
|
1086
|
-
* interceptors that may have become `null` calling `eject`.
|
|
1087
|
-
*
|
|
1088
|
-
* @param {Function} fn The function to call for each interceptor
|
|
1089
|
-
*
|
|
1090
|
-
* @returns {void}
|
|
1091
|
-
*/
|
|
1092
|
-
forEach(e) {
|
|
1093
|
-
a.forEach(this.handlers, function(r) {
|
|
1094
|
-
r !== null && e(r);
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
const Qe = {
|
|
1099
|
-
silentJSONParsing: !0,
|
|
1100
|
-
forcedJSONParsing: !0,
|
|
1101
|
-
clarifyTimeoutError: !1
|
|
1102
|
-
}, cn = typeof URLSearchParams < "u" ? URLSearchParams : me, ln = typeof FormData < "u" ? FormData : null, un = typeof Blob < "u" ? Blob : null, fn = {
|
|
1103
|
-
isBrowser: !0,
|
|
1104
|
-
classes: {
|
|
1105
|
-
URLSearchParams: cn,
|
|
1106
|
-
FormData: ln,
|
|
1107
|
-
Blob: un
|
|
1108
|
-
},
|
|
1109
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1110
|
-
}, ye = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0, dn = ye && (!ce || ["ReactNative", "NativeScript", "NS"].indexOf(ce.product) < 0), pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1111
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", hn = ye && window.location.href || "http://localhost", mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1112
|
-
__proto__: null,
|
|
1113
|
-
hasBrowserEnv: ye,
|
|
1114
|
-
hasStandardBrowserEnv: dn,
|
|
1115
|
-
hasStandardBrowserWebWorkerEnv: pn,
|
|
1116
|
-
navigator: ce,
|
|
1117
|
-
origin: hn
|
|
1118
|
-
}, Symbol.toStringTag, { value: "Module" })), A = {
|
|
1119
|
-
...mn,
|
|
1120
|
-
...fn
|
|
1121
|
-
};
|
|
1122
|
-
function yn(t, e) {
|
|
1123
|
-
return Z(t, new A.classes.URLSearchParams(), Object.assign({
|
|
1124
|
-
visitor: function(n, r, s, o) {
|
|
1125
|
-
return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1126
|
-
}
|
|
1127
|
-
}, e));
|
|
1128
|
-
}
|
|
1129
|
-
function wn(t) {
|
|
1130
|
-
return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
1131
|
-
}
|
|
1132
|
-
function gn(t) {
|
|
1133
|
-
const e = {}, n = Object.keys(t);
|
|
1134
|
-
let r;
|
|
1135
|
-
const s = n.length;
|
|
1136
|
-
let o;
|
|
1137
|
-
for (r = 0; r < s; r++)
|
|
1138
|
-
o = n[r], e[o] = t[o];
|
|
1139
|
-
return e;
|
|
1140
|
-
}
|
|
1141
|
-
function Ze(t) {
|
|
1142
|
-
function e(n, r, s, o) {
|
|
1143
|
-
let i = n[o++];
|
|
1144
|
-
if (i === "__proto__") return !0;
|
|
1145
|
-
const c = Number.isFinite(+i), f = o >= n.length;
|
|
1146
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = gn(s[i])), !c);
|
|
1147
|
-
}
|
|
1148
|
-
if (a.isFormData(t) && a.isFunction(t.entries)) {
|
|
1149
|
-
const n = {};
|
|
1150
|
-
return a.forEachEntry(t, (r, s) => {
|
|
1151
|
-
e(wn(r), s, n, 0);
|
|
1152
|
-
}), n;
|
|
1153
|
-
}
|
|
1154
|
-
return null;
|
|
1155
|
-
}
|
|
1156
|
-
function bn(t, e, n) {
|
|
1157
|
-
if (a.isString(t))
|
|
1158
|
-
try {
|
|
1159
|
-
return (e || JSON.parse)(t), a.trim(t);
|
|
1160
|
-
} catch (r) {
|
|
1161
|
-
if (r.name !== "SyntaxError")
|
|
1162
|
-
throw r;
|
|
1163
|
-
}
|
|
1164
|
-
return (0, JSON.stringify)(t);
|
|
1165
|
-
}
|
|
1166
|
-
const z = {
|
|
1167
|
-
transitional: Qe,
|
|
1168
|
-
adapter: ["xhr", "http", "fetch"],
|
|
1169
|
-
transformRequest: [function(e, n) {
|
|
1170
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(e);
|
|
1171
|
-
if (o && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
|
|
1172
|
-
return s ? JSON.stringify(Ze(e)) : e;
|
|
1173
|
-
if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
|
|
1174
|
-
return e;
|
|
1175
|
-
if (a.isArrayBufferView(e))
|
|
1176
|
-
return e.buffer;
|
|
1177
|
-
if (a.isURLSearchParams(e))
|
|
1178
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
1179
|
-
let c;
|
|
1180
|
-
if (o) {
|
|
1181
|
-
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1182
|
-
return yn(e, this.formSerializer).toString();
|
|
1183
|
-
if ((c = a.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
1184
|
-
const f = this.env && this.env.FormData;
|
|
1185
|
-
return Z(
|
|
1186
|
-
c ? { "files[]": e } : e,
|
|
1187
|
-
f && new f(),
|
|
1188
|
-
this.formSerializer
|
|
1189
|
-
);
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
return o || s ? (n.setContentType("application/json", !1), bn(e)) : e;
|
|
1193
|
-
}],
|
|
1194
|
-
transformResponse: [function(e) {
|
|
1195
|
-
const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1196
|
-
if (a.isResponse(e) || a.isReadableStream(e))
|
|
1197
|
-
return e;
|
|
1198
|
-
if (e && a.isString(e) && (r && !this.responseType || s)) {
|
|
1199
|
-
const i = !(n && n.silentJSONParsing) && s;
|
|
1200
|
-
try {
|
|
1201
|
-
return JSON.parse(e);
|
|
1202
|
-
} catch (c) {
|
|
1203
|
-
if (i)
|
|
1204
|
-
throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
return e;
|
|
1208
|
-
}],
|
|
1209
|
-
/**
|
|
1210
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
1211
|
-
* timeout is not created.
|
|
1212
|
-
*/
|
|
1213
|
-
timeout: 0,
|
|
1214
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
1215
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1216
|
-
maxContentLength: -1,
|
|
1217
|
-
maxBodyLength: -1,
|
|
1218
|
-
env: {
|
|
1219
|
-
FormData: A.classes.FormData,
|
|
1220
|
-
Blob: A.classes.Blob
|
|
1221
|
-
},
|
|
1222
|
-
validateStatus: function(e) {
|
|
1223
|
-
return e >= 200 && e < 300;
|
|
1224
|
-
},
|
|
1225
|
-
headers: {
|
|
1226
|
-
common: {
|
|
1227
|
-
Accept: "application/json, text/plain, */*",
|
|
1228
|
-
"Content-Type": void 0
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
1233
|
-
z.headers[t] = {};
|
|
1234
|
-
});
|
|
1235
|
-
const Sn = a.toObjectSet([
|
|
1236
|
-
"age",
|
|
1237
|
-
"authorization",
|
|
1238
|
-
"content-length",
|
|
1239
|
-
"content-type",
|
|
1240
|
-
"etag",
|
|
1241
|
-
"expires",
|
|
1242
|
-
"from",
|
|
1243
|
-
"host",
|
|
1244
|
-
"if-modified-since",
|
|
1245
|
-
"if-unmodified-since",
|
|
1246
|
-
"last-modified",
|
|
1247
|
-
"location",
|
|
1248
|
-
"max-forwards",
|
|
1249
|
-
"proxy-authorization",
|
|
1250
|
-
"referer",
|
|
1251
|
-
"retry-after",
|
|
1252
|
-
"user-agent"
|
|
1253
|
-
]), En = (t) => {
|
|
1254
|
-
const e = {};
|
|
1255
|
-
let n, r, s;
|
|
1256
|
-
return t && t.split(`
|
|
1257
|
-
`).forEach(function(i) {
|
|
1258
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && Sn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
1259
|
-
}), e;
|
|
1260
|
-
}, Pe = Symbol("internals");
|
|
1261
|
-
function I(t) {
|
|
1262
|
-
return t && String(t).trim().toLowerCase();
|
|
1263
|
-
}
|
|
1264
|
-
function J(t) {
|
|
1265
|
-
return t === !1 || t == null ? t : a.isArray(t) ? t.map(J) : String(t);
|
|
1266
|
-
}
|
|
1267
|
-
function Rn(t) {
|
|
1268
|
-
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1269
|
-
let r;
|
|
1270
|
-
for (; r = n.exec(t); )
|
|
1271
|
-
e[r[1]] = r[2];
|
|
1272
|
-
return e;
|
|
1273
|
-
}
|
|
1274
|
-
const Cn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
1275
|
-
function ne(t, e, n, r, s) {
|
|
1276
|
-
if (a.isFunction(r))
|
|
1277
|
-
return r.call(this, e, n);
|
|
1278
|
-
if (s && (e = n), !!a.isString(e)) {
|
|
1279
|
-
if (a.isString(r))
|
|
1280
|
-
return e.indexOf(r) !== -1;
|
|
1281
|
-
if (a.isRegExp(r))
|
|
1282
|
-
return r.test(e);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
function An(t) {
|
|
1286
|
-
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
1287
|
-
}
|
|
1288
|
-
function On(t, e) {
|
|
1289
|
-
const n = a.toCamelCase(" " + e);
|
|
1290
|
-
["get", "set", "has"].forEach((r) => {
|
|
1291
|
-
Object.defineProperty(t, r + n, {
|
|
1292
|
-
value: function(s, o, i) {
|
|
1293
|
-
return this[r].call(this, e, s, o, i);
|
|
1294
|
-
},
|
|
1295
|
-
configurable: !0
|
|
1296
|
-
});
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
class O {
|
|
1300
|
-
constructor(e) {
|
|
1301
|
-
e && this.set(e);
|
|
1302
|
-
}
|
|
1303
|
-
set(e, n, r) {
|
|
1304
|
-
const s = this;
|
|
1305
|
-
function o(c, f, l) {
|
|
1306
|
-
const u = I(f);
|
|
1307
|
-
if (!u)
|
|
1308
|
-
throw new Error("header name must be a non-empty string");
|
|
1309
|
-
const d = a.findKey(s, u);
|
|
1310
|
-
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = J(c));
|
|
1311
|
-
}
|
|
1312
|
-
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
1313
|
-
if (a.isPlainObject(e) || e instanceof this.constructor)
|
|
1314
|
-
i(e, n);
|
|
1315
|
-
else if (a.isString(e) && (e = e.trim()) && !Cn(e))
|
|
1316
|
-
i(En(e), n);
|
|
1317
|
-
else if (a.isHeaders(e))
|
|
1318
|
-
for (const [c, f] of e.entries())
|
|
1319
|
-
o(f, c, r);
|
|
1320
|
-
else
|
|
1321
|
-
e != null && o(n, e, r);
|
|
1322
|
-
return this;
|
|
1323
|
-
}
|
|
1324
|
-
get(e, n) {
|
|
1325
|
-
if (e = I(e), e) {
|
|
1326
|
-
const r = a.findKey(this, e);
|
|
1327
|
-
if (r) {
|
|
1328
|
-
const s = this[r];
|
|
1329
|
-
if (!n)
|
|
1330
|
-
return s;
|
|
1331
|
-
if (n === !0)
|
|
1332
|
-
return Rn(s);
|
|
1333
|
-
if (a.isFunction(n))
|
|
1334
|
-
return n.call(this, s, r);
|
|
1335
|
-
if (a.isRegExp(n))
|
|
1336
|
-
return n.exec(s);
|
|
1337
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
has(e, n) {
|
|
1342
|
-
if (e = I(e), e) {
|
|
1343
|
-
const r = a.findKey(this, e);
|
|
1344
|
-
return !!(r && this[r] !== void 0 && (!n || ne(this, this[r], r, n)));
|
|
1345
|
-
}
|
|
1346
|
-
return !1;
|
|
1347
|
-
}
|
|
1348
|
-
delete(e, n) {
|
|
1349
|
-
const r = this;
|
|
1350
|
-
let s = !1;
|
|
1351
|
-
function o(i) {
|
|
1352
|
-
if (i = I(i), i) {
|
|
1353
|
-
const c = a.findKey(r, i);
|
|
1354
|
-
c && (!n || ne(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
return a.isArray(e) ? e.forEach(o) : o(e), s;
|
|
1358
|
-
}
|
|
1359
|
-
clear(e) {
|
|
1360
|
-
const n = Object.keys(this);
|
|
1361
|
-
let r = n.length, s = !1;
|
|
1362
|
-
for (; r--; ) {
|
|
1363
|
-
const o = n[r];
|
|
1364
|
-
(!e || ne(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
1365
|
-
}
|
|
1366
|
-
return s;
|
|
1367
|
-
}
|
|
1368
|
-
normalize(e) {
|
|
1369
|
-
const n = this, r = {};
|
|
1370
|
-
return a.forEach(this, (s, o) => {
|
|
1371
|
-
const i = a.findKey(r, o);
|
|
1372
|
-
if (i) {
|
|
1373
|
-
n[i] = J(s), delete n[o];
|
|
1374
|
-
return;
|
|
1375
|
-
}
|
|
1376
|
-
const c = e ? An(o) : String(o).trim();
|
|
1377
|
-
c !== o && delete n[o], n[c] = J(s), r[c] = !0;
|
|
1378
|
-
}), this;
|
|
1379
|
-
}
|
|
1380
|
-
concat(...e) {
|
|
1381
|
-
return this.constructor.concat(this, ...e);
|
|
1382
|
-
}
|
|
1383
|
-
toJSON(e) {
|
|
1384
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
1385
|
-
return a.forEach(this, (r, s) => {
|
|
1386
|
-
r != null && r !== !1 && (n[s] = e && a.isArray(r) ? r.join(", ") : r);
|
|
1387
|
-
}), n;
|
|
1388
|
-
}
|
|
1389
|
-
[Symbol.iterator]() {
|
|
1390
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1391
|
-
}
|
|
1392
|
-
toString() {
|
|
1393
|
-
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
|
|
1394
|
-
`);
|
|
1395
|
-
}
|
|
1396
|
-
get [Symbol.toStringTag]() {
|
|
1397
|
-
return "AxiosHeaders";
|
|
1398
|
-
}
|
|
1399
|
-
static from(e) {
|
|
1400
|
-
return e instanceof this ? e : new this(e);
|
|
1401
|
-
}
|
|
1402
|
-
static concat(e, ...n) {
|
|
1403
|
-
const r = new this(e);
|
|
1404
|
-
return n.forEach((s) => r.set(s)), r;
|
|
1405
|
-
}
|
|
1406
|
-
static accessor(e) {
|
|
1407
|
-
const r = (this[Pe] = this[Pe] = {
|
|
1408
|
-
accessors: {}
|
|
1409
|
-
}).accessors, s = this.prototype;
|
|
1410
|
-
function o(i) {
|
|
1411
|
-
const c = I(i);
|
|
1412
|
-
r[c] || (On(s, i), r[c] = !0);
|
|
1413
|
-
}
|
|
1414
|
-
return a.isArray(e) ? e.forEach(o) : o(e), this;
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1418
|
-
a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
|
|
1419
|
-
let n = e[0].toUpperCase() + e.slice(1);
|
|
1420
|
-
return {
|
|
1421
|
-
get: () => t,
|
|
1422
|
-
set(r) {
|
|
1423
|
-
this[n] = r;
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
});
|
|
1427
|
-
a.freezeMethods(O);
|
|
1428
|
-
function re(t, e) {
|
|
1429
|
-
const n = this || z, r = e || n, s = O.from(r.headers);
|
|
1430
|
-
let o = r.data;
|
|
1431
|
-
return a.forEach(t, function(c) {
|
|
1432
|
-
o = c.call(n, o, s.normalize(), e ? e.status : void 0);
|
|
1433
|
-
}), s.normalize(), o;
|
|
1434
|
-
}
|
|
1435
|
-
function Ye(t) {
|
|
1436
|
-
return !!(t && t.__CANCEL__);
|
|
1437
|
-
}
|
|
1438
|
-
function U(t, e, n) {
|
|
1439
|
-
m.call(this, t ?? "canceled", m.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
1440
|
-
}
|
|
1441
|
-
a.inherits(U, m, {
|
|
1442
|
-
__CANCEL__: !0
|
|
1443
|
-
});
|
|
1444
|
-
function et(t, e, n) {
|
|
1445
|
-
const r = n.config.validateStatus;
|
|
1446
|
-
!n.status || !r || r(n.status) ? t(n) : e(new m(
|
|
1447
|
-
"Request failed with status code " + n.status,
|
|
1448
|
-
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
1449
|
-
n.config,
|
|
1450
|
-
n.request,
|
|
1451
|
-
n
|
|
1452
|
-
));
|
|
1453
|
-
}
|
|
1454
|
-
function Tn(t) {
|
|
1455
|
-
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
1456
|
-
return e && e[1] || "";
|
|
1457
|
-
}
|
|
1458
|
-
function xn(t, e) {
|
|
1459
|
-
t = t || 10;
|
|
1460
|
-
const n = new Array(t), r = new Array(t);
|
|
1461
|
-
let s = 0, o = 0, i;
|
|
1462
|
-
return e = e !== void 0 ? e : 1e3, function(f) {
|
|
1463
|
-
const l = Date.now(), u = r[o];
|
|
1464
|
-
i || (i = l), n[s] = f, r[s] = l;
|
|
1465
|
-
let d = o, w = 0;
|
|
1466
|
-
for (; d !== s; )
|
|
1467
|
-
w += n[d++], d = d % t;
|
|
1468
|
-
if (s = (s + 1) % t, s === o && (o = (o + 1) % t), l - i < e)
|
|
1469
|
-
return;
|
|
1470
|
-
const b = u && l - u;
|
|
1471
|
-
return b ? Math.round(w * 1e3 / b) : void 0;
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
function Pn(t, e) {
|
|
1475
|
-
let n = 0, r = 1e3 / e, s, o;
|
|
1476
|
-
const i = (l, u = Date.now()) => {
|
|
1477
|
-
n = u, s = null, o && (clearTimeout(o), o = null), t.apply(null, l);
|
|
1478
|
-
};
|
|
1479
|
-
return [(...l) => {
|
|
1480
|
-
const u = Date.now(), d = u - n;
|
|
1481
|
-
d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
|
|
1482
|
-
o = null, i(s);
|
|
1483
|
-
}, r - d)));
|
|
1484
|
-
}, () => s && i(s)];
|
|
1485
|
-
}
|
|
1486
|
-
const W = (t, e, n = 3) => {
|
|
1487
|
-
let r = 0;
|
|
1488
|
-
const s = xn(50, 250);
|
|
1489
|
-
return Pn((o) => {
|
|
1490
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
|
|
1491
|
-
r = i;
|
|
1492
|
-
const d = {
|
|
1493
|
-
loaded: i,
|
|
1494
|
-
total: c,
|
|
1495
|
-
progress: c ? i / c : void 0,
|
|
1496
|
-
bytes: f,
|
|
1497
|
-
rate: l || void 0,
|
|
1498
|
-
estimated: l && c && u ? (c - i) / l : void 0,
|
|
1499
|
-
event: o,
|
|
1500
|
-
lengthComputable: c != null,
|
|
1501
|
-
[e ? "download" : "upload"]: !0
|
|
1502
|
-
};
|
|
1503
|
-
t(d);
|
|
1504
|
-
}, n);
|
|
1505
|
-
}, Ne = (t, e) => {
|
|
1506
|
-
const n = t != null;
|
|
1507
|
-
return [(r) => e[0]({
|
|
1508
|
-
lengthComputable: n,
|
|
1509
|
-
total: t,
|
|
1510
|
-
loaded: r
|
|
1511
|
-
}), e[1]];
|
|
1512
|
-
}, Fe = (t) => (...e) => a.asap(() => t(...e)), Nn = A.hasStandardBrowserEnv ? (
|
|
1513
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
1514
|
-
// whether the request URL is of the same origin as current location.
|
|
1515
|
-
function() {
|
|
1516
|
-
const e = A.navigator && /(msie|trident)/i.test(A.navigator.userAgent), n = document.createElement("a");
|
|
1517
|
-
let r;
|
|
1518
|
-
function s(o) {
|
|
1519
|
-
let i = o;
|
|
1520
|
-
return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
1521
|
-
href: n.href,
|
|
1522
|
-
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
1523
|
-
host: n.host,
|
|
1524
|
-
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
1525
|
-
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
1526
|
-
hostname: n.hostname,
|
|
1527
|
-
port: n.port,
|
|
1528
|
-
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
1529
|
-
};
|
|
1530
|
-
}
|
|
1531
|
-
return r = s(window.location.href), function(i) {
|
|
1532
|
-
const c = a.isString(i) ? s(i) : i;
|
|
1533
|
-
return c.protocol === r.protocol && c.host === r.host;
|
|
1534
|
-
};
|
|
1535
|
-
}()
|
|
1536
|
-
) : (
|
|
1537
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1538
|
-
/* @__PURE__ */ function() {
|
|
1539
|
-
return function() {
|
|
1540
|
-
return !0;
|
|
1541
|
-
};
|
|
1542
|
-
}()
|
|
1543
|
-
), Fn = A.hasStandardBrowserEnv ? (
|
|
1544
|
-
// Standard browser envs support document.cookie
|
|
1545
|
-
{
|
|
1546
|
-
write(t, e, n, r, s, o) {
|
|
1547
|
-
const i = [t + "=" + encodeURIComponent(e)];
|
|
1548
|
-
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1549
|
-
},
|
|
1550
|
-
read(t) {
|
|
1551
|
-
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
1552
|
-
return e ? decodeURIComponent(e[3]) : null;
|
|
1553
|
-
},
|
|
1554
|
-
remove(t) {
|
|
1555
|
-
this.write(t, "", Date.now() - 864e5);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
) : (
|
|
1559
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1560
|
-
{
|
|
1561
|
-
write() {
|
|
1562
|
-
},
|
|
1563
|
-
read() {
|
|
1564
|
-
return null;
|
|
1565
|
-
},
|
|
1566
|
-
remove() {
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
);
|
|
1570
|
-
function Bn(t) {
|
|
1571
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
1572
|
-
}
|
|
1573
|
-
function Ln(t, e) {
|
|
1574
|
-
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
1575
|
-
}
|
|
1576
|
-
function tt(t, e) {
|
|
1577
|
-
return t && !Bn(e) ? Ln(t, e) : e;
|
|
1578
|
-
}
|
|
1579
|
-
const Be = (t) => t instanceof O ? { ...t } : t;
|
|
1580
|
-
function k(t, e) {
|
|
1581
|
-
e = e || {};
|
|
1582
|
-
const n = {};
|
|
1583
|
-
function r(l, u, d) {
|
|
1584
|
-
return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
1585
|
-
}
|
|
1586
|
-
function s(l, u, d) {
|
|
1587
|
-
if (a.isUndefined(u)) {
|
|
1588
|
-
if (!a.isUndefined(l))
|
|
1589
|
-
return r(void 0, l, d);
|
|
1590
|
-
} else return r(l, u, d);
|
|
1591
|
-
}
|
|
1592
|
-
function o(l, u) {
|
|
1593
|
-
if (!a.isUndefined(u))
|
|
1594
|
-
return r(void 0, u);
|
|
1595
|
-
}
|
|
1596
|
-
function i(l, u) {
|
|
1597
|
-
if (a.isUndefined(u)) {
|
|
1598
|
-
if (!a.isUndefined(l))
|
|
1599
|
-
return r(void 0, l);
|
|
1600
|
-
} else return r(void 0, u);
|
|
1601
|
-
}
|
|
1602
|
-
function c(l, u, d) {
|
|
1603
|
-
if (d in e)
|
|
1604
|
-
return r(l, u);
|
|
1605
|
-
if (d in t)
|
|
1606
|
-
return r(void 0, l);
|
|
1607
|
-
}
|
|
1608
|
-
const f = {
|
|
1609
|
-
url: o,
|
|
1610
|
-
method: o,
|
|
1611
|
-
data: o,
|
|
1612
|
-
baseURL: i,
|
|
1613
|
-
transformRequest: i,
|
|
1614
|
-
transformResponse: i,
|
|
1615
|
-
paramsSerializer: i,
|
|
1616
|
-
timeout: i,
|
|
1617
|
-
timeoutMessage: i,
|
|
1618
|
-
withCredentials: i,
|
|
1619
|
-
withXSRFToken: i,
|
|
1620
|
-
adapter: i,
|
|
1621
|
-
responseType: i,
|
|
1622
|
-
xsrfCookieName: i,
|
|
1623
|
-
xsrfHeaderName: i,
|
|
1624
|
-
onUploadProgress: i,
|
|
1625
|
-
onDownloadProgress: i,
|
|
1626
|
-
decompress: i,
|
|
1627
|
-
maxContentLength: i,
|
|
1628
|
-
maxBodyLength: i,
|
|
1629
|
-
beforeRedirect: i,
|
|
1630
|
-
transport: i,
|
|
1631
|
-
httpAgent: i,
|
|
1632
|
-
httpsAgent: i,
|
|
1633
|
-
cancelToken: i,
|
|
1634
|
-
socketPath: i,
|
|
1635
|
-
responseEncoding: i,
|
|
1636
|
-
validateStatus: c,
|
|
1637
|
-
headers: (l, u) => s(Be(l), Be(u), !0)
|
|
1638
|
-
};
|
|
1639
|
-
return a.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
1640
|
-
const d = f[u] || s, w = d(t[u], e[u], u);
|
|
1641
|
-
a.isUndefined(w) && d !== c || (n[u] = w);
|
|
1642
|
-
}), n;
|
|
1643
|
-
}
|
|
1644
|
-
const nt = (t) => {
|
|
1645
|
-
const e = k({}, t);
|
|
1646
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = e;
|
|
1647
|
-
e.headers = i = O.from(i), e.url = Xe(tt(e.baseURL, e.url), t.params, t.paramsSerializer), c && i.set(
|
|
1648
|
-
"Authorization",
|
|
1649
|
-
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1650
|
-
);
|
|
1651
|
-
let f;
|
|
1652
|
-
if (a.isFormData(n)) {
|
|
1653
|
-
if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
|
|
1654
|
-
i.setContentType(void 0);
|
|
1655
|
-
else if ((f = i.getContentType()) !== !1) {
|
|
1656
|
-
const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1657
|
-
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
if (A.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(e)), r || r !== !1 && Nn(e.url))) {
|
|
1661
|
-
const l = s && o && Fn.read(o);
|
|
1662
|
-
l && i.set(s, l);
|
|
1663
|
-
}
|
|
1664
|
-
return e;
|
|
1665
|
-
}, _n = typeof XMLHttpRequest < "u", Dn = _n && function(t) {
|
|
1666
|
-
return new Promise(function(n, r) {
|
|
1667
|
-
const s = nt(t);
|
|
1668
|
-
let o = s.data;
|
|
1669
|
-
const i = O.from(s.headers).normalize();
|
|
1670
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, b, p;
|
|
1671
|
-
function y() {
|
|
1672
|
-
b && b(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1673
|
-
}
|
|
1674
|
-
let h = new XMLHttpRequest();
|
|
1675
|
-
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1676
|
-
function g() {
|
|
1677
|
-
if (!h)
|
|
1678
|
-
return;
|
|
1679
|
-
const R = O.from(
|
|
1680
|
-
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1681
|
-
), C = {
|
|
1682
|
-
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1683
|
-
status: h.status,
|
|
1684
|
-
statusText: h.statusText,
|
|
1685
|
-
headers: R,
|
|
1686
|
-
config: t,
|
|
1687
|
-
request: h
|
|
1688
|
-
};
|
|
1689
|
-
et(function(L) {
|
|
1690
|
-
n(L), y();
|
|
1691
|
-
}, function(L) {
|
|
1692
|
-
r(L), y();
|
|
1693
|
-
}, C), h = null;
|
|
1694
|
-
}
|
|
1695
|
-
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1696
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1697
|
-
}, h.onabort = function() {
|
|
1698
|
-
h && (r(new m("Request aborted", m.ECONNABORTED, t, h)), h = null);
|
|
1699
|
-
}, h.onerror = function() {
|
|
1700
|
-
r(new m("Network Error", m.ERR_NETWORK, t, h)), h = null;
|
|
1701
|
-
}, h.ontimeout = function() {
|
|
1702
|
-
let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1703
|
-
const C = s.transitional || Qe;
|
|
1704
|
-
s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new m(
|
|
1705
|
-
N,
|
|
1706
|
-
C.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1707
|
-
t,
|
|
1708
|
-
h
|
|
1709
|
-
)), h = null;
|
|
1710
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(N, C) {
|
|
1711
|
-
h.setRequestHeader(C, N);
|
|
1712
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = W(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, b] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (R) => {
|
|
1713
|
-
h && (r(!R || R.type ? new U(null, t, h) : R), h.abort(), h = null);
|
|
1714
|
-
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1715
|
-
const S = Tn(s.url);
|
|
1716
|
-
if (S && A.protocols.indexOf(S) === -1) {
|
|
1717
|
-
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, t));
|
|
1718
|
-
return;
|
|
1719
|
-
}
|
|
1720
|
-
h.send(o || null);
|
|
1721
|
-
});
|
|
1722
|
-
}, kn = (t, e) => {
|
|
1723
|
-
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1724
|
-
if (e || n) {
|
|
1725
|
-
let r = new AbortController(), s;
|
|
1726
|
-
const o = function(l) {
|
|
1727
|
-
if (!s) {
|
|
1728
|
-
s = !0, c();
|
|
1729
|
-
const u = l instanceof Error ? l : this.reason;
|
|
1730
|
-
r.abort(u instanceof m ? u : new U(u instanceof Error ? u.message : u));
|
|
1731
|
-
}
|
|
1732
|
-
};
|
|
1733
|
-
let i = e && setTimeout(() => {
|
|
1734
|
-
i = null, o(new m(`timeout ${e} of ms exceeded`, m.ETIMEDOUT));
|
|
1735
|
-
}, e);
|
|
1736
|
-
const c = () => {
|
|
1737
|
-
t && (i && clearTimeout(i), i = null, t.forEach((l) => {
|
|
1738
|
-
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1739
|
-
}), t = null);
|
|
1740
|
-
};
|
|
1741
|
-
t.forEach((l) => l.addEventListener("abort", o));
|
|
1742
|
-
const { signal: f } = r;
|
|
1743
|
-
return f.unsubscribe = () => a.asap(c), f;
|
|
1744
|
-
}
|
|
1745
|
-
}, vn = function* (t, e) {
|
|
1746
|
-
let n = t.byteLength;
|
|
1747
|
-
if (n < e) {
|
|
1748
|
-
yield t;
|
|
1749
|
-
return;
|
|
1750
|
-
}
|
|
1751
|
-
let r = 0, s;
|
|
1752
|
-
for (; r < n; )
|
|
1753
|
-
s = r + e, yield t.slice(r, s), r = s;
|
|
1754
|
-
}, Un = async function* (t, e) {
|
|
1755
|
-
for await (const n of In(t))
|
|
1756
|
-
yield* vn(n, e);
|
|
1757
|
-
}, In = async function* (t) {
|
|
1758
|
-
if (t[Symbol.asyncIterator]) {
|
|
1759
|
-
yield* t;
|
|
1760
|
-
return;
|
|
1761
|
-
}
|
|
1762
|
-
const e = t.getReader();
|
|
1763
|
-
try {
|
|
1764
|
-
for (; ; ) {
|
|
1765
|
-
const { done: n, value: r } = await e.read();
|
|
1766
|
-
if (n)
|
|
1767
|
-
break;
|
|
1768
|
-
yield r;
|
|
1769
|
-
}
|
|
1770
|
-
} finally {
|
|
1771
|
-
await e.cancel();
|
|
1772
|
-
}
|
|
1773
|
-
}, Le = (t, e, n, r) => {
|
|
1774
|
-
const s = Un(t, e);
|
|
1775
|
-
let o = 0, i, c = (f) => {
|
|
1776
|
-
i || (i = !0, r && r(f));
|
|
1777
|
-
};
|
|
1778
|
-
return new ReadableStream({
|
|
1779
|
-
async pull(f) {
|
|
1780
|
-
try {
|
|
1781
|
-
const { done: l, value: u } = await s.next();
|
|
1782
|
-
if (l) {
|
|
1783
|
-
c(), f.close();
|
|
1784
|
-
return;
|
|
1785
|
-
}
|
|
1786
|
-
let d = u.byteLength;
|
|
1787
|
-
if (n) {
|
|
1788
|
-
let w = o += d;
|
|
1789
|
-
n(w);
|
|
1790
|
-
}
|
|
1791
|
-
f.enqueue(new Uint8Array(u));
|
|
1792
|
-
} catch (l) {
|
|
1793
|
-
throw c(l), l;
|
|
1794
|
-
}
|
|
1795
|
-
},
|
|
1796
|
-
cancel(f) {
|
|
1797
|
-
return c(f), s.return();
|
|
1798
|
-
}
|
|
1799
|
-
}, {
|
|
1800
|
-
highWaterMark: 2
|
|
1801
|
-
});
|
|
1802
|
-
}, Y = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", rt = Y && typeof ReadableStream == "function", qn = Y && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), st = (t, ...e) => {
|
|
1803
|
-
try {
|
|
1804
|
-
return !!t(...e);
|
|
1805
|
-
} catch {
|
|
1806
|
-
return !1;
|
|
1807
|
-
}
|
|
1808
|
-
}, Mn = rt && st(() => {
|
|
1809
|
-
let t = !1;
|
|
1810
|
-
const e = new Request(A.origin, {
|
|
1811
|
-
body: new ReadableStream(),
|
|
1812
|
-
method: "POST",
|
|
1813
|
-
get duplex() {
|
|
1814
|
-
return t = !0, "half";
|
|
1815
|
-
}
|
|
1816
|
-
}).headers.has("Content-Type");
|
|
1817
|
-
return t && !e;
|
|
1818
|
-
}), _e = 64 * 1024, le = rt && st(() => a.isReadableStream(new Response("").body)), $ = {
|
|
1819
|
-
stream: le && ((t) => t.body)
|
|
1820
|
-
};
|
|
1821
|
-
Y && ((t) => {
|
|
1822
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1823
|
-
!$[e] && ($[e] = a.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1824
|
-
throw new m(`Response type '${e}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1825
|
-
});
|
|
1826
|
-
});
|
|
1827
|
-
})(new Response());
|
|
1828
|
-
const Hn = async (t) => {
|
|
1829
|
-
if (t == null)
|
|
1830
|
-
return 0;
|
|
1831
|
-
if (a.isBlob(t))
|
|
1832
|
-
return t.size;
|
|
1833
|
-
if (a.isSpecCompliantForm(t))
|
|
1834
|
-
return (await new Request(A.origin, {
|
|
1835
|
-
method: "POST",
|
|
1836
|
-
body: t
|
|
1837
|
-
}).arrayBuffer()).byteLength;
|
|
1838
|
-
if (a.isArrayBufferView(t) || a.isArrayBuffer(t))
|
|
1839
|
-
return t.byteLength;
|
|
1840
|
-
if (a.isURLSearchParams(t) && (t = t + ""), a.isString(t))
|
|
1841
|
-
return (await qn(t)).byteLength;
|
|
1842
|
-
}, zn = async (t, e) => {
|
|
1843
|
-
const n = a.toFiniteNumber(t.getContentLength());
|
|
1844
|
-
return n ?? Hn(e);
|
|
1845
|
-
}, jn = Y && (async (t) => {
|
|
1846
|
-
let {
|
|
1847
|
-
url: e,
|
|
1848
|
-
method: n,
|
|
1849
|
-
data: r,
|
|
1850
|
-
signal: s,
|
|
1851
|
-
cancelToken: o,
|
|
1852
|
-
timeout: i,
|
|
1853
|
-
onDownloadProgress: c,
|
|
1854
|
-
onUploadProgress: f,
|
|
1855
|
-
responseType: l,
|
|
1856
|
-
headers: u,
|
|
1857
|
-
withCredentials: d = "same-origin",
|
|
1858
|
-
fetchOptions: w
|
|
1859
|
-
} = nt(t);
|
|
1860
|
-
l = l ? (l + "").toLowerCase() : "text";
|
|
1861
|
-
let b = kn([s, o && o.toAbortSignal()], i), p;
|
|
1862
|
-
const y = b && b.unsubscribe && (() => {
|
|
1863
|
-
b.unsubscribe();
|
|
1864
|
-
});
|
|
1865
|
-
let h;
|
|
1866
|
-
try {
|
|
1867
|
-
if (f && Mn && n !== "get" && n !== "head" && (h = await zn(u, r)) !== 0) {
|
|
1868
|
-
let C = new Request(e, {
|
|
1869
|
-
method: "POST",
|
|
1870
|
-
body: r,
|
|
1871
|
-
duplex: "half"
|
|
1872
|
-
}), F;
|
|
1873
|
-
if (a.isFormData(r) && (F = C.headers.get("content-type")) && u.setContentType(F), C.body) {
|
|
1874
|
-
const [L, j] = Ne(
|
|
1875
|
-
h,
|
|
1876
|
-
W(Fe(f))
|
|
1877
|
-
);
|
|
1878
|
-
r = Le(C.body, _e, L, j);
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
a.isString(d) || (d = d ? "include" : "omit");
|
|
1882
|
-
const g = "credentials" in Request.prototype;
|
|
1883
|
-
p = new Request(e, {
|
|
1884
|
-
...w,
|
|
1885
|
-
signal: b,
|
|
1886
|
-
method: n.toUpperCase(),
|
|
1887
|
-
headers: u.normalize().toJSON(),
|
|
1888
|
-
body: r,
|
|
1889
|
-
duplex: "half",
|
|
1890
|
-
credentials: g ? d : void 0
|
|
1891
|
-
});
|
|
1892
|
-
let S = await fetch(p);
|
|
1893
|
-
const R = le && (l === "stream" || l === "response");
|
|
1894
|
-
if (le && (c || R && y)) {
|
|
1895
|
-
const C = {};
|
|
1896
|
-
["status", "statusText", "headers"].forEach((be) => {
|
|
1897
|
-
C[be] = S[be];
|
|
1898
|
-
});
|
|
1899
|
-
const F = a.toFiniteNumber(S.headers.get("content-length")), [L, j] = c && Ne(
|
|
1900
|
-
F,
|
|
1901
|
-
W(Fe(c), !0)
|
|
1902
|
-
) || [];
|
|
1903
|
-
S = new Response(
|
|
1904
|
-
Le(S.body, _e, L, () => {
|
|
1905
|
-
j && j(), y && y();
|
|
1906
|
-
}),
|
|
1907
|
-
C
|
|
1908
|
-
);
|
|
1909
|
-
}
|
|
1910
|
-
l = l || "text";
|
|
1911
|
-
let N = await $[a.findKey($, l) || "text"](S, t);
|
|
1912
|
-
return !R && y && y(), await new Promise((C, F) => {
|
|
1913
|
-
et(C, F, {
|
|
1914
|
-
data: N,
|
|
1915
|
-
headers: O.from(S.headers),
|
|
1916
|
-
status: S.status,
|
|
1917
|
-
statusText: S.statusText,
|
|
1918
|
-
config: t,
|
|
1919
|
-
request: p
|
|
1920
|
-
});
|
|
1921
|
-
});
|
|
1922
|
-
} catch (g) {
|
|
1923
|
-
throw y && y(), g && g.name === "TypeError" && /fetch/i.test(g.message) ? Object.assign(
|
|
1924
|
-
new m("Network Error", m.ERR_NETWORK, t, p),
|
|
1925
|
-
{
|
|
1926
|
-
cause: g.cause || g
|
|
1927
|
-
}
|
|
1928
|
-
) : m.from(g, g && g.code, t, p);
|
|
1929
|
-
}
|
|
1930
|
-
}), ue = {
|
|
1931
|
-
http: rn,
|
|
1932
|
-
xhr: Dn,
|
|
1933
|
-
fetch: jn
|
|
1934
|
-
};
|
|
1935
|
-
a.forEach(ue, (t, e) => {
|
|
1936
|
-
if (t) {
|
|
1937
|
-
try {
|
|
1938
|
-
Object.defineProperty(t, "name", { value: e });
|
|
1939
|
-
} catch {
|
|
1940
|
-
}
|
|
1941
|
-
Object.defineProperty(t, "adapterName", { value: e });
|
|
1942
|
-
}
|
|
1943
|
-
});
|
|
1944
|
-
const De = (t) => `- ${t}`, Gn = (t) => a.isFunction(t) || t === null || t === !1, ot = {
|
|
1945
|
-
getAdapter: (t) => {
|
|
1946
|
-
t = a.isArray(t) ? t : [t];
|
|
1947
|
-
const { length: e } = t;
|
|
1948
|
-
let n, r;
|
|
1949
|
-
const s = {};
|
|
1950
|
-
for (let o = 0; o < e; o++) {
|
|
1951
|
-
n = t[o];
|
|
1952
|
-
let i;
|
|
1953
|
-
if (r = n, !Gn(n) && (r = ue[(i = String(n)).toLowerCase()], r === void 0))
|
|
1954
|
-
throw new m(`Unknown adapter '${i}'`);
|
|
1955
|
-
if (r)
|
|
1956
|
-
break;
|
|
1957
|
-
s[i || "#" + o] = r;
|
|
1958
|
-
}
|
|
1959
|
-
if (!r) {
|
|
1960
|
-
const o = Object.entries(s).map(
|
|
1961
|
-
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1962
|
-
);
|
|
1963
|
-
let i = e ? o.length > 1 ? `since :
|
|
1964
|
-
` + o.map(De).join(`
|
|
1965
|
-
`) : " " + De(o[0]) : "as no adapter specified";
|
|
1966
|
-
throw new m(
|
|
1967
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
1968
|
-
"ERR_NOT_SUPPORT"
|
|
1969
|
-
);
|
|
1970
|
-
}
|
|
1971
|
-
return r;
|
|
1972
|
-
},
|
|
1973
|
-
adapters: ue
|
|
1974
|
-
};
|
|
1975
|
-
function se(t) {
|
|
1976
|
-
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1977
|
-
throw new U(null, t);
|
|
1978
|
-
}
|
|
1979
|
-
function ke(t) {
|
|
1980
|
-
return se(t), t.headers = O.from(t.headers), t.data = re.call(
|
|
1981
|
-
t,
|
|
1982
|
-
t.transformRequest
|
|
1983
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ot.getAdapter(t.adapter || z.adapter)(t).then(function(r) {
|
|
1984
|
-
return se(t), r.data = re.call(
|
|
1985
|
-
t,
|
|
1986
|
-
t.transformResponse,
|
|
1987
|
-
r
|
|
1988
|
-
), r.headers = O.from(r.headers), r;
|
|
1989
|
-
}, function(r) {
|
|
1990
|
-
return Ye(r) || (se(t), r && r.response && (r.response.data = re.call(
|
|
1991
|
-
t,
|
|
1992
|
-
t.transformResponse,
|
|
1993
|
-
r.response
|
|
1994
|
-
), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
const it = "1.7.7", we = {};
|
|
1998
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1999
|
-
we[t] = function(r) {
|
|
2000
|
-
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
2001
|
-
};
|
|
2002
|
-
});
|
|
2003
|
-
const ve = {};
|
|
2004
|
-
we.transitional = function(e, n, r) {
|
|
2005
|
-
function s(o, i) {
|
|
2006
|
-
return "[Axios v" + it + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
2007
|
-
}
|
|
2008
|
-
return (o, i, c) => {
|
|
2009
|
-
if (e === !1)
|
|
2010
|
-
throw new m(
|
|
2011
|
-
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
2012
|
-
m.ERR_DEPRECATED
|
|
2013
|
-
);
|
|
2014
|
-
return n && !ve[i] && (ve[i] = !0, console.warn(
|
|
2015
|
-
s(
|
|
2016
|
-
i,
|
|
2017
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
2018
|
-
)
|
|
2019
|
-
)), e ? e(o, i, c) : !0;
|
|
2020
|
-
};
|
|
2021
|
-
};
|
|
2022
|
-
function Jn(t, e, n) {
|
|
2023
|
-
if (typeof t != "object")
|
|
2024
|
-
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
2025
|
-
const r = Object.keys(t);
|
|
2026
|
-
let s = r.length;
|
|
2027
|
-
for (; s-- > 0; ) {
|
|
2028
|
-
const o = r[s], i = e[o];
|
|
2029
|
-
if (i) {
|
|
2030
|
-
const c = t[o], f = c === void 0 || i(c, o, t);
|
|
2031
|
-
if (f !== !0)
|
|
2032
|
-
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
2033
|
-
continue;
|
|
2034
|
-
}
|
|
2035
|
-
if (n !== !0)
|
|
2036
|
-
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
const fe = {
|
|
2040
|
-
assertOptions: Jn,
|
|
2041
|
-
validators: we
|
|
2042
|
-
}, B = fe.validators;
|
|
2043
|
-
class D {
|
|
2044
|
-
constructor(e) {
|
|
2045
|
-
this.defaults = e, this.interceptors = {
|
|
2046
|
-
request: new xe(),
|
|
2047
|
-
response: new xe()
|
|
2048
|
-
};
|
|
2049
|
-
}
|
|
2050
|
-
/**
|
|
2051
|
-
* Dispatch a request
|
|
2052
|
-
*
|
|
2053
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2054
|
-
* @param {?Object} config
|
|
2055
|
-
*
|
|
2056
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
2057
|
-
*/
|
|
2058
|
-
async request(e, n) {
|
|
2059
|
-
try {
|
|
2060
|
-
return await this._request(e, n);
|
|
2061
|
-
} catch (r) {
|
|
2062
|
-
if (r instanceof Error) {
|
|
2063
|
-
let s;
|
|
2064
|
-
Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
|
|
2065
|
-
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
2066
|
-
try {
|
|
2067
|
-
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
2068
|
-
` + o) : r.stack = o;
|
|
2069
|
-
} catch {
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
throw r;
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
_request(e, n) {
|
|
2076
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = k(this.defaults, n);
|
|
2077
|
-
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
2078
|
-
r !== void 0 && fe.assertOptions(r, {
|
|
2079
|
-
silentJSONParsing: B.transitional(B.boolean),
|
|
2080
|
-
forcedJSONParsing: B.transitional(B.boolean),
|
|
2081
|
-
clarifyTimeoutError: B.transitional(B.boolean)
|
|
2082
|
-
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
2083
|
-
serialize: s
|
|
2084
|
-
} : fe.assertOptions(s, {
|
|
2085
|
-
encode: B.function,
|
|
2086
|
-
serialize: B.function
|
|
2087
|
-
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2088
|
-
let i = o && a.merge(
|
|
2089
|
-
o.common,
|
|
2090
|
-
o[n.method]
|
|
2091
|
-
);
|
|
2092
|
-
o && a.forEach(
|
|
2093
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2094
|
-
(p) => {
|
|
2095
|
-
delete o[p];
|
|
2096
|
-
}
|
|
2097
|
-
), n.headers = O.concat(i, o);
|
|
2098
|
-
const c = [];
|
|
2099
|
-
let f = !0;
|
|
2100
|
-
this.interceptors.request.forEach(function(y) {
|
|
2101
|
-
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
2102
|
-
});
|
|
2103
|
-
const l = [];
|
|
2104
|
-
this.interceptors.response.forEach(function(y) {
|
|
2105
|
-
l.push(y.fulfilled, y.rejected);
|
|
2106
|
-
});
|
|
2107
|
-
let u, d = 0, w;
|
|
2108
|
-
if (!f) {
|
|
2109
|
-
const p = [ke.bind(this), void 0];
|
|
2110
|
-
for (p.unshift.apply(p, c), p.push.apply(p, l), w = p.length, u = Promise.resolve(n); d < w; )
|
|
2111
|
-
u = u.then(p[d++], p[d++]);
|
|
2112
|
-
return u;
|
|
2113
|
-
}
|
|
2114
|
-
w = c.length;
|
|
2115
|
-
let b = n;
|
|
2116
|
-
for (d = 0; d < w; ) {
|
|
2117
|
-
const p = c[d++], y = c[d++];
|
|
2118
|
-
try {
|
|
2119
|
-
b = p(b);
|
|
2120
|
-
} catch (h) {
|
|
2121
|
-
y.call(this, h);
|
|
2122
|
-
break;
|
|
2123
|
-
}
|
|
2124
|
-
}
|
|
2125
|
-
try {
|
|
2126
|
-
u = ke.call(this, b);
|
|
2127
|
-
} catch (p) {
|
|
2128
|
-
return Promise.reject(p);
|
|
2129
|
-
}
|
|
2130
|
-
for (d = 0, w = l.length; d < w; )
|
|
2131
|
-
u = u.then(l[d++], l[d++]);
|
|
2132
|
-
return u;
|
|
2133
|
-
}
|
|
2134
|
-
getUri(e) {
|
|
2135
|
-
e = k(this.defaults, e);
|
|
2136
|
-
const n = tt(e.baseURL, e.url);
|
|
2137
|
-
return Xe(n, e.params, e.paramsSerializer);
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
a.forEach(["delete", "get", "head", "options"], function(e) {
|
|
2141
|
-
D.prototype[e] = function(n, r) {
|
|
2142
|
-
return this.request(k(r || {}, {
|
|
2143
|
-
method: e,
|
|
2144
|
-
url: n,
|
|
2145
|
-
data: (r || {}).data
|
|
2146
|
-
}));
|
|
2147
|
-
};
|
|
2148
|
-
});
|
|
2149
|
-
a.forEach(["post", "put", "patch"], function(e) {
|
|
2150
|
-
function n(r) {
|
|
2151
|
-
return function(o, i, c) {
|
|
2152
|
-
return this.request(k(c || {}, {
|
|
2153
|
-
method: e,
|
|
2154
|
-
headers: r ? {
|
|
2155
|
-
"Content-Type": "multipart/form-data"
|
|
2156
|
-
} : {},
|
|
2157
|
-
url: o,
|
|
2158
|
-
data: i
|
|
2159
|
-
}));
|
|
2160
|
-
};
|
|
2161
|
-
}
|
|
2162
|
-
D.prototype[e] = n(), D.prototype[e + "Form"] = n(!0);
|
|
2163
|
-
});
|
|
2164
|
-
class ge {
|
|
2165
|
-
constructor(e) {
|
|
2166
|
-
if (typeof e != "function")
|
|
2167
|
-
throw new TypeError("executor must be a function.");
|
|
2168
|
-
let n;
|
|
2169
|
-
this.promise = new Promise(function(o) {
|
|
2170
|
-
n = o;
|
|
2171
|
-
});
|
|
2172
|
-
const r = this;
|
|
2173
|
-
this.promise.then((s) => {
|
|
2174
|
-
if (!r._listeners) return;
|
|
2175
|
-
let o = r._listeners.length;
|
|
2176
|
-
for (; o-- > 0; )
|
|
2177
|
-
r._listeners[o](s);
|
|
2178
|
-
r._listeners = null;
|
|
2179
|
-
}), this.promise.then = (s) => {
|
|
2180
|
-
let o;
|
|
2181
|
-
const i = new Promise((c) => {
|
|
2182
|
-
r.subscribe(c), o = c;
|
|
2183
|
-
}).then(s);
|
|
2184
|
-
return i.cancel = function() {
|
|
2185
|
-
r.unsubscribe(o);
|
|
2186
|
-
}, i;
|
|
2187
|
-
}, e(function(o, i, c) {
|
|
2188
|
-
r.reason || (r.reason = new U(o, i, c), n(r.reason));
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
/**
|
|
2192
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
2193
|
-
*/
|
|
2194
|
-
throwIfRequested() {
|
|
2195
|
-
if (this.reason)
|
|
2196
|
-
throw this.reason;
|
|
2197
|
-
}
|
|
2198
|
-
/**
|
|
2199
|
-
* Subscribe to the cancel signal
|
|
2200
|
-
*/
|
|
2201
|
-
subscribe(e) {
|
|
2202
|
-
if (this.reason) {
|
|
2203
|
-
e(this.reason);
|
|
2204
|
-
return;
|
|
2205
|
-
}
|
|
2206
|
-
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
2207
|
-
}
|
|
2208
|
-
/**
|
|
2209
|
-
* Unsubscribe from the cancel signal
|
|
2210
|
-
*/
|
|
2211
|
-
unsubscribe(e) {
|
|
2212
|
-
if (!this._listeners)
|
|
2213
|
-
return;
|
|
2214
|
-
const n = this._listeners.indexOf(e);
|
|
2215
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
2216
|
-
}
|
|
2217
|
-
toAbortSignal() {
|
|
2218
|
-
const e = new AbortController(), n = (r) => {
|
|
2219
|
-
e.abort(r);
|
|
2220
|
-
};
|
|
2221
|
-
return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
|
|
2222
|
-
}
|
|
2223
|
-
/**
|
|
2224
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2225
|
-
* cancels the `CancelToken`.
|
|
2226
|
-
*/
|
|
2227
|
-
static source() {
|
|
2228
|
-
let e;
|
|
2229
|
-
return {
|
|
2230
|
-
token: new ge(function(s) {
|
|
2231
|
-
e = s;
|
|
2232
|
-
}),
|
|
2233
|
-
cancel: e
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
function Vn(t) {
|
|
2238
|
-
return function(n) {
|
|
2239
|
-
return t.apply(null, n);
|
|
2240
|
-
};
|
|
2241
|
-
}
|
|
2242
|
-
function Wn(t) {
|
|
2243
|
-
return a.isObject(t) && t.isAxiosError === !0;
|
|
2244
|
-
}
|
|
2245
|
-
const de = {
|
|
2246
|
-
Continue: 100,
|
|
2247
|
-
SwitchingProtocols: 101,
|
|
2248
|
-
Processing: 102,
|
|
2249
|
-
EarlyHints: 103,
|
|
2250
|
-
Ok: 200,
|
|
2251
|
-
Created: 201,
|
|
2252
|
-
Accepted: 202,
|
|
2253
|
-
NonAuthoritativeInformation: 203,
|
|
2254
|
-
NoContent: 204,
|
|
2255
|
-
ResetContent: 205,
|
|
2256
|
-
PartialContent: 206,
|
|
2257
|
-
MultiStatus: 207,
|
|
2258
|
-
AlreadyReported: 208,
|
|
2259
|
-
ImUsed: 226,
|
|
2260
|
-
MultipleChoices: 300,
|
|
2261
|
-
MovedPermanently: 301,
|
|
2262
|
-
Found: 302,
|
|
2263
|
-
SeeOther: 303,
|
|
2264
|
-
NotModified: 304,
|
|
2265
|
-
UseProxy: 305,
|
|
2266
|
-
Unused: 306,
|
|
2267
|
-
TemporaryRedirect: 307,
|
|
2268
|
-
PermanentRedirect: 308,
|
|
2269
|
-
BadRequest: 400,
|
|
2270
|
-
Unauthorized: 401,
|
|
2271
|
-
PaymentRequired: 402,
|
|
2272
|
-
Forbidden: 403,
|
|
2273
|
-
NotFound: 404,
|
|
2274
|
-
MethodNotAllowed: 405,
|
|
2275
|
-
NotAcceptable: 406,
|
|
2276
|
-
ProxyAuthenticationRequired: 407,
|
|
2277
|
-
RequestTimeout: 408,
|
|
2278
|
-
Conflict: 409,
|
|
2279
|
-
Gone: 410,
|
|
2280
|
-
LengthRequired: 411,
|
|
2281
|
-
PreconditionFailed: 412,
|
|
2282
|
-
PayloadTooLarge: 413,
|
|
2283
|
-
UriTooLong: 414,
|
|
2284
|
-
UnsupportedMediaType: 415,
|
|
2285
|
-
RangeNotSatisfiable: 416,
|
|
2286
|
-
ExpectationFailed: 417,
|
|
2287
|
-
ImATeapot: 418,
|
|
2288
|
-
MisdirectedRequest: 421,
|
|
2289
|
-
UnprocessableEntity: 422,
|
|
2290
|
-
Locked: 423,
|
|
2291
|
-
FailedDependency: 424,
|
|
2292
|
-
TooEarly: 425,
|
|
2293
|
-
UpgradeRequired: 426,
|
|
2294
|
-
PreconditionRequired: 428,
|
|
2295
|
-
TooManyRequests: 429,
|
|
2296
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
2297
|
-
UnavailableForLegalReasons: 451,
|
|
2298
|
-
InternalServerError: 500,
|
|
2299
|
-
NotImplemented: 501,
|
|
2300
|
-
BadGateway: 502,
|
|
2301
|
-
ServiceUnavailable: 503,
|
|
2302
|
-
GatewayTimeout: 504,
|
|
2303
|
-
HttpVersionNotSupported: 505,
|
|
2304
|
-
VariantAlsoNegotiates: 506,
|
|
2305
|
-
InsufficientStorage: 507,
|
|
2306
|
-
LoopDetected: 508,
|
|
2307
|
-
NotExtended: 510,
|
|
2308
|
-
NetworkAuthenticationRequired: 511
|
|
2309
|
-
};
|
|
2310
|
-
Object.entries(de).forEach(([t, e]) => {
|
|
2311
|
-
de[e] = t;
|
|
2312
|
-
});
|
|
2313
|
-
function at(t) {
|
|
2314
|
-
const e = new D(t), n = Ie(D.prototype.request, e);
|
|
2315
|
-
return a.extend(n, D.prototype, e, { allOwnKeys: !0 }), a.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2316
|
-
return at(k(t, s));
|
|
2317
|
-
}, n;
|
|
2318
|
-
}
|
|
2319
|
-
const E = at(z);
|
|
2320
|
-
E.Axios = D;
|
|
2321
|
-
E.CanceledError = U;
|
|
2322
|
-
E.CancelToken = ge;
|
|
2323
|
-
E.isCancel = Ye;
|
|
2324
|
-
E.VERSION = it;
|
|
2325
|
-
E.toFormData = Z;
|
|
2326
|
-
E.AxiosError = m;
|
|
2327
|
-
E.Cancel = E.CanceledError;
|
|
2328
|
-
E.all = function(e) {
|
|
2329
|
-
return Promise.all(e);
|
|
2330
|
-
};
|
|
2331
|
-
E.spread = Vn;
|
|
2332
|
-
E.isAxiosError = Wn;
|
|
2333
|
-
E.mergeConfig = k;
|
|
2334
|
-
E.AxiosHeaders = O;
|
|
2335
|
-
E.formToJSON = (t) => Ze(a.isHTMLForm(t) ? new FormData(t) : t);
|
|
2336
|
-
E.getAdapter = ot.getAdapter;
|
|
2337
|
-
E.HttpStatusCode = de;
|
|
2338
|
-
E.default = E;
|
|
2339
|
-
export {
|
|
2340
|
-
mt as E,
|
|
2341
|
-
yt as P,
|
|
2342
|
-
oe as a,
|
|
2343
|
-
Yn as b,
|
|
2344
|
-
Qn as c,
|
|
2345
|
-
Ue as d,
|
|
2346
|
-
E as e,
|
|
2347
|
-
V as f,
|
|
2348
|
-
pe as g,
|
|
2349
|
-
er as h,
|
|
2350
|
-
Zn as i,
|
|
2351
|
-
tr as j,
|
|
2352
|
-
rr as k,
|
|
2353
|
-
ee as l,
|
|
2354
|
-
dt as m,
|
|
2355
|
-
pt as n,
|
|
2356
|
-
sr as o,
|
|
2357
|
-
wt as p,
|
|
2358
|
-
or as q,
|
|
2359
|
-
ir as r,
|
|
2360
|
-
nr as s,
|
|
2361
|
-
q as t
|
|
2362
|
-
};
|