oeos-components 0.3.100 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1107 +0,0 @@
1
- import { d as ve, g as lr, c as Ze, a as cr } from "./index-BrwvbMic.js";
2
- import { $ as ln, o as cn, e as pn, f as fn, A as yn, p as sn, z as un, Z as dn, _ as hn, a2 as mn, a3 as gn, a5 as bn, a0 as vn, a1 as Sn, a4 as wn, b as On, h as An, B as jn, G as En, Q as Pn, X as xn, J as In, i as Dn, U as Rn, L as kn, Y as Mn, H as _n, O as Tn, R as Fn, T as Nn, S as Ln, K as Un, W as Cn, I as Bn, M as Wn, N as $n, P as Hn, V as Kn, q as Gn, m as qn, n as Vn, D as zn, w as Yn, r as Qn, s as Jn, j as Xn, C as Zn, x as ea, t as ta, F as ra, E as oa, y as na, u as aa, v as ia, l as la, k as ca } from "./index-BrwvbMic.js";
3
- function Nt(e, t = "YYYY-MM-DD HH:mm:ss") {
4
- return ve(e || /* @__PURE__ */ new Date()).format(t);
5
- }
6
- const Xo = (e) => Nt(e, "YYYY-MM-DD"), Zo = (e) => Nt(e, "YYYY-MM-DD HH:mm");
7
- function en(e, t = ve(), r = "second") {
8
- if (e)
9
- return ve(e).diff(ve(t), r);
10
- }
11
- function tn(e) {
12
- return e >= 31536e3 ? `${parseInt(String(e / 31536e3))}年前` : e >= 2592e3 ? `${parseInt(String(e / 2592e3))}月前` : e >= 86400 ? `${parseInt(String(e / 86400))}天前` : e >= 3600 ? `${parseInt(String(e / 3600))}小时前` : e >= 60 ? `${parseInt(String(e / 60))}分钟前` : `${parseInt(String(e))}秒前`;
13
- }
14
- var Z = TypeError;
15
- const pr = lr(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
16
- var qe = typeof Map == "function" && Map.prototype, Re = Object.getOwnPropertyDescriptor && qe ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ue = qe && Re && typeof Re.get == "function" ? Re.get : null, et = qe && Map.prototype.forEach, Ve = typeof Set == "function" && Set.prototype, ke = Object.getOwnPropertyDescriptor && Ve ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, de = Ve && ke && typeof ke.get == "function" ? ke.get : null, tt = Ve && Set.prototype.forEach, re = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, oe = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, rt = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, fr = Boolean.prototype.valueOf, yr = Object.prototype.toString, sr = Function.prototype.toString, ur = String.prototype.match, ze = String.prototype.slice, C = String.prototype.replace, dr = String.prototype.toUpperCase, ot = String.prototype.toLowerCase, Lt = RegExp.prototype.test, nt = Array.prototype.concat, M = Array.prototype.join, hr = Array.prototype.slice, at = Math.floor, Me = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _e = Object.getOwnPropertySymbols, $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", le = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || !0) ? Symbol.toStringTag : null, Ut = Object.prototype.propertyIsEnumerable, it = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
17
- return e.__proto__;
18
- } : null);
19
- function lt(e, t) {
20
- if (e === 1 / 0 || e === -1 / 0 || e != e || e && e > -1e3 && e < 1e3 || Lt.call(/e/, t))
21
- return t;
22
- var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
23
- if (typeof e == "number") {
24
- var o = e < 0 ? -at(-e) : at(e);
25
- if (o !== e) {
26
- var a = String(o), l = ze.call(t, a.length + 1);
27
- return C.call(a, r, "$&_") + "." + C.call(C.call(l, /([0-9]{3})/g, "$&_"), /_$/, "");
28
- }
29
- }
30
- return C.call(t, r, "$&_");
31
- }
32
- var He = pr, ct = He.custom, pt = Wt(ct) ? ct : null, Ct = { __proto__: null, double: '"', single: "'" }, mr = { __proto__: null, double: /(["\\])/g, single: /(['\\])/g }, Ee = function e(t, r, o, a) {
33
- var l = r || {};
34
- if (L(l, "quoteStyle") && !L(Ct, l.quoteStyle))
35
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
36
- if (L(l, "maxStringLength") && (typeof l.maxStringLength == "number" ? l.maxStringLength < 0 && l.maxStringLength !== 1 / 0 : l.maxStringLength !== null))
37
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
38
- var p = !L(l, "customInspect") || l.customInspect;
39
- if (typeof p != "boolean" && p !== "symbol")
40
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
41
- if (L(l, "indent") && l.indent !== null && l.indent !== " " && !(parseInt(l.indent, 10) === l.indent && l.indent > 0))
42
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
43
- if (L(l, "numericSeparator") && typeof l.numericSeparator != "boolean")
44
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
45
- var s = l.numericSeparator;
46
- if (t === void 0)
47
- return "undefined";
48
- if (t === null)
49
- return "null";
50
- if (typeof t == "boolean")
51
- return t ? "true" : "false";
52
- if (typeof t == "string")
53
- return $t(t, l);
54
- if (typeof t == "number") {
55
- if (t === 0)
56
- return 1 / 0 / t > 0 ? "0" : "-0";
57
- var d = String(t);
58
- return s ? lt(t, d) : d;
59
- }
60
- if (typeof t == "bigint") {
61
- var n = String(t) + "n";
62
- return s ? lt(t, n) : n;
63
- }
64
- var y = l.depth === void 0 ? 5 : l.depth;
65
- if (o === void 0 && (o = 0), o >= y && y > 0 && typeof t == "object")
66
- return Ke(t) ? "[Array]" : "[Object]";
67
- var i = function(f, O) {
68
- var x;
69
- if (f.indent === " ")
70
- x = " ";
71
- else {
72
- if (!(typeof f.indent == "number" && f.indent > 0))
73
- return null;
74
- x = M.call(Array(f.indent + 1), " ");
75
- }
76
- return { base: x, prev: M.call(Array(O + 1), x) };
77
- }(l, o);
78
- if (a === void 0)
79
- a = [];
80
- else if (yt(a, t) >= 0)
81
- return "[Circular]";
82
- function u(f, O, x) {
83
- if (O && (a = hr.call(a)).push(O), x) {
84
- var te = { depth: l.depth };
85
- return L(l, "quoteStyle") && (te.quoteStyle = l.quoteStyle), e(f, te, o + 1, a);
86
- }
87
- return e(f, l, o + 1, a);
88
- }
89
- if (typeof t == "function" && !ft(t)) {
90
- var m = function(f) {
91
- if (f.name)
92
- return f.name;
93
- var O = ur.call(sr.call(f), /^function\s*([\w$]+)/);
94
- return O ? O[1] : null;
95
- }(t), c = he(t, u);
96
- return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (c.length > 0 ? " { " + M.call(c, ", ") + " }" : "");
97
- }
98
- if (Wt(t)) {
99
- var b = X ? C.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : $e.call(t);
100
- return typeof t != "object" || X ? b : ne(b);
101
- }
102
- if (function(f) {
103
- return !f || typeof f != "object" ? !1 : typeof HTMLElement < "u" && f instanceof HTMLElement ? !0 : typeof f.nodeName == "string" && typeof f.getAttribute == "function";
104
- }(t)) {
105
- for (var w = "<" + ot.call(String(t.nodeName)), v = t.attributes || [], S = 0; S < v.length; S++)
106
- w += " " + v[S].name + "=" + Bt(gr(v[S].value), "double", l);
107
- return w += ">", t.childNodes && t.childNodes.length && (w += "..."), w += "</" + ot.call(String(t.nodeName)) + ">";
108
- }
109
- if (Ke(t)) {
110
- if (t.length === 0)
111
- return "[]";
112
- var h = he(t, u);
113
- return i && !function(f) {
114
- for (var O = 0; O < f.length; O++)
115
- if (yt(f[O], `
116
- `) >= 0)
117
- return !1;
118
- return !0;
119
- }(h) ? "[" + Ge(h, i) + "]" : "[ " + M.call(h, ", ") + " ]";
120
- }
121
- if (function(f) {
122
- return U(f) === "[object Error]" && H(f);
123
- }(t)) {
124
- var j = he(t, u);
125
- return "cause" in Error.prototype || !("cause" in t) || Ut.call(t, "cause") ? j.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + M.call(j, ", ") + " }" : "{ [" + String(t) + "] " + M.call(nt.call("[cause]: " + u(t.cause), j), ", ") + " }";
126
- }
127
- if (typeof t == "object" && p) {
128
- if (pt && typeof t[pt] == "function" && He)
129
- return He(t, { depth: y - o });
130
- if (p !== "symbol" && typeof t.inspect == "function")
131
- return t.inspect();
132
- }
133
- if (function(f) {
134
- if (!ue || !f || typeof f != "object")
135
- return !1;
136
- try {
137
- ue.call(f);
138
- try {
139
- de.call(f);
140
- } catch {
141
- return !0;
142
- }
143
- return f instanceof Map;
144
- } catch {
145
- }
146
- return !1;
147
- }(t)) {
148
- var I = [];
149
- return et && et.call(t, function(f, O) {
150
- I.push(u(O, t, !0) + " => " + u(f, t));
151
- }), st("Map", ue.call(t), I, i);
152
- }
153
- if (function(f) {
154
- if (!de || !f || typeof f != "object")
155
- return !1;
156
- try {
157
- de.call(f);
158
- try {
159
- ue.call(f);
160
- } catch {
161
- return !0;
162
- }
163
- return f instanceof Set;
164
- } catch {
165
- }
166
- return !1;
167
- }(t)) {
168
- var D = [];
169
- return tt && tt.call(t, function(f) {
170
- D.push(u(f, t));
171
- }), st("Set", de.call(t), D, i);
172
- }
173
- if (function(f) {
174
- if (!re || !f || typeof f != "object")
175
- return !1;
176
- try {
177
- re.call(f, re);
178
- try {
179
- oe.call(f, oe);
180
- } catch {
181
- return !0;
182
- }
183
- return f instanceof WeakMap;
184
- } catch {
185
- }
186
- return !1;
187
- }(t))
188
- return Te("WeakMap");
189
- if (function(f) {
190
- if (!oe || !f || typeof f != "object")
191
- return !1;
192
- try {
193
- oe.call(f, oe);
194
- try {
195
- re.call(f, re);
196
- } catch {
197
- return !0;
198
- }
199
- return f instanceof WeakSet;
200
- } catch {
201
- }
202
- return !1;
203
- }(t))
204
- return Te("WeakSet");
205
- if (function(f) {
206
- if (!rt || !f || typeof f != "object")
207
- return !1;
208
- try {
209
- return rt.call(f), !0;
210
- } catch {
211
- }
212
- return !1;
213
- }(t))
214
- return Te("WeakRef");
215
- if (function(f) {
216
- return U(f) === "[object Number]" && H(f);
217
- }(t))
218
- return ne(u(Number(t)));
219
- if (function(f) {
220
- if (!f || typeof f != "object" || !Me)
221
- return !1;
222
- try {
223
- return Me.call(f), !0;
224
- } catch {
225
- }
226
- return !1;
227
- }(t))
228
- return ne(u(Me.call(t)));
229
- if (function(f) {
230
- return U(f) === "[object Boolean]" && H(f);
231
- }(t))
232
- return ne(fr.call(t));
233
- if (function(f) {
234
- return U(f) === "[object String]" && H(f);
235
- }(t))
236
- return ne(u(String(t)));
237
- if (typeof window < "u" && t === window)
238
- return "{ [object Window] }";
239
- if (typeof globalThis < "u" && t === globalThis || Ze !== void 0 && t === Ze)
240
- return "{ [object globalThis] }";
241
- if (!function(f) {
242
- return U(f) === "[object Date]" && H(f);
243
- }(t) && !ft(t)) {
244
- var F = he(t, u), R = it ? it(t) === Object.prototype : t instanceof Object || t.constructor === Object, B = t instanceof Object ? "" : "null prototype", ee = !R && le && Object(t) === t && le in t ? ze.call(U(t), 8, -1) : B ? "Object" : "", G = (R || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (ee || B ? "[" + M.call(nt.call([], ee || [], B || []), ": ") + "] " : "");
245
- return F.length === 0 ? G + "{}" : i ? G + "{" + Ge(F, i) + "}" : G + "{ " + M.call(F, ", ") + " }";
246
- }
247
- return String(t);
248
- };
249
- function Bt(e, t, r) {
250
- var o = r.quoteStyle || t, a = Ct[o];
251
- return a + e + a;
252
- }
253
- function gr(e) {
254
- return C.call(String(e), /"/g, "&quot;");
255
- }
256
- function H(e) {
257
- return !le || !(typeof e == "object" && (le in e || e[le] !== void 0));
258
- }
259
- function Ke(e) {
260
- return U(e) === "[object Array]" && H(e);
261
- }
262
- function ft(e) {
263
- return U(e) === "[object RegExp]" && H(e);
264
- }
265
- function Wt(e) {
266
- if (X)
267
- return e && typeof e == "object" && e instanceof Symbol;
268
- if (typeof e == "symbol")
269
- return !0;
270
- if (!e || typeof e != "object" || !$e)
271
- return !1;
272
- try {
273
- return $e.call(e), !0;
274
- } catch {
275
- }
276
- return !1;
277
- }
278
- var br = Object.prototype.hasOwnProperty || function(e) {
279
- return e in this;
280
- };
281
- function L(e, t) {
282
- return br.call(e, t);
283
- }
284
- function U(e) {
285
- return yr.call(e);
286
- }
287
- function yt(e, t) {
288
- if (e.indexOf)
289
- return e.indexOf(t);
290
- for (var r = 0, o = e.length; r < o; r++)
291
- if (e[r] === t)
292
- return r;
293
- return -1;
294
- }
295
- function $t(e, t) {
296
- if (e.length > t.maxStringLength) {
297
- var r = e.length - t.maxStringLength, o = "... " + r + " more character" + (r > 1 ? "s" : "");
298
- return $t(ze.call(e, 0, t.maxStringLength), t) + o;
299
- }
300
- var a = mr[t.quoteStyle || "single"];
301
- return a.lastIndex = 0, Bt(C.call(C.call(e, a, "\\$1"), /[\x00-\x1f]/g, vr), "single", t);
302
- }
303
- function vr(e) {
304
- var t = e.charCodeAt(0), r = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[t];
305
- return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + dr.call(t.toString(16));
306
- }
307
- function ne(e) {
308
- return "Object(" + e + ")";
309
- }
310
- function Te(e) {
311
- return e + " { ? }";
312
- }
313
- function st(e, t, r, o) {
314
- return e + " (" + t + ") {" + (o ? Ge(r, o) : M.call(r, ", ")) + "}";
315
- }
316
- function Ge(e, t) {
317
- if (e.length === 0)
318
- return "";
319
- var r = `
320
- ` + t.prev + t.base;
321
- return r + M.call(e, "," + r) + `
322
- ` + t.prev;
323
- }
324
- function he(e, t) {
325
- var r = Ke(e), o = [];
326
- if (r) {
327
- o.length = e.length;
328
- for (var a = 0; a < e.length; a++)
329
- o[a] = L(e, a) ? t(e[a], e) : "";
330
- }
331
- var l, p = typeof _e == "function" ? _e(e) : [];
332
- if (X) {
333
- l = {};
334
- for (var s = 0; s < p.length; s++)
335
- l["$" + p[s]] = p[s];
336
- }
337
- for (var d in e)
338
- L(e, d) && (r && String(Number(d)) === d && d < e.length || X && l["$" + d] instanceof Symbol || (Lt.call(/[^\w$]/, d) ? o.push(t(d, e) + ": " + t(e[d], e)) : o.push(d + ": " + t(e[d], e))));
339
- if (typeof _e == "function")
340
- for (var n = 0; n < p.length; n++)
341
- Ut.call(e, p[n]) && o.push("[" + t(p[n]) + "]: " + t(e[p[n]], e));
342
- return o;
343
- }
344
- var Sr = Ee, wr = Z, me = function(e, t, r) {
345
- for (var o, a = e; (o = a.next) != null; a = o)
346
- if (o.key === t)
347
- return a.next = o.next, r || (o.next = e.next, e.next = o), o;
348
- }, Ht = Object, Or = Error, Ar = EvalError, jr = RangeError, Er = ReferenceError, Pr = SyntaxError, xr = URIError, Ir = Math.abs, Dr = Math.floor, Rr = Math.max, kr = Math.min, Mr = Math.pow, _r = Math.round, Tr = Number.isNaN || function(e) {
349
- return e != e;
350
- }, Se = Object.getOwnPropertyDescriptor;
351
- if (Se)
352
- try {
353
- Se([], "length");
354
- } catch {
355
- Se = null;
356
- }
357
- var Kt = Se, we = Object.defineProperty || !1;
358
- if (we)
359
- try {
360
- we({}, "a", { value: 1 });
361
- } catch {
362
- we = !1;
363
- }
364
- var ut, dt, ht, mt, gt, bt, vt, St, Fr = we;
365
- function Gt() {
366
- return bt ? gt : (bt = 1, gt = typeof Reflect < "u" && Reflect.getPrototypeOf || null);
367
- }
368
- function qt() {
369
- return St ? vt : (St = 1, vt = Ht.getPrototypeOf || null);
370
- }
371
- var wt, Ot, Nr = Object.prototype.toString, Lr = Math.max, At = function(e, t) {
372
- for (var r = [], o = 0; o < e.length; o += 1)
373
- r[o] = e[o];
374
- for (var a = 0; a < t.length; a += 1)
375
- r[a + e.length] = t[a];
376
- return r;
377
- }, Ur = function(e) {
378
- var t = this;
379
- if (typeof t != "function" || Nr.apply(t) !== "[object Function]")
380
- throw new TypeError("Function.prototype.bind called on incompatible " + t);
381
- for (var r, o = function(d, n) {
382
- for (var y = [], i = n, u = 0; i < d.length; i += 1, u += 1)
383
- y[u] = d[i];
384
- return y;
385
- }(arguments, 1), a = Lr(0, t.length - o.length), l = [], p = 0; p < a; p++)
386
- l[p] = "$" + p;
387
- if (r = Function("binder", "return function (" + function(d, n) {
388
- for (var y = "", i = 0; i < d.length; i += 1)
389
- y += d[i], i + 1 < d.length && (y += n);
390
- return y;
391
- }(l, ",") + "){ return binder.apply(this,arguments); }")(function() {
392
- if (this instanceof r) {
393
- var d = t.apply(this, At(o, arguments));
394
- return Object(d) === d ? d : this;
395
- }
396
- return t.apply(e, At(o, arguments));
397
- }), t.prototype) {
398
- var s = function() {
399
- };
400
- s.prototype = t.prototype, r.prototype = new s(), s.prototype = null;
401
- }
402
- return r;
403
- }, Pe = Function.prototype.bind || Ur, Ye = Function.prototype.call;
404
- function Vt() {
405
- return Ot ? wt : (Ot = 1, wt = Function.prototype.apply);
406
- }
407
- var jt, Et, Pt, xt, It, Dt, g, Cr = typeof Reflect < "u" && Reflect && Reflect.apply, Br = Pe, Wr = Vt(), $r = Ye, Hr = Cr || Br.call($r, Wr), Kr = Pe, Gr = Z, qr = Ye, Vr = Hr, zt = function(e) {
408
- if (e.length < 1 || typeof e[0] != "function")
409
- throw new Gr("a function is required");
410
- return Vr(Kr, qr, e);
411
- }, zr = Ht, Yr = Or, Qr = Ar, Jr = jr, Xr = Er, Q = Pr, J = Z, Zr = xr, eo = Ir, to = Dr, ro = Rr, oo = kr, no = Mr, ao = _r, io = function(e) {
412
- return Tr(e) || e === 0 ? e : e < 0 ? -1 : 1;
413
- }, Yt = Function, Fe = function(e) {
414
- try {
415
- return Yt('"use strict"; return (' + e + ").constructor;")();
416
- } catch {
417
- }
418
- }, pe = Kt, lo = Fr, Ne = function() {
419
- throw new J();
420
- }, co = pe ? function() {
421
- try {
422
- return Ne;
423
- } catch {
424
- try {
425
- return pe(arguments, "callee").get;
426
- } catch {
427
- return Ne;
428
- }
429
- }
430
- }() : Ne, q = function() {
431
- if (mt)
432
- return ht;
433
- mt = 1;
434
- var e = typeof Symbol < "u" && Symbol, t = dt ? ut : (dt = 1, ut = function() {
435
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
436
- return !1;
437
- if (typeof Symbol.iterator == "symbol")
438
- return !0;
439
- var r = {}, o = Symbol("test"), a = Object(o);
440
- if (typeof o == "string" || Object.prototype.toString.call(o) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
441
- return !1;
442
- for (var l in r[o] = 42, r)
443
- return !1;
444
- if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
445
- return !1;
446
- var p = Object.getOwnPropertySymbols(r);
447
- if (p.length !== 1 || p[0] !== o || !Object.prototype.propertyIsEnumerable.call(r, o))
448
- return !1;
449
- if (typeof Object.getOwnPropertyDescriptor == "function") {
450
- var s = Object.getOwnPropertyDescriptor(r, o);
451
- if (s.value !== 42 || s.enumerable !== !0)
452
- return !1;
453
- }
454
- return !0;
455
- });
456
- return ht = function() {
457
- return typeof e == "function" && typeof Symbol == "function" && typeof e("foo") == "symbol" && typeof Symbol("bar") == "symbol" && t();
458
- };
459
- }()(), P = function() {
460
- if (xt)
461
- return Pt;
462
- xt = 1;
463
- var e = Gt(), t = qt(), r = function() {
464
- if (Et)
465
- return jt;
466
- Et = 1;
467
- var o, a = zt, l = Kt;
468
- try {
469
- o = [].__proto__ === Array.prototype;
470
- } catch (n) {
471
- if (!n || typeof n != "object" || !("code" in n) || n.code !== "ERR_PROTO_ACCESS")
472
- throw n;
473
- }
474
- var p = !!o && l && l(Object.prototype, "__proto__"), s = Object, d = s.getPrototypeOf;
475
- return jt = p && typeof p.get == "function" ? a([p.get]) : typeof d == "function" && function(n) {
476
- return d(n == null ? n : s(n));
477
- };
478
- }();
479
- return Pt = e ? function(o) {
480
- return e(o);
481
- } : t ? function(o) {
482
- if (!o || typeof o != "object" && typeof o != "function")
483
- throw new TypeError("getProto: not an object");
484
- return t(o);
485
- } : r ? function(o) {
486
- return r(o);
487
- } : null;
488
- }(), po = qt(), fo = Gt(), Qt = Vt(), fe = Ye, Y = {}, yo = typeof Uint8Array < "u" && P ? P(Uint8Array) : g, K = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? g : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? g : ArrayBuffer, "%ArrayIteratorPrototype%": q && P ? P([][Symbol.iterator]()) : g, "%AsyncFromSyncIteratorPrototype%": g, "%AsyncFunction%": Y, "%AsyncGenerator%": Y, "%AsyncGeneratorFunction%": Y, "%AsyncIteratorPrototype%": Y, "%Atomics%": typeof Atomics > "u" ? g : Atomics, "%BigInt%": typeof BigInt > "u" ? g : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? g : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? g : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? g : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Yr, "%eval%": eval, "%EvalError%": Qr, "%Float16Array%": typeof Float16Array > "u" ? g : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? g : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? g : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? g : FinalizationRegistry, "%Function%": Yt, "%GeneratorFunction%": Y, "%Int8Array%": typeof Int8Array > "u" ? g : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? g : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? g : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": q && P ? P(P([][Symbol.iterator]())) : g, "%JSON%": typeof JSON == "object" ? JSON : g, "%Map%": typeof Map > "u" ? g : Map, "%MapIteratorPrototype%": typeof Map < "u" && q && P ? P((/* @__PURE__ */ new Map())[Symbol.iterator]()) : g, "%Math%": Math, "%Number%": Number, "%Object%": zr, "%Object.getOwnPropertyDescriptor%": pe, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? g : Promise, "%Proxy%": typeof Proxy > "u" ? g : Proxy, "%RangeError%": Jr, "%ReferenceError%": Xr, "%Reflect%": typeof Reflect > "u" ? g : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? g : Set, "%SetIteratorPrototype%": typeof Set < "u" && q && P ? P((/* @__PURE__ */ new Set())[Symbol.iterator]()) : g, "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? g : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": q && P ? P(""[Symbol.iterator]()) : g, "%Symbol%": q ? Symbol : g, "%SyntaxError%": Q, "%ThrowTypeError%": co, "%TypedArray%": yo, "%TypeError%": J, "%Uint8Array%": typeof Uint8Array > "u" ? g : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? g : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? g : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? g : Uint32Array, "%URIError%": Zr, "%WeakMap%": typeof WeakMap > "u" ? g : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? g : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? g : WeakSet, "%Function.prototype.call%": fe, "%Function.prototype.apply%": Qt, "%Object.defineProperty%": lo, "%Object.getPrototypeOf%": po, "%Math.abs%": eo, "%Math.floor%": to, "%Math.max%": ro, "%Math.min%": oo, "%Math.pow%": no, "%Math.round%": ao, "%Math.sign%": io, "%Reflect.getPrototypeOf%": fo };
489
- if (P)
490
- try {
491
- null.error;
492
- } catch (e) {
493
- var so = P(P(e));
494
- K["%Error.prototype%"] = so;
495
- }
496
- var uo = function e(t) {
497
- var r;
498
- if (t === "%AsyncFunction%")
499
- r = Fe("async function () {}");
500
- else if (t === "%GeneratorFunction%")
501
- r = Fe("function* () {}");
502
- else if (t === "%AsyncGeneratorFunction%")
503
- r = Fe("async function* () {}");
504
- else if (t === "%AsyncGenerator%") {
505
- var o = e("%AsyncGeneratorFunction%");
506
- o && (r = o.prototype);
507
- } else if (t === "%AsyncIteratorPrototype%") {
508
- var a = e("%AsyncGenerator%");
509
- a && P && (r = P(a.prototype));
510
- }
511
- return K[t] = r, r;
512
- }, Rt = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, ye = Pe, je = function() {
513
- if (Dt)
514
- return It;
515
- Dt = 1;
516
- var e = Function.prototype.call, t = Object.prototype.hasOwnProperty;
517
- return It = Pe.call(e, t);
518
- }(), ho = ye.call(fe, Array.prototype.concat), mo = ye.call(Qt, Array.prototype.splice), kt = ye.call(fe, String.prototype.replace), ge = ye.call(fe, String.prototype.slice), go = ye.call(fe, RegExp.prototype.exec), bo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, vo = /\\(\\)?/g, So = function(e, t) {
519
- var r, o = e;
520
- if (je(Rt, o) && (o = "%" + (r = Rt[o])[0] + "%"), je(K, o)) {
521
- var a = K[o];
522
- if (a === Y && (a = uo(o)), a === void 0 && !t)
523
- throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
524
- return { alias: r, name: o, value: a };
525
- }
526
- throw new Q("intrinsic " + e + " does not exist!");
527
- }, Qe = function(e, t) {
528
- if (typeof e != "string" || e.length === 0)
529
- throw new J("intrinsic name must be a non-empty string");
530
- if (arguments.length > 1 && typeof t != "boolean")
531
- throw new J('"allowMissing" argument must be a boolean');
532
- if (go(/^%?[^%]*%?$/, e) === null)
533
- throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
534
- var r = function(b) {
535
- var w = ge(b, 0, 1), v = ge(b, -1);
536
- if (w === "%" && v !== "%")
537
- throw new Q("invalid intrinsic syntax, expected closing `%`");
538
- if (v === "%" && w !== "%")
539
- throw new Q("invalid intrinsic syntax, expected opening `%`");
540
- var S = [];
541
- return kt(b, bo, function(h, j, I, D) {
542
- S[S.length] = I ? kt(D, vo, "$1") : j || h;
543
- }), S;
544
- }(e), o = r.length > 0 ? r[0] : "", a = So("%" + o + "%", t), l = a.name, p = a.value, s = !1, d = a.alias;
545
- d && (o = d[0], mo(r, ho([0, 1], d)));
546
- for (var n = 1, y = !0; n < r.length; n += 1) {
547
- var i = r[n], u = ge(i, 0, 1), m = ge(i, -1);
548
- if ((u === '"' || u === "'" || u === "`" || m === '"' || m === "'" || m === "`") && u !== m)
549
- throw new Q("property names with quotes must have matching quotes");
550
- if (i !== "constructor" && y || (s = !0), je(K, l = "%" + (o += "." + i) + "%"))
551
- p = K[l];
552
- else if (p != null) {
553
- if (!(i in p)) {
554
- if (!t)
555
- throw new J("base intrinsic for " + e + " exists, but the property is not available.");
556
- return;
557
- }
558
- if (pe && n + 1 >= r.length) {
559
- var c = pe(p, i);
560
- p = (y = !!c) && "get" in c && !("originalValue" in c.get) ? c.get : p[i];
561
- } else
562
- y = je(p, i), p = p[i];
563
- y && !s && (K[l] = p);
564
- }
565
- }
566
- return p;
567
- }, Jt = Qe, Xt = zt, wo = Xt([Jt("%String.prototype.indexOf%")]), Zt = function(e, t) {
568
- var r = Jt(e, !!t);
569
- return typeof r == "function" && wo(e, ".prototype.") > -1 ? Xt([r]) : r;
570
- }, se = Zt, Oo = Ee, Ao = Z, Mt = Qe("%Map%", !0), jo = se("Map.prototype.get", !0), Eo = se("Map.prototype.set", !0), Po = se("Map.prototype.has", !0), xo = se("Map.prototype.delete", !0), Io = se("Map.prototype.size", !0), er = !!Mt && function() {
571
- var e, t = { assert: function(r) {
572
- if (!t.has(r))
573
- throw new Ao("Side channel does not contain " + Oo(r));
574
- }, delete: function(r) {
575
- if (e) {
576
- var o = xo(e, r);
577
- return Io(e) === 0 && (e = void 0), o;
578
- }
579
- return !1;
580
- }, get: function(r) {
581
- if (e)
582
- return jo(e, r);
583
- }, has: function(r) {
584
- return !!e && Po(e, r);
585
- }, set: function(r, o) {
586
- e || (e = new Mt()), Eo(e, r, o);
587
- } };
588
- return t;
589
- }, xe = Zt, Do = Ee, be = er, Ro = Z, V = Qe("%WeakMap%", !0), ko = xe("WeakMap.prototype.get", !0), Mo = xe("WeakMap.prototype.set", !0), _o = xe("WeakMap.prototype.has", !0), To = xe("WeakMap.prototype.delete", !0), Fo = Z, No = Ee, Lo = (V ? function() {
590
- var e, t, r = { assert: function(o) {
591
- if (!r.has(o))
592
- throw new Ro("Side channel does not contain " + Do(o));
593
- }, delete: function(o) {
594
- if (V && o && (typeof o == "object" || typeof o == "function")) {
595
- if (e)
596
- return To(e, o);
597
- } else if (be && t)
598
- return t.delete(o);
599
- return !1;
600
- }, get: function(o) {
601
- return V && o && (typeof o == "object" || typeof o == "function") && e ? ko(e, o) : t && t.get(o);
602
- }, has: function(o) {
603
- return V && o && (typeof o == "object" || typeof o == "function") && e ? _o(e, o) : !!t && t.has(o);
604
- }, set: function(o, a) {
605
- V && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new V()), Mo(e, o, a)) : be && (t || (t = be()), t.set(o, a));
606
- } };
607
- return r;
608
- } : be) || er || function() {
609
- var e, t = { assert: function(r) {
610
- if (!t.has(r))
611
- throw new wr("Side channel does not contain " + Sr(r));
612
- }, delete: function(r) {
613
- var o = e && e.next, a = function(l, p) {
614
- if (l)
615
- return me(l, p, !0);
616
- }(e, r);
617
- return a && o && o === a && (e = void 0), !!a;
618
- }, get: function(r) {
619
- return function(o, a) {
620
- if (o) {
621
- var l = me(o, a);
622
- return l && l.value;
623
- }
624
- }(e, r);
625
- }, has: function(r) {
626
- return function(o, a) {
627
- return !!o && !!me(o, a);
628
- }(e, r);
629
- }, set: function(r, o) {
630
- e || (e = { next: void 0 }), function(a, l, p) {
631
- var s = me(a, l);
632
- s ? s.value = p : a.next = { key: l, next: a.next, value: p };
633
- }(e, r, o);
634
- } };
635
- return t;
636
- }, tr = function() {
637
- var e, t = { assert: function(r) {
638
- if (!t.has(r))
639
- throw new Fo("Side channel does not contain " + No(r));
640
- }, delete: function(r) {
641
- return !!e && e.delete(r);
642
- }, get: function(r) {
643
- return e && e.get(r);
644
- }, has: function(r) {
645
- return !!e && e.has(r);
646
- }, set: function(r, o) {
647
- e || (e = Lo()), e.set(r, o);
648
- } };
649
- return t;
650
- }, Uo = String.prototype.replace, Co = /%20/g, _t = "RFC3986", Je = { default: _t, formatters: { RFC1738: function(e) {
651
- return Uo.call(e, Co, "+");
652
- }, RFC3986: function(e) {
653
- return String(e);
654
- } }, RFC1738: "RFC1738", RFC3986: _t }, Bo = Je, Wo = tr, Le = Object.prototype.hasOwnProperty, W = Array.isArray, Ie = Wo(), z = function(e, t) {
655
- return Ie.set(e, t), e;
656
- }, $ = function(e) {
657
- return Ie.has(e);
658
- }, ae = function(e) {
659
- return Ie.get(e);
660
- }, Ue = function(e, t) {
661
- Ie.set(e, t);
662
- }, k = function() {
663
- for (var e = [], t = 0; t < 256; ++t)
664
- e[e.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
665
- return e;
666
- }(), ie = function(e, t) {
667
- for (var r = t && t.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
668
- e[o] !== void 0 && (r[o] = e[o]);
669
- return r;
670
- }, Ce = 1024, rr = { arrayToObject: ie, assign: function(e, t) {
671
- return Object.keys(t).reduce(function(r, o) {
672
- return r[o] = t[o], r;
673
- }, e);
674
- }, combine: function(e, t, r, o) {
675
- if ($(e)) {
676
- var a = ae(e) + 1;
677
- return e[a] = t, Ue(e, a), e;
678
- }
679
- var l = [].concat(e, t);
680
- return l.length > r ? z(ie(l, { plainObjects: o }), l.length - 1) : l;
681
- }, compact: function(e) {
682
- for (var t = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < t.length; ++o)
683
- for (var a = t[o], l = a.obj[a.prop], p = Object.keys(l), s = 0; s < p.length; ++s) {
684
- var d = p[s], n = l[d];
685
- typeof n == "object" && n !== null && r.indexOf(n) === -1 && (t[t.length] = { obj: l, prop: d }, r[r.length] = n);
686
- }
687
- return function(y) {
688
- for (; y.length > 1; ) {
689
- var i = y.pop(), u = i.obj[i.prop];
690
- if (W(u)) {
691
- for (var m = [], c = 0; c < u.length; ++c)
692
- u[c] !== void 0 && (m[m.length] = u[c]);
693
- i.obj[i.prop] = m;
694
- }
695
- }
696
- }(t), e;
697
- }, decode: function(e, t, r) {
698
- var o = e.replace(/\+/g, " ");
699
- if (r === "iso-8859-1")
700
- return o.replace(/%[0-9a-f]{2}/gi, unescape);
701
- try {
702
- return decodeURIComponent(o);
703
- } catch {
704
- return o;
705
- }
706
- }, encode: function(e, t, r, o, a) {
707
- if (e.length === 0)
708
- return e;
709
- var l = e;
710
- if (typeof e == "symbol" ? l = Symbol.prototype.toString.call(e) : typeof e != "string" && (l = String(e)), r === "iso-8859-1")
711
- return escape(l).replace(/%u[0-9a-f]{4}/gi, function(u) {
712
- return "%26%23" + parseInt(u.slice(2), 16) + "%3B";
713
- });
714
- for (var p = "", s = 0; s < l.length; s += Ce) {
715
- for (var d = l.length >= Ce ? l.slice(s, s + Ce) : l, n = [], y = 0; y < d.length; ++y) {
716
- var i = d.charCodeAt(y);
717
- i === 45 || i === 46 || i === 95 || i === 126 || i >= 48 && i <= 57 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || a === Bo.RFC1738 && (i === 40 || i === 41) ? n[n.length] = d.charAt(y) : i < 128 ? n[n.length] = k[i] : i < 2048 ? n[n.length] = k[192 | i >> 6] + k[128 | 63 & i] : i < 55296 || i >= 57344 ? n[n.length] = k[224 | i >> 12] + k[128 | i >> 6 & 63] + k[128 | 63 & i] : (y += 1, i = 65536 + ((1023 & i) << 10 | 1023 & d.charCodeAt(y)), n[n.length] = k[240 | i >> 18] + k[128 | i >> 12 & 63] + k[128 | i >> 6 & 63] + k[128 | 63 & i]);
718
- }
719
- p += n.join("");
720
- }
721
- return p;
722
- }, isBuffer: function(e) {
723
- return !(!e || typeof e != "object") && !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
724
- }, isOverflow: $, isRegExp: function(e) {
725
- return Object.prototype.toString.call(e) === "[object RegExp]";
726
- }, markOverflow: z, maybeMap: function(e, t) {
727
- if (W(e)) {
728
- for (var r = [], o = 0; o < e.length; o += 1)
729
- r[r.length] = t(e[o]);
730
- return r;
731
- }
732
- return t(e);
733
- }, merge: function e(t, r, o) {
734
- if (!r)
735
- return t;
736
- if (typeof r != "object" && typeof r != "function") {
737
- if (W(t)) {
738
- var a = t.length;
739
- if (o && typeof o.arrayLimit == "number" && a > o.arrayLimit)
740
- return z(ie(t.concat(r), o), a);
741
- t[a] = r;
742
- } else {
743
- if (!t || typeof t != "object")
744
- return [t, r];
745
- if ($(t)) {
746
- var l = ae(t) + 1;
747
- t[l] = r, Ue(t, l);
748
- } else {
749
- if (o && o.strictMerge)
750
- return [t, r];
751
- (o && (o.plainObjects || o.allowPrototypes) || !Le.call(Object.prototype, r)) && (t[r] = !0);
752
- }
753
- }
754
- return t;
755
- }
756
- if (!t || typeof t != "object") {
757
- if ($(r)) {
758
- for (var p = Object.keys(r), s = o && o.plainObjects ? { __proto__: null, 0: t } : { 0: t }, d = 0; d < p.length; d++)
759
- s[parseInt(p[d], 10) + 1] = r[p[d]];
760
- return z(s, ae(r) + 1);
761
- }
762
- var n = [t].concat(r);
763
- return o && typeof o.arrayLimit == "number" && n.length > o.arrayLimit ? z(ie(n, o), n.length - 1) : n;
764
- }
765
- var y = t;
766
- return W(t) && !W(r) && (y = ie(t, o)), W(t) && W(r) ? (r.forEach(function(i, u) {
767
- if (Le.call(t, u)) {
768
- var m = t[u];
769
- m && typeof m == "object" && i && typeof i == "object" ? t[u] = e(m, i, o) : t[t.length] = i;
770
- } else
771
- t[u] = i;
772
- }), t) : Object.keys(r).reduce(function(i, u) {
773
- var m = r[u];
774
- if (Le.call(i, u) ? i[u] = e(i[u], m, o) : i[u] = m, $(r) && !$(i) && z(i, ae(r)), $(i)) {
775
- var c = parseInt(u, 10);
776
- String(c) === u && c >= 0 && c > ae(i) && Ue(i, c);
777
- }
778
- return i;
779
- }, y);
780
- } }, or = tr, Oe = rr, ce = Je, $o = Object.prototype.hasOwnProperty, Tt = { brackets: function(e) {
781
- return e + "[]";
782
- }, comma: "comma", indices: function(e, t) {
783
- return e + "[" + t + "]";
784
- }, repeat: function(e) {
785
- return e;
786
- } }, _ = Array.isArray, Ho = Array.prototype.push, nr = function(e, t) {
787
- Ho.apply(e, _(t) ? t : [t]);
788
- }, Ko = Date.prototype.toISOString, Ft = ce.default, E = { addQueryPrefix: !1, allowDots: !1, allowEmptyArrays: !1, arrayFormat: "indices", charset: "utf-8", charsetSentinel: !1, commaRoundTrip: !1, delimiter: "&", encode: !0, encodeDotInKeys: !1, encoder: Oe.encode, encodeValuesOnly: !1, filter: void 0, format: Ft, formatter: ce.formatters[Ft], indices: !1, serializeDate: function(e) {
789
- return Ko.call(e);
790
- }, skipNulls: !1, strictNullHandling: !1 }, Be = {}, Go = function e(t, r, o, a, l, p, s, d, n, y, i, u, m, c, b, w, v, S) {
791
- for (var h = t, j = S, I = 0, D = !1; (j = j.get(Be)) !== void 0 && !D; ) {
792
- var F = j.get(t);
793
- if (I += 1, F !== void 0) {
794
- if (F === I)
795
- throw new RangeError("Cyclic object value");
796
- D = !0;
797
- }
798
- j.get(Be) === void 0 && (I = 0);
799
- }
800
- if (typeof y == "function" ? h = y(r, h) : h instanceof Date ? h = m(h) : o === "comma" && _(h) && (h = Oe.maybeMap(h, function(N) {
801
- return N instanceof Date ? m(N) : N;
802
- })), h === null) {
803
- if (p)
804
- return n && !w ? n(r, E.encoder, v, "key", c) : r;
805
- h = "";
806
- }
807
- if (/* @__PURE__ */ function(N) {
808
- return typeof N == "string" || typeof N == "number" || typeof N == "boolean" || typeof N == "symbol" || typeof N == "bigint";
809
- }(h) || Oe.isBuffer(h))
810
- return n ? [b(w ? r : n(r, E.encoder, v, "key", c)) + "=" + b(n(h, E.encoder, v, "value", c))] : [b(r) + "=" + b(String(h))];
811
- var R, B = [];
812
- if (h === void 0)
813
- return B;
814
- if (o === "comma" && _(h))
815
- w && n && (h = Oe.maybeMap(h, n)), R = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
816
- else if (_(y))
817
- R = y;
818
- else {
819
- var ee = Object.keys(h);
820
- R = i ? ee.sort(i) : ee;
821
- }
822
- var G = d ? String(r).replace(/\./g, "%2E") : String(r), f = a && _(h) && h.length === 1 ? G + "[]" : G;
823
- if (l && _(h) && h.length === 0)
824
- return f + "[]";
825
- for (var O = 0; O < R.length; ++O) {
826
- var x = R[O], te = typeof x == "object" && x && x.value !== void 0 ? x.value : h[x];
827
- if (!s || te !== null) {
828
- var De = u && d ? String(x).replace(/\./g, "%2E") : String(x), ir = _(h) ? typeof o == "function" ? o(f, De) : f : f + (u ? "." + De : "[" + De + "]");
829
- S.set(t, I);
830
- var Xe = or();
831
- Xe.set(Be, S), nr(B, e(te, ir, o, a, l, p, s, d, o === "comma" && w && _(h) ? null : n, y, i, u, m, c, b, w, v, Xe));
832
- }
833
- }
834
- return B;
835
- }, T = rr, Ae = Object.prototype.hasOwnProperty, We = Array.isArray, A = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: T.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictMerge: !0, strictNullHandling: !1, throwOnLimitExceeded: !1 }, qo = function(e) {
836
- return e.replace(/&#(\d+);/g, function(t, r) {
837
- return String.fromCharCode(parseInt(r, 10));
838
- });
839
- }, ar = function(e, t, r) {
840
- if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1)
841
- return e.split(",");
842
- if (t.throwOnLimitExceeded && r >= t.arrayLimit)
843
- throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
844
- return e;
845
- }, Vo = function(e, t, r, o) {
846
- if (e) {
847
- var a = function(l, p) {
848
- var s = p.allowDots ? l.replace(/\.([^.[]+)/g, "[$1]") : l;
849
- if (p.depth <= 0)
850
- return !p.plainObjects && Ae.call(Object.prototype, s) && !p.allowPrototypes ? void 0 : [s];
851
- var d = /(\[[^[\]]*])/g, n = /(\[[^[\]]*])/.exec(s), y = n ? s.slice(0, n.index) : s, i = [];
852
- if (y) {
853
- if (!p.plainObjects && Ae.call(Object.prototype, y) && !p.allowPrototypes)
854
- return;
855
- i[i.length] = y;
856
- }
857
- for (var u = 0; (n = d.exec(s)) !== null && u < p.depth; ) {
858
- u += 1;
859
- var m = n[1].slice(1, -1);
860
- if (!p.plainObjects && Ae.call(Object.prototype, m) && !p.allowPrototypes)
861
- return;
862
- i[i.length] = n[1];
863
- }
864
- if (n) {
865
- if (p.strictDepth === !0)
866
- throw new RangeError("Input depth exceeded depth option of " + p.depth + " and strictDepth is true");
867
- i[i.length] = "[" + s.slice(n.index) + "]";
868
- }
869
- return i;
870
- }(e, r);
871
- if (a)
872
- return function(l, p, s, d) {
873
- var n = 0;
874
- if (l.length > 0 && l[l.length - 1] === "[]") {
875
- var y = l.slice(0, -1).join("");
876
- n = Array.isArray(p) && p[y] ? p[y].length : 0;
877
- }
878
- for (var i = d ? p : ar(p, s, n), u = l.length - 1; u >= 0; --u) {
879
- var m, c = l[u];
880
- if (c === "[]" && s.parseArrays)
881
- m = T.isOverflow(i) ? i : s.allowEmptyArrays && (i === "" || s.strictNullHandling && i === null) ? [] : T.combine([], i, s.arrayLimit, s.plainObjects);
882
- else {
883
- m = s.plainObjects ? { __proto__: null } : {};
884
- var b = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, w = s.decodeDotInKeys ? b.replace(/%2E/g, ".") : b, v = parseInt(w, 10), S = !isNaN(v) && c !== w && String(v) === w && v >= 0 && s.parseArrays;
885
- if (s.parseArrays || w !== "")
886
- if (S && v < s.arrayLimit)
887
- (m = [])[v] = i;
888
- else {
889
- if (S && s.throwOnLimitExceeded)
890
- throw new RangeError("Array limit exceeded. Only " + s.arrayLimit + " element" + (s.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
891
- S ? (m[v] = i, T.markOverflow(m, v)) : w !== "__proto__" && (m[w] = i);
892
- }
893
- else
894
- m = { 0: i };
895
- }
896
- i = m;
897
- }
898
- return i;
899
- }(a, t, r, o);
900
- }
901
- }, zo = function(e, t) {
902
- var r, o = e, a = function(c) {
903
- if (!c)
904
- return E;
905
- if (c.allowEmptyArrays !== void 0 && typeof c.allowEmptyArrays != "boolean")
906
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
907
- if (c.encodeDotInKeys !== void 0 && typeof c.encodeDotInKeys != "boolean")
908
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
909
- if (c.encoder !== null && c.encoder !== void 0 && typeof c.encoder != "function")
910
- throw new TypeError("Encoder has to be a function.");
911
- var b = c.charset || E.charset;
912
- if (c.charset !== void 0 && c.charset !== "utf-8" && c.charset !== "iso-8859-1")
913
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
914
- var w = ce.default;
915
- if (c.format !== void 0) {
916
- if (!$o.call(ce.formatters, c.format))
917
- throw new TypeError("Unknown format option provided.");
918
- w = c.format;
919
- }
920
- var v, S = ce.formatters[w], h = E.filter;
921
- if ((typeof c.filter == "function" || _(c.filter)) && (h = c.filter), v = c.arrayFormat in Tt ? c.arrayFormat : "indices" in c ? c.indices ? "indices" : "repeat" : E.arrayFormat, "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
922
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
923
- var j = c.allowDots === void 0 ? c.encodeDotInKeys === !0 || E.allowDots : !!c.allowDots;
924
- return { addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : E.addQueryPrefix, allowDots: j, allowEmptyArrays: typeof c.allowEmptyArrays == "boolean" ? !!c.allowEmptyArrays : E.allowEmptyArrays, arrayFormat: v, charset: b, charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : E.charsetSentinel, commaRoundTrip: !!c.commaRoundTrip, delimiter: c.delimiter === void 0 ? E.delimiter : c.delimiter, encode: typeof c.encode == "boolean" ? c.encode : E.encode, encodeDotInKeys: typeof c.encodeDotInKeys == "boolean" ? c.encodeDotInKeys : E.encodeDotInKeys, encoder: typeof c.encoder == "function" ? c.encoder : E.encoder, encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : E.encodeValuesOnly, filter: h, format: w, formatter: S, serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : E.serializeDate, skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : E.skipNulls, sort: typeof c.sort == "function" ? c.sort : null, strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : E.strictNullHandling };
925
- }(t);
926
- typeof a.filter == "function" ? o = (0, a.filter)("", o) : _(a.filter) && (r = a.filter);
927
- var l = [];
928
- if (typeof o != "object" || o === null)
929
- return "";
930
- var p = Tt[a.arrayFormat], s = p === "comma" && a.commaRoundTrip;
931
- r || (r = Object.keys(o)), a.sort && r.sort(a.sort);
932
- for (var d = or(), n = 0; n < r.length; ++n) {
933
- var y = r[n], i = o[y];
934
- a.skipNulls && i === null || nr(l, Go(i, y, p, s, a.allowEmptyArrays, a.strictNullHandling, a.skipNulls, a.encodeDotInKeys, a.encode ? a.encoder : null, a.filter, a.sort, a.allowDots, a.serializeDate, a.format, a.formatter, a.encodeValuesOnly, a.charset, d));
935
- }
936
- var u = l.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
937
- return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), u.length > 0 ? m + u : "";
938
- }, Yo = function(e, t) {
939
- var r = function(n) {
940
- if (!n)
941
- return A;
942
- if (n.allowEmptyArrays !== void 0 && typeof n.allowEmptyArrays != "boolean")
943
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
944
- if (n.decodeDotInKeys !== void 0 && typeof n.decodeDotInKeys != "boolean")
945
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
946
- if (n.decoder !== null && n.decoder !== void 0 && typeof n.decoder != "function")
947
- throw new TypeError("Decoder has to be a function.");
948
- if (n.charset !== void 0 && n.charset !== "utf-8" && n.charset !== "iso-8859-1")
949
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
950
- if (n.throwOnLimitExceeded !== void 0 && typeof n.throwOnLimitExceeded != "boolean")
951
- throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
952
- var y = n.charset === void 0 ? A.charset : n.charset, i = n.duplicates === void 0 ? A.duplicates : n.duplicates;
953
- if (i !== "combine" && i !== "first" && i !== "last")
954
- throw new TypeError("The duplicates option must be either combine, first, or last");
955
- return { allowDots: n.allowDots === void 0 ? n.decodeDotInKeys === !0 || A.allowDots : !!n.allowDots, allowEmptyArrays: typeof n.allowEmptyArrays == "boolean" ? !!n.allowEmptyArrays : A.allowEmptyArrays, allowPrototypes: typeof n.allowPrototypes == "boolean" ? n.allowPrototypes : A.allowPrototypes, allowSparse: typeof n.allowSparse == "boolean" ? n.allowSparse : A.allowSparse, arrayLimit: typeof n.arrayLimit == "number" ? n.arrayLimit : A.arrayLimit, charset: y, charsetSentinel: typeof n.charsetSentinel == "boolean" ? n.charsetSentinel : A.charsetSentinel, comma: typeof n.comma == "boolean" ? n.comma : A.comma, decodeDotInKeys: typeof n.decodeDotInKeys == "boolean" ? n.decodeDotInKeys : A.decodeDotInKeys, decoder: typeof n.decoder == "function" ? n.decoder : A.decoder, delimiter: typeof n.delimiter == "string" || T.isRegExp(n.delimiter) ? n.delimiter : A.delimiter, depth: typeof n.depth == "number" || n.depth === !1 ? +n.depth : A.depth, duplicates: i, ignoreQueryPrefix: n.ignoreQueryPrefix === !0, interpretNumericEntities: typeof n.interpretNumericEntities == "boolean" ? n.interpretNumericEntities : A.interpretNumericEntities, parameterLimit: typeof n.parameterLimit == "number" ? n.parameterLimit : A.parameterLimit, parseArrays: n.parseArrays !== !1, plainObjects: typeof n.plainObjects == "boolean" ? n.plainObjects : A.plainObjects, strictDepth: typeof n.strictDepth == "boolean" ? !!n.strictDepth : A.strictDepth, strictMerge: typeof n.strictMerge == "boolean" ? !!n.strictMerge : A.strictMerge, strictNullHandling: typeof n.strictNullHandling == "boolean" ? n.strictNullHandling : A.strictNullHandling, throwOnLimitExceeded: typeof n.throwOnLimitExceeded == "boolean" && n.throwOnLimitExceeded };
956
- }(t);
957
- if (e === "" || e == null)
958
- return r.plainObjects ? { __proto__: null } : {};
959
- for (var o = typeof e == "string" ? function(n, y) {
960
- var i = { __proto__: null }, u = y.ignoreQueryPrefix ? n.replace(/^\?/, "") : n;
961
- u = u.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
962
- var m = y.parameterLimit === 1 / 0 ? void 0 : y.parameterLimit, c = u.split(y.delimiter, y.throwOnLimitExceeded ? m + 1 : m);
963
- if (y.throwOnLimitExceeded && c.length > m)
964
- throw new RangeError("Parameter limit exceeded. Only " + m + " parameter" + (m === 1 ? "" : "s") + " allowed.");
965
- var b, w = -1, v = y.charset;
966
- if (y.charsetSentinel)
967
- for (b = 0; b < c.length; ++b)
968
- c[b].indexOf("utf8=") === 0 && (c[b] === "utf8=%E2%9C%93" ? v = "utf-8" : c[b] === "utf8=%26%2310003%3B" && (v = "iso-8859-1"), w = b, b = c.length);
969
- for (b = 0; b < c.length; ++b)
970
- if (b !== w) {
971
- var S, h, j = c[b], I = j.indexOf("]="), D = I === -1 ? j.indexOf("=") : I + 1;
972
- if (D === -1 ? (S = y.decoder(j, A.decoder, v, "key"), h = y.strictNullHandling ? null : "") : (S = y.decoder(j.slice(0, D), A.decoder, v, "key")) !== null && (h = T.maybeMap(ar(j.slice(D + 1), y, We(i[S]) ? i[S].length : 0), function(R) {
973
- return y.decoder(R, A.decoder, v, "value");
974
- })), h && y.interpretNumericEntities && v === "iso-8859-1" && (h = qo(String(h))), j.indexOf("[]=") > -1 && (h = We(h) ? [h] : h), y.comma && We(h) && h.length > y.arrayLimit) {
975
- if (y.throwOnLimitExceeded)
976
- throw new RangeError("Array limit exceeded. Only " + y.arrayLimit + " element" + (y.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
977
- h = T.combine([], h, y.arrayLimit, y.plainObjects);
978
- }
979
- if (S !== null) {
980
- var F = Ae.call(i, S);
981
- F && (y.duplicates === "combine" || j.indexOf("[]=") > -1) ? i[S] = T.combine(i[S], h, y.arrayLimit, y.plainObjects) : F && y.duplicates !== "last" || (i[S] = h);
982
- }
983
- }
984
- return i;
985
- }(e, r) : e, a = r.plainObjects ? { __proto__: null } : {}, l = Object.keys(o), p = 0; p < l.length; ++p) {
986
- var s = l[p], d = Vo(s, o[s], r, typeof e == "string");
987
- a = T.merge(a, d, r);
988
- }
989
- return r.allowSparse === !0 ? a : T.compact(a);
990
- };
991
- const Qo = cr({ formats: Je, parse: Yo, stringify: zo });
992
- class rn {
993
- constructor(t, r) {
994
- this.socket = null, this.reconnectCount = 0, this.delay = null, this.timer = null;
995
- const { autoReconnect: o = !0, query: a = {}, heartbeat: l = !1 } = r || {};
996
- this.autoReconnect = o, this.heartbeat = l, this.query = a, this.url = `${t}` + Qo.stringify({ ...this.query }, { addQueryPrefix: !0 }), this.connect();
997
- }
998
- connect() {
999
- this.close(), this.socket = new WebSocket(this.url), this.onError(), this.onOpen();
1000
- }
1001
- onOpen() {
1002
- this.socket && (this.socket.onopen = () => {
1003
- this.send("ping"), this.heartbeat && this.startHeartbeat();
1004
- });
1005
- }
1006
- startHeartbeat() {
1007
- var o, a;
1008
- const t = ((o = this.heartbeat) == null ? void 0 : o.message) || "ping", r = ((a = this.heartbeat) == null ? void 0 : a.interval) || 3e3;
1009
- this.timer = setInterval(() => {
1010
- this.send(t);
1011
- }, r);
1012
- }
1013
- onError() {
1014
- this.socket && (this.socket.onerror = () => {
1015
- var r;
1016
- const t = ((r = this.autoReconnect) == null ? void 0 : r.reconnectMaxCount) || 3;
1017
- this.autoReconnect && this.reconnectCount < t && (this.reconnectCount++, this.connect());
1018
- });
1019
- }
1020
- close() {
1021
- this.socket && this.socket.close(), this.delay && clearTimeout(this.delay), this.timer && clearInterval(this.timer), this.socket = null;
1022
- }
1023
- onMessage(t) {
1024
- this.socket && (this.socket.onmessage = (r) => {
1025
- try {
1026
- const o = JSON.parse(r.data);
1027
- t(o);
1028
- } catch {
1029
- t(r);
1030
- }
1031
- });
1032
- }
1033
- send(t) {
1034
- this.socket && (this.socket.readyState === this.socket.OPEN ? this.socket.send(JSON.stringify(t)) : (this.socket.readyState === this.socket.CONNECTING || this.connect(), this.delay = setTimeout(() => {
1035
- var r;
1036
- (r = this.socket) == null || r.send(t);
1037
- }, 1e3)));
1038
- }
1039
- }
1040
- function on() {
1041
- return "test";
1042
- }
1043
- export {
1044
- ln as $toast,
1045
- rn as WS,
1046
- cn as asyncWrapper,
1047
- pn as clearStorage,
1048
- fn as clone,
1049
- yn as confirm,
1050
- sn as copy,
1051
- un as debounce,
1052
- en as diffDate,
1053
- tn as diffDateFromCurrent,
1054
- dn as formatBytes,
1055
- hn as formatBytesConvert,
1056
- Nt as formatDate,
1057
- Xo as formatDateToDay,
1058
- Zo as formatDateToMinute,
1059
- mn as formatDurationTime,
1060
- gn as formatImg,
1061
- bn as formatTextToHtml,
1062
- vn as formatThousands,
1063
- Sn as formatTime,
1064
- wn as formatToFixed,
1065
- On as getStorage,
1066
- An as getType,
1067
- jn as getVariable,
1068
- En as isArray,
1069
- Pn as isBoolean,
1070
- xn as isComponent,
1071
- In as isDate,
1072
- Dn as isEmpty,
1073
- Rn as isEmptyObject,
1074
- kn as isFunction,
1075
- Mn as isIOS,
1076
- _n as isMap,
1077
- Tn as isNumber,
1078
- Fn as isObject,
1079
- Nn as isPlainObject,
1080
- Ln as isPromise,
1081
- Un as isRegExp,
1082
- Cn as isSVGElement,
1083
- Bn as isSet,
1084
- Wn as isString,
1085
- $n as isStringNumber,
1086
- Hn as isSymbol,
1087
- Kn as isUrl,
1088
- Gn as log,
1089
- qn as merge,
1090
- Vn as notEmpty,
1091
- zn as objectToString,
1092
- on as onlyTest,
1093
- Yn as processWidth,
1094
- Qn as random,
1095
- Jn as setStorage,
1096
- Xn as sleep,
1097
- Zn as test,
1098
- ea as throttle,
1099
- ta as toLine,
1100
- ra as toRawType,
1101
- oa as toTypeString,
1102
- na as tryCatch,
1103
- aa as uuid,
1104
- ia as validForm,
1105
- la as validate,
1106
- ca as validateTrigger
1107
- };