@das-fed/utils 6.4.0-test.1 → 6.4.0-test.11

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