@vtj/utils 0.13.30 → 0.13.32

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/index.mjs CHANGED
@@ -1,814 +1,267 @@
1
- var ln = Object.defineProperty;
2
- var un = (e, t, n) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var j = (e, t, n) => un(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { omit as Ae, merge as G, debounce as fn, throttle as dn, isUrl as hn, pathToRegexpCompile as pn, uuid as mn, rURL as gn, template as wn } from "@vtj/base";
1
+ var gt = Object.defineProperty;
2
+ var wt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var C = (t, e, n) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { omit as ie, merge as q, debounce as bt, throttle as Et, isUrl as Rt, pathToRegexpCompile as St, uuid as Ot, rURL as Tt, template as At } from "@vtj/base";
5
5
  export * from "@vtj/base";
6
+ import { ref as ae } from "vue";
6
7
  (function() {
7
8
  if (typeof window > "u" || typeof EventTarget > "u")
8
9
  return;
9
- const e = EventTarget.prototype.addEventListener;
10
- EventTarget.prototype.addEventListener = function(t, n, r) {
11
- typeof r != "boolean" && (r = r || {}, r.passive = !1), e.call(this, t, n, r);
10
+ const t = EventTarget.prototype.addEventListener;
11
+ EventTarget.prototype.addEventListener = function(e, n, r) {
12
+ typeof r != "boolean" && (r = r || {}, r.passive = !1), t.call(this, e, n, r);
12
13
  };
13
14
  })();
14
15
  /**!
15
16
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
16
17
  * @name @vtj/utils
17
18
  * @author CHC chenhuachun1549@dingtalk.com
18
- * @version 0.13.30
19
+ * @version 0.13.32
19
20
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
20
21
  */
21
- const Zs = "0.13.30";
22
- /**
23
- * @vue/shared v3.5.22
24
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
- * @license MIT
26
- **/
27
- // @__NO_SIDE_EFFECTS__
28
- function yn(e) {
29
- const t = /* @__PURE__ */ Object.create(null);
30
- for (const n of e.split(",")) t[n] = 1;
31
- return (n) => n in t;
32
- }
33
- const bn = Object.assign, Rn = Object.prototype.hasOwnProperty, Fe = (e, t) => Rn.call(e, t), J = Array.isArray, he = (e) => St(e) === "[object Map]", En = (e) => typeof e == "string", se = (e) => typeof e == "symbol", ee = (e) => e !== null && typeof e == "object", Sn = Object.prototype.toString, St = (e) => Sn.call(e), _n = (e) => St(e).slice(8, -1), Xe = (e) => En(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Z = (e, t) => !Object.is(e, t);
34
- var On = { ENV_TYPE: "local", NODE_ENV: "production" };
35
- let Tn, _t = 0, xe;
36
- function Ye() {
37
- _t++;
38
- }
39
- function Ge() {
40
- if (--_t > 0)
41
- return;
42
- let e;
43
- for (; xe; ) {
44
- let t = xe;
45
- for (xe = void 0; t; ) {
46
- const n = t.next;
47
- if (t.next = void 0, t.flags &= -9, t.flags & 1)
48
- try {
49
- t.trigger();
50
- } catch (r) {
51
- e || (e = r);
52
- }
53
- t = n;
54
- }
55
- }
56
- if (e) throw e;
57
- }
58
- let we = !0;
59
- const Ot = [];
60
- function An() {
61
- Ot.push(we), we = !1;
62
- }
63
- function xn() {
64
- const e = Ot.pop();
65
- we = e === void 0 ? !0 : e;
66
- }
67
- class Tt {
68
- // TODO isolatedDeclarations "__v_skip"
69
- constructor(t) {
70
- this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0;
71
- }
72
- track(t) {
73
- }
74
- trigger(t) {
75
- this.version++, this.notify(t);
76
- }
77
- notify(t) {
78
- Ye();
79
- try {
80
- On.NODE_ENV;
81
- for (let n = this.subs; n; n = n.prevSub)
82
- n.sub.notify() && n.sub.dep.notify();
83
- } finally {
84
- Ge();
85
- }
86
- }
87
- }
88
- const De = /* @__PURE__ */ new WeakMap(), k = Symbol(
89
- ""
90
- ), Be = Symbol(
91
- ""
92
- ), te = Symbol(
93
- ""
94
- );
95
- function x(e, t, n) {
96
- if (we && Tn) {
97
- let r = De.get(e);
98
- r || De.set(e, r = /* @__PURE__ */ new Map());
99
- let s = r.get(n);
100
- s || (r.set(n, s = new Tt()), s.map = r, s.key = n), s.track();
101
- }
102
- }
103
- function D(e, t, n, r, s, o) {
104
- const i = De.get(e);
105
- if (!i)
106
- return;
107
- const a = (l) => {
108
- l && l.trigger();
109
- };
110
- if (Ye(), t === "clear")
111
- i.forEach(a);
112
- else {
113
- const l = J(e), c = l && Xe(n);
114
- if (l && n === "length") {
115
- const f = Number(r);
116
- i.forEach((d, m) => {
117
- (m === "length" || m === te || !se(m) && m >= f) && a(d);
118
- });
119
- } else
120
- switch ((n !== void 0 || i.has(void 0)) && a(i.get(n)), c && a(i.get(te)), t) {
121
- case "add":
122
- l ? c && a(i.get("length")) : (a(i.get(k)), he(e) && a(i.get(Be)));
123
- break;
124
- case "delete":
125
- l || (a(i.get(k)), he(e) && a(i.get(Be)));
126
- break;
127
- case "set":
128
- he(e) && a(i.get(k));
129
- break;
130
- }
131
- }
132
- Ge();
133
- }
134
- function $(e) {
135
- const t = E(e);
136
- return t === e ? t : (x(t, "iterate", te), B(e) ? t : t.map(A));
137
- }
138
- function Qe(e) {
139
- return x(e = E(e), "iterate", te), e;
140
- }
141
- const Cn = {
142
- __proto__: null,
143
- [Symbol.iterator]() {
144
- return Ce(this, Symbol.iterator, A);
145
- },
146
- concat(...e) {
147
- return $(this).concat(
148
- ...e.map((t) => J(t) ? $(t) : t)
149
- );
150
- },
151
- entries() {
152
- return Ce(this, "entries", (e) => (e[1] = A(e[1]), e));
153
- },
154
- every(e, t) {
155
- return U(this, "every", e, t, void 0, arguments);
156
- },
157
- filter(e, t) {
158
- return U(this, "filter", e, t, (n) => n.map(A), arguments);
159
- },
160
- find(e, t) {
161
- return U(this, "find", e, t, A, arguments);
162
- },
163
- findIndex(e, t) {
164
- return U(this, "findIndex", e, t, void 0, arguments);
165
- },
166
- findLast(e, t) {
167
- return U(this, "findLast", e, t, A, arguments);
168
- },
169
- findLastIndex(e, t) {
170
- return U(this, "findLastIndex", e, t, void 0, arguments);
171
- },
172
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
173
- forEach(e, t) {
174
- return U(this, "forEach", e, t, void 0, arguments);
175
- },
176
- includes(...e) {
177
- return Pe(this, "includes", e);
178
- },
179
- indexOf(...e) {
180
- return Pe(this, "indexOf", e);
181
- },
182
- join(e) {
183
- return $(this).join(e);
184
- },
185
- // keys() iterator only reads `length`, no optimization required
186
- lastIndexOf(...e) {
187
- return Pe(this, "lastIndexOf", e);
188
- },
189
- map(e, t) {
190
- return U(this, "map", e, t, void 0, arguments);
191
- },
192
- pop() {
193
- return X(this, "pop");
194
- },
195
- push(...e) {
196
- return X(this, "push", e);
197
- },
198
- reduce(e, ...t) {
199
- return st(this, "reduce", e, t);
200
- },
201
- reduceRight(e, ...t) {
202
- return st(this, "reduceRight", e, t);
203
- },
204
- shift() {
205
- return X(this, "shift");
206
- },
207
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
208
- some(e, t) {
209
- return U(this, "some", e, t, void 0, arguments);
210
- },
211
- splice(...e) {
212
- return X(this, "splice", e);
213
- },
214
- toReversed() {
215
- return $(this).toReversed();
216
- },
217
- toSorted(e) {
218
- return $(this).toSorted(e);
219
- },
220
- toSpliced(...e) {
221
- return $(this).toSpliced(...e);
222
- },
223
- unshift(...e) {
224
- return X(this, "unshift", e);
225
- },
226
- values() {
227
- return Ce(this, "values", A);
228
- }
229
- };
230
- function Ce(e, t, n) {
231
- const r = Qe(e), s = r[t]();
232
- return r !== e && !B(e) && (s._next = s.next, s.next = () => {
233
- const o = s._next();
234
- return o.done || (o.value = n(o.value)), o;
235
- }), s;
236
- }
237
- const Pn = Array.prototype;
238
- function U(e, t, n, r, s, o) {
239
- const i = Qe(e), a = i !== e && !B(e), l = i[t];
240
- if (l !== Pn[t]) {
241
- const d = l.apply(e, o);
242
- return a ? A(d) : d;
243
- }
244
- let c = n;
245
- i !== e && (a ? c = function(d, m) {
246
- return n.call(this, A(d), m, e);
247
- } : n.length > 2 && (c = function(d, m) {
248
- return n.call(this, d, m, e);
249
- }));
250
- const f = l.call(i, c, r);
251
- return a && s ? s(f) : f;
252
- }
253
- function st(e, t, n, r) {
254
- const s = Qe(e);
255
- let o = n;
256
- return s !== e && (B(e) ? n.length > 3 && (o = function(i, a, l) {
257
- return n.call(this, i, a, l, e);
258
- }) : o = function(i, a, l) {
259
- return n.call(this, i, A(a), l, e);
260
- }), s[t](o, ...r);
261
- }
262
- function Pe(e, t, n) {
263
- const r = E(e);
264
- x(r, "iterate", te);
265
- const s = r[t](...n);
266
- return (s === -1 || s === !1) && Jn(n[0]) ? (n[0] = E(n[0]), r[t](...n)) : s;
267
- }
268
- function X(e, t, n = []) {
269
- An(), Ye();
270
- const r = E(e)[t].apply(e, n);
271
- return Ge(), xn(), r;
272
- }
273
- const jn = /* @__PURE__ */ yn("__proto__,__v_isRef,__isVue"), At = new Set(
274
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(se)
275
- );
276
- function Ln(e) {
277
- se(e) || (e = String(e));
278
- const t = E(this);
279
- return x(t, "has", e), t.hasOwnProperty(e);
280
- }
281
- class xt {
282
- constructor(t = !1, n = !1) {
283
- this._isReadonly = t, this._isShallow = n;
284
- }
285
- get(t, n, r) {
286
- if (n === "__v_skip") return t.__v_skip;
287
- const s = this._isReadonly, o = this._isShallow;
288
- if (n === "__v_isReactive")
289
- return !s;
290
- if (n === "__v_isReadonly")
291
- return s;
292
- if (n === "__v_isShallow")
293
- return o;
294
- if (n === "__v_raw")
295
- return r === (s ? o ? qn : jt : o ? kn : Pt).get(t) || // receiver is not the reactive proxy, but has the same prototype
296
- // this means the receiver is a user proxy of the reactive proxy
297
- Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
298
- const i = J(t);
299
- if (!s) {
300
- let l;
301
- if (i && (l = Cn[n]))
302
- return l;
303
- if (n === "hasOwnProperty")
304
- return Ln;
305
- }
306
- const a = Reflect.get(
307
- t,
308
- n,
309
- // if this is a proxy wrapping a ref, return methods using the raw ref
310
- // as receiver so that we don't have to call `toRaw` on the ref in all
311
- // its class methods
312
- W(t) ? t : r
313
- );
314
- if ((se(n) ? At.has(n) : jn(n)) || (s || x(t, "get", n), o))
315
- return a;
316
- if (W(a)) {
317
- const l = i && Xe(n) ? a : a.value;
318
- return s && ee(l) ? Ie(l) : l;
319
- }
320
- return ee(a) ? s ? Ie(a) : Lt(a) : a;
321
- }
322
- }
323
- class vn extends xt {
324
- constructor(t = !1) {
325
- super(!1, t);
326
- }
327
- set(t, n, r, s) {
328
- let o = t[n];
329
- if (!this._isShallow) {
330
- const l = z(o);
331
- if (!B(r) && !z(r) && (o = E(o), r = E(r)), !J(t) && W(o) && !W(r))
332
- return l || (o.value = r), !0;
333
- }
334
- const i = J(t) && Xe(n) ? Number(n) < t.length : Fe(t, n), a = Reflect.set(
335
- t,
336
- n,
337
- r,
338
- W(t) ? t : s
339
- );
340
- return t === E(s) && (i ? Z(r, o) && D(t, "set", n, r) : D(t, "add", n, r)), a;
341
- }
342
- deleteProperty(t, n) {
343
- const r = Fe(t, n);
344
- t[n];
345
- const s = Reflect.deleteProperty(t, n);
346
- return s && r && D(t, "delete", n, void 0), s;
347
- }
348
- has(t, n) {
349
- const r = Reflect.has(t, n);
350
- return (!se(n) || !At.has(n)) && x(t, "has", n), r;
351
- }
352
- ownKeys(t) {
353
- return x(
354
- t,
355
- "iterate",
356
- J(t) ? "length" : k
357
- ), Reflect.ownKeys(t);
358
- }
359
- }
360
- class Nn extends xt {
361
- constructor(t = !1) {
362
- super(!0, t);
363
- }
364
- set(t, n) {
365
- return !0;
366
- }
367
- deleteProperty(t, n) {
368
- return !0;
369
- }
370
- }
371
- const Un = /* @__PURE__ */ new vn(), Fn = /* @__PURE__ */ new Nn(), Me = (e) => e, ue = (e) => Reflect.getPrototypeOf(e);
372
- function Dn(e, t, n) {
373
- return function(...r) {
374
- const s = this.__v_raw, o = E(s), i = he(o), a = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, c = s[e](...r), f = n ? Me : t ? ke : A;
375
- return !t && x(
376
- o,
377
- "iterate",
378
- l ? Be : k
379
- ), {
380
- // iterator protocol
381
- next() {
382
- const { value: d, done: m } = c.next();
383
- return m ? { value: d, done: m } : {
384
- value: a ? [f(d[0]), f(d[1])] : f(d),
385
- done: m
386
- };
387
- },
388
- // iterable protocol
389
- [Symbol.iterator]() {
390
- return this;
391
- }
392
- };
393
- };
394
- }
395
- function fe(e) {
396
- return function(...t) {
397
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
398
- };
399
- }
400
- function Bn(e, t) {
401
- const n = {
402
- get(s) {
403
- const o = this.__v_raw, i = E(o), a = E(s);
404
- e || (Z(s, a) && x(i, "get", s), x(i, "get", a));
405
- const { has: l } = ue(i), c = t ? Me : e ? ke : A;
406
- if (l.call(i, s))
407
- return c(o.get(s));
408
- if (l.call(i, a))
409
- return c(o.get(a));
410
- o !== i && o.get(s);
411
- },
412
- get size() {
413
- const s = this.__v_raw;
414
- return !e && x(E(s), "iterate", k), s.size;
415
- },
416
- has(s) {
417
- const o = this.__v_raw, i = E(o), a = E(s);
418
- return e || (Z(s, a) && x(i, "has", s), x(i, "has", a)), s === a ? o.has(s) : o.has(s) || o.has(a);
419
- },
420
- forEach(s, o) {
421
- const i = this, a = i.__v_raw, l = E(a), c = t ? Me : e ? ke : A;
422
- return !e && x(l, "iterate", k), a.forEach((f, d) => s.call(o, c(f), c(d), i));
423
- }
424
- };
425
- return bn(
426
- n,
427
- e ? {
428
- add: fe("add"),
429
- set: fe("set"),
430
- delete: fe("delete"),
431
- clear: fe("clear")
432
- } : {
433
- add(s) {
434
- !t && !B(s) && !z(s) && (s = E(s));
435
- const o = E(this);
436
- return ue(o).has.call(o, s) || (o.add(s), D(o, "add", s, s)), this;
437
- },
438
- set(s, o) {
439
- !t && !B(o) && !z(o) && (o = E(o));
440
- const i = E(this), { has: a, get: l } = ue(i);
441
- let c = a.call(i, s);
442
- c || (s = E(s), c = a.call(i, s));
443
- const f = l.call(i, s);
444
- return i.set(s, o), c ? Z(o, f) && D(i, "set", s, o) : D(i, "add", s, o), this;
445
- },
446
- delete(s) {
447
- const o = E(this), { has: i, get: a } = ue(o);
448
- let l = i.call(o, s);
449
- l || (s = E(s), l = i.call(o, s)), a && a.call(o, s);
450
- const c = o.delete(s);
451
- return l && D(o, "delete", s, void 0), c;
452
- },
453
- clear() {
454
- const s = E(this), o = s.size !== 0, i = s.clear();
455
- return o && D(
456
- s,
457
- "clear",
458
- void 0,
459
- void 0
460
- ), i;
461
- }
462
- }
463
- ), [
464
- "keys",
465
- "values",
466
- "entries",
467
- Symbol.iterator
468
- ].forEach((s) => {
469
- n[s] = Dn(s, e, t);
470
- }), n;
471
- }
472
- function Ct(e, t) {
473
- const n = Bn(e, t);
474
- return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
475
- Fe(n, s) && s in r ? n : r,
476
- s,
477
- o
478
- );
479
- }
480
- const Mn = {
481
- get: /* @__PURE__ */ Ct(!1, !1)
482
- }, In = {
483
- get: /* @__PURE__ */ Ct(!0, !1)
484
- }, Pt = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap();
485
- function Hn(e) {
486
- switch (e) {
487
- case "Object":
488
- case "Array":
489
- return 1;
490
- case "Map":
491
- case "Set":
492
- case "WeakMap":
493
- case "WeakSet":
494
- return 2;
495
- default:
496
- return 0;
497
- }
498
- }
499
- function $n(e) {
500
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Hn(_n(e));
501
- }
502
- function Lt(e) {
503
- return z(e) ? e : vt(
504
- e,
505
- !1,
506
- Un,
507
- Mn,
508
- Pt
509
- );
510
- }
511
- function Ie(e) {
512
- return vt(
513
- e,
514
- !0,
515
- Fn,
516
- In,
517
- jt
518
- );
519
- }
520
- function vt(e, t, n, r, s) {
521
- if (!ee(e) || e.__v_raw && !(t && e.__v_isReactive))
522
- return e;
523
- const o = $n(e);
524
- if (o === 0)
525
- return e;
526
- const i = s.get(e);
527
- if (i)
528
- return i;
529
- const a = new Proxy(
530
- e,
531
- o === 2 ? r : n
532
- );
533
- return s.set(e, a), a;
534
- }
535
- function z(e) {
536
- return !!(e && e.__v_isReadonly);
537
- }
538
- function B(e) {
539
- return !!(e && e.__v_isShallow);
540
- }
541
- function Jn(e) {
542
- return e ? !!e.__v_raw : !1;
543
- }
544
- function E(e) {
545
- const t = e && e.__v_raw;
546
- return t ? E(t) : e;
547
- }
548
- const A = (e) => ee(e) ? Lt(e) : e, ke = (e) => ee(e) ? Ie(e) : e;
549
- function W(e) {
550
- return e ? e.__v_isRef === !0 : !1;
551
- }
552
- function je(e) {
553
- return Wn(e, !1);
554
- }
555
- function Wn(e, t) {
556
- return W(e) ? e : new zn(e, t);
557
- }
558
- class zn {
559
- constructor(t, n) {
560
- this.dep = new Tt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : E(t), this._value = n ? t : A(t), this.__v_isShallow = n;
561
- }
562
- get value() {
563
- return this.dep.track(), this._value;
564
- }
565
- set value(t) {
566
- const n = this._rawValue, r = this.__v_isShallow || B(t) || z(t);
567
- t = r ? t : E(t), Z(t, n) && (this._rawValue = t, this._value = r ? t : A(t), this.dep.trigger());
568
- }
569
- }
570
- function Nt(e, t) {
22
+ const Nr = "0.13.32";
23
+ function He(t, e) {
571
24
  return function() {
572
- return e.apply(t, arguments);
25
+ return t.apply(e, arguments);
573
26
  };
574
27
  }
575
- const { toString: Kn } = Object.prototype, { getPrototypeOf: Ze } = Object, { iterator: Re, toStringTag: Ut } = Symbol, Ee = /* @__PURE__ */ ((e) => (t) => {
576
- const n = Kn.call(t);
577
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
578
- })(/* @__PURE__ */ Object.create(null)), v = (e) => (e = e.toLowerCase(), (t) => Ee(t) === e), Se = (e) => (t) => typeof t === e, { isArray: K } = Array, ne = Se("undefined");
579
- function oe(e) {
580
- return e !== null && !ne(e) && e.constructor !== null && !ne(e.constructor) && C(e.constructor.isBuffer) && e.constructor.isBuffer(e);
28
+ const { toString: xt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: ee, toStringTag: Je } = Symbol, te = /* @__PURE__ */ ((t) => (e) => {
29
+ const n = xt.call(e);
30
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
31
+ })(/* @__PURE__ */ Object.create(null)), P = (t) => (t = t.toLowerCase(), (e) => te(e) === t), ne = (t) => (e) => typeof e === t, { isArray: D } = Array, I = ne("undefined");
32
+ function J(t) {
33
+ return t !== null && !I(t) && t.constructor !== null && !I(t.constructor) && A(t.constructor.isBuffer) && t.constructor.isBuffer(t);
581
34
  }
582
- const Ft = v("ArrayBuffer");
583
- function Vn(e) {
584
- let t;
585
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ft(e.buffer), t;
35
+ const $e = P("ArrayBuffer");
36
+ function Ct(t) {
37
+ let e;
38
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $e(t.buffer), e;
586
39
  }
587
- const Xn = Se("string"), C = Se("function"), Dt = Se("number"), ie = (e) => e !== null && typeof e == "object", Yn = (e) => e === !0 || e === !1, pe = (e) => {
588
- if (Ee(e) !== "object")
40
+ const _t = ne("string"), A = ne("function"), ze = ne("number"), $ = (t) => t !== null && typeof t == "object", Pt = (t) => t === !0 || t === !1, X = (t) => {
41
+ if (te(t) !== "object")
589
42
  return !1;
590
- const t = Ze(e);
591
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ut in e) && !(Re in e);
592
- }, Gn = (e) => {
593
- if (!ie(e) || oe(e))
43
+ const e = Ee(t);
44
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Je in t) && !(ee in t);
45
+ }, Lt = (t) => {
46
+ if (!$(t) || J(t))
594
47
  return !1;
595
48
  try {
596
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
49
+ return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
597
50
  } catch {
598
51
  return !1;
599
52
  }
600
- }, Qn = v("Date"), Zn = v("File"), er = v("Blob"), tr = v("FileList"), nr = (e) => ie(e) && C(e.pipe), rr = (e) => {
601
- let t;
602
- return e && (typeof FormData == "function" && e instanceof FormData || C(e.append) && ((t = Ee(e)) === "formdata" || // detect form-data instance
603
- t === "object" && C(e.toString) && e.toString() === "[object FormData]"));
604
- }, sr = v("URLSearchParams"), [or, ir, ar, cr] = ["ReadableStream", "Request", "Response", "Headers"].map(v), lr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
605
- function ae(e, t, { allOwnKeys: n = !1 } = {}) {
606
- if (e === null || typeof e > "u")
53
+ }, kt = P("Date"), Ut = P("File"), jt = P("Blob"), Nt = P("FileList"), Ft = (t) => $(t) && A(t.pipe), Dt = (t) => {
54
+ let e;
55
+ return t && (typeof FormData == "function" && t instanceof FormData || A(t.append) && ((e = te(t)) === "formdata" || // detect form-data instance
56
+ e === "object" && A(t.toString) && t.toString() === "[object FormData]"));
57
+ }, Bt = P("URLSearchParams"), [vt, qt, Mt, It] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Ht = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
+ function z(t, e, { allOwnKeys: n = !1 } = {}) {
59
+ if (t === null || typeof t > "u")
607
60
  return;
608
61
  let r, s;
609
- if (typeof e != "object" && (e = [e]), K(e))
610
- for (r = 0, s = e.length; r < s; r++)
611
- t.call(null, e[r], r, e);
62
+ if (typeof t != "object" && (t = [t]), D(t))
63
+ for (r = 0, s = t.length; r < s; r++)
64
+ e.call(null, t[r], r, t);
612
65
  else {
613
- if (oe(e))
66
+ if (J(t))
614
67
  return;
615
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
68
+ const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
616
69
  let a;
617
70
  for (r = 0; r < i; r++)
618
- a = o[r], t.call(null, e[a], a, e);
71
+ a = o[r], e.call(null, t[a], a, t);
619
72
  }
620
73
  }
621
- function Bt(e, t) {
622
- if (oe(e))
74
+ function We(t, e) {
75
+ if (J(t))
623
76
  return null;
624
- t = t.toLowerCase();
625
- const n = Object.keys(e);
77
+ e = e.toLowerCase();
78
+ const n = Object.keys(t);
626
79
  let r = n.length, s;
627
80
  for (; r-- > 0; )
628
- if (s = n[r], t === s.toLowerCase())
81
+ if (s = n[r], e === s.toLowerCase())
629
82
  return s;
630
83
  return null;
631
84
  }
632
- const I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !ne(e) && e !== I;
633
- function qe() {
634
- const { caseless: e } = Mt(this) && this || {}, t = {}, n = (r, s) => {
635
- const o = e && Bt(t, s) || s;
636
- pe(t[o]) && pe(r) ? t[o] = qe(t[o], r) : pe(r) ? t[o] = qe({}, r) : K(r) ? t[o] = r.slice() : t[o] = r;
85
+ const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ve = (t) => !I(t) && t !== j;
86
+ function de() {
87
+ const { caseless: t } = Ve(this) && this || {}, e = {}, n = (r, s) => {
88
+ const o = t && We(e, s) || s;
89
+ X(e[o]) && X(r) ? e[o] = de(e[o], r) : X(r) ? e[o] = de({}, r) : D(r) ? e[o] = r.slice() : e[o] = r;
637
90
  };
638
91
  for (let r = 0, s = arguments.length; r < s; r++)
639
- arguments[r] && ae(arguments[r], n);
640
- return t;
92
+ arguments[r] && z(arguments[r], n);
93
+ return e;
641
94
  }
642
- const ur = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, o) => {
643
- n && C(s) ? e[o] = Nt(s, n) : e[o] = s;
644
- }, { allOwnKeys: r }), e), fr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), dr = (e, t, n, r) => {
645
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
646
- value: t.prototype
647
- }), n && Object.assign(e.prototype, n);
648
- }, hr = (e, t, n, r) => {
95
+ const Jt = (t, e, n, { allOwnKeys: r } = {}) => (z(e, (s, o) => {
96
+ n && A(s) ? t[o] = He(s, n) : t[o] = s;
97
+ }, { allOwnKeys: r }), t), $t = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), zt = (t, e, n, r) => {
98
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
99
+ value: e.prototype
100
+ }), n && Object.assign(t.prototype, n);
101
+ }, Wt = (t, e, n, r) => {
649
102
  let s, o, i;
650
103
  const a = {};
651
- if (t = t || {}, e == null) return t;
104
+ if (e = e || {}, t == null) return e;
652
105
  do {
653
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
654
- i = s[o], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
655
- e = n !== !1 && Ze(e);
656
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
657
- return t;
658
- }, pr = (e, t, n) => {
659
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
660
- const r = e.indexOf(t, n);
106
+ for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
107
+ i = s[o], (!r || r(i, t, e)) && !a[i] && (e[i] = t[i], a[i] = !0);
108
+ t = n !== !1 && Ee(t);
109
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
110
+ return e;
111
+ }, Vt = (t, e, n) => {
112
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
113
+ const r = t.indexOf(e, n);
661
114
  return r !== -1 && r === n;
662
- }, mr = (e) => {
663
- if (!e) return null;
664
- if (K(e)) return e;
665
- let t = e.length;
666
- if (!Dt(t)) return null;
667
- const n = new Array(t);
668
- for (; t-- > 0; )
669
- n[t] = e[t];
115
+ }, Kt = (t) => {
116
+ if (!t) return null;
117
+ if (D(t)) return t;
118
+ let e = t.length;
119
+ if (!ze(e)) return null;
120
+ const n = new Array(e);
121
+ for (; e-- > 0; )
122
+ n[e] = t[e];
670
123
  return n;
671
- }, gr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ze(Uint8Array)), wr = (e, t) => {
672
- const r = (e && e[Re]).call(e);
124
+ }, Xt = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ee(Uint8Array)), Gt = (t, e) => {
125
+ const r = (t && t[ee]).call(t);
673
126
  let s;
674
127
  for (; (s = r.next()) && !s.done; ) {
675
128
  const o = s.value;
676
- t.call(e, o[0], o[1]);
129
+ e.call(t, o[0], o[1]);
677
130
  }
678
- }, yr = (e, t) => {
131
+ }, Qt = (t, e) => {
679
132
  let n;
680
133
  const r = [];
681
- for (; (n = e.exec(t)) !== null; )
134
+ for (; (n = t.exec(e)) !== null; )
682
135
  r.push(n);
683
136
  return r;
684
- }, br = v("HTMLFormElement"), Rr = (e) => e.toLowerCase().replace(
137
+ }, Yt = P("HTMLFormElement"), Zt = (t) => t.toLowerCase().replace(
685
138
  /[-_\s]([a-z\d])(\w*)/g,
686
139
  function(n, r, s) {
687
140
  return r.toUpperCase() + s;
688
141
  }
689
- ), ot = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Er = v("RegExp"), It = (e, t) => {
690
- const n = Object.getOwnPropertyDescriptors(e), r = {};
691
- ae(n, (s, o) => {
142
+ ), Ae = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), en = P("RegExp"), Ke = (t, e) => {
143
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
144
+ z(n, (s, o) => {
692
145
  let i;
693
- (i = t(s, o, e)) !== !1 && (r[o] = i || s);
694
- }), Object.defineProperties(e, r);
695
- }, Sr = (e) => {
696
- It(e, (t, n) => {
697
- if (C(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
146
+ (i = e(s, o, t)) !== !1 && (r[o] = i || s);
147
+ }), Object.defineProperties(t, r);
148
+ }, tn = (t) => {
149
+ Ke(t, (e, n) => {
150
+ if (A(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
698
151
  return !1;
699
- const r = e[n];
700
- if (C(r)) {
701
- if (t.enumerable = !1, "writable" in t) {
702
- t.writable = !1;
152
+ const r = t[n];
153
+ if (A(r)) {
154
+ if (e.enumerable = !1, "writable" in e) {
155
+ e.writable = !1;
703
156
  return;
704
157
  }
705
- t.set || (t.set = () => {
158
+ e.set || (e.set = () => {
706
159
  throw Error("Can not rewrite read-only method '" + n + "'");
707
160
  });
708
161
  }
709
162
  });
710
- }, _r = (e, t) => {
163
+ }, nn = (t, e) => {
711
164
  const n = {}, r = (s) => {
712
165
  s.forEach((o) => {
713
166
  n[o] = !0;
714
167
  });
715
168
  };
716
- return K(e) ? r(e) : r(String(e).split(t)), n;
717
- }, Or = () => {
718
- }, Tr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
719
- function Ar(e) {
720
- return !!(e && C(e.append) && e[Ut] === "FormData" && e[Re]);
721
- }
722
- const xr = (e) => {
723
- const t = new Array(10), n = (r, s) => {
724
- if (ie(r)) {
725
- if (t.indexOf(r) >= 0)
169
+ return D(t) ? r(t) : r(String(t).split(e)), n;
170
+ }, rn = () => {
171
+ }, sn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
172
+ function on(t) {
173
+ return !!(t && A(t.append) && t[Je] === "FormData" && t[ee]);
174
+ }
175
+ const an = (t) => {
176
+ const e = new Array(10), n = (r, s) => {
177
+ if ($(r)) {
178
+ if (e.indexOf(r) >= 0)
726
179
  return;
727
- if (oe(r))
180
+ if (J(r))
728
181
  return r;
729
182
  if (!("toJSON" in r)) {
730
- t[s] = r;
731
- const o = K(r) ? [] : {};
732
- return ae(r, (i, a) => {
733
- const l = n(i, s + 1);
734
- !ne(l) && (o[a] = l);
735
- }), t[s] = void 0, o;
183
+ e[s] = r;
184
+ const o = D(r) ? [] : {};
185
+ return z(r, (i, a) => {
186
+ const f = n(i, s + 1);
187
+ !I(f) && (o[a] = f);
188
+ }), e[s] = void 0, o;
736
189
  }
737
190
  }
738
191
  return r;
739
192
  };
740
- return n(e, 0);
741
- }, Cr = v("AsyncFunction"), Pr = (e) => e && (ie(e) || C(e)) && C(e.then) && C(e.catch), kt = ((e, t) => e ? setImmediate : t ? ((n, r) => (I.addEventListener("message", ({ source: s, data: o }) => {
742
- s === I && o === n && r.length && r.shift()();
193
+ return n(t, 0);
194
+ }, cn = P("AsyncFunction"), ln = (t) => t && ($(t) || A(t)) && A(t.then) && A(t.catch), Xe = ((t, e) => t ? setImmediate : e ? ((n, r) => (j.addEventListener("message", ({ source: s, data: o }) => {
195
+ s === j && o === n && r.length && r.shift()();
743
196
  }, !1), (s) => {
744
- r.push(s), I.postMessage(n, "*");
197
+ r.push(s), j.postMessage(n, "*");
745
198
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
746
199
  typeof setImmediate == "function",
747
- C(I.postMessage)
748
- ), jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(I) : typeof process < "u" && process.nextTick || kt, Lr = (e) => e != null && C(e[Re]), u = {
749
- isArray: K,
750
- isArrayBuffer: Ft,
751
- isBuffer: oe,
752
- isFormData: rr,
753
- isArrayBufferView: Vn,
754
- isString: Xn,
755
- isNumber: Dt,
756
- isBoolean: Yn,
757
- isObject: ie,
758
- isPlainObject: pe,
759
- isEmptyObject: Gn,
760
- isReadableStream: or,
761
- isRequest: ir,
762
- isResponse: ar,
763
- isHeaders: cr,
764
- isUndefined: ne,
765
- isDate: Qn,
766
- isFile: Zn,
767
- isBlob: er,
768
- isRegExp: Er,
769
- isFunction: C,
770
- isStream: nr,
771
- isURLSearchParams: sr,
772
- isTypedArray: gr,
773
- isFileList: tr,
774
- forEach: ae,
775
- merge: qe,
776
- extend: ur,
777
- trim: lr,
778
- stripBOM: fr,
779
- inherits: dr,
780
- toFlatObject: hr,
781
- kindOf: Ee,
782
- kindOfTest: v,
783
- endsWith: pr,
784
- toArray: mr,
785
- forEachEntry: wr,
786
- matchAll: yr,
787
- isHTMLForm: br,
788
- hasOwnProperty: ot,
789
- hasOwnProp: ot,
200
+ A(j.postMessage)
201
+ ), un = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Xe, fn = (t) => t != null && A(t[ee]), c = {
202
+ isArray: D,
203
+ isArrayBuffer: $e,
204
+ isBuffer: J,
205
+ isFormData: Dt,
206
+ isArrayBufferView: Ct,
207
+ isString: _t,
208
+ isNumber: ze,
209
+ isBoolean: Pt,
210
+ isObject: $,
211
+ isPlainObject: X,
212
+ isEmptyObject: Lt,
213
+ isReadableStream: vt,
214
+ isRequest: qt,
215
+ isResponse: Mt,
216
+ isHeaders: It,
217
+ isUndefined: I,
218
+ isDate: kt,
219
+ isFile: Ut,
220
+ isBlob: jt,
221
+ isRegExp: en,
222
+ isFunction: A,
223
+ isStream: Ft,
224
+ isURLSearchParams: Bt,
225
+ isTypedArray: Xt,
226
+ isFileList: Nt,
227
+ forEach: z,
228
+ merge: de,
229
+ extend: Jt,
230
+ trim: Ht,
231
+ stripBOM: $t,
232
+ inherits: zt,
233
+ toFlatObject: Wt,
234
+ kindOf: te,
235
+ kindOfTest: P,
236
+ endsWith: Vt,
237
+ toArray: Kt,
238
+ forEachEntry: Gt,
239
+ matchAll: Qt,
240
+ isHTMLForm: Yt,
241
+ hasOwnProperty: Ae,
242
+ hasOwnProp: Ae,
790
243
  // an alias to avoid ESLint no-prototype-builtins detection
791
- reduceDescriptors: It,
792
- freezeMethods: Sr,
793
- toObjectSet: _r,
794
- toCamelCase: Rr,
795
- noop: Or,
796
- toFiniteNumber: Tr,
797
- findKey: Bt,
798
- global: I,
799
- isContextDefined: Mt,
800
- isSpecCompliantForm: Ar,
801
- toJSONObject: xr,
802
- isAsyncFn: Cr,
803
- isThenable: Pr,
804
- setImmediate: kt,
805
- asap: jr,
806
- isIterable: Lr
244
+ reduceDescriptors: Ke,
245
+ freezeMethods: tn,
246
+ toObjectSet: nn,
247
+ toCamelCase: Zt,
248
+ noop: rn,
249
+ toFiniteNumber: sn,
250
+ findKey: We,
251
+ global: j,
252
+ isContextDefined: Ve,
253
+ isSpecCompliantForm: on,
254
+ toJSONObject: an,
255
+ isAsyncFn: cn,
256
+ isThenable: ln,
257
+ setImmediate: Xe,
258
+ asap: un,
259
+ isIterable: fn
807
260
  };
808
- function w(e, t, n, r, s) {
809
- 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);
261
+ function y(t, e, n, r, s) {
262
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
810
263
  }
811
- u.inherits(w, Error, {
264
+ c.inherits(y, Error, {
812
265
  toJSON: function() {
813
266
  return {
814
267
  // Standard
@@ -823,13 +276,13 @@ u.inherits(w, Error, {
823
276
  columnNumber: this.columnNumber,
824
277
  stack: this.stack,
825
278
  // Axios
826
- config: u.toJSONObject(this.config),
279
+ config: c.toJSONObject(this.config),
827
280
  code: this.code,
828
281
  status: this.status
829
282
  };
830
283
  }
831
284
  });
832
- const qt = w.prototype, Ht = {};
285
+ const Ge = y.prototype, Qe = {};
833
286
  [
834
287
  "ERR_BAD_OPTION_VALUE",
835
288
  "ERR_BAD_OPTION",
@@ -844,100 +297,100 @@ const qt = w.prototype, Ht = {};
844
297
  "ERR_NOT_SUPPORT",
845
298
  "ERR_INVALID_URL"
846
299
  // eslint-disable-next-line func-names
847
- ].forEach((e) => {
848
- Ht[e] = { value: e };
300
+ ].forEach((t) => {
301
+ Qe[t] = { value: t };
849
302
  });
850
- Object.defineProperties(w, Ht);
851
- Object.defineProperty(qt, "isAxiosError", { value: !0 });
852
- w.from = (e, t, n, r, s, o) => {
853
- const i = Object.create(qt);
854
- return u.toFlatObject(e, i, function(l) {
855
- return l !== Error.prototype;
856
- }, (a) => a !== "isAxiosError"), w.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
303
+ Object.defineProperties(y, Qe);
304
+ Object.defineProperty(Ge, "isAxiosError", { value: !0 });
305
+ y.from = (t, e, n, r, s, o) => {
306
+ const i = Object.create(Ge);
307
+ return c.toFlatObject(t, i, function(f) {
308
+ return f !== Error.prototype;
309
+ }, (a) => a !== "isAxiosError"), y.call(i, t.message, e, n, r, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
857
310
  };
858
- const vr = null;
859
- function He(e) {
860
- return u.isPlainObject(e) || u.isArray(e);
311
+ const dn = null;
312
+ function pe(t) {
313
+ return c.isPlainObject(t) || c.isArray(t);
861
314
  }
862
- function $t(e) {
863
- return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
315
+ function Ye(t) {
316
+ return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
864
317
  }
865
- function it(e, t, n) {
866
- return e ? e.concat(t).map(function(s, o) {
867
- return s = $t(s), !n && o ? "[" + s + "]" : s;
868
- }).join(n ? "." : "") : t;
318
+ function xe(t, e, n) {
319
+ return t ? t.concat(e).map(function(s, o) {
320
+ return s = Ye(s), !n && o ? "[" + s + "]" : s;
321
+ }).join(n ? "." : "") : e;
869
322
  }
870
- function Nr(e) {
871
- return u.isArray(e) && !e.some(He);
323
+ function pn(t) {
324
+ return c.isArray(t) && !t.some(pe);
872
325
  }
873
- const Ur = u.toFlatObject(u, {}, null, function(t) {
874
- return /^is[A-Z]/.test(t);
326
+ const hn = c.toFlatObject(c, {}, null, function(e) {
327
+ return /^is[A-Z]/.test(e);
875
328
  });
876
- function _e(e, t, n) {
877
- if (!u.isObject(e))
329
+ function re(t, e, n) {
330
+ if (!c.isObject(t))
878
331
  throw new TypeError("target must be an object");
879
- t = t || new FormData(), n = u.toFlatObject(n, {
332
+ e = e || new FormData(), n = c.toFlatObject(n, {
880
333
  metaTokens: !0,
881
334
  dots: !1,
882
335
  indexes: !1
883
- }, !1, function(g, p) {
884
- return !u.isUndefined(p[g]);
336
+ }, !1, function(m, h) {
337
+ return !c.isUndefined(h[m]);
885
338
  });
886
- const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
887
- if (!u.isFunction(s))
339
+ const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
340
+ if (!c.isFunction(s))
888
341
  throw new TypeError("visitor must be a function");
889
- function c(h) {
890
- if (h === null) return "";
891
- if (u.isDate(h))
892
- return h.toISOString();
893
- if (u.isBoolean(h))
894
- return h.toString();
895
- if (!l && u.isBlob(h))
896
- throw new w("Blob is not supported. Use a Buffer instead.");
897
- return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
898
- }
899
- function f(h, g, p) {
900
- let y = h;
901
- if (h && !p && typeof h == "object") {
902
- if (u.endsWith(g, "{}"))
903
- g = r ? g : g.slice(0, -2), h = JSON.stringify(h);
904
- else if (u.isArray(h) && Nr(h) || (u.isFileList(h) || u.endsWith(g, "[]")) && (y = u.toArray(h)))
905
- return g = $t(g), y.forEach(function(R, L) {
906
- !(u.isUndefined(R) || R === null) && t.append(
342
+ function l(p) {
343
+ if (p === null) return "";
344
+ if (c.isDate(p))
345
+ return p.toISOString();
346
+ if (c.isBoolean(p))
347
+ return p.toString();
348
+ if (!f && c.isBlob(p))
349
+ throw new y("Blob is not supported. Use a Buffer instead.");
350
+ return c.isArrayBuffer(p) || c.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
351
+ }
352
+ function u(p, m, h) {
353
+ let w = p;
354
+ if (p && !h && typeof p == "object") {
355
+ if (c.endsWith(m, "{}"))
356
+ m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
357
+ else if (c.isArray(p) && pn(p) || (c.isFileList(p) || c.endsWith(m, "[]")) && (w = c.toArray(p)))
358
+ return m = Ye(m), w.forEach(function(E, _) {
359
+ !(c.isUndefined(E) || E === null) && e.append(
907
360
  // eslint-disable-next-line no-nested-ternary
908
- i === !0 ? it([g], L, o) : i === null ? g : g + "[]",
909
- c(R)
361
+ i === !0 ? xe([m], _, o) : i === null ? m : m + "[]",
362
+ l(E)
910
363
  );
911
364
  }), !1;
912
365
  }
913
- return He(h) ? !0 : (t.append(it(p, g, o), c(h)), !1);
366
+ return pe(p) ? !0 : (e.append(xe(h, m, o), l(p)), !1);
914
367
  }
915
- const d = [], m = Object.assign(Ur, {
916
- defaultVisitor: f,
917
- convertValue: c,
918
- isVisitable: He
368
+ const d = [], g = Object.assign(hn, {
369
+ defaultVisitor: u,
370
+ convertValue: l,
371
+ isVisitable: pe
919
372
  });
920
- function b(h, g) {
921
- if (!u.isUndefined(h)) {
922
- if (d.indexOf(h) !== -1)
923
- throw Error("Circular reference detected in " + g.join("."));
924
- d.push(h), u.forEach(h, function(y, S) {
925
- (!(u.isUndefined(y) || y === null) && s.call(
926
- t,
927
- y,
928
- u.isString(S) ? S.trim() : S,
929
- g,
930
- m
931
- )) === !0 && b(y, g ? g.concat(S) : [S]);
373
+ function b(p, m) {
374
+ if (!c.isUndefined(p)) {
375
+ if (d.indexOf(p) !== -1)
376
+ throw Error("Circular reference detected in " + m.join("."));
377
+ d.push(p), c.forEach(p, function(w, R) {
378
+ (!(c.isUndefined(w) || w === null) && s.call(
379
+ e,
380
+ w,
381
+ c.isString(R) ? R.trim() : R,
382
+ m,
383
+ g
384
+ )) === !0 && b(w, m ? m.concat(R) : [R]);
932
385
  }), d.pop();
933
386
  }
934
387
  }
935
- if (!u.isObject(e))
388
+ if (!c.isObject(t))
936
389
  throw new TypeError("data must be an object");
937
- return b(e), t;
390
+ return b(t), e;
938
391
  }
939
- function at(e) {
940
- const t = {
392
+ function Ce(t) {
393
+ const e = {
941
394
  "!": "%21",
942
395
  "'": "%27",
943
396
  "(": "%28",
@@ -946,44 +399,44 @@ function at(e) {
946
399
  "%20": "+",
947
400
  "%00": "\0"
948
401
  };
949
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
950
- return t[r];
402
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
403
+ return e[r];
951
404
  });
952
405
  }
953
- function et(e, t) {
954
- this._pairs = [], e && _e(e, this, t);
406
+ function Re(t, e) {
407
+ this._pairs = [], t && re(t, this, e);
955
408
  }
956
- const Jt = et.prototype;
957
- Jt.append = function(t, n) {
958
- this._pairs.push([t, n]);
409
+ const Ze = Re.prototype;
410
+ Ze.append = function(e, n) {
411
+ this._pairs.push([e, n]);
959
412
  };
960
- Jt.toString = function(t) {
961
- const n = t ? function(r) {
962
- return t.call(this, r, at);
963
- } : at;
413
+ Ze.toString = function(e) {
414
+ const n = e ? function(r) {
415
+ return e.call(this, r, Ce);
416
+ } : Ce;
964
417
  return this._pairs.map(function(s) {
965
418
  return n(s[0]) + "=" + n(s[1]);
966
419
  }, "").join("&");
967
420
  };
968
- function Fr(e) {
969
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
421
+ function mn(t) {
422
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
970
423
  }
971
- function Wt(e, t, n) {
972
- if (!t)
973
- return e;
974
- const r = n && n.encode || Fr;
975
- u.isFunction(n) && (n = {
424
+ function et(t, e, n) {
425
+ if (!e)
426
+ return t;
427
+ const r = n && n.encode || mn;
428
+ c.isFunction(n) && (n = {
976
429
  serialize: n
977
430
  });
978
431
  const s = n && n.serialize;
979
432
  let o;
980
- if (s ? o = s(t, n) : o = u.isURLSearchParams(t) ? t.toString() : new et(t, n).toString(r), o) {
981
- const i = e.indexOf("#");
982
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
433
+ if (s ? o = s(e, n) : o = c.isURLSearchParams(e) ? e.toString() : new Re(e, n).toString(r), o) {
434
+ const i = t.indexOf("#");
435
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
983
436
  }
984
- return e;
437
+ return t;
985
438
  }
986
- class ct {
439
+ class _e {
987
440
  constructor() {
988
441
  this.handlers = [];
989
442
  }
@@ -995,9 +448,9 @@ class ct {
995
448
  *
996
449
  * @return {Number} An ID used to remove interceptor later
997
450
  */
998
- use(t, n, r) {
451
+ use(e, n, r) {
999
452
  return this.handlers.push({
1000
- fulfilled: t,
453
+ fulfilled: e,
1001
454
  rejected: n,
1002
455
  synchronous: r ? r.synchronous : !1,
1003
456
  runWhen: r ? r.runWhen : null
@@ -1010,8 +463,8 @@ class ct {
1010
463
  *
1011
464
  * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1012
465
  */
1013
- eject(t) {
1014
- this.handlers[t] && (this.handlers[t] = null);
466
+ eject(e) {
467
+ this.handlers[e] && (this.handlers[e] = null);
1015
468
  }
1016
469
  /**
1017
470
  * Clear all interceptors from the stack
@@ -1031,123 +484,123 @@ class ct {
1031
484
  *
1032
485
  * @returns {void}
1033
486
  */
1034
- forEach(t) {
1035
- u.forEach(this.handlers, function(r) {
1036
- r !== null && t(r);
487
+ forEach(e) {
488
+ c.forEach(this.handlers, function(r) {
489
+ r !== null && e(r);
1037
490
  });
1038
491
  }
1039
492
  }
1040
- const zt = {
493
+ const tt = {
1041
494
  silentJSONParsing: !0,
1042
495
  forcedJSONParsing: !0,
1043
496
  clarifyTimeoutError: !1
1044
- }, Dr = typeof URLSearchParams < "u" ? URLSearchParams : et, Br = typeof FormData < "u" ? FormData : null, Mr = typeof Blob < "u" ? Blob : null, Ir = {
497
+ }, yn = typeof URLSearchParams < "u" ? URLSearchParams : Re, gn = typeof FormData < "u" ? FormData : null, wn = typeof Blob < "u" ? Blob : null, bn = {
1045
498
  isBrowser: !0,
1046
499
  classes: {
1047
- URLSearchParams: Dr,
1048
- FormData: Br,
1049
- Blob: Mr
500
+ URLSearchParams: yn,
501
+ FormData: gn,
502
+ Blob: wn
1050
503
  },
1051
504
  protocols: ["http", "https", "file", "blob", "url", "data"]
1052
- }, tt = typeof window < "u" && typeof document < "u", $e = typeof navigator == "object" && navigator || void 0, kr = tt && (!$e || ["ReactNative", "NativeScript", "NS"].indexOf($e.product) < 0), qr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1053
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Hr = tt && window.location.href || "http://localhost", $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
505
+ }, Se = typeof window < "u" && typeof document < "u", he = typeof navigator == "object" && navigator || void 0, En = Se && (!he || ["ReactNative", "NativeScript", "NS"].indexOf(he.product) < 0), Rn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
506
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Sn = Se && window.location.href || "http://localhost", On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1054
507
  __proto__: null,
1055
- hasBrowserEnv: tt,
1056
- hasStandardBrowserEnv: kr,
1057
- hasStandardBrowserWebWorkerEnv: qr,
1058
- navigator: $e,
1059
- origin: Hr
508
+ hasBrowserEnv: Se,
509
+ hasStandardBrowserEnv: En,
510
+ hasStandardBrowserWebWorkerEnv: Rn,
511
+ navigator: he,
512
+ origin: Sn
1060
513
  }, Symbol.toStringTag, { value: "Module" })), O = {
1061
- ...$r,
1062
- ...Ir
514
+ ...On,
515
+ ...bn
1063
516
  };
1064
- function Jr(e, t) {
1065
- return _e(e, new O.classes.URLSearchParams(), {
517
+ function Tn(t, e) {
518
+ return re(t, new O.classes.URLSearchParams(), {
1066
519
  visitor: function(n, r, s, o) {
1067
- return O.isNode && u.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
520
+ return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1068
521
  },
1069
- ...t
522
+ ...e
1070
523
  });
1071
524
  }
1072
- function Wr(e) {
1073
- return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
525
+ function An(t) {
526
+ return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1074
527
  }
1075
- function zr(e) {
1076
- const t = {}, n = Object.keys(e);
528
+ function xn(t) {
529
+ const e = {}, n = Object.keys(t);
1077
530
  let r;
1078
531
  const s = n.length;
1079
532
  let o;
1080
533
  for (r = 0; r < s; r++)
1081
- o = n[r], t[o] = e[o];
1082
- return t;
534
+ o = n[r], e[o] = t[o];
535
+ return e;
1083
536
  }
1084
- function Kt(e) {
1085
- function t(n, r, s, o) {
537
+ function nt(t) {
538
+ function e(n, r, s, o) {
1086
539
  let i = n[o++];
1087
540
  if (i === "__proto__") return !0;
1088
- const a = Number.isFinite(+i), l = o >= n.length;
1089
- return i = !i && u.isArray(s) ? s.length : i, l ? (u.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !u.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && u.isArray(s[i]) && (s[i] = zr(s[i])), !a);
541
+ const a = Number.isFinite(+i), f = o >= n.length;
542
+ return i = !i && c.isArray(s) ? s.length : i, f ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = xn(s[i])), !a);
1090
543
  }
1091
- if (u.isFormData(e) && u.isFunction(e.entries)) {
544
+ if (c.isFormData(t) && c.isFunction(t.entries)) {
1092
545
  const n = {};
1093
- return u.forEachEntry(e, (r, s) => {
1094
- t(Wr(r), s, n, 0);
546
+ return c.forEachEntry(t, (r, s) => {
547
+ e(An(r), s, n, 0);
1095
548
  }), n;
1096
549
  }
1097
550
  return null;
1098
551
  }
1099
- function Kr(e, t, n) {
1100
- if (u.isString(e))
552
+ function Cn(t, e, n) {
553
+ if (c.isString(t))
1101
554
  try {
1102
- return (t || JSON.parse)(e), u.trim(e);
555
+ return (e || JSON.parse)(t), c.trim(t);
1103
556
  } catch (r) {
1104
557
  if (r.name !== "SyntaxError")
1105
558
  throw r;
1106
559
  }
1107
- return (n || JSON.stringify)(e);
560
+ return (n || JSON.stringify)(t);
1108
561
  }
1109
- const ce = {
1110
- transitional: zt,
562
+ const W = {
563
+ transitional: tt,
1111
564
  adapter: ["xhr", "http", "fetch"],
1112
- transformRequest: [function(t, n) {
1113
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = u.isObject(t);
1114
- if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
1115
- return s ? JSON.stringify(Kt(t)) : t;
1116
- if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
1117
- return t;
1118
- if (u.isArrayBufferView(t))
1119
- return t.buffer;
1120
- if (u.isURLSearchParams(t))
1121
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
565
+ transformRequest: [function(e, n) {
566
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = c.isObject(e);
567
+ if (o && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
568
+ return s ? JSON.stringify(nt(e)) : e;
569
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
570
+ return e;
571
+ if (c.isArrayBufferView(e))
572
+ return e.buffer;
573
+ if (c.isURLSearchParams(e))
574
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
1122
575
  let a;
1123
576
  if (o) {
1124
577
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
1125
- return Jr(t, this.formSerializer).toString();
1126
- if ((a = u.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1127
- const l = this.env && this.env.FormData;
1128
- return _e(
1129
- a ? { "files[]": t } : t,
1130
- l && new l(),
578
+ return Tn(e, this.formSerializer).toString();
579
+ if ((a = c.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
580
+ const f = this.env && this.env.FormData;
581
+ return re(
582
+ a ? { "files[]": e } : e,
583
+ f && new f(),
1131
584
  this.formSerializer
1132
585
  );
1133
586
  }
1134
587
  }
1135
- return o || s ? (n.setContentType("application/json", !1), Kr(t)) : t;
588
+ return o || s ? (n.setContentType("application/json", !1), Cn(e)) : e;
1136
589
  }],
1137
- transformResponse: [function(t) {
1138
- const n = this.transitional || ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
1139
- if (u.isResponse(t) || u.isReadableStream(t))
1140
- return t;
1141
- if (t && u.isString(t) && (r && !this.responseType || s)) {
590
+ transformResponse: [function(e) {
591
+ const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
592
+ if (c.isResponse(e) || c.isReadableStream(e))
593
+ return e;
594
+ if (e && c.isString(e) && (r && !this.responseType || s)) {
1142
595
  const i = !(n && n.silentJSONParsing) && s;
1143
596
  try {
1144
- return JSON.parse(t);
597
+ return JSON.parse(e);
1145
598
  } catch (a) {
1146
599
  if (i)
1147
- throw a.name === "SyntaxError" ? w.from(a, w.ERR_BAD_RESPONSE, this, null, this.response) : a;
600
+ throw a.name === "SyntaxError" ? y.from(a, y.ERR_BAD_RESPONSE, this, null, this.response) : a;
1148
601
  }
1149
602
  }
1150
- return t;
603
+ return e;
1151
604
  }],
1152
605
  /**
1153
606
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -1162,8 +615,8 @@ const ce = {
1162
615
  FormData: O.classes.FormData,
1163
616
  Blob: O.classes.Blob
1164
617
  },
1165
- validateStatus: function(t) {
1166
- return t >= 200 && t < 300;
618
+ validateStatus: function(e) {
619
+ return e >= 200 && e < 300;
1167
620
  },
1168
621
  headers: {
1169
622
  common: {
@@ -1172,10 +625,10 @@ const ce = {
1172
625
  }
1173
626
  }
1174
627
  };
1175
- u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1176
- ce.headers[e] = {};
628
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
629
+ W.headers[t] = {};
1177
630
  });
1178
- const Vr = u.toObjectSet([
631
+ const _n = c.toObjectSet([
1179
632
  "age",
1180
633
  "authorization",
1181
634
  "content-length",
@@ -1193,152 +646,152 @@ const Vr = u.toObjectSet([
1193
646
  "referer",
1194
647
  "retry-after",
1195
648
  "user-agent"
1196
- ]), Xr = (e) => {
1197
- const t = {};
649
+ ]), Pn = (t) => {
650
+ const e = {};
1198
651
  let n, r, s;
1199
- return e && e.split(`
652
+ return t && t.split(`
1200
653
  `).forEach(function(i) {
1201
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Vr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1202
- }), t;
1203
- }, lt = Symbol("internals");
1204
- function Y(e) {
1205
- return e && String(e).trim().toLowerCase();
654
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && _n[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
655
+ }), e;
656
+ }, Pe = Symbol("internals");
657
+ function v(t) {
658
+ return t && String(t).trim().toLowerCase();
1206
659
  }
1207
- function me(e) {
1208
- return e === !1 || e == null ? e : u.isArray(e) ? e.map(me) : String(e);
660
+ function G(t) {
661
+ return t === !1 || t == null ? t : c.isArray(t) ? t.map(G) : String(t);
1209
662
  }
1210
- function Yr(e) {
1211
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
663
+ function Ln(t) {
664
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1212
665
  let r;
1213
- for (; r = n.exec(e); )
1214
- t[r[1]] = r[2];
1215
- return t;
666
+ for (; r = n.exec(t); )
667
+ e[r[1]] = r[2];
668
+ return e;
1216
669
  }
1217
- const Gr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1218
- function Le(e, t, n, r, s) {
1219
- if (u.isFunction(r))
1220
- return r.call(this, t, n);
1221
- if (s && (t = n), !!u.isString(t)) {
1222
- if (u.isString(r))
1223
- return t.indexOf(r) !== -1;
1224
- if (u.isRegExp(r))
1225
- return r.test(t);
670
+ const kn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
671
+ function ce(t, e, n, r, s) {
672
+ if (c.isFunction(r))
673
+ return r.call(this, e, n);
674
+ if (s && (e = n), !!c.isString(e)) {
675
+ if (c.isString(r))
676
+ return e.indexOf(r) !== -1;
677
+ if (c.isRegExp(r))
678
+ return r.test(e);
1226
679
  }
1227
680
  }
1228
- function Qr(e) {
1229
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
681
+ function Un(t) {
682
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
1230
683
  }
1231
- function Zr(e, t) {
1232
- const n = u.toCamelCase(" " + t);
684
+ function jn(t, e) {
685
+ const n = c.toCamelCase(" " + e);
1233
686
  ["get", "set", "has"].forEach((r) => {
1234
- Object.defineProperty(e, r + n, {
687
+ Object.defineProperty(t, r + n, {
1235
688
  value: function(s, o, i) {
1236
- return this[r].call(this, t, s, o, i);
689
+ return this[r].call(this, e, s, o, i);
1237
690
  },
1238
691
  configurable: !0
1239
692
  });
1240
693
  });
1241
694
  }
1242
- let P = class {
1243
- constructor(t) {
1244
- t && this.set(t);
695
+ let x = class {
696
+ constructor(e) {
697
+ e && this.set(e);
1245
698
  }
1246
- set(t, n, r) {
699
+ set(e, n, r) {
1247
700
  const s = this;
1248
- function o(a, l, c) {
1249
- const f = Y(l);
1250
- if (!f)
701
+ function o(a, f, l) {
702
+ const u = v(f);
703
+ if (!u)
1251
704
  throw new Error("header name must be a non-empty string");
1252
- const d = u.findKey(s, f);
1253
- (!d || s[d] === void 0 || c === !0 || c === void 0 && s[d] !== !1) && (s[d || l] = me(a));
705
+ const d = c.findKey(s, u);
706
+ (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = G(a));
1254
707
  }
1255
- const i = (a, l) => u.forEach(a, (c, f) => o(c, f, l));
1256
- if (u.isPlainObject(t) || t instanceof this.constructor)
1257
- i(t, n);
1258
- else if (u.isString(t) && (t = t.trim()) && !Gr(t))
1259
- i(Xr(t), n);
1260
- else if (u.isObject(t) && u.isIterable(t)) {
1261
- let a = {}, l, c;
1262
- for (const f of t) {
1263
- if (!u.isArray(f))
708
+ const i = (a, f) => c.forEach(a, (l, u) => o(l, u, f));
709
+ if (c.isPlainObject(e) || e instanceof this.constructor)
710
+ i(e, n);
711
+ else if (c.isString(e) && (e = e.trim()) && !kn(e))
712
+ i(Pn(e), n);
713
+ else if (c.isObject(e) && c.isIterable(e)) {
714
+ let a = {}, f, l;
715
+ for (const u of e) {
716
+ if (!c.isArray(u))
1264
717
  throw TypeError("Object iterator must return a key-value pair");
1265
- a[c = f[0]] = (l = a[c]) ? u.isArray(l) ? [...l, f[1]] : [l, f[1]] : f[1];
718
+ a[l = u[0]] = (f = a[l]) ? c.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
1266
719
  }
1267
720
  i(a, n);
1268
721
  } else
1269
- t != null && o(n, t, r);
722
+ e != null && o(n, e, r);
1270
723
  return this;
1271
724
  }
1272
- get(t, n) {
1273
- if (t = Y(t), t) {
1274
- const r = u.findKey(this, t);
725
+ get(e, n) {
726
+ if (e = v(e), e) {
727
+ const r = c.findKey(this, e);
1275
728
  if (r) {
1276
729
  const s = this[r];
1277
730
  if (!n)
1278
731
  return s;
1279
732
  if (n === !0)
1280
- return Yr(s);
1281
- if (u.isFunction(n))
733
+ return Ln(s);
734
+ if (c.isFunction(n))
1282
735
  return n.call(this, s, r);
1283
- if (u.isRegExp(n))
736
+ if (c.isRegExp(n))
1284
737
  return n.exec(s);
1285
738
  throw new TypeError("parser must be boolean|regexp|function");
1286
739
  }
1287
740
  }
1288
741
  }
1289
- has(t, n) {
1290
- if (t = Y(t), t) {
1291
- const r = u.findKey(this, t);
1292
- return !!(r && this[r] !== void 0 && (!n || Le(this, this[r], r, n)));
742
+ has(e, n) {
743
+ if (e = v(e), e) {
744
+ const r = c.findKey(this, e);
745
+ return !!(r && this[r] !== void 0 && (!n || ce(this, this[r], r, n)));
1293
746
  }
1294
747
  return !1;
1295
748
  }
1296
- delete(t, n) {
749
+ delete(e, n) {
1297
750
  const r = this;
1298
751
  let s = !1;
1299
752
  function o(i) {
1300
- if (i = Y(i), i) {
1301
- const a = u.findKey(r, i);
1302
- a && (!n || Le(r, r[a], a, n)) && (delete r[a], s = !0);
753
+ if (i = v(i), i) {
754
+ const a = c.findKey(r, i);
755
+ a && (!n || ce(r, r[a], a, n)) && (delete r[a], s = !0);
1303
756
  }
1304
757
  }
1305
- return u.isArray(t) ? t.forEach(o) : o(t), s;
758
+ return c.isArray(e) ? e.forEach(o) : o(e), s;
1306
759
  }
1307
- clear(t) {
760
+ clear(e) {
1308
761
  const n = Object.keys(this);
1309
762
  let r = n.length, s = !1;
1310
763
  for (; r--; ) {
1311
764
  const o = n[r];
1312
- (!t || Le(this, this[o], o, t, !0)) && (delete this[o], s = !0);
765
+ (!e || ce(this, this[o], o, e, !0)) && (delete this[o], s = !0);
1313
766
  }
1314
767
  return s;
1315
768
  }
1316
- normalize(t) {
769
+ normalize(e) {
1317
770
  const n = this, r = {};
1318
- return u.forEach(this, (s, o) => {
1319
- const i = u.findKey(r, o);
771
+ return c.forEach(this, (s, o) => {
772
+ const i = c.findKey(r, o);
1320
773
  if (i) {
1321
- n[i] = me(s), delete n[o];
774
+ n[i] = G(s), delete n[o];
1322
775
  return;
1323
776
  }
1324
- const a = t ? Qr(o) : String(o).trim();
1325
- a !== o && delete n[o], n[a] = me(s), r[a] = !0;
777
+ const a = e ? Un(o) : String(o).trim();
778
+ a !== o && delete n[o], n[a] = G(s), r[a] = !0;
1326
779
  }), this;
1327
780
  }
1328
- concat(...t) {
1329
- return this.constructor.concat(this, ...t);
781
+ concat(...e) {
782
+ return this.constructor.concat(this, ...e);
1330
783
  }
1331
- toJSON(t) {
784
+ toJSON(e) {
1332
785
  const n = /* @__PURE__ */ Object.create(null);
1333
- return u.forEach(this, (r, s) => {
1334
- r != null && r !== !1 && (n[s] = t && u.isArray(r) ? r.join(", ") : r);
786
+ return c.forEach(this, (r, s) => {
787
+ r != null && r !== !1 && (n[s] = e && c.isArray(r) ? r.join(", ") : r);
1335
788
  }), n;
1336
789
  }
1337
790
  [Symbol.iterator]() {
1338
791
  return Object.entries(this.toJSON())[Symbol.iterator]();
1339
792
  }
1340
793
  toString() {
1341
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
794
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
1342
795
  `);
1343
796
  }
1344
797
  getSetCookie() {
@@ -1347,135 +800,135 @@ let P = class {
1347
800
  get [Symbol.toStringTag]() {
1348
801
  return "AxiosHeaders";
1349
802
  }
1350
- static from(t) {
1351
- return t instanceof this ? t : new this(t);
803
+ static from(e) {
804
+ return e instanceof this ? e : new this(e);
1352
805
  }
1353
- static concat(t, ...n) {
1354
- const r = new this(t);
806
+ static concat(e, ...n) {
807
+ const r = new this(e);
1355
808
  return n.forEach((s) => r.set(s)), r;
1356
809
  }
1357
- static accessor(t) {
1358
- const r = (this[lt] = this[lt] = {
810
+ static accessor(e) {
811
+ const r = (this[Pe] = this[Pe] = {
1359
812
  accessors: {}
1360
813
  }).accessors, s = this.prototype;
1361
814
  function o(i) {
1362
- const a = Y(i);
1363
- r[a] || (Zr(s, i), r[a] = !0);
815
+ const a = v(i);
816
+ r[a] || (jn(s, i), r[a] = !0);
1364
817
  }
1365
- return u.isArray(t) ? t.forEach(o) : o(t), this;
818
+ return c.isArray(e) ? e.forEach(o) : o(e), this;
1366
819
  }
1367
820
  };
1368
- P.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1369
- u.reduceDescriptors(P.prototype, ({ value: e }, t) => {
1370
- let n = t[0].toUpperCase() + t.slice(1);
821
+ x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
822
+ c.reduceDescriptors(x.prototype, ({ value: t }, e) => {
823
+ let n = e[0].toUpperCase() + e.slice(1);
1371
824
  return {
1372
- get: () => e,
825
+ get: () => t,
1373
826
  set(r) {
1374
827
  this[n] = r;
1375
828
  }
1376
829
  };
1377
830
  });
1378
- u.freezeMethods(P);
1379
- function ve(e, t) {
1380
- const n = this || ce, r = t || n, s = P.from(r.headers);
831
+ c.freezeMethods(x);
832
+ function le(t, e) {
833
+ const n = this || W, r = e || n, s = x.from(r.headers);
1381
834
  let o = r.data;
1382
- return u.forEach(e, function(a) {
1383
- o = a.call(n, o, s.normalize(), t ? t.status : void 0);
835
+ return c.forEach(t, function(a) {
836
+ o = a.call(n, o, s.normalize(), e ? e.status : void 0);
1384
837
  }), s.normalize(), o;
1385
838
  }
1386
- function Vt(e) {
1387
- return !!(e && e.__CANCEL__);
839
+ function rt(t) {
840
+ return !!(t && t.__CANCEL__);
1388
841
  }
1389
- function V(e, t, n) {
1390
- w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
842
+ function B(t, e, n) {
843
+ y.call(this, t ?? "canceled", y.ERR_CANCELED, e, n), this.name = "CanceledError";
1391
844
  }
1392
- u.inherits(V, w, {
845
+ c.inherits(B, y, {
1393
846
  __CANCEL__: !0
1394
847
  });
1395
- function Xt(e, t, n) {
848
+ function st(t, e, n) {
1396
849
  const r = n.config.validateStatus;
1397
- !n.status || !r || r(n.status) ? e(n) : t(new w(
850
+ !n.status || !r || r(n.status) ? t(n) : e(new y(
1398
851
  "Request failed with status code " + n.status,
1399
- [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
852
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1400
853
  n.config,
1401
854
  n.request,
1402
855
  n
1403
856
  ));
1404
857
  }
1405
- function es(e) {
1406
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1407
- return t && t[1] || "";
858
+ function Nn(t) {
859
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
860
+ return e && e[1] || "";
1408
861
  }
1409
- function ts(e, t) {
1410
- e = e || 10;
1411
- const n = new Array(e), r = new Array(e);
862
+ function Fn(t, e) {
863
+ t = t || 10;
864
+ const n = new Array(t), r = new Array(t);
1412
865
  let s = 0, o = 0, i;
1413
- return t = t !== void 0 ? t : 1e3, function(l) {
1414
- const c = Date.now(), f = r[o];
1415
- i || (i = c), n[s] = l, r[s] = c;
1416
- let d = o, m = 0;
866
+ return e = e !== void 0 ? e : 1e3, function(f) {
867
+ const l = Date.now(), u = r[o];
868
+ i || (i = l), n[s] = f, r[s] = l;
869
+ let d = o, g = 0;
1417
870
  for (; d !== s; )
1418
- m += n[d++], d = d % e;
1419
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - i < t)
871
+ g += n[d++], d = d % t;
872
+ if (s = (s + 1) % t, s === o && (o = (o + 1) % t), l - i < e)
1420
873
  return;
1421
- const b = f && c - f;
1422
- return b ? Math.round(m * 1e3 / b) : void 0;
874
+ const b = u && l - u;
875
+ return b ? Math.round(g * 1e3 / b) : void 0;
1423
876
  };
1424
877
  }
1425
- function ns(e, t) {
1426
- let n = 0, r = 1e3 / t, s, o;
1427
- const i = (c, f = Date.now()) => {
1428
- n = f, s = null, o && (clearTimeout(o), o = null), e(...c);
878
+ function Dn(t, e) {
879
+ let n = 0, r = 1e3 / e, s, o;
880
+ const i = (l, u = Date.now()) => {
881
+ n = u, s = null, o && (clearTimeout(o), o = null), t(...l);
1429
882
  };
1430
- return [(...c) => {
1431
- const f = Date.now(), d = f - n;
1432
- d >= r ? i(c, f) : (s = c, o || (o = setTimeout(() => {
883
+ return [(...l) => {
884
+ const u = Date.now(), d = u - n;
885
+ d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
1433
886
  o = null, i(s);
1434
887
  }, r - d)));
1435
888
  }, () => s && i(s)];
1436
889
  }
1437
- const ye = (e, t, n = 3) => {
890
+ const Y = (t, e, n = 3) => {
1438
891
  let r = 0;
1439
- const s = ts(50, 250);
1440
- return ns((o) => {
1441
- const i = o.loaded, a = o.lengthComputable ? o.total : void 0, l = i - r, c = s(l), f = i <= a;
892
+ const s = Fn(50, 250);
893
+ return Dn((o) => {
894
+ const i = o.loaded, a = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= a;
1442
895
  r = i;
1443
896
  const d = {
1444
897
  loaded: i,
1445
898
  total: a,
1446
899
  progress: a ? i / a : void 0,
1447
- bytes: l,
1448
- rate: c || void 0,
1449
- estimated: c && a && f ? (a - i) / c : void 0,
900
+ bytes: f,
901
+ rate: l || void 0,
902
+ estimated: l && a && u ? (a - i) / l : void 0,
1450
903
  event: o,
1451
904
  lengthComputable: a != null,
1452
- [t ? "download" : "upload"]: !0
905
+ [e ? "download" : "upload"]: !0
1453
906
  };
1454
- e(d);
907
+ t(d);
1455
908
  }, n);
1456
- }, ut = (e, t) => {
1457
- const n = e != null;
1458
- return [(r) => t[0]({
909
+ }, Le = (t, e) => {
910
+ const n = t != null;
911
+ return [(r) => e[0]({
1459
912
  lengthComputable: n,
1460
- total: e,
913
+ total: t,
1461
914
  loaded: r
1462
- }), t[1]];
1463
- }, ft = (e) => (...t) => u.asap(() => e(...t)), rs = 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)))(
915
+ }), e[1]];
916
+ }, ke = (t) => (...e) => c.asap(() => t(...e)), Bn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, O.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
1464
917
  new URL(O.origin),
1465
918
  O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
1466
- ) : () => !0, ss = O.hasStandardBrowserEnv ? (
919
+ ) : () => !0, vn = O.hasStandardBrowserEnv ? (
1467
920
  // Standard browser envs support document.cookie
1468
921
  {
1469
- write(e, t, n, r, s, o) {
1470
- const i = [e + "=" + encodeURIComponent(t)];
1471
- u.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), u.isString(r) && i.push("path=" + r), u.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
922
+ write(t, e, n, r, s, o) {
923
+ const i = [t + "=" + encodeURIComponent(e)];
924
+ c.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), c.isString(r) && i.push("path=" + r), c.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
1472
925
  },
1473
- read(e) {
1474
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1475
- return t ? decodeURIComponent(t[3]) : null;
926
+ read(t) {
927
+ const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
928
+ return e ? decodeURIComponent(e[3]) : null;
1476
929
  },
1477
- remove(e) {
1478
- this.write(e, "", Date.now() - 864e5);
930
+ remove(t) {
931
+ this.write(t, "", Date.now() - 864e5);
1479
932
  }
1480
933
  }
1481
934
  ) : (
@@ -1490,46 +943,46 @@ const ye = (e, t, n = 3) => {
1490
943
  }
1491
944
  }
1492
945
  );
1493
- function os(e) {
1494
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
946
+ function qn(t) {
947
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
1495
948
  }
1496
- function is(e, t) {
1497
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
949
+ function Mn(t, e) {
950
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1498
951
  }
1499
- function Yt(e, t, n) {
1500
- let r = !os(t);
1501
- return e && (r || n == !1) ? is(e, t) : t;
952
+ function ot(t, e, n) {
953
+ let r = !qn(e);
954
+ return t && (r || n == !1) ? Mn(t, e) : e;
1502
955
  }
1503
- const dt = (e) => e instanceof P ? { ...e } : e;
1504
- function H(e, t) {
1505
- t = t || {};
956
+ const Ue = (t) => t instanceof x ? { ...t } : t;
957
+ function F(t, e) {
958
+ e = e || {};
1506
959
  const n = {};
1507
- function r(c, f, d, m) {
1508
- return u.isPlainObject(c) && u.isPlainObject(f) ? u.merge.call({ caseless: m }, c, f) : u.isPlainObject(f) ? u.merge({}, f) : u.isArray(f) ? f.slice() : f;
1509
- }
1510
- function s(c, f, d, m) {
1511
- if (u.isUndefined(f)) {
1512
- if (!u.isUndefined(c))
1513
- return r(void 0, c, d, m);
1514
- } else return r(c, f, d, m);
1515
- }
1516
- function o(c, f) {
1517
- if (!u.isUndefined(f))
1518
- return r(void 0, f);
1519
- }
1520
- function i(c, f) {
1521
- if (u.isUndefined(f)) {
1522
- if (!u.isUndefined(c))
1523
- return r(void 0, c);
1524
- } else return r(void 0, f);
1525
- }
1526
- function a(c, f, d) {
1527
- if (d in t)
1528
- return r(c, f);
960
+ function r(l, u, d, g) {
961
+ return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: g }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
962
+ }
963
+ function s(l, u, d, g) {
964
+ if (c.isUndefined(u)) {
965
+ if (!c.isUndefined(l))
966
+ return r(void 0, l, d, g);
967
+ } else return r(l, u, d, g);
968
+ }
969
+ function o(l, u) {
970
+ if (!c.isUndefined(u))
971
+ return r(void 0, u);
972
+ }
973
+ function i(l, u) {
974
+ if (c.isUndefined(u)) {
975
+ if (!c.isUndefined(l))
976
+ return r(void 0, l);
977
+ } else return r(void 0, u);
978
+ }
979
+ function a(l, u, d) {
1529
980
  if (d in e)
1530
- return r(void 0, c);
981
+ return r(l, u);
982
+ if (d in t)
983
+ return r(void 0, l);
1531
984
  }
1532
- const l = {
985
+ const f = {
1533
986
  url: o,
1534
987
  method: o,
1535
988
  data: o,
@@ -1558,420 +1011,420 @@ function H(e, t) {
1558
1011
  socketPath: i,
1559
1012
  responseEncoding: i,
1560
1013
  validateStatus: a,
1561
- headers: (c, f, d) => s(dt(c), dt(f), d, !0)
1014
+ headers: (l, u, d) => s(Ue(l), Ue(u), d, !0)
1562
1015
  };
1563
- return u.forEach(Object.keys({ ...e, ...t }), function(f) {
1564
- const d = l[f] || s, m = d(e[f], t[f], f);
1565
- u.isUndefined(m) && d !== a || (n[f] = m);
1016
+ return c.forEach(Object.keys({ ...t, ...e }), function(u) {
1017
+ const d = f[u] || s, g = d(t[u], e[u], u);
1018
+ c.isUndefined(g) && d !== a || (n[u] = g);
1566
1019
  }), n;
1567
1020
  }
1568
- const Gt = (e) => {
1569
- const t = H({}, e);
1570
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
1571
- t.headers = i = P.from(i), t.url = Wt(Yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1021
+ const it = (t) => {
1022
+ const e = F({}, t);
1023
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = e;
1024
+ e.headers = i = x.from(i), e.url = et(ot(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && i.set(
1572
1025
  "Authorization",
1573
1026
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1574
1027
  );
1575
- let l;
1576
- if (u.isFormData(n)) {
1028
+ let f;
1029
+ if (c.isFormData(n)) {
1577
1030
  if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1578
1031
  i.setContentType(void 0);
1579
- else if ((l = i.getContentType()) !== !1) {
1580
- const [c, ...f] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
1581
- i.setContentType([c || "multipart/form-data", ...f].join("; "));
1032
+ else if ((f = i.getContentType()) !== !1) {
1033
+ const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1034
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
1582
1035
  }
1583
1036
  }
1584
- if (O.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(t)), r || r !== !1 && rs(t.url))) {
1585
- const c = s && o && ss.read(o);
1586
- c && i.set(s, c);
1037
+ if (O.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && Bn(e.url))) {
1038
+ const l = s && o && vn.read(o);
1039
+ l && i.set(s, l);
1587
1040
  }
1588
- return t;
1589
- }, as = typeof XMLHttpRequest < "u", cs = as && function(e) {
1041
+ return e;
1042
+ }, In = typeof XMLHttpRequest < "u", Hn = In && function(t) {
1590
1043
  return new Promise(function(n, r) {
1591
- const s = Gt(e);
1044
+ const s = it(t);
1592
1045
  let o = s.data;
1593
- const i = P.from(s.headers).normalize();
1594
- let { responseType: a, onUploadProgress: l, onDownloadProgress: c } = s, f, d, m, b, h;
1595
- function g() {
1596
- b && b(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
1046
+ const i = x.from(s.headers).normalize();
1047
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, d, g, b, p;
1048
+ function m() {
1049
+ b && b(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1597
1050
  }
1598
- let p = new XMLHttpRequest();
1599
- p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1600
- function y() {
1601
- if (!p)
1051
+ let h = new XMLHttpRequest();
1052
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1053
+ function w() {
1054
+ if (!h)
1602
1055
  return;
1603
- const R = P.from(
1604
- "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1056
+ const E = x.from(
1057
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1605
1058
  ), T = {
1606
- data: !a || a === "text" || a === "json" ? p.responseText : p.response,
1607
- status: p.status,
1608
- statusText: p.statusText,
1609
- headers: R,
1610
- config: e,
1611
- request: p
1059
+ data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1060
+ status: h.status,
1061
+ statusText: h.statusText,
1062
+ headers: E,
1063
+ config: t,
1064
+ request: h
1612
1065
  };
1613
- Xt(function(M) {
1614
- n(M), g();
1615
- }, function(M) {
1616
- r(M), g();
1617
- }, T), p = null;
1066
+ st(function(U) {
1067
+ n(U), m();
1068
+ }, function(U) {
1069
+ r(U), m();
1070
+ }, T), h = null;
1618
1071
  }
1619
- "onloadend" in p ? p.onloadend = y : p.onreadystatechange = function() {
1620
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(y);
1621
- }, p.onabort = function() {
1622
- p && (r(new w("Request aborted", w.ECONNABORTED, e, p)), p = null);
1623
- }, p.onerror = function() {
1624
- r(new w("Network Error", w.ERR_NETWORK, e, p)), p = null;
1625
- }, p.ontimeout = function() {
1626
- let L = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1627
- const T = s.transitional || zt;
1628
- s.timeoutErrorMessage && (L = s.timeoutErrorMessage), r(new w(
1629
- L,
1630
- T.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1631
- e,
1632
- p
1633
- )), p = null;
1634
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && u.forEach(i.toJSON(), function(L, T) {
1635
- p.setRequestHeader(T, L);
1636
- }), u.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), a && a !== "json" && (p.responseType = s.responseType), c && ([m, h] = ye(c, !0), p.addEventListener("progress", m)), l && p.upload && ([d, b] = ye(l), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (f = (R) => {
1637
- p && (r(!R || R.type ? new V(null, e, p) : R), p.abort(), p = null);
1638
- }, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
1639
- const S = es(s.url);
1640
- if (S && O.protocols.indexOf(S) === -1) {
1641
- r(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, e));
1072
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1073
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1074
+ }, h.onabort = function() {
1075
+ h && (r(new y("Request aborted", y.ECONNABORTED, t, h)), h = null);
1076
+ }, h.onerror = function() {
1077
+ r(new y("Network Error", y.ERR_NETWORK, t, h)), h = null;
1078
+ }, h.ontimeout = function() {
1079
+ let _ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1080
+ const T = s.transitional || tt;
1081
+ s.timeoutErrorMessage && (_ = s.timeoutErrorMessage), r(new y(
1082
+ _,
1083
+ T.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1084
+ t,
1085
+ h
1086
+ )), h = null;
1087
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(_, T) {
1088
+ h.setRequestHeader(T, _);
1089
+ }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), l && ([g, p] = Y(l, !0), h.addEventListener("progress", g)), f && h.upload && ([d, b] = Y(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (E) => {
1090
+ h && (r(!E || E.type ? new B(null, t, h) : E), h.abort(), h = null);
1091
+ }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1092
+ const R = Nn(s.url);
1093
+ if (R && O.protocols.indexOf(R) === -1) {
1094
+ r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, t));
1642
1095
  return;
1643
1096
  }
1644
- p.send(o || null);
1097
+ h.send(o || null);
1645
1098
  });
1646
- }, ls = (e, t) => {
1647
- const { length: n } = e = e ? e.filter(Boolean) : [];
1648
- if (t || n) {
1099
+ }, Jn = (t, e) => {
1100
+ const { length: n } = t = t ? t.filter(Boolean) : [];
1101
+ if (e || n) {
1649
1102
  let r = new AbortController(), s;
1650
- const o = function(c) {
1103
+ const o = function(l) {
1651
1104
  if (!s) {
1652
1105
  s = !0, a();
1653
- const f = c instanceof Error ? c : this.reason;
1654
- r.abort(f instanceof w ? f : new V(f instanceof Error ? f.message : f));
1106
+ const u = l instanceof Error ? l : this.reason;
1107
+ r.abort(u instanceof y ? u : new B(u instanceof Error ? u.message : u));
1655
1108
  }
1656
1109
  };
1657
- let i = t && setTimeout(() => {
1658
- i = null, o(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
1659
- }, t);
1110
+ let i = e && setTimeout(() => {
1111
+ i = null, o(new y(`timeout ${e} of ms exceeded`, y.ETIMEDOUT));
1112
+ }, e);
1660
1113
  const a = () => {
1661
- e && (i && clearTimeout(i), i = null, e.forEach((c) => {
1662
- c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
1663
- }), e = null);
1114
+ t && (i && clearTimeout(i), i = null, t.forEach((l) => {
1115
+ l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
1116
+ }), t = null);
1664
1117
  };
1665
- e.forEach((c) => c.addEventListener("abort", o));
1666
- const { signal: l } = r;
1667
- return l.unsubscribe = () => u.asap(a), l;
1668
- }
1669
- }, us = function* (e, t) {
1670
- let n = e.byteLength;
1671
- if (n < t) {
1672
- yield e;
1118
+ t.forEach((l) => l.addEventListener("abort", o));
1119
+ const { signal: f } = r;
1120
+ return f.unsubscribe = () => c.asap(a), f;
1121
+ }
1122
+ }, $n = function* (t, e) {
1123
+ let n = t.byteLength;
1124
+ if (n < e) {
1125
+ yield t;
1673
1126
  return;
1674
1127
  }
1675
1128
  let r = 0, s;
1676
1129
  for (; r < n; )
1677
- s = r + t, yield e.slice(r, s), r = s;
1678
- }, fs = async function* (e, t) {
1679
- for await (const n of ds(e))
1680
- yield* us(n, t);
1681
- }, ds = async function* (e) {
1682
- if (e[Symbol.asyncIterator]) {
1683
- yield* e;
1130
+ s = r + e, yield t.slice(r, s), r = s;
1131
+ }, zn = async function* (t, e) {
1132
+ for await (const n of Wn(t))
1133
+ yield* $n(n, e);
1134
+ }, Wn = async function* (t) {
1135
+ if (t[Symbol.asyncIterator]) {
1136
+ yield* t;
1684
1137
  return;
1685
1138
  }
1686
- const t = e.getReader();
1139
+ const e = t.getReader();
1687
1140
  try {
1688
1141
  for (; ; ) {
1689
- const { done: n, value: r } = await t.read();
1142
+ const { done: n, value: r } = await e.read();
1690
1143
  if (n)
1691
1144
  break;
1692
1145
  yield r;
1693
1146
  }
1694
1147
  } finally {
1695
- await t.cancel();
1148
+ await e.cancel();
1696
1149
  }
1697
- }, ht = (e, t, n, r) => {
1698
- const s = fs(e, t);
1699
- let o = 0, i, a = (l) => {
1700
- i || (i = !0, r && r(l));
1150
+ }, je = (t, e, n, r) => {
1151
+ const s = zn(t, e);
1152
+ let o = 0, i, a = (f) => {
1153
+ i || (i = !0, r && r(f));
1701
1154
  };
1702
1155
  return new ReadableStream({
1703
- async pull(l) {
1156
+ async pull(f) {
1704
1157
  try {
1705
- const { done: c, value: f } = await s.next();
1706
- if (c) {
1707
- a(), l.close();
1158
+ const { done: l, value: u } = await s.next();
1159
+ if (l) {
1160
+ a(), f.close();
1708
1161
  return;
1709
1162
  }
1710
- let d = f.byteLength;
1163
+ let d = u.byteLength;
1711
1164
  if (n) {
1712
- let m = o += d;
1713
- n(m);
1165
+ let g = o += d;
1166
+ n(g);
1714
1167
  }
1715
- l.enqueue(new Uint8Array(f));
1716
- } catch (c) {
1717
- throw a(c), c;
1168
+ f.enqueue(new Uint8Array(u));
1169
+ } catch (l) {
1170
+ throw a(l), l;
1718
1171
  }
1719
1172
  },
1720
- cancel(l) {
1721
- return a(l), s.return();
1173
+ cancel(f) {
1174
+ return a(f), s.return();
1722
1175
  }
1723
1176
  }, {
1724
1177
  highWaterMark: 2
1725
1178
  });
1726
- }, Oe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qt = Oe && typeof ReadableStream == "function", hs = Oe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Zt = (e, ...t) => {
1179
+ }, se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", at = se && typeof ReadableStream == "function", Vn = se && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), ct = (t, ...e) => {
1727
1180
  try {
1728
- return !!e(...t);
1181
+ return !!t(...e);
1729
1182
  } catch {
1730
1183
  return !1;
1731
1184
  }
1732
- }, ps = Qt && Zt(() => {
1733
- let e = !1;
1734
- const t = new Request(O.origin, {
1185
+ }, Kn = at && ct(() => {
1186
+ let t = !1;
1187
+ const e = new Request(O.origin, {
1735
1188
  body: new ReadableStream(),
1736
1189
  method: "POST",
1737
1190
  get duplex() {
1738
- return e = !0, "half";
1191
+ return t = !0, "half";
1739
1192
  }
1740
1193
  }).headers.has("Content-Type");
1741
- return e && !t;
1742
- }), pt = 64 * 1024, Je = Qt && Zt(() => u.isReadableStream(new Response("").body)), be = {
1743
- stream: Je && ((e) => e.body)
1194
+ return t && !e;
1195
+ }), Ne = 64 * 1024, me = at && ct(() => c.isReadableStream(new Response("").body)), Z = {
1196
+ stream: me && ((t) => t.body)
1744
1197
  };
1745
- Oe && ((e) => {
1746
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1747
- !be[t] && (be[t] = u.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1748
- throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, r);
1198
+ se && ((t) => {
1199
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1200
+ !Z[e] && (Z[e] = c.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1201
+ throw new y(`Response type '${e}' is not supported`, y.ERR_NOT_SUPPORT, r);
1749
1202
  });
1750
1203
  });
1751
1204
  })(new Response());
1752
- const ms = async (e) => {
1753
- if (e == null)
1205
+ const Xn = async (t) => {
1206
+ if (t == null)
1754
1207
  return 0;
1755
- if (u.isBlob(e))
1756
- return e.size;
1757
- if (u.isSpecCompliantForm(e))
1208
+ if (c.isBlob(t))
1209
+ return t.size;
1210
+ if (c.isSpecCompliantForm(t))
1758
1211
  return (await new Request(O.origin, {
1759
1212
  method: "POST",
1760
- body: e
1213
+ body: t
1761
1214
  }).arrayBuffer()).byteLength;
1762
- if (u.isArrayBufferView(e) || u.isArrayBuffer(e))
1763
- return e.byteLength;
1764
- if (u.isURLSearchParams(e) && (e = e + ""), u.isString(e))
1765
- return (await hs(e)).byteLength;
1766
- }, gs = async (e, t) => {
1767
- const n = u.toFiniteNumber(e.getContentLength());
1768
- return n ?? ms(t);
1769
- }, ws = Oe && (async (e) => {
1215
+ if (c.isArrayBufferView(t) || c.isArrayBuffer(t))
1216
+ return t.byteLength;
1217
+ if (c.isURLSearchParams(t) && (t = t + ""), c.isString(t))
1218
+ return (await Vn(t)).byteLength;
1219
+ }, Gn = async (t, e) => {
1220
+ const n = c.toFiniteNumber(t.getContentLength());
1221
+ return n ?? Xn(e);
1222
+ }, Qn = se && (async (t) => {
1770
1223
  let {
1771
- url: t,
1224
+ url: e,
1772
1225
  method: n,
1773
1226
  data: r,
1774
1227
  signal: s,
1775
1228
  cancelToken: o,
1776
1229
  timeout: i,
1777
1230
  onDownloadProgress: a,
1778
- onUploadProgress: l,
1779
- responseType: c,
1780
- headers: f,
1231
+ onUploadProgress: f,
1232
+ responseType: l,
1233
+ headers: u,
1781
1234
  withCredentials: d = "same-origin",
1782
- fetchOptions: m
1783
- } = Gt(e);
1784
- c = c ? (c + "").toLowerCase() : "text";
1785
- let b = ls([s, o && o.toAbortSignal()], i), h;
1786
- const g = b && b.unsubscribe && (() => {
1235
+ fetchOptions: g
1236
+ } = it(t);
1237
+ l = l ? (l + "").toLowerCase() : "text";
1238
+ let b = Jn([s, o && o.toAbortSignal()], i), p;
1239
+ const m = b && b.unsubscribe && (() => {
1787
1240
  b.unsubscribe();
1788
1241
  });
1789
- let p;
1242
+ let h;
1790
1243
  try {
1791
- if (l && ps && n !== "get" && n !== "head" && (p = await gs(f, r)) !== 0) {
1792
- let T = new Request(t, {
1244
+ if (f && Kn && n !== "get" && n !== "head" && (h = await Gn(u, r)) !== 0) {
1245
+ let T = new Request(e, {
1793
1246
  method: "POST",
1794
1247
  body: r,
1795
1248
  duplex: "half"
1796
- }), F;
1797
- if (u.isFormData(r) && (F = T.headers.get("content-type")) && f.setContentType(F), T.body) {
1798
- const [M, le] = ut(
1799
- p,
1800
- ye(ft(l))
1249
+ }), k;
1250
+ if (c.isFormData(r) && (k = T.headers.get("content-type")) && u.setContentType(k), T.body) {
1251
+ const [U, V] = Le(
1252
+ h,
1253
+ Y(ke(f))
1801
1254
  );
1802
- r = ht(T.body, pt, M, le);
1255
+ r = je(T.body, Ne, U, V);
1803
1256
  }
1804
1257
  }
1805
- u.isString(d) || (d = d ? "include" : "omit");
1806
- const y = "credentials" in Request.prototype;
1807
- h = new Request(t, {
1808
- ...m,
1258
+ c.isString(d) || (d = d ? "include" : "omit");
1259
+ const w = "credentials" in Request.prototype;
1260
+ p = new Request(e, {
1261
+ ...g,
1809
1262
  signal: b,
1810
1263
  method: n.toUpperCase(),
1811
- headers: f.normalize().toJSON(),
1264
+ headers: u.normalize().toJSON(),
1812
1265
  body: r,
1813
1266
  duplex: "half",
1814
- credentials: y ? d : void 0
1267
+ credentials: w ? d : void 0
1815
1268
  });
1816
- let S = await fetch(h, m);
1817
- const R = Je && (c === "stream" || c === "response");
1818
- if (Je && (a || R && g)) {
1269
+ let R = await fetch(p, g);
1270
+ const E = me && (l === "stream" || l === "response");
1271
+ if (me && (a || E && m)) {
1819
1272
  const T = {};
1820
- ["status", "statusText", "headers"].forEach((rt) => {
1821
- T[rt] = S[rt];
1273
+ ["status", "statusText", "headers"].forEach((Te) => {
1274
+ T[Te] = R[Te];
1822
1275
  });
1823
- const F = u.toFiniteNumber(S.headers.get("content-length")), [M, le] = a && ut(
1824
- F,
1825
- ye(ft(a), !0)
1276
+ const k = c.toFiniteNumber(R.headers.get("content-length")), [U, V] = a && Le(
1277
+ k,
1278
+ Y(ke(a), !0)
1826
1279
  ) || [];
1827
- S = new Response(
1828
- ht(S.body, pt, M, () => {
1829
- le && le(), g && g();
1280
+ R = new Response(
1281
+ je(R.body, Ne, U, () => {
1282
+ V && V(), m && m();
1830
1283
  }),
1831
1284
  T
1832
1285
  );
1833
1286
  }
1834
- c = c || "text";
1835
- let L = await be[u.findKey(be, c) || "text"](S, e);
1836
- return !R && g && g(), await new Promise((T, F) => {
1837
- Xt(T, F, {
1838
- data: L,
1839
- headers: P.from(S.headers),
1840
- status: S.status,
1841
- statusText: S.statusText,
1842
- config: e,
1843
- request: h
1287
+ l = l || "text";
1288
+ let _ = await Z[c.findKey(Z, l) || "text"](R, t);
1289
+ return !E && m && m(), await new Promise((T, k) => {
1290
+ st(T, k, {
1291
+ data: _,
1292
+ headers: x.from(R.headers),
1293
+ status: R.status,
1294
+ statusText: R.statusText,
1295
+ config: t,
1296
+ request: p
1844
1297
  });
1845
1298
  });
1846
- } catch (y) {
1847
- throw g && g(), y && y.name === "TypeError" && /Load failed|fetch/i.test(y.message) ? Object.assign(
1848
- new w("Network Error", w.ERR_NETWORK, e, h),
1299
+ } catch (w) {
1300
+ throw m && m(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1301
+ new y("Network Error", y.ERR_NETWORK, t, p),
1849
1302
  {
1850
- cause: y.cause || y
1303
+ cause: w.cause || w
1851
1304
  }
1852
- ) : w.from(y, y && y.code, e, h);
1305
+ ) : y.from(w, w && w.code, t, p);
1853
1306
  }
1854
- }), We = {
1855
- http: vr,
1856
- xhr: cs,
1857
- fetch: ws
1307
+ }), ye = {
1308
+ http: dn,
1309
+ xhr: Hn,
1310
+ fetch: Qn
1858
1311
  };
1859
- u.forEach(We, (e, t) => {
1860
- if (e) {
1312
+ c.forEach(ye, (t, e) => {
1313
+ if (t) {
1861
1314
  try {
1862
- Object.defineProperty(e, "name", { value: t });
1315
+ Object.defineProperty(t, "name", { value: e });
1863
1316
  } catch {
1864
1317
  }
1865
- Object.defineProperty(e, "adapterName", { value: t });
1318
+ Object.defineProperty(t, "adapterName", { value: e });
1866
1319
  }
1867
1320
  });
1868
- const mt = (e) => `- ${e}`, ys = (e) => u.isFunction(e) || e === null || e === !1, en = {
1869
- getAdapter: (e) => {
1870
- e = u.isArray(e) ? e : [e];
1871
- const { length: t } = e;
1321
+ const Fe = (t) => `- ${t}`, Yn = (t) => c.isFunction(t) || t === null || t === !1, lt = {
1322
+ getAdapter: (t) => {
1323
+ t = c.isArray(t) ? t : [t];
1324
+ const { length: e } = t;
1872
1325
  let n, r;
1873
1326
  const s = {};
1874
- for (let o = 0; o < t; o++) {
1875
- n = e[o];
1327
+ for (let o = 0; o < e; o++) {
1328
+ n = t[o];
1876
1329
  let i;
1877
- if (r = n, !ys(n) && (r = We[(i = String(n)).toLowerCase()], r === void 0))
1878
- throw new w(`Unknown adapter '${i}'`);
1330
+ if (r = n, !Yn(n) && (r = ye[(i = String(n)).toLowerCase()], r === void 0))
1331
+ throw new y(`Unknown adapter '${i}'`);
1879
1332
  if (r)
1880
1333
  break;
1881
1334
  s[i || "#" + o] = r;
1882
1335
  }
1883
1336
  if (!r) {
1884
1337
  const o = Object.entries(s).map(
1885
- ([a, l]) => `adapter ${a} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1338
+ ([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1886
1339
  );
1887
- let i = t ? o.length > 1 ? `since :
1888
- ` + o.map(mt).join(`
1889
- `) : " " + mt(o[0]) : "as no adapter specified";
1890
- throw new w(
1340
+ let i = e ? o.length > 1 ? `since :
1341
+ ` + o.map(Fe).join(`
1342
+ `) : " " + Fe(o[0]) : "as no adapter specified";
1343
+ throw new y(
1891
1344
  "There is no suitable adapter to dispatch the request " + i,
1892
1345
  "ERR_NOT_SUPPORT"
1893
1346
  );
1894
1347
  }
1895
1348
  return r;
1896
1349
  },
1897
- adapters: We
1350
+ adapters: ye
1898
1351
  };
1899
- function Ne(e) {
1900
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1901
- throw new V(null, e);
1902
- }
1903
- function gt(e) {
1904
- return Ne(e), e.headers = P.from(e.headers), e.data = ve.call(
1905
- e,
1906
- e.transformRequest
1907
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || ce.adapter)(e).then(function(r) {
1908
- return Ne(e), r.data = ve.call(
1909
- e,
1910
- e.transformResponse,
1352
+ function ue(t) {
1353
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1354
+ throw new B(null, t);
1355
+ }
1356
+ function De(t) {
1357
+ return ue(t), t.headers = x.from(t.headers), t.data = le.call(
1358
+ t,
1359
+ t.transformRequest
1360
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), lt.getAdapter(t.adapter || W.adapter)(t).then(function(r) {
1361
+ return ue(t), r.data = le.call(
1362
+ t,
1363
+ t.transformResponse,
1911
1364
  r
1912
- ), r.headers = P.from(r.headers), r;
1365
+ ), r.headers = x.from(r.headers), r;
1913
1366
  }, function(r) {
1914
- return Vt(r) || (Ne(e), r && r.response && (r.response.data = ve.call(
1915
- e,
1916
- e.transformResponse,
1367
+ return rt(r) || (ue(t), r && r.response && (r.response.data = le.call(
1368
+ t,
1369
+ t.transformResponse,
1917
1370
  r.response
1918
- ), r.response.headers = P.from(r.response.headers))), Promise.reject(r);
1371
+ ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1919
1372
  });
1920
1373
  }
1921
- const tn = "1.11.0", Te = {};
1922
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1923
- Te[e] = function(r) {
1924
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1374
+ const ut = "1.11.0", oe = {};
1375
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1376
+ oe[t] = function(r) {
1377
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1925
1378
  };
1926
1379
  });
1927
- const wt = {};
1928
- Te.transitional = function(t, n, r) {
1380
+ const Be = {};
1381
+ oe.transitional = function(e, n, r) {
1929
1382
  function s(o, i) {
1930
- return "[Axios v" + tn + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1383
+ return "[Axios v" + ut + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1931
1384
  }
1932
1385
  return (o, i, a) => {
1933
- if (t === !1)
1934
- throw new w(
1386
+ if (e === !1)
1387
+ throw new y(
1935
1388
  s(i, " has been removed" + (n ? " in " + n : "")),
1936
- w.ERR_DEPRECATED
1389
+ y.ERR_DEPRECATED
1937
1390
  );
1938
- return n && !wt[i] && (wt[i] = !0, console.warn(
1391
+ return n && !Be[i] && (Be[i] = !0, console.warn(
1939
1392
  s(
1940
1393
  i,
1941
1394
  " has been deprecated since v" + n + " and will be removed in the near future"
1942
1395
  )
1943
- )), t ? t(o, i, a) : !0;
1396
+ )), e ? e(o, i, a) : !0;
1944
1397
  };
1945
1398
  };
1946
- Te.spelling = function(t) {
1947
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1399
+ oe.spelling = function(e) {
1400
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
1948
1401
  };
1949
- function bs(e, t, n) {
1950
- if (typeof e != "object")
1951
- throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1952
- const r = Object.keys(e);
1402
+ function Zn(t, e, n) {
1403
+ if (typeof t != "object")
1404
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1405
+ const r = Object.keys(t);
1953
1406
  let s = r.length;
1954
1407
  for (; s-- > 0; ) {
1955
- const o = r[s], i = t[o];
1408
+ const o = r[s], i = e[o];
1956
1409
  if (i) {
1957
- const a = e[o], l = a === void 0 || i(a, o, e);
1958
- if (l !== !0)
1959
- throw new w("option " + o + " must be " + l, w.ERR_BAD_OPTION_VALUE);
1410
+ const a = t[o], f = a === void 0 || i(a, o, t);
1411
+ if (f !== !0)
1412
+ throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE);
1960
1413
  continue;
1961
1414
  }
1962
1415
  if (n !== !0)
1963
- throw new w("Unknown option " + o, w.ERR_BAD_OPTION);
1964
- }
1965
- }
1966
- const ge = {
1967
- assertOptions: bs,
1968
- validators: Te
1969
- }, N = ge.validators;
1970
- let q = class {
1971
- constructor(t) {
1972
- this.defaults = t || {}, this.interceptors = {
1973
- request: new ct(),
1974
- response: new ct()
1416
+ throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
1417
+ }
1418
+ }
1419
+ const Q = {
1420
+ assertOptions: Zn,
1421
+ validators: oe
1422
+ }, L = Q.validators;
1423
+ let N = class {
1424
+ constructor(e) {
1425
+ this.defaults = e || {}, this.interceptors = {
1426
+ request: new _e(),
1427
+ response: new _e()
1975
1428
  };
1976
1429
  }
1977
1430
  /**
@@ -1982,9 +1435,9 @@ let q = class {
1982
1435
  *
1983
1436
  * @returns {Promise} The Promise to be fulfilled
1984
1437
  */
1985
- async request(t, n) {
1438
+ async request(e, n) {
1986
1439
  try {
1987
- return await this._request(t, n);
1440
+ return await this._request(e, n);
1988
1441
  } catch (r) {
1989
1442
  if (r instanceof Error) {
1990
1443
  let s = {};
@@ -1999,88 +1452,88 @@ let q = class {
1999
1452
  throw r;
2000
1453
  }
2001
1454
  }
2002
- _request(t, n) {
2003
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = H(this.defaults, n);
1455
+ _request(e, n) {
1456
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = F(this.defaults, n);
2004
1457
  const { transitional: r, paramsSerializer: s, headers: o } = n;
2005
- r !== void 0 && ge.assertOptions(r, {
2006
- silentJSONParsing: N.transitional(N.boolean),
2007
- forcedJSONParsing: N.transitional(N.boolean),
2008
- clarifyTimeoutError: N.transitional(N.boolean)
2009
- }, !1), s != null && (u.isFunction(s) ? n.paramsSerializer = {
1458
+ r !== void 0 && Q.assertOptions(r, {
1459
+ silentJSONParsing: L.transitional(L.boolean),
1460
+ forcedJSONParsing: L.transitional(L.boolean),
1461
+ clarifyTimeoutError: L.transitional(L.boolean)
1462
+ }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
2010
1463
  serialize: s
2011
- } : ge.assertOptions(s, {
2012
- encode: N.function,
2013
- serialize: N.function
2014
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ge.assertOptions(n, {
2015
- baseUrl: N.spelling("baseURL"),
2016
- withXsrfToken: N.spelling("withXSRFToken")
1464
+ } : Q.assertOptions(s, {
1465
+ encode: L.function,
1466
+ serialize: L.function
1467
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Q.assertOptions(n, {
1468
+ baseUrl: L.spelling("baseURL"),
1469
+ withXsrfToken: L.spelling("withXSRFToken")
2017
1470
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2018
- let i = o && u.merge(
1471
+ let i = o && c.merge(
2019
1472
  o.common,
2020
1473
  o[n.method]
2021
1474
  );
2022
- o && u.forEach(
1475
+ o && c.forEach(
2023
1476
  ["delete", "get", "head", "post", "put", "patch", "common"],
2024
- (h) => {
2025
- delete o[h];
1477
+ (p) => {
1478
+ delete o[p];
2026
1479
  }
2027
- ), n.headers = P.concat(i, o);
1480
+ ), n.headers = x.concat(i, o);
2028
1481
  const a = [];
2029
- let l = !0;
2030
- this.interceptors.request.forEach(function(g) {
2031
- typeof g.runWhen == "function" && g.runWhen(n) === !1 || (l = l && g.synchronous, a.unshift(g.fulfilled, g.rejected));
1482
+ let f = !0;
1483
+ this.interceptors.request.forEach(function(m) {
1484
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, a.unshift(m.fulfilled, m.rejected));
2032
1485
  });
2033
- const c = [];
2034
- this.interceptors.response.forEach(function(g) {
2035
- c.push(g.fulfilled, g.rejected);
1486
+ const l = [];
1487
+ this.interceptors.response.forEach(function(m) {
1488
+ l.push(m.fulfilled, m.rejected);
2036
1489
  });
2037
- let f, d = 0, m;
2038
- if (!l) {
2039
- const h = [gt.bind(this), void 0];
2040
- for (h.unshift(...a), h.push(...c), m = h.length, f = Promise.resolve(n); d < m; )
2041
- f = f.then(h[d++], h[d++]);
2042
- return f;
1490
+ let u, d = 0, g;
1491
+ if (!f) {
1492
+ const p = [De.bind(this), void 0];
1493
+ for (p.unshift(...a), p.push(...l), g = p.length, u = Promise.resolve(n); d < g; )
1494
+ u = u.then(p[d++], p[d++]);
1495
+ return u;
2043
1496
  }
2044
- m = a.length;
1497
+ g = a.length;
2045
1498
  let b = n;
2046
- for (d = 0; d < m; ) {
2047
- const h = a[d++], g = a[d++];
1499
+ for (d = 0; d < g; ) {
1500
+ const p = a[d++], m = a[d++];
2048
1501
  try {
2049
- b = h(b);
2050
- } catch (p) {
2051
- g.call(this, p);
1502
+ b = p(b);
1503
+ } catch (h) {
1504
+ m.call(this, h);
2052
1505
  break;
2053
1506
  }
2054
1507
  }
2055
1508
  try {
2056
- f = gt.call(this, b);
2057
- } catch (h) {
2058
- return Promise.reject(h);
1509
+ u = De.call(this, b);
1510
+ } catch (p) {
1511
+ return Promise.reject(p);
2059
1512
  }
2060
- for (d = 0, m = c.length; d < m; )
2061
- f = f.then(c[d++], c[d++]);
2062
- return f;
1513
+ for (d = 0, g = l.length; d < g; )
1514
+ u = u.then(l[d++], l[d++]);
1515
+ return u;
2063
1516
  }
2064
- getUri(t) {
2065
- t = H(this.defaults, t);
2066
- const n = Yt(t.baseURL, t.url, t.allowAbsoluteUrls);
2067
- return Wt(n, t.params, t.paramsSerializer);
1517
+ getUri(e) {
1518
+ e = F(this.defaults, e);
1519
+ const n = ot(e.baseURL, e.url, e.allowAbsoluteUrls);
1520
+ return et(n, e.params, e.paramsSerializer);
2068
1521
  }
2069
1522
  };
2070
- u.forEach(["delete", "get", "head", "options"], function(t) {
2071
- q.prototype[t] = function(n, r) {
2072
- return this.request(H(r || {}, {
2073
- method: t,
1523
+ c.forEach(["delete", "get", "head", "options"], function(e) {
1524
+ N.prototype[e] = function(n, r) {
1525
+ return this.request(F(r || {}, {
1526
+ method: e,
2074
1527
  url: n,
2075
1528
  data: (r || {}).data
2076
1529
  }));
2077
1530
  };
2078
1531
  });
2079
- u.forEach(["post", "put", "patch"], function(t) {
1532
+ c.forEach(["post", "put", "patch"], function(e) {
2080
1533
  function n(r) {
2081
1534
  return function(o, i, a) {
2082
- return this.request(H(a || {}, {
2083
- method: t,
1535
+ return this.request(F(a || {}, {
1536
+ method: e,
2084
1537
  headers: r ? {
2085
1538
  "Content-Type": "multipart/form-data"
2086
1539
  } : {},
@@ -2089,11 +1542,11 @@ u.forEach(["post", "put", "patch"], function(t) {
2089
1542
  }));
2090
1543
  };
2091
1544
  }
2092
- q.prototype[t] = n(), q.prototype[t + "Form"] = n(!0);
1545
+ N.prototype[e] = n(), N.prototype[e + "Form"] = n(!0);
2093
1546
  });
2094
- let Rs = class nn {
2095
- constructor(t) {
2096
- if (typeof t != "function")
1547
+ let er = class ft {
1548
+ constructor(e) {
1549
+ if (typeof e != "function")
2097
1550
  throw new TypeError("executor must be a function.");
2098
1551
  let n;
2099
1552
  this.promise = new Promise(function(o) {
@@ -2114,8 +1567,8 @@ let Rs = class nn {
2114
1567
  return i.cancel = function() {
2115
1568
  r.unsubscribe(o);
2116
1569
  }, i;
2117
- }, t(function(o, i, a) {
2118
- r.reason || (r.reason = new V(o, i, a), n(r.reason));
1570
+ }, e(function(o, i, a) {
1571
+ r.reason || (r.reason = new B(o, i, a), n(r.reason));
2119
1572
  });
2120
1573
  }
2121
1574
  /**
@@ -2128,51 +1581,51 @@ let Rs = class nn {
2128
1581
  /**
2129
1582
  * Subscribe to the cancel signal
2130
1583
  */
2131
- subscribe(t) {
1584
+ subscribe(e) {
2132
1585
  if (this.reason) {
2133
- t(this.reason);
1586
+ e(this.reason);
2134
1587
  return;
2135
1588
  }
2136
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1589
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
2137
1590
  }
2138
1591
  /**
2139
1592
  * Unsubscribe from the cancel signal
2140
1593
  */
2141
- unsubscribe(t) {
1594
+ unsubscribe(e) {
2142
1595
  if (!this._listeners)
2143
1596
  return;
2144
- const n = this._listeners.indexOf(t);
1597
+ const n = this._listeners.indexOf(e);
2145
1598
  n !== -1 && this._listeners.splice(n, 1);
2146
1599
  }
2147
1600
  toAbortSignal() {
2148
- const t = new AbortController(), n = (r) => {
2149
- t.abort(r);
1601
+ const e = new AbortController(), n = (r) => {
1602
+ e.abort(r);
2150
1603
  };
2151
- return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1604
+ return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
2152
1605
  }
2153
1606
  /**
2154
1607
  * Returns an object that contains a new `CancelToken` and a function that, when called,
2155
1608
  * cancels the `CancelToken`.
2156
1609
  */
2157
1610
  static source() {
2158
- let t;
1611
+ let e;
2159
1612
  return {
2160
- token: new nn(function(s) {
2161
- t = s;
1613
+ token: new ft(function(s) {
1614
+ e = s;
2162
1615
  }),
2163
- cancel: t
1616
+ cancel: e
2164
1617
  };
2165
1618
  }
2166
1619
  };
2167
- function Es(e) {
1620
+ function tr(t) {
2168
1621
  return function(n) {
2169
- return e.apply(null, n);
1622
+ return t.apply(null, n);
2170
1623
  };
2171
1624
  }
2172
- function Ss(e) {
2173
- return u.isObject(e) && e.isAxiosError === !0;
1625
+ function nr(t) {
1626
+ return c.isObject(t) && t.isAxiosError === !0;
2174
1627
  }
2175
- const ze = {
1628
+ const ge = {
2176
1629
  Continue: 100,
2177
1630
  SwitchingProtocols: 101,
2178
1631
  Processing: 102,
@@ -2237,73 +1690,73 @@ const ze = {
2237
1690
  NotExtended: 510,
2238
1691
  NetworkAuthenticationRequired: 511
2239
1692
  };
2240
- Object.entries(ze).forEach(([e, t]) => {
2241
- ze[t] = e;
1693
+ Object.entries(ge).forEach(([t, e]) => {
1694
+ ge[e] = t;
2242
1695
  });
2243
- function rn(e) {
2244
- const t = new q(e), n = Nt(q.prototype.request, t);
2245
- return u.extend(n, q.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
2246
- return rn(H(e, s));
1696
+ function dt(t) {
1697
+ const e = new N(t), n = He(N.prototype.request, e);
1698
+ return c.extend(n, N.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1699
+ return dt(F(t, s));
2247
1700
  }, n;
2248
1701
  }
2249
- const _ = rn(ce);
2250
- _.Axios = q;
2251
- _.CanceledError = V;
2252
- _.CancelToken = Rs;
2253
- _.isCancel = Vt;
2254
- _.VERSION = tn;
2255
- _.toFormData = _e;
2256
- _.AxiosError = w;
2257
- _.Cancel = _.CanceledError;
2258
- _.all = function(t) {
2259
- return Promise.all(t);
1702
+ const S = dt(W);
1703
+ S.Axios = N;
1704
+ S.CanceledError = B;
1705
+ S.CancelToken = er;
1706
+ S.isCancel = rt;
1707
+ S.VERSION = ut;
1708
+ S.toFormData = re;
1709
+ S.AxiosError = y;
1710
+ S.Cancel = S.CanceledError;
1711
+ S.all = function(e) {
1712
+ return Promise.all(e);
2260
1713
  };
2261
- _.spread = Es;
2262
- _.isAxiosError = Ss;
2263
- _.mergeConfig = H;
2264
- _.AxiosHeaders = P;
2265
- _.formToJSON = (e) => Kt(u.isHTMLForm(e) ? new FormData(e) : e);
2266
- _.getAdapter = en.getAdapter;
2267
- _.HttpStatusCode = ze;
2268
- _.default = _;
1714
+ S.spread = tr;
1715
+ S.isAxiosError = nr;
1716
+ S.mergeConfig = F;
1717
+ S.AxiosHeaders = x;
1718
+ S.formToJSON = (t) => nt(c.isHTMLForm(t) ? new FormData(t) : t);
1719
+ S.getAdapter = lt.getAdapter;
1720
+ S.HttpStatusCode = ge;
1721
+ S.default = S;
2269
1722
  const {
2270
- Axios: no,
2271
- AxiosError: ro,
2272
- CanceledError: so,
2273
- isCancel: oo,
2274
- CancelToken: io,
2275
- VERSION: ao,
2276
- all: co,
2277
- Cancel: lo,
2278
- isAxiosError: uo,
2279
- spread: fo,
2280
- toFormData: ho,
2281
- AxiosHeaders: po,
2282
- HttpStatusCode: mo,
2283
- formToJSON: go,
2284
- getAdapter: wo,
2285
- mergeConfig: yo
2286
- } = _, _s = {
1723
+ Axios: Br,
1724
+ AxiosError: vr,
1725
+ CanceledError: qr,
1726
+ isCancel: Mr,
1727
+ CancelToken: Ir,
1728
+ VERSION: Hr,
1729
+ all: Jr,
1730
+ Cancel: $r,
1731
+ isAxiosError: zr,
1732
+ spread: Wr,
1733
+ toFormData: Vr,
1734
+ AxiosHeaders: Kr,
1735
+ HttpStatusCode: Xr,
1736
+ formToJSON: Gr,
1737
+ getAdapter: Qr,
1738
+ mergeConfig: Yr
1739
+ } = S, rr = {
2287
1740
  form: "application/x-www-form-urlencoded",
2288
1741
  json: "application/json",
2289
1742
  data: "multipart/form-data"
2290
- }, Os = ["put", "post", "patch"], yt = "Local-Request-Id", Ts = 100, As = 300;
2291
- let xs = class {
2292
- constructor(t = {}) {
2293
- j(this, "axios");
2294
- j(this, "settings");
2295
- j(this, "records", {});
2296
- j(this, "isLoading", !1);
2297
- j(this, "stopSkipWarn");
2298
- j(this, "showLoading");
2299
- j(this, "showError");
2300
- this.settings = Object.assign({ type: "form" }, t.settings || {});
2301
- const n = Ae(t, [
1743
+ }, sr = ["put", "post", "patch"], ve = "Local-Request-Id", or = 100, ir = 300;
1744
+ let ar = class {
1745
+ constructor(e = {}) {
1746
+ C(this, "axios");
1747
+ C(this, "settings");
1748
+ C(this, "records", {});
1749
+ C(this, "isLoading", !1);
1750
+ C(this, "stopSkipWarn");
1751
+ C(this, "showLoading");
1752
+ C(this, "showError");
1753
+ this.settings = Object.assign({ type: "form" }, e.settings || {});
1754
+ const n = ie(e, [
2302
1755
  "settings",
2303
1756
  "query"
2304
1757
  ]);
2305
- this.axios = _.create(
2306
- G(
1758
+ this.axios = S.create(
1759
+ q(
2307
1760
  {
2308
1761
  headers: {
2309
1762
  "Content-Type": "application/x-www-form-urlencoded"
@@ -2312,72 +1765,72 @@ let xs = class {
2312
1765
  },
2313
1766
  n
2314
1767
  )
2315
- ), this.setupSkipWarn(this.settings), this.showLoading = fn(this.openLoading.bind(this), Ts), this.showError = dn(this._showError.bind(this), As, {
1768
+ ), this.setupSkipWarn(this.settings), this.showLoading = bt(this.openLoading.bind(this), or), this.showError = Et(this._showError.bind(this), ir, {
2316
1769
  leading: !0,
2317
1770
  trailing: !1
2318
1771
  });
2319
1772
  }
2320
- setConfig(t = {}) {
2321
- this.settings = G(this.settings, t.settings || {});
2322
- const n = Ae(t, [
1773
+ setConfig(e = {}) {
1774
+ this.settings = q(this.settings, e.settings || {});
1775
+ const n = ie(e, [
2323
1776
  "settings",
2324
1777
  "query"
2325
1778
  ]);
2326
- this.axios.defaults = G(this.axios.defaults, n), this.setupSkipWarn(this.settings);
1779
+ this.axios.defaults = q(this.axios.defaults, n), this.setupSkipWarn(this.settings);
2327
1780
  }
2328
- cancel(t, n = "请求已取消") {
2329
- if (t) {
2330
- const r = this.records[t];
1781
+ cancel(e, n = "请求已取消") {
1782
+ if (e) {
1783
+ const r = this.records[e];
2331
1784
  if (!r) return;
2332
1785
  r.source.cancel(n);
2333
1786
  } else
2334
1787
  for (const r of Object.values(this.records))
2335
1788
  r.source.cancel(n);
2336
1789
  }
2337
- createHeaders(t, n, r) {
2338
- const s = n.injectHeaders ? typeof n.headers == "function" ? n.headers(t, r, n) : n.headers || {} : {}, o = {
2339
- "Content-Type": _s[n.type || "form"],
1790
+ createHeaders(e, n, r) {
1791
+ const s = n.injectHeaders ? typeof n.headers == "function" ? n.headers(e, r, n) : n.headers || {} : {}, o = {
1792
+ "Content-Type": rr[n.type || "form"],
2340
1793
  ...r.headers,
2341
1794
  ...s
2342
1795
  };
2343
- return n.skipWarn && (o[yt] = t), o;
1796
+ return n.skipWarn && (o[ve] = e), o;
2344
1797
  }
2345
- isJsonType(t) {
2346
- return Object.entries(t).some(([n, r]) => n.toLowerCase() === "content-type" && String(r).includes("application/json"));
1798
+ isJsonType(e) {
1799
+ return Object.entries(e).some(([n, r]) => n.toLowerCase() === "content-type" && String(r).includes("application/json"));
2347
1800
  }
2348
- toFormData(t, n = "data") {
2349
- if (t instanceof FormData || t instanceof URLSearchParams)
2350
- return t;
1801
+ toFormData(e, n = "data") {
1802
+ if (e instanceof FormData || e instanceof URLSearchParams)
1803
+ return e;
2351
1804
  const r = n === "data" ? new FormData() : new URLSearchParams();
2352
- return Object.entries(t).forEach(([s, o]) => {
1805
+ return Object.entries(e).forEach(([s, o]) => {
2353
1806
  r.append(s, o);
2354
1807
  }), r;
2355
1808
  }
2356
- createSendData(t, n, r, s, o = {}) {
2357
- const { type: i, skipWarn: a } = t, { name: l = "skipWarn" } = a || {};
2358
- let { data: c, params: f = {}, method: d = "get" } = n;
2359
- const m = s ? { [l]: !0 } : {};
2360
- return Os.includes(d.toLowerCase()) ? (c = Object.assign(c || {}, m), c = i !== "json" || !this.isJsonType(r) ? this.toFormData(c, i) : c, f = {
1809
+ createSendData(e, n, r, s, o = {}) {
1810
+ const { type: i, skipWarn: a } = e, { name: f = "skipWarn" } = a || {};
1811
+ let { data: l, params: u = {}, method: d = "get" } = n;
1812
+ const g = s ? { [f]: !0 } : {};
1813
+ return sr.includes(d.toLowerCase()) ? (l = Object.assign(l || {}, g), l = i !== "json" || !this.isJsonType(r) ? this.toFormData(l, i) : l, u = {
2361
1814
  ...o
2362
- }) : i === "form" ? f = {
2363
- ...c || {},
1815
+ }) : i === "form" ? u = {
1816
+ ...l || {},
2364
1817
  ...o,
2365
- ...m
2366
- } : (c && (i !== "json" || !this.isJsonType(r)) && (c = this.toFormData(c, i)), f = {
1818
+ ...g
1819
+ } : (l && (i !== "json" || !this.isJsonType(r)) && (l = this.toFormData(l, i)), u = {
2367
1820
  ...o,
2368
- ...m
1821
+ ...g
2369
1822
  }), {
2370
- data: c,
2371
- params: f
1823
+ data: l,
1824
+ params: u
2372
1825
  };
2373
1826
  }
2374
- createUrl(t) {
2375
- let { url: n, params: r } = t;
1827
+ createUrl(e) {
1828
+ let { url: n, params: r } = e;
2376
1829
  if (n) {
2377
- let s = hn(n) ? new URL(n).origin : "";
1830
+ let s = Rt(n) ? new URL(n).origin : "";
2378
1831
  const o = s ? n.replace(s, "") : n;
2379
1832
  try {
2380
- const i = pn(o, {
1833
+ const i = St(o, {
2381
1834
  encode: encodeURIComponent
2382
1835
  });
2383
1836
  return s + i(r || {});
@@ -2387,83 +1840,83 @@ let xs = class {
2387
1840
  }
2388
1841
  return n;
2389
1842
  }
2390
- openLoading(t) {
2391
- const { loading: n, showLoading: r } = t;
1843
+ openLoading(e) {
1844
+ const { loading: n, showLoading: r } = e;
2392
1845
  n && r && Object.keys(this.records).length > 0 && (this.isLoading = !0, r());
2393
1846
  }
2394
- closeLoading(t) {
2395
- const { loading: n, hideLoading: r } = t;
1847
+ closeLoading(e) {
1848
+ const { loading: n, hideLoading: r } = e;
2396
1849
  if (!n) return;
2397
1850
  this.isLoading = !1;
2398
1851
  const s = Object.keys(this.records);
2399
1852
  r && s.length === 0 && (this.isLoading = !1, r());
2400
1853
  }
2401
- _showError(t, n) {
2402
- const { failMessage: r, showError: s } = t;
1854
+ _showError(e, n) {
1855
+ const { failMessage: r, showError: s } = e;
2403
1856
  if (r && s) {
2404
1857
  const o = n?.response?.data, i = o?.message || o?.msg || n?.message || n?.msg || "未知错误";
2405
1858
  s(i, n);
2406
1859
  }
2407
1860
  }
2408
- validResponse(t, n) {
2409
- const { validSuccess: r, validate: s } = t;
1861
+ validResponse(e, n) {
1862
+ const { validSuccess: r, validate: s } = e;
2410
1863
  return r && s ? !!s(n) : !0;
2411
1864
  }
2412
- isSkipWarnResponse(t) {
2413
- return !!t.promise;
1865
+ isSkipWarnResponse(e) {
1866
+ return !!e.promise;
2414
1867
  }
2415
- send(t = {}, n = !1) {
2416
- const r = G({}, this.settings, t.settings || {}), s = t.query || {}, o = Ae(t, [
1868
+ send(e = {}, n = !1) {
1869
+ const r = q({}, this.settings, e.settings || {}), s = e.query || {}, o = ie(e, [
2417
1870
  "settings",
2418
1871
  "query"
2419
- ]), i = mn(!1), a = _.CancelToken.source();
1872
+ ]), i = Ot(!1), a = S.CancelToken.source();
2420
1873
  this.records[i] = { settings: r, config: o, source: a };
2421
- const l = this.createUrl(o), c = this.createHeaders(i, r, o), { data: f, params: d } = this.createSendData(
1874
+ const f = this.createUrl(o), l = this.createHeaders(i, r, o), { data: u, params: d } = this.createSendData(
2422
1875
  r,
2423
1876
  o,
2424
- c,
1877
+ l,
2425
1878
  n,
2426
1879
  s
2427
1880
  );
2428
- return this.showLoading(r), new Promise((m, b) => {
1881
+ return this.showLoading(r), new Promise((g, b) => {
2429
1882
  this.axios({
2430
1883
  cancelToken: a.token,
2431
1884
  ...o,
2432
- url: l,
2433
- headers: c,
2434
- data: f,
1885
+ url: f,
1886
+ headers: l,
1887
+ data: u,
2435
1888
  params: d
2436
- }).then((h) => this.isSkipWarnResponse(h) ? m(h.promise) : this.validResponse(r, h) ? m(r.originResponse ? h : h.data?.data) : (this.showError(r, h.data), b(h.data))).catch((h) => (this.showError(r, h), b(h))).finally(() => {
1889
+ }).then((p) => this.isSkipWarnResponse(p) ? g(p.promise) : this.validResponse(r, p) ? g(r.originResponse ? p : p.data?.data) : (this.showError(r, p.data), b(p.data))).catch((p) => (this.showError(r, p), b(p))).finally(() => {
2437
1890
  delete this.records[i], this.closeLoading(r);
2438
1891
  });
2439
1892
  });
2440
1893
  }
2441
- useResponse(t, n) {
2442
- const { response: r } = this.axios.interceptors, s = r.use(t, n);
1894
+ useResponse(e, n) {
1895
+ const { response: r } = this.axios.interceptors, s = r.use(e, n);
2443
1896
  return () => r.eject(s);
2444
1897
  }
2445
- useRequest(t, n) {
2446
- const { request: r } = this.axios.interceptors, s = r.use(t, n);
1898
+ useRequest(e, n) {
1899
+ const { request: r } = this.axios.interceptors, s = r.use(e, n);
2447
1900
  return () => r.eject(s);
2448
1901
  }
2449
- setupSkipWarn(t) {
2450
- if (this.stopSkipWarn && (this.stopSkipWarn(), this.stopSkipWarn = void 0), !t.skipWarn) return;
2451
- const { code: n, executor: r, callback: s, complete: o } = t.skipWarn;
1902
+ setupSkipWarn(e) {
1903
+ if (this.stopSkipWarn && (this.stopSkipWarn(), this.stopSkipWarn = void 0), !e.skipWarn) return;
1904
+ const { code: n, executor: r, callback: s, complete: o } = e.skipWarn;
2452
1905
  this.stopSkipWarn = this.useResponse((i) => {
2453
- const l = (i.config.headers || {})[yt], c = this.records[l];
2454
- if (!c) return i;
2455
- const { data: f } = i;
2456
- if (!f || typeof f != "object") return i;
2457
- if (f?.code === n) {
1906
+ const f = (i.config.headers || {})[ve], l = this.records[f];
1907
+ if (!l) return i;
1908
+ const { data: u } = i;
1909
+ if (!u || typeof u != "object") return i;
1910
+ if (u?.code === n) {
2458
1911
  s && s(i);
2459
1912
  const d = new Promise(r).then(() => this.send(
2460
1913
  {
2461
- ...c.config,
2462
- settings: c.settings
1914
+ ...l.config,
1915
+ settings: l.settings
2463
1916
  },
2464
1917
  !0
2465
1918
  ));
2466
- d.catch((m) => m).finally(() => {
1919
+ d.catch((g) => g).finally(() => {
2467
1920
  o && o();
2468
1921
  }), i.promise = d;
2469
1922
  }
@@ -2471,11 +1924,11 @@ let xs = class {
2471
1924
  });
2472
1925
  }
2473
1926
  };
2474
- function Cs(e = {}) {
2475
- const t = new xs(e), n = t.send.bind(t), r = t.cancel.bind(t), s = t.setConfig.bind(t), o = t.useRequest.bind(t), i = t.useResponse.bind(t);
1927
+ function cr(t = {}) {
1928
+ const e = new ar(t), n = e.send.bind(e), r = e.cancel.bind(e), s = e.setConfig.bind(e), o = e.useRequest.bind(e), i = e.useResponse.bind(e);
2476
1929
  return Object.assign(n, {
2477
- ...t,
2478
- instance: t,
1930
+ ...e,
1931
+ instance: e,
2479
1932
  send: n,
2480
1933
  cancel: r,
2481
1934
  setConfig: s,
@@ -2483,27 +1936,27 @@ function Cs(e = {}) {
2483
1936
  useResponse: i
2484
1937
  });
2485
1938
  }
2486
- const Ps = Cs({
1939
+ const lr = cr({
2487
1940
  settings: {
2488
1941
  injectHeaders: !0,
2489
1942
  loading: !0,
2490
1943
  originResponse: !0
2491
1944
  }
2492
1945
  });
2493
- function js(e) {
2494
- const t = typeof e == "string" ? { url: e } : e;
2495
- return (n, r) => Ps.send(G({}, t, r || {}, { data: n }));
2496
- }
2497
- function Ro(e) {
2498
- const t = {};
2499
- for (const [n, r] of Object.entries(e))
2500
- t[n] = js(r);
2501
- return t;
1946
+ function ur(t) {
1947
+ const e = typeof t == "string" ? { url: t } : t;
1948
+ return (n, r) => lr.send(q({}, e, r || {}, { data: n }));
1949
+ }
1950
+ function es(t) {
1951
+ const e = {};
1952
+ for (const [n, r] of Object.entries(t))
1953
+ e[n] = ur(r);
1954
+ return e;
2502
1955
  }
2503
- function Eo(e, t) {
2504
- const n = je(null), r = je(), s = je(!0);
2505
- return e.then((o) => {
2506
- n.value = t ? t(o) : o;
1956
+ function ts(t, e) {
1957
+ const n = ae(null), r = ae(), s = ae(!0);
1958
+ return t.then((o) => {
1959
+ n.value = e ? e(o) : o;
2507
1960
  }).catch((o) => {
2508
1961
  r.value = o;
2509
1962
  }).finally(() => {
@@ -2514,96 +1967,96 @@ function Eo(e, t) {
2514
1967
  loading: s
2515
1968
  };
2516
1969
  }
2517
- const re = typeof window < "u", So = (e) => new Promise((t, n) => {
1970
+ const H = typeof window < "u", ns = (t) => new Promise((e, n) => {
2518
1971
  const r = new FileReader();
2519
- r.readAsDataURL(e), r.onload = () => {
2520
- t(r.result);
1972
+ r.readAsDataURL(t), r.onload = () => {
1973
+ e(r.result);
2521
1974
  }, r.onerror = (s) => {
2522
1975
  n(s);
2523
1976
  };
2524
1977
  });
2525
- function _o(e) {
2526
- const t = {};
2527
- return e ? (e.forEach((n, r) => {
2528
- t[r] = typeof n == "string" ? decodeURIComponent(n) : n;
2529
- }), t) : {};
2530
- }
2531
- function Oo(e) {
2532
- const t = e.split(","), n = t[0].match(/:(.*?);/)?.[1], r = atob(t[1]);
1978
+ function rs(t) {
1979
+ const e = {};
1980
+ return t ? (t.forEach((n, r) => {
1981
+ e[r] = typeof n == "string" ? decodeURIComponent(n) : n;
1982
+ }), e) : {};
1983
+ }
1984
+ function ss(t) {
1985
+ const e = t.split(","), n = e[0].match(/:(.*?);/)?.[1], r = atob(e[1]);
2533
1986
  let s = r.length;
2534
1987
  const o = new Uint8Array(s);
2535
1988
  for (; s--; )
2536
1989
  o[s] = r.charCodeAt(s);
2537
1990
  return new Blob([o], { type: n });
2538
1991
  }
2539
- function To(e, t) {
2540
- const n = e;
2541
- return n.lastModified = Date.now(), n.lastModifiedDate = /* @__PURE__ */ new Date(), n.name = t, n;
1992
+ function os(t, e) {
1993
+ const n = t;
1994
+ return n.lastModified = Date.now(), n.lastModifiedDate = /* @__PURE__ */ new Date(), n.name = e, n;
2542
1995
  }
2543
- const Ao = (e) => re ? window.requestAnimationFrame(e) : setTimeout(e, 16), xo = (e) => re ? window.cancelAnimationFrame(e) : clearTimeout(e);
2544
- class Ls {
2545
- constructor(t = {}) {
2546
- j(this, "options", {
1996
+ const is = (t) => H ? window.requestAnimationFrame(t) : setTimeout(t, 16), as = (t) => H ? window.cancelAnimationFrame(t) : clearTimeout(t);
1997
+ class fr {
1998
+ constructor(e = {}) {
1999
+ C(this, "options", {
2547
2000
  type: "cache",
2548
2001
  expired: 0,
2549
2002
  prefix: "__VTJ_"
2550
2003
  });
2551
- j(this, "caches", {});
2552
- j(this, "types");
2004
+ C(this, "caches", {});
2005
+ C(this, "types");
2553
2006
  this.types = {
2554
- local: re ? window.localStorage : this.caches,
2555
- session: re ? window.sessionStorage : this.caches,
2007
+ local: H ? window.localStorage : this.caches,
2008
+ session: H ? window.sessionStorage : this.caches,
2556
2009
  cache: this.caches
2557
- }, this.config(t);
2010
+ }, this.config(e);
2558
2011
  }
2559
- config(t = {}) {
2560
- this.options = Object.assign(this.options, t);
2012
+ config(e = {}) {
2013
+ this.options = Object.assign(this.options, e);
2561
2014
  }
2562
- save(t, n, r = {}) {
2563
- const { type: s, expired: o, prefix: i } = { ...this.options, ...r }, a = Date.now(), l = i + t, c = this.types[s] || this.caches, f = {
2015
+ save(e, n, r = {}) {
2016
+ const { type: s, expired: o, prefix: i } = { ...this.options, ...r }, a = Date.now(), f = i + e, l = this.types[s] || this.caches, u = {
2564
2017
  value: n,
2565
2018
  timestamp: a,
2566
2019
  expired: o
2567
2020
  };
2568
- c === this.caches ? c[l] = f : c.setItem(l, JSON.stringify(f));
2021
+ l === this.caches ? l[f] = u : l.setItem(f, JSON.stringify(u));
2569
2022
  }
2570
- get(t, n = {}) {
2571
- const { type: r, prefix: s } = { ...this.options, ...n }, o = s + t, i = this.types[r] || this.caches;
2023
+ get(e, n = {}) {
2024
+ const { type: r, prefix: s } = { ...this.options, ...n }, o = s + e, i = this.types[r] || this.caches;
2572
2025
  let a;
2573
2026
  if (i === this.caches)
2574
2027
  a = i[o];
2575
2028
  else {
2576
- const m = i.getItem(o);
2577
- if (m)
2029
+ const g = i.getItem(o);
2030
+ if (g)
2578
2031
  try {
2579
- a = JSON.parse(m);
2032
+ a = JSON.parse(g);
2580
2033
  } catch (b) {
2581
2034
  console.warn("[Storage] JSON.parse", b);
2582
2035
  }
2583
2036
  }
2584
2037
  if (!a) return null;
2585
- const { value: l, timestamp: c, expired: f } = a;
2586
- return f > 0 && c + f < Date.now() ? (this.remove(t, n), null) : l;
2038
+ const { value: f, timestamp: l, expired: u } = a;
2039
+ return u > 0 && l + u < Date.now() ? (this.remove(e, n), null) : f;
2587
2040
  }
2588
- remove(t, n = {}) {
2589
- const { type: r, prefix: s } = { ...this.options, ...n }, o = this.types[r] || this.caches, i = s + t;
2041
+ remove(e, n = {}) {
2042
+ const { type: r, prefix: s } = { ...this.options, ...n }, o = this.types[r] || this.caches, i = s + e;
2590
2043
  o === this.caches ? delete o[i] : o.removeItem(i);
2591
2044
  }
2592
- clear(t = {}) {
2593
- const { type: n } = { ...this.options, ...t }, r = this.types[n] || this.caches;
2045
+ clear(e = {}) {
2046
+ const { type: n } = { ...this.options, ...e }, r = this.types[n] || this.caches;
2594
2047
  r === this.caches ? this.caches = {} : r.clear();
2595
2048
  }
2596
2049
  }
2597
- const Co = new Ls();
2598
- function sn(e) {
2599
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2050
+ const cs = new fr();
2051
+ function pt(t) {
2052
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2600
2053
  }
2601
- var Q = { exports: {} }, vs = Q.exports, bt;
2602
- function Ns() {
2603
- return bt || (bt = 1, (function(e, t) {
2054
+ var M = { exports: {} }, dr = M.exports, qe;
2055
+ function pr() {
2056
+ return qe || (qe = 1, (function(t, e) {
2604
2057
  (function(n, r) {
2605
- r(t, e);
2606
- })(vs, function(n, r) {
2058
+ r(e, t);
2059
+ })(dr, function(n, r) {
2607
2060
  var s = {
2608
2061
  timeout: 5e3,
2609
2062
  jsonpCallback: "callback"
@@ -2611,109 +2064,109 @@ function Ns() {
2611
2064
  function o() {
2612
2065
  return "jsonp_" + Date.now() + "_" + Math.ceil(Math.random() * 1e5);
2613
2066
  }
2614
- function i(c) {
2067
+ function i(l) {
2615
2068
  try {
2616
- delete window[c];
2069
+ delete window[l];
2617
2070
  } catch {
2618
- window[c] = void 0;
2071
+ window[l] = void 0;
2619
2072
  }
2620
2073
  }
2621
- function a(c) {
2622
- var f = document.getElementById(c);
2623
- f && document.getElementsByTagName("head")[0].removeChild(f);
2074
+ function a(l) {
2075
+ var u = document.getElementById(l);
2076
+ u && document.getElementsByTagName("head")[0].removeChild(u);
2624
2077
  }
2625
- function l(c) {
2626
- var f = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], d = c, m = f.timeout || s.timeout, b = f.jsonpCallback || s.jsonpCallback, h = void 0;
2627
- return new Promise(function(g, p) {
2628
- var y = f.jsonpCallbackFunction || o(), S = b + "_" + y;
2629
- window[y] = function(L) {
2630
- g({
2078
+ function f(l) {
2079
+ var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], d = l, g = u.timeout || s.timeout, b = u.jsonpCallback || s.jsonpCallback, p = void 0;
2080
+ return new Promise(function(m, h) {
2081
+ var w = u.jsonpCallbackFunction || o(), R = b + "_" + w;
2082
+ window[w] = function(_) {
2083
+ m({
2631
2084
  ok: !0,
2632
2085
  // keep consistent with fetch API
2633
2086
  json: function() {
2634
- return Promise.resolve(L);
2087
+ return Promise.resolve(_);
2635
2088
  }
2636
- }), h && clearTimeout(h), a(S), i(y);
2089
+ }), p && clearTimeout(p), a(R), i(w);
2637
2090
  }, d += d.indexOf("?") === -1 ? "?" : "&";
2638
- var R = document.createElement("script");
2639
- R.setAttribute("src", "" + d + b + "=" + y), f.charset && R.setAttribute("charset", f.charset), f.nonce && R.setAttribute("nonce", f.nonce), f.referrerPolicy && R.setAttribute("referrerPolicy", f.referrerPolicy), f.crossorigin && R.setAttribute("crossorigin", "true"), R.id = S, document.getElementsByTagName("head")[0].appendChild(R), h = setTimeout(function() {
2640
- p(new Error("JSONP request to " + c + " timed out")), i(y), a(S), window[y] = function() {
2641
- i(y);
2091
+ var E = document.createElement("script");
2092
+ E.setAttribute("src", "" + d + b + "=" + w), u.charset && E.setAttribute("charset", u.charset), u.nonce && E.setAttribute("nonce", u.nonce), u.referrerPolicy && E.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && E.setAttribute("crossorigin", "true"), E.id = R, document.getElementsByTagName("head")[0].appendChild(E), p = setTimeout(function() {
2093
+ h(new Error("JSONP request to " + l + " timed out")), i(w), a(R), window[w] = function() {
2094
+ i(w);
2642
2095
  };
2643
- }, m), R.onerror = function() {
2644
- p(new Error("JSONP request to " + c + " failed")), i(y), a(S), h && clearTimeout(h);
2096
+ }, g), E.onerror = function() {
2097
+ h(new Error("JSONP request to " + l + " failed")), i(w), a(R), p && clearTimeout(p);
2645
2098
  };
2646
2099
  });
2647
2100
  }
2648
- r.exports = l;
2101
+ r.exports = f;
2649
2102
  });
2650
- })(Q, Q.exports)), Q.exports;
2651
- }
2652
- var Us = Ns();
2653
- const Fs = /* @__PURE__ */ sn(Us);
2654
- function Ds(e) {
2655
- if (re) {
2656
- const { protocol: t, host: n, pathname: r } = location;
2657
- return `${t}//${n}${e ? r : ""}`;
2103
+ })(M, M.exports)), M.exports;
2104
+ }
2105
+ var hr = pr();
2106
+ const mr = /* @__PURE__ */ pt(hr);
2107
+ function yr(t) {
2108
+ if (H) {
2109
+ const { protocol: e, host: n, pathname: r } = location;
2110
+ return `${e}//${n}${t ? r : ""}`;
2658
2111
  } else
2659
2112
  return null;
2660
2113
  }
2661
- function Bs(e = "") {
2662
- const t = e.match(gn);
2663
- return t ? t[0] : "";
2114
+ function gr(t = "") {
2115
+ const e = t.match(Tt);
2116
+ return e ? e[0] : "";
2664
2117
  }
2665
- function on(e) {
2666
- const t = [];
2667
- for (const n in e)
2668
- Object.prototype.hasOwnProperty.call(e, n) && t.push([n, encodeURIComponent(e[n])].join("="));
2669
- return t.join("&");
2118
+ function ht(t) {
2119
+ const e = [];
2120
+ for (const n in t)
2121
+ Object.prototype.hasOwnProperty.call(t, n) && e.push([n, encodeURIComponent(t[n])].join("="));
2122
+ return e.join("&");
2670
2123
  }
2671
- function Ke(e, t, n) {
2124
+ function we(t, e, n) {
2672
2125
  const r = {};
2673
- e = (e || location.search).replace(/^[^]*\?/, ""), t = t || "&", n = n || "=";
2126
+ t = (t || location.search).replace(/^[^]*\?/, ""), e = e || "&", n = n || "=";
2674
2127
  let s;
2675
2128
  const o = new RegExp(
2676
- "(?:^|\\" + t + ")([^\\" + n + "\\" + t + "]+)(?:\\" + n + "([^\\" + t + "]*))?",
2129
+ "(?:^|\\" + e + ")([^\\" + n + "\\" + e + "]+)(?:\\" + n + "([^\\" + e + "]*))?",
2677
2130
  "g"
2678
2131
  );
2679
- for (; (s = o.exec(e)) !== null; )
2680
- s[1] !== e && (r[decodeURIComponent(s[1])] = decodeURIComponent(s[2] || ""));
2132
+ for (; (s = o.exec(t)) !== null; )
2133
+ s[1] !== t && (r[decodeURIComponent(s[1])] = decodeURIComponent(s[2] || ""));
2681
2134
  return r;
2682
2135
  }
2683
- function an(e, t) {
2684
- t = typeof t == "string" ? Ke(t) : t;
2685
- const n = e.split("?")[0], r = Ke(e), s = Object.assign({}, r, t), o = on(s);
2686
- return o ? [n, o].join("?") : e;
2136
+ function mt(t, e) {
2137
+ e = typeof e == "string" ? we(e) : e;
2138
+ const n = t.split("?")[0], r = we(t), s = Object.assign({}, r, e), o = ht(s);
2139
+ return o ? [n, o].join("?") : t;
2687
2140
  }
2688
- const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2141
+ const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2689
2142
  __proto__: null,
2690
- append: an,
2691
- getCurrentHost: Ds,
2692
- getHost: Bs,
2693
- parse: Ke,
2694
- stringify: on
2143
+ append: mt,
2144
+ getCurrentHost: yr,
2145
+ getHost: gr,
2146
+ parse: we,
2147
+ stringify: ht
2695
2148
  }, Symbol.toStringTag, { value: "Module" }));
2696
- async function jo(e, t = {}) {
2697
- const { query: n = {} } = t;
2698
- e.includes("${") && (e = wn(e)(n || {}));
2699
- const r = an(e, n);
2700
- return await (await Fs(r, t)).json();
2701
- }
2702
- var Ue, Rt;
2703
- function Ms() {
2704
- if (Rt) return Ue;
2705
- Rt = 1, Ue = function(s, o, i) {
2706
- var a = document.head || document.getElementsByTagName("head")[0], l = document.createElement("script");
2149
+ async function us(t, e = {}) {
2150
+ const { query: n = {} } = e;
2151
+ t.includes("${") && (t = At(t)(n || {}));
2152
+ const r = mt(t, n);
2153
+ return await (await mr(r, e)).json();
2154
+ }
2155
+ var fe, Me;
2156
+ function wr() {
2157
+ if (Me) return fe;
2158
+ Me = 1, fe = function(s, o, i) {
2159
+ var a = document.head || document.getElementsByTagName("head")[0], f = document.createElement("script");
2707
2160
  typeof o == "function" && (i = o, o = {}), o = o || {}, i = i || function() {
2708
- }, l.type = o.type || "text/javascript", l.charset = o.charset || "utf8", l.async = "async" in o ? !!o.async : !0, l.src = s, o.attrs && e(l, o.attrs), o.text && (l.text = "" + o.text);
2709
- var c = "onload" in l ? t : n;
2710
- c(l, i), l.onload || t(l, i), a.appendChild(l);
2161
+ }, f.type = o.type || "text/javascript", f.charset = o.charset || "utf8", f.async = "async" in o ? !!o.async : !0, f.src = s, o.attrs && t(f, o.attrs), o.text && (f.text = "" + o.text);
2162
+ var l = "onload" in f ? e : n;
2163
+ l(f, i), f.onload || e(f, i), a.appendChild(f);
2711
2164
  };
2712
- function e(r, s) {
2165
+ function t(r, s) {
2713
2166
  for (var o in s)
2714
2167
  r.setAttribute(o, s[o]);
2715
2168
  }
2716
- function t(r, s) {
2169
+ function e(r, s) {
2717
2170
  r.onload = function() {
2718
2171
  this.onerror = this.onload = null, s(null, r);
2719
2172
  }, r.onerror = function() {
@@ -2725,121 +2178,121 @@ function Ms() {
2725
2178
  this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, s(null, r));
2726
2179
  };
2727
2180
  }
2728
- return Ue;
2181
+ return fe;
2729
2182
  }
2730
- var Is = Ms();
2731
- const ks = /* @__PURE__ */ sn(Is);
2732
- function Lo(e, t = {}) {
2183
+ var br = wr();
2184
+ const Er = /* @__PURE__ */ pt(br);
2185
+ function fs(t, e = {}) {
2733
2186
  return new Promise((n, r) => {
2734
- const { library: s } = t;
2735
- ks(e, t, (o, i) => {
2187
+ const { library: s } = e;
2188
+ Er(t, e, (o, i) => {
2736
2189
  o ? r(o) : n(s ? window[s] : void 0);
2737
2190
  });
2738
2191
  });
2739
2192
  }
2740
- const Et = { debug: -1, log: 0, info: 0, warn: 1, error: 2 }, qs = function(e, t, n, r) {
2193
+ const Ie = { debug: -1, log: 0, info: 0, warn: 1, error: 2 }, Rr = function(t, e, n, r) {
2741
2194
  return function(...s) {
2742
- if (t && Et[t] <= Et[e] && // @ts-ignore
2743
- console[e].apply && (r === "*" || n.startsWith(r)))
2744
- return console[e].apply(console, Hs(s, n));
2195
+ if (e && Ie[e] <= Ie[t] && // @ts-ignore
2196
+ console[t].apply && (r === "*" || n.startsWith(r)))
2197
+ return console[t].apply(console, Sr(s, n));
2745
2198
  };
2746
2199
  };
2747
- function Hs(e, t) {
2748
- return t !== "*" && (typeof e[0] == "string" ? e[0] = `[${t}] ${e[0]}` : e = ["[" + t + "]"].concat(e)), e;
2200
+ function Sr(t, e) {
2201
+ return e !== "*" && (typeof t[0] == "string" ? t[0] = `[${e}] ${t[0]}` : t = ["[" + e + "]"].concat(t)), t;
2749
2202
  }
2750
- function $s(e, t) {
2751
- if (!e)
2203
+ function Or(t, e) {
2204
+ if (!t)
2752
2205
  return {
2753
- targetLevel: t.level,
2754
- targetBizName: t.bizName
2206
+ targetLevel: e.level,
2207
+ targetBizName: e.bizName
2755
2208
  };
2756
- if (~e.indexOf(":")) {
2757
- const n = e.split(":");
2209
+ if (~t.indexOf(":")) {
2210
+ const n = t.split(":");
2758
2211
  return {
2759
2212
  targetLevel: n[0],
2760
2213
  targetBizName: n[1]
2761
2214
  };
2762
2215
  }
2763
2216
  return {
2764
- targetLevel: e,
2217
+ targetLevel: t,
2765
2218
  targetBizName: "*"
2766
2219
  };
2767
2220
  }
2768
- const Js = {
2221
+ const Tr = {
2769
2222
  level: "warn",
2770
2223
  bizName: "*"
2771
2224
  };
2772
- class Ws {
2773
- constructor(t) {
2774
- j(this, "config");
2775
- j(this, "options");
2776
- this.options = { ...Js, ...t };
2225
+ class Ar {
2226
+ constructor(e) {
2227
+ C(this, "config");
2228
+ C(this, "options");
2229
+ this.options = { ...Tr, ...e };
2777
2230
  const n = typeof location < "u" ? location : {}, r = (/__(?:logConf|logLevel)__=([^#/&]*)/.exec(
2778
2231
  n.href
2779
2232
  ) || [])[1];
2780
- this.config = $s(r, t);
2233
+ this.config = Or(r, e);
2781
2234
  }
2782
- _log(t) {
2235
+ _log(e) {
2783
2236
  const { targetLevel: n, targetBizName: r } = this.config, { bizName: s } = this.options;
2784
- return qs(t, n, s, r);
2237
+ return Rr(e, n, s, r);
2785
2238
  }
2786
- debug(...t) {
2787
- return this._log("debug")(...t);
2239
+ debug(...e) {
2240
+ return this._log("debug")(...e);
2788
2241
  }
2789
- log(...t) {
2790
- return this._log("log")(...t);
2242
+ log(...e) {
2243
+ return this._log("log")(...e);
2791
2244
  }
2792
- info(...t) {
2793
- return this._log("info")(...t);
2245
+ info(...e) {
2246
+ return this._log("info")(...e);
2794
2247
  }
2795
- warn(...t) {
2796
- return this._log("warn")(...t);
2248
+ warn(...e) {
2249
+ return this._log("warn")(...e);
2797
2250
  }
2798
- error(...t) {
2799
- return this._log("error")(...t);
2251
+ error(...e) {
2252
+ return this._log("error")(...e);
2800
2253
  }
2801
2254
  }
2802
- function zs(e) {
2803
- return new Ws(e);
2255
+ function xr(t) {
2256
+ return new Ar(t);
2804
2257
  }
2805
- const vo = zs({ level: "log", bizName: "VTJ" });
2258
+ const ds = xr({ level: "log", bizName: "VTJ" });
2806
2259
  /*! js-cookie v3.0.5 | MIT */
2807
- function de(e) {
2808
- for (var t = 1; t < arguments.length; t++) {
2809
- var n = arguments[t];
2260
+ function K(t) {
2261
+ for (var e = 1; e < arguments.length; e++) {
2262
+ var n = arguments[e];
2810
2263
  for (var r in n)
2811
- e[r] = n[r];
2264
+ t[r] = n[r];
2812
2265
  }
2813
- return e;
2266
+ return t;
2814
2267
  }
2815
- var Ks = {
2816
- read: function(e) {
2817
- return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2268
+ var Cr = {
2269
+ read: function(t) {
2270
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2818
2271
  },
2819
- write: function(e) {
2820
- return encodeURIComponent(e).replace(
2272
+ write: function(t) {
2273
+ return encodeURIComponent(t).replace(
2821
2274
  /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2822
2275
  decodeURIComponent
2823
2276
  );
2824
2277
  }
2825
2278
  };
2826
- function Ve(e, t) {
2279
+ function be(t, e) {
2827
2280
  function n(s, o, i) {
2828
2281
  if (!(typeof document > "u")) {
2829
- i = de({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2282
+ i = K({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2830
2283
  var a = "";
2831
- for (var l in i)
2832
- i[l] && (a += "; " + l, i[l] !== !0 && (a += "=" + i[l].split(";")[0]));
2833
- return document.cookie = s + "=" + e.write(o, s) + a;
2284
+ for (var f in i)
2285
+ i[f] && (a += "; " + f, i[f] !== !0 && (a += "=" + i[f].split(";")[0]));
2286
+ return document.cookie = s + "=" + t.write(o, s) + a;
2834
2287
  }
2835
2288
  }
2836
2289
  function r(s) {
2837
2290
  if (!(typeof document > "u" || arguments.length && !s)) {
2838
2291
  for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, a = 0; a < o.length; a++) {
2839
- var l = o[a].split("="), c = l.slice(1).join("=");
2292
+ var f = o[a].split("="), l = f.slice(1).join("=");
2840
2293
  try {
2841
- var f = decodeURIComponent(l[0]);
2842
- if (i[f] = e.read(c, f), s === f)
2294
+ var u = decodeURIComponent(f[0]);
2295
+ if (i[u] = t.read(l, u), s === u)
2843
2296
  break;
2844
2297
  } catch {
2845
2298
  }
@@ -2855,63 +2308,63 @@ function Ve(e, t) {
2855
2308
  n(
2856
2309
  s,
2857
2310
  "",
2858
- de({}, o, {
2311
+ K({}, o, {
2859
2312
  expires: -1
2860
2313
  })
2861
2314
  );
2862
2315
  },
2863
2316
  withAttributes: function(s) {
2864
- return Ve(this.converter, de({}, this.attributes, s));
2317
+ return be(this.converter, K({}, this.attributes, s));
2865
2318
  },
2866
2319
  withConverter: function(s) {
2867
- return Ve(de({}, this.converter, s), this.attributes);
2320
+ return be(K({}, this.converter, s), this.attributes);
2868
2321
  }
2869
2322
  },
2870
2323
  {
2871
- attributes: { value: Object.freeze(t) },
2872
- converter: { value: Object.freeze(e) }
2324
+ attributes: { value: Object.freeze(e) },
2325
+ converter: { value: Object.freeze(t) }
2873
2326
  }
2874
2327
  );
2875
2328
  }
2876
- var nt = Ve(Ks, { path: "/" });
2877
- function Vs(e, t, n) {
2878
- nt.set(e, t, n);
2329
+ var Oe = be(Cr, { path: "/" });
2330
+ function _r(t, e, n) {
2331
+ Oe.set(t, e, n);
2879
2332
  }
2880
- function Xs(e) {
2881
- return nt.get(e);
2333
+ function Pr(t) {
2334
+ return Oe.get(t);
2882
2335
  }
2883
- function Ys(e, t) {
2884
- nt.remove(e, t);
2336
+ function Lr(t, e) {
2337
+ Oe.remove(t, e);
2885
2338
  }
2886
- const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2339
+ const ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2887
2340
  __proto__: null,
2888
- get: Xs,
2889
- remove: Ys,
2890
- set: Vs
2341
+ get: Pr,
2342
+ remove: Lr,
2343
+ set: _r
2891
2344
  }, Symbol.toStringTag, { value: "Module" }));
2892
- function Uo(e, t = "") {
2345
+ function hs(t, e = "") {
2893
2346
  const n = document.createElement("a");
2894
- n.download = t, n.href = e, n.target = "_blank", n.click();
2347
+ n.download = e, n.href = t, n.target = "_blank", n.click();
2895
2348
  }
2896
- function cn(e, t = "", n) {
2897
- const r = new Blob([e], { type: n }), s = document.createElement("a");
2898
- s.download = t, s.style.display = "none", s.href = URL.createObjectURL(r), s.click(), URL.revokeObjectURL(s.href);
2349
+ function yt(t, e = "", n) {
2350
+ const r = new Blob([t], { type: n }), s = document.createElement("a");
2351
+ s.download = e, s.style.display = "none", s.href = URL.createObjectURL(r), s.click(), URL.revokeObjectURL(s.href);
2899
2352
  }
2900
- async function Fo(e, t = "", n) {
2901
- return fetch(e, { credentials: "include" }).then(async (r) => {
2353
+ async function ms(t, e = "", n) {
2354
+ return fetch(t, { credentials: "include" }).then(async (r) => {
2902
2355
  const s = await r.blob();
2903
- return cn(s, t, n), s;
2356
+ return yt(s, e, n), s;
2904
2357
  });
2905
2358
  }
2906
- function Do(e, t = "") {
2907
- const n = JSON.stringify(e);
2908
- cn(n, t, "application/json");
2359
+ function ys(t, e = "") {
2360
+ const n = JSON.stringify(t);
2361
+ yt(n, e, "application/json");
2909
2362
  }
2910
- function Bo() {
2911
- const e = navigator.userAgent;
2912
- let t = "Unknown", n = "Unknown", r = "Unknown", s = "Unknown", o = !1;
2913
- if (/Windows NT/i.test(e)) {
2914
- t = "Windows";
2363
+ function gs() {
2364
+ const t = navigator.userAgent;
2365
+ let e = "Unknown", n = "Unknown", r = "Unknown", s = "Unknown", o = !1;
2366
+ if (/Windows NT/i.test(t)) {
2367
+ e = "Windows";
2915
2368
  const a = {
2916
2369
  "12.0": "12",
2917
2370
  "11.0": "11",
@@ -2922,42 +2375,42 @@ function Bo() {
2922
2375
  "6.0": "Vista",
2923
2376
  "5.2": "XP 64-bit",
2924
2377
  "5.1": "XP"
2925
- }, l = e.match(/Windows NT (\d+\.\d+)/);
2926
- l && (n = a[l[1]] || l[1]);
2927
- } else if (/Mac OS X/i.test(e)) {
2928
- t = "Mac OS";
2929
- const a = e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);
2378
+ }, f = t.match(/Windows NT (\d+\.\d+)/);
2379
+ f && (n = a[f[1]] || f[1]);
2380
+ } else if (/Mac OS X/i.test(t)) {
2381
+ e = "Mac OS";
2382
+ const a = t.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);
2930
2383
  a && (n = a[1].replace(/_/g, "."));
2931
- } else if (/(iPhone|iPad|iPod)/i.test(e)) {
2932
- t = "iOS";
2933
- const a = e.match(/OS (\d+[_\.]\d+[_\.]?\d*)/);
2384
+ } else if (/(iPhone|iPad|iPod)/i.test(t)) {
2385
+ e = "iOS";
2386
+ const a = t.match(/OS (\d+[_\.]\d+[_\.]?\d*)/);
2934
2387
  a && (n = a[1].replace(/_/g, "."));
2935
- } else if (/Android/i.test(e)) {
2936
- t = "Android";
2937
- const a = e.match(/Android (\d+\.\d+)/);
2388
+ } else if (/Android/i.test(t)) {
2389
+ e = "Android";
2390
+ const a = t.match(/Android (\d+\.\d+)/);
2938
2391
  a && (n = a[1]);
2939
- } else /Linux/i.test(e) && (t = "Linux");
2940
- const i = e.match(/(Edge|Edg|Edga|EdgA)\/(\d+)/i);
2392
+ } else /Linux/i.test(t) && (e = "Linux");
2393
+ const i = t.match(/(Edge|Edg|Edga|EdgA)\/(\d+)/i);
2941
2394
  if (i)
2942
2395
  r = "Microsoft Edge", s = i[2];
2943
2396
  else {
2944
- const a = e.match(/Firefox\/(\d+)/i);
2397
+ const a = t.match(/Firefox\/(\d+)/i);
2945
2398
  if (a)
2946
2399
  r = "Firefox", s = a[1];
2947
2400
  else {
2948
- const l = e.match(/(Opera|OPR)\/(\d+)/i);
2949
- if (l)
2950
- r = "Opera", s = l[2];
2401
+ const f = t.match(/(Opera|OPR)\/(\d+)/i);
2402
+ if (f)
2403
+ r = "Opera", s = f[2];
2951
2404
  else {
2952
- const c = e.match(/Chrome\/(\d+)/i);
2953
- if (c)
2954
- r = "Chrome", s = c[1];
2405
+ const l = t.match(/Chrome\/(\d+)/i);
2406
+ if (l)
2407
+ r = "Chrome", s = l[1];
2955
2408
  else {
2956
- const f = e.match(/Version\/(\d+\.\d+)/i);
2957
- if (f && /Safari/i.test(e))
2958
- r = "Safari", s = f[1];
2409
+ const u = t.match(/Version\/(\d+\.\d+)/i);
2410
+ if (u && /Safari/i.test(t))
2411
+ r = "Safari", s = u[1];
2959
2412
  else {
2960
- const d = e.match(/(MSIE |Trident.*rv:)(\d+)/i);
2413
+ const d = t.match(/(MSIE |Trident.*rv:)(\d+)/i);
2961
2414
  d && (r = "Internet Explorer", s = d[2]);
2962
2415
  }
2963
2416
  }
@@ -2965,9 +2418,9 @@ function Bo() {
2965
2418
  }
2966
2419
  }
2967
2420
  return o = // 移动设备通用检测
2968
- /(iPhone|iPod|iPad|Android|Windows Phone|Mobile)/i.test(e) || // 根据已识别的操作系统补充判断
2969
- ["iOS", "Android"].includes(t), /(iPad|Tablet|Android(?!.*Mobile))/i.test(e) && (o = !0), {
2970
- os: t,
2421
+ /(iPhone|iPod|iPad|Android|Windows Phone|Mobile)/i.test(t) || // 根据已识别的操作系统补充判断
2422
+ ["iOS", "Android"].includes(e), /(iPad|Tablet|Android(?!.*Mobile))/i.test(t) && (o = !0), {
2423
+ os: e,
2971
2424
  osVersion: n,
2972
2425
  browser: r,
2973
2426
  browserVersion: s,
@@ -2975,34 +2428,34 @@ function Bo() {
2975
2428
  };
2976
2429
  }
2977
2430
  export {
2978
- yt as LOCAL_REQUEST_ID,
2979
- Ws as Logger,
2980
- xs as Request,
2981
- Ls as Storage,
2982
- Zs as VTJ_UTILS_VERSION,
2983
- _ as axios,
2984
- To as blobToFile,
2985
- xo as cAF,
2986
- No as cookie,
2987
- js as createApi,
2988
- Ro as createApis,
2989
- Cs as createRequest,
2990
- Oo as dataURLtoBlob,
2991
- cn as downloadBlob,
2992
- Do as downloadJson,
2993
- Fo as downloadRemoteFile,
2994
- Uo as downloadUrl,
2995
- So as fileToBase64,
2996
- _o as formDataToJson,
2997
- Bo as getClientInfo,
2998
- zs as getLogger,
2999
- re as isClient,
3000
- jo as jsonp,
3001
- Lo as loadScript,
3002
- vo as logger,
3003
- Ao as rAF,
3004
- Ps as request,
3005
- Co as storage,
3006
- Po as url,
3007
- Eo as useApi
2431
+ ve as LOCAL_REQUEST_ID,
2432
+ Ar as Logger,
2433
+ ar as Request,
2434
+ fr as Storage,
2435
+ Nr as VTJ_UTILS_VERSION,
2436
+ S as axios,
2437
+ os as blobToFile,
2438
+ as as cAF,
2439
+ ps as cookie,
2440
+ ur as createApi,
2441
+ es as createApis,
2442
+ cr as createRequest,
2443
+ ss as dataURLtoBlob,
2444
+ yt as downloadBlob,
2445
+ ys as downloadJson,
2446
+ ms as downloadRemoteFile,
2447
+ hs as downloadUrl,
2448
+ ns as fileToBase64,
2449
+ rs as formDataToJson,
2450
+ gs as getClientInfo,
2451
+ xr as getLogger,
2452
+ H as isClient,
2453
+ us as jsonp,
2454
+ fs as loadScript,
2455
+ ds as logger,
2456
+ is as rAF,
2457
+ lr as request,
2458
+ cs as storage,
2459
+ ls as url,
2460
+ ts as useApi
3008
2461
  };