@hinkal/common 0.0.81 → 0.0.82
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/assets/{snarkjsWorkerLauncher-BA0mEPPz.js → snarkjsWorkerLauncher-CaBCnle3.js} +102 -103
- package/assets/{snarkjsWorkerLogic-ekHpzAIW.js → snarkjsWorkerLogic-24nhppHI.js} +649 -644
- package/assets/{snarkjsWorkerLogic-L1vb0HFc.js → snarkjsWorkerLogic-BAbiO5gj.js} +897 -892
- package/assets/{utxoWorkerLogic-DrdOALJd.js → utxoWorkerLogic-DbwOF7_Q.js} +2 -2
- package/assets/{viteWorkerURL.constant-BnLC1_CH.js → viteWorkerURL.constant-D0iPNhG0.js} +3 -3
- package/assets/{zkProofWorkerLauncher-DbapdIeT.js → zkProofWorkerLauncher-ByXYyy7C.js} +1 -1
- package/assets/{zkProofWorkerLogic-DdXwxKze.js → zkProofWorkerLogic-C3y0gDgU.js} +4 -4
- package/{index-DdDIk6Jw.mjs → index-DhAeLLFR.mjs} +7494 -7508
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-DI9paiU-.mjs → snarkjsWorkerLogic-De3osVcO.mjs} +648 -643
- package/{utxoWorkerLogic-CNa05j64.mjs → utxoWorkerLogic-fmNmJnfl.mjs} +1 -1
- package/{viteWorkerURL.constant-BnlGBO_0.mjs → viteWorkerURL.constant-Dxy-B-5E.mjs} +2 -2
- package/{zkProofWorkerLogic-O2AAP0BX.mjs → zkProofWorkerLogic-REfZ8M6M.mjs} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function
|
|
2
|
+
function Yr(f) {
|
|
3
3
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
4
4
|
}
|
|
5
5
|
function ot(f) {
|
|
@@ -23,16 +23,16 @@ function ot(f) {
|
|
|
23
23
|
});
|
|
24
24
|
}), s;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
J.byteLength =
|
|
28
|
-
J.toByteArray =
|
|
29
|
-
J.fromByteArray =
|
|
30
|
-
var L = [], R = [],
|
|
31
|
-
for (var G = 0,
|
|
26
|
+
var xr = {}, J = {};
|
|
27
|
+
J.byteLength = Vr;
|
|
28
|
+
J.toByteArray = Jr;
|
|
29
|
+
J.fromByteArray = Kr;
|
|
30
|
+
var L = [], R = [], qr = typeof Uint8Array < "u" ? Uint8Array : Array, v = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
31
|
+
for (var G = 0, Hr = v.length; G < Hr; ++G)
|
|
32
32
|
L[G] = v[G], R[v.charCodeAt(G)] = G;
|
|
33
33
|
R[45] = 62;
|
|
34
34
|
R[95] = 63;
|
|
35
|
-
function
|
|
35
|
+
function dr(f) {
|
|
36
36
|
var h = f.length;
|
|
37
37
|
if (h % 4 > 0)
|
|
38
38
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -41,30 +41,30 @@ function Br(f) {
|
|
|
41
41
|
var y = s === h ? 0 : 4 - s % 4;
|
|
42
42
|
return [s, y];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
var h =
|
|
44
|
+
function Vr(f) {
|
|
45
|
+
var h = dr(f), s = h[0], y = h[1];
|
|
46
46
|
return (s + y) * 3 / 4 - y;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Xr(f, h, s) {
|
|
49
49
|
return (h + s) * 3 / 4 - s;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
var h, s =
|
|
51
|
+
function Jr(f) {
|
|
52
|
+
var h, s = dr(f), y = s[0], w = s[1], a = new qr(Xr(f, y, w)), p = 0, o = w > 0 ? y - 4 : y, d;
|
|
53
53
|
for (d = 0; d < o; d += 4)
|
|
54
54
|
h = R[f.charCodeAt(d)] << 18 | R[f.charCodeAt(d + 1)] << 12 | R[f.charCodeAt(d + 2)] << 6 | R[f.charCodeAt(d + 3)], a[p++] = h >> 16 & 255, a[p++] = h >> 8 & 255, a[p++] = h & 255;
|
|
55
55
|
return w === 2 && (h = R[f.charCodeAt(d)] << 2 | R[f.charCodeAt(d + 1)] >> 4, a[p++] = h & 255), w === 1 && (h = R[f.charCodeAt(d)] << 10 | R[f.charCodeAt(d + 1)] << 4 | R[f.charCodeAt(d + 2)] >> 2, a[p++] = h >> 8 & 255, a[p++] = h & 255), a;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function zr(f) {
|
|
58
58
|
return L[f >> 18 & 63] + L[f >> 12 & 63] + L[f >> 6 & 63] + L[f & 63];
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Qr(f, h, s) {
|
|
61
61
|
for (var y, w = [], a = h; a < s; a += 3)
|
|
62
|
-
y = (f[a] << 16 & 16711680) + (f[a + 1] << 8 & 65280) + (f[a + 2] & 255), w.push(
|
|
62
|
+
y = (f[a] << 16 & 16711680) + (f[a + 1] << 8 & 65280) + (f[a + 2] & 255), w.push(zr(y));
|
|
63
63
|
return w.join("");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Kr(f) {
|
|
66
66
|
for (var h, s = f.length, y = s % 3, w = [], a = 16383, p = 0, o = s - y; p < o; p += a)
|
|
67
|
-
w.push(
|
|
67
|
+
w.push(Qr(f, p, p + a > o ? o : p + a));
|
|
68
68
|
return y === 1 ? (h = f[s - 1], w.push(
|
|
69
69
|
L[h >> 2] + L[h << 4 & 63] + "=="
|
|
70
70
|
)) : y === 2 && (h = (f[s - 2] << 8) + f[s - 1], w.push(
|
|
@@ -104,7 +104,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
104
104
|
*/
|
|
105
105
|
(function(f) {
|
|
106
106
|
const h = J, s = er, y = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
107
|
-
f.Buffer = o, f.SlowBuffer =
|
|
107
|
+
f.Buffer = o, f.SlowBuffer = Fr, f.INSPECT_MAX_BYTES = 50;
|
|
108
108
|
const w = 2147483647;
|
|
109
109
|
f.kMaxLength = w, o.TYPED_ARRAY_SUPPORT = a(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
110
110
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -167,7 +167,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
167
167
|
const n = e.valueOf && e.valueOf();
|
|
168
168
|
if (n != null && n !== e)
|
|
169
169
|
return o.from(n, r, t);
|
|
170
|
-
const i =
|
|
170
|
+
const i = Ir(e);
|
|
171
171
|
if (i)
|
|
172
172
|
return i;
|
|
173
173
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function")
|
|
@@ -228,7 +228,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
228
228
|
let n;
|
|
229
229
|
return r === void 0 && t === void 0 ? n = new Uint8Array(e) : t === void 0 ? n = new Uint8Array(e, r) : n = new Uint8Array(e, r, t), Object.setPrototypeOf(n, o.prototype), n;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ir(e) {
|
|
232
232
|
if (o.isBuffer(e)) {
|
|
233
233
|
const r = z(e.length) | 0, t = p(r);
|
|
234
234
|
return t.length === 0 || e.copy(t, 0, 0, r), t;
|
|
@@ -243,7 +243,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
243
243
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes");
|
|
244
244
|
return e | 0;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Fr(e) {
|
|
247
247
|
return +e != e && (e = 0), o.alloc(+e);
|
|
248
248
|
}
|
|
249
249
|
o.isBuffer = function(r) {
|
|
@@ -344,29 +344,29 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
o.byteLength = nr;
|
|
347
|
-
function
|
|
347
|
+
function Ar(e, r, t) {
|
|
348
348
|
let n = !1;
|
|
349
349
|
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, r >>>= 0, t <= r))
|
|
350
350
|
return "";
|
|
351
351
|
for (e || (e = "utf8"); ; )
|
|
352
352
|
switch (e) {
|
|
353
353
|
case "hex":
|
|
354
|
-
return
|
|
354
|
+
return Nr(this, r, t);
|
|
355
355
|
case "utf8":
|
|
356
356
|
case "utf-8":
|
|
357
357
|
return ur(this, r, t);
|
|
358
358
|
case "ascii":
|
|
359
|
-
return
|
|
359
|
+
return Lr(this, r, t);
|
|
360
360
|
case "latin1":
|
|
361
361
|
case "binary":
|
|
362
|
-
return
|
|
362
|
+
return Mr(this, r, t);
|
|
363
363
|
case "base64":
|
|
364
|
-
return
|
|
364
|
+
return _r(this, r, t);
|
|
365
365
|
case "ucs2":
|
|
366
366
|
case "ucs-2":
|
|
367
367
|
case "utf16le":
|
|
368
368
|
case "utf-16le":
|
|
369
|
-
return
|
|
369
|
+
return kr(this, r, t);
|
|
370
370
|
default:
|
|
371
371
|
if (n)
|
|
372
372
|
throw new TypeError("Unknown encoding: " + e);
|
|
@@ -401,7 +401,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
401
401
|
return this;
|
|
402
402
|
}, o.prototype.toString = function() {
|
|
403
403
|
const r = this.length;
|
|
404
|
-
return r === 0 ? "" : arguments.length === 0 ? ur(this, 0, r) :
|
|
404
|
+
return r === 0 ? "" : arguments.length === 0 ? ur(this, 0, r) : Ar.apply(this, arguments);
|
|
405
405
|
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(r) {
|
|
406
406
|
if (!o.isBuffer(r))
|
|
407
407
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -426,10 +426,10 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
426
426
|
if (t >>>= 0, n >>>= 0, i >>>= 0, u >>>= 0, this === r)
|
|
427
427
|
return 0;
|
|
428
428
|
let c = u - i, l = n - t;
|
|
429
|
-
const
|
|
430
|
-
for (let x = 0; x <
|
|
431
|
-
if (B[x] !==
|
|
432
|
-
c = B[x], l =
|
|
429
|
+
const E = Math.min(c, l), B = this.slice(i, u), g = r.slice(t, n);
|
|
430
|
+
for (let x = 0; x < E; ++x)
|
|
431
|
+
if (B[x] !== g[x]) {
|
|
432
|
+
c = B[x], l = g[x];
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
return c < l ? -1 : l < c ? 1 : 0;
|
|
@@ -459,27 +459,27 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
459
459
|
return -1;
|
|
460
460
|
u = 2, c /= 2, l /= 2, t /= 2;
|
|
461
461
|
}
|
|
462
|
-
function g
|
|
463
|
-
return u === 1 ?
|
|
462
|
+
function E(g, x) {
|
|
463
|
+
return u === 1 ? g[x] : g.readUInt16BE(x * u);
|
|
464
464
|
}
|
|
465
465
|
let B;
|
|
466
466
|
if (i) {
|
|
467
|
-
let
|
|
467
|
+
let g = -1;
|
|
468
468
|
for (B = t; B < c; B++)
|
|
469
|
-
if (
|
|
470
|
-
if (
|
|
471
|
-
return
|
|
469
|
+
if (E(e, B) === E(r, g === -1 ? 0 : B - g)) {
|
|
470
|
+
if (g === -1 && (g = B), B - g + 1 === l)
|
|
471
|
+
return g * u;
|
|
472
472
|
} else
|
|
473
|
-
|
|
473
|
+
g !== -1 && (B -= B - g), g = -1;
|
|
474
474
|
} else
|
|
475
475
|
for (t + l > c && (t = c - l), B = t; B >= 0; B--) {
|
|
476
|
-
let
|
|
476
|
+
let g = !0;
|
|
477
477
|
for (let x = 0; x < l; x++)
|
|
478
|
-
if (
|
|
479
|
-
|
|
478
|
+
if (E(e, B + x) !== E(r, x)) {
|
|
479
|
+
g = !1;
|
|
480
480
|
break;
|
|
481
481
|
}
|
|
482
|
-
if (
|
|
482
|
+
if (g)
|
|
483
483
|
return B;
|
|
484
484
|
}
|
|
485
485
|
return -1;
|
|
@@ -491,7 +491,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
491
491
|
}, o.prototype.lastIndexOf = function(r, t, n) {
|
|
492
492
|
return ir(this, r, t, n, !1);
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function Ur(e, r, t, n) {
|
|
495
495
|
t = Number(t) || 0;
|
|
496
496
|
const i = e.length - t;
|
|
497
497
|
n ? (n = Number(n), n > i && (n = i)) : n = i;
|
|
@@ -506,17 +506,17 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
506
506
|
}
|
|
507
507
|
return c;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Tr(e, r, t, n) {
|
|
510
510
|
return V(K(r, e.length - t), e, t, n);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return V(
|
|
512
|
+
function Rr(e, r, t, n) {
|
|
513
|
+
return V(Or(r), e, t, n);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Cr(e, r, t, n) {
|
|
516
516
|
return V(wr(r), e, t, n);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return V(
|
|
518
|
+
function br(e, r, t, n) {
|
|
519
|
+
return V(jr(r, e.length - t), e, t, n);
|
|
520
520
|
}
|
|
521
521
|
o.prototype.write = function(r, t, n, i) {
|
|
522
522
|
if (t === void 0)
|
|
@@ -537,21 +537,21 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
537
537
|
for (; ; )
|
|
538
538
|
switch (i) {
|
|
539
539
|
case "hex":
|
|
540
|
-
return
|
|
540
|
+
return Ur(this, r, t, n);
|
|
541
541
|
case "utf8":
|
|
542
542
|
case "utf-8":
|
|
543
|
-
return
|
|
543
|
+
return Tr(this, r, t, n);
|
|
544
544
|
case "ascii":
|
|
545
545
|
case "latin1":
|
|
546
546
|
case "binary":
|
|
547
|
-
return
|
|
547
|
+
return Rr(this, r, t, n);
|
|
548
548
|
case "base64":
|
|
549
|
-
return
|
|
549
|
+
return Cr(this, r, t, n);
|
|
550
550
|
case "ucs2":
|
|
551
551
|
case "ucs-2":
|
|
552
552
|
case "utf16le":
|
|
553
553
|
case "utf-16le":
|
|
554
|
-
return
|
|
554
|
+
return br(this, r, t, n);
|
|
555
555
|
default:
|
|
556
556
|
if (c)
|
|
557
557
|
throw new TypeError("Unknown encoding: " + i);
|
|
@@ -563,7 +563,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
563
563
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
|
-
function
|
|
566
|
+
function _r(e, r, t) {
|
|
567
567
|
return r === 0 && t === e.length ? h.fromByteArray(e) : h.fromByteArray(e.slice(r, t));
|
|
568
568
|
}
|
|
569
569
|
function ur(e, r, t) {
|
|
@@ -574,27 +574,27 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
574
574
|
const u = e[i];
|
|
575
575
|
let c = null, l = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
|
576
576
|
if (i + l <= t) {
|
|
577
|
-
let
|
|
577
|
+
let E, B, g, x;
|
|
578
578
|
switch (l) {
|
|
579
579
|
case 1:
|
|
580
580
|
u < 128 && (c = u);
|
|
581
581
|
break;
|
|
582
582
|
case 2:
|
|
583
|
-
|
|
583
|
+
E = e[i + 1], (E & 192) === 128 && (x = (u & 31) << 6 | E & 63, x > 127 && (c = x));
|
|
584
584
|
break;
|
|
585
585
|
case 3:
|
|
586
|
-
|
|
586
|
+
E = e[i + 1], B = e[i + 2], (E & 192) === 128 && (B & 192) === 128 && (x = (u & 15) << 12 | (E & 63) << 6 | B & 63, x > 2047 && (x < 55296 || x > 57343) && (c = x));
|
|
587
587
|
break;
|
|
588
588
|
case 4:
|
|
589
|
-
|
|
589
|
+
E = e[i + 1], B = e[i + 2], g = e[i + 3], (E & 192) === 128 && (B & 192) === 128 && (g & 192) === 128 && (x = (u & 15) << 18 | (E & 63) << 12 | (B & 63) << 6 | g & 63, x > 65535 && x < 1114112 && (c = x));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
c === null ? (c = 65533, l = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), i += l;
|
|
593
593
|
}
|
|
594
|
-
return
|
|
594
|
+
return Sr(n);
|
|
595
595
|
}
|
|
596
596
|
const cr = 4096;
|
|
597
|
-
function
|
|
597
|
+
function Sr(e) {
|
|
598
598
|
const r = e.length;
|
|
599
599
|
if (r <= cr)
|
|
600
600
|
return String.fromCharCode.apply(String, e);
|
|
@@ -606,29 +606,29 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
606
606
|
);
|
|
607
607
|
return t;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Lr(e, r, t) {
|
|
610
610
|
let n = "";
|
|
611
611
|
t = Math.min(e.length, t);
|
|
612
612
|
for (let i = r; i < t; ++i)
|
|
613
613
|
n += String.fromCharCode(e[i] & 127);
|
|
614
614
|
return n;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Mr(e, r, t) {
|
|
617
617
|
let n = "";
|
|
618
618
|
t = Math.min(e.length, t);
|
|
619
619
|
for (let i = r; i < t; ++i)
|
|
620
620
|
n += String.fromCharCode(e[i]);
|
|
621
621
|
return n;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Nr(e, r, t) {
|
|
624
624
|
const n = e.length;
|
|
625
625
|
(!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
|
|
626
626
|
let i = "";
|
|
627
627
|
for (let u = r; u < t; ++u)
|
|
628
|
-
i +=
|
|
628
|
+
i += Gr[e[u]];
|
|
629
629
|
return i;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function kr(e, r, t) {
|
|
632
632
|
const n = e.slice(r, t);
|
|
633
633
|
let i = "";
|
|
634
634
|
for (let u = 0; u < n.length - 1; u += 2)
|
|
@@ -786,8 +786,8 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
786
786
|
return hr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
787
787
|
}), o.prototype.writeIntLE = function(r, t, n, i) {
|
|
788
788
|
if (r = +r, t = t >>> 0, !i) {
|
|
789
|
-
const
|
|
790
|
-
T(this, r, t, n,
|
|
789
|
+
const E = Math.pow(2, 8 * n - 1);
|
|
790
|
+
T(this, r, t, n, E - 1, -E);
|
|
791
791
|
}
|
|
792
792
|
let u = 0, c = 1, l = 0;
|
|
793
793
|
for (this[t] = r & 255; ++u < n && (c *= 256); )
|
|
@@ -795,8 +795,8 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
795
795
|
return t + n;
|
|
796
796
|
}, o.prototype.writeIntBE = function(r, t, n, i) {
|
|
797
797
|
if (r = +r, t = t >>> 0, !i) {
|
|
798
|
-
const
|
|
799
|
-
T(this, r, t, n,
|
|
798
|
+
const E = Math.pow(2, 8 * n - 1);
|
|
799
|
+
T(this, r, t, n, E - 1, -E);
|
|
800
800
|
}
|
|
801
801
|
let u = n - 1, c = 1, l = 0;
|
|
802
802
|
for (this[t + u] = r & 255; --u >= 0 && (c *= 256); )
|
|
@@ -939,7 +939,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
939
939
|
r = `_${e.slice(t - 3, t)}${r}`;
|
|
940
940
|
return `${e.slice(0, t)}${r}`;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Dr(e, r, t) {
|
|
943
943
|
j(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && H(r, e.length - (t + 1));
|
|
944
944
|
}
|
|
945
945
|
function yr(e, r, t, n, i, u) {
|
|
@@ -948,7 +948,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
948
948
|
let l;
|
|
949
949
|
throw u > 3 ? r === 0 || r === BigInt(0) ? l = `>= 0${c} and < 2${c} ** ${(u + 1) * 8}${c}` : l = `>= -(2${c} ** ${(u + 1) * 8 - 1}${c}) and < 2 ** ${(u + 1) * 8 - 1}${c}` : l = `>= ${r}${c} and <= ${t}${c}`, new O.ERR_OUT_OF_RANGE("value", l, e);
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
Dr(n, i, u);
|
|
952
952
|
}
|
|
953
953
|
function j(e, r) {
|
|
954
954
|
if (typeof e != "number")
|
|
@@ -961,9 +961,9 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
961
961
|
e
|
|
962
962
|
);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
if (e = e.split("=")[0], e = e.trim().replace(
|
|
964
|
+
const $r = /[^+/0-9A-Za-z-_]/g;
|
|
965
|
+
function Pr(e) {
|
|
966
|
+
if (e = e.split("=")[0], e = e.trim().replace($r, ""), e.length < 2)
|
|
967
967
|
return "";
|
|
968
968
|
for (; e.length % 4 !== 0; )
|
|
969
969
|
e = e + "=";
|
|
@@ -1028,13 +1028,13 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
return u;
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function Or(e) {
|
|
1032
1032
|
const r = [];
|
|
1033
1033
|
for (let t = 0; t < e.length; ++t)
|
|
1034
1034
|
r.push(e.charCodeAt(t) & 255);
|
|
1035
1035
|
return r;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function jr(e, r) {
|
|
1038
1038
|
let t, n, i;
|
|
1039
1039
|
const u = [];
|
|
1040
1040
|
for (let c = 0; c < e.length && !((r -= 2) < 0); ++c)
|
|
@@ -1042,7 +1042,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
1042
1042
|
return u;
|
|
1043
1043
|
}
|
|
1044
1044
|
function wr(e) {
|
|
1045
|
-
return h.toByteArray(
|
|
1045
|
+
return h.toByteArray(Pr(e));
|
|
1046
1046
|
}
|
|
1047
1047
|
function V(e, r, t, n) {
|
|
1048
1048
|
let i;
|
|
@@ -1056,7 +1056,7 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
1056
1056
|
function Z(e) {
|
|
1057
1057
|
return e !== e;
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const Gr = function() {
|
|
1060
1060
|
const e = "0123456789abcdef", r = new Array(256);
|
|
1061
1061
|
for (let t = 0; t < 16; ++t) {
|
|
1062
1062
|
const n = t * 16;
|
|
@@ -1066,13 +1066,13 @@ er.write = function(f, h, s, y, w, a) {
|
|
|
1066
1066
|
return r;
|
|
1067
1067
|
}();
|
|
1068
1068
|
function D(e) {
|
|
1069
|
-
return typeof BigInt > "u" ?
|
|
1069
|
+
return typeof BigInt > "u" ? Wr : e;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Wr() {
|
|
1072
1072
|
throw new Error("BigInt not supported");
|
|
1073
1073
|
}
|
|
1074
|
-
})(
|
|
1075
|
-
var
|
|
1074
|
+
})(xr);
|
|
1075
|
+
var Br = { exports: {} }, m = Br.exports = {}, _, S;
|
|
1076
1076
|
function rr() {
|
|
1077
1077
|
throw new Error("setTimeout has not been defined");
|
|
1078
1078
|
}
|
|
@@ -1106,7 +1106,7 @@ function Er(f) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function Zr(f) {
|
|
1110
1110
|
if (S === clearTimeout)
|
|
1111
1111
|
return clearTimeout(f);
|
|
1112
1112
|
if ((S === tr || !S) && clearTimeout)
|
|
@@ -1122,19 +1122,19 @@ function vr(f) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
var M = [], W = !1, P, X = -1;
|
|
1125
|
-
function
|
|
1126
|
-
!W || !P || (W = !1, P.length ? M = P.concat(M) : X = -1, M.length &&
|
|
1125
|
+
function vr() {
|
|
1126
|
+
!W || !P || (W = !1, P.length ? M = P.concat(M) : X = -1, M.length && gr());
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function gr() {
|
|
1129
1129
|
if (!W) {
|
|
1130
|
-
var f = Er(
|
|
1130
|
+
var f = Er(vr);
|
|
1131
1131
|
W = !0;
|
|
1132
1132
|
for (var h = M.length; h; ) {
|
|
1133
1133
|
for (P = M, M = []; ++X < h; )
|
|
1134
1134
|
P && P[X].run();
|
|
1135
1135
|
X = -1, h = M.length;
|
|
1136
1136
|
}
|
|
1137
|
-
P = null, W = !1,
|
|
1137
|
+
P = null, W = !1, Zr(f);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
m.nextTick = function(f) {
|
|
@@ -1142,12 +1142,12 @@ m.nextTick = function(f) {
|
|
|
1142
1142
|
if (arguments.length > 1)
|
|
1143
1143
|
for (var s = 1; s < arguments.length; s++)
|
|
1144
1144
|
h[s - 1] = arguments[s];
|
|
1145
|
-
M.push(new
|
|
1145
|
+
M.push(new mr(f, h)), M.length === 1 && !W && Er(gr);
|
|
1146
1146
|
};
|
|
1147
|
-
function
|
|
1147
|
+
function mr(f, h) {
|
|
1148
1148
|
this.fun = f, this.array = h;
|
|
1149
1149
|
}
|
|
1150
|
-
|
|
1150
|
+
mr.prototype.run = function() {
|
|
1151
1151
|
this.fun.apply(null, this.array);
|
|
1152
1152
|
};
|
|
1153
1153
|
m.title = "browser";
|
|
@@ -1182,21 +1182,20 @@ m.chdir = function(f) {
|
|
|
1182
1182
|
m.umask = function() {
|
|
1183
1183
|
return 0;
|
|
1184
1184
|
};
|
|
1185
|
-
var
|
|
1186
|
-
const
|
|
1185
|
+
var rt = Br.exports, tt = /* @__PURE__ */ Yr(rt);
|
|
1186
|
+
const et = () => {
|
|
1187
1187
|
self.addEventListener("unhandledrejection", (f) => {
|
|
1188
1188
|
throw new Error(f.reason);
|
|
1189
1189
|
});
|
|
1190
1190
|
};
|
|
1191
|
-
globalThis.process =
|
|
1192
|
-
globalThis.Buffer =
|
|
1193
|
-
const
|
|
1191
|
+
globalThis.process = tt;
|
|
1192
|
+
globalThis.Buffer = xr.Buffer;
|
|
1193
|
+
const nt = import("./snarkjsWorkerLogic-BAbiO5gj.js");
|
|
1194
1194
|
addEventListener("message", async (f) => {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
console.log("a2"), h(f.data), console.log("a3");
|
|
1195
|
+
const { onWorkerMessage: h } = await nt;
|
|
1196
|
+
h(f.data);
|
|
1198
1197
|
});
|
|
1199
|
-
|
|
1198
|
+
et();
|
|
1200
1199
|
export {
|
|
1201
1200
|
it as c,
|
|
1202
1201
|
ot as g
|