@baishuyun/ui-business 2.0.0

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