@das-fed/utils 7.1.0-seres.36 → 7.1.0-seres.38

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