@webitel/ui-sdk 26.8.70 → 26.8.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/{clients-BLoUCVC8.js → clients-DcFH7zci.js} +474 -34
  2. package/dist/{components-DBVFjVK_.js → components-CLJ1Ov7C.js} +1335 -5166
  3. package/dist/{composables-DbGvukRz.js → composables-BtWSAI5D.js} +3 -3
  4. package/dist/{debounce-CCzQDuk5.js → debounce-Bp3jy7S5.js} +2 -2
  5. package/dist/{deep-copy-CjYHLk2X.js → deep-copy-CTgLtgMO.js} +1 -1
  6. package/dist/{dist-C_fngTiN.js → dist-CAOIU8xq.js} +1 -1
  7. package/dist/{dist-CugChoYz.js → dist-Crpfx4FA.js} +1 -1
  8. package/dist/{enums-CM8hOd_m.js → enums-Exe9rV90.js} +13 -13
  9. package/dist/genClient-HHiOUj56.js +2891 -0
  10. package/dist/{rolldown-runtime-to5KK-CW.js → rolldown-runtime-BEcgMyyN.js} +2 -5
  11. package/dist/ui-sdk.js +42 -42
  12. package/dist/ui-sdk.umd.cjs +621 -606
  13. package/dist/{useValidation-CDgb424A.js → useValidation-B6tRRqwE.js} +2 -2
  14. package/dist/{useWtTable-BbNT2rXz.js → useWtTable-DLWucXPx.js} +1 -1
  15. package/dist/{utils-DqYQ_mrQ.js → utils-DUAvIlAU.js} +1 -1
  16. package/dist/{vue-i18n-DNulhn2J.js → vue-i18n-Db_oYfO8.js} +2 -2
  17. package/dist/{vue-router-B9nAVQtl.js → vue-router-Dwey8MMv.js} +1 -1
  18. package/dist/{wt-action-bar-Dx2j2yCn.js → wt-action-bar-p7vln7iJ.js} +2 -2
  19. package/dist/{wt-button-TVtG0saz.js → wt-button-DcsMRFys.js} +2 -2
  20. package/dist/{wt-chat-emoji-CveWfqBS.js → wt-chat-emoji-Dj49JD3R.js} +4 -4
  21. package/dist/{wt-datepicker-Dcg6mx6P.js → wt-datepicker-Dy2x6EuG.js} +3 -3
  22. package/dist/{wt-display-chip-items-BmRyOpv7.js → wt-display-chip-items-CwGaaILG.js} +2 -2
  23. package/dist/{wt-dual-panel-sCqa1h4_.js → wt-dual-panel-Bpwt5tFI.js} +1 -1
  24. package/dist/{wt-expansion-card-DKEhPBa9.js → wt-expansion-card-CUy15r4n.js} +2 -2
  25. package/dist/{wt-expansion-panel-BnQ9Ow8D.js → wt-expansion-panel-CeSBv30M.js} +1 -1
  26. package/dist/{wt-galleria-CNwBmLcX.js → wt-galleria-DMCgiiju.js} +2 -2
  27. package/dist/{wt-icon-md5nPR1T.js → wt-icon-CQPF4JgL.js} +1 -1
  28. package/dist/{wt-icon-action-DX9R-hzG.js → wt-icon-action-CJv1qkoB.js} +2 -2
  29. package/dist/{wt-icon-btn-B_hS2f_v.js → wt-icon-btn-UeB3Mo-P.js} +1 -1
  30. package/dist/{wt-notifications-bar-k3Osz6gY.js → wt-notifications-bar-DGhAEm27.js} +2 -2
  31. package/dist/{wt-pagination-DNjYIHjv.js → wt-pagination-G2ZGU4Pi.js} +1 -1
  32. package/dist/{wt-player-R3rAiIxl.js → wt-player-DaqzOn77.js} +5 -5
  33. package/dist/{wt-popover-B0SIrVz6.js → wt-popover-BCYPu5NC.js} +1 -1
  34. package/dist/{wt-screen-recordings-action-DCdRUBbd.js → wt-screen-recordings-action-X2XVdxF6.js} +1 -1
  35. package/dist/{wt-search-bar-DlNX3Sr8.js → wt-search-bar-CG_YE-_0.js} +2 -2
  36. package/dist/{wt-selection-popup-C74__W9Z.js → wt-selection-popup-CjYw4ppb.js} +1 -1
  37. package/dist/{wt-send-message-popup-Ci3b-7uX.js → wt-send-message-popup-CLaDqvAt.js} +22 -22
  38. package/dist/{wt-slider-4xCDNWv-.js → wt-slider-BPzRTeYU.js} +1 -1
  39. package/dist/{wt-start-page-BUjRx6RA.js → wt-start-page-BFQExFUj.js} +1 -1
  40. package/dist/{wt-status-select-C2-LFbrZ.js → wt-status-select-BaLKq7BJ.js} +2 -2
  41. package/dist/{wt-table-BzGCTKMW.js → wt-table-BI2cptEK.js} +2 -2
  42. package/dist/{wt-table-column-select-CuQbrCkx.js → wt-table-column-select-D4c56HPB.js} +3 -3
  43. package/dist/{wt-timepicker-BltIOjh9.js → wt-timepicker-DAik2EyZ.js} +3 -3
  44. package/dist/{wt-toast-DsIX8ZW_.js → wt-toast-D4WUFGQd.js} +2 -2
  45. package/dist/{wt-tree-CfvNlw7N.js → wt-tree-BYk31Ees.js} +3 -3
  46. package/dist/{wt-tree-table-R02DpJ7M.js → wt-tree-table-vdfMB9Wk.js} +2 -2
  47. package/dist/{wt-type-extension-value-input-BGb_JCgp.js → wt-type-extension-value-input-lmFueBjI.js} +18 -18
  48. package/dist/{wt-vidstack-player-luoZqZ5-.js → wt-vidstack-player-vuSKb7KF.js} +5 -5
  49. package/package.json +10 -4
  50. package/src/enums/ExportFormat/ExportFormat.enum.ts +6 -0
  51. package/src/enums/TypesExportedSettings/TypesExportedSettings.enum.ts +9 -0
  52. package/src/enums/index.ts +37 -82
  53. package/src/scripts/{downloadFile → file/downloadFile}/downloadFile.ts +1 -3
  54. package/src/scripts/{downloadFile → file/downloadFile}/types/downloadFile.types.ts +2 -2
  55. package/src/scripts/file/index.ts +14 -0
  56. package/src/scripts/index.js +15 -29
  57. package/types/.tsbuildinfo +1 -1
  58. package/types/enums/ExportFormat/ExportFormat.enum.d.ts +5 -0
  59. package/types/enums/TypesExportedSettings/TypesExportedSettings.enum.d.ts +5 -5
  60. package/types/enums/index.d.ts +37 -38
  61. package/types/scripts/file/downloadFile/downloadFile.d.ts +2 -0
  62. package/types/scripts/{downloadFile → file/downloadFile}/types/downloadFile.types.d.ts +2 -2
  63. package/types/scripts/file/index.d.ts +10 -0
  64. package/types/scripts/index.d.ts +30 -37
  65. package/dist/genClient-BqTmfnDx.js +0 -2088
  66. package/src/enums/TypesExportedSettings/TypesExportedSettings.enum.js +0 -4
  67. package/src/scripts/downloadFile/types/fileFormat.types.ts +0 -4
  68. package/types/scripts/downloadFile/downloadFile.d.ts +0 -3
  69. package/types/scripts/downloadFile/types/fileFormat.types.d.ts +0 -4
  70. /package/src/scripts/{storageFile → file/storageFile}/downloadFilesAsZip.ts +0 -0
  71. /package/src/scripts/{storageFile → file/storageFile}/downloadStorageFile.ts +0 -0
  72. /package/src/scripts/{storageFile → file/storageFile}/getFileTypeIcon.ts +0 -0
  73. /package/src/scripts/{storageFile → file/storageFile}/getStorageFileUrl.ts +0 -0
  74. /package/src/scripts/{storageFile → file/storageFile}/openStorageFileInNewTab.ts +0 -0
  75. /package/types/scripts/{storageFile → file/storageFile}/downloadFilesAsZip.d.ts +0 -0
  76. /package/types/scripts/{storageFile → file/storageFile}/downloadStorageFile.d.ts +0 -0
  77. /package/types/scripts/{storageFile → file/storageFile}/getFileTypeIcon.d.ts +0 -0
  78. /package/types/scripts/{storageFile → file/storageFile}/getStorageFileUrl.d.ts +0 -0
  79. /package/types/scripts/{storageFile → file/storageFile}/openStorageFileInNewTab.d.ts +0 -0
@@ -1,2088 +0,0 @@
1
- import { r as e } from "./rolldown-runtime-to5KK-CW.js";
2
- import { n as t, t as n } from "./dist-C_fngTiN.js";
3
- import { n as r, t as i } from "./dist-CugChoYz.js";
4
- import { A as a, j as o } from "./components-DBVFjVK_.js";
5
- //#region node_modules/qs-esm/lib/formats.js
6
- var s = String.prototype.replace, c = /%20/g, l = {
7
- RFC1738: "RFC1738",
8
- RFC3986: "RFC3986"
9
- }, u = {
10
- RFC1738: function(e) {
11
- return s.call(e, c, "+");
12
- },
13
- RFC3986: function(e) {
14
- return String(e);
15
- }
16
- }, d = l.RFC1738;
17
- l.RFC3986;
18
- var f = l.RFC3986, p = Array.isArray, m = (function() {
19
- let e = [];
20
- for (let t = 0; t < 256; ++t) e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
21
- return e;
22
- })(), h = 1024, g = function(e, t, n, r, i) {
23
- if (e.length === 0) return e;
24
- let a = e;
25
- if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1") return escape(a).replace(/%u[0-9a-f]{4}/gi, function(e) {
26
- return "%26%23" + parseInt(e.slice(2), 16) + "%3B";
27
- });
28
- let o = "";
29
- for (let e = 0; e < a.length; e += h) {
30
- let t = a.length >= h ? a.slice(e, e + h) : a, n = [];
31
- for (let e = 0; e < t.length; ++e) {
32
- let r = t.charCodeAt(e);
33
- if (r === 45 || r === 46 || r === 95 || r === 126 || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122 || i === d && (r === 40 || r === 41)) {
34
- n[n.length] = t.charAt(e);
35
- continue;
36
- }
37
- if (r < 128) {
38
- n[n.length] = m[r];
39
- continue;
40
- }
41
- if (r < 2048) {
42
- n[n.length] = m[192 | r >> 6] + m[128 | r & 63];
43
- continue;
44
- }
45
- if (r < 55296 || r >= 57344) {
46
- n[n.length] = m[224 | r >> 12] + m[128 | r >> 6 & 63] + m[128 | r & 63];
47
- continue;
48
- }
49
- e += 1, r = 65536 + ((r & 1023) << 10 | t.charCodeAt(e) & 1023), n[n.length] = m[240 | r >> 18] + m[128 | r >> 12 & 63] + m[128 | r >> 6 & 63] + m[128 | r & 63];
50
- }
51
- o += n.join("");
52
- }
53
- return o;
54
- }, _ = function(e) {
55
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
56
- }, v = function(e, t) {
57
- if (p(e)) {
58
- let n = [];
59
- for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
60
- return n;
61
- }
62
- return t(e);
63
- }, y = Object.prototype.hasOwnProperty, b = {
64
- brackets: function(e) {
65
- return e + "[]";
66
- },
67
- comma: "comma",
68
- indices: function(e, t) {
69
- return e + "[" + t + "]";
70
- },
71
- repeat: function(e) {
72
- return e;
73
- }
74
- }, x = Array.isArray, S = Array.prototype.push, ee = function(e, t) {
75
- S.apply(e, x(t) ? t : [t]);
76
- }, C = Date.prototype.toISOString, w = f, T = {
77
- addQueryPrefix: !1,
78
- allowDots: !1,
79
- allowEmptyArrays: !1,
80
- arrayFormat: "indices",
81
- charset: "utf-8",
82
- charsetSentinel: !1,
83
- delimiter: "&",
84
- encode: !0,
85
- encodeDotInKeys: !1,
86
- encoder: g,
87
- encodeValuesOnly: !1,
88
- format: w,
89
- formatter: u[w],
90
- indices: !1,
91
- serializeDate: function(e) {
92
- return C.call(e);
93
- },
94
- skipNulls: !1,
95
- strictNullHandling: !1
96
- }, te = function(e) {
97
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
98
- }, ne = {}, re = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, y) {
99
- let b = e, S = y, C = 0, w = !1;
100
- for (; (S = S.get(ne)) !== void 0 && !w;) {
101
- let t = S.get(e);
102
- if (C += 1, t !== void 0) {
103
- if (t === C) throw RangeError("Cyclic object value");
104
- w = !0;
105
- }
106
- S.get(ne) === void 0 && (C = 0);
107
- }
108
- if (typeof l == "function" ? b = l(t, b) : b instanceof Date ? b = f(b) : n === "comma" && x(b) && (b = v(b, function(e) {
109
- return e instanceof Date ? f(e) : e;
110
- })), b === null) {
111
- if (a) return c && !h ? c(t, T.encoder, g, "key", p) : t;
112
- b = "";
113
- }
114
- if (te(b) || _(b)) return c ? [m(h ? t : c(t, T.encoder, g, "key", p)) + "=" + m(c(b, T.encoder, g, "value", p))] : [m(t) + "=" + m(String(b))];
115
- let E = [];
116
- if (b === void 0) return E;
117
- let D;
118
- if (n === "comma" && x(b)) h && c && (b = v(b, c)), D = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
119
- else if (x(l)) D = l;
120
- else {
121
- let e = Object.keys(b);
122
- D = u ? e.sort(u) : e;
123
- }
124
- let O = s ? t.replace(/\./g, "%2E") : t, k = r && x(b) && b.length === 1 ? O + "[]" : O;
125
- if (i && x(b) && b.length === 0) return k + "[]";
126
- for (let t = 0; t < D.length; ++t) {
127
- let _ = D[t], v = typeof _ == "object" && _.value !== void 0 ? _.value : b[_];
128
- if (o && v === null) continue;
129
- let S = d && s ? _.replace(/\./g, "%2E") : _, w = x(b) ? typeof n == "function" ? n(k, S) : k : k + (d ? "." + S : "[" + S + "]");
130
- y.set(e, C);
131
- let T = /* @__PURE__ */ new WeakMap();
132
- T.set(ne, y), ee(E, re(v, w, n, r, i, a, o, s, n === "comma" && h && x(b) ? null : c, l, u, d, f, p, m, h, g, T));
133
- }
134
- return E;
135
- }, E = function(e) {
136
- if (!e) return T;
137
- if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
138
- if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
139
- if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
140
- let t = e.charset || T.charset;
141
- if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
142
- let n = f;
143
- if (e.format !== void 0) {
144
- if (!y.call(u, e.format)) throw TypeError("Unknown format option provided.");
145
- n = e.format;
146
- }
147
- let r = u[n], i = T.filter;
148
- (typeof e.filter == "function" || x(e.filter)) && (i = e.filter);
149
- let a;
150
- if (a = e.arrayFormat in b ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : T.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
151
- let o = e.allowDots === void 0 ? e.encodeDotInKeys === !0 ? !0 : T.allowDots : !!e.allowDots;
152
- return {
153
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : T.addQueryPrefix,
154
- allowDots: o,
155
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : T.allowEmptyArrays,
156
- arrayFormat: a,
157
- charset: t,
158
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : T.charsetSentinel,
159
- commaRoundTrip: e.commaRoundTrip,
160
- delimiter: e.delimiter === void 0 ? T.delimiter : e.delimiter,
161
- encode: typeof e.encode == "boolean" ? e.encode : T.encode,
162
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : T.encodeDotInKeys,
163
- encoder: typeof e.encoder == "function" ? e.encoder : T.encoder,
164
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : T.encodeValuesOnly,
165
- filter: i,
166
- format: n,
167
- formatter: r,
168
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : T.serializeDate,
169
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : T.skipNulls,
170
- sort: typeof e.sort == "function" ? e.sort : null,
171
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling
172
- };
173
- };
174
- function D(e, t) {
175
- let n = e, r = E(t), i, a;
176
- typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : x(r.filter) && (a = r.filter, i = a);
177
- let o = [];
178
- if (typeof n != "object" || !n) return "";
179
- let s = b[r.arrayFormat], c = s === "comma" && r.commaRoundTrip;
180
- i ||= Object.keys(n), r.sort && i.sort(r.sort);
181
- let l = /* @__PURE__ */ new WeakMap();
182
- for (let e = 0; e < i.length; ++e) {
183
- let t = i[e];
184
- r.skipNulls && n[t] === null || ee(o, re(n[t], t, s, c, r.allowEmptyArrays, r.strictNullHandling, r.skipNulls, r.encodeDotInKeys, r.encode ? r.encoder : null, r.filter, r.sort, r.allowDots, r.serializeDate, r.format, r.formatter, r.encodeValuesOnly, r.charset, l));
185
- }
186
- let u = o.join(r.delimiter), d = r.addQueryPrefix === !0 ? "?" : "";
187
- return r.charsetSentinel && (r.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), u.length > 0 ? d + u : "";
188
- }
189
- t(), i();
190
- function O(e, t) {
191
- return function() {
192
- return e.apply(t, arguments);
193
- };
194
- }
195
- //#endregion
196
- //#region node_modules/axios/lib/utils.js
197
- var { toString: k } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: j, toStringTag: ie } = Symbol, M = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), N = (e, t) => {
198
- let n = e, r = [];
199
- for (; n != null && n !== Object.prototype;) {
200
- if (r.indexOf(n) !== -1) return !1;
201
- if (r.push(n), M(n, t)) return !0;
202
- n = A(n);
203
- }
204
- return !1;
205
- }, ae = (e, t) => e != null && N(e, t) ? e[t] : void 0, P = ((e) => (t) => {
206
- let n = k.call(t);
207
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
208
- })(Object.create(null)), F = (e) => (e = e.toLowerCase(), (t) => P(t) === e), oe = (e) => (t) => typeof t === e, { isArray: I } = Array, L = oe("undefined");
209
- function R(e) {
210
- return e !== null && !L(e) && e.constructor !== null && !L(e.constructor) && z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
211
- }
212
- var se = F("ArrayBuffer");
213
- function ce(e) {
214
- let t;
215
- return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && se(e.buffer), t;
216
- }
217
- var le = oe("string"), z = oe("function"), ue = oe("number"), B = (e) => typeof e == "object" && !!e, de = (e) => e === !0 || e === !1, fe = (e) => {
218
- if (!B(e)) return !1;
219
- let t = A(e);
220
- return (t === null || t === Object.prototype || A(t) === null) && !N(e, ie) && !N(e, j);
221
- }, pe = (e) => {
222
- if (!B(e) || R(e)) return !1;
223
- try {
224
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
225
- } catch {
226
- return !1;
227
- }
228
- }, me = F("Date"), he = F("File"), ge = (e) => !!(e && e.uri !== void 0), _e = (e) => e && e.getParts !== void 0, ve = F("Blob"), ye = F("FileList"), be = (e) => B(e) && z(e.pipe);
229
- function xe() {
230
- return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : n === void 0 ? {} : n;
231
- }
232
- var Se = xe(), Ce = Se.FormData === void 0 ? void 0 : Se.FormData, we = (e) => {
233
- if (!e) return !1;
234
- if (Ce && e instanceof Ce) return !0;
235
- let t = A(e);
236
- if (!t || t === Object.prototype || !z(e.append)) return !1;
237
- let n = P(e);
238
- return n === "formdata" || n === "object" && z(e.toString) && e.toString() === "[object FormData]";
239
- }, Te = F("URLSearchParams"), [Ee, De, Oe, ke] = [
240
- "ReadableStream",
241
- "Request",
242
- "Response",
243
- "Headers"
244
- ].map(F), Ae = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
245
- function V(e, t, { allOwnKeys: n = !1 } = {}) {
246
- if (e == null) return;
247
- let r, i;
248
- if (typeof e != "object" && (e = [e]), I(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
249
- else {
250
- if (R(e)) return;
251
- let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
252
- for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
253
- }
254
- }
255
- function je(e, t) {
256
- if (R(e)) return null;
257
- t = t.toLowerCase();
258
- let n = Object.keys(e), r = n.length, i;
259
- for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
260
- return null;
261
- }
262
- var H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : n, Me = (e) => !L(e) && e !== H;
263
- function Ne(...e) {
264
- let { caseless: t, skipUndefined: n } = Me(this) && this || {}, r = {}, i = (e, i) => {
265
- if (i === "__proto__" || i === "constructor" || i === "prototype") return;
266
- let a = t && typeof i == "string" && je(r, i) || i, o = M(r, a) ? r[a] : void 0;
267
- fe(o) && fe(e) ? r[a] = Ne(o, e) : fe(e) ? r[a] = Ne({}, e) : I(e) ? r[a] = e.slice() : (!n || !L(e)) && (r[a] = e);
268
- };
269
- for (let t = 0, n = e.length; t < n; t++) {
270
- let n = e[t];
271
- if (!n || R(n) || (V(n, i), typeof n != "object" || I(n))) continue;
272
- let r = Object.getOwnPropertySymbols(n);
273
- for (let e = 0; e < r.length; e++) {
274
- let t = r[e];
275
- Ge.call(n, t) && i(n[t], t);
276
- }
277
- }
278
- return r;
279
- }
280
- var Pe = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (t, r) => {
281
- n && z(t) ? Object.defineProperty(e, r, {
282
- __proto__: null,
283
- value: O(t, n),
284
- writable: !0,
285
- enumerable: !0,
286
- configurable: !0
287
- }) : Object.defineProperty(e, r, {
288
- __proto__: null,
289
- value: t,
290
- writable: !0,
291
- enumerable: !0,
292
- configurable: !0
293
- });
294
- }, { allOwnKeys: r }), e), Fe = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ie = (e, t, n, r) => {
295
- e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
296
- __proto__: null,
297
- value: e,
298
- writable: !0,
299
- enumerable: !1,
300
- configurable: !0
301
- }), Object.defineProperty(e, "super", {
302
- __proto__: null,
303
- value: t.prototype
304
- }), n && Object.assign(e.prototype, n);
305
- }, Le = (e, t, n, r) => {
306
- let i, a, o, s = {};
307
- if (t ||= {}, e == null) return t;
308
- do {
309
- for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
310
- e = n !== !1 && A(e);
311
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
312
- return t;
313
- }, Re = (e, t, n) => {
314
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
315
- let r = e.indexOf(t, n);
316
- return r !== -1 && r === n;
317
- }, ze = (e) => {
318
- if (!e) return null;
319
- if (I(e)) return e;
320
- let t = e.length;
321
- if (!ue(t)) return null;
322
- let n = Array(t);
323
- for (; t-- > 0;) n[t] = e[t];
324
- return n;
325
- }, Be = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), Ve = (e, t) => {
326
- let n = (e && e[j]).call(e), r;
327
- for (; (r = n.next()) && !r.done;) {
328
- let n = r.value;
329
- t.call(e, n[0], n[1]);
330
- }
331
- }, He = (e, t) => {
332
- let n, r = [];
333
- for (; (n = e.exec(t)) !== null;) r.push(n);
334
- return r;
335
- }, Ue = F("HTMLFormElement"), We = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
336
- return t.toUpperCase() + n;
337
- }), { propertyIsEnumerable: Ge } = Object.prototype, Ke = F("RegExp"), qe = (e, t) => {
338
- let n = Object.getOwnPropertyDescriptors(e), r = {};
339
- V(n, (n, i) => {
340
- let a;
341
- (a = t(n, i, e)) !== !1 && (r[i] = a || n);
342
- }), Object.defineProperties(e, r);
343
- }, Je = (e) => {
344
- qe(e, (t, n) => {
345
- if (z(e) && [
346
- "arguments",
347
- "caller",
348
- "callee"
349
- ].includes(n)) return !1;
350
- let r = e[n];
351
- if (z(r)) {
352
- if (t.enumerable = !1, "writable" in t) {
353
- t.writable = !1;
354
- return;
355
- }
356
- t.set ||= () => {
357
- throw Error("Can not rewrite read-only method '" + n + "'");
358
- };
359
- }
360
- });
361
- }, Ye = (e, t) => {
362
- let n = {}, r = (e) => {
363
- e.forEach((e) => {
364
- n[e] = !0;
365
- });
366
- };
367
- return I(e) ? r(e) : r(String(e).split(t)), n;
368
- }, Xe = () => {}, Ze = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
369
- function Qe(e) {
370
- return !!(e && z(e.append) && e[ie] === "FormData" && e[j]);
371
- }
372
- var $e = (e) => {
373
- let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
374
- if (B(e)) {
375
- if (t.has(e)) return;
376
- if (R(e)) return e;
377
- if (!("toJSON" in e)) {
378
- t.add(e);
379
- let r = I(e) ? [] : {};
380
- return V(e, (e, t) => {
381
- let i = n(e);
382
- !L(i) && (r[t] = i);
383
- }), t.delete(e), r;
384
- }
385
- }
386
- return e;
387
- };
388
- return n(e);
389
- }, et = F("AsyncFunction"), tt = (e) => e && (B(e) || z(e)) && z(e.then) && z(e.catch), nt = ((e, t) => e ? setImmediate : t ? ((e, t) => (H.addEventListener("message", ({ source: n, data: r }) => {
390
- n === H && r === e && t.length && t.shift()();
391
- }, !1), (n) => {
392
- t.push(n), H.postMessage(e, "*");
393
- }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", z(H.postMessage)), rt = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : r !== void 0 && r.nextTick || nt, it = (e) => e != null && z(e[j]), U = {
394
- isArray: I,
395
- isArrayBuffer: se,
396
- isBuffer: R,
397
- isFormData: we,
398
- isArrayBufferView: ce,
399
- isString: le,
400
- isNumber: ue,
401
- isBoolean: de,
402
- isObject: B,
403
- isPlainObject: fe,
404
- isEmptyObject: pe,
405
- isReadableStream: Ee,
406
- isRequest: De,
407
- isResponse: Oe,
408
- isHeaders: ke,
409
- isUndefined: L,
410
- isDate: me,
411
- isFile: he,
412
- isReactNativeBlob: ge,
413
- isReactNative: _e,
414
- isBlob: ve,
415
- isRegExp: Ke,
416
- isFunction: z,
417
- isStream: be,
418
- isURLSearchParams: Te,
419
- isTypedArray: Be,
420
- isFileList: ye,
421
- forEach: V,
422
- merge: Ne,
423
- extend: Pe,
424
- trim: Ae,
425
- stripBOM: Fe,
426
- inherits: Ie,
427
- toFlatObject: Le,
428
- kindOf: P,
429
- kindOfTest: F,
430
- endsWith: Re,
431
- toArray: ze,
432
- forEachEntry: Ve,
433
- matchAll: He,
434
- isHTMLForm: Ue,
435
- hasOwnProperty: M,
436
- hasOwnProp: M,
437
- hasOwnInPrototypeChain: N,
438
- getSafeProp: ae,
439
- reduceDescriptors: qe,
440
- freezeMethods: Je,
441
- toObjectSet: Ye,
442
- toCamelCase: We,
443
- noop: Xe,
444
- toFiniteNumber: Ze,
445
- findKey: je,
446
- global: H,
447
- isContextDefined: Me,
448
- isSpecCompliantForm: Qe,
449
- toJSONObject: $e,
450
- isAsyncFn: et,
451
- isThenable: tt,
452
- setImmediate: nt,
453
- asap: rt,
454
- isIterable: it,
455
- isSafeIterable: (e) => e != null && N(e, j) && it(e)
456
- };
457
- //#endregion
458
- //#region node_modules/axios/lib/helpers/parseHeaders.js
459
- o();
460
- var at = U.toObjectSet([
461
- "age",
462
- "authorization",
463
- "content-length",
464
- "content-type",
465
- "etag",
466
- "expires",
467
- "from",
468
- "host",
469
- "if-modified-since",
470
- "if-unmodified-since",
471
- "last-modified",
472
- "location",
473
- "max-forwards",
474
- "proxy-authorization",
475
- "referer",
476
- "retry-after",
477
- "user-agent"
478
- ]), ot = (e) => {
479
- let t = {}, n, r, i;
480
- return e && e.split("\n").forEach(function(e) {
481
- i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && at[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
482
- }), t;
483
- };
484
- //#endregion
485
- //#region node_modules/axios/lib/helpers/sanitizeHeaderValue.js
486
- function st(e) {
487
- let t = 0, n = e.length;
488
- for (; t < n;) {
489
- let n = e.charCodeAt(t);
490
- if (n !== 9 && n !== 32) break;
491
- t += 1;
492
- }
493
- for (; n > t;) {
494
- let t = e.charCodeAt(n - 1);
495
- if (t !== 9 && t !== 32) break;
496
- --n;
497
- }
498
- return t === 0 && n === e.length ? e : e.slice(t, n);
499
- }
500
- var ct = /* @__PURE__ */ RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), lt = /* @__PURE__ */ RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
501
- function ut(e, t) {
502
- return U.isArray(e) ? e.map((e) => ut(e, t)) : st(String(e).replace(t, ""));
503
- }
504
- var dt = (e) => ut(e, ct), ft = (e) => ut(e, lt);
505
- function pt(e) {
506
- let t = Object.create(null);
507
- return U.forEach(e.toJSON(), (e, n) => {
508
- t[n] = ft(e);
509
- }), t;
510
- }
511
- //#endregion
512
- //#region node_modules/axios/lib/core/AxiosHeaders.js
513
- var mt = Symbol("internals");
514
- function W(e) {
515
- return e && String(e).trim().toLowerCase();
516
- }
517
- function ht(e) {
518
- return e === !1 || e == null ? e : U.isArray(e) ? e.map(ht) : dt(String(e));
519
- }
520
- function gt(e) {
521
- let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
522
- for (; r = n.exec(e);) t[r[1]] = r[2];
523
- return t;
524
- }
525
- var _t = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
526
- function vt(e, t, n, r, i) {
527
- if (U.isFunction(r)) return r.call(this, t, n);
528
- if (i && (t = n), U.isString(t)) {
529
- if (U.isString(r)) return t.indexOf(r) !== -1;
530
- if (U.isRegExp(r)) return r.test(t);
531
- }
532
- }
533
- function yt(e) {
534
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
535
- }
536
- function bt(e, t) {
537
- let n = U.toCamelCase(" " + t);
538
- [
539
- "get",
540
- "set",
541
- "has"
542
- ].forEach((r) => {
543
- Object.defineProperty(e, r + n, {
544
- __proto__: null,
545
- value: function(e, n, i) {
546
- return this[r].call(this, t, e, n, i);
547
- },
548
- configurable: !0
549
- });
550
- });
551
- }
552
- var G = class {
553
- constructor(e) {
554
- e && this.set(e);
555
- }
556
- set(e, t, n) {
557
- let r = this;
558
- function i(e, t, n) {
559
- let i = W(t);
560
- if (!i) return;
561
- let a = U.findKey(r, i);
562
- (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = ht(e));
563
- }
564
- let a = (e, t) => U.forEach(e, (e, n) => i(e, n, t));
565
- if (U.isPlainObject(e) || e instanceof this.constructor) a(e, t);
566
- else if (U.isString(e) && (e = e.trim()) && !_t(e)) a(ot(e), t);
567
- else if (U.isObject(e) && U.isSafeIterable(e)) {
568
- let n = Object.create(null), r, i;
569
- for (let t of e) {
570
- if (!U.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
571
- i = t[0], U.hasOwnProp(n, i) ? (r = n[i], n[i] = U.isArray(r) ? [...r, t[1]] : [r, t[1]]) : n[i] = t[1];
572
- }
573
- a(n, t);
574
- } else e != null && i(t, e, n);
575
- return this;
576
- }
577
- get(e, t) {
578
- if (e = W(e), e) {
579
- let n = U.findKey(this, e);
580
- if (n) {
581
- let e = this[n];
582
- if (!t) return e;
583
- if (t === !0) return gt(e);
584
- if (U.isFunction(t)) return t.call(this, e, n);
585
- if (U.isRegExp(t)) return t.exec(e);
586
- throw TypeError("parser must be boolean|regexp|function");
587
- }
588
- }
589
- }
590
- has(e, t) {
591
- if (e = W(e), e) {
592
- let n = U.findKey(this, e);
593
- return !!(n && this[n] !== void 0 && (!t || vt(this, this[n], n, t)));
594
- }
595
- return !1;
596
- }
597
- delete(e, t) {
598
- let n = this, r = !1;
599
- function i(e) {
600
- if (e = W(e), e) {
601
- let i = U.findKey(n, e);
602
- i && (!t || vt(n, n[i], i, t)) && (delete n[i], r = !0);
603
- }
604
- }
605
- return U.isArray(e) ? e.forEach(i) : i(e), r;
606
- }
607
- clear(e) {
608
- let t = Object.keys(this), n = t.length, r = !1;
609
- for (; n--;) {
610
- let i = t[n];
611
- (!e || vt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
612
- }
613
- return r;
614
- }
615
- normalize(e) {
616
- let t = this, n = {};
617
- return U.forEach(this, (r, i) => {
618
- let a = U.findKey(n, i);
619
- if (a) {
620
- t[a] = ht(r), delete t[i];
621
- return;
622
- }
623
- let o = e ? yt(i) : String(i).trim();
624
- o !== i && delete t[i], t[o] = ht(r), n[o] = !0;
625
- }), this;
626
- }
627
- concat(...e) {
628
- return this.constructor.concat(this, ...e);
629
- }
630
- toJSON(e) {
631
- let t = Object.create(null);
632
- return U.forEach(this, (n, r) => {
633
- n != null && n !== !1 && (t[r] = e && U.isArray(n) ? n.join(", ") : n);
634
- }), t;
635
- }
636
- [Symbol.iterator]() {
637
- return Object.entries(this.toJSON())[Symbol.iterator]();
638
- }
639
- toString() {
640
- return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
641
- }
642
- getSetCookie() {
643
- return this.get("set-cookie") || [];
644
- }
645
- get [Symbol.toStringTag]() {
646
- return "AxiosHeaders";
647
- }
648
- static from(e) {
649
- return e instanceof this ? e : new this(e);
650
- }
651
- static concat(e, ...t) {
652
- let n = new this(e);
653
- return t.forEach((e) => n.set(e)), n;
654
- }
655
- static accessor(e) {
656
- let t = (this[mt] = this[mt] = { accessors: {} }).accessors, n = this.prototype;
657
- function r(e) {
658
- let r = W(e);
659
- t[r] || (bt(n, e), t[r] = !0);
660
- }
661
- return U.isArray(e) ? e.forEach(r) : r(e), this;
662
- }
663
- };
664
- G.accessor([
665
- "Content-Type",
666
- "Content-Length",
667
- "Accept",
668
- "Accept-Encoding",
669
- "User-Agent",
670
- "Authorization"
671
- ]), U.reduceDescriptors(G.prototype, ({ value: e }, t) => {
672
- let n = t[0].toUpperCase() + t.slice(1);
673
- return {
674
- get: () => e,
675
- set(e) {
676
- this[n] = e;
677
- }
678
- };
679
- }), U.freezeMethods(G);
680
- //#endregion
681
- //#region node_modules/axios/lib/core/AxiosError.js
682
- var xt = "[REDACTED ****]";
683
- function St(e) {
684
- if (U.hasOwnProp(e, "toJSON")) return !0;
685
- let t = Object.getPrototypeOf(e);
686
- for (; t && t !== Object.prototype;) {
687
- if (U.hasOwnProp(t, "toJSON")) return !0;
688
- t = Object.getPrototypeOf(t);
689
- }
690
- return !1;
691
- }
692
- function Ct(e, t) {
693
- let n = new Set(t.map((e) => String(e).toLowerCase())), r = [], i = (e) => {
694
- if (typeof e != "object" || !e || U.isBuffer(e)) return e;
695
- if (r.indexOf(e) !== -1) return;
696
- e instanceof G && (e = e.toJSON()), r.push(e);
697
- let t;
698
- if (U.isArray(e)) t = [], e.forEach((e, n) => {
699
- let r = i(e);
700
- U.isUndefined(r) || (t[n] = r);
701
- });
702
- else {
703
- if (!U.isPlainObject(e) && St(e)) return r.pop(), e;
704
- t = Object.create(null);
705
- for (let [r, a] of Object.entries(e)) {
706
- let e = n.has(r.toLowerCase()) ? xt : i(a);
707
- U.isUndefined(e) || (t[r] = e);
708
- }
709
- }
710
- return r.pop(), t;
711
- };
712
- return i(e);
713
- }
714
- var K = class e extends Error {
715
- static from(t, n, r, i, a, o) {
716
- let s = new e(t.message, n || t.code, r, i, a);
717
- return Object.defineProperty(s, "cause", {
718
- __proto__: null,
719
- value: t,
720
- writable: !0,
721
- enumerable: !1,
722
- configurable: !0
723
- }), s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
724
- }
725
- constructor(e, t, n, r, i) {
726
- super(e), Object.defineProperty(this, "message", {
727
- __proto__: null,
728
- value: e,
729
- enumerable: !0,
730
- writable: !0,
731
- configurable: !0
732
- }), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
733
- }
734
- toJSON() {
735
- let e = this.config, t = e && U.hasOwnProp(e, "redact") ? e.redact : void 0, n = U.isArray(t) && t.length > 0 ? Ct(e, t) : U.toJSONObject(e);
736
- return {
737
- message: this.message,
738
- name: this.name,
739
- description: this.description,
740
- number: this.number,
741
- fileName: this.fileName,
742
- lineNumber: this.lineNumber,
743
- columnNumber: this.columnNumber,
744
- stack: this.stack,
745
- config: n,
746
- code: this.code,
747
- status: this.status
748
- };
749
- }
750
- };
751
- K.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", K.ERR_BAD_OPTION = "ERR_BAD_OPTION", K.ECONNABORTED = "ECONNABORTED", K.ETIMEDOUT = "ETIMEDOUT", K.ECONNREFUSED = "ECONNREFUSED", K.ERR_NETWORK = "ERR_NETWORK", K.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", K.ERR_DEPRECATED = "ERR_DEPRECATED", K.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", K.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", K.ERR_CANCELED = "ERR_CANCELED", K.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", K.ERR_INVALID_URL = "ERR_INVALID_URL", K.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
752
- function wt(e) {
753
- return U.isPlainObject(e) || U.isArray(e);
754
- }
755
- function Tt(e) {
756
- return U.endsWith(e, "[]") ? e.slice(0, -2) : e;
757
- }
758
- function Et(e, t, n) {
759
- return e ? e.concat(t).map(function(e, t) {
760
- return e = Tt(e), !n && t ? "[" + e + "]" : e;
761
- }).join(n ? "." : "") : t;
762
- }
763
- function Dt(e) {
764
- return U.isArray(e) && !e.some(wt);
765
- }
766
- var Ot = U.toFlatObject(U, {}, null, function(e) {
767
- return /^is[A-Z]/.test(e);
768
- });
769
- function kt(e, t, n) {
770
- if (!U.isObject(e)) throw TypeError("target must be an object");
771
- t ||= new FormData(), n = U.toFlatObject(n, {
772
- metaTokens: !0,
773
- dots: !1,
774
- indexes: !1
775
- }, !1, function(e, t) {
776
- return !U.isUndefined(t[e]);
777
- });
778
- let r = n.metaTokens, i = n.visitor || h, o = n.dots, s = n.indexes, c = n.Blob || typeof Blob < "u" && Blob, l = n.maxDepth === void 0 ? 100 : n.maxDepth, u = c && U.isSpecCompliantForm(t), d = [];
779
- if (!U.isFunction(i)) throw TypeError("visitor must be a function");
780
- function f(e) {
781
- if (e === null) return "";
782
- if (U.isDate(e)) return e.toISOString();
783
- if (U.isBoolean(e)) return e.toString();
784
- if (!u && U.isBlob(e)) throw new K("Blob is not supported. Use a Buffer instead.");
785
- if (U.isArrayBuffer(e) || U.isTypedArray(e)) {
786
- if (u && typeof c == "function") return new c([e]);
787
- if (a !== void 0) return a.from(e);
788
- throw new K("Blob is not supported. Use a Buffer instead.", K.ERR_NOT_SUPPORT);
789
- }
790
- return e;
791
- }
792
- function p(e) {
793
- if (e > l) throw new K("Object is too deeply nested (" + e + " levels). Max depth: " + l, K.ERR_FORM_DATA_DEPTH_EXCEEDED);
794
- }
795
- function m(e, t) {
796
- if (l === Infinity) return JSON.stringify(e);
797
- let n = [];
798
- return JSON.stringify(e, function(e, r) {
799
- if (!U.isObject(r)) return r;
800
- for (; n.length && n[n.length - 1] !== this;) n.pop();
801
- return n.push(r), p(t + n.length - 1), r;
802
- });
803
- }
804
- function h(e, n, i) {
805
- let a = e;
806
- if (U.isReactNative(t) && U.isReactNativeBlob(e)) return t.append(Et(i, n, o), f(e)), !1;
807
- if (e && !i && typeof e == "object") {
808
- if (U.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = m(e, 1);
809
- else if (U.isArray(e) && Dt(e) || (U.isFileList(e) || U.endsWith(n, "[]")) && (a = U.toArray(e))) return n = Tt(n), a.forEach(function(e, r) {
810
- !(U.isUndefined(e) || e === null) && t.append(s === !0 ? Et([n], r, o) : s === null ? n : n + "[]", f(e));
811
- }), !1;
812
- }
813
- return wt(e) ? !0 : (t.append(Et(i, n, o), f(e)), !1);
814
- }
815
- let g = Object.assign(Ot, {
816
- defaultVisitor: h,
817
- convertValue: f,
818
- isVisitable: wt
819
- });
820
- function _(e, n, r = 0) {
821
- if (!U.isUndefined(e)) {
822
- if (p(r), d.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
823
- d.push(e), U.forEach(e, function(e, a) {
824
- (!(U.isUndefined(e) || e === null) && i.call(t, e, U.isString(a) ? a.trim() : a, n, g)) === !0 && _(e, n ? n.concat(a) : [a], r + 1);
825
- }), d.pop();
826
- }
827
- }
828
- if (!U.isObject(e)) throw TypeError("data must be an object");
829
- return _(e), t;
830
- }
831
- //#endregion
832
- //#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
833
- function At(e) {
834
- let t = {
835
- "!": "%21",
836
- "'": "%27",
837
- "(": "%28",
838
- ")": "%29",
839
- "~": "%7E",
840
- "%20": "+"
841
- };
842
- return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(e) {
843
- return t[e];
844
- });
845
- }
846
- function jt(e, t) {
847
- this._pairs = [], e && kt(e, this, t);
848
- }
849
- var Mt = jt.prototype;
850
- Mt.append = function(e, t) {
851
- this._pairs.push([e, t]);
852
- }, Mt.toString = function(e) {
853
- let t = e ? (t) => e.call(this, t, At) : At;
854
- return this._pairs.map(function(e) {
855
- return t(e[0]) + "=" + t(e[1]);
856
- }, "").join("&");
857
- };
858
- //#endregion
859
- //#region node_modules/axios/lib/helpers/buildURL.js
860
- function Nt(e) {
861
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
862
- }
863
- function Pt(e, t, n) {
864
- if (!t) return e;
865
- e ||= "";
866
- let r = U.isFunction(n) ? { serialize: n } : n, i = U.getSafeProp(r, "encode") || Nt, a = U.getSafeProp(r, "serialize"), o;
867
- if (o = a ? a(t, r) : U.isURLSearchParams(t) ? t.toString() : new jt(t, r).toString(i), o) {
868
- let t = e.indexOf("#");
869
- t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
870
- }
871
- return e;
872
- }
873
- //#endregion
874
- //#region node_modules/axios/lib/core/InterceptorManager.js
875
- var Ft = class {
876
- constructor() {
877
- this.handlers = [];
878
- }
879
- use(e, t, n) {
880
- return this.handlers.push({
881
- fulfilled: e,
882
- rejected: t,
883
- synchronous: n ? n.synchronous : !1,
884
- runWhen: n ? n.runWhen : null
885
- }), this.handlers.length - 1;
886
- }
887
- eject(e) {
888
- this.handlers[e] && (this.handlers[e] = null);
889
- }
890
- clear() {
891
- this.handlers &&= [];
892
- }
893
- forEach(e) {
894
- U.forEach(this.handlers, function(t) {
895
- t !== null && e(t);
896
- });
897
- }
898
- }, It = {
899
- silentJSONParsing: !0,
900
- forcedJSONParsing: !0,
901
- clarifyTimeoutError: !1,
902
- legacyInterceptorReqResOrdering: !0,
903
- advertiseZstdAcceptEncoding: !1,
904
- validateStatusUndefinedResolves: !0
905
- }, Lt = {
906
- isBrowser: !0,
907
- classes: {
908
- URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : jt,
909
- FormData: typeof FormData < "u" ? FormData : null,
910
- Blob: typeof Blob < "u" ? Blob : null
911
- },
912
- protocols: [
913
- "http",
914
- "https",
915
- "file",
916
- "blob",
917
- "url",
918
- "data"
919
- ]
920
- }, Rt = /* @__PURE__ */ e({
921
- hasBrowserEnv: () => zt,
922
- hasStandardBrowserEnv: () => Vt,
923
- hasStandardBrowserWebWorkerEnv: () => Ht,
924
- navigator: () => Bt,
925
- origin: () => Ut
926
- }), zt = typeof window < "u" && typeof document < "u", Bt = typeof navigator == "object" && navigator || void 0, Vt = zt && (!Bt || [
927
- "ReactNative",
928
- "NativeScript",
929
- "NS"
930
- ].indexOf(Bt.product) < 0), Ht = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ut = zt && window.location.href || "http://localhost", q = {
931
- ...Rt,
932
- ...Lt
933
- };
934
- //#endregion
935
- //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
936
- function Wt(e, t) {
937
- return kt(e, new q.classes.URLSearchParams(), {
938
- visitor: function(e, t, n, r) {
939
- return q.isNode && U.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
940
- },
941
- ...t
942
- });
943
- }
944
- //#endregion
945
- //#region node_modules/axios/lib/helpers/formDataToJSON.js
946
- var Gt = 100;
947
- function Kt(e) {
948
- if (e > Gt) throw new K("FormData field is too deeply nested (" + e + " levels). Max depth: " + Gt, K.ERR_FORM_DATA_DEPTH_EXCEEDED);
949
- }
950
- function qt(e) {
951
- let t = [], n = /\w+|\[(\w*)]/g, r;
952
- for (; (r = n.exec(e)) !== null;) Kt(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
953
- return t;
954
- }
955
- function Jt(e) {
956
- let t = {}, n = Object.keys(e), r, i = n.length, a;
957
- for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
958
- return t;
959
- }
960
- function Yt(e) {
961
- function t(e, n, r, i) {
962
- Kt(i);
963
- let a = e[i++];
964
- if (a === "__proto__") return !0;
965
- let o = Number.isFinite(+a), s = i >= e.length;
966
- return a = !a && U.isArray(r) ? r.length : a, s ? (U.hasOwnProp(r, a) ? r[a] = U.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!U.hasOwnProp(r, a) || !U.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && U.isArray(r[a]) && (r[a] = Jt(r[a])), !o);
967
- }
968
- if (U.isFormData(e) && U.isFunction(e.entries)) {
969
- let n = {};
970
- return U.forEachEntry(e, (e, r) => {
971
- t(qt(e), r, n, 0);
972
- }), n;
973
- }
974
- return null;
975
- }
976
- //#endregion
977
- //#region node_modules/axios/lib/defaults/index.js
978
- var J = (e, t) => e != null && U.hasOwnProp(e, t) ? e[t] : void 0;
979
- function Xt(e, t, n) {
980
- if (U.isString(e)) try {
981
- return (t || JSON.parse)(e), U.trim(e);
982
- } catch (e) {
983
- if (e.name !== "SyntaxError") throw e;
984
- }
985
- return (n || JSON.stringify)(e);
986
- }
987
- var Y = {
988
- transitional: It,
989
- adapter: [
990
- "xhr",
991
- "http",
992
- "fetch"
993
- ],
994
- transformRequest: [function(e, t) {
995
- let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = U.isObject(e);
996
- if (i && U.isHTMLForm(e) && (e = new FormData(e)), U.isFormData(e)) return r ? JSON.stringify(Yt(e)) : e;
997
- if (U.isArrayBuffer(e) || U.isBuffer(e) || U.isStream(e) || U.isFile(e) || U.isBlob(e) || U.isReadableStream(e)) return e;
998
- if (U.isArrayBufferView(e)) return e.buffer;
999
- if (U.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
1000
- let a;
1001
- if (i) {
1002
- let t = J(this, "formSerializer");
1003
- if (n.indexOf("application/x-www-form-urlencoded") > -1) return Wt(e, t).toString();
1004
- if ((a = U.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1005
- let n = J(this, "env"), r = n && n.FormData;
1006
- return kt(a ? { "files[]": e } : e, r && new r(), t);
1007
- }
1008
- }
1009
- return i || r ? (t.setContentType("application/json", !1), Xt(e)) : e;
1010
- }],
1011
- transformResponse: [function(e) {
1012
- let t = J(this, "transitional") || Y.transitional, n = t && t.forcedJSONParsing, r = J(this, "responseType"), i = r === "json";
1013
- if (U.isResponse(e) || U.isReadableStream(e)) return e;
1014
- if (e && U.isString(e) && (n && !r || i)) {
1015
- let n = !(t && t.silentJSONParsing) && i;
1016
- try {
1017
- return JSON.parse(e, J(this, "parseReviver"));
1018
- } catch (e) {
1019
- if (n) throw e.name === "SyntaxError" ? K.from(e, K.ERR_BAD_RESPONSE, this, null, J(this, "response")) : e;
1020
- }
1021
- }
1022
- return e;
1023
- }],
1024
- timeout: 0,
1025
- xsrfCookieName: "XSRF-TOKEN",
1026
- xsrfHeaderName: "X-XSRF-TOKEN",
1027
- maxContentLength: -1,
1028
- maxBodyLength: -1,
1029
- env: {
1030
- FormData: q.classes.FormData,
1031
- Blob: q.classes.Blob
1032
- },
1033
- validateStatus: function(e) {
1034
- return e >= 200 && e < 300;
1035
- },
1036
- headers: { common: {
1037
- Accept: "application/json, text/plain, */*",
1038
- "Content-Type": void 0
1039
- } }
1040
- };
1041
- U.forEach([
1042
- "delete",
1043
- "get",
1044
- "head",
1045
- "post",
1046
- "put",
1047
- "patch",
1048
- "query"
1049
- ], (e) => {
1050
- Y.headers[e] = {};
1051
- });
1052
- //#endregion
1053
- //#region node_modules/axios/lib/core/transformData.js
1054
- function Zt(e, t) {
1055
- let n = this || Y, r = t || n, i = G.from(r.headers), a = r.data;
1056
- return U.forEach(e, function(e) {
1057
- a = e.call(n, a, i.normalize(), t ? t.status : void 0);
1058
- }), i.normalize(), a;
1059
- }
1060
- //#endregion
1061
- //#region node_modules/axios/lib/cancel/isCancel.js
1062
- function Qt(e) {
1063
- return !!(e && e.__CANCEL__);
1064
- }
1065
- //#endregion
1066
- //#region node_modules/axios/lib/cancel/CanceledError.js
1067
- var $t = class extends K {
1068
- constructor(e, t, n) {
1069
- super(e ?? "canceled", K.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
1070
- }
1071
- };
1072
- //#endregion
1073
- //#region node_modules/axios/lib/core/settle.js
1074
- function en(e, t, n) {
1075
- let r = n.config.validateStatus;
1076
- !n.status || !r || r(n.status) ? e(n) : t(new K("Request failed with status code " + n.status, n.status >= 400 && n.status < 500 ? K.ERR_BAD_REQUEST : K.ERR_BAD_RESPONSE, n.config, n.request, n));
1077
- }
1078
- //#endregion
1079
- //#region node_modules/axios/lib/helpers/parseProtocol.js
1080
- function tn(e) {
1081
- let t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
1082
- return t && t[1] || "";
1083
- }
1084
- //#endregion
1085
- //#region node_modules/axios/lib/helpers/speedometer.js
1086
- function nn(e, t) {
1087
- e ||= 10;
1088
- let n = Array(e), r = Array(e), i = 0, a = 0, o;
1089
- return t = t === void 0 ? 1e3 : t, function(s) {
1090
- let c = Date.now(), l = r[a];
1091
- o ||= c, n[i] = s, r[i] = c;
1092
- let u = a, d = 0;
1093
- for (; u !== i;) d += n[u++], u %= e;
1094
- if (i = (i + 1) % e, i === a && (a = (a + 1) % e), c - o < t) return;
1095
- let f = l && c - l;
1096
- return f ? Math.round(d * 1e3 / f) : void 0;
1097
- };
1098
- }
1099
- //#endregion
1100
- //#region node_modules/axios/lib/helpers/throttle.js
1101
- function rn(e, t) {
1102
- let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
1103
- n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
1104
- };
1105
- return [(...e) => {
1106
- let t = Date.now(), s = t - n;
1107
- s >= r ? o(e, t) : (i = e, a ||= setTimeout(() => {
1108
- a = null, o(i);
1109
- }, r - s));
1110
- }, () => i && o(i)];
1111
- }
1112
- //#endregion
1113
- //#region node_modules/axios/lib/helpers/progressEventReducer.js
1114
- var an = (e, t, n = 3) => {
1115
- let r = 0, i = nn(50, 250);
1116
- return rn((n) => {
1117
- if (!n || typeof n.loaded != "number") return;
1118
- let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = o == null ? a : Math.min(a, o), c = Math.max(0, s - r), l = i(c);
1119
- r = Math.max(r, s), e({
1120
- loaded: s,
1121
- total: o,
1122
- progress: o ? s / o : void 0,
1123
- bytes: c,
1124
- rate: l || void 0,
1125
- estimated: l && o ? (o - s) / l : void 0,
1126
- event: n,
1127
- lengthComputable: o != null,
1128
- [t ? "download" : "upload"]: !0
1129
- });
1130
- }, n);
1131
- }, on = (e, t) => {
1132
- let n = e != null;
1133
- return [(r) => t[0]({
1134
- lengthComputable: n,
1135
- total: e,
1136
- loaded: r
1137
- }), t[1]];
1138
- }, sn = (e) => (...t) => U.asap(() => e(...t)), cn = q.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, q.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(q.origin), q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)) : () => !0, ln = q.hasStandardBrowserEnv ? {
1139
- write(e, t, n, r, i, a, o) {
1140
- if (typeof document > "u") return;
1141
- let s = [`${e}=${encodeURIComponent(t)}`];
1142
- U.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), U.isString(r) && s.push(`path=${r}`), U.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), U.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
1143
- },
1144
- read(e) {
1145
- if (typeof document > "u") return null;
1146
- let t = document.cookie.split(";");
1147
- for (let n = 0; n < t.length; n++) {
1148
- let r = t[n].replace(/^\s+/, ""), i = r.indexOf("=");
1149
- if (i !== -1 && r.slice(0, i) === e) try {
1150
- return decodeURIComponent(r.slice(i + 1));
1151
- } catch {
1152
- return r.slice(i + 1);
1153
- }
1154
- }
1155
- return null;
1156
- },
1157
- remove(e) {
1158
- this.write(e, "", Date.now() - 864e5, "/");
1159
- }
1160
- } : {
1161
- write() {},
1162
- read() {
1163
- return null;
1164
- },
1165
- remove() {}
1166
- };
1167
- //#endregion
1168
- //#region node_modules/axios/lib/helpers/isAbsoluteURL.js
1169
- function un(e) {
1170
- return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
1171
- }
1172
- //#endregion
1173
- //#region node_modules/axios/lib/helpers/combineURLs.js
1174
- function dn(e, t) {
1175
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1176
- }
1177
- //#endregion
1178
- //#region node_modules/axios/lib/core/buildFullPath.js
1179
- var fn = /^https?:(?!\/\/)/i, pn = /[\t\n\r]/g;
1180
- function mn(e) {
1181
- let t = 0;
1182
- for (; t < e.length && e.charCodeAt(t) <= 32;) t++;
1183
- return e.slice(t);
1184
- }
1185
- function hn(e) {
1186
- return mn(e).replace(pn, "");
1187
- }
1188
- function gn(e, t) {
1189
- if (typeof e == "string" && fn.test(hn(e))) throw new K("Invalid URL: missing \"//\" after protocol", K.ERR_INVALID_URL, t);
1190
- }
1191
- function _n(e, t, n, r) {
1192
- gn(t, r);
1193
- let i = !un(t);
1194
- return e && (i || n === !1) ? (gn(e, r), dn(e, t)) : t;
1195
- }
1196
- //#endregion
1197
- //#region node_modules/axios/lib/core/mergeConfig.js
1198
- var vn = (e) => e instanceof G ? { ...e } : e;
1199
- function X(e, t) {
1200
- e ||= {}, t ||= {};
1201
- let n = Object.create(null);
1202
- Object.defineProperty(n, "hasOwnProperty", {
1203
- __proto__: null,
1204
- value: Object.prototype.hasOwnProperty,
1205
- enumerable: !1,
1206
- writable: !0,
1207
- configurable: !0
1208
- });
1209
- function r(e, t, n, r) {
1210
- return U.isPlainObject(e) && U.isPlainObject(t) ? U.merge.call({ caseless: r }, e, t) : U.isPlainObject(t) ? U.merge({}, t) : U.isArray(t) ? t.slice() : t;
1211
- }
1212
- function i(e, t, n, i) {
1213
- if (!U.isUndefined(t)) return r(e, t, n, i);
1214
- if (!U.isUndefined(e)) return r(void 0, e, n, i);
1215
- }
1216
- function a(e, t) {
1217
- if (!U.isUndefined(t)) return r(void 0, t);
1218
- }
1219
- function o(e, t) {
1220
- if (!U.isUndefined(t)) return r(void 0, t);
1221
- if (!U.isUndefined(e)) return r(void 0, e);
1222
- }
1223
- function s(n) {
1224
- let r = U.hasOwnProp(t, "transitional") ? t.transitional : void 0;
1225
- if (!U.isUndefined(r)) if (U.isPlainObject(r)) {
1226
- if (U.hasOwnProp(r, n)) return r[n];
1227
- } else return;
1228
- let i = U.hasOwnProp(e, "transitional") ? e.transitional : void 0;
1229
- if (U.isPlainObject(i) && U.hasOwnProp(i, n)) return i[n];
1230
- }
1231
- function c(n, i, a) {
1232
- if (U.hasOwnProp(t, a)) return r(n, i);
1233
- if (U.hasOwnProp(e, a)) return r(void 0, n);
1234
- }
1235
- let l = {
1236
- url: a,
1237
- method: a,
1238
- data: a,
1239
- baseURL: o,
1240
- transformRequest: o,
1241
- transformResponse: o,
1242
- paramsSerializer: o,
1243
- timeout: o,
1244
- timeoutMessage: o,
1245
- withCredentials: o,
1246
- withXSRFToken: o,
1247
- adapter: o,
1248
- responseType: o,
1249
- xsrfCookieName: o,
1250
- xsrfHeaderName: o,
1251
- onUploadProgress: o,
1252
- onDownloadProgress: o,
1253
- decompress: o,
1254
- maxContentLength: o,
1255
- maxBodyLength: o,
1256
- beforeRedirect: o,
1257
- transport: o,
1258
- httpAgent: o,
1259
- httpsAgent: o,
1260
- cancelToken: o,
1261
- socketPath: o,
1262
- allowedSocketPaths: o,
1263
- responseEncoding: o,
1264
- validateStatus: c,
1265
- headers: (e, t, n) => i(vn(e), vn(t), n, !0)
1266
- };
1267
- return U.forEach(Object.keys({
1268
- ...e,
1269
- ...t
1270
- }), function(r) {
1271
- if (r === "__proto__" || r === "constructor" || r === "prototype") return;
1272
- let a = U.hasOwnProp(l, r) ? l[r] : i, o = a(U.hasOwnProp(e, r) ? e[r] : void 0, U.hasOwnProp(t, r) ? t[r] : void 0, r);
1273
- U.isUndefined(o) && a !== c || (n[r] = o);
1274
- }), U.hasOwnProp(t, "validateStatus") && U.isUndefined(t.validateStatus) && s("validateStatusUndefinedResolves") === !1 && (U.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
1275
- }
1276
- //#endregion
1277
- //#region node_modules/axios/lib/helpers/resolveConfig.js
1278
- var yn = ["content-type", "content-length"];
1279
- function bn(e, t, n) {
1280
- if (n !== "content-only") {
1281
- e.set(t);
1282
- return;
1283
- }
1284
- Object.entries(t || {}).forEach(([t, n]) => {
1285
- yn.includes(t.toLowerCase()) && e.set(t, n);
1286
- });
1287
- }
1288
- var xn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16)));
1289
- function Sn(e) {
1290
- let t = X({}, e), n = (e) => U.hasOwnProp(t, e) ? t[e] : void 0, r = n("data"), i = n("withXSRFToken"), a = n("xsrfHeaderName"), o = n("xsrfCookieName"), s = n("headers"), c = n("auth"), l = n("baseURL"), u = n("allowAbsoluteUrls"), d = n("url");
1291
- if (t.headers = s = G.from(s), t.url = Pt(_n(l, d, u, t), n("params"), n("paramsSerializer")), c) {
1292
- let t = U.getSafeProp(c, "username") || "", n = U.getSafeProp(c, "password") || "";
1293
- try {
1294
- s.set("Authorization", "Basic " + btoa(t + ":" + (n ? xn(n) : "")));
1295
- } catch (t) {
1296
- throw K.from(t, K.ERR_BAD_OPTION_VALUE, e);
1297
- }
1298
- }
1299
- if (U.isFormData(r) && (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv || U.isReactNative(r) ? s.setContentType(void 0) : U.isFunction(r.getHeaders) && bn(s, r.getHeaders(), n("formDataHeaderPolicy"))), q.hasStandardBrowserEnv && (U.isFunction(i) && (i = i(t)), i === !0 || i == null && cn(t.url))) {
1300
- let e = a && o && ln.read(o);
1301
- e && s.set(a, e);
1302
- }
1303
- return t;
1304
- }
1305
- var Cn = typeof XMLHttpRequest < "u" && function(e) {
1306
- return new Promise(function(t, n) {
1307
- let r = Sn(e), i = r.data, a = G.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
1308
- function m() {
1309
- f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
1310
- }
1311
- let h = new XMLHttpRequest();
1312
- h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
1313
- function g() {
1314
- if (!h) return;
1315
- let r = G.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
1316
- en(function(e) {
1317
- t(e), m();
1318
- }, function(e) {
1319
- n(e), m();
1320
- }, {
1321
- data: !o || o === "text" || o === "json" ? h.responseText : h.response,
1322
- status: h.status,
1323
- statusText: h.statusText,
1324
- headers: r,
1325
- config: e,
1326
- request: h
1327
- }), h = null;
1328
- }
1329
- "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1330
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.startsWith("file:")) || setTimeout(g);
1331
- }, h.onabort = function() {
1332
- h &&= (n(new K("Request aborted", K.ECONNABORTED, e, h)), m(), null);
1333
- }, h.onerror = function(t) {
1334
- let r = new K(t && t.message ? t.message : "Network Error", K.ERR_NETWORK, e, h);
1335
- r.event = t || null, n(r), m(), h = null;
1336
- }, h.ontimeout = function() {
1337
- let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || It;
1338
- r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new K(t, i.clarifyTimeoutError ? K.ETIMEDOUT : K.ECONNABORTED, e, h)), m(), h = null;
1339
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && U.forEach(pt(a), function(e, t) {
1340
- h.setRequestHeader(t, e);
1341
- }), U.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = an(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = an(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
1342
- h &&= (n(!t || t.type ? new $t(null, e, h) : t), h.abort(), m(), null);
1343
- }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
1344
- let _ = tn(r.url);
1345
- if (_ && !q.protocols.includes(_)) {
1346
- n(new K("Unsupported protocol " + _ + ":", K.ERR_BAD_REQUEST, e)), m();
1347
- return;
1348
- }
1349
- h.send(i || null);
1350
- });
1351
- }, wn = (e, t) => {
1352
- if (e = e ? e.filter(Boolean) : [], !t && !e.length) return;
1353
- let n = new AbortController(), r = !1, i = function(e) {
1354
- if (!r) {
1355
- r = !0, o();
1356
- let t = e instanceof Error ? e : this.reason;
1357
- n.abort(t instanceof K ? t : new $t(t instanceof Error ? t.message : t));
1358
- }
1359
- }, a = t && setTimeout(() => {
1360
- a = null, i(new K(`timeout of ${t}ms exceeded`, K.ETIMEDOUT));
1361
- }, t), o = () => {
1362
- e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
1363
- e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
1364
- }), null);
1365
- };
1366
- e.forEach((e) => e.addEventListener("abort", i, { once: !0 }));
1367
- let { signal: s } = n;
1368
- return s.unsubscribe = () => U.asap(o), s;
1369
- }, Tn = function* (e, t) {
1370
- let n = e.byteLength;
1371
- if (!t || n < t) {
1372
- yield e;
1373
- return;
1374
- }
1375
- let r = 0, i;
1376
- for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
1377
- }, En = async function* (e, t) {
1378
- for await (let n of Dn(e)) yield* Tn(n, t);
1379
- }, Dn = async function* (e) {
1380
- if (e[Symbol.asyncIterator]) {
1381
- yield* e;
1382
- return;
1383
- }
1384
- let t = e.getReader();
1385
- try {
1386
- for (;;) {
1387
- let { done: e, value: n } = await t.read();
1388
- if (e) break;
1389
- yield n;
1390
- }
1391
- } finally {
1392
- await t.cancel();
1393
- }
1394
- }, On = (e, t, n, r) => {
1395
- let i = En(e, t), a = 0, o, s = (e) => {
1396
- o || (o = !0, r && r(e));
1397
- };
1398
- return new ReadableStream({
1399
- async pull(e) {
1400
- try {
1401
- let { done: t, value: r } = await i.next();
1402
- if (t) {
1403
- s(), e.close();
1404
- return;
1405
- }
1406
- let o = r.byteLength;
1407
- n && n(a += o), e.enqueue(new Uint8Array(r));
1408
- } catch (e) {
1409
- throw s(e), e;
1410
- }
1411
- },
1412
- cancel(e) {
1413
- return s(e), i.return();
1414
- }
1415
- }, { highWaterMark: 2 });
1416
- }, kn = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, An = (e, t, n) => t + 2 < n && kn(e.charCodeAt(t + 1)) && kn(e.charCodeAt(t + 2));
1417
- function jn(e) {
1418
- if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
1419
- let t = e.indexOf(",");
1420
- if (t < 0) return 0;
1421
- let n = e.slice(5, t), r = e.slice(t + 1);
1422
- if (/;base64/i.test(n)) {
1423
- let e = r.length, t = r.length;
1424
- for (let n = 0; n < t; n++) if (r.charCodeAt(n) === 37 && n + 2 < t) {
1425
- let t = r.charCodeAt(n + 1), i = r.charCodeAt(n + 2);
1426
- kn(t) && kn(i) && (e -= 2, n += 2);
1427
- }
1428
- let n = 0, i = t - 1, a = (e) => e >= 2 && r.charCodeAt(e - 2) === 37 && r.charCodeAt(e - 1) === 51 && (r.charCodeAt(e) === 68 || r.charCodeAt(e) === 100);
1429
- i >= 0 && (r.charCodeAt(i) === 61 ? (n++, i--) : a(i) && (n++, i -= 3)), n === 1 && i >= 0 && (r.charCodeAt(i) === 61 || a(i)) && n++;
1430
- let o = Math.floor(e / 4) * 3 - (n || 0);
1431
- return o > 0 ? o : 0;
1432
- }
1433
- let i = 0;
1434
- for (let e = 0, t = r.length; e < t; e++) {
1435
- let n = r.charCodeAt(e);
1436
- if (n === 37 && An(r, e, t)) i += 1, e += 2;
1437
- else if (n < 128) i += 1;
1438
- else if (n < 2048) i += 2;
1439
- else if (n >= 55296 && n <= 56319 && e + 1 < t) {
1440
- let t = r.charCodeAt(e + 1);
1441
- t >= 56320 && t <= 57343 ? (i += 4, e++) : i += 3;
1442
- } else i += 3;
1443
- }
1444
- return i;
1445
- }
1446
- //#endregion
1447
- //#region node_modules/axios/lib/env/data.js
1448
- var Mn = "1.18.1", Nn = 64 * 1024, { isFunction: Pn } = U, Fn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), In = (e) => {
1449
- if (!U.isString(e)) return e;
1450
- try {
1451
- return decodeURIComponent(e);
1452
- } catch {
1453
- return e;
1454
- }
1455
- }, Ln = (e, ...t) => {
1456
- try {
1457
- return !!e(...t);
1458
- } catch {
1459
- return !1;
1460
- }
1461
- }, Rn = (e) => {
1462
- let t = e.indexOf("://"), n = e;
1463
- return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
1464
- }, zn = (e) => {
1465
- let t = U.global !== void 0 && U.global !== null ? U.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
1466
- e = U.merge.call({ skipUndefined: !0 }, {
1467
- Request: t.Request,
1468
- Response: t.Response
1469
- }, e);
1470
- let { fetch: i, Request: a, Response: o } = e, s = i ? Pn(i) : typeof fetch == "function", c = Pn(a), l = Pn(o);
1471
- if (!s) return !1;
1472
- let u = s && Pn(n), d = s && (typeof r == "function" ? ((e) => (t) => e.encode(t))(new r()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), f = c && u && Ln(() => {
1473
- let e = !1, t = new a(q.origin, {
1474
- body: new n(),
1475
- method: "POST",
1476
- get duplex() {
1477
- return e = !0, "half";
1478
- }
1479
- }), r = t.headers.has("Content-Type");
1480
- return t.body != null && t.body.cancel(), e && !r;
1481
- }), p = l && u && Ln(() => U.isReadableStream(new o("").body)), m = { stream: p && ((e) => e.body) };
1482
- s && [
1483
- "text",
1484
- "arrayBuffer",
1485
- "blob",
1486
- "formData",
1487
- "stream"
1488
- ].forEach((e) => {
1489
- !m[e] && (m[e] = (t, n) => {
1490
- let r = t && t[e];
1491
- if (r) return r.call(t);
1492
- throw new K(`Response type '${e}' is not supported`, K.ERR_NOT_SUPPORT, n);
1493
- });
1494
- });
1495
- let h = async (e) => {
1496
- if (e == null) return 0;
1497
- if (U.isBlob(e)) return e.size;
1498
- if (U.isSpecCompliantForm(e)) return (await new a(q.origin, {
1499
- method: "POST",
1500
- body: e
1501
- }).arrayBuffer()).byteLength;
1502
- if (U.isArrayBufferView(e) || U.isArrayBuffer(e)) return e.byteLength;
1503
- if (U.isURLSearchParams(e) && (e += ""), U.isString(e)) return (await d(e)).byteLength;
1504
- }, g = async (e, t) => U.toFiniteNumber(e.getContentLength()) ?? h(t);
1505
- return async (e) => {
1506
- let { url: t, method: n, data: s, signal: l, cancelToken: d, timeout: _, onDownloadProgress: v, onUploadProgress: y, responseType: b, headers: x, withCredentials: S = "same-origin", fetchOptions: ee, maxContentLength: C, maxBodyLength: w } = Sn(e), T = U.isNumber(C) && C > -1, te = U.isNumber(w) && w > -1, ne = (t) => U.hasOwnProp(e, t) ? e[t] : void 0, re = i || fetch;
1507
- b = b ? (b + "").toLowerCase() : "text";
1508
- let E = wn([l, d && d.toAbortSignal()], _), D = null, O = E && E.unsubscribe && (() => {
1509
- E.unsubscribe();
1510
- }), k, A = null, j = () => new K("Request body larger than maxBodyLength limit", K.ERR_BAD_REQUEST, e, D);
1511
- try {
1512
- let i, l = ne("auth");
1513
- if (l && (i = {
1514
- username: U.getSafeProp(l, "username") || "",
1515
- password: U.getSafeProp(l, "password") || ""
1516
- }), Rn(t)) {
1517
- let e = new URL(t, q.origin);
1518
- !i && (e.username || e.password) && (i = {
1519
- username: In(e.username),
1520
- password: In(e.password)
1521
- }), (e.username || e.password) && (e.username = "", e.password = "", t = e.href);
1522
- }
1523
- if (i && (x.delete("authorization"), x.set("Authorization", "Basic " + btoa(Fn((i.username || "") + ":" + (i.password || ""))))), T && typeof t == "string" && t.startsWith("data:") && jn(t) > C) throw new K("maxContentLength size of " + C + " exceeded", K.ERR_BAD_RESPONSE, e, D);
1524
- if (te && n !== "get" && n !== "head") {
1525
- let e = await h(s);
1526
- if (typeof e == "number" && isFinite(e) && (k = e, e > w)) throw j();
1527
- }
1528
- let d = te && (U.isReadableStream(s) || U.isStream(s)), _ = (e, t, n) => On(e, Nn, (e) => {
1529
- if (te && e > w) throw A = j();
1530
- t && t(e);
1531
- }, n);
1532
- if (f && n !== "get" && n !== "head" && (y || d)) {
1533
- if (k ??= await g(x, s), k !== 0 || d) {
1534
- let e = new a(t, {
1535
- method: "POST",
1536
- body: s,
1537
- duplex: "half"
1538
- }), n;
1539
- if (U.isFormData(s) && (n = e.headers.get("content-type")) && x.setContentType(n), e.body) {
1540
- let [t, n] = y && on(k, an(sn(y))) || [];
1541
- s = _(e.body, t, n);
1542
- }
1543
- }
1544
- } else if (d && !c && u && n !== "get" && n !== "head") s = _(s);
1545
- else if (d && c && !f && n !== "get" && n !== "head") throw new K("Stream request bodies are not supported by the current fetch implementation", K.ERR_NOT_SUPPORT, e, D);
1546
- U.isString(S) || (S = S ? "include" : "omit");
1547
- let ie = c && "credentials" in a.prototype;
1548
- if (U.isFormData(s)) {
1549
- let e = x.getContentType();
1550
- e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) && x.delete("content-type");
1551
- }
1552
- x.set("User-Agent", "axios/" + Mn, !1);
1553
- let M = {
1554
- ...ee,
1555
- signal: E,
1556
- method: n.toUpperCase(),
1557
- headers: pt(x.normalize()),
1558
- body: s,
1559
- duplex: "half",
1560
- credentials: ie ? S : void 0
1561
- };
1562
- D = c && new a(t, M);
1563
- let N = await (c ? re(D, ee) : re(t, M)), ae = G.from(N.headers);
1564
- if (T) {
1565
- let t = U.toFiniteNumber(ae.getContentLength());
1566
- if (t != null && t > C) throw new K("maxContentLength size of " + C + " exceeded", K.ERR_BAD_RESPONSE, e, D);
1567
- }
1568
- let P = p && (b === "stream" || b === "response");
1569
- if (p && N.body && (v || T || P && O)) {
1570
- let t = {};
1571
- [
1572
- "status",
1573
- "statusText",
1574
- "headers"
1575
- ].forEach((e) => {
1576
- t[e] = N[e];
1577
- });
1578
- let n = U.toFiniteNumber(ae.getContentLength()), [r, i] = v && on(n, an(sn(v), !0)) || [], a = 0;
1579
- N = new o(On(N.body, Nn, (t) => {
1580
- if (T && (a = t, a > C)) throw new K("maxContentLength size of " + C + " exceeded", K.ERR_BAD_RESPONSE, e, D);
1581
- r && r(t);
1582
- }, () => {
1583
- i && i(), O && O();
1584
- }), t);
1585
- }
1586
- b ||= "text";
1587
- let F = await m[U.findKey(m, b) || "text"](N, e);
1588
- if (T && !p && !P) {
1589
- let t;
1590
- if (F != null && (typeof F.byteLength == "number" ? t = F.byteLength : typeof F.size == "number" ? t = F.size : typeof F == "string" && (t = typeof r == "function" ? new r().encode(F).byteLength : F.length)), typeof t == "number" && t > C) throw new K("maxContentLength size of " + C + " exceeded", K.ERR_BAD_RESPONSE, e, D);
1591
- }
1592
- return !P && O && O(), await new Promise((t, n) => {
1593
- en(t, n, {
1594
- data: F,
1595
- headers: G.from(N.headers),
1596
- status: N.status,
1597
- statusText: N.statusText,
1598
- config: e,
1599
- request: D
1600
- });
1601
- });
1602
- } catch (t) {
1603
- if (O && O(), E && E.aborted && E.reason instanceof K) {
1604
- let n = E.reason;
1605
- throw n.config = e, D && (n.request = D), t !== n && Object.defineProperty(n, "cause", {
1606
- __proto__: null,
1607
- value: t,
1608
- writable: !0,
1609
- enumerable: !1,
1610
- configurable: !0
1611
- }), n;
1612
- }
1613
- if (A) throw D && !A.request && (A.request = D), A;
1614
- if (t instanceof K) throw D && !t.request && (t.request = D), t;
1615
- if (t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message)) {
1616
- let n = new K("Network Error", K.ERR_NETWORK, e, D, t && t.response);
1617
- throw Object.defineProperty(n, "cause", {
1618
- __proto__: null,
1619
- value: t.cause || t,
1620
- writable: !0,
1621
- enumerable: !1,
1622
- configurable: !0
1623
- }), n;
1624
- }
1625
- throw K.from(t, t && t.code, e, D, t && t.response);
1626
- }
1627
- };
1628
- }, Bn = /* @__PURE__ */ new Map(), Vn = (e) => {
1629
- let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
1630
- r,
1631
- i,
1632
- n
1633
- ], o = a.length, s, c, l = Bn;
1634
- for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : zn(t)), l = c;
1635
- return c;
1636
- };
1637
- Vn();
1638
- //#endregion
1639
- //#region node_modules/axios/lib/adapters/adapters.js
1640
- var Hn = {
1641
- http: null,
1642
- xhr: Cn,
1643
- fetch: { get: Vn }
1644
- };
1645
- U.forEach(Hn, (e, t) => {
1646
- if (e) {
1647
- try {
1648
- Object.defineProperty(e, "name", {
1649
- __proto__: null,
1650
- value: t
1651
- });
1652
- } catch {}
1653
- Object.defineProperty(e, "adapterName", {
1654
- __proto__: null,
1655
- value: t
1656
- });
1657
- }
1658
- });
1659
- var Un = (e) => `- ${e}`, Wn = (e) => U.isFunction(e) || e === null || e === !1;
1660
- function Gn(e, t) {
1661
- e = U.isArray(e) ? e : [e];
1662
- let { length: n } = e, r, i, a = {};
1663
- for (let o = 0; o < n; o++) {
1664
- r = e[o];
1665
- let n;
1666
- if (i = r, !Wn(r) && (i = Hn[(n = String(r)).toLowerCase()], i === void 0)) throw new K(`Unknown adapter '${n}'`);
1667
- if (i && (U.isFunction(i) || (i = i.get(t)))) break;
1668
- a[n || "#" + o] = i;
1669
- }
1670
- if (!i) {
1671
- let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
1672
- throw new K("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(Un).join("\n") : " " + Un(e[0]) : "as no adapter specified"), K.ERR_NOT_SUPPORT);
1673
- }
1674
- return i;
1675
- }
1676
- var Kn = {
1677
- getAdapter: Gn,
1678
- adapters: Hn
1679
- };
1680
- //#endregion
1681
- //#region node_modules/axios/lib/core/dispatchRequest.js
1682
- function qn(e) {
1683
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new $t(null, e);
1684
- }
1685
- function Jn(e) {
1686
- return qn(e), e.headers = G.from(e.headers), e.data = Zt.call(e, e.transformRequest), [
1687
- "post",
1688
- "put",
1689
- "patch"
1690
- ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Kn.getAdapter(e.adapter || Y.adapter, e)(e).then(function(t) {
1691
- qn(e), e.response = t;
1692
- try {
1693
- t.data = Zt.call(e, e.transformResponse, t);
1694
- } finally {
1695
- delete e.response;
1696
- }
1697
- return t.headers = G.from(t.headers), t;
1698
- }, function(t) {
1699
- if (!Qt(t) && (qn(e), t && t.response)) {
1700
- e.response = t.response;
1701
- try {
1702
- t.response.data = Zt.call(e, e.transformResponse, t.response);
1703
- } finally {
1704
- delete e.response;
1705
- }
1706
- t.response.headers = G.from(t.response.headers);
1707
- }
1708
- return Promise.reject(t);
1709
- });
1710
- }
1711
- //#endregion
1712
- //#region node_modules/axios/lib/helpers/validator.js
1713
- var Yn = {};
1714
- [
1715
- "object",
1716
- "boolean",
1717
- "number",
1718
- "function",
1719
- "string",
1720
- "symbol"
1721
- ].forEach((e, t) => {
1722
- Yn[e] = function(n) {
1723
- return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1724
- };
1725
- });
1726
- var Xn = {};
1727
- Yn.transitional = function(e, t, n) {
1728
- function r(e, t) {
1729
- return "[Axios v" + Mn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
1730
- }
1731
- return (n, i, a) => {
1732
- if (e === !1) throw new K(r(i, " has been removed" + (t ? " in " + t : "")), K.ERR_DEPRECATED);
1733
- return t && !Xn[i] && (Xn[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
1734
- };
1735
- }, Yn.spelling = function(e) {
1736
- return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1737
- };
1738
- function Zn(e, t, n) {
1739
- if (typeof e != "object" || !e) throw new K("options must be an object", K.ERR_BAD_OPTION_VALUE);
1740
- let r = Object.keys(e), i = r.length;
1741
- for (; i-- > 0;) {
1742
- let a = r[i], o = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0;
1743
- if (o) {
1744
- let t = e[a], n = t === void 0 || o(t, a, e);
1745
- if (n !== !0) throw new K("option " + a + " must be " + n, K.ERR_BAD_OPTION_VALUE);
1746
- continue;
1747
- }
1748
- if (n !== !0) throw new K("Unknown option " + a, K.ERR_BAD_OPTION);
1749
- }
1750
- }
1751
- var Qn = {
1752
- assertOptions: Zn,
1753
- validators: Yn
1754
- }, Z = Qn.validators, Q = class {
1755
- constructor(e) {
1756
- this.defaults = e || {}, this.interceptors = {
1757
- request: new Ft(),
1758
- response: new Ft()
1759
- };
1760
- }
1761
- async request(e, t) {
1762
- try {
1763
- return await this._request(e, t);
1764
- } catch (e) {
1765
- if (e instanceof Error) {
1766
- let t = {};
1767
- Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
1768
- let n = (() => {
1769
- if (!t.stack) return "";
1770
- let e = t.stack.indexOf("\n");
1771
- return e === -1 ? "" : t.stack.slice(e + 1);
1772
- })();
1773
- try {
1774
- if (!e.stack) e.stack = n;
1775
- else if (n) {
1776
- let t = n.indexOf("\n"), r = t === -1 ? -1 : n.indexOf("\n", t + 1), i = r === -1 ? "" : n.slice(r + 1);
1777
- String(e.stack).endsWith(i) || (e.stack += "\n" + n);
1778
- }
1779
- } catch {}
1780
- }
1781
- throw e;
1782
- }
1783
- }
1784
- _request(e, t) {
1785
- typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = X(this.defaults, t);
1786
- let { transitional: n, paramsSerializer: r, headers: i } = t;
1787
- n !== void 0 && Qn.assertOptions(n, {
1788
- silentJSONParsing: Z.transitional(Z.boolean),
1789
- forcedJSONParsing: Z.transitional(Z.boolean),
1790
- clarifyTimeoutError: Z.transitional(Z.boolean),
1791
- legacyInterceptorReqResOrdering: Z.transitional(Z.boolean),
1792
- advertiseZstdAcceptEncoding: Z.transitional(Z.boolean),
1793
- validateStatusUndefinedResolves: Z.transitional(Z.boolean)
1794
- }, !1), r != null && (U.isFunction(r) ? t.paramsSerializer = { serialize: r } : Qn.assertOptions(r, {
1795
- encode: Z.function,
1796
- serialize: Z.function
1797
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Qn.assertOptions(t, {
1798
- baseUrl: Z.spelling("baseURL"),
1799
- withXsrfToken: Z.spelling("withXSRFToken")
1800
- }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
1801
- let a = i && U.merge(i.common, i[t.method]);
1802
- i && U.forEach([
1803
- "delete",
1804
- "get",
1805
- "head",
1806
- "post",
1807
- "put",
1808
- "patch",
1809
- "query",
1810
- "common"
1811
- ], (e) => {
1812
- delete i[e];
1813
- }), t.headers = G.concat(a, i);
1814
- let o = [], s = !0;
1815
- this.interceptors.request.forEach(function(e) {
1816
- if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
1817
- s &&= e.synchronous;
1818
- let n = t.transitional || It;
1819
- n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
1820
- });
1821
- let c = [];
1822
- this.interceptors.response.forEach(function(e) {
1823
- c.push(e.fulfilled, e.rejected);
1824
- });
1825
- let l, u = 0, d;
1826
- if (!s) {
1827
- let e = [Jn.bind(this), void 0];
1828
- for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
1829
- return l;
1830
- }
1831
- d = o.length;
1832
- let f = t;
1833
- for (; u < d;) {
1834
- let e = o[u++], t = o[u++];
1835
- try {
1836
- f = e(f);
1837
- } catch (e) {
1838
- t.call(this, e);
1839
- break;
1840
- }
1841
- }
1842
- try {
1843
- l = Jn.call(this, f);
1844
- } catch (e) {
1845
- return Promise.reject(e);
1846
- }
1847
- for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
1848
- return l;
1849
- }
1850
- getUri(e) {
1851
- return e = X(this.defaults, e), Pt(_n(e.baseURL, e.url, e.allowAbsoluteUrls, e), e.params, e.paramsSerializer);
1852
- }
1853
- };
1854
- U.forEach([
1855
- "delete",
1856
- "get",
1857
- "head",
1858
- "options"
1859
- ], function(e) {
1860
- Q.prototype[e] = function(t, n) {
1861
- return this.request(X(n || {}, {
1862
- method: e,
1863
- url: t,
1864
- data: n && U.hasOwnProp(n, "data") ? n.data : void 0
1865
- }));
1866
- };
1867
- }), U.forEach([
1868
- "post",
1869
- "put",
1870
- "patch",
1871
- "query"
1872
- ], function(e) {
1873
- function t(t) {
1874
- return function(n, r, i) {
1875
- return this.request(X(i || {}, {
1876
- method: e,
1877
- headers: t ? { "Content-Type": "multipart/form-data" } : {},
1878
- url: n,
1879
- data: r
1880
- }));
1881
- };
1882
- }
1883
- Q.prototype[e] = t(), e !== "query" && (Q.prototype[e + "Form"] = t(!0));
1884
- });
1885
- //#endregion
1886
- //#region node_modules/axios/lib/cancel/CancelToken.js
1887
- var $n = class e {
1888
- constructor(e) {
1889
- if (typeof e != "function") throw TypeError("executor must be a function.");
1890
- let t;
1891
- this.promise = new Promise(function(e) {
1892
- t = e;
1893
- });
1894
- let n = this;
1895
- this.promise.then((e) => {
1896
- if (!n._listeners) return;
1897
- let t = n._listeners.length;
1898
- for (; t-- > 0;) n._listeners[t](e);
1899
- n._listeners = null;
1900
- }), this.promise.then = (e) => {
1901
- let t, r = new Promise((e) => {
1902
- n.subscribe(e), t = e;
1903
- }).then(e);
1904
- return r.cancel = function() {
1905
- n.unsubscribe(t);
1906
- }, r;
1907
- }, e(function(e, r, i) {
1908
- n.reason || (n.reason = new $t(e, r, i), t(n.reason));
1909
- });
1910
- }
1911
- throwIfRequested() {
1912
- if (this.reason) throw this.reason;
1913
- }
1914
- subscribe(e) {
1915
- if (this.reason) {
1916
- e(this.reason);
1917
- return;
1918
- }
1919
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
1920
- }
1921
- unsubscribe(e) {
1922
- if (!this._listeners) return;
1923
- let t = this._listeners.indexOf(e);
1924
- t !== -1 && this._listeners.splice(t, 1);
1925
- }
1926
- toAbortSignal() {
1927
- let e = new AbortController(), t = (t) => {
1928
- e.abort(t);
1929
- };
1930
- return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
1931
- }
1932
- static source() {
1933
- let t;
1934
- return {
1935
- token: new e(function(e) {
1936
- t = e;
1937
- }),
1938
- cancel: t
1939
- };
1940
- }
1941
- };
1942
- //#endregion
1943
- //#region node_modules/axios/lib/helpers/spread.js
1944
- function er(e) {
1945
- return function(t) {
1946
- return e.apply(null, t);
1947
- };
1948
- }
1949
- //#endregion
1950
- //#region node_modules/axios/lib/helpers/isAxiosError.js
1951
- function tr(e) {
1952
- return U.isObject(e) && e.isAxiosError === !0;
1953
- }
1954
- //#endregion
1955
- //#region node_modules/axios/lib/helpers/HttpStatusCode.js
1956
- var nr = {
1957
- Continue: 100,
1958
- SwitchingProtocols: 101,
1959
- Processing: 102,
1960
- EarlyHints: 103,
1961
- Ok: 200,
1962
- Created: 201,
1963
- Accepted: 202,
1964
- NonAuthoritativeInformation: 203,
1965
- NoContent: 204,
1966
- ResetContent: 205,
1967
- PartialContent: 206,
1968
- MultiStatus: 207,
1969
- AlreadyReported: 208,
1970
- ImUsed: 226,
1971
- MultipleChoices: 300,
1972
- MovedPermanently: 301,
1973
- Found: 302,
1974
- SeeOther: 303,
1975
- NotModified: 304,
1976
- UseProxy: 305,
1977
- Unused: 306,
1978
- TemporaryRedirect: 307,
1979
- PermanentRedirect: 308,
1980
- BadRequest: 400,
1981
- Unauthorized: 401,
1982
- PaymentRequired: 402,
1983
- Forbidden: 403,
1984
- NotFound: 404,
1985
- MethodNotAllowed: 405,
1986
- NotAcceptable: 406,
1987
- ProxyAuthenticationRequired: 407,
1988
- RequestTimeout: 408,
1989
- Conflict: 409,
1990
- Gone: 410,
1991
- LengthRequired: 411,
1992
- PreconditionFailed: 412,
1993
- PayloadTooLarge: 413,
1994
- UriTooLong: 414,
1995
- UnsupportedMediaType: 415,
1996
- RangeNotSatisfiable: 416,
1997
- ExpectationFailed: 417,
1998
- ImATeapot: 418,
1999
- MisdirectedRequest: 421,
2000
- UnprocessableEntity: 422,
2001
- Locked: 423,
2002
- FailedDependency: 424,
2003
- TooEarly: 425,
2004
- UpgradeRequired: 426,
2005
- PreconditionRequired: 428,
2006
- TooManyRequests: 429,
2007
- RequestHeaderFieldsTooLarge: 431,
2008
- UnavailableForLegalReasons: 451,
2009
- InternalServerError: 500,
2010
- NotImplemented: 501,
2011
- BadGateway: 502,
2012
- ServiceUnavailable: 503,
2013
- GatewayTimeout: 504,
2014
- HttpVersionNotSupported: 505,
2015
- VariantAlsoNegotiates: 506,
2016
- InsufficientStorage: 507,
2017
- LoopDetected: 508,
2018
- NotExtended: 510,
2019
- NetworkAuthenticationRequired: 511,
2020
- WebServerIsDown: 521,
2021
- ConnectionTimedOut: 522,
2022
- OriginIsUnreachable: 523,
2023
- TimeoutOccurred: 524,
2024
- SslHandshakeFailed: 525,
2025
- InvalidSslCertificate: 526
2026
- };
2027
- Object.entries(nr).forEach(([e, t]) => {
2028
- nr[t] = e;
2029
- });
2030
- //#endregion
2031
- //#region node_modules/axios/lib/axios.js
2032
- function rr(e) {
2033
- let t = new Q(e), n = O(Q.prototype.request, t);
2034
- return U.extend(n, Q.prototype, t, { allOwnKeys: !0 }), U.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
2035
- return rr(X(e, t));
2036
- }, n;
2037
- }
2038
- var $ = rr(Y);
2039
- $.Axios = Q, $.CanceledError = $t, $.CancelToken = $n, $.isCancel = Qt, $.VERSION = Mn, $.toFormData = kt, $.AxiosError = K, $.Cancel = $.CanceledError, $.all = function(e) {
2040
- return Promise.all(e);
2041
- }, $.spread = er, $.isAxiosError = tr, $.mergeConfig = X, $.AxiosHeaders = G, $.formToJSON = (e) => Yt(U.isHTMLForm(e) ? new FormData(e) : e), $.getAdapter = Kn.getAdapter, $.HttpStatusCode = nr, $.default = $;
2042
- //#endregion
2043
- //#region packages/api-services/src/api/axios/generateInstance.ts
2044
- var ir = ({ interceptors: e, baseURL: t, ...n } = {}) => {
2045
- let r = $.create({
2046
- baseURL: t,
2047
- headers: { "X-Webitel-Access": localStorage.getItem("access-token") || "" },
2048
- ...n
2049
- });
2050
- if (e) {
2051
- let { request: t, response: n } = e;
2052
- if (t) for (let e of t) r.interceptors.request.use(...e);
2053
- if (n) for (let e of n) r.interceptors.response.use(...e);
2054
- }
2055
- return r;
2056
- }, ar = [(e) => (e.headers["X-Webitel-Access"] = localStorage.getItem("access-token") || "", e), (e) => Promise.reject(e)], or = [(e) => e, (e) => {
2057
- if (e.response && e.response.status === 401) {
2058
- let e = encodeURIComponent(window.location.href);
2059
- window.location.href = `undefined?redirectTo=${e}`;
2060
- }
2061
- return Promise.reject(e);
2062
- }], sr = () => {
2063
- let e = { arrayFormat: "repeat" };
2064
- return ir({
2065
- interceptors: {
2066
- request: [ar],
2067
- response: [or]
2068
- },
2069
- baseURL: "/api",
2070
- paramsSerializer: (t) => D(t, e)
2071
- });
2072
- }, cr, lr = () => cr ??= sr(), ur = new Proxy((() => {}), {
2073
- get(e, t, n) {
2074
- let r = lr(), i = Reflect.get(r, t, n);
2075
- return typeof i == "function" ? i.bind(r) : i;
2076
- },
2077
- set(e, t, n) {
2078
- return Reflect.set(lr(), t, n);
2079
- },
2080
- has(e, t) {
2081
- return Reflect.has(lr(), t);
2082
- },
2083
- apply(e, t, n) {
2084
- return lr()(...n);
2085
- }
2086
- });
2087
- //#endregion
2088
- export { D as a, $ as i, sr as n, ir as r, ur as t };