zf-dbs 0.1.0

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