@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.
@@ -1,5 +1,5 @@
1
- import { g as Lc, c as qe } from "./snarkjsWorkerLauncher-BA0mEPPz.js";
2
- class mc {
1
+ import { g as mc, c as qe } from "./snarkjsWorkerLauncher-CaBCnle3.js";
2
+ class bc {
3
3
  isNode = !1;
4
4
  /**
5
5
  * This allow browser or main thread to listen for worker response message
@@ -50,7 +50,7 @@ class mc {
50
50
  this.isNode && this.eventEmitter.on("message", (e) => t(e));
51
51
  }
52
52
  }
53
- const bc = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
53
+ const Cc = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
54
54
  function Rn(o, t) {
55
55
  if (!t || t == 10)
56
56
  return BigInt(o);
@@ -58,34 +58,34 @@ function Rn(o, t) {
58
58
  return o.slice(0, 2) == "0x" ? BigInt(o) : BigInt("0x" + o);
59
59
  }
60
60
  const ze = Rn;
61
- function Cc(o, t) {
61
+ function Ic(o, t) {
62
62
  let e = BigInt(0);
63
63
  t = BigInt(t);
64
64
  for (let n = 0; n < o.length; n++)
65
65
  e = e * t + BigInt(o[n]);
66
66
  return e;
67
67
  }
68
- function La(o) {
68
+ function ma(o) {
69
69
  const t = o.toString(16);
70
- return (t.length - 1) * 4 + bc[parseInt(t[0], 16)];
70
+ return (t.length - 1) * 4 + Cc[parseInt(t[0], 16)];
71
71
  }
72
- function Ic(o) {
72
+ function Ec(o) {
73
73
  return BigInt(o) < BigInt(0);
74
74
  }
75
- function Ec(o) {
75
+ function wc(o) {
76
76
  return !o;
77
77
  }
78
- function ma(o, t) {
78
+ function ba(o, t) {
79
79
  return BigInt(o) << BigInt(t);
80
80
  }
81
- function zi(o, t) {
81
+ function ji(o, t) {
82
82
  return BigInt(o) >> BigInt(t);
83
83
  }
84
- const wc = ma, Bc = zi;
85
- function Fc(o) {
84
+ const Bc = ba, Fc = ji;
85
+ function vc(o) {
86
86
  return (BigInt(o) & BigInt(1)) == BigInt(1);
87
87
  }
88
- function vc(o) {
88
+ function Sc(o) {
89
89
  let t = BigInt(o);
90
90
  const e = [];
91
91
  for (; t; ) {
@@ -98,177 +98,177 @@ function vc(o) {
98
98
  }
99
99
  return e;
100
100
  }
101
- function Sc(o) {
101
+ function xc(o) {
102
102
  let t = BigInt(o);
103
103
  const e = [];
104
104
  for (; t; )
105
105
  t & BigInt(1) ? e.push(1) : e.push(0), t = t >> BigInt(1);
106
106
  return e;
107
107
  }
108
- function ba(o) {
108
+ function Ca(o) {
109
109
  if (o > BigInt(Number.MAX_SAFE_INTEGER))
110
110
  throw new Error("Number too big");
111
111
  return Number(o);
112
112
  }
113
- function xc(o, t) {
113
+ function Oc(o, t) {
114
114
  const e = [];
115
115
  let n = BigInt(o);
116
116
  for (t = BigInt(t); n; )
117
117
  e.unshift(Number(n % t)), n = n / t;
118
118
  return e;
119
119
  }
120
- function Oc(o, t) {
120
+ function Pc(o, t) {
121
121
  return BigInt(o) + BigInt(t);
122
122
  }
123
- function Pc(o, t) {
123
+ function Dc(o, t) {
124
124
  return BigInt(o) - BigInt(t);
125
125
  }
126
- function Dc(o) {
126
+ function kc(o) {
127
127
  return -BigInt(o);
128
128
  }
129
- function kc(o, t) {
129
+ function Mc(o, t) {
130
130
  return BigInt(o) * BigInt(t);
131
131
  }
132
- function Mc(o) {
132
+ function Tc(o) {
133
133
  return BigInt(o) * BigInt(o);
134
134
  }
135
- function Tc(o, t) {
135
+ function Uc(o, t) {
136
136
  return BigInt(o) ** BigInt(t);
137
137
  }
138
- function Uc(o, t) {
138
+ function Nc(o, t) {
139
139
  return BigInt(o) ** BigInt(t);
140
140
  }
141
- function Nc(o) {
141
+ function Rc(o) {
142
142
  return BigInt(o) >= 0 ? BigInt(o) : -BigInt(o);
143
143
  }
144
- function Rc(o, t) {
144
+ function qc(o, t) {
145
145
  return BigInt(o) / BigInt(t);
146
146
  }
147
- function qc(o, t) {
147
+ function Qc(o, t) {
148
148
  return BigInt(o) % BigInt(t);
149
149
  }
150
- function Qc(o, t) {
150
+ function zc(o, t) {
151
151
  return BigInt(o) == BigInt(t);
152
152
  }
153
- function zc(o, t) {
153
+ function jc(o, t) {
154
154
  return BigInt(o) != BigInt(t);
155
155
  }
156
- function jc(o, t) {
156
+ function Gc(o, t) {
157
157
  return BigInt(o) < BigInt(t);
158
158
  }
159
- function Gc(o, t) {
159
+ function $c(o, t) {
160
160
  return BigInt(o) > BigInt(t);
161
161
  }
162
- function $c(o, t) {
162
+ function Kc(o, t) {
163
163
  return BigInt(o) <= BigInt(t);
164
164
  }
165
- function Kc(o, t) {
165
+ function Hc(o, t) {
166
166
  return BigInt(o) >= BigInt(t);
167
167
  }
168
- function Ca(o, t) {
168
+ function Ia(o, t) {
169
169
  return BigInt(o) & BigInt(t);
170
170
  }
171
- function Hc(o, t) {
171
+ function Vc(o, t) {
172
172
  return BigInt(o) | BigInt(t);
173
173
  }
174
- function Vc(o, t) {
174
+ function Wc(o, t) {
175
175
  return BigInt(o) ^ BigInt(t);
176
176
  }
177
- function Wc(o, t) {
177
+ function Yc(o, t) {
178
178
  return BigInt(o) && BigInt(t);
179
179
  }
180
- function Yc(o, t) {
180
+ function Zc(o, t) {
181
181
  return BigInt(o) || BigInt(t);
182
182
  }
183
- function Zc(o) {
183
+ function Jc(o) {
184
184
  return !BigInt(o);
185
185
  }
186
- function Ia(o, t, e, n) {
186
+ function Ea(o, t, e, n) {
187
187
  const i = "0000000" + e.toString(16), c = new Uint32Array(o.buffer, o.byteOffset + t, n / 4), d = ((i.length - 7) * 4 - 1 >> 5) + 1;
188
188
  for (let f = 0; f < d; f++)
189
189
  c[f] = parseInt(i.substring(i.length - 8 * f - 8, i.length - 8 * f), 16);
190
190
  for (let f = d; f < c.length; f++)
191
191
  c[f] = 0;
192
192
  for (let f = c.length * 4; f < n; f++)
193
- o[f] = ba(Ca(zi(e, f * 8), 255));
193
+ o[f] = Ca(Ia(ji(e, f * 8), 255));
194
194
  }
195
- function Jc(o, t, e, n) {
195
+ function Xc(o, t, e, n) {
196
196
  const i = "0000000" + e.toString(16), c = new DataView(o.buffer, o.byteOffset + t, n), d = ((i.length - 7) * 4 - 1 >> 5) + 1;
197
197
  for (let f = 0; f < d; f++)
198
198
  c.setUint32(n - f * 4 - 4, parseInt(i.substring(i.length - 8 * f - 8, i.length - 8 * f), 16), !1);
199
199
  for (let f = 0; f < n / 4 - d; f++)
200
200
  c[f] = 0;
201
201
  }
202
- function Xc(o, t, e) {
202
+ function ts(o, t, e) {
203
203
  e = e || o.byteLength, t = t || 0;
204
204
  const n = new Uint32Array(o.buffer, o.byteOffset + t, e / 4), i = new Array(e / 4);
205
205
  return n.forEach((c, d) => i[i.length - d - 1] = c.toString(16).padStart(8, "0")), Rn(i.join(""), 16);
206
206
  }
207
- function ts(o, t, e) {
207
+ function es(o, t, e) {
208
208
  e = e || o.byteLength, t = t || 0;
209
209
  const n = new DataView(o.buffer, o.byteOffset + t, e), i = new Array(e / 4);
210
210
  for (let c = 0; c < e / 4; c++)
211
211
  i[c] = n.getUint32(c * 4, !1).toString(16).padStart(8, "0");
212
212
  return Rn(i.join(""), 16);
213
213
  }
214
- function es(o, t) {
214
+ function ns(o, t) {
215
215
  return o.toString(t);
216
216
  }
217
- function ns(o) {
218
- const t = new Uint8Array(Math.floor((La(o) - 1) / 8) + 1);
219
- return Ia(t, 0, o, t.byteLength), t;
217
+ function is(o) {
218
+ const t = new Uint8Array(Math.floor((ma(o) - 1) / 8) + 1);
219
+ return Ea(t, 0, o, t.byteLength), t;
220
220
  }
221
- const is = ze(0), os = ze(1);
222
- var as = /* @__PURE__ */ Object.freeze({
221
+ const os = ze(0), as = ze(1);
222
+ var rs = /* @__PURE__ */ Object.freeze({
223
223
  __proto__: null,
224
- abs: Nc,
225
- add: Oc,
226
- band: Ca,
227
- bitLength: La,
228
- bits: Sc,
229
- bor: Hc,
230
- bxor: Vc,
231
- div: Rc,
224
+ abs: Rc,
225
+ add: Pc,
226
+ band: Ia,
227
+ bitLength: ma,
228
+ bits: xc,
229
+ bor: Vc,
230
+ bxor: Wc,
231
+ div: qc,
232
232
  e: ze,
233
- eq: Qc,
234
- exp: Uc,
235
- fromArray: Cc,
236
- fromRprBE: ts,
237
- fromRprLE: Xc,
233
+ eq: zc,
234
+ exp: Nc,
235
+ fromArray: Ic,
236
+ fromRprBE: es,
237
+ fromRprLE: ts,
238
238
  fromString: Rn,
239
- geq: Kc,
240
- gt: Gc,
241
- isNegative: Ic,
242
- isOdd: Fc,
243
- isZero: Ec,
244
- land: Wc,
245
- leq: $c,
246
- lnot: Zc,
247
- lor: Yc,
248
- lt: jc,
249
- mod: qc,
250
- mul: kc,
251
- naf: vc,
252
- neg: Dc,
253
- neq: zc,
254
- one: os,
255
- pow: Tc,
256
- shiftLeft: ma,
257
- shiftRight: zi,
258
- shl: wc,
259
- shr: Bc,
260
- square: Mc,
261
- sub: Pc,
262
- toArray: xc,
263
- toLEBuff: ns,
264
- toNumber: ba,
265
- toRprBE: Jc,
266
- toRprLE: Ia,
267
- toString: es,
268
- zero: is
239
+ geq: Hc,
240
+ gt: $c,
241
+ isNegative: Ec,
242
+ isOdd: vc,
243
+ isZero: wc,
244
+ land: Yc,
245
+ leq: Kc,
246
+ lnot: Jc,
247
+ lor: Zc,
248
+ lt: Gc,
249
+ mod: Qc,
250
+ mul: Mc,
251
+ naf: Sc,
252
+ neg: kc,
253
+ neq: jc,
254
+ one: as,
255
+ pow: Uc,
256
+ shiftLeft: ba,
257
+ shiftRight: ji,
258
+ shl: Bc,
259
+ shr: Fc,
260
+ square: Tc,
261
+ sub: Dc,
262
+ toArray: Oc,
263
+ toLEBuff: is,
264
+ toNumber: Ca,
265
+ toRprBE: Xc,
266
+ toRprLE: Ea,
267
+ toString: ns,
268
+ zero: os
269
269
  });
270
270
  const le = 1 << 30;
271
- let rs = class Ai {
271
+ let cs = class Li {
272
272
  constructor(t) {
273
273
  this.buffers = [], this.byteLength = t;
274
274
  for (let e = 0; e < t; e += le) {
@@ -286,7 +286,7 @@ let rs = class Ai {
286
286
  const s = b + u > le ? le - b : u, C = new Uint8Array(this.buffers[f].buffer, this.buffers[f].byteOffset + b, s);
287
287
  if (s == n)
288
288
  return C.slice();
289
- d || (n <= le ? d = new Uint8Array(n) : d = new Ai(n)), d.set(C, n - u), u = u - s, f++, b = 0;
289
+ d || (n <= le ? d = new Uint8Array(n) : d = new Li(n)), d.set(C, n - u), u = u - s, f++, b = 0;
290
290
  }
291
291
  return d;
292
292
  }
@@ -297,7 +297,7 @@ let rs = class Ai {
297
297
  return;
298
298
  const i = Math.floor(e / le), c = Math.floor((e + n - 1) / le);
299
299
  if (i == c)
300
- return t instanceof Ai && t.buffers.length == 1 ? this.buffers[i].set(t.buffers[0], e % le) : this.buffers[i].set(t, e % le);
300
+ return t instanceof Li && t.buffers.length == 1 ? this.buffers[i].set(t.buffers[0], e % le) : this.buffers[i].set(t, e % le);
301
301
  let d = i, f = e % le, b = n;
302
302
  for (; b > 0; ) {
303
303
  const u = f + b > le ? le - f : b, s = t.slice(n - b, n - b + u);
@@ -305,10 +305,10 @@ let rs = class Ai {
305
305
  }
306
306
  }
307
307
  };
308
- function cs(o) {
308
+ function ss(o) {
309
309
  return globalThis.btoa(o);
310
310
  }
311
- cs(`(function thread(self) {
311
+ ss(`(function thread(self) {
312
312
  const MAXMEM = 32767;
313
313
  let instance;
314
314
  let memory;
@@ -434,18 +434,18 @@ ze("73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", 16);
434
434
  ze("21888242871839275222246405745257275088548364400416034343698204186575808495617");
435
435
  ze("1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab", 16);
436
436
  ze("21888242871839275222246405745257275088696311157297823662689037894645226208583");
437
- const Ea = as;
438
- var _n = {}, ss = /* @__PURE__ */ Object.freeze({
437
+ const wa = rs;
438
+ var _n = {}, ls = /* @__PURE__ */ Object.freeze({
439
439
  __proto__: null,
440
440
  default: _n
441
441
  });
442
- async function wa(o, t, e, n) {
442
+ async function Ba(o, t, e, n) {
443
443
  if (e = e || 4096 * 64, typeof t != "number" && ["w+", "wx+", "r", "ax+", "a+"].indexOf(t) < 0)
444
444
  throw new Error("Invalid open option");
445
445
  const i = await _n.promises.open(o, t), c = await i.stat();
446
- return new ls(i, c, e, n, o);
446
+ return new us(i, c, e, n, o);
447
447
  }
448
- class ls {
448
+ class us {
449
449
  constructor(t, e, n, i, c) {
450
450
  for (this.fileName = c, this.fd = t, this.pos = 0, this.pageSize = i || 256; this.pageSize < e.blksize; )
451
451
  this.pageSize *= 2;
@@ -664,16 +664,16 @@ class ls {
664
664
  return d;
665
665
  }
666
666
  }
667
- function us(o) {
668
- const t = o.initialSize || 1048576, e = new Fa();
667
+ function ds(o) {
668
+ const t = o.initialSize || 1048576, e = new va();
669
669
  return e.o = o, e.o.data = new Uint8Array(t), e.allocSize = t, e.totalSize = 0, e.readOnly = !1, e.pos = 0, e;
670
670
  }
671
- function ds(o) {
672
- const t = new Fa();
671
+ function fs(o) {
672
+ const t = new va();
673
673
  return t.o = o, t.allocSize = o.data.byteLength, t.totalSize = o.data.byteLength, t.readOnly = !0, t.pos = 0, t;
674
674
  }
675
- const Li = new Uint8Array(4), _o = new DataView(Li.buffer), Ba = new Uint8Array(8), ho = new DataView(Ba.buffer);
676
- class Fa {
675
+ const mi = new Uint8Array(4), ho = new DataView(mi.buffer), Fa = new Uint8Array(8), po = new DataView(Fa.buffer);
676
+ class va {
677
677
  constructor() {
678
678
  this.pageSize = 16384;
679
679
  }
@@ -710,15 +710,15 @@ class Fa {
710
710
  }
711
711
  async writeULE32(t, e) {
712
712
  const n = this;
713
- _o.setUint32(0, t, !0), await n.write(Li, e);
713
+ ho.setUint32(0, t, !0), await n.write(mi, e);
714
714
  }
715
715
  async writeUBE32(t, e) {
716
716
  const n = this;
717
- _o.setUint32(0, t, !1), await n.write(Li, e);
717
+ ho.setUint32(0, t, !1), await n.write(mi, e);
718
718
  }
719
719
  async writeULE64(t, e) {
720
720
  const n = this;
721
- ho.setUint32(0, t & 4294967295, !0), ho.setUint32(4, Math.floor(t / 4294967296), !0), await n.write(Ba, e);
721
+ po.setUint32(0, t & 4294967295, !0), po.setUint32(4, Math.floor(t / 4294967296), !0), await n.write(Fa, e);
722
722
  }
723
723
  async readULE32(t) {
724
724
  const n = await this.read(4, t);
@@ -750,8 +750,8 @@ class Fa {
750
750
  }
751
751
  }
752
752
  const ae = 1 << 22;
753
- function fs(o) {
754
- const t = o.initialSize || 0, e = new Sa();
753
+ function gs(o) {
754
+ const t = o.initialSize || 0, e = new xa();
755
755
  e.o = o;
756
756
  const n = t ? Math.floor((t - 1) / ae) + 1 : 0;
757
757
  e.o.data = [];
@@ -759,12 +759,12 @@ function fs(o) {
759
759
  e.o.data.push(new Uint8Array(ae));
760
760
  return n && e.o.data.push(new Uint8Array(t - ae * (n - 1))), e.totalSize = 0, e.readOnly = !1, e.pos = 0, e;
761
761
  }
762
- function gs(o) {
763
- const t = new Sa();
762
+ function _s(o) {
763
+ const t = new xa();
764
764
  return t.o = o, t.totalSize = (o.data.length - 1) * ae + o.data[o.data.length - 1].byteLength, t.readOnly = !0, t.pos = 0, t;
765
765
  }
766
- const mi = new Uint8Array(4), po = new DataView(mi.buffer), va = new Uint8Array(8), yo = new DataView(va.buffer);
767
- class Sa {
766
+ const bi = new Uint8Array(4), yo = new DataView(bi.buffer), Sa = new Uint8Array(8), Ao = new DataView(Sa.buffer);
767
+ class xa {
768
768
  constructor() {
769
769
  this.pageSize = 16384;
770
770
  }
@@ -814,15 +814,15 @@ class Sa {
814
814
  }
815
815
  async writeULE32(t, e) {
816
816
  const n = this;
817
- po.setUint32(0, t, !0), await n.write(mi, e);
817
+ yo.setUint32(0, t, !0), await n.write(bi, e);
818
818
  }
819
819
  async writeUBE32(t, e) {
820
820
  const n = this;
821
- po.setUint32(0, t, !1), await n.write(mi, e);
821
+ yo.setUint32(0, t, !1), await n.write(bi, e);
822
822
  }
823
823
  async writeULE64(t, e) {
824
824
  const n = this;
825
- yo.setUint32(0, t & 4294967295, !0), yo.setUint32(4, Math.floor(t / 4294967296), !0), await n.write(va, e);
825
+ Ao.setUint32(0, t & 4294967295, !0), Ao.setUint32(4, Math.floor(t / 4294967296), !0), await n.write(Sa, e);
826
826
  }
827
827
  async readULE32(t) {
828
828
  const n = await this.read(4, t);
@@ -857,22 +857,22 @@ class Sa {
857
857
  return d;
858
858
  }
859
859
  }
860
- const _s = 1024, hs = 512, ps = 2, ys = 0, xa = 65536, Oa = 8192;
861
- async function Pa(o, t, e) {
860
+ const hs = 1024, ps = 512, ys = 2, As = 0, Oa = 65536, Pa = 8192;
861
+ async function Da(o, t, e) {
862
862
  if (typeof o == "string" && (o = {
863
863
  type: "file",
864
864
  fileName: o,
865
- cacheSize: t || xa,
866
- pageSize: e || Oa
865
+ cacheSize: t || Oa,
866
+ pageSize: e || Pa
867
867
  }), o.type == "file")
868
- return await wa(o.fileName, _s | hs | ps, o.cacheSize, o.pageSize);
868
+ return await Ba(o.fileName, hs | ps | ys, o.cacheSize, o.pageSize);
869
869
  if (o.type == "mem")
870
- return us(o);
870
+ return ds(o);
871
871
  if (o.type == "bigMem")
872
- return fs(o);
872
+ return gs(o);
873
873
  throw new Error("Invalid FastFile type: " + o.type);
874
874
  }
875
- async function Da(o, t, e) {
875
+ async function ka(o, t, e) {
876
876
  if (o instanceof Uint8Array && (o = {
877
877
  type: "mem",
878
878
  data: o
@@ -886,18 +886,18 @@ async function Da(o, t, e) {
886
886
  }) : typeof o == "string" && (o = {
887
887
  type: "file",
888
888
  fileName: o,
889
- cacheSize: t || xa,
890
- pageSize: e || Oa
889
+ cacheSize: t || Oa,
890
+ pageSize: e || Pa
891
891
  }), o.type == "file")
892
- return await wa(o.fileName, ys, o.cacheSize, o.pageSize);
892
+ return await Ba(o.fileName, As, o.cacheSize, o.pageSize);
893
893
  if (o.type == "mem")
894
- return await ds(o);
894
+ return await fs(o);
895
895
  if (o.type == "bigMem")
896
- return await gs(o);
896
+ return await _s(o);
897
897
  throw new Error("Invalid FastFile type: " + o.type);
898
898
  }
899
- async function Ao(o, t, e, n, i) {
900
- const c = await Da(o, n, i), d = await c.read(4);
899
+ async function Lo(o, t, e, n, i) {
900
+ const c = await ka(o, n, i), d = await c.read(4);
901
901
  let f = "";
902
902
  for (let C = 0; C < 4; C++)
903
903
  f += String.fromCharCode(d[C]);
@@ -916,20 +916,20 @@ async function Ao(o, t, e, n, i) {
916
916
  }
917
917
  return { fd: c, sections: s };
918
918
  }
919
- async function As(o, t, e, n, i, c) {
920
- const d = await Pa(o, i, c), f = new Uint8Array(4);
919
+ async function Ls(o, t, e, n, i, c) {
920
+ const d = await Da(o, i, c), f = new Uint8Array(4);
921
921
  for (let b = 0; b < 4; b++)
922
922
  f[b] = t.charCodeAt(b);
923
923
  return await d.write(f, 0), await d.writeULE32(e), await d.writeULE32(n), d;
924
924
  }
925
- async function Lo(o, t) {
925
+ async function mo(o, t) {
926
926
  if (typeof o.writingSection < "u")
927
927
  throw new Error("Already writing a section");
928
928
  await o.writeULE32(t), o.writingSection = {
929
929
  pSectionSize: o.pos
930
930
  }, await o.writeULE64(0);
931
931
  }
932
- async function mo(o) {
932
+ async function bo(o) {
933
933
  if (typeof o.writingSection > "u")
934
934
  throw new Error("Not writing a section");
935
935
  const t = o.pos - o.writingSection.pSectionSize - 8, e = o.pos;
@@ -951,21 +951,21 @@ async function pn(o, t) {
951
951
  throw new Error("Invalid section size reading");
952
952
  delete o.readingSection;
953
953
  }
954
- async function Ls(o, t, e, n) {
954
+ async function ms(o, t, e, n) {
955
955
  const i = new Uint8Array(e);
956
- Ea.toRprLE(i, 0, t, e), await o.write(i, n);
956
+ wa.toRprLE(i, 0, t, e), await o.write(i, n);
957
957
  }
958
958
  async function Qe(o, t, e) {
959
959
  const n = await o.read(t, e);
960
- return Ea.fromRprLE(n, 0, t);
960
+ return wa.fromRprLE(n, 0, t);
961
961
  }
962
962
  async function ke(o, t, e, n, i) {
963
963
  if (n = typeof n > "u" ? 0 : n, i = typeof i > "u" ? t[e][0].size - n : i, n + i > t[e][0].size)
964
964
  throw new Error("Reading out of the range of the section");
965
965
  let c;
966
- return i < 1 << 30 ? c = new Uint8Array(i) : c = new rs(i), await o.readToBuffer(c, 0, i, t[e][0].p + n), c;
966
+ return i < 1 << 30 ? c = new Uint8Array(i) : c = new cs(i), await o.readToBuffer(c, 0, i, t[e][0].p + n), c;
967
967
  }
968
- const ms = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
968
+ const bs = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
969
969
  function qn(o, t) {
970
970
  if (!t || t == 10)
971
971
  return BigInt(o);
@@ -973,7 +973,7 @@ function qn(o, t) {
973
973
  return o.slice(0, 2) == "0x" ? BigInt(o) : BigInt("0x" + o);
974
974
  }
975
975
  const ie = qn;
976
- function bs(o, t) {
976
+ function Cs(o, t) {
977
977
  let e = BigInt(0);
978
978
  t = BigInt(t);
979
979
  for (let n = 0; n < o.length; n++)
@@ -982,12 +982,12 @@ function bs(o, t) {
982
982
  }
983
983
  function yn(o) {
984
984
  const t = o.toString(16);
985
- return (t.length - 1) * 4 + ms[parseInt(t[0], 16)];
985
+ return (t.length - 1) * 4 + bs[parseInt(t[0], 16)];
986
986
  }
987
- function ka(o) {
987
+ function Ma(o) {
988
988
  return BigInt(o) < BigInt(0);
989
989
  }
990
- function Ma(o) {
990
+ function Ta(o) {
991
991
  return !o;
992
992
  }
993
993
  function On(o, t) {
@@ -996,11 +996,11 @@ function On(o, t) {
996
996
  function We(o, t) {
997
997
  return BigInt(o) >> BigInt(t);
998
998
  }
999
- const Cs = On, Is = We;
1000
- function ji(o) {
999
+ const Is = On, Es = We;
1000
+ function Gi(o) {
1001
1001
  return (BigInt(o) & BigInt(1)) == BigInt(1);
1002
1002
  }
1003
- function Es(o) {
1003
+ function ws(o) {
1004
1004
  let t = BigInt(o);
1005
1005
  const e = [];
1006
1006
  for (; t; ) {
@@ -1013,47 +1013,47 @@ function Es(o) {
1013
1013
  }
1014
1014
  return e;
1015
1015
  }
1016
- function Ta(o) {
1016
+ function Ua(o) {
1017
1017
  let t = BigInt(o);
1018
1018
  const e = [];
1019
1019
  for (; t; )
1020
1020
  t & BigInt(1) ? e.push(1) : e.push(0), t = t >> BigInt(1);
1021
1021
  return e;
1022
1022
  }
1023
- function Ua(o) {
1023
+ function Na(o) {
1024
1024
  if (o > BigInt(Number.MAX_SAFE_INTEGER))
1025
1025
  throw new Error("Number too big");
1026
1026
  return Number(o);
1027
1027
  }
1028
- function ws(o, t) {
1028
+ function Bs(o, t) {
1029
1029
  const e = [];
1030
1030
  let n = BigInt(o);
1031
1031
  for (t = BigInt(t); n; )
1032
1032
  e.unshift(Number(n % t)), n = n / t;
1033
1033
  return e;
1034
1034
  }
1035
- function Gi(o, t) {
1035
+ function $i(o, t) {
1036
1036
  return BigInt(o) + BigInt(t);
1037
1037
  }
1038
1038
  function Fe(o, t) {
1039
1039
  return BigInt(o) - BigInt(t);
1040
1040
  }
1041
- function Na(o) {
1041
+ function Ra(o) {
1042
1042
  return -BigInt(o);
1043
1043
  }
1044
- function Ra(o, t) {
1044
+ function qa(o, t) {
1045
1045
  return BigInt(o) * BigInt(t);
1046
1046
  }
1047
- function Bs(o) {
1047
+ function Fs(o) {
1048
1048
  return BigInt(o) * BigInt(o);
1049
1049
  }
1050
1050
  function An(o, t) {
1051
1051
  return BigInt(o) ** BigInt(t);
1052
1052
  }
1053
- function Fs(o, t) {
1053
+ function vs(o, t) {
1054
1054
  return BigInt(o) ** BigInt(t);
1055
1055
  }
1056
- function vs(o) {
1056
+ function Ss(o) {
1057
1057
  return BigInt(o) >= 0 ? BigInt(o) : -BigInt(o);
1058
1058
  }
1059
1059
  function Je(o, t) {
@@ -1065,37 +1065,37 @@ function Ce(o, t) {
1065
1065
  function Me(o, t) {
1066
1066
  return BigInt(o) == BigInt(t);
1067
1067
  }
1068
- function Ss(o, t) {
1068
+ function xs(o, t) {
1069
1069
  return BigInt(o) != BigInt(t);
1070
1070
  }
1071
- function xs(o, t) {
1071
+ function Os(o, t) {
1072
1072
  return BigInt(o) < BigInt(t);
1073
1073
  }
1074
- function bi(o, t) {
1074
+ function Ci(o, t) {
1075
1075
  return BigInt(o) > BigInt(t);
1076
1076
  }
1077
- function Os(o, t) {
1077
+ function Ps(o, t) {
1078
1078
  return BigInt(o) <= BigInt(t);
1079
1079
  }
1080
- function qa(o, t) {
1080
+ function Qa(o, t) {
1081
1081
  return BigInt(o) >= BigInt(t);
1082
1082
  }
1083
- function $i(o, t) {
1083
+ function Ki(o, t) {
1084
1084
  return BigInt(o) & BigInt(t);
1085
1085
  }
1086
- function Ps(o, t) {
1086
+ function Ds(o, t) {
1087
1087
  return BigInt(o) | BigInt(t);
1088
1088
  }
1089
- function Ds(o, t) {
1089
+ function ks(o, t) {
1090
1090
  return BigInt(o) ^ BigInt(t);
1091
1091
  }
1092
- function ks(o, t) {
1092
+ function Ms(o, t) {
1093
1093
  return BigInt(o) && BigInt(t);
1094
1094
  }
1095
- function Ms(o, t) {
1095
+ function Ts(o, t) {
1096
1096
  return BigInt(o) || BigInt(t);
1097
1097
  }
1098
- function Ts(o) {
1098
+ function Us(o) {
1099
1099
  return !BigInt(o);
1100
1100
  }
1101
1101
  function fn(o, t, e, n) {
@@ -1105,9 +1105,9 @@ function fn(o, t, e, n) {
1105
1105
  for (let f = d; f < c.length; f++)
1106
1106
  c[f] = 0;
1107
1107
  for (let f = c.length * 4; f < n; f++)
1108
- o[f] = Ua($i(We(e, f * 8), 255));
1108
+ o[f] = Na(Ki(We(e, f * 8), 255));
1109
1109
  }
1110
- function Qa(o, t, e, n) {
1110
+ function za(o, t, e, n) {
1111
1111
  const i = "0000000" + e.toString(16), c = new DataView(o.buffer, o.byteOffset + t, n), d = ((i.length - 7) * 4 - 1 >> 5) + 1;
1112
1112
  for (let f = 0; f < d; f++)
1113
1113
  c.setUint32(n - f * 4 - 4, parseInt(i.substring(i.length - 8 * f - 8, i.length - 8 * f), 16), !1);
@@ -1119,73 +1119,73 @@ function gn(o, t, e) {
1119
1119
  const n = new Uint32Array(o.buffer, t, e / 4), i = new Array(e / 4);
1120
1120
  return n.forEach((c, d) => i[i.length - d - 1] = c.toString(16).padStart(8, "0")), qn(i.join(""), 16);
1121
1121
  }
1122
- function za(o, t, e) {
1122
+ function ja(o, t, e) {
1123
1123
  e = e || o.byteLength, t = t || 0;
1124
1124
  const n = new DataView(o.buffer, o.byteOffset + t, e), i = new Array(e / 4);
1125
1125
  for (let c = 0; c < e / 4; c++)
1126
1126
  i[c] = n.getUint32(c * 4, !1).toString(16).padStart(8, "0");
1127
1127
  return qn(i.join(""), 16);
1128
1128
  }
1129
- function ja(o, t) {
1129
+ function Ga(o, t) {
1130
1130
  return o.toString(t);
1131
1131
  }
1132
1132
  function Xe(o) {
1133
1133
  const t = new Uint8Array(Math.floor((yn(o) - 1) / 8) + 1);
1134
1134
  return fn(t, 0, o, t.byteLength), t;
1135
1135
  }
1136
- const Ga = ie(0), Te = ie(1);
1137
- var Us = /* @__PURE__ */ Object.freeze({
1136
+ const $a = ie(0), Te = ie(1);
1137
+ var Ns = /* @__PURE__ */ Object.freeze({
1138
1138
  __proto__: null,
1139
- abs: vs,
1140
- add: Gi,
1141
- band: $i,
1139
+ abs: Ss,
1140
+ add: $i,
1141
+ band: Ki,
1142
1142
  bitLength: yn,
1143
- bits: Ta,
1144
- bor: Ps,
1145
- bxor: Ds,
1143
+ bits: Ua,
1144
+ bor: Ds,
1145
+ bxor: ks,
1146
1146
  div: Je,
1147
1147
  e: ie,
1148
1148
  eq: Me,
1149
- exp: Fs,
1150
- fromArray: bs,
1151
- fromRprBE: za,
1149
+ exp: vs,
1150
+ fromArray: Cs,
1151
+ fromRprBE: ja,
1152
1152
  fromRprLE: gn,
1153
1153
  fromString: qn,
1154
- geq: qa,
1155
- gt: bi,
1156
- isNegative: ka,
1157
- isOdd: ji,
1158
- isZero: Ma,
1159
- land: ks,
1160
- leq: Os,
1161
- lnot: Ts,
1162
- lor: Ms,
1163
- lt: xs,
1154
+ geq: Qa,
1155
+ gt: Ci,
1156
+ isNegative: Ma,
1157
+ isOdd: Gi,
1158
+ isZero: Ta,
1159
+ land: Ms,
1160
+ leq: Ps,
1161
+ lnot: Us,
1162
+ lor: Ts,
1163
+ lt: Os,
1164
1164
  mod: Ce,
1165
- mul: Ra,
1166
- naf: Es,
1167
- neg: Na,
1168
- neq: Ss,
1165
+ mul: qa,
1166
+ naf: ws,
1167
+ neg: Ra,
1168
+ neq: xs,
1169
1169
  one: Te,
1170
1170
  pow: An,
1171
1171
  shiftLeft: On,
1172
1172
  shiftRight: We,
1173
- shl: Cs,
1174
- shr: Is,
1175
- square: Bs,
1173
+ shl: Is,
1174
+ shr: Es,
1175
+ square: Fs,
1176
1176
  sub: Fe,
1177
- toArray: ws,
1177
+ toArray: Bs,
1178
1178
  toLEBuff: Xe,
1179
- toNumber: Ua,
1180
- toRprBE: Qa,
1179
+ toNumber: Na,
1180
+ toRprBE: za,
1181
1181
  toRprLE: fn,
1182
- toString: ja,
1183
- zero: Ga
1182
+ toString: Ga,
1183
+ zero: $a
1184
1184
  });
1185
- function bo(o, t, e) {
1186
- if (Ma(e))
1185
+ function Co(o, t, e) {
1186
+ if (Ta(e))
1187
1187
  return o.one;
1188
- const n = Ta(e);
1188
+ const n = Ua(e);
1189
1189
  if (n.length == 0)
1190
1190
  return o.one;
1191
1191
  let i = t;
@@ -1193,29 +1193,29 @@ function bo(o, t, e) {
1193
1193
  i = o.square(i), n[c] && (i = o.mul(i, t));
1194
1194
  return i;
1195
1195
  }
1196
- function Ns(o) {
1196
+ function Rs(o) {
1197
1197
  if (o.m % 2 == 1)
1198
1198
  if (Me(Ce(o.p, 4), 1))
1199
1199
  if (Me(Ce(o.p, 8), 1))
1200
1200
  if (Me(Ce(o.p, 16), 1))
1201
- Rs(o);
1202
- else if (Me(Ce(o.p, 16), 9))
1203
1201
  qs(o);
1202
+ else if (Me(Ce(o.p, 16), 9))
1203
+ Qs(o);
1204
1204
  else
1205
1205
  throw new Error("Field withot sqrt");
1206
1206
  else if (Me(Ce(o.p, 8), 5))
1207
- Qs(o);
1207
+ zs(o);
1208
1208
  else
1209
1209
  throw new Error("Field withot sqrt");
1210
1210
  else
1211
- Me(Ce(o.p, 4), 3) && zs(o);
1211
+ Me(Ce(o.p, 4), 3) && js(o);
1212
1212
  else {
1213
1213
  const t = Ce(An(o.p, o.m / 2), 4);
1214
- t == 1 ? js(o) : t == 3 ? Gs(o) : $s(o);
1214
+ t == 1 ? Gs(o) : t == 3 ? $s(o) : Ks(o);
1215
1215
  }
1216
1216
  }
1217
- function Rs(o) {
1218
- for (o.sqrt_q = An(o.p, o.m), o.sqrt_s = 0, o.sqrt_t = Fe(o.sqrt_q, 1); !ji(o.sqrt_t); )
1217
+ function qs(o) {
1218
+ for (o.sqrt_q = An(o.p, o.m), o.sqrt_s = 0, o.sqrt_t = Fe(o.sqrt_q, 1); !Gi(o.sqrt_t); )
1219
1219
  o.sqrt_s = o.sqrt_s + 1, o.sqrt_t = Je(o.sqrt_t, 2);
1220
1220
  let t = o.one;
1221
1221
  for (; o.eq(t, o.one); ) {
@@ -1243,17 +1243,17 @@ function Rs(o) {
1243
1243
  return n.geq(f, n.zero) ? f : n.neg(f);
1244
1244
  };
1245
1245
  }
1246
- function qs(o) {
1246
+ function Qs(o) {
1247
1247
  o.sqrt = function() {
1248
1248
  throw new Error("Sqrt alg 4 not implemented");
1249
1249
  };
1250
1250
  }
1251
- function Qs(o) {
1251
+ function zs(o) {
1252
1252
  o.sqrt = function() {
1253
1253
  throw new Error("Sqrt alg 3 not implemented");
1254
1254
  };
1255
1255
  }
1256
- function zs(o) {
1256
+ function js(o) {
1257
1257
  o.sqrt_q = An(o.p, o.m), o.sqrt_e1 = Je(Fe(o.sqrt_q, 3), 4), o.sqrt = function(t) {
1258
1258
  if (this.isZero(t))
1259
1259
  return this.zero;
@@ -1264,12 +1264,12 @@ function zs(o) {
1264
1264
  return o.geq(i, o.zero) ? i : o.neg(i);
1265
1265
  };
1266
1266
  }
1267
- function js(o) {
1267
+ function Gs(o) {
1268
1268
  o.sqrt = function() {
1269
1269
  throw new Error("Sqrt alg 10 not implemented");
1270
1270
  };
1271
1271
  }
1272
- function Gs(o) {
1272
+ function $s(o) {
1273
1273
  o.sqrt_q = An(o.p, o.m / 2), o.sqrt_e34 = Je(Fe(o.sqrt_q, 3), 4), o.sqrt_e12 = Je(Fe(o.sqrt_q, 1), 2), o.frobenius = function(t, e) {
1274
1274
  return t % 2 == 1 ? o.conjugate(e) : e;
1275
1275
  }, o.sqrt = function(t) {
@@ -1287,7 +1287,7 @@ function Gs(o) {
1287
1287
  return e.geq(f, e.zero) ? f : e.neg(f);
1288
1288
  };
1289
1289
  }
1290
- function $s(o) {
1290
+ function Ks(o) {
1291
1291
  o.sqrt = function() {
1292
1292
  throw new Error("Sqrt alg 8 not implemented");
1293
1293
  };
@@ -1295,10 +1295,10 @@ function $s(o) {
1295
1295
  function Oe(o, t, e, n, i) {
1296
1296
  o[t] = o[t] + o[e] >>> 0, o[i] = (o[i] ^ o[t]) >>> 0, o[i] = (o[i] << 16 | o[i] >>> 16 & 65535) >>> 0, o[n] = o[n] + o[i] >>> 0, o[e] = (o[e] ^ o[n]) >>> 0, o[e] = (o[e] << 12 | o[e] >>> 20 & 4095) >>> 0, o[t] = o[t] + o[e] >>> 0, o[i] = (o[i] ^ o[t]) >>> 0, o[i] = (o[i] << 8 | o[i] >>> 24 & 255) >>> 0, o[n] = o[n] + o[i] >>> 0, o[e] = (o[e] ^ o[n]) >>> 0, o[e] = (o[e] << 7 | o[e] >>> 25 & 127) >>> 0;
1297
1297
  }
1298
- function Ks(o) {
1298
+ function Hs(o) {
1299
1299
  Oe(o, 0, 4, 8, 12), Oe(o, 1, 5, 9, 13), Oe(o, 2, 6, 10, 14), Oe(o, 3, 7, 11, 15), Oe(o, 0, 5, 10, 15), Oe(o, 1, 6, 11, 12), Oe(o, 2, 7, 8, 13), Oe(o, 3, 4, 9, 14);
1300
1300
  }
1301
- class Hs {
1301
+ class Vs {
1302
1302
  constructor(t) {
1303
1303
  t = t || [0, 0, 0, 0, 0, 0, 0, 0], this.state = [
1304
1304
  1634760805,
@@ -1323,7 +1323,7 @@ class Hs {
1323
1323
  return this.idx == 16 && this.update(), this.buff[this.idx++];
1324
1324
  }
1325
1325
  nextU64() {
1326
- return Gi(Ra(this.nextU32(), 4294967296), this.nextU32());
1326
+ return $i(qa(this.nextU32(), 4294967296), this.nextU32());
1327
1327
  }
1328
1328
  nextBool() {
1329
1329
  return (this.nextU32() & 1) == 1;
@@ -1332,13 +1332,13 @@ class Hs {
1332
1332
  for (let t = 0; t < 16; t++)
1333
1333
  this.buff[t] = this.state[t];
1334
1334
  for (let t = 0; t < 10; t++)
1335
- Ks(this.buff);
1335
+ Hs(this.buff);
1336
1336
  for (let t = 0; t < 16; t++)
1337
1337
  this.buff[t] = this.buff[t] + this.state[t] >>> 0;
1338
1338
  this.idx = 0, this.state[12] = this.state[12] + 1 >>> 0, this.state[12] == 0 && (this.state[13] = this.state[13] + 1 >>> 0, this.state[13] == 0 && (this.state[14] = this.state[14] + 1 >>> 0, this.state[14] == 0 && (this.state[15] = this.state[15] + 1 >>> 0)));
1339
1339
  }
1340
1340
  }
1341
- function $a(o) {
1341
+ function Ka(o) {
1342
1342
  let t = new Uint8Array(o);
1343
1343
  if (process.browser)
1344
1344
  if (typeof globalThis.crypto < "u")
@@ -1350,17 +1350,17 @@ function $a(o) {
1350
1350
  _n.randomFillSync(t);
1351
1351
  return t;
1352
1352
  }
1353
- function Vs() {
1354
- const o = $a(32), t = new Uint32Array(o.buffer), e = [];
1353
+ function Ws() {
1354
+ const o = Ka(32), t = new Uint32Array(o.buffer), e = [];
1355
1355
  for (let n = 0; n < 8; n++)
1356
1356
  e.push(t[n]);
1357
1357
  return e;
1358
1358
  }
1359
1359
  let Cn = null;
1360
- function Ki() {
1361
- return Cn || (Cn = new Hs(Vs()), Cn);
1360
+ function Hi() {
1361
+ return Cn || (Cn = new Vs(Ws()), Cn);
1362
1362
  }
1363
- class Ws {
1363
+ class Ys {
1364
1364
  constructor(t, e, n) {
1365
1365
  this.F = e, this.G = t, this.opMulGF = n;
1366
1366
  let i = e.sqrt_t || e.t, c = e.sqrt_s || e.s, d = e.one;
@@ -1384,7 +1384,7 @@ class Ws {
1384
1384
  fft(t) {
1385
1385
  if (t.length <= 1)
1386
1386
  return t;
1387
- const e = Co(t.length - 1) + 1;
1387
+ const e = Io(t.length - 1) + 1;
1388
1388
  this._setRoots(e);
1389
1389
  const n = 1 << e;
1390
1390
  if (t.length != n)
@@ -1394,7 +1394,7 @@ class Ws {
1394
1394
  ifft(t) {
1395
1395
  if (t.length <= 1)
1396
1396
  return t;
1397
- const e = Co(t.length - 1) + 1;
1397
+ const e = Io(t.length - 1) + 1;
1398
1398
  this._setRoots(e);
1399
1399
  const n = 1 << e;
1400
1400
  if (t.length != n)
@@ -1405,7 +1405,7 @@ class Ws {
1405
1405
  return d;
1406
1406
  }
1407
1407
  }
1408
- function Co(o) {
1408
+ function Io(o) {
1409
1409
  return (o & 4294901760 ? (o &= 4294901760, 16) : 0) | (o & 4278255360 ? (o &= 4278255360, 8) : 0) | (o & 4042322160 ? (o &= 4042322160, 4) : 0) | (o & 3435973836 ? (o &= 3435973836, 2) : 0) | (o & 2863311530) !== 0;
1410
1410
  }
1411
1411
  function Pn(o, t, e, n, i) {
@@ -1422,7 +1422,7 @@ function Pn(o, t, e, n, i) {
1422
1422
  u[s] = o.G.add(f[s], o.opMulGF(b[s], o.roots[e][s])), u[s + d] = o.G.sub(f[s], o.opMulGF(b[s], o.roots[e][s]));
1423
1423
  return u;
1424
1424
  }
1425
- class Ys {
1425
+ class Zs {
1426
1426
  constructor(t) {
1427
1427
  this.type = "F1", this.one = BigInt(1), this.zero = BigInt(0), this.p = BigInt(t), this.m = 1, this.negone = this.p - this.one, this.two = BigInt(2), this.half = this.p >> this.one, this.bitLength = yn(this.p), this.mask = (this.one << BigInt(this.bitLength)) - this.one, this.n64 = Math.floor((this.bitLength - 1) / 64) + 1, this.n32 = this.n64 * 2, this.n8 = this.n64 * 8, this.R = this.e(this.one << BigInt(this.n64 * 64)), this.Ri = this.inv(this.R);
1428
1428
  const e = this.negone >> this.one;
@@ -1432,7 +1432,7 @@ class Ys {
1432
1432
  this.nqr = this.nqr + this.one, n = this.pow(this.nqr, e);
1433
1433
  for (this.s = 0, this.t = this.negone; (this.t & this.one) == this.zero; )
1434
1434
  this.s = this.s + 1, this.t = this.t >> this.one;
1435
- this.nqr_to_t = this.pow(this.nqr, this.t), Ns(this), this.FFT = new Ws(this, this, this.mul.bind(this)), this.fft = this.FFT.fft.bind(this.FFT), this.ifft = this.FFT.ifft.bind(this.FFT), this.w = this.FFT.w, this.wi = this.FFT.wi, this.shift = this.square(this.nqr), this.k = this.exp(this.nqr, 2 ** this.s);
1435
+ this.nqr_to_t = this.pow(this.nqr, this.t), Rs(this), this.FFT = new Ys(this, this, this.mul.bind(this)), this.fft = this.FFT.fft.bind(this.FFT), this.ifft = this.FFT.ifft.bind(this.FFT), this.w = this.FFT.w, this.wi = this.FFT.wi, this.shift = this.square(this.nqr), this.k = this.exp(this.nqr, 2 ** this.s);
1436
1436
  }
1437
1437
  e(t, e) {
1438
1438
  let n;
@@ -1505,10 +1505,10 @@ class Ys {
1505
1505
  return t % e;
1506
1506
  }
1507
1507
  pow(t, e) {
1508
- return bo(this, t, e);
1508
+ return Co(this, t, e);
1509
1509
  }
1510
1510
  exp(t, e) {
1511
- return bo(this, t, e);
1511
+ return Co(this, t, e);
1512
1512
  }
1513
1513
  band(t, e) {
1514
1514
  const n = t & e & this.mask;
@@ -1584,7 +1584,7 @@ class Ys {
1584
1584
  const t = this.bitLength * 2 / 8;
1585
1585
  let e = this.zero;
1586
1586
  for (let n = 0; n < t; n++)
1587
- e = (e << BigInt(8)) + BigInt($a(1)[0]);
1587
+ e = (e << BigInt(8)) + BigInt(Ka(1)[0]);
1588
1588
  return e % this.p;
1589
1589
  }
1590
1590
  toString(t, e) {
@@ -1617,7 +1617,7 @@ class Ys {
1617
1617
  }
1618
1618
  // Returns a buffer with Big Endian Representation
1619
1619
  toRprBE(t, e, n) {
1620
- Qa(t, e, n, this.n64 * 8);
1620
+ za(t, e, n, this.n64 * 8);
1621
1621
  }
1622
1622
  // Returns a buffer with Big Endian Montgomery Representation
1623
1623
  toRprBEM(t, e, n) {
@@ -1632,7 +1632,7 @@ class Ys {
1632
1632
  }
1633
1633
  // Pases a buffer with Big Endian Representation
1634
1634
  fromRprBE(t, e) {
1635
- return za(t, e, this.n8);
1635
+ return ja(t, e, this.n8);
1636
1636
  }
1637
1637
  fromRprLEM(t, e) {
1638
1638
  return this.mul(this.fromRprLE(t, e), this.Ri);
@@ -1662,7 +1662,7 @@ De.bigInt2U32LE = function(t, e) {
1662
1662
  De.isOcamNum = function(o) {
1663
1663
  return !(!Array.isArray(o) || o.length != 3 || typeof o[0] != "number" || typeof o[1] != "number" || !Array.isArray(o[2]));
1664
1664
  };
1665
- var Zs = function(t, e, n) {
1665
+ var Js = function(t, e, n) {
1666
1666
  const i = n || "int";
1667
1667
  if (t.modules[i])
1668
1668
  return i;
@@ -2388,7 +2388,7 @@ var Zs = function(t, e, n) {
2388
2388
  ));
2389
2389
  }
2390
2390
  return f(), b(), s(), u(), C(), E(), m(), P(), k(), L(), M(), F(), D(), t.exportFunction(i + "_copy"), t.exportFunction(i + "_zero"), t.exportFunction(i + "_one"), t.exportFunction(i + "_isZero"), t.exportFunction(i + "_eq"), t.exportFunction(i + "_gte"), t.exportFunction(i + "_add"), t.exportFunction(i + "_sub"), t.exportFunction(i + "_mul"), t.exportFunction(i + "_square"), t.exportFunction(i + "_squareOld"), t.exportFunction(i + "_div"), t.exportFunction(i + "_inverseMod"), i;
2391
- }, Hi = function(t, e, n, i, c, d, f) {
2391
+ }, Vi = function(t, e, n, i, c, d, f) {
2392
2392
  const b = t.addFunction(e);
2393
2393
  b.addParam("base", "i32"), b.addParam("scalar", "i32"), b.addParam("scalarLength", "i32"), b.addParam("r", "i32"), b.addLocal("i", "i32"), b.addLocal("b", "i32");
2394
2394
  const u = b.getCodeBuilder(), s = u.i32_const(t.alloc(n));
@@ -2436,8 +2436,8 @@ var Zs = function(t, e, n) {
2436
2436
  );
2437
2437
  return E;
2438
2438
  }
2439
- }, Vi = Js;
2440
- function Js(o, t) {
2439
+ }, Wi = Xs;
2440
+ function Xs(o, t) {
2441
2441
  const e = o.modules[t].n64 * 8, n = o.addFunction(t + "_batchInverse");
2442
2442
  n.addParam("pIn", "i32"), n.addParam("inStep", "i32"), n.addParam("n", "i32"), n.addParam("pOut", "i32"), n.addParam("outStep", "i32"), n.addLocal("itAux", "i32"), n.addLocal("itIn", "i32"), n.addLocal("itOut", "i32"), n.addLocal("i", "i32");
2443
2443
  const i = n.getCodeBuilder(), c = i.i32_const(o.alloc(e));
@@ -2544,8 +2544,8 @@ function Js(o, t) {
2544
2544
  )
2545
2545
  );
2546
2546
  }
2547
- var Ka = Xs;
2548
- function Xs(o, t, e, n, i, c) {
2547
+ var Ha = tl;
2548
+ function tl(o, t, e, n, i, c) {
2549
2549
  typeof c > "u" && (n < i ? c = !0 : c = !1);
2550
2550
  const d = o.addFunction(t);
2551
2551
  d.addParam("pIn", "i32"), d.addParam("n", "i32"), d.addParam("pOut", "i32"), d.addLocal("i", "i32"), d.addLocal("itIn", "i32"), d.addLocal("itOut", "i32");
@@ -2600,8 +2600,8 @@ function Xs(o, t, e, n, i, c) {
2600
2600
  ))
2601
2601
  );
2602
2602
  }
2603
- var tl = el;
2604
- function el(o, t, e, n, i, c) {
2603
+ var el = nl;
2604
+ function nl(o, t, e, n, i, c) {
2605
2605
  typeof c > "u" && (n < i ? c = !0 : c = !1);
2606
2606
  const d = o.addFunction(t);
2607
2607
  d.addParam("pIn1", "i32"), d.addParam("pIn2", "i32"), d.addParam("n", "i32"), d.addParam("pOut", "i32"), d.addLocal("i", "i32"), d.addLocal("itIn1", "i32"), d.addLocal("itIn2", "i32"), d.addLocal("itOut", "i32");
@@ -2673,25 +2673,25 @@ function el(o, t, e, n, i, c) {
2673
2673
  );
2674
2674
  }
2675
2675
  var ge = {};
2676
- function Ha(o, t) {
2676
+ function Va(o, t) {
2677
2677
  return o === t ? 0 : o > t ? 1 : -1;
2678
2678
  }
2679
- function Wi(o) {
2679
+ function Yi(o) {
2680
2680
  return o * o;
2681
2681
  }
2682
- function Va(o) {
2682
+ function Wa(o) {
2683
2683
  return o % 2n !== 0n;
2684
2684
  }
2685
- function Yi(o) {
2685
+ function Zi(o) {
2686
2686
  return o % 2n === 0n;
2687
2687
  }
2688
2688
  function Qn(o) {
2689
2689
  return o < 0n;
2690
2690
  }
2691
- function nl(o) {
2691
+ function il(o) {
2692
2692
  return o > 0n;
2693
2693
  }
2694
- function Wa(o) {
2694
+ function Ya(o) {
2695
2695
  return Qn(o) ? o.toString(2).length - 1 : o.toString(2).length;
2696
2696
  }
2697
2697
  function Ln(o) {
@@ -2700,52 +2700,52 @@ function Ln(o) {
2700
2700
  function tn(o) {
2701
2701
  return Ln(o) === 1n;
2702
2702
  }
2703
- function Ya(o, t) {
2703
+ function Za(o, t) {
2704
2704
  for (var e = 0n, n = 1n, i = t, c = Ln(o), d, f, b; c !== 0n; )
2705
2705
  d = i / c, f = e, b = i, e = n, i = c, n = f - d * n, c = b - d * c;
2706
2706
  if (!tn(i))
2707
2707
  throw new Error(o.toString() + " and " + t.toString() + " are not co-prime");
2708
- return Ha(e, 0n) === -1 && (e = e + t), Qn(o) ? -e : e;
2708
+ return Va(e, 0n) === -1 && (e = e + t), Qn(o) ? -e : e;
2709
2709
  }
2710
- function Za(o, t, e) {
2710
+ function Ja(o, t, e) {
2711
2711
  if (e === 0n)
2712
2712
  throw new Error("Cannot take modPow with modulus 0");
2713
2713
  var n = 1n, i = o % e;
2714
- for (Qn(t) && (t = t * -1n, i = Ya(i, e)); nl(t); ) {
2714
+ for (Qn(t) && (t = t * -1n, i = Za(i, e)); il(t); ) {
2715
2715
  if (i === 0n)
2716
2716
  return 0n;
2717
- Va(t) && (n = n * i % e), t = t / 2n, i = Wi(i) % e;
2717
+ Wa(t) && (n = n * i % e), t = t / 2n, i = Yi(i) % e;
2718
2718
  }
2719
2719
  return n;
2720
2720
  }
2721
- function il(o, t) {
2721
+ function ol(o, t) {
2722
2722
  return o = o >= 0n ? o : -o, t = t >= 0n ? t : -t, o === t ? 0 : o > t ? 1 : -1;
2723
2723
  }
2724
- function Io(o, t) {
2725
- return t === 0n ? !1 : tn(t) ? !0 : il(t, 2n) === 0 ? Yi(o) : o % t === 0n;
2724
+ function Eo(o, t) {
2725
+ return t === 0n ? !1 : tn(t) ? !0 : ol(t, 2n) === 0 ? Zi(o) : o % t === 0n;
2726
2726
  }
2727
- function ol(o) {
2727
+ function al(o) {
2728
2728
  var t = Ln(o);
2729
2729
  if (tn(t))
2730
2730
  return !1;
2731
2731
  if (t === 2n || t === 3n || t === 5n)
2732
2732
  return !0;
2733
- if (Yi(t) || Io(t, 3n) || Io(t, 5n))
2733
+ if (Zi(t) || Eo(t, 3n) || Eo(t, 5n))
2734
2734
  return !1;
2735
2735
  if (t < 49n)
2736
2736
  return !0;
2737
2737
  }
2738
- function al(o) {
2738
+ function rl(o) {
2739
2739
  return o - 1n;
2740
2740
  }
2741
- function Eo(o, t) {
2742
- for (var e = al(o), n = e, i = 0, c, d, f; Yi(n); )
2741
+ function wo(o, t) {
2742
+ for (var e = rl(o), n = e, i = 0, c, d, f; Zi(n); )
2743
2743
  n = n / 2n, i++;
2744
2744
  t:
2745
2745
  for (d = 0; d < t.length; d++)
2746
- if (!(o < t[d]) && (f = Za(BigInt(t[d]), n, o), !(tn(f) || f === e))) {
2746
+ if (!(o < t[d]) && (f = Ja(BigInt(t[d]), n, o), !(tn(f) || f === e))) {
2747
2747
  for (c = i - 1; c != 0; c--) {
2748
- if (f = Wi(f) % o, tn(f))
2748
+ if (f = Yi(f) % o, tn(f))
2749
2749
  return !1;
2750
2750
  if (f === e)
2751
2751
  continue t;
@@ -2754,33 +2754,33 @@ function Eo(o, t) {
2754
2754
  }
2755
2755
  return !0;
2756
2756
  }
2757
- function rl(o) {
2758
- var t = ol(o);
2757
+ function cl(o) {
2758
+ var t = al(o);
2759
2759
  if (t !== void 0)
2760
2760
  return t;
2761
- var e = Ln(o), n = Wa(e);
2761
+ var e = Ln(o), n = Ya(e);
2762
2762
  if (n <= 64)
2763
- return Eo(e, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]);
2763
+ return wo(e, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]);
2764
2764
  for (var i = Math.log(2) * Number(n), c = Math.ceil(i), d = [], f = 0; f < c; f++)
2765
2765
  d.push(BigInt(f + 2));
2766
- return Eo(e, d);
2766
+ return wo(e, d);
2767
2767
  }
2768
- ge.bitLength = Wa;
2769
- ge.isOdd = Va;
2768
+ ge.bitLength = Ya;
2769
+ ge.isOdd = Wa;
2770
2770
  ge.isNegative = Qn;
2771
2771
  ge.abs = Ln;
2772
2772
  ge.isUnit = tn;
2773
- ge.compare = Ha;
2774
- ge.modInv = Ya;
2775
- ge.modPow = Za;
2776
- ge.isPrime = rl;
2777
- ge.square = Wi;
2778
- const cl = Zs, Ee = De, sl = Hi, ll = Vi, Zn = Ka, Jn = tl, { bitLength: ul, modInv: Xn, modPow: wo, isPrime: Bo, isOdd: dl, square: fl } = ge;
2779
- var Zi = function(t, e, n, i) {
2780
- const c = BigInt(e), d = Math.floor((ul(c - 1n) - 1) / 64) + 1, f = d * 2, b = d * 8, u = n || "f1m";
2773
+ ge.compare = Va;
2774
+ ge.modInv = Za;
2775
+ ge.modPow = Ja;
2776
+ ge.isPrime = cl;
2777
+ ge.square = Yi;
2778
+ const sl = Js, Ee = De, ll = Vi, ul = Wi, Zn = Ha, Jn = el, { bitLength: dl, modInv: Xn, modPow: Bo, isPrime: Fo, isOdd: fl, square: gl } = ge;
2779
+ var Ji = function(t, e, n, i) {
2780
+ const c = BigInt(e), d = Math.floor((dl(c - 1n) - 1) / 64) + 1, f = d * 2, b = d * 8, u = n || "f1m";
2781
2781
  if (t.modules[u])
2782
2782
  return u;
2783
- const s = cl(t, d, i), C = t.alloc(b, Ee.bigInt2BytesLE(c, b)), E = t.alloc(Ee.bigInt2BytesLE(fl(1n << BigInt(d * 64)) % c, b)), m = t.alloc(Ee.bigInt2BytesLE((1n << BigInt(d * 64)) % c, b)), P = t.alloc(Ee.bigInt2BytesLE(0n, b)), k = c - 1n, L = k >> 1n, M = t.alloc(b, Ee.bigInt2BytesLE(L, b)), O = L + 1n, j = t.alloc(b, Ee.bigInt2BytesLE(O, b));
2783
+ const s = sl(t, d, i), C = t.alloc(b, Ee.bigInt2BytesLE(c, b)), E = t.alloc(Ee.bigInt2BytesLE(gl(1n << BigInt(d * 64)) % c, b)), m = t.alloc(Ee.bigInt2BytesLE((1n << BigInt(d * 64)) % c, b)), P = t.alloc(Ee.bigInt2BytesLE(0n, b)), k = c - 1n, L = k >> 1n, M = t.alloc(b, Ee.bigInt2BytesLE(L, b)), O = L + 1n, j = t.alloc(b, Ee.bigInt2BytesLE(O, b));
2784
2784
  t.modules[u] = {
2785
2785
  pq: C,
2786
2786
  pR2: E,
@@ -3303,13 +3303,13 @@ var Zi = function(t, e, n, i) {
3303
3303
  B.addCode(h.call(u + "_fromMontgomery", h.getLocal("x"), h.getLocal("r"))), B.addCode(h.call(s + "_inverseMod", h.getLocal("r"), h.i32_const(C), h.getLocal("r"))), B.addCode(h.call(u + "_toMontgomery", h.getLocal("r"), h.getLocal("r")));
3304
3304
  }
3305
3305
  let at = 2n;
3306
- if (Bo(c))
3307
- for (; wo(at, L, c) !== k; )
3306
+ if (Fo(c))
3307
+ for (; Bo(at, L, c) !== k; )
3308
3308
  at = at + 1n;
3309
3309
  let X = 0, _t = k;
3310
- for (; !dl(_t) && _t !== 0n; )
3310
+ for (; !fl(_t) && _t !== 0n; )
3311
3311
  X++, _t = _t >> 1n;
3312
- const ct = t.alloc(b, Ee.bigInt2BytesLE(_t, b)), yt = wo(at, _t, c), H = t.alloc(Ee.bigInt2BytesLE((yt << BigInt(d * 64)) % c, b)), R = _t + 1n >> 1n, G = t.alloc(b, Ee.bigInt2BytesLE(R, b));
3312
+ const ct = t.alloc(b, Ee.bigInt2BytesLE(_t, b)), yt = Bo(at, _t, c), H = t.alloc(Ee.bigInt2BytesLE((yt << BigInt(d * 64)) % c, b)), R = _t + 1n >> 1n, G = t.alloc(b, Ee.bigInt2BytesLE(R, b));
3313
3313
  function p() {
3314
3314
  const B = t.addFunction(u + "_sqrt");
3315
3315
  B.addParam("n", "i32"), B.addParam("r", "i32"), B.addLocal("m", "i32"), B.addLocal("i", "i32"), B.addLocal("j", "i32");
@@ -3433,7 +3433,7 @@ var Zi = function(t, e, n, i) {
3433
3433
  h.ret(h.call(s + "_eq", h.getLocal("x"), h.i32_const(m)))
3434
3434
  );
3435
3435
  }
3436
- return t.exportFunction(s + "_copy", u + "_copy"), t.exportFunction(s + "_zero", u + "_zero"), t.exportFunction(s + "_isZero", u + "_isZero"), t.exportFunction(s + "_eq", u + "_eq"), x(), D(), w(), l(), $(), T(), N(), I(), q(), Z(), A(), Q(), ut(), F(), S(), r(), ll(t, u), Zn(t, u + "_batchToMontgomery", u + "_toMontgomery", b, b), Zn(t, u + "_batchFromMontgomery", u + "_fromMontgomery", b, b), Zn(t, u + "_batchNeg", u + "_neg", b, b), Jn(t, u + "_batchAdd", u + "_add", b, b), Jn(t, u + "_batchSub", u + "_sub", b, b), Jn(t, u + "_batchMul", u + "_mul", b, b), t.exportFunction(u + "_add"), t.exportFunction(u + "_sub"), t.exportFunction(u + "_neg"), t.exportFunction(u + "_isNegative"), t.exportFunction(u + "_isOne"), t.exportFunction(u + "_sign"), t.exportFunction(u + "_mReduct"), t.exportFunction(u + "_mul"), t.exportFunction(u + "_square"), t.exportFunction(u + "_squareOld"), t.exportFunction(u + "_fromMontgomery"), t.exportFunction(u + "_toMontgomery"), t.exportFunction(u + "_inverse"), t.exportFunction(u + "_one"), t.exportFunction(u + "_load"), t.exportFunction(u + "_timesScalar"), sl(
3436
+ return t.exportFunction(s + "_copy", u + "_copy"), t.exportFunction(s + "_zero", u + "_zero"), t.exportFunction(s + "_isZero", u + "_isZero"), t.exportFunction(s + "_eq", u + "_eq"), x(), D(), w(), l(), $(), T(), N(), I(), q(), Z(), A(), Q(), ut(), F(), S(), r(), ul(t, u), Zn(t, u + "_batchToMontgomery", u + "_toMontgomery", b, b), Zn(t, u + "_batchFromMontgomery", u + "_fromMontgomery", b, b), Zn(t, u + "_batchNeg", u + "_neg", b, b), Jn(t, u + "_batchAdd", u + "_add", b, b), Jn(t, u + "_batchSub", u + "_sub", b, b), Jn(t, u + "_batchMul", u + "_mul", b, b), t.exportFunction(u + "_add"), t.exportFunction(u + "_sub"), t.exportFunction(u + "_neg"), t.exportFunction(u + "_isNegative"), t.exportFunction(u + "_isOne"), t.exportFunction(u + "_sign"), t.exportFunction(u + "_mReduct"), t.exportFunction(u + "_mul"), t.exportFunction(u + "_square"), t.exportFunction(u + "_squareOld"), t.exportFunction(u + "_fromMontgomery"), t.exportFunction(u + "_toMontgomery"), t.exportFunction(u + "_inverse"), t.exportFunction(u + "_one"), t.exportFunction(u + "_load"), t.exportFunction(u + "_timesScalar"), ll(
3437
3437
  t,
3438
3438
  u + "_exp",
3439
3439
  b,
@@ -3441,17 +3441,17 @@ var Zi = function(t, e, n, i) {
3441
3441
  u + "_square",
3442
3442
  s + "_copy",
3443
3443
  u + "_one"
3444
- ), t.exportFunction(u + "_exp"), t.exportFunction(u + "_batchInverse"), Bo(c) && (p(), a(), t.exportFunction(u + "_sqrt"), t.exportFunction(u + "_isSquare")), t.exportFunction(u + "_batchToMontgomery"), t.exportFunction(u + "_batchFromMontgomery"), u;
3444
+ ), t.exportFunction(u + "_exp"), t.exportFunction(u + "_batchInverse"), Fo(c) && (p(), a(), t.exportFunction(u + "_sqrt"), t.exportFunction(u + "_isSquare")), t.exportFunction(u + "_batchToMontgomery"), t.exportFunction(u + "_batchFromMontgomery"), u;
3445
3445
  };
3446
- const gl = Zi, { bitLength: _l } = ge;
3447
- var Ja = function(t, e, n, i, c) {
3448
- const d = BigInt(e), f = Math.floor((_l(d - 1n) - 1) / 64) + 1, b = f * 8, u = n || "f1";
3446
+ const _l = Ji, { bitLength: hl } = ge;
3447
+ var Xa = function(t, e, n, i, c) {
3448
+ const d = BigInt(e), f = Math.floor((hl(d - 1n) - 1) / 64) + 1, b = f * 8, u = n || "f1";
3449
3449
  if (t.modules[u])
3450
3450
  return u;
3451
3451
  t.modules[u] = {
3452
3452
  n64: f
3453
3453
  };
3454
- const s = c || "int", C = gl(t, d, i, s), E = t.modules[C].pR2, m = t.modules[C].pq, P = t.modules[C].pePlusOne;
3454
+ const s = c || "int", C = _l(t, d, i, s), E = t.modules[C].pR2, m = t.modules[C].pq, P = t.modules[C].pePlusOne;
3455
3455
  function k() {
3456
3456
  const j = t.alloc(b), F = t.addFunction(u + "_mul");
3457
3457
  F.addParam("x", "i32"), F.addParam("y", "i32"), F.addParam("r", "i32");
@@ -3480,8 +3480,8 @@ var Ja = function(t, e, n, i, c) {
3480
3480
  }
3481
3481
  return k(), L(), M(), O(), t.exportFunction(C + "_add", u + "_add"), t.exportFunction(C + "_sub", u + "_sub"), t.exportFunction(C + "_neg", u + "_neg"), t.exportFunction(u + "_mul"), t.exportFunction(u + "_square"), t.exportFunction(u + "_inverse"), t.exportFunction(u + "_isNegative"), t.exportFunction(C + "_copy", u + "_copy"), t.exportFunction(C + "_zero", u + "_zero"), t.exportFunction(C + "_one", u + "_one"), t.exportFunction(C + "_isZero", u + "_isZero"), t.exportFunction(C + "_eq", u + "_eq"), u;
3482
3482
  };
3483
- const hl = Hi, pl = Vi, ti = De;
3484
- var Xa = function(t, e, n, i) {
3483
+ const pl = Vi, yl = Wi, ti = De;
3484
+ var tr = function(t, e, n, i) {
3485
3485
  if (t.modules[n])
3486
3486
  return n;
3487
3487
  const c = t.modules[i].n64 * 8, d = t.modules[i].q;
@@ -3777,7 +3777,7 @@ var Xa = function(t, e, n, i) {
3777
3777
  I.ret(I.i32_const(1))
3778
3778
  );
3779
3779
  }
3780
- return w(), Q(), j(), F(), O(), m(), P(), k(), f(), u(), s(), C(), L(), M(), D(), l(), b(), A(), E(), t.exportFunction(n + "_isZero"), t.exportFunction(n + "_isOne"), t.exportFunction(n + "_zero"), t.exportFunction(n + "_one"), t.exportFunction(n + "_copy"), t.exportFunction(n + "_mul"), t.exportFunction(n + "_mul1"), t.exportFunction(n + "_square"), t.exportFunction(n + "_add"), t.exportFunction(n + "_sub"), t.exportFunction(n + "_neg"), t.exportFunction(n + "_sign"), t.exportFunction(n + "_conjugate"), t.exportFunction(n + "_fromMontgomery"), t.exportFunction(n + "_toMontgomery"), t.exportFunction(n + "_eq"), t.exportFunction(n + "_inverse"), pl(t, n), hl(
3780
+ return w(), Q(), j(), F(), O(), m(), P(), k(), f(), u(), s(), C(), L(), M(), D(), l(), b(), A(), E(), t.exportFunction(n + "_isZero"), t.exportFunction(n + "_isOne"), t.exportFunction(n + "_zero"), t.exportFunction(n + "_one"), t.exportFunction(n + "_copy"), t.exportFunction(n + "_mul"), t.exportFunction(n + "_mul1"), t.exportFunction(n + "_square"), t.exportFunction(n + "_add"), t.exportFunction(n + "_sub"), t.exportFunction(n + "_neg"), t.exportFunction(n + "_sign"), t.exportFunction(n + "_conjugate"), t.exportFunction(n + "_fromMontgomery"), t.exportFunction(n + "_toMontgomery"), t.exportFunction(n + "_eq"), t.exportFunction(n + "_inverse"), yl(t, n), pl(
3781
3781
  t,
3782
3782
  n + "_exp",
3783
3783
  c * 2,
@@ -3787,8 +3787,8 @@ var Xa = function(t, e, n, i) {
3787
3787
  n + "_one"
3788
3788
  ), $(), T(), t.exportFunction(n + "_exp"), t.exportFunction(n + "_timesScalar"), t.exportFunction(n + "_batchInverse"), t.exportFunction(n + "_sqrt"), t.exportFunction(n + "_isSquare"), t.exportFunction(n + "_isNegative"), n;
3789
3789
  };
3790
- const yl = Hi, Al = Vi;
3791
- var tr = function(t, e, n, i) {
3790
+ const Al = Vi, Ll = Wi;
3791
+ var er = function(t, e, n, i) {
3792
3792
  if (t.modules[n])
3793
3793
  return n;
3794
3794
  const c = t.modules[i].n64 * 8;
@@ -4045,7 +4045,7 @@ var tr = function(t, e, n, i) {
4045
4045
  )
4046
4046
  );
4047
4047
  }
4048
- return j(), w(), L(), M(), k(), C(), E(), d(), b(), u(), D(), m(), P(), O(), F(), f(), s(), t.exportFunction(n + "_isZero"), t.exportFunction(n + "_isOne"), t.exportFunction(n + "_zero"), t.exportFunction(n + "_one"), t.exportFunction(n + "_copy"), t.exportFunction(n + "_mul"), t.exportFunction(n + "_square"), t.exportFunction(n + "_add"), t.exportFunction(n + "_sub"), t.exportFunction(n + "_neg"), t.exportFunction(n + "_sign"), t.exportFunction(n + "_fromMontgomery"), t.exportFunction(n + "_toMontgomery"), t.exportFunction(n + "_eq"), t.exportFunction(n + "_inverse"), Al(t, n), yl(
4048
+ return j(), w(), L(), M(), k(), C(), E(), d(), b(), u(), D(), m(), P(), O(), F(), f(), s(), t.exportFunction(n + "_isZero"), t.exportFunction(n + "_isOne"), t.exportFunction(n + "_zero"), t.exportFunction(n + "_one"), t.exportFunction(n + "_copy"), t.exportFunction(n + "_mul"), t.exportFunction(n + "_square"), t.exportFunction(n + "_add"), t.exportFunction(n + "_sub"), t.exportFunction(n + "_neg"), t.exportFunction(n + "_sign"), t.exportFunction(n + "_fromMontgomery"), t.exportFunction(n + "_toMontgomery"), t.exportFunction(n + "_eq"), t.exportFunction(n + "_inverse"), Ll(t, n), Al(
4049
4049
  t,
4050
4050
  n + "_exp",
4051
4051
  c * 3,
@@ -4054,7 +4054,7 @@ var tr = function(t, e, n, i) {
4054
4054
  n + "_copy",
4055
4055
  n + "_one"
4056
4056
  ), t.exportFunction(n + "_exp"), t.exportFunction(n + "_timesScalar"), t.exportFunction(n + "_batchInverse"), t.exportFunction(n + "_isNegative"), n;
4057
- }, Ll = function(t, e, n, i, c, d, f, b) {
4057
+ }, ml = function(t, e, n, i, c, d, f, b) {
4058
4058
  const u = t.addFunction(e);
4059
4059
  u.addParam("base", "i32"), u.addParam("scalar", "i32"), u.addParam("scalarLength", "i32"), u.addParam("r", "i32"), u.addLocal("old0", "i32"), u.addLocal("nbits", "i32"), u.addLocal("i", "i32"), u.addLocal("last", "i32"), u.addLocal("cur", "i32"), u.addLocal("carry", "i32"), u.addLocal("p", "i32");
4060
4060
  const s = u.getCodeBuilder(), C = s.i32_const(t.alloc(n));
@@ -4237,7 +4237,7 @@ var tr = function(t, e, n, i) {
4237
4237
  )),
4238
4238
  s.i32_store(s.i32_const(0), s.getLocal("old0"))
4239
4239
  );
4240
- }, ml = function(t, e, n, i, c) {
4240
+ }, bl = function(t, e, n, i, c) {
4241
4241
  const f = t.modules[e].n64 * 8;
4242
4242
  function b() {
4243
4243
  const E = t.addFunction(n + "_getChunk");
@@ -4629,8 +4629,8 @@ var tr = function(t, e, n, i) {
4629
4629
  }
4630
4630
  b(), C(), u(), s(), t.exportFunction(n), t.exportFunction(n + "_chunk");
4631
4631
  };
4632
- const Fo = Ll, an = Ka, vo = ml;
4633
- var er = function(t, e, n, i) {
4632
+ const vo = ml, an = Ha, So = bl;
4633
+ var nr = function(t, e, n, i) {
4634
4634
  const c = t.modules[n].n64, d = c * 8;
4635
4635
  if (t.modules[e])
4636
4636
  return e;
@@ -5528,7 +5528,7 @@ var er = function(t, e, n, i) {
5528
5528
  )
5529
5529
  );
5530
5530
  }
5531
- return b(), f(), E(), C(), s(), u(), ut(), M(), P(), m(), L(), k(), A(), l(), w(), $(), Q(), I(), N(), T(), D(), F(), j(), O(), Z(), R(), G(), at(), q(), X(), ct(), _t(), yt(), H(), an(t, e + "_batchLEMtoU", e + "_LEMtoU", d * 2, d * 2), an(t, e + "_batchLEMtoC", e + "_LEMtoC", d * 2, d), an(t, e + "_batchUtoLEM", e + "_UtoLEM", d * 2, d * 2), an(t, e + "_batchCtoLEM", e + "_CtoLEM", d, d * 2, !0), an(t, e + "_batchToJacobian", e + "_toJacobian", d * 2, d * 3, !0), vo(t, e, e + "_multiexp", e + "_add", d * 3), vo(t, e, e + "_multiexpAffine", e + "_addMixed", d * 2), Fo(
5531
+ return b(), f(), E(), C(), s(), u(), ut(), M(), P(), m(), L(), k(), A(), l(), w(), $(), Q(), I(), N(), T(), D(), F(), j(), O(), Z(), R(), G(), at(), q(), X(), ct(), _t(), yt(), H(), an(t, e + "_batchLEMtoU", e + "_LEMtoU", d * 2, d * 2), an(t, e + "_batchLEMtoC", e + "_LEMtoC", d * 2, d), an(t, e + "_batchUtoLEM", e + "_UtoLEM", d * 2, d * 2), an(t, e + "_batchCtoLEM", e + "_CtoLEM", d, d * 2, !0), an(t, e + "_batchToJacobian", e + "_toJacobian", d * 2, d * 3, !0), So(t, e, e + "_multiexp", e + "_add", d * 3), So(t, e, e + "_multiexpAffine", e + "_addMixed", d * 2), vo(
5532
5532
  t,
5533
5533
  e + "_timesScalar",
5534
5534
  d * 3,
@@ -5537,7 +5537,7 @@ var er = function(t, e, n, i) {
5537
5537
  e + "_sub",
5538
5538
  e + "_copy",
5539
5539
  e + "_zero"
5540
- ), Fo(
5540
+ ), vo(
5541
5541
  t,
5542
5542
  e + "_timesScalarAffine",
5543
5543
  d * 2,
@@ -5548,11 +5548,11 @@ var er = function(t, e, n, i) {
5548
5548
  e + "_zero"
5549
5549
  ), t.exportFunction(e + "_isZero"), t.exportFunction(e + "_isZeroAffine"), t.exportFunction(e + "_eq"), t.exportFunction(e + "_eqMixed"), t.exportFunction(e + "_eqAffine"), t.exportFunction(e + "_copy"), t.exportFunction(e + "_copyAffine"), t.exportFunction(e + "_zero"), t.exportFunction(e + "_zeroAffine"), t.exportFunction(e + "_double"), t.exportFunction(e + "_doubleAffine"), t.exportFunction(e + "_add"), t.exportFunction(e + "_addMixed"), t.exportFunction(e + "_addAffine"), t.exportFunction(e + "_neg"), t.exportFunction(e + "_negAffine"), t.exportFunction(e + "_sub"), t.exportFunction(e + "_subMixed"), t.exportFunction(e + "_subAffine"), t.exportFunction(e + "_fromMontgomery"), t.exportFunction(e + "_fromMontgomeryAffine"), t.exportFunction(e + "_toMontgomery"), t.exportFunction(e + "_toMontgomeryAffine"), t.exportFunction(e + "_timesScalar"), t.exportFunction(e + "_timesScalarAffine"), t.exportFunction(e + "_normalize"), t.exportFunction(e + "_LEMtoU"), t.exportFunction(e + "_LEMtoC"), t.exportFunction(e + "_UtoLEM"), t.exportFunction(e + "_CtoLEM"), t.exportFunction(e + "_batchLEMtoU"), t.exportFunction(e + "_batchLEMtoC"), t.exportFunction(e + "_batchUtoLEM"), t.exportFunction(e + "_batchCtoLEM"), t.exportFunction(e + "_toAffine"), t.exportFunction(e + "_toJacobian"), t.exportFunction(e + "_batchToAffine"), t.exportFunction(e + "_batchToJacobian"), t.exportFunction(e + "_inCurve"), t.exportFunction(e + "_inCurveAffine"), e;
5550
5550
  };
5551
- const { isOdd: bl, modInv: So, modPow: rn } = ge, In = De;
5552
- var nr = function(t, e, n, i, c) {
5551
+ const { isOdd: Cl, modInv: xo, modPow: rn } = ge, In = De;
5552
+ var ir = function(t, e, n, i, c) {
5553
5553
  const f = t.modules[i].n64 * 8, u = t.modules[n].n64 * 8, s = t.modules[i].q;
5554
5554
  let C = s - 1n, E = 0;
5555
- for (; !bl(C); )
5555
+ for (; !Cl(C); )
5556
5556
  E++, C = C >> 1n;
5557
5557
  let m = 2n;
5558
5558
  for (; rn(m, s >> 1n, s) === 1n; )
@@ -5573,12 +5573,12 @@ var nr = function(t, e, n, i, c) {
5573
5573
  j[S] = j[S - 1] * 2n;
5574
5574
  const F = [];
5575
5575
  for (let S = 0; S <= E; S++) {
5576
- const r = So(j[S], s) * M % s;
5576
+ const r = xo(j[S], s) * M % s;
5577
5577
  F.push(...In.bigInt2BytesLE(r, f));
5578
5578
  }
5579
5579
  const D = t.alloc(F), w = rn(m, 2n, s), l = [], A = [];
5580
5580
  for (let S = 0; S <= E; S++) {
5581
- const r = rn(w, 2n ** BigInt(S), s), x = So(s + 1n - r, s);
5581
+ const r = rn(w, 2n ** BigInt(S), s), x = xo(s + 1n - r, s);
5582
5582
  l.push(...In.bigInt2BytesLE(r * M % s, f)), A.push(...In.bigInt2BytesLE(x * M % s, f));
5583
5583
  }
5584
5584
  const Q = t.alloc(l), $ = t.alloc(A);
@@ -6571,7 +6571,7 @@ var nr = function(t, e, n, i, c) {
6571
6571
  );
6572
6572
  }
6573
6573
  ct(), _t(), X(), at(), q(), Z(), ut(), yt(), H(), R(), p(), a(), G(), t.exportFunction(e + "_fft"), t.exportFunction(e + "_ifft"), t.exportFunction(e + "_rawfft"), t.exportFunction(e + "_fftJoin"), t.exportFunction(e + "_fftJoinExt"), t.exportFunction(e + "_fftJoinExtInv"), t.exportFunction(e + "_fftMix"), t.exportFunction(e + "_fftFinal"), t.exportFunction(e + "_prepareLagrangeEvaluation");
6574
- }, ir = function(t, e, n) {
6574
+ }, or = function(t, e, n) {
6575
6575
  const c = t.modules[n].n64 * 8;
6576
6576
  function d() {
6577
6577
  const b = t.addFunction(e + "_zero");
@@ -6664,7 +6664,7 @@ var nr = function(t, e, n, i, c) {
6664
6664
  );
6665
6665
  }
6666
6666
  return d(), f(), t.exportFunction(e + "_zero"), t.exportFunction(e + "_constructLC"), e;
6667
- }, or = function(t, e, n) {
6667
+ }, ar = function(t, e, n) {
6668
6668
  const c = t.modules[n].n64 * 8;
6669
6669
  function d() {
6670
6670
  const u = t.addFunction(e + "_buildABC");
@@ -6934,7 +6934,7 @@ var nr = function(t, e, n, i, c) {
6934
6934
  );
6935
6935
  }
6936
6936
  return d(), f(), b(), t.exportFunction(e + "_buildABC"), t.exportFunction(e + "_joinABC"), t.exportFunction(e + "_batchAdd"), e;
6937
- }, ar = function(t, e, n, i, c, d, f, b) {
6937
+ }, rr = function(t, e, n, i, c, d, f, b) {
6938
6938
  const u = t.addFunction(e);
6939
6939
  u.addParam("pIn", "i32"), u.addParam("n", "i32"), u.addParam("pFirst", "i32"), u.addParam("pInc", "i32"), u.addParam("pOut", "i32"), u.addLocal("pOldFree", "i32"), u.addLocal("i", "i32"), u.addLocal("pFrom", "i32"), u.addLocal("pTo", "i32");
6940
6940
  const s = u.getCodeBuilder(), C = s.i32_const(t.alloc(f));
@@ -6971,19 +6971,19 @@ var nr = function(t, e, n, i, c) {
6971
6971
  ))
6972
6972
  ), t.exportFunction(e);
6973
6973
  };
6974
- const jt = De, Cl = Zi, Il = Ja, xo = Xa, El = tr, Oo = er, ei = nr, wl = ir, Bl = or, cn = ar, { bitLength: Fl, modInv: vl, isOdd: Po, isNegative: Sl } = ge;
6975
- var xl = function(t, e) {
6974
+ const jt = De, Il = Ji, El = Xa, Oo = tr, wl = er, Po = nr, ei = ir, Bl = or, Fl = ar, cn = rr, { bitLength: vl, modInv: Sl, isOdd: Do, isNegative: xl } = ge;
6975
+ var Ol = function(t, e) {
6976
6976
  const n = e || "bn128";
6977
6977
  if (t.modules[n])
6978
6978
  return n;
6979
- const i = 21888242871839275222246405745257275088696311157297823662689037894645226208583n, c = 21888242871839275222246405745257275088548364400416034343698204186575808495617n, d = Math.floor((Fl(i - 1n) - 1) / 64) + 1, f = d * 8, b = f, u = f, s = u * 2, C = u * 12, E = t.alloc(jt.bigInt2BytesLE(c, b)), m = Cl(t, i, "f1m");
6980
- Il(t, c, "fr", "frm");
6981
- const P = t.alloc(jt.bigInt2BytesLE(F(3n), u)), k = Oo(t, "g1m", "f1m", P);
6982
- ei(t, "frm", "frm", "frm", "frm_mul"), wl(t, "pol", "frm"), Bl(t, "qap", "frm");
6983
- const L = xo(t, "f1m_neg", "f2m", "f1m"), M = t.alloc([
6979
+ const i = 21888242871839275222246405745257275088696311157297823662689037894645226208583n, c = 21888242871839275222246405745257275088548364400416034343698204186575808495617n, d = Math.floor((vl(i - 1n) - 1) / 64) + 1, f = d * 8, b = f, u = f, s = u * 2, C = u * 12, E = t.alloc(jt.bigInt2BytesLE(c, b)), m = Il(t, i, "f1m");
6980
+ El(t, c, "fr", "frm");
6981
+ const P = t.alloc(jt.bigInt2BytesLE(F(3n), u)), k = Po(t, "g1m", "f1m", P);
6982
+ ei(t, "frm", "frm", "frm", "frm_mul"), Bl(t, "pol", "frm"), Fl(t, "qap", "frm");
6983
+ const L = Oo(t, "f1m_neg", "f2m", "f1m"), M = t.alloc([
6984
6984
  ...jt.bigInt2BytesLE(F(19485874751759354771024239261021720505790618469301721065564631296452457478373n), u),
6985
6985
  ...jt.bigInt2BytesLE(F(266929791119991161246907387137283842545076965332900288569378510910307636690n), u)
6986
- ]), O = Oo(t, "g2m", "f2m", M);
6986
+ ]), O = Po(t, "g2m", "f2m", M);
6987
6987
  function j(et, g) {
6988
6988
  const _ = t.addFunction(et);
6989
6989
  _.addParam("pG", "i32"), _.addParam("pFr", "i32"), _.addParam("pr", "i32");
@@ -7084,7 +7084,7 @@ var xl = function(t, e) {
7084
7084
  ...jt.bigInt2BytesLE(F(9), u),
7085
7085
  ...jt.bigInt2BytesLE(F(1), u)
7086
7086
  ]), Z = t.alloc([
7087
- ...jt.bigInt2BytesLE(F(vl(2n, i)), u),
7087
+ ...jt.bigInt2BytesLE(F(Sl(2n, i)), u),
7088
7088
  ...jt.bigInt2BytesLE(0n, u)
7089
7089
  ]), ut = q, at = t.alloc([
7090
7090
  ...jt.bigInt2BytesLE(F(19485874751759354771024239261021720505790618469301721065564631296452457478373n), u),
@@ -7104,7 +7104,7 @@ var xl = function(t, e) {
7104
7104
  );
7105
7105
  }
7106
7106
  X();
7107
- const _t = El(t, n + "_mulNR6", "f6m", "f2m");
7107
+ const _t = wl(t, n + "_mulNR6", "f6m", "f2m");
7108
7108
  function ct() {
7109
7109
  const et = t.addFunction(n + "_mulNR12");
7110
7110
  et.addParam("x", "i32"), et.addParam("pr", "i32");
@@ -7129,7 +7129,7 @@ var xl = function(t, e) {
7129
7129
  );
7130
7130
  }
7131
7131
  ct();
7132
- const yt = xo(t, n + "_mulNR12", "ftm", _t), R = dt(29793968203157093288n), G = t.alloc(R), p = 3 * s, a = R.length - 1, r = R.reduce((et, g) => et + (g != 0 ? 1 : 0), 0) + a + 1, x = 3 * 2 * f, B = 3 * f * 2 + r * p;
7132
+ const yt = Oo(t, n + "_mulNR12", "ftm", _t), R = dt(29793968203157093288n), G = t.alloc(R), p = 3 * s, a = R.length - 1, r = R.reduce((et, g) => et + (g != 0 ? 1 : 0), 0) + a + 1, x = 3 * 2 * f, B = 3 * f * 2 + r * p;
7133
7133
  t.modules[n] = {
7134
7134
  n64: d,
7135
7135
  pG1gen: w,
@@ -7151,7 +7151,7 @@ var xl = function(t, e) {
7151
7151
  let g = et;
7152
7152
  const _ = [];
7153
7153
  for (; g > 0n; ) {
7154
- if (Po(g)) {
7154
+ if (Do(g)) {
7155
7155
  const W = 2 - Number(g % 4n);
7156
7156
  _.push(W), g = g - BigInt(W);
7157
7157
  } else
@@ -7164,7 +7164,7 @@ var xl = function(t, e) {
7164
7164
  let g = et;
7165
7165
  const _ = [];
7166
7166
  for (; g > 0n; )
7167
- Po(g) ? _.push(1) : _.push(0), g = g >> 1n;
7167
+ Do(g) ? _.push(1) : _.push(0), g = g >> 1n;
7168
7168
  return _;
7169
7169
  }
7170
7170
  function nt() {
@@ -7558,7 +7558,7 @@ var xl = function(t, e) {
7558
7558
  (lt * gt - ft * st) % i,
7559
7559
  (lt * st + ft * gt) % i
7560
7560
  ];
7561
- return Sl(Lt[0]) && (Lt[0] = Lt[0] + i), Lt;
7561
+ return xl(Lt[0]) && (Lt[0] = Lt[0] + i), Lt;
7562
7562
  }
7563
7563
  }
7564
7564
  function qt() {
@@ -7791,19 +7791,19 @@ var xl = function(t, e) {
7791
7791
  Ht(et), t.exportFunction(n + "_pairingEq" + et);
7792
7792
  Ft(), t.exportFunction(n + "_pairing"), t.exportFunction(n + "_prepareG1"), t.exportFunction(n + "_prepareG2"), t.exportFunction(n + "_millerLoop"), t.exportFunction(n + "_finalExponentiation"), t.exportFunction(n + "_finalExponentiationOld"), t.exportFunction(n + "__mulBy024"), t.exportFunction(n + "__mulBy024Old"), t.exportFunction(n + "__cyclotomicSquare"), t.exportFunction(n + "__cyclotomicExp_w0");
7793
7793
  };
7794
- const Qt = De, Ol = Zi, Pl = Ja, Do = Xa, Dl = tr, ko = er, ni = nr, kl = ir, Ml = or, sn = ar, { bitLength: Mo, isOdd: To, isNegative: Tl } = ge;
7795
- var Ul = function(t, e) {
7794
+ const Qt = De, Pl = Ji, Dl = Xa, ko = tr, kl = er, Mo = nr, ni = ir, Ml = or, Tl = ar, sn = rr, { bitLength: To, isOdd: Uo, isNegative: Ul } = ge;
7795
+ var Nl = function(t, e) {
7796
7796
  const n = e || "bls12381";
7797
7797
  if (t.modules[n])
7798
7798
  return n;
7799
- const i = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaabn, c = 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001n, d = Math.floor((Mo(i - 1n) - 1) / 64) + 1, f = d * 8, b = f, u = b * 2, s = b * 12, C = Math.floor((Mo(c - 1n) - 1) / 64) + 1, E = C * 8, m = E, P = t.alloc(Qt.bigInt2BytesLE(c, m)), k = Ol(t, i, "f1m", "intq");
7800
- Pl(t, c, "fr", "frm", "intr");
7801
- const L = t.alloc(Qt.bigInt2BytesLE(w(4n), b)), M = ko(t, "g1m", "f1m", L);
7802
- ni(t, "frm", "frm", "frm", "frm_mul"), kl(t, "pol", "frm"), Ml(t, "qap", "frm");
7803
- const O = Do(t, "f1m_neg", "f2m", "f1m"), j = t.alloc([
7799
+ const i = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaabn, c = 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001n, d = Math.floor((To(i - 1n) - 1) / 64) + 1, f = d * 8, b = f, u = b * 2, s = b * 12, C = Math.floor((To(c - 1n) - 1) / 64) + 1, E = C * 8, m = E, P = t.alloc(Qt.bigInt2BytesLE(c, m)), k = Pl(t, i, "f1m", "intq");
7800
+ Dl(t, c, "fr", "frm", "intr");
7801
+ const L = t.alloc(Qt.bigInt2BytesLE(w(4n), b)), M = Mo(t, "g1m", "f1m", L);
7802
+ ni(t, "frm", "frm", "frm", "frm_mul"), Ml(t, "pol", "frm"), Tl(t, "qap", "frm");
7803
+ const O = ko(t, "f1m_neg", "f2m", "f1m"), j = t.alloc([
7804
7804
  ...Qt.bigInt2BytesLE(w(4n), b),
7805
7805
  ...Qt.bigInt2BytesLE(w(4n), b)
7806
- ]), F = ko(t, "g2m", "f2m", j);
7806
+ ]), F = Mo(t, "g2m", "f2m", j);
7807
7807
  function D(g, _) {
7808
7808
  const W = t.addFunction(g);
7809
7809
  W.addParam("pG", "i32"), W.addParam("pFr", "i32"), W.addParam("pr", "i32");
@@ -7915,7 +7915,7 @@ var Ul = function(t, e) {
7915
7915
  );
7916
7916
  }
7917
7917
  at();
7918
- const X = Dl(t, O + "_mulNR", "f6m", "f2m");
7918
+ const X = kl(t, O + "_mulNR", "f6m", "f2m");
7919
7919
  function _t() {
7920
7920
  const g = t.addFunction(X + "_mulNR");
7921
7921
  g.addParam("x", "i32"), g.addParam("pr", "i32");
@@ -7944,7 +7944,7 @@ var Ul = function(t, e) {
7944
7944
  );
7945
7945
  }
7946
7946
  _t();
7947
- const ct = Do(t, X + "_mulNR", "ftm", X), H = dt(0xd201000000010000n), R = t.alloc(H), G = 3 * u, p = H.length - 1, S = H.reduce((g, _) => g + (_ != 0 ? 1 : 0), 0) + p + 1, r = 3 * 2 * f, x = 3 * f * 2 + S * G, B = !0, h = 15132376222941642752n;
7947
+ const ct = ko(t, X + "_mulNR", "ftm", X), H = dt(0xd201000000010000n), R = t.alloc(H), G = 3 * u, p = H.length - 1, S = H.reduce((g, _) => g + (_ != 0 ? 1 : 0), 0) + p + 1, r = 3 * 2 * f, x = 3 * f * 2 + S * G, B = !0, h = 15132376222941642752n;
7948
7948
  t.modules[n] = {
7949
7949
  n64q: d,
7950
7950
  n64r: C,
@@ -7968,7 +7968,7 @@ var Ul = function(t, e) {
7968
7968
  let _ = g;
7969
7969
  const W = [];
7970
7970
  for (; _ > 0n; ) {
7971
- if (To(_)) {
7971
+ if (Uo(_)) {
7972
7972
  const tt = 2 - Number(_ % 4n);
7973
7973
  W.push(tt), _ = _ - BigInt(tt);
7974
7974
  } else
@@ -7981,7 +7981,7 @@ var Ul = function(t, e) {
7981
7981
  let _ = g;
7982
7982
  const W = [];
7983
7983
  for (; _ > 0n; )
7984
- To(_) ? W.push(1) : W.push(0), _ = _ >> 1n;
7984
+ Uo(_) ? W.push(1) : W.push(0), _ = _ >> 1n;
7985
7985
  return W;
7986
7986
  }
7987
7987
  function nt() {
@@ -8374,7 +8374,7 @@ var Ul = function(t, e) {
8374
8374
  (ft * st - gt * Lt) % i,
8375
8375
  (ft * Lt + gt * st) % i
8376
8376
  ];
8377
- return Tl(vt[0]) && (vt[0] = vt[0] + i), vt;
8377
+ return Ul(vt[0]) && (vt[0] = vt[0] + i), vt;
8378
8378
  }
8379
8379
  }
8380
8380
  function Yt() {
@@ -8691,47 +8691,47 @@ var Ul = function(t, e) {
8691
8691
  for (let g = 1; g <= 5; g++)
8692
8692
  St(g), t.exportFunction(n + "_pairingEq" + g);
8693
8693
  Ht(), t.exportFunction(n + "_pairing"), t.exportFunction(n + "_prepareG1"), t.exportFunction(n + "_prepareG2"), t.exportFunction(n + "_millerLoop"), t.exportFunction(n + "_finalExponentiation"), t.exportFunction(n + "_finalExponentiationOld"), t.exportFunction(n + "__cyclotomicSquare"), t.exportFunction(n + "__cyclotomicExp_w0"), t.exportFunction(X + "_mul1"), t.exportFunction(X + "_mul01"), t.exportFunction(ct + "_mul014"), t.exportFunction(M + "_inGroupAffine"), t.exportFunction(M + "_inGroup"), t.exportFunction(F + "_inGroupAffine"), t.exportFunction(F + "_inGroup");
8694
- }, Nl = xl, Rl = Ul;
8695
- function Ci(o) {
8694
+ }, Rl = Ol, ql = Nl;
8695
+ function Ii(o) {
8696
8696
  if (typeof o == "bigint" || o.eq !== void 0)
8697
8697
  return o.toString(10);
8698
8698
  if (o instanceof Uint8Array)
8699
8699
  return gn(o, 0);
8700
8700
  if (Array.isArray(o))
8701
- return o.map(Ci);
8701
+ return o.map(Ii);
8702
8702
  if (typeof o == "object") {
8703
8703
  const t = {};
8704
8704
  return Object.keys(o).forEach((n) => {
8705
- t[n] = Ci(o[n]);
8705
+ t[n] = Ii(o[n]);
8706
8706
  }), t;
8707
8707
  } else
8708
8708
  return o;
8709
8709
  }
8710
- function Ii(o) {
8710
+ function Ei(o) {
8711
8711
  if (typeof o == "string" && /^[0-9]+$/.test(o))
8712
8712
  return BigInt(o);
8713
8713
  if (typeof o == "string" && /^0x[0-9a-fA-F]+$/.test(o))
8714
8714
  return BigInt(o);
8715
8715
  if (Array.isArray(o))
8716
- return o.map(Ii);
8716
+ return o.map(Ei);
8717
8717
  if (typeof o == "object") {
8718
8718
  if (o === null)
8719
8719
  return null;
8720
8720
  const t = {};
8721
8721
  return Object.keys(o).forEach((n) => {
8722
- t[n] = Ii(o[n]);
8722
+ t[n] = Ei(o[n]);
8723
8723
  }), t;
8724
8724
  } else
8725
8725
  return o;
8726
8726
  }
8727
- function ql(o) {
8727
+ function Ql(o) {
8728
8728
  let t = BigInt(0), e = o.length, n = 0;
8729
8729
  const i = new DataView(o.buffer, o.byteOffset, o.byteLength);
8730
8730
  for (; e > 0; )
8731
8731
  e >= 4 ? (e -= 4, t += BigInt(i.getUint32(e)) << BigInt(n * 8), n += 4) : e >= 2 ? (e -= 2, t += BigInt(i.getUint16(e)) << BigInt(n * 8), n += 2) : (e -= 1, t += BigInt(i.getUint8(e)) << BigInt(n * 8), n += 1);
8732
8732
  return t;
8733
8733
  }
8734
- function Ql(o, t) {
8734
+ function zl(o, t) {
8735
8735
  let e = o;
8736
8736
  const n = new Uint8Array(t), i = new DataView(n.buffer);
8737
8737
  let c = t;
@@ -8741,14 +8741,14 @@ function Ql(o, t) {
8741
8741
  throw new Error("Number does not fit in this length");
8742
8742
  return n;
8743
8743
  }
8744
- function zl(o) {
8744
+ function jl(o) {
8745
8745
  let t = BigInt(0), e = 0;
8746
8746
  const n = new DataView(o.buffer, o.byteOffset, o.byteLength);
8747
8747
  for (; e < o.length; )
8748
8748
  e + 4 <= o.length ? (t += BigInt(n.getUint32(e, !0)) << BigInt(e * 8), e += 4) : e + 2 <= o.length ? (t += BigInt(n.getUint16(e, !0)) << BigInt(e * 8), e += 2) : (t += BigInt(n.getUint8(e, !0)) << BigInt(e * 8), e += 1);
8749
8749
  return t;
8750
8750
  }
8751
- function rr(o, t) {
8751
+ function cr(o, t) {
8752
8752
  let e = o;
8753
8753
  typeof t > "u" && (t = Math.floor((yn(o) - 1) / 8) + 1, t == 0 && (t = 1));
8754
8754
  const n = new Uint8Array(t), i = new DataView(n.buffer);
@@ -8759,66 +8759,66 @@ function rr(o, t) {
8759
8759
  throw new Error("Number does not fit in this length");
8760
8760
  return n;
8761
8761
  }
8762
- function Ei(o, t) {
8762
+ function wi(o, t) {
8763
8763
  if (typeof t == "bigint" || t.eq !== void 0)
8764
8764
  return t.toString(10);
8765
8765
  if (t instanceof Uint8Array)
8766
8766
  return o.toString(o.e(t));
8767
8767
  if (Array.isArray(t))
8768
- return t.map(Ei.bind(this, o));
8768
+ return t.map(wi.bind(this, o));
8769
8769
  if (typeof t == "object") {
8770
8770
  const e = {};
8771
8771
  return Object.keys(t).forEach((i) => {
8772
- e[i] = Ei(o, t[i]);
8772
+ e[i] = wi(o, t[i]);
8773
8773
  }), e;
8774
8774
  } else
8775
8775
  return t;
8776
8776
  }
8777
- function wi(o, t) {
8777
+ function Bi(o, t) {
8778
8778
  if (typeof t == "string" && /^[0-9]+$/.test(t))
8779
8779
  return o.e(t);
8780
8780
  if (typeof t == "string" && /^0x[0-9a-fA-F]+$/.test(t))
8781
8781
  return o.e(t);
8782
8782
  if (Array.isArray(t))
8783
- return t.map(wi.bind(this, o));
8783
+ return t.map(Bi.bind(this, o));
8784
8784
  if (typeof t == "object") {
8785
8785
  if (t === null)
8786
8786
  return null;
8787
8787
  const e = {};
8788
8788
  return Object.keys(t).forEach((i) => {
8789
- e[i] = wi(o, t[i]);
8789
+ e[i] = Bi(o, t[i]);
8790
8790
  }), e;
8791
8791
  } else
8792
8792
  return t;
8793
8793
  }
8794
8794
  const un = [];
8795
8795
  for (let o = 0; o < 256; o++)
8796
- un[o] = jl(o, 8);
8797
- function jl(o, t) {
8796
+ un[o] = Gl(o, 8);
8797
+ function Gl(o, t) {
8798
8798
  let e = 0, n = o;
8799
8799
  for (let i = 0; i < t; i++)
8800
8800
  e <<= 1, e = e | n & 1, n >>= 1;
8801
8801
  return e;
8802
8802
  }
8803
- function cr(o, t) {
8803
+ function sr(o, t) {
8804
8804
  return (un[o >>> 24] | un[o >>> 16 & 255] << 8 | un[o >>> 8 & 255] << 16 | un[o & 255] << 24) >>> 32 - t;
8805
8805
  }
8806
8806
  function _e(o) {
8807
8807
  return (o & 4294901760 ? (o &= 4294901760, 16) : 0) | (o & 4278255360 ? (o &= 4278255360, 8) : 0) | (o & 4042322160 ? (o &= 4042322160, 4) : 0) | (o & 3435973836 ? (o &= 3435973836, 2) : 0) | (o & 2863311530) !== 0;
8808
8808
  }
8809
- function sr(o, t) {
8809
+ function lr(o, t) {
8810
8810
  const e = o.byteLength / t, n = _e(e);
8811
8811
  if (e != 1 << n)
8812
8812
  throw new Error("Invalid number of pointers");
8813
8813
  for (let i = 0; i < e; i++) {
8814
- const c = cr(i, n);
8814
+ const c = sr(i, n);
8815
8815
  if (i > c) {
8816
8816
  const d = o.slice(i * t, (i + 1) * t);
8817
8817
  o.set(o.slice(c * t, (c + 1) * t), i * t), o.set(d, c * t);
8818
8818
  }
8819
8819
  }
8820
8820
  }
8821
- function Ji(o, t) {
8821
+ function Xi(o, t) {
8822
8822
  const e = new Uint8Array(t * o.length);
8823
8823
  for (let n = 0; n < o.length; n++)
8824
8824
  e.set(o[n], n * t);
@@ -8830,21 +8830,21 @@ function Dn(o, t) {
8830
8830
  n[i] = o.slice(i * t, i * t + t);
8831
8831
  return n;
8832
8832
  }
8833
- var Gl = /* @__PURE__ */ Object.freeze({
8833
+ var $l = /* @__PURE__ */ Object.freeze({
8834
8834
  __proto__: null,
8835
- array2buffer: Ji,
8836
- beBuff2int: ql,
8837
- beInt2Buff: Ql,
8838
- bitReverse: cr,
8839
- buffReverseBits: sr,
8835
+ array2buffer: Xi,
8836
+ beBuff2int: Ql,
8837
+ beInt2Buff: zl,
8838
+ bitReverse: sr,
8839
+ buffReverseBits: lr,
8840
8840
  buffer2array: Dn,
8841
- leBuff2int: zl,
8842
- leInt2Buff: rr,
8841
+ leBuff2int: jl,
8842
+ leInt2Buff: cr,
8843
8843
  log2: _e,
8844
- stringifyBigInts: Ci,
8845
- stringifyFElements: Ei,
8846
- unstringifyBigInts: Ii,
8847
- unstringifyFElements: wi
8844
+ stringifyBigInts: Ii,
8845
+ stringifyFElements: wi,
8846
+ unstringifyBigInts: Ei,
8847
+ unstringifyFElements: Bi
8848
8848
  });
8849
8849
  const ue = 1 << 30;
8850
8850
  class Xt {
@@ -8917,7 +8917,7 @@ function Pe(o, t, e, n) {
8917
8917
  return s;
8918
8918
  };
8919
8919
  }
8920
- class Uo {
8920
+ class No {
8921
8921
  constructor(t, e, n, i) {
8922
8922
  if (this.tm = t, this.prefix = e, this.p = i, this.n8 = n, this.type = "F1", this.m = 1, this.half = We(i, Te), this.bitLength = yn(i), this.mask = Fe(On(Te, this.bitLength), Te), this.pOp1 = t.alloc(n), this.pOp2 = t.alloc(n), this.pOp3 = t.alloc(n), this.tm.instance.exports[e + "_zero"](this.pOp1), this.zero = this.tm.getBuff(this.pOp1, this.n8), this.tm.instance.exports[e + "_one"](this.pOp1), this.one = this.tm.getBuff(this.pOp1, this.n8), this.negone = this.neg(this.one), this.two = this.add(this.one, this.one), this.n64 = Math.floor(n / 8), this.n32 = Math.floor(n / 4), this.n64 * 8 != this.n8)
8923
8923
  throw new Error("n8 must be a multiple of 8");
@@ -8927,7 +8927,7 @@ class Uo {
8927
8927
  this.nqr = this.add(this.nqr, this.one), c = this.exp(this.nqr, this.half);
8928
8928
  this.shift = this.mul(this.nqr, this.nqr), this.shiftInv = this.inv(this.shift), this.s = 0;
8929
8929
  let d = Fe(this.p, Te);
8930
- for (; !ji(d); )
8930
+ for (; !Gi(d); )
8931
8931
  this.s = this.s + 1, d = We(d, Te);
8932
8932
  this.w = [], this.w[this.s] = this.exp(this.nqr, d);
8933
8933
  for (let f = this.s - 1; f >= 0; f--)
@@ -8997,27 +8997,27 @@ class Uo {
8997
8997
  if (t instanceof Uint8Array)
8998
8998
  return t;
8999
8999
  let n = ie(t, e);
9000
- ka(n) ? (n = Na(n), bi(n, this.p) && (n = Ce(n, this.p)), n = Fe(this.p, n)) : bi(n, this.p) && (n = Ce(n, this.p));
9001
- const i = rr(n, this.n8);
9000
+ Ma(n) ? (n = Ra(n), Ci(n, this.p) && (n = Ce(n, this.p)), n = Fe(this.p, n)) : Ci(n, this.p) && (n = Ce(n, this.p));
9001
+ const i = cr(n, this.n8);
9002
9002
  return this.toMontgomery(i);
9003
9003
  }
9004
9004
  toString(t, e) {
9005
9005
  const n = this.fromMontgomery(t), i = gn(n, 0);
9006
- return ja(i, e);
9006
+ return Ga(i, e);
9007
9007
  }
9008
9008
  fromRng(t) {
9009
9009
  let e;
9010
9010
  const n = new Uint8Array(this.n8);
9011
9011
  do {
9012
- e = Ga;
9012
+ e = $a;
9013
9013
  for (let i = 0; i < this.n64; i++)
9014
- e = Gi(e, On(t.nextU64(), 64 * i));
9015
- e = $i(e, this.mask);
9016
- } while (qa(e, this.p));
9014
+ e = $i(e, On(t.nextU64(), 64 * i));
9015
+ e = Ki(e, this.mask);
9016
+ } while (Qa(e, this.p));
9017
9017
  return fn(n, 0, e, this.n8), n;
9018
9018
  }
9019
9019
  random() {
9020
- return this.fromRng(Ki());
9020
+ return this.fromRng(Hi());
9021
9021
  }
9022
9022
  toObject(t) {
9023
9023
  const e = this.fromMontgomery(t);
@@ -9046,7 +9046,7 @@ class Uo {
9046
9046
  async batchInverse(t) {
9047
9047
  let e = !1;
9048
9048
  const n = this.n8, i = this.n8;
9049
- Array.isArray(t) ? (t = Ji(t, n), e = !0) : t = t.slice(0, t.byteLength);
9049
+ Array.isArray(t) ? (t = Xi(t, n), e = !0) : t = t.slice(0, t.byteLength);
9050
9050
  const c = Math.floor(t.byteLength / n);
9051
9051
  if (c * n !== t.byteLength)
9052
9052
  throw new Error("Invalid buffer size");
@@ -9080,7 +9080,7 @@ class Uo {
9080
9080
  return e ? Dn(u, i) : u;
9081
9081
  }
9082
9082
  }
9083
- class No {
9083
+ class Ro {
9084
9084
  constructor(t, e, n) {
9085
9085
  this.tm = t, this.prefix = e, this.F = n, this.type = "F2", this.m = n.m * 2, this.n8 = this.F.n8 * 2, this.n32 = this.F.n32 * 2, this.n64 = this.F.n64 * 2, this.pOp1 = t.alloc(n.n8 * 2), this.pOp2 = t.alloc(n.n8 * 2), this.pOp3 = t.alloc(n.n8 * 2), this.tm.instance.exports[e + "_zero"](this.pOp1), this.zero = t.getBuff(this.pOp1, this.n8), this.tm.instance.exports[e + "_one"](this.pOp1), this.one = t.getBuff(this.pOp1, this.n8), this.negone = this.neg(this.one), this.two = this.add(this.one, this.one);
9086
9086
  }
@@ -9162,7 +9162,7 @@ class No {
9162
9162
  return i.set(e), i.set(n, this.F.n8), i;
9163
9163
  }
9164
9164
  random() {
9165
- return this.fromRng(Ki());
9165
+ return this.fromRng(Hi());
9166
9166
  }
9167
9167
  toObject(t) {
9168
9168
  const e = this.F.toObject(t.slice(0, this.F.n8)), n = this.F.toObject(t.slice(this.F.n8, this.F.n8 * 2));
@@ -9179,7 +9179,7 @@ class No {
9179
9179
  return t.slice(this.F.n8);
9180
9180
  }
9181
9181
  }
9182
- class $l {
9182
+ class Kl {
9183
9183
  constructor(t, e, n) {
9184
9184
  this.tm = t, this.prefix = e, this.F = n, this.type = "F3", this.m = n.m * 3, this.n8 = this.F.n8 * 3, this.n32 = this.F.n32 * 3, this.n64 = this.F.n64 * 3, this.pOp1 = t.alloc(n.n8 * 3), this.pOp2 = t.alloc(n.n8 * 3), this.pOp3 = t.alloc(n.n8 * 3), this.tm.instance.exports[e + "_zero"](this.pOp1), this.zero = t.getBuff(this.pOp1, this.n8), this.tm.instance.exports[e + "_one"](this.pOp1), this.one = t.getBuff(this.pOp1, this.n8), this.negone = this.neg(this.one), this.two = this.add(this.one, this.one);
9185
9185
  }
@@ -9258,7 +9258,7 @@ class $l {
9258
9258
  return c.set(e), c.set(n, this.F.n8), c.set(i, this.F.n8 * 2), c;
9259
9259
  }
9260
9260
  random() {
9261
- return this.fromRng(Ki());
9261
+ return this.fromRng(Hi());
9262
9262
  }
9263
9263
  toObject(t) {
9264
9264
  const e = this.F.toObject(t.slice(0, this.F.n8)), n = this.F.toObject(t.slice(this.F.n8, this.F.n8 * 2)), i = this.F.toObject(t.slice(this.F.n8 * 2, this.F.n8 * 3));
@@ -9278,7 +9278,7 @@ class $l {
9278
9278
  return t.slice(this.F.n8 * 2);
9279
9279
  }
9280
9280
  }
9281
- class Ro {
9281
+ class qo {
9282
9282
  constructor(t, e, n, i, c, d) {
9283
9283
  this.tm = t, this.prefix = e, this.F = n, this.pOp1 = t.alloc(n.n8 * 3), this.pOp2 = t.alloc(n.n8 * 3), this.pOp3 = t.alloc(n.n8 * 3), this.tm.instance.exports[e + "_zero"](this.pOp1), this.zero = this.tm.getBuff(this.pOp1, n.n8 * 3), this.tm.instance.exports[e + "_zeroAffine"](this.pOp1), this.zeroAffine = this.tm.getBuff(this.pOp1, n.n8 * 2), this.one = this.tm.getBuff(i, n.n8 * 3), this.g = this.one, this.oneAffine = this.tm.getBuff(i, n.n8 * 2), this.gAffine = this.oneAffine, this.b = this.tm.getBuff(c, n.n8), d && (this.cofactor = Xe(d)), this.negone = this.neg(this.one), this.two = this.add(this.one, this.one), this.batchLEMtoC = Pe(t, e + "_batchLEMtoC", n.n8 * 2, n.n8), this.batchLEMtoU = Pe(t, e + "_batchLEMtoU", n.n8 * 2, n.n8 * 2), this.batchCtoLEM = Pe(t, e + "_batchCtoLEM", n.n8, n.n8 * 2), this.batchUtoLEM = Pe(t, e + "_batchUtoLEM", n.n8 * 2, n.n8 * 2), this.batchToJacobian = Pe(t, e + "_batchToJacobian", n.n8 * 2, n.n8 * 3), this.batchToAffine = Pe(t, e + "_batchToAffine", n.n8 * 3, n.n8 * 2);
9284
9284
  }
@@ -9507,7 +9507,7 @@ class Ro {
9507
9507
  return this.toAffine(t).slice(this.F.n8);
9508
9508
  }
9509
9509
  }
9510
- function lr(o) {
9510
+ function ur(o) {
9511
9511
  let e, n;
9512
9512
  o && (o.onmessage = function(s) {
9513
9513
  let C;
@@ -9591,24 +9591,24 @@ function lr(o) {
9591
9591
  }
9592
9592
  return u;
9593
9593
  }
9594
- var Kl = Worker;
9594
+ var Hl = Worker;
9595
9595
  const ii = 25;
9596
- class qo {
9596
+ class Qo {
9597
9597
  constructor() {
9598
9598
  this.promise = new Promise((t, e) => {
9599
9599
  this.reject = e, this.resolve = t;
9600
9600
  });
9601
9601
  }
9602
9602
  }
9603
- function Hl(o) {
9603
+ function Vl(o) {
9604
9604
  return new Promise((t) => setTimeout(t, o));
9605
9605
  }
9606
- function Vl(o) {
9606
+ function Wl(o) {
9607
9607
  return process.browser ? globalThis.btoa(o) : Buffer.from(o).toString("base64");
9608
9608
  }
9609
- const Wl = Vl("(" + lr.toString() + ")(self)"), Yl = "data:application/javascript;base64," + Wl;
9610
- async function Zl(o, t) {
9611
- const e = new Jl();
9609
+ const Yl = Wl("(" + ur.toString() + ")(self)"), Zl = "data:application/javascript;base64," + Yl;
9610
+ async function Jl(o, t) {
9611
+ const e = new Xl();
9612
9612
  e.memory = new WebAssembly.Memory({ initial: ii }), e.u8 = new Uint8Array(e.memory.buffer), e.u32 = new Uint32Array(e.memory.buffer);
9613
9613
  const n = await WebAssembly.compile(o.code);
9614
9614
  if (e.instance = await WebAssembly.instantiate(n, {
@@ -9616,7 +9616,7 @@ async function Zl(o, t) {
9616
9616
  memory: e.memory
9617
9617
  }
9618
9618
  }), e.singleThread = t, e.initalPFree = e.u32[0], e.pq = o.pq, e.pr = o.pr, e.pG1gen = o.pG1gen, e.pG1zero = o.pG1zero, e.pG2gen = o.pG2gen, e.pG2zero = o.pG2zero, e.pOneT = o.pOneT, t)
9619
- e.code = o.code, e.taskManager = lr(), await e.taskManager([{
9619
+ e.code = o.code, e.taskManager = ur(), await e.taskManager([{
9620
9620
  cmd: "INIT",
9621
9621
  init: ii,
9622
9622
  code: e.code.slice()
@@ -9626,7 +9626,7 @@ async function Zl(o, t) {
9626
9626
  let c;
9627
9627
  typeof navigator == "object" && navigator.hardwareConcurrency ? c = navigator.hardwareConcurrency : c = _n.cpus().length, c == 0 && (c = 2), c > 64 && (c = 64), e.concurrency = c;
9628
9628
  for (let f = 0; f < c; f++)
9629
- e.workers[f] = new Kl(Yl), e.workers[f].addEventListener("message", i(f)), e.working[f] = !1;
9629
+ e.workers[f] = new Hl(Zl), e.workers[f].addEventListener("message", i(f)), e.working[f] = !1;
9630
9630
  const d = [];
9631
9631
  for (let f = 0; f < e.workers.length; f++) {
9632
9632
  const b = o.code.slice();
@@ -9646,7 +9646,7 @@ async function Zl(o, t) {
9646
9646
  };
9647
9647
  }
9648
9648
  }
9649
- class Jl {
9649
+ class Xl {
9650
9650
  constructor() {
9651
9651
  this.actionQueue = [], this.oldPFree = 0;
9652
9652
  }
@@ -9663,7 +9663,7 @@ class Jl {
9663
9663
  postAction(t, e, n, i) {
9664
9664
  if (this.working[t])
9665
9665
  throw new Error("Posting a job t a working worker");
9666
- return this.working[t] = !0, this.pendingDeferreds[t] = i || new qo(), this.workers[t].postMessage(e, n), this.pendingDeferreds[t].promise;
9666
+ return this.working[t] = !0, this.pendingDeferreds[t] = i || new Qo(), this.workers[t].postMessage(e, n), this.pendingDeferreds[t].promise;
9667
9667
  }
9668
9668
  processWorks() {
9669
9669
  for (let t = 0; t < this.workers.length && this.actionQueue.length > 0; t++)
@@ -9673,7 +9673,7 @@ class Jl {
9673
9673
  }
9674
9674
  }
9675
9675
  queueAction(t, e) {
9676
- const n = new qo();
9676
+ const n = new Qo();
9677
9677
  if (this.singleThread) {
9678
9678
  const i = this.taskManager(t);
9679
9679
  n.resolve(i);
@@ -9707,7 +9707,7 @@ class Jl {
9707
9707
  async terminate() {
9708
9708
  for (let t = 0; t < this.workers.length; t++)
9709
9709
  this.workers[t].postMessage([{ cmd: "TERMINATE" }]);
9710
- await Hl(200);
9710
+ await Vl(200);
9711
9711
  }
9712
9712
  }
9713
9713
  function oi(o, t) {
@@ -9764,7 +9764,7 @@ function oi(o, t) {
9764
9764
  return F;
9765
9765
  };
9766
9766
  }
9767
- function Xl(o) {
9767
+ function tu(o) {
9768
9768
  const t = o.tm;
9769
9769
  o.pairing = function(n, i) {
9770
9770
  t.startSyncOp();
@@ -9831,7 +9831,7 @@ function Xl(o) {
9831
9831
  return this.tm.endSyncOp(), c;
9832
9832
  };
9833
9833
  }
9834
- const Qo = [
9834
+ const zo = [
9835
9835
  1,
9836
9836
  1,
9837
9837
  1,
@@ -9865,7 +9865,7 @@ const Qo = [
9865
9865
  17,
9866
9866
  17
9867
9867
  ];
9868
- function zo(o, t) {
9868
+ function jo(o, t) {
9869
9869
  const e = o[t], n = e.tm;
9870
9870
  async function i(d, f, b, u, s) {
9871
9871
  if (!(d instanceof Uint8Array))
@@ -9886,7 +9886,7 @@ function zo(o, t) {
9886
9886
  const P = Math.floor(f.byteLength / m);
9887
9887
  if (P * m != f.byteLength)
9888
9888
  throw new Error("Scalar size does not match");
9889
- const k = Qo[_e(m)], L = Math.floor((P * 8 - 1) / k) + 1, M = [];
9889
+ const k = zo[_e(m)], L = Math.floor((P * 8 - 1) / k) + 1, M = [];
9890
9890
  for (let F = 0; F < L; F++) {
9891
9891
  const D = [
9892
9892
  { cmd: "ALLOCSET", var: 0, buff: d },
@@ -9928,7 +9928,7 @@ function zo(o, t) {
9928
9928
  const P = Math.floor(d.byteLength / m), k = Math.floor(f.byteLength / P);
9929
9929
  if (k * P != f.byteLength)
9930
9930
  throw new Error("Scalar size does not match");
9931
- const L = Qo[_e(P)], M = Math.floor((k * 8 - 1) / L) + 1;
9931
+ const L = zo[_e(P)], M = Math.floor((k * 8 - 1) / L) + 1;
9932
9932
  let O;
9933
9933
  O = Math.floor(P / (n.concurrency / M)), O > 4194304 && (O = 4194304), O < 1024 && (O = 1024);
9934
9934
  const j = [];
@@ -9957,7 +9957,7 @@ function ai(o, t) {
9957
9957
  let L, M, O, j, F, D, w, l;
9958
9958
  t == "G1" ? (C == "affine" ? (L = e.F.n8 * 2, j = "g1m_batchToJacobian") : L = e.F.n8 * 3, M = e.F.n8 * 3, s && (l = "g1m_fftFinal"), w = "g1m_fftJoin", D = "g1m_fftMix", E == "affine" ? (O = e.F.n8 * 2, F = "g1m_batchToAffine") : O = e.F.n8 * 3) : t == "G2" ? (C == "affine" ? (L = e.F.n8 * 2, j = "g2m_batchToJacobian") : L = e.F.n8 * 3, M = e.F.n8 * 3, s && (l = "g2m_fftFinal"), w = "g2m_fftJoin", D = "g2m_fftMix", E == "affine" ? (O = e.F.n8 * 2, F = "g2m_batchToAffine") : O = e.F.n8 * 3) : t == "Fr" && (L = e.n8, M = e.n8, O = e.n8, s && (l = "frm_fftFinal"), D = "frm_fftMix", w = "frm_fftJoin");
9959
9959
  let A = !1;
9960
- Array.isArray(u) ? (u = Ji(u, L), A = !0) : u = u.slice(0, u.byteLength);
9960
+ Array.isArray(u) ? (u = Xi(u, L), A = !0) : u = u.slice(0, u.byteLength);
9961
9961
  const Q = u.byteLength / L, $ = _e(Q);
9962
9962
  if (1 << $ != Q)
9963
9963
  throw new Error("fft must be multiple of 2");
@@ -9968,7 +9968,7 @@ function ai(o, t) {
9968
9968
  let T;
9969
9969
  s && (T = n.inv(n.e(Q)));
9970
9970
  let N;
9971
- sr(u, L);
9971
+ lr(u, L);
9972
9972
  let I, q = Math.min(1 << k, Q), Z = Q / q;
9973
9973
  for (; Z < i.concurrency && q >= 16; )
9974
9974
  Z *= 2, q /= 2;
@@ -10251,9 +10251,9 @@ function ai(o, t) {
10251
10251
  return F;
10252
10252
  };
10253
10253
  }
10254
- async function ur(o) {
10255
- const t = await Zl(o.wasm, o.singleThread), e = {};
10256
- return e.q = ie(o.wasm.q.toString()), e.r = ie(o.wasm.r.toString()), e.name = o.name, e.tm = t, e.prePSize = o.wasm.prePSize, e.preQSize = o.wasm.preQSize, e.Fr = new Uo(t, "frm", o.n8r, o.r), e.F1 = new Uo(t, "f1m", o.n8q, o.q), e.F2 = new No(t, "f2m", e.F1), e.G1 = new Ro(t, "g1m", e.F1, o.wasm.pG1gen, o.wasm.pG1b, o.cofactorG1), e.G2 = new Ro(t, "g2m", e.F2, o.wasm.pG2gen, o.wasm.pG2b, o.cofactorG2), e.F6 = new $l(t, "f6m", e.F2), e.F12 = new No(t, "ftm", e.F6), e.Gt = e.F12, oi(e, "G1"), oi(e, "G2"), oi(e, "Fr"), zo(e, "G1"), zo(e, "G2"), ai(e, "G1"), ai(e, "G2"), ai(e, "Fr"), Xl(e), e.array2buffer = function(n, i) {
10254
+ async function dr(o) {
10255
+ const t = await Jl(o.wasm, o.singleThread), e = {};
10256
+ return e.q = ie(o.wasm.q.toString()), e.r = ie(o.wasm.r.toString()), e.name = o.name, e.tm = t, e.prePSize = o.wasm.prePSize, e.preQSize = o.wasm.preQSize, e.Fr = new No(t, "frm", o.n8r, o.r), e.F1 = new No(t, "f1m", o.n8q, o.q), e.F2 = new Ro(t, "f2m", e.F1), e.G1 = new qo(t, "g1m", e.F1, o.wasm.pG1gen, o.wasm.pG1b, o.cofactorG1), e.G2 = new qo(t, "g2m", e.F2, o.wasm.pG2gen, o.wasm.pG2b, o.cofactorG2), e.F6 = new Kl(t, "f6m", e.F2), e.F12 = new Ro(t, "ftm", e.F6), e.Gt = e.F12, oi(e, "G1"), oi(e, "G2"), oi(e, "Fr"), jo(e, "G1"), jo(e, "G2"), ai(e, "G1"), ai(e, "G2"), ai(e, "Fr"), tu(e), e.array2buffer = function(n, i) {
10257
10257
  const c = new Uint8Array(i * n.length);
10258
10258
  for (let d = 0; d < n.length; d++)
10259
10259
  c.set(n[d], d * i);
@@ -10268,20 +10268,20 @@ async function ur(o) {
10268
10268
  function nn(o) {
10269
10269
  return BigInt(o);
10270
10270
  }
10271
- function dr(o) {
10271
+ function fr(o) {
10272
10272
  return o < 0n;
10273
10273
  }
10274
- function tu(o) {
10274
+ function eu(o) {
10275
10275
  return o === 0n;
10276
10276
  }
10277
- function eu(o) {
10278
- return dr(o) ? o.toString(2).length - 1 : o.toString(2).length;
10277
+ function nu(o) {
10278
+ return fr(o) ? o.toString(2).length - 1 : o.toString(2).length;
10279
10279
  }
10280
10280
  function ri(o) {
10281
10281
  const t = [], e = nn(o);
10282
10282
  return t.push(Number(e & 0xFFn)), t.push(Number(e >> 8n & 0xFFn)), t.push(Number(e >> 16n & 0xFFn)), t.push(Number(e >> 24n & 0xFFn)), t;
10283
10283
  }
10284
- function nu(o) {
10284
+ function iu(o) {
10285
10285
  for (var t = [], e = 0; e < o.length; e++) {
10286
10286
  var n = o.charCodeAt(e);
10287
10287
  n < 128 ? t.push(n) : n < 2048 ? t.push(
@@ -10301,56 +10301,56 @@ function nu(o) {
10301
10301
  return t;
10302
10302
  }
10303
10303
  function ln(o) {
10304
- const t = nu(o);
10304
+ const t = iu(o);
10305
10305
  return [...zt(t.length), ...t];
10306
10306
  }
10307
- function fr(o) {
10307
+ function gr(o) {
10308
10308
  const t = [];
10309
10309
  let e = nn(o);
10310
- if (dr(e))
10310
+ if (fr(e))
10311
10311
  throw new Error("Number cannot be negative");
10312
- for (; !tu(e); )
10312
+ for (; !eu(e); )
10313
10313
  t.push(Number(e & 0x7Fn)), e = e >> 7n;
10314
10314
  t.length == 0 && t.push(0);
10315
10315
  for (let n = 0; n < t.length - 1; n++)
10316
10316
  t[n] = t[n] | 128;
10317
10317
  return t;
10318
10318
  }
10319
- function gr(o) {
10319
+ function _r(o) {
10320
10320
  let t, e;
10321
- const n = eu(o);
10321
+ const n = nu(o);
10322
10322
  o < 0 ? (e = !0, t = (1n << BigInt(n)) + o) : (e = !1, t = nn(o));
10323
- const i = 7 - n % 7, c = (1n << BigInt(i)) - 1n << BigInt(n), d = (1 << 7 - i) - 1 | 128, f = fr(t + c);
10323
+ const i = 7 - n % 7, c = (1n << BigInt(i)) - 1n << BigInt(n), d = (1 << 7 - i) - 1 | 128, f = gr(t + c);
10324
10324
  return e || (f[f.length - 1] = f[f.length - 1] & d), f;
10325
10325
  }
10326
- function Bi(o) {
10326
+ function Fi(o) {
10327
10327
  let t = nn(o);
10328
10328
  if (t > 0xFFFFFFFFn)
10329
10329
  throw new Error("Number too big");
10330
10330
  if (t > 0x7FFFFFFFn && (t = t - 0x100000000n), t < -2147483648n)
10331
10331
  throw new Error("Number too small");
10332
- return gr(t);
10332
+ return _r(t);
10333
10333
  }
10334
- function iu(o) {
10334
+ function ou(o) {
10335
10335
  let t = nn(o);
10336
10336
  if (t > 0xFFFFFFFFFFFFFFFFn)
10337
10337
  throw new Error("Number too big");
10338
10338
  if (t > 0x7FFFFFFFFFFFFFFFn && (t = t - 0x10000000000000000n), t < -9223372036854775808n)
10339
10339
  throw new Error("Number too small");
10340
- return gr(t);
10340
+ return _r(t);
10341
10341
  }
10342
10342
  function zt(o) {
10343
10343
  let t = nn(o);
10344
10344
  if (t > 0xFFFFFFFFn)
10345
10345
  throw new Error("Number too big");
10346
- return fr(t);
10346
+ return gr(t);
10347
10347
  }
10348
- function jo(o) {
10348
+ function Go(o) {
10349
10349
  return Array.from(o, function(t) {
10350
10350
  return ("0" + (t & 255).toString(16)).slice(-2);
10351
10351
  }).join("");
10352
10352
  }
10353
- class ou {
10353
+ class au {
10354
10354
  constructor(t) {
10355
10355
  this.func = t, this.functionName = t.functionName, this.module = t.module;
10356
10356
  }
@@ -10479,10 +10479,10 @@ class ou {
10479
10479
  return [...t, 26];
10480
10480
  }
10481
10481
  i64_const(t) {
10482
- return [66, ...iu(t)];
10482
+ return [66, ...ou(t)];
10483
10483
  }
10484
10484
  i32_const(t) {
10485
- return [65, ...Bi(t)];
10485
+ return [65, ...Fi(t)];
10486
10486
  }
10487
10487
  i64_eqz(t) {
10488
10488
  return [...t, 80];
@@ -10674,7 +10674,7 @@ const ci = {
10674
10674
  func: 96,
10675
10675
  emptyblock: 64
10676
10676
  };
10677
- class Go {
10677
+ class $o {
10678
10678
  constructor(t, e, n, i, c) {
10679
10679
  if (n == "import")
10680
10680
  this.fnType = "import", this.moduleName = i, this.fieldName = c;
@@ -10730,10 +10730,10 @@ class Go {
10730
10730
  this.code.push(...[].concat(...t));
10731
10731
  }
10732
10732
  getCodeBuilder() {
10733
- return new ou(this);
10733
+ return new au(this);
10734
10734
  }
10735
10735
  }
10736
- class _r {
10736
+ class hr {
10737
10737
  constructor() {
10738
10738
  this.functions = [], this.functionIdxByName = {}, this.nImportFunctions = 0, this.nInternalFunctions = 0, this.memory = {
10739
10739
  pagesSize: 1,
@@ -10759,7 +10759,7 @@ class _r {
10759
10759
  if (typeof this.functionIdxByName[t] < "u")
10760
10760
  throw new Error(`Function already defined: ${t}`);
10761
10761
  const e = this.functions.length;
10762
- return this.functionIdxByName[t] = e, this.functions.push(new Go(this, t, "internal")), this.nInternalFunctions++, this.functions[e];
10762
+ return this.functionIdxByName[t] = e, this.functions.push(new $o(this, t, "internal")), this.nInternalFunctions++, this.functions[e];
10763
10763
  }
10764
10764
  addIimportFunction(t, e, n) {
10765
10765
  if (typeof this.functionIdxByName[t] < "u")
@@ -10768,7 +10768,7 @@ class _r {
10768
10768
  throw new Error(`Import functions must be declared before internal: ${t}`);
10769
10769
  let i = n || t;
10770
10770
  const c = this.functions.length;
10771
- return this.functionIdxByName[t] = c, this.functions.push(new Go(this, t, "import", e, i)), this.nImportFunctions++, this.functions[c];
10771
+ return this.functionIdxByName[t] = c, this.functions.push(new $o(this, t, "import", e, i)), this.nImportFunctions++, this.functions[c];
10772
10772
  }
10773
10773
  setMemory(t, e, n) {
10774
10774
  this.memory = {
@@ -10811,11 +10811,11 @@ class _r {
10811
10811
  this.signatures = [];
10812
10812
  const t = {};
10813
10813
  if (this.functionsTable.length > 0) {
10814
- const e = this.functions[this.functionsTable[0]].getSignature(), n = "s_" + jo(e);
10814
+ const e = this.functions[this.functionsTable[0]].getSignature(), n = "s_" + Go(e);
10815
10815
  t[n] = 0, this.signatures.push(e);
10816
10816
  }
10817
10817
  for (let e = 0; e < this.functions.length; e++) {
10818
- const n = this.functions[e].getSignature(), i = "s_" + jo(n);
10818
+ const n = this.functions[e].getSignature(), i = "s_" + Go(n);
10819
10819
  typeof t[i] > "u" && (t[i] = this.signatures.length, this.signatures.push(n)), this.functions[e].signatureIdx = t[i];
10820
10820
  }
10821
10821
  }
@@ -10891,7 +10891,7 @@ class _r {
10891
10891
  // Table (0 in MVP)
10892
10892
  65,
10893
10893
  // offset 0
10894
- ...Bi(0),
10894
+ ...Fi(0),
10895
10895
  11,
10896
10896
  ...zt(this.functionsTable.length),
10897
10897
  ...t
@@ -10934,7 +10934,7 @@ class _r {
10934
10934
  t.push([
10935
10935
  0,
10936
10936
  65,
10937
- ...Bi(this.datas[e].offset),
10937
+ ...Fi(this.datas[e].offset),
10938
10938
  11,
10939
10939
  ...zt(this.datas[e].bytes.length),
10940
10940
  ...this.datas[e].bytes
@@ -10946,9 +10946,9 @@ class _r {
10946
10946
  }
10947
10947
  }
10948
10948
  globalThis.curve_bn128 = null;
10949
- async function au(o, t) {
10950
- const e = new _r();
10951
- e.setMemory(25), Nl(e), t && t(e);
10949
+ async function ru(o, t) {
10950
+ const e = new hr();
10951
+ e.setMemory(25), Rl(e), t && t(e);
10952
10952
  const n = {};
10953
10953
  if (n.code = e.build(), n.pq = e.modules.f1m.pq, n.pr = e.modules.frm.pq, n.pG1gen = e.modules.bn128.pG1gen, n.pG1zero = e.modules.bn128.pG1zero, n.pG1b = e.modules.bn128.pG1b, n.pG2gen = e.modules.bn128.pG2gen, n.pG2zero = e.modules.bn128.pG2zero, n.pG2b = e.modules.bn128.pG2b, n.pOneT = e.modules.bn128.pOneT, n.prePSize = e.modules.bn128.prePSize, n.preQSize = e.modules.bn128.preQSize, n.n8q = 32, n.n8r = 32, n.q = e.modules.bn128.q, n.r = e.modules.bn128.r, !o && globalThis.curve_bn128)
10954
10954
  return globalThis.curve_bn128;
@@ -10961,15 +10961,15 @@ async function au(o, t) {
10961
10961
  n8r: 32,
10962
10962
  cofactorG2: ie("30644e72e131a029b85045b68181585e06ceecda572a2489345f2299c0f9fa8d", 16),
10963
10963
  singleThread: !!o
10964
- }, c = await ur(i);
10964
+ }, c = await dr(i);
10965
10965
  return c.terminate = async function() {
10966
10966
  i.singleThread || (globalThis.curve_bn128 = null, await this.tm.terminate());
10967
10967
  }, o || (globalThis.curve_bn128 = c), c;
10968
10968
  }
10969
10969
  globalThis.curve_bls12381 = null;
10970
- async function ru(o, t) {
10971
- const e = new _r();
10972
- e.setMemory(25), Rl(e), t && t(e);
10970
+ async function cu(o, t) {
10971
+ const e = new hr();
10972
+ e.setMemory(25), ql(e), t && t(e);
10973
10973
  const n = {};
10974
10974
  if (n.code = e.build(), n.pq = e.modules.f1m.pq, n.pr = e.modules.frm.pq, n.pG1gen = e.modules.bls12381.pG1gen, n.pG1zero = e.modules.bls12381.pG1zero, n.pG1b = e.modules.bls12381.pG1b, n.pG2gen = e.modules.bls12381.pG2gen, n.pG2zero = e.modules.bls12381.pG2zero, n.pG2b = e.modules.bls12381.pG2b, n.pOneT = e.modules.bls12381.pOneT, n.prePSize = e.modules.bls12381.prePSize, n.preQSize = e.modules.bls12381.preQSize, n.n8q = 48, n.n8r = 32, n.q = e.modules.bls12381.q, n.r = e.modules.bls12381.r, !o && globalThis.curve_bls12381)
10975
10975
  return globalThis.curve_bls12381;
@@ -10983,7 +10983,7 @@ async function ru(o, t) {
10983
10983
  cofactorG1: ie("0x396c8c005555e1568c00aaab0000aaab", 16),
10984
10984
  cofactorG2: ie("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5", 16),
10985
10985
  singleThread: !!o
10986
- }, c = await ur(i);
10986
+ }, c = await dr(i);
10987
10987
  return c.terminate = async function() {
10988
10988
  i.singleThread || (globalThis.curve_bls12381 = null, await this.tm.terminate());
10989
10989
  }, o || (globalThis.curve_bls12381 = c), c;
@@ -10992,51 +10992,51 @@ ie("73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", 16);
10992
10992
  ie("21888242871839275222246405745257275088548364400416034343698204186575808495617");
10993
10993
  ie("1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab", 16);
10994
10994
  ie("21888242871839275222246405745257275088696311157297823662689037894645226208583");
10995
- const ne = Us, zn = Gl;
10995
+ const ne = Ns, zn = $l;
10996
10996
  ne.e("73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", 16);
10997
10997
  ne.e("21888242871839275222246405745257275088548364400416034343698204186575808495617");
10998
- const cu = ne.e("1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab", 16), su = ne.e("21888242871839275222246405745257275088696311157297823662689037894645226208583");
10999
- async function Xi(o) {
10998
+ const su = ne.e("1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab", 16), lu = ne.e("21888242871839275222246405745257275088696311157297823662689037894645226208583");
10999
+ async function to(o) {
11000
11000
  let t;
11001
- if (ne.eq(o, su))
11002
- t = await au();
11003
- else if (ne.eq(o, cu))
11001
+ if (ne.eq(o, lu))
11004
11002
  t = await ru();
11003
+ else if (ne.eq(o, su))
11004
+ t = await cu();
11005
11005
  else
11006
11006
  throw new Error(`Curve not supported: ${ne.toString(o)}`);
11007
11007
  return t;
11008
11008
  }
11009
- var Se = { exports: {} }, lu = pr;
11010
- class hr extends Error {
11009
+ var Se = { exports: {} }, uu = yr;
11010
+ class pr extends Error {
11011
11011
  }
11012
- hr.prototype.name = "AssertionError";
11013
- function pr(o, t) {
11012
+ pr.prototype.name = "AssertionError";
11013
+ function yr(o, t) {
11014
11014
  if (!o) {
11015
- var e = new hr(t);
11016
- throw Error.captureStackTrace && Error.captureStackTrace(e, pr), e;
11015
+ var e = new pr(t);
11016
+ throw Error.captureStackTrace && Error.captureStackTrace(e, yr), e;
11017
11017
  }
11018
11018
  }
11019
- var Fi = { exports: {} };
11020
- function yr(o) {
11019
+ var vi = { exports: {} };
11020
+ function Ar(o) {
11021
11021
  return o.length;
11022
11022
  }
11023
- function uu(o) {
11023
+ function du(o) {
11024
11024
  const t = o.byteLength;
11025
11025
  let e = "";
11026
11026
  for (let n = 0; n < t; n++)
11027
11027
  e += String.fromCharCode(o[n]);
11028
11028
  return e;
11029
11029
  }
11030
- function du(o, t, e = 0, n = yr(t)) {
11030
+ function fu(o, t, e = 0, n = Ar(t)) {
11031
11031
  const i = Math.min(n, o.byteLength - e);
11032
11032
  for (let c = 0; c < i; c++)
11033
11033
  o[e + c] = t.charCodeAt(c);
11034
11034
  return i;
11035
11035
  }
11036
- var fu = {
11037
- byteLength: yr,
11038
- toString: uu,
11039
- write: du
11036
+ var gu = {
11037
+ byteLength: Ar,
11038
+ toString: du,
11039
+ write: fu
11040
11040
  };
11041
11041
  const He = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ue = new Uint8Array(256);
11042
11042
  for (let o = 0; o < He.length; o++)
@@ -11049,18 +11049,18 @@ Ue[
11049
11049
  /* _ */
11050
11050
  95
11051
11051
  ] = 63;
11052
- function Ar(o) {
11052
+ function Lr(o) {
11053
11053
  let t = o.length;
11054
11054
  return o.charCodeAt(t - 1) === 61 && t--, t > 1 && o.charCodeAt(t - 1) === 61 && t--, t * 3 >>> 2;
11055
11055
  }
11056
- function gu(o) {
11056
+ function _u(o) {
11057
11057
  const t = o.byteLength;
11058
11058
  let e = "";
11059
11059
  for (let n = 0; n < t; n += 3)
11060
11060
  e += He[o[n] >> 2] + He[(o[n] & 3) << 4 | o[n + 1] >> 4] + He[(o[n + 1] & 15) << 2 | o[n + 2] >> 6] + He[o[n + 2] & 63];
11061
11061
  return t % 3 === 2 ? e = e.substring(0, e.length - 1) + "=" : t % 3 === 1 && (e = e.substring(0, e.length - 2) + "=="), e;
11062
11062
  }
11063
- function _u(o, t, e = 0, n = Ar(t)) {
11063
+ function hu(o, t, e = 0, n = Lr(t)) {
11064
11064
  const i = Math.min(n, o.byteLength - e);
11065
11065
  for (let c = 0, d = 0; d < i; c += 4) {
11066
11066
  const f = Ue[t.charCodeAt(c)], b = Ue[t.charCodeAt(c + 1)], u = Ue[t.charCodeAt(c + 2)], s = Ue[t.charCodeAt(c + 3)];
@@ -11068,15 +11068,15 @@ function _u(o, t, e = 0, n = Ar(t)) {
11068
11068
  }
11069
11069
  return i;
11070
11070
  }
11071
- var hu = {
11072
- byteLength: Ar,
11073
- toString: gu,
11074
- write: _u
11071
+ var pu = {
11072
+ byteLength: Lr,
11073
+ toString: _u,
11074
+ write: hu
11075
11075
  };
11076
- function Lr(o) {
11076
+ function mr(o) {
11077
11077
  return o.length >>> 1;
11078
11078
  }
11079
- function pu(o) {
11079
+ function yu(o) {
11080
11080
  const t = o.byteLength;
11081
11081
  o = new DataView(o.buffer, o.byteOffset, t);
11082
11082
  let e = "", n = 0;
@@ -11086,22 +11086,22 @@ function pu(o) {
11086
11086
  e += o.getUint8(n).toString(16).padStart(2, "0");
11087
11087
  return e;
11088
11088
  }
11089
- function yu(o, t, e = 0, n = Lr(t)) {
11089
+ function Au(o, t, e = 0, n = mr(t)) {
11090
11090
  const i = Math.min(n, o.byteLength - e);
11091
11091
  for (let c = 0; c < i; c++) {
11092
- const d = $o(t.charCodeAt(c * 2)), f = $o(t.charCodeAt(c * 2 + 1));
11092
+ const d = Ko(t.charCodeAt(c * 2)), f = Ko(t.charCodeAt(c * 2 + 1));
11093
11093
  if (d === void 0 || f === void 0)
11094
11094
  return o.subarray(0, c);
11095
11095
  o[e + c] = d << 4 | f;
11096
11096
  }
11097
11097
  return i;
11098
11098
  }
11099
- var Au = {
11100
- byteLength: Lr,
11101
- toString: pu,
11102
- write: yu
11099
+ var Lu = {
11100
+ byteLength: mr,
11101
+ toString: yu,
11102
+ write: Au
11103
11103
  };
11104
- function $o(o) {
11104
+ function Ko(o) {
11105
11105
  if (o >= 48 && o <= 57)
11106
11106
  return o - 48;
11107
11107
  if (o >= 65 && o <= 70)
@@ -11109,7 +11109,7 @@ function $o(o) {
11109
11109
  if (o >= 97 && o <= 102)
11110
11110
  return o - 97 + 10;
11111
11111
  }
11112
- function vi(o) {
11112
+ function Si(o) {
11113
11113
  let t = 0;
11114
11114
  for (let e = 0, n = o.length; e < n; e++) {
11115
11115
  const i = o.charCodeAt(e);
@@ -11124,14 +11124,14 @@ function vi(o) {
11124
11124
  }
11125
11125
  return t;
11126
11126
  }
11127
- let Si;
11127
+ let xi;
11128
11128
  if (typeof TextDecoder < "u") {
11129
11129
  const o = new TextDecoder();
11130
- Si = function(e) {
11130
+ xi = function(e) {
11131
11131
  return o.decode(e);
11132
11132
  };
11133
11133
  } else
11134
- Si = function(t) {
11134
+ xi = function(t) {
11135
11135
  const e = t.byteLength;
11136
11136
  let n = "", i = 0;
11137
11137
  for (; i < e; ) {
@@ -11151,15 +11151,15 @@ if (typeof TextDecoder < "u") {
11151
11151
  }
11152
11152
  return n;
11153
11153
  };
11154
- let xi;
11154
+ let Oi;
11155
11155
  if (typeof TextEncoder < "u") {
11156
11156
  const o = new TextEncoder();
11157
- xi = function(e, n, i = 0, c = vi(n)) {
11157
+ Oi = function(e, n, i = 0, c = Si(n)) {
11158
11158
  const d = Math.min(c, e.byteLength - i);
11159
11159
  return o.encodeInto(n, e.subarray(i, i + d)), d;
11160
11160
  };
11161
11161
  } else
11162
- xi = function(t, e, n = 0, i = vi(e)) {
11162
+ Oi = function(t, e, n = 0, i = Si(e)) {
11163
11163
  const c = Math.min(i, t.byteLength - n);
11164
11164
  t = t.subarray(n, n + c);
11165
11165
  let d = 0, f = 0;
@@ -11176,22 +11176,22 @@ if (typeof TextEncoder < "u") {
11176
11176
  }
11177
11177
  return c;
11178
11178
  };
11179
- var Lu = {
11180
- byteLength: vi,
11181
- toString: Si,
11182
- write: xi
11179
+ var mu = {
11180
+ byteLength: Si,
11181
+ toString: xi,
11182
+ write: Oi
11183
11183
  };
11184
- function mr(o) {
11184
+ function br(o) {
11185
11185
  return o.length * 2;
11186
11186
  }
11187
- function mu(o) {
11187
+ function bu(o) {
11188
11188
  const t = o.byteLength;
11189
11189
  let e = "";
11190
11190
  for (let n = 0; n < t - 1; n += 2)
11191
11191
  e += String.fromCharCode(o[n] + o[n + 1] * 256);
11192
11192
  return e;
11193
11193
  }
11194
- function bu(o, t, e = 0, n = mr(t)) {
11194
+ function Cu(o, t, e = 0, n = br(t)) {
11195
11195
  const i = Math.min(n, o.byteLength - e);
11196
11196
  let c = i;
11197
11197
  for (let d = 0; d < t.length && !((c -= 2) < 0); ++d) {
@@ -11200,13 +11200,13 @@ function bu(o, t, e = 0, n = mr(t)) {
11200
11200
  }
11201
11201
  return i;
11202
11202
  }
11203
- var Cu = {
11204
- byteLength: mr,
11205
- toString: mu,
11206
- write: bu
11203
+ var Iu = {
11204
+ byteLength: br,
11205
+ toString: bu,
11206
+ write: Cu
11207
11207
  };
11208
11208
  (function(o, t) {
11209
- const e = fu, n = hu, i = Au, c = Lu, d = Cu, f = new Uint8Array(Uint16Array.of(255).buffer)[0] === 255;
11209
+ const e = gu, n = pu, i = Lu, c = mu, d = Iu, f = new Uint8Array(Uint16Array.of(255).buffer)[0] === 255;
11210
11210
  function b(r) {
11211
11211
  switch (r) {
11212
11212
  case "ascii":
@@ -11504,12 +11504,12 @@ var Cu = {
11504
11504
  readUInt32LE: a,
11505
11505
  readInt32LE: S
11506
11506
  };
11507
- })(Fi, Fi.exports);
11508
- var Iu = Fi.exports, si, Ko;
11509
- function Eu() {
11510
- if (Ko)
11507
+ })(vi, vi.exports);
11508
+ var Eu = vi.exports, si, Ho;
11509
+ function wu() {
11510
+ if (Ho)
11511
11511
  return si;
11512
- Ko = 1;
11512
+ Ho = 1;
11513
11513
  var o = (c, d) => function() {
11514
11514
  return d || (0, c[Object.keys(c)[0]])((d = { exports: {} }).exports, d), d.exports;
11515
11515
  }, t = /* @__PURE__ */ (() => {
@@ -11529,21 +11529,21 @@ function Eu() {
11529
11529
  }), n = e(), i = WebAssembly.compile(n);
11530
11530
  return si = async (c) => (await WebAssembly.instantiate(await i, c)).exports, si;
11531
11531
  }
11532
- var he = lu, wu = Iu, ve = null, Ho = typeof WebAssembly < "u" && Eu()().then((o) => {
11532
+ var he = uu, Bu = Eu, ve = null, Vo = typeof WebAssembly < "u" && wu()().then((o) => {
11533
11533
  ve = o;
11534
11534
  }), Be = 64, wn = [];
11535
11535
  Se.exports = fe;
11536
- var Vo = Se.exports.BYTES_MIN = 16, Wo = Se.exports.BYTES_MAX = 64;
11536
+ var Wo = Se.exports.BYTES_MIN = 16, Yo = Se.exports.BYTES_MAX = 64;
11537
11537
  Se.exports.BYTES = 32;
11538
- var Yo = Se.exports.KEYBYTES_MIN = 16, Zo = Se.exports.KEYBYTES_MAX = 64;
11538
+ var Zo = Se.exports.KEYBYTES_MIN = 16, Jo = Se.exports.KEYBYTES_MAX = 64;
11539
11539
  Se.exports.KEYBYTES = 32;
11540
- var Jo = Se.exports.SALTBYTES = 16, Xo = Se.exports.PERSONALBYTES = 16;
11540
+ var Xo = Se.exports.SALTBYTES = 16, ta = Se.exports.PERSONALBYTES = 16;
11541
11541
  function fe(o, t, e, n, i) {
11542
11542
  if (!(this instanceof fe))
11543
11543
  return new fe(o, t, e, n, i);
11544
11544
  if (!ve)
11545
11545
  throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");
11546
- o || (o = 32), i !== !0 && (he(o >= Vo, "digestLength must be at least " + Vo + ", was given " + o), he(o <= Wo, "digestLength must be at most " + Wo + ", was given " + o), t != null && (he(t instanceof Uint8Array, "key must be Uint8Array or Buffer"), he(t.length >= Yo, "key must be at least " + Yo + ", was given " + t.length), he(t.length <= Zo, "key must be at least " + Zo + ", was given " + t.length)), e != null && (he(e instanceof Uint8Array, "salt must be Uint8Array or Buffer"), he(e.length === Jo, "salt must be exactly " + Jo + ", was given " + e.length)), n != null && (he(n instanceof Uint8Array, "personal must be Uint8Array or Buffer"), he(n.length === Xo, "personal must be exactly " + Xo + ", was given " + n.length))), wn.length || (wn.push(Be), Be += 216), this.digestLength = o, this.finalized = !1, this.pointer = wn.pop(), this._memory = new Uint8Array(ve.memory.buffer), this._memory.fill(0, 0, 64), this._memory[0] = this.digestLength, this._memory[1] = t ? t.length : 0, this._memory[2] = 1, this._memory[3] = 1, e && this._memory.set(e, 32), n && this._memory.set(n, 48), this.pointer + 216 > this._memory.length && this._realloc(this.pointer + 216), ve.blake2b_init(this.pointer, this.digestLength), t && (this.update(t), this._memory.fill(0, Be, Be + t.length), this._memory[this.pointer + 200] = 128);
11546
+ o || (o = 32), i !== !0 && (he(o >= Wo, "digestLength must be at least " + Wo + ", was given " + o), he(o <= Yo, "digestLength must be at most " + Yo + ", was given " + o), t != null && (he(t instanceof Uint8Array, "key must be Uint8Array or Buffer"), he(t.length >= Zo, "key must be at least " + Zo + ", was given " + t.length), he(t.length <= Jo, "key must be at least " + Jo + ", was given " + t.length)), e != null && (he(e instanceof Uint8Array, "salt must be Uint8Array or Buffer"), he(e.length === Xo, "salt must be exactly " + Xo + ", was given " + e.length)), n != null && (he(n instanceof Uint8Array, "personal must be Uint8Array or Buffer"), he(n.length === ta, "personal must be exactly " + ta + ", was given " + n.length))), wn.length || (wn.push(Be), Be += 216), this.digestLength = o, this.finalized = !1, this.pointer = wn.pop(), this._memory = new Uint8Array(ve.memory.buffer), this._memory.fill(0, 0, 64), this._memory[0] = this.digestLength, this._memory[1] = t ? t.length : 0, this._memory[2] = 1, this._memory[3] = 1, e && this._memory.set(e, 32), n && this._memory.set(n, 48), this.pointer + 216 > this._memory.length && this._realloc(this.pointer + 216), ve.blake2b_init(this.pointer, this.digestLength), t && (this.update(t), this._memory.fill(0, Be, Be + t.length), this._memory[this.pointer + 200] = 128);
11547
11547
  }
11548
11548
  fe.prototype._realloc = function(o) {
11549
11549
  ve.memory.grow(Math.max(0, Math.ceil(Math.abs(o - this._memory.length) / 65536))), this._memory = new Uint8Array(ve.memory.buffer);
@@ -11555,7 +11555,7 @@ fe.prototype.digest = function(o) {
11555
11555
  if (he(this.finalized === !1, "Hash instance finalized"), this.finalized = !0, wn.push(this.pointer), ve.blake2b_final(this.pointer), !o || o === "binary")
11556
11556
  return this._memory.slice(this.pointer + 128, this.pointer + 128 + this.digestLength);
11557
11557
  if (typeof o == "string")
11558
- return wu.toString(this._memory, o, this.pointer + 128, this.pointer + 128 + this.digestLength);
11558
+ return Bu.toString(this._memory, o, this.pointer + 128, this.pointer + 128 + this.digestLength);
11559
11559
  he(o instanceof Uint8Array && o.length >= this.digestLength, "input must be Uint8Array or Buffer");
11560
11560
  for (var t = 0; t < this.digestLength; t++)
11561
11561
  o[t] = this._memory[this.pointer + 128 + t];
@@ -11565,7 +11565,7 @@ fe.prototype.final = fe.prototype.digest;
11565
11565
  fe.WASM = ve;
11566
11566
  fe.SUPPORTED = typeof WebAssembly < "u";
11567
11567
  fe.ready = function(o) {
11568
- return o || (o = Bu), Ho ? Ho.then(() => o(), o) : o(new Error("WebAssembly not supported"));
11568
+ return o || (o = Fu), Vo ? Vo.then(() => o(), o) : o(new Error("WebAssembly not supported"));
11569
11569
  };
11570
11570
  fe.prototype.ready = fe.ready;
11571
11571
  fe.prototype.getPartialHash = function() {
@@ -11574,12 +11574,12 @@ fe.prototype.getPartialHash = function() {
11574
11574
  fe.prototype.setPartialHash = function(o) {
11575
11575
  this._memory.set(o, this.pointer);
11576
11576
  };
11577
- function Bu() {
11577
+ function Fu() {
11578
11578
  }
11579
11579
  function jn(o) {
11580
11580
  return (o & 4294901760 ? (o &= 4294901760, 16) : 0) | (o & 4278255360 ? (o &= 4278255360, 8) : 0) | (o & 4042322160 ? (o &= 4042322160, 4) : 0) | (o & 3435973836 ? (o &= 3435973836, 2) : 0) | (o & 2863311530) !== 0;
11581
11581
  }
11582
- const Fu = 1, vu = 2, br = 10, Su = 2;
11582
+ const vu = 1, Su = 2, Cr = 10, xu = 2;
11583
11583
  async function Ae(o, t, e) {
11584
11584
  const n = await o.read(t.G1.F.n8 * 2), i = t.G1.fromRprLEM(n, 0);
11585
11585
  return e ? t.G1.toObject(i) : i;
@@ -11588,56 +11588,56 @@ async function dn(o, t, e) {
11588
11588
  const n = await o.read(t.G2.F.n8 * 2), i = t.G2.fromRprLEM(n, 0);
11589
11589
  return e ? t.G2.toObject(i) : i;
11590
11590
  }
11591
- async function xu(o, t, e) {
11591
+ async function Ou(o, t, e) {
11592
11592
  await hn(o, t, 1);
11593
11593
  const n = await o.readULE32();
11594
- if (await pn(o), n === Fu)
11595
- return await Ou(o, t, e);
11596
- if (n === vu)
11594
+ if (await pn(o), n === vu)
11597
11595
  return await Pu(o, t, e);
11598
- if (n === br)
11596
+ if (n === Su)
11599
11597
  return await Du(o, t, e);
11598
+ if (n === Cr)
11599
+ return await ku(o, t, e);
11600
11600
  throw new Error("Protocol not supported: ");
11601
11601
  }
11602
- async function Ou(o, t, e) {
11602
+ async function Pu(o, t, e) {
11603
11603
  const n = {};
11604
11604
  n.protocol = "groth16", await hn(o, t, 2);
11605
11605
  const i = await o.readULE32();
11606
11606
  n.n8q = i, n.q = await Qe(o, i);
11607
11607
  const c = await o.readULE32();
11608
- return n.n8r = c, n.r = await Qe(o, c), n.curve = await Xi(n.q), n.nVars = await o.readULE32(), n.nPublic = await o.readULE32(), n.domainSize = await o.readULE32(), n.power = jn(n.domainSize), n.vk_alpha_1 = await Ae(o, n.curve, e), n.vk_beta_1 = await Ae(o, n.curve, e), n.vk_beta_2 = await dn(o, n.curve, e), n.vk_gamma_2 = await dn(o, n.curve, e), n.vk_delta_1 = await Ae(o, n.curve, e), n.vk_delta_2 = await dn(o, n.curve, e), await pn(o), n;
11608
+ return n.n8r = c, n.r = await Qe(o, c), n.curve = await to(n.q), n.nVars = await o.readULE32(), n.nPublic = await o.readULE32(), n.domainSize = await o.readULE32(), n.power = jn(n.domainSize), n.vk_alpha_1 = await Ae(o, n.curve, e), n.vk_beta_1 = await Ae(o, n.curve, e), n.vk_beta_2 = await dn(o, n.curve, e), n.vk_gamma_2 = await dn(o, n.curve, e), n.vk_delta_1 = await Ae(o, n.curve, e), n.vk_delta_2 = await dn(o, n.curve, e), await pn(o), n;
11609
11609
  }
11610
- async function Pu(o, t, e) {
11610
+ async function Du(o, t, e) {
11611
11611
  const n = {};
11612
11612
  n.protocol = "plonk", await hn(o, t, 2);
11613
11613
  const i = await o.readULE32();
11614
11614
  n.n8q = i, n.q = await Qe(o, i);
11615
11615
  const c = await o.readULE32();
11616
- return n.n8r = c, n.r = await Qe(o, c), n.curve = await Xi(n.q), n.nVars = await o.readULE32(), n.nPublic = await o.readULE32(), n.domainSize = await o.readULE32(), n.power = jn(n.domainSize), n.nAdditions = await o.readULE32(), n.nConstrains = await o.readULE32(), n.k1 = await o.read(c), n.k2 = await o.read(c), n.Qm = await Ae(o, n.curve, e), n.Ql = await Ae(o, n.curve, e), n.Qr = await Ae(o, n.curve, e), n.Qo = await Ae(o, n.curve, e), n.Qc = await Ae(o, n.curve, e), n.S1 = await Ae(o, n.curve, e), n.S2 = await Ae(o, n.curve, e), n.S3 = await Ae(o, n.curve, e), n.X_2 = await dn(o, n.curve, e), await pn(o), n;
11616
+ return n.n8r = c, n.r = await Qe(o, c), n.curve = await to(n.q), n.nVars = await o.readULE32(), n.nPublic = await o.readULE32(), n.domainSize = await o.readULE32(), n.power = jn(n.domainSize), n.nAdditions = await o.readULE32(), n.nConstrains = await o.readULE32(), n.k1 = await o.read(c), n.k2 = await o.read(c), n.Qm = await Ae(o, n.curve, e), n.Ql = await Ae(o, n.curve, e), n.Qr = await Ae(o, n.curve, e), n.Qo = await Ae(o, n.curve, e), n.Qc = await Ae(o, n.curve, e), n.S1 = await Ae(o, n.curve, e), n.S2 = await Ae(o, n.curve, e), n.S3 = await Ae(o, n.curve, e), n.X_2 = await dn(o, n.curve, e), await pn(o), n;
11617
11617
  }
11618
- async function Du(o, t, e) {
11618
+ async function ku(o, t, e) {
11619
11619
  const n = {};
11620
- n.protocol = "fflonk", n.protocolId = br, await hn(o, t, Su);
11620
+ n.protocol = "fflonk", n.protocolId = Cr, await hn(o, t, xu);
11621
11621
  const i = await o.readULE32();
11622
- n.n8q = i, n.q = await Qe(o, i), n.curve = await Xi(n.q);
11622
+ n.n8q = i, n.q = await Qe(o, i), n.curve = await to(n.q);
11623
11623
  const c = await o.readULE32();
11624
11624
  return n.n8r = c, n.r = await Qe(o, c), n.nVars = await o.readULE32(), n.nPublic = await o.readULE32(), n.domainSize = await o.readULE32(), n.power = jn(n.domainSize), n.nAdditions = await o.readULE32(), n.nConstraints = await o.readULE32(), n.k1 = await o.read(c), n.k2 = await o.read(c), n.w3 = await o.read(c), n.w4 = await o.read(c), n.w8 = await o.read(c), n.wr = await o.read(c), n.X_2 = await dn(o, n.curve, e), n.C0 = await Ae(o, n.curve, e), await pn(o), n;
11625
11625
  }
11626
- async function ku(o, t, e) {
11627
- await Lo(o, 1);
11626
+ async function Mu(o, t, e) {
11627
+ await mo(o, 1);
11628
11628
  const n = (Math.floor((ne.bitLength(e) - 1) / 64) + 1) * 8;
11629
- if (await o.writeULE32(n), await Ls(o, e, n), t.byteLength % n != 0)
11629
+ if (await o.writeULE32(n), await ms(o, e, n), t.byteLength % n != 0)
11630
11630
  throw new Error("Invalid witness length");
11631
- await o.writeULE32(t.byteLength / n), await mo(o), await Lo(o, 2), await o.write(t), await mo(o);
11631
+ await o.writeULE32(t.byteLength / n), await bo(o), await mo(o, 2), await o.write(t), await bo(o);
11632
11632
  }
11633
- async function Mu(o, t) {
11633
+ async function Tu(o, t) {
11634
11634
  await hn(o, t, 1);
11635
11635
  const e = await o.readULE32(), n = await Qe(o, e), i = await o.readULE32();
11636
11636
  return await pn(o), { n8: e, q: n, nWitness: i };
11637
11637
  }
11638
- const { stringifyBigInts: ta } = zn;
11639
- async function Tu(o, t, e) {
11640
- const { fd: n, sections: i } = await Ao(t, "wtns", 2, 33554432, 8388608), c = await Mu(n, i), { fd: d, sections: f } = await Ao(o, "zkey", 2, 1 << 25, 1 << 23), b = await xu(d, f);
11638
+ const { stringifyBigInts: ea } = zn;
11639
+ async function Uu(o, t, e) {
11640
+ const { fd: n, sections: i } = await Lo(t, "wtns", 2, 33554432, 8388608), c = await Tu(n, i), { fd: d, sections: f } = await Lo(o, "zkey", 2, 1 << 25, 1 << 23), b = await Ou(d, f);
11641
11641
  if (b.protocol != "groth16")
11642
11642
  throw new Error("zkey file is not groth16");
11643
11643
  if (!ne.eq(b.r, c.q))
@@ -11650,9 +11650,9 @@ async function Tu(o, t, e) {
11650
11650
  e && e.debug("Reading Coeffs");
11651
11651
  const k = await ke(d, f, 4);
11652
11652
  e && e.debug("Building ABC");
11653
- const [L, M, O] = await Uu(u, b, P, k, e), j = m == s.s ? u.Fr.shift : u.Fr.w[m + 1], F = await s.ifft(L, "", "", e, "IFFT_A"), D = await s.batchApplyKey(F, s.e(1), j), w = await s.fft(D, "", "", e, "FFT_A"), l = await s.ifft(M, "", "", e, "IFFT_B"), A = await s.batchApplyKey(l, s.e(1), j), Q = await s.fft(A, "", "", e, "FFT_B"), $ = await s.ifft(O, "", "", e, "IFFT_C"), T = await s.batchApplyKey($, s.e(1), j), N = await s.fft(T, "", "", e, "FFT_C");
11653
+ const [L, M, O] = await Nu(u, b, P, k, e), j = m == s.s ? u.Fr.shift : u.Fr.w[m + 1], F = await s.ifft(L, "", "", e, "IFFT_A"), D = await s.batchApplyKey(F, s.e(1), j), w = await s.fft(D, "", "", e, "FFT_A"), l = await s.ifft(M, "", "", e, "IFFT_B"), A = await s.batchApplyKey(l, s.e(1), j), Q = await s.fft(A, "", "", e, "FFT_B"), $ = await s.ifft(O, "", "", e, "IFFT_C"), T = await s.batchApplyKey($, s.e(1), j), N = await s.fft(T, "", "", e, "FFT_C");
11654
11654
  e && e.debug("Join ABC");
11655
- const I = await Nu(u, b, w, Q, N, e);
11655
+ const I = await Ru(u, b, w, Q, N, e);
11656
11656
  let q = {};
11657
11657
  e && e.debug("Reading A Points");
11658
11658
  const Z = await ke(d, f, 5);
@@ -11671,9 +11671,9 @@ async function Tu(o, t, e) {
11671
11671
  const a = P.slice(p * s.n8, p * s.n8 + s.n8);
11672
11672
  G.push(ne.fromRprLE(a));
11673
11673
  }
11674
- return q.pi_a = C.toObject(C.toAffine(q.pi_a)), q.pi_b = E.toObject(E.toAffine(q.pi_b)), q.pi_c = C.toObject(C.toAffine(q.pi_c)), q.protocol = "groth16", q.curve = u.name, await d.close(), await n.close(), q = ta(q), G = ta(G), { proof: q, publicSignals: G };
11674
+ return q.pi_a = C.toObject(C.toAffine(q.pi_a)), q.pi_b = E.toObject(E.toAffine(q.pi_b)), q.pi_c = C.toObject(C.toAffine(q.pi_c)), q.protocol = "groth16", q.curve = u.name, await d.close(), await n.close(), q = ea(q), G = ea(G), { proof: q, publicSignals: G };
11675
11675
  }
11676
- async function Uu(o, t, e, n, i) {
11676
+ async function Nu(o, t, e, n, i) {
11677
11677
  const c = o.Fr.n8, d = 4 * 3 + t.n8r, f = (n.byteLength - 4) / d, b = new Xt(t.domainSize * c), u = new Xt(t.domainSize * c), s = new Xt(t.domainSize * c), C = [b, u];
11678
11678
  for (let E = 0; E < f; E++) {
11679
11679
  i && E % 1e6 == 0 && i.debug(`QAP AB: ${E}/${f}`);
@@ -11696,7 +11696,7 @@ async function Uu(o, t, e, n, i) {
11696
11696
  );
11697
11697
  return [b, u, s];
11698
11698
  }
11699
- async function Nu(o, t, e, n, i, c) {
11699
+ async function Ru(o, t, e, n, i, c) {
11700
11700
  const f = o.Fr.n8, b = Math.floor(e.byteLength / o.Fr.n8), u = [];
11701
11701
  for (let m = 0; m < b; m += 4194304) {
11702
11702
  c && c.debug(`JoinABC: ${m}/${b}`);
@@ -11721,7 +11721,7 @@ async function Nu(o, t, e, n, i, c) {
11721
11721
  C.set(s[m][0], E), E += s[m][0].byteLength;
11722
11722
  return C;
11723
11723
  }
11724
- function Cr(o) {
11724
+ function Ir(o) {
11725
11725
  var t = [];
11726
11726
  return e(t, o), t;
11727
11727
  function e(n, i) {
@@ -11732,7 +11732,7 @@ function Cr(o) {
11732
11732
  n.push(i);
11733
11733
  }
11734
11734
  }
11735
- function Ir(o) {
11735
+ function Er(o) {
11736
11736
  const t = BigInt(2) ** BigInt(64);
11737
11737
  let e = BigInt("0xCBF29CE484222325");
11738
11738
  for (var n = 0; n < o.length; n++)
@@ -11740,7 +11740,7 @@ function Ir(o) {
11740
11740
  let i = e.toString(16), c = 16 - i.length;
11741
11741
  return i = "0".repeat(c).concat(i), i;
11742
11742
  }
11743
- function Ru(o, t) {
11743
+ function qu(o, t) {
11744
11744
  const e = [];
11745
11745
  let n = BigInt(o);
11746
11746
  const i = BigInt(4294967296);
@@ -11751,7 +11751,7 @@ function Ru(o, t) {
11751
11751
  e.unshift(0), c--;
11752
11752
  return e;
11753
11753
  }
11754
- async function qu(o, t) {
11754
+ async function Qu(o, t) {
11755
11755
  t = t || {};
11756
11756
  let e = 32767, n, i = !1;
11757
11757
  for (; !i; )
@@ -11818,7 +11818,7 @@ async function qu(o, t) {
11818
11818
  });
11819
11819
  typeof E.exports.getVersion == "function" && (u = E.exports.getVersion()), typeof E.exports.getMinorVersion == "function" && (s = E.exports.getMinorVersion()), typeof E.exports.getPatchVersion == "function" && (C = E.exports.getPatchVersion());
11820
11820
  const m = t && (t.sanityCheck || t.logGetSignal || t.logSetSignal || t.logStartComponent || t.logFinishComponent);
11821
- return u === 2 ? d = new zu(E, m) : d = new Qu(n, E, m), d;
11821
+ return u === 2 ? d = new ju(E, m) : d = new zu(n, E, m), d;
11822
11822
  function P() {
11823
11823
  for (var L = "", M = E.exports.getMessageChar(); M != 0; )
11824
11824
  L += String.fromCharCode(M), M = E.exports.getMessageChar();
@@ -11831,13 +11831,13 @@ async function qu(o, t) {
11831
11831
  return String.fromCharCode.apply(null, O);
11832
11832
  }
11833
11833
  }
11834
- class Qu {
11834
+ class zu {
11835
11835
  constructor(t, e, n) {
11836
11836
  this.memory = t, this.i32 = new Uint32Array(t.buffer), this.instance = e, this.n32 = (this.instance.exports.getFrLen() >> 2) - 2;
11837
11837
  const i = this.instance.exports.getPRawPrime(), c = new Array(this.n32);
11838
11838
  for (let d = 0; d < this.n32; d++)
11839
11839
  c[this.n32 - 1 - d] = this.i32[(i >> 2) + d];
11840
- this.prime = ne.fromArray(c, 4294967296), this.Fr = new Ys(this.prime), this.mask32 = ne.fromString("FFFFFFFF", 16), this.NVars = this.instance.exports.getNVars(), this.n64 = Math.floor((this.Fr.bitLength - 1) / 64) + 1, this.R = this.Fr.e(ne.shiftLeft(1, this.n64 * 64)), this.RInv = this.Fr.inv(this.R), this.sanityCheck = n;
11840
+ this.prime = ne.fromArray(c, 4294967296), this.Fr = new Zs(this.prime), this.mask32 = ne.fromString("FFFFFFFF", 16), this.NVars = this.instance.exports.getNVars(), this.n64 = Math.floor((this.Fr.bitLength - 1) / 64) + 1, this.R = this.Fr.e(ne.shiftLeft(1, this.n64 * 64)), this.RInv = this.Fr.inv(this.R), this.sanityCheck = n;
11841
11841
  }
11842
11842
  circom_version() {
11843
11843
  return 1;
@@ -11846,13 +11846,13 @@ class Qu {
11846
11846
  this.instance.exports.init(this.sanityCheck || e ? 1 : 0);
11847
11847
  const n = this.allocInt(), i = this.allocFr();
11848
11848
  Object.keys(t).forEach((d) => {
11849
- const f = Ir(d), b = parseInt(f.slice(0, 8), 16), u = parseInt(f.slice(8, 16), 16);
11849
+ const f = Er(d), b = parseInt(f.slice(0, 8), 16), u = parseInt(f.slice(8, 16), 16);
11850
11850
  try {
11851
11851
  this.instance.exports.getSignalOffset32(n, 0, b, u);
11852
11852
  } catch {
11853
11853
  throw new Error(`Signal ${d} is not an input of the circuit.`);
11854
11854
  }
11855
- const s = this.getInt(n), C = Cr(t[d]);
11855
+ const s = this.getInt(n), C = Ir(t[d]);
11856
11856
  for (let E = 0; E < C.length; E++)
11857
11857
  this.setFr(i, C[E]), this.instance.exports.setSignal(0, 0, s + E, i);
11858
11858
  });
@@ -11919,7 +11919,7 @@ class Qu {
11919
11919
  }
11920
11920
  }
11921
11921
  }
11922
- class zu {
11922
+ class ju {
11923
11923
  constructor(t, e) {
11924
11924
  this.instance = t, this.version = this.instance.exports.getVersion(), this.n32 = this.instance.exports.getFieldNumLen32(), this.instance.exports.getRawPrime();
11925
11925
  const n = new Array(this.n32);
@@ -11935,9 +11935,9 @@ class zu {
11935
11935
  const n = Object.keys(t);
11936
11936
  var i = 0;
11937
11937
  if (n.forEach((c) => {
11938
- const d = Ir(c), f = parseInt(d.slice(0, 8), 16), b = parseInt(d.slice(8, 16), 16), u = Cr(t[c]);
11938
+ const d = Er(c), f = parseInt(d.slice(0, 8), 16), b = parseInt(d.slice(8, 16), 16), u = Ir(t[c]);
11939
11939
  for (let s = 0; s < u.length; s++) {
11940
- const C = Ru(u[s], this.n32);
11940
+ const C = qu(u[s], this.n32);
11941
11941
  for (let E = 0; E < this.n32; E++)
11942
11942
  this.instance.exports.writeSharedRWMemory(E, C[this.n32 - 1 - E]);
11943
11943
  try {
@@ -11981,35 +11981,35 @@ class zu {
11981
11981
  return i;
11982
11982
  }
11983
11983
  }
11984
- const { unstringifyBigInts: ju } = zn;
11985
- async function Gu(o, t, e, n) {
11986
- const i = ju(o), c = await Da(t), d = await c.read(c.totalSize);
11984
+ const { unstringifyBigInts: Gu } = zn;
11985
+ async function $u(o, t, e, n) {
11986
+ const i = Gu(o), c = await ka(t), d = await c.read(c.totalSize);
11987
11987
  await c.close();
11988
- const f = await qu(d);
11988
+ const f = await Qu(d);
11989
11989
  if (f.circom_version() == 1) {
11990
- const b = await f.calculateBinWitness(i), u = await As(e, "wtns", 2, 2);
11991
- await ku(u, b, f.prime), await u.close();
11990
+ const b = await f.calculateBinWitness(i), u = await Ls(e, "wtns", 2, 2);
11991
+ await Mu(u, b, f.prime), await u.close();
11992
11992
  } else {
11993
- const b = await Pa(e), u = await f.calculateWTNSBin(i);
11993
+ const b = await Da(e), u = await f.calculateWTNSBin(i);
11994
11994
  await b.write(u), await b.close();
11995
11995
  }
11996
11996
  }
11997
- const { unstringifyBigInts: $u } = zn;
11998
- async function Ku(o, t, e, n) {
11999
- const i = $u(o), c = {
11997
+ const { unstringifyBigInts: Ku } = zn;
11998
+ async function Hu(o, t, e, n) {
11999
+ const i = Ku(o), c = {
12000
12000
  type: "mem"
12001
12001
  };
12002
- return await Gu(i, t, c), await Tu(e, c, n);
12002
+ return await $u(i, t, c), await Uu(e, c, n);
12003
12003
  }
12004
- const { unstringifyBigInts: ea } = zn;
12004
+ const { unstringifyBigInts: na } = zn;
12005
12005
  function we(o) {
12006
12006
  let t = o.toString(16);
12007
12007
  for (; t.length < 64; )
12008
12008
  t = "0" + t;
12009
12009
  return t = `"0x${t}"`, t;
12010
12010
  }
12011
- async function Hu(o, t) {
12012
- const e = ea(o), n = ea(t);
12011
+ async function Vu(o, t) {
12012
+ const e = na(o), n = na(t);
12013
12013
  let i = "";
12014
12014
  for (let d = 0; d < n.length; d++)
12015
12015
  i != "" && (i = i + ","), i = i + we(n[d]);
@@ -12018,7 +12018,7 @@ async function Hu(o, t) {
12018
12018
  }
12019
12019
  ne.e("73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", 16);
12020
12020
  ne.e("21888242871839275222246405745257275088548364400416034343698204186575808495617");
12021
- var Vu = {}, Oi = /* @__PURE__ */ Lc(ss), Er = {};
12021
+ var Wu = {}, Pi = /* @__PURE__ */ mc(ls), wr = {};
12022
12022
  (function(o) {
12023
12023
  var t = /[|\\{}()[\]^$+*?.]/g, e = Object.prototype.hasOwnProperty, n = function(u, s) {
12024
12024
  return e.apply(u, [s]);
@@ -12103,19 +12103,19 @@ function encode_char(c) {
12103
12103
  return { __proto__: null };
12104
12104
  };
12105
12105
  }();
12106
- })(Er);
12107
- const Wu = "ejs", Yu = "Embedded JavaScript templates", Zu = [
12106
+ })(wr);
12107
+ const Yu = "ejs", Zu = "Embedded JavaScript templates", Ju = [
12108
12108
  "template",
12109
12109
  "engine",
12110
12110
  "ejs"
12111
- ], Ju = "3.1.9", Xu = "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)", td = "Apache-2.0", ed = {
12111
+ ], Xu = "3.1.9", td = "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)", ed = "Apache-2.0", nd = {
12112
12112
  ejs: "./bin/cli.js"
12113
- }, nd = "./lib/ejs.js", id = "ejs.min.js", od = "ejs.min.js", ad = {
12113
+ }, id = "./lib/ejs.js", od = "ejs.min.js", ad = "ejs.min.js", rd = {
12114
12114
  type: "git",
12115
12115
  url: "git://github.com/mde/ejs.git"
12116
- }, rd = "https://github.com/mde/ejs/issues", cd = "https://github.com/mde/ejs", sd = {
12116
+ }, cd = "https://github.com/mde/ejs/issues", sd = "https://github.com/mde/ejs", ld = {
12117
12117
  jake: "^10.8.5"
12118
- }, ld = {
12118
+ }, ud = {
12119
12119
  browserify: "^16.5.1",
12120
12120
  eslint: "^6.8.0",
12121
12121
  "git-directory-deploy": "^1.5.1",
@@ -12123,29 +12123,29 @@ const Wu = "ejs", Yu = "Embedded JavaScript templates", Zu = [
12123
12123
  "lru-cache": "^4.0.1",
12124
12124
  mocha: "^10.2.0",
12125
12125
  "uglify-js": "^3.3.16"
12126
- }, ud = {
12127
- node: ">=0.10.0"
12128
12126
  }, dd = {
12127
+ node: ">=0.10.0"
12128
+ }, fd = {
12129
12129
  test: "mocha -u tdd"
12130
12130
  };
12131
- var fd = {
12132
- name: Wu,
12133
- description: Yu,
12134
- keywords: Zu,
12135
- version: Ju,
12136
- author: Xu,
12137
- license: td,
12138
- bin: ed,
12139
- main: nd,
12140
- jsdelivr: id,
12141
- unpkg: od,
12142
- repository: ad,
12143
- bugs: rd,
12144
- homepage: cd,
12145
- dependencies: sd,
12146
- devDependencies: ld,
12147
- engines: ud,
12148
- scripts: dd
12131
+ var gd = {
12132
+ name: Yu,
12133
+ description: Zu,
12134
+ keywords: Ju,
12135
+ version: Xu,
12136
+ author: td,
12137
+ license: ed,
12138
+ bin: nd,
12139
+ main: id,
12140
+ jsdelivr: od,
12141
+ unpkg: ad,
12142
+ repository: rd,
12143
+ bugs: cd,
12144
+ homepage: sd,
12145
+ dependencies: ld,
12146
+ devDependencies: ud,
12147
+ engines: dd,
12148
+ scripts: fd
12149
12149
  };
12150
12150
  (function(o) {
12151
12151
  /**
@@ -12155,7 +12155,7 @@ var fd = {
12155
12155
  * @project EJS
12156
12156
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
12157
12157
  */
12158
- var t = Oi, e = Oi, n = Er, i = !1, c = fd.version, d = "<", f = ">", b = "%", u = "locals", s = "ejs", C = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)", E = [
12158
+ var t = Pi, e = Pi, n = wr, i = !1, c = gd.version, d = "<", f = ">", b = "%", u = "locals", s = "ejs", C = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)", E = [
12159
12159
  "delimiter",
12160
12160
  "scope",
12161
12161
  "context",
@@ -12451,9 +12451,9 @@ try {
12451
12451
  `);
12452
12452
  }
12453
12453
  }, o.escapeXML = n.escapeXML, o.__express = o.renderFile, o.VERSION = c, o.name = s, typeof window < "u" && (window.ejs = o);
12454
- })(Vu);
12455
- var to = { exports: {} };
12456
- to.exports;
12454
+ })(Wu);
12455
+ var eo = { exports: {} };
12456
+ eo.exports;
12457
12457
  (function(o) {
12458
12458
  (function(t) {
12459
12459
  var e, n, i, c, d, f, b, u, s, C, E, m, P, k, L, M, O;
@@ -12893,8 +12893,8 @@ to.exports;
12893
12893
  o !== null && o.exports ? o.exports = U : t.check = U;
12894
12894
  }
12895
12895
  })(qe);
12896
- })(to);
12897
- var eo = to.exports, no = { exports: {} }, Ye = typeof Reflect == "object" ? Reflect : null, na = Ye && typeof Ye.apply == "function" ? Ye.apply : function(t, e, n) {
12896
+ })(eo);
12897
+ var no = eo.exports, io = { exports: {} }, Ye = typeof Reflect == "object" ? Reflect : null, ia = Ye && typeof Ye.apply == "function" ? Ye.apply : function(t, e, n) {
12898
12898
  return Function.prototype.apply.call(t, e, n);
12899
12899
  }, Bn;
12900
12900
  Ye && typeof Ye.ownKeys == "function" ? Bn = Ye.ownKeys : Object.getOwnPropertySymbols ? Bn = function(t) {
@@ -12902,22 +12902,22 @@ Ye && typeof Ye.ownKeys == "function" ? Bn = Ye.ownKeys : Object.getOwnPropertyS
12902
12902
  } : Bn = function(t) {
12903
12903
  return Object.getOwnPropertyNames(t);
12904
12904
  };
12905
- function gd(o) {
12905
+ function _d(o) {
12906
12906
  console && console.warn && console.warn(o);
12907
12907
  }
12908
- var wr = Number.isNaN || function(t) {
12908
+ var Br = Number.isNaN || function(t) {
12909
12909
  return t !== t;
12910
12910
  };
12911
12911
  function te() {
12912
12912
  te.init.call(this);
12913
12913
  }
12914
- no.exports = te;
12915
- no.exports.once = yd;
12914
+ io.exports = te;
12915
+ io.exports.once = Ad;
12916
12916
  te.EventEmitter = te;
12917
12917
  te.prototype._events = void 0;
12918
12918
  te.prototype._eventsCount = 0;
12919
12919
  te.prototype._maxListeners = void 0;
12920
- var ia = 10;
12920
+ var oa = 10;
12921
12921
  function Gn(o) {
12922
12922
  if (typeof o != "function")
12923
12923
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof o);
@@ -12925,27 +12925,27 @@ function Gn(o) {
12925
12925
  Object.defineProperty(te, "defaultMaxListeners", {
12926
12926
  enumerable: !0,
12927
12927
  get: function() {
12928
- return ia;
12928
+ return oa;
12929
12929
  },
12930
12930
  set: function(o) {
12931
- if (typeof o != "number" || o < 0 || wr(o))
12931
+ if (typeof o != "number" || o < 0 || Br(o))
12932
12932
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + o + ".");
12933
- ia = o;
12933
+ oa = o;
12934
12934
  }
12935
12935
  });
12936
12936
  te.init = function() {
12937
12937
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
12938
12938
  };
12939
12939
  te.prototype.setMaxListeners = function(t) {
12940
- if (typeof t != "number" || t < 0 || wr(t))
12940
+ if (typeof t != "number" || t < 0 || Br(t))
12941
12941
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
12942
12942
  return this._maxListeners = t, this;
12943
12943
  };
12944
- function Br(o) {
12944
+ function Fr(o) {
12945
12945
  return o._maxListeners === void 0 ? te.defaultMaxListeners : o._maxListeners;
12946
12946
  }
12947
12947
  te.prototype.getMaxListeners = function() {
12948
- return Br(this);
12948
+ return Fr(this);
12949
12949
  };
12950
12950
  te.prototype.emit = function(t) {
12951
12951
  for (var e = [], n = 1; n < arguments.length; n++)
@@ -12966,13 +12966,13 @@ te.prototype.emit = function(t) {
12966
12966
  if (b === void 0)
12967
12967
  return !1;
12968
12968
  if (typeof b == "function")
12969
- na(b, this, e);
12969
+ ia(b, this, e);
12970
12970
  else
12971
- for (var u = b.length, s = Or(b, u), n = 0; n < u; ++n)
12972
- na(s[n], this, e);
12971
+ for (var u = b.length, s = Pr(b, u), n = 0; n < u; ++n)
12972
+ ia(s[n], this, e);
12973
12973
  return !0;
12974
12974
  };
12975
- function Fr(o, t, e, n) {
12975
+ function vr(o, t, e, n) {
12976
12976
  var i, c, d;
12977
12977
  if (Gn(e), c = o._events, c === void 0 ? (c = o._events = /* @__PURE__ */ Object.create(null), o._eventsCount = 0) : (c.newListener !== void 0 && (o.emit(
12978
12978
  "newListener",
@@ -12980,33 +12980,33 @@ function Fr(o, t, e, n) {
12980
12980
  e.listener ? e.listener : e
12981
12981
  ), c = o._events), d = c[t]), d === void 0)
12982
12982
  d = c[t] = e, ++o._eventsCount;
12983
- else if (typeof d == "function" ? d = c[t] = n ? [e, d] : [d, e] : n ? d.unshift(e) : d.push(e), i = Br(o), i > 0 && d.length > i && !d.warned) {
12983
+ else if (typeof d == "function" ? d = c[t] = n ? [e, d] : [d, e] : n ? d.unshift(e) : d.push(e), i = Fr(o), i > 0 && d.length > i && !d.warned) {
12984
12984
  d.warned = !0;
12985
12985
  var f = new Error("Possible EventEmitter memory leak detected. " + d.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
12986
- f.name = "MaxListenersExceededWarning", f.emitter = o, f.type = t, f.count = d.length, gd(f);
12986
+ f.name = "MaxListenersExceededWarning", f.emitter = o, f.type = t, f.count = d.length, _d(f);
12987
12987
  }
12988
12988
  return o;
12989
12989
  }
12990
12990
  te.prototype.addListener = function(t, e) {
12991
- return Fr(this, t, e, !1);
12991
+ return vr(this, t, e, !1);
12992
12992
  };
12993
12993
  te.prototype.on = te.prototype.addListener;
12994
12994
  te.prototype.prependListener = function(t, e) {
12995
- return Fr(this, t, e, !0);
12995
+ return vr(this, t, e, !0);
12996
12996
  };
12997
- function _d() {
12997
+ function hd() {
12998
12998
  if (!this.fired)
12999
12999
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
13000
13000
  }
13001
- function vr(o, t, e) {
13002
- var n = { fired: !1, wrapFn: void 0, target: o, type: t, listener: e }, i = _d.bind(n);
13001
+ function Sr(o, t, e) {
13002
+ var n = { fired: !1, wrapFn: void 0, target: o, type: t, listener: e }, i = hd.bind(n);
13003
13003
  return i.listener = e, n.wrapFn = i, i;
13004
13004
  }
13005
13005
  te.prototype.once = function(t, e) {
13006
- return Gn(e), this.on(t, vr(this, t, e)), this;
13006
+ return Gn(e), this.on(t, Sr(this, t, e)), this;
13007
13007
  };
13008
13008
  te.prototype.prependOnceListener = function(t, e) {
13009
- return Gn(e), this.prependListener(t, vr(this, t, e)), this;
13009
+ return Gn(e), this.prependListener(t, Sr(this, t, e)), this;
13010
13010
  };
13011
13011
  te.prototype.removeListener = function(t, e) {
13012
13012
  var n, i, c, d, f;
@@ -13024,7 +13024,7 @@ te.prototype.removeListener = function(t, e) {
13024
13024
  }
13025
13025
  if (c < 0)
13026
13026
  return this;
13027
- c === 0 ? n.shift() : hd(n, c), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, f || e);
13027
+ c === 0 ? n.shift() : pd(n, c), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, f || e);
13028
13028
  }
13029
13029
  return this;
13030
13030
  };
@@ -13048,24 +13048,24 @@ te.prototype.removeAllListeners = function(t) {
13048
13048
  this.removeListener(t, e[i]);
13049
13049
  return this;
13050
13050
  };
13051
- function Sr(o, t, e) {
13051
+ function xr(o, t, e) {
13052
13052
  var n = o._events;
13053
13053
  if (n === void 0)
13054
13054
  return [];
13055
13055
  var i = n[t];
13056
- return i === void 0 ? [] : typeof i == "function" ? e ? [i.listener || i] : [i] : e ? pd(i) : Or(i, i.length);
13056
+ return i === void 0 ? [] : typeof i == "function" ? e ? [i.listener || i] : [i] : e ? yd(i) : Pr(i, i.length);
13057
13057
  }
13058
13058
  te.prototype.listeners = function(t) {
13059
- return Sr(this, t, !0);
13059
+ return xr(this, t, !0);
13060
13060
  };
13061
13061
  te.prototype.rawListeners = function(t) {
13062
- return Sr(this, t, !1);
13062
+ return xr(this, t, !1);
13063
13063
  };
13064
13064
  te.listenerCount = function(o, t) {
13065
- return typeof o.listenerCount == "function" ? o.listenerCount(t) : xr.call(o, t);
13065
+ return typeof o.listenerCount == "function" ? o.listenerCount(t) : Or.call(o, t);
13066
13066
  };
13067
- te.prototype.listenerCount = xr;
13068
- function xr(o) {
13067
+ te.prototype.listenerCount = Or;
13068
+ function Or(o) {
13069
13069
  var t = this._events;
13070
13070
  if (t !== void 0) {
13071
13071
  var e = t[o];
@@ -13079,22 +13079,22 @@ function xr(o) {
13079
13079
  te.prototype.eventNames = function() {
13080
13080
  return this._eventsCount > 0 ? Bn(this._events) : [];
13081
13081
  };
13082
- function Or(o, t) {
13082
+ function Pr(o, t) {
13083
13083
  for (var e = new Array(t), n = 0; n < t; ++n)
13084
13084
  e[n] = o[n];
13085
13085
  return e;
13086
13086
  }
13087
- function hd(o, t) {
13087
+ function pd(o, t) {
13088
13088
  for (; t + 1 < o.length; t++)
13089
13089
  o[t] = o[t + 1];
13090
13090
  o.pop();
13091
13091
  }
13092
- function pd(o) {
13092
+ function yd(o) {
13093
13093
  for (var t = new Array(o.length), e = 0; e < t.length; ++e)
13094
13094
  t[e] = o[e].listener || o[e];
13095
13095
  return t;
13096
13096
  }
13097
- function yd(o, t) {
13097
+ function Ad(o, t) {
13098
13098
  return new Promise(function(e, n) {
13099
13099
  function i(d) {
13100
13100
  o.removeListener(t, c), n(d);
@@ -13102,13 +13102,13 @@ function yd(o, t) {
13102
13102
  function c() {
13103
13103
  typeof o.removeListener == "function" && o.removeListener("error", i), e([].slice.call(arguments));
13104
13104
  }
13105
- Pr(o, t, c, { once: !0 }), t !== "error" && Ad(o, i, { once: !0 });
13105
+ Dr(o, t, c, { once: !0 }), t !== "error" && Ld(o, i, { once: !0 });
13106
13106
  });
13107
13107
  }
13108
- function Ad(o, t, e) {
13109
- typeof o.on == "function" && Pr(o, "error", t, e);
13108
+ function Ld(o, t, e) {
13109
+ typeof o.on == "function" && Dr(o, "error", t, e);
13110
13110
  }
13111
- function Pr(o, t, e, n) {
13111
+ function Dr(o, t, e, n) {
13112
13112
  if (typeof o.on == "function")
13113
13113
  n.once ? o.once(t, e) : o.on(t, e);
13114
13114
  else if (typeof o.addEventListener == "function")
@@ -13118,7 +13118,7 @@ function Pr(o, t, e, n) {
13118
13118
  else
13119
13119
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof o);
13120
13120
  }
13121
- var Dr = no.exports, Ld = { exports: {} };
13121
+ var kr = io.exports, md = { exports: {} };
13122
13122
  (function(o) {
13123
13123
  o.exports = {
13124
13124
  array: "arr",
@@ -13131,9 +13131,9 @@ var Dr = no.exports, Ld = { exports: {} };
13131
13131
  end: "end",
13132
13132
  error: "err"
13133
13133
  }, o.exports.endArray = o.exports.endPrefix + o.exports.array, o.exports.endObject = o.exports.endPrefix + o.exports.object, o.exports.endLine = `${o.exports.endPrefix}line`, o.exports.dataError = `${o.exports.error}-data`;
13134
- })(Ld);
13135
- Dr.EventEmitter;
13136
- var $n = {}, kr = {}, Mr = function() {
13134
+ })(md);
13135
+ kr.EventEmitter;
13136
+ var $n = {}, Mr = {}, Tr = function() {
13137
13137
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
13138
13138
  return !1;
13139
13139
  if (typeof Symbol.iterator == "symbol")
@@ -13156,56 +13156,56 @@ var $n = {}, kr = {}, Mr = function() {
13156
13156
  return !1;
13157
13157
  }
13158
13158
  return !0;
13159
- }, md = Mr, io = function() {
13160
- return md() && !!Symbol.toStringTag;
13161
- }, bd = Error, Cd = EvalError, Id = RangeError, Ed = ReferenceError, Tr = SyntaxError, Kn = TypeError, wd = URIError, oa = typeof Symbol < "u" && Symbol, Bd = Mr, Fd = function() {
13162
- return typeof oa != "function" || typeof Symbol != "function" || typeof oa("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Bd();
13159
+ }, bd = Tr, oo = function() {
13160
+ return bd() && !!Symbol.toStringTag;
13161
+ }, Cd = Error, Id = EvalError, Ed = RangeError, wd = ReferenceError, Ur = SyntaxError, Kn = TypeError, Bd = URIError, aa = typeof Symbol < "u" && Symbol, Fd = Tr, vd = function() {
13162
+ return typeof aa != "function" || typeof Symbol != "function" || typeof aa("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Fd();
13163
13163
  }, li = {
13164
13164
  __proto__: null,
13165
13165
  foo: {}
13166
- }, vd = Object, Sd = function() {
13167
- return { __proto__: li }.foo === li.foo && !(li instanceof vd);
13168
- }, xd = "Function.prototype.bind called on incompatible ", Od = Object.prototype.toString, Pd = Math.max, Dd = "[object Function]", aa = function(t, e) {
13166
+ }, Sd = Object, xd = function() {
13167
+ return { __proto__: li }.foo === li.foo && !(li instanceof Sd);
13168
+ }, Od = "Function.prototype.bind called on incompatible ", Pd = Object.prototype.toString, Dd = Math.max, kd = "[object Function]", ra = function(t, e) {
13169
13169
  for (var n = [], i = 0; i < t.length; i += 1)
13170
13170
  n[i] = t[i];
13171
13171
  for (var c = 0; c < e.length; c += 1)
13172
13172
  n[c + t.length] = e[c];
13173
13173
  return n;
13174
- }, kd = function(t, e) {
13174
+ }, Md = function(t, e) {
13175
13175
  for (var n = [], i = e || 0, c = 0; i < t.length; i += 1, c += 1)
13176
13176
  n[c] = t[i];
13177
13177
  return n;
13178
- }, Md = function(o, t) {
13178
+ }, Td = function(o, t) {
13179
13179
  for (var e = "", n = 0; n < o.length; n += 1)
13180
13180
  e += o[n], n + 1 < o.length && (e += t);
13181
13181
  return e;
13182
- }, Td = function(t) {
13182
+ }, Ud = function(t) {
13183
13183
  var e = this;
13184
- if (typeof e != "function" || Od.apply(e) !== Dd)
13185
- throw new TypeError(xd + e);
13186
- for (var n = kd(arguments, 1), i, c = function() {
13184
+ if (typeof e != "function" || Pd.apply(e) !== kd)
13185
+ throw new TypeError(Od + e);
13186
+ for (var n = Md(arguments, 1), i, c = function() {
13187
13187
  if (this instanceof i) {
13188
13188
  var s = e.apply(
13189
13189
  this,
13190
- aa(n, arguments)
13190
+ ra(n, arguments)
13191
13191
  );
13192
13192
  return Object(s) === s ? s : this;
13193
13193
  }
13194
13194
  return e.apply(
13195
13195
  t,
13196
- aa(n, arguments)
13196
+ ra(n, arguments)
13197
13197
  );
13198
- }, d = Pd(0, e.length - n.length), f = [], b = 0; b < d; b++)
13198
+ }, d = Dd(0, e.length - n.length), f = [], b = 0; b < d; b++)
13199
13199
  f[b] = "$" + b;
13200
- if (i = Function("binder", "return function (" + Md(f, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
13200
+ if (i = Function("binder", "return function (" + Td(f, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
13201
13201
  var u = function() {
13202
13202
  };
13203
13203
  u.prototype = e.prototype, i.prototype = new u(), u.prototype = null;
13204
13204
  }
13205
13205
  return i;
13206
- }, Ud = Td, oo = Function.prototype.bind || Ud, Nd = Function.prototype.call, Rd = Object.prototype.hasOwnProperty, qd = oo, Qd = qd.call(Nd, Rd), Kt, zd = bd, jd = Cd, Gd = Id, $d = Ed, en = Tr, Ze = Kn, Kd = wd, Ur = Function, ui = function(o) {
13206
+ }, Nd = Ud, ao = Function.prototype.bind || Nd, Rd = Function.prototype.call, qd = Object.prototype.hasOwnProperty, Qd = ao, zd = Qd.call(Rd, qd), Kt, jd = Cd, Gd = Id, $d = Ed, Kd = wd, en = Ur, Ze = Kn, Hd = Bd, Nr = Function, ui = function(o) {
13207
13207
  try {
13208
- return Ur('"use strict"; return (' + o + ").constructor;")();
13208
+ return Nr('"use strict"; return (' + o + ").constructor;")();
13209
13209
  } catch {
13210
13210
  }
13211
13211
  }, Ne = Object.getOwnPropertyDescriptor;
@@ -13217,7 +13217,7 @@ if (Ne)
13217
13217
  }
13218
13218
  var di = function() {
13219
13219
  throw new Ze();
13220
- }, Hd = Ne ? function() {
13220
+ }, Vd = Ne ? function() {
13221
13221
  try {
13222
13222
  return arguments.callee, di;
13223
13223
  } catch {
@@ -13227,9 +13227,9 @@ var di = function() {
13227
13227
  return di;
13228
13228
  }
13229
13229
  }
13230
- }() : di, Ge = Fd(), Vd = Sd(), ce = Object.getPrototypeOf || (Vd ? function(o) {
13230
+ }() : di, Ge = vd(), Wd = xd(), ce = Object.getPrototypeOf || (Wd ? function(o) {
13231
13231
  return o.__proto__;
13232
- } : null), Ke = {}, Wd = typeof Uint8Array > "u" || !ce ? Kt : ce(Uint8Array), Re = {
13232
+ } : null), Ke = {}, Yd = typeof Uint8Array > "u" || !ce ? Kt : ce(Uint8Array), Re = {
13233
13233
  __proto__: null,
13234
13234
  "%AggregateError%": typeof AggregateError > "u" ? Kt : AggregateError,
13235
13235
  "%Array%": Array,
@@ -13251,14 +13251,14 @@ var di = function() {
13251
13251
  "%decodeURIComponent%": decodeURIComponent,
13252
13252
  "%encodeURI%": encodeURI,
13253
13253
  "%encodeURIComponent%": encodeURIComponent,
13254
- "%Error%": zd,
13254
+ "%Error%": jd,
13255
13255
  "%eval%": eval,
13256
13256
  // eslint-disable-line no-eval
13257
- "%EvalError%": jd,
13257
+ "%EvalError%": Gd,
13258
13258
  "%Float32Array%": typeof Float32Array > "u" ? Kt : Float32Array,
13259
13259
  "%Float64Array%": typeof Float64Array > "u" ? Kt : Float64Array,
13260
13260
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Kt : FinalizationRegistry,
13261
- "%Function%": Ur,
13261
+ "%Function%": Nr,
13262
13262
  "%GeneratorFunction%": Ke,
13263
13263
  "%Int8Array%": typeof Int8Array > "u" ? Kt : Int8Array,
13264
13264
  "%Int16Array%": typeof Int16Array > "u" ? Kt : Int16Array,
@@ -13276,8 +13276,8 @@ var di = function() {
13276
13276
  "%parseInt%": parseInt,
13277
13277
  "%Promise%": typeof Promise > "u" ? Kt : Promise,
13278
13278
  "%Proxy%": typeof Proxy > "u" ? Kt : Proxy,
13279
- "%RangeError%": Gd,
13280
- "%ReferenceError%": $d,
13279
+ "%RangeError%": $d,
13280
+ "%ReferenceError%": Kd,
13281
13281
  "%Reflect%": typeof Reflect > "u" ? Kt : Reflect,
13282
13282
  "%RegExp%": RegExp,
13283
13283
  "%Set%": typeof Set > "u" ? Kt : Set,
@@ -13287,14 +13287,14 @@ var di = function() {
13287
13287
  "%StringIteratorPrototype%": Ge && ce ? ce(""[Symbol.iterator]()) : Kt,
13288
13288
  "%Symbol%": Ge ? Symbol : Kt,
13289
13289
  "%SyntaxError%": en,
13290
- "%ThrowTypeError%": Hd,
13291
- "%TypedArray%": Wd,
13290
+ "%ThrowTypeError%": Vd,
13291
+ "%TypedArray%": Yd,
13292
13292
  "%TypeError%": Ze,
13293
13293
  "%Uint8Array%": typeof Uint8Array > "u" ? Kt : Uint8Array,
13294
13294
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Kt : Uint8ClampedArray,
13295
13295
  "%Uint16Array%": typeof Uint16Array > "u" ? Kt : Uint16Array,
13296
13296
  "%Uint32Array%": typeof Uint32Array > "u" ? Kt : Uint32Array,
13297
- "%URIError%": Kd,
13297
+ "%URIError%": Hd,
13298
13298
  "%WeakMap%": typeof WeakMap > "u" ? Kt : WeakMap,
13299
13299
  "%WeakRef%": typeof WeakRef > "u" ? Kt : WeakRef,
13300
13300
  "%WeakSet%": typeof WeakSet > "u" ? Kt : WeakSet
@@ -13303,10 +13303,10 @@ if (ce)
13303
13303
  try {
13304
13304
  null.error;
13305
13305
  } catch (o) {
13306
- var Yd = ce(ce(o));
13307
- Re["%Error.prototype%"] = Yd;
13306
+ var Zd = ce(ce(o));
13307
+ Re["%Error.prototype%"] = Zd;
13308
13308
  }
13309
- var Zd = function o(t) {
13309
+ var Jd = function o(t) {
13310
13310
  var e;
13311
13311
  if (t === "%AsyncFunction%")
13312
13312
  e = ui("async function () {}");
@@ -13322,7 +13322,7 @@ var Zd = function o(t) {
13322
13322
  i && ce && (e = ce(i.prototype));
13323
13323
  }
13324
13324
  return Re[t] = e, e;
13325
- }, ra = {
13325
+ }, ca = {
13326
13326
  __proto__: null,
13327
13327
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
13328
13328
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -13375,21 +13375,21 @@ var Zd = function o(t) {
13375
13375
  "%URIErrorPrototype%": ["URIError", "prototype"],
13376
13376
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
13377
13377
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
13378
- }, mn = oo, kn = Qd, Jd = mn.call(Function.call, Array.prototype.concat), Xd = mn.call(Function.apply, Array.prototype.splice), ca = mn.call(Function.call, String.prototype.replace), Mn = mn.call(Function.call, String.prototype.slice), tf = mn.call(Function.call, RegExp.prototype.exec), ef = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, nf = /\\(\\)?/g, of = function(t) {
13378
+ }, mn = ao, kn = zd, Xd = mn.call(Function.call, Array.prototype.concat), tf = mn.call(Function.apply, Array.prototype.splice), sa = mn.call(Function.call, String.prototype.replace), Mn = mn.call(Function.call, String.prototype.slice), ef = mn.call(Function.call, RegExp.prototype.exec), nf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, of = /\\(\\)?/g, af = function(t) {
13379
13379
  var e = Mn(t, 0, 1), n = Mn(t, -1);
13380
13380
  if (e === "%" && n !== "%")
13381
13381
  throw new en("invalid intrinsic syntax, expected closing `%`");
13382
13382
  if (n === "%" && e !== "%")
13383
13383
  throw new en("invalid intrinsic syntax, expected opening `%`");
13384
13384
  var i = [];
13385
- return ca(t, ef, function(c, d, f, b) {
13386
- i[i.length] = f ? ca(b, nf, "$1") : d || c;
13385
+ return sa(t, nf, function(c, d, f, b) {
13386
+ i[i.length] = f ? sa(b, of, "$1") : d || c;
13387
13387
  }), i;
13388
- }, af = function(t, e) {
13388
+ }, rf = function(t, e) {
13389
13389
  var n = t, i;
13390
- if (kn(ra, n) && (i = ra[n], n = "%" + i[0] + "%"), kn(Re, n)) {
13390
+ if (kn(ca, n) && (i = ca[n], n = "%" + i[0] + "%"), kn(Re, n)) {
13391
13391
  var c = Re[n];
13392
- if (c === Ke && (c = Zd(n)), typeof c > "u" && !e)
13392
+ if (c === Ke && (c = Jd(n)), typeof c > "u" && !e)
13393
13393
  throw new Ze("intrinsic " + t + " exists, but is not available. Please file an issue!");
13394
13394
  return {
13395
13395
  alias: i,
@@ -13403,10 +13403,10 @@ var Zd = function o(t) {
13403
13403
  throw new Ze("intrinsic name must be a non-empty string");
13404
13404
  if (arguments.length > 1 && typeof e != "boolean")
13405
13405
  throw new Ze('"allowMissing" argument must be a boolean');
13406
- if (tf(/^%?[^%]*%?$/, t) === null)
13406
+ if (ef(/^%?[^%]*%?$/, t) === null)
13407
13407
  throw new en("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
13408
- var n = of(t), i = n.length > 0 ? n[0] : "", c = af("%" + i + "%", e), d = c.name, f = c.value, b = !1, u = c.alias;
13409
- u && (i = u[0], Xd(n, Jd([0, 1], u)));
13408
+ var n = af(t), i = n.length > 0 ? n[0] : "", c = rf("%" + i + "%", e), d = c.name, f = c.value, b = !1, u = c.alias;
13409
+ u && (i = u[0], tf(n, Xd([0, 1], u)));
13410
13410
  for (var s = 1, C = !0; s < n.length; s += 1) {
13411
13411
  var E = n[s], m = Mn(E, 0, 1), P = Mn(E, -1);
13412
13412
  if ((m === '"' || m === "'" || m === "`" || P === '"' || P === "'" || P === "`") && m !== P)
@@ -13428,11 +13428,11 @@ var Zd = function o(t) {
13428
13428
  }
13429
13429
  }
13430
13430
  return f;
13431
- }, Nr = { exports: {} }, fi, sa;
13432
- function ao() {
13433
- if (sa)
13431
+ }, Rr = { exports: {} }, fi, la;
13432
+ function ro() {
13433
+ if (la)
13434
13434
  return fi;
13435
- sa = 1;
13435
+ la = 1;
13436
13436
  var o = bn, t = o("%Object.defineProperty%", !0) || !1;
13437
13437
  if (t)
13438
13438
  try {
@@ -13442,14 +13442,14 @@ function ao() {
13442
13442
  }
13443
13443
  return fi = t, fi;
13444
13444
  }
13445
- var rf = bn, Fn = rf("%Object.getOwnPropertyDescriptor%", !0);
13445
+ var cf = bn, Fn = cf("%Object.getOwnPropertyDescriptor%", !0);
13446
13446
  if (Fn)
13447
13447
  try {
13448
13448
  Fn([], "length");
13449
13449
  } catch {
13450
13450
  Fn = null;
13451
13451
  }
13452
- var ro = Fn, la = ao(), cf = Tr, $e = Kn, ua = ro, sf = function(t, e, n) {
13452
+ var co = Fn, ua = ro(), sf = Ur, $e = Kn, da = co, lf = function(t, e, n) {
13453
13453
  if (!t || typeof t != "object" && typeof t != "function")
13454
13454
  throw new $e("`obj` must be an object or a function`");
13455
13455
  if (typeof e != "string" && typeof e != "symbol")
@@ -13462,9 +13462,9 @@ var ro = Fn, la = ao(), cf = Tr, $e = Kn, ua = ro, sf = function(t, e, n) {
13462
13462
  throw new $e("`nonConfigurable`, if provided, must be a boolean or null");
13463
13463
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
13464
13464
  throw new $e("`loose`, if provided, must be a boolean");
13465
- var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, d = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, b = !!ua && ua(t, e);
13466
- if (la)
13467
- la(t, e, {
13465
+ var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, d = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, b = !!da && da(t, e);
13466
+ if (ua)
13467
+ ua(t, e, {
13468
13468
  configurable: d === null && b ? b.configurable : !d,
13469
13469
  enumerable: i === null && b ? b.enumerable : !i,
13470
13470
  value: n,
@@ -13473,37 +13473,37 @@ var ro = Fn, la = ao(), cf = Tr, $e = Kn, ua = ro, sf = function(t, e, n) {
13473
13473
  else if (f || !i && !c && !d)
13474
13474
  t[e] = n;
13475
13475
  else
13476
- throw new cf("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
13477
- }, Pi = ao(), Rr = function() {
13478
- return !!Pi;
13476
+ throw new sf("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
13477
+ }, Di = ro(), qr = function() {
13478
+ return !!Di;
13479
13479
  };
13480
- Rr.hasArrayLengthDefineBug = function() {
13481
- if (!Pi)
13480
+ qr.hasArrayLengthDefineBug = function() {
13481
+ if (!Di)
13482
13482
  return null;
13483
13483
  try {
13484
- return Pi([], "length", { value: 1 }).length !== 1;
13484
+ return Di([], "length", { value: 1 }).length !== 1;
13485
13485
  } catch {
13486
13486
  return !0;
13487
13487
  }
13488
13488
  };
13489
- var lf = Rr, uf = bn, da = sf, df = lf(), fa = ro, ga = Kn, ff = uf("%Math.floor%"), gf = function(t, e) {
13489
+ var uf = qr, df = bn, fa = lf, ff = uf(), ga = co, _a = Kn, gf = df("%Math.floor%"), _f = function(t, e) {
13490
13490
  if (typeof t != "function")
13491
- throw new ga("`fn` is not a function");
13492
- if (typeof e != "number" || e < 0 || e > 4294967295 || ff(e) !== e)
13493
- throw new ga("`length` must be a positive 32-bit integer");
13491
+ throw new _a("`fn` is not a function");
13492
+ if (typeof e != "number" || e < 0 || e > 4294967295 || gf(e) !== e)
13493
+ throw new _a("`length` must be a positive 32-bit integer");
13494
13494
  var n = arguments.length > 2 && !!arguments[2], i = !0, c = !0;
13495
- if ("length" in t && fa) {
13496
- var d = fa(t, "length");
13495
+ if ("length" in t && ga) {
13496
+ var d = ga(t, "length");
13497
13497
  d && !d.configurable && (i = !1), d && !d.writable && (c = !1);
13498
13498
  }
13499
- return (i || c || !n) && (df ? da(
13499
+ return (i || c || !n) && (ff ? fa(
13500
13500
  /** @type {Parameters<define>[0]} */
13501
13501
  t,
13502
13502
  "length",
13503
13503
  e,
13504
13504
  !0,
13505
13505
  !0
13506
- ) : da(
13506
+ ) : fa(
13507
13507
  /** @type {Parameters<define>[0]} */
13508
13508
  t,
13509
13509
  "length",
@@ -13511,7 +13511,7 @@ var lf = Rr, uf = bn, da = sf, df = lf(), fa = ro, ga = Kn, ff = uf("%Math.floor
13511
13511
  )), t;
13512
13512
  };
13513
13513
  (function(o) {
13514
- var t = oo, e = bn, n = gf, i = Kn, c = e("%Function.prototype.apply%"), d = e("%Function.prototype.call%"), f = e("%Reflect.apply%", !0) || t.call(d, c), b = ao(), u = e("%Math.max%");
13514
+ var t = ao, e = bn, n = _f, i = Kn, c = e("%Function.prototype.apply%"), d = e("%Function.prototype.call%"), f = e("%Reflect.apply%", !0) || t.call(d, c), b = ro(), u = e("%Math.max%");
13515
13515
  o.exports = function(E) {
13516
13516
  if (typeof E != "function")
13517
13517
  throw new i("a function is required");
@@ -13526,122 +13526,122 @@ var lf = Rr, uf = bn, da = sf, df = lf(), fa = ro, ga = Kn, ff = uf("%Math.floor
13526
13526
  return f(t, c, arguments);
13527
13527
  };
13528
13528
  b ? b(o.exports, "apply", { value: s }) : o.exports.apply = s;
13529
- })(Nr);
13530
- var qr = Nr.exports, Qr = bn, zr = qr, _f = zr(Qr("String.prototype.indexOf")), jr = function(t, e) {
13531
- var n = Qr(t, !!e);
13532
- return typeof n == "function" && _f(t, ".prototype.") > -1 ? zr(n) : n;
13533
- }, hf = io(), pf = jr, Di = pf("Object.prototype.toString"), Hn = function(t) {
13534
- return hf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Di(t) === "[object Arguments]";
13535
- }, Gr = function(t) {
13536
- return Hn(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Di(t) !== "[object Array]" && Di(t.callee) === "[object Function]";
13537
- }, yf = function() {
13529
+ })(Rr);
13530
+ var Qr = Rr.exports, zr = bn, jr = Qr, hf = jr(zr("String.prototype.indexOf")), Gr = function(t, e) {
13531
+ var n = zr(t, !!e);
13532
+ return typeof n == "function" && hf(t, ".prototype.") > -1 ? jr(n) : n;
13533
+ }, pf = oo(), yf = Gr, ki = yf("Object.prototype.toString"), Hn = function(t) {
13534
+ return pf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : ki(t) === "[object Arguments]";
13535
+ }, $r = function(t) {
13536
+ return Hn(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ki(t) !== "[object Array]" && ki(t.callee) === "[object Function]";
13537
+ }, Af = function() {
13538
13538
  return Hn(arguments);
13539
13539
  }();
13540
- Hn.isLegacyArguments = Gr;
13541
- var Af = yf ? Hn : Gr, Lf = Object.prototype.toString, mf = Function.prototype.toString, bf = /^\s*(?:function)?\*/, $r = io(), gi = Object.getPrototypeOf, Cf = function() {
13542
- if (!$r)
13540
+ Hn.isLegacyArguments = $r;
13541
+ var Lf = Af ? Hn : $r, mf = Object.prototype.toString, bf = Function.prototype.toString, Cf = /^\s*(?:function)?\*/, Kr = oo(), gi = Object.getPrototypeOf, If = function() {
13542
+ if (!Kr)
13543
13543
  return !1;
13544
13544
  try {
13545
13545
  return Function("return function*() {}")();
13546
13546
  } catch {
13547
13547
  }
13548
- }, _i, If = function(t) {
13548
+ }, _i, Ef = function(t) {
13549
13549
  if (typeof t != "function")
13550
13550
  return !1;
13551
- if (bf.test(mf.call(t)))
13551
+ if (Cf.test(bf.call(t)))
13552
13552
  return !0;
13553
- if (!$r) {
13554
- var e = Lf.call(t);
13553
+ if (!Kr) {
13554
+ var e = mf.call(t);
13555
13555
  return e === "[object GeneratorFunction]";
13556
13556
  }
13557
13557
  if (!gi)
13558
13558
  return !1;
13559
13559
  if (typeof _i > "u") {
13560
- var n = Cf();
13560
+ var n = If();
13561
13561
  _i = n ? gi(n) : !1;
13562
13562
  }
13563
13563
  return gi(t) === _i;
13564
- }, Kr = Function.prototype.toString, Ve = typeof Reflect == "object" && Reflect !== null && Reflect.apply, ki, vn;
13564
+ }, Hr = Function.prototype.toString, Ve = typeof Reflect == "object" && Reflect !== null && Reflect.apply, Mi, vn;
13565
13565
  if (typeof Ve == "function" && typeof Object.defineProperty == "function")
13566
13566
  try {
13567
- ki = Object.defineProperty({}, "length", {
13567
+ Mi = Object.defineProperty({}, "length", {
13568
13568
  get: function() {
13569
13569
  throw vn;
13570
13570
  }
13571
13571
  }), vn = {}, Ve(function() {
13572
13572
  throw 42;
13573
- }, null, ki);
13573
+ }, null, Mi);
13574
13574
  } catch (o) {
13575
13575
  o !== vn && (Ve = null);
13576
13576
  }
13577
13577
  else
13578
13578
  Ve = null;
13579
- var Ef = /^\s*class\b/, Mi = function(t) {
13579
+ var wf = /^\s*class\b/, Ti = function(t) {
13580
13580
  try {
13581
- var e = Kr.call(t);
13582
- return Ef.test(e);
13581
+ var e = Hr.call(t);
13582
+ return wf.test(e);
13583
13583
  } catch {
13584
13584
  return !1;
13585
13585
  }
13586
13586
  }, hi = function(t) {
13587
13587
  try {
13588
- return Mi(t) ? !1 : (Kr.call(t), !0);
13588
+ return Ti(t) ? !1 : (Hr.call(t), !0);
13589
13589
  } catch {
13590
13590
  return !1;
13591
13591
  }
13592
- }, Sn = Object.prototype.toString, wf = "[object Object]", Bf = "[object Function]", Ff = "[object GeneratorFunction]", vf = "[object HTMLAllCollection]", Sf = "[object HTML document.all class]", xf = "[object HTMLCollection]", Of = typeof Symbol == "function" && !!Symbol.toStringTag, Pf = !(0 in [,]), Ti = function() {
13592
+ }, Sn = Object.prototype.toString, Bf = "[object Object]", Ff = "[object Function]", vf = "[object GeneratorFunction]", Sf = "[object HTMLAllCollection]", xf = "[object HTML document.all class]", Of = "[object HTMLCollection]", Pf = typeof Symbol == "function" && !!Symbol.toStringTag, Df = !(0 in [,]), Ui = function() {
13593
13593
  return !1;
13594
13594
  };
13595
13595
  if (typeof document == "object") {
13596
- var Df = document.all;
13597
- Sn.call(Df) === Sn.call(document.all) && (Ti = function(t) {
13598
- if ((Pf || !t) && (typeof t > "u" || typeof t == "object"))
13596
+ var kf = document.all;
13597
+ Sn.call(kf) === Sn.call(document.all) && (Ui = function(t) {
13598
+ if ((Df || !t) && (typeof t > "u" || typeof t == "object"))
13599
13599
  try {
13600
13600
  var e = Sn.call(t);
13601
- return (e === vf || e === Sf || e === xf || e === wf) && t("") == null;
13601
+ return (e === Sf || e === xf || e === Of || e === Bf) && t("") == null;
13602
13602
  } catch {
13603
13603
  }
13604
13604
  return !1;
13605
13605
  });
13606
13606
  }
13607
- var kf = Ve ? function(t) {
13608
- if (Ti(t))
13607
+ var Mf = Ve ? function(t) {
13608
+ if (Ui(t))
13609
13609
  return !0;
13610
13610
  if (!t || typeof t != "function" && typeof t != "object")
13611
13611
  return !1;
13612
13612
  try {
13613
- Ve(t, null, ki);
13613
+ Ve(t, null, Mi);
13614
13614
  } catch (e) {
13615
13615
  if (e !== vn)
13616
13616
  return !1;
13617
13617
  }
13618
- return !Mi(t) && hi(t);
13618
+ return !Ti(t) && hi(t);
13619
13619
  } : function(t) {
13620
- if (Ti(t))
13620
+ if (Ui(t))
13621
13621
  return !0;
13622
13622
  if (!t || typeof t != "function" && typeof t != "object")
13623
13623
  return !1;
13624
- if (Of)
13624
+ if (Pf)
13625
13625
  return hi(t);
13626
- if (Mi(t))
13626
+ if (Ti(t))
13627
13627
  return !1;
13628
13628
  var e = Sn.call(t);
13629
- return e !== Bf && e !== Ff && !/^\[object HTML/.test(e) ? !1 : hi(t);
13630
- }, Mf = kf, Tf = Object.prototype.toString, Hr = Object.prototype.hasOwnProperty, Uf = function(t, e, n) {
13629
+ return e !== Ff && e !== vf && !/^\[object HTML/.test(e) ? !1 : hi(t);
13630
+ }, Tf = Mf, Uf = Object.prototype.toString, Vr = Object.prototype.hasOwnProperty, Nf = function(t, e, n) {
13631
13631
  for (var i = 0, c = t.length; i < c; i++)
13632
- Hr.call(t, i) && (n == null ? e(t[i], i, t) : e.call(n, t[i], i, t));
13633
- }, Nf = function(t, e, n) {
13632
+ Vr.call(t, i) && (n == null ? e(t[i], i, t) : e.call(n, t[i], i, t));
13633
+ }, Rf = function(t, e, n) {
13634
13634
  for (var i = 0, c = t.length; i < c; i++)
13635
13635
  n == null ? e(t.charAt(i), i, t) : e.call(n, t.charAt(i), i, t);
13636
- }, Rf = function(t, e, n) {
13637
- for (var i in t)
13638
- Hr.call(t, i) && (n == null ? e(t[i], i, t) : e.call(n, t[i], i, t));
13639
13636
  }, qf = function(t, e, n) {
13640
- if (!Mf(e))
13637
+ for (var i in t)
13638
+ Vr.call(t, i) && (n == null ? e(t[i], i, t) : e.call(n, t[i], i, t));
13639
+ }, Qf = function(t, e, n) {
13640
+ if (!Tf(e))
13641
13641
  throw new TypeError("iterator must be a function");
13642
13642
  var i;
13643
- arguments.length >= 3 && (i = n), Tf.call(t) === "[object Array]" ? Uf(t, e, i) : typeof t == "string" ? Nf(t, e, i) : Rf(t, e, i);
13644
- }, Qf = qf, zf = [
13643
+ arguments.length >= 3 && (i = n), Uf.call(t) === "[object Array]" ? Nf(t, e, i) : typeof t == "string" ? Rf(t, e, i) : qf(t, e, i);
13644
+ }, zf = Qf, jf = [
13645
13645
  "Float32Array",
13646
13646
  "Float64Array",
13647
13647
  "Int8Array",
@@ -13653,31 +13653,31 @@ var kf = Ve ? function(t) {
13653
13653
  "Uint32Array",
13654
13654
  "BigInt64Array",
13655
13655
  "BigUint64Array"
13656
- ], pi = zf, jf = typeof globalThis > "u" ? qe : globalThis, Gf = function() {
13656
+ ], pi = jf, Gf = typeof globalThis > "u" ? qe : globalThis, $f = function() {
13657
13657
  for (var t = [], e = 0; e < pi.length; e++)
13658
- typeof jf[pi[e]] == "function" && (t[t.length] = pi[e]);
13658
+ typeof Gf[pi[e]] == "function" && (t[t.length] = pi[e]);
13659
13659
  return t;
13660
- }, Tn = Qf, $f = Gf, _a = qr, co = jr, xn = ro, Kf = co("Object.prototype.toString"), Vr = io(), ha = typeof globalThis > "u" ? qe : globalThis, Ui = $f(), so = co("String.prototype.slice"), yi = Object.getPrototypeOf, Hf = co("Array.prototype.indexOf", !0) || function(t, e) {
13660
+ }, Tn = zf, Kf = $f, ha = Qr, so = Gr, xn = co, Hf = so("Object.prototype.toString"), Wr = oo(), pa = typeof globalThis > "u" ? qe : globalThis, Ni = Kf(), lo = so("String.prototype.slice"), yi = Object.getPrototypeOf, Vf = so("Array.prototype.indexOf", !0) || function(t, e) {
13661
13661
  for (var n = 0; n < t.length; n += 1)
13662
13662
  if (t[n] === e)
13663
13663
  return n;
13664
13664
  return -1;
13665
13665
  }, Un = { __proto__: null };
13666
- Vr && xn && yi ? Tn(Ui, function(o) {
13667
- var t = new ha[o]();
13666
+ Wr && xn && yi ? Tn(Ni, function(o) {
13667
+ var t = new pa[o]();
13668
13668
  if (Symbol.toStringTag in t) {
13669
13669
  var e = yi(t), n = xn(e, Symbol.toStringTag);
13670
13670
  if (!n) {
13671
13671
  var i = yi(e);
13672
13672
  n = xn(i, Symbol.toStringTag);
13673
13673
  }
13674
- Un["$" + o] = _a(n.get);
13674
+ Un["$" + o] = ha(n.get);
13675
13675
  }
13676
- }) : Tn(Ui, function(o) {
13677
- var t = new ha[o](), e = t.slice || t.set;
13678
- e && (Un["$" + o] = _a(e));
13676
+ }) : Tn(Ni, function(o) {
13677
+ var t = new pa[o](), e = t.slice || t.set;
13678
+ e && (Un["$" + o] = ha(e));
13679
13679
  });
13680
- var Vf = function(t) {
13680
+ var Wf = function(t) {
13681
13681
  var e = !1;
13682
13682
  return Tn(
13683
13683
  // eslint-disable-next-line no-extra-parens
@@ -13688,12 +13688,12 @@ var Vf = function(t) {
13688
13688
  function(n, i) {
13689
13689
  if (!e)
13690
13690
  try {
13691
- "$" + n(t) === i && (e = so(i, 1));
13691
+ "$" + n(t) === i && (e = lo(i, 1));
13692
13692
  } catch {
13693
13693
  }
13694
13694
  }
13695
13695
  ), e;
13696
- }, Wf = function(t) {
13696
+ }, Yf = function(t) {
13697
13697
  var e = !1;
13698
13698
  return Tn(
13699
13699
  // eslint-disable-next-line no-extra-parens
@@ -13704,24 +13704,24 @@ var Vf = function(t) {
13704
13704
  function(n, i) {
13705
13705
  if (!e)
13706
13706
  try {
13707
- n(t), e = so(i, 1);
13707
+ n(t), e = lo(i, 1);
13708
13708
  } catch {
13709
13709
  }
13710
13710
  }
13711
13711
  ), e;
13712
- }, Wr = function(t) {
13712
+ }, Yr = function(t) {
13713
13713
  if (!t || typeof t != "object")
13714
13714
  return !1;
13715
- if (!Vr) {
13716
- var e = so(Kf(t), 8, -1);
13717
- return Hf(Ui, e) > -1 ? e : e !== "Object" ? !1 : Wf(t);
13715
+ if (!Wr) {
13716
+ var e = lo(Hf(t), 8, -1);
13717
+ return Vf(Ni, e) > -1 ? e : e !== "Object" ? !1 : Yf(t);
13718
13718
  }
13719
- return xn ? Vf(t) : null;
13720
- }, Yf = Wr, Zf = function(t) {
13721
- return !!Yf(t);
13719
+ return xn ? Wf(t) : null;
13720
+ }, Zf = Yr, Jf = function(t) {
13721
+ return !!Zf(t);
13722
13722
  };
13723
13723
  (function(o) {
13724
- var t = Af, e = If, n = Wr, i = Zf;
13724
+ var t = Lf, e = Ef, n = Yr, i = Jf;
13725
13725
  function c(rt) {
13726
13726
  return rt.call.bind(rt);
13727
13727
  }
@@ -13903,11 +13903,11 @@ var Vf = function(t) {
13903
13903
  }
13904
13904
  });
13905
13905
  });
13906
- })(kr);
13907
- var Jf = function(t) {
13906
+ })(Mr);
13907
+ var Xf = function(t) {
13908
13908
  return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
13909
- }, Ni = { exports: {} };
13910
- typeof Object.create == "function" ? Ni.exports = function(t, e) {
13909
+ }, Ri = { exports: {} };
13910
+ typeof Object.create == "function" ? Ri.exports = function(t, e) {
13911
13911
  e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
13912
13912
  constructor: {
13913
13913
  value: t,
@@ -13916,7 +13916,7 @@ typeof Object.create == "function" ? Ni.exports = function(t, e) {
13916
13916
  configurable: !0
13917
13917
  }
13918
13918
  }));
13919
- } : Ni.exports = function(t, e) {
13919
+ } : Ri.exports = function(t, e) {
13920
13920
  if (e) {
13921
13921
  t.super_ = e;
13922
13922
  var n = function() {
@@ -13924,7 +13924,7 @@ typeof Object.create == "function" ? Ni.exports = function(t, e) {
13924
13924
  n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
13925
13925
  }
13926
13926
  };
13927
- var Xf = Ni.exports;
13927
+ var t2 = Ri.exports;
13928
13928
  (function(o) {
13929
13929
  var t = Object.getOwnPropertyDescriptors || function(R) {
13930
13930
  for (var G = Object.keys(R), p = {}, a = 0; a < G.length; a++)
@@ -14146,7 +14146,7 @@ var Xf = Ni.exports;
14146
14146
  `) + " " + H.join(`,
14147
14147
  `) + " " + G[1] : G[0] + R + " " + H.join(", ") + " " + G[1];
14148
14148
  }
14149
- o.types = kr;
14149
+ o.types = Mr;
14150
14150
  function L(H) {
14151
14151
  return Array.isArray(H);
14152
14152
  }
@@ -14203,7 +14203,7 @@ var Xf = Ni.exports;
14203
14203
  return H === null || typeof H == "boolean" || typeof H == "number" || typeof H == "string" || typeof H == "symbol" || // ES6 symbol
14204
14204
  typeof H > "u";
14205
14205
  }
14206
- o.isPrimitive = I, o.isBuffer = Jf;
14206
+ o.isPrimitive = I, o.isBuffer = Xf;
14207
14207
  function q(H) {
14208
14208
  return Object.prototype.toString.call(H);
14209
14209
  }
@@ -14234,7 +14234,7 @@ var Xf = Ni.exports;
14234
14234
  }
14235
14235
  o.log = function() {
14236
14236
  console.log("%s - %s", at(), o.format.apply(o, arguments));
14237
- }, o.inherits = Xf, o._extend = function(H, R) {
14237
+ }, o.inherits = t2, o._extend = function(H, R) {
14238
14238
  if (!R || !Q(R))
14239
14239
  return H;
14240
14240
  for (var G = Object.keys(R), p = G.length; p--; )
@@ -14319,26 +14319,26 @@ var Xf = Ni.exports;
14319
14319
  }
14320
14320
  o.callbackify = yt;
14321
14321
  })($n);
14322
- const t2 = $n, Yr = Oi.Readable, pa = eo;
14323
- t2.inherits(Nn, Yr);
14324
- var Zr = Nn;
14322
+ const e2 = $n, Zr = Pi.Readable, ya = no;
14323
+ e2.inherits(Nn, Zr);
14324
+ var Jr = Nn;
14325
14325
  function Nn(o, t) {
14326
- return pa.not.instanceStrict(this, Nn) ? new Nn(o) : (pa.assert.function(o, "Invalid read implementation"), this._read = function() {
14326
+ return ya.not.instanceStrict(this, Nn) ? new Nn(o) : (ya.assert.function(o, "Invalid read implementation"), this._read = function() {
14327
14327
  o();
14328
- }, Yr.call(this, t));
14328
+ }, Zr.call(this, t));
14329
14329
  }
14330
- const e2 = eo, Jr = Zr, n2 = $n;
14331
- n2.inherits(Ri, Jr);
14332
- function Ri(o, t) {
14333
- return e2.not.instanceStrict(this, Ri) ? new Ri(o, t) : Jr.call(this, o, { ...t, objectMode: !0 });
14330
+ const n2 = no, Xr = Jr, i2 = $n;
14331
+ i2.inherits(qi, Xr);
14332
+ function qi(o, t) {
14333
+ return n2.not.instanceStrict(this, qi) ? new qi(o, t) : Xr.call(this, o, { ...t, objectMode: !0 });
14334
14334
  }
14335
14335
  class Vn extends Array {
14336
14336
  constructor(t) {
14337
14337
  let e, n;
14338
- if (!ya(t))
14338
+ if (!Aa(t))
14339
14339
  throw new TypeError("Argument `size` must be a positive integer.");
14340
14340
  return super(t), this.grow = (i) => {
14341
- if (!ya(i))
14341
+ if (!Aa(i))
14342
14342
  throw new TypeError("Argument `by` must be a positive integer.");
14343
14343
  let c;
14344
14344
  const d = t + i;
@@ -14352,25 +14352,25 @@ class Vn extends Array {
14352
14352
  t = d;
14353
14353
  }, new Proxy(this, {
14354
14354
  get(i, c) {
14355
- return qi(c) ? i[Aa(c, t)] : i[c];
14355
+ return Qi(c) ? i[La(c, t)] : i[c];
14356
14356
  },
14357
14357
  set(i, c, d) {
14358
- return qi(c) ? (e = Aa(c, t), i[e] = d, Math.abs(c) >= t ? n = !0 : n = !1) : i[c] = d, !0;
14358
+ return Qi(c) ? (e = La(c, t), i[e] = d, Math.abs(c) >= t ? n = !0 : n = !1) : i[c] = d, !0;
14359
14359
  }
14360
14360
  });
14361
14361
  }
14362
14362
  }
14363
- function ya(o) {
14364
- return qi(o) && o > 0;
14363
+ function Aa(o) {
14364
+ return Qi(o) && o > 0;
14365
14365
  }
14366
- function qi(o) {
14366
+ function Qi(o) {
14367
14367
  try {
14368
14368
  return +o % 1 === 0;
14369
14369
  } catch {
14370
14370
  }
14371
14371
  return !1;
14372
14372
  }
14373
- function Aa(o, t) {
14373
+ function La(o, t) {
14374
14374
  return o === 0 ? 0 : o < 0 ? (t - Math.abs(o)) % t : o % t;
14375
14375
  }
14376
14376
  function Wn() {
@@ -14383,7 +14383,7 @@ Vn.prototype.unshift = Wn;
14383
14383
  function En(o) {
14384
14384
  throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
14385
14385
  }
14386
- var i2 = { exports: {} };
14386
+ var o2 = { exports: {} };
14387
14387
  /*! jsonpath 1.1.1 */
14388
14388
  (function(o, t) {
14389
14389
  (function(e) {
@@ -15553,7 +15553,7 @@ var i2 = { exports: {} };
15553
15553
  k && D.octal && Nt(D, C.StrictOctalLiteral), z = F.createLiteral(mt());
15554
15554
  else if (y === d.Keyword) {
15555
15555
  if (et("function"))
15556
- return _c();
15556
+ return hc();
15557
15557
  et("this") ? (mt(), z = F.createThisExpression()) : Gt(mt());
15558
15558
  } else
15559
15559
  y === d.BooleanLiteral ? (v = mt(), v.value = v.value === "true", z = F.createLiteral(v)) : y === d.NullLiteral ? (v = mt(), v.value = null, z = F.createLiteral(v)) : Ft("/") || Ft("/=") ? (typeof l.tokens < "u" ? z = F.createLiteral(Ct()) : z = F.createLiteral(xt()), qt()) : Gt(mt());
@@ -15742,61 +15742,61 @@ var i2 = { exports: {} };
15742
15742
  var y, v, z;
15743
15743
  return Ht("do"), z = w.inIteration, w.inIteration = !0, y = be(), w.inIteration = z, Ht("while"), St("("), v = Ut(), St(")"), Ft(";") && mt(), F.createDoWhileStatement(y, v);
15744
15744
  }
15745
- function ec() {
15745
+ function nc() {
15746
15746
  var y, v, z;
15747
15747
  return Ht("while"), St("("), y = Ut(), St(")"), z = w.inIteration, w.inIteration = !0, v = be(), w.inIteration = z, F.createWhileStatement(y, v);
15748
15748
  }
15749
- function nc() {
15749
+ function ic() {
15750
15750
  var y, v, z;
15751
15751
  return z = D, y = mt(), v = pe(), F.markEnd(F.createVariableDeclaration(v, y.value), z);
15752
15752
  }
15753
- function ic() {
15753
+ function oc() {
15754
15754
  var y, v, z, Y, pt, Bt, $t;
15755
- return y = v = z = null, Ht("for"), St("("), Ft(";") ? mt() : (et("var") || et("let") ? (w.allowIn = !1, y = nc(), w.allowIn = !0, y.declarations.length === 1 && et("in") && (mt(), Y = y, pt = Ut(), y = null)) : (w.allowIn = !1, y = Ut(), w.allowIn = !0, et("in") && (W(y) || Nt({}, C.InvalidLHSInForIn), mt(), Y = y, pt = Ut(), y = null)), typeof Y > "u" && St(";")), typeof Y > "u" && (Ft(";") || (v = Ut()), St(";"), Ft(")") || (z = Ut())), St(")"), $t = w.inIteration, w.inIteration = !0, Bt = be(), w.inIteration = $t, typeof Y > "u" ? F.createForStatement(y, v, z, Bt) : F.createForInStatement(Y, pt, Bt);
15755
+ return y = v = z = null, Ht("for"), St("("), Ft(";") ? mt() : (et("var") || et("let") ? (w.allowIn = !1, y = ic(), w.allowIn = !0, y.declarations.length === 1 && et("in") && (mt(), Y = y, pt = Ut(), y = null)) : (w.allowIn = !1, y = Ut(), w.allowIn = !0, et("in") && (W(y) || Nt({}, C.InvalidLHSInForIn), mt(), Y = y, pt = Ut(), y = null)), typeof Y > "u" && St(";")), typeof Y > "u" && (Ft(";") || (v = Ut()), St(";"), Ft(")") || (z = Ut())), St(")"), $t = w.inIteration, w.inIteration = !0, Bt = be(), w.inIteration = $t, typeof Y > "u" ? F.createForStatement(y, v, z, Bt) : F.createForInStatement(Y, pt, Bt);
15756
15756
  }
15757
- function oc() {
15757
+ function ac() {
15758
15758
  var y = null, v;
15759
15759
  return Ht("continue"), P.charCodeAt(L) === 59 ? (mt(), w.inIteration || kt({}, C.IllegalContinue), F.createContinueStatement(null)) : ee() ? (w.inIteration || kt({}, C.IllegalContinue), F.createContinueStatement(null)) : (D.type === d.Identifier && (y = Zt(), v = "$" + y.name, Object.prototype.hasOwnProperty.call(w.labelSet, v) || kt({}, C.UnknownLabel, y.name)), _(), y === null && !w.inIteration && kt({}, C.IllegalContinue), F.createContinueStatement(y));
15760
15760
  }
15761
- function ac() {
15761
+ function rc() {
15762
15762
  var y = null, v;
15763
15763
  return Ht("break"), P.charCodeAt(L) === 59 ? (mt(), w.inIteration || w.inSwitch || kt({}, C.IllegalBreak), F.createBreakStatement(null)) : ee() ? (w.inIteration || w.inSwitch || kt({}, C.IllegalBreak), F.createBreakStatement(null)) : (D.type === d.Identifier && (y = Zt(), v = "$" + y.name, Object.prototype.hasOwnProperty.call(w.labelSet, v) || kt({}, C.UnknownLabel, y.name)), _(), y === null && !(w.inIteration || w.inSwitch) && kt({}, C.IllegalBreak), F.createBreakStatement(y));
15764
15764
  }
15765
- function rc() {
15765
+ function cc() {
15766
15766
  var y = null;
15767
15767
  return Ht("return"), w.inFunctionBody || Nt({}, C.IllegalReturn), P.charCodeAt(L) === 32 && q(P.charCodeAt(L + 1)) ? (y = Ut(), _(), F.createReturnStatement(y)) : ee() ? F.createReturnStatement(null) : (Ft(";") || !Ft("}") && D.type !== d.EOF && (y = Ut()), _(), F.createReturnStatement(y));
15768
15768
  }
15769
- function cc() {
15769
+ function sc() {
15770
15770
  var y, v;
15771
15771
  return k && (R(), Nt({}, C.StrictModeWith)), Ht("with"), St("("), y = Ut(), St(")"), v = be(), F.createWithStatement(y, v);
15772
15772
  }
15773
- function sc() {
15773
+ function lc() {
15774
15774
  var y, v = [], z, Y;
15775
15775
  for (Y = D, et("default") ? (mt(), y = null) : (Ht("case"), y = Ut()), St(":"); L < j && !(Ft("}") || et("default") || et("case")); )
15776
15776
  z = be(), v.push(z);
15777
15777
  return F.markEnd(F.createSwitchCase(y, v), Y);
15778
15778
  }
15779
- function lc() {
15779
+ function uc() {
15780
15780
  var y, v, z, Y, pt;
15781
15781
  if (Ht("switch"), St("("), y = Ut(), St(")"), St("{"), v = [], Ft("}"))
15782
15782
  return mt(), F.createSwitchStatement(y, v);
15783
15783
  for (Y = w.inSwitch, w.inSwitch = !0, pt = !1; L < j && !Ft("}"); )
15784
- z = sc(), z.test === null && (pt && kt({}, C.MultipleDefaultsInSwitch), pt = !0), v.push(z);
15784
+ z = lc(), z.test === null && (pt && kt({}, C.MultipleDefaultsInSwitch), pt = !0), v.push(z);
15785
15785
  return w.inSwitch = Y, St("}"), F.createSwitchStatement(y, v);
15786
15786
  }
15787
- function uc() {
15787
+ function dc() {
15788
15788
  var y;
15789
15789
  return Ht("throw"), ee() && kt({}, C.NewlineAfterThrow), y = Ut(), _(), F.createThrowStatement(y);
15790
15790
  }
15791
- function dc() {
15791
+ function fc() {
15792
15792
  var y, v, z;
15793
15793
  return z = D, Ht("catch"), St("("), Ft(")") && Gt(D), y = Zt(), k && X(y.name) && Nt({}, C.StrictCatchVariable), St(")"), v = Wt(), F.markEnd(F.createCatchClause(y, v), z);
15794
15794
  }
15795
- function fc() {
15795
+ function gc() {
15796
15796
  var y, v = [], z = null;
15797
- return Ht("try"), y = Wt(), et("catch") && v.push(dc()), et("finally") && (mt(), z = Wt()), v.length === 0 && !z && kt({}, C.NoCatchOrFinally), F.createTryStatement(y, [], v, z);
15797
+ return Ht("try"), y = Wt(), et("catch") && v.push(fc()), et("finally") && (mt(), z = Wt()), v.length === 0 && !z && kt({}, C.NoCatchOrFinally), F.createTryStatement(y, [], v, z);
15798
15798
  }
15799
- function gc() {
15799
+ function _c() {
15800
15800
  return Ht("debugger"), _(), F.createDebuggerStatement();
15801
15801
  }
15802
15802
  function be() {
@@ -15813,33 +15813,33 @@ var i2 = { exports: {} };
15813
15813
  if (y === d.Keyword)
15814
15814
  switch (D.value) {
15815
15815
  case "break":
15816
- return F.markEnd(ac(), pt);
15816
+ return F.markEnd(rc(), pt);
15817
15817
  case "continue":
15818
- return F.markEnd(oc(), pt);
15818
+ return F.markEnd(ac(), pt);
15819
15819
  case "debugger":
15820
- return F.markEnd(gc(), pt);
15820
+ return F.markEnd(_c(), pt);
15821
15821
  case "do":
15822
15822
  return F.markEnd(je(), pt);
15823
15823
  case "for":
15824
- return F.markEnd(ic(), pt);
15824
+ return F.markEnd(oc(), pt);
15825
15825
  case "function":
15826
- return F.markEnd(fo(), pt);
15826
+ return F.markEnd(go(), pt);
15827
15827
  case "if":
15828
15828
  return F.markEnd(Ie(), pt);
15829
15829
  case "return":
15830
- return F.markEnd(rc(), pt);
15830
+ return F.markEnd(cc(), pt);
15831
15831
  case "switch":
15832
- return F.markEnd(lc(), pt);
15833
- case "throw":
15834
15832
  return F.markEnd(uc(), pt);
15833
+ case "throw":
15834
+ return F.markEnd(dc(), pt);
15835
15835
  case "try":
15836
- return F.markEnd(fc(), pt);
15836
+ return F.markEnd(gc(), pt);
15837
15837
  case "var":
15838
15838
  return F.markEnd(me(), pt);
15839
15839
  case "while":
15840
- return F.markEnd(ec(), pt);
15840
+ return F.markEnd(nc(), pt);
15841
15841
  case "with":
15842
- return F.markEnd(cc(), pt);
15842
+ return F.markEnd(sc(), pt);
15843
15843
  }
15844
15844
  return v = Ut(), v.type === u.Identifier && Ft(":") ? (mt(), Y = "$" + v.name, Object.prototype.hasOwnProperty.call(w.labelSet, Y) && kt({}, C.Redeclaration, "Label", v.name), w.labelSet[Y] = !0, z = be(), delete w.labelSet[Y], F.markEnd(F.createLabeledStatement(v, z), pt)) : (_(), F.markEnd(F.createExpressionStatement(v), pt));
15845
15845
  }
@@ -15851,7 +15851,7 @@ var i2 = { exports: {} };
15851
15851
  v.push(y);
15852
15852
  return St("}"), w.labelSet = Bt, w.inIteration = $t, w.inSwitch = Jt, w.inFunctionBody = se, F.markEnd(F.createBlockStatement(v), re);
15853
15853
  }
15854
- function uo(y) {
15854
+ function fo(y) {
15855
15855
  var v, z = [], Y, pt, Bt, $t, Jt;
15856
15856
  if (St("("), !Ft(")"))
15857
15857
  for (Bt = {}; L < j && (Y = D, v = Zt(), $t = "$" + Y.value, k ? (X(Y.value) && (pt = Y, Jt = C.StrictParamName), Object.prototype.hasOwnProperty.call(Bt, $t) && (pt = Y, Jt = C.StrictParamDupe)) : y || (X(Y.value) ? (y = Y, Jt = C.StrictParamName) : at(Y.value) ? (y = Y, Jt = C.StrictReservedWord) : Object.prototype.hasOwnProperty.call(Bt, $t) && (y = Y, Jt = C.StrictParamDupe)), z.push(v), Bt[$t] = !0, !Ft(")")); )
@@ -15863,13 +15863,13 @@ var i2 = { exports: {} };
15863
15863
  message: Jt
15864
15864
  };
15865
15865
  }
15866
- function fo() {
15866
+ function go() {
15867
15867
  var y, v = [], z, Y, pt, Bt, $t, Jt, se, re;
15868
- return re = D, Ht("function"), Y = D, y = Zt(), k ? X(Y.value) && Nt(Y, C.StrictFunctionName) : X(Y.value) ? ($t = Y, Jt = C.StrictFunctionName) : at(Y.value) && ($t = Y, Jt = C.StrictReservedWord), Bt = uo($t), v = Bt.params, pt = Bt.stricted, $t = Bt.firstRestricted, Bt.message && (Jt = Bt.message), se = k, z = Yn(), k && $t && kt($t, Jt), k && pt && Nt(pt, Jt), k = se, F.markEnd(F.createFunctionDeclaration(y, v, [], z), re);
15868
+ return re = D, Ht("function"), Y = D, y = Zt(), k ? X(Y.value) && Nt(Y, C.StrictFunctionName) : X(Y.value) ? ($t = Y, Jt = C.StrictFunctionName) : at(Y.value) && ($t = Y, Jt = C.StrictReservedWord), Bt = fo($t), v = Bt.params, pt = Bt.stricted, $t = Bt.firstRestricted, Bt.message && (Jt = Bt.message), se = k, z = Yn(), k && $t && kt($t, Jt), k && pt && Nt(pt, Jt), k = se, F.markEnd(F.createFunctionDeclaration(y, v, [], z), re);
15869
15869
  }
15870
- function _c() {
15870
+ function hc() {
15871
15871
  var y, v = null, z, Y, pt, Bt, $t = [], Jt, se, re;
15872
- return re = D, Ht("function"), Ft("(") || (y = D, v = Zt(), k ? X(y.value) && Nt(y, C.StrictFunctionName) : X(y.value) ? (Y = y, pt = C.StrictFunctionName) : at(y.value) && (Y = y, pt = C.StrictReservedWord)), Bt = uo(Y), $t = Bt.params, z = Bt.stricted, Y = Bt.firstRestricted, Bt.message && (pt = Bt.message), se = k, Jt = Yn(), k && Y && kt(Y, pt), k && z && Nt(z, pt), k = se, F.markEnd(F.createFunctionExpression(v, $t, [], Jt), re);
15872
+ return re = D, Ht("function"), Ft("(") || (y = D, v = Zt(), k ? X(y.value) && Nt(y, C.StrictFunctionName) : X(y.value) ? (Y = y, pt = C.StrictFunctionName) : at(y.value) && (Y = y, pt = C.StrictReservedWord)), Bt = fo(Y), $t = Bt.params, z = Bt.stricted, Y = Bt.firstRestricted, Bt.message && (pt = Bt.message), se = k, Jt = Yn(), k && Y && kt(Y, pt), k && z && Nt(z, pt), k = se, F.markEnd(F.createFunctionExpression(v, $t, [], Jt), re);
15873
15873
  }
15874
15874
  function on() {
15875
15875
  if (D.type === d.Keyword)
@@ -15878,25 +15878,25 @@ var i2 = { exports: {} };
15878
15878
  case "let":
15879
15879
  return xe(D.value);
15880
15880
  case "function":
15881
- return fo();
15881
+ return go();
15882
15882
  default:
15883
15883
  return be();
15884
15884
  }
15885
15885
  if (D.type !== d.EOF)
15886
15886
  return be();
15887
15887
  }
15888
- function hc() {
15888
+ function pc() {
15889
15889
  for (var y, v = [], z, Y, pt; L < j && (z = D, !(z.type !== d.StringLiteral || (y = on(), v.push(y), y.expression.type !== u.Literal))); )
15890
15890
  Y = P.slice(z.start + 1, z.end - 1), Y === "use strict" ? (k = !0, pt && Nt(pt, C.StrictOctalLiteral)) : !pt && z.octal && (pt = z);
15891
15891
  for (; L < j && (y = on(), !(typeof y > "u")); )
15892
15892
  v.push(y);
15893
15893
  return v;
15894
15894
  }
15895
- function pc() {
15895
+ function yc() {
15896
15896
  var y, v;
15897
- return R(), qt(), v = D, k = !1, y = hc(), F.markEnd(F.createProgram(y), v);
15897
+ return R(), qt(), v = D, k = !1, y = pc(), F.markEnd(F.createProgram(y), v);
15898
15898
  }
15899
- function go() {
15899
+ function _o() {
15900
15900
  var y, v, z, Y = [];
15901
15901
  for (y = 0; y < l.tokens.length; ++y)
15902
15902
  v = l.tokens[y], z = {
@@ -15905,7 +15905,7 @@ var i2 = { exports: {} };
15905
15905
  }, l.range && (z.range = v.range), l.loc && (z.loc = v.loc), Y.push(z);
15906
15906
  l.tokens = Y;
15907
15907
  }
15908
- function yc(y, v) {
15908
+ function Ac(y, v) {
15909
15909
  var z, Y, pt;
15910
15910
  z = String, typeof y != "string" && !(y instanceof String) && (y = z(y)), F = m, P = y, L = 0, M = P.length > 0 ? 1 : 0, O = 0, j = P.length, D = null, w = {
15911
15911
  allowIn: !0,
@@ -15928,7 +15928,7 @@ var i2 = { exports: {} };
15928
15928
  } else
15929
15929
  throw Bt;
15930
15930
  }
15931
- go(), pt = l.tokens, typeof l.comments < "u" && (pt.comments = l.comments), typeof l.errors < "u" && (pt.errors = l.errors);
15931
+ _o(), pt = l.tokens, typeof l.comments < "u" && (pt.comments = l.comments), typeof l.errors < "u" && (pt.errors = l.errors);
15932
15932
  } catch (Bt) {
15933
15933
  throw Bt;
15934
15934
  } finally {
@@ -15936,7 +15936,7 @@ var i2 = { exports: {} };
15936
15936
  }
15937
15937
  return pt;
15938
15938
  }
15939
- function Ac(y, v) {
15939
+ function Lc(y, v) {
15940
15940
  var z, Y;
15941
15941
  Y = String, typeof y != "string" && !(y instanceof String) && (y = Y(y)), F = m, P = y, L = 0, M = P.length > 0 ? 1 : 0, O = 0, j = P.length, D = null, w = {
15942
15942
  allowIn: !0,
@@ -15947,7 +15947,7 @@ var i2 = { exports: {} };
15947
15947
  lastCommentStart: -1
15948
15948
  }, l = {}, typeof v < "u" && (l.range = typeof v.range == "boolean" && v.range, l.loc = typeof v.loc == "boolean" && v.loc, l.attachComment = typeof v.attachComment == "boolean" && v.attachComment, l.loc && v.source !== null && v.source !== void 0 && (l.source = Y(v.source)), typeof v.tokens == "boolean" && v.tokens && (l.tokens = []), typeof v.comment == "boolean" && v.comment && (l.comments = []), typeof v.tolerant == "boolean" && v.tolerant && (l.errors = []), l.attachComment && (l.range = !0, l.comments = [], l.bottomRightStack = [], l.trailingComments = [], l.leadingComments = []));
15949
15949
  try {
15950
- z = pc(), typeof l.comments < "u" && (z.comments = l.comments), typeof l.tokens < "u" && (go(), z.tokens = l.tokens), typeof l.errors < "u" && (z.errors = l.errors);
15950
+ z = yc(), typeof l.comments < "u" && (z.comments = l.comments), typeof l.tokens < "u" && (_o(), z.tokens = l.tokens), typeof l.errors < "u" && (z.errors = l.errors);
15951
15951
  } catch (pt) {
15952
15952
  throw pt;
15953
15953
  } finally {
@@ -15955,7 +15955,7 @@ var i2 = { exports: {} };
15955
15955
  }
15956
15956
  return z;
15957
15957
  }
15958
- c.version = "1.2.2", c.tokenize = yc, c.parse = Ac, c.Syntax = function() {
15958
+ c.version = "1.2.2", c.tokenize = Ac, c.parse = Lc, c.Syntax = function() {
15959
15959
  var y, v = {};
15960
15960
  typeof Object.create == "function" && (v = /* @__PURE__ */ Object.create(null));
15961
15961
  for (y in u)
@@ -17551,15 +17551,15 @@ Expecting ` + _t.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : ct =
17551
17551
  n.exports = e("./lib/index");
17552
17552
  }, { "./lib/index": 5 }] }, {}, ["jsonpath"])("jsonpath");
17553
17553
  });
17554
- })(i2);
17555
- Dr.EventEmitter;
17556
- const o2 = eo, Xr = Zr, a2 = $n;
17557
- a2.inherits(Qi, Xr);
17558
- function Qi(o, t) {
17559
- return o2.not.instanceStrict(this, Qi) ? new Qi(o, t) : Xr.call(this, o, { ...t, encoding: "utf8" });
17560
- }
17561
- var lo = { exports: {} };
17562
- lo.exports;
17554
+ })(o2);
17555
+ kr.EventEmitter;
17556
+ const a2 = no, tc = Jr, r2 = $n;
17557
+ r2.inherits(zi, tc);
17558
+ function zi(o, t) {
17559
+ return a2.not.instanceStrict(this, zi) ? new zi(o, t) : tc.call(this, o, { ...t, encoding: "utf8" });
17560
+ }
17561
+ var uo = { exports: {} };
17562
+ uo.exports;
17563
17563
  (function(o) {
17564
17564
  (function(t) {
17565
17565
  o !== null ? o.exports = e : t.tryer = e;
@@ -17636,9 +17636,9 @@ lo.exports;
17636
17636
  setTimeout(M, Math.abs(O));
17637
17637
  }
17638
17638
  })(qe);
17639
- })(lo);
17640
- lo.exports;
17641
- var r2 = { exports: {} };
17639
+ })(uo);
17640
+ uo.exports;
17641
+ var c2 = { exports: {} };
17642
17642
  /**
17643
17643
  * [js-sha3]{@link https://github.com/emn178/js-sha3}
17644
17644
  *
@@ -17902,29 +17902,34 @@ var r2 = { exports: {} };
17902
17902
  for (ut = 0; ut < Z.length; ++ut)
17903
17903
  i[Z[ut]] = q[Z[ut]];
17904
17904
  })();
17905
- })(r2);
17906
- typeof process < "u" && process.versions != null && process.versions.node != null;
17907
- const c2 = (
17905
+ })(c2);
17906
+ const s2 = typeof process < "u" && process.versions != null && process.versions.node != null, Ai = (
17908
17907
  // @ts-expect-error webpack check is done like this
17909
17908
  typeof __webpack_require__ < "u"
17910
- ), tc = new mc(), s2 = async (o) => {
17911
- console.log("1");
17912
- const { input: t, wasmFilePath: e, zKeyFilePath: n, chainId: i } = o.payload.data;
17913
- console.log("2", { input: t, wasmFilePath: e, zKeyFilePath: n }), o.metadata, console.log("3");
17914
- let c = e;
17915
- console.log("4");
17916
- let d = n;
17917
- console.log({ isWebpack: c2 }), console.log({ wasmFilePath: e }), console.log("5"), console.log("6"), console.log({ wasmFullFilePath: c });
17909
+ ), ec = new bc(), l2 = async (o) => {
17910
+ const { input: t, wasmFilePath: e, zKeyFilePath: n, chainId: i } = o.payload.data, {
17911
+ hostLocation: { origin: c },
17912
+ constants: {
17913
+ isDevelopment: d,
17914
+ chains: { chainIds: f }
17915
+ }
17916
+ } = o.metadata;
17917
+ let b = e, u = n;
17918
+ if (console.log({ isWebpack: Ai }), s2) {
17919
+ d && !Ai ? (b = `test/circuits/${e}`, u = `test/circuits/${n}`) : Ai && (b = `libs/hardhat/test/circuits/${e}`, u = `libs/hardhat/test/circuits/${n}`);
17920
+ const s = require("path");
17921
+ b = s.resolve(b), u = s.resolve(u);
17922
+ } else
17923
+ i === f.localhost && (b = `${c}/${e}`, u = `${c}/${n}`);
17918
17924
  try {
17919
- console.log("7");
17920
- const { proof: f, publicSignals: b } = await Ku(t, c, d), u = await Hu(f, b), s = JSON.parse(`[${u}]`);
17921
- tc.postMessageToMainThread({ zkCallData: s, proof: f, publicSignals: b });
17922
- } catch (f) {
17923
- console.log(f);
17925
+ const { proof: s, publicSignals: C } = await Hu(t, b, u), E = await Vu(s, C), m = JSON.parse(`[${E}]`);
17926
+ ec.postMessageToMainThread({ zkCallData: m, proof: s, publicSignals: C });
17927
+ } catch (s) {
17928
+ console.log(s);
17924
17929
  }
17925
17930
  };
17926
- tc.attachWorkerSideOnMessage(s2);
17931
+ ec.attachWorkerSideOnMessage(l2);
17927
17932
  export {
17928
- tc as default,
17929
- s2 as onWorkerMessage
17933
+ ec as default,
17934
+ l2 as onWorkerMessage
17930
17935
  };