@dev-coindcx/network 1.0.0 → 1.0.1-test

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