@springmicro/auth 0.7.20 → 0.7.22

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.
@@ -0,0 +1,1752 @@
1
+ import { i as D, t as ce, q as h, B as u, o as He, s as B, z as ue, D as ke, v as Ne, j as Se, d as T, n as P, f as j, g as L, e as te } from "./Web3Auth-CYZ2tXRd.js";
2
+ function z(e) {
3
+ if (!Number.isSafeInteger(e) || e < 0)
4
+ throw new Error(`Wrong positive integer: ${e}`);
5
+ }
6
+ function fe(e, ...t) {
7
+ if (!(e instanceof Uint8Array))
8
+ throw new Error("Expected Uint8Array");
9
+ if (t.length > 0 && !t.includes(e.length))
10
+ throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
11
+ }
12
+ function rn(e) {
13
+ if (typeof e != "function" || typeof e.create != "function")
14
+ throw new Error("Hash should be wrapped by utils.wrapConstructor");
15
+ z(e.outputLen), z(e.blockLen);
16
+ }
17
+ function H(e, t = !0) {
18
+ if (e.destroyed)
19
+ throw new Error("Hash instance has been destroyed");
20
+ if (t && e.finished)
21
+ throw new Error("Hash#digest() has already been called");
22
+ }
23
+ function le(e, t) {
24
+ fe(e);
25
+ const n = t.outputLen;
26
+ if (e.length < n)
27
+ throw new Error(`digestInto() expects output buffer of length at least ${n}`);
28
+ }
29
+ const C = /* @__PURE__ */ BigInt(2 ** 32 - 1), ne = /* @__PURE__ */ BigInt(32);
30
+ function Ve(e, t = !1) {
31
+ return t ? { h: Number(e & C), l: Number(e >> ne & C) } : { h: Number(e >> ne & C) | 0, l: Number(e & C) | 0 };
32
+ }
33
+ function Me(e, t = !1) {
34
+ let n = new Uint32Array(e.length), s = new Uint32Array(e.length);
35
+ for (let i = 0; i < e.length; i++) {
36
+ const { h: o, l: r } = Ve(e[i], t);
37
+ [n[i], s[i]] = [o, r];
38
+ }
39
+ return [n, s];
40
+ }
41
+ const _e = (e, t, n) => e << n | t >>> 32 - n, Re = (e, t, n) => t << n | e >>> 32 - n, De = (e, t, n) => t << n - 32 | e >>> 64 - n, Ke = (e, t, n) => e << n - 32 | t >>> 64 - n, V = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
42
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
43
+ const he = (e) => e instanceof Uint8Array, We = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)), M = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), m = (e, t) => e << 32 - t | e >>> t, Xe = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
44
+ if (!Xe)
45
+ throw new Error("Non little-endian hardware is not supported");
46
+ function Ye(e) {
47
+ if (typeof e != "string")
48
+ throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
49
+ return new Uint8Array(new TextEncoder().encode(e));
50
+ }
51
+ function K(e) {
52
+ if (typeof e == "string" && (e = Ye(e)), !he(e))
53
+ throw new Error(`expected Uint8Array, got ${typeof e}`);
54
+ return e;
55
+ }
56
+ function on(...e) {
57
+ const t = new Uint8Array(e.reduce((s, i) => s + i.length, 0));
58
+ let n = 0;
59
+ return e.forEach((s) => {
60
+ if (!he(s))
61
+ throw new Error("Uint8Array expected");
62
+ t.set(s, n), n += s.length;
63
+ }), t;
64
+ }
65
+ class de {
66
+ // Safe version that clones internal state
67
+ clone() {
68
+ return this._cloneInto();
69
+ }
70
+ }
71
+ function be(e) {
72
+ const t = (s) => e().update(K(s)).digest(), n = e();
73
+ return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
74
+ }
75
+ function an(e = 32) {
76
+ if (V && typeof V.getRandomValues == "function")
77
+ return V.getRandomValues(new Uint8Array(e));
78
+ throw new Error("crypto.getRandomValues must be defined");
79
+ }
80
+ const [pe, me, xe] = [[], [], []], Je = /* @__PURE__ */ BigInt(0), O = /* @__PURE__ */ BigInt(1), Qe = /* @__PURE__ */ BigInt(2), Ze = /* @__PURE__ */ BigInt(7), qe = /* @__PURE__ */ BigInt(256), et = /* @__PURE__ */ BigInt(113);
81
+ for (let e = 0, t = O, n = 1, s = 0; e < 24; e++) {
82
+ [n, s] = [s, (2 * n + 3 * s) % 5], pe.push(2 * (5 * s + n)), me.push((e + 1) * (e + 2) / 2 % 64);
83
+ let i = Je;
84
+ for (let o = 0; o < 7; o++)
85
+ t = (t << O ^ (t >> Ze) * et) % qe, t & Qe && (i ^= O << (O << /* @__PURE__ */ BigInt(o)) - O);
86
+ xe.push(i);
87
+ }
88
+ const [tt, nt] = /* @__PURE__ */ Me(xe, !0), se = (e, t, n) => n > 32 ? De(e, t, n) : _e(e, t, n), ie = (e, t, n) => n > 32 ? Ke(e, t, n) : Re(e, t, n);
89
+ function st(e, t = 24) {
90
+ const n = new Uint32Array(10);
91
+ for (let s = 24 - t; s < 24; s++) {
92
+ for (let r = 0; r < 10; r++)
93
+ n[r] = e[r] ^ e[r + 10] ^ e[r + 20] ^ e[r + 30] ^ e[r + 40];
94
+ for (let r = 0; r < 10; r += 2) {
95
+ const a = (r + 8) % 10, c = (r + 2) % 10, l = n[c], d = n[c + 1], f = se(l, d, 1) ^ n[a], p = ie(l, d, 1) ^ n[a + 1];
96
+ for (let b = 0; b < 50; b += 10)
97
+ e[r + b] ^= f, e[r + b + 1] ^= p;
98
+ }
99
+ let i = e[2], o = e[3];
100
+ for (let r = 0; r < 24; r++) {
101
+ const a = me[r], c = se(i, o, a), l = ie(i, o, a), d = pe[r];
102
+ i = e[d], o = e[d + 1], e[d] = c, e[d + 1] = l;
103
+ }
104
+ for (let r = 0; r < 50; r += 10) {
105
+ for (let a = 0; a < 10; a++)
106
+ n[a] = e[r + a];
107
+ for (let a = 0; a < 10; a++)
108
+ e[r + a] ^= ~n[(a + 2) % 10] & n[(a + 4) % 10];
109
+ }
110
+ e[0] ^= tt[s], e[1] ^= nt[s];
111
+ }
112
+ n.fill(0);
113
+ }
114
+ class W extends de {
115
+ // NOTE: we accept arguments in bytes instead of bits here.
116
+ constructor(t, n, s, i = !1, o = 24) {
117
+ if (super(), this.blockLen = t, this.suffix = n, this.outputLen = s, this.enableXOF = i, this.rounds = o, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, z(s), 0 >= this.blockLen || this.blockLen >= 200)
118
+ throw new Error("Sha3 supports only keccak-f1600 function");
119
+ this.state = new Uint8Array(200), this.state32 = We(this.state);
120
+ }
121
+ keccak() {
122
+ st(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
123
+ }
124
+ update(t) {
125
+ H(this);
126
+ const { blockLen: n, state: s } = this;
127
+ t = K(t);
128
+ const i = t.length;
129
+ for (let o = 0; o < i; ) {
130
+ const r = Math.min(n - this.pos, i - o);
131
+ for (let a = 0; a < r; a++)
132
+ s[this.pos++] ^= t[o++];
133
+ this.pos === n && this.keccak();
134
+ }
135
+ return this;
136
+ }
137
+ finish() {
138
+ if (this.finished)
139
+ return;
140
+ this.finished = !0;
141
+ const { state: t, suffix: n, pos: s, blockLen: i } = this;
142
+ t[s] ^= n, n & 128 && s === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
143
+ }
144
+ writeInto(t) {
145
+ H(this, !1), fe(t), this.finish();
146
+ const n = this.state, { blockLen: s } = this;
147
+ for (let i = 0, o = t.length; i < o; ) {
148
+ this.posOut >= s && this.keccak();
149
+ const r = Math.min(s - this.posOut, o - i);
150
+ t.set(n.subarray(this.posOut, this.posOut + r), i), this.posOut += r, i += r;
151
+ }
152
+ return t;
153
+ }
154
+ xofInto(t) {
155
+ if (!this.enableXOF)
156
+ throw new Error("XOF is not possible for this instance");
157
+ return this.writeInto(t);
158
+ }
159
+ xof(t) {
160
+ return z(t), this.xofInto(new Uint8Array(t));
161
+ }
162
+ digestInto(t) {
163
+ if (le(t, this), this.finished)
164
+ throw new Error("digest() was already called");
165
+ return this.writeInto(t), this.destroy(), t;
166
+ }
167
+ digest() {
168
+ return this.digestInto(new Uint8Array(this.outputLen));
169
+ }
170
+ destroy() {
171
+ this.destroyed = !0, this.state.fill(0);
172
+ }
173
+ _cloneInto(t) {
174
+ const { blockLen: n, suffix: s, outputLen: i, rounds: o, enableXOF: r } = this;
175
+ return t || (t = new W(n, s, i, r, o)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = o, t.suffix = s, t.outputLen = i, t.enableXOF = r, t.destroyed = this.destroyed, t;
176
+ }
177
+ }
178
+ const it = (e, t, n) => be(() => new W(t, e, n)), rt = /* @__PURE__ */ it(1, 136, 256 / 8);
179
+ function ot(e, t) {
180
+ const n = t || "hex", s = rt(D(e, { strict: !1 }) ? ce(e) : e);
181
+ return n === "bytes" ? s : h(s);
182
+ }
183
+ class F extends u {
184
+ constructor({ address: t }) {
185
+ super(`Address "${t}" is invalid.`, {
186
+ metaMessages: [
187
+ "- Address must be a hex value of 20 bytes (40 hex characters).",
188
+ "- Address must match its checksum counterpart."
189
+ ]
190
+ }), Object.defineProperty(this, "name", {
191
+ enumerable: !0,
192
+ configurable: !0,
193
+ writable: !0,
194
+ value: "InvalidAddressError"
195
+ });
196
+ }
197
+ }
198
+ class ge extends Map {
199
+ constructor(t) {
200
+ super(), Object.defineProperty(this, "maxSize", {
201
+ enumerable: !0,
202
+ configurable: !0,
203
+ writable: !0,
204
+ value: void 0
205
+ }), this.maxSize = t;
206
+ }
207
+ set(t, n) {
208
+ return super.set(t, n), this.maxSize && this.size > this.maxSize && this.delete(this.keys().next().value), this;
209
+ }
210
+ }
211
+ const _ = /* @__PURE__ */ new ge(8192);
212
+ function ye(e, t) {
213
+ if (_.has(`${e}.${t}`))
214
+ return _.get(`${e}.${t}`);
215
+ const n = t ? `${t}${e.toLowerCase()}` : e.substring(2).toLowerCase(), s = ot(He(n), "bytes"), i = (t ? n.substring(`${t}0x`.length) : n).split("");
216
+ for (let r = 0; r < 40; r += 2)
217
+ s[r >> 1] >> 4 >= 8 && i[r] && (i[r] = i[r].toUpperCase()), (s[r >> 1] & 15) >= 8 && i[r + 1] && (i[r + 1] = i[r + 1].toUpperCase());
218
+ const o = `0x${i.join("")}`;
219
+ return _.set(`${e}.${t}`, o), o;
220
+ }
221
+ function cn(e, t) {
222
+ if (!G(e, { strict: !1 }))
223
+ throw new F({ address: e });
224
+ return ye(e, t);
225
+ }
226
+ const at = /^0x[a-fA-F0-9]{40}$/, R = /* @__PURE__ */ new ge(8192);
227
+ function G(e, t) {
228
+ const { strict: n = !0 } = t ?? {};
229
+ if (R.has(e))
230
+ return R.get(e);
231
+ const s = at.test(e) ? e.toLowerCase() === e ? !0 : n ? ye(e) === e : !0 : !1;
232
+ return R.set(e, s), s;
233
+ }
234
+ function un(e) {
235
+ return typeof e[0] == "string" ? k(e) : ct(e);
236
+ }
237
+ function ct(e) {
238
+ let t = 0;
239
+ for (const i of e)
240
+ t += i.length;
241
+ const n = new Uint8Array(t);
242
+ let s = 0;
243
+ for (const i of e)
244
+ n.set(i, s), s += i.length;
245
+ return n;
246
+ }
247
+ function k(e) {
248
+ return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
249
+ }
250
+ function ut(e, t, n, { strict: s } = {}) {
251
+ return D(e, { strict: !1 }) ? lt(e, t, n, {
252
+ strict: s
253
+ }) : ft(e, t, n, {
254
+ strict: s
255
+ });
256
+ }
257
+ function we(e, t) {
258
+ if (typeof t == "number" && t > 0 && t > B(e) - 1)
259
+ throw new ue({
260
+ offset: t,
261
+ position: "start",
262
+ size: B(e)
263
+ });
264
+ }
265
+ function Pe(e, t, n) {
266
+ if (typeof t == "number" && typeof n == "number" && B(e) !== n - t)
267
+ throw new ue({
268
+ offset: n,
269
+ position: "end",
270
+ size: B(e)
271
+ });
272
+ }
273
+ function ft(e, t, n, { strict: s } = {}) {
274
+ we(e, t);
275
+ const i = e.slice(t, n);
276
+ return s && Pe(i, t, n), i;
277
+ }
278
+ function lt(e, t, n, { strict: s } = {}) {
279
+ we(e, t);
280
+ const i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
281
+ return s && Pe(i, t, n), i;
282
+ }
283
+ class re extends u {
284
+ constructor({ offset: t }) {
285
+ super(`Offset \`${t}\` cannot be negative.`), Object.defineProperty(this, "name", {
286
+ enumerable: !0,
287
+ configurable: !0,
288
+ writable: !0,
289
+ value: "NegativeOffsetError"
290
+ });
291
+ }
292
+ }
293
+ class ht extends u {
294
+ constructor({ length: t, position: n }) {
295
+ super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`), Object.defineProperty(this, "name", {
296
+ enumerable: !0,
297
+ configurable: !0,
298
+ writable: !0,
299
+ value: "PositionOutOfBoundsError"
300
+ });
301
+ }
302
+ }
303
+ class dt extends u {
304
+ constructor({ count: t, limit: n }) {
305
+ super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`), Object.defineProperty(this, "name", {
306
+ enumerable: !0,
307
+ configurable: !0,
308
+ writable: !0,
309
+ value: "RecursiveReadLimitExceededError"
310
+ });
311
+ }
312
+ }
313
+ const bt = {
314
+ bytes: new Uint8Array(),
315
+ dataView: new DataView(new ArrayBuffer(0)),
316
+ position: 0,
317
+ positionReadCount: /* @__PURE__ */ new Map(),
318
+ recursiveReadCount: 0,
319
+ recursiveReadLimit: Number.POSITIVE_INFINITY,
320
+ assertReadLimit() {
321
+ if (this.recursiveReadCount >= this.recursiveReadLimit)
322
+ throw new dt({
323
+ count: this.recursiveReadCount + 1,
324
+ limit: this.recursiveReadLimit
325
+ });
326
+ },
327
+ assertPosition(e) {
328
+ if (e < 0 || e > this.bytes.length - 1)
329
+ throw new ht({
330
+ length: this.bytes.length,
331
+ position: e
332
+ });
333
+ },
334
+ decrementPosition(e) {
335
+ if (e < 0)
336
+ throw new re({ offset: e });
337
+ const t = this.position - e;
338
+ this.assertPosition(t), this.position = t;
339
+ },
340
+ getReadCount(e) {
341
+ return this.positionReadCount.get(e || this.position) || 0;
342
+ },
343
+ incrementPosition(e) {
344
+ if (e < 0)
345
+ throw new re({ offset: e });
346
+ const t = this.position + e;
347
+ this.assertPosition(t), this.position = t;
348
+ },
349
+ inspectByte(e) {
350
+ const t = e ?? this.position;
351
+ return this.assertPosition(t), this.bytes[t];
352
+ },
353
+ inspectBytes(e, t) {
354
+ const n = t ?? this.position;
355
+ return this.assertPosition(n + e - 1), this.bytes.subarray(n, n + e);
356
+ },
357
+ inspectUint8(e) {
358
+ const t = e ?? this.position;
359
+ return this.assertPosition(t), this.bytes[t];
360
+ },
361
+ inspectUint16(e) {
362
+ const t = e ?? this.position;
363
+ return this.assertPosition(t + 1), this.dataView.getUint16(t);
364
+ },
365
+ inspectUint24(e) {
366
+ const t = e ?? this.position;
367
+ return this.assertPosition(t + 2), (this.dataView.getUint16(t) << 8) + this.dataView.getUint8(t + 2);
368
+ },
369
+ inspectUint32(e) {
370
+ const t = e ?? this.position;
371
+ return this.assertPosition(t + 3), this.dataView.getUint32(t);
372
+ },
373
+ pushByte(e) {
374
+ this.assertPosition(this.position), this.bytes[this.position] = e, this.position++;
375
+ },
376
+ pushBytes(e) {
377
+ this.assertPosition(this.position + e.length - 1), this.bytes.set(e, this.position), this.position += e.length;
378
+ },
379
+ pushUint8(e) {
380
+ this.assertPosition(this.position), this.bytes[this.position] = e, this.position++;
381
+ },
382
+ pushUint16(e) {
383
+ this.assertPosition(this.position + 1), this.dataView.setUint16(this.position, e), this.position += 2;
384
+ },
385
+ pushUint24(e) {
386
+ this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, e >> 8), this.dataView.setUint8(this.position + 2, e & 255), this.position += 3;
387
+ },
388
+ pushUint32(e) {
389
+ this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, e), this.position += 4;
390
+ },
391
+ readByte() {
392
+ this.assertReadLimit(), this._touch();
393
+ const e = this.inspectByte();
394
+ return this.position++, e;
395
+ },
396
+ readBytes(e, t) {
397
+ this.assertReadLimit(), this._touch();
398
+ const n = this.inspectBytes(e);
399
+ return this.position += t ?? e, n;
400
+ },
401
+ readUint8() {
402
+ this.assertReadLimit(), this._touch();
403
+ const e = this.inspectUint8();
404
+ return this.position += 1, e;
405
+ },
406
+ readUint16() {
407
+ this.assertReadLimit(), this._touch();
408
+ const e = this.inspectUint16();
409
+ return this.position += 2, e;
410
+ },
411
+ readUint24() {
412
+ this.assertReadLimit(), this._touch();
413
+ const e = this.inspectUint24();
414
+ return this.position += 3, e;
415
+ },
416
+ readUint32() {
417
+ this.assertReadLimit(), this._touch();
418
+ const e = this.inspectUint32();
419
+ return this.position += 4, e;
420
+ },
421
+ get remaining() {
422
+ return this.bytes.length - this.position;
423
+ },
424
+ setPosition(e) {
425
+ const t = this.position;
426
+ return this.assertPosition(e), this.position = e, () => this.position = t;
427
+ },
428
+ _touch() {
429
+ if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
430
+ return;
431
+ const e = this.getReadCount();
432
+ this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
433
+ }
434
+ };
435
+ function Ie(e, { recursiveReadLimit: t = 8192 } = {}) {
436
+ const n = Object.create(bt);
437
+ return n.bytes = e, n.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
438
+ }
439
+ function I(e, t = "wei") {
440
+ return ke(e, Ne[t]);
441
+ }
442
+ function ve(e) {
443
+ const t = Object.entries(e).map(([s, i]) => i === void 0 || i === !1 ? null : [s, i]).filter(Boolean), n = t.reduce((s, [i]) => Math.max(s, i.length), 0);
444
+ return t.map(([s, i]) => ` ${`${s}:`.padEnd(n + 1)} ${i}`).join(`
445
+ `);
446
+ }
447
+ class fn extends u {
448
+ constructor() {
449
+ super([
450
+ "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
451
+ "Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
452
+ ].join(`
453
+ `)), Object.defineProperty(this, "name", {
454
+ enumerable: !0,
455
+ configurable: !0,
456
+ writable: !0,
457
+ value: "FeeConflictError"
458
+ });
459
+ }
460
+ }
461
+ class pt extends u {
462
+ constructor({ v: t }) {
463
+ super(`Invalid \`v\` value "${t}". Expected 27 or 28.`), Object.defineProperty(this, "name", {
464
+ enumerable: !0,
465
+ configurable: !0,
466
+ writable: !0,
467
+ value: "InvalidLegacyVError"
468
+ });
469
+ }
470
+ }
471
+ class mt extends u {
472
+ constructor({ transaction: t }) {
473
+ super("Cannot infer a transaction type from provided transaction.", {
474
+ metaMessages: [
475
+ "Provided Transaction:",
476
+ "{",
477
+ ve(t),
478
+ "}",
479
+ "",
480
+ "To infer the type, either provide:",
481
+ "- a `type` to the Transaction, or",
482
+ "- an EIP-1559 Transaction with `maxFeePerGas`, or",
483
+ "- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
484
+ "- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
485
+ "- a Legacy Transaction with `gasPrice`"
486
+ ]
487
+ }), Object.defineProperty(this, "name", {
488
+ enumerable: !0,
489
+ configurable: !0,
490
+ writable: !0,
491
+ value: "InvalidSerializableTransactionError"
492
+ });
493
+ }
494
+ }
495
+ class ln extends u {
496
+ constructor({ serializedType: t }) {
497
+ super(`Serialized transaction type "${t}" is invalid.`), Object.defineProperty(this, "name", {
498
+ enumerable: !0,
499
+ configurable: !0,
500
+ writable: !0,
501
+ value: "InvalidSerializedTransactionType"
502
+ }), Object.defineProperty(this, "serializedType", {
503
+ enumerable: !0,
504
+ configurable: !0,
505
+ writable: !0,
506
+ value: void 0
507
+ }), this.serializedType = t;
508
+ }
509
+ }
510
+ class hn extends u {
511
+ constructor({ attributes: t, serializedTransaction: n, type: s }) {
512
+ const i = Object.entries(t).map(([o, r]) => typeof r > "u" ? o : void 0).filter(Boolean);
513
+ super(`Invalid serialized transaction of type "${s}" was provided.`, {
514
+ metaMessages: [
515
+ `Serialized Transaction: "${n}"`,
516
+ i.length > 0 ? `Missing Attributes: ${i.join(", ")}` : ""
517
+ ].filter(Boolean)
518
+ }), Object.defineProperty(this, "name", {
519
+ enumerable: !0,
520
+ configurable: !0,
521
+ writable: !0,
522
+ value: "InvalidSerializedTransactionError"
523
+ }), Object.defineProperty(this, "serializedTransaction", {
524
+ enumerable: !0,
525
+ configurable: !0,
526
+ writable: !0,
527
+ value: void 0
528
+ }), Object.defineProperty(this, "type", {
529
+ enumerable: !0,
530
+ configurable: !0,
531
+ writable: !0,
532
+ value: void 0
533
+ }), this.serializedTransaction = n, this.type = s;
534
+ }
535
+ }
536
+ class xt extends u {
537
+ constructor({ storageKey: t }) {
538
+ super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`), Object.defineProperty(this, "name", {
539
+ enumerable: !0,
540
+ configurable: !0,
541
+ writable: !0,
542
+ value: "InvalidStorageKeySizeError"
543
+ });
544
+ }
545
+ }
546
+ class dn extends u {
547
+ constructor(t, { account: n, docsPath: s, chain: i, data: o, gas: r, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: d, to: f, value: p }) {
548
+ var y;
549
+ const b = ve({
550
+ chain: i && `${i == null ? void 0 : i.name} (id: ${i == null ? void 0 : i.id})`,
551
+ from: n == null ? void 0 : n.address,
552
+ to: f,
553
+ value: typeof p < "u" && `${Se(p)} ${((y = i == null ? void 0 : i.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
554
+ data: o,
555
+ gas: r,
556
+ gasPrice: typeof a < "u" && `${I(a)} gwei`,
557
+ maxFeePerGas: typeof c < "u" && `${I(c)} gwei`,
558
+ maxPriorityFeePerGas: typeof l < "u" && `${I(l)} gwei`,
559
+ nonce: d
560
+ });
561
+ super(t.shortMessage, {
562
+ cause: t,
563
+ docsPath: s,
564
+ metaMessages: [
565
+ ...t.metaMessages ? [...t.metaMessages, " "] : [],
566
+ "Request Arguments:",
567
+ b
568
+ ].filter(Boolean)
569
+ }), Object.defineProperty(this, "cause", {
570
+ enumerable: !0,
571
+ configurable: !0,
572
+ writable: !0,
573
+ value: void 0
574
+ }), Object.defineProperty(this, "name", {
575
+ enumerable: !0,
576
+ configurable: !0,
577
+ writable: !0,
578
+ value: "TransactionExecutionError"
579
+ }), this.cause = t;
580
+ }
581
+ }
582
+ class bn extends u {
583
+ constructor({ blockHash: t, blockNumber: n, blockTag: s, hash: i, index: o }) {
584
+ let r = "Transaction";
585
+ s && o !== void 0 && (r = `Transaction at block time "${s}" at index "${o}"`), t && o !== void 0 && (r = `Transaction at block hash "${t}" at index "${o}"`), n && o !== void 0 && (r = `Transaction at block number "${n}" at index "${o}"`), i && (r = `Transaction with hash "${i}"`), super(`${r} could not be found.`), Object.defineProperty(this, "name", {
586
+ enumerable: !0,
587
+ configurable: !0,
588
+ writable: !0,
589
+ value: "TransactionNotFoundError"
590
+ });
591
+ }
592
+ }
593
+ class pn extends u {
594
+ constructor({ hash: t }) {
595
+ super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`), Object.defineProperty(this, "name", {
596
+ enumerable: !0,
597
+ configurable: !0,
598
+ writable: !0,
599
+ value: "TransactionReceiptNotFoundError"
600
+ });
601
+ }
602
+ }
603
+ class mn extends u {
604
+ constructor({ hash: t }) {
605
+ super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`), Object.defineProperty(this, "name", {
606
+ enumerable: !0,
607
+ configurable: !0,
608
+ writable: !0,
609
+ value: "WaitForTransactionReceiptTimeoutError"
610
+ });
611
+ }
612
+ }
613
+ class Te extends u {
614
+ constructor({ cause: t, message: n } = {}) {
615
+ var i;
616
+ const s = (i = n == null ? void 0 : n.replace("execution reverted: ", "")) == null ? void 0 : i.replace("execution reverted", "");
617
+ super(`Execution reverted ${s ? `with reason: ${s}` : "for an unknown reason"}.`, {
618
+ cause: t
619
+ }), Object.defineProperty(this, "name", {
620
+ enumerable: !0,
621
+ configurable: !0,
622
+ writable: !0,
623
+ value: "ExecutionRevertedError"
624
+ });
625
+ }
626
+ }
627
+ Object.defineProperty(Te, "code", {
628
+ enumerable: !0,
629
+ configurable: !0,
630
+ writable: !0,
631
+ value: 3
632
+ });
633
+ Object.defineProperty(Te, "nodeMessage", {
634
+ enumerable: !0,
635
+ configurable: !0,
636
+ writable: !0,
637
+ value: /execution reverted/
638
+ });
639
+ class N extends u {
640
+ constructor({ cause: t, maxFeePerGas: n } = {}) {
641
+ super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${I(n)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
642
+ cause: t
643
+ }), Object.defineProperty(this, "name", {
644
+ enumerable: !0,
645
+ configurable: !0,
646
+ writable: !0,
647
+ value: "FeeCapTooHigh"
648
+ });
649
+ }
650
+ }
651
+ Object.defineProperty(N, "nodeMessage", {
652
+ enumerable: !0,
653
+ configurable: !0,
654
+ writable: !0,
655
+ value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
656
+ });
657
+ class gt extends u {
658
+ constructor({ cause: t, maxFeePerGas: n } = {}) {
659
+ super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${I(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
660
+ cause: t
661
+ }), Object.defineProperty(this, "name", {
662
+ enumerable: !0,
663
+ configurable: !0,
664
+ writable: !0,
665
+ value: "FeeCapTooLow"
666
+ });
667
+ }
668
+ }
669
+ Object.defineProperty(gt, "nodeMessage", {
670
+ enumerable: !0,
671
+ configurable: !0,
672
+ writable: !0,
673
+ value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
674
+ });
675
+ class yt extends u {
676
+ constructor({ cause: t, nonce: n } = {}) {
677
+ super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is higher than the next one expected.`, { cause: t }), Object.defineProperty(this, "name", {
678
+ enumerable: !0,
679
+ configurable: !0,
680
+ writable: !0,
681
+ value: "NonceTooHighError"
682
+ });
683
+ }
684
+ }
685
+ Object.defineProperty(yt, "nodeMessage", {
686
+ enumerable: !0,
687
+ configurable: !0,
688
+ writable: !0,
689
+ value: /nonce too high/
690
+ });
691
+ class wt extends u {
692
+ constructor({ cause: t, nonce: n } = {}) {
693
+ super([
694
+ `Nonce provided for the transaction ${n ? `(${n}) ` : ""}is lower than the current nonce of the account.`,
695
+ "Try increasing the nonce or find the latest nonce with `getTransactionCount`."
696
+ ].join(`
697
+ `), { cause: t }), Object.defineProperty(this, "name", {
698
+ enumerable: !0,
699
+ configurable: !0,
700
+ writable: !0,
701
+ value: "NonceTooLowError"
702
+ });
703
+ }
704
+ }
705
+ Object.defineProperty(wt, "nodeMessage", {
706
+ enumerable: !0,
707
+ configurable: !0,
708
+ writable: !0,
709
+ value: /nonce too low|transaction already imported|already known/
710
+ });
711
+ class Pt extends u {
712
+ constructor({ cause: t, nonce: n } = {}) {
713
+ super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t }), Object.defineProperty(this, "name", {
714
+ enumerable: !0,
715
+ configurable: !0,
716
+ writable: !0,
717
+ value: "NonceMaxValueError"
718
+ });
719
+ }
720
+ }
721
+ Object.defineProperty(Pt, "nodeMessage", {
722
+ enumerable: !0,
723
+ configurable: !0,
724
+ writable: !0,
725
+ value: /nonce has max value/
726
+ });
727
+ class It extends u {
728
+ constructor({ cause: t } = {}) {
729
+ super([
730
+ "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
731
+ ].join(`
732
+ `), {
733
+ cause: t,
734
+ metaMessages: [
735
+ "This error could arise when the account does not have enough funds to:",
736
+ " - pay for the total gas fee,",
737
+ " - pay for the value to send.",
738
+ " ",
739
+ "The cost of the transaction is calculated as `gas * gas fee + value`, where:",
740
+ " - `gas` is the amount of gas needed for transaction to execute,",
741
+ " - `gas fee` is the gas fee,",
742
+ " - `value` is the amount of ether to send to the recipient."
743
+ ]
744
+ }), Object.defineProperty(this, "name", {
745
+ enumerable: !0,
746
+ configurable: !0,
747
+ writable: !0,
748
+ value: "InsufficientFundsError"
749
+ });
750
+ }
751
+ }
752
+ Object.defineProperty(It, "nodeMessage", {
753
+ enumerable: !0,
754
+ configurable: !0,
755
+ writable: !0,
756
+ value: /insufficient funds/
757
+ });
758
+ class vt extends u {
759
+ constructor({ cause: t, gas: n } = {}) {
760
+ super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
761
+ cause: t
762
+ }), Object.defineProperty(this, "name", {
763
+ enumerable: !0,
764
+ configurable: !0,
765
+ writable: !0,
766
+ value: "IntrinsicGasTooHighError"
767
+ });
768
+ }
769
+ }
770
+ Object.defineProperty(vt, "nodeMessage", {
771
+ enumerable: !0,
772
+ configurable: !0,
773
+ writable: !0,
774
+ value: /intrinsic gas too high|gas limit reached/
775
+ });
776
+ class Tt extends u {
777
+ constructor({ cause: t, gas: n } = {}) {
778
+ super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
779
+ cause: t
780
+ }), Object.defineProperty(this, "name", {
781
+ enumerable: !0,
782
+ configurable: !0,
783
+ writable: !0,
784
+ value: "IntrinsicGasTooLowError"
785
+ });
786
+ }
787
+ }
788
+ Object.defineProperty(Tt, "nodeMessage", {
789
+ enumerable: !0,
790
+ configurable: !0,
791
+ writable: !0,
792
+ value: /intrinsic gas too low/
793
+ });
794
+ class Et extends u {
795
+ constructor({ cause: t }) {
796
+ super("The transaction type is not supported for this chain.", {
797
+ cause: t
798
+ }), Object.defineProperty(this, "name", {
799
+ enumerable: !0,
800
+ configurable: !0,
801
+ writable: !0,
802
+ value: "TransactionTypeNotSupportedError"
803
+ });
804
+ }
805
+ }
806
+ Object.defineProperty(Et, "nodeMessage", {
807
+ enumerable: !0,
808
+ configurable: !0,
809
+ writable: !0,
810
+ value: /transaction type not valid/
811
+ });
812
+ class Ee extends u {
813
+ constructor({ cause: t, maxPriorityFeePerGas: n, maxFeePerGas: s } = {}) {
814
+ super([
815
+ `The provided tip (\`maxPriorityFeePerGas\`${n ? ` = ${I(n)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s ? ` = ${I(s)} gwei` : ""}).`
816
+ ].join(`
817
+ `), {
818
+ cause: t
819
+ }), Object.defineProperty(this, "name", {
820
+ enumerable: !0,
821
+ configurable: !0,
822
+ writable: !0,
823
+ value: "TipAboveFeeCapError"
824
+ });
825
+ }
826
+ }
827
+ Object.defineProperty(Ee, "nodeMessage", {
828
+ enumerable: !0,
829
+ configurable: !0,
830
+ writable: !0,
831
+ value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
832
+ });
833
+ class xn extends u {
834
+ constructor({ cause: t }) {
835
+ super(`An error occurred while executing: ${t == null ? void 0 : t.shortMessage}`, {
836
+ cause: t
837
+ }), Object.defineProperty(this, "name", {
838
+ enumerable: !0,
839
+ configurable: !0,
840
+ writable: !0,
841
+ value: "UnknownNodeError"
842
+ });
843
+ }
844
+ }
845
+ function S(e, t) {
846
+ return ({ exclude: n, format: s }) => ({
847
+ exclude: n,
848
+ format: (i) => {
849
+ const o = t(i);
850
+ if (n)
851
+ for (const r of n)
852
+ delete o[r];
853
+ return {
854
+ ...o,
855
+ ...s(i)
856
+ };
857
+ },
858
+ type: e
859
+ });
860
+ }
861
+ const Bt = {
862
+ legacy: "0x0",
863
+ eip2930: "0x1",
864
+ eip1559: "0x2",
865
+ eip4844: "0x3"
866
+ };
867
+ function Ut(e) {
868
+ const t = {};
869
+ return typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((n) => T(n)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = P(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = P(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = P(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = P(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = P(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = P(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = Bt[e.type]), typeof e.value < "u" && (t.value = P(e.value)), t;
870
+ }
871
+ const gn = /* @__PURE__ */ S("transactionRequest", Ut), Be = {
872
+ "0x0": "legacy",
873
+ "0x1": "eip2930",
874
+ "0x2": "eip1559",
875
+ "0x3": "eip4844"
876
+ };
877
+ function Ue(e) {
878
+ const t = {
879
+ ...e,
880
+ blockHash: e.blockHash ? e.blockHash : null,
881
+ blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
882
+ chainId: e.chainId ? j(e.chainId) : void 0,
883
+ gas: e.gas ? BigInt(e.gas) : void 0,
884
+ gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
885
+ maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
886
+ maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
887
+ maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
888
+ nonce: e.nonce ? j(e.nonce) : void 0,
889
+ to: e.to ? e.to : null,
890
+ transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
891
+ type: e.type ? Be[e.type] : void 0,
892
+ typeHex: e.type ? e.type : void 0,
893
+ value: e.value ? BigInt(e.value) : void 0,
894
+ v: e.v ? BigInt(e.v) : void 0
895
+ };
896
+ return t.yParity = (() => {
897
+ if (e.yParity)
898
+ return Number(e.yParity);
899
+ if (typeof t.v == "bigint") {
900
+ if (t.v === 0n || t.v === 27n)
901
+ return 0;
902
+ if (t.v === 1n || t.v === 28n)
903
+ return 1;
904
+ if (t.v >= 35n)
905
+ return t.v % 2n === 0n ? 1 : 0;
906
+ }
907
+ })(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
908
+ }
909
+ const yn = /* @__PURE__ */ S("transaction", Ue);
910
+ function $t(e) {
911
+ var n;
912
+ const t = (n = e.transactions) == null ? void 0 : n.map((s) => typeof s == "string" ? s : Ue(s));
913
+ return {
914
+ ...e,
915
+ baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
916
+ blobGasUsed: e.blobGasUsed ? BigInt(e.blobGasUsed) : void 0,
917
+ difficulty: e.difficulty ? BigInt(e.difficulty) : void 0,
918
+ excessBlobGas: e.excessBlobGas ? BigInt(e.excessBlobGas) : void 0,
919
+ gasLimit: e.gasLimit ? BigInt(e.gasLimit) : void 0,
920
+ gasUsed: e.gasUsed ? BigInt(e.gasUsed) : void 0,
921
+ hash: e.hash ? e.hash : null,
922
+ logsBloom: e.logsBloom ? e.logsBloom : null,
923
+ nonce: e.nonce ? e.nonce : null,
924
+ number: e.number ? BigInt(e.number) : null,
925
+ size: e.size ? BigInt(e.size) : void 0,
926
+ timestamp: e.timestamp ? BigInt(e.timestamp) : void 0,
927
+ transactions: t,
928
+ totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
929
+ };
930
+ }
931
+ const wn = /* @__PURE__ */ S("block", $t);
932
+ function $e(e) {
933
+ const { kzg: t } = e, n = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), s = typeof e.blobs[0] == "string" ? e.blobs.map((o) => L(o)) : e.blobs, i = [];
934
+ for (const o of s)
935
+ i.push(Uint8Array.from(t.blobToKzgCommitment(o)));
936
+ return n === "bytes" ? i : i.map((o) => T(o));
937
+ }
938
+ function Oe(e) {
939
+ const { kzg: t } = e, n = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), s = typeof e.blobs[0] == "string" ? e.blobs.map((r) => L(r)) : e.blobs, i = typeof e.commitments[0] == "string" ? e.commitments.map((r) => L(r)) : e.commitments, o = [];
940
+ for (let r = 0; r < s.length; r++) {
941
+ const a = s[r], c = i[r];
942
+ o.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
943
+ }
944
+ return n === "bytes" ? o : o.map((r) => T(r));
945
+ }
946
+ function Ot(e, t, n, s) {
947
+ if (typeof e.setBigUint64 == "function")
948
+ return e.setBigUint64(t, n, s);
949
+ const i = BigInt(32), o = BigInt(4294967295), r = Number(n >> i & o), a = Number(n & o), c = s ? 4 : 0, l = s ? 0 : 4;
950
+ e.setUint32(t + c, r, s), e.setUint32(t + l, a, s);
951
+ }
952
+ class Lt extends de {
953
+ constructor(t, n, s, i) {
954
+ super(), this.blockLen = t, this.outputLen = n, this.padOffset = s, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = M(this.buffer);
955
+ }
956
+ update(t) {
957
+ H(this);
958
+ const { view: n, buffer: s, blockLen: i } = this;
959
+ t = K(t);
960
+ const o = t.length;
961
+ for (let r = 0; r < o; ) {
962
+ const a = Math.min(i - this.pos, o - r);
963
+ if (a === i) {
964
+ const c = M(t);
965
+ for (; i <= o - r; r += i)
966
+ this.process(c, r);
967
+ continue;
968
+ }
969
+ s.set(t.subarray(r, r + a), this.pos), this.pos += a, r += a, this.pos === i && (this.process(n, 0), this.pos = 0);
970
+ }
971
+ return this.length += t.length, this.roundClean(), this;
972
+ }
973
+ digestInto(t) {
974
+ H(this), le(t, this), this.finished = !0;
975
+ const { buffer: n, view: s, blockLen: i, isLE: o } = this;
976
+ let { pos: r } = this;
977
+ n[r++] = 128, this.buffer.subarray(r).fill(0), this.padOffset > i - r && (this.process(s, 0), r = 0);
978
+ for (let f = r; f < i; f++)
979
+ n[f] = 0;
980
+ Ot(s, i - 8, BigInt(this.length * 8), o), this.process(s, 0);
981
+ const a = M(t), c = this.outputLen;
982
+ if (c % 4)
983
+ throw new Error("_sha2: outputLen should be aligned to 32bit");
984
+ const l = c / 4, d = this.get();
985
+ if (l > d.length)
986
+ throw new Error("_sha2: outputLen bigger than state");
987
+ for (let f = 0; f < l; f++)
988
+ a.setUint32(4 * f, d[f], o);
989
+ }
990
+ digest() {
991
+ const { buffer: t, outputLen: n } = this;
992
+ this.digestInto(t);
993
+ const s = t.slice(0, n);
994
+ return this.destroy(), s;
995
+ }
996
+ _cloneInto(t) {
997
+ t || (t = new this.constructor()), t.set(...this.get());
998
+ const { blockLen: n, buffer: s, length: i, finished: o, destroyed: r, pos: a } = this;
999
+ return t.length = i, t.pos = a, t.finished = o, t.destroyed = r, i % n && t.buffer.set(s), t;
1000
+ }
1001
+ }
1002
+ const Ft = (e, t, n) => e & t ^ ~e & n, Gt = (e, t, n) => e & t ^ e & n ^ t & n, At = /* @__PURE__ */ new Uint32Array([
1003
+ 1116352408,
1004
+ 1899447441,
1005
+ 3049323471,
1006
+ 3921009573,
1007
+ 961987163,
1008
+ 1508970993,
1009
+ 2453635748,
1010
+ 2870763221,
1011
+ 3624381080,
1012
+ 310598401,
1013
+ 607225278,
1014
+ 1426881987,
1015
+ 1925078388,
1016
+ 2162078206,
1017
+ 2614888103,
1018
+ 3248222580,
1019
+ 3835390401,
1020
+ 4022224774,
1021
+ 264347078,
1022
+ 604807628,
1023
+ 770255983,
1024
+ 1249150122,
1025
+ 1555081692,
1026
+ 1996064986,
1027
+ 2554220882,
1028
+ 2821834349,
1029
+ 2952996808,
1030
+ 3210313671,
1031
+ 3336571891,
1032
+ 3584528711,
1033
+ 113926993,
1034
+ 338241895,
1035
+ 666307205,
1036
+ 773529912,
1037
+ 1294757372,
1038
+ 1396182291,
1039
+ 1695183700,
1040
+ 1986661051,
1041
+ 2177026350,
1042
+ 2456956037,
1043
+ 2730485921,
1044
+ 2820302411,
1045
+ 3259730800,
1046
+ 3345764771,
1047
+ 3516065817,
1048
+ 3600352804,
1049
+ 4094571909,
1050
+ 275423344,
1051
+ 430227734,
1052
+ 506948616,
1053
+ 659060556,
1054
+ 883997877,
1055
+ 958139571,
1056
+ 1322822218,
1057
+ 1537002063,
1058
+ 1747873779,
1059
+ 1955562222,
1060
+ 2024104815,
1061
+ 2227730452,
1062
+ 2361852424,
1063
+ 2428436474,
1064
+ 2756734187,
1065
+ 3204031479,
1066
+ 3329325298
1067
+ ]), x = /* @__PURE__ */ new Uint32Array([
1068
+ 1779033703,
1069
+ 3144134277,
1070
+ 1013904242,
1071
+ 2773480762,
1072
+ 1359893119,
1073
+ 2600822924,
1074
+ 528734635,
1075
+ 1541459225
1076
+ ]), g = /* @__PURE__ */ new Uint32Array(64);
1077
+ class Ct extends Lt {
1078
+ constructor() {
1079
+ super(64, 32, 8, !1), this.A = x[0] | 0, this.B = x[1] | 0, this.C = x[2] | 0, this.D = x[3] | 0, this.E = x[4] | 0, this.F = x[5] | 0, this.G = x[6] | 0, this.H = x[7] | 0;
1080
+ }
1081
+ get() {
1082
+ const { A: t, B: n, C: s, D: i, E: o, F: r, G: a, H: c } = this;
1083
+ return [t, n, s, i, o, r, a, c];
1084
+ }
1085
+ // prettier-ignore
1086
+ set(t, n, s, i, o, r, a, c) {
1087
+ this.A = t | 0, this.B = n | 0, this.C = s | 0, this.D = i | 0, this.E = o | 0, this.F = r | 0, this.G = a | 0, this.H = c | 0;
1088
+ }
1089
+ process(t, n) {
1090
+ for (let f = 0; f < 16; f++, n += 4)
1091
+ g[f] = t.getUint32(n, !1);
1092
+ for (let f = 16; f < 64; f++) {
1093
+ const p = g[f - 15], b = g[f - 2], y = m(p, 7) ^ m(p, 18) ^ p >>> 3, E = m(b, 17) ^ m(b, 19) ^ b >>> 10;
1094
+ g[f] = E + g[f - 7] + y + g[f - 16] | 0;
1095
+ }
1096
+ let { A: s, B: i, C: o, D: r, E: a, F: c, G: l, H: d } = this;
1097
+ for (let f = 0; f < 64; f++) {
1098
+ const p = m(a, 6) ^ m(a, 11) ^ m(a, 25), b = d + p + Ft(a, c, l) + At[f] + g[f] | 0, E = (m(s, 2) ^ m(s, 13) ^ m(s, 22)) + Gt(s, i, o) | 0;
1099
+ d = l, l = c, c = a, a = r + b | 0, r = o, o = i, i = s, s = b + E | 0;
1100
+ }
1101
+ s = s + this.A | 0, i = i + this.B | 0, o = o + this.C | 0, r = r + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, d = d + this.H | 0, this.set(s, i, o, r, a, c, l, d);
1102
+ }
1103
+ roundClean() {
1104
+ g.fill(0);
1105
+ }
1106
+ destroy() {
1107
+ this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
1108
+ }
1109
+ }
1110
+ const jt = /* @__PURE__ */ be(() => new Ct());
1111
+ function zt(e, t) {
1112
+ const n = t || "hex", s = jt(D(e, { strict: !1 }) ? ce(e) : e);
1113
+ return n === "bytes" ? s : h(s);
1114
+ }
1115
+ function Ht(e) {
1116
+ const { commitment: t, version: n = 1 } = e, s = e.to ?? (typeof t == "string" ? "hex" : "bytes"), i = zt(t, "bytes");
1117
+ return i.set([n], 0), s === "bytes" ? i : T(i);
1118
+ }
1119
+ function kt(e) {
1120
+ const { commitments: t, version: n } = e, s = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), i = [];
1121
+ for (const o of t)
1122
+ i.push(Ht({
1123
+ commitment: o,
1124
+ to: s,
1125
+ version: n
1126
+ }));
1127
+ return i;
1128
+ }
1129
+ const oe = 6, Le = 32, X = 4096, Fe = Le * X, ae = Fe * oe - // terminator byte (0x80).
1130
+ 1 - // zero byte (0x00) appended to each field element.
1131
+ 1 * X * oe, Ge = 1;
1132
+ class Nt extends u {
1133
+ constructor({ maxSize: t, size: n }) {
1134
+ super("Blob size is too large.", {
1135
+ metaMessages: [`Max: ${t} bytes`, `Given: ${n} bytes`]
1136
+ }), Object.defineProperty(this, "name", {
1137
+ enumerable: !0,
1138
+ configurable: !0,
1139
+ writable: !0,
1140
+ value: "BlobSizeTooLargeError"
1141
+ });
1142
+ }
1143
+ }
1144
+ class Ae extends u {
1145
+ constructor() {
1146
+ super("Blob data must not be empty."), Object.defineProperty(this, "name", {
1147
+ enumerable: !0,
1148
+ configurable: !0,
1149
+ writable: !0,
1150
+ value: "EmptyBlobError"
1151
+ });
1152
+ }
1153
+ }
1154
+ class St extends u {
1155
+ constructor({ hash: t, size: n }) {
1156
+ super(`Versioned hash "${t}" size is invalid.`, {
1157
+ metaMessages: ["Expected: 32", `Received: ${n}`]
1158
+ }), Object.defineProperty(this, "name", {
1159
+ enumerable: !0,
1160
+ configurable: !0,
1161
+ writable: !0,
1162
+ value: "InvalidVersionedHashSizeError"
1163
+ });
1164
+ }
1165
+ }
1166
+ class Vt extends u {
1167
+ constructor({ hash: t, version: n }) {
1168
+ super(`Versioned hash "${t}" version is invalid.`, {
1169
+ metaMessages: [
1170
+ `Expected: ${Ge}`,
1171
+ `Received: ${n}`
1172
+ ]
1173
+ }), Object.defineProperty(this, "name", {
1174
+ enumerable: !0,
1175
+ configurable: !0,
1176
+ writable: !0,
1177
+ value: "InvalidVersionedHashVersionError"
1178
+ });
1179
+ }
1180
+ }
1181
+ function Mt(e) {
1182
+ const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), n = typeof e.data == "string" ? L(e.data) : e.data, s = B(n);
1183
+ if (!s)
1184
+ throw new Ae();
1185
+ if (s > ae)
1186
+ throw new Nt({
1187
+ maxSize: ae,
1188
+ size: s
1189
+ });
1190
+ const i = [];
1191
+ let o = !0, r = 0;
1192
+ for (; o; ) {
1193
+ const a = Ie(new Uint8Array(Fe));
1194
+ let c = 0;
1195
+ for (; c < X; ) {
1196
+ const l = n.slice(r, r + (Le - 1));
1197
+ if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
1198
+ a.pushByte(128), o = !1;
1199
+ break;
1200
+ }
1201
+ c++, r += 31;
1202
+ }
1203
+ i.push(a);
1204
+ }
1205
+ return t === "bytes" ? i.map((a) => a.bytes) : i.map((a) => T(a.bytes));
1206
+ }
1207
+ function _t(e) {
1208
+ const { data: t, kzg: n, to: s } = e, i = e.blobs ?? Mt({ data: t, to: s }), o = e.commitments ?? $e({ blobs: i, kzg: n, to: s }), r = e.proofs ?? Oe({ blobs: i, commitments: o, kzg: n, to: s }), a = [];
1209
+ for (let c = 0; c < i.length; c++)
1210
+ a.push({
1211
+ blob: i[c],
1212
+ commitment: o[c],
1213
+ proof: r[c]
1214
+ });
1215
+ return a;
1216
+ }
1217
+ function Rt(e) {
1218
+ if (e.type)
1219
+ return e.type;
1220
+ if (typeof e.blobs < "u" || typeof e.blobVersionedHashes < "u" || typeof e.maxFeePerBlobGas < "u" || typeof e.sidecars < "u")
1221
+ return "eip4844";
1222
+ if (typeof e.maxFeePerGas < "u" || typeof e.maxPriorityFeePerGas < "u")
1223
+ return "eip1559";
1224
+ if (typeof e.gasPrice < "u")
1225
+ return typeof e.accessList < "u" ? "eip2930" : "legacy";
1226
+ throw new mt({ transaction: e });
1227
+ }
1228
+ function Dt(e, { args: t, eventName: n } = {}) {
1229
+ return {
1230
+ ...e,
1231
+ blockHash: e.blockHash ? e.blockHash : null,
1232
+ blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
1233
+ logIndex: e.logIndex ? Number(e.logIndex) : null,
1234
+ transactionHash: e.transactionHash ? e.transactionHash : null,
1235
+ transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
1236
+ ...n ? { args: t, eventName: n } : {}
1237
+ };
1238
+ }
1239
+ class Pn extends u {
1240
+ constructor({ blockNumber: t, chain: n, contract: s }) {
1241
+ super(`Chain "${n.name}" does not support contract "${s.name}".`, {
1242
+ metaMessages: [
1243
+ "This could be due to any of the following:",
1244
+ ...t && s.blockCreated && s.blockCreated > t ? [
1245
+ `- The contract "${s.name}" was not deployed until block ${s.blockCreated} (current block ${t}).`
1246
+ ] : [
1247
+ `- The chain does not have the contract "${s.name}" configured.`
1248
+ ]
1249
+ ]
1250
+ }), Object.defineProperty(this, "name", {
1251
+ enumerable: !0,
1252
+ configurable: !0,
1253
+ writable: !0,
1254
+ value: "ChainDoesNotSupportContract"
1255
+ });
1256
+ }
1257
+ }
1258
+ class In extends u {
1259
+ constructor({ chain: t, currentChainId: n }) {
1260
+ super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
1261
+ metaMessages: [
1262
+ `Current Chain ID: ${n}`,
1263
+ `Expected Chain ID: ${t.id} – ${t.name}`
1264
+ ]
1265
+ }), Object.defineProperty(this, "name", {
1266
+ enumerable: !0,
1267
+ configurable: !0,
1268
+ writable: !0,
1269
+ value: "ChainMismatchError"
1270
+ });
1271
+ }
1272
+ }
1273
+ class vn extends u {
1274
+ constructor() {
1275
+ super([
1276
+ "No chain was provided to the request.",
1277
+ "Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."
1278
+ ].join(`
1279
+ `)), Object.defineProperty(this, "name", {
1280
+ enumerable: !0,
1281
+ configurable: !0,
1282
+ writable: !0,
1283
+ value: "ChainNotFoundError"
1284
+ });
1285
+ }
1286
+ }
1287
+ class Tn extends u {
1288
+ constructor() {
1289
+ super("No chain was provided to the Client."), Object.defineProperty(this, "name", {
1290
+ enumerable: !0,
1291
+ configurable: !0,
1292
+ writable: !0,
1293
+ value: "ClientChainNotConfiguredError"
1294
+ });
1295
+ }
1296
+ }
1297
+ class Y extends u {
1298
+ constructor({ chainId: t }) {
1299
+ super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid."), Object.defineProperty(this, "name", {
1300
+ enumerable: !0,
1301
+ configurable: !0,
1302
+ writable: !0,
1303
+ value: "InvalidChainIdError"
1304
+ });
1305
+ }
1306
+ }
1307
+ function En(e) {
1308
+ return {
1309
+ formatters: void 0,
1310
+ fees: void 0,
1311
+ serializers: void 0,
1312
+ ...e
1313
+ };
1314
+ }
1315
+ function v(e, t = "hex") {
1316
+ const n = Ce(e), s = Ie(new Uint8Array(n.length));
1317
+ return n.encode(s), t === "hex" ? T(s.bytes) : s.bytes;
1318
+ }
1319
+ function Bn(e, t = "bytes") {
1320
+ return v(e, t);
1321
+ }
1322
+ function Un(e, t = "hex") {
1323
+ return v(e, t);
1324
+ }
1325
+ function Ce(e) {
1326
+ return Array.isArray(e) ? Kt(e.map((t) => Ce(t))) : Wt(e);
1327
+ }
1328
+ function Kt(e) {
1329
+ const t = e.reduce((i, o) => i + o.length, 0), n = je(t);
1330
+ return {
1331
+ length: t <= 55 ? 1 + t : 1 + n + t,
1332
+ encode(i) {
1333
+ t <= 55 ? i.pushByte(192 + t) : (i.pushByte(247 + n), n === 1 ? i.pushUint8(t) : n === 2 ? i.pushUint16(t) : n === 3 ? i.pushUint24(t) : i.pushUint32(t));
1334
+ for (const { encode: o } of e)
1335
+ o(i);
1336
+ }
1337
+ };
1338
+ }
1339
+ function Wt(e) {
1340
+ const t = typeof e == "string" ? L(e) : e, n = je(t.length);
1341
+ return {
1342
+ length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + n + t.length,
1343
+ encode(i) {
1344
+ t.length === 1 && t[0] < 128 ? i.pushBytes(t) : t.length <= 55 ? (i.pushByte(128 + t.length), i.pushBytes(t)) : (i.pushByte(183 + n), n === 1 ? i.pushUint8(t.length) : n === 2 ? i.pushUint16(t.length) : n === 3 ? i.pushUint24(t.length) : i.pushUint32(t.length), i.pushBytes(t));
1345
+ }
1346
+ };
1347
+ }
1348
+ function je(e) {
1349
+ if (e < 2 ** 8)
1350
+ return 1;
1351
+ if (e < 2 ** 16)
1352
+ return 2;
1353
+ if (e < 2 ** 24)
1354
+ return 3;
1355
+ if (e < 2 ** 32)
1356
+ return 4;
1357
+ throw new u("Length is too large.");
1358
+ }
1359
+ const Xt = {
1360
+ "0x0": "reverted",
1361
+ "0x1": "success"
1362
+ };
1363
+ function Yt(e) {
1364
+ const t = {
1365
+ ...e,
1366
+ blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
1367
+ contractAddress: e.contractAddress ? e.contractAddress : null,
1368
+ cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
1369
+ effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
1370
+ gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
1371
+ logs: e.logs ? e.logs.map((n) => Dt(n)) : null,
1372
+ to: e.to ? e.to : null,
1373
+ transactionIndex: e.transactionIndex ? j(e.transactionIndex) : null,
1374
+ status: e.status ? Xt[e.status] : null,
1375
+ type: e.type ? Be[e.type] || e.type : null
1376
+ };
1377
+ return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
1378
+ }
1379
+ const $n = /* @__PURE__ */ S("transactionReceipt", Yt);
1380
+ function Jt(e) {
1381
+ const { blobVersionedHashes: t } = e;
1382
+ if (t) {
1383
+ if (t.length === 0)
1384
+ throw new Ae();
1385
+ for (const n of t) {
1386
+ const s = B(n), i = j(ut(n, 0, 1));
1387
+ if (s !== 32)
1388
+ throw new St({ hash: n, size: s });
1389
+ if (i !== Ge)
1390
+ throw new Vt({
1391
+ hash: n,
1392
+ version: i
1393
+ });
1394
+ }
1395
+ }
1396
+ ze(e);
1397
+ }
1398
+ function ze(e) {
1399
+ const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: s, to: i } = e;
1400
+ if (t <= 0)
1401
+ throw new Y({ chainId: t });
1402
+ if (i && !G(i))
1403
+ throw new F({ address: i });
1404
+ if (s && s > 2n ** 256n - 1n)
1405
+ throw new N({ maxFeePerGas: s });
1406
+ if (n && s && n > s)
1407
+ throw new Ee({ maxFeePerGas: s, maxPriorityFeePerGas: n });
1408
+ }
1409
+ function Qt(e) {
1410
+ const { chainId: t, maxPriorityFeePerGas: n, gasPrice: s, maxFeePerGas: i, to: o } = e;
1411
+ if (t <= 0)
1412
+ throw new Y({ chainId: t });
1413
+ if (o && !G(o))
1414
+ throw new F({ address: o });
1415
+ if (n || i)
1416
+ throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
1417
+ if (s && s > 2n ** 256n - 1n)
1418
+ throw new N({ maxFeePerGas: s });
1419
+ }
1420
+ function Zt(e) {
1421
+ const { chainId: t, maxPriorityFeePerGas: n, gasPrice: s, maxFeePerGas: i, to: o, accessList: r } = e;
1422
+ if (o && !G(o))
1423
+ throw new F({ address: o });
1424
+ if (typeof t < "u" && t <= 0)
1425
+ throw new Y({ chainId: t });
1426
+ if (n || i)
1427
+ throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
1428
+ if (s && s > 2n ** 256n - 1n)
1429
+ throw new N({ maxFeePerGas: s });
1430
+ if (r)
1431
+ throw new u("`accessList` is not a valid Legacy Transaction attribute.");
1432
+ }
1433
+ function J(e) {
1434
+ if (!e || e.length === 0)
1435
+ return [];
1436
+ const t = [];
1437
+ for (let n = 0; n < e.length; n++) {
1438
+ const { address: s, storageKeys: i } = e[n];
1439
+ for (let o = 0; o < i.length; o++)
1440
+ if (i[o].length - 2 !== 64)
1441
+ throw new xt({ storageKey: i[o] });
1442
+ if (!G(s, { strict: !1 }))
1443
+ throw new F({ address: s });
1444
+ t.push([s, i]);
1445
+ }
1446
+ return t;
1447
+ }
1448
+ function On(e, t) {
1449
+ const n = Rt(e);
1450
+ return n === "eip1559" ? en(e, t) : n === "eip2930" ? tn(e, t) : n === "eip4844" ? qt(e, t) : nn(e, t);
1451
+ }
1452
+ function qt(e, t) {
1453
+ const { chainId: n, gas: s, nonce: i, to: o, value: r, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: d, data: f } = e;
1454
+ Jt(e);
1455
+ let p = e.blobVersionedHashes, b = e.sidecars;
1456
+ if (e.blobs && (typeof p > "u" || typeof b > "u")) {
1457
+ const w = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map(($) => T($)), A = e.kzg, U = $e({
1458
+ blobs: w,
1459
+ kzg: A
1460
+ });
1461
+ if (typeof p > "u" && (p = kt({
1462
+ commitments: U
1463
+ })), typeof b > "u") {
1464
+ const $ = Oe({ blobs: w, commitments: U, kzg: A });
1465
+ b = _t({ blobs: w, commitments: U, proofs: $ });
1466
+ }
1467
+ }
1468
+ const y = J(d), E = [
1469
+ h(n),
1470
+ i ? h(i) : "0x",
1471
+ l ? h(l) : "0x",
1472
+ c ? h(c) : "0x",
1473
+ s ? h(s) : "0x",
1474
+ o ?? "0x",
1475
+ r ? h(r) : "0x",
1476
+ f ?? "0x",
1477
+ y,
1478
+ a ? h(a) : "0x",
1479
+ p ?? [],
1480
+ ...Q(e, t)
1481
+ ], Z = [], q = [], ee = [];
1482
+ if (b)
1483
+ for (let w = 0; w < b.length; w++) {
1484
+ const { blob: A, commitment: U, proof: $ } = b[w];
1485
+ Z.push(A), q.push(U), ee.push($);
1486
+ }
1487
+ return k([
1488
+ "0x03",
1489
+ // If sidecars are enabled, envelope turns into a "wrapper":
1490
+ v(b ? [E, Z, q, ee] : E)
1491
+ ]);
1492
+ }
1493
+ function en(e, t) {
1494
+ const { chainId: n, gas: s, nonce: i, to: o, value: r, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: d } = e;
1495
+ ze(e);
1496
+ const f = J(l), p = [
1497
+ h(n),
1498
+ i ? h(i) : "0x",
1499
+ c ? h(c) : "0x",
1500
+ a ? h(a) : "0x",
1501
+ s ? h(s) : "0x",
1502
+ o ?? "0x",
1503
+ r ? h(r) : "0x",
1504
+ d ?? "0x",
1505
+ f,
1506
+ ...Q(e, t)
1507
+ ];
1508
+ return k([
1509
+ "0x02",
1510
+ v(p)
1511
+ ]);
1512
+ }
1513
+ function tn(e, t) {
1514
+ const { chainId: n, gas: s, data: i, nonce: o, to: r, value: a, accessList: c, gasPrice: l } = e;
1515
+ Qt(e);
1516
+ const d = J(c), f = [
1517
+ h(n),
1518
+ o ? h(o) : "0x",
1519
+ l ? h(l) : "0x",
1520
+ s ? h(s) : "0x",
1521
+ r ?? "0x",
1522
+ a ? h(a) : "0x",
1523
+ i ?? "0x",
1524
+ d,
1525
+ ...Q(e, t)
1526
+ ];
1527
+ return k([
1528
+ "0x01",
1529
+ v(f)
1530
+ ]);
1531
+ }
1532
+ function nn(e, t) {
1533
+ const { chainId: n = 0, gas: s, data: i, nonce: o, to: r, value: a, gasPrice: c } = e;
1534
+ Zt(e);
1535
+ let l = [
1536
+ o ? h(o) : "0x",
1537
+ c ? h(c) : "0x",
1538
+ s ? h(s) : "0x",
1539
+ r ?? "0x",
1540
+ a ? h(a) : "0x",
1541
+ i ?? "0x"
1542
+ ];
1543
+ if (t) {
1544
+ const d = (() => {
1545
+ if (t.v >= 35n)
1546
+ return (t.v - 35n) / 2n > 0 ? t.v : 27n + (t.v === 35n ? 0n : 1n);
1547
+ if (n > 0)
1548
+ return BigInt(n * 2) + BigInt(35n + t.v - 27n);
1549
+ const f = 27n + (t.v === 27n ? 0n : 1n);
1550
+ if (t.v !== f)
1551
+ throw new pt({ v: t.v });
1552
+ return f;
1553
+ })();
1554
+ l = [
1555
+ ...l,
1556
+ h(d),
1557
+ t.r,
1558
+ t.s
1559
+ ];
1560
+ } else n > 0 && (l = [
1561
+ ...l,
1562
+ h(n),
1563
+ "0x",
1564
+ "0x"
1565
+ ]);
1566
+ return v(l);
1567
+ }
1568
+ function Q(e, t) {
1569
+ const { r: n, s, v: i, yParity: o } = t ?? e;
1570
+ return typeof n > "u" ? [] : typeof s > "u" ? [] : typeof i > "u" && typeof o > "u" ? [] : [typeof o == "number" ? o ? h(1) : "0x" : i === 0n ? "0x" : i === 1n ? h(1) : i === 27n ? "0x" : h(1), te(n), te(s)];
1571
+ }
1572
+ const Ln = 2n ** (8n - 1n) - 1n, Fn = 2n ** (16n - 1n) - 1n, Gn = 2n ** (24n - 1n) - 1n, An = 2n ** (32n - 1n) - 1n, Cn = 2n ** (40n - 1n) - 1n, jn = 2n ** (48n - 1n) - 1n, zn = 2n ** (56n - 1n) - 1n, Hn = 2n ** (64n - 1n) - 1n, kn = 2n ** (72n - 1n) - 1n, Nn = 2n ** (80n - 1n) - 1n, Sn = 2n ** (88n - 1n) - 1n, Vn = 2n ** (96n - 1n) - 1n, Mn = 2n ** (104n - 1n) - 1n, _n = 2n ** (112n - 1n) - 1n, Rn = 2n ** (120n - 1n) - 1n, Dn = 2n ** (128n - 1n) - 1n, Kn = 2n ** (136n - 1n) - 1n, Wn = 2n ** (144n - 1n) - 1n, Xn = 2n ** (152n - 1n) - 1n, Yn = 2n ** (160n - 1n) - 1n, Jn = 2n ** (168n - 1n) - 1n, Qn = 2n ** (176n - 1n) - 1n, Zn = 2n ** (184n - 1n) - 1n, qn = 2n ** (192n - 1n) - 1n, es = 2n ** (200n - 1n) - 1n, ts = 2n ** (208n - 1n) - 1n, ns = 2n ** (216n - 1n) - 1n, ss = 2n ** (224n - 1n) - 1n, is = 2n ** (232n - 1n) - 1n, rs = 2n ** (240n - 1n) - 1n, os = 2n ** (248n - 1n) - 1n, as = 2n ** (256n - 1n) - 1n, cs = -(2n ** (8n - 1n)), us = -(2n ** (16n - 1n)), fs = -(2n ** (24n - 1n)), ls = -(2n ** (32n - 1n)), hs = -(2n ** (40n - 1n)), ds = -(2n ** (48n - 1n)), bs = -(2n ** (56n - 1n)), ps = -(2n ** (64n - 1n)), ms = -(2n ** (72n - 1n)), xs = -(2n ** (80n - 1n)), gs = -(2n ** (88n - 1n)), ys = -(2n ** (96n - 1n)), ws = -(2n ** (104n - 1n)), Ps = -(2n ** (112n - 1n)), Is = -(2n ** (120n - 1n)), vs = -(2n ** (128n - 1n)), Ts = -(2n ** (136n - 1n)), Es = -(2n ** (144n - 1n)), Bs = -(2n ** (152n - 1n)), Us = -(2n ** (160n - 1n)), $s = -(2n ** (168n - 1n)), Os = -(2n ** (176n - 1n)), Ls = -(2n ** (184n - 1n)), Fs = -(2n ** (192n - 1n)), Gs = -(2n ** (200n - 1n)), As = -(2n ** (208n - 1n)), Cs = -(2n ** (216n - 1n)), js = -(2n ** (224n - 1n)), zs = -(2n ** (232n - 1n)), Hs = -(2n ** (240n - 1n)), ks = -(2n ** (248n - 1n)), Ns = -(2n ** (256n - 1n)), Ss = 2n ** 8n - 1n, Vs = 2n ** 16n - 1n, Ms = 2n ** 24n - 1n, _s = 2n ** 32n - 1n, Rs = 2n ** 40n - 1n, Ds = 2n ** 48n - 1n, Ks = 2n ** 56n - 1n, Ws = 2n ** 64n - 1n, Xs = 2n ** 72n - 1n, Ys = 2n ** 80n - 1n, Js = 2n ** 88n - 1n, Qs = 2n ** 96n - 1n, Zs = 2n ** 104n - 1n, qs = 2n ** 112n - 1n, ei = 2n ** 120n - 1n, ti = 2n ** 128n - 1n, ni = 2n ** 136n - 1n, si = 2n ** 144n - 1n, ii = 2n ** 152n - 1n, ri = 2n ** 160n - 1n, oi = 2n ** 168n - 1n, ai = 2n ** 176n - 1n, ci = 2n ** 184n - 1n, ui = 2n ** 192n - 1n, fi = 2n ** 200n - 1n, li = 2n ** 208n - 1n, hi = 2n ** 216n - 1n, di = 2n ** 224n - 1n, bi = 2n ** 232n - 1n, pi = 2n ** 240n - 1n, mi = 2n ** 248n - 1n, xi = 2n ** 256n - 1n;
1573
+ export {
1574
+ Yt as $,
1575
+ Tn as A,
1576
+ vn as B,
1577
+ Pn as C,
1578
+ In as D,
1579
+ Te as E,
1580
+ N as F,
1581
+ dn as G,
1582
+ cn as H,
1583
+ F as I,
1584
+ v as J,
1585
+ be as K,
1586
+ lt as L,
1587
+ ln as M,
1588
+ yt as N,
1589
+ hn as O,
1590
+ ht as P,
1591
+ ze as Q,
1592
+ Qt as R,
1593
+ Lt as S,
1594
+ Et as T,
1595
+ xn as U,
1596
+ Jt as V,
1597
+ Zt as W,
1598
+ pt as X,
1599
+ bn as Y,
1600
+ Ue as Z,
1601
+ pn as _,
1602
+ k as a,
1603
+ oi as a$,
1604
+ de as a0,
1605
+ rn as a1,
1606
+ K as a2,
1607
+ H as a3,
1608
+ fe as a4,
1609
+ an as a5,
1610
+ on as a6,
1611
+ jt as a7,
1612
+ mn as a8,
1613
+ On as a9,
1614
+ ts as aA,
1615
+ ns as aB,
1616
+ ss as aC,
1617
+ is as aD,
1618
+ Gn as aE,
1619
+ rs as aF,
1620
+ os as aG,
1621
+ as as aH,
1622
+ An as aI,
1623
+ Cn as aJ,
1624
+ jn as aK,
1625
+ zn as aL,
1626
+ Hn as aM,
1627
+ kn as aN,
1628
+ Ln as aO,
1629
+ Nn as aP,
1630
+ Sn as aQ,
1631
+ Vn as aR,
1632
+ Zs as aS,
1633
+ qs as aT,
1634
+ ei as aU,
1635
+ ti as aV,
1636
+ ni as aW,
1637
+ si as aX,
1638
+ ii as aY,
1639
+ Vs as aZ,
1640
+ ri as a_,
1641
+ Ht as aa,
1642
+ En as ab,
1643
+ Y as ac,
1644
+ mt as ad,
1645
+ xt as ae,
1646
+ Bn as af,
1647
+ ct as ag,
1648
+ wn as ah,
1649
+ yn as ai,
1650
+ $n as aj,
1651
+ gn as ak,
1652
+ Un as al,
1653
+ Mn as am,
1654
+ _n as an,
1655
+ Rn as ao,
1656
+ Dn as ap,
1657
+ Kn as aq,
1658
+ Wn as ar,
1659
+ Xn as as,
1660
+ Fn as at,
1661
+ Yn as au,
1662
+ Jn as av,
1663
+ Qn as aw,
1664
+ Zn as ax,
1665
+ qn as ay,
1666
+ es as az,
1667
+ Ie as b,
1668
+ ai as b0,
1669
+ ci as b1,
1670
+ ui as b2,
1671
+ fi as b3,
1672
+ li as b4,
1673
+ hi as b5,
1674
+ di as b6,
1675
+ bi as b7,
1676
+ Ms as b8,
1677
+ pi as b9,
1678
+ As as bA,
1679
+ Cs as bB,
1680
+ js as bC,
1681
+ zs as bD,
1682
+ fs as bE,
1683
+ Hs as bF,
1684
+ ks as bG,
1685
+ Ns as bH,
1686
+ ls as bI,
1687
+ hs as bJ,
1688
+ ds as bK,
1689
+ bs as bL,
1690
+ ps as bM,
1691
+ ms as bN,
1692
+ cs as bO,
1693
+ xs as bP,
1694
+ gs as bQ,
1695
+ ys as bR,
1696
+ Bt as bS,
1697
+ J as bT,
1698
+ zt as bU,
1699
+ Mt as bV,
1700
+ Be as bW,
1701
+ Q as bX,
1702
+ mi as ba,
1703
+ xi as bb,
1704
+ _s as bc,
1705
+ Rs as bd,
1706
+ Ds as be,
1707
+ Ks as bf,
1708
+ Ws as bg,
1709
+ Xs as bh,
1710
+ Ss as bi,
1711
+ Ys as bj,
1712
+ Js as bk,
1713
+ Qs as bl,
1714
+ ws as bm,
1715
+ Ps as bn,
1716
+ Is as bo,
1717
+ vs as bp,
1718
+ Ts as bq,
1719
+ Es as br,
1720
+ Bs as bs,
1721
+ us as bt,
1722
+ Us as bu,
1723
+ $s as bv,
1724
+ Os as bw,
1725
+ Ls as bx,
1726
+ Fs as by,
1727
+ Gs as bz,
1728
+ un as c,
1729
+ ye as d,
1730
+ ft as e,
1731
+ I as f,
1732
+ gt as g,
1733
+ wt as h,
1734
+ G as i,
1735
+ Pt as j,
1736
+ ot as k,
1737
+ It as l,
1738
+ vt as m,
1739
+ Tt as n,
1740
+ Ee as o,
1741
+ ve as p,
1742
+ fn as q,
1743
+ $t as r,
1744
+ ut as s,
1745
+ $e as t,
1746
+ kt as u,
1747
+ Oe as v,
1748
+ _t as w,
1749
+ Rt as x,
1750
+ Ut as y,
1751
+ Dt as z
1752
+ };