zf-dbs 0.1.16 → 0.1.17

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 CHANGED
@@ -1,4440 +1,15 @@
1
- import { u as Ra, c as Jr, _ as Ia } from "./chunks/D91KXUFh.mjs";
2
- import { z as by, d as wy } from "./chunks/D91KXUFh.mjs";
3
- import { _ as Ca } from "./chunks/CRrp0zFe.mjs";
4
- import { _ as Fa } from "./chunks/BHHE86vT.mjs";
5
- import { z as Ey } from "./chunks/BHHE86vT.mjs";
6
- import { reactive as Na, watch as Ba, onMounted as ja, onUnmounted as Da, computed as Ma } from "vue";
7
- import { Z as Ay } from "./chunks/zkyql-F5.mjs";
8
- function Ua() {
9
- this.__data__ = [], this.size = 0;
10
- }
11
- function so(t, e) {
12
- return t === e || t !== t && e !== e;
13
- }
14
- function _t(t, e) {
15
- for (var r = t.length; r--; )
16
- if (so(t[r][0], e))
17
- return r;
18
- return -1;
19
- }
20
- var La = Array.prototype, ka = La.splice;
21
- function Ha(t) {
22
- var e = this.__data__, r = _t(e, t);
23
- if (r < 0)
24
- return !1;
25
- var n = e.length - 1;
26
- return r == n ? e.pop() : ka.call(e, r, 1), --this.size, !0;
27
- }
28
- function Wa(t) {
29
- var e = this.__data__, r = _t(e, t);
30
- return r < 0 ? void 0 : e[r][1];
31
- }
32
- function za(t) {
33
- return _t(this.__data__, t) > -1;
34
- }
35
- function qa(t, e) {
36
- var r = this.__data__, n = _t(r, t);
37
- return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
38
- }
39
- function ne(t) {
40
- var e = -1, r = t == null ? 0 : t.length;
41
- for (this.clear(); ++e < r; ) {
42
- var n = t[e];
43
- this.set(n[0], n[1]);
44
- }
45
- }
46
- ne.prototype.clear = Ua;
47
- ne.prototype.delete = Ha;
48
- ne.prototype.get = Wa;
49
- ne.prototype.has = za;
50
- ne.prototype.set = qa;
51
- function Ga() {
52
- this.__data__ = new ne(), this.size = 0;
53
- }
54
- function Ka(t) {
55
- var e = this.__data__, r = e.delete(t);
56
- return this.size = e.size, r;
57
- }
58
- function Ja(t) {
59
- return this.__data__.get(t);
60
- }
61
- function Va(t) {
62
- return this.__data__.has(t);
63
- }
64
- var co = typeof global == "object" && global && global.Object === Object && global, Qa = typeof self == "object" && self && self.Object === Object && self, G = co || Qa || Function("return this")(), xe = G.Symbol, uo = Object.prototype, Xa = uo.hasOwnProperty, Za = uo.toString, Ue = xe ? xe.toStringTag : void 0;
65
- function Ya(t) {
66
- var e = Xa.call(t, Ue), r = t[Ue];
67
- try {
68
- t[Ue] = void 0;
69
- var n = !0;
70
- } catch {
71
- }
72
- var o = Za.call(t);
73
- return n && (e ? t[Ue] = r : delete t[Ue]), o;
74
- }
75
- var ei = Object.prototype, ti = ei.toString;
76
- function ri(t) {
77
- return ti.call(t);
78
- }
79
- var ni = "[object Null]", oi = "[object Undefined]", Vr = xe ? xe.toStringTag : void 0;
80
- function Ce(t) {
81
- return t == null ? t === void 0 ? oi : ni : Vr && Vr in Object(t) ? Ya(t) : ri(t);
82
- }
83
- function se(t) {
84
- var e = typeof t;
85
- return t != null && (e == "object" || e == "function");
86
- }
87
- var ai = "[object AsyncFunction]", ii = "[object Function]", si = "[object GeneratorFunction]", ci = "[object Proxy]";
88
- function lo(t) {
89
- if (!se(t))
90
- return !1;
91
- var e = Ce(t);
92
- return e == ii || e == si || e == ai || e == ci;
93
- }
94
- var Bt = G["__core-js_shared__"], Qr = function() {
95
- var t = /[^.]+$/.exec(Bt && Bt.keys && Bt.keys.IE_PROTO || "");
96
- return t ? "Symbol(src)_1." + t : "";
97
- }();
98
- function ui(t) {
99
- return !!Qr && Qr in t;
100
- }
101
- var li = Function.prototype, fi = li.toString;
102
- function he(t) {
103
- if (t != null) {
104
- try {
105
- return fi.call(t);
106
- } catch {
107
- }
108
- try {
109
- return t + "";
110
- } catch {
111
- }
112
- }
113
- return "";
114
- }
115
- var pi = /[\\^$.*+?()[\]{}|]/g, di = /^\[object .+?Constructor\]$/, yi = Function.prototype, hi = Object.prototype, mi = yi.toString, gi = hi.hasOwnProperty, vi = RegExp(
116
- "^" + mi.call(gi).replace(pi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
117
- );
118
- function bi(t) {
119
- if (!se(t) || ui(t))
120
- return !1;
121
- var e = lo(t) ? vi : di;
122
- return e.test(he(t));
123
- }
124
- function wi(t, e) {
125
- return t?.[e];
126
- }
127
- function me(t, e) {
128
- var r = wi(t, e);
129
- return bi(r) ? r : void 0;
130
- }
131
- var Ve = me(G, "Map"), Qe = me(Object, "create");
132
- function Si() {
133
- this.__data__ = Qe ? Qe(null) : {}, this.size = 0;
134
- }
135
- function Ei(t) {
136
- var e = this.has(t) && delete this.__data__[t];
137
- return this.size -= e ? 1 : 0, e;
138
- }
139
- var Oi = "__lodash_hash_undefined__", Ai = Object.prototype, _i = Ai.hasOwnProperty;
140
- function xi(t) {
141
- var e = this.__data__;
142
- if (Qe) {
143
- var r = e[t];
144
- return r === Oi ? void 0 : r;
145
- }
146
- return _i.call(e, t) ? e[t] : void 0;
147
- }
148
- var Ti = Object.prototype, Pi = Ti.hasOwnProperty;
149
- function $i(t) {
150
- var e = this.__data__;
151
- return Qe ? e[t] !== void 0 : Pi.call(e, t);
152
- }
153
- var Ri = "__lodash_hash_undefined__";
154
- function Ii(t, e) {
155
- var r = this.__data__;
156
- return this.size += this.has(t) ? 0 : 1, r[t] = Qe && e === void 0 ? Ri : e, this;
157
- }
158
- function ye(t) {
159
- var e = -1, r = t == null ? 0 : t.length;
160
- for (this.clear(); ++e < r; ) {
161
- var n = t[e];
162
- this.set(n[0], n[1]);
163
- }
164
- }
165
- ye.prototype.clear = Si;
166
- ye.prototype.delete = Ei;
167
- ye.prototype.get = xi;
168
- ye.prototype.has = $i;
169
- ye.prototype.set = Ii;
170
- function Ci() {
171
- this.size = 0, this.__data__ = {
172
- hash: new ye(),
173
- map: new (Ve || ne)(),
174
- string: new ye()
175
- };
176
- }
177
- function Fi(t) {
178
- var e = typeof t;
179
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
180
- }
181
- function xt(t, e) {
182
- var r = t.__data__;
183
- return Fi(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
184
- }
185
- function Ni(t) {
186
- var e = xt(this, t).delete(t);
187
- return this.size -= e ? 1 : 0, e;
188
- }
189
- function Bi(t) {
190
- return xt(this, t).get(t);
191
- }
192
- function ji(t) {
193
- return xt(this, t).has(t);
194
- }
195
- function Di(t, e) {
196
- var r = xt(this, t), n = r.size;
197
- return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
198
- }
199
- function Fe(t) {
200
- var e = -1, r = t == null ? 0 : t.length;
201
- for (this.clear(); ++e < r; ) {
202
- var n = t[e];
203
- this.set(n[0], n[1]);
204
- }
205
- }
206
- Fe.prototype.clear = Ci;
207
- Fe.prototype.delete = Ni;
208
- Fe.prototype.get = Bi;
209
- Fe.prototype.has = ji;
210
- Fe.prototype.set = Di;
211
- var Mi = 200;
212
- function Ui(t, e) {
213
- var r = this.__data__;
214
- if (r instanceof ne) {
215
- var n = r.__data__;
216
- if (!Ve || n.length < Mi - 1)
217
- return n.push([t, e]), this.size = ++r.size, this;
218
- r = this.__data__ = new Fe(n);
219
- }
220
- return r.set(t, e), this.size = r.size, this;
221
- }
222
- function Ne(t) {
223
- var e = this.__data__ = new ne(t);
224
- this.size = e.size;
225
- }
226
- Ne.prototype.clear = Ga;
227
- Ne.prototype.delete = Ka;
228
- Ne.prototype.get = Ja;
229
- Ne.prototype.has = Va;
230
- Ne.prototype.set = Ui;
231
- function Li(t, e) {
232
- for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
233
- ;
234
- return t;
235
- }
236
- var Xr = function() {
237
- try {
238
- var t = me(Object, "defineProperty");
239
- return t({}, "", {}), t;
240
- } catch {
241
- }
242
- }();
243
- function fo(t, e, r) {
244
- e == "__proto__" && Xr ? Xr(t, e, {
245
- configurable: !0,
246
- enumerable: !0,
247
- value: r,
248
- writable: !0
249
- }) : t[e] = r;
250
- }
251
- var ki = Object.prototype, Hi = ki.hasOwnProperty;
252
- function po(t, e, r) {
253
- var n = t[e];
254
- (!(Hi.call(t, e) && so(n, r)) || r === void 0 && !(e in t)) && fo(t, e, r);
255
- }
256
- function Tt(t, e, r, n) {
257
- var o = !r;
258
- r || (r = {});
259
- for (var a = -1, i = e.length; ++a < i; ) {
260
- var s = e[a], c = n ? n(r[s], t[s], s, r, t) : void 0;
261
- c === void 0 && (c = t[s]), o ? fo(r, s, c) : po(r, s, c);
262
- }
263
- return r;
264
- }
265
- function Wi(t, e) {
266
- for (var r = -1, n = Array(t); ++r < t; )
267
- n[r] = e(r);
268
- return n;
269
- }
270
- function Be(t) {
271
- return t != null && typeof t == "object";
272
- }
273
- var zi = "[object Arguments]";
274
- function Zr(t) {
275
- return Be(t) && Ce(t) == zi;
276
- }
277
- var yo = Object.prototype, qi = yo.hasOwnProperty, Gi = yo.propertyIsEnumerable, Ki = Zr(/* @__PURE__ */ function() {
278
- return arguments;
279
- }()) ? Zr : function(t) {
280
- return Be(t) && qi.call(t, "callee") && !Gi.call(t, "callee");
281
- }, _r = Array.isArray;
282
- function Ji() {
283
- return !1;
284
- }
285
- var ho = typeof exports == "object" && exports && !exports.nodeType && exports, Yr = ho && typeof module == "object" && module && !module.nodeType && module, Vi = Yr && Yr.exports === ho, en = Vi ? G.Buffer : void 0, Qi = en ? en.isBuffer : void 0, mo = Qi || Ji, Xi = 9007199254740991, Zi = /^(?:0|[1-9]\d*)$/;
286
- function Yi(t, e) {
287
- var r = typeof t;
288
- return e = e ?? Xi, !!e && (r == "number" || r != "symbol" && Zi.test(t)) && t > -1 && t % 1 == 0 && t < e;
289
- }
290
- var es = 9007199254740991;
291
- function go(t) {
292
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= es;
293
- }
294
- var ts = "[object Arguments]", rs = "[object Array]", ns = "[object Boolean]", os = "[object Date]", as = "[object Error]", is = "[object Function]", ss = "[object Map]", cs = "[object Number]", us = "[object Object]", ls = "[object RegExp]", fs = "[object Set]", ps = "[object String]", ds = "[object WeakMap]", ys = "[object ArrayBuffer]", hs = "[object DataView]", ms = "[object Float32Array]", gs = "[object Float64Array]", vs = "[object Int8Array]", bs = "[object Int16Array]", ws = "[object Int32Array]", Ss = "[object Uint8Array]", Es = "[object Uint8ClampedArray]", Os = "[object Uint16Array]", As = "[object Uint32Array]", R = {};
295
- R[ms] = R[gs] = R[vs] = R[bs] = R[ws] = R[Ss] = R[Es] = R[Os] = R[As] = !0;
296
- R[ts] = R[rs] = R[ys] = R[ns] = R[hs] = R[os] = R[as] = R[is] = R[ss] = R[cs] = R[us] = R[ls] = R[fs] = R[ps] = R[ds] = !1;
297
- function _s(t) {
298
- return Be(t) && go(t.length) && !!R[Ce(t)];
299
- }
300
- function xr(t) {
301
- return function(e) {
302
- return t(e);
303
- };
304
- }
305
- var vo = typeof exports == "object" && exports && !exports.nodeType && exports, qe = vo && typeof module == "object" && module && !module.nodeType && module, xs = qe && qe.exports === vo, jt = xs && co.process, Te = function() {
306
- try {
307
- var t = qe && qe.require && qe.require("util").types;
308
- return t || jt && jt.binding && jt.binding("util");
309
- } catch {
310
- }
311
- }(), tn = Te && Te.isTypedArray, Ts = tn ? xr(tn) : _s, Ps = Object.prototype, $s = Ps.hasOwnProperty;
312
- function bo(t, e) {
313
- var r = _r(t), n = !r && Ki(t), o = !r && !n && mo(t), a = !r && !n && !o && Ts(t), i = r || n || o || a, s = i ? Wi(t.length, String) : [], c = s.length;
314
- for (var u in t)
315
- (e || $s.call(t, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
316
- (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
317
- o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
318
- a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
319
- Yi(u, c))) && s.push(u);
320
- return s;
321
- }
322
- var Rs = Object.prototype;
323
- function Tr(t) {
324
- var e = t && t.constructor, r = typeof e == "function" && e.prototype || Rs;
325
- return t === r;
326
- }
327
- function wo(t, e) {
328
- return function(r) {
329
- return t(e(r));
330
- };
331
- }
332
- var Is = wo(Object.keys, Object), Cs = Object.prototype, Fs = Cs.hasOwnProperty;
333
- function Ns(t) {
334
- if (!Tr(t))
335
- return Is(t);
336
- var e = [];
337
- for (var r in Object(t))
338
- Fs.call(t, r) && r != "constructor" && e.push(r);
339
- return e;
340
- }
341
- function So(t) {
342
- return t != null && go(t.length) && !lo(t);
343
- }
344
- function Pr(t) {
345
- return So(t) ? bo(t) : Ns(t);
346
- }
347
- function Bs(t, e) {
348
- return t && Tt(e, Pr(e), t);
349
- }
350
- function js(t) {
351
- var e = [];
352
- if (t != null)
353
- for (var r in Object(t))
354
- e.push(r);
355
- return e;
356
- }
357
- var Ds = Object.prototype, Ms = Ds.hasOwnProperty;
358
- function Us(t) {
359
- if (!se(t))
360
- return js(t);
361
- var e = Tr(t), r = [];
362
- for (var n in t)
363
- n == "constructor" && (e || !Ms.call(t, n)) || r.push(n);
364
- return r;
365
- }
366
- function $r(t) {
367
- return So(t) ? bo(t, !0) : Us(t);
368
- }
369
- function Ls(t, e) {
370
- return t && Tt(e, $r(e), t);
371
- }
372
- var Eo = typeof exports == "object" && exports && !exports.nodeType && exports, rn = Eo && typeof module == "object" && module && !module.nodeType && module, ks = rn && rn.exports === Eo, nn = ks ? G.Buffer : void 0, on = nn ? nn.allocUnsafe : void 0;
373
- function Hs(t, e) {
374
- if (e)
375
- return t.slice();
376
- var r = t.length, n = on ? on(r) : new t.constructor(r);
377
- return t.copy(n), n;
378
- }
379
- function Ws(t, e) {
380
- var r = -1, n = t.length;
381
- for (e || (e = Array(n)); ++r < n; )
382
- e[r] = t[r];
383
- return e;
384
- }
385
- function zs(t, e) {
386
- for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
387
- var i = t[r];
388
- e(i, r, t) && (a[o++] = i);
389
- }
390
- return a;
391
- }
392
- function Oo() {
393
- return [];
394
- }
395
- var qs = Object.prototype, Gs = qs.propertyIsEnumerable, an = Object.getOwnPropertySymbols, Rr = an ? function(t) {
396
- return t == null ? [] : (t = Object(t), zs(an(t), function(e) {
397
- return Gs.call(t, e);
398
- }));
399
- } : Oo;
400
- function Ks(t, e) {
401
- return Tt(t, Rr(t), e);
402
- }
403
- function Ao(t, e) {
404
- for (var r = -1, n = e.length, o = t.length; ++r < n; )
405
- t[o + r] = e[r];
406
- return t;
407
- }
408
- var Js = wo(Object.getPrototypeOf, Object);
409
- const _o = Js;
410
- var Vs = Object.getOwnPropertySymbols, xo = Vs ? function(t) {
411
- for (var e = []; t; )
412
- Ao(e, Rr(t)), t = _o(t);
413
- return e;
414
- } : Oo;
415
- function Qs(t, e) {
416
- return Tt(t, xo(t), e);
417
- }
418
- function To(t, e, r) {
419
- var n = e(t);
420
- return _r(t) ? n : Ao(n, r(t));
421
- }
422
- function Xs(t) {
423
- return To(t, Pr, Rr);
424
- }
425
- function Zs(t) {
426
- return To(t, $r, xo);
427
- }
428
- var or = me(G, "DataView"), ar = me(G, "Promise"), ir = me(G, "Set"), sr = me(G, "WeakMap"), sn = "[object Map]", Ys = "[object Object]", cn = "[object Promise]", un = "[object Set]", ln = "[object WeakMap]", fn = "[object DataView]", ec = he(or), tc = he(Ve), rc = he(ar), nc = he(ir), oc = he(sr), le = Ce;
429
- (or && le(new or(new ArrayBuffer(1))) != fn || Ve && le(new Ve()) != sn || ar && le(ar.resolve()) != cn || ir && le(new ir()) != un || sr && le(new sr()) != ln) && (le = function(t) {
430
- var e = Ce(t), r = e == Ys ? t.constructor : void 0, n = r ? he(r) : "";
431
- if (n)
432
- switch (n) {
433
- case ec:
434
- return fn;
435
- case tc:
436
- return sn;
437
- case rc:
438
- return cn;
439
- case nc:
440
- return un;
441
- case oc:
442
- return ln;
443
- }
444
- return e;
445
- });
446
- const Ir = le;
447
- var ac = Object.prototype, ic = ac.hasOwnProperty;
448
- function sc(t) {
449
- var e = t.length, r = new t.constructor(e);
450
- return e && typeof t[0] == "string" && ic.call(t, "index") && (r.index = t.index, r.input = t.input), r;
451
- }
452
- var pn = G.Uint8Array;
453
- function Cr(t) {
454
- var e = new t.constructor(t.byteLength);
455
- return new pn(e).set(new pn(t)), e;
456
- }
457
- function cc(t, e) {
458
- var r = e ? Cr(t.buffer) : t.buffer;
459
- return new t.constructor(r, t.byteOffset, t.byteLength);
460
- }
461
- var uc = /\w*$/;
462
- function lc(t) {
463
- var e = new t.constructor(t.source, uc.exec(t));
464
- return e.lastIndex = t.lastIndex, e;
465
- }
466
- var dn = xe ? xe.prototype : void 0, yn = dn ? dn.valueOf : void 0;
467
- function fc(t) {
468
- return yn ? Object(yn.call(t)) : {};
469
- }
470
- function pc(t, e) {
471
- var r = e ? Cr(t.buffer) : t.buffer;
472
- return new t.constructor(r, t.byteOffset, t.length);
473
- }
474
- var dc = "[object Boolean]", yc = "[object Date]", hc = "[object Map]", mc = "[object Number]", gc = "[object RegExp]", vc = "[object Set]", bc = "[object String]", wc = "[object Symbol]", Sc = "[object ArrayBuffer]", Ec = "[object DataView]", Oc = "[object Float32Array]", Ac = "[object Float64Array]", _c = "[object Int8Array]", xc = "[object Int16Array]", Tc = "[object Int32Array]", Pc = "[object Uint8Array]", $c = "[object Uint8ClampedArray]", Rc = "[object Uint16Array]", Ic = "[object Uint32Array]";
475
- function Cc(t, e, r) {
476
- var n = t.constructor;
477
- switch (e) {
478
- case Sc:
479
- return Cr(t);
480
- case dc:
481
- case yc:
482
- return new n(+t);
483
- case Ec:
484
- return cc(t, r);
485
- case Oc:
486
- case Ac:
487
- case _c:
488
- case xc:
489
- case Tc:
490
- case Pc:
491
- case $c:
492
- case Rc:
493
- case Ic:
494
- return pc(t, r);
495
- case hc:
496
- return new n();
497
- case mc:
498
- case bc:
499
- return new n(t);
500
- case gc:
501
- return lc(t);
502
- case vc:
503
- return new n();
504
- case wc:
505
- return fc(t);
506
- }
507
- }
508
- var hn = Object.create, Fc = /* @__PURE__ */ function() {
509
- function t() {
510
- }
511
- return function(e) {
512
- if (!se(e))
513
- return {};
514
- if (hn)
515
- return hn(e);
516
- t.prototype = e;
517
- var r = new t();
518
- return t.prototype = void 0, r;
519
- };
520
- }();
521
- function Nc(t) {
522
- return typeof t.constructor == "function" && !Tr(t) ? Fc(_o(t)) : {};
523
- }
524
- var Bc = "[object Map]";
525
- function jc(t) {
526
- return Be(t) && Ir(t) == Bc;
527
- }
528
- var mn = Te && Te.isMap, Dc = mn ? xr(mn) : jc, Mc = "[object Set]";
529
- function Uc(t) {
530
- return Be(t) && Ir(t) == Mc;
531
- }
532
- var gn = Te && Te.isSet, Lc = gn ? xr(gn) : Uc, kc = 1, Hc = 2, Wc = 4, Po = "[object Arguments]", zc = "[object Array]", qc = "[object Boolean]", Gc = "[object Date]", Kc = "[object Error]", $o = "[object Function]", Jc = "[object GeneratorFunction]", Vc = "[object Map]", Qc = "[object Number]", Ro = "[object Object]", Xc = "[object RegExp]", Zc = "[object Set]", Yc = "[object String]", eu = "[object Symbol]", tu = "[object WeakMap]", ru = "[object ArrayBuffer]", nu = "[object DataView]", ou = "[object Float32Array]", au = "[object Float64Array]", iu = "[object Int8Array]", su = "[object Int16Array]", cu = "[object Int32Array]", uu = "[object Uint8Array]", lu = "[object Uint8ClampedArray]", fu = "[object Uint16Array]", pu = "[object Uint32Array]", $ = {};
533
- $[Po] = $[zc] = $[ru] = $[nu] = $[qc] = $[Gc] = $[ou] = $[au] = $[iu] = $[su] = $[cu] = $[Vc] = $[Qc] = $[Ro] = $[Xc] = $[Zc] = $[Yc] = $[eu] = $[uu] = $[lu] = $[fu] = $[pu] = !0;
534
- $[Kc] = $[$o] = $[tu] = !1;
535
- function ct(t, e, r, n, o, a) {
536
- var i, s = e & kc, c = e & Hc, u = e & Wc;
537
- if (r && (i = o ? r(t, n, o, a) : r(t)), i !== void 0)
538
- return i;
539
- if (!se(t))
540
- return t;
541
- var f = _r(t);
542
- if (f) {
543
- if (i = sc(t), !s)
544
- return Ws(t, i);
545
- } else {
546
- var l = Ir(t), m = l == $o || l == Jc;
547
- if (mo(t))
548
- return Hs(t, s);
549
- if (l == Ro || l == Po || m && !o) {
550
- if (i = c || m ? {} : Nc(t), !s)
551
- return c ? Qs(t, Ls(i, t)) : Ks(t, Bs(i, t));
552
- } else {
553
- if (!$[l])
554
- return o ? t : {};
555
- i = Cc(t, l, s);
556
- }
557
- }
558
- a || (a = new Ne());
559
- var b = a.get(t);
560
- if (b)
561
- return b;
562
- a.set(t, i), Lc(t) ? t.forEach(function(v) {
563
- i.add(ct(v, e, r, v, t, a));
564
- }) : Dc(t) && t.forEach(function(v, w) {
565
- i.set(w, ct(v, e, r, w, t, a));
566
- });
567
- var g = u ? c ? Zs : Xs : c ? $r : Pr, d = f ? void 0 : g(t);
568
- return Li(d || t, function(v, w) {
569
- d && (w = v, v = t[w]), po(i, w, ct(v, e, r, w, t, a));
570
- }), i;
571
- }
572
- var du = 1, yu = 4;
573
- function hu(t) {
574
- return ct(t, du | yu);
575
- }
576
- var Dt = function() {
577
- return G.Date.now();
578
- }, mu = /\s/;
579
- function gu(t) {
580
- for (var e = t.length; e-- && mu.test(t.charAt(e)); )
581
- ;
582
- return e;
583
- }
584
- var vu = /^\s+/;
585
- function bu(t) {
586
- return t && t.slice(0, gu(t) + 1).replace(vu, "");
587
- }
588
- var wu = "[object Symbol]";
589
- function Su(t) {
590
- return typeof t == "symbol" || Be(t) && Ce(t) == wu;
591
- }
592
- var vn = NaN, Eu = /^[-+]0x[0-9a-f]+$/i, Ou = /^0b[01]+$/i, Au = /^0o[0-7]+$/i, _u = parseInt;
593
- function bn(t) {
594
- if (typeof t == "number")
595
- return t;
596
- if (Su(t))
597
- return vn;
598
- if (se(t)) {
599
- var e = typeof t.valueOf == "function" ? t.valueOf() : t;
600
- t = se(e) ? e + "" : e;
601
- }
602
- if (typeof t != "string")
603
- return t === 0 ? t : +t;
604
- t = bu(t);
605
- var r = Ou.test(t);
606
- return r || Au.test(t) ? _u(t.slice(2), r ? 2 : 8) : Eu.test(t) ? vn : +t;
607
- }
608
- var xu = "Expected a function", Tu = Math.max, Pu = Math.min;
609
- function $u(t, e, r) {
610
- var n, o, a, i, s, c, u = 0, f = !1, l = !1, m = !0;
611
- if (typeof t != "function")
612
- throw new TypeError(xu);
613
- e = bn(e) || 0, se(r) && (f = !!r.leading, l = "maxWait" in r, a = l ? Tu(bn(r.maxWait) || 0, e) : a, m = "trailing" in r ? !!r.trailing : m);
614
- function b(E) {
615
- var _ = n, T = o;
616
- return n = o = void 0, u = E, i = t.apply(T, _), i;
617
- }
618
- function g(E) {
619
- return u = E, s = setTimeout(w, e), f ? b(E) : i;
620
- }
621
- function d(E) {
622
- var _ = E - c, T = E - u, P = e - _;
623
- return l ? Pu(P, a - T) : P;
624
- }
625
- function v(E) {
626
- var _ = E - c, T = E - u;
627
- return c === void 0 || _ >= e || _ < 0 || l && T >= a;
628
- }
629
- function w() {
630
- var E = Dt();
631
- if (v(E))
632
- return y(E);
633
- s = setTimeout(w, d(E));
634
- }
635
- function y(E) {
636
- return s = void 0, m && n ? b(E) : (n = o = void 0, i);
637
- }
638
- function h() {
639
- s !== void 0 && clearTimeout(s), u = 0, n = c = o = s = void 0;
640
- }
641
- function S() {
642
- return s === void 0 ? i : y(Dt());
643
- }
644
- function O() {
645
- var E = Dt(), _ = v(E);
646
- if (n = arguments, o = this, c = E, _) {
647
- if (s === void 0)
648
- return g(c);
649
- if (l)
650
- return clearTimeout(s), s = setTimeout(w, e), b(c);
651
- }
652
- return s === void 0 && (s = setTimeout(w, e)), i;
653
- }
654
- return O.cancel = h, O.flush = S, O;
655
- }
656
- var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
657
- function Ru(t) {
658
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
659
- }
660
- function Iu(t) {
661
- if (t.__esModule)
662
- return t;
663
- var e = t.default;
664
- if (typeof e == "function") {
665
- var r = function n() {
666
- return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
667
- };
668
- r.prototype = e.prototype;
669
- } else
670
- r = {};
671
- return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
672
- var o = Object.getOwnPropertyDescriptor(t, n);
673
- Object.defineProperty(r, n, o.get ? o : {
674
- enumerable: !0,
675
- get: function() {
676
- return t[n];
677
- }
678
- });
679
- }), r;
680
- }
681
- var Cu = { exports: {} };
682
- function Fu(t) {
683
- throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
684
- }
685
- var Mt = { exports: {} };
686
- const Nu = {}, Bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
687
- __proto__: null,
688
- default: Nu
689
- }, Symbol.toStringTag, { value: "Module" })), Io = /* @__PURE__ */ Iu(Bu);
690
- var wn;
691
- function ju() {
692
- return wn || (wn = 1, function(t, e) {
693
- (function(r, n) {
694
- t.exports = n();
695
- })(Ae, function() {
696
- var r = r || function(n, o) {
697
- var a;
698
- if (typeof window < "u" && window.crypto && (a = window.crypto), typeof self < "u" && self.crypto && (a = self.crypto), typeof globalThis < "u" && globalThis.crypto && (a = globalThis.crypto), !a && typeof window < "u" && window.msCrypto && (a = window.msCrypto), !a && typeof Ae < "u" && Ae.crypto && (a = Ae.crypto), !a && typeof Fu == "function")
699
- try {
700
- a = Io;
701
- } catch {
702
- }
703
- var i = function() {
704
- if (a) {
705
- if (typeof a.getRandomValues == "function")
706
- try {
707
- return a.getRandomValues(new Uint32Array(1))[0];
708
- } catch {
709
- }
710
- if (typeof a.randomBytes == "function")
711
- try {
712
- return a.randomBytes(4).readInt32LE();
713
- } catch {
714
- }
715
- }
716
- throw new Error("Native crypto module could not be used to get secure random number.");
717
- }, s = Object.create || /* @__PURE__ */ function() {
718
- function y() {
719
- }
720
- return function(h) {
721
- var S;
722
- return y.prototype = h, S = new y(), y.prototype = null, S;
723
- };
724
- }(), c = {}, u = c.lib = {}, f = u.Base = /* @__PURE__ */ function() {
725
- return {
726
- /**
727
- * Creates a new object that inherits from this object.
728
- *
729
- * @param {Object} overrides Properties to copy into the new object.
730
- *
731
- * @return {Object} The new object.
732
- *
733
- * @static
734
- *
735
- * @example
736
- *
737
- * var MyType = CryptoJS.lib.Base.extend({
738
- * field: 'value',
739
- *
740
- * method: function () {
741
- * }
742
- * });
743
- */
744
- extend: function(y) {
745
- var h = s(this);
746
- return y && h.mixIn(y), (!h.hasOwnProperty("init") || this.init === h.init) && (h.init = function() {
747
- h.$super.init.apply(this, arguments);
748
- }), h.init.prototype = h, h.$super = this, h;
749
- },
750
- /**
751
- * Extends this object and runs the init method.
752
- * Arguments to create() will be passed to init().
753
- *
754
- * @return {Object} The new object.
755
- *
756
- * @static
757
- *
758
- * @example
759
- *
760
- * var instance = MyType.create();
761
- */
762
- create: function() {
763
- var y = this.extend();
764
- return y.init.apply(y, arguments), y;
765
- },
766
- /**
767
- * Initializes a newly created object.
768
- * Override this method to add some logic when your objects are created.
769
- *
770
- * @example
771
- *
772
- * var MyType = CryptoJS.lib.Base.extend({
773
- * init: function () {
774
- * // ...
775
- * }
776
- * });
777
- */
778
- init: function() {
779
- },
780
- /**
781
- * Copies properties into this object.
782
- *
783
- * @param {Object} properties The properties to mix in.
784
- *
785
- * @example
786
- *
787
- * MyType.mixIn({
788
- * field: 'value'
789
- * });
790
- */
791
- mixIn: function(y) {
792
- for (var h in y)
793
- y.hasOwnProperty(h) && (this[h] = y[h]);
794
- y.hasOwnProperty("toString") && (this.toString = y.toString);
795
- },
796
- /**
797
- * Creates a copy of this object.
798
- *
799
- * @return {Object} The clone.
800
- *
801
- * @example
802
- *
803
- * var clone = instance.clone();
804
- */
805
- clone: function() {
806
- return this.init.prototype.extend(this);
807
- }
808
- };
809
- }(), l = u.WordArray = f.extend({
810
- /**
811
- * Initializes a newly created word array.
812
- *
813
- * @param {Array} words (Optional) An array of 32-bit words.
814
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
815
- *
816
- * @example
817
- *
818
- * var wordArray = CryptoJS.lib.WordArray.create();
819
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
820
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
821
- */
822
- init: function(y, h) {
823
- y = this.words = y || [], h != o ? this.sigBytes = h : this.sigBytes = y.length * 4;
824
- },
825
- /**
826
- * Converts this word array to a string.
827
- *
828
- * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
829
- *
830
- * @return {string} The stringified word array.
831
- *
832
- * @example
833
- *
834
- * var string = wordArray + '';
835
- * var string = wordArray.toString();
836
- * var string = wordArray.toString(CryptoJS.enc.Utf8);
837
- */
838
- toString: function(y) {
839
- return (y || b).stringify(this);
840
- },
841
- /**
842
- * Concatenates a word array to this word array.
843
- *
844
- * @param {WordArray} wordArray The word array to append.
845
- *
846
- * @return {WordArray} This word array.
847
- *
848
- * @example
849
- *
850
- * wordArray1.concat(wordArray2);
851
- */
852
- concat: function(y) {
853
- var h = this.words, S = y.words, O = this.sigBytes, E = y.sigBytes;
854
- if (this.clamp(), O % 4)
855
- for (var _ = 0; _ < E; _++) {
856
- var T = S[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
857
- h[O + _ >>> 2] |= T << 24 - (O + _) % 4 * 8;
858
- }
859
- else
860
- for (var P = 0; P < E; P += 4)
861
- h[O + P >>> 2] = S[P >>> 2];
862
- return this.sigBytes += E, this;
863
- },
864
- /**
865
- * Removes insignificant bits.
866
- *
867
- * @example
868
- *
869
- * wordArray.clamp();
870
- */
871
- clamp: function() {
872
- var y = this.words, h = this.sigBytes;
873
- y[h >>> 2] &= 4294967295 << 32 - h % 4 * 8, y.length = n.ceil(h / 4);
874
- },
875
- /**
876
- * Creates a copy of this word array.
877
- *
878
- * @return {WordArray} The clone.
879
- *
880
- * @example
881
- *
882
- * var clone = wordArray.clone();
883
- */
884
- clone: function() {
885
- var y = f.clone.call(this);
886
- return y.words = this.words.slice(0), y;
887
- },
888
- /**
889
- * Creates a word array filled with random bytes.
890
- *
891
- * @param {number} nBytes The number of random bytes to generate.
892
- *
893
- * @return {WordArray} The random word array.
894
- *
895
- * @static
896
- *
897
- * @example
898
- *
899
- * var wordArray = CryptoJS.lib.WordArray.random(16);
900
- */
901
- random: function(y) {
902
- for (var h = [], S = 0; S < y; S += 4)
903
- h.push(i());
904
- return new l.init(h, y);
905
- }
906
- }), m = c.enc = {}, b = m.Hex = {
907
- /**
908
- * Converts a word array to a hex string.
909
- *
910
- * @param {WordArray} wordArray The word array.
911
- *
912
- * @return {string} The hex string.
913
- *
914
- * @static
915
- *
916
- * @example
917
- *
918
- * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
919
- */
920
- stringify: function(y) {
921
- for (var h = y.words, S = y.sigBytes, O = [], E = 0; E < S; E++) {
922
- var _ = h[E >>> 2] >>> 24 - E % 4 * 8 & 255;
923
- O.push((_ >>> 4).toString(16)), O.push((_ & 15).toString(16));
924
- }
925
- return O.join("");
926
- },
927
- /**
928
- * Converts a hex string to a word array.
929
- *
930
- * @param {string} hexStr The hex string.
931
- *
932
- * @return {WordArray} The word array.
933
- *
934
- * @static
935
- *
936
- * @example
937
- *
938
- * var wordArray = CryptoJS.enc.Hex.parse(hexString);
939
- */
940
- parse: function(y) {
941
- for (var h = y.length, S = [], O = 0; O < h; O += 2)
942
- S[O >>> 3] |= parseInt(y.substr(O, 2), 16) << 24 - O % 8 * 4;
943
- return new l.init(S, h / 2);
944
- }
945
- }, g = m.Latin1 = {
946
- /**
947
- * Converts a word array to a Latin1 string.
948
- *
949
- * @param {WordArray} wordArray The word array.
950
- *
951
- * @return {string} The Latin1 string.
952
- *
953
- * @static
954
- *
955
- * @example
956
- *
957
- * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
958
- */
959
- stringify: function(y) {
960
- for (var h = y.words, S = y.sigBytes, O = [], E = 0; E < S; E++) {
961
- var _ = h[E >>> 2] >>> 24 - E % 4 * 8 & 255;
962
- O.push(String.fromCharCode(_));
963
- }
964
- return O.join("");
965
- },
966
- /**
967
- * Converts a Latin1 string to a word array.
968
- *
969
- * @param {string} latin1Str The Latin1 string.
970
- *
971
- * @return {WordArray} The word array.
972
- *
973
- * @static
974
- *
975
- * @example
976
- *
977
- * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
978
- */
979
- parse: function(y) {
980
- for (var h = y.length, S = [], O = 0; O < h; O++)
981
- S[O >>> 2] |= (y.charCodeAt(O) & 255) << 24 - O % 4 * 8;
982
- return new l.init(S, h);
983
- }
984
- }, d = m.Utf8 = {
985
- /**
986
- * Converts a word array to a UTF-8 string.
987
- *
988
- * @param {WordArray} wordArray The word array.
989
- *
990
- * @return {string} The UTF-8 string.
991
- *
992
- * @static
993
- *
994
- * @example
995
- *
996
- * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
997
- */
998
- stringify: function(y) {
999
- try {
1000
- return decodeURIComponent(escape(g.stringify(y)));
1001
- } catch {
1002
- throw new Error("Malformed UTF-8 data");
1003
- }
1004
- },
1005
- /**
1006
- * Converts a UTF-8 string to a word array.
1007
- *
1008
- * @param {string} utf8Str The UTF-8 string.
1009
- *
1010
- * @return {WordArray} The word array.
1011
- *
1012
- * @static
1013
- *
1014
- * @example
1015
- *
1016
- * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
1017
- */
1018
- parse: function(y) {
1019
- return g.parse(unescape(encodeURIComponent(y)));
1020
- }
1021
- }, v = u.BufferedBlockAlgorithm = f.extend({
1022
- /**
1023
- * Resets this block algorithm's data buffer to its initial state.
1024
- *
1025
- * @example
1026
- *
1027
- * bufferedBlockAlgorithm.reset();
1028
- */
1029
- reset: function() {
1030
- this._data = new l.init(), this._nDataBytes = 0;
1031
- },
1032
- /**
1033
- * Adds new data to this block algorithm's buffer.
1034
- *
1035
- * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
1036
- *
1037
- * @example
1038
- *
1039
- * bufferedBlockAlgorithm._append('data');
1040
- * bufferedBlockAlgorithm._append(wordArray);
1041
- */
1042
- _append: function(y) {
1043
- typeof y == "string" && (y = d.parse(y)), this._data.concat(y), this._nDataBytes += y.sigBytes;
1044
- },
1045
- /**
1046
- * Processes available data blocks.
1047
- *
1048
- * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
1049
- *
1050
- * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
1051
- *
1052
- * @return {WordArray} The processed data.
1053
- *
1054
- * @example
1055
- *
1056
- * var processedData = bufferedBlockAlgorithm._process();
1057
- * var processedData = bufferedBlockAlgorithm._process(!!'flush');
1058
- */
1059
- _process: function(y) {
1060
- var h, S = this._data, O = S.words, E = S.sigBytes, _ = this.blockSize, T = _ * 4, P = E / T;
1061
- y ? P = n.ceil(P) : P = n.max((P | 0) - this._minBufferSize, 0);
1062
- var M = P * _, L = n.min(M * 4, E);
1063
- if (M) {
1064
- for (var H = 0; H < M; H += _)
1065
- this._doProcessBlock(O, H);
1066
- h = O.splice(0, M), S.sigBytes -= L;
1067
- }
1068
- return new l.init(h, L);
1069
- },
1070
- /**
1071
- * Creates a copy of this object.
1072
- *
1073
- * @return {Object} The clone.
1074
- *
1075
- * @example
1076
- *
1077
- * var clone = bufferedBlockAlgorithm.clone();
1078
- */
1079
- clone: function() {
1080
- var y = f.clone.call(this);
1081
- return y._data = this._data.clone(), y;
1082
- },
1083
- _minBufferSize: 0
1084
- });
1085
- u.Hasher = v.extend({
1086
- /**
1087
- * Configuration options.
1088
- */
1089
- cfg: f.extend(),
1090
- /**
1091
- * Initializes a newly created hasher.
1092
- *
1093
- * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
1094
- *
1095
- * @example
1096
- *
1097
- * var hasher = CryptoJS.algo.SHA256.create();
1098
- */
1099
- init: function(y) {
1100
- this.cfg = this.cfg.extend(y), this.reset();
1101
- },
1102
- /**
1103
- * Resets this hasher to its initial state.
1104
- *
1105
- * @example
1106
- *
1107
- * hasher.reset();
1108
- */
1109
- reset: function() {
1110
- v.reset.call(this), this._doReset();
1111
- },
1112
- /**
1113
- * Updates this hasher with a message.
1114
- *
1115
- * @param {WordArray|string} messageUpdate The message to append.
1116
- *
1117
- * @return {Hasher} This hasher.
1118
- *
1119
- * @example
1120
- *
1121
- * hasher.update('message');
1122
- * hasher.update(wordArray);
1123
- */
1124
- update: function(y) {
1125
- return this._append(y), this._process(), this;
1126
- },
1127
- /**
1128
- * Finalizes the hash computation.
1129
- * Note that the finalize operation is effectively a destructive, read-once operation.
1130
- *
1131
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
1132
- *
1133
- * @return {WordArray} The hash.
1134
- *
1135
- * @example
1136
- *
1137
- * var hash = hasher.finalize();
1138
- * var hash = hasher.finalize('message');
1139
- * var hash = hasher.finalize(wordArray);
1140
- */
1141
- finalize: function(y) {
1142
- y && this._append(y);
1143
- var h = this._doFinalize();
1144
- return h;
1145
- },
1146
- blockSize: 16,
1147
- /**
1148
- * Creates a shortcut function to a hasher's object interface.
1149
- *
1150
- * @param {Hasher} hasher The hasher to create a helper for.
1151
- *
1152
- * @return {Function} The shortcut function.
1153
- *
1154
- * @static
1155
- *
1156
- * @example
1157
- *
1158
- * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
1159
- */
1160
- _createHelper: function(y) {
1161
- return function(h, S) {
1162
- return new y.init(S).finalize(h);
1163
- };
1164
- },
1165
- /**
1166
- * Creates a shortcut function to the HMAC's object interface.
1167
- *
1168
- * @param {Hasher} hasher The hasher to use in this HMAC helper.
1169
- *
1170
- * @return {Function} The shortcut function.
1171
- *
1172
- * @static
1173
- *
1174
- * @example
1175
- *
1176
- * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
1177
- */
1178
- _createHmacHelper: function(y) {
1179
- return function(h, S) {
1180
- return new w.HMAC.init(y, S).finalize(h);
1181
- };
1182
- }
1183
- });
1184
- var w = c.algo = {};
1185
- return c;
1186
- }(Math);
1187
- return r;
1188
- });
1189
- }(Mt)), Mt.exports;
1190
- }
1191
- (function(t, e) {
1192
- (function(r, n) {
1193
- t.exports = n(ju());
1194
- })(Ae, function(r) {
1195
- return function(n) {
1196
- var o = r, a = o.lib, i = a.WordArray, s = a.Hasher, c = o.algo, u = [], f = [];
1197
- (function() {
1198
- function b(w) {
1199
- for (var y = n.sqrt(w), h = 2; h <= y; h++)
1200
- if (!(w % h))
1201
- return !1;
1202
- return !0;
1203
- }
1204
- function g(w) {
1205
- return (w - (w | 0)) * 4294967296 | 0;
1206
- }
1207
- for (var d = 2, v = 0; v < 64; )
1208
- b(d) && (v < 8 && (u[v] = g(n.pow(d, 1 / 2))), f[v] = g(n.pow(d, 1 / 3)), v++), d++;
1209
- })();
1210
- var l = [], m = c.SHA256 = s.extend({
1211
- _doReset: function() {
1212
- this._hash = new i.init(u.slice(0));
1213
- },
1214
- _doProcessBlock: function(b, g) {
1215
- for (var d = this._hash.words, v = d[0], w = d[1], y = d[2], h = d[3], S = d[4], O = d[5], E = d[6], _ = d[7], T = 0; T < 64; T++) {
1216
- if (T < 16)
1217
- l[T] = b[g + T] | 0;
1218
- else {
1219
- var P = l[T - 15], M = (P << 25 | P >>> 7) ^ (P << 14 | P >>> 18) ^ P >>> 3, L = l[T - 2], H = (L << 15 | L >>> 17) ^ (L << 13 | L >>> 19) ^ L >>> 10;
1220
- l[T] = M + l[T - 7] + H + l[T - 16];
1221
- }
1222
- var k = S & O ^ ~S & E, K = v & w ^ v & y ^ w & y, J = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), ue = (S << 26 | S >>> 6) ^ (S << 21 | S >>> 11) ^ (S << 7 | S >>> 25), ge = _ + ue + k + f[T] + l[T], Ft = J + K;
1223
- _ = E, E = O, O = S, S = h + ge | 0, h = y, y = w, w = v, v = ge + Ft | 0;
1224
- }
1225
- d[0] = d[0] + v | 0, d[1] = d[1] + w | 0, d[2] = d[2] + y | 0, d[3] = d[3] + h | 0, d[4] = d[4] + S | 0, d[5] = d[5] + O | 0, d[6] = d[6] + E | 0, d[7] = d[7] + _ | 0;
1226
- },
1227
- _doFinalize: function() {
1228
- var b = this._data, g = b.words, d = this._nDataBytes * 8, v = b.sigBytes * 8;
1229
- return g[v >>> 5] |= 128 << 24 - v % 32, g[(v + 64 >>> 9 << 4) + 14] = n.floor(d / 4294967296), g[(v + 64 >>> 9 << 4) + 15] = d, b.sigBytes = g.length * 4, this._process(), this._hash;
1230
- },
1231
- clone: function() {
1232
- var b = s.clone.call(this);
1233
- return b._hash = this._hash.clone(), b;
1234
- }
1235
- });
1236
- o.SHA256 = s._createHelper(m), o.HmacSHA256 = s._createHmacHelper(m);
1237
- }(Math), r.SHA256;
1238
- });
1239
- })(Cu);
1240
- function Co(t, e) {
1241
- return function() {
1242
- return t.apply(e, arguments);
1243
- };
1244
- }
1245
- const { toString: Du } = Object.prototype, { getPrototypeOf: Fr } = Object, Pt = /* @__PURE__ */ ((t) => (e) => {
1246
- const r = Du.call(e);
1247
- return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
1248
- })(/* @__PURE__ */ Object.create(null)), te = (t) => (t = t.toLowerCase(), (e) => Pt(e) === t), $t = (t) => (e) => typeof e === t, { isArray: je } = Array, Xe = $t("undefined");
1249
- function Mu(t) {
1250
- return t !== null && !Xe(t) && t.constructor !== null && !Xe(t.constructor) && z(t.constructor.isBuffer) && t.constructor.isBuffer(t);
1251
- }
1252
- const Fo = te("ArrayBuffer");
1253
- function Uu(t) {
1254
- let e;
1255
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Fo(t.buffer), e;
1256
- }
1257
- const Lu = $t("string"), z = $t("function"), No = $t("number"), Rt = (t) => t !== null && typeof t == "object", ku = (t) => t === !0 || t === !1, ut = (t) => {
1258
- if (Pt(t) !== "object")
1259
- return !1;
1260
- const e = Fr(t);
1261
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
1262
- }, Hu = te("Date"), Wu = te("File"), zu = te("Blob"), qu = te("FileList"), Gu = (t) => Rt(t) && z(t.pipe), Ku = (t) => {
1263
- let e;
1264
- return t && (typeof FormData == "function" && t instanceof FormData || z(t.append) && ((e = Pt(t)) === "formdata" || // detect form-data instance
1265
- e === "object" && z(t.toString) && t.toString() === "[object FormData]"));
1266
- }, Ju = te("URLSearchParams"), Vu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1267
- function Ze(t, e, { allOwnKeys: r = !1 } = {}) {
1268
- if (t === null || typeof t > "u")
1269
- return;
1270
- let n, o;
1271
- if (typeof t != "object" && (t = [t]), je(t))
1272
- for (n = 0, o = t.length; n < o; n++)
1273
- e.call(null, t[n], n, t);
1274
- else {
1275
- const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
1276
- let s;
1277
- for (n = 0; n < i; n++)
1278
- s = a[n], e.call(null, t[s], s, t);
1279
- }
1280
- }
1281
- function Bo(t, e) {
1282
- e = e.toLowerCase();
1283
- const r = Object.keys(t);
1284
- let n = r.length, o;
1285
- for (; n-- > 0; )
1286
- if (o = r[n], e === o.toLowerCase())
1287
- return o;
1288
- return null;
1289
- }
1290
- const jo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Do = (t) => !Xe(t) && t !== jo;
1291
- function cr() {
1292
- const { caseless: t } = Do(this) && this || {}, e = {}, r = (n, o) => {
1293
- const a = t && Bo(e, o) || o;
1294
- ut(e[a]) && ut(n) ? e[a] = cr(e[a], n) : ut(n) ? e[a] = cr({}, n) : je(n) ? e[a] = n.slice() : e[a] = n;
1295
- };
1296
- for (let n = 0, o = arguments.length; n < o; n++)
1297
- arguments[n] && Ze(arguments[n], r);
1298
- return e;
1299
- }
1300
- const Qu = (t, e, r, { allOwnKeys: n } = {}) => (Ze(e, (o, a) => {
1301
- r && z(o) ? t[a] = Co(o, r) : t[a] = o;
1302
- }, { allOwnKeys: n }), t), Xu = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Zu = (t, e, r, n) => {
1303
- t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
1304
- value: e.prototype
1305
- }), r && Object.assign(t.prototype, r);
1306
- }, Yu = (t, e, r, n) => {
1307
- let o, a, i;
1308
- const s = {};
1309
- if (e = e || {}, t == null)
1310
- return e;
1311
- do {
1312
- for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
1313
- i = o[a], (!n || n(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
1314
- t = r !== !1 && Fr(t);
1315
- } while (t && (!r || r(t, e)) && t !== Object.prototype);
1316
- return e;
1317
- }, el = (t, e, r) => {
1318
- t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
1319
- const n = t.indexOf(e, r);
1320
- return n !== -1 && n === r;
1321
- }, tl = (t) => {
1322
- if (!t)
1323
- return null;
1324
- if (je(t))
1325
- return t;
1326
- let e = t.length;
1327
- if (!No(e))
1328
- return null;
1329
- const r = new Array(e);
1330
- for (; e-- > 0; )
1331
- r[e] = t[e];
1332
- return r;
1333
- }, rl = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Fr(Uint8Array)), nl = (t, e) => {
1334
- const n = (t && t[Symbol.iterator]).call(t);
1335
- let o;
1336
- for (; (o = n.next()) && !o.done; ) {
1337
- const a = o.value;
1338
- e.call(t, a[0], a[1]);
1339
- }
1340
- }, ol = (t, e) => {
1341
- let r;
1342
- const n = [];
1343
- for (; (r = t.exec(e)) !== null; )
1344
- n.push(r);
1345
- return n;
1346
- }, al = te("HTMLFormElement"), il = (t) => t.toLowerCase().replace(
1347
- /[-_\s]([a-z\d])(\w*)/g,
1348
- function(r, n, o) {
1349
- return n.toUpperCase() + o;
1350
- }
1351
- ), Sn = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), sl = te("RegExp"), Mo = (t, e) => {
1352
- const r = Object.getOwnPropertyDescriptors(t), n = {};
1353
- Ze(r, (o, a) => {
1354
- let i;
1355
- (i = e(o, a, t)) !== !1 && (n[a] = i || o);
1356
- }), Object.defineProperties(t, n);
1357
- }, cl = (t) => {
1358
- Mo(t, (e, r) => {
1359
- if (z(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1360
- return !1;
1361
- const n = t[r];
1362
- if (z(n)) {
1363
- if (e.enumerable = !1, "writable" in e) {
1364
- e.writable = !1;
1365
- return;
1366
- }
1367
- e.set || (e.set = () => {
1368
- throw Error("Can not rewrite read-only method '" + r + "'");
1369
- });
1370
- }
1371
- });
1372
- }, ul = (t, e) => {
1373
- const r = {}, n = (o) => {
1374
- o.forEach((a) => {
1375
- r[a] = !0;
1376
- });
1377
- };
1378
- return je(t) ? n(t) : n(String(t).split(e)), r;
1379
- }, ll = () => {
1380
- }, fl = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Ut = "abcdefghijklmnopqrstuvwxyz", En = "0123456789", Uo = {
1381
- DIGIT: En,
1382
- ALPHA: Ut,
1383
- ALPHA_DIGIT: Ut + Ut.toUpperCase() + En
1384
- }, pl = (t = 16, e = Uo.ALPHA_DIGIT) => {
1385
- let r = "";
1386
- const { length: n } = e;
1387
- for (; t--; )
1388
- r += e[Math.random() * n | 0];
1389
- return r;
1390
- };
1391
- function dl(t) {
1392
- return !!(t && z(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
1393
- }
1394
- const yl = (t) => {
1395
- const e = new Array(10), r = (n, o) => {
1396
- if (Rt(n)) {
1397
- if (e.indexOf(n) >= 0)
1398
- return;
1399
- if (!("toJSON" in n)) {
1400
- e[o] = n;
1401
- const a = je(n) ? [] : {};
1402
- return Ze(n, (i, s) => {
1403
- const c = r(i, o + 1);
1404
- !Xe(c) && (a[s] = c);
1405
- }), e[o] = void 0, a;
1406
- }
1407
- }
1408
- return n;
1409
- };
1410
- return r(t, 0);
1411
- }, hl = te("AsyncFunction"), ml = (t) => t && (Rt(t) || z(t)) && z(t.then) && z(t.catch), p = {
1412
- isArray: je,
1413
- isArrayBuffer: Fo,
1414
- isBuffer: Mu,
1415
- isFormData: Ku,
1416
- isArrayBufferView: Uu,
1417
- isString: Lu,
1418
- isNumber: No,
1419
- isBoolean: ku,
1420
- isObject: Rt,
1421
- isPlainObject: ut,
1422
- isUndefined: Xe,
1423
- isDate: Hu,
1424
- isFile: Wu,
1425
- isBlob: zu,
1426
- isRegExp: sl,
1427
- isFunction: z,
1428
- isStream: Gu,
1429
- isURLSearchParams: Ju,
1430
- isTypedArray: rl,
1431
- isFileList: qu,
1432
- forEach: Ze,
1433
- merge: cr,
1434
- extend: Qu,
1435
- trim: Vu,
1436
- stripBOM: Xu,
1437
- inherits: Zu,
1438
- toFlatObject: Yu,
1439
- kindOf: Pt,
1440
- kindOfTest: te,
1441
- endsWith: el,
1442
- toArray: tl,
1443
- forEachEntry: nl,
1444
- matchAll: ol,
1445
- isHTMLForm: al,
1446
- hasOwnProperty: Sn,
1447
- hasOwnProp: Sn,
1448
- // an alias to avoid ESLint no-prototype-builtins detection
1449
- reduceDescriptors: Mo,
1450
- freezeMethods: cl,
1451
- toObjectSet: ul,
1452
- toCamelCase: il,
1453
- noop: ll,
1454
- toFiniteNumber: fl,
1455
- findKey: Bo,
1456
- global: jo,
1457
- isContextDefined: Do,
1458
- ALPHABET: Uo,
1459
- generateString: pl,
1460
- isSpecCompliantForm: dl,
1461
- toJSONObject: yl,
1462
- isAsyncFn: hl,
1463
- isThenable: ml
1464
- };
1465
- function x(t, e, r, n, o) {
1466
- 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);
1467
- }
1468
- p.inherits(x, Error, {
1469
- toJSON: function() {
1470
- return {
1471
- // Standard
1472
- message: this.message,
1473
- name: this.name,
1474
- // Microsoft
1475
- description: this.description,
1476
- number: this.number,
1477
- // Mozilla
1478
- fileName: this.fileName,
1479
- lineNumber: this.lineNumber,
1480
- columnNumber: this.columnNumber,
1481
- stack: this.stack,
1482
- // Axios
1483
- config: p.toJSONObject(this.config),
1484
- code: this.code,
1485
- status: this.response && this.response.status ? this.response.status : null
1486
- };
1487
- }
1488
- });
1489
- const Lo = x.prototype, ko = {};
1490
- [
1491
- "ERR_BAD_OPTION_VALUE",
1492
- "ERR_BAD_OPTION",
1493
- "ECONNABORTED",
1494
- "ETIMEDOUT",
1495
- "ERR_NETWORK",
1496
- "ERR_FR_TOO_MANY_REDIRECTS",
1497
- "ERR_DEPRECATED",
1498
- "ERR_BAD_RESPONSE",
1499
- "ERR_BAD_REQUEST",
1500
- "ERR_CANCELED",
1501
- "ERR_NOT_SUPPORT",
1502
- "ERR_INVALID_URL"
1503
- // eslint-disable-next-line func-names
1504
- ].forEach((t) => {
1505
- ko[t] = { value: t };
1506
- });
1507
- Object.defineProperties(x, ko);
1508
- Object.defineProperty(Lo, "isAxiosError", { value: !0 });
1509
- x.from = (t, e, r, n, o, a) => {
1510
- const i = Object.create(Lo);
1511
- return p.toFlatObject(t, i, function(c) {
1512
- return c !== Error.prototype;
1513
- }, (s) => s !== "isAxiosError"), x.call(i, t.message, e, r, n, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
1514
- };
1515
- const gl = null;
1516
- function ur(t) {
1517
- return p.isPlainObject(t) || p.isArray(t);
1518
- }
1519
- function Ho(t) {
1520
- return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
1521
- }
1522
- function On(t, e, r) {
1523
- return t ? t.concat(e).map(function(o, a) {
1524
- return o = Ho(o), !r && a ? "[" + o + "]" : o;
1525
- }).join(r ? "." : "") : e;
1526
- }
1527
- function vl(t) {
1528
- return p.isArray(t) && !t.some(ur);
1529
- }
1530
- const bl = p.toFlatObject(p, {}, null, function(e) {
1531
- return /^is[A-Z]/.test(e);
1532
- });
1533
- function It(t, e, r) {
1534
- if (!p.isObject(t))
1535
- throw new TypeError("target must be an object");
1536
- e = e || new FormData(), r = p.toFlatObject(r, {
1537
- metaTokens: !0,
1538
- dots: !1,
1539
- indexes: !1
1540
- }, !1, function(d, v) {
1541
- return !p.isUndefined(v[d]);
1542
- });
1543
- const n = r.metaTokens, o = r.visitor || f, a = r.dots, i = r.indexes, c = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
1544
- if (!p.isFunction(o))
1545
- throw new TypeError("visitor must be a function");
1546
- function u(g) {
1547
- if (g === null)
1548
- return "";
1549
- if (p.isDate(g))
1550
- return g.toISOString();
1551
- if (!c && p.isBlob(g))
1552
- throw new x("Blob is not supported. Use a Buffer instead.");
1553
- return p.isArrayBuffer(g) || p.isTypedArray(g) ? c && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
1554
- }
1555
- function f(g, d, v) {
1556
- let w = g;
1557
- if (g && !v && typeof g == "object") {
1558
- if (p.endsWith(d, "{}"))
1559
- d = n ? d : d.slice(0, -2), g = JSON.stringify(g);
1560
- else if (p.isArray(g) && vl(g) || (p.isFileList(g) || p.endsWith(d, "[]")) && (w = p.toArray(g)))
1561
- return d = Ho(d), w.forEach(function(h, S) {
1562
- !(p.isUndefined(h) || h === null) && e.append(
1563
- // eslint-disable-next-line no-nested-ternary
1564
- i === !0 ? On([d], S, a) : i === null ? d : d + "[]",
1565
- u(h)
1566
- );
1567
- }), !1;
1568
- }
1569
- return ur(g) ? !0 : (e.append(On(v, d, a), u(g)), !1);
1570
- }
1571
- const l = [], m = Object.assign(bl, {
1572
- defaultVisitor: f,
1573
- convertValue: u,
1574
- isVisitable: ur
1575
- });
1576
- function b(g, d) {
1577
- if (!p.isUndefined(g)) {
1578
- if (l.indexOf(g) !== -1)
1579
- throw Error("Circular reference detected in " + d.join("."));
1580
- l.push(g), p.forEach(g, function(w, y) {
1581
- (!(p.isUndefined(w) || w === null) && o.call(
1582
- e,
1583
- w,
1584
- p.isString(y) ? y.trim() : y,
1585
- d,
1586
- m
1587
- )) === !0 && b(w, d ? d.concat(y) : [y]);
1588
- }), l.pop();
1589
- }
1590
- }
1591
- if (!p.isObject(t))
1592
- throw new TypeError("data must be an object");
1593
- return b(t), e;
1594
- }
1595
- function An(t) {
1596
- const e = {
1597
- "!": "%21",
1598
- "'": "%27",
1599
- "(": "%28",
1600
- ")": "%29",
1601
- "~": "%7E",
1602
- "%20": "+",
1603
- "%00": "\0"
1604
- };
1605
- return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
1606
- return e[n];
1607
- });
1608
- }
1609
- function Nr(t, e) {
1610
- this._pairs = [], t && It(t, this, e);
1611
- }
1612
- const Wo = Nr.prototype;
1613
- Wo.append = function(e, r) {
1614
- this._pairs.push([e, r]);
1615
- };
1616
- Wo.toString = function(e) {
1617
- const r = e ? function(n) {
1618
- return e.call(this, n, An);
1619
- } : An;
1620
- return this._pairs.map(function(o) {
1621
- return r(o[0]) + "=" + r(o[1]);
1622
- }, "").join("&");
1623
- };
1624
- function wl(t) {
1625
- return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1626
- }
1627
- function zo(t, e, r) {
1628
- if (!e)
1629
- return t;
1630
- const n = r && r.encode || wl, o = r && r.serialize;
1631
- let a;
1632
- if (o ? a = o(e, r) : a = p.isURLSearchParams(e) ? e.toString() : new Nr(e, r).toString(n), a) {
1633
- const i = t.indexOf("#");
1634
- i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
1635
- }
1636
- return t;
1637
- }
1638
- class _n {
1639
- constructor() {
1640
- this.handlers = [];
1641
- }
1642
- /**
1643
- * Add a new interceptor to the stack
1644
- *
1645
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
1646
- * @param {Function} rejected The function to handle `reject` for a `Promise`
1647
- *
1648
- * @return {Number} An ID used to remove interceptor later
1649
- */
1650
- use(e, r, n) {
1651
- return this.handlers.push({
1652
- fulfilled: e,
1653
- rejected: r,
1654
- synchronous: n ? n.synchronous : !1,
1655
- runWhen: n ? n.runWhen : null
1656
- }), this.handlers.length - 1;
1657
- }
1658
- /**
1659
- * Remove an interceptor from the stack
1660
- *
1661
- * @param {Number} id The ID that was returned by `use`
1662
- *
1663
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1664
- */
1665
- eject(e) {
1666
- this.handlers[e] && (this.handlers[e] = null);
1667
- }
1668
- /**
1669
- * Clear all interceptors from the stack
1670
- *
1671
- * @returns {void}
1672
- */
1673
- clear() {
1674
- this.handlers && (this.handlers = []);
1675
- }
1676
- /**
1677
- * Iterate over all the registered interceptors
1678
- *
1679
- * This method is particularly useful for skipping over any
1680
- * interceptors that may have become `null` calling `eject`.
1681
- *
1682
- * @param {Function} fn The function to call for each interceptor
1683
- *
1684
- * @returns {void}
1685
- */
1686
- forEach(e) {
1687
- p.forEach(this.handlers, function(n) {
1688
- n !== null && e(n);
1689
- });
1690
- }
1691
- }
1692
- const qo = {
1693
- silentJSONParsing: !0,
1694
- forcedJSONParsing: !0,
1695
- clarifyTimeoutError: !1
1696
- }, Sl = typeof URLSearchParams < "u" ? URLSearchParams : Nr, El = typeof FormData < "u" ? FormData : null, Ol = typeof Blob < "u" ? Blob : null, Al = {
1697
- isBrowser: !0,
1698
- classes: {
1699
- URLSearchParams: Sl,
1700
- FormData: El,
1701
- Blob: Ol
1702
- },
1703
- protocols: ["http", "https", "file", "blob", "url", "data"]
1704
- }, Go = typeof window < "u" && typeof document < "u", _l = ((t) => Go && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), xl = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1705
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1706
- __proto__: null,
1707
- hasBrowserEnv: Go,
1708
- hasStandardBrowserEnv: _l,
1709
- hasStandardBrowserWebWorkerEnv: xl
1710
- }, Symbol.toStringTag, { value: "Module" })), ee = {
1711
- ...Tl,
1712
- ...Al
1713
- };
1714
- function Pl(t, e) {
1715
- return It(t, new ee.classes.URLSearchParams(), Object.assign({
1716
- visitor: function(r, n, o, a) {
1717
- return ee.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
1718
- }
1719
- }, e));
1720
- }
1721
- function $l(t) {
1722
- return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1723
- }
1724
- function Rl(t) {
1725
- const e = {}, r = Object.keys(t);
1726
- let n;
1727
- const o = r.length;
1728
- let a;
1729
- for (n = 0; n < o; n++)
1730
- a = r[n], e[a] = t[a];
1731
- return e;
1732
- }
1733
- function Ko(t) {
1734
- function e(r, n, o, a) {
1735
- let i = r[a++];
1736
- if (i === "__proto__")
1737
- return !0;
1738
- const s = Number.isFinite(+i), c = a >= r.length;
1739
- return i = !i && p.isArray(o) ? o.length : i, c ? (p.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(r, n, o[i], a) && p.isArray(o[i]) && (o[i] = Rl(o[i])), !s);
1740
- }
1741
- if (p.isFormData(t) && p.isFunction(t.entries)) {
1742
- const r = {};
1743
- return p.forEachEntry(t, (n, o) => {
1744
- e($l(n), o, r, 0);
1745
- }), r;
1746
- }
1747
- return null;
1748
- }
1749
- function Il(t, e, r) {
1750
- if (p.isString(t))
1751
- try {
1752
- return (e || JSON.parse)(t), p.trim(t);
1753
- } catch (n) {
1754
- if (n.name !== "SyntaxError")
1755
- throw n;
1756
- }
1757
- return (r || JSON.stringify)(t);
1758
- }
1759
- const Br = {
1760
- transitional: qo,
1761
- adapter: ["xhr", "http"],
1762
- transformRequest: [function(e, r) {
1763
- const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, a = p.isObject(e);
1764
- if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
1765
- return o ? JSON.stringify(Ko(e)) : e;
1766
- if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e))
1767
- return e;
1768
- if (p.isArrayBufferView(e))
1769
- return e.buffer;
1770
- if (p.isURLSearchParams(e))
1771
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
1772
- let s;
1773
- if (a) {
1774
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
1775
- return Pl(e, this.formSerializer).toString();
1776
- if ((s = p.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1777
- const c = this.env && this.env.FormData;
1778
- return It(
1779
- s ? { "files[]": e } : e,
1780
- c && new c(),
1781
- this.formSerializer
1782
- );
1783
- }
1784
- }
1785
- return a || o ? (r.setContentType("application/json", !1), Il(e)) : e;
1786
- }],
1787
- transformResponse: [function(e) {
1788
- const r = this.transitional || Br.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
1789
- if (e && p.isString(e) && (n && !this.responseType || o)) {
1790
- const i = !(r && r.silentJSONParsing) && o;
1791
- try {
1792
- return JSON.parse(e);
1793
- } catch (s) {
1794
- if (i)
1795
- throw s.name === "SyntaxError" ? x.from(s, x.ERR_BAD_RESPONSE, this, null, this.response) : s;
1796
- }
1797
- }
1798
- return e;
1799
- }],
1800
- /**
1801
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
1802
- * timeout is not created.
1803
- */
1804
- timeout: 0,
1805
- xsrfCookieName: "XSRF-TOKEN",
1806
- xsrfHeaderName: "X-XSRF-TOKEN",
1807
- maxContentLength: -1,
1808
- maxBodyLength: -1,
1809
- env: {
1810
- FormData: ee.classes.FormData,
1811
- Blob: ee.classes.Blob
1812
- },
1813
- validateStatus: function(e) {
1814
- return e >= 200 && e < 300;
1815
- },
1816
- headers: {
1817
- common: {
1818
- Accept: "application/json, text/plain, */*",
1819
- "Content-Type": void 0
1820
- }
1821
- }
1822
- };
1823
- p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
1824
- Br.headers[t] = {};
1825
- });
1826
- const jr = Br, Cl = p.toObjectSet([
1827
- "age",
1828
- "authorization",
1829
- "content-length",
1830
- "content-type",
1831
- "etag",
1832
- "expires",
1833
- "from",
1834
- "host",
1835
- "if-modified-since",
1836
- "if-unmodified-since",
1837
- "last-modified",
1838
- "location",
1839
- "max-forwards",
1840
- "proxy-authorization",
1841
- "referer",
1842
- "retry-after",
1843
- "user-agent"
1844
- ]), Fl = (t) => {
1845
- const e = {};
1846
- let r, n, o;
1847
- return t && t.split(`
1848
- `).forEach(function(i) {
1849
- o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || e[r] && Cl[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
1850
- }), e;
1851
- }, xn = Symbol("internals");
1852
- function Le(t) {
1853
- return t && String(t).trim().toLowerCase();
1854
- }
1855
- function lt(t) {
1856
- return t === !1 || t == null ? t : p.isArray(t) ? t.map(lt) : String(t);
1857
- }
1858
- function Nl(t) {
1859
- const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1860
- let n;
1861
- for (; n = r.exec(t); )
1862
- e[n[1]] = n[2];
1863
- return e;
1864
- }
1865
- const Bl = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1866
- function Lt(t, e, r, n, o) {
1867
- if (p.isFunction(n))
1868
- return n.call(this, e, r);
1869
- if (o && (e = r), !!p.isString(e)) {
1870
- if (p.isString(n))
1871
- return e.indexOf(n) !== -1;
1872
- if (p.isRegExp(n))
1873
- return n.test(e);
1874
- }
1875
- }
1876
- function jl(t) {
1877
- return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
1878
- }
1879
- function Dl(t, e) {
1880
- const r = p.toCamelCase(" " + e);
1881
- ["get", "set", "has"].forEach((n) => {
1882
- Object.defineProperty(t, n + r, {
1883
- value: function(o, a, i) {
1884
- return this[n].call(this, e, o, a, i);
1885
- },
1886
- configurable: !0
1887
- });
1888
- });
1889
- }
1890
- class Ct {
1891
- constructor(e) {
1892
- e && this.set(e);
1893
- }
1894
- set(e, r, n) {
1895
- const o = this;
1896
- function a(s, c, u) {
1897
- const f = Le(c);
1898
- if (!f)
1899
- throw new Error("header name must be a non-empty string");
1900
- const l = p.findKey(o, f);
1901
- (!l || o[l] === void 0 || u === !0 || u === void 0 && o[l] !== !1) && (o[l || c] = lt(s));
1902
- }
1903
- const i = (s, c) => p.forEach(s, (u, f) => a(u, f, c));
1904
- return p.isPlainObject(e) || e instanceof this.constructor ? i(e, r) : p.isString(e) && (e = e.trim()) && !Bl(e) ? i(Fl(e), r) : e != null && a(r, e, n), this;
1905
- }
1906
- get(e, r) {
1907
- if (e = Le(e), e) {
1908
- const n = p.findKey(this, e);
1909
- if (n) {
1910
- const o = this[n];
1911
- if (!r)
1912
- return o;
1913
- if (r === !0)
1914
- return Nl(o);
1915
- if (p.isFunction(r))
1916
- return r.call(this, o, n);
1917
- if (p.isRegExp(r))
1918
- return r.exec(o);
1919
- throw new TypeError("parser must be boolean|regexp|function");
1920
- }
1921
- }
1922
- }
1923
- has(e, r) {
1924
- if (e = Le(e), e) {
1925
- const n = p.findKey(this, e);
1926
- return !!(n && this[n] !== void 0 && (!r || Lt(this, this[n], n, r)));
1927
- }
1928
- return !1;
1929
- }
1930
- delete(e, r) {
1931
- const n = this;
1932
- let o = !1;
1933
- function a(i) {
1934
- if (i = Le(i), i) {
1935
- const s = p.findKey(n, i);
1936
- s && (!r || Lt(n, n[s], s, r)) && (delete n[s], o = !0);
1937
- }
1938
- }
1939
- return p.isArray(e) ? e.forEach(a) : a(e), o;
1940
- }
1941
- clear(e) {
1942
- const r = Object.keys(this);
1943
- let n = r.length, o = !1;
1944
- for (; n--; ) {
1945
- const a = r[n];
1946
- (!e || Lt(this, this[a], a, e, !0)) && (delete this[a], o = !0);
1947
- }
1948
- return o;
1949
- }
1950
- normalize(e) {
1951
- const r = this, n = {};
1952
- return p.forEach(this, (o, a) => {
1953
- const i = p.findKey(n, a);
1954
- if (i) {
1955
- r[i] = lt(o), delete r[a];
1956
- return;
1957
- }
1958
- const s = e ? jl(a) : String(a).trim();
1959
- s !== a && delete r[a], r[s] = lt(o), n[s] = !0;
1960
- }), this;
1961
- }
1962
- concat(...e) {
1963
- return this.constructor.concat(this, ...e);
1964
- }
1965
- toJSON(e) {
1966
- const r = /* @__PURE__ */ Object.create(null);
1967
- return p.forEach(this, (n, o) => {
1968
- n != null && n !== !1 && (r[o] = e && p.isArray(n) ? n.join(", ") : n);
1969
- }), r;
1970
- }
1971
- [Symbol.iterator]() {
1972
- return Object.entries(this.toJSON())[Symbol.iterator]();
1973
- }
1974
- toString() {
1975
- return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
1976
- `);
1977
- }
1978
- get [Symbol.toStringTag]() {
1979
- return "AxiosHeaders";
1980
- }
1981
- static from(e) {
1982
- return e instanceof this ? e : new this(e);
1983
- }
1984
- static concat(e, ...r) {
1985
- const n = new this(e);
1986
- return r.forEach((o) => n.set(o)), n;
1987
- }
1988
- static accessor(e) {
1989
- const n = (this[xn] = this[xn] = {
1990
- accessors: {}
1991
- }).accessors, o = this.prototype;
1992
- function a(i) {
1993
- const s = Le(i);
1994
- n[s] || (Dl(o, i), n[s] = !0);
1995
- }
1996
- return p.isArray(e) ? e.forEach(a) : a(e), this;
1997
- }
1998
- }
1999
- Ct.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2000
- p.reduceDescriptors(Ct.prototype, ({ value: t }, e) => {
2001
- let r = e[0].toUpperCase() + e.slice(1);
2002
- return {
2003
- get: () => t,
2004
- set(n) {
2005
- this[r] = n;
2006
- }
2007
- };
2008
- });
2009
- p.freezeMethods(Ct);
2010
- const re = Ct;
2011
- function kt(t, e) {
2012
- const r = this || jr, n = e || r, o = re.from(n.headers);
2013
- let a = n.data;
2014
- return p.forEach(t, function(s) {
2015
- a = s.call(r, a, o.normalize(), e ? e.status : void 0);
2016
- }), o.normalize(), a;
2017
- }
2018
- function Jo(t) {
2019
- return !!(t && t.__CANCEL__);
2020
- }
2021
- function Ye(t, e, r) {
2022
- x.call(this, t ?? "canceled", x.ERR_CANCELED, e, r), this.name = "CanceledError";
2023
- }
2024
- p.inherits(Ye, x, {
2025
- __CANCEL__: !0
2026
- });
2027
- function Ml(t, e, r) {
2028
- const n = r.config.validateStatus;
2029
- !r.status || !n || n(r.status) ? t(r) : e(new x(
2030
- "Request failed with status code " + r.status,
2031
- [x.ERR_BAD_REQUEST, x.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
2032
- r.config,
2033
- r.request,
2034
- r
2035
- ));
2036
- }
2037
- const Ul = ee.hasStandardBrowserEnv ? (
2038
- // Standard browser envs support document.cookie
2039
- {
2040
- write(t, e, r, n, o, a) {
2041
- const i = [t + "=" + encodeURIComponent(e)];
2042
- p.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), p.isString(n) && i.push("path=" + n), p.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
2043
- },
2044
- read(t) {
2045
- const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
2046
- return e ? decodeURIComponent(e[3]) : null;
2047
- },
2048
- remove(t) {
2049
- this.write(t, "", Date.now() - 864e5);
2050
- }
2051
- }
2052
- ) : (
2053
- // Non-standard browser env (web workers, react-native) lack needed support.
2054
- {
2055
- write() {
2056
- },
2057
- read() {
2058
- return null;
2059
- },
2060
- remove() {
2061
- }
2062
- }
2063
- );
2064
- function Ll(t) {
2065
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
2066
- }
2067
- function kl(t, e) {
2068
- return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
2069
- }
2070
- function Vo(t, e) {
2071
- return t && !Ll(e) ? kl(t, e) : e;
2072
- }
2073
- const Hl = ee.hasStandardBrowserEnv ? (
2074
- // Standard browser envs have full support of the APIs needed to test
2075
- // whether the request URL is of the same origin as current location.
2076
- function() {
2077
- const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
2078
- let n;
2079
- function o(a) {
2080
- let i = a;
2081
- return e && (r.setAttribute("href", i), i = r.href), r.setAttribute("href", i), {
2082
- href: r.href,
2083
- protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
2084
- host: r.host,
2085
- search: r.search ? r.search.replace(/^\?/, "") : "",
2086
- hash: r.hash ? r.hash.replace(/^#/, "") : "",
2087
- hostname: r.hostname,
2088
- port: r.port,
2089
- pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
2090
- };
2091
- }
2092
- return n = o(window.location.href), function(i) {
2093
- const s = p.isString(i) ? o(i) : i;
2094
- return s.protocol === n.protocol && s.host === n.host;
2095
- };
2096
- }()
2097
- ) : (
2098
- // Non standard browser envs (web workers, react-native) lack needed support.
2099
- /* @__PURE__ */ function() {
2100
- return function() {
2101
- return !0;
2102
- };
2103
- }()
2104
- );
2105
- function Wl(t) {
2106
- const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
2107
- return e && e[1] || "";
2108
- }
2109
- function zl(t, e) {
2110
- t = t || 10;
2111
- const r = new Array(t), n = new Array(t);
2112
- let o = 0, a = 0, i;
2113
- return e = e !== void 0 ? e : 1e3, function(c) {
2114
- const u = Date.now(), f = n[a];
2115
- i || (i = u), r[o] = c, n[o] = u;
2116
- let l = a, m = 0;
2117
- for (; l !== o; )
2118
- m += r[l++], l = l % t;
2119
- if (o = (o + 1) % t, o === a && (a = (a + 1) % t), u - i < e)
2120
- return;
2121
- const b = f && u - f;
2122
- return b ? Math.round(m * 1e3 / b) : void 0;
2123
- };
2124
- }
2125
- function Tn(t, e) {
2126
- let r = 0;
2127
- const n = zl(50, 250);
2128
- return (o) => {
2129
- const a = o.loaded, i = o.lengthComputable ? o.total : void 0, s = a - r, c = n(s), u = a <= i;
2130
- r = a;
2131
- const f = {
2132
- loaded: a,
2133
- total: i,
2134
- progress: i ? a / i : void 0,
2135
- bytes: s,
2136
- rate: c || void 0,
2137
- estimated: c && i && u ? (i - a) / c : void 0,
2138
- event: o
2139
- };
2140
- f[e ? "download" : "upload"] = !0, t(f);
2141
- };
2142
- }
2143
- const ql = typeof XMLHttpRequest < "u", Gl = ql && function(t) {
2144
- return new Promise(function(r, n) {
2145
- let o = t.data;
2146
- const a = re.from(t.headers).normalize();
2147
- let { responseType: i, withXSRFToken: s } = t, c;
2148
- function u() {
2149
- t.cancelToken && t.cancelToken.unsubscribe(c), t.signal && t.signal.removeEventListener("abort", c);
2150
- }
2151
- let f;
2152
- if (p.isFormData(o)) {
2153
- if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
2154
- a.setContentType(!1);
2155
- else if ((f = a.getContentType()) !== !1) {
2156
- const [d, ...v] = f ? f.split(";").map((w) => w.trim()).filter(Boolean) : [];
2157
- a.setContentType([d || "multipart/form-data", ...v].join("; "));
2158
- }
2159
- }
2160
- let l = new XMLHttpRequest();
2161
- if (t.auth) {
2162
- const d = t.auth.username || "", v = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
2163
- a.set("Authorization", "Basic " + btoa(d + ":" + v));
2164
- }
2165
- const m = Vo(t.baseURL, t.url);
2166
- l.open(t.method.toUpperCase(), zo(m, t.params, t.paramsSerializer), !0), l.timeout = t.timeout;
2167
- function b() {
2168
- if (!l)
2169
- return;
2170
- const d = re.from(
2171
- "getAllResponseHeaders" in l && l.getAllResponseHeaders()
2172
- ), w = {
2173
- data: !i || i === "text" || i === "json" ? l.responseText : l.response,
2174
- status: l.status,
2175
- statusText: l.statusText,
2176
- headers: d,
2177
- config: t,
2178
- request: l
2179
- };
2180
- Ml(function(h) {
2181
- r(h), u();
2182
- }, function(h) {
2183
- n(h), u();
2184
- }, w), l = null;
2185
- }
2186
- if ("onloadend" in l ? l.onloadend = b : l.onreadystatechange = function() {
2187
- !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(b);
2188
- }, l.onabort = function() {
2189
- l && (n(new x("Request aborted", x.ECONNABORTED, t, l)), l = null);
2190
- }, l.onerror = function() {
2191
- n(new x("Network Error", x.ERR_NETWORK, t, l)), l = null;
2192
- }, l.ontimeout = function() {
2193
- let v = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
2194
- const w = t.transitional || qo;
2195
- t.timeoutErrorMessage && (v = t.timeoutErrorMessage), n(new x(
2196
- v,
2197
- w.clarifyTimeoutError ? x.ETIMEDOUT : x.ECONNABORTED,
2198
- t,
2199
- l
2200
- )), l = null;
2201
- }, ee.hasStandardBrowserEnv && (s && p.isFunction(s) && (s = s(t)), s || s !== !1 && Hl(m))) {
2202
- const d = t.xsrfHeaderName && t.xsrfCookieName && Ul.read(t.xsrfCookieName);
2203
- d && a.set(t.xsrfHeaderName, d);
2204
- }
2205
- o === void 0 && a.setContentType(null), "setRequestHeader" in l && p.forEach(a.toJSON(), function(v, w) {
2206
- l.setRequestHeader(w, v);
2207
- }), p.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), i && i !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", Tn(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Tn(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (d) => {
2208
- l && (n(!d || d.type ? new Ye(null, t, l) : d), l.abort(), l = null);
2209
- }, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
2210
- const g = Wl(m);
2211
- if (g && ee.protocols.indexOf(g) === -1) {
2212
- n(new x("Unsupported protocol " + g + ":", x.ERR_BAD_REQUEST, t));
2213
- return;
2214
- }
2215
- l.send(o || null);
2216
- });
2217
- }, lr = {
2218
- http: gl,
2219
- xhr: Gl
2220
- };
2221
- p.forEach(lr, (t, e) => {
2222
- if (t) {
2223
- try {
2224
- Object.defineProperty(t, "name", { value: e });
2225
- } catch {
2226
- }
2227
- Object.defineProperty(t, "adapterName", { value: e });
2228
- }
2229
- });
2230
- const Pn = (t) => `- ${t}`, Kl = (t) => p.isFunction(t) || t === null || t === !1, Qo = {
2231
- getAdapter: (t) => {
2232
- t = p.isArray(t) ? t : [t];
2233
- const { length: e } = t;
2234
- let r, n;
2235
- const o = {};
2236
- for (let a = 0; a < e; a++) {
2237
- r = t[a];
2238
- let i;
2239
- if (n = r, !Kl(r) && (n = lr[(i = String(r)).toLowerCase()], n === void 0))
2240
- throw new x(`Unknown adapter '${i}'`);
2241
- if (n)
2242
- break;
2243
- o[i || "#" + a] = n;
2244
- }
2245
- if (!n) {
2246
- const a = Object.entries(o).map(
2247
- ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
2248
- );
2249
- let i = e ? a.length > 1 ? `since :
2250
- ` + a.map(Pn).join(`
2251
- `) : " " + Pn(a[0]) : "as no adapter specified";
2252
- throw new x(
2253
- "There is no suitable adapter to dispatch the request " + i,
2254
- "ERR_NOT_SUPPORT"
2255
- );
2256
- }
2257
- return n;
2258
- },
2259
- adapters: lr
2260
- };
2261
- function Ht(t) {
2262
- if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
2263
- throw new Ye(null, t);
2264
- }
2265
- function $n(t) {
2266
- return Ht(t), t.headers = re.from(t.headers), t.data = kt.call(
2267
- t,
2268
- t.transformRequest
2269
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Qo.getAdapter(t.adapter || jr.adapter)(t).then(function(n) {
2270
- return Ht(t), n.data = kt.call(
2271
- t,
2272
- t.transformResponse,
2273
- n
2274
- ), n.headers = re.from(n.headers), n;
2275
- }, function(n) {
2276
- return Jo(n) || (Ht(t), n && n.response && (n.response.data = kt.call(
2277
- t,
2278
- t.transformResponse,
2279
- n.response
2280
- ), n.response.headers = re.from(n.response.headers))), Promise.reject(n);
2281
- });
2282
- }
2283
- const Rn = (t) => t instanceof re ? { ...t } : t;
2284
- function Pe(t, e) {
2285
- e = e || {};
2286
- const r = {};
2287
- function n(u, f, l) {
2288
- return p.isPlainObject(u) && p.isPlainObject(f) ? p.merge.call({ caseless: l }, u, f) : p.isPlainObject(f) ? p.merge({}, f) : p.isArray(f) ? f.slice() : f;
2289
- }
2290
- function o(u, f, l) {
2291
- if (p.isUndefined(f)) {
2292
- if (!p.isUndefined(u))
2293
- return n(void 0, u, l);
2294
- } else
2295
- return n(u, f, l);
2296
- }
2297
- function a(u, f) {
2298
- if (!p.isUndefined(f))
2299
- return n(void 0, f);
2300
- }
2301
- function i(u, f) {
2302
- if (p.isUndefined(f)) {
2303
- if (!p.isUndefined(u))
2304
- return n(void 0, u);
2305
- } else
2306
- return n(void 0, f);
2307
- }
2308
- function s(u, f, l) {
2309
- if (l in e)
2310
- return n(u, f);
2311
- if (l in t)
2312
- return n(void 0, u);
2313
- }
2314
- const c = {
2315
- url: a,
2316
- method: a,
2317
- data: a,
2318
- baseURL: i,
2319
- transformRequest: i,
2320
- transformResponse: i,
2321
- paramsSerializer: i,
2322
- timeout: i,
2323
- timeoutMessage: i,
2324
- withCredentials: i,
2325
- withXSRFToken: i,
2326
- adapter: i,
2327
- responseType: i,
2328
- xsrfCookieName: i,
2329
- xsrfHeaderName: i,
2330
- onUploadProgress: i,
2331
- onDownloadProgress: i,
2332
- decompress: i,
2333
- maxContentLength: i,
2334
- maxBodyLength: i,
2335
- beforeRedirect: i,
2336
- transport: i,
2337
- httpAgent: i,
2338
- httpsAgent: i,
2339
- cancelToken: i,
2340
- socketPath: i,
2341
- responseEncoding: i,
2342
- validateStatus: s,
2343
- headers: (u, f) => o(Rn(u), Rn(f), !0)
2344
- };
2345
- return p.forEach(Object.keys(Object.assign({}, t, e)), function(f) {
2346
- const l = c[f] || o, m = l(t[f], e[f], f);
2347
- p.isUndefined(m) && l !== s || (r[f] = m);
2348
- }), r;
2349
- }
2350
- const Xo = "1.6.8", Dr = {};
2351
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
2352
- Dr[t] = function(n) {
2353
- return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
2354
- };
2355
- });
2356
- const In = {};
2357
- Dr.transitional = function(e, r, n) {
2358
- function o(a, i) {
2359
- return "[Axios v" + Xo + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
2360
- }
2361
- return (a, i, s) => {
2362
- if (e === !1)
2363
- throw new x(
2364
- o(i, " has been removed" + (r ? " in " + r : "")),
2365
- x.ERR_DEPRECATED
2366
- );
2367
- return r && !In[i] && (In[i] = !0, console.warn(
2368
- o(
2369
- i,
2370
- " has been deprecated since v" + r + " and will be removed in the near future"
2371
- )
2372
- )), e ? e(a, i, s) : !0;
2373
- };
2374
- };
2375
- function Jl(t, e, r) {
2376
- if (typeof t != "object")
2377
- throw new x("options must be an object", x.ERR_BAD_OPTION_VALUE);
2378
- const n = Object.keys(t);
2379
- let o = n.length;
2380
- for (; o-- > 0; ) {
2381
- const a = n[o], i = e[a];
2382
- if (i) {
2383
- const s = t[a], c = s === void 0 || i(s, a, t);
2384
- if (c !== !0)
2385
- throw new x("option " + a + " must be " + c, x.ERR_BAD_OPTION_VALUE);
2386
- continue;
2387
- }
2388
- if (r !== !0)
2389
- throw new x("Unknown option " + a, x.ERR_BAD_OPTION);
2390
- }
2391
- }
2392
- const fr = {
2393
- assertOptions: Jl,
2394
- validators: Dr
2395
- }, oe = fr.validators;
2396
- class wt {
2397
- constructor(e) {
2398
- this.defaults = e, this.interceptors = {
2399
- request: new _n(),
2400
- response: new _n()
2401
- };
2402
- }
2403
- /**
2404
- * Dispatch a request
2405
- *
2406
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2407
- * @param {?Object} config
2408
- *
2409
- * @returns {Promise} The Promise to be fulfilled
2410
- */
2411
- async request(e, r) {
2412
- try {
2413
- return await this._request(e, r);
2414
- } catch (n) {
2415
- if (n instanceof Error) {
2416
- let o;
2417
- Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
2418
- const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
2419
- n.stack ? a && !String(n.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (n.stack += `
2420
- ` + a) : n.stack = a;
2421
- }
2422
- throw n;
2423
- }
2424
- }
2425
- _request(e, r) {
2426
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = Pe(this.defaults, r);
2427
- const { transitional: n, paramsSerializer: o, headers: a } = r;
2428
- n !== void 0 && fr.assertOptions(n, {
2429
- silentJSONParsing: oe.transitional(oe.boolean),
2430
- forcedJSONParsing: oe.transitional(oe.boolean),
2431
- clarifyTimeoutError: oe.transitional(oe.boolean)
2432
- }, !1), o != null && (p.isFunction(o) ? r.paramsSerializer = {
2433
- serialize: o
2434
- } : fr.assertOptions(o, {
2435
- encode: oe.function,
2436
- serialize: oe.function
2437
- }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
2438
- let i = a && p.merge(
2439
- a.common,
2440
- a[r.method]
2441
- );
2442
- a && p.forEach(
2443
- ["delete", "get", "head", "post", "put", "patch", "common"],
2444
- (g) => {
2445
- delete a[g];
2446
- }
2447
- ), r.headers = re.concat(i, a);
2448
- const s = [];
2449
- let c = !0;
2450
- this.interceptors.request.forEach(function(d) {
2451
- typeof d.runWhen == "function" && d.runWhen(r) === !1 || (c = c && d.synchronous, s.unshift(d.fulfilled, d.rejected));
2452
- });
2453
- const u = [];
2454
- this.interceptors.response.forEach(function(d) {
2455
- u.push(d.fulfilled, d.rejected);
2456
- });
2457
- let f, l = 0, m;
2458
- if (!c) {
2459
- const g = [$n.bind(this), void 0];
2460
- for (g.unshift.apply(g, s), g.push.apply(g, u), m = g.length, f = Promise.resolve(r); l < m; )
2461
- f = f.then(g[l++], g[l++]);
2462
- return f;
2463
- }
2464
- m = s.length;
2465
- let b = r;
2466
- for (l = 0; l < m; ) {
2467
- const g = s[l++], d = s[l++];
2468
- try {
2469
- b = g(b);
2470
- } catch (v) {
2471
- d.call(this, v);
2472
- break;
2473
- }
2474
- }
2475
- try {
2476
- f = $n.call(this, b);
2477
- } catch (g) {
2478
- return Promise.reject(g);
2479
- }
2480
- for (l = 0, m = u.length; l < m; )
2481
- f = f.then(u[l++], u[l++]);
2482
- return f;
2483
- }
2484
- getUri(e) {
2485
- e = Pe(this.defaults, e);
2486
- const r = Vo(e.baseURL, e.url);
2487
- return zo(r, e.params, e.paramsSerializer);
2488
- }
2489
- }
2490
- p.forEach(["delete", "get", "head", "options"], function(e) {
2491
- wt.prototype[e] = function(r, n) {
2492
- return this.request(Pe(n || {}, {
2493
- method: e,
2494
- url: r,
2495
- data: (n || {}).data
2496
- }));
2497
- };
2498
- });
2499
- p.forEach(["post", "put", "patch"], function(e) {
2500
- function r(n) {
2501
- return function(a, i, s) {
2502
- return this.request(Pe(s || {}, {
2503
- method: e,
2504
- headers: n ? {
2505
- "Content-Type": "multipart/form-data"
2506
- } : {},
2507
- url: a,
2508
- data: i
2509
- }));
2510
- };
2511
- }
2512
- wt.prototype[e] = r(), wt.prototype[e + "Form"] = r(!0);
2513
- });
2514
- const ft = wt;
2515
- class Mr {
2516
- constructor(e) {
2517
- if (typeof e != "function")
2518
- throw new TypeError("executor must be a function.");
2519
- let r;
2520
- this.promise = new Promise(function(a) {
2521
- r = a;
2522
- });
2523
- const n = this;
2524
- this.promise.then((o) => {
2525
- if (!n._listeners)
2526
- return;
2527
- let a = n._listeners.length;
2528
- for (; a-- > 0; )
2529
- n._listeners[a](o);
2530
- n._listeners = null;
2531
- }), this.promise.then = (o) => {
2532
- let a;
2533
- const i = new Promise((s) => {
2534
- n.subscribe(s), a = s;
2535
- }).then(o);
2536
- return i.cancel = function() {
2537
- n.unsubscribe(a);
2538
- }, i;
2539
- }, e(function(a, i, s) {
2540
- n.reason || (n.reason = new Ye(a, i, s), r(n.reason));
2541
- });
2542
- }
2543
- /**
2544
- * Throws a `CanceledError` if cancellation has been requested.
2545
- */
2546
- throwIfRequested() {
2547
- if (this.reason)
2548
- throw this.reason;
2549
- }
2550
- /**
2551
- * Subscribe to the cancel signal
2552
- */
2553
- subscribe(e) {
2554
- if (this.reason) {
2555
- e(this.reason);
2556
- return;
2557
- }
2558
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
2559
- }
2560
- /**
2561
- * Unsubscribe from the cancel signal
2562
- */
2563
- unsubscribe(e) {
2564
- if (!this._listeners)
2565
- return;
2566
- const r = this._listeners.indexOf(e);
2567
- r !== -1 && this._listeners.splice(r, 1);
2568
- }
2569
- /**
2570
- * Returns an object that contains a new `CancelToken` and a function that, when called,
2571
- * cancels the `CancelToken`.
2572
- */
2573
- static source() {
2574
- let e;
2575
- return {
2576
- token: new Mr(function(o) {
2577
- e = o;
2578
- }),
2579
- cancel: e
2580
- };
2581
- }
2582
- }
2583
- const Vl = Mr;
2584
- function Ql(t) {
2585
- return function(r) {
2586
- return t.apply(null, r);
2587
- };
2588
- }
2589
- function Xl(t) {
2590
- return p.isObject(t) && t.isAxiosError === !0;
2591
- }
2592
- const pr = {
2593
- Continue: 100,
2594
- SwitchingProtocols: 101,
2595
- Processing: 102,
2596
- EarlyHints: 103,
2597
- Ok: 200,
2598
- Created: 201,
2599
- Accepted: 202,
2600
- NonAuthoritativeInformation: 203,
2601
- NoContent: 204,
2602
- ResetContent: 205,
2603
- PartialContent: 206,
2604
- MultiStatus: 207,
2605
- AlreadyReported: 208,
2606
- ImUsed: 226,
2607
- MultipleChoices: 300,
2608
- MovedPermanently: 301,
2609
- Found: 302,
2610
- SeeOther: 303,
2611
- NotModified: 304,
2612
- UseProxy: 305,
2613
- Unused: 306,
2614
- TemporaryRedirect: 307,
2615
- PermanentRedirect: 308,
2616
- BadRequest: 400,
2617
- Unauthorized: 401,
2618
- PaymentRequired: 402,
2619
- Forbidden: 403,
2620
- NotFound: 404,
2621
- MethodNotAllowed: 405,
2622
- NotAcceptable: 406,
2623
- ProxyAuthenticationRequired: 407,
2624
- RequestTimeout: 408,
2625
- Conflict: 409,
2626
- Gone: 410,
2627
- LengthRequired: 411,
2628
- PreconditionFailed: 412,
2629
- PayloadTooLarge: 413,
2630
- UriTooLong: 414,
2631
- UnsupportedMediaType: 415,
2632
- RangeNotSatisfiable: 416,
2633
- ExpectationFailed: 417,
2634
- ImATeapot: 418,
2635
- MisdirectedRequest: 421,
2636
- UnprocessableEntity: 422,
2637
- Locked: 423,
2638
- FailedDependency: 424,
2639
- TooEarly: 425,
2640
- UpgradeRequired: 426,
2641
- PreconditionRequired: 428,
2642
- TooManyRequests: 429,
2643
- RequestHeaderFieldsTooLarge: 431,
2644
- UnavailableForLegalReasons: 451,
2645
- InternalServerError: 500,
2646
- NotImplemented: 501,
2647
- BadGateway: 502,
2648
- ServiceUnavailable: 503,
2649
- GatewayTimeout: 504,
2650
- HttpVersionNotSupported: 505,
2651
- VariantAlsoNegotiates: 506,
2652
- InsufficientStorage: 507,
2653
- LoopDetected: 508,
2654
- NotExtended: 510,
2655
- NetworkAuthenticationRequired: 511
2656
- };
2657
- Object.entries(pr).forEach(([t, e]) => {
2658
- pr[e] = t;
2659
- });
2660
- const Zl = pr;
2661
- function Zo(t) {
2662
- const e = new ft(t), r = Co(ft.prototype.request, e);
2663
- return p.extend(r, ft.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
2664
- return Zo(Pe(t, o));
2665
- }, r;
2666
- }
2667
- const F = Zo(jr);
2668
- F.Axios = ft;
2669
- F.CanceledError = Ye;
2670
- F.CancelToken = Vl;
2671
- F.isCancel = Jo;
2672
- F.VERSION = Xo;
2673
- F.toFormData = It;
2674
- F.AxiosError = x;
2675
- F.Cancel = F.CanceledError;
2676
- F.all = function(e) {
2677
- return Promise.all(e);
2678
- };
2679
- F.spread = Ql;
2680
- F.isAxiosError = Xl;
2681
- F.mergeConfig = Pe;
2682
- F.AxiosHeaders = re;
2683
- F.formToJSON = (t) => Ko(p.isHTMLForm(t) ? new FormData(t) : t);
2684
- F.getAdapter = Qo.getAdapter;
2685
- F.HttpStatusCode = Zl;
2686
- F.default = F;
2687
- var Yl = Error, ef = EvalError, tf = RangeError, rf = ReferenceError, Yo = SyntaxError, et = TypeError, nf = URIError, of = function() {
2688
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2689
- return !1;
2690
- if (typeof Symbol.iterator == "symbol")
2691
- return !0;
2692
- var e = {}, r = Symbol("test"), n = Object(r);
2693
- if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
2694
- return !1;
2695
- var o = 42;
2696
- e[r] = o;
2697
- for (r in e)
2698
- return !1;
2699
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
2700
- return !1;
2701
- var a = Object.getOwnPropertySymbols(e);
2702
- if (a.length !== 1 || a[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
2703
- return !1;
2704
- if (typeof Object.getOwnPropertyDescriptor == "function") {
2705
- var i = Object.getOwnPropertyDescriptor(e, r);
2706
- if (i.value !== o || i.enumerable !== !0)
2707
- return !1;
2708
- }
2709
- return !0;
2710
- }, Cn = typeof Symbol < "u" && Symbol, af = of, sf = function() {
2711
- return typeof Cn != "function" || typeof Symbol != "function" || typeof Cn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : af();
2712
- }, Wt = {
2713
- __proto__: null,
2714
- foo: {}
2715
- }, cf = Object, uf = function() {
2716
- return { __proto__: Wt }.foo === Wt.foo && !(Wt instanceof cf);
2717
- }, lf = "Function.prototype.bind called on incompatible ", ff = Object.prototype.toString, pf = Math.max, df = "[object Function]", Fn = function(e, r) {
2718
- for (var n = [], o = 0; o < e.length; o += 1)
2719
- n[o] = e[o];
2720
- for (var a = 0; a < r.length; a += 1)
2721
- n[a + e.length] = r[a];
2722
- return n;
2723
- }, yf = function(e, r) {
2724
- for (var n = [], o = r || 0, a = 0; o < e.length; o += 1, a += 1)
2725
- n[a] = e[o];
2726
- return n;
2727
- }, hf = function(t, e) {
2728
- for (var r = "", n = 0; n < t.length; n += 1)
2729
- r += t[n], n + 1 < t.length && (r += e);
2730
- return r;
2731
- }, mf = function(e) {
2732
- var r = this;
2733
- if (typeof r != "function" || ff.apply(r) !== df)
2734
- throw new TypeError(lf + r);
2735
- for (var n = yf(arguments, 1), o, a = function() {
2736
- if (this instanceof o) {
2737
- var f = r.apply(
2738
- this,
2739
- Fn(n, arguments)
2740
- );
2741
- return Object(f) === f ? f : this;
2742
- }
2743
- return r.apply(
2744
- e,
2745
- Fn(n, arguments)
2746
- );
2747
- }, i = pf(0, r.length - n.length), s = [], c = 0; c < i; c++)
2748
- s[c] = "$" + c;
2749
- if (o = Function("binder", "return function (" + hf(s, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
2750
- var u = function() {
2751
- };
2752
- u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
2753
- }
2754
- return o;
2755
- }, gf = mf, Ur = Function.prototype.bind || gf, vf = Function.prototype.call, bf = Object.prototype.hasOwnProperty, wf = Ur, Sf = wf.call(vf, bf), A, Ef = Yl, Of = ef, Af = tf, _f = rf, $e = Yo, _e = et, xf = nf, ea = Function, zt = function(t) {
2756
- try {
2757
- return ea('"use strict"; return (' + t + ").constructor;")();
2758
- } catch {
2759
- }
2760
- }, pe = Object.getOwnPropertyDescriptor;
2761
- if (pe)
2762
- try {
2763
- pe({}, "");
2764
- } catch {
2765
- pe = null;
2766
- }
2767
- var qt = function() {
2768
- throw new _e();
2769
- }, Tf = pe ? function() {
2770
- try {
2771
- return arguments.callee, qt;
2772
- } catch {
2773
- try {
2774
- return pe(arguments, "callee").get;
2775
- } catch {
2776
- return qt;
2777
- }
2778
- }
2779
- }() : qt, ve = sf(), Pf = uf(), B = Object.getPrototypeOf || (Pf ? function(t) {
2780
- return t.__proto__;
2781
- } : null), we = {}, $f = typeof Uint8Array > "u" || !B ? A : B(Uint8Array), de = {
2782
- __proto__: null,
2783
- "%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
2784
- "%Array%": Array,
2785
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? A : ArrayBuffer,
2786
- "%ArrayIteratorPrototype%": ve && B ? B([][Symbol.iterator]()) : A,
2787
- "%AsyncFromSyncIteratorPrototype%": A,
2788
- "%AsyncFunction%": we,
2789
- "%AsyncGenerator%": we,
2790
- "%AsyncGeneratorFunction%": we,
2791
- "%AsyncIteratorPrototype%": we,
2792
- "%Atomics%": typeof Atomics > "u" ? A : Atomics,
2793
- "%BigInt%": typeof BigInt > "u" ? A : BigInt,
2794
- "%BigInt64Array%": typeof BigInt64Array > "u" ? A : BigInt64Array,
2795
- "%BigUint64Array%": typeof BigUint64Array > "u" ? A : BigUint64Array,
2796
- "%Boolean%": Boolean,
2797
- "%DataView%": typeof DataView > "u" ? A : DataView,
2798
- "%Date%": Date,
2799
- "%decodeURI%": decodeURI,
2800
- "%decodeURIComponent%": decodeURIComponent,
2801
- "%encodeURI%": encodeURI,
2802
- "%encodeURIComponent%": encodeURIComponent,
2803
- "%Error%": Ef,
2804
- "%eval%": eval,
2805
- // eslint-disable-line no-eval
2806
- "%EvalError%": Of,
2807
- "%Float32Array%": typeof Float32Array > "u" ? A : Float32Array,
2808
- "%Float64Array%": typeof Float64Array > "u" ? A : Float64Array,
2809
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? A : FinalizationRegistry,
2810
- "%Function%": ea,
2811
- "%GeneratorFunction%": we,
2812
- "%Int8Array%": typeof Int8Array > "u" ? A : Int8Array,
2813
- "%Int16Array%": typeof Int16Array > "u" ? A : Int16Array,
2814
- "%Int32Array%": typeof Int32Array > "u" ? A : Int32Array,
2815
- "%isFinite%": isFinite,
2816
- "%isNaN%": isNaN,
2817
- "%IteratorPrototype%": ve && B ? B(B([][Symbol.iterator]())) : A,
2818
- "%JSON%": typeof JSON == "object" ? JSON : A,
2819
- "%Map%": typeof Map > "u" ? A : Map,
2820
- "%MapIteratorPrototype%": typeof Map > "u" || !ve || !B ? A : B((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2821
- "%Math%": Math,
2822
- "%Number%": Number,
2823
- "%Object%": Object,
2824
- "%parseFloat%": parseFloat,
2825
- "%parseInt%": parseInt,
2826
- "%Promise%": typeof Promise > "u" ? A : Promise,
2827
- "%Proxy%": typeof Proxy > "u" ? A : Proxy,
2828
- "%RangeError%": Af,
2829
- "%ReferenceError%": _f,
2830
- "%Reflect%": typeof Reflect > "u" ? A : Reflect,
2831
- "%RegExp%": RegExp,
2832
- "%Set%": typeof Set > "u" ? A : Set,
2833
- "%SetIteratorPrototype%": typeof Set > "u" || !ve || !B ? A : B((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2834
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? A : SharedArrayBuffer,
2835
- "%String%": String,
2836
- "%StringIteratorPrototype%": ve && B ? B(""[Symbol.iterator]()) : A,
2837
- "%Symbol%": ve ? Symbol : A,
2838
- "%SyntaxError%": $e,
2839
- "%ThrowTypeError%": Tf,
2840
- "%TypedArray%": $f,
2841
- "%TypeError%": _e,
2842
- "%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
2843
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
2844
- "%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
2845
- "%Uint32Array%": typeof Uint32Array > "u" ? A : Uint32Array,
2846
- "%URIError%": xf,
2847
- "%WeakMap%": typeof WeakMap > "u" ? A : WeakMap,
2848
- "%WeakRef%": typeof WeakRef > "u" ? A : WeakRef,
2849
- "%WeakSet%": typeof WeakSet > "u" ? A : WeakSet
2850
- };
2851
- if (B)
2852
- try {
2853
- null.error;
2854
- } catch (t) {
2855
- var Rf = B(B(t));
2856
- de["%Error.prototype%"] = Rf;
2857
- }
2858
- var If = function t(e) {
2859
- var r;
2860
- if (e === "%AsyncFunction%")
2861
- r = zt("async function () {}");
2862
- else if (e === "%GeneratorFunction%")
2863
- r = zt("function* () {}");
2864
- else if (e === "%AsyncGeneratorFunction%")
2865
- r = zt("async function* () {}");
2866
- else if (e === "%AsyncGenerator%") {
2867
- var n = t("%AsyncGeneratorFunction%");
2868
- n && (r = n.prototype);
2869
- } else if (e === "%AsyncIteratorPrototype%") {
2870
- var o = t("%AsyncGenerator%");
2871
- o && B && (r = B(o.prototype));
2872
- }
2873
- return de[e] = r, r;
2874
- }, Nn = {
2875
- __proto__: null,
2876
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2877
- "%ArrayPrototype%": ["Array", "prototype"],
2878
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
2879
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
2880
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
2881
- "%ArrayProto_values%": ["Array", "prototype", "values"],
2882
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
2883
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
2884
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
2885
- "%BooleanPrototype%": ["Boolean", "prototype"],
2886
- "%DataViewPrototype%": ["DataView", "prototype"],
2887
- "%DatePrototype%": ["Date", "prototype"],
2888
- "%ErrorPrototype%": ["Error", "prototype"],
2889
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
2890
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
2891
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
2892
- "%FunctionPrototype%": ["Function", "prototype"],
2893
- "%Generator%": ["GeneratorFunction", "prototype"],
2894
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
2895
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
2896
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
2897
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
2898
- "%JSONParse%": ["JSON", "parse"],
2899
- "%JSONStringify%": ["JSON", "stringify"],
2900
- "%MapPrototype%": ["Map", "prototype"],
2901
- "%NumberPrototype%": ["Number", "prototype"],
2902
- "%ObjectPrototype%": ["Object", "prototype"],
2903
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
2904
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
2905
- "%PromisePrototype%": ["Promise", "prototype"],
2906
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
2907
- "%Promise_all%": ["Promise", "all"],
2908
- "%Promise_reject%": ["Promise", "reject"],
2909
- "%Promise_resolve%": ["Promise", "resolve"],
2910
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
2911
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
2912
- "%RegExpPrototype%": ["RegExp", "prototype"],
2913
- "%SetPrototype%": ["Set", "prototype"],
2914
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
2915
- "%StringPrototype%": ["String", "prototype"],
2916
- "%SymbolPrototype%": ["Symbol", "prototype"],
2917
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
2918
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
2919
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
2920
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
2921
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
2922
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
2923
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
2924
- "%URIErrorPrototype%": ["URIError", "prototype"],
2925
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
2926
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
2927
- }, tt = Ur, St = Sf, Cf = tt.call(Function.call, Array.prototype.concat), Ff = tt.call(Function.apply, Array.prototype.splice), Bn = tt.call(Function.call, String.prototype.replace), Et = tt.call(Function.call, String.prototype.slice), Nf = tt.call(Function.call, RegExp.prototype.exec), Bf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, jf = /\\(\\)?/g, Df = function(e) {
2928
- var r = Et(e, 0, 1), n = Et(e, -1);
2929
- if (r === "%" && n !== "%")
2930
- throw new $e("invalid intrinsic syntax, expected closing `%`");
2931
- if (n === "%" && r !== "%")
2932
- throw new $e("invalid intrinsic syntax, expected opening `%`");
2933
- var o = [];
2934
- return Bn(e, Bf, function(a, i, s, c) {
2935
- o[o.length] = s ? Bn(c, jf, "$1") : i || a;
2936
- }), o;
2937
- }, Mf = function(e, r) {
2938
- var n = e, o;
2939
- if (St(Nn, n) && (o = Nn[n], n = "%" + o[0] + "%"), St(de, n)) {
2940
- var a = de[n];
2941
- if (a === we && (a = If(n)), typeof a > "u" && !r)
2942
- throw new _e("intrinsic " + e + " exists, but is not available. Please file an issue!");
2943
- return {
2944
- alias: o,
2945
- name: n,
2946
- value: a
2947
- };
2948
- }
2949
- throw new $e("intrinsic " + e + " does not exist!");
2950
- }, De = function(e, r) {
2951
- if (typeof e != "string" || e.length === 0)
2952
- throw new _e("intrinsic name must be a non-empty string");
2953
- if (arguments.length > 1 && typeof r != "boolean")
2954
- throw new _e('"allowMissing" argument must be a boolean');
2955
- if (Nf(/^%?[^%]*%?$/, e) === null)
2956
- throw new $e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2957
- var n = Df(e), o = n.length > 0 ? n[0] : "", a = Mf("%" + o + "%", r), i = a.name, s = a.value, c = !1, u = a.alias;
2958
- u && (o = u[0], Ff(n, Cf([0, 1], u)));
2959
- for (var f = 1, l = !0; f < n.length; f += 1) {
2960
- var m = n[f], b = Et(m, 0, 1), g = Et(m, -1);
2961
- if ((b === '"' || b === "'" || b === "`" || g === '"' || g === "'" || g === "`") && b !== g)
2962
- throw new $e("property names with quotes must have matching quotes");
2963
- if ((m === "constructor" || !l) && (c = !0), o += "." + m, i = "%" + o + "%", St(de, i))
2964
- s = de[i];
2965
- else if (s != null) {
2966
- if (!(m in s)) {
2967
- if (!r)
2968
- throw new _e("base intrinsic for " + e + " exists, but the property is not available.");
2969
- return;
2970
- }
2971
- if (pe && f + 1 >= n.length) {
2972
- var d = pe(s, m);
2973
- l = !!d, l && "get" in d && !("originalValue" in d.get) ? s = d.get : s = s[m];
2974
- } else
2975
- l = St(s, m), s = s[m];
2976
- l && !c && (de[i] = s);
2977
- }
2978
- }
2979
- return s;
2980
- }, ta = { exports: {} }, Gt, jn;
2981
- function Lr() {
2982
- if (jn)
2983
- return Gt;
2984
- jn = 1;
2985
- var t = De, e = t("%Object.defineProperty%", !0) || !1;
2986
- if (e)
2987
- try {
2988
- e({}, "a", { value: 1 });
2989
- } catch {
2990
- e = !1;
2991
- }
2992
- return Gt = e, Gt;
2993
- }
2994
- var Uf = De, pt = Uf("%Object.getOwnPropertyDescriptor%", !0);
2995
- if (pt)
2996
- try {
2997
- pt([], "length");
2998
- } catch {
2999
- pt = null;
3000
- }
3001
- var ra = pt, Dn = Lr(), Lf = Yo, be = et, Mn = ra, kf = function(e, r, n) {
3002
- if (!e || typeof e != "object" && typeof e != "function")
3003
- throw new be("`obj` must be an object or a function`");
3004
- if (typeof r != "string" && typeof r != "symbol")
3005
- throw new be("`property` must be a string or a symbol`");
3006
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
3007
- throw new be("`nonEnumerable`, if provided, must be a boolean or null");
3008
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
3009
- throw new be("`nonWritable`, if provided, must be a boolean or null");
3010
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
3011
- throw new be("`nonConfigurable`, if provided, must be a boolean or null");
3012
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
3013
- throw new be("`loose`, if provided, must be a boolean");
3014
- var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, c = !!Mn && Mn(e, r);
3015
- if (Dn)
3016
- Dn(e, r, {
3017
- configurable: i === null && c ? c.configurable : !i,
3018
- enumerable: o === null && c ? c.enumerable : !o,
3019
- value: n,
3020
- writable: a === null && c ? c.writable : !a
3021
- });
3022
- else if (s || !o && !a && !i)
3023
- e[r] = n;
3024
- else
3025
- throw new Lf("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3026
- }, dr = Lr(), na = function() {
3027
- return !!dr;
3028
- };
3029
- na.hasArrayLengthDefineBug = function() {
3030
- if (!dr)
3031
- return null;
3032
- try {
3033
- return dr([], "length", { value: 1 }).length !== 1;
3034
- } catch {
3035
- return !0;
3036
- }
3037
- };
3038
- var Hf = na, Wf = De, Un = kf, zf = Hf(), Ln = ra, kn = et, qf = Wf("%Math.floor%"), Gf = function(e, r) {
3039
- if (typeof e != "function")
3040
- throw new kn("`fn` is not a function");
3041
- if (typeof r != "number" || r < 0 || r > 4294967295 || qf(r) !== r)
3042
- throw new kn("`length` must be a positive 32-bit integer");
3043
- var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
3044
- if ("length" in e && Ln) {
3045
- var i = Ln(e, "length");
3046
- i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
3047
- }
3048
- return (o || a || !n) && (zf ? Un(
3049
- /** @type {Parameters<define>[0]} */
3050
- e,
3051
- "length",
3052
- r,
3053
- !0,
3054
- !0
3055
- ) : Un(
3056
- /** @type {Parameters<define>[0]} */
3057
- e,
3058
- "length",
3059
- r
3060
- )), e;
3061
- };
3062
- (function(t) {
3063
- var e = Ur, r = De, n = Gf, o = et, a = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || e.call(i, a), c = Lr(), u = r("%Math.max%");
3064
- t.exports = function(m) {
3065
- if (typeof m != "function")
3066
- throw new o("a function is required");
3067
- var b = s(e, i, arguments);
3068
- return n(
3069
- b,
3070
- 1 + u(0, m.length - (arguments.length - 1)),
3071
- !0
3072
- );
3073
- };
3074
- var f = function() {
3075
- return s(e, a, arguments);
3076
- };
3077
- c ? c(t.exports, "apply", { value: f }) : t.exports.apply = f;
3078
- })(ta);
3079
- var Kf = ta.exports, oa = De, aa = Kf, Jf = aa(oa("String.prototype.indexOf")), Vf = function(e, r) {
3080
- var n = oa(e, !!r);
3081
- return typeof n == "function" && Jf(e, ".prototype.") > -1 ? aa(n) : n;
3082
- }, kr = typeof Map == "function" && Map.prototype, Kt = Object.getOwnPropertyDescriptor && kr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ot = kr && Kt && typeof Kt.get == "function" ? Kt.get : null, Hn = kr && Map.prototype.forEach, Hr = typeof Set == "function" && Set.prototype, Jt = Object.getOwnPropertyDescriptor && Hr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, At = Hr && Jt && typeof Jt.get == "function" ? Jt.get : null, Wn = Hr && Set.prototype.forEach, Qf = typeof WeakMap == "function" && WeakMap.prototype, Ge = Qf ? WeakMap.prototype.has : null, Xf = typeof WeakSet == "function" && WeakSet.prototype, Ke = Xf ? WeakSet.prototype.has : null, Zf = typeof WeakRef == "function" && WeakRef.prototype, zn = Zf ? WeakRef.prototype.deref : null, Yf = Boolean.prototype.valueOf, ep = Object.prototype.toString, tp = Function.prototype.toString, rp = String.prototype.match, Wr = String.prototype.slice, ie = String.prototype.replace, np = String.prototype.toUpperCase, qn = String.prototype.toLowerCase, ia = RegExp.prototype.test, Gn = Array.prototype.concat, Z = Array.prototype.join, op = Array.prototype.slice, Kn = Math.floor, yr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Vt = Object.getOwnPropertySymbols, hr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Re = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Re || !0) ? Symbol.toStringTag : null, sa = Object.prototype.propertyIsEnumerable, Jn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
3083
- return t.__proto__;
3084
- } : null);
3085
- function Vn(t, e) {
3086
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || ia.call(/e/, e))
3087
- return e;
3088
- var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
3089
- if (typeof t == "number") {
3090
- var n = t < 0 ? -Kn(-t) : Kn(t);
3091
- if (n !== t) {
3092
- var o = String(n), a = Wr.call(e, o.length + 1);
3093
- return ie.call(o, r, "$&_") + "." + ie.call(ie.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
3094
- }
3095
- }
3096
- return ie.call(e, r, "$&_");
3097
- }
3098
- var mr = Io, Qn = mr.custom, Xn = ua(Qn) ? Qn : null, ap = function t(e, r, n, o) {
3099
- var a = r || {};
3100
- if (ae(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
3101
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
3102
- if (ae(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
3103
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
3104
- var i = ae(a, "customInspect") ? a.customInspect : !0;
3105
- if (typeof i != "boolean" && i !== "symbol")
3106
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
3107
- if (ae(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
3108
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
3109
- if (ae(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
3110
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
3111
- var s = a.numericSeparator;
3112
- if (typeof e > "u")
3113
- return "undefined";
3114
- if (e === null)
3115
- return "null";
3116
- if (typeof e == "boolean")
3117
- return e ? "true" : "false";
3118
- if (typeof e == "string")
3119
- return fa(e, a);
3120
- if (typeof e == "number") {
3121
- if (e === 0)
3122
- return 1 / 0 / e > 0 ? "0" : "-0";
3123
- var c = String(e);
3124
- return s ? Vn(e, c) : c;
3125
- }
3126
- if (typeof e == "bigint") {
3127
- var u = String(e) + "n";
3128
- return s ? Vn(e, u) : u;
3129
- }
3130
- var f = typeof a.depth > "u" ? 5 : a.depth;
3131
- if (typeof n > "u" && (n = 0), n >= f && f > 0 && typeof e == "object")
3132
- return gr(e) ? "[Array]" : "[Object]";
3133
- var l = Op(a, n);
3134
- if (typeof o > "u")
3135
- o = [];
3136
- else if (la(o, e) >= 0)
3137
- return "[Circular]";
3138
- function m(k, K, J) {
3139
- if (K && (o = op.call(o), o.push(K)), J) {
3140
- var ue = {
3141
- depth: a.depth
3142
- };
3143
- return ae(a, "quoteStyle") && (ue.quoteStyle = a.quoteStyle), t(k, ue, n + 1, o);
3144
- }
3145
- return t(k, a, n + 1, o);
3146
- }
3147
- if (typeof e == "function" && !Zn(e)) {
3148
- var b = yp(e), g = rt(e, m);
3149
- return "[Function" + (b ? ": " + b : " (anonymous)") + "]" + (g.length > 0 ? " { " + Z.call(g, ", ") + " }" : "");
3150
- }
3151
- if (ua(e)) {
3152
- var d = Re ? ie.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : hr.call(e);
3153
- return typeof e == "object" && !Re ? ke(d) : d;
3154
- }
3155
- if (wp(e)) {
3156
- for (var v = "<" + qn.call(String(e.nodeName)), w = e.attributes || [], y = 0; y < w.length; y++)
3157
- v += " " + w[y].name + "=" + ca(ip(w[y].value), "double", a);
3158
- return v += ">", e.childNodes && e.childNodes.length && (v += "..."), v += "</" + qn.call(String(e.nodeName)) + ">", v;
3159
- }
3160
- if (gr(e)) {
3161
- if (e.length === 0)
3162
- return "[]";
3163
- var h = rt(e, m);
3164
- return l && !Ep(h) ? "[" + vr(h, l) + "]" : "[ " + Z.call(h, ", ") + " ]";
3165
- }
3166
- if (cp(e)) {
3167
- var S = rt(e, m);
3168
- return !("cause" in Error.prototype) && "cause" in e && !sa.call(e, "cause") ? "{ [" + String(e) + "] " + Z.call(Gn.call("[cause]: " + m(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Z.call(S, ", ") + " }";
3169
- }
3170
- if (typeof e == "object" && i) {
3171
- if (Xn && typeof e[Xn] == "function" && mr)
3172
- return mr(e, { depth: f - n });
3173
- if (i !== "symbol" && typeof e.inspect == "function")
3174
- return e.inspect();
3175
- }
3176
- if (hp(e)) {
3177
- var O = [];
3178
- return Hn && Hn.call(e, function(k, K) {
3179
- O.push(m(K, e, !0) + " => " + m(k, e));
3180
- }), Yn("Map", Ot.call(e), O, l);
3181
- }
3182
- if (vp(e)) {
3183
- var E = [];
3184
- return Wn && Wn.call(e, function(k) {
3185
- E.push(m(k, e));
3186
- }), Yn("Set", At.call(e), E, l);
3187
- }
3188
- if (mp(e))
3189
- return Qt("WeakMap");
3190
- if (bp(e))
3191
- return Qt("WeakSet");
3192
- if (gp(e))
3193
- return Qt("WeakRef");
3194
- if (lp(e))
3195
- return ke(m(Number(e)));
3196
- if (pp(e))
3197
- return ke(m(yr.call(e)));
3198
- if (fp(e))
3199
- return ke(Yf.call(e));
3200
- if (up(e))
3201
- return ke(m(String(e)));
3202
- if (typeof window < "u" && e === window)
3203
- return "{ [object Window] }";
3204
- if (e === Ae)
3205
- return "{ [object globalThis] }";
3206
- if (!sp(e) && !Zn(e)) {
3207
- var _ = rt(e, m), T = Jn ? Jn(e) === Object.prototype : e instanceof Object || e.constructor === Object, P = e instanceof Object ? "" : "null prototype", M = !T && D && Object(e) === e && D in e ? Wr.call(ce(e), 8, -1) : P ? "Object" : "", L = T || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", H = L + (M || P ? "[" + Z.call(Gn.call([], M || [], P || []), ": ") + "] " : "");
3208
- return _.length === 0 ? H + "{}" : l ? H + "{" + vr(_, l) + "}" : H + "{ " + Z.call(_, ", ") + " }";
3209
- }
3210
- return String(e);
3211
- };
3212
- function ca(t, e, r) {
3213
- var n = (r.quoteStyle || e) === "double" ? '"' : "'";
3214
- return n + t + n;
3215
- }
3216
- function ip(t) {
3217
- return ie.call(String(t), /"/g, "&quot;");
3218
- }
3219
- function gr(t) {
3220
- return ce(t) === "[object Array]" && (!D || !(typeof t == "object" && D in t));
3221
- }
3222
- function sp(t) {
3223
- return ce(t) === "[object Date]" && (!D || !(typeof t == "object" && D in t));
3224
- }
3225
- function Zn(t) {
3226
- return ce(t) === "[object RegExp]" && (!D || !(typeof t == "object" && D in t));
3227
- }
3228
- function cp(t) {
3229
- return ce(t) === "[object Error]" && (!D || !(typeof t == "object" && D in t));
3230
- }
3231
- function up(t) {
3232
- return ce(t) === "[object String]" && (!D || !(typeof t == "object" && D in t));
3233
- }
3234
- function lp(t) {
3235
- return ce(t) === "[object Number]" && (!D || !(typeof t == "object" && D in t));
3236
- }
3237
- function fp(t) {
3238
- return ce(t) === "[object Boolean]" && (!D || !(typeof t == "object" && D in t));
3239
- }
3240
- function ua(t) {
3241
- if (Re)
3242
- return t && typeof t == "object" && t instanceof Symbol;
3243
- if (typeof t == "symbol")
3244
- return !0;
3245
- if (!t || typeof t != "object" || !hr)
3246
- return !1;
3247
- try {
3248
- return hr.call(t), !0;
3249
- } catch {
3250
- }
3251
- return !1;
3252
- }
3253
- function pp(t) {
3254
- if (!t || typeof t != "object" || !yr)
3255
- return !1;
3256
- try {
3257
- return yr.call(t), !0;
3258
- } catch {
3259
- }
3260
- return !1;
3261
- }
3262
- var dp = Object.prototype.hasOwnProperty || function(t) {
3263
- return t in this;
3264
- };
3265
- function ae(t, e) {
3266
- return dp.call(t, e);
3267
- }
3268
- function ce(t) {
3269
- return ep.call(t);
3270
- }
3271
- function yp(t) {
3272
- if (t.name)
3273
- return t.name;
3274
- var e = rp.call(tp.call(t), /^function\s*([\w$]+)/);
3275
- return e ? e[1] : null;
3276
- }
3277
- function la(t, e) {
3278
- if (t.indexOf)
3279
- return t.indexOf(e);
3280
- for (var r = 0, n = t.length; r < n; r++)
3281
- if (t[r] === e)
3282
- return r;
3283
- return -1;
3284
- }
3285
- function hp(t) {
3286
- if (!Ot || !t || typeof t != "object")
3287
- return !1;
3288
- try {
3289
- Ot.call(t);
3290
- try {
3291
- At.call(t);
3292
- } catch {
3293
- return !0;
3294
- }
3295
- return t instanceof Map;
3296
- } catch {
3297
- }
3298
- return !1;
3299
- }
3300
- function mp(t) {
3301
- if (!Ge || !t || typeof t != "object")
3302
- return !1;
3303
- try {
3304
- Ge.call(t, Ge);
3305
- try {
3306
- Ke.call(t, Ke);
3307
- } catch {
3308
- return !0;
3309
- }
3310
- return t instanceof WeakMap;
3311
- } catch {
3312
- }
3313
- return !1;
3314
- }
3315
- function gp(t) {
3316
- if (!zn || !t || typeof t != "object")
3317
- return !1;
3318
- try {
3319
- return zn.call(t), !0;
3320
- } catch {
3321
- }
3322
- return !1;
3323
- }
3324
- function vp(t) {
3325
- if (!At || !t || typeof t != "object")
3326
- return !1;
3327
- try {
3328
- At.call(t);
3329
- try {
3330
- Ot.call(t);
3331
- } catch {
3332
- return !0;
3333
- }
3334
- return t instanceof Set;
3335
- } catch {
3336
- }
3337
- return !1;
3338
- }
3339
- function bp(t) {
3340
- if (!Ke || !t || typeof t != "object")
3341
- return !1;
3342
- try {
3343
- Ke.call(t, Ke);
3344
- try {
3345
- Ge.call(t, Ge);
3346
- } catch {
3347
- return !0;
3348
- }
3349
- return t instanceof WeakSet;
3350
- } catch {
3351
- }
3352
- return !1;
3353
- }
3354
- function wp(t) {
3355
- return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
3356
- }
3357
- function fa(t, e) {
3358
- if (t.length > e.maxStringLength) {
3359
- var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
3360
- return fa(Wr.call(t, 0, e.maxStringLength), e) + n;
3361
- }
3362
- var o = ie.call(ie.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Sp);
3363
- return ca(o, "single", e);
3364
- }
3365
- function Sp(t) {
3366
- var e = t.charCodeAt(0), r = {
3367
- 8: "b",
3368
- 9: "t",
3369
- 10: "n",
3370
- 12: "f",
3371
- 13: "r"
3372
- }[e];
3373
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + np.call(e.toString(16));
3374
- }
3375
- function ke(t) {
3376
- return "Object(" + t + ")";
3377
- }
3378
- function Qt(t) {
3379
- return t + " { ? }";
3380
- }
3381
- function Yn(t, e, r, n) {
3382
- var o = n ? vr(r, n) : Z.call(r, ", ");
3383
- return t + " (" + e + ") {" + o + "}";
3384
- }
3385
- function Ep(t) {
3386
- for (var e = 0; e < t.length; e++)
3387
- if (la(t[e], `
3388
- `) >= 0)
3389
- return !1;
3390
- return !0;
3391
- }
3392
- function Op(t, e) {
3393
- var r;
3394
- if (t.indent === " ")
3395
- r = " ";
3396
- else if (typeof t.indent == "number" && t.indent > 0)
3397
- r = Z.call(Array(t.indent + 1), " ");
3398
- else
3399
- return null;
3400
- return {
3401
- base: r,
3402
- prev: Z.call(Array(e + 1), r)
3403
- };
3404
- }
3405
- function vr(t, e) {
3406
- if (t.length === 0)
3407
- return "";
3408
- var r = `
3409
- ` + e.prev + e.base;
3410
- return r + Z.call(t, "," + r) + `
3411
- ` + e.prev;
3412
- }
3413
- function rt(t, e) {
3414
- var r = gr(t), n = [];
3415
- if (r) {
3416
- n.length = t.length;
3417
- for (var o = 0; o < t.length; o++)
3418
- n[o] = ae(t, o) ? e(t[o], t) : "";
3419
- }
3420
- var a = typeof Vt == "function" ? Vt(t) : [], i;
3421
- if (Re) {
3422
- i = {};
3423
- for (var s = 0; s < a.length; s++)
3424
- i["$" + a[s]] = a[s];
3425
- }
3426
- for (var c in t)
3427
- ae(t, c) && (r && String(Number(c)) === c && c < t.length || Re && i["$" + c] instanceof Symbol || (ia.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
3428
- if (typeof Vt == "function")
3429
- for (var u = 0; u < a.length; u++)
3430
- sa.call(t, a[u]) && n.push("[" + e(a[u]) + "]: " + e(t[a[u]], t));
3431
- return n;
3432
- }
3433
- var pa = De, Me = Vf, Ap = ap, _p = et, nt = pa("%WeakMap%", !0), ot = pa("%Map%", !0), xp = Me("WeakMap.prototype.get", !0), Tp = Me("WeakMap.prototype.set", !0), Pp = Me("WeakMap.prototype.has", !0), $p = Me("Map.prototype.get", !0), Rp = Me("Map.prototype.set", !0), Ip = Me("Map.prototype.has", !0), zr = function(t, e) {
3434
- for (var r = t, n; (n = r.next) !== null; r = n)
3435
- if (n.key === e)
3436
- return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
3437
- t.next, t.next = n, n;
3438
- }, Cp = function(t, e) {
3439
- var r = zr(t, e);
3440
- return r && r.value;
3441
- }, Fp = function(t, e, r) {
3442
- var n = zr(t, e);
3443
- n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
3444
- {
3445
- // eslint-disable-line no-param-reassign, no-extra-parens
3446
- key: e,
3447
- next: t.next,
3448
- value: r
3449
- };
3450
- }, Np = function(t, e) {
3451
- return !!zr(t, e);
3452
- }, Bp = function() {
3453
- var e, r, n, o = {
3454
- assert: function(a) {
3455
- if (!o.has(a))
3456
- throw new _p("Side channel does not contain " + Ap(a));
3457
- },
3458
- get: function(a) {
3459
- if (nt && a && (typeof a == "object" || typeof a == "function")) {
3460
- if (e)
3461
- return xp(e, a);
3462
- } else if (ot) {
3463
- if (r)
3464
- return $p(r, a);
3465
- } else if (n)
3466
- return Cp(n, a);
3467
- },
3468
- has: function(a) {
3469
- if (nt && a && (typeof a == "object" || typeof a == "function")) {
3470
- if (e)
3471
- return Pp(e, a);
3472
- } else if (ot) {
3473
- if (r)
3474
- return Ip(r, a);
3475
- } else if (n)
3476
- return Np(n, a);
3477
- return !1;
3478
- },
3479
- set: function(a, i) {
3480
- nt && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new nt()), Tp(e, a, i)) : ot ? (r || (r = new ot()), Rp(r, a, i)) : (n || (n = { key: {}, next: null }), Fp(n, a, i));
3481
- }
3482
- };
3483
- return o;
3484
- }, jp = String.prototype.replace, Dp = /%20/g, Xt = {
3485
- RFC1738: "RFC1738",
3486
- RFC3986: "RFC3986"
3487
- }, qr = {
3488
- default: Xt.RFC3986,
3489
- formatters: {
3490
- RFC1738: function(t) {
3491
- return jp.call(t, Dp, "+");
3492
- },
3493
- RFC3986: function(t) {
3494
- return String(t);
3495
- }
3496
- },
3497
- RFC1738: Xt.RFC1738,
3498
- RFC3986: Xt.RFC3986
3499
- }, Mp = qr, Zt = Object.prototype.hasOwnProperty, fe = Array.isArray, V = function() {
3500
- for (var t = [], e = 0; e < 256; ++e)
3501
- t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
3502
- return t;
3503
- }(), Up = function(e) {
3504
- for (; e.length > 1; ) {
3505
- var r = e.pop(), n = r.obj[r.prop];
3506
- if (fe(n)) {
3507
- for (var o = [], a = 0; a < n.length; ++a)
3508
- typeof n[a] < "u" && o.push(n[a]);
3509
- r.obj[r.prop] = o;
3510
- }
3511
- }
3512
- }, da = function(e, r) {
3513
- for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
3514
- typeof e[o] < "u" && (n[o] = e[o]);
3515
- return n;
3516
- }, Lp = function t(e, r, n) {
3517
- if (!r)
3518
- return e;
3519
- if (typeof r != "object") {
3520
- if (fe(e))
3521
- e.push(r);
3522
- else if (e && typeof e == "object")
3523
- (n && (n.plainObjects || n.allowPrototypes) || !Zt.call(Object.prototype, r)) && (e[r] = !0);
3524
- else
3525
- return [e, r];
3526
- return e;
3527
- }
3528
- if (!e || typeof e != "object")
3529
- return [e].concat(r);
3530
- var o = e;
3531
- return fe(e) && !fe(r) && (o = da(e, n)), fe(e) && fe(r) ? (r.forEach(function(a, i) {
3532
- if (Zt.call(e, i)) {
3533
- var s = e[i];
3534
- s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, n) : e.push(a);
3535
- } else
3536
- e[i] = a;
3537
- }), e) : Object.keys(r).reduce(function(a, i) {
3538
- var s = r[i];
3539
- return Zt.call(a, i) ? a[i] = t(a[i], s, n) : a[i] = s, a;
3540
- }, o);
3541
- }, kp = function(e, r) {
3542
- return Object.keys(r).reduce(function(n, o) {
3543
- return n[o] = r[o], n;
3544
- }, e);
3545
- }, Hp = function(t, e, r) {
3546
- var n = t.replace(/\+/g, " ");
3547
- if (r === "iso-8859-1")
3548
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
3549
- try {
3550
- return decodeURIComponent(n);
3551
- } catch {
3552
- return n;
3553
- }
3554
- }, Yt = 1024, Wp = function(e, r, n, o, a) {
3555
- if (e.length === 0)
3556
- return e;
3557
- var i = e;
3558
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
3559
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(b) {
3560
- return "%26%23" + parseInt(b.slice(2), 16) + "%3B";
3561
- });
3562
- for (var s = "", c = 0; c < i.length; c += Yt) {
3563
- for (var u = i.length >= Yt ? i.slice(c, c + Yt) : i, f = [], l = 0; l < u.length; ++l) {
3564
- var m = u.charCodeAt(l);
3565
- if (m === 45 || m === 46 || m === 95 || m === 126 || m >= 48 && m <= 57 || m >= 65 && m <= 90 || m >= 97 && m <= 122 || a === Mp.RFC1738 && (m === 40 || m === 41)) {
3566
- f[f.length] = u.charAt(l);
3567
- continue;
3568
- }
3569
- if (m < 128) {
3570
- f[f.length] = V[m];
3571
- continue;
3572
- }
3573
- if (m < 2048) {
3574
- f[f.length] = V[192 | m >> 6] + V[128 | m & 63];
3575
- continue;
3576
- }
3577
- if (m < 55296 || m >= 57344) {
3578
- f[f.length] = V[224 | m >> 12] + V[128 | m >> 6 & 63] + V[128 | m & 63];
3579
- continue;
3580
- }
3581
- l += 1, m = 65536 + ((m & 1023) << 10 | u.charCodeAt(l) & 1023), f[f.length] = V[240 | m >> 18] + V[128 | m >> 12 & 63] + V[128 | m >> 6 & 63] + V[128 | m & 63];
3582
- }
3583
- s += f.join("");
3584
- }
3585
- return s;
3586
- }, zp = function(e) {
3587
- for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
3588
- for (var a = r[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
3589
- var u = s[c], f = i[u];
3590
- typeof f == "object" && f !== null && n.indexOf(f) === -1 && (r.push({ obj: i, prop: u }), n.push(f));
3591
- }
3592
- return Up(r), e;
3593
- }, qp = function(e) {
3594
- return Object.prototype.toString.call(e) === "[object RegExp]";
3595
- }, Gp = function(e) {
3596
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
3597
- }, Kp = function(e, r) {
3598
- return [].concat(e, r);
3599
- }, Jp = function(e, r) {
3600
- if (fe(e)) {
3601
- for (var n = [], o = 0; o < e.length; o += 1)
3602
- n.push(r(e[o]));
3603
- return n;
3604
- }
3605
- return r(e);
3606
- }, ya = {
3607
- arrayToObject: da,
3608
- assign: kp,
3609
- combine: Kp,
3610
- compact: zp,
3611
- decode: Hp,
3612
- encode: Wp,
3613
- isBuffer: Gp,
3614
- isRegExp: qp,
3615
- maybeMap: Jp,
3616
- merge: Lp
3617
- }, ha = Bp, dt = ya, Je = qr, Vp = Object.prototype.hasOwnProperty, ma = {
3618
- brackets: function(e) {
3619
- return e + "[]";
3620
- },
3621
- comma: "comma",
3622
- indices: function(e, r) {
3623
- return e + "[" + r + "]";
3624
- },
3625
- repeat: function(e) {
3626
- return e;
3627
- }
3628
- }, X = Array.isArray, Qp = Array.prototype.push, ga = function(t, e) {
3629
- Qp.apply(t, X(e) ? e : [e]);
3630
- }, Xp = Date.prototype.toISOString, eo = Je.default, N = {
3631
- addQueryPrefix: !1,
3632
- allowDots: !1,
3633
- allowEmptyArrays: !1,
3634
- arrayFormat: "indices",
3635
- charset: "utf-8",
3636
- charsetSentinel: !1,
3637
- delimiter: "&",
3638
- encode: !0,
3639
- encodeDotInKeys: !1,
3640
- encoder: dt.encode,
3641
- encodeValuesOnly: !1,
3642
- format: eo,
3643
- formatter: Je.formatters[eo],
3644
- // deprecated
3645
- indices: !1,
3646
- serializeDate: function(e) {
3647
- return Xp.call(e);
3648
- },
3649
- skipNulls: !1,
3650
- strictNullHandling: !1
3651
- }, Zp = function(e) {
3652
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
3653
- }, er = {}, Yp = function t(e, r, n, o, a, i, s, c, u, f, l, m, b, g, d, v, w, y) {
3654
- for (var h = e, S = y, O = 0, E = !1; (S = S.get(er)) !== void 0 && !E; ) {
3655
- var _ = S.get(e);
3656
- if (O += 1, typeof _ < "u") {
3657
- if (_ === O)
3658
- throw new RangeError("Cyclic object value");
3659
- E = !0;
3660
- }
3661
- typeof S.get(er) > "u" && (O = 0);
3662
- }
3663
- if (typeof f == "function" ? h = f(r, h) : h instanceof Date ? h = b(h) : n === "comma" && X(h) && (h = dt.maybeMap(h, function(Nt) {
3664
- return Nt instanceof Date ? b(Nt) : Nt;
3665
- })), h === null) {
3666
- if (i)
3667
- return u && !v ? u(r, N.encoder, w, "key", g) : r;
3668
- h = "";
3669
- }
3670
- if (Zp(h) || dt.isBuffer(h)) {
3671
- if (u) {
3672
- var T = v ? r : u(r, N.encoder, w, "key", g);
3673
- return [d(T) + "=" + d(u(h, N.encoder, w, "value", g))];
3674
- }
3675
- return [d(r) + "=" + d(String(h))];
3676
- }
3677
- var P = [];
3678
- if (typeof h > "u")
3679
- return P;
3680
- var M;
3681
- if (n === "comma" && X(h))
3682
- v && u && (h = dt.maybeMap(h, u)), M = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
3683
- else if (X(f))
3684
- M = f;
3685
- else {
3686
- var L = Object.keys(h);
3687
- M = l ? L.sort(l) : L;
3688
- }
3689
- var H = c ? r.replace(/\./g, "%2E") : r, k = o && X(h) && h.length === 1 ? H + "[]" : H;
3690
- if (a && X(h) && h.length === 0)
3691
- return k + "[]";
3692
- for (var K = 0; K < M.length; ++K) {
3693
- var J = M[K], ue = typeof J == "object" && typeof J.value < "u" ? J.value : h[J];
3694
- if (!(s && ue === null)) {
3695
- var ge = m && c ? J.replace(/\./g, "%2E") : J, Ft = X(h) ? typeof n == "function" ? n(k, ge) : k : k + (m ? "." + ge : "[" + ge + "]");
3696
- y.set(e, O);
3697
- var Kr = ha();
3698
- Kr.set(er, y), ga(P, t(
3699
- ue,
3700
- Ft,
3701
- n,
3702
- o,
3703
- a,
3704
- i,
3705
- s,
3706
- c,
3707
- n === "comma" && v && X(h) ? null : u,
3708
- f,
3709
- l,
3710
- m,
3711
- b,
3712
- g,
3713
- d,
3714
- v,
3715
- w,
3716
- Kr
3717
- ));
3718
- }
3719
- }
3720
- return P;
3721
- }, ed = function(e) {
3722
- if (!e)
3723
- return N;
3724
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3725
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3726
- if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
3727
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3728
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
3729
- throw new TypeError("Encoder has to be a function.");
3730
- var r = e.charset || N.charset;
3731
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
3732
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3733
- var n = Je.default;
3734
- if (typeof e.format < "u") {
3735
- if (!Vp.call(Je.formatters, e.format))
3736
- throw new TypeError("Unknown format option provided.");
3737
- n = e.format;
3738
- }
3739
- var o = Je.formatters[n], a = N.filter;
3740
- (typeof e.filter == "function" || X(e.filter)) && (a = e.filter);
3741
- var i;
3742
- if (e.arrayFormat in ma ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = N.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
3743
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3744
- var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : N.allowDots : !!e.allowDots;
3745
- return {
3746
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : N.addQueryPrefix,
3747
- allowDots: s,
3748
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : N.allowEmptyArrays,
3749
- arrayFormat: i,
3750
- charset: r,
3751
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : N.charsetSentinel,
3752
- commaRoundTrip: e.commaRoundTrip,
3753
- delimiter: typeof e.delimiter > "u" ? N.delimiter : e.delimiter,
3754
- encode: typeof e.encode == "boolean" ? e.encode : N.encode,
3755
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : N.encodeDotInKeys,
3756
- encoder: typeof e.encoder == "function" ? e.encoder : N.encoder,
3757
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : N.encodeValuesOnly,
3758
- filter: a,
3759
- format: n,
3760
- formatter: o,
3761
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : N.serializeDate,
3762
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : N.skipNulls,
3763
- sort: typeof e.sort == "function" ? e.sort : null,
3764
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : N.strictNullHandling
3765
- };
3766
- }, td = function(t, e) {
3767
- var r = t, n = ed(e), o, a;
3768
- typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : X(n.filter) && (a = n.filter, o = a);
3769
- var i = [];
3770
- if (typeof r != "object" || r === null)
3771
- return "";
3772
- var s = ma[n.arrayFormat], c = s === "comma" && n.commaRoundTrip;
3773
- o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
3774
- for (var u = ha(), f = 0; f < o.length; ++f) {
3775
- var l = o[f];
3776
- n.skipNulls && r[l] === null || ga(i, Yp(
3777
- r[l],
3778
- l,
3779
- s,
3780
- c,
3781
- n.allowEmptyArrays,
3782
- n.strictNullHandling,
3783
- n.skipNulls,
3784
- n.encodeDotInKeys,
3785
- n.encode ? n.encoder : null,
3786
- n.filter,
3787
- n.sort,
3788
- n.allowDots,
3789
- n.serializeDate,
3790
- n.format,
3791
- n.formatter,
3792
- n.encodeValuesOnly,
3793
- n.charset,
3794
- u
3795
- ));
3796
- }
3797
- var m = i.join(n.delimiter), b = n.addQueryPrefix === !0 ? "?" : "";
3798
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? b += "utf8=%26%2310003%3B&" : b += "utf8=%E2%9C%93&"), m.length > 0 ? b + m : "";
3799
- }, Ie = ya, br = Object.prototype.hasOwnProperty, rd = Array.isArray, I = {
3800
- allowDots: !1,
3801
- allowEmptyArrays: !1,
3802
- allowPrototypes: !1,
3803
- allowSparse: !1,
3804
- arrayLimit: 20,
3805
- charset: "utf-8",
3806
- charsetSentinel: !1,
3807
- comma: !1,
3808
- decodeDotInKeys: !1,
3809
- decoder: Ie.decode,
3810
- delimiter: "&",
3811
- depth: 5,
3812
- duplicates: "combine",
3813
- ignoreQueryPrefix: !1,
3814
- interpretNumericEntities: !1,
3815
- parameterLimit: 1e3,
3816
- parseArrays: !0,
3817
- plainObjects: !1,
3818
- strictNullHandling: !1
3819
- }, nd = function(t) {
3820
- return t.replace(/&#(\d+);/g, function(e, r) {
3821
- return String.fromCharCode(parseInt(r, 10));
3822
- });
3823
- }, va = function(t, e) {
3824
- return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
3825
- }, od = "utf8=%26%2310003%3B", ad = "utf8=%E2%9C%93", id = function(e, r) {
3826
- var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(r.delimiter, a), s = -1, c, u = r.charset;
3827
- if (r.charsetSentinel)
3828
- for (c = 0; c < i.length; ++c)
3829
- i[c].indexOf("utf8=") === 0 && (i[c] === ad ? u = "utf-8" : i[c] === od && (u = "iso-8859-1"), s = c, c = i.length);
3830
- for (c = 0; c < i.length; ++c)
3831
- if (c !== s) {
3832
- var f = i[c], l = f.indexOf("]="), m = l === -1 ? f.indexOf("=") : l + 1, b, g;
3833
- m === -1 ? (b = r.decoder(f, I.decoder, u, "key"), g = r.strictNullHandling ? null : "") : (b = r.decoder(f.slice(0, m), I.decoder, u, "key"), g = Ie.maybeMap(
3834
- va(f.slice(m + 1), r),
3835
- function(v) {
3836
- return r.decoder(v, I.decoder, u, "value");
3837
- }
3838
- )), g && r.interpretNumericEntities && u === "iso-8859-1" && (g = nd(g)), f.indexOf("[]=") > -1 && (g = rd(g) ? [g] : g);
3839
- var d = br.call(n, b);
3840
- d && r.duplicates === "combine" ? n[b] = Ie.combine(n[b], g) : (!d || r.duplicates === "last") && (n[b] = g);
3841
- }
3842
- return n;
3843
- }, sd = function(t, e, r, n) {
3844
- for (var o = n ? e : va(e, r), a = t.length - 1; a >= 0; --a) {
3845
- var i, s = t[a];
3846
- if (s === "[]" && r.parseArrays)
3847
- i = r.allowEmptyArrays && o === "" ? [] : [].concat(o);
3848
- else {
3849
- i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3850
- var c = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, u = r.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, f = parseInt(u, 10);
3851
- !r.parseArrays && u === "" ? i = { 0: o } : !isNaN(f) && s !== u && String(f) === u && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (i = [], i[f] = o) : u !== "__proto__" && (i[u] = o);
3852
- }
3853
- o = i;
3854
- }
3855
- return o;
3856
- }, cd = function(e, r, n, o) {
3857
- if (e) {
3858
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), u = c ? a.slice(0, c.index) : a, f = [];
3859
- if (u) {
3860
- if (!n.plainObjects && br.call(Object.prototype, u) && !n.allowPrototypes)
3861
- return;
3862
- f.push(u);
3863
- }
3864
- for (var l = 0; n.depth > 0 && (c = s.exec(a)) !== null && l < n.depth; ) {
3865
- if (l += 1, !n.plainObjects && br.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
3866
- return;
3867
- f.push(c[1]);
3868
- }
3869
- return c && f.push("[" + a.slice(c.index) + "]"), sd(f, r, n, o);
3870
- }
3871
- }, ud = function(e) {
3872
- if (!e)
3873
- return I;
3874
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3875
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3876
- if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
3877
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3878
- if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
3879
- throw new TypeError("Decoder has to be a function.");
3880
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
3881
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3882
- var r = typeof e.charset > "u" ? I.charset : e.charset, n = typeof e.duplicates > "u" ? I.duplicates : e.duplicates;
3883
- if (n !== "combine" && n !== "first" && n !== "last")
3884
- throw new TypeError("The duplicates option must be either combine, first, or last");
3885
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : I.allowDots : !!e.allowDots;
3886
- return {
3887
- allowDots: o,
3888
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : I.allowEmptyArrays,
3889
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : I.allowPrototypes,
3890
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : I.allowSparse,
3891
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : I.arrayLimit,
3892
- charset: r,
3893
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : I.charsetSentinel,
3894
- comma: typeof e.comma == "boolean" ? e.comma : I.comma,
3895
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : I.decodeDotInKeys,
3896
- decoder: typeof e.decoder == "function" ? e.decoder : I.decoder,
3897
- delimiter: typeof e.delimiter == "string" || Ie.isRegExp(e.delimiter) ? e.delimiter : I.delimiter,
3898
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3899
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : I.depth,
3900
- duplicates: n,
3901
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
3902
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : I.interpretNumericEntities,
3903
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : I.parameterLimit,
3904
- parseArrays: e.parseArrays !== !1,
3905
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : I.plainObjects,
3906
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
3907
- };
3908
- }, ld = function(t, e) {
3909
- var r = ud(e);
3910
- if (t === "" || t === null || typeof t > "u")
3911
- return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3912
- for (var n = typeof t == "string" ? id(t, r) : t, o = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
3913
- var s = a[i], c = cd(s, n[s], r, typeof t == "string");
3914
- o = Ie.merge(o, c, r);
3915
- }
3916
- return r.allowSparse === !0 ? o : Ie.compact(o);
3917
- }, fd = td, pd = ld, dd = qr, yd = {
3918
- formats: dd,
3919
- parse: pd,
3920
- stringify: fd
3921
- };
3922
- const hd = /* @__PURE__ */ Ru(yd);
3923
- function to(t) {
3924
- return Array.isArray(t) ? t : t.replace(/\[/g, ".").replace(/\]/g, "").split(".");
3925
- }
3926
- function md(t, e, r) {
3927
- const n = to(e);
3928
- return to(e).reduce((o, a, i) => i !== n.length - 1 ? o[a] || {} : typeof o[a] < "u" ? o[a] : r, t);
3929
- }
3930
- function gd(t) {
3931
- return Array.isArray(t) ? t : t.replace(/\[/g, ".").replace(/\]/g, "").split(".");
3932
- }
3933
- function vd(t, e, r) {
3934
- const n = gd(e);
3935
- return n.reduce((o, a, i) => (i === n.length - 1 ? o[a] = r : o[a] || (o[a] = {}), o), t), r;
3936
- }
3937
- var bd = Object.defineProperty, wd = (t, e, r) => e in t ? bd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ba = (t, e, r) => (wd(t, typeof e != "symbol" ? e + "" : e, r), r);
3938
- const wa = class Se {
3939
- constructor() {
3940
- ba(this, "_cacheMap", /* @__PURE__ */ new Map());
3941
- }
3942
- getItem(e) {
3943
- return Se.getItem.call(this, e);
3944
- }
3945
- setItem(e, r, n) {
3946
- return Se.setItem.call(this, e, r, n);
3947
- }
3948
- removeItem(e) {
3949
- return Se.removeItem.call(this, e);
3950
- }
3951
- clear() {
3952
- return Se.clear.call(this);
3953
- }
3954
- key(e) {
3955
- return Se.key.call(this, e);
3956
- }
3957
- get length() {
3958
- return this._cacheMap.size;
3959
- }
3960
- static getItem(e) {
3961
- const r = this._cacheMap.get(e);
3962
- if (r && r.expires && r.expires < Date.now()) {
3963
- this._cacheMap.delete(e);
3964
- return;
3965
- }
3966
- return r?.value;
3967
- }
3968
- static setItem(e, r, n) {
3969
- this._cacheMap.set(e, { value: r, expires: n?.expires || 0 });
3970
- }
3971
- static removeItem(e) {
3972
- this._cacheMap.delete(e);
3973
- }
3974
- static clear() {
3975
- this._cacheMap.clear();
3976
- }
3977
- static key(e) {
3978
- return Array.from(this._cacheMap.keys())[e];
3979
- }
3980
- static get length() {
3981
- return this._cacheMap.size;
3982
- }
3983
- };
3984
- ba(wa, "_cacheMap", /* @__PURE__ */ new Map());
3985
- let Sa = wa;
3986
- var Sd = Object.defineProperty, ro = Object.getOwnPropertySymbols, Ed = Object.prototype.hasOwnProperty, Od = Object.prototype.propertyIsEnumerable, wr = (t, e, r) => e in t ? Sd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ad = (t, e) => {
3987
- for (var r in e || (e = {}))
3988
- Ed.call(e, r) && wr(t, r, e[r]);
3989
- if (ro)
3990
- for (var r of ro(e))
3991
- Od.call(e, r) && wr(t, r, e[r]);
3992
- return t;
3993
- }, Sr = (t, e, r) => (wr(t, typeof e != "symbol" ? e + "" : e, r), r), no = (t, e, r) => new Promise((n, o) => {
3994
- var a = (c) => {
3995
- try {
3996
- s(r.next(c));
3997
- } catch (u) {
3998
- o(u);
3999
- }
4000
- }, i = (c) => {
4001
- try {
4002
- s(r.throw(c));
4003
- } catch (u) {
4004
- o(u);
4005
- }
4006
- }, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
4007
- s((r = r.apply(t, e)).next());
4008
- });
4009
- const Ea = class Er {
4010
- constructor(e, r) {
4011
- Sr(this, "key"), Sr(this, "handle"), this.key = e, this.handle = r;
4012
- }
4013
- get() {
4014
- return no(this, null, function* () {
4015
- let e = Er.get({ key: this.key });
4016
- if (!e && this.handle) {
4017
- const r = yield Promise.resolve(this.handle());
4018
- e = r.token, yield this.set(e, { expires: r.expires });
4019
- }
4020
- return e;
4021
- });
4022
- }
4023
- set(e, r) {
4024
- return no(this, null, function* () {
4025
- return Er.set(e, Ad({ key: this.key }, r));
4026
- });
4027
- }
4028
- static get(e) {
4029
- const r = e?.key || "";
4030
- return this.cache.getItem(r) || null;
4031
- }
4032
- static set(e, r) {
4033
- const n = r?.key || "", o = r?.expires;
4034
- e ? this.cache.setItem(n, e, { expires: o }) : this.cache.removeItem(n);
4035
- }
4036
- };
4037
- Sr(Ea, "cache", new Sa());
4038
- let Oa = Ea;
4039
- var Gr = (t, e, r) => {
4040
- if (!e.has(t))
4041
- throw TypeError("Cannot " + r);
4042
- }, W = (t, e, r) => (Gr(t, e, "read from private field"), r ? r.call(t) : e.get(t)), He = (t, e, r) => {
4043
- if (e.has(t))
4044
- throw TypeError("Cannot add the same private member more than once");
4045
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
4046
- }, at = (t, e, r, n) => (Gr(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), tr = (t, e, r) => (Gr(t, e, "access private method"), r), yt, Ee, Q, ht, We, mt;
4047
- class Aa {
4048
- constructor(e) {
4049
- He(this, We), He(this, yt, new Sa()), He(this, Ee, void 0), He(this, Q, void 0), He(this, ht, $u(tr(this, We, mt), 200)), typeof e == "string" ? at(this, Q, { key: e }) : at(this, Q, e);
4050
- }
4051
- get storage() {
4052
- return W(this, Ee) || at(this, Ee, this._getStorage(W(this, Q).key) || {}), W(this, Ee);
4053
- }
4054
- get length() {
4055
- return Object.keys(this.storage).length;
4056
- }
4057
- _getStorage(e) {
4058
- return W(this, Q).handleGetStorage ? W(this, Q).handleGetStorage(e) : W(this, yt).getItem(e) || {};
4059
- }
4060
- _setStorage(e, r) {
4061
- return W(this, Q).handleSetStorage ? W(this, Q).handleSetStorage(e, r) : W(this, yt).setItem(e, r);
4062
- }
4063
- getItem(e, r) {
4064
- const n = md(this.storage, e, r);
4065
- return W(this, ht).call(this), hu(n);
4066
- }
4067
- setItem(e, r, n) {
4068
- if (vd(this.storage, e, r), n?.ensure)
4069
- return tr(this, We, mt).call(this);
4070
- W(this, ht).call(this);
4071
- }
4072
- removeItem(e, r) {
4073
- return this.setItem(e, void 0, r);
4074
- }
4075
- clear() {
4076
- return at(this, Ee, {}), tr(this, We, mt).call(this);
4077
- }
4078
- key(e) {
4079
- return Object.keys(this.storage)[e];
4080
- }
4081
- }
4082
- yt = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakSet(), mt = function() {
4083
- return this._setStorage(W(this, Q).key, this.storage);
4084
- };
4085
- var _d = Object.defineProperty, xd = (t, e, r) => e in t ? _d(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _a = (t, e, r) => (xd(t, typeof e != "symbol" ? e + "" : e, r), r);
4086
- const Td = class C {
4087
- constructor(e = Math.random()) {
4088
- _a(this, "seed", Math.random()), typeof e == "string" && (e ? e = e.split("").reduce((r, n) => r + n.charCodeAt(0), 0) : e = Math.random()), this.seed = e;
4089
- }
4090
- random() {
4091
- return this.seed = (this.seed * 9301 + 49297) % 233280, this.seed / 233280;
4092
- }
4093
- randomNumber(e, r, n = 0) {
4094
- r === void 0 && (r = e, e = 0);
4095
- const o = `${Math.floor(Math.random() * (r - e + 1)) + e}`, a = n > 0 ? "." + this.randomString(n, "0123456789") : "";
4096
- return +`${o}${a}`;
4097
- }
4098
- randomString(e = 16, r = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") {
4099
- let n = "";
4100
- for (let o = e; o > 0; --o)
4101
- n += r[this.randomNumber(r.length - 1)];
4102
- return n;
4103
- }
4104
- randomBoolean() {
4105
- return this.random() > 0.5;
4106
- }
4107
- randomElement(e, r = 0, n = e.length) {
4108
- return e[this.randomNumber(r, n)];
4109
- }
4110
- uuid() {
4111
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
4112
- const r = this.random() * 16 | 0;
4113
- return (e === "x" ? r : r & 3 | 8).toString(16);
4114
- });
4115
- }
4116
- randomColor() {
4117
- return "#" + Math.floor(this.random() * 16777215).toString(16).padEnd(6, "0");
4118
- }
4119
- randomRGBColor() {
4120
- return `rgb(${this.randomNumber(255)},${this.randomNumber(255)},${this.randomNumber(255)})`;
4121
- }
4122
- randomRGBAColor() {
4123
- return `rgba(${this.randomNumber(255)},${this.randomNumber(255)},${this.randomNumber(255)},${this.random()})`;
4124
- }
4125
- static random(e) {
4126
- return typeof e == "string" && (e ? e = e.split("").reduce((r, n) => r + n.charCodeAt(0), 0) : e = Math.random()), C.seed = e ?? (C.seed * 9301 + 49297) % 233280, C.seed / 233280;
4127
- }
4128
- static randomNumber(e, r, n = 0, o = C.random()) {
4129
- return new C(o).randomNumber(e, r, n);
4130
- }
4131
- static randomString(e = 16, r = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = C.random()) {
4132
- return new C(n).randomString(e, r);
4133
- }
4134
- static randomBoolean(e = C.random()) {
4135
- return new C(e).randomBoolean();
4136
- }
4137
- static randomElement(e, r = 0, n = e.length, o = C.random()) {
4138
- return new C(o).randomElement(e, r, n);
4139
- }
4140
- static uuid(e = C.random()) {
4141
- return new C(e).uuid();
4142
- }
4143
- static randomColor(e = C.random()) {
4144
- return new C(e).randomColor();
4145
- }
4146
- static randomRGBColor(e = C.random()) {
4147
- return new C(e).randomRGBColor();
4148
- }
4149
- static randomRGBAColor(e = C.random()) {
4150
- return new C(e).randomRGBAColor();
4151
- }
4152
- };
4153
- _a(Td, "seed", Math.random());
4154
- var Pd = (t, e, r) => {
4155
- if (!e.has(t))
4156
- throw TypeError("Cannot " + r);
4157
- }, U = (t, e, r) => (Pd(t, e, "read from private field"), r ? r.call(t) : e.get(t)), $d = (t, e, r) => {
4158
- if (e.has(t))
4159
- throw TypeError("Cannot add the same private member more than once");
4160
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
4161
- }, j;
4162
- class Rd {
4163
- constructor() {
4164
- $d(this, j, {});
4165
- }
4166
- keys() {
4167
- return Object.keys(U(this, j));
4168
- }
4169
- listeners(e) {
4170
- return U(this, j)[e] || [];
4171
- }
4172
- addEventListener(e, r) {
4173
- U(this, j)[e] || (U(this, j)[e] = []), U(this, j)[e].push(r);
4174
- }
4175
- removeEventListener(e, r) {
4176
- if (!U(this, j)[e] || !U(this, j)[e].length)
4177
- return;
4178
- if (!r) {
4179
- delete U(this, j)[e];
4180
- return;
4181
- }
4182
- const n = U(this, j)[e].indexOf(r);
4183
- n >= 0 && (U(this, j)[e].splice(n, 1), U(this, j)[e].length || delete U(this, j)[e]);
4184
- }
4185
- dispatchEvent(e, ...r) {
4186
- if (!(!U(this, j)[e] || !U(this, j)[e].length))
4187
- for (const n of U(this, j)[e])
4188
- n(...r);
4189
- }
4190
- on(e, r) {
4191
- return this.addEventListener(e, r);
4192
- }
4193
- off(e, r) {
4194
- return this.removeEventListener(e, r);
4195
- }
4196
- once(e, r) {
4197
- const n = (...o) => (this.removeEventListener(e, n), r(...o));
4198
- return this.addEventListener(e, n);
4199
- }
4200
- }
4201
- j = /* @__PURE__ */ new WeakMap();
4202
- var Id = (t, e, r) => new Promise((n, o) => {
4203
- var a = (c) => {
4204
- try {
4205
- s(r.next(c));
4206
- } catch (u) {
4207
- o(u);
4208
- }
4209
- }, i = (c) => {
4210
- try {
4211
- s(r.throw(c));
4212
- } catch (u) {
4213
- o(u);
4214
- }
4215
- }, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
4216
- s((r = r.apply(t, e)).next());
4217
- });
4218
- function Cd(t, e) {
4219
- t.interceptors.request.use(function(r) {
4220
- return Id(this, null, function* () {
4221
- const n = e();
4222
- return n.baseURL && !r.baseURL && (r.baseURL = n.baseURL), r;
4223
- });
4224
- });
4225
- }
4226
- function Fd(t) {
4227
- t.interceptors.request.use(function(e) {
4228
- return e.params && !e.paramsSerializer && (e.paramsSerializer = (r) => r instanceof URLSearchParams ? r.toString() : typeof r == "string" ? r : hd.stringify(r, { arrayFormat: "repeat" })), e;
4229
- }, function(e) {
4230
- return Promise.reject(e);
4231
- });
4232
- }
4233
- function Nd(t) {
4234
- return t instanceof File || Object.prototype.toString.call(t) === "[object File]";
4235
- }
4236
- function Bd(t) {
4237
- return t instanceof Blob;
4238
- }
4239
- function Or(t, e, r) {
4240
- if (Array.isArray(r))
4241
- for (const n of r)
4242
- Or(t, `${e}`, n);
4243
- else if (Nd(r))
4244
- t.append(e, r, r.name);
4245
- else if (Bd(r))
4246
- t.append(e, r);
4247
- else if (r && typeof r == "object")
4248
- for (const n of Object.keys(r))
4249
- Or(t, `${e}[${n}]`, r[n]);
4250
- else
4251
- t.append(e, r);
4252
- }
4253
- function jd(t) {
4254
- const e = new FormData();
4255
- for (const r of Object.keys(t))
4256
- Or(e, r, t[r]);
1
+ import { u as c, a as i, g as a, b as p, e as f, _ as g } from "./chunks/DfHvYfab.mjs";
2
+ import { z as H, d as $, c as J } from "./chunks/DfHvYfab.mjs";
3
+ import { _ as d } from "./chunks/CRrp0zFe.mjs";
4
+ import { _ as h } from "./chunks/BHHE86vT.mjs";
5
+ import { z as R } from "./chunks/BHHE86vT.mjs";
6
+ import { reactive as m, watch as _, onMounted as v, onUnmounted as w, computed as b } from "vue";
7
+ import { ElNotification as y } from "element-plus";
8
+ import { Z as B } from "./chunks/zkyql-F5.mjs";
9
+ const U = function(e) {
4257
10
  return e;
4258
- }
4259
- function Dd(t) {
4260
- t.interceptors.request.use(function(e) {
4261
- return e.formData && !(e.data instanceof FormData) && (e.data = jd(e.data)), e;
4262
- });
4263
- }
4264
- var Md = Object.defineProperty, Ud = (t, e, r) => e in t ? Md(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, it = (t, e, r) => (Ud(t, typeof e != "symbol" ? e + "" : e, r), r);
4265
- class q extends Error {
4266
- constructor(e, r, n, o) {
4267
- super(r), it(this, "code"), it(this, "message"), it(this, "data"), it(this, "config"), this.code = e, this.message = r, this.data = n, this.config = o;
4268
- }
4269
- }
4270
- function Ld(t, e) {
4271
- t.interceptors.response.use(function(r) {
4272
- if (r.request.responseType === "blob" || r.request.responseType === "arraybuffer")
4273
- return r.data;
4274
- const n = e(), { formatCodeKey: o, formatMessageKey: a, formatDataKey: i, checkSuccessCode: s } = n, c = r.data;
4275
- if (o)
4276
- try {
4277
- if (c && !Object.prototype.hasOwnProperty.call(c, o))
4278
- throw new q(500, `服务端未返回 ${o} 字段!`, c, r.config);
4279
- if (s && (Array.isArray(s) ? !s.includes(c[o]) : c[o] !== s)) {
4280
- const u = o && c[o] || 500, f = a && c[a] || "服务错误!", l = i && c[i] || void 0;
4281
- throw new q(u, f, l, r.config);
4282
- }
4283
- } catch (u) {
4284
- throw u instanceof q ? Promise.reject(u) : u instanceof Error ? new q(400, u.message, c, r.config) : typeof u == "string" ? new q(400, u, c, r.config) : new q(400, "服务错误!", c, r.config);
4285
- }
4286
- return i ? c[i] : c;
4287
- }, function(r) {
4288
- throw r instanceof q ? r : r?.response ? new q(r.response.status, r.message, r.response.data, r.response.config) : r instanceof Error ? new q(400, r.message, void 0) : typeof r == "string" ? new q(400, r, void 0) : new q(400, "服务错误!", void 0);
4289
- });
4290
- }
4291
- var kd = (t, e, r) => new Promise((n, o) => {
4292
- var a = (c) => {
4293
- try {
4294
- s(r.next(c));
4295
- } catch (u) {
4296
- o(u);
4297
- }
4298
- }, i = (c) => {
4299
- try {
4300
- s(r.throw(c));
4301
- } catch (u) {
4302
- o(u);
4303
- }
4304
- }, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
4305
- s((r = r.apply(t, e)).next());
4306
- });
4307
- function Hd(t, e) {
4308
- t.interceptors.response.use(function(r) {
4309
- return r;
4310
- }, function(r) {
4311
- return kd(this, null, function* () {
4312
- var n;
4313
- const o = e();
4314
- return r.code && (n = Array.isArray(o?.errorAuthCode) ? o?.errorAuthCode : [o?.errorAuthCode]) != null && n.includes(r.code) && o.errorAuthHandle && o.errorAuthHandle(r), Promise.reject(r);
4315
- });
4316
- });
4317
- }
4318
- function Wd(t) {
4319
- const e = typeof t == "function" ? t : () => t, r = F.create({ withCredentials: !0 });
4320
- return Cd(r, e), Fd(r), Dd(r), Ld(r, e), Hd(r, e), r;
4321
- }
4322
- class xa extends Aa {
4323
- _getStorage(e) {
4324
- if (typeof window > "u")
4325
- return super._getStorage(e);
4326
- const r = window.localStorage.getItem(e);
4327
- return r ? JSON.parse(r) : {};
4328
- }
4329
- _setStorage(e, r) {
4330
- if (typeof window > "u")
4331
- return super._setStorage(e, r);
4332
- window.localStorage.setItem(e, JSON.stringify(r));
4333
- }
4334
- }
4335
- new xa("__zf-default-storage__");
4336
- var zd = Object.defineProperty, qd = (t, e, r) => e in t ? zd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Gd = (t, e, r) => (qd(t, typeof e != "symbol" ? e + "" : e, r), r);
4337
- class Ta extends Oa {
4338
- static get(e) {
4339
- const r = e?.key || "", n = this.storage.getItem(r) || null;
4340
- return n && n.expires && n.expires < Date.now() ? (this.storage.removeItem(r), null) : n?.value;
4341
- }
4342
- static set(e, r) {
4343
- const n = r?.key || "", o = r?.expires;
4344
- return this.storage.setItem(n || "", { value: e, expires: o });
4345
- }
4346
- }
4347
- Gd(Ta, "storage", new xa("__zf-default-token__"));
4348
- new Ta("__zf-default-token__");
4349
- class Pa extends Aa {
4350
- _getStorage(e) {
4351
- if (typeof window > "u")
4352
- return super._getStorage(e);
4353
- const r = window.sessionStorage.getItem(e);
4354
- return r ? JSON.parse(r) : {};
4355
- }
4356
- _setStorage(e, r) {
4357
- if (typeof window > "u")
4358
- return super._setStorage(e, r);
4359
- window.sessionStorage.setItem(e, JSON.stringify(r));
4360
- }
4361
- }
4362
- new Pa("__zf-default-storage__");
4363
- var Kd = Object.defineProperty, Jd = (t, e, r) => e in t ? Kd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Vd = (t, e, r) => (Jd(t, typeof e != "symbol" ? e + "" : e, r), r);
4364
- class $a extends Oa {
4365
- static get(e) {
4366
- const r = e?.key || "", n = this.storage.getItem(r) || null;
4367
- return n && n.expires && n.expires < Date.now() ? (this.storage.removeItem(r), null) : n?.value;
4368
- }
4369
- static set(e, r) {
4370
- const n = r?.key || "", o = r?.expires;
4371
- return this.storage.setItem(n || "", { value: e, expires: o });
4372
- }
4373
- }
4374
- Vd($a, "storage", new Pa("__zf-default-token__"));
4375
- new $a("__zf-default-token__");
4376
- var Qd = Object.defineProperty, Xd = Object.defineProperties, Zd = Object.getOwnPropertyDescriptors, oo = Object.getOwnPropertySymbols, Yd = Object.prototype.hasOwnProperty, ey = Object.prototype.propertyIsEnumerable, ao = (t, e, r) => e in t ? Qd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ty = (t, e) => {
4377
- for (var r in e || (e = {}))
4378
- Yd.call(e, r) && ao(t, r, e[r]);
4379
- if (oo)
4380
- for (var r of oo(e))
4381
- ey.call(e, r) && ao(t, r, e[r]);
4382
- return t;
4383
- }, ry = (t, e) => Xd(t, Zd(e)), ny = (t, e, r) => {
4384
- if (!e.has(t))
4385
- throw TypeError("Cannot " + r);
4386
- }, st = (t, e, r) => {
4387
- if (e.has(t))
4388
- throw TypeError("Cannot add the same private member more than once");
4389
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
4390
- }, Y = (t, e, r) => (ny(t, e, "access private method"), r), gt, rr, vt, Ar, bt, nr, Oe, ze;
4391
- class oy {
4392
- constructor() {
4393
- st(this, gt), st(this, vt), st(this, bt), st(this, Oe);
4394
- }
4395
- get length() {
4396
- return Object.keys(Y(this, Oe, ze).call(this)).length;
4397
- }
4398
- key(e) {
4399
- return Object.keys(Y(this, Oe, ze).call(this))[e];
4400
- }
4401
- getItem(e) {
4402
- return Y(this, Oe, ze).call(this)[e];
4403
- }
4404
- setItem(e, r, n = {}) {
4405
- const { expires: o, path: a, domain: i, secure: s } = n;
4406
- let c = `${Y(this, vt, Ar).call(this, e)}=${Y(this, vt, Ar).call(this, r)}`;
4407
- o && (typeof o == "number" ? c += `; expires=${o}` : c += `; expires=${o.toUTCString()}`), a && (c += `; path=${a}`), i && (c += `; domain=${i}`), s && (c += "; secure"), window.document.cookie = c;
4408
- }
4409
- removeItem(e, r = {}) {
4410
- this.setItem(e, "", ry(ty({}, r), { expires: -1 }));
4411
- }
4412
- clear() {
4413
- const e = Y(this, Oe, ze).call(this);
4414
- Object.keys(e).forEach((r) => {
4415
- this.removeItem(r);
4416
- });
4417
- }
4418
- }
4419
- gt = /* @__PURE__ */ new WeakSet(), rr = function(t) {
4420
- return String(t).replace(/(^\s*)|(\s*$)/, "");
4421
- }, vt = /* @__PURE__ */ new WeakSet(), Ar = function(t) {
4422
- return encodeURIComponent(Y(this, gt, rr).call(this, t));
4423
- }, bt = /* @__PURE__ */ new WeakSet(), nr = function(t) {
4424
- return decodeURIComponent(Y(this, gt, rr).call(this, t));
4425
- }, Oe = /* @__PURE__ */ new WeakSet(), ze = function() {
4426
- const t = {}, e = window.document.cookie.split(";");
4427
- for (let r = 0; r < e.length; r++) {
4428
- const n = e[r].split("="), o = Y(this, bt, nr).call(this, n[0]), a = Y(this, bt, nr).call(this, n[1]);
4429
- t[o] = a;
4430
- }
4431
- return t;
4432
11
  };
4433
- new oy();
4434
- const py = function(t) {
4435
- return t;
4436
- };
4437
- class ay {
12
+ class x {
4438
13
  _value;
4439
14
  get value() {
4440
15
  return this._value;
@@ -4446,16 +21,16 @@ class ay {
4446
21
  return this._running;
4447
22
  }
4448
23
  timer;
4449
- constructor(e, r) {
4450
- this.listener = e, this._value = r;
24
+ constructor(t, n) {
25
+ this.listener = t, this._value = n;
4451
26
  }
4452
27
  async polling() {
4453
28
  if (this._running) {
4454
29
  this.timer = void 0;
4455
30
  try {
4456
31
  await this.trigger();
4457
- } catch (e) {
4458
- console.error(e);
32
+ } catch (t) {
33
+ console.error(t);
4459
34
  }
4460
35
  this.timer = setTimeout(this.polling.bind(this), this.interval);
4461
36
  }
@@ -4470,71 +45,112 @@ class ay {
4470
45
  this._running && (clearTimeout(this.timer), this._running = !1);
4471
46
  }
4472
47
  }
4473
- function io(t, e) {
4474
- const r = Na(new ay(t, e)), n = Ra();
4475
- return Ba(n, () => {
4476
- r.interval = n.value?.pollingInterval || 3e3;
4477
- }, { immediate: !0 }), ja(r.start.bind(r)), Da(r.stop.bind(r)), r;
48
+ function s(e, t) {
49
+ const n = m(new x(e, t)), o = c();
50
+ return _(() => o.value.pollingInterval, () => {
51
+ n.interval = o.value?.pollingInterval || 3e3;
52
+ }, { immediate: !0 }), v(n.start.bind(n)), w(n.stop.bind(n)), n;
4478
53
  }
4479
- function dy(t, e) {
4480
- const r = e ? io(t, e) : io(t);
4481
- return Ma(() => r.value);
54
+ function I(e, t) {
55
+ const n = t ? s(e, t) : s(e);
56
+ return b(() => n.value);
4482
57
  }
4483
- function iy() {
4484
- if (!Jr.value)
4485
- throw new Error("请先调用 defineConfig 进行配置");
4486
- return Jr.value;
58
+ function E() {
59
+ if (!i.value)
60
+ throw new Error("请先调用 defineAppConfig 进行配置");
61
+ return i.value;
4487
62
  }
4488
- const yy = Wd(() => iy().request);
4489
- class sy extends Rd {
63
+ const r = Object.assign(function(e) {
64
+ return y({
65
+ ...e,
66
+ appendTo: a().appViewElement || document.body || void 0
67
+ });
68
+ }, {
69
+ success(e) {
70
+ return r({
71
+ ...e,
72
+ type: "success"
73
+ });
74
+ },
75
+ info(e) {
76
+ return r({
77
+ ...e,
78
+ type: "info"
79
+ });
80
+ },
81
+ warning(e) {
82
+ return r({
83
+ ...e,
84
+ type: "warning"
85
+ });
86
+ },
87
+ error(e) {
88
+ return r({
89
+ ...e,
90
+ type: "error"
91
+ });
92
+ }
93
+ }), P = p(() => {
94
+ const e = E();
95
+ return {
96
+ ...e.request,
97
+ errorHandle(t, n, o) {
98
+ if (e.request.showErrorMessage && r.error({ message: n }), e.request.errorHandle)
99
+ return e.request.errorHandle(t, n, o);
100
+ }
101
+ };
102
+ });
103
+ class C extends f {
4490
104
  /**
4491
105
  * 发送事件
4492
106
  * @param {string} name 事件名称
4493
107
  * @param {unknown[]} args 参数
4494
108
  */
4495
- emit(e, ...r) {
4496
- 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);
109
+ emit(t, ...n) {
110
+ return n = n.map((o) => JSON.parse(JSON.stringify(o))), console.log(`%c发送UE事件 %c${t}`, "color: #529b2e; font-weight: bold;", "color: #337ecc", ...n), window?.ue?.web?.[t]?.(...n);
4497
111
  }
4498
112
  /**
4499
113
  * 注册事件
4500
114
  * @param {string} name 事件名称
4501
115
  * @param {UnknownFunction} listener 事件处理函数
4502
116
  */
4503
- on(e, r) {
4504
- return console.log(`%c注册UE事件 %c${e}`, "color: #b88230; font-weight: bold;", "color: #337ecc"), window[e] || (window[e] = this.dispatchEvent.bind(this, e)), super.on(e, r);
117
+ on(t, n) {
118
+ return console.log(`%c注册UE事件 %c${t}`, "color: #b88230; font-weight: bold;", "color: #337ecc"), window[t] || (window[t] = this.dispatchEvent.bind(this, t)), super.on(t, n);
4505
119
  }
4506
120
  /**
4507
121
  * 注销事件
4508
122
  * @param {string} name 事件名称
4509
123
  * @param {UnknownFunction} listener 事件处理函数
4510
124
  */
4511
- off(e, r) {
4512
- console.log(`%c注销UE事件 %c${e}`, "color: #909399; font-weight: bold;", "color: #337ecc");
4513
- const n = super.off(e, r);
4514
- return this.listeners(e).length || delete window[e], n;
125
+ off(t, n) {
126
+ console.log(`%c注销UE事件 %c${t}`, "color: #909399; font-weight: bold;", "color: #337ecc");
127
+ const o = super.off(t, n);
128
+ return this.listeners(t).length || delete window[t], o;
4515
129
  }
4516
130
  }
4517
- const hy = new sy(), my = {
4518
- install(t) {
4519
- Object.entries(/* @__PURE__ */ Object.assign({ "./components/zf-app/index.ts": Ia, "./components/zf-scale-container/index.ts": Ca, "./components/zf-tween-number/index.ts": Fa })).forEach(([r, n]) => {
4520
- const o = n.default, a = r.split("/")[2];
4521
- t.component(a, o);
131
+ const S = new C(), T = {
132
+ install(e) {
133
+ Object.entries(/* @__PURE__ */ Object.assign({ "./components/zf-app/index.ts": g, "./components/zf-scale-container/index.ts": d, "./components/zf-tween-number/index.ts": h })).forEach(([n, o]) => {
134
+ const l = o.default, u = n.split("/")[2];
135
+ e.component(u, l);
4522
136
  });
4523
137
  }
4524
138
  };
4525
139
  export {
4526
- sy as Ue,
4527
- by as ZfApp,
4528
- Ay as ZfScaleContainer,
4529
- Ey as ZfTweenNumber,
4530
- my as default,
4531
- wy as defineConfig,
4532
- Wd as defineRequest,
4533
- py as defineService,
4534
- iy as getConfig,
4535
- yy as request,
4536
- hy as ue,
4537
- Ra as useConfig,
4538
- io as usePolling,
4539
- dy as usePollingRef
140
+ C as Ue,
141
+ H as ZfApp,
142
+ B as ZfScaleContainer,
143
+ R as ZfTweenNumber,
144
+ T as default,
145
+ $ as defineAppConfig,
146
+ p as defineRequest,
147
+ U as defineService,
148
+ E as getAppConfig,
149
+ a as getAppInfo,
150
+ P as request,
151
+ S as ue,
152
+ c as useAppConfig,
153
+ J as useAppInfo,
154
+ s as usePolling,
155
+ I as usePollingRef
4540
156
  };