@das-fed/utils 6.4.0-hot.6 → 6.4.0-hot.61
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/api-services/i18n/index.d.ts +53 -0
- package/api-services/i18n/index.js +27 -0
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +2182 -1656
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +2314 -1818
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +2314 -1818
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +2298 -1820
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +2295 -1817
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +2305 -1809
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +2314 -1818
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.d.ts +1 -0
- package/api-services/modules/file/index.js +3426 -156
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +2314 -1818
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2106 -1623
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +2309 -1830
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +2302 -1806
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +2314 -1818
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +2295 -1817
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +2295 -1817
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +2321 -1825
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +2349 -1871
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +2295 -1817
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +2304 -1808
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +2303 -1807
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +2301 -1805
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +2314 -1818
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +2301 -1819
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +2349 -1871
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +11 -3
- package/common-info/index.js +113 -56
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +893 -604
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +220 -104
- package/common-tools/calc-text-width/index.d.ts +1 -0
- package/common-tools/calc-text-width/index.js +10 -0
- package/common-tools/extract-file-name/index.d.ts +1 -0
- package/common-tools/extract-file-name/index.js +1731 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/index.d.ts +6 -0
- package/common-tools/get-file-extension/index.js +7 -0
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.d.ts +4 -0
- package/common-tools/index.js +4 -0
- package/common-tools/nest-tree-format/index.d.ts +1 -1
- package/common-tools/nest-tree-format/index.js +15 -15
- package/common-tools/setHtmlMinWH/index.js +4 -8
- package/common-tools/update-browser-title/index.d.ts +1 -0
- package/common-tools/update-browser-title/index.js +12 -0
- package/create-api-service/i18n/index.d.ts +33 -0
- package/create-api-service/i18n/index.js +15 -0
- package/create-api-service/index.d.ts +3 -1
- package/create-api-service/index.js +2300 -1804
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +1 -3
- package/create-api-service/sso/index.js +1244 -858
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1436 -1153
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/directive/hoverInside/index.d.ts +1 -1
- package/dom-check-in/index.js +2 -2
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +9 -2
- package/hooks/use-get-auth/index.d.ts +1 -1
- package/hooks/use-get-auth/index.js +30 -30
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -3
- package/pinyin-first-character/index.js +19804 -20879
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- package/style/index.js.gz +0 -0
- package/style/math.d.ts +4 -4
- package/token-tools/index.d.ts +6 -6
- package/token-tools/index.js +8 -84
- package/use-low-code/index.js +13 -13
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/vue/hooks/use-model-value/index.d.ts +5 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
- package/token-tools/index.js.gz +0 -0
|
@@ -1,47 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { currentLang as Ze } from "@das-fed/web/packages/i18n/index";
|
|
2
|
+
import { getProjectInfo as Ye } from "@das-fed/utils/common-info";
|
|
3
|
+
import { getConfig as et } from "@das-fed/utils/config";
|
|
4
|
+
function Ce(e, t) {
|
|
4
5
|
return function() {
|
|
5
6
|
return e.apply(t, arguments);
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
|
-
const { toString:
|
|
9
|
-
const n =
|
|
9
|
+
const { toString: tt } = Object.prototype, { getPrototypeOf: ue } = Object, { iterator: X, toStringTag: Ne } = Symbol, G = /* @__PURE__ */ ((e) => (t) => {
|
|
10
|
+
const n = tt.call(t);
|
|
10
11
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
12
|
-
function
|
|
13
|
-
return e !== null && !
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => G(t) === e), Q = (e) => (t) => typeof t === e, { isArray: D } = Array, q = Q("undefined");
|
|
13
|
+
function I(e) {
|
|
14
|
+
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
16
|
+
const Pe = C("ArrayBuffer");
|
|
17
|
+
function nt(e) {
|
|
17
18
|
let t;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
19
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
|
|
19
20
|
}
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
21
|
+
const rt = Q("string"), A = Q("function"), Fe = Q("number"), H = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, J = (e) => {
|
|
22
|
+
if (G(e) !== "object")
|
|
23
|
+
return !1;
|
|
24
|
+
const t = ue(e);
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(X in e);
|
|
26
|
+
}, ot = (e) => {
|
|
27
|
+
if (!H(e) || I(e))
|
|
28
|
+
return !1;
|
|
29
|
+
try {
|
|
30
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
31
|
+
} catch {
|
|
22
32
|
return !1;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, Me = T("Date"), ze = T("File"), Je = T("Blob"), Ve = T("FileList"), We = (e) => q(e) && R(e.pipe), $e = (e) => {
|
|
33
|
+
}
|
|
34
|
+
}, it = C("Date"), at = C("File"), ct = C("Blob"), lt = C("FileList"), ut = (e) => H(e) && A(e.pipe), ft = (e) => {
|
|
26
35
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
28
|
-
t === "object" &&
|
|
29
|
-
},
|
|
30
|
-
function
|
|
36
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = G(e)) === "formdata" || // detect form-data instance
|
|
37
|
+
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
38
|
+
}, dt = C("URLSearchParams"), [pt, ht, mt, yt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
|
+
function M(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
40
|
if (e === null || typeof e > "u")
|
|
32
41
|
return;
|
|
33
42
|
let r, s;
|
|
34
|
-
if (typeof e != "object" && (e = [e]),
|
|
43
|
+
if (typeof e != "object" && (e = [e]), D(e))
|
|
35
44
|
for (r = 0, s = e.length; r < s; r++)
|
|
36
45
|
t.call(null, e[r], r, e);
|
|
37
46
|
else {
|
|
47
|
+
if (I(e))
|
|
48
|
+
return;
|
|
38
49
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
39
50
|
let c;
|
|
40
51
|
for (r = 0; r < i; r++)
|
|
41
52
|
c = o[r], t.call(null, e[c], c, e);
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
|
-
function
|
|
55
|
+
function _e(e, t) {
|
|
56
|
+
if (I(e))
|
|
57
|
+
return null;
|
|
45
58
|
t = t.toLowerCase();
|
|
46
59
|
const n = Object.keys(e);
|
|
47
60
|
let r = n.length, s;
|
|
@@ -50,75 +63,75 @@ function me(e, t) {
|
|
|
50
63
|
return s;
|
|
51
64
|
return null;
|
|
52
65
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
const { caseless: e } =
|
|
56
|
-
const o = e &&
|
|
57
|
-
|
|
66
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ue = (e) => !q(e) && e !== U;
|
|
67
|
+
function se() {
|
|
68
|
+
const { caseless: e } = Ue(this) && this || {}, t = {}, n = (r, s) => {
|
|
69
|
+
const o = e && _e(t, s) || s;
|
|
70
|
+
J(t[o]) && J(r) ? t[o] = se(t[o], r) : J(r) ? t[o] = se({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
|
|
58
71
|
};
|
|
59
72
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
60
|
-
arguments[r] &&
|
|
73
|
+
arguments[r] && M(arguments[r], n);
|
|
61
74
|
return t;
|
|
62
75
|
}
|
|
63
|
-
const
|
|
64
|
-
n &&
|
|
65
|
-
}, { allOwnKeys: r }), e),
|
|
76
|
+
const wt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
|
|
77
|
+
n && A(s) ? e[o] = Ce(s, n) : e[o] = s;
|
|
78
|
+
}, { allOwnKeys: r }), e), Et = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
|
|
66
79
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
80
|
value: t.prototype
|
|
68
81
|
}), n && Object.assign(e.prototype, n);
|
|
69
|
-
},
|
|
82
|
+
}, Rt = (e, t, n, r) => {
|
|
70
83
|
let s, o, i;
|
|
71
84
|
const c = {};
|
|
72
85
|
if (t = t || {}, e == null) return t;
|
|
73
86
|
do {
|
|
74
87
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
75
88
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
76
|
-
e = n !== !1 &&
|
|
89
|
+
e = n !== !1 && ue(e);
|
|
77
90
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
91
|
return t;
|
|
79
|
-
},
|
|
92
|
+
}, St = (e, t, n) => {
|
|
80
93
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
94
|
const r = e.indexOf(t, n);
|
|
82
95
|
return r !== -1 && r === n;
|
|
83
|
-
},
|
|
96
|
+
}, Ot = (e) => {
|
|
84
97
|
if (!e) return null;
|
|
85
|
-
if (
|
|
98
|
+
if (D(e)) return e;
|
|
86
99
|
let t = e.length;
|
|
87
|
-
if (!
|
|
100
|
+
if (!Fe(t)) return null;
|
|
88
101
|
const n = new Array(t);
|
|
89
102
|
for (; t-- > 0; )
|
|
90
103
|
n[t] = e[t];
|
|
91
104
|
return n;
|
|
92
|
-
},
|
|
93
|
-
const r = (e && e[
|
|
105
|
+
}, Tt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), At = (e, t) => {
|
|
106
|
+
const r = (e && e[X]).call(e);
|
|
94
107
|
let s;
|
|
95
108
|
for (; (s = r.next()) && !s.done; ) {
|
|
96
109
|
const o = s.value;
|
|
97
110
|
t.call(e, o[0], o[1]);
|
|
98
111
|
}
|
|
99
|
-
},
|
|
112
|
+
}, xt = (e, t) => {
|
|
100
113
|
let n;
|
|
101
114
|
const r = [];
|
|
102
115
|
for (; (n = e.exec(t)) !== null; )
|
|
103
116
|
r.push(n);
|
|
104
117
|
return r;
|
|
105
|
-
},
|
|
118
|
+
}, Ct = C("HTMLFormElement"), Nt = (e) => e.toLowerCase().replace(
|
|
106
119
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
107
120
|
function(n, r, s) {
|
|
108
121
|
return r.toUpperCase() + s;
|
|
109
122
|
}
|
|
110
|
-
),
|
|
123
|
+
), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Le = (e, t) => {
|
|
111
124
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
112
|
-
|
|
125
|
+
M(n, (s, o) => {
|
|
113
126
|
let i;
|
|
114
127
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
115
128
|
}), Object.defineProperties(e, r);
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
if (
|
|
129
|
+
}, Ft = (e) => {
|
|
130
|
+
Le(e, (t, n) => {
|
|
131
|
+
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
132
|
return !1;
|
|
120
133
|
const r = e[n];
|
|
121
|
-
if (
|
|
134
|
+
if (A(r)) {
|
|
122
135
|
if (t.enumerable = !1, "writable" in t) {
|
|
123
136
|
t.writable = !1;
|
|
124
137
|
return;
|
|
@@ -128,101 +141,106 @@ const Xe = (e, t, n, { allOwnKeys: r } = {}) => (D(t, (s, o) => {
|
|
|
128
141
|
});
|
|
129
142
|
}
|
|
130
143
|
});
|
|
131
|
-
},
|
|
144
|
+
}, _t = (e, t) => {
|
|
132
145
|
const n = {}, r = (s) => {
|
|
133
146
|
s.forEach((o) => {
|
|
134
147
|
n[o] = !0;
|
|
135
148
|
});
|
|
136
149
|
};
|
|
137
|
-
return
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
ALPHA_DIGIT: z + z.toUpperCase() + ne
|
|
143
|
-
}, ft = (e = 16, t = be.ALPHA_DIGIT) => {
|
|
144
|
-
let n = "";
|
|
145
|
-
const { length: r } = t;
|
|
146
|
-
for (; e--; )
|
|
147
|
-
n += t[Math.random() * r | 0];
|
|
148
|
-
return n;
|
|
149
|
-
};
|
|
150
|
-
function dt(e) {
|
|
151
|
-
return !!(e && R(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
150
|
+
return D(e) ? r(e) : r(String(e).split(t)), n;
|
|
151
|
+
}, Ut = () => {
|
|
152
|
+
}, Lt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
153
|
+
function Bt(e) {
|
|
154
|
+
return !!(e && A(e.append) && e[Ne] === "FormData" && e[X]);
|
|
152
155
|
}
|
|
153
|
-
const
|
|
156
|
+
const Dt = (e) => {
|
|
154
157
|
const t = new Array(10), n = (r, s) => {
|
|
155
|
-
if (
|
|
158
|
+
if (H(r)) {
|
|
156
159
|
if (t.indexOf(r) >= 0)
|
|
157
160
|
return;
|
|
161
|
+
if (I(r))
|
|
162
|
+
return r;
|
|
158
163
|
if (!("toJSON" in r)) {
|
|
159
164
|
t[s] = r;
|
|
160
|
-
const o =
|
|
161
|
-
return
|
|
162
|
-
const
|
|
163
|
-
!
|
|
165
|
+
const o = D(r) ? [] : {};
|
|
166
|
+
return M(r, (i, c) => {
|
|
167
|
+
const f = n(i, s + 1);
|
|
168
|
+
!q(f) && (o[c] = f);
|
|
164
169
|
}), t[s] = void 0, o;
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
172
|
return r;
|
|
168
173
|
};
|
|
169
174
|
return n(e, 0);
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
175
|
+
}, kt = C("AsyncFunction"), jt = (e) => e && (H(e) || A(e)) && A(e.then) && A(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
176
|
+
s === U && o === n && r.length && r.shift()();
|
|
177
|
+
}, !1), (s) => {
|
|
178
|
+
r.push(s), U.postMessage(n, "*");
|
|
179
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
180
|
+
typeof setImmediate == "function",
|
|
181
|
+
A(U.postMessage)
|
|
182
|
+
), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || Be, It = (e) => e != null && A(e[X]), a = {
|
|
183
|
+
isArray: D,
|
|
184
|
+
isArrayBuffer: Pe,
|
|
185
|
+
isBuffer: I,
|
|
186
|
+
isFormData: ft,
|
|
187
|
+
isArrayBufferView: nt,
|
|
188
|
+
isString: rt,
|
|
189
|
+
isNumber: Fe,
|
|
190
|
+
isBoolean: st,
|
|
191
|
+
isObject: H,
|
|
192
|
+
isPlainObject: J,
|
|
193
|
+
isEmptyObject: ot,
|
|
194
|
+
isReadableStream: pt,
|
|
195
|
+
isRequest: ht,
|
|
196
|
+
isResponse: mt,
|
|
197
|
+
isHeaders: yt,
|
|
198
|
+
isUndefined: q,
|
|
199
|
+
isDate: it,
|
|
200
|
+
isFile: at,
|
|
201
|
+
isBlob: ct,
|
|
202
|
+
isRegExp: Pt,
|
|
203
|
+
isFunction: A,
|
|
204
|
+
isStream: ut,
|
|
205
|
+
isURLSearchParams: dt,
|
|
206
|
+
isTypedArray: Tt,
|
|
207
|
+
isFileList: lt,
|
|
208
|
+
forEach: M,
|
|
209
|
+
merge: se,
|
|
210
|
+
extend: wt,
|
|
211
|
+
trim: bt,
|
|
212
|
+
stripBOM: Et,
|
|
213
|
+
inherits: gt,
|
|
214
|
+
toFlatObject: Rt,
|
|
215
|
+
kindOf: G,
|
|
216
|
+
kindOfTest: C,
|
|
217
|
+
endsWith: St,
|
|
218
|
+
toArray: Ot,
|
|
219
|
+
forEachEntry: At,
|
|
220
|
+
matchAll: xt,
|
|
221
|
+
isHTMLForm: Ct,
|
|
222
|
+
hasOwnProperty: he,
|
|
223
|
+
hasOwnProp: he,
|
|
207
224
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
208
|
-
reduceDescriptors:
|
|
209
|
-
freezeMethods:
|
|
210
|
-
toObjectSet:
|
|
211
|
-
toCamelCase:
|
|
212
|
-
noop:
|
|
213
|
-
toFiniteNumber:
|
|
214
|
-
findKey:
|
|
215
|
-
global:
|
|
216
|
-
isContextDefined:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
225
|
+
reduceDescriptors: Le,
|
|
226
|
+
freezeMethods: Ft,
|
|
227
|
+
toObjectSet: _t,
|
|
228
|
+
toCamelCase: Nt,
|
|
229
|
+
noop: Ut,
|
|
230
|
+
toFiniteNumber: Lt,
|
|
231
|
+
findKey: _e,
|
|
232
|
+
global: U,
|
|
233
|
+
isContextDefined: Ue,
|
|
234
|
+
isSpecCompliantForm: Bt,
|
|
235
|
+
toJSONObject: Dt,
|
|
236
|
+
isAsyncFn: kt,
|
|
237
|
+
isThenable: jt,
|
|
238
|
+
setImmediate: Be,
|
|
239
|
+
asap: qt,
|
|
240
|
+
isIterable: It
|
|
223
241
|
};
|
|
224
242
|
function m(e, t, n, r, s) {
|
|
225
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
243
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
226
244
|
}
|
|
227
245
|
a.inherits(m, Error, {
|
|
228
246
|
toJSON: function() {
|
|
@@ -241,11 +259,11 @@ a.inherits(m, Error, {
|
|
|
241
259
|
// Axios
|
|
242
260
|
config: a.toJSONObject(this.config),
|
|
243
261
|
code: this.code,
|
|
244
|
-
status: this.
|
|
262
|
+
status: this.status
|
|
245
263
|
};
|
|
246
264
|
}
|
|
247
265
|
});
|
|
248
|
-
const
|
|
266
|
+
const De = m.prototype, ke = {};
|
|
249
267
|
[
|
|
250
268
|
"ERR_BAD_OPTION_VALUE",
|
|
251
269
|
"ERR_BAD_OPTION",
|
|
@@ -261,96 +279,98 @@ const Se = m.prototype, Re = {};
|
|
|
261
279
|
"ERR_INVALID_URL"
|
|
262
280
|
// eslint-disable-next-line func-names
|
|
263
281
|
].forEach((e) => {
|
|
264
|
-
|
|
282
|
+
ke[e] = { value: e };
|
|
265
283
|
});
|
|
266
|
-
Object.defineProperties(m,
|
|
267
|
-
Object.defineProperty(
|
|
284
|
+
Object.defineProperties(m, ke);
|
|
285
|
+
Object.defineProperty(De, "isAxiosError", { value: !0 });
|
|
268
286
|
m.from = (e, t, n, r, s, o) => {
|
|
269
|
-
const i = Object.create(
|
|
270
|
-
return a.toFlatObject(e, i, function(
|
|
271
|
-
return
|
|
287
|
+
const i = Object.create(De);
|
|
288
|
+
return a.toFlatObject(e, i, function(f) {
|
|
289
|
+
return f !== Error.prototype;
|
|
272
290
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
273
291
|
};
|
|
274
|
-
const
|
|
275
|
-
function
|
|
292
|
+
const Ht = null;
|
|
293
|
+
function oe(e) {
|
|
276
294
|
return a.isPlainObject(e) || a.isArray(e);
|
|
277
295
|
}
|
|
278
|
-
function
|
|
296
|
+
function je(e) {
|
|
279
297
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
280
298
|
}
|
|
281
|
-
function
|
|
299
|
+
function me(e, t, n) {
|
|
282
300
|
return e ? e.concat(t).map(function(s, o) {
|
|
283
|
-
return s =
|
|
301
|
+
return s = je(s), !n && o ? "[" + s + "]" : s;
|
|
284
302
|
}).join(n ? "." : "") : t;
|
|
285
303
|
}
|
|
286
|
-
function
|
|
287
|
-
return a.isArray(e) && !e.some(
|
|
304
|
+
function Mt(e) {
|
|
305
|
+
return a.isArray(e) && !e.some(oe);
|
|
288
306
|
}
|
|
289
|
-
const
|
|
307
|
+
const zt = a.toFlatObject(a, {}, null, function(t) {
|
|
290
308
|
return /^is[A-Z]/.test(t);
|
|
291
309
|
});
|
|
292
|
-
function
|
|
310
|
+
function Z(e, t, n) {
|
|
293
311
|
if (!a.isObject(e))
|
|
294
312
|
throw new TypeError("target must be an object");
|
|
295
313
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
296
314
|
metaTokens: !0,
|
|
297
315
|
dots: !1,
|
|
298
316
|
indexes: !1
|
|
299
|
-
}, !1, function(
|
|
300
|
-
return !a.isUndefined(
|
|
317
|
+
}, !1, function(y, h) {
|
|
318
|
+
return !a.isUndefined(h[y]);
|
|
301
319
|
});
|
|
302
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
320
|
+
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
303
321
|
if (!a.isFunction(s))
|
|
304
322
|
throw new TypeError("visitor must be a function");
|
|
305
|
-
function
|
|
306
|
-
if (
|
|
307
|
-
if (a.isDate(
|
|
308
|
-
return
|
|
309
|
-
if (
|
|
323
|
+
function l(p) {
|
|
324
|
+
if (p === null) return "";
|
|
325
|
+
if (a.isDate(p))
|
|
326
|
+
return p.toISOString();
|
|
327
|
+
if (a.isBoolean(p))
|
|
328
|
+
return p.toString();
|
|
329
|
+
if (!f && a.isBlob(p))
|
|
310
330
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
311
|
-
return a.isArrayBuffer(
|
|
312
|
-
}
|
|
313
|
-
function
|
|
314
|
-
let
|
|
315
|
-
if (
|
|
316
|
-
if (a.endsWith(
|
|
317
|
-
|
|
318
|
-
else if (a.isArray(
|
|
319
|
-
return
|
|
320
|
-
!(a.isUndefined(
|
|
331
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
332
|
+
}
|
|
333
|
+
function u(p, y, h) {
|
|
334
|
+
let w = p;
|
|
335
|
+
if (p && !h && typeof p == "object") {
|
|
336
|
+
if (a.endsWith(y, "{}"))
|
|
337
|
+
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
338
|
+
else if (a.isArray(p) && Mt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
|
|
339
|
+
return y = je(y), w.forEach(function(S, P) {
|
|
340
|
+
!(a.isUndefined(S) || S === null) && t.append(
|
|
321
341
|
// eslint-disable-next-line no-nested-ternary
|
|
322
|
-
i === !0 ?
|
|
323
|
-
|
|
342
|
+
i === !0 ? me([y], P, o) : i === null ? y : y + "[]",
|
|
343
|
+
l(S)
|
|
324
344
|
);
|
|
325
345
|
}), !1;
|
|
326
346
|
}
|
|
327
|
-
return
|
|
347
|
+
return oe(p) ? !0 : (t.append(me(h, y, o), l(p)), !1);
|
|
328
348
|
}
|
|
329
|
-
const
|
|
330
|
-
defaultVisitor:
|
|
331
|
-
convertValue:
|
|
332
|
-
isVisitable:
|
|
349
|
+
const d = [], b = Object.assign(zt, {
|
|
350
|
+
defaultVisitor: u,
|
|
351
|
+
convertValue: l,
|
|
352
|
+
isVisitable: oe
|
|
333
353
|
});
|
|
334
|
-
function
|
|
335
|
-
if (!a.isUndefined(
|
|
336
|
-
if (
|
|
337
|
-
throw Error("Circular reference detected in " +
|
|
338
|
-
|
|
339
|
-
(!(a.isUndefined(
|
|
354
|
+
function g(p, y) {
|
|
355
|
+
if (!a.isUndefined(p)) {
|
|
356
|
+
if (d.indexOf(p) !== -1)
|
|
357
|
+
throw Error("Circular reference detected in " + y.join("."));
|
|
358
|
+
d.push(p), a.forEach(p, function(w, R) {
|
|
359
|
+
(!(a.isUndefined(w) || w === null) && s.call(
|
|
340
360
|
t,
|
|
341
|
-
|
|
342
|
-
a.isString(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
)) === !0 &&
|
|
346
|
-
}),
|
|
361
|
+
w,
|
|
362
|
+
a.isString(R) ? R.trim() : R,
|
|
363
|
+
y,
|
|
364
|
+
b
|
|
365
|
+
)) === !0 && g(w, y ? y.concat(R) : [R]);
|
|
366
|
+
}), d.pop();
|
|
347
367
|
}
|
|
348
368
|
}
|
|
349
369
|
if (!a.isObject(e))
|
|
350
370
|
throw new TypeError("data must be an object");
|
|
351
|
-
return
|
|
371
|
+
return g(e), t;
|
|
352
372
|
}
|
|
353
|
-
function
|
|
373
|
+
function ye(e) {
|
|
354
374
|
const t = {
|
|
355
375
|
"!": "%21",
|
|
356
376
|
"'": "%27",
|
|
@@ -364,36 +384,40 @@ function se(e) {
|
|
|
364
384
|
return t[r];
|
|
365
385
|
});
|
|
366
386
|
}
|
|
367
|
-
function
|
|
368
|
-
this._pairs = [], e &&
|
|
387
|
+
function fe(e, t) {
|
|
388
|
+
this._pairs = [], e && Z(e, this, t);
|
|
369
389
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
390
|
+
const qe = fe.prototype;
|
|
391
|
+
qe.append = function(t, n) {
|
|
372
392
|
this._pairs.push([t, n]);
|
|
373
393
|
};
|
|
374
|
-
|
|
394
|
+
qe.toString = function(t) {
|
|
375
395
|
const n = t ? function(r) {
|
|
376
|
-
return t.call(this, r,
|
|
377
|
-
} :
|
|
396
|
+
return t.call(this, r, ye);
|
|
397
|
+
} : ye;
|
|
378
398
|
return this._pairs.map(function(s) {
|
|
379
399
|
return n(s[0]) + "=" + n(s[1]);
|
|
380
400
|
}, "").join("&");
|
|
381
401
|
};
|
|
382
|
-
function
|
|
402
|
+
function $t(e) {
|
|
383
403
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
384
404
|
}
|
|
385
|
-
function
|
|
405
|
+
function Ie(e, t, n) {
|
|
386
406
|
if (!t)
|
|
387
407
|
return e;
|
|
388
|
-
const r = n && n.encode ||
|
|
408
|
+
const r = n && n.encode || $t;
|
|
409
|
+
a.isFunction(n) && (n = {
|
|
410
|
+
serialize: n
|
|
411
|
+
});
|
|
412
|
+
const s = n && n.serialize;
|
|
389
413
|
let o;
|
|
390
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new
|
|
414
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), o) {
|
|
391
415
|
const i = e.indexOf("#");
|
|
392
416
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
393
417
|
}
|
|
394
418
|
return e;
|
|
395
419
|
}
|
|
396
|
-
class
|
|
420
|
+
class be {
|
|
397
421
|
constructor() {
|
|
398
422
|
this.handlers = [];
|
|
399
423
|
}
|
|
@@ -447,39 +471,42 @@ class oe {
|
|
|
447
471
|
});
|
|
448
472
|
}
|
|
449
473
|
}
|
|
450
|
-
const
|
|
474
|
+
const He = {
|
|
451
475
|
silentJSONParsing: !0,
|
|
452
476
|
forcedJSONParsing: !0,
|
|
453
477
|
clarifyTimeoutError: !1
|
|
454
|
-
},
|
|
478
|
+
}, Jt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Vt = typeof FormData < "u" ? FormData : null, Wt = typeof Blob < "u" ? Blob : null, Kt = {
|
|
455
479
|
isBrowser: !0,
|
|
456
480
|
classes: {
|
|
457
|
-
URLSearchParams:
|
|
458
|
-
FormData:
|
|
459
|
-
Blob:
|
|
481
|
+
URLSearchParams: Jt,
|
|
482
|
+
FormData: Vt,
|
|
483
|
+
Blob: Wt
|
|
460
484
|
},
|
|
461
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
462
|
-
},
|
|
463
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, de = typeof window < "u" && typeof document < "u", ie = typeof navigator == "object" && navigator || void 0, vt = de && (!ie || ["ReactNative", "NativeScript", "NS"].indexOf(ie.product) < 0), Xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = de && window.location.href || "http://localhost", Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
464
488
|
__proto__: null,
|
|
465
|
-
hasBrowserEnv:
|
|
466
|
-
hasStandardBrowserEnv:
|
|
467
|
-
hasStandardBrowserWebWorkerEnv:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
489
|
+
hasBrowserEnv: de,
|
|
490
|
+
hasStandardBrowserEnv: vt,
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: Xt,
|
|
492
|
+
navigator: ie,
|
|
493
|
+
origin: Gt
|
|
494
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
495
|
+
...Qt,
|
|
496
|
+
...Kt
|
|
471
497
|
};
|
|
472
|
-
function
|
|
473
|
-
return
|
|
498
|
+
function Zt(e, t) {
|
|
499
|
+
return Z(e, new O.classes.URLSearchParams(), {
|
|
474
500
|
visitor: function(n, r, s, o) {
|
|
475
|
-
return
|
|
476
|
-
}
|
|
477
|
-
|
|
501
|
+
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
502
|
+
},
|
|
503
|
+
...t
|
|
504
|
+
});
|
|
478
505
|
}
|
|
479
|
-
function
|
|
506
|
+
function Yt(e) {
|
|
480
507
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
481
508
|
}
|
|
482
|
-
function
|
|
509
|
+
function en(e) {
|
|
483
510
|
const t = {}, n = Object.keys(e);
|
|
484
511
|
let r;
|
|
485
512
|
const s = n.length;
|
|
@@ -488,22 +515,22 @@ function Ct(e) {
|
|
|
488
515
|
o = n[r], t[o] = e[o];
|
|
489
516
|
return t;
|
|
490
517
|
}
|
|
491
|
-
function
|
|
518
|
+
function Me(e) {
|
|
492
519
|
function t(n, r, s, o) {
|
|
493
520
|
let i = n[o++];
|
|
494
521
|
if (i === "__proto__") return !0;
|
|
495
|
-
const c = Number.isFinite(+i),
|
|
496
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
522
|
+
const c = Number.isFinite(+i), f = o >= n.length;
|
|
523
|
+
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] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = en(s[i])), !c);
|
|
497
524
|
}
|
|
498
525
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
499
526
|
const n = {};
|
|
500
527
|
return a.forEachEntry(e, (r, s) => {
|
|
501
|
-
t(
|
|
528
|
+
t(Yt(r), s, n, 0);
|
|
502
529
|
}), n;
|
|
503
530
|
}
|
|
504
531
|
return null;
|
|
505
532
|
}
|
|
506
|
-
function
|
|
533
|
+
function tn(e, t, n) {
|
|
507
534
|
if (a.isString(e))
|
|
508
535
|
try {
|
|
509
536
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -513,14 +540,14 @@ function Ft(e, t, n) {
|
|
|
513
540
|
}
|
|
514
541
|
return (n || JSON.stringify)(e);
|
|
515
542
|
}
|
|
516
|
-
const
|
|
517
|
-
transitional:
|
|
518
|
-
adapter: ["xhr", "http"],
|
|
543
|
+
const z = {
|
|
544
|
+
transitional: He,
|
|
545
|
+
adapter: ["xhr", "http", "fetch"],
|
|
519
546
|
transformRequest: [function(t, n) {
|
|
520
547
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
521
548
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
522
|
-
return s ? JSON.stringify(
|
|
523
|
-
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
549
|
+
return s ? JSON.stringify(Me(t)) : t;
|
|
550
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
524
551
|
return t;
|
|
525
552
|
if (a.isArrayBufferView(t))
|
|
526
553
|
return t.buffer;
|
|
@@ -529,20 +556,22 @@ const L = {
|
|
|
529
556
|
let c;
|
|
530
557
|
if (o) {
|
|
531
558
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
532
|
-
return
|
|
559
|
+
return Zt(t, this.formSerializer).toString();
|
|
533
560
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
534
|
-
const
|
|
535
|
-
return
|
|
561
|
+
const f = this.env && this.env.FormData;
|
|
562
|
+
return Z(
|
|
536
563
|
c ? { "files[]": t } : t,
|
|
537
|
-
|
|
564
|
+
f && new f(),
|
|
538
565
|
this.formSerializer
|
|
539
566
|
);
|
|
540
567
|
}
|
|
541
568
|
}
|
|
542
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
569
|
+
return o || s ? (n.setContentType("application/json", !1), tn(t)) : t;
|
|
543
570
|
}],
|
|
544
571
|
transformResponse: [function(t) {
|
|
545
|
-
const n = this.transitional ||
|
|
572
|
+
const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
573
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
574
|
+
return t;
|
|
546
575
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
547
576
|
const i = !(n && n.silentJSONParsing) && s;
|
|
548
577
|
try {
|
|
@@ -564,8 +593,8 @@ const L = {
|
|
|
564
593
|
maxContentLength: -1,
|
|
565
594
|
maxBodyLength: -1,
|
|
566
595
|
env: {
|
|
567
|
-
FormData:
|
|
568
|
-
Blob:
|
|
596
|
+
FormData: O.classes.FormData,
|
|
597
|
+
Blob: O.classes.Blob
|
|
569
598
|
},
|
|
570
599
|
validateStatus: function(t) {
|
|
571
600
|
return t >= 200 && t < 300;
|
|
@@ -578,9 +607,9 @@ const L = {
|
|
|
578
607
|
}
|
|
579
608
|
};
|
|
580
609
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
581
|
-
|
|
610
|
+
z.headers[e] = {};
|
|
582
611
|
});
|
|
583
|
-
const
|
|
612
|
+
const nn = a.toObjectSet([
|
|
584
613
|
"age",
|
|
585
614
|
"authorization",
|
|
586
615
|
"content-length",
|
|
@@ -598,29 +627,29 @@ const _t = a.toObjectSet([
|
|
|
598
627
|
"referer",
|
|
599
628
|
"retry-after",
|
|
600
629
|
"user-agent"
|
|
601
|
-
]),
|
|
630
|
+
]), rn = (e) => {
|
|
602
631
|
const t = {};
|
|
603
632
|
let n, r, s;
|
|
604
633
|
return e && e.split(`
|
|
605
634
|
`).forEach(function(i) {
|
|
606
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
635
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
607
636
|
}), t;
|
|
608
|
-
},
|
|
609
|
-
function
|
|
637
|
+
}, we = Symbol("internals");
|
|
638
|
+
function j(e) {
|
|
610
639
|
return e && String(e).trim().toLowerCase();
|
|
611
640
|
}
|
|
612
|
-
function
|
|
613
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
641
|
+
function V(e) {
|
|
642
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
|
|
614
643
|
}
|
|
615
|
-
function
|
|
644
|
+
function sn(e) {
|
|
616
645
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
617
646
|
let r;
|
|
618
647
|
for (; r = n.exec(e); )
|
|
619
648
|
t[r[1]] = r[2];
|
|
620
649
|
return t;
|
|
621
650
|
}
|
|
622
|
-
const
|
|
623
|
-
function
|
|
651
|
+
const on = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
652
|
+
function te(e, t, n, r, s) {
|
|
624
653
|
if (a.isFunction(r))
|
|
625
654
|
return r.call(this, t, n);
|
|
626
655
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -630,10 +659,10 @@ function J(e, t, n, r, s) {
|
|
|
630
659
|
return r.test(t);
|
|
631
660
|
}
|
|
632
661
|
}
|
|
633
|
-
function
|
|
662
|
+
function an(e) {
|
|
634
663
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
635
664
|
}
|
|
636
|
-
function
|
|
665
|
+
function cn(e, t) {
|
|
637
666
|
const n = a.toCamelCase(" " + t);
|
|
638
667
|
["get", "set", "has"].forEach((r) => {
|
|
639
668
|
Object.defineProperty(e, r + n, {
|
|
@@ -644,31 +673,45 @@ function jt(e, t) {
|
|
|
644
673
|
});
|
|
645
674
|
});
|
|
646
675
|
}
|
|
647
|
-
class
|
|
676
|
+
let x = class {
|
|
648
677
|
constructor(t) {
|
|
649
678
|
t && this.set(t);
|
|
650
679
|
}
|
|
651
680
|
set(t, n, r) {
|
|
652
681
|
const s = this;
|
|
653
|
-
function o(c,
|
|
654
|
-
const
|
|
655
|
-
if (!
|
|
682
|
+
function o(c, f, l) {
|
|
683
|
+
const u = j(f);
|
|
684
|
+
if (!u)
|
|
656
685
|
throw new Error("header name must be a non-empty string");
|
|
657
|
-
const
|
|
658
|
-
(!
|
|
686
|
+
const d = a.findKey(s, u);
|
|
687
|
+
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = V(c));
|
|
659
688
|
}
|
|
660
|
-
const i = (c,
|
|
661
|
-
|
|
689
|
+
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
690
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
691
|
+
i(t, n);
|
|
692
|
+
else if (a.isString(t) && (t = t.trim()) && !on(t))
|
|
693
|
+
i(rn(t), n);
|
|
694
|
+
else if (a.isObject(t) && a.isIterable(t)) {
|
|
695
|
+
let c = {}, f, l;
|
|
696
|
+
for (const u of t) {
|
|
697
|
+
if (!a.isArray(u))
|
|
698
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
699
|
+
c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
|
|
700
|
+
}
|
|
701
|
+
i(c, n);
|
|
702
|
+
} else
|
|
703
|
+
t != null && o(n, t, r);
|
|
704
|
+
return this;
|
|
662
705
|
}
|
|
663
706
|
get(t, n) {
|
|
664
|
-
if (t =
|
|
707
|
+
if (t = j(t), t) {
|
|
665
708
|
const r = a.findKey(this, t);
|
|
666
709
|
if (r) {
|
|
667
710
|
const s = this[r];
|
|
668
711
|
if (!n)
|
|
669
712
|
return s;
|
|
670
713
|
if (n === !0)
|
|
671
|
-
return
|
|
714
|
+
return sn(s);
|
|
672
715
|
if (a.isFunction(n))
|
|
673
716
|
return n.call(this, s, r);
|
|
674
717
|
if (a.isRegExp(n))
|
|
@@ -678,9 +721,9 @@ class O {
|
|
|
678
721
|
}
|
|
679
722
|
}
|
|
680
723
|
has(t, n) {
|
|
681
|
-
if (t =
|
|
724
|
+
if (t = j(t), t) {
|
|
682
725
|
const r = a.findKey(this, t);
|
|
683
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
726
|
+
return !!(r && this[r] !== void 0 && (!n || te(this, this[r], r, n)));
|
|
684
727
|
}
|
|
685
728
|
return !1;
|
|
686
729
|
}
|
|
@@ -688,9 +731,9 @@ class O {
|
|
|
688
731
|
const r = this;
|
|
689
732
|
let s = !1;
|
|
690
733
|
function o(i) {
|
|
691
|
-
if (i =
|
|
734
|
+
if (i = j(i), i) {
|
|
692
735
|
const c = a.findKey(r, i);
|
|
693
|
-
c && (!n ||
|
|
736
|
+
c && (!n || te(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
694
737
|
}
|
|
695
738
|
}
|
|
696
739
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -700,7 +743,7 @@ class O {
|
|
|
700
743
|
let r = n.length, s = !1;
|
|
701
744
|
for (; r--; ) {
|
|
702
745
|
const o = n[r];
|
|
703
|
-
(!t ||
|
|
746
|
+
(!t || te(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
704
747
|
}
|
|
705
748
|
return s;
|
|
706
749
|
}
|
|
@@ -709,11 +752,11 @@ class O {
|
|
|
709
752
|
return a.forEach(this, (s, o) => {
|
|
710
753
|
const i = a.findKey(r, o);
|
|
711
754
|
if (i) {
|
|
712
|
-
n[i] =
|
|
755
|
+
n[i] = V(s), delete n[o];
|
|
713
756
|
return;
|
|
714
757
|
}
|
|
715
|
-
const c = t ?
|
|
716
|
-
c !== o && delete n[o], n[c] =
|
|
758
|
+
const c = t ? an(o) : String(o).trim();
|
|
759
|
+
c !== o && delete n[o], n[c] = V(s), r[c] = !0;
|
|
717
760
|
}), this;
|
|
718
761
|
}
|
|
719
762
|
concat(...t) {
|
|
@@ -732,6 +775,9 @@ class O {
|
|
|
732
775
|
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
733
776
|
`);
|
|
734
777
|
}
|
|
778
|
+
getSetCookie() {
|
|
779
|
+
return this.get("set-cookie") || [];
|
|
780
|
+
}
|
|
735
781
|
get [Symbol.toStringTag]() {
|
|
736
782
|
return "AxiosHeaders";
|
|
737
783
|
}
|
|
@@ -743,18 +789,18 @@ class O {
|
|
|
743
789
|
return n.forEach((s) => r.set(s)), r;
|
|
744
790
|
}
|
|
745
791
|
static accessor(t) {
|
|
746
|
-
const r = (this[
|
|
792
|
+
const r = (this[we] = this[we] = {
|
|
747
793
|
accessors: {}
|
|
748
794
|
}).accessors, s = this.prototype;
|
|
749
795
|
function o(i) {
|
|
750
|
-
const c =
|
|
751
|
-
r[c] || (
|
|
796
|
+
const c = j(i);
|
|
797
|
+
r[c] || (cn(s, i), r[c] = !0);
|
|
752
798
|
}
|
|
753
799
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
754
800
|
}
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
a.reduceDescriptors(
|
|
801
|
+
};
|
|
802
|
+
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
803
|
+
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
758
804
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
759
805
|
return {
|
|
760
806
|
get: () => e,
|
|
@@ -763,24 +809,24 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
|
763
809
|
}
|
|
764
810
|
};
|
|
765
811
|
});
|
|
766
|
-
a.freezeMethods(
|
|
767
|
-
function
|
|
768
|
-
const n = this ||
|
|
812
|
+
a.freezeMethods(x);
|
|
813
|
+
function ne(e, t) {
|
|
814
|
+
const n = this || z, r = t || n, s = x.from(r.headers);
|
|
769
815
|
let o = r.data;
|
|
770
816
|
return a.forEach(e, function(c) {
|
|
771
817
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
772
818
|
}), s.normalize(), o;
|
|
773
819
|
}
|
|
774
|
-
function
|
|
820
|
+
function ze(e) {
|
|
775
821
|
return !!(e && e.__CANCEL__);
|
|
776
822
|
}
|
|
777
|
-
function
|
|
823
|
+
function k(e, t, n) {
|
|
778
824
|
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
779
825
|
}
|
|
780
|
-
a.inherits(
|
|
826
|
+
a.inherits(k, m, {
|
|
781
827
|
__CANCEL__: !0
|
|
782
828
|
});
|
|
783
|
-
function
|
|
829
|
+
function $e(e, t, n) {
|
|
784
830
|
const r = n.config.validateStatus;
|
|
785
831
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
786
832
|
"Request failed with status code " + n.status,
|
|
@@ -790,7 +836,68 @@ function kt(e, t, n) {
|
|
|
790
836
|
n
|
|
791
837
|
));
|
|
792
838
|
}
|
|
793
|
-
|
|
839
|
+
function ln(e) {
|
|
840
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
841
|
+
return t && t[1] || "";
|
|
842
|
+
}
|
|
843
|
+
function un(e, t) {
|
|
844
|
+
e = e || 10;
|
|
845
|
+
const n = new Array(e), r = new Array(e);
|
|
846
|
+
let s = 0, o = 0, i;
|
|
847
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
848
|
+
const l = Date.now(), u = r[o];
|
|
849
|
+
i || (i = l), n[s] = f, r[s] = l;
|
|
850
|
+
let d = o, b = 0;
|
|
851
|
+
for (; d !== s; )
|
|
852
|
+
b += n[d++], d = d % e;
|
|
853
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
854
|
+
return;
|
|
855
|
+
const g = u && l - u;
|
|
856
|
+
return g ? Math.round(b * 1e3 / g) : void 0;
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
function fn(e, t) {
|
|
860
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
861
|
+
const i = (l, u = Date.now()) => {
|
|
862
|
+
n = u, s = null, o && (clearTimeout(o), o = null), e(...l);
|
|
863
|
+
};
|
|
864
|
+
return [(...l) => {
|
|
865
|
+
const u = Date.now(), d = u - n;
|
|
866
|
+
d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
|
|
867
|
+
o = null, i(s);
|
|
868
|
+
}, r - d)));
|
|
869
|
+
}, () => s && i(s)];
|
|
870
|
+
}
|
|
871
|
+
const K = (e, t, n = 3) => {
|
|
872
|
+
let r = 0;
|
|
873
|
+
const s = un(50, 250);
|
|
874
|
+
return fn((o) => {
|
|
875
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
|
|
876
|
+
r = i;
|
|
877
|
+
const d = {
|
|
878
|
+
loaded: i,
|
|
879
|
+
total: c,
|
|
880
|
+
progress: c ? i / c : void 0,
|
|
881
|
+
bytes: f,
|
|
882
|
+
rate: l || void 0,
|
|
883
|
+
estimated: l && c && u ? (c - i) / l : void 0,
|
|
884
|
+
event: o,
|
|
885
|
+
lengthComputable: c != null,
|
|
886
|
+
[t ? "download" : "upload"]: !0
|
|
887
|
+
};
|
|
888
|
+
e(d);
|
|
889
|
+
}, n);
|
|
890
|
+
}, Ee = (e, t) => {
|
|
891
|
+
const n = e != null;
|
|
892
|
+
return [(r) => t[0]({
|
|
893
|
+
lengthComputable: n,
|
|
894
|
+
total: e,
|
|
895
|
+
loaded: r
|
|
896
|
+
}), t[1]];
|
|
897
|
+
}, ge = (e) => (...t) => a.asap(() => e(...t)), dn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
898
|
+
new URL(O.origin),
|
|
899
|
+
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
900
|
+
) : () => !0, pn = O.hasStandardBrowserEnv ? (
|
|
794
901
|
// Standard browser envs support document.cookie
|
|
795
902
|
{
|
|
796
903
|
write(e, t, n, r, s, o) {
|
|
@@ -817,164 +924,373 @@ const It = A.hasStandardBrowserEnv ? (
|
|
|
817
924
|
}
|
|
818
925
|
}
|
|
819
926
|
);
|
|
820
|
-
function
|
|
927
|
+
function hn(e) {
|
|
821
928
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
822
929
|
}
|
|
823
|
-
function
|
|
930
|
+
function mn(e, t) {
|
|
824
931
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
825
932
|
}
|
|
826
|
-
function
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
const Mt = A.hasStandardBrowserEnv ? (
|
|
830
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
831
|
-
// whether the request URL is of the same origin as current location.
|
|
832
|
-
function() {
|
|
833
|
-
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
834
|
-
let r;
|
|
835
|
-
function s(o) {
|
|
836
|
-
let i = o;
|
|
837
|
-
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
838
|
-
href: n.href,
|
|
839
|
-
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
840
|
-
host: n.host,
|
|
841
|
-
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
842
|
-
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
843
|
-
hostname: n.hostname,
|
|
844
|
-
port: n.port,
|
|
845
|
-
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
return r = s(window.location.href), function(i) {
|
|
849
|
-
const c = a.isString(i) ? s(i) : i;
|
|
850
|
-
return c.protocol === r.protocol && c.host === r.host;
|
|
851
|
-
};
|
|
852
|
-
}()
|
|
853
|
-
) : (
|
|
854
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
855
|
-
/* @__PURE__ */ function() {
|
|
856
|
-
return function() {
|
|
857
|
-
return !0;
|
|
858
|
-
};
|
|
859
|
-
}()
|
|
860
|
-
);
|
|
861
|
-
function zt(e) {
|
|
862
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
863
|
-
return t && t[1] || "";
|
|
864
|
-
}
|
|
865
|
-
function Jt(e, t) {
|
|
866
|
-
e = e || 10;
|
|
867
|
-
const n = new Array(e), r = new Array(e);
|
|
868
|
-
let s = 0, o = 0, i;
|
|
869
|
-
return t = t !== void 0 ? t : 1e3, function(p) {
|
|
870
|
-
const h = Date.now(), l = r[o];
|
|
871
|
-
i || (i = h), n[s] = p, r[s] = h;
|
|
872
|
-
let u = o, E = 0;
|
|
873
|
-
for (; u !== s; )
|
|
874
|
-
E += n[u++], u = u % e;
|
|
875
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), h - i < t)
|
|
876
|
-
return;
|
|
877
|
-
const S = l && h - l;
|
|
878
|
-
return S ? Math.round(E * 1e3 / S) : void 0;
|
|
879
|
-
};
|
|
933
|
+
function Je(e, t, n) {
|
|
934
|
+
let r = !hn(t);
|
|
935
|
+
return e && (r || n == !1) ? mn(e, t) : t;
|
|
880
936
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
937
|
+
const Re = (e) => e instanceof x ? { ...e } : e;
|
|
938
|
+
function B(e, t) {
|
|
939
|
+
t = t || {};
|
|
940
|
+
const n = {};
|
|
941
|
+
function r(l, u, d, b) {
|
|
942
|
+
return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: b }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
943
|
+
}
|
|
944
|
+
function s(l, u, d, b) {
|
|
945
|
+
if (a.isUndefined(u)) {
|
|
946
|
+
if (!a.isUndefined(l))
|
|
947
|
+
return r(void 0, l, d, b);
|
|
948
|
+
} else return r(l, u, d, b);
|
|
949
|
+
}
|
|
950
|
+
function o(l, u) {
|
|
951
|
+
if (!a.isUndefined(u))
|
|
952
|
+
return r(void 0, u);
|
|
953
|
+
}
|
|
954
|
+
function i(l, u) {
|
|
955
|
+
if (a.isUndefined(u)) {
|
|
956
|
+
if (!a.isUndefined(l))
|
|
957
|
+
return r(void 0, l);
|
|
958
|
+
} else return r(void 0, u);
|
|
959
|
+
}
|
|
960
|
+
function c(l, u, d) {
|
|
961
|
+
if (d in t)
|
|
962
|
+
return r(l, u);
|
|
963
|
+
if (d in e)
|
|
964
|
+
return r(void 0, l);
|
|
965
|
+
}
|
|
966
|
+
const f = {
|
|
967
|
+
url: o,
|
|
968
|
+
method: o,
|
|
969
|
+
data: o,
|
|
970
|
+
baseURL: i,
|
|
971
|
+
transformRequest: i,
|
|
972
|
+
transformResponse: i,
|
|
973
|
+
paramsSerializer: i,
|
|
974
|
+
timeout: i,
|
|
975
|
+
timeoutMessage: i,
|
|
976
|
+
withCredentials: i,
|
|
977
|
+
withXSRFToken: i,
|
|
978
|
+
adapter: i,
|
|
979
|
+
responseType: i,
|
|
980
|
+
xsrfCookieName: i,
|
|
981
|
+
xsrfHeaderName: i,
|
|
982
|
+
onUploadProgress: i,
|
|
983
|
+
onDownloadProgress: i,
|
|
984
|
+
decompress: i,
|
|
985
|
+
maxContentLength: i,
|
|
986
|
+
maxBodyLength: i,
|
|
987
|
+
beforeRedirect: i,
|
|
988
|
+
transport: i,
|
|
989
|
+
httpAgent: i,
|
|
990
|
+
httpsAgent: i,
|
|
991
|
+
cancelToken: i,
|
|
992
|
+
socketPath: i,
|
|
993
|
+
responseEncoding: i,
|
|
994
|
+
validateStatus: c,
|
|
995
|
+
headers: (l, u, d) => s(Re(l), Re(u), d, !0)
|
|
897
996
|
};
|
|
997
|
+
return a.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
998
|
+
const d = f[u] || s, b = d(e[u], t[u], u);
|
|
999
|
+
a.isUndefined(b) && d !== c || (n[u] = b);
|
|
1000
|
+
}), n;
|
|
898
1001
|
}
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
if (
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
o.setContentType([d || "multipart/form-data", ...w].join("; "));
|
|
914
|
-
}
|
|
1002
|
+
const Ve = (e) => {
|
|
1003
|
+
const t = B({}, e);
|
|
1004
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1005
|
+
t.headers = i = x.from(i), t.url = Ie(Je(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1006
|
+
"Authorization",
|
|
1007
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1008
|
+
);
|
|
1009
|
+
let f;
|
|
1010
|
+
if (a.isFormData(n)) {
|
|
1011
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1012
|
+
i.setContentType(void 0);
|
|
1013
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1014
|
+
const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1015
|
+
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
915
1016
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
1017
|
+
}
|
|
1018
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
|
|
1019
|
+
const l = s && o && pn.read(o);
|
|
1020
|
+
l && i.set(s, l);
|
|
1021
|
+
}
|
|
1022
|
+
return t;
|
|
1023
|
+
}, yn = typeof XMLHttpRequest < "u", bn = yn && function(e) {
|
|
1024
|
+
return new Promise(function(n, r) {
|
|
1025
|
+
const s = Ve(e);
|
|
1026
|
+
let o = s.data;
|
|
1027
|
+
const i = x.from(s.headers).normalize();
|
|
1028
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, b, g, p;
|
|
1029
|
+
function y() {
|
|
1030
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
920
1031
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
function
|
|
924
|
-
if (!
|
|
1032
|
+
let h = new XMLHttpRequest();
|
|
1033
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1034
|
+
function w() {
|
|
1035
|
+
if (!h)
|
|
925
1036
|
return;
|
|
926
|
-
const
|
|
927
|
-
"getAllResponseHeaders" in
|
|
928
|
-
),
|
|
929
|
-
data: !
|
|
930
|
-
status:
|
|
931
|
-
statusText:
|
|
932
|
-
headers:
|
|
1037
|
+
const S = x.from(
|
|
1038
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1039
|
+
), T = {
|
|
1040
|
+
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1041
|
+
status: h.status,
|
|
1042
|
+
statusText: h.statusText,
|
|
1043
|
+
headers: S,
|
|
933
1044
|
config: e,
|
|
934
|
-
request:
|
|
1045
|
+
request: h
|
|
935
1046
|
};
|
|
936
|
-
|
|
937
|
-
n(
|
|
938
|
-
}, function(
|
|
939
|
-
r(
|
|
940
|
-
},
|
|
1047
|
+
$e(function(_) {
|
|
1048
|
+
n(_), y();
|
|
1049
|
+
}, function(_) {
|
|
1050
|
+
r(_), y();
|
|
1051
|
+
}, T), h = null;
|
|
941
1052
|
}
|
|
942
|
-
|
|
943
|
-
!
|
|
944
|
-
},
|
|
945
|
-
|
|
946
|
-
},
|
|
947
|
-
r(new m("Network Error", m.ERR_NETWORK, e,
|
|
948
|
-
},
|
|
949
|
-
let
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
1053
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1054
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1055
|
+
}, h.onabort = function() {
|
|
1056
|
+
h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
|
|
1057
|
+
}, h.onerror = function() {
|
|
1058
|
+
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1059
|
+
}, h.ontimeout = function() {
|
|
1060
|
+
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
|
+
const T = s.transitional || He;
|
|
1062
|
+
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1063
|
+
P,
|
|
1064
|
+
T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
954
1065
|
e,
|
|
955
|
-
|
|
956
|
-
)),
|
|
957
|
-
},
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
s
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}, e.cancelToken && e.cancelToken.subscribe(p), e.signal && (e.signal.aborted ? p() : e.signal.addEventListener("abort", p)));
|
|
966
|
-
const f = zt(E);
|
|
967
|
-
if (f && A.protocols.indexOf(f) === -1) {
|
|
968
|
-
r(new m("Unsupported protocol " + f + ":", m.ERR_BAD_REQUEST, e));
|
|
1066
|
+
h
|
|
1067
|
+
)), h = null;
|
|
1068
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, T) {
|
|
1069
|
+
h.setRequestHeader(T, P);
|
|
1070
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = K(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = K(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
|
|
1071
|
+
h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
|
|
1072
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1073
|
+
const R = ln(s.url);
|
|
1074
|
+
if (R && O.protocols.indexOf(R) === -1) {
|
|
1075
|
+
r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
|
|
969
1076
|
return;
|
|
970
1077
|
}
|
|
971
|
-
|
|
1078
|
+
h.send(o || null);
|
|
1079
|
+
});
|
|
1080
|
+
}, wn = (e, t) => {
|
|
1081
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1082
|
+
if (t || n) {
|
|
1083
|
+
let r = new AbortController(), s;
|
|
1084
|
+
const o = function(l) {
|
|
1085
|
+
if (!s) {
|
|
1086
|
+
s = !0, c();
|
|
1087
|
+
const u = l instanceof Error ? l : this.reason;
|
|
1088
|
+
r.abort(u instanceof m ? u : new k(u instanceof Error ? u.message : u));
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
let i = t && setTimeout(() => {
|
|
1092
|
+
i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
|
|
1093
|
+
}, t);
|
|
1094
|
+
const c = () => {
|
|
1095
|
+
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
1096
|
+
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1097
|
+
}), e = null);
|
|
1098
|
+
};
|
|
1099
|
+
e.forEach((l) => l.addEventListener("abort", o));
|
|
1100
|
+
const { signal: f } = r;
|
|
1101
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1102
|
+
}
|
|
1103
|
+
}, En = function* (e, t) {
|
|
1104
|
+
let n = e.byteLength;
|
|
1105
|
+
if (n < t) {
|
|
1106
|
+
yield e;
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
let r = 0, s;
|
|
1110
|
+
for (; r < n; )
|
|
1111
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1112
|
+
}, gn = async function* (e, t) {
|
|
1113
|
+
for await (const n of Rn(e))
|
|
1114
|
+
yield* En(n, t);
|
|
1115
|
+
}, Rn = async function* (e) {
|
|
1116
|
+
if (e[Symbol.asyncIterator]) {
|
|
1117
|
+
yield* e;
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
const t = e.getReader();
|
|
1121
|
+
try {
|
|
1122
|
+
for (; ; ) {
|
|
1123
|
+
const { done: n, value: r } = await t.read();
|
|
1124
|
+
if (n)
|
|
1125
|
+
break;
|
|
1126
|
+
yield r;
|
|
1127
|
+
}
|
|
1128
|
+
} finally {
|
|
1129
|
+
await t.cancel();
|
|
1130
|
+
}
|
|
1131
|
+
}, Se = (e, t, n, r) => {
|
|
1132
|
+
const s = gn(e, t);
|
|
1133
|
+
let o = 0, i, c = (f) => {
|
|
1134
|
+
i || (i = !0, r && r(f));
|
|
1135
|
+
};
|
|
1136
|
+
return new ReadableStream({
|
|
1137
|
+
async pull(f) {
|
|
1138
|
+
try {
|
|
1139
|
+
const { done: l, value: u } = await s.next();
|
|
1140
|
+
if (l) {
|
|
1141
|
+
c(), f.close();
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
let d = u.byteLength;
|
|
1145
|
+
if (n) {
|
|
1146
|
+
let b = o += d;
|
|
1147
|
+
n(b);
|
|
1148
|
+
}
|
|
1149
|
+
f.enqueue(new Uint8Array(u));
|
|
1150
|
+
} catch (l) {
|
|
1151
|
+
throw c(l), l;
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
cancel(f) {
|
|
1155
|
+
return c(f), s.return();
|
|
1156
|
+
}
|
|
1157
|
+
}, {
|
|
1158
|
+
highWaterMark: 2
|
|
1159
|
+
});
|
|
1160
|
+
}, Y = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = Y && typeof ReadableStream == "function", Sn = Y && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
|
|
1161
|
+
try {
|
|
1162
|
+
return !!e(...t);
|
|
1163
|
+
} catch {
|
|
1164
|
+
return !1;
|
|
1165
|
+
}
|
|
1166
|
+
}, On = We && Ke(() => {
|
|
1167
|
+
let e = !1;
|
|
1168
|
+
const t = new Request(O.origin, {
|
|
1169
|
+
body: new ReadableStream(),
|
|
1170
|
+
method: "POST",
|
|
1171
|
+
get duplex() {
|
|
1172
|
+
return e = !0, "half";
|
|
1173
|
+
}
|
|
1174
|
+
}).headers.has("Content-Type");
|
|
1175
|
+
return e && !t;
|
|
1176
|
+
}), Oe = 64 * 1024, ae = We && Ke(() => a.isReadableStream(new Response("").body)), v = {
|
|
1177
|
+
stream: ae && ((e) => e.body)
|
|
1178
|
+
};
|
|
1179
|
+
Y && ((e) => {
|
|
1180
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1181
|
+
!v[t] && (v[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1182
|
+
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1183
|
+
});
|
|
1184
|
+
});
|
|
1185
|
+
})(new Response());
|
|
1186
|
+
const Tn = async (e) => {
|
|
1187
|
+
if (e == null)
|
|
1188
|
+
return 0;
|
|
1189
|
+
if (a.isBlob(e))
|
|
1190
|
+
return e.size;
|
|
1191
|
+
if (a.isSpecCompliantForm(e))
|
|
1192
|
+
return (await new Request(O.origin, {
|
|
1193
|
+
method: "POST",
|
|
1194
|
+
body: e
|
|
1195
|
+
}).arrayBuffer()).byteLength;
|
|
1196
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1197
|
+
return e.byteLength;
|
|
1198
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1199
|
+
return (await Sn(e)).byteLength;
|
|
1200
|
+
}, An = async (e, t) => {
|
|
1201
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1202
|
+
return n ?? Tn(t);
|
|
1203
|
+
}, xn = Y && (async (e) => {
|
|
1204
|
+
let {
|
|
1205
|
+
url: t,
|
|
1206
|
+
method: n,
|
|
1207
|
+
data: r,
|
|
1208
|
+
signal: s,
|
|
1209
|
+
cancelToken: o,
|
|
1210
|
+
timeout: i,
|
|
1211
|
+
onDownloadProgress: c,
|
|
1212
|
+
onUploadProgress: f,
|
|
1213
|
+
responseType: l,
|
|
1214
|
+
headers: u,
|
|
1215
|
+
withCredentials: d = "same-origin",
|
|
1216
|
+
fetchOptions: b
|
|
1217
|
+
} = Ve(e);
|
|
1218
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
1219
|
+
let g = wn([s, o && o.toAbortSignal()], i), p;
|
|
1220
|
+
const y = g && g.unsubscribe && (() => {
|
|
1221
|
+
g.unsubscribe();
|
|
972
1222
|
});
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1223
|
+
let h;
|
|
1224
|
+
try {
|
|
1225
|
+
if (f && On && n !== "get" && n !== "head" && (h = await An(u, r)) !== 0) {
|
|
1226
|
+
let T = new Request(t, {
|
|
1227
|
+
method: "POST",
|
|
1228
|
+
body: r,
|
|
1229
|
+
duplex: "half"
|
|
1230
|
+
}), F;
|
|
1231
|
+
if (a.isFormData(r) && (F = T.headers.get("content-type")) && u.setContentType(F), T.body) {
|
|
1232
|
+
const [_, $] = Ee(
|
|
1233
|
+
h,
|
|
1234
|
+
K(ge(f))
|
|
1235
|
+
);
|
|
1236
|
+
r = Se(T.body, Oe, _, $);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1240
|
+
const w = "credentials" in Request.prototype;
|
|
1241
|
+
p = new Request(t, {
|
|
1242
|
+
...b,
|
|
1243
|
+
signal: g,
|
|
1244
|
+
method: n.toUpperCase(),
|
|
1245
|
+
headers: u.normalize().toJSON(),
|
|
1246
|
+
body: r,
|
|
1247
|
+
duplex: "half",
|
|
1248
|
+
credentials: w ? d : void 0
|
|
1249
|
+
});
|
|
1250
|
+
let R = await fetch(p, b);
|
|
1251
|
+
const S = ae && (l === "stream" || l === "response");
|
|
1252
|
+
if (ae && (c || S && y)) {
|
|
1253
|
+
const T = {};
|
|
1254
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
1255
|
+
T[pe] = R[pe];
|
|
1256
|
+
});
|
|
1257
|
+
const F = a.toFiniteNumber(R.headers.get("content-length")), [_, $] = c && Ee(
|
|
1258
|
+
F,
|
|
1259
|
+
K(ge(c), !0)
|
|
1260
|
+
) || [];
|
|
1261
|
+
R = new Response(
|
|
1262
|
+
Se(R.body, Oe, _, () => {
|
|
1263
|
+
$ && $(), y && y();
|
|
1264
|
+
}),
|
|
1265
|
+
T
|
|
1266
|
+
);
|
|
1267
|
+
}
|
|
1268
|
+
l = l || "text";
|
|
1269
|
+
let P = await v[a.findKey(v, l) || "text"](R, e);
|
|
1270
|
+
return !S && y && y(), await new Promise((T, F) => {
|
|
1271
|
+
$e(T, F, {
|
|
1272
|
+
data: P,
|
|
1273
|
+
headers: x.from(R.headers),
|
|
1274
|
+
status: R.status,
|
|
1275
|
+
statusText: R.statusText,
|
|
1276
|
+
config: e,
|
|
1277
|
+
request: p
|
|
1278
|
+
});
|
|
1279
|
+
});
|
|
1280
|
+
} catch (w) {
|
|
1281
|
+
throw y && y(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
|
|
1282
|
+
new m("Network Error", m.ERR_NETWORK, e, p),
|
|
1283
|
+
{
|
|
1284
|
+
cause: w.cause || w
|
|
1285
|
+
}
|
|
1286
|
+
) : m.from(w, w && w.code, e, p);
|
|
1287
|
+
}
|
|
1288
|
+
}), ce = {
|
|
1289
|
+
http: Ht,
|
|
1290
|
+
xhr: bn,
|
|
1291
|
+
fetch: xn
|
|
976
1292
|
};
|
|
977
|
-
a.forEach(
|
|
1293
|
+
a.forEach(ce, (e, t) => {
|
|
978
1294
|
if (e) {
|
|
979
1295
|
try {
|
|
980
1296
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -983,7 +1299,7 @@ a.forEach(G, (e, t) => {
|
|
|
983
1299
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
984
1300
|
}
|
|
985
1301
|
});
|
|
986
|
-
const
|
|
1302
|
+
const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !1, ve = {
|
|
987
1303
|
getAdapter: (e) => {
|
|
988
1304
|
e = a.isArray(e) ? e : [e];
|
|
989
1305
|
const { length: t } = e;
|
|
@@ -992,7 +1308,7 @@ const ce = (e) => `- ${e}`, $t = (e) => a.isFunction(e) || e === null || e === !
|
|
|
992
1308
|
for (let o = 0; o < t; o++) {
|
|
993
1309
|
n = e[o];
|
|
994
1310
|
let i;
|
|
995
|
-
if (r = n,
|
|
1311
|
+
if (r = n, !Cn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
|
|
996
1312
|
throw new m(`Unknown adapter '${i}'`);
|
|
997
1313
|
if (r)
|
|
998
1314
|
break;
|
|
@@ -1000,11 +1316,11 @@ const ce = (e) => `- ${e}`, $t = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1000
1316
|
}
|
|
1001
1317
|
if (!r) {
|
|
1002
1318
|
const o = Object.entries(s).map(
|
|
1003
|
-
([c,
|
|
1319
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1004
1320
|
);
|
|
1005
1321
|
let i = t ? o.length > 1 ? `since :
|
|
1006
|
-
` + o.map(
|
|
1007
|
-
`) : " " +
|
|
1322
|
+
` + o.map(Te).join(`
|
|
1323
|
+
`) : " " + Te(o[0]) : "as no adapter specified";
|
|
1008
1324
|
throw new m(
|
|
1009
1325
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1010
1326
|
"ERR_NOT_SUPPORT"
|
|
@@ -1012,105 +1328,40 @@ const ce = (e) => `- ${e}`, $t = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1012
1328
|
}
|
|
1013
1329
|
return r;
|
|
1014
1330
|
},
|
|
1015
|
-
adapters:
|
|
1331
|
+
adapters: ce
|
|
1016
1332
|
};
|
|
1017
|
-
function
|
|
1333
|
+
function re(e) {
|
|
1018
1334
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1019
|
-
throw new
|
|
1335
|
+
throw new k(null, e);
|
|
1020
1336
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
1337
|
+
function Ae(e) {
|
|
1338
|
+
return re(e), e.headers = x.from(e.headers), e.data = ne.call(
|
|
1023
1339
|
e,
|
|
1024
1340
|
e.transformRequest
|
|
1025
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1026
|
-
return
|
|
1341
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ve.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
|
|
1342
|
+
return re(e), r.data = ne.call(
|
|
1027
1343
|
e,
|
|
1028
1344
|
e.transformResponse,
|
|
1029
1345
|
r
|
|
1030
|
-
), r.headers =
|
|
1346
|
+
), r.headers = x.from(r.headers), r;
|
|
1031
1347
|
}, function(r) {
|
|
1032
|
-
return
|
|
1348
|
+
return ze(r) || (re(e), r && r.response && (r.response.data = ne.call(
|
|
1033
1349
|
e,
|
|
1034
1350
|
e.transformResponse,
|
|
1035
1351
|
r.response
|
|
1036
|
-
), r.response.headers =
|
|
1352
|
+
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1037
1353
|
});
|
|
1038
1354
|
}
|
|
1039
|
-
const
|
|
1040
|
-
function C(e, t) {
|
|
1041
|
-
t = t || {};
|
|
1042
|
-
const n = {};
|
|
1043
|
-
function r(h, l, u) {
|
|
1044
|
-
return a.isPlainObject(h) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, h, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
1045
|
-
}
|
|
1046
|
-
function s(h, l, u) {
|
|
1047
|
-
if (a.isUndefined(l)) {
|
|
1048
|
-
if (!a.isUndefined(h))
|
|
1049
|
-
return r(void 0, h, u);
|
|
1050
|
-
} else return r(h, l, u);
|
|
1051
|
-
}
|
|
1052
|
-
function o(h, l) {
|
|
1053
|
-
if (!a.isUndefined(l))
|
|
1054
|
-
return r(void 0, l);
|
|
1055
|
-
}
|
|
1056
|
-
function i(h, l) {
|
|
1057
|
-
if (a.isUndefined(l)) {
|
|
1058
|
-
if (!a.isUndefined(h))
|
|
1059
|
-
return r(void 0, h);
|
|
1060
|
-
} else return r(void 0, l);
|
|
1061
|
-
}
|
|
1062
|
-
function c(h, l, u) {
|
|
1063
|
-
if (u in t)
|
|
1064
|
-
return r(h, l);
|
|
1065
|
-
if (u in e)
|
|
1066
|
-
return r(void 0, h);
|
|
1067
|
-
}
|
|
1068
|
-
const p = {
|
|
1069
|
-
url: o,
|
|
1070
|
-
method: o,
|
|
1071
|
-
data: o,
|
|
1072
|
-
baseURL: i,
|
|
1073
|
-
transformRequest: i,
|
|
1074
|
-
transformResponse: i,
|
|
1075
|
-
paramsSerializer: i,
|
|
1076
|
-
timeout: i,
|
|
1077
|
-
timeoutMessage: i,
|
|
1078
|
-
withCredentials: i,
|
|
1079
|
-
withXSRFToken: i,
|
|
1080
|
-
adapter: i,
|
|
1081
|
-
responseType: i,
|
|
1082
|
-
xsrfCookieName: i,
|
|
1083
|
-
xsrfHeaderName: i,
|
|
1084
|
-
onUploadProgress: i,
|
|
1085
|
-
onDownloadProgress: i,
|
|
1086
|
-
decompress: i,
|
|
1087
|
-
maxContentLength: i,
|
|
1088
|
-
maxBodyLength: i,
|
|
1089
|
-
beforeRedirect: i,
|
|
1090
|
-
transport: i,
|
|
1091
|
-
httpAgent: i,
|
|
1092
|
-
httpsAgent: i,
|
|
1093
|
-
cancelToken: i,
|
|
1094
|
-
socketPath: i,
|
|
1095
|
-
responseEncoding: i,
|
|
1096
|
-
validateStatus: c,
|
|
1097
|
-
headers: (h, l) => s(le(h), le(l), !0)
|
|
1098
|
-
};
|
|
1099
|
-
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1100
|
-
const u = p[l] || s, E = u(e[l], t[l], l);
|
|
1101
|
-
a.isUndefined(E) && u !== c || (n[l] = E);
|
|
1102
|
-
}), n;
|
|
1103
|
-
}
|
|
1104
|
-
const _e = "1.6.7", Y = {};
|
|
1355
|
+
const Xe = "1.11.0", ee = {};
|
|
1105
1356
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1106
|
-
|
|
1357
|
+
ee[e] = function(r) {
|
|
1107
1358
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1108
1359
|
};
|
|
1109
1360
|
});
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1361
|
+
const xe = {};
|
|
1362
|
+
ee.transitional = function(t, n, r) {
|
|
1112
1363
|
function s(o, i) {
|
|
1113
|
-
return "[Axios v" +
|
|
1364
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1114
1365
|
}
|
|
1115
1366
|
return (o, i, c) => {
|
|
1116
1367
|
if (t === !1)
|
|
@@ -1118,10 +1369,13 @@ Y.transitional = function(t, n, r) {
|
|
|
1118
1369
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1119
1370
|
m.ERR_DEPRECATED
|
|
1120
1371
|
);
|
|
1121
|
-
return n && !
|
|
1372
|
+
return n && !xe[i] && (xe[i] = !0), t ? t(o, i, c) : !0;
|
|
1122
1373
|
};
|
|
1123
1374
|
};
|
|
1124
|
-
function
|
|
1375
|
+
ee.spelling = function(t) {
|
|
1376
|
+
return (n, r) => !0;
|
|
1377
|
+
};
|
|
1378
|
+
function Nn(e, t, n) {
|
|
1125
1379
|
if (typeof e != "object")
|
|
1126
1380
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1127
1381
|
const r = Object.keys(e);
|
|
@@ -1129,24 +1383,24 @@ function Kt(e, t, n) {
|
|
|
1129
1383
|
for (; s-- > 0; ) {
|
|
1130
1384
|
const o = r[s], i = t[o];
|
|
1131
1385
|
if (i) {
|
|
1132
|
-
const c = e[o],
|
|
1133
|
-
if (
|
|
1134
|
-
throw new m("option " + o + " must be " +
|
|
1386
|
+
const c = e[o], f = c === void 0 || i(c, o, e);
|
|
1387
|
+
if (f !== !0)
|
|
1388
|
+
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
1135
1389
|
continue;
|
|
1136
1390
|
}
|
|
1137
1391
|
if (n !== !0)
|
|
1138
1392
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1139
1393
|
}
|
|
1140
1394
|
}
|
|
1141
|
-
const
|
|
1142
|
-
assertOptions:
|
|
1143
|
-
validators:
|
|
1144
|
-
},
|
|
1145
|
-
class
|
|
1395
|
+
const W = {
|
|
1396
|
+
assertOptions: Nn,
|
|
1397
|
+
validators: ee
|
|
1398
|
+
}, N = W.validators;
|
|
1399
|
+
let L = class {
|
|
1146
1400
|
constructor(t) {
|
|
1147
|
-
this.defaults = t, this.interceptors = {
|
|
1148
|
-
request: new
|
|
1149
|
-
response: new
|
|
1401
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1402
|
+
request: new be(),
|
|
1403
|
+
response: new be()
|
|
1150
1404
|
};
|
|
1151
1405
|
}
|
|
1152
1406
|
/**
|
|
@@ -1162,83 +1416,89 @@ class P {
|
|
|
1162
1416
|
return await this._request(t, n);
|
|
1163
1417
|
} catch (r) {
|
|
1164
1418
|
if (r instanceof Error) {
|
|
1165
|
-
let s;
|
|
1166
|
-
Error.captureStackTrace ? Error.captureStackTrace(s
|
|
1419
|
+
let s = {};
|
|
1420
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1167
1421
|
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1168
|
-
|
|
1422
|
+
try {
|
|
1423
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1169
1424
|
` + o) : r.stack = o;
|
|
1425
|
+
} catch {
|
|
1426
|
+
}
|
|
1170
1427
|
}
|
|
1171
1428
|
throw r;
|
|
1172
1429
|
}
|
|
1173
1430
|
}
|
|
1174
1431
|
_request(t, n) {
|
|
1175
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1432
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1176
1433
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1177
|
-
r !== void 0 &&
|
|
1178
|
-
silentJSONParsing:
|
|
1179
|
-
forcedJSONParsing:
|
|
1180
|
-
clarifyTimeoutError:
|
|
1434
|
+
r !== void 0 && W.assertOptions(r, {
|
|
1435
|
+
silentJSONParsing: N.transitional(N.boolean),
|
|
1436
|
+
forcedJSONParsing: N.transitional(N.boolean),
|
|
1437
|
+
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1181
1438
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1182
1439
|
serialize: s
|
|
1183
|
-
} :
|
|
1184
|
-
encode:
|
|
1185
|
-
serialize:
|
|
1186
|
-
}, !0)), n.
|
|
1440
|
+
} : W.assertOptions(s, {
|
|
1441
|
+
encode: N.function,
|
|
1442
|
+
serialize: N.function
|
|
1443
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), W.assertOptions(n, {
|
|
1444
|
+
baseUrl: N.spelling("baseURL"),
|
|
1445
|
+
withXsrfToken: N.spelling("withXSRFToken")
|
|
1446
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1187
1447
|
let i = o && a.merge(
|
|
1188
1448
|
o.common,
|
|
1189
1449
|
o[n.method]
|
|
1190
1450
|
);
|
|
1191
1451
|
o && a.forEach(
|
|
1192
1452
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1193
|
-
(
|
|
1194
|
-
delete o[
|
|
1453
|
+
(p) => {
|
|
1454
|
+
delete o[p];
|
|
1195
1455
|
}
|
|
1196
|
-
), n.headers =
|
|
1456
|
+
), n.headers = x.concat(i, o);
|
|
1197
1457
|
const c = [];
|
|
1198
|
-
let
|
|
1199
|
-
this.interceptors.request.forEach(function(
|
|
1200
|
-
typeof
|
|
1458
|
+
let f = !0;
|
|
1459
|
+
this.interceptors.request.forEach(function(y) {
|
|
1460
|
+
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
1201
1461
|
});
|
|
1202
|
-
const
|
|
1203
|
-
this.interceptors.response.forEach(function(
|
|
1204
|
-
|
|
1462
|
+
const l = [];
|
|
1463
|
+
this.interceptors.response.forEach(function(y) {
|
|
1464
|
+
l.push(y.fulfilled, y.rejected);
|
|
1205
1465
|
});
|
|
1206
|
-
let
|
|
1207
|
-
if (!
|
|
1208
|
-
const
|
|
1209
|
-
for (
|
|
1210
|
-
|
|
1211
|
-
return
|
|
1466
|
+
let u, d = 0, b;
|
|
1467
|
+
if (!f) {
|
|
1468
|
+
const p = [Ae.bind(this), void 0];
|
|
1469
|
+
for (p.unshift(...c), p.push(...l), b = p.length, u = Promise.resolve(n); d < b; )
|
|
1470
|
+
u = u.then(p[d++], p[d++]);
|
|
1471
|
+
return u;
|
|
1212
1472
|
}
|
|
1213
|
-
|
|
1214
|
-
let
|
|
1215
|
-
for (
|
|
1216
|
-
const
|
|
1473
|
+
b = c.length;
|
|
1474
|
+
let g = n;
|
|
1475
|
+
for (d = 0; d < b; ) {
|
|
1476
|
+
const p = c[d++], y = c[d++];
|
|
1217
1477
|
try {
|
|
1218
|
-
|
|
1219
|
-
} catch (
|
|
1220
|
-
|
|
1478
|
+
g = p(g);
|
|
1479
|
+
} catch (h) {
|
|
1480
|
+
y.call(this, h);
|
|
1221
1481
|
break;
|
|
1222
1482
|
}
|
|
1223
1483
|
}
|
|
1224
1484
|
try {
|
|
1225
|
-
|
|
1226
|
-
} catch (
|
|
1227
|
-
return Promise.reject(
|
|
1485
|
+
u = Ae.call(this, g);
|
|
1486
|
+
} catch (p) {
|
|
1487
|
+
return Promise.reject(p);
|
|
1228
1488
|
}
|
|
1229
|
-
for (
|
|
1230
|
-
|
|
1231
|
-
return
|
|
1489
|
+
for (d = 0, b = l.length; d < b; )
|
|
1490
|
+
u = u.then(l[d++], l[d++]);
|
|
1491
|
+
return u;
|
|
1232
1492
|
}
|
|
1233
1493
|
getUri(t) {
|
|
1234
|
-
t =
|
|
1235
|
-
const n =
|
|
1236
|
-
return
|
|
1494
|
+
t = B(this.defaults, t);
|
|
1495
|
+
const n = Je(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1496
|
+
return Ie(n, t.params, t.paramsSerializer);
|
|
1237
1497
|
}
|
|
1238
|
-
}
|
|
1498
|
+
};
|
|
1239
1499
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1240
|
-
|
|
1241
|
-
return this.request(
|
|
1500
|
+
L.prototype[t] = function(n, r) {
|
|
1501
|
+
return this.request(B(r || {}, {
|
|
1242
1502
|
method: t,
|
|
1243
1503
|
url: n,
|
|
1244
1504
|
data: (r || {}).data
|
|
@@ -1248,7 +1508,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1248
1508
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1249
1509
|
function n(r) {
|
|
1250
1510
|
return function(o, i, c) {
|
|
1251
|
-
return this.request(
|
|
1511
|
+
return this.request(B(c || {}, {
|
|
1252
1512
|
method: t,
|
|
1253
1513
|
headers: r ? {
|
|
1254
1514
|
"Content-Type": "multipart/form-data"
|
|
@@ -1258,9 +1518,9 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1258
1518
|
}));
|
|
1259
1519
|
};
|
|
1260
1520
|
}
|
|
1261
|
-
|
|
1521
|
+
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1262
1522
|
});
|
|
1263
|
-
class
|
|
1523
|
+
let Pn = class Ge {
|
|
1264
1524
|
constructor(t) {
|
|
1265
1525
|
if (typeof t != "function")
|
|
1266
1526
|
throw new TypeError("executor must be a function.");
|
|
@@ -1284,7 +1544,7 @@ class ee {
|
|
|
1284
1544
|
r.unsubscribe(o);
|
|
1285
1545
|
}, i;
|
|
1286
1546
|
}, t(function(o, i, c) {
|
|
1287
|
-
r.reason || (r.reason = new
|
|
1547
|
+
r.reason || (r.reason = new k(o, i, c), n(r.reason));
|
|
1288
1548
|
});
|
|
1289
1549
|
}
|
|
1290
1550
|
/**
|
|
@@ -1313,6 +1573,12 @@ class ee {
|
|
|
1313
1573
|
const n = this._listeners.indexOf(t);
|
|
1314
1574
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1315
1575
|
}
|
|
1576
|
+
toAbortSignal() {
|
|
1577
|
+
const t = new AbortController(), n = (r) => {
|
|
1578
|
+
t.abort(r);
|
|
1579
|
+
};
|
|
1580
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1581
|
+
}
|
|
1316
1582
|
/**
|
|
1317
1583
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1318
1584
|
* cancels the `CancelToken`.
|
|
@@ -1320,22 +1586,22 @@ class ee {
|
|
|
1320
1586
|
static source() {
|
|
1321
1587
|
let t;
|
|
1322
1588
|
return {
|
|
1323
|
-
token: new
|
|
1589
|
+
token: new Ge(function(s) {
|
|
1324
1590
|
t = s;
|
|
1325
1591
|
}),
|
|
1326
1592
|
cancel: t
|
|
1327
1593
|
};
|
|
1328
1594
|
}
|
|
1329
|
-
}
|
|
1330
|
-
function
|
|
1595
|
+
};
|
|
1596
|
+
function Fn(e) {
|
|
1331
1597
|
return function(n) {
|
|
1332
1598
|
return e.apply(null, n);
|
|
1333
1599
|
};
|
|
1334
1600
|
}
|
|
1335
|
-
function
|
|
1601
|
+
function _n(e) {
|
|
1336
1602
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1337
1603
|
}
|
|
1338
|
-
const
|
|
1604
|
+
const le = {
|
|
1339
1605
|
Continue: 100,
|
|
1340
1606
|
SwitchingProtocols: 101,
|
|
1341
1607
|
Processing: 102,
|
|
@@ -1400,51 +1666,74 @@ const v = {
|
|
|
1400
1666
|
NotExtended: 510,
|
|
1401
1667
|
NetworkAuthenticationRequired: 511
|
|
1402
1668
|
};
|
|
1403
|
-
Object.entries(
|
|
1404
|
-
|
|
1669
|
+
Object.entries(le).forEach(([e, t]) => {
|
|
1670
|
+
le[t] = e;
|
|
1405
1671
|
});
|
|
1406
|
-
function
|
|
1407
|
-
const t = new
|
|
1408
|
-
return a.extend(n,
|
|
1409
|
-
return
|
|
1672
|
+
function Qe(e) {
|
|
1673
|
+
const t = new L(e), n = Ce(L.prototype.request, t);
|
|
1674
|
+
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1675
|
+
return Qe(B(e, s));
|
|
1410
1676
|
}, n;
|
|
1411
1677
|
}
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1678
|
+
const E = Qe(z);
|
|
1679
|
+
E.Axios = L;
|
|
1680
|
+
E.CanceledError = k;
|
|
1681
|
+
E.CancelToken = Pn;
|
|
1682
|
+
E.isCancel = ze;
|
|
1683
|
+
E.VERSION = Xe;
|
|
1684
|
+
E.toFormData = Z;
|
|
1685
|
+
E.AxiosError = m;
|
|
1686
|
+
E.Cancel = E.CanceledError;
|
|
1687
|
+
E.all = function(t) {
|
|
1422
1688
|
return Promise.all(t);
|
|
1423
1689
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1690
|
+
E.spread = Fn;
|
|
1691
|
+
E.isAxiosError = _n;
|
|
1692
|
+
E.mergeConfig = B;
|
|
1693
|
+
E.AxiosHeaders = x;
|
|
1694
|
+
E.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1695
|
+
E.getAdapter = ve.getAdapter;
|
|
1696
|
+
E.HttpStatusCode = le;
|
|
1697
|
+
E.default = E;
|
|
1698
|
+
const {
|
|
1699
|
+
Axios: jn,
|
|
1700
|
+
AxiosError: qn,
|
|
1701
|
+
CanceledError: In,
|
|
1702
|
+
isCancel: Hn,
|
|
1703
|
+
CancelToken: Mn,
|
|
1704
|
+
VERSION: zn,
|
|
1705
|
+
all: $n,
|
|
1706
|
+
Cancel: Jn,
|
|
1707
|
+
isAxiosError: Vn,
|
|
1708
|
+
spread: Wn,
|
|
1709
|
+
toFormData: Kn,
|
|
1710
|
+
AxiosHeaders: vn,
|
|
1711
|
+
HttpStatusCode: Xn,
|
|
1712
|
+
formToJSON: Gn,
|
|
1713
|
+
getAdapter: Qn,
|
|
1714
|
+
mergeConfig: Zn
|
|
1715
|
+
} = E, Yn = async (e) => {
|
|
1716
|
+
var n;
|
|
1434
1717
|
const t = {
|
|
1435
1718
|
personalInfo: "/api/personal-center/personal-server/v1/info"
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1719
|
+
};
|
|
1720
|
+
try {
|
|
1721
|
+
const r = await E.create().get(t.personalInfo, {
|
|
1722
|
+
baseURL: et().baseURL,
|
|
1723
|
+
params: {
|
|
1724
|
+
project: (n = Ye()) == null ? void 0 : n.id,
|
|
1725
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
1726
|
+
},
|
|
1727
|
+
headers: {
|
|
1728
|
+
Authorization: `Bearer ${e}`,
|
|
1729
|
+
"X-Origin": location.origin,
|
|
1730
|
+
"Accept-Language": Ze.value
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
|
|
1734
|
+
} catch {
|
|
1735
|
+
}
|
|
1447
1736
|
};
|
|
1448
1737
|
export {
|
|
1449
|
-
|
|
1738
|
+
Yn as setPersonalInfo
|
|
1450
1739
|
};
|