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

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