@hinkal/common 0.0.76 → 0.0.78
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-BPTFFzgb.js → snarkjsWorkerLauncher-BA9NPDjf.js} +102 -101
- package/assets/{snarkjsWorkerLogic-CVMdRdSt.js → snarkjsWorkerLogic-BjmDzeq6.js} +2 -2
- package/assets/{snarkjsWorkerLogic-D-v2xSCd.js → snarkjsWorkerLogic-DgvKuO23.js} +1 -1
- package/assets/{utxoWorkerLogic-CgQ3kald.js → utxoWorkerLogic-GWhGyg9m.js} +2 -2
- package/assets/{viteWorkerURL.constant-Di1IMd-K.js → viteWorkerURL.constant-C2LptopZ.js} +3 -3
- package/assets/{zkProofWorkerLauncher-3-ZvRhoS.js → zkProofWorkerLauncher-B6N47HzJ.js} +1 -1
- package/assets/{zkProofWorkerLogic-pM_x2q4P.js → zkProofWorkerLogic-CoZWjscG.js} +4 -4
- package/{index-Bop7Ykvt.mjs → index-55-Vh6oS.mjs} +10825 -10825
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-DwUKLnzS.mjs → snarkjsWorkerLogic-D14IQReo.mjs} +2 -2
- package/{utxoWorkerLogic-DBlD22h-.mjs → utxoWorkerLogic-q7Hinq_7.mjs} +2 -2
- package/viteWorkerURL.constant-DrLhkrwx.mjs +9 -0
- package/{workerProxy-ut7bXhZh.mjs → workerProxy-ylbVtWYX.mjs} +1 -1
- package/{zkProofWorkerLogic-CKquuDg-.mjs → zkProofWorkerLogic-DWqKuO_p.mjs} +2 -2
- package/viteWorkerURL.constant-3oZChqmC.mjs +0 -9
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var F = {}, z = {};
|
|
2
|
-
z.byteLength =
|
|
3
|
-
z.toByteArray =
|
|
4
|
-
z.fromByteArray =
|
|
5
|
-
var M = [], b = [],
|
|
6
|
-
for (var W = 0,
|
|
2
|
+
z.byteLength = Qr;
|
|
3
|
+
z.toByteArray = Zr;
|
|
4
|
+
z.fromByteArray = tt;
|
|
5
|
+
var M = [], b = [], zr = typeof Uint8Array < "u" ? Uint8Array : Array, er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
+
for (var W = 0, Jr = er.length; W < Jr; ++W)
|
|
7
7
|
M[W] = er[W], b[er.charCodeAt(W)] = W;
|
|
8
8
|
b[45] = 62;
|
|
9
9
|
b[95] = 63;
|
|
10
|
-
function
|
|
10
|
+
function gr(h) {
|
|
11
11
|
var f = h.length;
|
|
12
12
|
if (f % 4 > 0)
|
|
13
13
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -16,30 +16,30 @@ function Er(h) {
|
|
|
16
16
|
var x = p === f ? 0 : 4 - p % 4;
|
|
17
17
|
return [p, x];
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
var f =
|
|
19
|
+
function Qr(h) {
|
|
20
|
+
var f = gr(h), p = f[0], x = f[1];
|
|
21
21
|
return (p + x) * 3 / 4 - x;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Kr(h, f, p) {
|
|
24
24
|
return (f + p) * 3 / 4 - p;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
var f, p =
|
|
26
|
+
function Zr(h) {
|
|
27
|
+
var f, p = gr(h), x = p[0], w = p[1], s = new zr(Kr(h, x, w)), l = 0, I = w > 0 ? x - 4 : x, B;
|
|
28
28
|
for (B = 0; B < I; B += 4)
|
|
29
29
|
f = b[h.charCodeAt(B)] << 18 | b[h.charCodeAt(B + 1)] << 12 | b[h.charCodeAt(B + 2)] << 6 | b[h.charCodeAt(B + 3)], s[l++] = f >> 16 & 255, s[l++] = f >> 8 & 255, s[l++] = f & 255;
|
|
30
30
|
return w === 2 && (f = b[h.charCodeAt(B)] << 2 | b[h.charCodeAt(B + 1)] >> 4, s[l++] = f & 255), w === 1 && (f = b[h.charCodeAt(B)] << 10 | b[h.charCodeAt(B + 1)] << 4 | b[h.charCodeAt(B + 2)] >> 2, s[l++] = f >> 8 & 255, s[l++] = f & 255), s;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function vr(h) {
|
|
33
33
|
return M[h >> 18 & 63] + M[h >> 12 & 63] + M[h >> 6 & 63] + M[h & 63];
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function rt(h, f, p) {
|
|
36
36
|
for (var x, w = [], s = f; s < p; s += 3)
|
|
37
|
-
x = (h[s] << 16 & 16711680) + (h[s + 1] << 8 & 65280) + (h[s + 2] & 255), w.push(
|
|
37
|
+
x = (h[s] << 16 & 16711680) + (h[s + 1] << 8 & 65280) + (h[s + 2] & 255), w.push(vr(x));
|
|
38
38
|
return w.join("");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function tt(h) {
|
|
41
41
|
for (var f, p = h.length, x = p % 3, w = [], s = 16383, l = 0, I = p - x; l < I; l += s)
|
|
42
|
-
w.push(
|
|
42
|
+
w.push(rt(h, l, l + s > I ? I : l + s));
|
|
43
43
|
return x === 1 ? (f = h[p - 1], w.push(
|
|
44
44
|
M[f >> 2] + M[f << 4 & 63] + "=="
|
|
45
45
|
)) : x === 2 && (f = (h[p - 2] << 8) + h[p - 1], w.push(
|
|
@@ -79,7 +79,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
79
79
|
*/
|
|
80
80
|
(function(h) {
|
|
81
81
|
const f = z, p = or, x = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
82
|
-
h.Buffer = o, h.SlowBuffer =
|
|
82
|
+
h.Buffer = o, h.SlowBuffer = Cr, h.INSPECT_MAX_BYTES = 50;
|
|
83
83
|
const w = 2147483647;
|
|
84
84
|
h.kMaxLength = w;
|
|
85
85
|
const { Uint8Array: s, ArrayBuffer: l, SharedArrayBuffer: I } = globalThis;
|
|
@@ -130,7 +130,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
130
130
|
if (typeof e == "string")
|
|
131
131
|
return J(e, r);
|
|
132
132
|
if (l.isView(e))
|
|
133
|
-
return
|
|
133
|
+
return Ur(e);
|
|
134
134
|
if (e == null)
|
|
135
135
|
throw new TypeError(
|
|
136
136
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e
|
|
@@ -144,7 +144,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
144
144
|
const n = e.valueOf && e.valueOf();
|
|
145
145
|
if (n != null && n !== e)
|
|
146
146
|
return o.from(n, r, t);
|
|
147
|
-
const i =
|
|
147
|
+
const i = Rr(e);
|
|
148
148
|
if (i)
|
|
149
149
|
return i;
|
|
150
150
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function")
|
|
@@ -190,7 +190,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
190
190
|
t[n] = e[n] & 255;
|
|
191
191
|
return t;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ur(e) {
|
|
194
194
|
if (S(e, s)) {
|
|
195
195
|
const r = new s(e);
|
|
196
196
|
return K(r.buffer, r.byteOffset, r.byteLength);
|
|
@@ -205,7 +205,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
205
205
|
let n;
|
|
206
206
|
return r === void 0 && t === void 0 ? n = new s(e) : t === void 0 ? n = new s(e, r) : n = new s(e, r, t), Object.setPrototypeOf(n, o.prototype), n;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Rr(e) {
|
|
209
209
|
if (o.isBuffer(e)) {
|
|
210
210
|
const r = Z(e.length) | 0, t = A(r);
|
|
211
211
|
return t.length === 0 || e.copy(t, 0, 0, r), t;
|
|
@@ -220,7 +220,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
220
220
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes");
|
|
221
221
|
return e | 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Cr(e) {
|
|
224
224
|
return +e != e && (e = 0), o.alloc(+e);
|
|
225
225
|
}
|
|
226
226
|
o.isBuffer = function(r) {
|
|
@@ -321,29 +321,29 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
o.byteLength = ur;
|
|
324
|
-
function
|
|
324
|
+
function br(e, r, t) {
|
|
325
325
|
let n = !1;
|
|
326
326
|
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))
|
|
327
327
|
return "";
|
|
328
328
|
for (e || (e = "utf8"); ; )
|
|
329
329
|
switch (e) {
|
|
330
330
|
case "hex":
|
|
331
|
-
return
|
|
331
|
+
return Or(this, r, t);
|
|
332
332
|
case "utf8":
|
|
333
333
|
case "utf-8":
|
|
334
334
|
return fr(this, r, t);
|
|
335
335
|
case "ascii":
|
|
336
|
-
return
|
|
336
|
+
return $r(this, r, t);
|
|
337
337
|
case "latin1":
|
|
338
338
|
case "binary":
|
|
339
|
-
return
|
|
339
|
+
return Pr(this, r, t);
|
|
340
340
|
case "base64":
|
|
341
|
-
return
|
|
341
|
+
return Nr(this, r, t);
|
|
342
342
|
case "ucs2":
|
|
343
343
|
case "ucs-2":
|
|
344
344
|
case "utf16le":
|
|
345
345
|
case "utf-16le":
|
|
346
|
-
return
|
|
346
|
+
return jr(this, r, t);
|
|
347
347
|
default:
|
|
348
348
|
if (n)
|
|
349
349
|
throw new TypeError("Unknown encoding: " + e);
|
|
@@ -378,7 +378,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
378
378
|
return this;
|
|
379
379
|
}, o.prototype.toString = function() {
|
|
380
380
|
const r = this.length;
|
|
381
|
-
return r === 0 ? "" : arguments.length === 0 ? fr(this, 0, r) :
|
|
381
|
+
return r === 0 ? "" : arguments.length === 0 ? fr(this, 0, r) : br.apply(this, arguments);
|
|
382
382
|
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(r) {
|
|
383
383
|
if (!o.isBuffer(r))
|
|
384
384
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -468,7 +468,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
468
468
|
}, o.prototype.lastIndexOf = function(r, t, n) {
|
|
469
469
|
return cr(this, r, t, n, !1);
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function Sr(e, r, t, n) {
|
|
472
472
|
t = Number(t) || 0;
|
|
473
473
|
const i = e.length - t;
|
|
474
474
|
n ? (n = Number(n), n > i && (n = i)) : n = i;
|
|
@@ -483,17 +483,17 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
483
483
|
}
|
|
484
484
|
return c;
|
|
485
485
|
}
|
|
486
|
-
function Sr(e, r, t, n) {
|
|
487
|
-
return H(rr(r, e.length - t), e, t, n);
|
|
488
|
-
}
|
|
489
486
|
function _r(e, r, t, n) {
|
|
490
|
-
return H(
|
|
487
|
+
return H(rr(r, e.length - t), e, t, n);
|
|
491
488
|
}
|
|
492
489
|
function Lr(e, r, t, n) {
|
|
493
|
-
return H(
|
|
490
|
+
return H(qr(r), e, t, n);
|
|
494
491
|
}
|
|
495
492
|
function Mr(e, r, t, n) {
|
|
496
|
-
return H(
|
|
493
|
+
return H(dr(r), e, t, n);
|
|
494
|
+
}
|
|
495
|
+
function kr(e, r, t, n) {
|
|
496
|
+
return H(Xr(r, e.length - t), e, t, n);
|
|
497
497
|
}
|
|
498
498
|
o.prototype.write = function(r, t, n, i) {
|
|
499
499
|
if (t === void 0)
|
|
@@ -514,21 +514,21 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
514
514
|
for (; ; )
|
|
515
515
|
switch (i) {
|
|
516
516
|
case "hex":
|
|
517
|
-
return
|
|
517
|
+
return Sr(this, r, t, n);
|
|
518
518
|
case "utf8":
|
|
519
519
|
case "utf-8":
|
|
520
|
-
return
|
|
520
|
+
return _r(this, r, t, n);
|
|
521
521
|
case "ascii":
|
|
522
522
|
case "latin1":
|
|
523
523
|
case "binary":
|
|
524
|
-
return _r(this, r, t, n);
|
|
525
|
-
case "base64":
|
|
526
524
|
return Lr(this, r, t, n);
|
|
525
|
+
case "base64":
|
|
526
|
+
return Mr(this, r, t, n);
|
|
527
527
|
case "ucs2":
|
|
528
528
|
case "ucs-2":
|
|
529
529
|
case "utf16le":
|
|
530
530
|
case "utf-16le":
|
|
531
|
-
return
|
|
531
|
+
return kr(this, r, t, n);
|
|
532
532
|
default:
|
|
533
533
|
if (c)
|
|
534
534
|
throw new TypeError("Unknown encoding: " + i);
|
|
@@ -540,7 +540,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
540
540
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
541
541
|
};
|
|
542
542
|
};
|
|
543
|
-
function
|
|
543
|
+
function Nr(e, r, t) {
|
|
544
544
|
return r === 0 && t === e.length ? f.fromByteArray(e) : f.fromByteArray(e.slice(r, t));
|
|
545
545
|
}
|
|
546
546
|
function fr(e, r, t) {
|
|
@@ -568,10 +568,10 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
568
568
|
}
|
|
569
569
|
c === null ? (c = 65533, a = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), i += a;
|
|
570
570
|
}
|
|
571
|
-
return
|
|
571
|
+
return Dr(n);
|
|
572
572
|
}
|
|
573
573
|
const sr = 4096;
|
|
574
|
-
function
|
|
574
|
+
function Dr(e) {
|
|
575
575
|
const r = e.length;
|
|
576
576
|
if (r <= sr)
|
|
577
577
|
return String.fromCharCode.apply(String, e);
|
|
@@ -583,29 +583,29 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
583
583
|
);
|
|
584
584
|
return t;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function $r(e, r, t) {
|
|
587
587
|
let n = "";
|
|
588
588
|
t = Math.min(e.length, t);
|
|
589
589
|
for (let i = r; i < t; ++i)
|
|
590
590
|
n += String.fromCharCode(e[i] & 127);
|
|
591
591
|
return n;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Pr(e, r, t) {
|
|
594
594
|
let n = "";
|
|
595
595
|
t = Math.min(e.length, t);
|
|
596
596
|
for (let i = r; i < t; ++i)
|
|
597
597
|
n += String.fromCharCode(e[i]);
|
|
598
598
|
return n;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Or(e, r, t) {
|
|
601
601
|
const n = e.length;
|
|
602
602
|
(!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
|
|
603
603
|
let i = "";
|
|
604
604
|
for (let u = r; u < t; ++u)
|
|
605
|
-
i +=
|
|
605
|
+
i += Hr[e[u]];
|
|
606
606
|
return i;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function jr(e, r, t) {
|
|
609
609
|
const n = e.slice(r, t);
|
|
610
610
|
let i = "";
|
|
611
611
|
for (let u = 0; u < n.length - 1; u += 2)
|
|
@@ -916,7 +916,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
916
916
|
r = `_${e.slice(t - 3, t)}${r}`;
|
|
917
917
|
return `${e.slice(0, t)}${r}`;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Gr(e, r, t) {
|
|
920
920
|
Y(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && X(r, e.length - (t + 1));
|
|
921
921
|
}
|
|
922
922
|
function Br(e, r, t, n, i, u) {
|
|
@@ -925,7 +925,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
925
925
|
let a;
|
|
926
926
|
throw u > 3 ? r === 0 || r === BigInt(0) ? a = `>= 0${c} and < 2${c} ** ${(u + 1) * 8}${c}` : a = `>= -(2${c} ** ${(u + 1) * 8 - 1}${c}) and < 2 ** ${(u + 1) * 8 - 1}${c}` : a = `>= ${r}${c} and <= ${t}${c}`, new G.ERR_OUT_OF_RANGE("value", a, e);
|
|
927
927
|
}
|
|
928
|
-
|
|
928
|
+
Gr(n, i, u);
|
|
929
929
|
}
|
|
930
930
|
function Y(e, r) {
|
|
931
931
|
if (typeof e != "number")
|
|
@@ -938,9 +938,9 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
938
938
|
e
|
|
939
939
|
);
|
|
940
940
|
}
|
|
941
|
-
const
|
|
942
|
-
function
|
|
943
|
-
if (e = e.split("=")[0], e = e.trim().replace(
|
|
941
|
+
const Yr = /[^+/0-9A-Za-z-_]/g;
|
|
942
|
+
function Wr(e) {
|
|
943
|
+
if (e = e.split("=")[0], e = e.trim().replace(Yr, ""), e.length < 2)
|
|
944
944
|
return "";
|
|
945
945
|
for (; e.length % 4 !== 0; )
|
|
946
946
|
e = e + "=";
|
|
@@ -1005,13 +1005,13 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return u;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function qr(e) {
|
|
1009
1009
|
const r = [];
|
|
1010
1010
|
for (let t = 0; t < e.length; ++t)
|
|
1011
1011
|
r.push(e.charCodeAt(t) & 255);
|
|
1012
1012
|
return r;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function Xr(e, r) {
|
|
1015
1015
|
let t, n, i;
|
|
1016
1016
|
const u = [];
|
|
1017
1017
|
for (let c = 0; c < e.length && !((r -= 2) < 0); ++c)
|
|
@@ -1019,7 +1019,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
1019
1019
|
return u;
|
|
1020
1020
|
}
|
|
1021
1021
|
function dr(e) {
|
|
1022
|
-
return f.toByteArray(
|
|
1022
|
+
return f.toByteArray(Wr(e));
|
|
1023
1023
|
}
|
|
1024
1024
|
function H(e, r, t, n) {
|
|
1025
1025
|
let i;
|
|
@@ -1033,7 +1033,7 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
1033
1033
|
function tr(e) {
|
|
1034
1034
|
return e !== e;
|
|
1035
1035
|
}
|
|
1036
|
-
const
|
|
1036
|
+
const Hr = function() {
|
|
1037
1037
|
const e = "0123456789abcdef", r = new Array(256);
|
|
1038
1038
|
for (let t = 0; t < 16; ++t) {
|
|
1039
1039
|
const n = t * 16;
|
|
@@ -1043,38 +1043,38 @@ or.write = function(h, f, p, x, w, s) {
|
|
|
1043
1043
|
return r;
|
|
1044
1044
|
}();
|
|
1045
1045
|
function $(e) {
|
|
1046
|
-
return typeof BigInt > "u" ?
|
|
1046
|
+
return typeof BigInt > "u" ? Vr : e;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Vr() {
|
|
1049
1049
|
throw new Error("BigInt not supported");
|
|
1050
1050
|
}
|
|
1051
1051
|
})(F);
|
|
1052
|
-
const
|
|
1052
|
+
const et = F.Buffer, nt = F.Blob, it = F.BlobOptions, mr = F.Buffer, ot = F.File, ut = F.FileOptions, ct = F.INSPECT_MAX_BYTES, ht = F.SlowBuffer, ft = F.TranscodeEncoding, st = F.atob, lt = F.btoa, pt = F.constants, at = F.isAscii, wt = F.isUtf8, yt = F.kMaxLength, xt = F.kStringMaxLength, Bt = F.resolveObjectURL, dt = F.transcode;
|
|
1053
1053
|
var Ut = /* @__PURE__ */ Object.freeze({
|
|
1054
1054
|
__proto__: null,
|
|
1055
|
-
Blob:
|
|
1056
|
-
BlobOptions:
|
|
1057
|
-
Buffer:
|
|
1058
|
-
File:
|
|
1059
|
-
FileOptions:
|
|
1060
|
-
INSPECT_MAX_BYTES:
|
|
1061
|
-
SlowBuffer:
|
|
1062
|
-
TranscodeEncoding:
|
|
1063
|
-
atob:
|
|
1064
|
-
btoa:
|
|
1065
|
-
constants:
|
|
1066
|
-
default:
|
|
1067
|
-
isAscii:
|
|
1068
|
-
isUtf8:
|
|
1069
|
-
kMaxLength:
|
|
1070
|
-
kStringMaxLength:
|
|
1071
|
-
resolveObjectURL:
|
|
1072
|
-
transcode:
|
|
1055
|
+
Blob: nt,
|
|
1056
|
+
BlobOptions: it,
|
|
1057
|
+
Buffer: mr,
|
|
1058
|
+
File: ot,
|
|
1059
|
+
FileOptions: ut,
|
|
1060
|
+
INSPECT_MAX_BYTES: ct,
|
|
1061
|
+
SlowBuffer: ht,
|
|
1062
|
+
TranscodeEncoding: ft,
|
|
1063
|
+
atob: st,
|
|
1064
|
+
btoa: lt,
|
|
1065
|
+
constants: pt,
|
|
1066
|
+
default: et,
|
|
1067
|
+
isAscii: at,
|
|
1068
|
+
isUtf8: wt,
|
|
1069
|
+
kMaxLength: yt,
|
|
1070
|
+
kStringMaxLength: xt,
|
|
1071
|
+
resolveObjectURL: Bt,
|
|
1072
|
+
transcode: dt
|
|
1073
1073
|
});
|
|
1074
|
-
function
|
|
1074
|
+
function Et(h) {
|
|
1075
1075
|
return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
|
|
1076
1076
|
}
|
|
1077
|
-
var
|
|
1077
|
+
var Ir = { exports: {} }, m = Ir.exports = {}, _, L;
|
|
1078
1078
|
function nr() {
|
|
1079
1079
|
throw new Error("setTimeout has not been defined");
|
|
1080
1080
|
}
|
|
@@ -1093,7 +1093,7 @@ function ir() {
|
|
|
1093
1093
|
L = ir;
|
|
1094
1094
|
}
|
|
1095
1095
|
})();
|
|
1096
|
-
function
|
|
1096
|
+
function Fr(h) {
|
|
1097
1097
|
if (_ === setTimeout)
|
|
1098
1098
|
return setTimeout(h, 0);
|
|
1099
1099
|
if ((_ === nr || !_) && setTimeout)
|
|
@@ -1108,7 +1108,7 @@ function Ir(h) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function gt(h) {
|
|
1112
1112
|
if (L === clearTimeout)
|
|
1113
1113
|
return clearTimeout(h);
|
|
1114
1114
|
if ((L === ir || !L) && clearTimeout)
|
|
@@ -1124,19 +1124,19 @@ function Et(h) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
var N = [], q = !1, j, V = -1;
|
|
1127
|
-
function
|
|
1128
|
-
!q || !j || (q = !1, j.length ? N = j.concat(N) : V = -1, N.length &&
|
|
1127
|
+
function mt() {
|
|
1128
|
+
!q || !j || (q = !1, j.length ? N = j.concat(N) : V = -1, N.length && Tr());
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function Tr() {
|
|
1131
1131
|
if (!q) {
|
|
1132
|
-
var h =
|
|
1132
|
+
var h = Fr(mt);
|
|
1133
1133
|
q = !0;
|
|
1134
1134
|
for (var f = N.length; f; ) {
|
|
1135
1135
|
for (j = N, N = []; ++V < f; )
|
|
1136
1136
|
j && j[V].run();
|
|
1137
1137
|
V = -1, f = N.length;
|
|
1138
1138
|
}
|
|
1139
|
-
j = null, q = !1,
|
|
1139
|
+
j = null, q = !1, gt(h);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
m.nextTick = function(h) {
|
|
@@ -1144,12 +1144,12 @@ m.nextTick = function(h) {
|
|
|
1144
1144
|
if (arguments.length > 1)
|
|
1145
1145
|
for (var p = 1; p < arguments.length; p++)
|
|
1146
1146
|
f[p - 1] = arguments[p];
|
|
1147
|
-
N.push(new
|
|
1147
|
+
N.push(new Ar(h, f)), N.length === 1 && !q && Fr(Tr);
|
|
1148
1148
|
};
|
|
1149
|
-
function
|
|
1149
|
+
function Ar(h, f) {
|
|
1150
1150
|
this.fun = h, this.array = f;
|
|
1151
1151
|
}
|
|
1152
|
-
|
|
1152
|
+
Ar.prototype.run = function() {
|
|
1153
1153
|
this.fun.apply(null, this.array);
|
|
1154
1154
|
};
|
|
1155
1155
|
m.title = "browser";
|
|
@@ -1184,22 +1184,23 @@ m.chdir = function(h) {
|
|
|
1184
1184
|
m.umask = function() {
|
|
1185
1185
|
return 0;
|
|
1186
1186
|
};
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1187
|
+
var It = Ir.exports;
|
|
1188
|
+
const Ft = /* @__PURE__ */ Et(It), Tt = () => {
|
|
1189
1189
|
self.addEventListener("unhandledrejection", (h) => {
|
|
1190
1190
|
throw new Error(h.reason);
|
|
1191
1191
|
});
|
|
1192
1192
|
};
|
|
1193
|
-
globalThis.process =
|
|
1194
|
-
globalThis.Buffer =
|
|
1195
|
-
const
|
|
1193
|
+
globalThis.process = Ft;
|
|
1194
|
+
globalThis.Buffer = mr;
|
|
1195
|
+
const Er = import("./snarkjsWorkerLogic-DgvKuO23.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
|
-
|
|
1198
|
-
f
|
|
1197
|
+
console.log("a1", await Er);
|
|
1198
|
+
const { onWorkerMessage: f } = await Er;
|
|
1199
|
+
console.log("a2"), f(h.data), console.log("a3");
|
|
1199
1200
|
});
|
|
1200
|
-
|
|
1201
|
+
Tt();
|
|
1201
1202
|
export {
|
|
1202
|
-
|
|
1203
|
+
et as B,
|
|
1203
1204
|
Ut as d,
|
|
1204
|
-
|
|
1205
|
+
Ft as p
|
|
1205
1206
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Se, B as ho } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { r as sn, g as Ua, a as Lo, b as mo, c as en, e as ja, d as $a, u as zn, f as bo } from "./zkProofWorkerLogic-
|
|
1
|
+
import { p as Se, B as ho } from "./zkProofWorkerLauncher-B6N47HzJ.js";
|
|
2
|
+
import { r as sn, g as Ua, a as Lo, b as mo, c as en, e as ja, d as $a, u as zn, f as bo } from "./zkProofWorkerLogic-CoZWjscG.js";
|
|
3
3
|
const yo = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function rn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as U } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-B6N47HzJ.js";
|
|
2
|
+
import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-CoZWjscG.js";
|
|
3
3
|
const g = (e) => {
|
|
4
4
|
const t = T.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as r } from "./zkProofWorkerLogic-
|
|
2
|
-
import "./zkProofWorkerLauncher-
|
|
3
|
-
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-CoZWjscG.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-B6N47HzJ.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-BA9NPDjf.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href;
|
|
4
4
|
const n = {
|
|
5
5
|
[r.ZKProof]: o,
|
|
6
6
|
[r.SnarkJS]: e,
|
|
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
globalThis.process = It;
|
|
1194
1194
|
globalThis.Buffer = gr;
|
|
1195
|
-
const Tt = import("./zkProofWorkerLogic-
|
|
1195
|
+
const Tt = import("./zkProofWorkerLogic-CoZWjscG.js").then(function(h) {
|
|
1196
1196
|
return h.z;
|
|
1197
1197
|
});
|
|
1198
1198
|
addEventListener("message", async (h) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-
|
|
1
|
+
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-B6N47HzJ.js";
|
|
2
2
|
const hexLen = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
3
3
|
function fromString$1(a, d) {
|
|
4
4
|
if (!d || d == 10)
|
|
@@ -165268,7 +165268,7 @@ class WorkerFactory {
|
|
|
165268
165268
|
constructor() {
|
|
165269
165269
|
}
|
|
165270
165270
|
static resolveWorkerURL = async (d) => {
|
|
165271
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
165271
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-C2LptopZ.js");
|
|
165272
165272
|
return new URL(c[d], n);
|
|
165273
165273
|
};
|
|
165274
165274
|
static createWorker = async (d) => {
|
|
@@ -165276,12 +165276,12 @@ class WorkerFactory {
|
|
|
165276
165276
|
let c;
|
|
165277
165277
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
165278
165278
|
/* @vite-ignore */
|
|
165279
|
-
"./snarkjsWorkerLogic-
|
|
165279
|
+
"./snarkjsWorkerLogic-BjmDzeq6.js"
|
|
165280
165280
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
165281
165281
|
return zkProofWorkerLogic;
|
|
165282
165282
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
165283
165283
|
/* @vite-ignore */
|
|
165284
|
-
"./utxoWorkerLogic-
|
|
165284
|
+
"./utxoWorkerLogic-GWhGyg9m.js"
|
|
165285
165285
|
)), c.default;
|
|
165286
165286
|
}
|
|
165287
165287
|
const n = await WorkerFactory.resolveWorkerURL(d);
|