@flemist/simple-utils 2.1.6 → 2.1.8
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/build/browser/index.cjs +1 -1
- package/build/browser/index.mjs +150 -147
- package/build/common/converter/converterBufferToGzip.d.ts +4 -0
- package/build/common/converter/converterErrorToBuffer.d.ts +2 -2
- package/build/common/converter/converterErrorToGzip.d.ts +4 -0
- package/build/common/converter/converterJsonBuffer.d.ts +2 -2
- package/build/common/converter/converterJsonGzip.d.ts +4 -0
- package/build/common/converter/index.d.ts +3 -0
- package/build/common/index.cjs +1 -1
- package/build/common/index.mjs +150 -147
- package/build/node/cache/FileStorage.d.ts +3 -1
- package/build/node/cache/createFileCacheOptions.d.ts +5 -1
- package/build/node/index.cjs +5 -5
- package/build/node/index.mjs +474 -471
- package/build/{urlGet-OHY_Qdk-.mjs → urlGet-BtyqjC2r.mjs} +731 -695
- package/build/urlGet-BukRa7Gq.js +17 -0
- package/package.json +36 -33
- package/build/urlGet-BoqnOos7.js +0 -17
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AbortControllerFast as
|
|
1
|
+
import { AbortControllerFast as Ut, AbortError as ne, toAbortSignal as se } from "@flemist/abort-controller-fast";
|
|
2
2
|
import { timeControllerDefault as bt } from "@flemist/time-controller";
|
|
3
|
-
import { isPromiseLike as E, promiseLikeToPromise as Ot, delay as
|
|
4
|
-
import { gzip as
|
|
5
|
-
function
|
|
3
|
+
import { isPromiseLike as E, promiseLikeToPromise as Ot, delay as oe, EMPTY_FUNC as ie, ValueState as ae } from "@flemist/async-utils";
|
|
4
|
+
import { gzip as ue, gunzip as le } from "fflate";
|
|
5
|
+
function ce(t) {
|
|
6
6
|
if (!t || t.timeout == null)
|
|
7
7
|
return null;
|
|
8
|
-
const e = new
|
|
8
|
+
const e = new Ut(), r = t.timeController ?? bt;
|
|
9
9
|
if (t.timeout) {
|
|
10
10
|
const n = r.setTimeout(() => {
|
|
11
11
|
e.abort(
|
|
12
|
-
new
|
|
12
|
+
new ne(
|
|
13
13
|
`[timeoutAbortController] Timeout error: ${t.timeout}ms`
|
|
14
14
|
)
|
|
15
15
|
);
|
|
@@ -22,15 +22,15 @@ function ae(t) {
|
|
|
22
22
|
e.abort(n);
|
|
23
23
|
}), e;
|
|
24
24
|
}
|
|
25
|
-
async function
|
|
26
|
-
const r =
|
|
25
|
+
async function $r(t, e) {
|
|
26
|
+
const r = ce(e);
|
|
27
27
|
try {
|
|
28
28
|
return await t(r?.signal ?? e?.abortSignal ?? null);
|
|
29
29
|
} finally {
|
|
30
30
|
r?.abort();
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Mr {
|
|
34
34
|
_options;
|
|
35
35
|
_hasValue = !1;
|
|
36
36
|
_promiseOrValue = null;
|
|
@@ -57,7 +57,7 @@ class Sr {
|
|
|
57
57
|
this._hasValue = !0, this._promiseOrValue = e;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
class
|
|
60
|
+
class Cr {
|
|
61
61
|
_options;
|
|
62
62
|
_promiseOrValues = /* @__PURE__ */ new Map();
|
|
63
63
|
constructor(e) {
|
|
@@ -67,8 +67,8 @@ class xr {
|
|
|
67
67
|
if (this._promiseOrValues.has(e))
|
|
68
68
|
return this._promiseOrValues.get(e);
|
|
69
69
|
let r = this._options.func(e);
|
|
70
|
-
const n = (
|
|
71
|
-
throw this._options.persist || this._promiseOrValues.delete(e),
|
|
70
|
+
const n = (o) => (this._options.persist ? this._promiseOrValues.set(e, o) : this._promiseOrValues.delete(e), o), s = (o) => {
|
|
71
|
+
throw this._options.persist || this._promiseOrValues.delete(e), o;
|
|
72
72
|
};
|
|
73
73
|
if (E(r))
|
|
74
74
|
r = r.then(n, s);
|
|
@@ -84,7 +84,7 @@ class xr {
|
|
|
84
84
|
this._promiseOrValues.set(e, r);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class fe {
|
|
88
88
|
_lockPromise = null;
|
|
89
89
|
get hasQueued() {
|
|
90
90
|
return this._lockPromise != null;
|
|
@@ -109,65 +109,65 @@ class ue {
|
|
|
109
109
|
return Ot(r);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
class
|
|
112
|
+
class he {
|
|
113
113
|
_lockers = /* @__PURE__ */ new Map();
|
|
114
114
|
lock(e, r) {
|
|
115
115
|
let n = this._lockers.get(e);
|
|
116
|
-
n == null && (n = new
|
|
116
|
+
n == null && (n = new fe(), this._lockers.set(e, n));
|
|
117
117
|
const s = () => {
|
|
118
118
|
n.hasQueued || this._lockers.delete(e);
|
|
119
119
|
};
|
|
120
|
-
let
|
|
120
|
+
let o;
|
|
121
121
|
try {
|
|
122
|
-
|
|
123
|
-
} catch (
|
|
124
|
-
throw s(),
|
|
122
|
+
o = n.lock(r);
|
|
123
|
+
} catch (i) {
|
|
124
|
+
throw s(), i;
|
|
125
125
|
}
|
|
126
|
-
return E(
|
|
127
|
-
(
|
|
128
|
-
(
|
|
129
|
-
throw s(),
|
|
126
|
+
return E(o) ? o.then(
|
|
127
|
+
(i) => (s(), i),
|
|
128
|
+
(i) => {
|
|
129
|
+
throw s(), i;
|
|
130
130
|
}
|
|
131
|
-
) : (s(),
|
|
131
|
+
) : (s(), o);
|
|
132
132
|
}
|
|
133
133
|
hasQueued(e) {
|
|
134
134
|
const r = this._lockers.get(e);
|
|
135
135
|
return r != null && r.hasQueued;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
async function
|
|
138
|
+
var Pt = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.error = 1] = "error", t[t.warn = 2] = "warn", t[t.debug = 3] = "debug", t))(Pt || {});
|
|
139
|
+
async function Ar(t) {
|
|
140
140
|
const e = t.abortSignal ?? null, r = t.timeController ?? bt;
|
|
141
141
|
let n = 0;
|
|
142
142
|
for (; ; )
|
|
143
143
|
try {
|
|
144
144
|
return await t.func({ abortSignal: e });
|
|
145
145
|
} catch (s) {
|
|
146
|
-
if ((t.logLevel == null || t.logLevel >=
|
|
146
|
+
if ((t.logLevel == null || t.logLevel >= Pt.error) && console.error("[withRetry] error", s), e?.aborted)
|
|
147
147
|
throw s;
|
|
148
|
-
const
|
|
148
|
+
const o = t.delay({
|
|
149
149
|
error: s,
|
|
150
150
|
retryCount: n++,
|
|
151
151
|
abortSignal: e
|
|
152
152
|
});
|
|
153
|
-
if (
|
|
153
|
+
if (o == null || (typeof o == "number" ? await oe(o, e ?? void 0, r) : await o(), e?.aborted))
|
|
154
154
|
throw s;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Tr({
|
|
158
158
|
maxRetries: t,
|
|
159
159
|
delays: e,
|
|
160
160
|
isRetriableError: r
|
|
161
161
|
}) {
|
|
162
|
-
return function({ retryCount: s, error:
|
|
162
|
+
return function({ retryCount: s, error: o }) {
|
|
163
163
|
if (s == null || t != null && s >= t)
|
|
164
164
|
return null;
|
|
165
|
-
if (r == null || r(
|
|
165
|
+
if (r == null || r(o)) {
|
|
166
166
|
if (Array.isArray(e))
|
|
167
167
|
return e[Math.min(s, e.length - 1)];
|
|
168
168
|
{
|
|
169
|
-
const
|
|
170
|
-
return Math.min(e.min *
|
|
169
|
+
const i = e.mult ?? 2;
|
|
170
|
+
return Math.min(e.min * i ** s, e.max);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
return null;
|
|
@@ -182,7 +182,7 @@ async function I(t) {
|
|
|
182
182
|
throw n.reason;
|
|
183
183
|
}), r;
|
|
184
184
|
}
|
|
185
|
-
class
|
|
185
|
+
class me {
|
|
186
186
|
_options;
|
|
187
187
|
_statsMap = null;
|
|
188
188
|
_totalSize = null;
|
|
@@ -192,13 +192,13 @@ class ce {
|
|
|
192
192
|
}
|
|
193
193
|
async loadStatsMap(e) {
|
|
194
194
|
const r = await this._options.storage.getEntries(), n = [];
|
|
195
|
-
r.forEach((s,
|
|
196
|
-
const
|
|
197
|
-
E(
|
|
198
|
-
|
|
199
|
-
e(
|
|
195
|
+
r.forEach((s, o) => {
|
|
196
|
+
const i = this._options.converter ? this._options.converter.from(s) : s;
|
|
197
|
+
E(i) ? n.push(
|
|
198
|
+
i.then((a) => {
|
|
199
|
+
e(o, a);
|
|
200
200
|
})
|
|
201
|
-
) : e(
|
|
201
|
+
) : e(o, i);
|
|
202
202
|
}), await Promise.all(n);
|
|
203
203
|
}
|
|
204
204
|
init() {
|
|
@@ -233,16 +233,16 @@ class ce {
|
|
|
233
233
|
return await this.init(), this._statsMap;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function pe(t, e) {
|
|
237
237
|
return t[1].dateUsed !== e[1].dateUsed ? t[1].dateUsed < e[1].dateUsed ? -1 : 1 : t[1].size !== e[1].size ? t[1].size < e[1].size ? -1 : 1 : t[1].dateModified !== e[1].dateModified ? t[1].dateModified < e[1].dateModified ? -1 : 1 : t[0] !== e[0] ? t[0] < e[0] ? -1 : 1 : 0;
|
|
238
238
|
}
|
|
239
|
-
class
|
|
239
|
+
class kr {
|
|
240
240
|
_options;
|
|
241
241
|
_timeController;
|
|
242
242
|
_locker;
|
|
243
243
|
_stats;
|
|
244
244
|
constructor(e) {
|
|
245
|
-
this._options = e, this._timeController = e.timeController ?? bt, this._locker = new
|
|
245
|
+
this._options = e, this._timeController = e.timeController ?? bt, this._locker = new he(), this._stats = new me({
|
|
246
246
|
storage: e.storages.stat,
|
|
247
247
|
converter: e.converterStat
|
|
248
248
|
});
|
|
@@ -250,25 +250,25 @@ class $r {
|
|
|
250
250
|
async freeUpSpace(e, r, n) {
|
|
251
251
|
if (this._options.totalSize == null)
|
|
252
252
|
return;
|
|
253
|
-
const s = this._options.totalSize[0],
|
|
254
|
-
if (n >
|
|
253
|
+
const s = this._options.totalSize[0], o = this._options.totalSize[1];
|
|
254
|
+
if (n > o)
|
|
255
255
|
throw new Error(
|
|
256
|
-
`[Cache][freeUpSpace] value size (${n}) exceeds maximum total size (${
|
|
256
|
+
`[Cache][freeUpSpace] value size (${n}) exceeds maximum total size (${o})`
|
|
257
257
|
);
|
|
258
|
-
let
|
|
259
|
-
if (
|
|
258
|
+
let i = await this._stats.getTotalSize();
|
|
259
|
+
if (i += n - (r ?? 0), i <= o)
|
|
260
260
|
return;
|
|
261
261
|
const a = [], u = await this._stats.getEntries(), l = Array.from(u.entries());
|
|
262
|
-
l.sort(
|
|
262
|
+
l.sort(pe), l.forEach(([c, d]) => {
|
|
263
263
|
if (c === e || this._locker.hasQueued(c))
|
|
264
264
|
return;
|
|
265
265
|
const f = -d.size;
|
|
266
|
-
(
|
|
266
|
+
(i > o || i + f > s) && (a.push(
|
|
267
267
|
this._locker.lock(c, async () => (await I([
|
|
268
268
|
this._options.storages.value.delete(c),
|
|
269
269
|
this._options.storages.error.delete(c)
|
|
270
270
|
]), this._stats.set(c, null)))
|
|
271
|
-
),
|
|
271
|
+
), i += f);
|
|
272
272
|
}), await I(a);
|
|
273
273
|
}
|
|
274
274
|
async getOrCreate(e, r) {
|
|
@@ -290,25 +290,25 @@ class $r {
|
|
|
290
290
|
const m = {
|
|
291
291
|
...s,
|
|
292
292
|
dateUsed: h
|
|
293
|
-
},
|
|
294
|
-
return await this._stats.set(n, m),
|
|
293
|
+
}, g = this._options.converterValue ? await this._options.converterValue.from(p) : p;
|
|
294
|
+
return await this._stats.set(n, m), g;
|
|
295
295
|
}
|
|
296
296
|
if (s.hasError && f != null) {
|
|
297
297
|
const m = {
|
|
298
298
|
...s,
|
|
299
299
|
dateUsed: h
|
|
300
|
-
},
|
|
301
|
-
throw await this._stats.set(n, m),
|
|
300
|
+
}, g = this._options.converterError ? await this._options.converterError.from(f) : f;
|
|
301
|
+
throw await this._stats.set(n, m), g;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
let
|
|
304
|
+
let o = null, i = null, a = !1;
|
|
305
305
|
try {
|
|
306
|
-
|
|
306
|
+
o = await r(e);
|
|
307
307
|
} catch (p) {
|
|
308
|
-
|
|
308
|
+
i = p, a = !0;
|
|
309
309
|
}
|
|
310
310
|
if (a) {
|
|
311
|
-
const p = this._options.converterError ? await this._options.converterError.to(
|
|
311
|
+
const p = this._options.converterError ? await this._options.converterError.to(i) : i, f = this._options.getSize.error(p) + this._options.getSize.stat();
|
|
312
312
|
await this.freeUpSpace(n, s?.size, f), await I([
|
|
313
313
|
this._options.storages.error.set(n, p),
|
|
314
314
|
this._options.storages.value.delete(n)
|
|
@@ -319,9 +319,9 @@ class $r {
|
|
|
319
319
|
size: f,
|
|
320
320
|
hasError: !0
|
|
321
321
|
};
|
|
322
|
-
throw await this._stats.set(n, m),
|
|
322
|
+
throw await this._stats.set(n, m), i;
|
|
323
323
|
}
|
|
324
|
-
const u = this._options.converterValue ? await this._options.converterValue.to(
|
|
324
|
+
const u = this._options.converterValue ? await this._options.converterValue.to(o) : o, l = this._options.getSize.value(u) + this._options.getSize.stat();
|
|
325
325
|
await this.freeUpSpace(n, s?.size, l), await I([
|
|
326
326
|
this._options.storages.value.set(n, u),
|
|
327
327
|
this._options.storages.error.delete(n)
|
|
@@ -331,7 +331,7 @@ class $r {
|
|
|
331
331
|
dateUsed: c,
|
|
332
332
|
size: l
|
|
333
333
|
};
|
|
334
|
-
return await this._stats.set(n, d),
|
|
334
|
+
return await this._stats.set(n, d), o;
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
async delete(e) {
|
|
@@ -353,21 +353,21 @@ class $r {
|
|
|
353
353
|
this._options.storages.value.getKeys(),
|
|
354
354
|
this._options.storages.error.getKeys(),
|
|
355
355
|
this._options.storages.stat.getKeys()
|
|
356
|
-
]), s = /* @__PURE__ */ new Set([...e, ...r, ...n]),
|
|
357
|
-
s.forEach((
|
|
358
|
-
const a = this._locker.lock(
|
|
359
|
-
const u = [], l = this._options.storages.value.delete(
|
|
356
|
+
]), s = /* @__PURE__ */ new Set([...e, ...r, ...n]), o = [];
|
|
357
|
+
s.forEach((i) => {
|
|
358
|
+
const a = this._locker.lock(i, async () => {
|
|
359
|
+
const u = [], l = this._options.storages.value.delete(i);
|
|
360
360
|
E(l) && u.push(l);
|
|
361
|
-
const c = this._options.storages.error.delete(
|
|
361
|
+
const c = this._options.storages.error.delete(i);
|
|
362
362
|
E(c) && u.push(c);
|
|
363
|
-
const d = this._stats.set(
|
|
363
|
+
const d = this._stats.set(i, null);
|
|
364
364
|
E(d) && u.push(d), await I(u);
|
|
365
365
|
});
|
|
366
|
-
E(a) &&
|
|
367
|
-
}), await I(
|
|
366
|
+
E(a) && o.push(a);
|
|
367
|
+
}), await I(o);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
class
|
|
370
|
+
class Ir {
|
|
371
371
|
_cache = /* @__PURE__ */ new Map();
|
|
372
372
|
set(e, r) {
|
|
373
373
|
this._cache.set(e, r);
|
|
@@ -441,7 +441,7 @@ function Z(t, e) {
|
|
|
441
441
|
}
|
|
442
442
|
return !1;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function zr(t, e) {
|
|
445
445
|
if (t == null || e == null)
|
|
446
446
|
return t == null == (e == null);
|
|
447
447
|
if (t.size !== e.size)
|
|
@@ -451,7 +451,7 @@ function Ar(t, e) {
|
|
|
451
451
|
return !1;
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Ur(t, e) {
|
|
455
455
|
const r = t.length;
|
|
456
456
|
if (r !== e.length)
|
|
457
457
|
return !1;
|
|
@@ -460,20 +460,20 @@ function Cr(t, e) {
|
|
|
460
460
|
return !1;
|
|
461
461
|
return !0;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
return !t || typeof t != "object" ? t : Array.isArray(t) ? t.map(
|
|
465
|
-
const n =
|
|
463
|
+
function _t(t) {
|
|
464
|
+
return !t || typeof t != "object" ? t : Array.isArray(t) ? t.map(_t) : t && Object.keys(t).sort().reduce((e, r) => {
|
|
465
|
+
const n = _t(t[r]);
|
|
466
466
|
return n != null && (e[r] = n), e;
|
|
467
467
|
}, {});
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Pr(t, e) {
|
|
470
470
|
return Object.defineProperty(t, "name", { value: e, configurable: !0 }), t;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
return t =
|
|
472
|
+
function de(t) {
|
|
473
|
+
return t = _t(t), JSON.stringify(t ?? null);
|
|
474
474
|
}
|
|
475
475
|
let H = null;
|
|
476
|
-
function
|
|
476
|
+
function ye() {
|
|
477
477
|
if (!H) {
|
|
478
478
|
H = new Array(256);
|
|
479
479
|
for (let t = 0; t < 256; t++)
|
|
@@ -481,16 +481,16 @@ function me() {
|
|
|
481
481
|
}
|
|
482
482
|
return H;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
const e =
|
|
484
|
+
function _e(t) {
|
|
485
|
+
const e = ye(), r = new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
|
486
486
|
let n = "";
|
|
487
|
-
for (let s = 0,
|
|
487
|
+
for (let s = 0, o = r.length; s < o; s++)
|
|
488
488
|
n += e[r[s]];
|
|
489
489
|
return n;
|
|
490
490
|
}
|
|
491
|
-
let
|
|
492
|
-
function
|
|
493
|
-
|
|
491
|
+
let gt = null, vt = null, tt = null, Nt = null;
|
|
492
|
+
function ge() {
|
|
493
|
+
gt || (gt = new Uint32Array([
|
|
494
494
|
1116352408,
|
|
495
495
|
1899447441,
|
|
496
496
|
3049323471,
|
|
@@ -555,23 +555,23 @@ function de() {
|
|
|
555
555
|
2756734187,
|
|
556
556
|
3204031479,
|
|
557
557
|
3329325298
|
|
558
|
-
]),
|
|
558
|
+
]), vt = new Uint32Array(64), Nt = new TextEncoder(), tt = new Uint8Array(65536));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function we(t) {
|
|
561
561
|
if (t == null)
|
|
562
562
|
return null;
|
|
563
|
-
|
|
564
|
-
const e =
|
|
565
|
-
let s = tt,
|
|
563
|
+
ge();
|
|
564
|
+
const e = gt, r = vt, n = Nt;
|
|
565
|
+
let s = tt, o;
|
|
566
566
|
if (typeof t == "string") {
|
|
567
567
|
const w = t.length * 3;
|
|
568
568
|
s.length < w + 128 && (s = tt = new Uint8Array(w + 128));
|
|
569
|
-
const
|
|
570
|
-
|
|
569
|
+
const _ = n.encodeInto(t, s);
|
|
570
|
+
o = s.subarray(0, _.written);
|
|
571
571
|
} else if (t instanceof Uint8Array)
|
|
572
|
-
|
|
572
|
+
o = t;
|
|
573
573
|
else if (ArrayBuffer.isView(t))
|
|
574
|
-
|
|
574
|
+
o = new Uint8Array(
|
|
575
575
|
t.buffer,
|
|
576
576
|
t.byteOffset,
|
|
577
577
|
t.byteLength
|
|
@@ -580,105 +580,105 @@ function _e(t) {
|
|
|
580
580
|
throw new Error(
|
|
581
581
|
`[sha256Buffer] Unsupported content type: ${typeof t}`
|
|
582
582
|
);
|
|
583
|
-
const
|
|
584
|
-
s.length < a && (s = tt = new Uint8Array(a)),
|
|
585
|
-
for (let w =
|
|
583
|
+
const i = o.length, a = i + 72 >>> 6 << 6;
|
|
584
|
+
s.length < a && (s = tt = new Uint8Array(a)), o !== s && s.set(o), s[i] = 128;
|
|
585
|
+
for (let w = i + 1; w < a; w++)
|
|
586
586
|
s[w] = 0;
|
|
587
|
-
const u =
|
|
587
|
+
const u = i * 8, l = u / 4294967296 | 0, c = u | 0;
|
|
588
588
|
s[a - 8] = l >>> 24, s[a - 7] = l >>> 16, s[a - 6] = l >>> 8, s[a - 5] = l, s[a - 4] = c >>> 24, s[a - 3] = c >>> 16, s[a - 2] = c >>> 8, s[a - 1] = c;
|
|
589
|
-
let d = 1779033703, p = -1150833019, f = 1013904242, h = -1521486534, m = 1359893119,
|
|
589
|
+
let d = 1779033703, p = -1150833019, f = 1013904242, h = -1521486534, m = 1359893119, g = -1694144372, S = 528734635, O = 1541459225;
|
|
590
590
|
for (let w = 0; w < a; w += 64) {
|
|
591
591
|
for (let b = 0; b < 16; b++) {
|
|
592
592
|
const x = w + (b << 2);
|
|
593
593
|
r[b] = s[x] << 24 | s[x + 1] << 16 | s[x + 2] << 8 | s[x + 3];
|
|
594
594
|
}
|
|
595
595
|
for (let b = 16; b < 64; b++) {
|
|
596
|
-
const x = r[b - 15],
|
|
597
|
-
r[b] = r[b - 16] + ft + r[b - 7] +
|
|
596
|
+
const x = r[b - 15], k = r[b - 2], ft = (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3, q = (k >>> 17 | k << 15) ^ (k >>> 19 | k << 13) ^ k >>> 10;
|
|
597
|
+
r[b] = r[b - 16] + ft + r[b - 7] + q | 0;
|
|
598
598
|
}
|
|
599
|
-
let
|
|
599
|
+
let _ = d, M = p, G = f, lt = h, C = m, J = g, L = S, ct = O;
|
|
600
600
|
for (let b = 0; b < 64; b += 4)
|
|
601
601
|
for (let x = 0; x < 4; x++) {
|
|
602
|
-
const
|
|
603
|
-
ct = L, L = J, J =
|
|
602
|
+
const k = b + x, ft = (C >>> 6 | C << 26) ^ (C >>> 11 | C << 21) ^ (C >>> 25 | C << 7), q = ct + ft + (L ^ C & (J ^ L)) + e[k] + r[k] | 0, re = ((_ >>> 2 | _ << 30) ^ (_ >>> 13 | _ << 19) ^ (_ >>> 22 | _ << 10)) + (_ & M ^ G & (_ ^ M)) | 0;
|
|
603
|
+
ct = L, L = J, J = C, C = lt + q | 0, lt = G, G = M, M = _, _ = q + re | 0;
|
|
604
604
|
}
|
|
605
|
-
d = d +
|
|
605
|
+
d = d + _ | 0, p = p + M | 0, f = f + G | 0, h = h + lt | 0, m = m + C | 0, g = g + J | 0, S = S + L | 0, O = O + ct | 0;
|
|
606
606
|
}
|
|
607
|
-
const $ = new Uint8Array(32), K = [d, p, f, h, m,
|
|
607
|
+
const $ = new Uint8Array(32), K = [d, p, f, h, m, g, S, O];
|
|
608
608
|
for (let w = 0; w < 8; w++) {
|
|
609
|
-
const
|
|
610
|
-
$[M] =
|
|
609
|
+
const _ = K[w], M = w << 2;
|
|
610
|
+
$[M] = _ >>> 24, $[M + 1] = _ >>> 16 & 255, $[M + 2] = _ >>> 8 & 255, $[M + 3] = _ & 255;
|
|
611
611
|
}
|
|
612
612
|
return $;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
const e =
|
|
616
|
-
return e ?
|
|
614
|
+
function be(t) {
|
|
615
|
+
const e = we(t);
|
|
616
|
+
return e ? _e(e) : null;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const e =
|
|
620
|
-
return
|
|
618
|
+
function vr(t) {
|
|
619
|
+
const e = de(t);
|
|
620
|
+
return be(e);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Nr(t, e) {
|
|
623
623
|
return t == null ? e : (r, n) => t(r, (s) => e(s, n));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Dr(t, e) {
|
|
626
626
|
return t == null ? e : (r) => t(r, (n) => e(n));
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Se(t, e) {
|
|
629
629
|
return t == null ? e : (r, n) => t(r, (s) => e(s, n));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function xe(t, e) {
|
|
632
632
|
return t == null ? e : (r, n) => t(r, (s) => e(s, n));
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Ee(t, e) {
|
|
635
635
|
return t == null ? e : {
|
|
636
|
-
to:
|
|
636
|
+
to: Se(
|
|
637
637
|
(r, n) => t.to(r, n),
|
|
638
638
|
(r, n) => e.to(r, n)
|
|
639
639
|
)
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Oe(t, e) {
|
|
643
643
|
return t == null ? e : {
|
|
644
|
-
from:
|
|
644
|
+
from: xe(
|
|
645
645
|
(r, n) => t.from(r, n),
|
|
646
646
|
(r, n) => e.from(r, n)
|
|
647
647
|
)
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Rr(t, e) {
|
|
651
651
|
return t == null ? e : {
|
|
652
|
-
to:
|
|
653
|
-
from:
|
|
652
|
+
to: Ee(t, e).to,
|
|
653
|
+
from: Oe(t, e).from
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function $e(t, e) {
|
|
657
657
|
return t == null ? e : (r) => t(r, (n) => e(n));
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Me(t, e) {
|
|
660
660
|
return t == null ? e : (r) => t(r, (n) => e(n));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ce(t, e) {
|
|
663
663
|
return t == null ? e : {
|
|
664
|
-
to:
|
|
664
|
+
to: $e(
|
|
665
665
|
(r, n) => t.to(r, n),
|
|
666
666
|
(r) => e.to(r)
|
|
667
667
|
)
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Ae(t, e) {
|
|
671
671
|
return t == null ? e : {
|
|
672
|
-
from:
|
|
672
|
+
from: Me(
|
|
673
673
|
(r, n) => t.from(r, n),
|
|
674
674
|
(r) => e.from(r)
|
|
675
675
|
)
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Kr(t, e) {
|
|
679
679
|
return t == null ? e : {
|
|
680
|
-
to:
|
|
681
|
-
from:
|
|
680
|
+
to: Ce(t, e).to,
|
|
681
|
+
from: Ae(t, e).from
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
const Mt = {
|
|
@@ -687,7 +687,7 @@ const Mt = {
|
|
|
687
687
|
}, et = {
|
|
688
688
|
to: (t) => new TextEncoder().encode(t),
|
|
689
689
|
from: (t) => new TextDecoder().decode(t)
|
|
690
|
-
},
|
|
690
|
+
}, Ct = {
|
|
691
691
|
to: (t) => {
|
|
692
692
|
const e = Mt.to(t);
|
|
693
693
|
return et.to(e);
|
|
@@ -697,7 +697,43 @@ const Mt = {
|
|
|
697
697
|
return Mt.from(e);
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
function
|
|
700
|
+
async function Te(t, e) {
|
|
701
|
+
return new Promise((r, n) => {
|
|
702
|
+
ue(t, { level: e.level }, (s, o) => {
|
|
703
|
+
s ? n(s) : r(o);
|
|
704
|
+
});
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
function jr(t) {
|
|
708
|
+
return t[0] === 31 && t[1] === 139;
|
|
709
|
+
}
|
|
710
|
+
async function ke(t) {
|
|
711
|
+
return new Promise((e, r) => {
|
|
712
|
+
le(t, (n, s) => {
|
|
713
|
+
n ? r(n) : e(s);
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
function Dt(t) {
|
|
718
|
+
return {
|
|
719
|
+
to: (e) => t == null ? e : Te(e, t),
|
|
720
|
+
from: (e) => t == null ? e : ke(e)
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
function Vr(t) {
|
|
724
|
+
const e = Dt(t);
|
|
725
|
+
return {
|
|
726
|
+
to: (r) => {
|
|
727
|
+
const n = Ct.to(r);
|
|
728
|
+
return e.to(n);
|
|
729
|
+
},
|
|
730
|
+
from: async (r) => {
|
|
731
|
+
const n = await e.from(r);
|
|
732
|
+
return Ct.from(n);
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function Lr(t) {
|
|
701
737
|
return t == null ? null : t.replace(/[&<>"']/g, (e) => {
|
|
702
738
|
switch (e) {
|
|
703
739
|
case "&":
|
|
@@ -713,10 +749,10 @@ function vr(t) {
|
|
|
713
749
|
}
|
|
714
750
|
});
|
|
715
751
|
}
|
|
716
|
-
function
|
|
752
|
+
function Fr(t) {
|
|
717
753
|
return t == null ? null : t?.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
718
754
|
}
|
|
719
|
-
function
|
|
755
|
+
function Rt(t, e, r) {
|
|
720
756
|
const n = e == null ? t : new Date(
|
|
721
757
|
t.toLocaleString("en-US", {
|
|
722
758
|
timeZone: e
|
|
@@ -730,17 +766,17 @@ function Nt(t, e, r) {
|
|
|
730
766
|
t.getTime() + s.getTime() - n.getTime()
|
|
731
767
|
);
|
|
732
768
|
}
|
|
733
|
-
function
|
|
734
|
-
t =
|
|
735
|
-
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"),
|
|
736
|
-
return `${r}-${n}-${s} ${
|
|
769
|
+
function Ie(t, e) {
|
|
770
|
+
t = Rt(t, "UTC", e);
|
|
771
|
+
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"), o = t.getUTCHours().toString().padStart(2, "0"), i = t.getUTCMinutes().toString().padStart(2, "0"), a = t.getUTCSeconds().toString().padStart(2, "0");
|
|
772
|
+
return `${r}-${n}-${s} ${o}:${i}:${a}`;
|
|
737
773
|
}
|
|
738
|
-
let
|
|
774
|
+
let ze = 0;
|
|
739
775
|
const ht = /* @__PURE__ */ new WeakMap();
|
|
740
776
|
function j(t) {
|
|
741
777
|
if (ht.has(t))
|
|
742
778
|
return ht.get(t);
|
|
743
|
-
const e =
|
|
779
|
+
const e = ze++;
|
|
744
780
|
return ht.set(t, e), e;
|
|
745
781
|
}
|
|
746
782
|
function Q(t, e, r) {
|
|
@@ -748,8 +784,8 @@ function Q(t, e, r) {
|
|
|
748
784
|
return null;
|
|
749
785
|
if (e == null || t.length <= e)
|
|
750
786
|
return t;
|
|
751
|
-
const n = r?.appendEllipsis ? "…" : "", s = n.length + (r?.appendTruncatedLength ? String(t.length).length + 2 : 0),
|
|
752
|
-
return
|
|
787
|
+
const n = r?.appendEllipsis ? "…" : "", s = n.length + (r?.appendTruncatedLength ? String(t.length).length + 2 : 0), o = Math.max(0, e - s), i = r?.appendTruncatedLength ? `(${t.length - o})` : "";
|
|
788
|
+
return o <= 0 ? i + n : r?.fromStart ? i + n + t.slice(t.length - o) : t.slice(0, o) + n + i;
|
|
753
789
|
}
|
|
754
790
|
function At(t, e) {
|
|
755
791
|
try {
|
|
@@ -758,11 +794,11 @@ function At(t, e) {
|
|
|
758
794
|
return "Error: " + (r instanceof Error ? r.message : String(r));
|
|
759
795
|
}
|
|
760
796
|
}
|
|
761
|
-
function
|
|
797
|
+
function z(t, e, r, n) {
|
|
762
798
|
const {
|
|
763
799
|
pretty: s,
|
|
764
|
-
filter:
|
|
765
|
-
maxDepth:
|
|
800
|
+
filter: o,
|
|
801
|
+
maxDepth: i,
|
|
766
802
|
maxItems: a,
|
|
767
803
|
maxStringLength: u,
|
|
768
804
|
showObjectId: l,
|
|
@@ -773,7 +809,7 @@ function U(t, e, r, n) {
|
|
|
773
809
|
const f = d(
|
|
774
810
|
t,
|
|
775
811
|
r,
|
|
776
|
-
(h) =>
|
|
812
|
+
(h) => z(h, e, r, n)
|
|
777
813
|
);
|
|
778
814
|
if (f != null)
|
|
779
815
|
return Q(f, u, e?.truncateOptions);
|
|
@@ -792,9 +828,9 @@ function U(t, e, r, n) {
|
|
|
792
828
|
e?.truncateOptions
|
|
793
829
|
);
|
|
794
830
|
if (t instanceof Date)
|
|
795
|
-
return
|
|
831
|
+
return Ie(t);
|
|
796
832
|
if (t instanceof Object) {
|
|
797
|
-
if (n.has(t) ||
|
|
833
|
+
if (n.has(t) || i != null && p >= i)
|
|
798
834
|
return `${t.constructor === Object ? "" : t.constructor?.name ?? ""}#${j(t)}`;
|
|
799
835
|
n.add(t);
|
|
800
836
|
}
|
|
@@ -808,63 +844,63 @@ function U(t, e, r, n) {
|
|
|
808
844
|
const f = s ? " ".repeat(p) : "";
|
|
809
845
|
let h = "";
|
|
810
846
|
l && (h += `#${j(t)} `), h += "[";
|
|
811
|
-
let m = 0,
|
|
847
|
+
let m = 0, g = !1;
|
|
812
848
|
for (let S = 0; S < t.length; S++) {
|
|
813
849
|
if (a != null && m >= a) {
|
|
814
|
-
|
|
850
|
+
g = !0;
|
|
815
851
|
break;
|
|
816
852
|
}
|
|
817
853
|
const O = [...r, String(S)], $ = At(t, S);
|
|
818
|
-
if (
|
|
854
|
+
if (o != null && !o(O, $))
|
|
819
855
|
continue;
|
|
820
|
-
const K =
|
|
856
|
+
const K = z($, e, O, n);
|
|
821
857
|
m > 0 && (h += ","), s && (h += `
|
|
822
858
|
`), s && (h += `${f} `), c && (h += `${S}: `), h += `${K}`, m++;
|
|
823
859
|
}
|
|
824
|
-
return
|
|
860
|
+
return g ? (m > 0 && (h += ","), s ? (h += `
|
|
825
861
|
`, h += `${f} ...
|
|
826
862
|
`) : h += "...", h += f, h += "]") : (m > 0 && s && (h += `
|
|
827
863
|
${f}`), h += "]"), h;
|
|
828
864
|
}
|
|
829
865
|
if (t instanceof Map) {
|
|
830
866
|
let f = "";
|
|
831
|
-
return l && (f += `#${j(t)} `), f += "Map", f +=
|
|
867
|
+
return l && (f += `#${j(t)} `), f += "Map", f += z(Array.from(t.entries()), e, r, n), f;
|
|
832
868
|
}
|
|
833
869
|
if (t instanceof Set) {
|
|
834
870
|
let f = "";
|
|
835
|
-
return l && (f += `#${j(t)} `), f += "Set", f +=
|
|
871
|
+
return l && (f += `#${j(t)} `), f += "Set", f += z(Array.from(t.values()), e, r, n), f;
|
|
836
872
|
}
|
|
837
873
|
{
|
|
838
874
|
const f = t.constructor === Object ? "" : t.constructor?.name ?? "", h = s ? " ".repeat(p) : "";
|
|
839
875
|
let m = f ? `${f} ` : "";
|
|
840
876
|
l && (m += `#${j(t)} `), m += "{";
|
|
841
|
-
let
|
|
877
|
+
let g = 0, S = !1;
|
|
842
878
|
for (const O in t) {
|
|
843
|
-
if (a != null &&
|
|
879
|
+
if (a != null && g >= a) {
|
|
844
880
|
S = !0;
|
|
845
881
|
break;
|
|
846
882
|
}
|
|
847
883
|
const $ = [...r, O], K = At(t, O);
|
|
848
|
-
if (
|
|
884
|
+
if (o != null && !o($, K))
|
|
849
885
|
continue;
|
|
850
|
-
const w =
|
|
851
|
-
|
|
852
|
-
`), s && (m += `${h} `), m += `${O}: ${w}`,
|
|
886
|
+
const w = z(K, e, $, n);
|
|
887
|
+
g > 0 && (m += ","), s && (m += `
|
|
888
|
+
`), s && (m += `${h} `), m += `${O}: ${w}`, g++;
|
|
853
889
|
}
|
|
854
|
-
return S && (
|
|
890
|
+
return S && (g > 0 && (m += ","), s ? (m += `
|
|
855
891
|
`, m += `${h} ...
|
|
856
|
-
`) : m += "...", m += h),
|
|
892
|
+
`) : m += "...", m += h), g > 0 && s && !S && (m += `
|
|
857
893
|
${h}`), m += "}", m;
|
|
858
894
|
}
|
|
859
895
|
}
|
|
860
|
-
function
|
|
861
|
-
t =
|
|
862
|
-
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"),
|
|
863
|
-
return `${r}-${n}-${s}_${
|
|
896
|
+
function Ue(t, e) {
|
|
897
|
+
t = Rt(t, "UTC", e);
|
|
898
|
+
const r = t.getUTCFullYear().toString().padStart(4, "0"), n = (t.getUTCMonth() + 1).toString().padStart(2, "0"), s = t.getUTCDate().toString().padStart(2, "0"), o = t.getUTCHours().toString().padStart(2, "0"), i = t.getUTCMinutes().toString().padStart(2, "0"), a = t.getUTCSeconds().toString().padStart(2, "0");
|
|
899
|
+
return `${r}-${n}-${s}_${o}-${i}-${a}`;
|
|
864
900
|
}
|
|
865
|
-
const
|
|
901
|
+
const Tt = {
|
|
866
902
|
to: (t) => {
|
|
867
|
-
const e =
|
|
903
|
+
const e = z(t, {
|
|
868
904
|
pretty: !0,
|
|
869
905
|
maxDepth: 10,
|
|
870
906
|
maxItems: 50,
|
|
@@ -873,62 +909,59 @@ const Rr = {
|
|
|
873
909
|
return et.to(e);
|
|
874
910
|
},
|
|
875
911
|
from: (t) => et.from(t)
|
|
876
|
-
}
|
|
912
|
+
};
|
|
913
|
+
function Br(t) {
|
|
914
|
+
const e = Dt(t);
|
|
915
|
+
return {
|
|
916
|
+
to: (r) => {
|
|
917
|
+
const n = Tt.to(r);
|
|
918
|
+
return e.to(n);
|
|
919
|
+
},
|
|
920
|
+
from: async (r) => {
|
|
921
|
+
const n = await e.from(r);
|
|
922
|
+
return Tt.from(n);
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
const Wr = {
|
|
877
927
|
to: (t) => Array.from(t.entries()).reduce((e, [r, n]) => (e[r] = n, e), {}),
|
|
878
928
|
from: (t) => new Map(Object.entries(t))
|
|
879
|
-
},
|
|
929
|
+
}, Gr = {
|
|
880
930
|
to: (t) => Array.from(t),
|
|
881
931
|
from: (t) => new Set(t)
|
|
882
932
|
};
|
|
883
|
-
|
|
884
|
-
return new Promise((r, n) => {
|
|
885
|
-
ie(t, { level: e.level }, (s, i) => {
|
|
886
|
-
s ? n(s) : r(i);
|
|
887
|
-
});
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
function Lr(t) {
|
|
891
|
-
return t[0] === 31 && t[1] === 139;
|
|
892
|
-
}
|
|
893
|
-
async function Fr(t) {
|
|
894
|
-
return new Promise((e, r) => {
|
|
895
|
-
oe(t, (n, s) => {
|
|
896
|
-
n ? r(n) : e(s);
|
|
897
|
-
});
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
function ke(t, e) {
|
|
933
|
+
function Pe(t, e) {
|
|
901
934
|
return t == null ? e : e == null ? t : Math.min(t, e);
|
|
902
935
|
}
|
|
903
|
-
function
|
|
936
|
+
function ve(t, e) {
|
|
904
937
|
return t == null ? e : e == null ? t : Math.max(t, e);
|
|
905
938
|
}
|
|
906
|
-
function
|
|
907
|
-
return
|
|
939
|
+
function Jr(t, e, r) {
|
|
940
|
+
return ve(Pe(t, e), r);
|
|
908
941
|
}
|
|
909
|
-
function
|
|
942
|
+
function qr(t, e) {
|
|
910
943
|
return (t % e + e) % e;
|
|
911
944
|
}
|
|
912
|
-
function
|
|
945
|
+
function Ne(t) {
|
|
913
946
|
return function() {
|
|
914
947
|
let r = t += 1831565813;
|
|
915
948
|
return r = Math.imul(r ^ r >>> 15, r | 1), r ^= r + Math.imul(r ^ r >>> 7, r | 61), (r ^ r >>> 14) / 4294967296 + 0.5;
|
|
916
949
|
};
|
|
917
950
|
}
|
|
918
|
-
function
|
|
951
|
+
function De() {
|
|
919
952
|
return Math.random();
|
|
920
953
|
}
|
|
921
|
-
function
|
|
954
|
+
function Hr() {
|
|
922
955
|
return Math.random() * 2 ** 32 >>> 0;
|
|
923
956
|
}
|
|
924
|
-
function
|
|
925
|
-
return t != null ?
|
|
957
|
+
function Re(t) {
|
|
958
|
+
return t != null ? Ne(t) : De;
|
|
926
959
|
}
|
|
927
960
|
class wt {
|
|
928
961
|
_seed;
|
|
929
962
|
_rnd;
|
|
930
963
|
constructor(e) {
|
|
931
|
-
this._seed = e, this._rnd =
|
|
964
|
+
this._seed = e, this._rnd = Re(e);
|
|
932
965
|
}
|
|
933
966
|
get seed() {
|
|
934
967
|
return this._seed;
|
|
@@ -946,57 +979,57 @@ class wt {
|
|
|
946
979
|
return new wt(this._seed);
|
|
947
980
|
}
|
|
948
981
|
}
|
|
949
|
-
function
|
|
982
|
+
function Kt(t, e, r) {
|
|
950
983
|
if (r == null && (r = e, e = 0), r <= e)
|
|
951
984
|
throw new Error(
|
|
952
985
|
`[random][randomFloat] toExclusive (${r}) must be greater than from (${e})`
|
|
953
986
|
);
|
|
954
987
|
return t.next() * (r - e) + e;
|
|
955
988
|
}
|
|
956
|
-
function
|
|
957
|
-
return Math.floor(
|
|
989
|
+
function Ke(t, e, r) {
|
|
990
|
+
return Math.floor(Kt(t, e, r));
|
|
958
991
|
}
|
|
959
|
-
function
|
|
992
|
+
function Qr(t, e) {
|
|
960
993
|
return t.next() < (e ?? 0.5);
|
|
961
994
|
}
|
|
962
|
-
function
|
|
995
|
+
function Xr(t, e, r) {
|
|
963
996
|
if (Array.isArray(e)) {
|
|
964
|
-
const
|
|
965
|
-
e =
|
|
997
|
+
const o = e;
|
|
998
|
+
e = o.length, r = (i) => o[i];
|
|
966
999
|
}
|
|
967
1000
|
if (!r)
|
|
968
1001
|
throw new Error("[random][randomIndexWeighted] getWeight is required");
|
|
969
1002
|
let n = 0;
|
|
970
|
-
for (let
|
|
971
|
-
n += r(
|
|
1003
|
+
for (let o = 0; o < e; o++)
|
|
1004
|
+
n += r(o);
|
|
972
1005
|
if (n === 0)
|
|
973
1006
|
return -1;
|
|
974
|
-
let s =
|
|
975
|
-
for (let
|
|
976
|
-
if (s -= r(
|
|
977
|
-
return
|
|
1007
|
+
let s = Kt(t, n);
|
|
1008
|
+
for (let o = 0; o < e; o++)
|
|
1009
|
+
if (s -= r(o), s < 0)
|
|
1010
|
+
return o;
|
|
978
1011
|
return e - 1;
|
|
979
1012
|
}
|
|
980
|
-
function
|
|
1013
|
+
function jt(t, e) {
|
|
981
1014
|
if (e.length === 0)
|
|
982
1015
|
throw new Error("[random][randomItem] items is empty");
|
|
983
|
-
const r =
|
|
1016
|
+
const r = Ke(t, e.length);
|
|
984
1017
|
return e[r];
|
|
985
1018
|
}
|
|
986
|
-
function
|
|
1019
|
+
function Yr(t, e, r) {
|
|
987
1020
|
if (e.length === 0)
|
|
988
1021
|
throw new Error("[random][randomItems] items is empty");
|
|
989
1022
|
const n = [];
|
|
990
1023
|
for (let s = 0; s < r; s++)
|
|
991
|
-
n.push(
|
|
1024
|
+
n.push(jt(t, e));
|
|
992
1025
|
return n;
|
|
993
1026
|
}
|
|
994
|
-
function
|
|
1027
|
+
function Zr(t, e, r) {
|
|
995
1028
|
let n = Object.values(e);
|
|
996
|
-
return r && (n = n.filter(r)),
|
|
1029
|
+
return r && (n = n.filter(r)), jt(t, n);
|
|
997
1030
|
}
|
|
998
|
-
const
|
|
999
|
-
function
|
|
1031
|
+
const Vt = 1073741789, mt = (Vt >> 2) - 1;
|
|
1032
|
+
function tn(t = mt, e) {
|
|
1000
1033
|
if (t <= 0)
|
|
1001
1034
|
throw new Error(`[random][PseudoRandom] count(${t}) must be > 0`);
|
|
1002
1035
|
if (t > mt)
|
|
@@ -1009,98 +1042,98 @@ function Xr(t = mt, e) {
|
|
|
1009
1042
|
);
|
|
1010
1043
|
let r = e;
|
|
1011
1044
|
return function() {
|
|
1012
|
-
return r = (r +
|
|
1045
|
+
return r = (r + Vt) % t, r;
|
|
1013
1046
|
};
|
|
1014
1047
|
}
|
|
1015
1048
|
let F = null;
|
|
1016
|
-
function
|
|
1049
|
+
function en() {
|
|
1017
1050
|
const t = Date.now();
|
|
1018
1051
|
return F == null || t > F ? (F = t, t) : (F++, F);
|
|
1019
1052
|
}
|
|
1020
|
-
async function
|
|
1053
|
+
async function rn({
|
|
1021
1054
|
url: t,
|
|
1022
1055
|
timeout: e
|
|
1023
1056
|
} = {}) {
|
|
1024
1057
|
t || (t = typeof window < "u" ? "/" : "https://google.com");
|
|
1025
1058
|
let r;
|
|
1026
1059
|
try {
|
|
1027
|
-
const n = new
|
|
1060
|
+
const n = new Ut();
|
|
1028
1061
|
r = e ? setTimeout(() => {
|
|
1029
1062
|
n.abort();
|
|
1030
1063
|
}, e) : null;
|
|
1031
1064
|
const s = await fetch(t, {
|
|
1032
1065
|
method: "HEAD",
|
|
1033
|
-
signal:
|
|
1034
|
-
}),
|
|
1035
|
-
if (!
|
|
1066
|
+
signal: se(n.signal)
|
|
1067
|
+
}), o = s.headers.get("date");
|
|
1068
|
+
if (!o)
|
|
1036
1069
|
throw new Error(
|
|
1037
1070
|
`[Now][getDateInet] No date header in response: ${s.status} ${t}`
|
|
1038
1071
|
);
|
|
1039
|
-
return new Date(
|
|
1072
|
+
return new Date(o).getTime();
|
|
1040
1073
|
} finally {
|
|
1041
1074
|
r && clearTimeout(r);
|
|
1042
1075
|
}
|
|
1043
1076
|
}
|
|
1044
|
-
function
|
|
1077
|
+
function nn(t) {
|
|
1045
1078
|
const e = alert;
|
|
1046
1079
|
return window.alert = (r) => t(e, r), () => {
|
|
1047
1080
|
window.alert = e;
|
|
1048
1081
|
};
|
|
1049
1082
|
}
|
|
1050
1083
|
var B = /* @__PURE__ */ ((t) => (t.log = "log", t.warn = "warn", t.error = "error", t.info = "info", t.debug = "debug", t.trace = "trace", t.assert = "assert", t))(B || {});
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1084
|
+
const kt = Object.values(B);
|
|
1085
|
+
function v(t) {
|
|
1053
1086
|
return function() {
|
|
1054
1087
|
t.apply(console, arguments);
|
|
1055
1088
|
};
|
|
1056
1089
|
}
|
|
1057
|
-
const
|
|
1058
|
-
log:
|
|
1059
|
-
warn:
|
|
1060
|
-
error:
|
|
1061
|
-
info:
|
|
1062
|
-
debug:
|
|
1063
|
-
trace:
|
|
1064
|
-
assert:
|
|
1090
|
+
const It = {
|
|
1091
|
+
log: v(console.log),
|
|
1092
|
+
warn: v(console.warn),
|
|
1093
|
+
error: v(console.error),
|
|
1094
|
+
info: v(console.info),
|
|
1095
|
+
debug: v(console.debug),
|
|
1096
|
+
trace: v(console.trace),
|
|
1097
|
+
assert: v(console.assert)
|
|
1065
1098
|
};
|
|
1066
|
-
function
|
|
1067
|
-
return
|
|
1099
|
+
function Lt(t) {
|
|
1100
|
+
return kt.forEach((e) => {
|
|
1068
1101
|
console[e] = (...r) => {
|
|
1069
|
-
t(
|
|
1102
|
+
t(It, e, r);
|
|
1070
1103
|
};
|
|
1071
1104
|
}), () => {
|
|
1072
|
-
|
|
1073
|
-
console[e] =
|
|
1105
|
+
kt.forEach((e) => {
|
|
1106
|
+
console[e] = It[e];
|
|
1074
1107
|
});
|
|
1075
1108
|
};
|
|
1076
1109
|
}
|
|
1077
|
-
function
|
|
1110
|
+
function sn(t) {
|
|
1078
1111
|
return function(r) {
|
|
1079
1112
|
let n = null;
|
|
1080
|
-
const
|
|
1113
|
+
const o = Lt((a, u, l) => {
|
|
1081
1114
|
try {
|
|
1082
1115
|
t(a, u, l);
|
|
1083
1116
|
} catch (c) {
|
|
1084
1117
|
throw n || (n = c), c;
|
|
1085
1118
|
}
|
|
1086
|
-
}),
|
|
1087
|
-
if (
|
|
1119
|
+
}), i = () => {
|
|
1120
|
+
if (o(), n)
|
|
1088
1121
|
throw n;
|
|
1089
1122
|
};
|
|
1090
1123
|
try {
|
|
1091
1124
|
const a = r();
|
|
1092
1125
|
return E(a) ? a.then(
|
|
1093
|
-
(u) => (
|
|
1126
|
+
(u) => (i(), u),
|
|
1094
1127
|
(u) => {
|
|
1095
|
-
throw
|
|
1128
|
+
throw i(), u;
|
|
1096
1129
|
}
|
|
1097
|
-
) : (
|
|
1130
|
+
) : (i(), a);
|
|
1098
1131
|
} catch (a) {
|
|
1099
|
-
throw
|
|
1132
|
+
throw i(), a;
|
|
1100
1133
|
}
|
|
1101
1134
|
};
|
|
1102
1135
|
}
|
|
1103
|
-
class
|
|
1136
|
+
class Ft {
|
|
1104
1137
|
_listeners = /* @__PURE__ */ new Map();
|
|
1105
1138
|
_listenersAdd = /* @__PURE__ */ new Map();
|
|
1106
1139
|
_startStopNotifier;
|
|
@@ -1118,9 +1151,9 @@ class jt {
|
|
|
1118
1151
|
startStopNotifier: r,
|
|
1119
1152
|
hasLast: n,
|
|
1120
1153
|
last: s,
|
|
1121
|
-
actionOnCycle:
|
|
1154
|
+
actionOnCycle: o
|
|
1122
1155
|
} = {}) {
|
|
1123
|
-
this._startStopNotifier = r ?? null, this._emit = r ? (
|
|
1156
|
+
this._startStopNotifier = r ?? null, this._emit = r ? (i) => this.emit(i) : null, this._update = r ? (i) => this.update(i) : null, this._emitLast = e ?? !1, this._hasLast = n ?? !1, this._last = s, this._actionOnCycle = o ?? !1;
|
|
1124
1157
|
}
|
|
1125
1158
|
get hasLast() {
|
|
1126
1159
|
return this._hasLast;
|
|
@@ -1164,8 +1197,8 @@ class jt {
|
|
|
1164
1197
|
this._emitting = !0, this._emitLast && (this._last = e, this._hasLast = !0);
|
|
1165
1198
|
let n;
|
|
1166
1199
|
if (this._listeners.forEach((s) => {
|
|
1167
|
-
const
|
|
1168
|
-
E(
|
|
1200
|
+
const o = s(e);
|
|
1201
|
+
E(o) && (n || (n = []), n.push(o));
|
|
1169
1202
|
}), n)
|
|
1170
1203
|
return Promise.all(n).then(r, (s) => {
|
|
1171
1204
|
throw r(), s;
|
|
@@ -1184,33 +1217,33 @@ class jt {
|
|
|
1184
1217
|
return this.emit(r);
|
|
1185
1218
|
}
|
|
1186
1219
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return
|
|
1220
|
+
function je(t, e) {
|
|
1221
|
+
return z(t, {
|
|
1189
1222
|
maxDepth: 5,
|
|
1190
1223
|
maxItems: 10,
|
|
1191
1224
|
...e
|
|
1192
1225
|
});
|
|
1193
1226
|
}
|
|
1194
|
-
function
|
|
1227
|
+
function Ve(t) {
|
|
1195
1228
|
return t.map(
|
|
1196
|
-
(e) => e && typeof e == "object" ?
|
|
1229
|
+
(e) => e && typeof e == "object" ? je(e) : e
|
|
1197
1230
|
);
|
|
1198
1231
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return `${
|
|
1232
|
+
function on(t) {
|
|
1233
|
+
return `${Ue(/* @__PURE__ */ new Date())} [${t.level.toUpperCase()}] ${Ve(
|
|
1201
1234
|
t.args
|
|
1202
1235
|
).join(" ")}`;
|
|
1203
1236
|
}
|
|
1204
1237
|
let rt = null, pt = null;
|
|
1205
|
-
function
|
|
1206
|
-
return pt || (pt = new
|
|
1238
|
+
function Le() {
|
|
1239
|
+
return pt || (pt = new Ft({
|
|
1207
1240
|
startStopNotifier: (t) => (rt = t, () => {
|
|
1208
1241
|
rt = null;
|
|
1209
1242
|
})
|
|
1210
1243
|
})), pt;
|
|
1211
1244
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return
|
|
1245
|
+
function an() {
|
|
1246
|
+
return Lt((t, e, r) => {
|
|
1214
1247
|
e === "assert" && r[0] === !0 || (e === B.error || e === B.warn || e === B.assert) && (rt && rt({
|
|
1215
1248
|
date: Date.now(),
|
|
1216
1249
|
level: e,
|
|
@@ -1218,11 +1251,11 @@ function nn() {
|
|
|
1218
1251
|
}), t[e](...r));
|
|
1219
1252
|
});
|
|
1220
1253
|
}
|
|
1221
|
-
function
|
|
1254
|
+
function un(t) {
|
|
1222
1255
|
if (typeof window > "u")
|
|
1223
|
-
return
|
|
1256
|
+
return ie;
|
|
1224
1257
|
const { levels: e, predicate: r } = t;
|
|
1225
|
-
return
|
|
1258
|
+
return Le().subscribe((n) => {
|
|
1226
1259
|
if (e && !e.includes(n.level))
|
|
1227
1260
|
return;
|
|
1228
1261
|
const s = n.args.join(`
|
|
@@ -1230,7 +1263,7 @@ function sn(t) {
|
|
|
1230
1263
|
r && !r({ text: s, message: n }) || alert(s);
|
|
1231
1264
|
});
|
|
1232
1265
|
}
|
|
1233
|
-
function
|
|
1266
|
+
function Fe() {
|
|
1234
1267
|
let t = new Error().stack;
|
|
1235
1268
|
if (t != null) {
|
|
1236
1269
|
const e = t.indexOf(`
|
|
@@ -1239,9 +1272,9 @@ function Re() {
|
|
|
1239
1272
|
}
|
|
1240
1273
|
return t ?? "";
|
|
1241
1274
|
}
|
|
1242
|
-
function
|
|
1275
|
+
function ln(t) {
|
|
1243
1276
|
return function(...e) {
|
|
1244
|
-
const r =
|
|
1277
|
+
const r = Fe();
|
|
1245
1278
|
try {
|
|
1246
1279
|
return t.apply(this, e);
|
|
1247
1280
|
} catch (n) {
|
|
@@ -1250,10 +1283,10 @@ function on(t) {
|
|
|
1250
1283
|
}
|
|
1251
1284
|
};
|
|
1252
1285
|
}
|
|
1253
|
-
function
|
|
1286
|
+
function cn(t) {
|
|
1254
1287
|
return t != null && typeof t == "object" && typeof t.subscribe == "function";
|
|
1255
1288
|
}
|
|
1256
|
-
class
|
|
1289
|
+
class fn {
|
|
1257
1290
|
_subjects = /* @__PURE__ */ new Map();
|
|
1258
1291
|
_getLastEvent;
|
|
1259
1292
|
constructor({
|
|
@@ -1263,11 +1296,11 @@ class un {
|
|
|
1263
1296
|
}
|
|
1264
1297
|
subscribe(e, r) {
|
|
1265
1298
|
let n = this._subjects.get(e);
|
|
1266
|
-
n || (n = new
|
|
1299
|
+
n || (n = new Ft(), this._subjects.set(e, n));
|
|
1267
1300
|
const s = n.subscribe(r);
|
|
1268
1301
|
if (this._getLastEvent) {
|
|
1269
|
-
const
|
|
1270
|
-
r(
|
|
1302
|
+
const o = this._getLastEvent(e);
|
|
1303
|
+
r(o);
|
|
1271
1304
|
}
|
|
1272
1305
|
return () => {
|
|
1273
1306
|
s(), n?.hasListeners || this._subjects.delete(e);
|
|
@@ -1298,28 +1331,28 @@ class un {
|
|
|
1298
1331
|
};
|
|
1299
1332
|
}
|
|
1300
1333
|
}
|
|
1301
|
-
function
|
|
1334
|
+
function hn(t, e, r) {
|
|
1302
1335
|
return new Promise((n) => {
|
|
1303
|
-
let s = !1,
|
|
1304
|
-
function
|
|
1305
|
-
u?.(),
|
|
1336
|
+
let s = !1, o;
|
|
1337
|
+
function i(c) {
|
|
1338
|
+
u?.(), o?.(), s = !0, n(c);
|
|
1306
1339
|
}
|
|
1307
1340
|
function a(c) {
|
|
1308
|
-
u?.(),
|
|
1341
|
+
u?.(), o?.(), s = !0, n(Promise.reject(c));
|
|
1309
1342
|
}
|
|
1310
1343
|
const u = r?.subscribe(a);
|
|
1311
1344
|
let l = !0;
|
|
1312
|
-
|
|
1313
|
-
(!e || e(c, l)) &&
|
|
1314
|
-
}), s &&
|
|
1345
|
+
o = t.subscribe((c) => {
|
|
1346
|
+
(!e || e(c, l)) && i(c), l = !1;
|
|
1347
|
+
}), s && o?.();
|
|
1315
1348
|
});
|
|
1316
1349
|
}
|
|
1317
|
-
class
|
|
1350
|
+
class N extends Error {
|
|
1318
1351
|
constructor(e) {
|
|
1319
1352
|
super(e);
|
|
1320
1353
|
}
|
|
1321
1354
|
}
|
|
1322
|
-
class
|
|
1355
|
+
class y {
|
|
1323
1356
|
_args;
|
|
1324
1357
|
constructor(e) {
|
|
1325
1358
|
this._args = e && { ...e };
|
|
@@ -1338,30 +1371,30 @@ class _ {
|
|
|
1338
1371
|
return r ? typeof r == "string" ? r : r(e) : this.nameDefault(e);
|
|
1339
1372
|
}
|
|
1340
1373
|
}
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1374
|
+
function Bt(t, e) {
|
|
1375
|
+
return z(t, {
|
|
1343
1376
|
maxDepth: 1,
|
|
1344
1377
|
maxItems: 5,
|
|
1345
1378
|
...e
|
|
1346
1379
|
});
|
|
1347
1380
|
}
|
|
1348
1381
|
function D(t) {
|
|
1349
|
-
return t instanceof
|
|
1382
|
+
return t instanceof y;
|
|
1350
1383
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1384
|
+
function ot(t) {
|
|
1385
|
+
return Bt(t);
|
|
1353
1386
|
}
|
|
1354
1387
|
function St(t, ...e) {
|
|
1355
1388
|
if (t == null)
|
|
1356
1389
|
return "";
|
|
1357
|
-
const r =
|
|
1390
|
+
const r = Bt(t, {
|
|
1358
1391
|
filter: (n, s) => {
|
|
1359
1392
|
if (n.length === 0)
|
|
1360
1393
|
return !0;
|
|
1361
1394
|
if (n.length !== 1)
|
|
1362
1395
|
return !1;
|
|
1363
|
-
const
|
|
1364
|
-
return !(
|
|
1396
|
+
const o = n[0];
|
|
1397
|
+
return !(o === "name" || o === "expected" || s == null || s === !1 || e.includes(o));
|
|
1365
1398
|
}
|
|
1366
1399
|
});
|
|
1367
1400
|
return /^(#\d+\s*)\{}$/.test(r) ? "" : `(${r})`;
|
|
@@ -1370,38 +1403,38 @@ function nt(t) {
|
|
|
1370
1403
|
const { result: e, cause: r, nested: n, error: s } = t;
|
|
1371
1404
|
if (s) {
|
|
1372
1405
|
if (!(s instanceof Error))
|
|
1373
|
-
throw new
|
|
1406
|
+
throw new N(
|
|
1374
1407
|
`[test][validateMatchResult] error must be an instance of Error, but it is: ${s}`
|
|
1375
1408
|
);
|
|
1376
1409
|
if (e != null)
|
|
1377
|
-
throw new
|
|
1410
|
+
throw new N(
|
|
1378
1411
|
`[test][validateMatchResult] result must be null if error is set, but it is: ${e}`
|
|
1379
1412
|
);
|
|
1380
1413
|
if (r != null)
|
|
1381
|
-
throw new
|
|
1414
|
+
throw new N(
|
|
1382
1415
|
`[test][validateMatchResult] cause must be null if error is set, but it is: ${r}`
|
|
1383
1416
|
);
|
|
1384
1417
|
if (n != null)
|
|
1385
|
-
throw new
|
|
1418
|
+
throw new N(
|
|
1386
1419
|
`[test][validateMatchResult] nested must be null if error is set, but it is: ${n}`
|
|
1387
1420
|
);
|
|
1388
1421
|
return t;
|
|
1389
1422
|
}
|
|
1390
1423
|
if (typeof e != "boolean")
|
|
1391
|
-
throw new
|
|
1424
|
+
throw new N(
|
|
1392
1425
|
`[test][validateMatchResult] result must be a boolean, but it is: ${e}`
|
|
1393
1426
|
);
|
|
1394
1427
|
if (typeof r != "string" && r != null)
|
|
1395
|
-
throw new
|
|
1428
|
+
throw new N(
|
|
1396
1429
|
`[test][validateMatchResult] cause must be a string or null, but it is: ${r}`
|
|
1397
1430
|
);
|
|
1398
1431
|
if (n != null && !(n instanceof Array))
|
|
1399
|
-
throw new
|
|
1432
|
+
throw new N(
|
|
1400
1433
|
`[test][validateMatchResult] nested must be an array or null, but it is: ${n}`
|
|
1401
1434
|
);
|
|
1402
1435
|
return t;
|
|
1403
1436
|
}
|
|
1404
|
-
function
|
|
1437
|
+
function Be(t, e, r) {
|
|
1405
1438
|
return nt({
|
|
1406
1439
|
actual: t,
|
|
1407
1440
|
expected: e,
|
|
@@ -1411,7 +1444,7 @@ function Ke(t, e, r) {
|
|
|
1411
1444
|
error: r
|
|
1412
1445
|
});
|
|
1413
1446
|
}
|
|
1414
|
-
function
|
|
1447
|
+
function Wt(t, e, r) {
|
|
1415
1448
|
return nt({
|
|
1416
1449
|
actual: t,
|
|
1417
1450
|
expected: e,
|
|
@@ -1421,8 +1454,8 @@ function Lt(t, e, r) {
|
|
|
1421
1454
|
error: null
|
|
1422
1455
|
});
|
|
1423
1456
|
}
|
|
1424
|
-
function
|
|
1425
|
-
return typeof r == "boolean" ?
|
|
1457
|
+
function Gt(t, e, r) {
|
|
1458
|
+
return typeof r == "boolean" ? Wt(t, e, r) : nt(typeof r == "string" ? {
|
|
1426
1459
|
actual: t,
|
|
1427
1460
|
expected: e,
|
|
1428
1461
|
result: !1,
|
|
@@ -1438,20 +1471,20 @@ function Ft(t, e, r) {
|
|
|
1438
1471
|
error: null
|
|
1439
1472
|
});
|
|
1440
1473
|
}
|
|
1441
|
-
function
|
|
1474
|
+
function A(t, e) {
|
|
1442
1475
|
try {
|
|
1443
1476
|
if (D(e)) {
|
|
1444
1477
|
const r = e.match(t);
|
|
1445
|
-
return
|
|
1478
|
+
return Gt(t, e, r);
|
|
1446
1479
|
}
|
|
1447
|
-
return
|
|
1480
|
+
return Wt(t, e, t === e);
|
|
1448
1481
|
} catch (r) {
|
|
1449
|
-
return
|
|
1482
|
+
return Be(t, e, r);
|
|
1450
1483
|
}
|
|
1451
1484
|
}
|
|
1452
|
-
class
|
|
1485
|
+
class Jt extends y {
|
|
1453
1486
|
match(e) {
|
|
1454
|
-
const r = this._args.expected, n =
|
|
1487
|
+
const r = this._args.expected, n = A(e, r);
|
|
1455
1488
|
return {
|
|
1456
1489
|
result: !n.result,
|
|
1457
1490
|
nested: [
|
|
@@ -1466,21 +1499,21 @@ class Bt extends _ {
|
|
|
1466
1499
|
return "not";
|
|
1467
1500
|
}
|
|
1468
1501
|
}
|
|
1469
|
-
function
|
|
1470
|
-
const r =
|
|
1502
|
+
function We(t, e) {
|
|
1503
|
+
const r = qt(t.result, e);
|
|
1471
1504
|
return r ? {
|
|
1472
1505
|
actualKey: t.actualKey,
|
|
1473
1506
|
expectedKey: t.expectedKey,
|
|
1474
1507
|
result: r
|
|
1475
1508
|
} : null;
|
|
1476
1509
|
}
|
|
1477
|
-
function
|
|
1510
|
+
function qt(t, e) {
|
|
1478
1511
|
if (e ? !t.result : t.result)
|
|
1479
1512
|
return null;
|
|
1480
|
-
t.expected instanceof
|
|
1513
|
+
t.expected instanceof Jt && (e = !e);
|
|
1481
1514
|
let r = null;
|
|
1482
1515
|
return t.nested && t.nested.forEach((n) => {
|
|
1483
|
-
const s =
|
|
1516
|
+
const s = We(n, e);
|
|
1484
1517
|
s && (r || (r = []), r.push(s));
|
|
1485
1518
|
}), {
|
|
1486
1519
|
actual: t.actual,
|
|
@@ -1491,64 +1524,64 @@ function Wt(t, e) {
|
|
|
1491
1524
|
error: t.error
|
|
1492
1525
|
};
|
|
1493
1526
|
}
|
|
1494
|
-
function
|
|
1495
|
-
const r =
|
|
1527
|
+
function Ge(t, e) {
|
|
1528
|
+
const r = Ht(t.result, e + " ");
|
|
1496
1529
|
return `${e}${t.actualKey == null ? "| " : t.actualKey + ": "}${r}`;
|
|
1497
1530
|
}
|
|
1498
|
-
function
|
|
1531
|
+
function Ht(t, e) {
|
|
1499
1532
|
if (t.result)
|
|
1500
1533
|
return t.expected.toString();
|
|
1501
1534
|
let r = "";
|
|
1502
|
-
t.nested && (r = t.nested.map((s) =>
|
|
1535
|
+
t.nested && (r = t.nested.map((s) => Ge(s, e)).join(`
|
|
1503
1536
|
`));
|
|
1504
1537
|
let n = t.cause || "";
|
|
1505
1538
|
return r ? (n || (n = D(t.expected) ? t.expected.toString(t.actual) : ""), `${n}
|
|
1506
1539
|
${r}`) : `${n}
|
|
1507
1540
|
${e}expected: ${D(t.expected) ? t.expected.toString(t.actual) : t.expected}
|
|
1508
|
-
${e}actual: ${
|
|
1541
|
+
${e}actual: ${ot(t.actual)}`;
|
|
1509
1542
|
}
|
|
1510
|
-
class
|
|
1543
|
+
class Qt extends Error {
|
|
1511
1544
|
constructor(e) {
|
|
1512
1545
|
super(e);
|
|
1513
1546
|
}
|
|
1514
1547
|
}
|
|
1515
1548
|
function X(t) {
|
|
1516
1549
|
return function(r, n) {
|
|
1517
|
-
const s =
|
|
1550
|
+
const s = A(t, r);
|
|
1518
1551
|
if (s.error)
|
|
1519
1552
|
throw s.error;
|
|
1520
|
-
const
|
|
1521
|
-
if (!
|
|
1553
|
+
const o = qt(s, !1);
|
|
1554
|
+
if (!o)
|
|
1522
1555
|
return;
|
|
1523
|
-
const
|
|
1556
|
+
const i = Ht(o, "");
|
|
1524
1557
|
console.log(`[test][check] CheckError:
|
|
1525
|
-
` +
|
|
1526
|
-
const a = new
|
|
1558
|
+
` + i);
|
|
1559
|
+
const a = new Qt(i);
|
|
1527
1560
|
throw n?.(a), a;
|
|
1528
1561
|
};
|
|
1529
1562
|
}
|
|
1530
|
-
function
|
|
1563
|
+
function mn(t) {
|
|
1531
1564
|
return function(r, n) {
|
|
1532
1565
|
let s;
|
|
1533
1566
|
try {
|
|
1534
1567
|
s = t();
|
|
1535
|
-
} catch (
|
|
1536
|
-
X(
|
|
1568
|
+
} catch (o) {
|
|
1569
|
+
X(o)(n);
|
|
1537
1570
|
return;
|
|
1538
1571
|
}
|
|
1539
|
-
return E(s) ? s.then((
|
|
1540
|
-
if (
|
|
1541
|
-
throw
|
|
1572
|
+
return E(s) ? s.then((o) => (X(o)(r), o)).catch((o) => {
|
|
1573
|
+
if (o instanceof Qt)
|
|
1574
|
+
throw o;
|
|
1542
1575
|
try {
|
|
1543
|
-
X(
|
|
1544
|
-
} catch (
|
|
1545
|
-
throw console.error("[test][check] error",
|
|
1576
|
+
X(o)(n);
|
|
1577
|
+
} catch (i) {
|
|
1578
|
+
throw console.error("[test][check] error", i), o;
|
|
1546
1579
|
}
|
|
1547
1580
|
}) : (X(s)(r), s);
|
|
1548
1581
|
};
|
|
1549
1582
|
}
|
|
1550
|
-
const
|
|
1551
|
-
class
|
|
1583
|
+
const it = 10;
|
|
1584
|
+
class Xt extends y {
|
|
1552
1585
|
match(e) {
|
|
1553
1586
|
if (e == null)
|
|
1554
1587
|
return `Expected array, got "${e}"`;
|
|
@@ -1559,41 +1592,41 @@ class Gt extends _ {
|
|
|
1559
1592
|
const r = this._args?.expected;
|
|
1560
1593
|
if (r == null)
|
|
1561
1594
|
return !0;
|
|
1562
|
-
const n = this._args?.maxReportItems ??
|
|
1595
|
+
const n = this._args?.maxReportItems ?? it, s = this._args?.matchType || "equals";
|
|
1563
1596
|
if (s === "equals") {
|
|
1564
1597
|
if (e.length !== r.length)
|
|
1565
1598
|
return `Expected array length to be ${r.length}, got ${e.length}`;
|
|
1566
|
-
let
|
|
1599
|
+
let o = !0, i = 0, a = 0;
|
|
1567
1600
|
const u = [];
|
|
1568
1601
|
for (let l = 0; l < r.length; l++) {
|
|
1569
|
-
const c = e[l], d = r[l], p =
|
|
1570
|
-
if (p.result ? (
|
|
1602
|
+
const c = e[l], d = r[l], p = A(c, d);
|
|
1603
|
+
if (p.result ? (i < n && u.push({
|
|
1571
1604
|
actualKey: l,
|
|
1572
1605
|
expectedKey: l,
|
|
1573
1606
|
result: p
|
|
1574
|
-
}),
|
|
1607
|
+
}), i++) : (a < n && u.push({
|
|
1575
1608
|
actualKey: l,
|
|
1576
1609
|
expectedKey: l,
|
|
1577
1610
|
result: p
|
|
1578
|
-
}), a++,
|
|
1611
|
+
}), a++, o = !1), !o && i >= n && a >= n)
|
|
1579
1612
|
break;
|
|
1580
1613
|
}
|
|
1581
1614
|
return {
|
|
1582
|
-
result:
|
|
1615
|
+
result: o,
|
|
1583
1616
|
nested: u
|
|
1584
1617
|
};
|
|
1585
1618
|
}
|
|
1586
1619
|
if (s === "includes") {
|
|
1587
|
-
let
|
|
1588
|
-
const
|
|
1620
|
+
let o = !0;
|
|
1621
|
+
const i = [];
|
|
1589
1622
|
let a = 0, u = 0;
|
|
1590
1623
|
for (let l = 0; l < r.length; l++) {
|
|
1591
1624
|
const c = r[l];
|
|
1592
1625
|
let d = !1;
|
|
1593
1626
|
for (let p = 0; p < e.length; p++) {
|
|
1594
|
-
const f = e[p], h =
|
|
1627
|
+
const f = e[p], h = A(f, c);
|
|
1595
1628
|
if (h.result) {
|
|
1596
|
-
d = !0, a < n &&
|
|
1629
|
+
d = !0, a < n && i.push({
|
|
1597
1630
|
actualKey: p,
|
|
1598
1631
|
expectedKey: l,
|
|
1599
1632
|
result: h
|
|
@@ -1601,28 +1634,28 @@ class Gt extends _ {
|
|
|
1601
1634
|
break;
|
|
1602
1635
|
}
|
|
1603
1636
|
}
|
|
1604
|
-
if (d || (
|
|
1637
|
+
if (d || (o = !1, u < n && i.push({
|
|
1605
1638
|
expectedKey: l,
|
|
1606
1639
|
result: {
|
|
1607
1640
|
result: !1,
|
|
1608
1641
|
actual: void 0,
|
|
1609
1642
|
expected: c
|
|
1610
1643
|
}
|
|
1611
|
-
}), u++), !
|
|
1644
|
+
}), u++), !o && a >= n && u >= n)
|
|
1612
1645
|
break;
|
|
1613
1646
|
}
|
|
1614
1647
|
return {
|
|
1615
|
-
result:
|
|
1616
|
-
nested:
|
|
1648
|
+
result: o,
|
|
1649
|
+
nested: i
|
|
1617
1650
|
};
|
|
1618
1651
|
}
|
|
1619
1652
|
return `Unknown matchType "${s}"`;
|
|
1620
1653
|
}
|
|
1621
1654
|
nameDefault() {
|
|
1622
|
-
return `array ${this._args?.matchType || "equals"} ${
|
|
1655
|
+
return `array ${this._args?.matchType || "equals"} ${ot(this._args?.expected)}`;
|
|
1623
1656
|
}
|
|
1624
1657
|
}
|
|
1625
|
-
class
|
|
1658
|
+
class Je extends y {
|
|
1626
1659
|
match() {
|
|
1627
1660
|
return !0;
|
|
1628
1661
|
}
|
|
@@ -1630,7 +1663,7 @@ class Le extends _ {
|
|
|
1630
1663
|
return "any";
|
|
1631
1664
|
}
|
|
1632
1665
|
}
|
|
1633
|
-
class
|
|
1666
|
+
class qe extends y {
|
|
1634
1667
|
match(e) {
|
|
1635
1668
|
if (typeof e != "object")
|
|
1636
1669
|
return `Expected array, got "${typeof e}"`;
|
|
@@ -1638,19 +1671,19 @@ class Fe extends _ {
|
|
|
1638
1671
|
return "Expected array";
|
|
1639
1672
|
const r = this._args.expected;
|
|
1640
1673
|
let n = !0;
|
|
1641
|
-
const s = [],
|
|
1642
|
-
let
|
|
1674
|
+
const s = [], o = this._args?.maxReportItems ?? it;
|
|
1675
|
+
let i = 0, a = 0;
|
|
1643
1676
|
for (let u = 0; u < e.length; u++) {
|
|
1644
|
-
const l = e[u], c =
|
|
1645
|
-
if (c.result ? (
|
|
1677
|
+
const l = e[u], c = A(l, r);
|
|
1678
|
+
if (c.result ? (i < o && s.push({
|
|
1646
1679
|
actualKey: u,
|
|
1647
1680
|
expectedKey: u,
|
|
1648
1681
|
result: c
|
|
1649
|
-
}),
|
|
1682
|
+
}), i++) : (a < o && s.push({
|
|
1650
1683
|
actualKey: u,
|
|
1651
1684
|
expectedKey: u,
|
|
1652
1685
|
result: c
|
|
1653
|
-
}), a++, n = !1), !n &&
|
|
1686
|
+
}), a++, n = !1), !n && i >= o && a >= o)
|
|
1654
1687
|
break;
|
|
1655
1688
|
}
|
|
1656
1689
|
return {
|
|
@@ -1662,32 +1695,32 @@ class Fe extends _ {
|
|
|
1662
1695
|
return "array item";
|
|
1663
1696
|
}
|
|
1664
1697
|
}
|
|
1665
|
-
class
|
|
1698
|
+
class He extends y {
|
|
1666
1699
|
match(e) {
|
|
1667
|
-
const { expected: r, convert: n } = this._args, s =
|
|
1700
|
+
const { expected: r, convert: n } = this._args, s = A(n(e), r), o = [
|
|
1668
1701
|
{
|
|
1669
1702
|
result: s
|
|
1670
1703
|
}
|
|
1671
1704
|
];
|
|
1672
1705
|
return {
|
|
1673
1706
|
result: s.result,
|
|
1674
|
-
nested:
|
|
1707
|
+
nested: o
|
|
1675
1708
|
};
|
|
1676
1709
|
}
|
|
1677
1710
|
nameDefault() {
|
|
1678
1711
|
return "convert";
|
|
1679
1712
|
}
|
|
1680
1713
|
}
|
|
1681
|
-
class
|
|
1714
|
+
class Yt extends y {
|
|
1682
1715
|
match(e) {
|
|
1683
1716
|
const { expected: r, nonStrict: n } = this._args;
|
|
1684
1717
|
return n ? e == r : e === r;
|
|
1685
1718
|
}
|
|
1686
1719
|
nameDefault() {
|
|
1687
|
-
return `is(${
|
|
1720
|
+
return `is(${ot(this._args.expected)})`;
|
|
1688
1721
|
}
|
|
1689
1722
|
}
|
|
1690
|
-
class
|
|
1723
|
+
class Qe extends y {
|
|
1691
1724
|
match(e) {
|
|
1692
1725
|
if (e == null)
|
|
1693
1726
|
return `Expected number, got "${e}"`;
|
|
@@ -1706,7 +1739,7 @@ class We extends _ {
|
|
|
1706
1739
|
return `number(${St(this._args)})`;
|
|
1707
1740
|
}
|
|
1708
1741
|
}
|
|
1709
|
-
class
|
|
1742
|
+
class Xe extends y {
|
|
1710
1743
|
match(e) {
|
|
1711
1744
|
if (e == null)
|
|
1712
1745
|
return `Expected object, got "${e}"`;
|
|
@@ -1718,21 +1751,21 @@ class qe extends _ {
|
|
|
1718
1751
|
if (r == null)
|
|
1719
1752
|
return !0;
|
|
1720
1753
|
let n = !0;
|
|
1721
|
-
const s = [],
|
|
1722
|
-
let
|
|
1754
|
+
const s = [], o = this._args?.maxReportItems ?? it;
|
|
1755
|
+
let i = 0, a = 0;
|
|
1723
1756
|
for (const u in r) {
|
|
1724
1757
|
if (!Object.prototype.hasOwnProperty.call(r, u))
|
|
1725
1758
|
continue;
|
|
1726
|
-
const l = e[u], c = r[u], d =
|
|
1727
|
-
if (d.result ? (
|
|
1759
|
+
const l = e[u], c = r[u], d = A(l, c);
|
|
1760
|
+
if (d.result ? (i < o && s.push({
|
|
1728
1761
|
actualKey: u,
|
|
1729
1762
|
expectedKey: u,
|
|
1730
1763
|
result: d
|
|
1731
|
-
}),
|
|
1764
|
+
}), i++) : (a < o && s.push({
|
|
1732
1765
|
actualKey: u,
|
|
1733
1766
|
expectedKey: u,
|
|
1734
1767
|
result: d
|
|
1735
|
-
}), a++, n = !1), !n &&
|
|
1768
|
+
}), a++, n = !1), !n && i >= o && a >= o)
|
|
1736
1769
|
break;
|
|
1737
1770
|
}
|
|
1738
1771
|
if (!this._args?.ignoreExtraKeys)
|
|
@@ -1740,11 +1773,11 @@ class qe extends _ {
|
|
|
1740
1773
|
if (!Object.prototype.hasOwnProperty.call(e, u) || Object.prototype.hasOwnProperty.call(r, u))
|
|
1741
1774
|
continue;
|
|
1742
1775
|
const l = e[u];
|
|
1743
|
-
if (a <
|
|
1776
|
+
if (a < o && s.push({
|
|
1744
1777
|
actualKey: u,
|
|
1745
1778
|
expectedKey: u,
|
|
1746
|
-
result:
|
|
1747
|
-
}), a++, n = !1, a >=
|
|
1779
|
+
result: Gt(l, void 0, "Unexpected key")
|
|
1780
|
+
}), a++, n = !1, a >= o)
|
|
1748
1781
|
break;
|
|
1749
1782
|
}
|
|
1750
1783
|
return {
|
|
@@ -1756,7 +1789,7 @@ class qe extends _ {
|
|
|
1756
1789
|
return "object" + St(this._args);
|
|
1757
1790
|
}
|
|
1758
1791
|
}
|
|
1759
|
-
class
|
|
1792
|
+
class Ye extends y {
|
|
1760
1793
|
match(e) {
|
|
1761
1794
|
if (e == null)
|
|
1762
1795
|
return `Expected string, got ${e}`;
|
|
@@ -1777,7 +1810,7 @@ class Je extends _ {
|
|
|
1777
1810
|
return this._args?.pattern ? `string(${this._args.pattern})` : "string";
|
|
1778
1811
|
}
|
|
1779
1812
|
}
|
|
1780
|
-
class
|
|
1813
|
+
class Ze extends y {
|
|
1781
1814
|
match(e) {
|
|
1782
1815
|
const r = this._args.expected;
|
|
1783
1816
|
return e instanceof r ? !0 : `Expected instance of "${r}", got "${e}"`;
|
|
@@ -1786,7 +1819,7 @@ class Ge extends _ {
|
|
|
1786
1819
|
return `instanceOf(${this._args.expected.name})`;
|
|
1787
1820
|
}
|
|
1788
1821
|
}
|
|
1789
|
-
class
|
|
1822
|
+
class tr extends y {
|
|
1790
1823
|
constructor(e) {
|
|
1791
1824
|
super({
|
|
1792
1825
|
...e,
|
|
@@ -1797,39 +1830,39 @@ class He extends _ {
|
|
|
1797
1830
|
return !!this._args.expected.has(e);
|
|
1798
1831
|
}
|
|
1799
1832
|
nameDefault() {
|
|
1800
|
-
return `in(${
|
|
1833
|
+
return `in(${ot(this._args.expected)})`;
|
|
1801
1834
|
}
|
|
1802
1835
|
}
|
|
1803
|
-
class at extends
|
|
1836
|
+
class at extends y {
|
|
1804
1837
|
match(e) {
|
|
1805
1838
|
const { type: r, expecteds: n, pipe: s } = this._args;
|
|
1806
|
-
let
|
|
1807
|
-
const
|
|
1839
|
+
let o = r === "and";
|
|
1840
|
+
const i = [];
|
|
1808
1841
|
for (let a = 0; a < n.length; a++) {
|
|
1809
|
-
const u = n[a], l =
|
|
1810
|
-
if (
|
|
1842
|
+
const u = n[a], l = A(e, u);
|
|
1843
|
+
if (i.push({
|
|
1811
1844
|
actualKey: `<${r} ${a}>`,
|
|
1812
1845
|
expectedKey: `<${r} ${a}>`,
|
|
1813
1846
|
result: l
|
|
1814
1847
|
}), r === "or") {
|
|
1815
|
-
if (l.result && (
|
|
1848
|
+
if (l.result && (o = !0, s))
|
|
1816
1849
|
break;
|
|
1817
1850
|
} else if (r === "and") {
|
|
1818
|
-
if (!l.result && (
|
|
1851
|
+
if (!l.result && (o = !1, s))
|
|
1819
1852
|
break;
|
|
1820
1853
|
} else
|
|
1821
1854
|
throw new Error(`[test][MatcherFew] Unknown type "${r}"`);
|
|
1822
1855
|
}
|
|
1823
1856
|
return {
|
|
1824
|
-
result: n.length === 0 ||
|
|
1825
|
-
nested:
|
|
1857
|
+
result: n.length === 0 || o,
|
|
1858
|
+
nested: i
|
|
1826
1859
|
};
|
|
1827
1860
|
}
|
|
1828
1861
|
nameDefault() {
|
|
1829
1862
|
return this._args.type;
|
|
1830
1863
|
}
|
|
1831
1864
|
}
|
|
1832
|
-
class
|
|
1865
|
+
class er extends y {
|
|
1833
1866
|
match(e) {
|
|
1834
1867
|
const r = this._args.matcher;
|
|
1835
1868
|
return D(r) ? r.match(e) : r(e);
|
|
@@ -1839,7 +1872,7 @@ class Qe extends _ {
|
|
|
1839
1872
|
return typeof r == "string" ? r : r ? r(e) : "custom";
|
|
1840
1873
|
}
|
|
1841
1874
|
}
|
|
1842
|
-
class
|
|
1875
|
+
class rr extends y {
|
|
1843
1876
|
match() {
|
|
1844
1877
|
return !1;
|
|
1845
1878
|
}
|
|
@@ -1847,7 +1880,7 @@ class Xe extends _ {
|
|
|
1847
1880
|
return "never";
|
|
1848
1881
|
}
|
|
1849
1882
|
}
|
|
1850
|
-
class
|
|
1883
|
+
class nr extends y {
|
|
1851
1884
|
match(e) {
|
|
1852
1885
|
if (e == null)
|
|
1853
1886
|
return `Expected object, got "${e}"`;
|
|
@@ -1859,21 +1892,21 @@ class Ye extends _ {
|
|
|
1859
1892
|
if (r == null)
|
|
1860
1893
|
return !0;
|
|
1861
1894
|
let n = !0;
|
|
1862
|
-
const s = [],
|
|
1863
|
-
let
|
|
1895
|
+
const s = [], o = this._args?.maxReportItems ?? it;
|
|
1896
|
+
let i = 0, a = 0;
|
|
1864
1897
|
for (const u in e) {
|
|
1865
1898
|
if (!Object.prototype.hasOwnProperty.call(e, u))
|
|
1866
1899
|
continue;
|
|
1867
|
-
const l = [u, e[u]], c =
|
|
1868
|
-
if (c.result ? (
|
|
1900
|
+
const l = [u, e[u]], c = A(l, r);
|
|
1901
|
+
if (c.result ? (i < o && s.push({
|
|
1869
1902
|
actualKey: u,
|
|
1870
1903
|
expectedKey: u,
|
|
1871
1904
|
result: c
|
|
1872
|
-
}),
|
|
1905
|
+
}), i++) : (a < o && s.push({
|
|
1873
1906
|
actualKey: u,
|
|
1874
1907
|
expectedKey: u,
|
|
1875
1908
|
result: c
|
|
1876
|
-
}), a++, n = !1), !n &&
|
|
1909
|
+
}), a++, n = !1), !n && i >= o && a >= o)
|
|
1877
1910
|
break;
|
|
1878
1911
|
}
|
|
1879
1912
|
return {
|
|
@@ -1885,7 +1918,7 @@ class Ye extends _ {
|
|
|
1885
1918
|
return "object entries" + St(this._args);
|
|
1886
1919
|
}
|
|
1887
1920
|
}
|
|
1888
|
-
class
|
|
1921
|
+
class sr extends y {
|
|
1889
1922
|
_hasExpected = !1;
|
|
1890
1923
|
_expected = void 0;
|
|
1891
1924
|
get expected() {
|
|
@@ -1895,7 +1928,7 @@ class Ze extends _ {
|
|
|
1895
1928
|
this._expected = e, this._hasExpected = !0;
|
|
1896
1929
|
}
|
|
1897
1930
|
match(e) {
|
|
1898
|
-
const r =
|
|
1931
|
+
const r = A(e, this._expected), n = [
|
|
1899
1932
|
{
|
|
1900
1933
|
result: r
|
|
1901
1934
|
}
|
|
@@ -1910,134 +1943,134 @@ class Ze extends _ {
|
|
|
1910
1943
|
}
|
|
1911
1944
|
}
|
|
1912
1945
|
function R(t) {
|
|
1913
|
-
return new
|
|
1946
|
+
return new Xt({ expected: t });
|
|
1914
1947
|
}
|
|
1915
|
-
function
|
|
1916
|
-
return new
|
|
1948
|
+
function pn(t) {
|
|
1949
|
+
return new Xt({ expected: t, matchType: "includes" });
|
|
1917
1950
|
}
|
|
1918
1951
|
function W() {
|
|
1919
|
-
return new
|
|
1952
|
+
return new Je();
|
|
1920
1953
|
}
|
|
1921
|
-
function
|
|
1922
|
-
return new
|
|
1954
|
+
function dn() {
|
|
1955
|
+
return new sr();
|
|
1923
1956
|
}
|
|
1924
|
-
function
|
|
1925
|
-
return new
|
|
1957
|
+
function yn(t) {
|
|
1958
|
+
return new rr({ name: t });
|
|
1926
1959
|
}
|
|
1927
|
-
function
|
|
1928
|
-
const r = new
|
|
1929
|
-
return t == null ? r :
|
|
1930
|
-
|
|
1960
|
+
function _n(t, e) {
|
|
1961
|
+
const r = new qe({ expected: e });
|
|
1962
|
+
return t == null ? r : T(
|
|
1963
|
+
lr(
|
|
1931
1964
|
D(t) || typeof t == "number" ? t : ut(t)
|
|
1932
1965
|
),
|
|
1933
1966
|
r
|
|
1934
1967
|
).name("array item");
|
|
1935
1968
|
}
|
|
1936
|
-
function
|
|
1937
|
-
return new
|
|
1969
|
+
function U(t, e, r) {
|
|
1970
|
+
return new He({ name: t, convert: e, expected: r });
|
|
1938
1971
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return new
|
|
1972
|
+
function or(t) {
|
|
1973
|
+
return new Yt({ expected: t, nonStrict: !0 });
|
|
1941
1974
|
}
|
|
1942
|
-
function
|
|
1943
|
-
return new
|
|
1975
|
+
function ir(t) {
|
|
1976
|
+
return new Yt({ expected: t, nonStrict: !1 });
|
|
1944
1977
|
}
|
|
1945
|
-
function
|
|
1946
|
-
return new
|
|
1978
|
+
function Zt(t) {
|
|
1979
|
+
return new Qe(t);
|
|
1947
1980
|
}
|
|
1948
1981
|
function ut(t) {
|
|
1949
|
-
return
|
|
1982
|
+
return Zt({
|
|
1950
1983
|
...t,
|
|
1951
1984
|
float: !1
|
|
1952
1985
|
});
|
|
1953
1986
|
}
|
|
1954
|
-
function
|
|
1955
|
-
return
|
|
1987
|
+
function gn(t) {
|
|
1988
|
+
return Zt({
|
|
1956
1989
|
...t,
|
|
1957
1990
|
float: !0
|
|
1958
1991
|
});
|
|
1959
1992
|
}
|
|
1960
|
-
function
|
|
1961
|
-
return new
|
|
1993
|
+
function P(t) {
|
|
1994
|
+
return new Xe({ expected: t });
|
|
1962
1995
|
}
|
|
1963
1996
|
function dt(t, e, r = null) {
|
|
1964
|
-
if (t instanceof
|
|
1997
|
+
if (t instanceof y || e && (t = e(t, r), t instanceof y))
|
|
1965
1998
|
return t;
|
|
1966
1999
|
if (t == null)
|
|
1967
2000
|
return st();
|
|
1968
2001
|
if (Array.isArray(t)) {
|
|
1969
|
-
const n = t.map((s,
|
|
2002
|
+
const n = t.map((s, o) => dt(s, e, o));
|
|
1970
2003
|
return R(n);
|
|
1971
2004
|
}
|
|
1972
2005
|
if (t.constructor === Object) {
|
|
1973
2006
|
const n = {};
|
|
1974
2007
|
for (const s in t)
|
|
1975
2008
|
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = dt(t[s], e, s));
|
|
1976
|
-
return
|
|
2009
|
+
return P(n);
|
|
1977
2010
|
}
|
|
1978
|
-
return t instanceof
|
|
2011
|
+
return t instanceof ae ? dr({
|
|
1979
2012
|
...t,
|
|
1980
2013
|
value: dt(t.value, e, "value")
|
|
1981
|
-
}) :
|
|
2014
|
+
}) : ir(t);
|
|
1982
2015
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return
|
|
2016
|
+
function wn(t) {
|
|
2017
|
+
return P(t).set({
|
|
1985
2018
|
ignoreExtraKeys: !0
|
|
1986
2019
|
});
|
|
1987
2020
|
}
|
|
1988
|
-
function
|
|
1989
|
-
return new
|
|
2021
|
+
function te(t) {
|
|
2022
|
+
return new Ye({
|
|
1990
2023
|
pattern: t
|
|
1991
2024
|
});
|
|
1992
2025
|
}
|
|
1993
|
-
function
|
|
1994
|
-
return new
|
|
2026
|
+
function bn(t) {
|
|
2027
|
+
return new Ze({ expected: t });
|
|
1995
2028
|
}
|
|
1996
|
-
function
|
|
1997
|
-
return
|
|
2029
|
+
function ar(t) {
|
|
2030
|
+
return U(
|
|
1998
2031
|
"typeof",
|
|
1999
2032
|
(e) => e === null ? "null" : typeof e,
|
|
2000
2033
|
t
|
|
2001
2034
|
);
|
|
2002
2035
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return
|
|
2036
|
+
function Sn(t) {
|
|
2037
|
+
return U(
|
|
2005
2038
|
"constructor",
|
|
2006
2039
|
(e) => e.constructor,
|
|
2007
2040
|
t
|
|
2008
2041
|
);
|
|
2009
2042
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2043
|
+
function yt() {
|
|
2044
|
+
return ar("boolean");
|
|
2012
2045
|
}
|
|
2013
2046
|
function st() {
|
|
2014
|
-
return
|
|
2047
|
+
return or(null);
|
|
2015
2048
|
}
|
|
2016
|
-
function
|
|
2017
|
-
return
|
|
2049
|
+
function xn() {
|
|
2050
|
+
return pr(st());
|
|
2018
2051
|
}
|
|
2019
|
-
function
|
|
2052
|
+
function En(...t) {
|
|
2020
2053
|
return new at({
|
|
2021
2054
|
expecteds: t,
|
|
2022
2055
|
type: "or",
|
|
2023
2056
|
pipe: !1
|
|
2024
2057
|
});
|
|
2025
2058
|
}
|
|
2026
|
-
function
|
|
2059
|
+
function On(...t) {
|
|
2027
2060
|
return new at({
|
|
2028
2061
|
expecteds: t,
|
|
2029
2062
|
type: "and",
|
|
2030
2063
|
pipe: !1
|
|
2031
2064
|
});
|
|
2032
2065
|
}
|
|
2033
|
-
function
|
|
2066
|
+
function ur(...t) {
|
|
2034
2067
|
return new at({
|
|
2035
2068
|
expecteds: t,
|
|
2036
2069
|
type: "or",
|
|
2037
2070
|
pipe: !0
|
|
2038
2071
|
});
|
|
2039
2072
|
}
|
|
2040
|
-
function
|
|
2073
|
+
function T(...t) {
|
|
2041
2074
|
return new at({
|
|
2042
2075
|
expecteds: t,
|
|
2043
2076
|
type: "and",
|
|
@@ -2045,52 +2078,52 @@ function k(...t) {
|
|
|
2045
2078
|
});
|
|
2046
2079
|
}
|
|
2047
2080
|
function V(t, e) {
|
|
2048
|
-
return e == null ?
|
|
2081
|
+
return e == null ? ur(st(), t) : e ? t : st();
|
|
2049
2082
|
}
|
|
2050
|
-
function
|
|
2083
|
+
function lr(t) {
|
|
2051
2084
|
const e = typeof t == "number" || D(t) ? t : ut(t ?? { min: 1 });
|
|
2052
|
-
return
|
|
2085
|
+
return T(
|
|
2053
2086
|
R(),
|
|
2054
|
-
|
|
2087
|
+
U("length", (r) => r.length, e)
|
|
2055
2088
|
).name("array length");
|
|
2056
2089
|
}
|
|
2057
|
-
function
|
|
2090
|
+
function $n(t) {
|
|
2058
2091
|
const e = typeof t == "number" || D(t) ? t : ut(t ?? { min: 1 });
|
|
2059
|
-
return
|
|
2060
|
-
|
|
2061
|
-
|
|
2092
|
+
return T(
|
|
2093
|
+
te(),
|
|
2094
|
+
U("length", (r) => r.length, e)
|
|
2062
2095
|
).name("string length");
|
|
2063
2096
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return
|
|
2097
|
+
function Mn(t) {
|
|
2098
|
+
return T(P(), t);
|
|
2066
2099
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2100
|
+
function Cn(t) {
|
|
2101
|
+
return T(R(), t);
|
|
2069
2102
|
}
|
|
2070
|
-
function
|
|
2071
|
-
return
|
|
2072
|
-
|
|
2073
|
-
|
|
2103
|
+
function An(t) {
|
|
2104
|
+
return T(
|
|
2105
|
+
P(),
|
|
2106
|
+
U(
|
|
2074
2107
|
"keys",
|
|
2075
2108
|
(e) => Object.keys(e),
|
|
2076
2109
|
t
|
|
2077
2110
|
)
|
|
2078
2111
|
);
|
|
2079
2112
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return
|
|
2082
|
-
|
|
2083
|
-
|
|
2113
|
+
function Tn(t) {
|
|
2114
|
+
return T(
|
|
2115
|
+
P(),
|
|
2116
|
+
U(
|
|
2084
2117
|
"values",
|
|
2085
2118
|
(e) => Object.values(e),
|
|
2086
2119
|
t
|
|
2087
2120
|
)
|
|
2088
2121
|
);
|
|
2089
2122
|
}
|
|
2090
|
-
function
|
|
2091
|
-
return
|
|
2092
|
-
|
|
2093
|
-
|
|
2123
|
+
function kn(t) {
|
|
2124
|
+
return T(
|
|
2125
|
+
P(),
|
|
2126
|
+
U(
|
|
2094
2127
|
"entries",
|
|
2095
2128
|
(e) => Object.entries(e),
|
|
2096
2129
|
t
|
|
@@ -2098,45 +2131,45 @@ function An(t) {
|
|
|
2098
2131
|
);
|
|
2099
2132
|
}
|
|
2100
2133
|
function xt(t) {
|
|
2101
|
-
return new
|
|
2134
|
+
return new nr({ expected: t });
|
|
2102
2135
|
}
|
|
2103
|
-
function
|
|
2136
|
+
function In(t) {
|
|
2104
2137
|
return xt(R([t, W()]));
|
|
2105
2138
|
}
|
|
2106
|
-
function
|
|
2139
|
+
function zn(t) {
|
|
2107
2140
|
return xt(R([W(), t]));
|
|
2108
2141
|
}
|
|
2109
|
-
function
|
|
2142
|
+
function Un(t, e) {
|
|
2110
2143
|
return xt(R([t, e]));
|
|
2111
2144
|
}
|
|
2112
|
-
function
|
|
2113
|
-
return
|
|
2114
|
-
|
|
2115
|
-
|
|
2145
|
+
function Pn(t) {
|
|
2146
|
+
return T(
|
|
2147
|
+
P(),
|
|
2148
|
+
U(
|
|
2116
2149
|
"keys not null",
|
|
2117
2150
|
(e) => Object.keys(e).filter((r) => e[r] != null),
|
|
2118
2151
|
t
|
|
2119
2152
|
)
|
|
2120
2153
|
);
|
|
2121
2154
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return new
|
|
2155
|
+
function cr(t) {
|
|
2156
|
+
return new tr({ expected: t });
|
|
2124
2157
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2158
|
+
function vn(t) {
|
|
2159
|
+
return cr(Object.values(t));
|
|
2127
2160
|
}
|
|
2128
|
-
function
|
|
2129
|
-
return new
|
|
2161
|
+
function ee(t, e) {
|
|
2162
|
+
return new er({ matcher: e, name: t });
|
|
2130
2163
|
}
|
|
2131
|
-
const
|
|
2164
|
+
const fr = Math.ceil(Date.now() - 10 * 365.25 * 24 * 60 * 60 * 1e3), hr = Math.ceil(Date.now() + 10 * 365.25 * 24 * 60 * 60 * 1e3);
|
|
2132
2165
|
function Y(t) {
|
|
2133
2166
|
return ut({
|
|
2134
2167
|
...t,
|
|
2135
|
-
min: t?.min ??
|
|
2136
|
-
max: t?.max ??
|
|
2168
|
+
min: t?.min ?? fr,
|
|
2169
|
+
max: t?.max ?? hr
|
|
2137
2170
|
}).name("int date");
|
|
2138
2171
|
}
|
|
2139
|
-
function
|
|
2172
|
+
function mr(t) {
|
|
2140
2173
|
const e = {
|
|
2141
2174
|
min: t?.from?.min ?? t?.common?.min,
|
|
2142
2175
|
max: t?.from?.max ?? t?.common?.max,
|
|
@@ -2148,16 +2181,16 @@ function ur(t) {
|
|
|
2148
2181
|
float: t?.to?.float ?? t?.common?.float,
|
|
2149
2182
|
optional: t?.to?.optional ?? t?.common?.optional
|
|
2150
2183
|
};
|
|
2151
|
-
return
|
|
2184
|
+
return T(
|
|
2152
2185
|
R([
|
|
2153
2186
|
e.optional ? V(Y()) : Y(),
|
|
2154
2187
|
r.optional ? V(Y()) : Y()
|
|
2155
2188
|
]),
|
|
2156
|
-
|
|
2189
|
+
ee("min <= max", (n) => n[0] != null && n[1] != null && n[0] > n[1] ? `Expected range to be [min, max], got [${n.join(", ")}]` : !0)
|
|
2157
2190
|
).name("range");
|
|
2158
2191
|
}
|
|
2159
|
-
function
|
|
2160
|
-
return
|
|
2192
|
+
function Nn(t) {
|
|
2193
|
+
return mr({
|
|
2161
2194
|
...t,
|
|
2162
2195
|
common: {
|
|
2163
2196
|
min: new Date(2020, 0, 1).getTime(),
|
|
@@ -2166,25 +2199,25 @@ function Pn(t) {
|
|
|
2166
2199
|
}
|
|
2167
2200
|
}).name("range date");
|
|
2168
2201
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return new
|
|
2202
|
+
function pr(t) {
|
|
2203
|
+
return new Jt({ expected: t });
|
|
2171
2204
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2205
|
+
function Dn() {
|
|
2206
|
+
return te(/^[\da-f-]{36}|[\da-f]{32}$/i).name("uuid");
|
|
2174
2207
|
}
|
|
2175
|
-
function
|
|
2176
|
-
return
|
|
2208
|
+
function dr(t) {
|
|
2209
|
+
return P({
|
|
2177
2210
|
[Symbol.toStringTag]: V(W()),
|
|
2178
|
-
loading: V(
|
|
2179
|
-
hasValue: V(
|
|
2211
|
+
loading: V(yt()),
|
|
2212
|
+
hasValue: V(yt()),
|
|
2180
2213
|
value: W(),
|
|
2181
|
-
hasError: V(
|
|
2214
|
+
hasError: V(yt()),
|
|
2182
2215
|
error: W(),
|
|
2183
2216
|
...t
|
|
2184
2217
|
});
|
|
2185
2218
|
}
|
|
2186
|
-
function
|
|
2187
|
-
return t != null && typeof t == "string" && (t = new TextEncoder().encode(t).buffer),
|
|
2219
|
+
function Rn(t) {
|
|
2220
|
+
return t != null && typeof t == "string" && (t = new TextEncoder().encode(t).buffer), ee("array buffer", (e) => {
|
|
2188
2221
|
if (e == null || typeof e != "object" || typeof e.byteLength != "number")
|
|
2189
2222
|
return `Expected array buffer, got "${e}"`;
|
|
2190
2223
|
if (t == null)
|
|
@@ -2197,23 +2230,23 @@ function Nn(t) {
|
|
|
2197
2230
|
return !0;
|
|
2198
2231
|
});
|
|
2199
2232
|
}
|
|
2200
|
-
function
|
|
2233
|
+
function zt(t) {
|
|
2201
2234
|
return t.replace(/\W/g, "").toLowerCase();
|
|
2202
2235
|
}
|
|
2203
|
-
function
|
|
2236
|
+
function yr(t) {
|
|
2204
2237
|
return t instanceof URL ? t.searchParams : t instanceof URLSearchParams ? t : typeof t == "string" ? new URL(t).searchParams : typeof window < "u" ? new URL(window.location.href).searchParams : new URLSearchParams();
|
|
2205
2238
|
}
|
|
2206
|
-
function
|
|
2239
|
+
function _r(t) {
|
|
2207
2240
|
return t == null ? null : (t = t.toLowerCase().trim(), t === "true" || t === "1" || t === "yes" ? !0 : t === "false" || t === "0" || t === "no" ? !1 : null);
|
|
2208
2241
|
}
|
|
2209
|
-
function
|
|
2242
|
+
function gr(t) {
|
|
2210
2243
|
if (t == null)
|
|
2211
2244
|
return null;
|
|
2212
2245
|
t = t.trim();
|
|
2213
2246
|
const e = parseInt(t, 10);
|
|
2214
2247
|
return isNaN(e) ? null : e;
|
|
2215
2248
|
}
|
|
2216
|
-
function
|
|
2249
|
+
function wr(t) {
|
|
2217
2250
|
if (t == null)
|
|
2218
2251
|
return null;
|
|
2219
2252
|
t = t.trim();
|
|
@@ -2221,196 +2254,199 @@ function pr(t) {
|
|
|
2221
2254
|
return isNaN(e) ? null : e;
|
|
2222
2255
|
}
|
|
2223
2256
|
function Et(t, e) {
|
|
2224
|
-
const r =
|
|
2225
|
-
for (const [s,
|
|
2226
|
-
if (
|
|
2227
|
-
return
|
|
2257
|
+
const r = yr(e), n = zt(t);
|
|
2258
|
+
for (const [s, o] of r.entries())
|
|
2259
|
+
if (zt(s) === n)
|
|
2260
|
+
return o;
|
|
2228
2261
|
return null;
|
|
2229
2262
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2263
|
+
function Kn(t, e) {
|
|
2264
|
+
return _r(Et(t, e));
|
|
2232
2265
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return
|
|
2266
|
+
function jn(t, e) {
|
|
2267
|
+
return gr(Et(t, e));
|
|
2235
2268
|
}
|
|
2236
|
-
function
|
|
2237
|
-
return
|
|
2269
|
+
function Vn(t, e) {
|
|
2270
|
+
return wr(Et(t, e));
|
|
2238
2271
|
}
|
|
2239
2272
|
export {
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2273
|
+
z as $,
|
|
2274
|
+
_e as A,
|
|
2275
|
+
Te as B,
|
|
2276
|
+
kr as C,
|
|
2277
|
+
jr as D,
|
|
2278
|
+
ke as E,
|
|
2279
|
+
Pe as F,
|
|
2280
|
+
ve as G,
|
|
2281
|
+
Jr as H,
|
|
2282
|
+
qr as I,
|
|
2283
|
+
Hr as J,
|
|
2284
|
+
Re as K,
|
|
2285
|
+
Kt as L,
|
|
2286
|
+
Ir as M,
|
|
2287
|
+
Ke as N,
|
|
2288
|
+
Qr as O,
|
|
2289
|
+
Xr as P,
|
|
2290
|
+
jt as Q,
|
|
2258
2291
|
wt as R,
|
|
2259
2292
|
Yr as S,
|
|
2260
2293
|
Zr as T,
|
|
2261
2294
|
mt as U,
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2295
|
+
tn as V,
|
|
2296
|
+
en as W,
|
|
2297
|
+
rn as X,
|
|
2298
|
+
Rt as Y,
|
|
2299
|
+
Lr as Z,
|
|
2300
|
+
Fr as _,
|
|
2301
|
+
vr as a,
|
|
2302
|
+
gn as a$,
|
|
2303
|
+
Ie as a0,
|
|
2304
|
+
Ue as a1,
|
|
2305
|
+
j as a2,
|
|
2306
|
+
Q as a3,
|
|
2307
|
+
$t as a4,
|
|
2308
|
+
Z as a5,
|
|
2309
|
+
zr as a6,
|
|
2310
|
+
Ur as a7,
|
|
2311
|
+
_t as a8,
|
|
2312
|
+
Pr as a9,
|
|
2313
|
+
D as aA,
|
|
2314
|
+
ot as aB,
|
|
2315
|
+
St as aC,
|
|
2316
|
+
nt as aD,
|
|
2317
|
+
Be as aE,
|
|
2318
|
+
Wt as aF,
|
|
2319
|
+
Gt as aG,
|
|
2320
|
+
A as aH,
|
|
2321
|
+
Qt as aI,
|
|
2322
|
+
X as aJ,
|
|
2323
|
+
mn as aK,
|
|
2324
|
+
We as aL,
|
|
2325
|
+
qt as aM,
|
|
2326
|
+
Ge as aN,
|
|
2327
|
+
Ht as aO,
|
|
2328
|
+
it as aP,
|
|
2329
|
+
R as aQ,
|
|
2330
|
+
pn as aR,
|
|
2331
|
+
W as aS,
|
|
2332
|
+
dn as aT,
|
|
2333
|
+
yn as aU,
|
|
2334
|
+
_n as aV,
|
|
2335
|
+
U as aW,
|
|
2336
|
+
or as aX,
|
|
2337
|
+
ir as aY,
|
|
2338
|
+
Zt as aZ,
|
|
2339
|
+
ut as a_,
|
|
2307
2340
|
nn as aa,
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2341
|
+
on as ab,
|
|
2342
|
+
Le as ac,
|
|
2343
|
+
an as ad,
|
|
2344
|
+
un as ae,
|
|
2345
|
+
B as af,
|
|
2346
|
+
Lt as ag,
|
|
2347
|
+
sn as ah,
|
|
2348
|
+
Pt as ai,
|
|
2349
|
+
ln as aj,
|
|
2350
|
+
Fe as ak,
|
|
2351
|
+
ce as al,
|
|
2352
|
+
$r as am,
|
|
2353
|
+
Mr as an,
|
|
2354
|
+
Cr as ao,
|
|
2355
|
+
fe as ap,
|
|
2356
|
+
he as aq,
|
|
2357
|
+
Ar as ar,
|
|
2358
|
+
Tr as as,
|
|
2359
|
+
I as at,
|
|
2360
|
+
cn as au,
|
|
2361
|
+
Ft as av,
|
|
2362
|
+
fn as aw,
|
|
2363
|
+
hn as ax,
|
|
2364
|
+
N as ay,
|
|
2365
|
+
y as az,
|
|
2366
|
+
me as b,
|
|
2367
|
+
P as b0,
|
|
2368
|
+
dt as b1,
|
|
2369
|
+
wn as b2,
|
|
2370
|
+
te as b3,
|
|
2371
|
+
bn as b4,
|
|
2372
|
+
ar as b5,
|
|
2373
|
+
Sn as b6,
|
|
2374
|
+
yt as b7,
|
|
2375
|
+
st as b8,
|
|
2376
|
+
xn as b9,
|
|
2377
|
+
Rn as bA,
|
|
2378
|
+
Je as bB,
|
|
2379
|
+
Xt as bC,
|
|
2380
|
+
qe as bD,
|
|
2348
2381
|
He as bE,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2382
|
+
er as bF,
|
|
2383
|
+
at as bG,
|
|
2384
|
+
tr as bH,
|
|
2385
|
+
Yt as bI,
|
|
2386
|
+
rr as bJ,
|
|
2387
|
+
Jt as bK,
|
|
2388
|
+
Qe as bL,
|
|
2389
|
+
Xe as bM,
|
|
2390
|
+
nr as bN,
|
|
2391
|
+
sr as bO,
|
|
2392
|
+
Ye as bP,
|
|
2393
|
+
Ze as bQ,
|
|
2394
|
+
yr as bR,
|
|
2395
|
+
_r as bS,
|
|
2396
|
+
gr as bT,
|
|
2397
|
+
wr as bU,
|
|
2398
|
+
Et as bV,
|
|
2399
|
+
Kn as bW,
|
|
2400
|
+
jn as bX,
|
|
2401
|
+
Vn as bY,
|
|
2402
|
+
En as ba,
|
|
2403
|
+
On as bb,
|
|
2404
|
+
ur as bc,
|
|
2405
|
+
T as bd,
|
|
2406
|
+
V as be,
|
|
2407
|
+
lr as bf,
|
|
2372
2408
|
$n as bg,
|
|
2373
2409
|
Mn as bh,
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2410
|
+
Cn as bi,
|
|
2411
|
+
An as bj,
|
|
2412
|
+
Tn as bk,
|
|
2377
2413
|
kn as bl,
|
|
2378
|
-
|
|
2414
|
+
xt as bm,
|
|
2379
2415
|
In as bn,
|
|
2380
|
-
|
|
2416
|
+
zn as bo,
|
|
2381
2417
|
Un as bp,
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2418
|
+
Pn as bq,
|
|
2419
|
+
cr as br,
|
|
2420
|
+
vn as bs,
|
|
2421
|
+
ee as bt,
|
|
2422
|
+
Y as bu,
|
|
2423
|
+
mr as bv,
|
|
2424
|
+
Nn as bw,
|
|
2425
|
+
pr as bx,
|
|
2426
|
+
Dn as by,
|
|
2427
|
+
dr as bz,
|
|
2428
|
+
Dr as c,
|
|
2429
|
+
Se as d,
|
|
2430
|
+
xe as e,
|
|
2431
|
+
Ee as f,
|
|
2432
|
+
de as g,
|
|
2433
|
+
Oe as h,
|
|
2434
|
+
Rr as i,
|
|
2435
|
+
$e as j,
|
|
2436
|
+
Me as k,
|
|
2437
|
+
Ce as l,
|
|
2438
|
+
Ae as m,
|
|
2439
|
+
Kr as n,
|
|
2404
2440
|
Mt as o,
|
|
2405
2441
|
et as p,
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2442
|
+
Ct as q,
|
|
2443
|
+
Dt as r,
|
|
2444
|
+
Vr as s,
|
|
2445
|
+
Nr as t,
|
|
2446
|
+
Tt as u,
|
|
2447
|
+
Br as v,
|
|
2448
|
+
Wr as w,
|
|
2449
|
+
Gr as x,
|
|
2450
|
+
we as y,
|
|
2451
|
+
be as z
|
|
2416
2452
|
};
|