@vtj/utils 0.7.10 → 0.7.11

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,45 +1,45 @@
1
- import { omit as V, merge as _, debounce as Qe, throttle as Ye, template as xe, uuid as Ze, rURL as et } from "@vtj/base";
1
+ import { omit as K, merge as N, debounce as Ze, throttle as et, template as Pe, uuid as tt, rURL as nt } from "@vtj/base";
2
2
  export * from "@vtj/base";
3
3
  /**!
4
4
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
5
5
  * @name @vtj/utils
6
6
  * @author CHC chenhuachun1549@dingtalk.com
7
- * @version 0.7.10
7
+ * @version 0.7.11
8
8
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
9
9
  */
10
- const Mn = "0.7.10";
11
- function Ce(e, t) {
10
+ const Xn = "0.7.11";
11
+ function _e(e, t) {
12
12
  return function() {
13
13
  return e.apply(t, arguments);
14
14
  };
15
15
  }
16
- const { toString: tt } = Object.prototype, { getPrototypeOf: ie } = Object, q = /* @__PURE__ */ ((e) => (t) => {
17
- const n = tt.call(t);
16
+ const { toString: rt } = Object.prototype, { getPrototypeOf: ce } = Object, M = /* @__PURE__ */ ((e) => (t) => {
17
+ const n = rt.call(t);
18
18
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
19
- })(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => q(t) === e), M = (e) => (t) => typeof t === e, { isArray: j } = Array, k = M("undefined");
20
- function nt(e) {
21
- return e !== null && !k(e) && e.constructor !== null && !k(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
+ })(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => M(t) === e), z = (e) => (t) => typeof t === e, { isArray: _ } = Array, k = z("undefined");
20
+ function st(e) {
21
+ return e !== null && !k(e) && e.constructor !== null && !k(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
22
22
  }
23
- const Pe = T("ArrayBuffer");
24
- function rt(e) {
23
+ const je = T("ArrayBuffer");
24
+ function ot(e) {
25
25
  let t;
26
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
26
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
27
27
  }
28
- const st = M("string"), O = M("function"), je = M("number"), J = (e) => e !== null && typeof e == "object", ot = (e) => e === !0 || e === !1, B = (e) => {
29
- if (q(e) !== "object")
28
+ const it = z("string"), R = z("function"), Ne = z("number"), J = (e) => e !== null && typeof e == "object", at = (e) => e === !0 || e === !1, B = (e) => {
29
+ if (M(e) !== "object")
30
30
  return !1;
31
- const t = ie(e);
31
+ const t = ce(e);
32
32
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
33
- }, it = T("Date"), at = T("File"), ct = T("Blob"), ut = T("FileList"), lt = (e) => J(e) && O(e.pipe), ft = (e) => {
33
+ }, ct = T("Date"), ut = T("File"), lt = T("Blob"), ft = T("FileList"), dt = (e) => J(e) && R(e.pipe), pt = (e) => {
34
34
  let t;
35
- return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = q(e)) === "formdata" || // detect form-data instance
36
- t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
37
- }, dt = T("URLSearchParams"), pt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
- function L(e, t, { allOwnKeys: n = !1 } = {}) {
35
+ return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = M(e)) === "formdata" || // detect form-data instance
36
+ t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
37
+ }, ht = T("URLSearchParams"), mt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ function F(e, t, { allOwnKeys: n = !1 } = {}) {
39
39
  if (e === null || typeof e > "u")
40
40
  return;
41
41
  let r, s;
42
- if (typeof e != "object" && (e = [e]), j(e))
42
+ if (typeof e != "object" && (e = [e]), _(e))
43
43
  for (r = 0, s = e.length; r < s; r++)
44
44
  t.call(null, e[r], r, e);
45
45
  else {
@@ -49,7 +49,7 @@ function L(e, t, { allOwnKeys: n = !1 } = {}) {
49
49
  c = o[r], t.call(null, e[c], c, e);
50
50
  }
51
51
  }
52
- function Ne(e, t) {
52
+ function ke(e, t) {
53
53
  t = t.toLowerCase();
54
54
  const n = Object.keys(e);
55
55
  let r = n.length, s;
@@ -58,23 +58,23 @@ function Ne(e, t) {
58
58
  return s;
59
59
  return null;
60
60
  }
61
- const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ke = (e) => !k(e) && e !== _e;
62
- function Y() {
63
- const { caseless: e } = ke(this) && this || {}, t = {}, n = (r, s) => {
64
- const o = e && Ne(t, s) || s;
65
- B(t[o]) && B(r) ? t[o] = Y(t[o], r) : B(r) ? t[o] = Y({}, r) : j(r) ? t[o] = r.slice() : t[o] = r;
61
+ const Le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fe = (e) => !k(e) && e !== Le;
62
+ function Z() {
63
+ const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
64
+ const o = e && ke(t, s) || s;
65
+ B(t[o]) && B(r) ? t[o] = Z(t[o], r) : B(r) ? t[o] = Z({}, r) : _(r) ? t[o] = r.slice() : t[o] = r;
66
66
  };
67
67
  for (let r = 0, s = arguments.length; r < s; r++)
68
- arguments[r] && L(arguments[r], n);
68
+ arguments[r] && F(arguments[r], n);
69
69
  return t;
70
70
  }
71
- const ht = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
72
- n && O(s) ? e[o] = Ce(s, n) : e[o] = s;
73
- }, { allOwnKeys: r }), e), mt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yt = (e, t, n, r) => {
71
+ const yt = (e, t, n, { allOwnKeys: r } = {}) => (F(t, (s, o) => {
72
+ n && R(s) ? e[o] = _e(s, n) : e[o] = s;
73
+ }, { allOwnKeys: r }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
74
74
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
75
75
  value: t.prototype
76
76
  }), n && Object.assign(e.prototype, n);
77
- }, wt = (e, t, n, r) => {
77
+ }, bt = (e, t, n, r) => {
78
78
  let s, o, i;
79
79
  const c = {};
80
80
  if (t = t || {}, e == null)
@@ -82,55 +82,55 @@ const ht = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
82
82
  do {
83
83
  for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
84
84
  i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
85
- e = n !== !1 && ie(e);
85
+ e = n !== !1 && ce(e);
86
86
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
87
87
  return t;
88
- }, bt = (e, t, n) => {
88
+ }, Et = (e, t, n) => {
89
89
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
90
90
  const r = e.indexOf(t, n);
91
91
  return r !== -1 && r === n;
92
- }, gt = (e) => {
92
+ }, St = (e) => {
93
93
  if (!e)
94
94
  return null;
95
- if (j(e))
95
+ if (_(e))
96
96
  return e;
97
97
  let t = e.length;
98
- if (!je(t))
98
+ if (!Ne(t))
99
99
  return null;
100
100
  const n = new Array(t);
101
101
  for (; t-- > 0; )
102
102
  n[t] = e[t];
103
103
  return n;
104
- }, Et = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ie(Uint8Array)), St = (e, t) => {
104
+ }, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ce(Uint8Array)), Rt = (e, t) => {
105
105
  const r = (e && e[Symbol.iterator]).call(e);
106
106
  let s;
107
107
  for (; (s = r.next()) && !s.done; ) {
108
108
  const o = s.value;
109
109
  t.call(e, o[0], o[1]);
110
110
  }
111
- }, Rt = (e, t) => {
111
+ }, At = (e, t) => {
112
112
  let n;
113
113
  const r = [];
114
114
  for (; (n = e.exec(t)) !== null; )
115
115
  r.push(n);
116
116
  return r;
117
- }, Ot = T("HTMLFormElement"), At = (e) => e.toLowerCase().replace(
117
+ }, Tt = T("HTMLFormElement"), xt = (e) => e.toLowerCase().replace(
118
118
  /[-_\s]([a-z\d])(\w*)/g,
119
119
  function(n, r, s) {
120
120
  return r.toUpperCase() + s;
121
121
  }
122
- ), pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tt = T("RegExp"), Fe = (e, t) => {
122
+ ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ct = T("RegExp"), De = (e, t) => {
123
123
  const n = Object.getOwnPropertyDescriptors(e), r = {};
124
- L(n, (s, o) => {
124
+ F(n, (s, o) => {
125
125
  let i;
126
126
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
127
127
  }), Object.defineProperties(e, r);
128
- }, xt = (e) => {
129
- Fe(e, (t, n) => {
130
- if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
128
+ }, Pt = (e) => {
129
+ De(e, (t, n) => {
130
+ if (R(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
131
131
  return !1;
132
132
  const r = e[n];
133
- if (O(r)) {
133
+ if (R(r)) {
134
134
  if (t.enumerable = !1, "writable" in t) {
135
135
  t.writable = !1;
136
136
  return;
@@ -140,37 +140,37 @@ const ht = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
140
140
  });
141
141
  }
142
142
  });
143
- }, Ct = (e, t) => {
143
+ }, _t = (e, t) => {
144
144
  const n = {}, r = (s) => {
145
145
  s.forEach((o) => {
146
146
  n[o] = !0;
147
147
  });
148
148
  };
149
- return j(e) ? r(e) : r(String(e).split(t)), n;
150
- }, Pt = () => {
151
- }, jt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), K = "abcdefghijklmnopqrstuvwxyz", he = "0123456789", Le = {
152
- DIGIT: he,
153
- ALPHA: K,
154
- ALPHA_DIGIT: K + K.toUpperCase() + he
155
- }, Nt = (e = 16, t = Le.ALPHA_DIGIT) => {
149
+ return _(e) ? r(e) : r(String(e).split(t)), n;
150
+ }, jt = () => {
151
+ }, Nt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), G = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", Ue = {
152
+ DIGIT: ye,
153
+ ALPHA: G,
154
+ ALPHA_DIGIT: G + G.toUpperCase() + ye
155
+ }, kt = (e = 16, t = Ue.ALPHA_DIGIT) => {
156
156
  let n = "";
157
157
  const { length: r } = t;
158
158
  for (; e--; )
159
159
  n += t[Math.random() * r | 0];
160
160
  return n;
161
161
  };
162
- function _t(e) {
163
- return !!(e && O(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
162
+ function Lt(e) {
163
+ return !!(e && R(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
164
164
  }
165
- const kt = (e) => {
165
+ const Ft = (e) => {
166
166
  const t = new Array(10), n = (r, s) => {
167
167
  if (J(r)) {
168
168
  if (t.indexOf(r) >= 0)
169
169
  return;
170
170
  if (!("toJSON" in r)) {
171
171
  t[s] = r;
172
- const o = j(r) ? [] : {};
173
- return L(r, (i, c) => {
172
+ const o = _(r) ? [] : {};
173
+ return F(r, (i, c) => {
174
174
  const f = n(i, s + 1);
175
175
  !k(f) && (o[c] = f);
176
176
  }), t[s] = void 0, o;
@@ -179,59 +179,59 @@ const kt = (e) => {
179
179
  return r;
180
180
  };
181
181
  return n(e, 0);
182
- }, Ft = T("AsyncFunction"), Lt = (e) => e && (J(e) || O(e)) && O(e.then) && O(e.catch), a = {
183
- isArray: j,
184
- isArrayBuffer: Pe,
185
- isBuffer: nt,
186
- isFormData: ft,
187
- isArrayBufferView: rt,
188
- isString: st,
189
- isNumber: je,
190
- isBoolean: ot,
182
+ }, Dt = T("AsyncFunction"), Ut = (e) => e && (J(e) || R(e)) && R(e.then) && R(e.catch), a = {
183
+ isArray: _,
184
+ isArrayBuffer: je,
185
+ isBuffer: st,
186
+ isFormData: pt,
187
+ isArrayBufferView: ot,
188
+ isString: it,
189
+ isNumber: Ne,
190
+ isBoolean: at,
191
191
  isObject: J,
192
192
  isPlainObject: B,
193
193
  isUndefined: k,
194
- isDate: it,
195
- isFile: at,
196
- isBlob: ct,
197
- isRegExp: Tt,
198
- isFunction: O,
199
- isStream: lt,
200
- isURLSearchParams: dt,
201
- isTypedArray: Et,
202
- isFileList: ut,
203
- forEach: L,
204
- merge: Y,
205
- extend: ht,
206
- trim: pt,
207
- stripBOM: mt,
208
- inherits: yt,
209
- toFlatObject: wt,
210
- kindOf: q,
194
+ isDate: ct,
195
+ isFile: ut,
196
+ isBlob: lt,
197
+ isRegExp: Ct,
198
+ isFunction: R,
199
+ isStream: dt,
200
+ isURLSearchParams: ht,
201
+ isTypedArray: Ot,
202
+ isFileList: ft,
203
+ forEach: F,
204
+ merge: Z,
205
+ extend: yt,
206
+ trim: mt,
207
+ stripBOM: wt,
208
+ inherits: gt,
209
+ toFlatObject: bt,
210
+ kindOf: M,
211
211
  kindOfTest: T,
212
- endsWith: bt,
213
- toArray: gt,
214
- forEachEntry: St,
215
- matchAll: Rt,
216
- isHTMLForm: Ot,
217
- hasOwnProperty: pe,
218
- hasOwnProp: pe,
212
+ endsWith: Et,
213
+ toArray: St,
214
+ forEachEntry: Rt,
215
+ matchAll: At,
216
+ isHTMLForm: Tt,
217
+ hasOwnProperty: me,
218
+ hasOwnProp: me,
219
219
  // an alias to avoid ESLint no-prototype-builtins detection
220
- reduceDescriptors: Fe,
221
- freezeMethods: xt,
222
- toObjectSet: Ct,
223
- toCamelCase: At,
224
- noop: Pt,
225
- toFiniteNumber: jt,
226
- findKey: Ne,
227
- global: _e,
228
- isContextDefined: ke,
229
- ALPHABET: Le,
230
- generateString: Nt,
231
- isSpecCompliantForm: _t,
232
- toJSONObject: kt,
233
- isAsyncFn: Ft,
234
- isThenable: Lt
220
+ reduceDescriptors: De,
221
+ freezeMethods: Pt,
222
+ toObjectSet: _t,
223
+ toCamelCase: xt,
224
+ noop: jt,
225
+ toFiniteNumber: Nt,
226
+ findKey: ke,
227
+ global: Le,
228
+ isContextDefined: Fe,
229
+ ALPHABET: Ue,
230
+ generateString: kt,
231
+ isSpecCompliantForm: Lt,
232
+ toJSONObject: Ft,
233
+ isAsyncFn: Dt,
234
+ isThenable: Ut
235
235
  };
236
236
  function m(e, t, n, r, s) {
237
237
  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);
@@ -257,7 +257,7 @@ a.inherits(m, Error, {
257
257
  };
258
258
  }
259
259
  });
260
- const De = m.prototype, Ue = {};
260
+ const Be = m.prototype, ve = {};
261
261
  [
262
262
  "ERR_BAD_OPTION_VALUE",
263
263
  "ERR_BAD_OPTION",
@@ -273,35 +273,35 @@ const De = m.prototype, Ue = {};
273
273
  "ERR_INVALID_URL"
274
274
  // eslint-disable-next-line func-names
275
275
  ].forEach((e) => {
276
- Ue[e] = { value: e };
276
+ ve[e] = { value: e };
277
277
  });
278
- Object.defineProperties(m, Ue);
279
- Object.defineProperty(De, "isAxiosError", { value: !0 });
278
+ Object.defineProperties(m, ve);
279
+ Object.defineProperty(Be, "isAxiosError", { value: !0 });
280
280
  m.from = (e, t, n, r, s, o) => {
281
- const i = Object.create(De);
281
+ const i = Object.create(Be);
282
282
  return a.toFlatObject(e, i, function(f) {
283
283
  return f !== Error.prototype;
284
284
  }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
285
285
  };
286
- const Dt = null;
287
- function Z(e) {
286
+ const Bt = null;
287
+ function ee(e) {
288
288
  return a.isPlainObject(e) || a.isArray(e);
289
289
  }
290
- function Be(e) {
290
+ function Ie(e) {
291
291
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
292
292
  }
293
- function me(e, t, n) {
293
+ function we(e, t, n) {
294
294
  return e ? e.concat(t).map(function(s, o) {
295
- return s = Be(s), !n && o ? "[" + s + "]" : s;
295
+ return s = Ie(s), !n && o ? "[" + s + "]" : s;
296
296
  }).join(n ? "." : "") : t;
297
297
  }
298
- function Ut(e) {
299
- return a.isArray(e) && !e.some(Z);
298
+ function vt(e) {
299
+ return a.isArray(e) && !e.some(ee);
300
300
  }
301
- const Bt = a.toFlatObject(a, {}, null, function(t) {
301
+ const It = a.toFlatObject(a, {}, null, function(t) {
302
302
  return /^is[A-Z]/.test(t);
303
303
  });
304
- function z(e, t, n) {
304
+ function W(e, t, n) {
305
305
  if (!a.isObject(e))
306
306
  throw new TypeError("target must be an object");
307
307
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -324,38 +324,38 @@ function z(e, t, n) {
324
324
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
325
325
  }
326
326
  function l(p, h, E) {
327
- let b = p;
327
+ let g = p;
328
328
  if (p && !E && typeof p == "object") {
329
329
  if (a.endsWith(h, "{}"))
330
330
  h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
331
- else if (a.isArray(p) && Ut(p) || (a.isFileList(p) || a.endsWith(h, "[]")) && (b = a.toArray(p)))
332
- return h = Be(h), b.forEach(function(S, $) {
331
+ else if (a.isArray(p) && vt(p) || (a.isFileList(p) || a.endsWith(h, "[]")) && (g = a.toArray(p)))
332
+ return h = Ie(h), g.forEach(function(S, V) {
333
333
  !(a.isUndefined(S) || S === null) && t.append(
334
334
  // eslint-disable-next-line no-nested-ternary
335
- i === !0 ? me([h], $, o) : i === null ? h : h + "[]",
335
+ i === !0 ? we([h], V, o) : i === null ? h : h + "[]",
336
336
  d(S)
337
337
  );
338
338
  }), !1;
339
339
  }
340
- return Z(p) ? !0 : (t.append(me(E, h, o), d(p)), !1);
340
+ return ee(p) ? !0 : (t.append(we(E, h, o), d(p)), !1);
341
341
  }
342
- const u = [], y = Object.assign(Bt, {
342
+ const u = [], y = Object.assign(It, {
343
343
  defaultVisitor: l,
344
344
  convertValue: d,
345
- isVisitable: Z
345
+ isVisitable: ee
346
346
  });
347
347
  function w(p, h) {
348
348
  if (!a.isUndefined(p)) {
349
349
  if (u.indexOf(p) !== -1)
350
350
  throw Error("Circular reference detected in " + h.join("."));
351
- u.push(p), a.forEach(p, function(b, R) {
352
- (!(a.isUndefined(b) || b === null) && s.call(
351
+ u.push(p), a.forEach(p, function(g, O) {
352
+ (!(a.isUndefined(g) || g === null) && s.call(
353
353
  t,
354
- b,
355
- a.isString(R) ? R.trim() : R,
354
+ g,
355
+ a.isString(O) ? O.trim() : O,
356
356
  h,
357
357
  y
358
- )) === !0 && w(b, h ? h.concat(R) : [R]);
358
+ )) === !0 && w(g, h ? h.concat(O) : [O]);
359
359
  }), u.pop();
360
360
  }
361
361
  }
@@ -363,7 +363,7 @@ function z(e, t, n) {
363
363
  throw new TypeError("data must be an object");
364
364
  return w(e), t;
365
365
  }
366
- function ye(e) {
366
+ function ge(e) {
367
367
  const t = {
368
368
  "!": "%21",
369
369
  "'": "%27",
@@ -377,36 +377,36 @@ function ye(e) {
377
377
  return t[r];
378
378
  });
379
379
  }
380
- function ae(e, t) {
381
- this._pairs = [], e && z(e, this, t);
380
+ function ue(e, t) {
381
+ this._pairs = [], e && W(e, this, t);
382
382
  }
383
- const Ie = ae.prototype;
384
- Ie.append = function(t, n) {
383
+ const He = ue.prototype;
384
+ He.append = function(t, n) {
385
385
  this._pairs.push([t, n]);
386
386
  };
387
- Ie.toString = function(t) {
387
+ He.toString = function(t) {
388
388
  const n = t ? function(r) {
389
- return t.call(this, r, ye);
390
- } : ye;
389
+ return t.call(this, r, ge);
390
+ } : ge;
391
391
  return this._pairs.map(function(s) {
392
392
  return n(s[0]) + "=" + n(s[1]);
393
393
  }, "").join("&");
394
394
  };
395
- function It(e) {
395
+ function Ht(e) {
396
396
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
397
397
  }
398
- function ve(e, t, n) {
398
+ function qe(e, t, n) {
399
399
  if (!t)
400
400
  return e;
401
- const r = n && n.encode || It, s = n && n.serialize;
401
+ const r = n && n.encode || Ht, s = n && n.serialize;
402
402
  let o;
403
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ae(t, n).toString(r), o) {
403
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), o) {
404
404
  const i = e.indexOf("#");
405
405
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
406
406
  }
407
407
  return e;
408
408
  }
409
- class we {
409
+ class be {
410
410
  constructor() {
411
411
  this.handlers = [];
412
412
  }
@@ -460,39 +460,39 @@ class we {
460
460
  });
461
461
  }
462
462
  }
463
- const He = {
463
+ const Me = {
464
464
  silentJSONParsing: !0,
465
465
  forcedJSONParsing: !0,
466
466
  clarifyTimeoutError: !1
467
- }, vt = typeof URLSearchParams < "u" ? URLSearchParams : ae, Ht = typeof FormData < "u" ? FormData : null, qt = typeof Blob < "u" ? Blob : null, Mt = {
467
+ }, qt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Mt = typeof FormData < "u" ? FormData : null, zt = typeof Blob < "u" ? Blob : null, Jt = {
468
468
  isBrowser: !0,
469
469
  classes: {
470
- URLSearchParams: vt,
471
- FormData: Ht,
472
- Blob: qt
470
+ URLSearchParams: qt,
471
+ FormData: Mt,
472
+ Blob: zt
473
473
  },
474
474
  protocols: ["http", "https", "file", "blob", "url", "data"]
475
- }, qe = typeof window < "u" && typeof document < "u", Jt = ((e) => qe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), zt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
476
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
475
+ }, ze = typeof window < "u" && typeof document < "u", Wt = ((e) => ze && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), $t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
476
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
477
477
  __proto__: null,
478
- hasBrowserEnv: qe,
479
- hasStandardBrowserEnv: Jt,
480
- hasStandardBrowserWebWorkerEnv: zt
478
+ hasBrowserEnv: ze,
479
+ hasStandardBrowserEnv: Wt,
480
+ hasStandardBrowserWebWorkerEnv: $t
481
481
  }, Symbol.toStringTag, { value: "Module" })), A = {
482
- ...Wt,
483
- ...Mt
482
+ ...Vt,
483
+ ...Jt
484
484
  };
485
- function $t(e, t) {
486
- return z(e, new A.classes.URLSearchParams(), Object.assign({
485
+ function Kt(e, t) {
486
+ return W(e, new A.classes.URLSearchParams(), Object.assign({
487
487
  visitor: function(n, r, s, o) {
488
488
  return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
489
489
  }
490
490
  }, t));
491
491
  }
492
- function Vt(e) {
492
+ function Gt(e) {
493
493
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
494
494
  }
495
- function Kt(e) {
495
+ function Xt(e) {
496
496
  const t = {}, n = Object.keys(e);
497
497
  let r;
498
498
  const s = n.length;
@@ -501,23 +501,23 @@ function Kt(e) {
501
501
  o = n[r], t[o] = e[o];
502
502
  return t;
503
503
  }
504
- function Me(e) {
504
+ function Je(e) {
505
505
  function t(n, r, s, o) {
506
506
  let i = n[o++];
507
507
  if (i === "__proto__")
508
508
  return !0;
509
509
  const c = Number.isFinite(+i), f = o >= n.length;
510
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Kt(s[i])), !c);
510
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Xt(s[i])), !c);
511
511
  }
512
512
  if (a.isFormData(e) && a.isFunction(e.entries)) {
513
513
  const n = {};
514
514
  return a.forEachEntry(e, (r, s) => {
515
- t(Vt(r), s, n, 0);
515
+ t(Gt(r), s, n, 0);
516
516
  }), n;
517
517
  }
518
518
  return null;
519
519
  }
520
- function Gt(e, t, n) {
520
+ function Qt(e, t, n) {
521
521
  if (a.isString(e))
522
522
  try {
523
523
  return (t || JSON.parse)(e), a.trim(e);
@@ -527,13 +527,13 @@ function Gt(e, t, n) {
527
527
  }
528
528
  return (n || JSON.stringify)(e);
529
529
  }
530
- const ce = {
531
- transitional: He,
530
+ const le = {
531
+ transitional: Me,
532
532
  adapter: ["xhr", "http"],
533
533
  transformRequest: [function(t, n) {
534
534
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
535
535
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
536
- return s && s ? JSON.stringify(Me(t)) : t;
536
+ return s ? JSON.stringify(Je(t)) : t;
537
537
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
538
538
  return t;
539
539
  if (a.isArrayBufferView(t))
@@ -543,20 +543,20 @@ const ce = {
543
543
  let c;
544
544
  if (o) {
545
545
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
546
- return $t(t, this.formSerializer).toString();
546
+ return Kt(t, this.formSerializer).toString();
547
547
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
548
548
  const f = this.env && this.env.FormData;
549
- return z(
549
+ return W(
550
550
  c ? { "files[]": t } : t,
551
551
  f && new f(),
552
552
  this.formSerializer
553
553
  );
554
554
  }
555
555
  }
556
- return o || s ? (n.setContentType("application/json", !1), Gt(t)) : t;
556
+ return o || s ? (n.setContentType("application/json", !1), Qt(t)) : t;
557
557
  }],
558
558
  transformResponse: [function(t) {
559
- const n = this.transitional || ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
559
+ const n = this.transitional || le.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
560
560
  if (t && a.isString(t) && (r && !this.responseType || s)) {
561
561
  const i = !(n && n.silentJSONParsing) && s;
562
562
  try {
@@ -592,9 +592,9 @@ const ce = {
592
592
  }
593
593
  };
594
594
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
595
- ce.headers[e] = {};
595
+ le.headers[e] = {};
596
596
  });
597
- const ue = ce, Xt = a.toObjectSet([
597
+ const fe = le, Yt = a.toObjectSet([
598
598
  "age",
599
599
  "authorization",
600
600
  "content-length",
@@ -612,29 +612,29 @@ const ue = ce, Xt = a.toObjectSet([
612
612
  "referer",
613
613
  "retry-after",
614
614
  "user-agent"
615
- ]), Qt = (e) => {
615
+ ]), Zt = (e) => {
616
616
  const t = {};
617
617
  let n, r, s;
618
618
  return e && e.split(`
619
619
  `).forEach(function(i) {
620
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Xt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
620
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Yt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
621
621
  }), t;
622
- }, be = Symbol("internals");
623
- function N(e) {
622
+ }, Ee = Symbol("internals");
623
+ function j(e) {
624
624
  return e && String(e).trim().toLowerCase();
625
625
  }
626
- function I(e) {
627
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(I) : String(e);
626
+ function v(e) {
627
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(v) : String(e);
628
628
  }
629
- function Yt(e) {
629
+ function en(e) {
630
630
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
631
631
  let r;
632
632
  for (; r = n.exec(e); )
633
633
  t[r[1]] = r[2];
634
634
  return t;
635
635
  }
636
- const Zt = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
637
- function G(e, t, n, r, s) {
636
+ const tn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
637
+ function X(e, t, n, r, s) {
638
638
  if (a.isFunction(r))
639
639
  return r.call(this, t, n);
640
640
  if (s && (t = n), !!a.isString(t)) {
@@ -644,10 +644,10 @@ function G(e, t, n, r, s) {
644
644
  return r.test(t);
645
645
  }
646
646
  }
647
- function en(e) {
647
+ function nn(e) {
648
648
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
649
649
  }
650
- function tn(e, t) {
650
+ function rn(e, t) {
651
651
  const n = a.toCamelCase(" " + t);
652
652
  ["get", "set", "has"].forEach((r) => {
653
653
  Object.defineProperty(e, r + n, {
@@ -658,31 +658,31 @@ function tn(e, t) {
658
658
  });
659
659
  });
660
660
  }
661
- class W {
661
+ class $ {
662
662
  constructor(t) {
663
663
  t && this.set(t);
664
664
  }
665
665
  set(t, n, r) {
666
666
  const s = this;
667
667
  function o(c, f, d) {
668
- const l = N(f);
668
+ const l = j(f);
669
669
  if (!l)
670
670
  throw new Error("header name must be a non-empty string");
671
671
  const u = a.findKey(s, l);
672
- (!u || s[u] === void 0 || d === !0 || d === void 0 && s[u] !== !1) && (s[u || f] = I(c));
672
+ (!u || s[u] === void 0 || d === !0 || d === void 0 && s[u] !== !1) && (s[u || f] = v(c));
673
673
  }
674
674
  const i = (c, f) => a.forEach(c, (d, l) => o(d, l, f));
675
- return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Zt(t) ? i(Qt(t), n) : t != null && o(n, t, r), this;
675
+ return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !tn(t) ? i(Zt(t), n) : t != null && o(n, t, r), this;
676
676
  }
677
677
  get(t, n) {
678
- if (t = N(t), t) {
678
+ if (t = j(t), t) {
679
679
  const r = a.findKey(this, t);
680
680
  if (r) {
681
681
  const s = this[r];
682
682
  if (!n)
683
683
  return s;
684
684
  if (n === !0)
685
- return Yt(s);
685
+ return en(s);
686
686
  if (a.isFunction(n))
687
687
  return n.call(this, s, r);
688
688
  if (a.isRegExp(n))
@@ -692,9 +692,9 @@ class W {
692
692
  }
693
693
  }
694
694
  has(t, n) {
695
- if (t = N(t), t) {
695
+ if (t = j(t), t) {
696
696
  const r = a.findKey(this, t);
697
- return !!(r && this[r] !== void 0 && (!n || G(this, this[r], r, n)));
697
+ return !!(r && this[r] !== void 0 && (!n || X(this, this[r], r, n)));
698
698
  }
699
699
  return !1;
700
700
  }
@@ -702,9 +702,9 @@ class W {
702
702
  const r = this;
703
703
  let s = !1;
704
704
  function o(i) {
705
- if (i = N(i), i) {
705
+ if (i = j(i), i) {
706
706
  const c = a.findKey(r, i);
707
- c && (!n || G(r, r[c], c, n)) && (delete r[c], s = !0);
707
+ c && (!n || X(r, r[c], c, n)) && (delete r[c], s = !0);
708
708
  }
709
709
  }
710
710
  return a.isArray(t) ? t.forEach(o) : o(t), s;
@@ -714,7 +714,7 @@ class W {
714
714
  let r = n.length, s = !1;
715
715
  for (; r--; ) {
716
716
  const o = n[r];
717
- (!t || G(this, this[o], o, t, !0)) && (delete this[o], s = !0);
717
+ (!t || X(this, this[o], o, t, !0)) && (delete this[o], s = !0);
718
718
  }
719
719
  return s;
720
720
  }
@@ -723,11 +723,11 @@ class W {
723
723
  return a.forEach(this, (s, o) => {
724
724
  const i = a.findKey(r, o);
725
725
  if (i) {
726
- n[i] = I(s), delete n[o];
726
+ n[i] = v(s), delete n[o];
727
727
  return;
728
728
  }
729
- const c = t ? en(o) : String(o).trim();
730
- c !== o && delete n[o], n[c] = I(s), r[c] = !0;
729
+ const c = t ? nn(o) : String(o).trim();
730
+ c !== o && delete n[o], n[c] = v(s), r[c] = !0;
731
731
  }), this;
732
732
  }
733
733
  concat(...t) {
@@ -757,18 +757,18 @@ class W {
757
757
  return n.forEach((s) => r.set(s)), r;
758
758
  }
759
759
  static accessor(t) {
760
- const r = (this[be] = this[be] = {
760
+ const r = (this[Ee] = this[Ee] = {
761
761
  accessors: {}
762
762
  }).accessors, s = this.prototype;
763
763
  function o(i) {
764
- const c = N(i);
765
- r[c] || (tn(s, i), r[c] = !0);
764
+ const c = j(i);
765
+ r[c] || (rn(s, i), r[c] = !0);
766
766
  }
767
767
  return a.isArray(t) ? t.forEach(o) : o(t), this;
768
768
  }
769
769
  }
770
- W.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
771
- a.reduceDescriptors(W.prototype, ({ value: e }, t) => {
770
+ $.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
771
+ a.reduceDescriptors($.prototype, ({ value: e }, t) => {
772
772
  let n = t[0].toUpperCase() + t.slice(1);
773
773
  return {
774
774
  get: () => e,
@@ -777,16 +777,16 @@ a.reduceDescriptors(W.prototype, ({ value: e }, t) => {
777
777
  }
778
778
  };
779
779
  });
780
- a.freezeMethods(W);
781
- const x = W;
782
- function X(e, t) {
783
- const n = this || ue, r = t || n, s = x.from(r.headers);
780
+ a.freezeMethods($);
781
+ const x = $;
782
+ function Q(e, t) {
783
+ const n = this || fe, r = t || n, s = x.from(r.headers);
784
784
  let o = r.data;
785
785
  return a.forEach(e, function(c) {
786
786
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
787
787
  }), s.normalize(), o;
788
788
  }
789
- function Je(e) {
789
+ function We(e) {
790
790
  return !!(e && e.__CANCEL__);
791
791
  }
792
792
  function D(e, t, n) {
@@ -795,7 +795,7 @@ function D(e, t, n) {
795
795
  a.inherits(D, m, {
796
796
  __CANCEL__: !0
797
797
  });
798
- function nn(e, t, n) {
798
+ function sn(e, t, n) {
799
799
  const r = n.config.validateStatus;
800
800
  !n.status || !r || r(n.status) ? e(n) : t(new m(
801
801
  "Request failed with status code " + n.status,
@@ -805,7 +805,7 @@ function nn(e, t, n) {
805
805
  n
806
806
  ));
807
807
  }
808
- const rn = A.hasStandardBrowserEnv ? (
808
+ const on = A.hasStandardBrowserEnv ? (
809
809
  // Standard browser envs support document.cookie
810
810
  {
811
811
  write(e, t, n, r, s, o) {
@@ -832,16 +832,16 @@ const rn = A.hasStandardBrowserEnv ? (
832
832
  }
833
833
  }
834
834
  );
835
- function sn(e) {
835
+ function an(e) {
836
836
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
837
837
  }
838
- function on(e, t) {
838
+ function cn(e, t) {
839
839
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
840
840
  }
841
- function ze(e, t) {
842
- return e && !sn(t) ? on(e, t) : t;
841
+ function $e(e, t) {
842
+ return e && !an(t) ? cn(e, t) : t;
843
843
  }
844
- const an = A.hasStandardBrowserEnv ? (
844
+ const un = A.hasStandardBrowserEnv ? (
845
845
  // Standard browser envs have full support of the APIs needed to test
846
846
  // whether the request URL is of the same origin as current location.
847
847
  function() {
@@ -873,11 +873,11 @@ const an = A.hasStandardBrowserEnv ? (
873
873
  };
874
874
  }()
875
875
  );
876
- function cn(e) {
876
+ function ln(e) {
877
877
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
878
878
  return t && t[1] || "";
879
879
  }
880
- function un(e, t) {
880
+ function fn(e, t) {
881
881
  e = e || 10;
882
882
  const n = new Array(e), r = new Array(e);
883
883
  let s = 0, o = 0, i;
@@ -893,9 +893,9 @@ function un(e, t) {
893
893
  return w ? Math.round(y * 1e3 / w) : void 0;
894
894
  };
895
895
  }
896
- function ge(e, t) {
896
+ function Se(e, t) {
897
897
  let n = 0;
898
- const r = un(50, 250);
898
+ const r = fn(50, 250);
899
899
  return (s) => {
900
900
  const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, f = r(c), d = o <= i;
901
901
  n = o;
@@ -911,7 +911,7 @@ function ge(e, t) {
911
911
  l[t ? "download" : "upload"] = !0, e(l);
912
912
  };
913
913
  }
914
- const ln = typeof XMLHttpRequest < "u", fn = ln && function(e) {
914
+ const dn = typeof XMLHttpRequest < "u", pn = dn && function(e) {
915
915
  return new Promise(function(n, r) {
916
916
  let s = e.data;
917
917
  const o = x.from(e.headers).normalize();
@@ -924,7 +924,7 @@ const ln = typeof XMLHttpRequest < "u", fn = ln && function(e) {
924
924
  if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
925
925
  o.setContentType(!1);
926
926
  else if ((l = o.getContentType()) !== !1) {
927
- const [h, ...E] = l ? l.split(";").map((b) => b.trim()).filter(Boolean) : [];
927
+ const [h, ...E] = l ? l.split(";").map((g) => g.trim()).filter(Boolean) : [];
928
928
  o.setContentType([h || "multipart/form-data", ...E].join("; "));
929
929
  }
930
930
  }
@@ -933,14 +933,14 @@ const ln = typeof XMLHttpRequest < "u", fn = ln && function(e) {
933
933
  const h = e.auth.username || "", E = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
934
934
  o.set("Authorization", "Basic " + btoa(h + ":" + E));
935
935
  }
936
- const y = ze(e.baseURL, e.url);
937
- u.open(e.method.toUpperCase(), ve(y, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
936
+ const y = $e(e.baseURL, e.url);
937
+ u.open(e.method.toUpperCase(), qe(y, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
938
938
  function w() {
939
939
  if (!u)
940
940
  return;
941
941
  const h = x.from(
942
942
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
943
- ), b = {
943
+ ), g = {
944
944
  data: !i || i === "text" || i === "json" ? u.responseText : u.response,
945
945
  status: u.status,
946
946
  statusText: u.statusText,
@@ -948,11 +948,11 @@ const ln = typeof XMLHttpRequest < "u", fn = ln && function(e) {
948
948
  config: e,
949
949
  request: u
950
950
  };
951
- nn(function(S) {
951
+ sn(function(S) {
952
952
  n(S), d();
953
953
  }, function(S) {
954
954
  r(S), d();
955
- }, b), u = null;
955
+ }, g), u = null;
956
956
  }
957
957
  if ("onloadend" in u ? u.onloadend = w : u.onreadystatechange = function() {
958
958
  !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(w);
@@ -962,34 +962,34 @@ const ln = typeof XMLHttpRequest < "u", fn = ln && function(e) {
962
962
  r(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
963
963
  }, u.ontimeout = function() {
964
964
  let E = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
965
- const b = e.transitional || He;
965
+ const g = e.transitional || Me;
966
966
  e.timeoutErrorMessage && (E = e.timeoutErrorMessage), r(new m(
967
967
  E,
968
- b.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
968
+ g.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
969
969
  e,
970
970
  u
971
971
  )), u = null;
972
- }, A.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && an(y))) {
973
- const h = e.xsrfHeaderName && e.xsrfCookieName && rn.read(e.xsrfCookieName);
972
+ }, A.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && un(y))) {
973
+ const h = e.xsrfHeaderName && e.xsrfCookieName && on.read(e.xsrfCookieName);
974
974
  h && o.set(e.xsrfHeaderName, h);
975
975
  }
976
- s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(E, b) {
977
- u.setRequestHeader(b, E);
978
- }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", ge(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ge(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (h) => {
976
+ s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(E, g) {
977
+ u.setRequestHeader(g, E);
978
+ }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Se(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Se(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (h) => {
979
979
  u && (r(!h || h.type ? new D(null, e, u) : h), u.abort(), u = null);
980
980
  }, e.cancelToken && e.cancelToken.subscribe(f), e.signal && (e.signal.aborted ? f() : e.signal.addEventListener("abort", f)));
981
- const p = cn(y);
981
+ const p = ln(y);
982
982
  if (p && A.protocols.indexOf(p) === -1) {
983
983
  r(new m("Unsupported protocol " + p + ":", m.ERR_BAD_REQUEST, e));
984
984
  return;
985
985
  }
986
986
  u.send(s || null);
987
987
  });
988
- }, ee = {
989
- http: Dt,
990
- xhr: fn
988
+ }, te = {
989
+ http: Bt,
990
+ xhr: pn
991
991
  };
992
- a.forEach(ee, (e, t) => {
992
+ a.forEach(te, (e, t) => {
993
993
  if (e) {
994
994
  try {
995
995
  Object.defineProperty(e, "name", { value: t });
@@ -998,7 +998,7 @@ a.forEach(ee, (e, t) => {
998
998
  Object.defineProperty(e, "adapterName", { value: t });
999
999
  }
1000
1000
  });
1001
- const Ee = (e) => `- ${e}`, dn = (e) => a.isFunction(e) || e === null || e === !1, We = {
1001
+ const Oe = (e) => `- ${e}`, hn = (e) => a.isFunction(e) || e === null || e === !1, Ve = {
1002
1002
  getAdapter: (e) => {
1003
1003
  e = a.isArray(e) ? e : [e];
1004
1004
  const { length: t } = e;
@@ -1007,7 +1007,7 @@ const Ee = (e) => `- ${e}`, dn = (e) => a.isFunction(e) || e === null || e === !
1007
1007
  for (let o = 0; o < t; o++) {
1008
1008
  n = e[o];
1009
1009
  let i;
1010
- if (r = n, !dn(n) && (r = ee[(i = String(n)).toLowerCase()], r === void 0))
1010
+ if (r = n, !hn(n) && (r = te[(i = String(n)).toLowerCase()], r === void 0))
1011
1011
  throw new m(`Unknown adapter '${i}'`);
1012
1012
  if (r)
1013
1013
  break;
@@ -1018,8 +1018,8 @@ const Ee = (e) => `- ${e}`, dn = (e) => a.isFunction(e) || e === null || e === !
1018
1018
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1019
1019
  );
1020
1020
  let i = t ? o.length > 1 ? `since :
1021
- ` + o.map(Ee).join(`
1022
- `) : " " + Ee(o[0]) : "as no adapter specified";
1021
+ ` + o.map(Oe).join(`
1022
+ `) : " " + Oe(o[0]) : "as no adapter specified";
1023
1023
  throw new m(
1024
1024
  "There is no suitable adapter to dispatch the request " + i,
1025
1025
  "ERR_NOT_SUPPORT"
@@ -1027,31 +1027,31 @@ const Ee = (e) => `- ${e}`, dn = (e) => a.isFunction(e) || e === null || e === !
1027
1027
  }
1028
1028
  return r;
1029
1029
  },
1030
- adapters: ee
1030
+ adapters: te
1031
1031
  };
1032
- function Q(e) {
1032
+ function Y(e) {
1033
1033
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1034
1034
  throw new D(null, e);
1035
1035
  }
1036
- function Se(e) {
1037
- return Q(e), e.headers = x.from(e.headers), e.data = X.call(
1036
+ function Re(e) {
1037
+ return Y(e), e.headers = x.from(e.headers), e.data = Q.call(
1038
1038
  e,
1039
1039
  e.transformRequest
1040
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), We.getAdapter(e.adapter || ue.adapter)(e).then(function(r) {
1041
- return Q(e), r.data = X.call(
1040
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ve.getAdapter(e.adapter || fe.adapter)(e).then(function(r) {
1041
+ return Y(e), r.data = Q.call(
1042
1042
  e,
1043
1043
  e.transformResponse,
1044
1044
  r
1045
1045
  ), r.headers = x.from(r.headers), r;
1046
1046
  }, function(r) {
1047
- return Je(r) || (Q(e), r && r.response && (r.response.data = X.call(
1047
+ return We(r) || (Y(e), r && r.response && (r.response.data = Q.call(
1048
1048
  e,
1049
1049
  e.transformResponse,
1050
1050
  r.response
1051
1051
  ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1052
1052
  });
1053
1053
  }
1054
- const Re = (e) => e instanceof x ? e.toJSON() : e;
1054
+ const Ae = (e) => e instanceof x ? e.toJSON() : e;
1055
1055
  function P(e, t) {
1056
1056
  t = t || {};
1057
1057
  const n = {};
@@ -1111,23 +1111,23 @@ function P(e, t) {
1111
1111
  socketPath: i,
1112
1112
  responseEncoding: i,
1113
1113
  validateStatus: c,
1114
- headers: (d, l) => s(Re(d), Re(l), !0)
1114
+ headers: (d, l) => s(Ae(d), Ae(l), !0)
1115
1115
  };
1116
1116
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1117
1117
  const u = f[l] || s, y = u(e[l], t[l], l);
1118
1118
  a.isUndefined(y) && u !== c || (n[l] = y);
1119
1119
  }), n;
1120
1120
  }
1121
- const $e = "1.6.6", le = {};
1121
+ const Ke = "1.6.7", de = {};
1122
1122
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1123
- le[e] = function(r) {
1123
+ de[e] = function(r) {
1124
1124
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1125
1125
  };
1126
1126
  });
1127
- const Oe = {};
1128
- le.transitional = function(t, n, r) {
1127
+ const Te = {};
1128
+ de.transitional = function(t, n, r) {
1129
1129
  function s(o, i) {
1130
- return "[Axios v" + $e + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1130
+ return "[Axios v" + Ke + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1131
1131
  }
1132
1132
  return (o, i, c) => {
1133
1133
  if (t === !1)
@@ -1135,7 +1135,7 @@ le.transitional = function(t, n, r) {
1135
1135
  s(i, " has been removed" + (n ? " in " + n : "")),
1136
1136
  m.ERR_DEPRECATED
1137
1137
  );
1138
- return n && !Oe[i] && (Oe[i] = !0, console.warn(
1138
+ return n && !Te[i] && (Te[i] = !0, console.warn(
1139
1139
  s(
1140
1140
  i,
1141
1141
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1143,7 +1143,7 @@ le.transitional = function(t, n, r) {
1143
1143
  )), t ? t(o, i, c) : !0;
1144
1144
  };
1145
1145
  };
1146
- function pn(e, t, n) {
1146
+ function mn(e, t, n) {
1147
1147
  if (typeof e != "object")
1148
1148
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1149
1149
  const r = Object.keys(e);
@@ -1160,15 +1160,15 @@ function pn(e, t, n) {
1160
1160
  throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1161
1161
  }
1162
1162
  }
1163
- const te = {
1164
- assertOptions: pn,
1165
- validators: le
1166
- }, C = te.validators;
1163
+ const ne = {
1164
+ assertOptions: mn,
1165
+ validators: de
1166
+ }, C = ne.validators;
1167
1167
  class H {
1168
1168
  constructor(t) {
1169
1169
  this.defaults = t, this.interceptors = {
1170
- request: new we(),
1171
- response: new we()
1170
+ request: new be(),
1171
+ response: new be()
1172
1172
  };
1173
1173
  }
1174
1174
  /**
@@ -1183,21 +1183,26 @@ class H {
1183
1183
  try {
1184
1184
  return await this._request(t, n);
1185
1185
  } catch (r) {
1186
- const s = {};
1187
- throw Error.captureStackTrace ? Error.captureStackTrace(s) : s.stack = new Error().stack, s.stack = s.stack.replace(/^.+\n/, ""), r.stack.endsWith(s.stack.replace(/^.+\n.+\n/, "")) || (r.stack += `
1188
- ` + s.stack), r;
1186
+ if (r instanceof Error) {
1187
+ let s;
1188
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1189
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1190
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1191
+ ` + o) : r.stack = o;
1192
+ }
1193
+ throw r;
1189
1194
  }
1190
1195
  }
1191
1196
  _request(t, n) {
1192
1197
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = P(this.defaults, n);
1193
1198
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1194
- r !== void 0 && te.assertOptions(r, {
1199
+ r !== void 0 && ne.assertOptions(r, {
1195
1200
  silentJSONParsing: C.transitional(C.boolean),
1196
1201
  forcedJSONParsing: C.transitional(C.boolean),
1197
1202
  clarifyTimeoutError: C.transitional(C.boolean)
1198
1203
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1199
1204
  serialize: s
1200
- } : te.assertOptions(s, {
1205
+ } : ne.assertOptions(s, {
1201
1206
  encode: C.function,
1202
1207
  serialize: C.function
1203
1208
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -1222,7 +1227,7 @@ class H {
1222
1227
  });
1223
1228
  let l, u = 0, y;
1224
1229
  if (!f) {
1225
- const p = [Se.bind(this), void 0];
1230
+ const p = [Re.bind(this), void 0];
1226
1231
  for (p.unshift.apply(p, c), p.push.apply(p, d), y = p.length, l = Promise.resolve(n); u < y; )
1227
1232
  l = l.then(p[u++], p[u++]);
1228
1233
  return l;
@@ -1239,7 +1244,7 @@ class H {
1239
1244
  }
1240
1245
  }
1241
1246
  try {
1242
- l = Se.call(this, w);
1247
+ l = Re.call(this, w);
1243
1248
  } catch (p) {
1244
1249
  return Promise.reject(p);
1245
1250
  }
@@ -1249,8 +1254,8 @@ class H {
1249
1254
  }
1250
1255
  getUri(t) {
1251
1256
  t = P(this.defaults, t);
1252
- const n = ze(t.baseURL, t.url);
1253
- return ve(n, t.params, t.paramsSerializer);
1257
+ const n = $e(t.baseURL, t.url);
1258
+ return qe(n, t.params, t.paramsSerializer);
1254
1259
  }
1255
1260
  }
1256
1261
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1277,8 +1282,8 @@ a.forEach(["post", "put", "patch"], function(t) {
1277
1282
  }
1278
1283
  H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1279
1284
  });
1280
- const v = H;
1281
- class fe {
1285
+ const I = H;
1286
+ class pe {
1282
1287
  constructor(t) {
1283
1288
  if (typeof t != "function")
1284
1289
  throw new TypeError("executor must be a function.");
@@ -1339,23 +1344,23 @@ class fe {
1339
1344
  static source() {
1340
1345
  let t;
1341
1346
  return {
1342
- token: new fe(function(s) {
1347
+ token: new pe(function(s) {
1343
1348
  t = s;
1344
1349
  }),
1345
1350
  cancel: t
1346
1351
  };
1347
1352
  }
1348
1353
  }
1349
- const hn = fe;
1350
- function mn(e) {
1354
+ const yn = pe;
1355
+ function wn(e) {
1351
1356
  return function(n) {
1352
1357
  return e.apply(null, n);
1353
1358
  };
1354
1359
  }
1355
- function yn(e) {
1360
+ function gn(e) {
1356
1361
  return a.isObject(e) && e.isAxiosError === !0;
1357
1362
  }
1358
- const ne = {
1363
+ const re = {
1359
1364
  Continue: 100,
1360
1365
  SwitchingProtocols: 101,
1361
1366
  Processing: 102,
@@ -1420,42 +1425,42 @@ const ne = {
1420
1425
  NotExtended: 510,
1421
1426
  NetworkAuthenticationRequired: 511
1422
1427
  };
1423
- Object.entries(ne).forEach(([e, t]) => {
1424
- ne[t] = e;
1428
+ Object.entries(re).forEach(([e, t]) => {
1429
+ re[t] = e;
1425
1430
  });
1426
- const wn = ne;
1427
- function Ve(e) {
1428
- const t = new v(e), n = Ce(v.prototype.request, t);
1429
- return a.extend(n, v.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1430
- return Ve(P(e, s));
1431
+ const bn = re;
1432
+ function Ge(e) {
1433
+ const t = new I(e), n = _e(I.prototype.request, t);
1434
+ return a.extend(n, I.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1435
+ return Ge(P(e, s));
1431
1436
  }, n;
1432
1437
  }
1433
- const g = Ve(ue);
1434
- g.Axios = v;
1435
- g.CanceledError = D;
1436
- g.CancelToken = hn;
1437
- g.isCancel = Je;
1438
- g.VERSION = $e;
1439
- g.toFormData = z;
1440
- g.AxiosError = m;
1441
- g.Cancel = g.CanceledError;
1442
- g.all = function(t) {
1438
+ const b = Ge(fe);
1439
+ b.Axios = I;
1440
+ b.CanceledError = D;
1441
+ b.CancelToken = yn;
1442
+ b.isCancel = We;
1443
+ b.VERSION = Ke;
1444
+ b.toFormData = W;
1445
+ b.AxiosError = m;
1446
+ b.Cancel = b.CanceledError;
1447
+ b.all = function(t) {
1443
1448
  return Promise.all(t);
1444
1449
  };
1445
- g.spread = mn;
1446
- g.isAxiosError = yn;
1447
- g.mergeConfig = P;
1448
- g.AxiosHeaders = x;
1449
- g.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
1450
- g.getAdapter = We.getAdapter;
1451
- g.HttpStatusCode = wn;
1452
- g.default = g;
1453
- const bn = {
1450
+ b.spread = wn;
1451
+ b.isAxiosError = gn;
1452
+ b.mergeConfig = P;
1453
+ b.AxiosHeaders = x;
1454
+ b.formToJSON = (e) => Je(a.isHTMLForm(e) ? new FormData(e) : e);
1455
+ b.getAdapter = Ve.getAdapter;
1456
+ b.HttpStatusCode = bn;
1457
+ b.default = b;
1458
+ const En = {
1454
1459
  form: "application/x-www-form-urlencoded",
1455
1460
  json: "application/json",
1456
1461
  data: "multipart/form-data"
1457
- }, gn = ["put", "post", "patch"], Ae = "Local-Request-Id", En = 200, Sn = 500;
1458
- class Rn {
1462
+ }, Sn = ["put", "post", "patch"], xe = "Local-Request-Id", On = 200, Rn = 500;
1463
+ class An {
1459
1464
  axios;
1460
1465
  settings;
1461
1466
  records = {};
@@ -1465,11 +1470,11 @@ class Rn {
1465
1470
  showError;
1466
1471
  constructor(t = {}) {
1467
1472
  this.settings = t.settings || {};
1468
- const n = V(t, [
1473
+ const n = K(t, [
1469
1474
  "settings"
1470
1475
  ]);
1471
- this.axios = g.create(
1472
- _(
1476
+ this.axios = b.create(
1477
+ N(
1473
1478
  {
1474
1479
  headers: {
1475
1480
  "Content-Type": "application/x-www-form-urlencoded"
@@ -1478,17 +1483,17 @@ class Rn {
1478
1483
  },
1479
1484
  n
1480
1485
  )
1481
- ), this.setupSkipWarn(this.settings), this.showLoading = Qe(this.openLoading.bind(this), En), this.showError = Ye(this._showError.bind(this), Sn, {
1486
+ ), this.setupSkipWarn(this.settings), this.showLoading = Ze(this.openLoading.bind(this), On), this.showError = et(this._showError.bind(this), Rn, {
1482
1487
  leading: !0,
1483
1488
  trailing: !1
1484
1489
  });
1485
1490
  }
1486
1491
  setConfig(t = {}) {
1487
- this.settings = _(this.settings, t.settings || {});
1488
- const n = V(t, [
1492
+ this.settings = N(this.settings, t.settings || {});
1493
+ const n = K(t, [
1489
1494
  "settings"
1490
1495
  ]);
1491
- this.axios.defaults = _(this.axios.defaults, n), this.setupSkipWarn(this.settings);
1496
+ this.axios.defaults = N(this.axios.defaults, n), this.setupSkipWarn(this.settings);
1492
1497
  }
1493
1498
  cancel(t, n = "请求已取消") {
1494
1499
  if (t) {
@@ -1502,11 +1507,11 @@ class Rn {
1502
1507
  }
1503
1508
  createHeaders(t, n, r) {
1504
1509
  const s = n.injectHeaders ? typeof n.headers == "function" ? n.headers(t, r, n) : n.headers || {} : {}, o = {
1505
- "Content-Type": bn[n.type || "form"],
1510
+ "Content-Type": En[n.type || "form"],
1506
1511
  ...r.headers,
1507
1512
  ...s
1508
1513
  };
1509
- return n.skipWarn && (o[Ae] = t), o;
1514
+ return n.skipWarn && (o[xe] = t), o;
1510
1515
  }
1511
1516
  isJsonType(t) {
1512
1517
  return Object.entries(t).some(([n, r]) => n.toLowerCase() === "content-type" && String(r).includes("application/json"));
@@ -1523,7 +1528,7 @@ class Rn {
1523
1528
  const { type: o, skipWarn: i } = t, { name: c = "skipWarn" } = i || {};
1524
1529
  let { data: f, params: d, method: l = "get" } = n;
1525
1530
  const u = s ? { [c]: !0 } : {};
1526
- return gn.includes(l.toLowerCase()) ? (f = Object.assign(f || {}, u), f = o !== "json" || !this.isJsonType(r) ? this.toFormData(f, o) : f) : d = {
1531
+ return Sn.includes(l.toLowerCase()) ? (f = Object.assign(f || {}, u), f = o !== "json" || !this.isJsonType(r) ? this.toFormData(f, o) : f) : d = {
1527
1532
  ...f,
1528
1533
  ...d,
1529
1534
  ...u
@@ -1534,7 +1539,7 @@ class Rn {
1534
1539
  }
1535
1540
  createUrl(t) {
1536
1541
  const { url: n, query: r } = t;
1537
- return r ? xe(n)(r) : n;
1542
+ return r ? Pe(n)(r) : n;
1538
1543
  }
1539
1544
  openLoading(t) {
1540
1545
  const { loading: n, showLoading: r } = t;
@@ -1563,9 +1568,9 @@ class Rn {
1563
1568
  return !!t.promise;
1564
1569
  }
1565
1570
  send(t = {}, n = !1) {
1566
- const r = _({}, this.settings, t.settings || {}), s = V(t, [
1571
+ const r = N({}, this.settings, t.settings || {}), s = K(t, [
1567
1572
  "settings"
1568
- ]), o = Ze(!1), i = g.CancelToken.source();
1573
+ ]), o = tt(!1), i = b.CancelToken.source();
1569
1574
  this.records[o] = { settings: r, config: s, source: i };
1570
1575
  const c = this.createUrl(s), f = this.createHeaders(o, r, s), { data: d, params: l } = this.createSendData(
1571
1576
  r,
@@ -1599,7 +1604,7 @@ class Rn {
1599
1604
  return;
1600
1605
  const { code: n, executor: r, callback: s, complete: o } = t.skipWarn;
1601
1606
  this.stopSkipWarn = this.useResponse((i) => {
1602
- const f = (i.config.headers || {})[Ae], d = this.records[f];
1607
+ const f = (i.config.headers || {})[xe], d = this.records[f];
1603
1608
  if (!d)
1604
1609
  return i;
1605
1610
  const { data: l } = i;
@@ -1622,8 +1627,8 @@ class Rn {
1622
1627
  });
1623
1628
  }
1624
1629
  }
1625
- function On(e = {}) {
1626
- const t = new Rn(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);
1630
+ function Tn(e = {}) {
1631
+ const t = new An(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);
1627
1632
  return Object.assign(n, {
1628
1633
  ...t,
1629
1634
  instance: t,
@@ -1634,25 +1639,25 @@ function On(e = {}) {
1634
1639
  useResponse: i
1635
1640
  });
1636
1641
  }
1637
- const An = On({
1642
+ const xn = Tn({
1638
1643
  settings: {
1639
1644
  injectHeaders: !0,
1640
1645
  loading: !0,
1641
1646
  originResponse: !0
1642
1647
  }
1643
1648
  });
1644
- function Tn(e) {
1649
+ function Cn(e) {
1645
1650
  const t = typeof e == "string" ? { url: e } : e;
1646
- return (n, r) => An.send(_(t, r || {}, { data: n }));
1651
+ return (n, r) => xn.send(N(t, r || {}, { data: n }));
1647
1652
  }
1648
- function Jn(e) {
1653
+ function Qn(e) {
1649
1654
  const t = {};
1650
1655
  for (const [n, r] of Object.entries(e))
1651
- t[n] = Tn(r);
1656
+ t[n] = Cn(r);
1652
1657
  return t;
1653
1658
  }
1654
- const F = typeof window < "u", zn = (e) => F ? window.requestAnimationFrame(e) : setTimeout(e, 16), Wn = (e) => F ? window.cancelAnimationFrame(e) : clearTimeout(e);
1655
- class xn {
1659
+ const L = typeof window < "u", Yn = (e) => L ? window.requestAnimationFrame(e) : setTimeout(e, 16), Zn = (e) => L ? window.cancelAnimationFrame(e) : clearTimeout(e);
1660
+ class Pn {
1656
1661
  options = {
1657
1662
  type: "cache",
1658
1663
  expired: 0,
@@ -1662,8 +1667,8 @@ class xn {
1662
1667
  types;
1663
1668
  constructor(t = {}) {
1664
1669
  this.types = {
1665
- local: F ? window.localStorage : this.caches,
1666
- session: F ? window.sessionStorage : this.caches,
1670
+ local: L ? window.localStorage : this.caches,
1671
+ session: L ? window.sessionStorage : this.caches,
1667
1672
  cache: this.caches
1668
1673
  }, this.config(t);
1669
1674
  }
@@ -1701,16 +1706,16 @@ class xn {
1701
1706
  r === this.caches ? this.caches = {} : r.clear();
1702
1707
  }
1703
1708
  }
1704
- const $n = new xn();
1705
- var Cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1706
- function Ke(e) {
1709
+ const er = new Pn();
1710
+ var _n = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1711
+ function Xe(e) {
1707
1712
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1708
1713
  }
1709
- var re = { exports: {} };
1714
+ var se = { exports: {} };
1710
1715
  (function(e, t) {
1711
1716
  (function(n, r) {
1712
1717
  r(t, e);
1713
- })(Cn, function(n, r) {
1718
+ })(_n, function(n, r) {
1714
1719
  var s = {
1715
1720
  timeout: 5e3,
1716
1721
  jsonpCallback: "callback",
@@ -1733,49 +1738,49 @@ var re = { exports: {} };
1733
1738
  function f(d) {
1734
1739
  var l = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], u = d, y = l.timeout || s.timeout, w = l.jsonpCallback || s.jsonpCallback, p = void 0;
1735
1740
  return new Promise(function(h, E) {
1736
- var b = l.jsonpCallbackFunction || o(), R = w + "_" + b;
1737
- window[b] = function($) {
1741
+ var g = l.jsonpCallbackFunction || o(), O = w + "_" + g;
1742
+ window[g] = function(V) {
1738
1743
  h({
1739
1744
  ok: !0,
1740
1745
  // keep consistent with fetch API
1741
1746
  json: function() {
1742
- return Promise.resolve($);
1747
+ return Promise.resolve(V);
1743
1748
  }
1744
- }), p && clearTimeout(p), c(R), i(b);
1749
+ }), p && clearTimeout(p), c(O), i(g);
1745
1750
  }, u += u.indexOf("?") === -1 ? "?" : "&";
1746
1751
  var S = document.createElement("script");
1747
- S.setAttribute("src", "" + u + w + "=" + b), l.charset && S.setAttribute("charset", l.charset), l.nonce && S.setAttribute("nonce", l.nonce), l.referrerPolicy && S.setAttribute("referrerPolicy", l.referrerPolicy), l.crossorigin && S.setAttribute("crossorigin", "true"), S.id = R, document.getElementsByTagName("head")[0].appendChild(S), p = setTimeout(function() {
1748
- E(new Error("JSONP request to " + d + " timed out")), i(b), c(R), window[b] = function() {
1749
- i(b);
1752
+ S.setAttribute("src", "" + u + w + "=" + g), l.charset && S.setAttribute("charset", l.charset), l.nonce && S.setAttribute("nonce", l.nonce), l.referrerPolicy && S.setAttribute("referrerPolicy", l.referrerPolicy), l.crossorigin && S.setAttribute("crossorigin", "true"), S.id = O, document.getElementsByTagName("head")[0].appendChild(S), p = setTimeout(function() {
1753
+ E(new Error("JSONP request to " + d + " timed out")), i(g), c(O), window[g] = function() {
1754
+ i(g);
1750
1755
  };
1751
1756
  }, y), S.onerror = function() {
1752
- E(new Error("JSONP request to " + d + " failed")), i(b), c(R), p && clearTimeout(p);
1757
+ E(new Error("JSONP request to " + d + " failed")), i(g), c(O), p && clearTimeout(p);
1753
1758
  };
1754
1759
  });
1755
1760
  }
1756
1761
  r.exports = f;
1757
1762
  });
1758
- })(re, re.exports);
1759
- var Pn = re.exports;
1760
- const jn = /* @__PURE__ */ Ke(Pn);
1761
- function Nn(e) {
1762
- if (F) {
1763
+ })(se, se.exports);
1764
+ var jn = se.exports;
1765
+ const Nn = /* @__PURE__ */ Xe(jn);
1766
+ function kn(e) {
1767
+ if (L) {
1763
1768
  const { protocol: t, host: n, pathname: r } = location;
1764
1769
  return `${t}//${n}${e ? r : ""}`;
1765
1770
  } else
1766
1771
  return null;
1767
1772
  }
1768
- function _n(e = "") {
1769
- const t = e.match(et);
1773
+ function Ln(e = "") {
1774
+ const t = e.match(nt);
1770
1775
  return t ? t[0] : "";
1771
1776
  }
1772
- function Ge(e) {
1777
+ function Qe(e) {
1773
1778
  const t = [];
1774
1779
  for (const n in e)
1775
1780
  Object.prototype.hasOwnProperty.call(e, n) && t.push([n, encodeURIComponent(e[n])].join("="));
1776
1781
  return t.join("&");
1777
1782
  }
1778
- function se(e, t, n) {
1783
+ function oe(e, t, n) {
1779
1784
  const r = {};
1780
1785
  e = (e || location.search).replace(/^[^]*\?/, ""), t = t || "&", n = n || "=";
1781
1786
  let s;
@@ -1787,57 +1792,114 @@ function se(e, t, n) {
1787
1792
  s[1] !== e && (r[decodeURIComponent(s[1])] = decodeURIComponent(s[2] || ""));
1788
1793
  return r;
1789
1794
  }
1790
- function Xe(e, t) {
1791
- t = typeof t == "string" ? se(t) : t;
1792
- const n = e.split("?")[0], r = se(e), s = Object.assign({}, r, t), o = Ge(s);
1795
+ function Ye(e, t) {
1796
+ t = typeof t == "string" ? oe(t) : t;
1797
+ const n = e.split("?")[0], r = oe(e), s = Object.assign({}, r, t), o = Qe(s);
1793
1798
  return o ? [n, o].join("?") : e;
1794
1799
  }
1795
- const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1800
+ const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1796
1801
  __proto__: null,
1797
- append: Xe,
1798
- getCurrentHost: Nn,
1799
- getHost: _n,
1800
- parse: se,
1801
- stringify: Ge
1802
+ append: Ye,
1803
+ getCurrentHost: kn,
1804
+ getHost: Ln,
1805
+ parse: oe,
1806
+ stringify: Qe
1802
1807
  }, Symbol.toStringTag, { value: "Module" }));
1803
- async function Kn(e, t = {}) {
1808
+ async function nr(e, t = {}) {
1804
1809
  const { query: n = {} } = t;
1805
- e.includes("${") && (e = xe(e)(n || {}));
1806
- const r = Xe(e, n);
1807
- return await (await jn(r, t)).json();
1810
+ e.includes("${") && (e = Pe(e)(n || {}));
1811
+ const r = Ye(e, n);
1812
+ return await (await Nn(r, t)).json();
1808
1813
  }
1809
- var kn = function(t, n, r) {
1814
+ var Fn = function(t, n, r) {
1810
1815
  var s = document.head || document.getElementsByTagName("head")[0], o = document.createElement("script");
1811
1816
  typeof n == "function" && (r = n, n = {}), n = n || {}, r = r || function() {
1812
- }, o.type = n.type || "text/javascript", o.charset = n.charset || "utf8", o.async = "async" in n ? !!n.async : !0, o.src = t, n.attrs && Fn(o, n.attrs), n.text && (o.text = "" + n.text);
1813
- var i = "onload" in o ? Te : Ln;
1814
- i(o, r), o.onload || Te(o, r), s.appendChild(o);
1817
+ }, o.type = n.type || "text/javascript", o.charset = n.charset || "utf8", o.async = "async" in n ? !!n.async : !0, o.src = t, n.attrs && Dn(o, n.attrs), n.text && (o.text = "" + n.text);
1818
+ var i = "onload" in o ? Ce : Un;
1819
+ i(o, r), o.onload || Ce(o, r), s.appendChild(o);
1815
1820
  };
1816
- function Fn(e, t) {
1821
+ function Dn(e, t) {
1817
1822
  for (var n in t)
1818
1823
  e.setAttribute(n, t[n]);
1819
1824
  }
1820
- function Te(e, t) {
1825
+ function Ce(e, t) {
1821
1826
  e.onload = function() {
1822
1827
  this.onerror = this.onload = null, t(null, e);
1823
1828
  }, e.onerror = function() {
1824
1829
  this.onerror = this.onload = null, t(new Error("Failed to load " + this.src), e);
1825
1830
  };
1826
1831
  }
1827
- function Ln(e, t) {
1832
+ function Un(e, t) {
1828
1833
  e.onreadystatechange = function() {
1829
1834
  this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, t(null, e));
1830
1835
  };
1831
1836
  }
1832
- const Dn = /* @__PURE__ */ Ke(kn);
1833
- function Gn(e, t = {}) {
1837
+ const Bn = /* @__PURE__ */ Xe(Fn);
1838
+ function rr(e, t = {}) {
1834
1839
  return new Promise((n, r) => {
1835
1840
  const { library: s } = t;
1836
- Dn(e, t, (o, i) => {
1841
+ Bn(e, t, (o, i) => {
1837
1842
  o ? r(o) : n(s ? window[s] : void 0);
1838
1843
  });
1839
1844
  });
1840
1845
  }
1846
+ var q = function() {
1847
+ return q = Object.assign || function(e) {
1848
+ for (var t, n = 1, r = arguments.length; n < r; n++) {
1849
+ t = arguments[n];
1850
+ for (var s in t)
1851
+ Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
1852
+ }
1853
+ return e;
1854
+ }, q.apply(this, arguments);
1855
+ }, ie = { debug: -1, log: 0, info: 0, warn: 1, error: 2 }, vn = function(e, t, n, r) {
1856
+ return function() {
1857
+ for (var s = [], o = 0; o < arguments.length; o++)
1858
+ s[o] = arguments[o];
1859
+ if (t && ie[t] <= ie[e] && console[e].apply && (r === "*" || n.startsWith(r)))
1860
+ return console[e].apply(console, In(s, n));
1861
+ };
1862
+ };
1863
+ function In(e, t) {
1864
+ return t !== "*" && (typeof e[0] == "string" ? e[0] = "[" + t + "] " + e[0] : e = ["[" + t + "]"].concat(e)), e;
1865
+ }
1866
+ function Hn(e, t) {
1867
+ if (!e)
1868
+ return {
1869
+ targetLevel: t.level,
1870
+ targetBizName: t.bizName
1871
+ };
1872
+ if (~e.indexOf(":")) {
1873
+ var n = e.split(":");
1874
+ return {
1875
+ targetLevel: n[0],
1876
+ targetBizName: n[1]
1877
+ };
1878
+ }
1879
+ return {
1880
+ targetLevel: e,
1881
+ targetBizName: "*"
1882
+ };
1883
+ }
1884
+ var qn = {
1885
+ level: "warn",
1886
+ bizName: "*"
1887
+ }, Mn = (
1888
+ /** @class */
1889
+ /* @__PURE__ */ function() {
1890
+ function e(t) {
1891
+ t = q(q({}, qn), t);
1892
+ var n = location || {}, r = (/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href) || [])[1], s = Hn(r, t), o = s.targetLevel, i = s.targetBizName;
1893
+ for (var c in ie)
1894
+ this[c] = vn(c, o, t.bizName, i);
1895
+ }
1896
+ return e;
1897
+ }()
1898
+ );
1899
+ function zn(e) {
1900
+ return new Mn(e);
1901
+ }
1902
+ const sr = zn({ level: "log", bizName: "VTJ" });
1841
1903
  /*! js-cookie v3.0.5 | MIT */
1842
1904
  function U(e) {
1843
1905
  for (var t = 1; t < arguments.length; t++) {
@@ -1847,7 +1909,7 @@ function U(e) {
1847
1909
  }
1848
1910
  return e;
1849
1911
  }
1850
- var Un = {
1912
+ var Jn = {
1851
1913
  read: function(e) {
1852
1914
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1853
1915
  },
@@ -1858,7 +1920,7 @@ var Un = {
1858
1920
  );
1859
1921
  }
1860
1922
  };
1861
- function oe(e, t) {
1923
+ function ae(e, t) {
1862
1924
  function n(s, o, i) {
1863
1925
  if (!(typeof document > "u")) {
1864
1926
  i = U({}, 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);
@@ -1896,10 +1958,10 @@ function oe(e, t) {
1896
1958
  );
1897
1959
  },
1898
1960
  withAttributes: function(s) {
1899
- return oe(this.converter, U({}, this.attributes, s));
1961
+ return ae(this.converter, U({}, this.attributes, s));
1900
1962
  },
1901
1963
  withConverter: function(s) {
1902
- return oe(U({}, this.converter, s), this.attributes);
1964
+ return ae(U({}, this.converter, s), this.attributes);
1903
1965
  }
1904
1966
  },
1905
1967
  {
@@ -1908,38 +1970,41 @@ function oe(e, t) {
1908
1970
  }
1909
1971
  );
1910
1972
  }
1911
- var de = oe(Un, { path: "/" });
1912
- function Bn(e, t, n) {
1913
- de.set(e, t, n);
1973
+ var he = ae(Jn, { path: "/" });
1974
+ function Wn(e, t, n) {
1975
+ he.set(e, t, n);
1914
1976
  }
1915
- function In(e) {
1916
- return de.get(e);
1977
+ function $n(e) {
1978
+ return he.get(e);
1917
1979
  }
1918
- function vn(e, t) {
1919
- de.remove(e, t);
1980
+ function Vn(e, t) {
1981
+ he.remove(e, t);
1920
1982
  }
1921
- const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1983
+ const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1922
1984
  __proto__: null,
1923
- get: In,
1924
- remove: vn,
1925
- set: Bn
1985
+ get: $n,
1986
+ remove: Vn,
1987
+ set: Wn
1926
1988
  }, Symbol.toStringTag, { value: "Module" }));
1927
1989
  export {
1928
- Ae as LOCAL_REQUEST_ID,
1929
- Rn as Request,
1930
- xn as Storage,
1931
- Mn as VTJ_UTILS_VERSION,
1932
- g as axios,
1933
- Wn as cAF,
1934
- Xn as cookie,
1935
- Tn as createApi,
1936
- Jn as createApis,
1937
- On as createRequest,
1938
- F as isClient,
1939
- Kn as jsonp,
1940
- Gn as loadScript,
1941
- zn as rAF,
1942
- An as request,
1943
- $n as storage,
1944
- Vn as url
1990
+ xe as LOCAL_REQUEST_ID,
1991
+ Mn as Logger,
1992
+ An as Request,
1993
+ Pn as Storage,
1994
+ Xn as VTJ_UTILS_VERSION,
1995
+ b as axios,
1996
+ Zn as cAF,
1997
+ or as cookie,
1998
+ Cn as createApi,
1999
+ Qn as createApis,
2000
+ Tn as createRequest,
2001
+ zn as getLogger,
2002
+ L as isClient,
2003
+ nr as jsonp,
2004
+ rr as loadScript,
2005
+ sr as logger,
2006
+ Yn as rAF,
2007
+ xn as request,
2008
+ er as storage,
2009
+ tr as url
1945
2010
  };