@opencloud-eu/web-client 5.1.0 → 6.0.0
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/{functions-JSgappH3.js → functions-BBKWOL6l.js} +1 -1
- package/dist/{functions-K2XX5sqY.cjs → functions-VxhUeT1u.cjs} +1 -1
- package/dist/{index-Dn0XwAD_.cjs → index-BYnmk_Nt.cjs} +10 -10
- package/dist/{index-YuBBVVCr.js → index-Bf956okn.js} +172 -158
- package/dist/{index-CRMq09Yn.js → index-Bjx4f50a.js} +630 -564
- package/dist/index-C32gBO3b.cjs +6 -0
- package/dist/index-Di51ZQKD.cjs +4 -0
- package/dist/index-Dn8UfKx7.js +1520 -0
- package/dist/{index-Brk6gzFd.js → index-Sp7XASDj.js} +1 -1
- package/dist/{index-CDNcS2Ra.cjs → index-_S-l3FmE.cjs} +1 -1
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +5 -5
- package/package.json +1 -1
- package/dist/index-Bjk4YP4o.js +0 -1447
- package/dist/index-_QOU-c0Z.cjs +0 -4
- package/dist/index-mNoGEl9R.cjs +0 -6
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
function
|
|
1
|
+
import { g as Se, B as Ft } from "./index-cttW6Cve.js";
|
|
2
|
+
function Ut(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var st = { exports: {} }, w = st.exports = {}, L, D;
|
|
6
|
+
function Oe() {
|
|
7
7
|
throw new Error("setTimeout has not been defined");
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Te() {
|
|
10
10
|
throw new Error("clearTimeout has not been defined");
|
|
11
11
|
}
|
|
12
12
|
(function() {
|
|
13
13
|
try {
|
|
14
|
-
typeof setTimeout == "function" ? L = setTimeout : L =
|
|
14
|
+
typeof setTimeout == "function" ? L = setTimeout : L = Oe;
|
|
15
15
|
} catch {
|
|
16
|
-
L =
|
|
16
|
+
L = Oe;
|
|
17
17
|
}
|
|
18
18
|
try {
|
|
19
|
-
typeof clearTimeout == "function" ? D = clearTimeout : D =
|
|
19
|
+
typeof clearTimeout == "function" ? D = clearTimeout : D = Te;
|
|
20
20
|
} catch {
|
|
21
|
-
D =
|
|
21
|
+
D = Te;
|
|
22
22
|
}
|
|
23
23
|
})();
|
|
24
|
-
function
|
|
24
|
+
function ot(e) {
|
|
25
25
|
if (L === setTimeout)
|
|
26
26
|
return setTimeout(e, 0);
|
|
27
|
-
if ((L ===
|
|
27
|
+
if ((L === Oe || !L) && setTimeout)
|
|
28
28
|
return L = setTimeout, setTimeout(e, 0);
|
|
29
29
|
try {
|
|
30
30
|
return L(e, 0);
|
|
@@ -36,10 +36,10 @@ function nt(e) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Lt(e) {
|
|
40
40
|
if (D === clearTimeout)
|
|
41
41
|
return clearTimeout(e);
|
|
42
|
-
if ((D ===
|
|
42
|
+
if ((D === Te || !D) && clearTimeout)
|
|
43
43
|
return D = clearTimeout, clearTimeout(e);
|
|
44
44
|
try {
|
|
45
45
|
return D(e);
|
|
@@ -52,19 +52,19 @@ function Ft(e) {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
var B = [], V = !1, M, ie = -1;
|
|
55
|
-
function
|
|
56
|
-
!V || !M || (V = !1, M.length ? B = M.concat(B) : ie = -1, B.length &&
|
|
55
|
+
function Dt() {
|
|
56
|
+
!V || !M || (V = !1, M.length ? B = M.concat(B) : ie = -1, B.length && it());
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function it() {
|
|
59
59
|
if (!V) {
|
|
60
|
-
var e =
|
|
60
|
+
var e = ot(Dt);
|
|
61
61
|
V = !0;
|
|
62
62
|
for (var t = B.length; t; ) {
|
|
63
63
|
for (M = B, B = []; ++ie < t; )
|
|
64
64
|
M && M[ie].run();
|
|
65
65
|
ie = -1, t = B.length;
|
|
66
66
|
}
|
|
67
|
-
M = null, V = !1,
|
|
67
|
+
M = null, V = !1, Lt(e);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
w.nextTick = function(e) {
|
|
@@ -72,12 +72,12 @@ w.nextTick = function(e) {
|
|
|
72
72
|
if (arguments.length > 1)
|
|
73
73
|
for (var n = 1; n < arguments.length; n++)
|
|
74
74
|
t[n - 1] = arguments[n];
|
|
75
|
-
B.push(new
|
|
75
|
+
B.push(new at(e, t)), B.length === 1 && !V && ot(it);
|
|
76
76
|
};
|
|
77
|
-
function
|
|
77
|
+
function at(e, t) {
|
|
78
78
|
this.fun = e, this.array = t;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
at.prototype.run = function() {
|
|
81
81
|
this.fun.apply(null, this.array);
|
|
82
82
|
};
|
|
83
83
|
w.title = "browser";
|
|
@@ -112,48 +112,52 @@ w.chdir = function(e) {
|
|
|
112
112
|
w.umask = function() {
|
|
113
113
|
return 0;
|
|
114
114
|
};
|
|
115
|
-
var
|
|
116
|
-
const
|
|
117
|
-
function
|
|
115
|
+
var Bt = st.exports;
|
|
116
|
+
const He = /* @__PURE__ */ Ut(Bt);
|
|
117
|
+
function ct(e, t) {
|
|
118
118
|
return function() {
|
|
119
119
|
return e.apply(t, arguments);
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
const { toString:
|
|
123
|
-
const n =
|
|
122
|
+
const { toString: kt } = Object.prototype, { getPrototypeOf: Ne } = Object, { iterator: fe, toStringTag: ut } = Symbol, de = /* @__PURE__ */ ((e) => (t) => {
|
|
123
|
+
const n = kt.call(t);
|
|
124
124
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
125
125
|
})(/* @__PURE__ */ Object.create(null)), U = (e) => (e = e.toLowerCase(), (t) => de(t) === e), pe = (e) => (t) => typeof t === e, { isArray: K } = Array, W = pe("undefined");
|
|
126
|
-
function
|
|
126
|
+
function Q(e) {
|
|
127
127
|
return e !== null && !W(e) && e.constructor !== null && !W(e.constructor) && C(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
129
|
+
const lt = U("ArrayBuffer");
|
|
130
|
+
function jt(e) {
|
|
131
131
|
let t;
|
|
132
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
132
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && lt(e.buffer), t;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const qt = pe("string"), C = pe("function"), ft = pe("number"), Z = (e) => e !== null && typeof e == "object", It = (e) => e === !0 || e === !1, ae = (e) => {
|
|
135
135
|
if (de(e) !== "object")
|
|
136
136
|
return !1;
|
|
137
|
-
const t =
|
|
138
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
139
|
-
},
|
|
140
|
-
if (!Z(e) ||
|
|
137
|
+
const t = Ne(e);
|
|
138
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(fe in e);
|
|
139
|
+
}, Ht = (e) => {
|
|
140
|
+
if (!Z(e) || Q(e))
|
|
141
141
|
return !1;
|
|
142
142
|
try {
|
|
143
143
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
144
144
|
} catch {
|
|
145
145
|
return !1;
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, Mt = U("Date"), $t = U("File"), vt = (e) => !!(e && typeof e.uri < "u"), zt = (e) => e && typeof e.getParts < "u", Jt = U("Blob"), Vt = U("FileList"), Wt = (e) => Z(e) && C(e.pipe);
|
|
148
|
+
function Kt() {
|
|
149
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof Se < "u" ? Se : {};
|
|
150
|
+
}
|
|
151
|
+
const Me = Kt(), $e = typeof Me.FormData < "u" ? Me.FormData : void 0, Xt = (e) => {
|
|
148
152
|
let t;
|
|
149
|
-
return e && (
|
|
153
|
+
return e && ($e && e instanceof $e || C(e.append) && ((t = de(e)) === "formdata" || // detect form-data instance
|
|
150
154
|
t === "object" && C(e.toString) && e.toString() === "[object FormData]"));
|
|
151
|
-
},
|
|
155
|
+
}, Gt = U("URLSearchParams"), [Qt, Zt, Yt, en] = [
|
|
152
156
|
"ReadableStream",
|
|
153
157
|
"Request",
|
|
154
158
|
"Response",
|
|
155
159
|
"Headers"
|
|
156
|
-
].map(U),
|
|
160
|
+
].map(U), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
157
161
|
function Y(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
158
162
|
if (e === null || typeof e > "u")
|
|
159
163
|
return;
|
|
@@ -162,7 +166,7 @@ function Y(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
162
166
|
for (r = 0, s = e.length; r < s; r++)
|
|
163
167
|
t.call(null, e[r], r, e);
|
|
164
168
|
else {
|
|
165
|
-
if (
|
|
169
|
+
if (Q(e))
|
|
166
170
|
return;
|
|
167
171
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
168
172
|
let c;
|
|
@@ -170,8 +174,8 @@ function Y(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
170
174
|
c = o[r], t.call(null, e[c], c, e);
|
|
171
175
|
}
|
|
172
176
|
}
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
177
|
+
function dt(e, t) {
|
|
178
|
+
if (Q(e))
|
|
175
179
|
return null;
|
|
176
180
|
t = t.toLowerCase();
|
|
177
181
|
const n = Object.keys(e);
|
|
@@ -181,23 +185,23 @@ function ut(e, t) {
|
|
|
181
185
|
return s;
|
|
182
186
|
return null;
|
|
183
187
|
}
|
|
184
|
-
const $ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
185
|
-
function
|
|
186
|
-
const { caseless: e, skipUndefined: t } =
|
|
188
|
+
const $ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Se, pt = (e) => !W(e) && e !== $;
|
|
189
|
+
function Ae() {
|
|
190
|
+
const { caseless: e, skipUndefined: t } = pt(this) && this || {}, n = {}, r = (s, o) => {
|
|
187
191
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
188
192
|
return;
|
|
189
|
-
const i = e &&
|
|
190
|
-
ae(n[i]) && ae(s) ? n[i] =
|
|
193
|
+
const i = e && dt(n, o) || o;
|
|
194
|
+
ae(n[i]) && ae(s) ? n[i] = Ae(n[i], s) : ae(s) ? n[i] = Ae({}, s) : K(s) ? n[i] = s.slice() : (!t || !W(s)) && (n[i] = s);
|
|
191
195
|
};
|
|
192
196
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
193
197
|
arguments[s] && Y(arguments[s], r);
|
|
194
198
|
return n;
|
|
195
199
|
}
|
|
196
|
-
const
|
|
200
|
+
const nn = (e, t, n, { allOwnKeys: r } = {}) => (Y(
|
|
197
201
|
t,
|
|
198
202
|
(s, o) => {
|
|
199
203
|
n && C(s) ? Object.defineProperty(e, o, {
|
|
200
|
-
value:
|
|
204
|
+
value: ct(s, n),
|
|
201
205
|
writable: !0,
|
|
202
206
|
enumerable: !0,
|
|
203
207
|
configurable: !0
|
|
@@ -209,11 +213,8 @@ const Gt = (e, t, n, { allOwnKeys: r } = {}) => (Y(
|
|
|
209
213
|
});
|
|
210
214
|
},
|
|
211
215
|
{ allOwnKeys: r }
|
|
212
|
-
), e),
|
|
213
|
-
e.prototype = Object.create(
|
|
214
|
-
t.prototype,
|
|
215
|
-
r
|
|
216
|
-
), Object.defineProperty(e.prototype, "constructor", {
|
|
216
|
+
), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
|
|
217
|
+
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
217
218
|
value: e,
|
|
218
219
|
writable: !0,
|
|
219
220
|
enumerable: !1,
|
|
@@ -221,52 +222,52 @@ const Gt = (e, t, n, { allOwnKeys: r } = {}) => (Y(
|
|
|
221
222
|
}), Object.defineProperty(e, "super", {
|
|
222
223
|
value: t.prototype
|
|
223
224
|
}), n && Object.assign(e.prototype, n);
|
|
224
|
-
},
|
|
225
|
+
}, on = (e, t, n, r) => {
|
|
225
226
|
let s, o, i;
|
|
226
227
|
const c = {};
|
|
227
228
|
if (t = t || {}, e == null) return t;
|
|
228
229
|
do {
|
|
229
230
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
230
231
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
231
|
-
e = n !== !1 &&
|
|
232
|
+
e = n !== !1 && Ne(e);
|
|
232
233
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
233
234
|
return t;
|
|
234
|
-
},
|
|
235
|
+
}, an = (e, t, n) => {
|
|
235
236
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
236
237
|
const r = e.indexOf(t, n);
|
|
237
238
|
return r !== -1 && r === n;
|
|
238
|
-
},
|
|
239
|
+
}, cn = (e) => {
|
|
239
240
|
if (!e) return null;
|
|
240
241
|
if (K(e)) return e;
|
|
241
242
|
let t = e.length;
|
|
242
|
-
if (!
|
|
243
|
+
if (!ft(t)) return null;
|
|
243
244
|
const n = new Array(t);
|
|
244
245
|
for (; t-- > 0; )
|
|
245
246
|
n[t] = e[t];
|
|
246
247
|
return n;
|
|
247
|
-
},
|
|
248
|
+
}, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ne(Uint8Array)), ln = (e, t) => {
|
|
248
249
|
const r = (e && e[fe]).call(e);
|
|
249
250
|
let s;
|
|
250
251
|
for (; (s = r.next()) && !s.done; ) {
|
|
251
252
|
const o = s.value;
|
|
252
253
|
t.call(e, o[0], o[1]);
|
|
253
254
|
}
|
|
254
|
-
},
|
|
255
|
+
}, fn = (e, t) => {
|
|
255
256
|
let n;
|
|
256
257
|
const r = [];
|
|
257
258
|
for (; (n = e.exec(t)) !== null; )
|
|
258
259
|
r.push(n);
|
|
259
260
|
return r;
|
|
260
|
-
},
|
|
261
|
+
}, dn = U("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
261
262
|
return r.toUpperCase() + s;
|
|
262
|
-
}),
|
|
263
|
+
}), ve = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = U("RegExp"), ht = (e, t) => {
|
|
263
264
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
264
265
|
Y(n, (s, o) => {
|
|
265
266
|
let i;
|
|
266
267
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
267
268
|
}), Object.defineProperties(e, r);
|
|
268
|
-
},
|
|
269
|
-
|
|
269
|
+
}, mn = (e) => {
|
|
270
|
+
ht(e, (t, n) => {
|
|
270
271
|
if (C(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
271
272
|
return !1;
|
|
272
273
|
const r = e[n];
|
|
@@ -280,38 +281,38 @@ const Gt = (e, t, n, { allOwnKeys: r } = {}) => (Y(
|
|
|
280
281
|
});
|
|
281
282
|
}
|
|
282
283
|
});
|
|
283
|
-
},
|
|
284
|
+
}, yn = (e, t) => {
|
|
284
285
|
const n = {}, r = (s) => {
|
|
285
286
|
s.forEach((o) => {
|
|
286
287
|
n[o] = !0;
|
|
287
288
|
});
|
|
288
289
|
};
|
|
289
290
|
return K(e) ? r(e) : r(String(e).split(t)), n;
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
function
|
|
293
|
-
return !!(e && C(e.append) && e[
|
|
291
|
+
}, bn = () => {
|
|
292
|
+
}, wn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
293
|
+
function En(e) {
|
|
294
|
+
return !!(e && C(e.append) && e[ut] === "FormData" && e[fe]);
|
|
294
295
|
}
|
|
295
|
-
const
|
|
296
|
+
const Rn = (e) => {
|
|
296
297
|
const t = new Array(10), n = (r, s) => {
|
|
297
298
|
if (Z(r)) {
|
|
298
299
|
if (t.indexOf(r) >= 0)
|
|
299
300
|
return;
|
|
300
|
-
if (
|
|
301
|
+
if (Q(r))
|
|
301
302
|
return r;
|
|
302
303
|
if (!("toJSON" in r)) {
|
|
303
304
|
t[s] = r;
|
|
304
305
|
const o = K(r) ? [] : {};
|
|
305
306
|
return Y(r, (i, c) => {
|
|
306
|
-
const
|
|
307
|
-
!W(
|
|
307
|
+
const p = n(i, s + 1);
|
|
308
|
+
!W(p) && (o[c] = p);
|
|
308
309
|
}), t[s] = void 0, o;
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
312
|
return r;
|
|
312
313
|
};
|
|
313
314
|
return n(e, 0);
|
|
314
|
-
},
|
|
315
|
+
}, gn = U("AsyncFunction"), Sn = (e) => e && (Z(e) || C(e)) && C(e.then) && C(e.catch), mt = ((e, t) => e ? setImmediate : t ? ((n, r) => ($.addEventListener(
|
|
315
316
|
"message",
|
|
316
317
|
({ source: s, data: o }) => {
|
|
317
318
|
s === $ && o === n && r.length && r.shift()();
|
|
@@ -319,70 +320,72 @@ const mn = (e) => {
|
|
|
319
320
|
!1
|
|
320
321
|
), (s) => {
|
|
321
322
|
r.push(s), $.postMessage(n, "*");
|
|
322
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", C($.postMessage)),
|
|
323
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", C($.postMessage)), On = typeof queueMicrotask < "u" ? queueMicrotask.bind($) : typeof He < "u" && He.nextTick || mt, Tn = (e) => e != null && C(e[fe]), a = {
|
|
323
324
|
isArray: K,
|
|
324
|
-
isArrayBuffer:
|
|
325
|
-
isBuffer:
|
|
326
|
-
isFormData:
|
|
327
|
-
isArrayBufferView:
|
|
328
|
-
isString:
|
|
329
|
-
isNumber:
|
|
330
|
-
isBoolean:
|
|
325
|
+
isArrayBuffer: lt,
|
|
326
|
+
isBuffer: Q,
|
|
327
|
+
isFormData: Xt,
|
|
328
|
+
isArrayBufferView: jt,
|
|
329
|
+
isString: qt,
|
|
330
|
+
isNumber: ft,
|
|
331
|
+
isBoolean: It,
|
|
331
332
|
isObject: Z,
|
|
332
333
|
isPlainObject: ae,
|
|
333
|
-
isEmptyObject:
|
|
334
|
-
isReadableStream:
|
|
335
|
-
isRequest:
|
|
336
|
-
isResponse:
|
|
337
|
-
isHeaders:
|
|
334
|
+
isEmptyObject: Ht,
|
|
335
|
+
isReadableStream: Qt,
|
|
336
|
+
isRequest: Zt,
|
|
337
|
+
isResponse: Yt,
|
|
338
|
+
isHeaders: en,
|
|
338
339
|
isUndefined: W,
|
|
339
|
-
isDate:
|
|
340
|
-
isFile:
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
isDate: Mt,
|
|
341
|
+
isFile: $t,
|
|
342
|
+
isReactNativeBlob: vt,
|
|
343
|
+
isReactNative: zt,
|
|
344
|
+
isBlob: Jt,
|
|
345
|
+
isRegExp: hn,
|
|
343
346
|
isFunction: C,
|
|
344
|
-
isStream:
|
|
345
|
-
isURLSearchParams:
|
|
346
|
-
isTypedArray:
|
|
347
|
-
isFileList:
|
|
347
|
+
isStream: Wt,
|
|
348
|
+
isURLSearchParams: Gt,
|
|
349
|
+
isTypedArray: un,
|
|
350
|
+
isFileList: Vt,
|
|
348
351
|
forEach: Y,
|
|
349
|
-
merge:
|
|
350
|
-
extend:
|
|
351
|
-
trim:
|
|
352
|
-
stripBOM:
|
|
353
|
-
inherits:
|
|
354
|
-
toFlatObject:
|
|
352
|
+
merge: Ae,
|
|
353
|
+
extend: nn,
|
|
354
|
+
trim: tn,
|
|
355
|
+
stripBOM: rn,
|
|
356
|
+
inherits: sn,
|
|
357
|
+
toFlatObject: on,
|
|
355
358
|
kindOf: de,
|
|
356
359
|
kindOfTest: U,
|
|
357
|
-
endsWith:
|
|
358
|
-
toArray:
|
|
359
|
-
forEachEntry:
|
|
360
|
-
matchAll:
|
|
361
|
-
isHTMLForm:
|
|
362
|
-
hasOwnProperty:
|
|
363
|
-
hasOwnProp:
|
|
360
|
+
endsWith: an,
|
|
361
|
+
toArray: cn,
|
|
362
|
+
forEachEntry: ln,
|
|
363
|
+
matchAll: fn,
|
|
364
|
+
isHTMLForm: dn,
|
|
365
|
+
hasOwnProperty: ve,
|
|
366
|
+
hasOwnProp: ve,
|
|
364
367
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
365
|
-
reduceDescriptors:
|
|
366
|
-
freezeMethods:
|
|
367
|
-
toObjectSet:
|
|
368
|
-
toCamelCase:
|
|
369
|
-
noop:
|
|
370
|
-
toFiniteNumber:
|
|
371
|
-
findKey:
|
|
368
|
+
reduceDescriptors: ht,
|
|
369
|
+
freezeMethods: mn,
|
|
370
|
+
toObjectSet: yn,
|
|
371
|
+
toCamelCase: pn,
|
|
372
|
+
noop: bn,
|
|
373
|
+
toFiniteNumber: wn,
|
|
374
|
+
findKey: dt,
|
|
372
375
|
global: $,
|
|
373
|
-
isContextDefined:
|
|
374
|
-
isSpecCompliantForm:
|
|
375
|
-
toJSONObject:
|
|
376
|
-
isAsyncFn:
|
|
377
|
-
isThenable:
|
|
378
|
-
setImmediate:
|
|
379
|
-
asap:
|
|
380
|
-
isIterable:
|
|
376
|
+
isContextDefined: pt,
|
|
377
|
+
isSpecCompliantForm: En,
|
|
378
|
+
toJSONObject: Rn,
|
|
379
|
+
isAsyncFn: gn,
|
|
380
|
+
isThenable: Sn,
|
|
381
|
+
setImmediate: mt,
|
|
382
|
+
asap: On,
|
|
383
|
+
isIterable: Tn
|
|
381
384
|
};
|
|
382
|
-
let y = class
|
|
385
|
+
let y = class yt extends Error {
|
|
383
386
|
static from(t, n, r, s, o, i) {
|
|
384
|
-
const c = new
|
|
385
|
-
return c.cause = t, c.name = t.name, i && Object.assign(c, i), c;
|
|
387
|
+
const c = new yt(t.message, n || t.code, r, s, o);
|
|
388
|
+
return c.cause = t, c.name = t.name, t.status != null && c.status == null && (c.status = t.status), i && Object.assign(c, i), c;
|
|
386
389
|
}
|
|
387
390
|
/**
|
|
388
391
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -396,7 +399,12 @@ let y = class pt extends Error {
|
|
|
396
399
|
* @returns {Error} The created error.
|
|
397
400
|
*/
|
|
398
401
|
constructor(t, n, r, s, o) {
|
|
399
|
-
super(t),
|
|
402
|
+
super(t), Object.defineProperty(this, "message", {
|
|
403
|
+
value: t,
|
|
404
|
+
enumerable: !0,
|
|
405
|
+
writable: !0,
|
|
406
|
+
configurable: !0
|
|
407
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status);
|
|
400
408
|
}
|
|
401
409
|
toJSON() {
|
|
402
410
|
return {
|
|
@@ -430,35 +438,40 @@ y.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
430
438
|
y.ERR_CANCELED = "ERR_CANCELED";
|
|
431
439
|
y.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
432
440
|
y.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
433
|
-
const
|
|
434
|
-
function
|
|
441
|
+
const An = null;
|
|
442
|
+
function Ce(e) {
|
|
435
443
|
return a.isPlainObject(e) || a.isArray(e);
|
|
436
444
|
}
|
|
437
|
-
function
|
|
445
|
+
function bt(e) {
|
|
438
446
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
439
447
|
}
|
|
440
|
-
function
|
|
448
|
+
function we(e, t, n) {
|
|
441
449
|
return e ? e.concat(t).map(function(s, o) {
|
|
442
|
-
return s =
|
|
450
|
+
return s = bt(s), !n && o ? "[" + s + "]" : s;
|
|
443
451
|
}).join(n ? "." : "") : t;
|
|
444
452
|
}
|
|
445
|
-
function
|
|
446
|
-
return a.isArray(e) && !e.some(
|
|
453
|
+
function Cn(e) {
|
|
454
|
+
return a.isArray(e) && !e.some(Ce);
|
|
447
455
|
}
|
|
448
|
-
const
|
|
456
|
+
const xn = a.toFlatObject(a, {}, null, function(t) {
|
|
449
457
|
return /^is[A-Z]/.test(t);
|
|
450
458
|
});
|
|
451
459
|
function he(e, t, n) {
|
|
452
460
|
if (!a.isObject(e))
|
|
453
461
|
throw new TypeError("target must be an object");
|
|
454
|
-
t = t || new FormData(), n = a.toFlatObject(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
+
t = t || new FormData(), n = a.toFlatObject(
|
|
463
|
+
n,
|
|
464
|
+
{
|
|
465
|
+
metaTokens: !0,
|
|
466
|
+
dots: !1,
|
|
467
|
+
indexes: !1
|
|
468
|
+
},
|
|
469
|
+
!1,
|
|
470
|
+
function(m, d) {
|
|
471
|
+
return !a.isUndefined(d[m]);
|
|
472
|
+
}
|
|
473
|
+
);
|
|
474
|
+
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
462
475
|
if (!a.isFunction(s))
|
|
463
476
|
throw new TypeError("visitor must be a function");
|
|
464
477
|
function f(l) {
|
|
@@ -467,43 +480,39 @@ function he(e, t, n) {
|
|
|
467
480
|
return l.toISOString();
|
|
468
481
|
if (a.isBoolean(l))
|
|
469
482
|
return l.toString();
|
|
470
|
-
if (!
|
|
483
|
+
if (!p && a.isBlob(l))
|
|
471
484
|
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
472
|
-
return a.isArrayBuffer(l) || a.isTypedArray(l) ?
|
|
485
|
+
return a.isArrayBuffer(l) || a.isTypedArray(l) ? p && typeof Blob == "function" ? new Blob([l]) : Ft.from(l) : l;
|
|
473
486
|
}
|
|
474
|
-
function u(l, m,
|
|
487
|
+
function u(l, m, d) {
|
|
475
488
|
let E = l;
|
|
476
|
-
if (
|
|
489
|
+
if (a.isReactNative(t) && a.isReactNativeBlob(l))
|
|
490
|
+
return t.append(we(d, m, o), f(l)), !1;
|
|
491
|
+
if (l && !d && typeof l == "object") {
|
|
477
492
|
if (a.endsWith(m, "{}"))
|
|
478
493
|
m = r ? m : m.slice(0, -2), l = JSON.stringify(l);
|
|
479
|
-
else if (a.isArray(l) &&
|
|
480
|
-
return m =
|
|
494
|
+
else if (a.isArray(l) && Cn(l) || (a.isFileList(l) || a.endsWith(m, "[]")) && (E = a.toArray(l)))
|
|
495
|
+
return m = bt(m), E.forEach(function(g, T) {
|
|
481
496
|
!(a.isUndefined(g) || g === null) && t.append(
|
|
482
497
|
// eslint-disable-next-line no-nested-ternary
|
|
483
|
-
i === !0 ?
|
|
498
|
+
i === !0 ? we([m], T, o) : i === null ? m : m + "[]",
|
|
484
499
|
f(g)
|
|
485
500
|
);
|
|
486
501
|
}), !1;
|
|
487
502
|
}
|
|
488
|
-
return
|
|
503
|
+
return Ce(l) ? !0 : (t.append(we(d, m, o), f(l)), !1);
|
|
489
504
|
}
|
|
490
|
-
const h = [], b = Object.assign(
|
|
505
|
+
const h = [], b = Object.assign(xn, {
|
|
491
506
|
defaultVisitor: u,
|
|
492
507
|
convertValue: f,
|
|
493
|
-
isVisitable:
|
|
508
|
+
isVisitable: Ce
|
|
494
509
|
});
|
|
495
510
|
function S(l, m) {
|
|
496
511
|
if (!a.isUndefined(l)) {
|
|
497
512
|
if (h.indexOf(l) !== -1)
|
|
498
513
|
throw Error("Circular reference detected in " + m.join("."));
|
|
499
514
|
h.push(l), a.forEach(l, function(E, _) {
|
|
500
|
-
(!(a.isUndefined(E) || E === null) && s.call(
|
|
501
|
-
t,
|
|
502
|
-
E,
|
|
503
|
-
a.isString(_) ? _.trim() : _,
|
|
504
|
-
m,
|
|
505
|
-
b
|
|
506
|
-
)) === !0 && S(E, m ? m.concat(_) : [_]);
|
|
515
|
+
(!(a.isUndefined(E) || E === null) && s.call(t, E, a.isString(_) ? _.trim() : _, m, b)) === !0 && S(E, m ? m.concat(_) : [_]);
|
|
507
516
|
}), h.pop();
|
|
508
517
|
}
|
|
509
518
|
}
|
|
@@ -511,7 +520,7 @@ function he(e, t, n) {
|
|
|
511
520
|
throw new TypeError("data must be an object");
|
|
512
521
|
return S(e), t;
|
|
513
522
|
}
|
|
514
|
-
function
|
|
523
|
+
function ze(e) {
|
|
515
524
|
const t = {
|
|
516
525
|
"!": "%21",
|
|
517
526
|
"'": "%27",
|
|
@@ -525,38 +534,38 @@ function Me(e) {
|
|
|
525
534
|
return t[r];
|
|
526
535
|
});
|
|
527
536
|
}
|
|
528
|
-
function
|
|
537
|
+
function Pe(e, t) {
|
|
529
538
|
this._pairs = [], e && he(e, this, t);
|
|
530
539
|
}
|
|
531
|
-
const
|
|
532
|
-
|
|
540
|
+
const wt = Pe.prototype;
|
|
541
|
+
wt.append = function(t, n) {
|
|
533
542
|
this._pairs.push([t, n]);
|
|
534
543
|
};
|
|
535
|
-
|
|
544
|
+
wt.toString = function(t) {
|
|
536
545
|
const n = t ? function(r) {
|
|
537
|
-
return t.call(this, r,
|
|
538
|
-
} :
|
|
546
|
+
return t.call(this, r, ze);
|
|
547
|
+
} : ze;
|
|
539
548
|
return this._pairs.map(function(s) {
|
|
540
549
|
return n(s[0]) + "=" + n(s[1]);
|
|
541
550
|
}, "").join("&");
|
|
542
551
|
};
|
|
543
|
-
function
|
|
552
|
+
function _n(e) {
|
|
544
553
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
545
554
|
}
|
|
546
|
-
function
|
|
555
|
+
function Et(e, t, n) {
|
|
547
556
|
if (!t)
|
|
548
557
|
return e;
|
|
549
|
-
const r = n && n.encode ||
|
|
558
|
+
const r = n && n.encode || _n, s = a.isFunction(n) ? {
|
|
550
559
|
serialize: n
|
|
551
560
|
} : n, o = s && s.serialize;
|
|
552
561
|
let i;
|
|
553
|
-
if (o ? i = o(t, s) : i = a.isURLSearchParams(t) ? t.toString() : new
|
|
562
|
+
if (o ? i = o(t, s) : i = a.isURLSearchParams(t) ? t.toString() : new Pe(t, s).toString(r), i) {
|
|
554
563
|
const c = e.indexOf("#");
|
|
555
564
|
c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
556
565
|
}
|
|
557
566
|
return e;
|
|
558
567
|
}
|
|
559
|
-
class
|
|
568
|
+
class Je {
|
|
560
569
|
constructor() {
|
|
561
570
|
this.handlers = [];
|
|
562
571
|
}
|
|
@@ -611,32 +620,32 @@ class $e {
|
|
|
611
620
|
});
|
|
612
621
|
}
|
|
613
622
|
}
|
|
614
|
-
const
|
|
623
|
+
const Fe = {
|
|
615
624
|
silentJSONParsing: !0,
|
|
616
625
|
forcedJSONParsing: !0,
|
|
617
626
|
clarifyTimeoutError: !1,
|
|
618
627
|
legacyInterceptorReqResOrdering: !0
|
|
619
|
-
},
|
|
628
|
+
}, Nn = typeof URLSearchParams < "u" ? URLSearchParams : Pe, Pn = typeof FormData < "u" ? FormData : null, Fn = typeof Blob < "u" ? Blob : null, Un = {
|
|
620
629
|
isBrowser: !0,
|
|
621
630
|
classes: {
|
|
622
|
-
URLSearchParams:
|
|
623
|
-
FormData:
|
|
624
|
-
Blob:
|
|
631
|
+
URLSearchParams: Nn,
|
|
632
|
+
FormData: Pn,
|
|
633
|
+
Blob: Fn
|
|
625
634
|
},
|
|
626
635
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
627
|
-
},
|
|
628
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
636
|
+
}, Ue = typeof window < "u" && typeof document < "u", xe = typeof navigator == "object" && navigator || void 0, Ln = Ue && (!xe || ["ReactNative", "NativeScript", "NS"].indexOf(xe.product) < 0), Dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
637
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = Ue && window.location.href || "http://localhost", kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
629
638
|
__proto__: null,
|
|
630
|
-
hasBrowserEnv:
|
|
631
|
-
hasStandardBrowserEnv:
|
|
632
|
-
hasStandardBrowserWebWorkerEnv:
|
|
633
|
-
navigator:
|
|
634
|
-
origin:
|
|
639
|
+
hasBrowserEnv: Ue,
|
|
640
|
+
hasStandardBrowserEnv: Ln,
|
|
641
|
+
hasStandardBrowserWebWorkerEnv: Dn,
|
|
642
|
+
navigator: xe,
|
|
643
|
+
origin: Bn
|
|
635
644
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
636
|
-
...
|
|
637
|
-
...
|
|
645
|
+
...kn,
|
|
646
|
+
...Un
|
|
638
647
|
};
|
|
639
|
-
function
|
|
648
|
+
function jn(e, t) {
|
|
640
649
|
return he(e, new O.classes.URLSearchParams(), {
|
|
641
650
|
visitor: function(n, r, s, o) {
|
|
642
651
|
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -644,10 +653,10 @@ function Un(e, t) {
|
|
|
644
653
|
...t
|
|
645
654
|
});
|
|
646
655
|
}
|
|
647
|
-
function
|
|
656
|
+
function qn(e) {
|
|
648
657
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
649
658
|
}
|
|
650
|
-
function
|
|
659
|
+
function In(e) {
|
|
651
660
|
const t = {}, n = Object.keys(e);
|
|
652
661
|
let r;
|
|
653
662
|
const s = n.length;
|
|
@@ -656,22 +665,22 @@ function Dn(e) {
|
|
|
656
665
|
o = n[r], t[o] = e[o];
|
|
657
666
|
return t;
|
|
658
667
|
}
|
|
659
|
-
function
|
|
668
|
+
function Rt(e) {
|
|
660
669
|
function t(n, r, s, o) {
|
|
661
670
|
let i = n[o++];
|
|
662
671
|
if (i === "__proto__") return !0;
|
|
663
|
-
const c = Number.isFinite(+i),
|
|
664
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
672
|
+
const c = Number.isFinite(+i), p = o >= n.length;
|
|
673
|
+
return i = !i && a.isArray(s) ? s.length : i, p ? (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] = In(s[i])), !c);
|
|
665
674
|
}
|
|
666
675
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
667
676
|
const n = {};
|
|
668
677
|
return a.forEachEntry(e, (r, s) => {
|
|
669
|
-
t(
|
|
678
|
+
t(qn(r), s, n, 0);
|
|
670
679
|
}), n;
|
|
671
680
|
}
|
|
672
681
|
return null;
|
|
673
682
|
}
|
|
674
|
-
function
|
|
683
|
+
function Hn(e, t, n) {
|
|
675
684
|
if (a.isString(e))
|
|
676
685
|
try {
|
|
677
686
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -682,48 +691,52 @@ function Bn(e, t, n) {
|
|
|
682
691
|
return (n || JSON.stringify)(e);
|
|
683
692
|
}
|
|
684
693
|
const ee = {
|
|
685
|
-
transitional:
|
|
694
|
+
transitional: Fe,
|
|
686
695
|
adapter: ["xhr", "http", "fetch"],
|
|
687
|
-
transformRequest: [
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
if (
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
696
|
+
transformRequest: [
|
|
697
|
+
function(t, n) {
|
|
698
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
699
|
+
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
700
|
+
return s ? JSON.stringify(Rt(t)) : t;
|
|
701
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
702
|
+
return t;
|
|
703
|
+
if (a.isArrayBufferView(t))
|
|
704
|
+
return t.buffer;
|
|
705
|
+
if (a.isURLSearchParams(t))
|
|
706
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
707
|
+
let c;
|
|
708
|
+
if (o) {
|
|
709
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
710
|
+
return jn(t, this.formSerializer).toString();
|
|
711
|
+
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
712
|
+
const p = this.env && this.env.FormData;
|
|
713
|
+
return he(
|
|
714
|
+
c ? { "files[]": t } : t,
|
|
715
|
+
p && new p(),
|
|
716
|
+
this.formSerializer
|
|
717
|
+
);
|
|
718
|
+
}
|
|
708
719
|
}
|
|
720
|
+
return o || s ? (n.setContentType("application/json", !1), Hn(t)) : t;
|
|
709
721
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
722
|
+
],
|
|
723
|
+
transformResponse: [
|
|
724
|
+
function(t) {
|
|
725
|
+
const n = this.transitional || ee.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
726
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
727
|
+
return t;
|
|
728
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
729
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
730
|
+
try {
|
|
731
|
+
return JSON.parse(t, this.parseReviver);
|
|
732
|
+
} catch (c) {
|
|
733
|
+
if (i)
|
|
734
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
735
|
+
}
|
|
723
736
|
}
|
|
737
|
+
return t;
|
|
724
738
|
}
|
|
725
|
-
|
|
726
|
-
}],
|
|
739
|
+
],
|
|
727
740
|
/**
|
|
728
741
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
729
742
|
* timeout is not created.
|
|
@@ -750,7 +763,7 @@ const ee = {
|
|
|
750
763
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
751
764
|
ee.headers[e] = {};
|
|
752
765
|
});
|
|
753
|
-
const
|
|
766
|
+
const Mn = a.toObjectSet([
|
|
754
767
|
"age",
|
|
755
768
|
"authorization",
|
|
756
769
|
"content-length",
|
|
@@ -768,29 +781,29 @@ const kn = a.toObjectSet([
|
|
|
768
781
|
"referer",
|
|
769
782
|
"retry-after",
|
|
770
783
|
"user-agent"
|
|
771
|
-
]),
|
|
784
|
+
]), $n = (e) => {
|
|
772
785
|
const t = {};
|
|
773
786
|
let n, r, s;
|
|
774
787
|
return e && e.split(`
|
|
775
788
|
`).forEach(function(i) {
|
|
776
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
789
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Mn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
777
790
|
}), t;
|
|
778
|
-
},
|
|
779
|
-
function
|
|
791
|
+
}, Ve = /* @__PURE__ */ Symbol("internals");
|
|
792
|
+
function G(e) {
|
|
780
793
|
return e && String(e).trim().toLowerCase();
|
|
781
794
|
}
|
|
782
795
|
function ce(e) {
|
|
783
796
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ce) : String(e);
|
|
784
797
|
}
|
|
785
|
-
function
|
|
798
|
+
function vn(e) {
|
|
786
799
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
787
800
|
let r;
|
|
788
801
|
for (; r = n.exec(e); )
|
|
789
802
|
t[r[1]] = r[2];
|
|
790
803
|
return t;
|
|
791
804
|
}
|
|
792
|
-
const
|
|
793
|
-
function
|
|
805
|
+
const zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
806
|
+
function Ee(e, t, n, r, s) {
|
|
794
807
|
if (a.isFunction(r))
|
|
795
808
|
return r.call(this, t, n);
|
|
796
809
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -800,10 +813,10 @@ function we(e, t, n, r, s) {
|
|
|
800
813
|
return r.test(t);
|
|
801
814
|
}
|
|
802
815
|
}
|
|
803
|
-
function
|
|
816
|
+
function Jn(e) {
|
|
804
817
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
805
818
|
}
|
|
806
|
-
function
|
|
819
|
+
function Vn(e, t) {
|
|
807
820
|
const n = a.toCamelCase(" " + t);
|
|
808
821
|
["get", "set", "has"].forEach((r) => {
|
|
809
822
|
Object.defineProperty(e, r + n, {
|
|
@@ -820,24 +833,24 @@ let x = class {
|
|
|
820
833
|
}
|
|
821
834
|
set(t, n, r) {
|
|
822
835
|
const s = this;
|
|
823
|
-
function o(c,
|
|
824
|
-
const u =
|
|
836
|
+
function o(c, p, f) {
|
|
837
|
+
const u = G(p);
|
|
825
838
|
if (!u)
|
|
826
839
|
throw new Error("header name must be a non-empty string");
|
|
827
840
|
const h = a.findKey(s, u);
|
|
828
|
-
(!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h ||
|
|
841
|
+
(!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || p] = ce(c));
|
|
829
842
|
}
|
|
830
|
-
const i = (c,
|
|
843
|
+
const i = (c, p) => a.forEach(c, (f, u) => o(f, u, p));
|
|
831
844
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
832
845
|
i(t, n);
|
|
833
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
834
|
-
i(
|
|
846
|
+
else if (a.isString(t) && (t = t.trim()) && !zn(t))
|
|
847
|
+
i($n(t), n);
|
|
835
848
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
836
|
-
let c = {},
|
|
849
|
+
let c = {}, p, f;
|
|
837
850
|
for (const u of t) {
|
|
838
851
|
if (!a.isArray(u))
|
|
839
852
|
throw TypeError("Object iterator must return a key-value pair");
|
|
840
|
-
c[f = u[0]] = (
|
|
853
|
+
c[f = u[0]] = (p = c[f]) ? a.isArray(p) ? [...p, u[1]] : [p, u[1]] : u[1];
|
|
841
854
|
}
|
|
842
855
|
i(c, n);
|
|
843
856
|
} else
|
|
@@ -845,14 +858,14 @@ let x = class {
|
|
|
845
858
|
return this;
|
|
846
859
|
}
|
|
847
860
|
get(t, n) {
|
|
848
|
-
if (t =
|
|
861
|
+
if (t = G(t), t) {
|
|
849
862
|
const r = a.findKey(this, t);
|
|
850
863
|
if (r) {
|
|
851
864
|
const s = this[r];
|
|
852
865
|
if (!n)
|
|
853
866
|
return s;
|
|
854
867
|
if (n === !0)
|
|
855
|
-
return
|
|
868
|
+
return vn(s);
|
|
856
869
|
if (a.isFunction(n))
|
|
857
870
|
return n.call(this, s, r);
|
|
858
871
|
if (a.isRegExp(n))
|
|
@@ -862,9 +875,9 @@ let x = class {
|
|
|
862
875
|
}
|
|
863
876
|
}
|
|
864
877
|
has(t, n) {
|
|
865
|
-
if (t =
|
|
878
|
+
if (t = G(t), t) {
|
|
866
879
|
const r = a.findKey(this, t);
|
|
867
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
880
|
+
return !!(r && this[r] !== void 0 && (!n || Ee(this, this[r], r, n)));
|
|
868
881
|
}
|
|
869
882
|
return !1;
|
|
870
883
|
}
|
|
@@ -872,9 +885,9 @@ let x = class {
|
|
|
872
885
|
const r = this;
|
|
873
886
|
let s = !1;
|
|
874
887
|
function o(i) {
|
|
875
|
-
if (i =
|
|
888
|
+
if (i = G(i), i) {
|
|
876
889
|
const c = a.findKey(r, i);
|
|
877
|
-
c && (!n ||
|
|
890
|
+
c && (!n || Ee(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
878
891
|
}
|
|
879
892
|
}
|
|
880
893
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -884,7 +897,7 @@ let x = class {
|
|
|
884
897
|
let r = n.length, s = !1;
|
|
885
898
|
for (; r--; ) {
|
|
886
899
|
const o = n[r];
|
|
887
|
-
(!t ||
|
|
900
|
+
(!t || Ee(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
888
901
|
}
|
|
889
902
|
return s;
|
|
890
903
|
}
|
|
@@ -896,7 +909,7 @@ let x = class {
|
|
|
896
909
|
n[i] = ce(s), delete n[o];
|
|
897
910
|
return;
|
|
898
911
|
}
|
|
899
|
-
const c = t ?
|
|
912
|
+
const c = t ? Jn(o) : String(o).trim();
|
|
900
913
|
c !== o && delete n[o], n[c] = ce(s), r[c] = !0;
|
|
901
914
|
}), this;
|
|
902
915
|
}
|
|
@@ -930,17 +943,24 @@ let x = class {
|
|
|
930
943
|
return n.forEach((s) => r.set(s)), r;
|
|
931
944
|
}
|
|
932
945
|
static accessor(t) {
|
|
933
|
-
const r = (this[
|
|
946
|
+
const r = (this[Ve] = this[Ve] = {
|
|
934
947
|
accessors: {}
|
|
935
948
|
}).accessors, s = this.prototype;
|
|
936
949
|
function o(i) {
|
|
937
|
-
const c =
|
|
938
|
-
r[c] || (
|
|
950
|
+
const c = G(i);
|
|
951
|
+
r[c] || (Vn(s, i), r[c] = !0);
|
|
939
952
|
}
|
|
940
953
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
941
954
|
}
|
|
942
955
|
};
|
|
943
|
-
x.accessor([
|
|
956
|
+
x.accessor([
|
|
957
|
+
"Content-Type",
|
|
958
|
+
"Content-Length",
|
|
959
|
+
"Accept",
|
|
960
|
+
"Accept-Encoding",
|
|
961
|
+
"User-Agent",
|
|
962
|
+
"Authorization"
|
|
963
|
+
]);
|
|
944
964
|
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
945
965
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
946
966
|
return {
|
|
@@ -951,14 +971,14 @@ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
|
951
971
|
};
|
|
952
972
|
});
|
|
953
973
|
a.freezeMethods(x);
|
|
954
|
-
function
|
|
974
|
+
function Re(e, t) {
|
|
955
975
|
const n = this || ee, r = t || n, s = x.from(r.headers);
|
|
956
976
|
let o = r.data;
|
|
957
977
|
return a.forEach(e, function(c) {
|
|
958
978
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
959
979
|
}), s.normalize(), o;
|
|
960
980
|
}
|
|
961
|
-
function
|
|
981
|
+
function gt(e) {
|
|
962
982
|
return !!(e && e.__CANCEL__);
|
|
963
983
|
}
|
|
964
984
|
let te = class extends y {
|
|
@@ -975,27 +995,29 @@ let te = class extends y {
|
|
|
975
995
|
super(t ?? "canceled", y.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
976
996
|
}
|
|
977
997
|
};
|
|
978
|
-
function
|
|
998
|
+
function St(e, t, n) {
|
|
979
999
|
const r = n.config.validateStatus;
|
|
980
|
-
!n.status || !r || r(n.status) ? e(n) : t(
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1000
|
+
!n.status || !r || r(n.status) ? e(n) : t(
|
|
1001
|
+
new y(
|
|
1002
|
+
"Request failed with status code " + n.status,
|
|
1003
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
1004
|
+
n.config,
|
|
1005
|
+
n.request,
|
|
1006
|
+
n
|
|
1007
|
+
)
|
|
1008
|
+
);
|
|
987
1009
|
}
|
|
988
|
-
function
|
|
1010
|
+
function Wn(e) {
|
|
989
1011
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
990
1012
|
return t && t[1] || "";
|
|
991
1013
|
}
|
|
992
|
-
function
|
|
1014
|
+
function Kn(e, t) {
|
|
993
1015
|
e = e || 10;
|
|
994
1016
|
const n = new Array(e), r = new Array(e);
|
|
995
1017
|
let s = 0, o = 0, i;
|
|
996
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
1018
|
+
return t = t !== void 0 ? t : 1e3, function(p) {
|
|
997
1019
|
const f = Date.now(), u = r[o];
|
|
998
|
-
i || (i = f), n[s] =
|
|
1020
|
+
i || (i = f), n[s] = p, r[s] = f;
|
|
999
1021
|
let h = o, b = 0;
|
|
1000
1022
|
for (; h !== s; )
|
|
1001
1023
|
b += n[h++], h = h % e;
|
|
@@ -1005,7 +1027,7 @@ function vn(e, t) {
|
|
|
1005
1027
|
return S ? Math.round(b * 1e3 / S) : void 0;
|
|
1006
1028
|
};
|
|
1007
1029
|
}
|
|
1008
|
-
function
|
|
1030
|
+
function Xn(e, t) {
|
|
1009
1031
|
let n = 0, r = 1e3 / t, s, o;
|
|
1010
1032
|
const i = (f, u = Date.now()) => {
|
|
1011
1033
|
n = u, s = null, o && (clearTimeout(o), o = null), e(...f);
|
|
@@ -1019,15 +1041,15 @@ function zn(e, t) {
|
|
|
1019
1041
|
}
|
|
1020
1042
|
const le = (e, t, n = 3) => {
|
|
1021
1043
|
let r = 0;
|
|
1022
|
-
const s =
|
|
1023
|
-
return
|
|
1024
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0,
|
|
1044
|
+
const s = Kn(50, 250);
|
|
1045
|
+
return Xn((o) => {
|
|
1046
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, p = i - r, f = s(p), u = i <= c;
|
|
1025
1047
|
r = i;
|
|
1026
1048
|
const h = {
|
|
1027
1049
|
loaded: i,
|
|
1028
1050
|
total: c,
|
|
1029
1051
|
progress: c ? i / c : void 0,
|
|
1030
|
-
bytes:
|
|
1052
|
+
bytes: p,
|
|
1031
1053
|
rate: f || void 0,
|
|
1032
1054
|
estimated: f && c && u ? (c - i) / f : void 0,
|
|
1033
1055
|
event: o,
|
|
@@ -1036,17 +1058,20 @@ const le = (e, t, n = 3) => {
|
|
|
1036
1058
|
};
|
|
1037
1059
|
e(h);
|
|
1038
1060
|
}, n);
|
|
1039
|
-
},
|
|
1061
|
+
}, We = (e, t) => {
|
|
1040
1062
|
const n = e != null;
|
|
1041
|
-
return [
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1063
|
+
return [
|
|
1064
|
+
(r) => t[0]({
|
|
1065
|
+
lengthComputable: n,
|
|
1066
|
+
total: e,
|
|
1067
|
+
loaded: r
|
|
1068
|
+
}),
|
|
1069
|
+
t[1]
|
|
1070
|
+
];
|
|
1071
|
+
}, Ke = (e) => (...t) => a.asap(() => e(...t)), Gn = 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)))(
|
|
1047
1072
|
new URL(O.origin),
|
|
1048
1073
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
1049
|
-
) : () => !0,
|
|
1074
|
+
) : () => !0, Qn = O.hasStandardBrowserEnv ? (
|
|
1050
1075
|
// Standard browser envs support document.cookie
|
|
1051
1076
|
{
|
|
1052
1077
|
write(e, t, n, r, s, o, i) {
|
|
@@ -1075,17 +1100,17 @@ const le = (e, t, n = 3) => {
|
|
|
1075
1100
|
}
|
|
1076
1101
|
}
|
|
1077
1102
|
);
|
|
1078
|
-
function
|
|
1103
|
+
function Zn(e) {
|
|
1079
1104
|
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1080
1105
|
}
|
|
1081
|
-
function
|
|
1106
|
+
function Yn(e, t) {
|
|
1082
1107
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1083
1108
|
}
|
|
1084
|
-
function
|
|
1085
|
-
let r = !
|
|
1086
|
-
return e && (r || n == !1) ?
|
|
1109
|
+
function Ot(e, t, n) {
|
|
1110
|
+
let r = !Zn(t);
|
|
1111
|
+
return e && (r || n == !1) ? Yn(e, t) : t;
|
|
1087
1112
|
}
|
|
1088
|
-
const
|
|
1113
|
+
const Xe = (e) => e instanceof x ? { ...e } : e;
|
|
1089
1114
|
function z(e, t) {
|
|
1090
1115
|
t = t || {};
|
|
1091
1116
|
const n = {};
|
|
@@ -1114,7 +1139,7 @@ function z(e, t) {
|
|
|
1114
1139
|
if (h in e)
|
|
1115
1140
|
return r(void 0, f);
|
|
1116
1141
|
}
|
|
1117
|
-
const
|
|
1142
|
+
const p = {
|
|
1118
1143
|
url: o,
|
|
1119
1144
|
method: o,
|
|
1120
1145
|
data: o,
|
|
@@ -1143,98 +1168,112 @@ function z(e, t) {
|
|
|
1143
1168
|
socketPath: i,
|
|
1144
1169
|
responseEncoding: i,
|
|
1145
1170
|
validateStatus: c,
|
|
1146
|
-
headers: (f, u, h) => s(
|
|
1171
|
+
headers: (f, u, h) => s(Xe(f), Xe(u), h, !0)
|
|
1147
1172
|
};
|
|
1148
|
-
return a.forEach(
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
const h = a.hasOwnProp(d, u) ? d[u] : s, b = h(e[u], t[u], u);
|
|
1154
|
-
a.isUndefined(b) && h !== c || (n[u] = b);
|
|
1155
|
-
}
|
|
1156
|
-
), n;
|
|
1173
|
+
return a.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
1174
|
+
if (u === "__proto__" || u === "constructor" || u === "prototype") return;
|
|
1175
|
+
const h = a.hasOwnProp(p, u) ? p[u] : s, b = h(e[u], t[u], u);
|
|
1176
|
+
a.isUndefined(b) && h !== c || (n[u] = b);
|
|
1177
|
+
}), n;
|
|
1157
1178
|
}
|
|
1158
|
-
const
|
|
1179
|
+
const Tt = (e) => {
|
|
1159
1180
|
const t = z({}, e);
|
|
1160
1181
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1161
|
-
if (t.headers = i = x.from(i), t.url =
|
|
1182
|
+
if (t.headers = i = x.from(i), t.url = Et(
|
|
1183
|
+
Ot(t.baseURL, t.url, t.allowAbsoluteUrls),
|
|
1184
|
+
e.params,
|
|
1185
|
+
e.paramsSerializer
|
|
1186
|
+
), c && i.set(
|
|
1162
1187
|
"Authorization",
|
|
1163
|
-
"Basic " + btoa(
|
|
1188
|
+
"Basic " + btoa(
|
|
1189
|
+
(c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
|
|
1190
|
+
)
|
|
1164
1191
|
), a.isFormData(n)) {
|
|
1165
1192
|
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1166
1193
|
i.setContentType(void 0);
|
|
1167
1194
|
else if (a.isFunction(n.getHeaders)) {
|
|
1168
|
-
const
|
|
1169
|
-
Object.entries(
|
|
1195
|
+
const p = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1196
|
+
Object.entries(p).forEach(([u, h]) => {
|
|
1170
1197
|
f.includes(u.toLowerCase()) && i.set(u, h);
|
|
1171
1198
|
});
|
|
1172
1199
|
}
|
|
1173
1200
|
}
|
|
1174
|
-
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1201
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Gn(t.url))) {
|
|
1202
|
+
const p = s && o && Qn.read(o);
|
|
1203
|
+
p && i.set(s, p);
|
|
1177
1204
|
}
|
|
1178
1205
|
return t;
|
|
1179
|
-
},
|
|
1206
|
+
}, er = typeof XMLHttpRequest < "u", tr = er && function(e) {
|
|
1180
1207
|
return new Promise(function(n, r) {
|
|
1181
|
-
const s =
|
|
1208
|
+
const s = Tt(e);
|
|
1182
1209
|
let o = s.data;
|
|
1183
1210
|
const i = x.from(s.headers).normalize();
|
|
1184
|
-
let { responseType: c, onUploadProgress:
|
|
1211
|
+
let { responseType: c, onUploadProgress: p, onDownloadProgress: f } = s, u, h, b, S, l;
|
|
1185
1212
|
function m() {
|
|
1186
1213
|
S && S(), l && l(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1187
1214
|
}
|
|
1188
|
-
let
|
|
1189
|
-
|
|
1215
|
+
let d = new XMLHttpRequest();
|
|
1216
|
+
d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
|
|
1190
1217
|
function E() {
|
|
1191
|
-
if (!
|
|
1218
|
+
if (!d)
|
|
1192
1219
|
return;
|
|
1193
1220
|
const g = x.from(
|
|
1194
|
-
"getAllResponseHeaders" in
|
|
1221
|
+
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
1195
1222
|
), F = {
|
|
1196
|
-
data: !c || c === "text" || c === "json" ?
|
|
1197
|
-
status:
|
|
1198
|
-
statusText:
|
|
1223
|
+
data: !c || c === "text" || c === "json" ? d.responseText : d.response,
|
|
1224
|
+
status: d.status,
|
|
1225
|
+
statusText: d.statusText,
|
|
1199
1226
|
headers: g,
|
|
1200
1227
|
config: e,
|
|
1201
|
-
request:
|
|
1228
|
+
request: d
|
|
1202
1229
|
};
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1230
|
+
St(
|
|
1231
|
+
function(N) {
|
|
1232
|
+
n(N), m();
|
|
1233
|
+
},
|
|
1234
|
+
function(N) {
|
|
1235
|
+
r(N), m();
|
|
1236
|
+
},
|
|
1237
|
+
F
|
|
1238
|
+
), d = null;
|
|
1208
1239
|
}
|
|
1209
|
-
"onloadend" in
|
|
1210
|
-
!
|
|
1211
|
-
},
|
|
1212
|
-
|
|
1213
|
-
},
|
|
1214
|
-
const F = T && T.message ? T.message : "Network Error", I = new y(F, y.ERR_NETWORK, e,
|
|
1215
|
-
I.event = T || null, r(I),
|
|
1216
|
-
},
|
|
1240
|
+
"onloadend" in d ? d.onloadend = E : d.onreadystatechange = function() {
|
|
1241
|
+
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1242
|
+
}, d.onabort = function() {
|
|
1243
|
+
d && (r(new y("Request aborted", y.ECONNABORTED, e, d)), d = null);
|
|
1244
|
+
}, d.onerror = function(T) {
|
|
1245
|
+
const F = T && T.message ? T.message : "Network Error", I = new y(F, y.ERR_NETWORK, e, d);
|
|
1246
|
+
I.event = T || null, r(I), d = null;
|
|
1247
|
+
}, d.ontimeout = function() {
|
|
1217
1248
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1218
|
-
const F = s.transitional ||
|
|
1219
|
-
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1249
|
+
const F = s.transitional || Fe;
|
|
1250
|
+
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(
|
|
1251
|
+
new y(
|
|
1252
|
+
T,
|
|
1253
|
+
F.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1254
|
+
e,
|
|
1255
|
+
d
|
|
1256
|
+
)
|
|
1257
|
+
), d = null;
|
|
1258
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(T, F) {
|
|
1259
|
+
d.setRequestHeader(F, T);
|
|
1260
|
+
}), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), f && ([b, l] = le(f, !0), d.addEventListener("progress", b)), p && d.upload && ([h, S] = le(p), d.upload.addEventListener("progress", h), d.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (g) => {
|
|
1261
|
+
d && (r(!g || g.type ? new te(null, e, d) : g), d.abort(), d = null);
|
|
1229
1262
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1230
|
-
const _ =
|
|
1263
|
+
const _ = Wn(s.url);
|
|
1231
1264
|
if (_ && O.protocols.indexOf(_) === -1) {
|
|
1232
|
-
r(
|
|
1265
|
+
r(
|
|
1266
|
+
new y(
|
|
1267
|
+
"Unsupported protocol " + _ + ":",
|
|
1268
|
+
y.ERR_BAD_REQUEST,
|
|
1269
|
+
e
|
|
1270
|
+
)
|
|
1271
|
+
);
|
|
1233
1272
|
return;
|
|
1234
1273
|
}
|
|
1235
|
-
|
|
1274
|
+
d.send(o || null);
|
|
1236
1275
|
});
|
|
1237
|
-
},
|
|
1276
|
+
}, nr = (e, t) => {
|
|
1238
1277
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1239
1278
|
if (t || n) {
|
|
1240
1279
|
let r = new AbortController(), s;
|
|
@@ -1242,7 +1281,9 @@ const gt = (e) => {
|
|
|
1242
1281
|
if (!s) {
|
|
1243
1282
|
s = !0, c();
|
|
1244
1283
|
const u = f instanceof Error ? f : this.reason;
|
|
1245
|
-
r.abort(
|
|
1284
|
+
r.abort(
|
|
1285
|
+
u instanceof y ? u : new te(u instanceof Error ? u.message : u)
|
|
1286
|
+
);
|
|
1246
1287
|
}
|
|
1247
1288
|
};
|
|
1248
1289
|
let i = t && setTimeout(() => {
|
|
@@ -1254,10 +1295,10 @@ const gt = (e) => {
|
|
|
1254
1295
|
}), e = null);
|
|
1255
1296
|
};
|
|
1256
1297
|
e.forEach((f) => f.addEventListener("abort", o));
|
|
1257
|
-
const { signal:
|
|
1258
|
-
return
|
|
1298
|
+
const { signal: p } = r;
|
|
1299
|
+
return p.unsubscribe = () => a.asap(c), p;
|
|
1259
1300
|
}
|
|
1260
|
-
},
|
|
1301
|
+
}, rr = function* (e, t) {
|
|
1261
1302
|
let n = e.byteLength;
|
|
1262
1303
|
if (n < t) {
|
|
1263
1304
|
yield e;
|
|
@@ -1266,10 +1307,10 @@ const gt = (e) => {
|
|
|
1266
1307
|
let r = 0, s;
|
|
1267
1308
|
for (; r < n; )
|
|
1268
1309
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1269
|
-
},
|
|
1270
|
-
for await (const n of
|
|
1271
|
-
yield*
|
|
1272
|
-
},
|
|
1310
|
+
}, sr = async function* (e, t) {
|
|
1311
|
+
for await (const n of or(e))
|
|
1312
|
+
yield* rr(n, t);
|
|
1313
|
+
}, or = async function* (e) {
|
|
1273
1314
|
if (e[Symbol.asyncIterator]) {
|
|
1274
1315
|
yield* e;
|
|
1275
1316
|
return;
|
|
@@ -1285,73 +1326,81 @@ const gt = (e) => {
|
|
|
1285
1326
|
} finally {
|
|
1286
1327
|
await t.cancel();
|
|
1287
1328
|
}
|
|
1288
|
-
},
|
|
1289
|
-
const s =
|
|
1290
|
-
let o = 0, i, c = (
|
|
1291
|
-
i || (i = !0, r && r(
|
|
1329
|
+
}, Ge = (e, t, n, r) => {
|
|
1330
|
+
const s = sr(e, t);
|
|
1331
|
+
let o = 0, i, c = (p) => {
|
|
1332
|
+
i || (i = !0, r && r(p));
|
|
1292
1333
|
};
|
|
1293
|
-
return new ReadableStream(
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1334
|
+
return new ReadableStream(
|
|
1335
|
+
{
|
|
1336
|
+
async pull(p) {
|
|
1337
|
+
try {
|
|
1338
|
+
const { done: f, value: u } = await s.next();
|
|
1339
|
+
if (f) {
|
|
1340
|
+
c(), p.close();
|
|
1341
|
+
return;
|
|
1342
|
+
}
|
|
1343
|
+
let h = u.byteLength;
|
|
1344
|
+
if (n) {
|
|
1345
|
+
let b = o += h;
|
|
1346
|
+
n(b);
|
|
1347
|
+
}
|
|
1348
|
+
p.enqueue(new Uint8Array(u));
|
|
1349
|
+
} catch (f) {
|
|
1350
|
+
throw c(f), f;
|
|
1305
1351
|
}
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1352
|
+
},
|
|
1353
|
+
cancel(p) {
|
|
1354
|
+
return c(p), s.return();
|
|
1309
1355
|
}
|
|
1310
1356
|
},
|
|
1311
|
-
|
|
1312
|
-
|
|
1357
|
+
{
|
|
1358
|
+
highWaterMark: 2
|
|
1313
1359
|
}
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
});
|
|
1317
|
-
}, Ke = 64 * 1024, { isFunction: oe } = a, tr = (({ Request: e, Response: t }) => ({
|
|
1360
|
+
);
|
|
1361
|
+
}, Qe = 64 * 1024, { isFunction: oe } = a, ir = (({ Request: e, Response: t }) => ({
|
|
1318
1362
|
Request: e,
|
|
1319
1363
|
Response: t
|
|
1320
|
-
}))(a.global), {
|
|
1321
|
-
ReadableStream: Xe,
|
|
1322
|
-
TextEncoder: Qe
|
|
1323
|
-
} = a.global, Ge = (e, ...t) => {
|
|
1364
|
+
}))(a.global), { ReadableStream: Ze, TextEncoder: Ye } = a.global, et = (e, ...t) => {
|
|
1324
1365
|
try {
|
|
1325
1366
|
return !!e(...t);
|
|
1326
1367
|
} catch {
|
|
1327
1368
|
return !1;
|
|
1328
1369
|
}
|
|
1329
|
-
},
|
|
1330
|
-
e = a.merge.call(
|
|
1331
|
-
|
|
1332
|
-
|
|
1370
|
+
}, ar = (e) => {
|
|
1371
|
+
e = a.merge.call(
|
|
1372
|
+
{
|
|
1373
|
+
skipUndefined: !0
|
|
1374
|
+
},
|
|
1375
|
+
ir,
|
|
1376
|
+
e
|
|
1377
|
+
);
|
|
1333
1378
|
const { fetch: t, Request: n, Response: r } = e, s = t ? oe(t) : typeof fetch == "function", o = oe(n), i = oe(r);
|
|
1334
1379
|
if (!s)
|
|
1335
1380
|
return !1;
|
|
1336
|
-
const c = s && oe(
|
|
1381
|
+
const c = s && oe(Ze), p = s && (typeof Ye == "function" ? /* @__PURE__ */ ((l) => (m) => l.encode(m))(new Ye()) : async (l) => new Uint8Array(await new n(l).arrayBuffer())), f = o && c && et(() => {
|
|
1337
1382
|
let l = !1;
|
|
1338
1383
|
const m = new n(O.origin, {
|
|
1339
|
-
body: new
|
|
1384
|
+
body: new Ze(),
|
|
1340
1385
|
method: "POST",
|
|
1341
1386
|
get duplex() {
|
|
1342
1387
|
return l = !0, "half";
|
|
1343
1388
|
}
|
|
1344
1389
|
}).headers.has("Content-Type");
|
|
1345
1390
|
return l && !m;
|
|
1346
|
-
}), u = i && c &&
|
|
1391
|
+
}), u = i && c && et(() => a.isReadableStream(new r("").body)), h = {
|
|
1347
1392
|
stream: u && ((l) => l.body)
|
|
1348
1393
|
};
|
|
1349
1394
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((l) => {
|
|
1350
|
-
!h[l] && (h[l] = (m,
|
|
1395
|
+
!h[l] && (h[l] = (m, d) => {
|
|
1351
1396
|
let E = m && m[l];
|
|
1352
1397
|
if (E)
|
|
1353
1398
|
return E.call(m);
|
|
1354
|
-
throw new y(
|
|
1399
|
+
throw new y(
|
|
1400
|
+
`Response type '${l}' is not supported`,
|
|
1401
|
+
y.ERR_NOT_SUPPORT,
|
|
1402
|
+
d
|
|
1403
|
+
);
|
|
1355
1404
|
});
|
|
1356
1405
|
});
|
|
1357
1406
|
const b = async (l) => {
|
|
@@ -1367,15 +1416,15 @@ const gt = (e) => {
|
|
|
1367
1416
|
if (a.isArrayBufferView(l) || a.isArrayBuffer(l))
|
|
1368
1417
|
return l.byteLength;
|
|
1369
1418
|
if (a.isURLSearchParams(l) && (l = l + ""), a.isString(l))
|
|
1370
|
-
return (await
|
|
1419
|
+
return (await p(l)).byteLength;
|
|
1371
1420
|
}, S = async (l, m) => {
|
|
1372
|
-
const
|
|
1373
|
-
return
|
|
1421
|
+
const d = a.toFiniteNumber(l.getContentLength());
|
|
1422
|
+
return d ?? b(m);
|
|
1374
1423
|
};
|
|
1375
1424
|
return async (l) => {
|
|
1376
1425
|
let {
|
|
1377
1426
|
url: m,
|
|
1378
|
-
method:
|
|
1427
|
+
method: d,
|
|
1379
1428
|
data: E,
|
|
1380
1429
|
signal: _,
|
|
1381
1430
|
cancelToken: g,
|
|
@@ -1385,63 +1434,69 @@ const gt = (e) => {
|
|
|
1385
1434
|
responseType: N,
|
|
1386
1435
|
headers: ye,
|
|
1387
1436
|
withCredentials: ne = "same-origin",
|
|
1388
|
-
fetchOptions:
|
|
1389
|
-
} =
|
|
1437
|
+
fetchOptions: De
|
|
1438
|
+
} = Tt(l), Be = t || fetch;
|
|
1390
1439
|
N = N ? (N + "").toLowerCase() : "text";
|
|
1391
|
-
let re =
|
|
1440
|
+
let re = nr(
|
|
1441
|
+
[_, g && g.toAbortSignal()],
|
|
1442
|
+
T
|
|
1443
|
+
), X = null;
|
|
1392
1444
|
const H = re && re.unsubscribe && (() => {
|
|
1393
1445
|
re.unsubscribe();
|
|
1394
1446
|
});
|
|
1395
|
-
let
|
|
1447
|
+
let ke;
|
|
1396
1448
|
try {
|
|
1397
|
-
if (I && f &&
|
|
1449
|
+
if (I && f && d !== "get" && d !== "head" && (ke = await S(ye, E)) !== 0) {
|
|
1398
1450
|
let q = new n(m, {
|
|
1399
1451
|
method: "POST",
|
|
1400
1452
|
body: E,
|
|
1401
1453
|
duplex: "half"
|
|
1402
1454
|
}), J;
|
|
1403
1455
|
if (a.isFormData(E) && (J = q.headers.get("content-type")) && ye.setContentType(J), q.body) {
|
|
1404
|
-
const [be, se] =
|
|
1405
|
-
|
|
1406
|
-
le(
|
|
1456
|
+
const [be, se] = We(
|
|
1457
|
+
ke,
|
|
1458
|
+
le(Ke(I))
|
|
1407
1459
|
);
|
|
1408
|
-
E =
|
|
1460
|
+
E = Ge(q.body, Qe, be, se);
|
|
1409
1461
|
}
|
|
1410
1462
|
}
|
|
1411
1463
|
a.isString(ne) || (ne = ne ? "include" : "omit");
|
|
1412
|
-
const A = o && "credentials" in n.prototype,
|
|
1413
|
-
...
|
|
1464
|
+
const A = o && "credentials" in n.prototype, je = {
|
|
1465
|
+
...De,
|
|
1414
1466
|
signal: re,
|
|
1415
|
-
method:
|
|
1467
|
+
method: d.toUpperCase(),
|
|
1416
1468
|
headers: ye.normalize().toJSON(),
|
|
1417
1469
|
body: E,
|
|
1418
1470
|
duplex: "half",
|
|
1419
1471
|
credentials: A ? ne : void 0
|
|
1420
1472
|
};
|
|
1421
|
-
X = o && new n(m,
|
|
1422
|
-
let j = await (o ?
|
|
1423
|
-
const
|
|
1424
|
-
if (u && (F ||
|
|
1473
|
+
X = o && new n(m, je);
|
|
1474
|
+
let j = await (o ? Be(X, De) : Be(m, je));
|
|
1475
|
+
const qe = u && (N === "stream" || N === "response");
|
|
1476
|
+
if (u && (F || qe && H)) {
|
|
1425
1477
|
const q = {};
|
|
1426
|
-
["status", "statusText", "headers"].forEach((
|
|
1427
|
-
q[
|
|
1478
|
+
["status", "statusText", "headers"].forEach((Ie) => {
|
|
1479
|
+
q[Ie] = j[Ie];
|
|
1428
1480
|
});
|
|
1429
|
-
const J = a.toFiniteNumber(j.headers.get("content-length")), [be, se] = F &&
|
|
1481
|
+
const J = a.toFiniteNumber(j.headers.get("content-length")), [be, se] = F && We(
|
|
1430
1482
|
J,
|
|
1431
|
-
le(
|
|
1483
|
+
le(Ke(F), !0)
|
|
1432
1484
|
) || [];
|
|
1433
1485
|
j = new r(
|
|
1434
|
-
|
|
1486
|
+
Ge(j.body, Qe, be, () => {
|
|
1435
1487
|
se && se(), H && H();
|
|
1436
1488
|
}),
|
|
1437
1489
|
q
|
|
1438
1490
|
);
|
|
1439
1491
|
}
|
|
1440
1492
|
N = N || "text";
|
|
1441
|
-
let
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1493
|
+
let Pt = await h[a.findKey(h, N) || "text"](
|
|
1494
|
+
j,
|
|
1495
|
+
l
|
|
1496
|
+
);
|
|
1497
|
+
return !qe && H && H(), await new Promise((q, J) => {
|
|
1498
|
+
St(q, J, {
|
|
1499
|
+
data: Pt,
|
|
1445
1500
|
headers: x.from(j.headers),
|
|
1446
1501
|
status: j.status,
|
|
1447
1502
|
statusText: j.statusText,
|
|
@@ -1451,34 +1506,36 @@ const gt = (e) => {
|
|
|
1451
1506
|
});
|
|
1452
1507
|
} catch (A) {
|
|
1453
1508
|
throw H && H(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
|
|
1454
|
-
new y(
|
|
1509
|
+
new y(
|
|
1510
|
+
"Network Error",
|
|
1511
|
+
y.ERR_NETWORK,
|
|
1512
|
+
l,
|
|
1513
|
+
X,
|
|
1514
|
+
A && A.response
|
|
1515
|
+
),
|
|
1455
1516
|
{
|
|
1456
1517
|
cause: A.cause || A
|
|
1457
1518
|
}
|
|
1458
1519
|
) : y.from(A, A && A.code, l, X, A && A.response);
|
|
1459
1520
|
}
|
|
1460
1521
|
};
|
|
1461
|
-
},
|
|
1522
|
+
}, cr = /* @__PURE__ */ new Map(), At = (e) => {
|
|
1462
1523
|
let t = e && e.env || {};
|
|
1463
|
-
const { fetch: n, Request: r, Response: s } = t, o = [
|
|
1464
|
-
|
|
1465
|
-
s,
|
|
1466
|
-
n
|
|
1467
|
-
];
|
|
1468
|
-
let i = o.length, c = i, d, f, u = rr;
|
|
1524
|
+
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
1525
|
+
let i = o.length, c = i, p, f, u = cr;
|
|
1469
1526
|
for (; c--; )
|
|
1470
|
-
|
|
1527
|
+
p = o[c], f = u.get(p), f === void 0 && u.set(p, f = c ? /* @__PURE__ */ new Map() : ar(t)), u = f;
|
|
1471
1528
|
return f;
|
|
1472
1529
|
};
|
|
1473
|
-
|
|
1474
|
-
const
|
|
1475
|
-
http:
|
|
1476
|
-
xhr:
|
|
1530
|
+
At();
|
|
1531
|
+
const Le = {
|
|
1532
|
+
http: An,
|
|
1533
|
+
xhr: tr,
|
|
1477
1534
|
fetch: {
|
|
1478
|
-
get:
|
|
1535
|
+
get: At
|
|
1479
1536
|
}
|
|
1480
1537
|
};
|
|
1481
|
-
a.forEach(
|
|
1538
|
+
a.forEach(Le, (e, t) => {
|
|
1482
1539
|
if (e) {
|
|
1483
1540
|
try {
|
|
1484
1541
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1487,8 +1544,8 @@ a.forEach(Fe, (e, t) => {
|
|
|
1487
1544
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1488
1545
|
}
|
|
1489
1546
|
});
|
|
1490
|
-
const
|
|
1491
|
-
function
|
|
1547
|
+
const tt = (e) => `- ${e}`, ur = (e) => a.isFunction(e) || e === null || e === !1;
|
|
1548
|
+
function lr(e, t) {
|
|
1492
1549
|
e = a.isArray(e) ? e : [e];
|
|
1493
1550
|
const { length: n } = e;
|
|
1494
1551
|
let r, s;
|
|
@@ -1496,7 +1553,7 @@ function or(e, t) {
|
|
|
1496
1553
|
for (let i = 0; i < n; i++) {
|
|
1497
1554
|
r = e[i];
|
|
1498
1555
|
let c;
|
|
1499
|
-
if (s = r, !
|
|
1556
|
+
if (s = r, !ur(r) && (s = Le[(c = String(r)).toLowerCase()], s === void 0))
|
|
1500
1557
|
throw new y(`Unknown adapter '${c}'`);
|
|
1501
1558
|
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1502
1559
|
break;
|
|
@@ -1504,11 +1561,11 @@ function or(e, t) {
|
|
|
1504
1561
|
}
|
|
1505
1562
|
if (!s) {
|
|
1506
1563
|
const i = Object.entries(o).map(
|
|
1507
|
-
([
|
|
1564
|
+
([p, f]) => `adapter ${p} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1508
1565
|
);
|
|
1509
1566
|
let c = n ? i.length > 1 ? `since :
|
|
1510
|
-
` + i.map(
|
|
1511
|
-
`) : " " +
|
|
1567
|
+
` + i.map(tt).join(`
|
|
1568
|
+
`) : " " + tt(i[0]) : "as no adapter specified";
|
|
1512
1569
|
throw new y(
|
|
1513
1570
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1514
1571
|
"ERR_NOT_SUPPORT"
|
|
@@ -1516,50 +1573,46 @@ function or(e, t) {
|
|
|
1516
1573
|
}
|
|
1517
1574
|
return s;
|
|
1518
1575
|
}
|
|
1519
|
-
const
|
|
1576
|
+
const Ct = {
|
|
1520
1577
|
/**
|
|
1521
1578
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1522
1579
|
* @type {Function}
|
|
1523
1580
|
*/
|
|
1524
|
-
getAdapter:
|
|
1581
|
+
getAdapter: lr,
|
|
1525
1582
|
/**
|
|
1526
1583
|
* Exposes all known adapters
|
|
1527
1584
|
* @type {Object<string, Function|Object>}
|
|
1528
1585
|
*/
|
|
1529
|
-
adapters:
|
|
1586
|
+
adapters: Le
|
|
1530
1587
|
};
|
|
1531
|
-
function
|
|
1588
|
+
function ge(e) {
|
|
1532
1589
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1533
1590
|
throw new te(null, e);
|
|
1534
1591
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
e,
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
e.transformResponse,
|
|
1549
|
-
r.response
|
|
1550
|
-
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1551
|
-
});
|
|
1592
|
+
function nt(e) {
|
|
1593
|
+
return ge(e), e.headers = x.from(e.headers), e.data = Re.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(e.adapter || ee.adapter, e)(e).then(
|
|
1594
|
+
function(r) {
|
|
1595
|
+
return ge(e), r.data = Re.call(e, e.transformResponse, r), r.headers = x.from(r.headers), r;
|
|
1596
|
+
},
|
|
1597
|
+
function(r) {
|
|
1598
|
+
return gt(r) || (ge(e), r && r.response && (r.response.data = Re.call(
|
|
1599
|
+
e,
|
|
1600
|
+
e.transformResponse,
|
|
1601
|
+
r.response
|
|
1602
|
+
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1603
|
+
}
|
|
1604
|
+
);
|
|
1552
1605
|
}
|
|
1553
|
-
const
|
|
1606
|
+
const xt = "1.13.6", me = {};
|
|
1554
1607
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1555
1608
|
me[e] = function(r) {
|
|
1556
1609
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1557
1610
|
};
|
|
1558
1611
|
});
|
|
1559
|
-
const
|
|
1612
|
+
const rt = {};
|
|
1560
1613
|
me.transitional = function(t, n, r) {
|
|
1561
1614
|
function s(o, i) {
|
|
1562
|
-
return "[Axios v" +
|
|
1615
|
+
return "[Axios v" + xt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1563
1616
|
}
|
|
1564
1617
|
return (o, i, c) => {
|
|
1565
1618
|
if (t === !1)
|
|
@@ -1567,7 +1620,7 @@ me.transitional = function(t, n, r) {
|
|
|
1567
1620
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1568
1621
|
y.ERR_DEPRECATED
|
|
1569
1622
|
);
|
|
1570
|
-
return n && !
|
|
1623
|
+
return n && !rt[i] && (rt[i] = !0, console.warn(
|
|
1571
1624
|
s(
|
|
1572
1625
|
i,
|
|
1573
1626
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1578,7 +1631,7 @@ me.transitional = function(t, n, r) {
|
|
|
1578
1631
|
me.spelling = function(t) {
|
|
1579
1632
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1580
1633
|
};
|
|
1581
|
-
function
|
|
1634
|
+
function fr(e, t, n) {
|
|
1582
1635
|
if (typeof e != "object")
|
|
1583
1636
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1584
1637
|
const r = Object.keys(e);
|
|
@@ -1586,9 +1639,12 @@ function ir(e, t, n) {
|
|
|
1586
1639
|
for (; s-- > 0; ) {
|
|
1587
1640
|
const o = r[s], i = t[o];
|
|
1588
1641
|
if (i) {
|
|
1589
|
-
const c = e[o],
|
|
1590
|
-
if (
|
|
1591
|
-
throw new y(
|
|
1642
|
+
const c = e[o], p = c === void 0 || i(c, o, e);
|
|
1643
|
+
if (p !== !0)
|
|
1644
|
+
throw new y(
|
|
1645
|
+
"option " + o + " must be " + p,
|
|
1646
|
+
y.ERR_BAD_OPTION_VALUE
|
|
1647
|
+
);
|
|
1592
1648
|
continue;
|
|
1593
1649
|
}
|
|
1594
1650
|
if (n !== !0)
|
|
@@ -1596,14 +1652,14 @@ function ir(e, t, n) {
|
|
|
1596
1652
|
}
|
|
1597
1653
|
}
|
|
1598
1654
|
const ue = {
|
|
1599
|
-
assertOptions:
|
|
1655
|
+
assertOptions: fr,
|
|
1600
1656
|
validators: me
|
|
1601
1657
|
}, P = ue.validators;
|
|
1602
1658
|
let v = class {
|
|
1603
1659
|
constructor(t) {
|
|
1604
1660
|
this.defaults = t || {}, this.interceptors = {
|
|
1605
|
-
request: new
|
|
1606
|
-
response: new
|
|
1661
|
+
request: new Je(),
|
|
1662
|
+
response: new Je()
|
|
1607
1663
|
};
|
|
1608
1664
|
}
|
|
1609
1665
|
/**
|
|
@@ -1634,46 +1690,52 @@ let v = class {
|
|
|
1634
1690
|
_request(t, n) {
|
|
1635
1691
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = z(this.defaults, n);
|
|
1636
1692
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1637
|
-
r !== void 0 && ue.assertOptions(
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1693
|
+
r !== void 0 && ue.assertOptions(
|
|
1694
|
+
r,
|
|
1695
|
+
{
|
|
1696
|
+
silentJSONParsing: P.transitional(P.boolean),
|
|
1697
|
+
forcedJSONParsing: P.transitional(P.boolean),
|
|
1698
|
+
clarifyTimeoutError: P.transitional(P.boolean),
|
|
1699
|
+
legacyInterceptorReqResOrdering: P.transitional(P.boolean)
|
|
1700
|
+
},
|
|
1701
|
+
!1
|
|
1702
|
+
), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1643
1703
|
serialize: s
|
|
1644
|
-
} : ue.assertOptions(
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1704
|
+
} : ue.assertOptions(
|
|
1705
|
+
s,
|
|
1706
|
+
{
|
|
1707
|
+
encode: P.function,
|
|
1708
|
+
serialize: P.function
|
|
1709
|
+
},
|
|
1710
|
+
!0
|
|
1711
|
+
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ue.assertOptions(
|
|
1712
|
+
n,
|
|
1713
|
+
{
|
|
1714
|
+
baseUrl: P.spelling("baseURL"),
|
|
1715
|
+
withXsrfToken: P.spelling("withXSRFToken")
|
|
1716
|
+
},
|
|
1717
|
+
!0
|
|
1718
|
+
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1719
|
+
let i = o && a.merge(o.common, o[n.method]);
|
|
1720
|
+
o && a.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (l) => {
|
|
1721
|
+
delete o[l];
|
|
1722
|
+
}), n.headers = x.concat(i, o);
|
|
1661
1723
|
const c = [];
|
|
1662
|
-
let
|
|
1724
|
+
let p = !0;
|
|
1663
1725
|
this.interceptors.request.forEach(function(m) {
|
|
1664
1726
|
if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
|
|
1665
1727
|
return;
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1728
|
+
p = p && m.synchronous;
|
|
1729
|
+
const d = n.transitional || Fe;
|
|
1730
|
+
d && d.legacyInterceptorReqResOrdering ? c.unshift(m.fulfilled, m.rejected) : c.push(m.fulfilled, m.rejected);
|
|
1669
1731
|
});
|
|
1670
1732
|
const f = [];
|
|
1671
1733
|
this.interceptors.response.forEach(function(m) {
|
|
1672
1734
|
f.push(m.fulfilled, m.rejected);
|
|
1673
1735
|
});
|
|
1674
1736
|
let u, h = 0, b;
|
|
1675
|
-
if (!
|
|
1676
|
-
const l = [
|
|
1737
|
+
if (!p) {
|
|
1738
|
+
const l = [nt.bind(this), void 0];
|
|
1677
1739
|
for (l.unshift(...c), l.push(...f), b = l.length, u = Promise.resolve(n); h < b; )
|
|
1678
1740
|
u = u.then(l[h++], l[h++]);
|
|
1679
1741
|
return u;
|
|
@@ -1684,13 +1746,13 @@ let v = class {
|
|
|
1684
1746
|
const l = c[h++], m = c[h++];
|
|
1685
1747
|
try {
|
|
1686
1748
|
S = l(S);
|
|
1687
|
-
} catch (
|
|
1688
|
-
m.call(this,
|
|
1749
|
+
} catch (d) {
|
|
1750
|
+
m.call(this, d);
|
|
1689
1751
|
break;
|
|
1690
1752
|
}
|
|
1691
1753
|
}
|
|
1692
1754
|
try {
|
|
1693
|
-
u =
|
|
1755
|
+
u = nt.call(this, S);
|
|
1694
1756
|
} catch (l) {
|
|
1695
1757
|
return Promise.reject(l);
|
|
1696
1758
|
}
|
|
@@ -1700,35 +1762,39 @@ let v = class {
|
|
|
1700
1762
|
}
|
|
1701
1763
|
getUri(t) {
|
|
1702
1764
|
t = z(this.defaults, t);
|
|
1703
|
-
const n =
|
|
1704
|
-
return
|
|
1765
|
+
const n = Ot(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1766
|
+
return Et(n, t.params, t.paramsSerializer);
|
|
1705
1767
|
}
|
|
1706
1768
|
};
|
|
1707
1769
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1708
1770
|
v.prototype[t] = function(n, r) {
|
|
1709
|
-
return this.request(
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1771
|
+
return this.request(
|
|
1772
|
+
z(r || {}, {
|
|
1773
|
+
method: t,
|
|
1774
|
+
url: n,
|
|
1775
|
+
data: (r || {}).data
|
|
1776
|
+
})
|
|
1777
|
+
);
|
|
1714
1778
|
};
|
|
1715
1779
|
});
|
|
1716
1780
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1717
1781
|
function n(r) {
|
|
1718
1782
|
return function(o, i, c) {
|
|
1719
|
-
return this.request(
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1783
|
+
return this.request(
|
|
1784
|
+
z(c || {}, {
|
|
1785
|
+
method: t,
|
|
1786
|
+
headers: r ? {
|
|
1787
|
+
"Content-Type": "multipart/form-data"
|
|
1788
|
+
} : {},
|
|
1789
|
+
url: o,
|
|
1790
|
+
data: i
|
|
1791
|
+
})
|
|
1792
|
+
);
|
|
1727
1793
|
};
|
|
1728
1794
|
}
|
|
1729
1795
|
v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0);
|
|
1730
1796
|
});
|
|
1731
|
-
let
|
|
1797
|
+
let dr = class _t {
|
|
1732
1798
|
constructor(t) {
|
|
1733
1799
|
if (typeof t != "function")
|
|
1734
1800
|
throw new TypeError("executor must be a function.");
|
|
@@ -1794,22 +1860,22 @@ let ar = class At {
|
|
|
1794
1860
|
static source() {
|
|
1795
1861
|
let t;
|
|
1796
1862
|
return {
|
|
1797
|
-
token: new
|
|
1863
|
+
token: new _t(function(s) {
|
|
1798
1864
|
t = s;
|
|
1799
1865
|
}),
|
|
1800
1866
|
cancel: t
|
|
1801
1867
|
};
|
|
1802
1868
|
}
|
|
1803
1869
|
};
|
|
1804
|
-
function
|
|
1870
|
+
function pr(e) {
|
|
1805
1871
|
return function(n) {
|
|
1806
1872
|
return e.apply(null, n);
|
|
1807
1873
|
};
|
|
1808
1874
|
}
|
|
1809
|
-
function
|
|
1875
|
+
function hr(e) {
|
|
1810
1876
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1811
1877
|
}
|
|
1812
|
-
const
|
|
1878
|
+
const _e = {
|
|
1813
1879
|
Continue: 100,
|
|
1814
1880
|
SwitchingProtocols: 101,
|
|
1815
1881
|
Processing: 102,
|
|
@@ -1880,54 +1946,54 @@ const Ce = {
|
|
|
1880
1946
|
SslHandshakeFailed: 525,
|
|
1881
1947
|
InvalidSslCertificate: 526
|
|
1882
1948
|
};
|
|
1883
|
-
Object.entries(
|
|
1884
|
-
|
|
1949
|
+
Object.entries(_e).forEach(([e, t]) => {
|
|
1950
|
+
_e[t] = e;
|
|
1885
1951
|
});
|
|
1886
|
-
function
|
|
1887
|
-
const t = new v(e), n =
|
|
1952
|
+
function Nt(e) {
|
|
1953
|
+
const t = new v(e), n = ct(v.prototype.request, t);
|
|
1888
1954
|
return a.extend(n, v.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1889
|
-
return
|
|
1955
|
+
return Nt(z(e, s));
|
|
1890
1956
|
}, n;
|
|
1891
1957
|
}
|
|
1892
|
-
const R =
|
|
1958
|
+
const R = Nt(ee);
|
|
1893
1959
|
R.Axios = v;
|
|
1894
1960
|
R.CanceledError = te;
|
|
1895
|
-
R.CancelToken =
|
|
1896
|
-
R.isCancel =
|
|
1897
|
-
R.VERSION =
|
|
1961
|
+
R.CancelToken = dr;
|
|
1962
|
+
R.isCancel = gt;
|
|
1963
|
+
R.VERSION = xt;
|
|
1898
1964
|
R.toFormData = he;
|
|
1899
1965
|
R.AxiosError = y;
|
|
1900
1966
|
R.Cancel = R.CanceledError;
|
|
1901
1967
|
R.all = function(t) {
|
|
1902
1968
|
return Promise.all(t);
|
|
1903
1969
|
};
|
|
1904
|
-
R.spread =
|
|
1905
|
-
R.isAxiosError =
|
|
1970
|
+
R.spread = pr;
|
|
1971
|
+
R.isAxiosError = hr;
|
|
1906
1972
|
R.mergeConfig = z;
|
|
1907
1973
|
R.AxiosHeaders = x;
|
|
1908
|
-
R.formToJSON = (e) =>
|
|
1909
|
-
R.getAdapter =
|
|
1910
|
-
R.HttpStatusCode =
|
|
1974
|
+
R.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1975
|
+
R.getAdapter = Ct.getAdapter;
|
|
1976
|
+
R.HttpStatusCode = _e;
|
|
1911
1977
|
R.default = R;
|
|
1912
1978
|
const {
|
|
1913
|
-
Axios:
|
|
1914
|
-
AxiosError:
|
|
1915
|
-
CanceledError:
|
|
1916
|
-
isCancel:
|
|
1917
|
-
CancelToken:
|
|
1918
|
-
VERSION:
|
|
1919
|
-
all:
|
|
1920
|
-
Cancel:
|
|
1921
|
-
isAxiosError:
|
|
1922
|
-
spread:
|
|
1923
|
-
toFormData:
|
|
1924
|
-
AxiosHeaders:
|
|
1925
|
-
HttpStatusCode:
|
|
1926
|
-
formToJSON:
|
|
1927
|
-
getAdapter:
|
|
1928
|
-
mergeConfig:
|
|
1979
|
+
Axios: Er,
|
|
1980
|
+
AxiosError: Rr,
|
|
1981
|
+
CanceledError: gr,
|
|
1982
|
+
isCancel: Sr,
|
|
1983
|
+
CancelToken: Or,
|
|
1984
|
+
VERSION: Tr,
|
|
1985
|
+
all: Ar,
|
|
1986
|
+
Cancel: Cr,
|
|
1987
|
+
isAxiosError: xr,
|
|
1988
|
+
spread: _r,
|
|
1989
|
+
toFormData: Nr,
|
|
1990
|
+
AxiosHeaders: Pr,
|
|
1991
|
+
HttpStatusCode: Fr,
|
|
1992
|
+
formToJSON: Ur,
|
|
1993
|
+
getAdapter: Lr,
|
|
1994
|
+
mergeConfig: Dr
|
|
1929
1995
|
} = R;
|
|
1930
1996
|
export {
|
|
1931
1997
|
R as a,
|
|
1932
|
-
|
|
1998
|
+
He as p
|
|
1933
1999
|
};
|