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

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/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1092 -1019
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +876 -833
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +876 -833
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +879 -836
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +876 -833
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +886 -843
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +876 -833
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.d.ts +1 -0
  19. package/api-services/modules/file/index.js +2978 -154
  20. package/api-services/modules/file/index.js.gz +0 -0
  21. package/api-services/modules/gateway-edge/index.js +876 -833
  22. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  23. package/api-services/modules/index.js +1044 -996
  24. package/api-services/modules/index.js.gz +0 -0
  25. package/api-services/modules/iot/index.d.ts +1 -0
  26. package/api-services/modules/iot/index.js +917 -873
  27. package/api-services/modules/iot/index.js.gz +0 -0
  28. package/api-services/modules/justauth/index.js +877 -834
  29. package/api-services/modules/justauth/index.js.gz +0 -0
  30. package/api-services/modules/knowledge/index.js +886 -843
  31. package/api-services/modules/knowledge/index.js.gz +0 -0
  32. package/api-services/modules/link/index.js +876 -833
  33. package/api-services/modules/link/index.js.gz +0 -0
  34. package/api-services/modules/permission/index.js +876 -833
  35. package/api-services/modules/permission/index.js.gz +0 -0
  36. package/api-services/modules/platformManage/index.js +846 -803
  37. package/api-services/modules/platformManage/index.js.gz +0 -0
  38. package/api-services/modules/portal/index.js +876 -833
  39. package/api-services/modules/portal/index.js.gz +0 -0
  40. package/api-services/modules/space-manage/index.js +876 -833
  41. package/api-services/modules/space-manage/index.js.gz +0 -0
  42. package/api-services/modules/super-admin/index.js +897 -854
  43. package/api-services/modules/super-admin/index.js.gz +0 -0
  44. package/api-services/modules/supplier/index.js +883 -840
  45. package/api-services/modules/supplier/index.js.gz +0 -0
  46. package/api-services/modules/supplychain-manage/index.js +876 -833
  47. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  48. package/api-services/modules/systemConfiguration/index.js +876 -833
  49. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  50. package/api-services/modules/tool/index.js +876 -833
  51. package/api-services/modules/tool/index.js.gz +0 -0
  52. package/api-services/src/create-service/index.js +874 -831
  53. package/api-services/src/create-service/index.js.gz +0 -0
  54. package/common-info/index.d.ts +9 -3
  55. package/common-info/index.js +110 -55
  56. package/common-info/index.js.gz +0 -0
  57. package/common-info/set-personal-info/index.js +16 -12
  58. package/common-info/set-personal-info/index.js.gz +0 -0
  59. package/common-info/type.d.ts +116 -6
  60. package/common-tools/calc-text-width/index.d.ts +1 -0
  61. package/common-tools/calc-text-width/index.js +10 -0
  62. package/common-tools/index.d.ts +2 -0
  63. package/common-tools/index.js +2 -0
  64. package/common-tools/nest-tree-format/index.d.ts +1 -1
  65. package/common-tools/nest-tree-format/index.js +15 -15
  66. package/common-tools/update-browser-title/index.d.ts +1 -0
  67. package/common-tools/update-browser-title/index.js +12 -0
  68. package/create-api-service/i18n/index.d.ts +33 -0
  69. package/create-api-service/i18n/index.js +15 -0
  70. package/create-api-service/index.js +874 -831
  71. package/create-api-service/index.js.gz +0 -0
  72. package/create-api-service/sso/index.d.ts +0 -2
  73. package/create-api-service/sso/index.js +716 -620
  74. package/create-api-service/sso/index.js.gz +0 -0
  75. package/directive/hoverInside/index.d.ts +1 -1
  76. package/dom-check-in/index.js +2 -2
  77. package/dom-watcher/index.d.ts +1 -1
  78. package/esm-map.json +6 -2
  79. package/package.json +4 -3
  80. package/token-tools/index.d.ts +6 -6
  81. package/token-tools/index.js +8 -84
  82. package/token-tools/index.js.gz +0 -0
@@ -1,180 +1,3004 @@
1
- import { iotMinio as C, iotProgress as Q } from "@das-fed/utils/api-services/modules/iot";
2
- import { extractFilename as W } from "@das-fed/utils/common-tools";
3
- import { ref as f } from "vue";
4
- import Z from "dayjs";
5
- import { getConfig as O } from "@das-fed/utils/config";
6
- let F = (e = 21) => {
7
- let o = "", i = crypto.getRandomValues(new Uint8Array(e));
8
- for (; e--; ) {
9
- let s = i[e] & 63;
10
- s < 36 ? o += s.toString(36) : s < 62 ? o += (s - 26).toString(36).toUpperCase() : s < 63 ? o += "_" : o += "-";
1
+ import { setI18nRule as En, t as P } from "@das-fed/web/packages/i18n/index";
2
+ import { curringHttp as On } from "@das-fed/utils/curring-http";
3
+ import { getToken as An, getQuery as Rn, login as Pn, getTokenParams as xn, real_uri as Tn } from "@das-fed/utils/create-api-service/sso";
4
+ import Ke from "dayjs";
5
+ import Nn from "dayjs/plugin/utc";
6
+ import Cn from "dayjs/plugin/timezone";
7
+ import { getProjectInfo as Fn, getInstanceInfo as $n } from "@das-fed/utils/common-info";
8
+ import { getAccessToken as _n } from "@das-fed/utils/token-tools";
9
+ import { getConfig as qe } from "@das-fed/utils/config";
10
+ import { extractFilename as Wt } from "@das-fed/utils/common-tools";
11
+ import { ref as U } from "vue";
12
+ function Nr(t, e) {
13
+ return function() {
14
+ return t.apply(e, arguments);
15
+ };
16
+ }
17
+ const { toString: In } = Object.prototype, { getPrototypeOf: Ct } = Object, Qe = /* @__PURE__ */ ((t) => (e) => {
18
+ const n = In.call(e);
19
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
20
+ })(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => Qe(e) === t), Xe = (t) => (e) => typeof e === t, { isArray: we } = Array, Te = Xe("undefined");
21
+ function Dn(t) {
22
+ return t !== null && !Te(t) && t.constructor !== null && !Te(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
23
+ }
24
+ const Cr = X("ArrayBuffer");
25
+ function Bn(t) {
26
+ let e;
27
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Cr(t.buffer), e;
28
+ }
29
+ const Un = Xe("string"), k = Xe("function"), Fr = Xe("number"), Ye = (t) => t !== null && typeof t == "object", kn = (t) => t === !0 || t === !1, Me = (t) => {
30
+ if (Qe(t) !== "object")
31
+ return !1;
32
+ const e = Ct(t);
33
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
34
+ }, Ln = X("Date"), Mn = X("File"), jn = X("Blob"), zn = X("FileList"), Hn = (t) => Ye(t) && k(t.pipe), qn = (t) => {
35
+ let e;
36
+ return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = Qe(t)) === "formdata" || // detect form-data instance
37
+ e === "object" && k(t.toString) && t.toString() === "[object FormData]"));
38
+ }, Wn = X("URLSearchParams"), Gn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
+ function Ne(t, e, { allOwnKeys: n = !1 } = {}) {
40
+ if (t === null || typeof t > "u")
41
+ return;
42
+ let r, o;
43
+ if (typeof t != "object" && (t = [t]), we(t))
44
+ for (r = 0, o = t.length; r < o; r++)
45
+ e.call(null, t[r], r, t);
46
+ else {
47
+ const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
48
+ let s;
49
+ for (r = 0; r < i; r++)
50
+ s = a[r], e.call(null, t[s], s, t);
51
+ }
52
+ }
53
+ function $r(t, e) {
54
+ e = e.toLowerCase();
55
+ const n = Object.keys(t);
56
+ let r = n.length, o;
57
+ for (; r-- > 0; )
58
+ if (o = n[r], e === o.toLowerCase())
59
+ return o;
60
+ return null;
61
+ }
62
+ const _r = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ir = (t) => !Te(t) && t !== _r;
63
+ function vt() {
64
+ const { caseless: t } = Ir(this) && this || {}, e = {}, n = (r, o) => {
65
+ const a = t && $r(e, o) || o;
66
+ Me(e[a]) && Me(r) ? e[a] = vt(e[a], r) : Me(r) ? e[a] = vt({}, r) : we(r) ? e[a] = r.slice() : e[a] = r;
67
+ };
68
+ for (let r = 0, o = arguments.length; r < o; r++)
69
+ arguments[r] && Ne(arguments[r], n);
70
+ return e;
71
+ }
72
+ const Jn = (t, e, n, { allOwnKeys: r } = {}) => (Ne(e, (o, a) => {
73
+ n && k(o) ? t[a] = Nr(o, n) : t[a] = o;
74
+ }, { allOwnKeys: r }), t), Vn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Kn = (t, e, n, r) => {
75
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
76
+ value: e.prototype
77
+ }), n && Object.assign(t.prototype, n);
78
+ }, Qn = (t, e, n, r) => {
79
+ let o, a, i;
80
+ const s = {};
81
+ if (e = e || {}, t == null) return e;
82
+ do {
83
+ for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
84
+ i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
85
+ t = n !== !1 && Ct(t);
86
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
87
+ return e;
88
+ }, Xn = (t, e, n) => {
89
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
90
+ const r = t.indexOf(e, n);
91
+ return r !== -1 && r === n;
92
+ }, Yn = (t) => {
93
+ if (!t) return null;
94
+ if (we(t)) return t;
95
+ let e = t.length;
96
+ if (!Fr(e)) return null;
97
+ const n = new Array(e);
98
+ for (; e-- > 0; )
99
+ n[e] = t[e];
100
+ return n;
101
+ }, Zn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ct(Uint8Array)), eo = (t, e) => {
102
+ const r = (t && t[Symbol.iterator]).call(t);
103
+ let o;
104
+ for (; (o = r.next()) && !o.done; ) {
105
+ const a = o.value;
106
+ e.call(t, a[0], a[1]);
107
+ }
108
+ }, to = (t, e) => {
109
+ let n;
110
+ const r = [];
111
+ for (; (n = t.exec(e)) !== null; )
112
+ r.push(n);
113
+ return r;
114
+ }, ro = X("HTMLFormElement"), no = (t) => t.toLowerCase().replace(
115
+ /[-_\s]([a-z\d])(\w*)/g,
116
+ function(n, r, o) {
117
+ return r.toUpperCase() + o;
118
+ }
119
+ ), Gt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), oo = X("RegExp"), Dr = (t, e) => {
120
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
121
+ Ne(n, (o, a) => {
122
+ let i;
123
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
124
+ }), Object.defineProperties(t, r);
125
+ }, ao = (t) => {
126
+ Dr(t, (e, n) => {
127
+ if (k(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
128
+ return !1;
129
+ const r = t[n];
130
+ if (k(r)) {
131
+ if (e.enumerable = !1, "writable" in e) {
132
+ e.writable = !1;
133
+ return;
134
+ }
135
+ e.set || (e.set = () => {
136
+ throw Error("Can not rewrite read-only method '" + n + "'");
137
+ });
138
+ }
139
+ });
140
+ }, io = (t, e) => {
141
+ const n = {}, r = (o) => {
142
+ o.forEach((a) => {
143
+ n[a] = !0;
144
+ });
145
+ };
146
+ return we(t) ? r(t) : r(String(t).split(e)), n;
147
+ }, so = () => {
148
+ }, lo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), rt = "abcdefghijklmnopqrstuvwxyz", Jt = "0123456789", Br = {
149
+ DIGIT: Jt,
150
+ ALPHA: rt,
151
+ ALPHA_DIGIT: rt + rt.toUpperCase() + Jt
152
+ }, uo = (t = 16, e = Br.ALPHA_DIGIT) => {
153
+ let n = "";
154
+ const { length: r } = e;
155
+ for (; t--; )
156
+ n += e[Math.random() * r | 0];
157
+ return n;
158
+ };
159
+ function co(t) {
160
+ return !!(t && k(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
161
+ }
162
+ const fo = (t) => {
163
+ const e = new Array(10), n = (r, o) => {
164
+ if (Ye(r)) {
165
+ if (e.indexOf(r) >= 0)
166
+ return;
167
+ if (!("toJSON" in r)) {
168
+ e[o] = r;
169
+ const a = we(r) ? [] : {};
170
+ return Ne(r, (i, s) => {
171
+ const u = n(i, o + 1);
172
+ !Te(u) && (a[s] = u);
173
+ }), e[o] = void 0, a;
174
+ }
175
+ }
176
+ return r;
177
+ };
178
+ return n(t, 0);
179
+ }, po = X("AsyncFunction"), yo = (t) => t && (Ye(t) || k(t)) && k(t.then) && k(t.catch), f = {
180
+ isArray: we,
181
+ isArrayBuffer: Cr,
182
+ isBuffer: Dn,
183
+ isFormData: qn,
184
+ isArrayBufferView: Bn,
185
+ isString: Un,
186
+ isNumber: Fr,
187
+ isBoolean: kn,
188
+ isObject: Ye,
189
+ isPlainObject: Me,
190
+ isUndefined: Te,
191
+ isDate: Ln,
192
+ isFile: Mn,
193
+ isBlob: jn,
194
+ isRegExp: oo,
195
+ isFunction: k,
196
+ isStream: Hn,
197
+ isURLSearchParams: Wn,
198
+ isTypedArray: Zn,
199
+ isFileList: zn,
200
+ forEach: Ne,
201
+ merge: vt,
202
+ extend: Jn,
203
+ trim: Gn,
204
+ stripBOM: Vn,
205
+ inherits: Kn,
206
+ toFlatObject: Qn,
207
+ kindOf: Qe,
208
+ kindOfTest: X,
209
+ endsWith: Xn,
210
+ toArray: Yn,
211
+ forEachEntry: eo,
212
+ matchAll: to,
213
+ isHTMLForm: ro,
214
+ hasOwnProperty: Gt,
215
+ hasOwnProp: Gt,
216
+ // an alias to avoid ESLint no-prototype-builtins detection
217
+ reduceDescriptors: Dr,
218
+ freezeMethods: ao,
219
+ toObjectSet: io,
220
+ toCamelCase: no,
221
+ noop: so,
222
+ toFiniteNumber: lo,
223
+ findKey: $r,
224
+ global: _r,
225
+ isContextDefined: Ir,
226
+ ALPHABET: Br,
227
+ generateString: uo,
228
+ isSpecCompliantForm: co,
229
+ toJSONObject: fo,
230
+ isAsyncFn: po,
231
+ isThenable: yo
232
+ };
233
+ function E(t, e, n, r, o) {
234
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o);
235
+ }
236
+ f.inherits(E, Error, {
237
+ toJSON: function() {
238
+ return {
239
+ // Standard
240
+ message: this.message,
241
+ name: this.name,
242
+ // Microsoft
243
+ description: this.description,
244
+ number: this.number,
245
+ // Mozilla
246
+ fileName: this.fileName,
247
+ lineNumber: this.lineNumber,
248
+ columnNumber: this.columnNumber,
249
+ stack: this.stack,
250
+ // Axios
251
+ config: f.toJSONObject(this.config),
252
+ code: this.code,
253
+ status: this.response && this.response.status ? this.response.status : null
254
+ };
255
+ }
256
+ });
257
+ const Ur = E.prototype, kr = {};
258
+ [
259
+ "ERR_BAD_OPTION_VALUE",
260
+ "ERR_BAD_OPTION",
261
+ "ECONNABORTED",
262
+ "ETIMEDOUT",
263
+ "ERR_NETWORK",
264
+ "ERR_FR_TOO_MANY_REDIRECTS",
265
+ "ERR_DEPRECATED",
266
+ "ERR_BAD_RESPONSE",
267
+ "ERR_BAD_REQUEST",
268
+ "ERR_CANCELED",
269
+ "ERR_NOT_SUPPORT",
270
+ "ERR_INVALID_URL"
271
+ // eslint-disable-next-line func-names
272
+ ].forEach((t) => {
273
+ kr[t] = { value: t };
274
+ });
275
+ Object.defineProperties(E, kr);
276
+ Object.defineProperty(Ur, "isAxiosError", { value: !0 });
277
+ E.from = (t, e, n, r, o, a) => {
278
+ const i = Object.create(Ur);
279
+ return f.toFlatObject(t, i, function(u) {
280
+ return u !== Error.prototype;
281
+ }, (s) => s !== "isAxiosError"), E.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
282
+ };
283
+ const mo = null;
284
+ function gt(t) {
285
+ return f.isPlainObject(t) || f.isArray(t);
286
+ }
287
+ function Lr(t) {
288
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
289
+ }
290
+ function Vt(t, e, n) {
291
+ return t ? t.concat(e).map(function(o, a) {
292
+ return o = Lr(o), !n && a ? "[" + o + "]" : o;
293
+ }).join(n ? "." : "") : e;
294
+ }
295
+ function ho(t) {
296
+ return f.isArray(t) && !t.some(gt);
297
+ }
298
+ const vo = f.toFlatObject(f, {}, null, function(e) {
299
+ return /^is[A-Z]/.test(e);
300
+ });
301
+ function Ze(t, e, n) {
302
+ if (!f.isObject(t))
303
+ throw new TypeError("target must be an object");
304
+ e = e || new FormData(), n = f.toFlatObject(n, {
305
+ metaTokens: !0,
306
+ dots: !1,
307
+ indexes: !1
308
+ }, !1, function(y, O) {
309
+ return !f.isUndefined(O[y]);
310
+ });
311
+ const r = n.metaTokens, o = n.visitor || p, a = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
312
+ if (!f.isFunction(o))
313
+ throw new TypeError("visitor must be a function");
314
+ function l(d) {
315
+ if (d === null) return "";
316
+ if (f.isDate(d))
317
+ return d.toISOString();
318
+ if (!u && f.isBlob(d))
319
+ throw new E("Blob is not supported. Use a Buffer instead.");
320
+ return f.isArrayBuffer(d) || f.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
321
+ }
322
+ function p(d, y, O) {
323
+ let h = d;
324
+ if (d && !O && typeof d == "object") {
325
+ if (f.endsWith(y, "{}"))
326
+ y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
327
+ else if (f.isArray(d) && ho(d) || (f.isFileList(d) || f.endsWith(y, "[]")) && (h = f.toArray(d)))
328
+ return y = Lr(y), h.forEach(function(N, q) {
329
+ !(f.isUndefined(N) || N === null) && e.append(
330
+ // eslint-disable-next-line no-nested-ternary
331
+ i === !0 ? Vt([y], q, a) : i === null ? y : y + "[]",
332
+ l(N)
333
+ );
334
+ }), !1;
335
+ }
336
+ return gt(d) ? !0 : (e.append(Vt(O, y, a), l(d)), !1);
337
+ }
338
+ const c = [], m = Object.assign(vo, {
339
+ defaultVisitor: p,
340
+ convertValue: l,
341
+ isVisitable: gt
342
+ });
343
+ function v(d, y) {
344
+ if (!f.isUndefined(d)) {
345
+ if (c.indexOf(d) !== -1)
346
+ throw Error("Circular reference detected in " + y.join("."));
347
+ c.push(d), f.forEach(d, function(h, x) {
348
+ (!(f.isUndefined(h) || h === null) && o.call(
349
+ e,
350
+ h,
351
+ f.isString(x) ? x.trim() : x,
352
+ y,
353
+ m
354
+ )) === !0 && v(h, y ? y.concat(x) : [x]);
355
+ }), c.pop();
356
+ }
357
+ }
358
+ if (!f.isObject(t))
359
+ throw new TypeError("data must be an object");
360
+ return v(t), e;
361
+ }
362
+ function Kt(t) {
363
+ const e = {
364
+ "!": "%21",
365
+ "'": "%27",
366
+ "(": "%28",
367
+ ")": "%29",
368
+ "~": "%7E",
369
+ "%20": "+",
370
+ "%00": "\0"
371
+ };
372
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
373
+ return e[r];
374
+ });
375
+ }
376
+ function Ft(t, e) {
377
+ this._pairs = [], t && Ze(t, this, e);
378
+ }
379
+ const Mr = Ft.prototype;
380
+ Mr.append = function(e, n) {
381
+ this._pairs.push([e, n]);
382
+ };
383
+ Mr.toString = function(e) {
384
+ const n = e ? function(r) {
385
+ return e.call(this, r, Kt);
386
+ } : Kt;
387
+ return this._pairs.map(function(o) {
388
+ return n(o[0]) + "=" + n(o[1]);
389
+ }, "").join("&");
390
+ };
391
+ function go(t) {
392
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
393
+ }
394
+ function jr(t, e, n) {
395
+ if (!e)
396
+ return t;
397
+ const r = n && n.encode || go, o = n && n.serialize;
398
+ let a;
399
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Ft(e, n).toString(r), a) {
400
+ const i = t.indexOf("#");
401
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
402
+ }
403
+ return t;
404
+ }
405
+ class Qt {
406
+ constructor() {
407
+ this.handlers = [];
408
+ }
409
+ /**
410
+ * Add a new interceptor to the stack
411
+ *
412
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
413
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
414
+ *
415
+ * @return {Number} An ID used to remove interceptor later
416
+ */
417
+ use(e, n, r) {
418
+ return this.handlers.push({
419
+ fulfilled: e,
420
+ rejected: n,
421
+ synchronous: r ? r.synchronous : !1,
422
+ runWhen: r ? r.runWhen : null
423
+ }), this.handlers.length - 1;
424
+ }
425
+ /**
426
+ * Remove an interceptor from the stack
427
+ *
428
+ * @param {Number} id The ID that was returned by `use`
429
+ *
430
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
431
+ */
432
+ eject(e) {
433
+ this.handlers[e] && (this.handlers[e] = null);
434
+ }
435
+ /**
436
+ * Clear all interceptors from the stack
437
+ *
438
+ * @returns {void}
439
+ */
440
+ clear() {
441
+ this.handlers && (this.handlers = []);
442
+ }
443
+ /**
444
+ * Iterate over all the registered interceptors
445
+ *
446
+ * This method is particularly useful for skipping over any
447
+ * interceptors that may have become `null` calling `eject`.
448
+ *
449
+ * @param {Function} fn The function to call for each interceptor
450
+ *
451
+ * @returns {void}
452
+ */
453
+ forEach(e) {
454
+ f.forEach(this.handlers, function(r) {
455
+ r !== null && e(r);
456
+ });
457
+ }
458
+ }
459
+ const zr = {
460
+ silentJSONParsing: !0,
461
+ forcedJSONParsing: !0,
462
+ clarifyTimeoutError: !1
463
+ }, bo = typeof URLSearchParams < "u" ? URLSearchParams : Ft, wo = typeof FormData < "u" ? FormData : null, So = typeof Blob < "u" ? Blob : null, Eo = {
464
+ isBrowser: !0,
465
+ classes: {
466
+ URLSearchParams: bo,
467
+ FormData: wo,
468
+ Blob: So
469
+ },
470
+ protocols: ["http", "https", "file", "blob", "url", "data"]
471
+ }, Hr = typeof window < "u" && typeof document < "u", Oo = ((t) => Hr && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), Ao = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
472
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
473
+ __proto__: null,
474
+ hasBrowserEnv: Hr,
475
+ hasStandardBrowserEnv: Oo,
476
+ hasStandardBrowserWebWorkerEnv: Ao
477
+ }, Symbol.toStringTag, { value: "Module" })), Q = {
478
+ ...Ro,
479
+ ...Eo
480
+ };
481
+ function Po(t, e) {
482
+ return Ze(t, new Q.classes.URLSearchParams(), Object.assign({
483
+ visitor: function(n, r, o, a) {
484
+ return Q.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
485
+ }
486
+ }, e));
487
+ }
488
+ function xo(t) {
489
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
490
+ }
491
+ function To(t) {
492
+ const e = {}, n = Object.keys(t);
493
+ let r;
494
+ const o = n.length;
495
+ let a;
496
+ for (r = 0; r < o; r++)
497
+ a = n[r], e[a] = t[a];
498
+ return e;
499
+ }
500
+ function qr(t) {
501
+ function e(n, r, o, a) {
502
+ let i = n[a++];
503
+ if (i === "__proto__") return !0;
504
+ const s = Number.isFinite(+i), u = a >= n.length;
505
+ return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = To(o[i])), !s);
506
+ }
507
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
508
+ const n = {};
509
+ return f.forEachEntry(t, (r, o) => {
510
+ e(xo(r), o, n, 0);
511
+ }), n;
512
+ }
513
+ return null;
514
+ }
515
+ function No(t, e, n) {
516
+ if (f.isString(t))
517
+ try {
518
+ return (e || JSON.parse)(t), f.trim(t);
519
+ } catch (r) {
520
+ if (r.name !== "SyntaxError")
521
+ throw r;
522
+ }
523
+ return (n || JSON.stringify)(t);
524
+ }
525
+ const Ce = {
526
+ transitional: zr,
527
+ adapter: ["xhr", "http"],
528
+ transformRequest: [function(e, n) {
529
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
530
+ if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
531
+ return o ? JSON.stringify(qr(e)) : e;
532
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e))
533
+ return e;
534
+ if (f.isArrayBufferView(e))
535
+ return e.buffer;
536
+ if (f.isURLSearchParams(e))
537
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
538
+ let s;
539
+ if (a) {
540
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
541
+ return Po(e, this.formSerializer).toString();
542
+ if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
543
+ const u = this.env && this.env.FormData;
544
+ return Ze(
545
+ s ? { "files[]": e } : e,
546
+ u && new u(),
547
+ this.formSerializer
548
+ );
549
+ }
550
+ }
551
+ return a || o ? (n.setContentType("application/json", !1), No(e)) : e;
552
+ }],
553
+ transformResponse: [function(e) {
554
+ const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
555
+ if (e && f.isString(e) && (r && !this.responseType || o)) {
556
+ const i = !(n && n.silentJSONParsing) && o;
557
+ try {
558
+ return JSON.parse(e);
559
+ } catch (s) {
560
+ if (i)
561
+ throw s.name === "SyntaxError" ? E.from(s, E.ERR_BAD_RESPONSE, this, null, this.response) : s;
562
+ }
563
+ }
564
+ return e;
565
+ }],
566
+ /**
567
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
568
+ * timeout is not created.
569
+ */
570
+ timeout: 0,
571
+ xsrfCookieName: "XSRF-TOKEN",
572
+ xsrfHeaderName: "X-XSRF-TOKEN",
573
+ maxContentLength: -1,
574
+ maxBodyLength: -1,
575
+ env: {
576
+ FormData: Q.classes.FormData,
577
+ Blob: Q.classes.Blob
578
+ },
579
+ validateStatus: function(e) {
580
+ return e >= 200 && e < 300;
581
+ },
582
+ headers: {
583
+ common: {
584
+ Accept: "application/json, text/plain, */*",
585
+ "Content-Type": void 0
586
+ }
587
+ }
588
+ };
589
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
590
+ Ce.headers[t] = {};
591
+ });
592
+ const Co = f.toObjectSet([
593
+ "age",
594
+ "authorization",
595
+ "content-length",
596
+ "content-type",
597
+ "etag",
598
+ "expires",
599
+ "from",
600
+ "host",
601
+ "if-modified-since",
602
+ "if-unmodified-since",
603
+ "last-modified",
604
+ "location",
605
+ "max-forwards",
606
+ "proxy-authorization",
607
+ "referer",
608
+ "retry-after",
609
+ "user-agent"
610
+ ]), Fo = (t) => {
611
+ const e = {};
612
+ let n, r, o;
613
+ return t && t.split(`
614
+ `).forEach(function(i) {
615
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && Co[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
616
+ }), e;
617
+ }, Xt = Symbol("internals");
618
+ function Oe(t) {
619
+ return t && String(t).trim().toLowerCase();
620
+ }
621
+ function je(t) {
622
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(je) : String(t);
623
+ }
624
+ function $o(t) {
625
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
626
+ let r;
627
+ for (; r = n.exec(t); )
628
+ e[r[1]] = r[2];
629
+ return e;
630
+ }
631
+ const _o = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
632
+ function nt(t, e, n, r, o) {
633
+ if (f.isFunction(r))
634
+ return r.call(this, e, n);
635
+ if (o && (e = n), !!f.isString(e)) {
636
+ if (f.isString(r))
637
+ return e.indexOf(r) !== -1;
638
+ if (f.isRegExp(r))
639
+ return r.test(e);
640
+ }
641
+ }
642
+ function Io(t) {
643
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
644
+ }
645
+ function Do(t, e) {
646
+ const n = f.toCamelCase(" " + e);
647
+ ["get", "set", "has"].forEach((r) => {
648
+ Object.defineProperty(t, r + n, {
649
+ value: function(o, a, i) {
650
+ return this[r].call(this, e, o, a, i);
651
+ },
652
+ configurable: !0
653
+ });
654
+ });
655
+ }
656
+ class L {
657
+ constructor(e) {
658
+ e && this.set(e);
659
+ }
660
+ set(e, n, r) {
661
+ const o = this;
662
+ function a(s, u, l) {
663
+ const p = Oe(u);
664
+ if (!p)
665
+ throw new Error("header name must be a non-empty string");
666
+ const c = f.findKey(o, p);
667
+ (!c || o[c] === void 0 || l === !0 || l === void 0 && o[c] !== !1) && (o[c || u] = je(s));
668
+ }
669
+ const i = (s, u) => f.forEach(s, (l, p) => a(l, p, u));
670
+ return f.isPlainObject(e) || e instanceof this.constructor ? i(e, n) : f.isString(e) && (e = e.trim()) && !_o(e) ? i(Fo(e), n) : e != null && a(n, e, r), this;
671
+ }
672
+ get(e, n) {
673
+ if (e = Oe(e), e) {
674
+ const r = f.findKey(this, e);
675
+ if (r) {
676
+ const o = this[r];
677
+ if (!n)
678
+ return o;
679
+ if (n === !0)
680
+ return $o(o);
681
+ if (f.isFunction(n))
682
+ return n.call(this, o, r);
683
+ if (f.isRegExp(n))
684
+ return n.exec(o);
685
+ throw new TypeError("parser must be boolean|regexp|function");
686
+ }
687
+ }
688
+ }
689
+ has(e, n) {
690
+ if (e = Oe(e), e) {
691
+ const r = f.findKey(this, e);
692
+ return !!(r && this[r] !== void 0 && (!n || nt(this, this[r], r, n)));
693
+ }
694
+ return !1;
695
+ }
696
+ delete(e, n) {
697
+ const r = this;
698
+ let o = !1;
699
+ function a(i) {
700
+ if (i = Oe(i), i) {
701
+ const s = f.findKey(r, i);
702
+ s && (!n || nt(r, r[s], s, n)) && (delete r[s], o = !0);
703
+ }
704
+ }
705
+ return f.isArray(e) ? e.forEach(a) : a(e), o;
706
+ }
707
+ clear(e) {
708
+ const n = Object.keys(this);
709
+ let r = n.length, o = !1;
710
+ for (; r--; ) {
711
+ const a = n[r];
712
+ (!e || nt(this, this[a], a, e, !0)) && (delete this[a], o = !0);
713
+ }
714
+ return o;
715
+ }
716
+ normalize(e) {
717
+ const n = this, r = {};
718
+ return f.forEach(this, (o, a) => {
719
+ const i = f.findKey(r, a);
720
+ if (i) {
721
+ n[i] = je(o), delete n[a];
722
+ return;
723
+ }
724
+ const s = e ? Io(a) : String(a).trim();
725
+ s !== a && delete n[a], n[s] = je(o), r[s] = !0;
726
+ }), this;
727
+ }
728
+ concat(...e) {
729
+ return this.constructor.concat(this, ...e);
730
+ }
731
+ toJSON(e) {
732
+ const n = /* @__PURE__ */ Object.create(null);
733
+ return f.forEach(this, (r, o) => {
734
+ r != null && r !== !1 && (n[o] = e && f.isArray(r) ? r.join(", ") : r);
735
+ }), n;
736
+ }
737
+ [Symbol.iterator]() {
738
+ return Object.entries(this.toJSON())[Symbol.iterator]();
739
+ }
740
+ toString() {
741
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
742
+ `);
743
+ }
744
+ get [Symbol.toStringTag]() {
745
+ return "AxiosHeaders";
746
+ }
747
+ static from(e) {
748
+ return e instanceof this ? e : new this(e);
749
+ }
750
+ static concat(e, ...n) {
751
+ const r = new this(e);
752
+ return n.forEach((o) => r.set(o)), r;
753
+ }
754
+ static accessor(e) {
755
+ const r = (this[Xt] = this[Xt] = {
756
+ accessors: {}
757
+ }).accessors, o = this.prototype;
758
+ function a(i) {
759
+ const s = Oe(i);
760
+ r[s] || (Do(o, i), r[s] = !0);
761
+ }
762
+ return f.isArray(e) ? e.forEach(a) : a(e), this;
763
+ }
764
+ }
765
+ L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
766
+ f.reduceDescriptors(L.prototype, ({ value: t }, e) => {
767
+ let n = e[0].toUpperCase() + e.slice(1);
768
+ return {
769
+ get: () => t,
770
+ set(r) {
771
+ this[n] = r;
772
+ }
773
+ };
774
+ });
775
+ f.freezeMethods(L);
776
+ function ot(t, e) {
777
+ const n = this || Ce, r = e || n, o = L.from(r.headers);
778
+ let a = r.data;
779
+ return f.forEach(t, function(s) {
780
+ a = s.call(n, a, o.normalize(), e ? e.status : void 0);
781
+ }), o.normalize(), a;
782
+ }
783
+ function Wr(t) {
784
+ return !!(t && t.__CANCEL__);
785
+ }
786
+ function Fe(t, e, n) {
787
+ E.call(this, t ?? "canceled", E.ERR_CANCELED, e, n), this.name = "CanceledError";
788
+ }
789
+ f.inherits(Fe, E, {
790
+ __CANCEL__: !0
791
+ });
792
+ function Bo(t, e, n) {
793
+ const r = n.config.validateStatus;
794
+ !n.status || !r || r(n.status) ? t(n) : e(new E(
795
+ "Request failed with status code " + n.status,
796
+ [E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
797
+ n.config,
798
+ n.request,
799
+ n
800
+ ));
801
+ }
802
+ const Uo = Q.hasStandardBrowserEnv ? (
803
+ // Standard browser envs support document.cookie
804
+ {
805
+ write(t, e, n, r, o, a) {
806
+ const i = [t + "=" + encodeURIComponent(e)];
807
+ f.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), f.isString(r) && i.push("path=" + r), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
808
+ },
809
+ read(t) {
810
+ const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
811
+ return e ? decodeURIComponent(e[3]) : null;
812
+ },
813
+ remove(t) {
814
+ this.write(t, "", Date.now() - 864e5);
815
+ }
816
+ }
817
+ ) : (
818
+ // Non-standard browser env (web workers, react-native) lack needed support.
819
+ {
820
+ write() {
821
+ },
822
+ read() {
823
+ return null;
824
+ },
825
+ remove() {
826
+ }
827
+ }
828
+ );
829
+ function ko(t) {
830
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
831
+ }
832
+ function Lo(t, e) {
833
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
834
+ }
835
+ function Gr(t, e) {
836
+ return t && !ko(e) ? Lo(t, e) : e;
837
+ }
838
+ const Mo = Q.hasStandardBrowserEnv ? (
839
+ // Standard browser envs have full support of the APIs needed to test
840
+ // whether the request URL is of the same origin as current location.
841
+ function() {
842
+ const e = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
843
+ let r;
844
+ function o(a) {
845
+ let i = a;
846
+ return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
847
+ href: n.href,
848
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
849
+ host: n.host,
850
+ search: n.search ? n.search.replace(/^\?/, "") : "",
851
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
852
+ hostname: n.hostname,
853
+ port: n.port,
854
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
855
+ };
856
+ }
857
+ return r = o(window.location.href), function(i) {
858
+ const s = f.isString(i) ? o(i) : i;
859
+ return s.protocol === r.protocol && s.host === r.host;
860
+ };
861
+ }()
862
+ ) : (
863
+ // Non standard browser envs (web workers, react-native) lack needed support.
864
+ /* @__PURE__ */ function() {
865
+ return function() {
866
+ return !0;
867
+ };
868
+ }()
869
+ );
870
+ function jo(t) {
871
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
872
+ return e && e[1] || "";
873
+ }
874
+ function zo(t, e) {
875
+ t = t || 10;
876
+ const n = new Array(t), r = new Array(t);
877
+ let o = 0, a = 0, i;
878
+ return e = e !== void 0 ? e : 1e3, function(u) {
879
+ const l = Date.now(), p = r[a];
880
+ i || (i = l), n[o] = u, r[o] = l;
881
+ let c = a, m = 0;
882
+ for (; c !== o; )
883
+ m += n[c++], c = c % t;
884
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
885
+ return;
886
+ const v = p && l - p;
887
+ return v ? Math.round(m * 1e3 / v) : void 0;
888
+ };
889
+ }
890
+ function Yt(t, e) {
891
+ let n = 0;
892
+ const r = zo(50, 250);
893
+ return (o) => {
894
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, s = a - n, u = r(s), l = a <= i;
895
+ n = a;
896
+ const p = {
897
+ loaded: a,
898
+ total: i,
899
+ progress: i ? a / i : void 0,
900
+ bytes: s,
901
+ rate: u || void 0,
902
+ estimated: u && i && l ? (i - a) / u : void 0,
903
+ event: o
904
+ };
905
+ p[e ? "download" : "upload"] = !0, t(p);
906
+ };
907
+ }
908
+ const Ho = typeof XMLHttpRequest < "u", qo = Ho && function(t) {
909
+ return new Promise(function(n, r) {
910
+ let o = t.data;
911
+ const a = L.from(t.headers).normalize();
912
+ let { responseType: i, withXSRFToken: s } = t, u;
913
+ function l() {
914
+ t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
915
+ }
916
+ let p;
917
+ if (f.isFormData(o)) {
918
+ if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
919
+ a.setContentType(!1);
920
+ else if ((p = a.getContentType()) !== !1) {
921
+ const [y, ...O] = p ? p.split(";").map((h) => h.trim()).filter(Boolean) : [];
922
+ a.setContentType([y || "multipart/form-data", ...O].join("; "));
923
+ }
924
+ }
925
+ let c = new XMLHttpRequest();
926
+ if (t.auth) {
927
+ const y = t.auth.username || "", O = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
928
+ a.set("Authorization", "Basic " + btoa(y + ":" + O));
929
+ }
930
+ const m = Gr(t.baseURL, t.url);
931
+ c.open(t.method.toUpperCase(), jr(m, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
932
+ function v() {
933
+ if (!c)
934
+ return;
935
+ const y = L.from(
936
+ "getAllResponseHeaders" in c && c.getAllResponseHeaders()
937
+ ), h = {
938
+ data: !i || i === "text" || i === "json" ? c.responseText : c.response,
939
+ status: c.status,
940
+ statusText: c.statusText,
941
+ headers: y,
942
+ config: t,
943
+ request: c
944
+ };
945
+ Bo(function(N) {
946
+ n(N), l();
947
+ }, function(N) {
948
+ r(N), l();
949
+ }, h), c = null;
950
+ }
951
+ if ("onloadend" in c ? c.onloadend = v : c.onreadystatechange = function() {
952
+ !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(v);
953
+ }, c.onabort = function() {
954
+ c && (r(new E("Request aborted", E.ECONNABORTED, t, c)), c = null);
955
+ }, c.onerror = function() {
956
+ r(new E("Network Error", E.ERR_NETWORK, t, c)), c = null;
957
+ }, c.ontimeout = function() {
958
+ let O = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
959
+ const h = t.transitional || zr;
960
+ t.timeoutErrorMessage && (O = t.timeoutErrorMessage), r(new E(
961
+ O,
962
+ h.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
963
+ t,
964
+ c
965
+ )), c = null;
966
+ }, Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(t)), s || s !== !1 && Mo(m))) {
967
+ const y = t.xsrfHeaderName && t.xsrfCookieName && Uo.read(t.xsrfCookieName);
968
+ y && a.set(t.xsrfHeaderName, y);
969
+ }
970
+ o === void 0 && a.setContentType(null), "setRequestHeader" in c && f.forEach(a.toJSON(), function(O, h) {
971
+ c.setRequestHeader(h, O);
972
+ }), f.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), i && i !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Yt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Yt(t.onUploadProgress)), (t.cancelToken || t.signal) && (u = (y) => {
973
+ c && (r(!y || y.type ? new Fe(null, t, c) : y), c.abort(), c = null);
974
+ }, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
975
+ const d = jo(m);
976
+ if (d && Q.protocols.indexOf(d) === -1) {
977
+ r(new E("Unsupported protocol " + d + ":", E.ERR_BAD_REQUEST, t));
978
+ return;
979
+ }
980
+ c.send(o || null);
981
+ });
982
+ }, bt = {
983
+ http: mo,
984
+ xhr: qo
985
+ };
986
+ f.forEach(bt, (t, e) => {
987
+ if (t) {
988
+ try {
989
+ Object.defineProperty(t, "name", { value: e });
990
+ } catch {
991
+ }
992
+ Object.defineProperty(t, "adapterName", { value: e });
993
+ }
994
+ });
995
+ const Zt = (t) => `- ${t}`, Wo = (t) => f.isFunction(t) || t === null || t === !1, Jr = {
996
+ getAdapter: (t) => {
997
+ t = f.isArray(t) ? t : [t];
998
+ const { length: e } = t;
999
+ let n, r;
1000
+ const o = {};
1001
+ for (let a = 0; a < e; a++) {
1002
+ n = t[a];
1003
+ let i;
1004
+ if (r = n, !Wo(n) && (r = bt[(i = String(n)).toLowerCase()], r === void 0))
1005
+ throw new E(`Unknown adapter '${i}'`);
1006
+ if (r)
1007
+ break;
1008
+ o[i || "#" + a] = r;
1009
+ }
1010
+ if (!r) {
1011
+ const a = Object.entries(o).map(
1012
+ ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1013
+ );
1014
+ let i = e ? a.length > 1 ? `since :
1015
+ ` + a.map(Zt).join(`
1016
+ `) : " " + Zt(a[0]) : "as no adapter specified";
1017
+ throw new E(
1018
+ "There is no suitable adapter to dispatch the request " + i,
1019
+ "ERR_NOT_SUPPORT"
1020
+ );
1021
+ }
1022
+ return r;
1023
+ },
1024
+ adapters: bt
1025
+ };
1026
+ function at(t) {
1027
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1028
+ throw new Fe(null, t);
1029
+ }
1030
+ function er(t) {
1031
+ return at(t), t.headers = L.from(t.headers), t.data = ot.call(
1032
+ t,
1033
+ t.transformRequest
1034
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(t.adapter || Ce.adapter)(t).then(function(r) {
1035
+ return at(t), r.data = ot.call(
1036
+ t,
1037
+ t.transformResponse,
1038
+ r
1039
+ ), r.headers = L.from(r.headers), r;
1040
+ }, function(r) {
1041
+ return Wr(r) || (at(t), r && r.response && (r.response.data = ot.call(
1042
+ t,
1043
+ t.transformResponse,
1044
+ r.response
1045
+ ), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
1046
+ });
1047
+ }
1048
+ const tr = (t) => t instanceof L ? t.toJSON() : t;
1049
+ function he(t, e) {
1050
+ e = e || {};
1051
+ const n = {};
1052
+ function r(l, p, c) {
1053
+ return f.isPlainObject(l) && f.isPlainObject(p) ? f.merge.call({ caseless: c }, l, p) : f.isPlainObject(p) ? f.merge({}, p) : f.isArray(p) ? p.slice() : p;
1054
+ }
1055
+ function o(l, p, c) {
1056
+ if (f.isUndefined(p)) {
1057
+ if (!f.isUndefined(l))
1058
+ return r(void 0, l, c);
1059
+ } else return r(l, p, c);
1060
+ }
1061
+ function a(l, p) {
1062
+ if (!f.isUndefined(p))
1063
+ return r(void 0, p);
1064
+ }
1065
+ function i(l, p) {
1066
+ if (f.isUndefined(p)) {
1067
+ if (!f.isUndefined(l))
1068
+ return r(void 0, l);
1069
+ } else return r(void 0, p);
1070
+ }
1071
+ function s(l, p, c) {
1072
+ if (c in e)
1073
+ return r(l, p);
1074
+ if (c in t)
1075
+ return r(void 0, l);
1076
+ }
1077
+ const u = {
1078
+ url: a,
1079
+ method: a,
1080
+ data: a,
1081
+ baseURL: i,
1082
+ transformRequest: i,
1083
+ transformResponse: i,
1084
+ paramsSerializer: i,
1085
+ timeout: i,
1086
+ timeoutMessage: i,
1087
+ withCredentials: i,
1088
+ withXSRFToken: i,
1089
+ adapter: i,
1090
+ responseType: i,
1091
+ xsrfCookieName: i,
1092
+ xsrfHeaderName: i,
1093
+ onUploadProgress: i,
1094
+ onDownloadProgress: i,
1095
+ decompress: i,
1096
+ maxContentLength: i,
1097
+ maxBodyLength: i,
1098
+ beforeRedirect: i,
1099
+ transport: i,
1100
+ httpAgent: i,
1101
+ httpsAgent: i,
1102
+ cancelToken: i,
1103
+ socketPath: i,
1104
+ responseEncoding: i,
1105
+ validateStatus: s,
1106
+ headers: (l, p) => o(tr(l), tr(p), !0)
1107
+ };
1108
+ return f.forEach(Object.keys(Object.assign({}, t, e)), function(p) {
1109
+ const c = u[p] || o, m = c(t[p], e[p], p);
1110
+ f.isUndefined(m) && c !== s || (n[p] = m);
1111
+ }), n;
1112
+ }
1113
+ const Vr = "1.6.7", $t = {};
1114
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1115
+ $t[t] = function(r) {
1116
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1117
+ };
1118
+ });
1119
+ const rr = {};
1120
+ $t.transitional = function(e, n, r) {
1121
+ function o(a, i) {
1122
+ return "[Axios v" + Vr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1123
+ }
1124
+ return (a, i, s) => {
1125
+ if (e === !1)
1126
+ throw new E(
1127
+ o(i, " has been removed" + (n ? " in " + n : "")),
1128
+ E.ERR_DEPRECATED
1129
+ );
1130
+ return n && !rr[i] && (rr[i] = !0), e ? e(a, i, s) : !0;
1131
+ };
1132
+ };
1133
+ function Go(t, e, n) {
1134
+ if (typeof t != "object")
1135
+ throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
1136
+ const r = Object.keys(t);
1137
+ let o = r.length;
1138
+ for (; o-- > 0; ) {
1139
+ const a = r[o], i = e[a];
1140
+ if (i) {
1141
+ const s = t[a], u = s === void 0 || i(s, a, t);
1142
+ if (u !== !0)
1143
+ throw new E("option " + a + " must be " + u, E.ERR_BAD_OPTION_VALUE);
1144
+ continue;
1145
+ }
1146
+ if (n !== !0)
1147
+ throw new E("Unknown option " + a, E.ERR_BAD_OPTION);
1148
+ }
1149
+ }
1150
+ const wt = {
1151
+ assertOptions: Go,
1152
+ validators: $t
1153
+ }, te = wt.validators;
1154
+ class le {
1155
+ constructor(e) {
1156
+ this.defaults = e, this.interceptors = {
1157
+ request: new Qt(),
1158
+ response: new Qt()
1159
+ };
1160
+ }
1161
+ /**
1162
+ * Dispatch a request
1163
+ *
1164
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1165
+ * @param {?Object} config
1166
+ *
1167
+ * @returns {Promise} The Promise to be fulfilled
1168
+ */
1169
+ async request(e, n) {
1170
+ try {
1171
+ return await this._request(e, n);
1172
+ } catch (r) {
1173
+ if (r instanceof Error) {
1174
+ let o;
1175
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1176
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1177
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1178
+ ` + a) : r.stack = a;
1179
+ }
1180
+ throw r;
1181
+ }
1182
+ }
1183
+ _request(e, n) {
1184
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = he(this.defaults, n);
1185
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1186
+ r !== void 0 && wt.assertOptions(r, {
1187
+ silentJSONParsing: te.transitional(te.boolean),
1188
+ forcedJSONParsing: te.transitional(te.boolean),
1189
+ clarifyTimeoutError: te.transitional(te.boolean)
1190
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1191
+ serialize: o
1192
+ } : wt.assertOptions(o, {
1193
+ encode: te.function,
1194
+ serialize: te.function
1195
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1196
+ let i = a && f.merge(
1197
+ a.common,
1198
+ a[n.method]
1199
+ );
1200
+ a && f.forEach(
1201
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1202
+ (d) => {
1203
+ delete a[d];
1204
+ }
1205
+ ), n.headers = L.concat(i, a);
1206
+ const s = [];
1207
+ let u = !0;
1208
+ this.interceptors.request.forEach(function(y) {
1209
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (u = u && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1210
+ });
1211
+ const l = [];
1212
+ this.interceptors.response.forEach(function(y) {
1213
+ l.push(y.fulfilled, y.rejected);
1214
+ });
1215
+ let p, c = 0, m;
1216
+ if (!u) {
1217
+ const d = [er.bind(this), void 0];
1218
+ for (d.unshift.apply(d, s), d.push.apply(d, l), m = d.length, p = Promise.resolve(n); c < m; )
1219
+ p = p.then(d[c++], d[c++]);
1220
+ return p;
1221
+ }
1222
+ m = s.length;
1223
+ let v = n;
1224
+ for (c = 0; c < m; ) {
1225
+ const d = s[c++], y = s[c++];
1226
+ try {
1227
+ v = d(v);
1228
+ } catch (O) {
1229
+ y.call(this, O);
1230
+ break;
1231
+ }
1232
+ }
1233
+ try {
1234
+ p = er.call(this, v);
1235
+ } catch (d) {
1236
+ return Promise.reject(d);
1237
+ }
1238
+ for (c = 0, m = l.length; c < m; )
1239
+ p = p.then(l[c++], l[c++]);
1240
+ return p;
1241
+ }
1242
+ getUri(e) {
1243
+ e = he(this.defaults, e);
1244
+ const n = Gr(e.baseURL, e.url);
1245
+ return jr(n, e.params, e.paramsSerializer);
1246
+ }
1247
+ }
1248
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1249
+ le.prototype[e] = function(n, r) {
1250
+ return this.request(he(r || {}, {
1251
+ method: e,
1252
+ url: n,
1253
+ data: (r || {}).data
1254
+ }));
1255
+ };
1256
+ });
1257
+ f.forEach(["post", "put", "patch"], function(e) {
1258
+ function n(r) {
1259
+ return function(a, i, s) {
1260
+ return this.request(he(s || {}, {
1261
+ method: e,
1262
+ headers: r ? {
1263
+ "Content-Type": "multipart/form-data"
1264
+ } : {},
1265
+ url: a,
1266
+ data: i
1267
+ }));
1268
+ };
1269
+ }
1270
+ le.prototype[e] = n(), le.prototype[e + "Form"] = n(!0);
1271
+ });
1272
+ class _t {
1273
+ constructor(e) {
1274
+ if (typeof e != "function")
1275
+ throw new TypeError("executor must be a function.");
1276
+ let n;
1277
+ this.promise = new Promise(function(a) {
1278
+ n = a;
1279
+ });
1280
+ const r = this;
1281
+ this.promise.then((o) => {
1282
+ if (!r._listeners) return;
1283
+ let a = r._listeners.length;
1284
+ for (; a-- > 0; )
1285
+ r._listeners[a](o);
1286
+ r._listeners = null;
1287
+ }), this.promise.then = (o) => {
1288
+ let a;
1289
+ const i = new Promise((s) => {
1290
+ r.subscribe(s), a = s;
1291
+ }).then(o);
1292
+ return i.cancel = function() {
1293
+ r.unsubscribe(a);
1294
+ }, i;
1295
+ }, e(function(a, i, s) {
1296
+ r.reason || (r.reason = new Fe(a, i, s), n(r.reason));
1297
+ });
1298
+ }
1299
+ /**
1300
+ * Throws a `CanceledError` if cancellation has been requested.
1301
+ */
1302
+ throwIfRequested() {
1303
+ if (this.reason)
1304
+ throw this.reason;
1305
+ }
1306
+ /**
1307
+ * Subscribe to the cancel signal
1308
+ */
1309
+ subscribe(e) {
1310
+ if (this.reason) {
1311
+ e(this.reason);
1312
+ return;
1313
+ }
1314
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1315
+ }
1316
+ /**
1317
+ * Unsubscribe from the cancel signal
1318
+ */
1319
+ unsubscribe(e) {
1320
+ if (!this._listeners)
1321
+ return;
1322
+ const n = this._listeners.indexOf(e);
1323
+ n !== -1 && this._listeners.splice(n, 1);
1324
+ }
1325
+ /**
1326
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1327
+ * cancels the `CancelToken`.
1328
+ */
1329
+ static source() {
1330
+ let e;
1331
+ return {
1332
+ token: new _t(function(o) {
1333
+ e = o;
1334
+ }),
1335
+ cancel: e
1336
+ };
1337
+ }
1338
+ }
1339
+ function Jo(t) {
1340
+ return function(n) {
1341
+ return t.apply(null, n);
1342
+ };
1343
+ }
1344
+ function Vo(t) {
1345
+ return f.isObject(t) && t.isAxiosError === !0;
1346
+ }
1347
+ const St = {
1348
+ Continue: 100,
1349
+ SwitchingProtocols: 101,
1350
+ Processing: 102,
1351
+ EarlyHints: 103,
1352
+ Ok: 200,
1353
+ Created: 201,
1354
+ Accepted: 202,
1355
+ NonAuthoritativeInformation: 203,
1356
+ NoContent: 204,
1357
+ ResetContent: 205,
1358
+ PartialContent: 206,
1359
+ MultiStatus: 207,
1360
+ AlreadyReported: 208,
1361
+ ImUsed: 226,
1362
+ MultipleChoices: 300,
1363
+ MovedPermanently: 301,
1364
+ Found: 302,
1365
+ SeeOther: 303,
1366
+ NotModified: 304,
1367
+ UseProxy: 305,
1368
+ Unused: 306,
1369
+ TemporaryRedirect: 307,
1370
+ PermanentRedirect: 308,
1371
+ BadRequest: 400,
1372
+ Unauthorized: 401,
1373
+ PaymentRequired: 402,
1374
+ Forbidden: 403,
1375
+ NotFound: 404,
1376
+ MethodNotAllowed: 405,
1377
+ NotAcceptable: 406,
1378
+ ProxyAuthenticationRequired: 407,
1379
+ RequestTimeout: 408,
1380
+ Conflict: 409,
1381
+ Gone: 410,
1382
+ LengthRequired: 411,
1383
+ PreconditionFailed: 412,
1384
+ PayloadTooLarge: 413,
1385
+ UriTooLong: 414,
1386
+ UnsupportedMediaType: 415,
1387
+ RangeNotSatisfiable: 416,
1388
+ ExpectationFailed: 417,
1389
+ ImATeapot: 418,
1390
+ MisdirectedRequest: 421,
1391
+ UnprocessableEntity: 422,
1392
+ Locked: 423,
1393
+ FailedDependency: 424,
1394
+ TooEarly: 425,
1395
+ UpgradeRequired: 426,
1396
+ PreconditionRequired: 428,
1397
+ TooManyRequests: 429,
1398
+ RequestHeaderFieldsTooLarge: 431,
1399
+ UnavailableForLegalReasons: 451,
1400
+ InternalServerError: 500,
1401
+ NotImplemented: 501,
1402
+ BadGateway: 502,
1403
+ ServiceUnavailable: 503,
1404
+ GatewayTimeout: 504,
1405
+ HttpVersionNotSupported: 505,
1406
+ VariantAlsoNegotiates: 506,
1407
+ InsufficientStorage: 507,
1408
+ LoopDetected: 508,
1409
+ NotExtended: 510,
1410
+ NetworkAuthenticationRequired: 511
1411
+ };
1412
+ Object.entries(St).forEach(([t, e]) => {
1413
+ St[e] = t;
1414
+ });
1415
+ function Kr(t) {
1416
+ const e = new le(t), n = Nr(le.prototype.request, e);
1417
+ return f.extend(n, le.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1418
+ return Kr(he(t, o));
1419
+ }, n;
1420
+ }
1421
+ const T = Kr(Ce);
1422
+ T.Axios = le;
1423
+ T.CanceledError = Fe;
1424
+ T.CancelToken = _t;
1425
+ T.isCancel = Wr;
1426
+ T.VERSION = Vr;
1427
+ T.toFormData = Ze;
1428
+ T.AxiosError = E;
1429
+ T.Cancel = T.CanceledError;
1430
+ T.all = function(e) {
1431
+ return Promise.all(e);
1432
+ };
1433
+ T.spread = Jo;
1434
+ T.isAxiosError = Vo;
1435
+ T.mergeConfig = he;
1436
+ T.AxiosHeaders = L;
1437
+ T.formToJSON = (t) => qr(f.isHTMLForm(t) ? new FormData(t) : t);
1438
+ T.getAdapter = Jr.getAdapter;
1439
+ T.HttpStatusCode = St;
1440
+ T.default = T;
1441
+ var nr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1442
+ function Ko(t) {
1443
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1444
+ }
1445
+ function Qo(t) {
1446
+ if (t.__esModule) return t;
1447
+ var e = t.default;
1448
+ if (typeof e == "function") {
1449
+ var n = function r() {
1450
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1451
+ };
1452
+ n.prototype = e.prototype;
1453
+ } else n = {};
1454
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
1455
+ var o = Object.getOwnPropertyDescriptor(t, r);
1456
+ Object.defineProperty(n, r, o.get ? o : {
1457
+ enumerable: !0,
1458
+ get: function() {
1459
+ return t[r];
1460
+ }
1461
+ });
1462
+ }), n;
1463
+ }
1464
+ var Xo = Error, Yo = EvalError, Zo = RangeError, ea = ReferenceError, Qr = SyntaxError, $e = TypeError, ta = URIError, ra = function() {
1465
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1466
+ return !1;
1467
+ if (typeof Symbol.iterator == "symbol")
1468
+ return !0;
1469
+ var e = {}, n = Symbol("test"), r = Object(n);
1470
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
1471
+ return !1;
1472
+ var o = 42;
1473
+ e[n] = o;
1474
+ for (n in e)
1475
+ return !1;
1476
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1477
+ return !1;
1478
+ var a = Object.getOwnPropertySymbols(e);
1479
+ if (a.length !== 1 || a[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
1480
+ return !1;
1481
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
1482
+ var i = Object.getOwnPropertyDescriptor(e, n);
1483
+ if (i.value !== o || i.enumerable !== !0)
1484
+ return !1;
1485
+ }
1486
+ return !0;
1487
+ }, or = typeof Symbol < "u" && Symbol, na = ra, oa = function() {
1488
+ return typeof or != "function" || typeof Symbol != "function" || typeof or("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : na();
1489
+ }, it = {
1490
+ __proto__: null,
1491
+ foo: {}
1492
+ }, aa = Object, ia = function() {
1493
+ return { __proto__: it }.foo === it.foo && !(it instanceof aa);
1494
+ }, sa = "Function.prototype.bind called on incompatible ", la = Object.prototype.toString, ua = Math.max, ca = "[object Function]", ar = function(e, n) {
1495
+ for (var r = [], o = 0; o < e.length; o += 1)
1496
+ r[o] = e[o];
1497
+ for (var a = 0; a < n.length; a += 1)
1498
+ r[a + e.length] = n[a];
1499
+ return r;
1500
+ }, fa = function(e, n) {
1501
+ for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
1502
+ r[a] = e[o];
1503
+ return r;
1504
+ }, pa = function(t, e) {
1505
+ for (var n = "", r = 0; r < t.length; r += 1)
1506
+ n += t[r], r + 1 < t.length && (n += e);
1507
+ return n;
1508
+ }, da = function(e) {
1509
+ var n = this;
1510
+ if (typeof n != "function" || la.apply(n) !== ca)
1511
+ throw new TypeError(sa + n);
1512
+ for (var r = fa(arguments, 1), o, a = function() {
1513
+ if (this instanceof o) {
1514
+ var p = n.apply(
1515
+ this,
1516
+ ar(r, arguments)
1517
+ );
1518
+ return Object(p) === p ? p : this;
1519
+ }
1520
+ return n.apply(
1521
+ e,
1522
+ ar(r, arguments)
1523
+ );
1524
+ }, i = ua(0, n.length - r.length), s = [], u = 0; u < i; u++)
1525
+ s[u] = "$" + u;
1526
+ if (o = Function("binder", "return function (" + pa(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
1527
+ var l = function() {
1528
+ };
1529
+ l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
1530
+ }
1531
+ return o;
1532
+ }, ya = da, It = Function.prototype.bind || ya, ma = Function.prototype.call, ha = Object.prototype.hasOwnProperty, va = It, ga = va.call(ma, ha), S, ba = Xo, wa = Yo, Sa = Zo, Ea = ea, ve = Qr, me = $e, Oa = ta, Xr = Function, st = function(t) {
1533
+ try {
1534
+ return Xr('"use strict"; return (' + t + ").constructor;")();
1535
+ } catch {
1536
+ }
1537
+ }, ue = Object.getOwnPropertyDescriptor;
1538
+ if (ue)
1539
+ try {
1540
+ ue({}, "");
1541
+ } catch {
1542
+ ue = null;
1543
+ }
1544
+ var lt = function() {
1545
+ throw new me();
1546
+ }, Aa = ue ? function() {
1547
+ try {
1548
+ return arguments.callee, lt;
1549
+ } catch {
1550
+ try {
1551
+ return ue(arguments, "callee").get;
1552
+ } catch {
1553
+ return lt;
1554
+ }
1555
+ }
1556
+ }() : lt, pe = oa(), Ra = ia(), $ = Object.getPrototypeOf || (Ra ? function(t) {
1557
+ return t.__proto__;
1558
+ } : null), ye = {}, Pa = typeof Uint8Array > "u" || !$ ? S : $(Uint8Array), ce = {
1559
+ __proto__: null,
1560
+ "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
1561
+ "%Array%": Array,
1562
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
1563
+ "%ArrayIteratorPrototype%": pe && $ ? $([][Symbol.iterator]()) : S,
1564
+ "%AsyncFromSyncIteratorPrototype%": S,
1565
+ "%AsyncFunction%": ye,
1566
+ "%AsyncGenerator%": ye,
1567
+ "%AsyncGeneratorFunction%": ye,
1568
+ "%AsyncIteratorPrototype%": ye,
1569
+ "%Atomics%": typeof Atomics > "u" ? S : Atomics,
1570
+ "%BigInt%": typeof BigInt > "u" ? S : BigInt,
1571
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
1572
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
1573
+ "%Boolean%": Boolean,
1574
+ "%DataView%": typeof DataView > "u" ? S : DataView,
1575
+ "%Date%": Date,
1576
+ "%decodeURI%": decodeURI,
1577
+ "%decodeURIComponent%": decodeURIComponent,
1578
+ "%encodeURI%": encodeURI,
1579
+ "%encodeURIComponent%": encodeURIComponent,
1580
+ "%Error%": ba,
1581
+ "%eval%": eval,
1582
+ // eslint-disable-line no-eval
1583
+ "%EvalError%": wa,
1584
+ "%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
1585
+ "%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
1586
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
1587
+ "%Function%": Xr,
1588
+ "%GeneratorFunction%": ye,
1589
+ "%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
1590
+ "%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
1591
+ "%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
1592
+ "%isFinite%": isFinite,
1593
+ "%isNaN%": isNaN,
1594
+ "%IteratorPrototype%": pe && $ ? $($([][Symbol.iterator]())) : S,
1595
+ "%JSON%": typeof JSON == "object" ? JSON : S,
1596
+ "%Map%": typeof Map > "u" ? S : Map,
1597
+ "%MapIteratorPrototype%": typeof Map > "u" || !pe || !$ ? S : $((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1598
+ "%Math%": Math,
1599
+ "%Number%": Number,
1600
+ "%Object%": Object,
1601
+ "%parseFloat%": parseFloat,
1602
+ "%parseInt%": parseInt,
1603
+ "%Promise%": typeof Promise > "u" ? S : Promise,
1604
+ "%Proxy%": typeof Proxy > "u" ? S : Proxy,
1605
+ "%RangeError%": Sa,
1606
+ "%ReferenceError%": Ea,
1607
+ "%Reflect%": typeof Reflect > "u" ? S : Reflect,
1608
+ "%RegExp%": RegExp,
1609
+ "%Set%": typeof Set > "u" ? S : Set,
1610
+ "%SetIteratorPrototype%": typeof Set > "u" || !pe || !$ ? S : $((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1611
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
1612
+ "%String%": String,
1613
+ "%StringIteratorPrototype%": pe && $ ? $(""[Symbol.iterator]()) : S,
1614
+ "%Symbol%": pe ? Symbol : S,
1615
+ "%SyntaxError%": ve,
1616
+ "%ThrowTypeError%": Aa,
1617
+ "%TypedArray%": Pa,
1618
+ "%TypeError%": me,
1619
+ "%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
1620
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
1621
+ "%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
1622
+ "%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
1623
+ "%URIError%": Oa,
1624
+ "%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
1625
+ "%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
1626
+ "%WeakSet%": typeof WeakSet > "u" ? S : WeakSet
1627
+ };
1628
+ if ($)
1629
+ try {
1630
+ null.error;
1631
+ } catch (t) {
1632
+ var xa = $($(t));
1633
+ ce["%Error.prototype%"] = xa;
1634
+ }
1635
+ var Ta = function t(e) {
1636
+ var n;
1637
+ if (e === "%AsyncFunction%")
1638
+ n = st("async function () {}");
1639
+ else if (e === "%GeneratorFunction%")
1640
+ n = st("function* () {}");
1641
+ else if (e === "%AsyncGeneratorFunction%")
1642
+ n = st("async function* () {}");
1643
+ else if (e === "%AsyncGenerator%") {
1644
+ var r = t("%AsyncGeneratorFunction%");
1645
+ r && (n = r.prototype);
1646
+ } else if (e === "%AsyncIteratorPrototype%") {
1647
+ var o = t("%AsyncGenerator%");
1648
+ o && $ && (n = $(o.prototype));
1649
+ }
1650
+ return ce[e] = n, n;
1651
+ }, ir = {
1652
+ __proto__: null,
1653
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1654
+ "%ArrayPrototype%": ["Array", "prototype"],
1655
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1656
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1657
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1658
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1659
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1660
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1661
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1662
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1663
+ "%DataViewPrototype%": ["DataView", "prototype"],
1664
+ "%DatePrototype%": ["Date", "prototype"],
1665
+ "%ErrorPrototype%": ["Error", "prototype"],
1666
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1667
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1668
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1669
+ "%FunctionPrototype%": ["Function", "prototype"],
1670
+ "%Generator%": ["GeneratorFunction", "prototype"],
1671
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1672
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1673
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1674
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1675
+ "%JSONParse%": ["JSON", "parse"],
1676
+ "%JSONStringify%": ["JSON", "stringify"],
1677
+ "%MapPrototype%": ["Map", "prototype"],
1678
+ "%NumberPrototype%": ["Number", "prototype"],
1679
+ "%ObjectPrototype%": ["Object", "prototype"],
1680
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1681
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1682
+ "%PromisePrototype%": ["Promise", "prototype"],
1683
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1684
+ "%Promise_all%": ["Promise", "all"],
1685
+ "%Promise_reject%": ["Promise", "reject"],
1686
+ "%Promise_resolve%": ["Promise", "resolve"],
1687
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1688
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1689
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1690
+ "%SetPrototype%": ["Set", "prototype"],
1691
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1692
+ "%StringPrototype%": ["String", "prototype"],
1693
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1694
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1695
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1696
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1697
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1698
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1699
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1700
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1701
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1702
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1703
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1704
+ }, _e = It, We = ga, Na = _e.call(Function.call, Array.prototype.concat), Ca = _e.call(Function.apply, Array.prototype.splice), sr = _e.call(Function.call, String.prototype.replace), Ge = _e.call(Function.call, String.prototype.slice), Fa = _e.call(Function.call, RegExp.prototype.exec), $a = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, _a = /\\(\\)?/g, Ia = function(e) {
1705
+ var n = Ge(e, 0, 1), r = Ge(e, -1);
1706
+ if (n === "%" && r !== "%")
1707
+ throw new ve("invalid intrinsic syntax, expected closing `%`");
1708
+ if (r === "%" && n !== "%")
1709
+ throw new ve("invalid intrinsic syntax, expected opening `%`");
1710
+ var o = [];
1711
+ return sr(e, $a, function(a, i, s, u) {
1712
+ o[o.length] = s ? sr(u, _a, "$1") : i || a;
1713
+ }), o;
1714
+ }, Da = function(e, n) {
1715
+ var r = e, o;
1716
+ if (We(ir, r) && (o = ir[r], r = "%" + o[0] + "%"), We(ce, r)) {
1717
+ var a = ce[r];
1718
+ if (a === ye && (a = Ta(r)), typeof a > "u" && !n)
1719
+ throw new me("intrinsic " + e + " exists, but is not available. Please file an issue!");
1720
+ return {
1721
+ alias: o,
1722
+ name: r,
1723
+ value: a
1724
+ };
1725
+ }
1726
+ throw new ve("intrinsic " + e + " does not exist!");
1727
+ }, Se = function(e, n) {
1728
+ if (typeof e != "string" || e.length === 0)
1729
+ throw new me("intrinsic name must be a non-empty string");
1730
+ if (arguments.length > 1 && typeof n != "boolean")
1731
+ throw new me('"allowMissing" argument must be a boolean');
1732
+ if (Fa(/^%?[^%]*%?$/, e) === null)
1733
+ throw new ve("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1734
+ var r = Ia(e), o = r.length > 0 ? r[0] : "", a = Da("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
1735
+ l && (o = l[0], Ca(r, Na([0, 1], l)));
1736
+ for (var p = 1, c = !0; p < r.length; p += 1) {
1737
+ var m = r[p], v = Ge(m, 0, 1), d = Ge(m, -1);
1738
+ if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
1739
+ throw new ve("property names with quotes must have matching quotes");
1740
+ if ((m === "constructor" || !c) && (u = !0), o += "." + m, i = "%" + o + "%", We(ce, i))
1741
+ s = ce[i];
1742
+ else if (s != null) {
1743
+ if (!(m in s)) {
1744
+ if (!n)
1745
+ throw new me("base intrinsic for " + e + " exists, but the property is not available.");
1746
+ return;
1747
+ }
1748
+ if (ue && p + 1 >= r.length) {
1749
+ var y = ue(s, m);
1750
+ c = !!y, c && "get" in y && !("originalValue" in y.get) ? s = y.get : s = s[m];
1751
+ } else
1752
+ c = We(s, m), s = s[m];
1753
+ c && !u && (ce[i] = s);
1754
+ }
1755
+ }
1756
+ return s;
1757
+ }, Yr = { exports: {} }, ut, lr;
1758
+ function Dt() {
1759
+ if (lr) return ut;
1760
+ lr = 1;
1761
+ var t = Se, e = t("%Object.defineProperty%", !0) || !1;
1762
+ if (e)
1763
+ try {
1764
+ e({}, "a", { value: 1 });
1765
+ } catch {
1766
+ e = !1;
1767
+ }
1768
+ return ut = e, ut;
1769
+ }
1770
+ var Ba = Se, ze = Ba("%Object.getOwnPropertyDescriptor%", !0);
1771
+ if (ze)
1772
+ try {
1773
+ ze([], "length");
1774
+ } catch {
1775
+ ze = null;
1776
+ }
1777
+ var Zr = ze, ur = Dt(), Ua = Qr, de = $e, cr = Zr, ka = function(e, n, r) {
1778
+ if (!e || typeof e != "object" && typeof e != "function")
1779
+ throw new de("`obj` must be an object or a function`");
1780
+ if (typeof n != "string" && typeof n != "symbol")
1781
+ throw new de("`property` must be a string or a symbol`");
1782
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
1783
+ throw new de("`nonEnumerable`, if provided, must be a boolean or null");
1784
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
1785
+ throw new de("`nonWritable`, if provided, must be a boolean or null");
1786
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
1787
+ throw new de("`nonConfigurable`, if provided, must be a boolean or null");
1788
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
1789
+ throw new de("`loose`, if provided, must be a boolean");
1790
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, u = !!cr && cr(e, n);
1791
+ if (ur)
1792
+ ur(e, n, {
1793
+ configurable: i === null && u ? u.configurable : !i,
1794
+ enumerable: o === null && u ? u.enumerable : !o,
1795
+ value: r,
1796
+ writable: a === null && u ? u.writable : !a
1797
+ });
1798
+ else if (s || !o && !a && !i)
1799
+ e[n] = r;
1800
+ else
1801
+ throw new Ua("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1802
+ }, Et = Dt(), en = function() {
1803
+ return !!Et;
1804
+ };
1805
+ en.hasArrayLengthDefineBug = function() {
1806
+ if (!Et)
1807
+ return null;
1808
+ try {
1809
+ return Et([], "length", { value: 1 }).length !== 1;
1810
+ } catch {
1811
+ return !0;
1812
+ }
1813
+ };
1814
+ var La = en, Ma = Se, fr = ka, ja = La(), pr = Zr, dr = $e, za = Ma("%Math.floor%"), Ha = function(e, n) {
1815
+ if (typeof e != "function")
1816
+ throw new dr("`fn` is not a function");
1817
+ if (typeof n != "number" || n < 0 || n > 4294967295 || za(n) !== n)
1818
+ throw new dr("`length` must be a positive 32-bit integer");
1819
+ var r = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
1820
+ if ("length" in e && pr) {
1821
+ var i = pr(e, "length");
1822
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
1823
+ }
1824
+ return (o || a || !r) && (ja ? fr(
1825
+ /** @type {Parameters<define>[0]} */
1826
+ e,
1827
+ "length",
1828
+ n,
1829
+ !0,
1830
+ !0
1831
+ ) : fr(
1832
+ /** @type {Parameters<define>[0]} */
1833
+ e,
1834
+ "length",
1835
+ n
1836
+ )), e;
1837
+ };
1838
+ (function(t) {
1839
+ var e = It, n = Se, r = Ha, o = $e, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Dt(), l = n("%Math.max%");
1840
+ t.exports = function(m) {
1841
+ if (typeof m != "function")
1842
+ throw new o("a function is required");
1843
+ var v = s(e, i, arguments);
1844
+ return r(
1845
+ v,
1846
+ 1 + l(0, m.length - (arguments.length - 1)),
1847
+ !0
1848
+ );
1849
+ };
1850
+ var p = function() {
1851
+ return s(e, a, arguments);
1852
+ };
1853
+ u ? u(t.exports, "apply", { value: p }) : t.exports.apply = p;
1854
+ })(Yr);
1855
+ var qa = Yr.exports, tn = Se, rn = qa, Wa = rn(tn("String.prototype.indexOf")), Ga = function(e, n) {
1856
+ var r = tn(e, !!n);
1857
+ return typeof r == "function" && Wa(e, ".prototype.") > -1 ? rn(r) : r;
1858
+ };
1859
+ const Ja = {}, Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1860
+ __proto__: null,
1861
+ default: Ja
1862
+ }, Symbol.toStringTag, { value: "Module" })), Ka = /* @__PURE__ */ Qo(Va);
1863
+ var Bt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Bt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Je = Bt && ct && typeof ct.get == "function" ? ct.get : null, yr = Bt && Map.prototype.forEach, Ut = typeof Set == "function" && Set.prototype, ft = Object.getOwnPropertyDescriptor && Ut ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ve = Ut && ft && typeof ft.get == "function" ? ft.get : null, mr = Ut && Set.prototype.forEach, Qa = typeof WeakMap == "function" && WeakMap.prototype, Re = Qa ? WeakMap.prototype.has : null, Xa = typeof WeakSet == "function" && WeakSet.prototype, Pe = Xa ? WeakSet.prototype.has : null, Ya = typeof WeakRef == "function" && WeakRef.prototype, hr = Ya ? WeakRef.prototype.deref : null, Za = Boolean.prototype.valueOf, ei = Object.prototype.toString, ti = Function.prototype.toString, ri = String.prototype.match, kt = String.prototype.slice, ne = String.prototype.replace, ni = String.prototype.toUpperCase, vr = String.prototype.toLowerCase, nn = RegExp.prototype.test, gr = Array.prototype.concat, K = Array.prototype.join, oi = Array.prototype.slice, br = Math.floor, Ot = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, pt = Object.getOwnPropertySymbols, At = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ge = typeof Symbol == "function" && typeof Symbol.iterator == "object", I = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ge || !0) ? Symbol.toStringTag : null, on = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1864
+ return t.__proto__;
1865
+ } : null);
1866
+ function Sr(t, e) {
1867
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || nn.call(/e/, e))
1868
+ return e;
1869
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1870
+ if (typeof t == "number") {
1871
+ var r = t < 0 ? -br(-t) : br(t);
1872
+ if (r !== t) {
1873
+ var o = String(r), a = kt.call(e, o.length + 1);
1874
+ return ne.call(o, n, "$&_") + "." + ne.call(ne.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1875
+ }
1876
+ }
1877
+ return ne.call(e, n, "$&_");
1878
+ }
1879
+ var Rt = Ka, Er = Rt.custom, Or = sn(Er) ? Er : null, ai = function t(e, n, r, o) {
1880
+ var a = n || {};
1881
+ if (re(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
1882
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1883
+ if (re(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1884
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1885
+ var i = re(a, "customInspect") ? a.customInspect : !0;
1886
+ if (typeof i != "boolean" && i !== "symbol")
1887
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1888
+ if (re(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1889
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1890
+ if (re(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1891
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1892
+ var s = a.numericSeparator;
1893
+ if (typeof e > "u")
1894
+ return "undefined";
1895
+ if (e === null)
1896
+ return "null";
1897
+ if (typeof e == "boolean")
1898
+ return e ? "true" : "false";
1899
+ if (typeof e == "string")
1900
+ return un(e, a);
1901
+ if (typeof e == "number") {
1902
+ if (e === 0)
1903
+ return 1 / 0 / e > 0 ? "0" : "-0";
1904
+ var u = String(e);
1905
+ return s ? Sr(e, u) : u;
1906
+ }
1907
+ if (typeof e == "bigint") {
1908
+ var l = String(e) + "n";
1909
+ return s ? Sr(e, l) : l;
1910
+ }
1911
+ var p = typeof a.depth > "u" ? 5 : a.depth;
1912
+ if (typeof r > "u" && (r = 0), r >= p && p > 0 && typeof e == "object")
1913
+ return Pt(e) ? "[Array]" : "[Object]";
1914
+ var c = Oi(a, r);
1915
+ if (typeof o > "u")
1916
+ o = [];
1917
+ else if (ln(o, e) >= 0)
1918
+ return "[Circular]";
1919
+ function m(R, C, g) {
1920
+ if (C && (o = oi.call(o), o.push(C)), g) {
1921
+ var D = {
1922
+ depth: a.depth
1923
+ };
1924
+ return re(a, "quoteStyle") && (D.quoteStyle = a.quoteStyle), t(R, D, r + 1, o);
1925
+ }
1926
+ return t(R, a, r + 1, o);
1927
+ }
1928
+ if (typeof e == "function" && !Ar(e)) {
1929
+ var v = yi(e), d = Be(e, m);
1930
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + K.call(d, ", ") + " }" : "");
1931
+ }
1932
+ if (sn(e)) {
1933
+ var y = ge ? ne.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : At.call(e);
1934
+ return typeof e == "object" && !ge ? Ae(y) : y;
1935
+ }
1936
+ if (wi(e)) {
1937
+ for (var O = "<" + vr.call(String(e.nodeName)), h = e.attributes || [], x = 0; x < h.length; x++)
1938
+ O += " " + h[x].name + "=" + an(ii(h[x].value), "double", a);
1939
+ return O += ">", e.childNodes && e.childNodes.length && (O += "..."), O += "</" + vr.call(String(e.nodeName)) + ">", O;
1940
+ }
1941
+ if (Pt(e)) {
1942
+ if (e.length === 0)
1943
+ return "[]";
1944
+ var N = Be(e, m);
1945
+ return c && !Ei(N) ? "[" + xt(N, c) + "]" : "[ " + K.call(N, ", ") + " ]";
1946
+ }
1947
+ if (li(e)) {
1948
+ var q = Be(e, m);
1949
+ return !("cause" in Error.prototype) && "cause" in e && !on.call(e, "cause") ? "{ [" + String(e) + "] " + K.call(gr.call("[cause]: " + m(e.cause), q), ", ") + " }" : q.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + K.call(q, ", ") + " }";
1950
+ }
1951
+ if (typeof e == "object" && i) {
1952
+ if (Or && typeof e[Or] == "function" && Rt)
1953
+ return Rt(e, { depth: p - r });
1954
+ if (i !== "symbol" && typeof e.inspect == "function")
1955
+ return e.inspect();
1956
+ }
1957
+ if (mi(e)) {
1958
+ var W = [];
1959
+ return yr && yr.call(e, function(R, C) {
1960
+ W.push(m(C, e, !0) + " => " + m(R, e));
1961
+ }), Rr("Map", Je.call(e), W, c);
1962
+ }
1963
+ if (gi(e)) {
1964
+ var ae = [];
1965
+ return mr && mr.call(e, function(R) {
1966
+ ae.push(m(R, e));
1967
+ }), Rr("Set", Ve.call(e), ae, c);
1968
+ }
1969
+ if (hi(e))
1970
+ return dt("WeakMap");
1971
+ if (bi(e))
1972
+ return dt("WeakSet");
1973
+ if (vi(e))
1974
+ return dt("WeakRef");
1975
+ if (ci(e))
1976
+ return Ae(m(Number(e)));
1977
+ if (pi(e))
1978
+ return Ae(m(Ot.call(e)));
1979
+ if (fi(e))
1980
+ return Ae(Za.call(e));
1981
+ if (ui(e))
1982
+ return Ae(m(String(e)));
1983
+ if (typeof window < "u" && e === window)
1984
+ return "{ [object Window] }";
1985
+ if (typeof globalThis < "u" && e === globalThis || typeof nr < "u" && e === nr)
1986
+ return "{ [object globalThis] }";
1987
+ if (!si(e) && !Ar(e)) {
1988
+ var G = Be(e, m), M = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, ie = e instanceof Object ? "" : "null prototype", b = !M && I && Object(e) === e && I in e ? kt.call(oe(e), 8, -1) : ie ? "Object" : "", w = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", A = w + (b || ie ? "[" + K.call(gr.call([], b || [], ie || []), ": ") + "] " : "");
1989
+ return G.length === 0 ? A + "{}" : c ? A + "{" + xt(G, c) + "}" : A + "{ " + K.call(G, ", ") + " }";
1990
+ }
1991
+ return String(e);
1992
+ };
1993
+ function an(t, e, n) {
1994
+ var r = (n.quoteStyle || e) === "double" ? '"' : "'";
1995
+ return r + t + r;
1996
+ }
1997
+ function ii(t) {
1998
+ return ne.call(String(t), /"/g, "&quot;");
1999
+ }
2000
+ function Pt(t) {
2001
+ return oe(t) === "[object Array]" && (!I || !(typeof t == "object" && I in t));
2002
+ }
2003
+ function si(t) {
2004
+ return oe(t) === "[object Date]" && (!I || !(typeof t == "object" && I in t));
2005
+ }
2006
+ function Ar(t) {
2007
+ return oe(t) === "[object RegExp]" && (!I || !(typeof t == "object" && I in t));
2008
+ }
2009
+ function li(t) {
2010
+ return oe(t) === "[object Error]" && (!I || !(typeof t == "object" && I in t));
2011
+ }
2012
+ function ui(t) {
2013
+ return oe(t) === "[object String]" && (!I || !(typeof t == "object" && I in t));
2014
+ }
2015
+ function ci(t) {
2016
+ return oe(t) === "[object Number]" && (!I || !(typeof t == "object" && I in t));
2017
+ }
2018
+ function fi(t) {
2019
+ return oe(t) === "[object Boolean]" && (!I || !(typeof t == "object" && I in t));
2020
+ }
2021
+ function sn(t) {
2022
+ if (ge)
2023
+ return t && typeof t == "object" && t instanceof Symbol;
2024
+ if (typeof t == "symbol")
2025
+ return !0;
2026
+ if (!t || typeof t != "object" || !At)
2027
+ return !1;
2028
+ try {
2029
+ return At.call(t), !0;
2030
+ } catch {
2031
+ }
2032
+ return !1;
2033
+ }
2034
+ function pi(t) {
2035
+ if (!t || typeof t != "object" || !Ot)
2036
+ return !1;
2037
+ try {
2038
+ return Ot.call(t), !0;
2039
+ } catch {
2040
+ }
2041
+ return !1;
2042
+ }
2043
+ var di = Object.prototype.hasOwnProperty || function(t) {
2044
+ return t in this;
2045
+ };
2046
+ function re(t, e) {
2047
+ return di.call(t, e);
2048
+ }
2049
+ function oe(t) {
2050
+ return ei.call(t);
2051
+ }
2052
+ function yi(t) {
2053
+ if (t.name)
2054
+ return t.name;
2055
+ var e = ri.call(ti.call(t), /^function\s*([\w$]+)/);
2056
+ return e ? e[1] : null;
2057
+ }
2058
+ function ln(t, e) {
2059
+ if (t.indexOf)
2060
+ return t.indexOf(e);
2061
+ for (var n = 0, r = t.length; n < r; n++)
2062
+ if (t[n] === e)
2063
+ return n;
2064
+ return -1;
2065
+ }
2066
+ function mi(t) {
2067
+ if (!Je || !t || typeof t != "object")
2068
+ return !1;
2069
+ try {
2070
+ Je.call(t);
2071
+ try {
2072
+ Ve.call(t);
2073
+ } catch {
2074
+ return !0;
2075
+ }
2076
+ return t instanceof Map;
2077
+ } catch {
2078
+ }
2079
+ return !1;
2080
+ }
2081
+ function hi(t) {
2082
+ if (!Re || !t || typeof t != "object")
2083
+ return !1;
2084
+ try {
2085
+ Re.call(t, Re);
2086
+ try {
2087
+ Pe.call(t, Pe);
2088
+ } catch {
2089
+ return !0;
2090
+ }
2091
+ return t instanceof WeakMap;
2092
+ } catch {
2093
+ }
2094
+ return !1;
2095
+ }
2096
+ function vi(t) {
2097
+ if (!hr || !t || typeof t != "object")
2098
+ return !1;
2099
+ try {
2100
+ return hr.call(t), !0;
2101
+ } catch {
2102
+ }
2103
+ return !1;
2104
+ }
2105
+ function gi(t) {
2106
+ if (!Ve || !t || typeof t != "object")
2107
+ return !1;
2108
+ try {
2109
+ Ve.call(t);
2110
+ try {
2111
+ Je.call(t);
2112
+ } catch {
2113
+ return !0;
2114
+ }
2115
+ return t instanceof Set;
2116
+ } catch {
2117
+ }
2118
+ return !1;
2119
+ }
2120
+ function bi(t) {
2121
+ if (!Pe || !t || typeof t != "object")
2122
+ return !1;
2123
+ try {
2124
+ Pe.call(t, Pe);
2125
+ try {
2126
+ Re.call(t, Re);
2127
+ } catch {
2128
+ return !0;
2129
+ }
2130
+ return t instanceof WeakSet;
2131
+ } catch {
2132
+ }
2133
+ return !1;
2134
+ }
2135
+ function wi(t) {
2136
+ return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2137
+ }
2138
+ function un(t, e) {
2139
+ if (t.length > e.maxStringLength) {
2140
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2141
+ return un(kt.call(t, 0, e.maxStringLength), e) + r;
2142
+ }
2143
+ var o = ne.call(ne.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Si);
2144
+ return an(o, "single", e);
2145
+ }
2146
+ function Si(t) {
2147
+ var e = t.charCodeAt(0), n = {
2148
+ 8: "b",
2149
+ 9: "t",
2150
+ 10: "n",
2151
+ 12: "f",
2152
+ 13: "r"
2153
+ }[e];
2154
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + ni.call(e.toString(16));
2155
+ }
2156
+ function Ae(t) {
2157
+ return "Object(" + t + ")";
2158
+ }
2159
+ function dt(t) {
2160
+ return t + " { ? }";
2161
+ }
2162
+ function Rr(t, e, n, r) {
2163
+ var o = r ? xt(n, r) : K.call(n, ", ");
2164
+ return t + " (" + e + ") {" + o + "}";
2165
+ }
2166
+ function Ei(t) {
2167
+ for (var e = 0; e < t.length; e++)
2168
+ if (ln(t[e], `
2169
+ `) >= 0)
2170
+ return !1;
2171
+ return !0;
2172
+ }
2173
+ function Oi(t, e) {
2174
+ var n;
2175
+ if (t.indent === " ")
2176
+ n = " ";
2177
+ else if (typeof t.indent == "number" && t.indent > 0)
2178
+ n = K.call(Array(t.indent + 1), " ");
2179
+ else
2180
+ return null;
2181
+ return {
2182
+ base: n,
2183
+ prev: K.call(Array(e + 1), n)
2184
+ };
2185
+ }
2186
+ function xt(t, e) {
2187
+ if (t.length === 0)
2188
+ return "";
2189
+ var n = `
2190
+ ` + e.prev + e.base;
2191
+ return n + K.call(t, "," + n) + `
2192
+ ` + e.prev;
2193
+ }
2194
+ function Be(t, e) {
2195
+ var n = Pt(t), r = [];
2196
+ if (n) {
2197
+ r.length = t.length;
2198
+ for (var o = 0; o < t.length; o++)
2199
+ r[o] = re(t, o) ? e(t[o], t) : "";
2200
+ }
2201
+ var a = typeof pt == "function" ? pt(t) : [], i;
2202
+ if (ge) {
2203
+ i = {};
2204
+ for (var s = 0; s < a.length; s++)
2205
+ i["$" + a[s]] = a[s];
2206
+ }
2207
+ for (var u in t)
2208
+ re(t, u) && (n && String(Number(u)) === u && u < t.length || ge && i["$" + u] instanceof Symbol || (nn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2209
+ if (typeof pt == "function")
2210
+ for (var l = 0; l < a.length; l++)
2211
+ on.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2212
+ return r;
2213
+ }
2214
+ var cn = Se, Ee = Ga, Ai = ai, Ri = $e, Ue = cn("%WeakMap%", !0), ke = cn("%Map%", !0), Pi = Ee("WeakMap.prototype.get", !0), xi = Ee("WeakMap.prototype.set", !0), Ti = Ee("WeakMap.prototype.has", !0), Ni = Ee("Map.prototype.get", !0), Ci = Ee("Map.prototype.set", !0), Fi = Ee("Map.prototype.has", !0), Lt = function(t, e) {
2215
+ for (var n = t, r; (r = n.next) !== null; n = r)
2216
+ if (r.key === e)
2217
+ return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
2218
+ t.next, t.next = r, r;
2219
+ }, $i = function(t, e) {
2220
+ var n = Lt(t, e);
2221
+ return n && n.value;
2222
+ }, _i = function(t, e, n) {
2223
+ var r = Lt(t, e);
2224
+ r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
2225
+ {
2226
+ // eslint-disable-line no-param-reassign, no-extra-parens
2227
+ key: e,
2228
+ next: t.next,
2229
+ value: n
2230
+ };
2231
+ }, Ii = function(t, e) {
2232
+ return !!Lt(t, e);
2233
+ }, Di = function() {
2234
+ var e, n, r, o = {
2235
+ assert: function(a) {
2236
+ if (!o.has(a))
2237
+ throw new Ri("Side channel does not contain " + Ai(a));
2238
+ },
2239
+ get: function(a) {
2240
+ if (Ue && a && (typeof a == "object" || typeof a == "function")) {
2241
+ if (e)
2242
+ return Pi(e, a);
2243
+ } else if (ke) {
2244
+ if (n)
2245
+ return Ni(n, a);
2246
+ } else if (r)
2247
+ return $i(r, a);
2248
+ },
2249
+ has: function(a) {
2250
+ if (Ue && a && (typeof a == "object" || typeof a == "function")) {
2251
+ if (e)
2252
+ return Ti(e, a);
2253
+ } else if (ke) {
2254
+ if (n)
2255
+ return Fi(n, a);
2256
+ } else if (r)
2257
+ return Ii(r, a);
2258
+ return !1;
2259
+ },
2260
+ set: function(a, i) {
2261
+ Ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Ue()), xi(e, a, i)) : ke ? (n || (n = new ke()), Ci(n, a, i)) : (r || (r = { key: {}, next: null }), _i(r, a, i));
2262
+ }
2263
+ };
2264
+ return o;
2265
+ }, Bi = String.prototype.replace, Ui = /%20/g, yt = {
2266
+ RFC1738: "RFC1738",
2267
+ RFC3986: "RFC3986"
2268
+ }, Mt = {
2269
+ default: yt.RFC3986,
2270
+ formatters: {
2271
+ RFC1738: function(t) {
2272
+ return Bi.call(t, Ui, "+");
2273
+ },
2274
+ RFC3986: function(t) {
2275
+ return String(t);
2276
+ }
2277
+ },
2278
+ RFC1738: yt.RFC1738,
2279
+ RFC3986: yt.RFC3986
2280
+ }, ki = Mt, mt = Object.prototype.hasOwnProperty, se = Array.isArray, V = function() {
2281
+ for (var t = [], e = 0; e < 256; ++e)
2282
+ t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2283
+ return t;
2284
+ }(), Li = function(e) {
2285
+ for (; e.length > 1; ) {
2286
+ var n = e.pop(), r = n.obj[n.prop];
2287
+ if (se(r)) {
2288
+ for (var o = [], a = 0; a < r.length; ++a)
2289
+ typeof r[a] < "u" && o.push(r[a]);
2290
+ n.obj[n.prop] = o;
2291
+ }
2292
+ }
2293
+ }, fn = function(e, n) {
2294
+ for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2295
+ typeof e[o] < "u" && (r[o] = e[o]);
2296
+ return r;
2297
+ }, Mi = function t(e, n, r) {
2298
+ if (!n)
2299
+ return e;
2300
+ if (typeof n != "object") {
2301
+ if (se(e))
2302
+ e.push(n);
2303
+ else if (e && typeof e == "object")
2304
+ (r && (r.plainObjects || r.allowPrototypes) || !mt.call(Object.prototype, n)) && (e[n] = !0);
2305
+ else
2306
+ return [e, n];
2307
+ return e;
2308
+ }
2309
+ if (!e || typeof e != "object")
2310
+ return [e].concat(n);
2311
+ var o = e;
2312
+ return se(e) && !se(n) && (o = fn(e, r)), se(e) && se(n) ? (n.forEach(function(a, i) {
2313
+ if (mt.call(e, i)) {
2314
+ var s = e[i];
2315
+ s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2316
+ } else
2317
+ e[i] = a;
2318
+ }), e) : Object.keys(n).reduce(function(a, i) {
2319
+ var s = n[i];
2320
+ return mt.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2321
+ }, o);
2322
+ }, ji = function(e, n) {
2323
+ return Object.keys(n).reduce(function(r, o) {
2324
+ return r[o] = n[o], r;
2325
+ }, e);
2326
+ }, zi = function(t, e, n) {
2327
+ var r = t.replace(/\+/g, " ");
2328
+ if (n === "iso-8859-1")
2329
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2330
+ try {
2331
+ return decodeURIComponent(r);
2332
+ } catch {
2333
+ return r;
2334
+ }
2335
+ }, Hi = function(e, n, r, o, a) {
2336
+ if (e.length === 0)
2337
+ return e;
2338
+ var i = e;
2339
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2340
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(p) {
2341
+ return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
2342
+ });
2343
+ for (var s = "", u = 0; u < i.length; ++u) {
2344
+ var l = i.charCodeAt(u);
2345
+ if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === ki.RFC1738 && (l === 40 || l === 41)) {
2346
+ s += i.charAt(u);
2347
+ continue;
2348
+ }
2349
+ if (l < 128) {
2350
+ s = s + V[l];
2351
+ continue;
2352
+ }
2353
+ if (l < 2048) {
2354
+ s = s + (V[192 | l >> 6] + V[128 | l & 63]);
2355
+ continue;
2356
+ }
2357
+ if (l < 55296 || l >= 57344) {
2358
+ s = s + (V[224 | l >> 12] + V[128 | l >> 6 & 63] + V[128 | l & 63]);
2359
+ continue;
2360
+ }
2361
+ u += 1, l = 65536 + ((l & 1023) << 10 | i.charCodeAt(u) & 1023), s += V[240 | l >> 18] + V[128 | l >> 12 & 63] + V[128 | l >> 6 & 63] + V[128 | l & 63];
2362
+ }
2363
+ return s;
2364
+ }, qi = function(e) {
2365
+ for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2366
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
2367
+ var l = s[u], p = i[l];
2368
+ typeof p == "object" && p !== null && r.indexOf(p) === -1 && (n.push({ obj: i, prop: l }), r.push(p));
2369
+ }
2370
+ return Li(n), e;
2371
+ }, Wi = function(e) {
2372
+ return Object.prototype.toString.call(e) === "[object RegExp]";
2373
+ }, Gi = function(e) {
2374
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2375
+ }, Ji = function(e, n) {
2376
+ return [].concat(e, n);
2377
+ }, Vi = function(e, n) {
2378
+ if (se(e)) {
2379
+ for (var r = [], o = 0; o < e.length; o += 1)
2380
+ r.push(n(e[o]));
2381
+ return r;
2382
+ }
2383
+ return n(e);
2384
+ }, pn = {
2385
+ arrayToObject: fn,
2386
+ assign: ji,
2387
+ combine: Ji,
2388
+ compact: qi,
2389
+ decode: zi,
2390
+ encode: Hi,
2391
+ isBuffer: Gi,
2392
+ isRegExp: Wi,
2393
+ maybeMap: Vi,
2394
+ merge: Mi
2395
+ }, dn = Di, He = pn, xe = Mt, Ki = Object.prototype.hasOwnProperty, Pr = {
2396
+ brackets: function(e) {
2397
+ return e + "[]";
2398
+ },
2399
+ comma: "comma",
2400
+ indices: function(e, n) {
2401
+ return e + "[" + n + "]";
2402
+ },
2403
+ repeat: function(e) {
2404
+ return e;
2405
+ }
2406
+ }, Z = Array.isArray, Qi = Array.prototype.push, yn = function(t, e) {
2407
+ Qi.apply(t, Z(e) ? e : [e]);
2408
+ }, Xi = Date.prototype.toISOString, xr = xe.default, _ = {
2409
+ addQueryPrefix: !1,
2410
+ allowDots: !1,
2411
+ charset: "utf-8",
2412
+ charsetSentinel: !1,
2413
+ delimiter: "&",
2414
+ encode: !0,
2415
+ encoder: He.encode,
2416
+ encodeValuesOnly: !1,
2417
+ format: xr,
2418
+ formatter: xe.formatters[xr],
2419
+ // deprecated
2420
+ indices: !1,
2421
+ serializeDate: function(e) {
2422
+ return Xi.call(e);
2423
+ },
2424
+ skipNulls: !1,
2425
+ strictNullHandling: !1
2426
+ }, Yi = function(e) {
2427
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2428
+ }, ht = {}, Zi = function t(e, n, r, o, a, i, s, u, l, p, c, m, v, d, y, O) {
2429
+ for (var h = e, x = O, N = 0, q = !1; (x = x.get(ht)) !== void 0 && !q; ) {
2430
+ var W = x.get(e);
2431
+ if (N += 1, typeof W < "u") {
2432
+ if (W === N)
2433
+ throw new RangeError("Cyclic object value");
2434
+ q = !0;
2435
+ }
2436
+ typeof x.get(ht) > "u" && (N = 0);
2437
+ }
2438
+ if (typeof u == "function" ? h = u(n, h) : h instanceof Date ? h = c(h) : r === "comma" && Z(h) && (h = He.maybeMap(h, function(D) {
2439
+ return D instanceof Date ? c(D) : D;
2440
+ })), h === null) {
2441
+ if (a)
2442
+ return s && !d ? s(n, _.encoder, y, "key", m) : n;
2443
+ h = "";
2444
+ }
2445
+ if (Yi(h) || He.isBuffer(h)) {
2446
+ if (s) {
2447
+ var ae = d ? n : s(n, _.encoder, y, "key", m);
2448
+ return [v(ae) + "=" + v(s(h, _.encoder, y, "value", m))];
2449
+ }
2450
+ return [v(n) + "=" + v(String(h))];
2451
+ }
2452
+ var G = [];
2453
+ if (typeof h > "u")
2454
+ return G;
2455
+ var M;
2456
+ if (r === "comma" && Z(h))
2457
+ d && s && (h = He.maybeMap(h, s)), M = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
2458
+ else if (Z(u))
2459
+ M = u;
2460
+ else {
2461
+ var ie = Object.keys(h);
2462
+ M = l ? ie.sort(l) : ie;
2463
+ }
2464
+ for (var b = o && Z(h) && h.length === 1 ? n + "[]" : n, w = 0; w < M.length; ++w) {
2465
+ var A = M[w], R = typeof A == "object" && typeof A.value < "u" ? A.value : h[A];
2466
+ if (!(i && R === null)) {
2467
+ var C = Z(h) ? typeof r == "function" ? r(b, A) : b : b + (p ? "." + A : "[" + A + "]");
2468
+ O.set(e, N);
2469
+ var g = dn();
2470
+ g.set(ht, O), yn(G, t(
2471
+ R,
2472
+ C,
2473
+ r,
2474
+ o,
2475
+ a,
2476
+ i,
2477
+ r === "comma" && d && Z(h) ? null : s,
2478
+ u,
2479
+ l,
2480
+ p,
2481
+ c,
2482
+ m,
2483
+ v,
2484
+ d,
2485
+ y,
2486
+ g
2487
+ ));
2488
+ }
2489
+ }
2490
+ return G;
2491
+ }, es = function(e) {
2492
+ if (!e)
2493
+ return _;
2494
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2495
+ throw new TypeError("Encoder has to be a function.");
2496
+ var n = e.charset || _.charset;
2497
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2498
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2499
+ var r = xe.default;
2500
+ if (typeof e.format < "u") {
2501
+ if (!Ki.call(xe.formatters, e.format))
2502
+ throw new TypeError("Unknown format option provided.");
2503
+ r = e.format;
2504
+ }
2505
+ var o = xe.formatters[r], a = _.filter;
2506
+ return (typeof e.filter == "function" || Z(e.filter)) && (a = e.filter), {
2507
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
2508
+ allowDots: typeof e.allowDots > "u" ? _.allowDots : !!e.allowDots,
2509
+ charset: n,
2510
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
2511
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
2512
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
2513
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
2514
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
2515
+ filter: a,
2516
+ format: r,
2517
+ formatter: o,
2518
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
2519
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
2520
+ sort: typeof e.sort == "function" ? e.sort : null,
2521
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
2522
+ };
2523
+ }, ts = function(t, e) {
2524
+ var n = t, r = es(e), o, a;
2525
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : Z(r.filter) && (a = r.filter, o = a);
2526
+ var i = [];
2527
+ if (typeof n != "object" || n === null)
2528
+ return "";
2529
+ var s;
2530
+ e && e.arrayFormat in Pr ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
2531
+ var u = Pr[s];
2532
+ if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2533
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2534
+ var l = u === "comma" && e && e.commaRoundTrip;
2535
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2536
+ for (var p = dn(), c = 0; c < o.length; ++c) {
2537
+ var m = o[c];
2538
+ r.skipNulls && n[m] === null || yn(i, Zi(
2539
+ n[m],
2540
+ m,
2541
+ u,
2542
+ l,
2543
+ r.strictNullHandling,
2544
+ r.skipNulls,
2545
+ r.encode ? r.encoder : null,
2546
+ r.filter,
2547
+ r.sort,
2548
+ r.allowDots,
2549
+ r.serializeDate,
2550
+ r.format,
2551
+ r.formatter,
2552
+ r.encodeValuesOnly,
2553
+ r.charset,
2554
+ p
2555
+ ));
2556
+ }
2557
+ var v = i.join(r.delimiter), d = r.addQueryPrefix === !0 ? "?" : "";
2558
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
2559
+ }, be = pn, Tt = Object.prototype.hasOwnProperty, rs = Array.isArray, F = {
2560
+ allowDots: !1,
2561
+ allowPrototypes: !1,
2562
+ allowSparse: !1,
2563
+ arrayLimit: 20,
2564
+ charset: "utf-8",
2565
+ charsetSentinel: !1,
2566
+ comma: !1,
2567
+ decoder: be.decode,
2568
+ delimiter: "&",
2569
+ depth: 5,
2570
+ ignoreQueryPrefix: !1,
2571
+ interpretNumericEntities: !1,
2572
+ parameterLimit: 1e3,
2573
+ parseArrays: !0,
2574
+ plainObjects: !1,
2575
+ strictNullHandling: !1
2576
+ }, ns = function(t) {
2577
+ return t.replace(/&#(\d+);/g, function(e, n) {
2578
+ return String.fromCharCode(parseInt(n, 10));
2579
+ });
2580
+ }, mn = function(t, e) {
2581
+ return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2582
+ }, os = "utf8=%26%2310003%3B", as = "utf8=%E2%9C%93", is = function(e, n) {
2583
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, u, l = n.charset;
2584
+ if (n.charsetSentinel)
2585
+ for (u = 0; u < i.length; ++u)
2586
+ i[u].indexOf("utf8=") === 0 && (i[u] === as ? l = "utf-8" : i[u] === os && (l = "iso-8859-1"), s = u, u = i.length);
2587
+ for (u = 0; u < i.length; ++u)
2588
+ if (u !== s) {
2589
+ var p = i[u], c = p.indexOf("]="), m = c === -1 ? p.indexOf("=") : c + 1, v, d;
2590
+ m === -1 ? (v = n.decoder(p, F.decoder, l, "key"), d = n.strictNullHandling ? null : "") : (v = n.decoder(p.slice(0, m), F.decoder, l, "key"), d = be.maybeMap(
2591
+ mn(p.slice(m + 1), n),
2592
+ function(y) {
2593
+ return n.decoder(y, F.decoder, l, "value");
2594
+ }
2595
+ )), d && n.interpretNumericEntities && l === "iso-8859-1" && (d = ns(d)), p.indexOf("[]=") > -1 && (d = rs(d) ? [d] : d), Tt.call(r, v) ? r[v] = be.combine(r[v], d) : r[v] = d;
2596
+ }
2597
+ return r;
2598
+ }, ss = function(t, e, n, r) {
2599
+ for (var o = r ? e : mn(e, n), a = t.length - 1; a >= 0; --a) {
2600
+ var i, s = t[a];
2601
+ if (s === "[]" && n.parseArrays)
2602
+ i = [].concat(o);
2603
+ else {
2604
+ i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2605
+ var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = parseInt(u, 10);
2606
+ !n.parseArrays && u === "" ? i = { 0: o } : !isNaN(l) && s !== u && String(l) === u && l >= 0 && n.parseArrays && l <= n.arrayLimit ? (i = [], i[l] = o) : u !== "__proto__" && (i[u] = o);
2607
+ }
2608
+ o = i;
11
2609
  }
12
2610
  return o;
2611
+ }, ls = function(e, n, r, o) {
2612
+ if (e) {
2613
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, p = [];
2614
+ if (l) {
2615
+ if (!r.plainObjects && Tt.call(Object.prototype, l) && !r.allowPrototypes)
2616
+ return;
2617
+ p.push(l);
2618
+ }
2619
+ for (var c = 0; r.depth > 0 && (u = s.exec(a)) !== null && c < r.depth; ) {
2620
+ if (c += 1, !r.plainObjects && Tt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
2621
+ return;
2622
+ p.push(u[1]);
2623
+ }
2624
+ return u && p.push("[" + a.slice(u.index) + "]"), ss(p, n, r, o);
2625
+ }
2626
+ }, us = function(e) {
2627
+ if (!e)
2628
+ return F;
2629
+ if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
2630
+ throw new TypeError("Decoder has to be a function.");
2631
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2632
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2633
+ var n = typeof e.charset > "u" ? F.charset : e.charset;
2634
+ return {
2635
+ allowDots: typeof e.allowDots > "u" ? F.allowDots : !!e.allowDots,
2636
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : F.allowPrototypes,
2637
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : F.allowSparse,
2638
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : F.arrayLimit,
2639
+ charset: n,
2640
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : F.charsetSentinel,
2641
+ comma: typeof e.comma == "boolean" ? e.comma : F.comma,
2642
+ decoder: typeof e.decoder == "function" ? e.decoder : F.decoder,
2643
+ delimiter: typeof e.delimiter == "string" || be.isRegExp(e.delimiter) ? e.delimiter : F.delimiter,
2644
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2645
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : F.depth,
2646
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2647
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : F.interpretNumericEntities,
2648
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : F.parameterLimit,
2649
+ parseArrays: e.parseArrays !== !1,
2650
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : F.plainObjects,
2651
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : F.strictNullHandling
2652
+ };
2653
+ }, cs = function(t, e) {
2654
+ var n = us(e);
2655
+ if (t === "" || t === null || typeof t > "u")
2656
+ return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2657
+ for (var r = typeof t == "string" ? is(t, n) : t, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
2658
+ var s = a[i], u = ls(s, r[s], n, typeof t == "string");
2659
+ o = be.merge(o, u, n);
2660
+ }
2661
+ return n.allowSparse === !0 ? o : be.compact(o);
2662
+ }, fs = ts, ps = cs, ds = Mt, ys = {
2663
+ formats: ds,
2664
+ parse: ps,
2665
+ stringify: fs
2666
+ };
2667
+ const ms = /* @__PURE__ */ Ko(ys);
2668
+ /*! js-cookie v3.0.5 | MIT */
2669
+ function Le(t) {
2670
+ for (var e = 1; e < arguments.length; e++) {
2671
+ var n = arguments[e];
2672
+ for (var r in n)
2673
+ t[r] = n[r];
2674
+ }
2675
+ return t;
2676
+ }
2677
+ var hs = {
2678
+ read: function(t) {
2679
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2680
+ },
2681
+ write: function(t) {
2682
+ return encodeURIComponent(t).replace(
2683
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2684
+ decodeURIComponent
2685
+ );
2686
+ }
13
2687
  };
14
- const ee = C.get("token"), te = C.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), se = C.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), ae = Q.get("progress"), me = () => {
15
- let e = f(!1), o = f(""), i = f(0), s = f("normal"), d = f(!1), p, w = f(""), g = f(""), y = f(""), h = f(""), T = f(!1), R = f(""), L = "", N;
16
- const H = () => {
17
- g.value = "", y.value = "", h.value = "", T.value = !1, R.value = "";
18
- }, q = async () => {
19
- const [a, r] = await ee().run();
20
- return a ? { stauts: !1 } : { status: !0, data: r };
21
- }, A = (a) => new Promise((r, l) => {
22
- const u = [];
23
- let t = 0;
24
- for (; t < a.size; ) {
25
- const m = a.slice(t, t + 1048576);
26
- u.push(m), t += 1048576;
27
- }
28
- const v = new Blob(u, { type: a.type });
29
- r(v);
30
- }), Y = async (a, r, l, n = !0, u = "", t = !1) => {
31
- var z, E;
32
- L = u, n && (s.value = "normal", i.value = 0, o.value = "导入进度", e.value = !0, w.value = ""), N = r;
33
- const v = await q();
34
- if (!v.status) return;
35
- let m = v.data, c = null, { autoContentType: x, bucketName: j, importFileName: D } = l;
36
- const X = t ? se : te;
37
- if (t) {
38
- let M = [];
39
- await r.forEach(async ($) => {
40
- let U = await A($);
41
- M.push(U);
42
- }), c = new FormData(), c.append("accessKeyId", m.accessKeyId), c.append("secretAccessKey", m.secretAccessKey), c.append("sessionToken", m.sessionToken), c.append("bucketName", j), r.forEach(($, U) => {
43
- c.append("file", M[U]);
44
- }), D.forEach(($) => {
45
- c.append("filePaths", $);
2688
+ function Nt(t, e) {
2689
+ function n(o, a, i) {
2690
+ if (!(typeof document > "u")) {
2691
+ i = Le({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2692
+ var s = "";
2693
+ for (var u in i)
2694
+ i[u] && (s += "; " + u, i[u] !== !0 && (s += "=" + i[u].split(";")[0]));
2695
+ return document.cookie = o + "=" + t.write(a, o) + s;
2696
+ }
2697
+ }
2698
+ function r(o) {
2699
+ if (!(typeof document > "u" || arguments.length && !o)) {
2700
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
2701
+ var u = a[s].split("="), l = u.slice(1).join("=");
2702
+ try {
2703
+ var p = decodeURIComponent(u[0]);
2704
+ if (i[p] = t.read(l, p), o === p)
2705
+ break;
2706
+ } catch {
2707
+ }
2708
+ }
2709
+ return o ? i[o] : i;
2710
+ }
2711
+ }
2712
+ return Object.create(
2713
+ {
2714
+ set: n,
2715
+ get: r,
2716
+ remove: function(o, a) {
2717
+ n(
2718
+ o,
2719
+ "",
2720
+ Le({}, a, {
2721
+ expires: -1
2722
+ })
2723
+ );
2724
+ },
2725
+ withAttributes: function(o) {
2726
+ return Nt(this.converter, Le({}, this.attributes, o));
2727
+ },
2728
+ withConverter: function(o) {
2729
+ return Nt(Le({}, this.converter, o), this.attributes);
2730
+ }
2731
+ },
2732
+ {
2733
+ attributes: { value: Object.freeze(e) },
2734
+ converter: { value: Object.freeze(t) }
2735
+ }
2736
+ );
2737
+ }
2738
+ var vs = Nt(hs, { path: "/" });
2739
+ const gs = {
2740
+ 参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
2741
+ 接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
2742
+ 服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
2743
+ 解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
2744
+ 请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
2745
+ "网络异常,请检查您的网络情况": {
2746
+ "zh-CN": "网络异常,请检查您的网络情况",
2747
+ en: "Network error, please check your network status",
2748
+ _appCode: "framework"
2749
+ }
2750
+ };
2751
+ En(gs);
2752
+ Ke.extend(Nn);
2753
+ Ke.extend(Cn);
2754
+ const jt = qe(), hn = jt.sso ?? !0, bs = jt.i18n ?? !0, vn = jt.noRedireLogin ?? !1, gn = () => {
2755
+ if (vn) return;
2756
+ const t = "/login";
2757
+ location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
2758
+ }, ws = async (t) => {
2759
+ var n;
2760
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
2761
+ }, Ss = async (t, e) => {
2762
+ var u, l, p, c, m;
2763
+ let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
2764
+ const a = { 400: P("参数校验错误"), 404: P("接口地址未找到"), 500: P("服务器内部错误") };
2765
+ let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
2766
+ if (!(Rn("code") || "") && !vn && (n === 401 || (i == null ? void 0 : i.code) === 401))
2767
+ hn ? Pn({ ...xn, redirect_uri: Tn }) : gn(), o = i;
2768
+ else {
2769
+ if (t.response) {
2770
+ if (i instanceof Blob && (i = await new Promise((v) => {
2771
+ const d = new FileReader();
2772
+ d.readAsText(i, "utf-8"), d.onload = () => {
2773
+ try {
2774
+ v(JSON.parse(d.result || "{}"));
2775
+ } catch {
2776
+ v({ code: 400, msg: P("blob解析错误") });
2777
+ }
2778
+ };
2779
+ })), i.code) {
2780
+ n = i.code;
2781
+ const v = (e == null ? void 0 : e.i18n) ?? !0;
2782
+ if (bs && v) {
2783
+ const d = (i == null ? void 0 : i.status) ?? "";
2784
+ r = !(i != null && i.data) || !i.data.length ? P(d) : P(d, ...i.data);
2785
+ } else
2786
+ r = (i == null ? void 0 : i.msg) ?? "";
2787
+ o = i;
2788
+ }
2789
+ r || (r = a[t.response.status] || t.message);
2790
+ } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = P("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = P("请求配置异常");
2791
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((m = (c = window.DasMessage) == null ? void 0 : c.error) == null || m.call(c, { message: r, showClose: !0 }));
2792
+ }
2793
+ return { ...o, code: n, msg: r, error: t };
2794
+ }, z = (t, e) => {
2795
+ const n = T.create();
2796
+ return On(n, async (r) => {
2797
+ const o = qe();
2798
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
2799
+ let l = "";
2800
+ if (o.token && (l = o.token), !l) {
2801
+ const p = new URL(location.href).searchParams;
2802
+ l = p.get("token") || p.get("accessToken") || p.get("accesstoken") || "";
2803
+ }
2804
+ hn ? l || (l = await An(r)) : (l || (l = _n()), l || gn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
2805
+ }
2806
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => ms.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = ws), r.onError || (r.onError = Ss), (r.csrf ?? !1) && (r.headers["csrf-token"] = vs.get("csrf-token"));
2807
+ const s = r.params || {};
2808
+ if (s.project === void 0) {
2809
+ let l = 0;
2810
+ const p = new URL(location.href).searchParams;
2811
+ l = p.get("project") || p.get("projectId") || 0, l || (l = Fn().id ?? 0), (l || l === 0) && (s.project = l);
2812
+ }
2813
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
2814
+ const { instanceInfo: l } = $n();
2815
+ l != null && l.instanceId && (s.instance = l.instanceId);
2816
+ }
2817
+ return r.params = s, r.headers.Timezone = Ke.tz.guess(), r.headers["X-Origin"] = location.origin, r;
2818
+ });
2819
+ }, H = "v1";
2820
+ z(`/api/iot/${H}`);
2821
+ z(`/api/iot-device/thingmodel/${H}`), z(`/api/iot-device/devicemanage/${H}`), z(`/api/iot-device/product/${H}`), z(`/api/iot-device/product-storage/${H}`);
2822
+ z(`/api/device-relation/deviceproject/${H}`), z(`/api/device-relation/devicerule/${H}`), z(`/api/device-relation/project/${H}`);
2823
+ const zt = z(`/api/oss/minio/${H}`), Es = z(`/api/progress/accessor/${H}`);
2824
+ z(`/api/dms/analysis/${H}`);
2825
+ let Os = (t = 21) => {
2826
+ let e = "", n = crypto.getRandomValues(new Uint8Array(t));
2827
+ for (; t--; ) {
2828
+ let r = n[t] & 63;
2829
+ r < 36 ? e += r.toString(36) : r < 62 ? e += (r - 26).toString(36).toUpperCase() : r < 63 ? e += "_" : e += "-";
2830
+ }
2831
+ return e;
2832
+ };
2833
+ const As = zt.get("token"), Rs = zt.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), Ps = zt.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), xs = Es.get("progress"), js = () => {
2834
+ let t = U(!1), e = U(""), n = U(0), r = U("normal"), o = U(!1), a, i = U(""), s = U(""), u = U(""), l = U(""), p = U(!1), c = U(""), m = "", v = U(""), d;
2835
+ const y = () => {
2836
+ s.value = "", u.value = "", l.value = "", p.value = !1, c.value = "";
2837
+ }, O = async () => {
2838
+ const [b, w] = await As().run();
2839
+ return b ? { stauts: !1 } : { status: !0, data: w };
2840
+ }, h = (b) => new Promise((w, A) => {
2841
+ const C = [];
2842
+ let g = 0;
2843
+ for (; g < b.size; ) {
2844
+ const j = b.slice(g, g + 1048576);
2845
+ C.push(j), g += 1048576;
2846
+ }
2847
+ const D = new Blob(C, { type: b.type });
2848
+ w(D);
2849
+ }), x = async (b, w, A, R = !0, C = "", g = !1) => {
2850
+ var Ht, qt;
2851
+ m = C, v.value = "import", R && (r.value = "normal", n.value = 0, e.value = P("导入进度"), t.value = !0, i.value = ""), d = w;
2852
+ const D = await O();
2853
+ if (!D.status) return;
2854
+ let j = D.data, B = null, { autoContentType: Y, bucketName: fe, importFileName: Ie } = A;
2855
+ const bn = g ? Ps : Rs;
2856
+ if (g) {
2857
+ let ee = [];
2858
+ await w.forEach(async (De) => {
2859
+ let tt = await h(De);
2860
+ ee.push(tt);
2861
+ }), B = new FormData(), B.append("accessKeyId", j.accessKeyId), B.append("secretAccessKey", j.secretAccessKey), B.append("sessionToken", j.sessionToken), B.append("bucketName", fe), w.forEach((De, tt) => {
2862
+ B.append("file", ee[tt]);
2863
+ }), Ie.forEach((De) => {
2864
+ B.append("filePaths", De);
46
2865
  });
47
2866
  } else {
48
- const M = await A(r);
49
- c = {
50
- accessKeyId: m.accessKeyId,
51
- secretAccessKey: m.secretAccessKey,
52
- sessionToken: m.sessionToken,
53
- file: M,
54
- bucketName: j,
55
- filePath: D,
56
- autoContentType: x
2867
+ const ee = await h(w);
2868
+ B = {
2869
+ accessKeyId: j.accessKeyId,
2870
+ secretAccessKey: j.secretAccessKey,
2871
+ sessionToken: j.sessionToken,
2872
+ file: ee,
2873
+ bucketName: fe,
2874
+ filePath: Ie,
2875
+ autoContentType: Y
57
2876
  };
58
2877
  }
59
- const [_, G] = await X(c).run();
60
- if (_) return e.value = !1;
61
- const b = await oe(G.data);
62
- if ((b == null ? void 0 : b.statusCode) != 200) {
63
- e.value = !1, (z = window.DasMessage) == null || z.error({
64
- message: (b == null ? void 0 : b.errorMsg) || "上传失败",
2878
+ const [wn, Sn] = await bn(B).run();
2879
+ if (wn) return t.value = !1;
2880
+ const J = await Ns(Sn.data);
2881
+ if (!g && (J == null ? void 0 : J.statusCode) != 200 || g && (J != null && J.some((ee) => (ee == null ? void 0 : ee.statusCode) != 200))) {
2882
+ t.value = !1, (Ht = window.DasMessage) == null || Ht.error({
2883
+ message: (J == null ? void 0 : J.errorMsg) || P("上传失败"),
65
2884
  grouping: !0,
66
2885
  repeatNum: 1
67
2886
  });
68
2887
  return;
69
2888
  }
70
- const P = await (a == null ? void 0 : a(b));
71
- if (n) {
72
- if (!P.status) {
73
- e.value = !1, s.value = "error";
2889
+ const et = await (b == null ? void 0 : b(J));
2890
+ if (R) {
2891
+ if (!et.status) {
2892
+ t.value = !1, r.value = "error";
74
2893
  return;
75
2894
  }
76
- o.value = "导入进度", e.value = !0, k(P.taskId, "import", "");
2895
+ e.value = P("导入进度"), t.value = !0, W(et.taskId, "import", "");
77
2896
  } else {
78
- if (!P.status) return;
79
- s.value = "success", (E = window.DasMessage) == null || E.success({
80
- message: "导入成功",
2897
+ if (!et.status) return;
2898
+ r.value = "success", (qt = window.DasMessage) == null || qt.success({
2899
+ message: P("导入成功"),
81
2900
  grouping: !0,
82
2901
  repeatNum: 1
83
2902
  });
84
2903
  }
85
- }, J = async (a, r = "", l = "") => {
86
- s.value = "normal", i.value = 0, o.value = l || "导出进度", e.value = !0;
87
- const n = await (a == null ? void 0 : a());
88
- if (!n.status) {
89
- e.value = !1, s.value = "error";
2904
+ }, N = async (b, w = "", A = "") => {
2905
+ r.value = "normal", n.value = 0, e.value = A || P("导出进度"), t.value = !0;
2906
+ const R = await (b == null ? void 0 : b());
2907
+ if (!R.status) {
2908
+ t.value = !1, r.value = "error";
90
2909
  return;
91
2910
  }
92
- k(n.taskId, "action", "");
93
- }, V = async (a, r = "", l = "", n = !0) => {
94
- n && (s.value = "normal", i.value = 0, o.value = "导出进度", e.value = !0);
95
- const u = await (a == null ? void 0 : a());
96
- if (!u.status) {
97
- e.value = !1, s.value = "error";
2911
+ W(R.taskId, "action", "");
2912
+ }, q = async (b, w = "", A = "", R = !0) => {
2913
+ v.value = "export", R && (r.value = "normal", n.value = 0, e.value = P("导出进度"), t.value = !0);
2914
+ const C = await (b == null ? void 0 : b());
2915
+ if (!C.status) {
2916
+ t.value = !1, r.value = "error";
98
2917
  return;
99
2918
  }
100
- Z().format("YYYYMMDDHHmmss") + "", k(u.taskId, "export", r || "", l);
101
- }, k = async (a, r, l, n = "") => {
102
- d.value = !0, K(a, r, l, n), p = setTimeout(() => {
2919
+ Ke().format("YYYYMMDDHHmmss") + "", W(C.taskId, "export", w || "", A);
2920
+ }, W = async (b, w, A, R = "") => {
2921
+ o.value = !0, G(b, w, A, R), a = setTimeout(() => {
103
2922
  }, 50);
104
- }, I = () => {
105
- clearTimeout(p), p = null, e.value = !1;
106
- }, K = async (a, r = "export", l, n = "") => {
107
- var m, c;
108
- const [u, t] = await ae("", {
109
- url: `progress/${a}`
2923
+ }, ae = () => {
2924
+ clearTimeout(a), a = null, t.value = !1;
2925
+ }, G = async (b, w = "export", A, R = "") => {
2926
+ var D, j, B;
2927
+ const [C, g] = await xs("", {
2928
+ url: `progress/${b}`
110
2929
  }).run();
111
- if (u) {
112
- d.value = !1;
2930
+ if (C) {
2931
+ o.value = !1;
113
2932
  return;
114
2933
  }
115
- i.value = t.percentage;
116
- const v = r == "export" ? "导出" : "导入";
117
- if (i.value == 100)
118
- if (w.value = t, d.value = !1, I(), r == "export")
119
- t.status == 1 ? (s.value = "success", B(`${O().baseURL}/oss${t.filePath}`, l, n), d.value = !1) : t.status == 2 && (h.value = t.message || `${v}失败`, (m = window.DasMessage) == null || m.error({
120
- message: t.message || `${v}失败`,
2934
+ if (n.value = g.percentage, n.value == 100)
2935
+ if (i.value = g, o.value = !1, ae(), w == "export")
2936
+ if (g.status == 1) {
2937
+ r.value = "success";
2938
+ let Y = await Wt(`/oss/${g == null ? void 0 : g.filePath}`);
2939
+ const fe = ((D = Y == null ? void 0 : Y.split("/")) == null ? void 0 : D.pop()) || "";
2940
+ let Ie = A || fe;
2941
+ Tr(`${qe().baseURL}/oss${g.filePath}`, Ie, R), o.value = !1;
2942
+ } else g.status == 2 && (l.value = g.message || w == "export" ? P("导出失败") : P("导入失败"), (j = window.DasMessage) == null || j.error({
2943
+ message: l.value,
121
2944
  grouping: !0,
122
2945
  repeatNum: 1
123
2946
  }));
124
- else if (r == "import") {
125
- if (t.filePath) {
126
- s.value = "error", T.value = !0;
127
- let x = await W(`/oss/${t == null ? void 0 : t.filePath}`);
128
- const j = ((c = x == null ? void 0 : x.split("/")) == null ? void 0 : c.pop()) || "";
129
- g.value = L || j, y.value = N.sizeText, h.value = "部分数据校验不通过,请下载附件并修改,重新导入!", R.value = `${O().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
2947
+ else if (w == "import") {
2948
+ if (g.filePath) {
2949
+ r.value = "error", p.value = !0;
2950
+ let Y = await Wt(`/oss/${g == null ? void 0 : g.filePath}`);
2951
+ const fe = ((B = Y == null ? void 0 : Y.split("/")) == null ? void 0 : B.pop()) || "";
2952
+ s.value = m || fe, u.value = d.sizeText, l.value = P("部分数据校验不通过,请下载附件并修改,重新导入!"), c.value = `${qe().baseURL}/oss/${g == null ? void 0 : g.filePath}`;
130
2953
  }
131
- S(t.status, v, t.message);
132
- } else r == "action" && (s.value = "success");
2954
+ M(g.status, w, g.message);
2955
+ } else w == "action" && (r.value = "success");
133
2956
  else
134
- p && t.status != 2 ? p = setTimeout(() => {
135
- K(a, r, l, n);
136
- }, 50) : (w.value = t, d.value = !1, S(t.status, v, t.message), I(), T.value = !0, h.value = (t == null ? void 0 : t.message) || "");
137
- }, S = (a, r, l) => {
138
- var n, u, t;
139
- a == 1 ? (s.value = "success", (n = window.DasMessage) == null || n.success({
140
- message: `${r}成功`,
2957
+ a && g.status != 2 ? a = setTimeout(() => {
2958
+ G(b, w, A, R);
2959
+ }, 50) : (i.value = g, o.value = !1, M(g.status, w, g.message), ae(), p.value = !0, l.value = (g == null ? void 0 : g.message) || "");
2960
+ }, M = (b, w = "export", A) => {
2961
+ var R, C, g;
2962
+ b == 1 ? (r.value = "success", (R = window.DasMessage) == null || R.success({
2963
+ message: w == "export" ? P("导出成功") : P("导入成功"),
141
2964
  grouping: !0,
142
2965
  repeatNum: 1
143
- }), g.value = "", y.value = "", h.value = "") : a == 2 ? (s.value = "error", (u = window.DasMessage) == null || u.error({
144
- message: l || `${r}失败`,
2966
+ }), s.value = "", u.value = "", l.value = "") : b == 2 ? (r.value = "error", (C = window.DasMessage) == null || C.error({
2967
+ message: A || w == "export" ? P("导出失败") : P("导入失败"),
145
2968
  grouping: !0,
146
2969
  repeatNum: 1
147
- }), h.value = l || "部分数据校验不通过,请下载附件并修改,重新导入!") : a == 3 && (s.value = "error", (t = window.DasMessage) == null || t.error({
148
- message: `部分${r}失败`,
2970
+ }), l.value = A || P("部分数据校验不通过,请下载附件并修改,重新导入!")) : b == 3 && (r.value = "error", (g = window.DasMessage) == null || g.error({
2971
+ message: w == "export" ? P("部分导出失败") : P("部分导入失败"),
149
2972
  grouping: !0,
150
2973
  repeatNum: 1
151
2974
  }));
152
2975
  };
153
2976
  return {
154
- showProgressDialog: e,
155
- progressTitle: o,
156
- percent: i,
157
- progressStatus: s,
158
- progressLoading: d,
159
- progressResult: w,
160
- errorFileName: g,
161
- errorFileSize: y,
162
- errorMessage: h,
163
- errorImport: T,
164
- errorFilePath: R,
165
- fileImport: Y,
166
- fileExport: V,
167
- fileAction: J,
168
- generateUniqueName: (a) => {
169
- const r = a == null ? void 0 : a.match(/(.*?)(\.[^.]*$|$)/), l = r.length ? r[2] : "";
170
- return `${r.length ? r[1] : a}${F()}${l}`;
2977
+ showProgressDialog: t,
2978
+ progressTitle: e,
2979
+ percent: n,
2980
+ progressStatus: r,
2981
+ progressLoading: o,
2982
+ progressResult: i,
2983
+ errorFileName: s,
2984
+ errorFileSize: u,
2985
+ errorMessage: l,
2986
+ errorImport: p,
2987
+ errorFilePath: c,
2988
+ fileImport: x,
2989
+ fileExport: q,
2990
+ fileAction: N,
2991
+ generateUniqueName: (b) => {
2992
+ const w = b == null ? void 0 : b.match(/(.*?)(\.[^.]*$|$)/), A = w.length ? w[2] : "";
2993
+ return `${w.length ? w[1] : b}${Os()}${A}`;
171
2994
  },
172
- downloadFile: B,
173
- resetStataus: H,
174
- checkProgress: k
2995
+ downloadFile: Tr,
2996
+ resetStataus: y,
2997
+ checkProgress: W,
2998
+ fileHandleType: v
175
2999
  };
176
- }, re = (e) => {
177
- let o = e == null ? void 0 : e.toLocaleLowerCase();
3000
+ }, Ts = (t) => {
3001
+ let e = t == null ? void 0 : t.toLocaleLowerCase();
178
3002
  return {
179
3003
  excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
180
3004
  pdf: "application/pdf",
@@ -201,28 +3025,28 @@ const ee = C.get("token"), te = C.post("put-object", (e) => (e.headers || (e.hea
201
3025
  crt: "application/x-x509-ca-cert",
202
3026
  der: "application/x-x509-ca-cert",
203
3027
  cer: "application/pkix-cert"
204
- }[o];
205
- }, B = (e, o, i = "excel") => {
206
- const s = new XMLHttpRequest();
207
- s.open("get", e), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(d) {
208
- const p = new Blob([this.response], {
209
- type: re(i)
210
- }), w = URL.createObjectURL(p);
3028
+ }[e];
3029
+ }, Tr = (t, e, n = "excel") => {
3030
+ const r = new XMLHttpRequest();
3031
+ r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
3032
+ const a = new Blob([this.response], {
3033
+ type: Ts(n)
3034
+ }), i = URL.createObjectURL(a);
211
3035
  if (window.navigator.msSaveOrOpenBlob)
212
- navigator.msSaveBlob(p, o);
3036
+ navigator.msSaveBlob(a, e);
213
3037
  else {
214
- const g = document.createElement("a");
215
- g.href = w, g.download = o, g.click(), window.URL.revokeObjectURL(w);
216
- }
217
- }, s.send();
218
- }, oe = (e) => new Promise((o, i) => {
219
- var s = new FileReader();
220
- s.onload = function(d) {
221
- let p = "";
222
- typeof s.result == "string" && (p = JSON.parse(s.result)), o(p);
223
- }, s.readAsText(e);
3038
+ const s = document.createElement("a");
3039
+ s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
3040
+ }
3041
+ }, r.send();
3042
+ }, Ns = (t) => new Promise((e, n) => {
3043
+ var r = new FileReader();
3044
+ r.onload = function(o) {
3045
+ let a = "";
3046
+ typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
3047
+ }, r.readAsText(t);
224
3048
  });
225
3049
  export {
226
- B as downloadFile,
227
- me as useFile
3050
+ Tr as downloadFile,
3051
+ js as useFile
228
3052
  };