@wormhole-foundation/wormhole-connect 2.5.0-beta.10-development → 2.5.0-beta.12-development

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.
Files changed (128) hide show
  1. package/dist/assets/{aptos-Cutllx5i.js → aptos-r6k7eJCM.js} +2 -2
  2. package/dist/assets/{ccip-C6cz5NqJ.js → ccip-DoYNnipC.js} +1 -1
  3. package/dist/assets/{evm-DzwJdvcV.js → evm-C5Ivowrf.js} +2 -2
  4. package/dist/assets/{evm-LJDXipdh.js → evm-DSNDNefN.js} +3 -3
  5. package/dist/assets/{index-DwJjUFus.js → index-7lgoK4KP.js} +1 -1
  6. package/dist/assets/{index-D3R8fZfr.js → index-BQQC6_X5.js} +1 -1
  7. package/dist/assets/{index-RZp63Yuv.js → index-BiBNC4RU.js} +1 -1
  8. package/dist/assets/{index-BVJL1orJ.js → index-BtCNeMnf.js} +1 -1
  9. package/dist/assets/{index-iiAA6CTH.js → index-CD-O7bSQ.js} +1 -1
  10. package/dist/assets/{index-CSiH4dly.js → index-CItGJ_dO.js} +1 -1
  11. package/dist/assets/{index-CJZzjIow.js → index-CKNeANkQ.js} +1 -1
  12. package/dist/assets/{index-C6UKJUdm.js → index-CLAfmegc.js} +1 -1
  13. package/dist/assets/{index-wwvQRwKh.js → index-Cefdj6j_.js} +1 -1
  14. package/dist/assets/{index-CqEHg303.js → index-CrZXNnmG.js} +1 -1
  15. package/dist/assets/{index-m7pOREIu.js → index-Cts3aOUg.js} +1 -1
  16. package/dist/assets/{index-BwNyYZxM.js → index-CuW_tQti.js} +1 -1
  17. package/dist/assets/{index-Ds_BlDdN.js → index-DPi-hS0A.js} +2 -2
  18. package/dist/assets/{index-BECoIARf.js → index-DQWOpudg.js} +1 -1
  19. package/dist/assets/{index-BO5vFz_J.js → index-TjYk9nid.js} +1 -1
  20. package/dist/assets/{index-EvC_Tjca.js → index-XgkrTsoW.js} +1 -1
  21. package/dist/assets/{index-Dxpp9NXJ.js → index-mE5izIg0.js} +1 -1
  22. package/dist/assets/{index.es-C9O0OD76.js → index.es-e2znZrg8.js} +6 -6
  23. package/dist/assets/solana-BNhbIgt5.js +2 -0
  24. package/dist/assets/{solana-BGWrrBcM.js → solana-DCCw_nmt.js} +2 -2
  25. package/dist/assets/solanaEmbed.esm-D6aTKNPa.js +37 -0
  26. package/dist/assets/{sui-COEHPNCD.js → sui-CqkItMnZ.js} +2 -2
  27. package/dist/assets/{tokens-CzZADlQh.js → tokens-BSV7gluG.js} +1 -1
  28. package/dist/main.js +53 -53
  29. package/dist/src/config/tokens.d.ts +1 -0
  30. package/dist/src/config/tokens.d.ts.map +1 -1
  31. package/dist/src/hooks/useComputeDestinationTokens.d.ts.map +1 -1
  32. package/dist/src/routes/operator.d.ts.map +1 -1
  33. package/dist/src/views/v2/Bridge/AssetPicker/TokenList.d.ts +2 -0
  34. package/dist/src/views/v2/Bridge/AssetPicker/TokenList.d.ts.map +1 -1
  35. package/dist/src/views/v2/Bridge/index.d.ts.map +1 -1
  36. package/lib/{aptos-YSdYdM3l.mjs → aptos-BbnXFQGN.mjs} +5 -5
  37. package/lib/{aptos-BMx1TTt2.js → aptos-CijhgPBM.js} +2 -2
  38. package/lib/{aptos-BFLsTGMx.js → aptos-D1SySWBC.js} +1 -1
  39. package/lib/{aptos-CQl8XJ7-.mjs → aptos-DzfZBrTF.mjs} +2 -2
  40. package/lib/{base64-CauZC45z.mjs → base64-DBxZBPtw.mjs} +1 -1
  41. package/lib/{base64-BL-j3Gw0.js → base64-DEMA23u6.js} +1 -1
  42. package/lib/{ccip-C2KJS3Vh.js → ccip-CF-Fa_0D.js} +1 -1
  43. package/lib/{ccip-BUTBg5Hs.mjs → ccip-CyaNGYUS.mjs} +1 -1
  44. package/lib/{chunk-IMTC3J2M-Gz4vjBAi.mjs → chunk-IMTC3J2M-B1LO60dt.mjs} +3 -3
  45. package/lib/{chunk-IMTC3J2M-C1jlNA4M.js → chunk-IMTC3J2M-DJKrnCnv.js} +1 -1
  46. package/lib/{evm-B-o3lkx0.js → evm-Bh3OeZT6.js} +3 -3
  47. package/lib/{evm-DOaHsHZl.mjs → evm-CY0tHZuu.mjs} +5 -5
  48. package/lib/{evm-CA80eR6l.mjs → evm-D54FcncX.mjs} +6 -6
  49. package/lib/{evm-mpc0lOzI.js → evm-DgChslXT.js} +2 -2
  50. package/lib/{index-Do88RXfb.js → index-7G2WHUOg.js} +1 -1
  51. package/lib/{index-XQttFVFi.mjs → index-B-KHe4hu.mjs} +2 -2
  52. package/lib/{index-C7zo-CWd.js → index-B-fRe2Sl.js} +1 -1
  53. package/lib/{index-1D1psYQy.js → index-B4r8Myj4.js} +1 -1
  54. package/lib/{index-Cn6BrgLA.js → index-B5Jvr433.js} +1 -1
  55. package/lib/{index-inkFOEg7.js → index-B76PoU6s.js} +1 -1
  56. package/lib/{index-xNnSGAtc.js → index-BDO3Dr98.js} +1 -1
  57. package/lib/{index-DxLWsRVm.js → index-Bd8n2Ncl.js} +1 -1
  58. package/lib/{index-DEtebpZ9.mjs → index-BfVz9SIt.mjs} +2 -2
  59. package/lib/{index-8qfDYZ9G.mjs → index-BrZB1GhQ.mjs} +5129 -5114
  60. package/lib/{index-DkVHDASq.mjs → index-BzicjZP6.mjs} +4 -4
  61. package/lib/{index-8ksTIDzz.mjs → index-C0LkRL9c.mjs} +1 -1
  62. package/lib/{index-C5h0GKuY.mjs → index-C5a4Ffru.mjs} +2 -2
  63. package/lib/{index-CL4_TLOz.js → index-CFhRN8Tj.js} +1 -1
  64. package/lib/{index-CcVVlnxY.js → index-CHBkchdb.js} +1 -1
  65. package/lib/{index-B5vW58GO.mjs → index-CMoVuDNY.mjs} +3 -3
  66. package/lib/{index-qIesbXws.mjs → index-CTlMq5hW.mjs} +2 -2
  67. package/lib/{index-Ck8K2qxD.mjs → index-CUIU0LlE.mjs} +1 -1
  68. package/lib/{index-ClcxKJ0h.mjs → index-CVviH-_H.mjs} +1 -1
  69. package/lib/{index-rUy6JjpD.js → index-CWQ2BLtV.js} +1 -1
  70. package/lib/{index-CObPvubl.mjs → index-Cmvk7AV6.mjs} +1 -1
  71. package/lib/{index-Tf4FuRV0.mjs → index-CouIZIJD.mjs} +1 -1
  72. package/lib/{index-BA56xKIQ.mjs → index-Cq7M8x7W.mjs} +1 -1
  73. package/lib/{index-BF1rN3Wd.js → index-Cx54Ub8m.js} +1 -1
  74. package/lib/{index-DZ7YPfpa.js → index-D8SSPI4d.js} +1 -1
  75. package/lib/{index-XAAfEZW7.mjs → index-D8jRPXi_.mjs} +1 -1
  76. package/lib/{index-DZpenGgi.mjs → index-D9lOHYis.mjs} +2 -2
  77. package/lib/{index-BC0smYQq.js → index-DA4fIndF.js} +1 -1
  78. package/lib/{index-0ceDEkf_.js → index-DCUIbYnw.js} +1 -1
  79. package/lib/{index-CNF58nPK.js → index-DE20fRvb.js} +1 -1
  80. package/lib/{index-BreVnI2f.mjs → index-DJtvv--F.mjs} +2 -2
  81. package/lib/{index-CZaNivds.mjs → index-DL-GgNtw.mjs} +1 -1
  82. package/lib/{index-CSiKRYfg.mjs → index-DdDQuvdx.mjs} +1 -1
  83. package/lib/{index-DV_Zk6Mx.js → index-Deiudcgq.js} +1 -1
  84. package/lib/{index-DMx_4irc.mjs → index-DgrS-KqY.mjs} +1 -1
  85. package/lib/{index-EpaVQ-_r.js → index-DkPmK5pk.js} +1 -1
  86. package/lib/{index-gZFaIAnU.mjs → index-DklLbrzY.mjs} +3 -3
  87. package/lib/{index-Dx0TJsdi.mjs → index-DlAhw069.mjs} +2 -2
  88. package/lib/{index-gVCMmC1s.js → index-DoWRumoO.js} +1 -1
  89. package/lib/{index-B6a33fcS.mjs → index-DpAX5NRl.mjs} +2 -2
  90. package/lib/{index-CjsiL-0R.mjs → index-GEYUlTc-.mjs} +2 -2
  91. package/lib/{index-DpfkffBJ.js → index-I3lFNjSk.js} +1 -1
  92. package/lib/{index-CwKo0Ket.js → index-Tr8qb4P3.js} +1 -1
  93. package/lib/{index-DQ5jlY6D.mjs → index-YyCbbSjt.mjs} +1 -1
  94. package/lib/{index-Gl0_8XA4.js → index-___kb-9z.js} +1 -1
  95. package/lib/{index-eTrs0KVL.js → index-gpbKRo8X.js} +1 -1
  96. package/lib/{index-rccBLIiF.js → index-h8S34vMi.js} +71 -71
  97. package/lib/{index-Dcj82ZKy.js → index-jrlNs6XL.js} +1 -1
  98. package/lib/{index.es-CpzHWVl0.mjs → index.es-AsYk4Uvv.mjs} +5 -5
  99. package/lib/{index.es-BWi1Rwa1.js → index.es-D8hF5XP0.js} +2 -2
  100. package/lib/index.js +1 -1
  101. package/lib/index.mjs +1 -1
  102. package/lib/{signer-Ch--Hn-j.mjs → signer-7WIJn5sK.mjs} +1 -1
  103. package/lib/{signer-C01xt4J9.js → signer-DaWMkQF1.js} +1 -1
  104. package/lib/solana-BesnnoRK.js +1 -0
  105. package/lib/solana-CPqOguy0.mjs +17 -0
  106. package/lib/{solana-BTgvDR-i.mjs → solana-DRSvSfVY.mjs} +4 -4
  107. package/lib/{solana-CxxV9c7q.js → solana-MB7hVWUW.js} +1 -1
  108. package/lib/{solanaEmbed.esm-B2-RDCgb.js → solanaEmbed.esm-BixVJUPy.js} +1 -1
  109. package/lib/{solanaEmbed.esm-CGuhRFm9.mjs → solanaEmbed.esm-C1Zh8qUa.mjs} +2 -2
  110. package/lib/src/config/tokens.d.ts +1 -0
  111. package/lib/src/config/tokens.d.ts.map +1 -1
  112. package/lib/src/hooks/useComputeDestinationTokens.d.ts.map +1 -1
  113. package/lib/src/routes/operator.d.ts.map +1 -1
  114. package/lib/src/views/v2/Bridge/AssetPicker/TokenList.d.ts +2 -0
  115. package/lib/src/views/v2/Bridge/AssetPicker/TokenList.d.ts.map +1 -1
  116. package/lib/src/views/v2/Bridge/index.d.ts.map +1 -1
  117. package/lib/{sui-Be84K-Et.mjs → sui-8vWUEEQ9.mjs} +1 -1
  118. package/lib/{sui-qGgWyLPn.js → sui-DoOVhYz5.js} +1 -1
  119. package/lib/{sui-BVNkyqnv.mjs → sui-Du5eMx4Q.mjs} +5 -5
  120. package/lib/{sui-DjFIqwOk.js → sui-UkjRySQh.js} +1 -1
  121. package/lib/{tokens-r5T_M1r0.js → tokens-BKsPRVEi.js} +1 -1
  122. package/lib/{tokens-Io4ylz88.mjs → tokens-BeoubMFr.mjs} +2 -2
  123. package/package.json +1 -1
  124. package/dist/assets/events-MYC_Tkdh.js +0 -1
  125. package/dist/assets/solana-B0Eox3vZ.js +0 -2
  126. package/dist/assets/solanaEmbed.esm-C9Mwa0DJ.js +0 -37
  127. package/lib/solana-BDhqohvZ.mjs +0 -17
  128. package/lib/solana-zMAaUpZL.js +0 -1
@@ -3,9 +3,9 @@ var Aa = (e) => {
3
3
  };
4
4
  var Ia = (e, t, r) => t.has(e) || Aa("Cannot " + r);
5
5
  var vn = (e, t, r) => (Ia(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ea = (e, t, r) => t.has(e) ? Aa("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), xa = (e, t, r, n) => (Ia(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
- import { aH as Xo, D as Na, d as Rn, aI as qo, aJ as $o, aK as ec, aL as Wn, aM as tc, aN as $e, $ as rc, aO as Jr, i as nc, aP as sc, aQ as ac, aR as ic, aS as oc, aT as cc, aU as lc, aV as uc, aW as hc, aX as dc, aY as _r } from "./index-8qfDYZ9G.mjs";
6
+ import { aH as Xo, D as Na, d as Rn, aI as qo, aJ as $o, aK as ec, aL as Wn, aM as tc, aN as $e, $ as rc, aO as Jr, i as nc, aP as sc, aQ as ac, aR as ic, aS as oc, aT as cc, aU as lc, aV as uc, aW as hc, aX as dc, aY as _r } from "./index-BrZB1GhQ.mjs";
7
7
  import "react";
8
- import "./index-8ksTIDzz.mjs";
8
+ import "./index-C0LkRL9c.mjs";
9
9
  var kt;
10
10
  class pc extends Xo {
11
11
  /**
@@ -4316,7 +4316,7 @@ async function gn(e, t) {
4316
4316
  });
4317
4317
  return j === "0x" ? { data: void 0 } : { data: j };
4318
4318
  } catch (E) {
4319
- const I = Zu(E), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-BUTBg5Hs.mjs");
4319
+ const I = Zu(E), { offchainLookup: l, offchainLookupSignature: b } = await import("./ccip-CyaNGYUS.mjs");
4320
4320
  if ((I == null ? void 0 : I.slice(0, 10)) === b && f)
4321
4321
  return { data: await l(e, { data: I, to: f }) };
4322
4322
  throw Ru(E, {
@@ -13979,7 +13979,7 @@ var Dd = Object.defineProperty, Cd = function(e, t, r) {
13979
13979
  case 0:
13980
13980
  return !Jt(i, Vt) || a || o ? (h = !((c = i.options) === null || c === void 0) && c.infuraId ? {} : i.chains.reduce(function(f, m) {
13981
13981
  return ti(Qr({}, f), vo({}, m.id, m.rpcUrls.default.http[0]));
13982
- }, {}), [4, import("./index-gZFaIAnU.mjs")]) : [3, 2];
13982
+ }, {}), [4, import("./index-DklLbrzY.mjs")]) : [3, 2];
13983
13983
  case 1:
13984
13984
  d = p.sent().default, Fn(i, Vt, new d(ti(Qr({}, i.options), { chainId: a, rpc: Qr({}, h, (u = i.options) === null || u === void 0 ? void 0 : u.rpc) }))), p.label = 2;
13985
13985
  case 2:
@@ -15556,7 +15556,7 @@ xs = async function() {
15556
15556
  };
15557
15557
  ma = /* @__PURE__ */ new WeakSet();
15558
15558
  Vo = async function() {
15559
- const { EthereumProvider: e } = await import("./index.es-CpzHWVl0.mjs"), t = this.chains.map(({ id: r }) => r);
15559
+ const { EthereumProvider: e } = await import("./index.es-AsYk4Uvv.mjs"), t = this.chains.map(({ id: r }) => r);
15560
15560
  if (t.length) {
15561
15561
  const {
15562
15562
  projectId: r,
@@ -13,7 +13,7 @@ var Cx = (c, e, x, a) => ({
13
13
  return O(c, e, a);
14
14
  }
15
15
  });
16
- import { j as u, k as w, l as Te, w as Ce, m as Ie, p as ke, r as Oe, n as Ix, o as Se, q as u0, s as Bx, u as Q0, t as Fx, v as m0, x as hx, y as l0, z as _x, B as V, D as l, E as Z0, F as ve, G as Pe, H as kx, I as ux, J as Ue, L as Ox, N as Y, O as Kx, Q as px, R as Le, U as N0, W as Gx, X as Me, Y as yx, Z as Vx, _ as L0, $ as De, a0 as $e, a1 as Be, a2 as Fe, a3 as _e, a4 as Ke, a5 as Ge, a6 as bx, a7 as Ve, a8 as We, a9 as ze, aa as Ye, ab as He } from "./index-8qfDYZ9G.mjs";
16
+ import { j as u, k as w, l as Te, w as Ce, m as Ie, p as ke, r as Oe, n as Ix, o as Se, q as u0, s as Bx, u as Q0, t as Fx, v as m0, x as hx, y as l0, z as _x, B as V, D as l, E as Z0, F as ve, G as Pe, H as kx, I as ux, J as Ue, L as Ox, N as Y, O as Kx, Q as px, R as Le, U as N0, W as Gx, X as Me, Y as yx, Z as Vx, _ as L0, $ as De, a0 as $e, a1 as Be, a2 as Fe, a3 as _e, a4 as Ke, a5 as Ge, a6 as bx, a7 as Ve, a8 as We, a9 as ze, aa as Ye, ab as He } from "./index-BrZB1GhQ.mjs";
17
17
  function Je(c) {
18
18
  const e = u(c, "randomBytes");
19
19
  e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -1591,11 +1591,11 @@ const _a = {
1591
1591
  Platform: bx,
1592
1592
  getSigner: Da,
1593
1593
  protocols: {
1594
- WormholeCore: () => import("./index-8qfDYZ9G.mjs").then((c) => c.e9),
1595
- TokenBridge: () => import("./index-DMx_4irc.mjs"),
1596
- PorticoBridge: () => import("./index-B6a33fcS.mjs"),
1597
- CircleBridge: () => import("./index-XQttFVFi.mjs"),
1598
- TBTCBridge: () => import("./index-ClcxKJ0h.mjs")
1594
+ WormholeCore: () => import("./index-BrZB1GhQ.mjs").then((c) => c.e9),
1595
+ TokenBridge: () => import("./index-DgrS-KqY.mjs"),
1596
+ PorticoBridge: () => import("./index-DpAX5NRl.mjs"),
1597
+ CircleBridge: () => import("./index-B-KHe4hu.mjs"),
1598
+ TBTCBridge: () => import("./index-CVviH-_H.mjs")
1599
1599
  },
1600
1600
  getChain: (c, e, x) => new We(e, new bx(c, Ye(c, He, {
1601
1601
  [e]: x
@@ -1,4 +1,4 @@
1
- "use strict";var Ze=Object.defineProperty;var re=c=>{throw TypeError(c)};var Qe=(c,x,e)=>x in c?Ze(c,x,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[x]=e;var A=(c,x,e)=>Qe(c,typeof x!="symbol"?x+"":x,e),G0=(c,x,e)=>x.has(c)||re("Cannot "+e);var k=(c,x,e)=>(G0(c,x,"read from private field"),e?e.call(c):x.get(c)),U=(c,x,e)=>x.has(c)?re("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(c):x.set(c,e),I=(c,x,e,a)=>(G0(c,x,"write to private field"),a?a.call(c,e):x.set(c,e),e),B=(c,x,e)=>(G0(c,x,"access private method"),e);var se=(c,x,e,a)=>({set _(d){I(c,x,d,e)},get _(){return k(c,x,a)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-rccBLIiF.js");function ex(c){const x=f.getBytes(c,"randomBytes");x[6]=x[6]&15|64,x[8]=x[8]&63|128;const e=f.hexlify(x);return[e.substring(2,10),e.substring(10,14),e.substring(14,18),e.substring(18,22),e.substring(22,34)].join("-")}let ge=!1;const Ae=function(c,x,e){return f.createHmac(c,x).update(e).digest()};let we=Ae;function m0(c,x,e){const a=f.getBytes(x,"key"),d=f.getBytes(e,"data");return f.hexlify(we(c,a,d))}m0._=Ae;m0.lock=function(){ge=!0};m0.register=function(c){if(ge)throw new Error("computeHmac is locked");we=c};Object.freeze(m0);const xx=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Ee=Uint8Array.from({length:16},(c,x)=>x),ax=Ee.map(c=>(9*c+5)%16);let ae=[Ee],ce=[ax];for(let c=0;c<4;c++)for(let x of[ae,ce])x.push(x[c].map(e=>xx[e]));const Ne=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(c=>new Uint8Array(c)),cx=ae.map((c,x)=>c.map(e=>Ne[x][e])),dx=ce.map((c,x)=>c.map(e=>Ne[x][e])),fx=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),tx=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),U0=(c,x)=>c<<x|c>>>32-x;function ie(c,x,e,a){return c===0?x^e^a:c===1?x&e|~x&a:c===2?(x|~e)^a:c===3?x&a|e&~a:x^(e|~a)}const B0=new Uint32Array(16);class bx extends f.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:x,h1:e,h2:a,h3:d,h4:t}=this;return[x,e,a,d,t]}set(x,e,a,d,t){this.h0=x|0,this.h1=e|0,this.h2=a|0,this.h3=d|0,this.h4=t|0}process(x,e){for(let l=0;l<16;l++,e+=4)B0[l]=x.getUint32(e,!0);let a=this.h0|0,d=a,t=this.h1|0,b=t,n=this.h2|0,r=n,s=this.h3|0,i=s,o=this.h4|0,h=o;for(let l=0;l<5;l++){const m=4-l,u=fx[l],w=tx[l],p=ae[l],N=ce[l],T=cx[l],M=dx[l];for(let g=0;g<16;g++){const C=U0(a+ie(l,t,n,s)+B0[p[g]]+u,T[g])+o|0;a=o,o=s,s=U0(n,10)|0,n=t,t=C}for(let g=0;g<16;g++){const C=U0(d+ie(m,b,r,i)+B0[N[g]]+w,M[g])+h|0;d=h,h=i,i=U0(r,10)|0,r=b,b=C}}this.set(this.h1+n+i|0,this.h2+s+h|0,this.h3+o+d|0,this.h4+a+b|0,this.h0+t+r|0)}roundClean(){B0.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const nx=f.wrapConstructor(()=>new bx);let Re=!1;const Te=function(c){return nx(c)};let Ce=Te;function g0(c){const x=f.getBytes(c,"data");return f.hexlify(Ce(x))}g0._=Te;g0.lock=function(){Re=!0};g0.register=function(c){if(Re)throw new TypeError("ripemd160 is locked");Ce=c};Object.freeze(g0);let ke=!1;const Ie=function(c,x,e,a,d){return f.pbkdf2Sync(c,x,e,a,d)};let Oe=Ie;function V(c,x,e,a,d){const t=f.getBytes(c,"password"),b=f.getBytes(x,"salt");return f.hexlify(Oe(t,b,e,a,d))}V._=Ie;V.lock=function(){ke=!0};V.register=function(c){if(ke)throw new Error("pbkdf2 is locked");Oe=c};Object.freeze(V);let Se=!1;const Pe=function(c){return new Uint8Array(f.randomBytes(c))};let ve=Pe;function _(c){return ve(c)}_._=Pe;_.lock=function(){Se=!0};_.register=function(c){if(Se)throw new Error("randomBytes is locked");ve=c};Object.freeze(_);const y=(c,x)=>c<<x|c>>>32-x;function oe(c,x,e,a,d,t){let b=c[x++]^e[a++],n=c[x++]^e[a++],r=c[x++]^e[a++],s=c[x++]^e[a++],i=c[x++]^e[a++],o=c[x++]^e[a++],h=c[x++]^e[a++],l=c[x++]^e[a++],m=c[x++]^e[a++],u=c[x++]^e[a++],w=c[x++]^e[a++],p=c[x++]^e[a++],N=c[x++]^e[a++],T=c[x++]^e[a++],M=c[x++]^e[a++],g=c[x++]^e[a++],C=b,F=n,W=r,z=s,Y=i,H=o,J=h,j=l,q=m,X=u,Z=w,Q=p,e0=N,x0=T,a0=M,c0=g;for(let ne=0;ne<8;ne+=2)Y^=y(C+e0|0,7),q^=y(Y+C|0,9),e0^=y(q+Y|0,13),C^=y(e0+q|0,18),X^=y(H+F|0,7),x0^=y(X+H|0,9),F^=y(x0+X|0,13),H^=y(F+x0|0,18),a0^=y(Z+J|0,7),W^=y(a0+Z|0,9),J^=y(W+a0|0,13),Z^=y(J+W|0,18),z^=y(c0+Q|0,7),j^=y(z+c0|0,9),Q^=y(j+z|0,13),c0^=y(Q+j|0,18),F^=y(C+z|0,7),W^=y(F+C|0,9),z^=y(W+F|0,13),C^=y(z+W|0,18),J^=y(H+Y|0,7),j^=y(J+H|0,9),Y^=y(j+J|0,13),H^=y(Y+j|0,18),Q^=y(Z+X|0,7),q^=y(Q+Z|0,9),X^=y(q+Q|0,13),Z^=y(X+q|0,18),e0^=y(c0+a0|0,7),x0^=y(e0+c0|0,9),a0^=y(x0+e0|0,13),c0^=y(a0+x0|0,18);d[t++]=b+C|0,d[t++]=n+F|0,d[t++]=r+W|0,d[t++]=s+z|0,d[t++]=i+Y|0,d[t++]=o+H|0,d[t++]=h+J|0,d[t++]=l+j|0,d[t++]=m+q|0,d[t++]=u+X|0,d[t++]=w+Z|0,d[t++]=p+Q|0,d[t++]=N+e0|0,d[t++]=T+x0|0,d[t++]=M+a0|0,d[t++]=g+c0|0}function o0(c,x,e,a,d){let t=a+0,b=a+16*d;for(let n=0;n<16;n++)e[b+n]=c[x+(2*d-1)*16+n];for(let n=0;n<d;n++,t+=16,x+=16)oe(e,b,c,x,e,t),n>0&&(b+=16),oe(e,t,c,x+=16,e,b)}function Ue(c,x,e){const a=f.checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},e),{N:d,r:t,p:b,dkLen:n,asyncTick:r,maxmem:s,onProgress:i}=a;if(f.number(d),f.number(t),f.number(b),f.number(n),f.number(r),f.number(s),i!==void 0&&typeof i!="function")throw new Error("progressCb should be function");const o=128*t,h=o/4;if(d<=1||d&d-1||d>=2**(o/8)||d>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(b<0||b>(2**32-1)*32/o)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(n<0||n>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const l=o*(d+b);if(l>s)throw new Error(`Scrypt: parameters too large, ${l} (128 * r * (N + p)) > ${s} (maxmem)`);const m=f.pbkdf2(f.sha256,c,x,{c:1,dkLen:o*b}),u=f.u32(m),w=f.u32(new Uint8Array(o*d)),p=f.u32(new Uint8Array(o));let N=()=>{};if(i){const T=2*d*b,M=Math.max(Math.floor(T/1e4),1);let g=0;N=()=>{g++,i&&(!(g%M)||g===T)&&i(g/T)}}return{N:d,r:t,p:b,dkLen:n,blockSize32:h,V:w,B32:u,B:m,tmp:p,blockMixCb:N,asyncTick:r}}function Be(c,x,e,a,d){const t=f.pbkdf2(f.sha256,c,e,{c:1,dkLen:x});return e.fill(0),a.fill(0),d.fill(0),t}function rx(c,x,e){const{N:a,r:d,p:t,dkLen:b,blockSize32:n,V:r,B32:s,B:i,tmp:o,blockMixCb:h}=Ue(c,x,e);for(let l=0;l<t;l++){const m=n*l;for(let u=0;u<n;u++)r[u]=s[m+u];for(let u=0,w=0;u<a-1;u++)o0(r,w,r,w+=n,d),h();o0(r,(a-1)*n,s,m,d),h();for(let u=0;u<a;u++){const w=s[m+n-16]%a;for(let p=0;p<n;p++)o[p]=s[m+p]^r[w*n+p];o0(o,0,s,m,d),h()}}return Be(c,b,i,r,o)}async function sx(c,x,e){const{N:a,r:d,p:t,dkLen:b,blockSize32:n,V:r,B32:s,B:i,tmp:o,blockMixCb:h,asyncTick:l}=Ue(c,x,e);for(let m=0;m<t;m++){const u=n*m;for(let p=0;p<n;p++)r[p]=s[u+p];let w=0;await f.asyncLoop(a-1,l,()=>{o0(r,w,r,w+=n,d),h()}),o0(r,(a-1)*n,s,u,d),h(),await f.asyncLoop(a,l,()=>{const p=s[u+n-16]%a;for(let N=0;N<n;N++)o[N]=s[u+N]^r[p*n+N];o0(o,0,s,u,d),h()})}return Be(c,b,i,r,o)}let Le=!1,Me=!1;const De=async function(c,x,e,a,d,t,b){return await sx(c,x,{N:e,r:a,p:d,dkLen:t,onProgress:b})},$e=function(c,x,e,a,d,t){return rx(c,x,{N:e,r:a,p:d,dkLen:t})};let Fe=De,Ke=$e;async function A0(c,x,e,a,d,t,b){const n=f.getBytes(c,"passwd"),r=f.getBytes(x,"salt");return f.hexlify(await Fe(n,r,e,a,d,t,b))}A0._=De;A0.lock=function(){Me=!0};A0.register=function(c){if(Me)throw new Error("scrypt is locked");Fe=c};Object.freeze(A0);function w0(c,x,e,a,d,t){const b=f.getBytes(c,"passwd"),n=f.getBytes(x,"salt");return f.hexlify(Ke(b,n,e,a,d,t))}w0._=$e;w0.lock=function(){Le=!0};w0.register=function(c){if(Le)throw new Error("scryptSync is locked");Ke=c};Object.freeze(w0);const ix=`Ethereum Signed Message:
1
+ "use strict";var Ze=Object.defineProperty;var re=c=>{throw TypeError(c)};var Qe=(c,x,e)=>x in c?Ze(c,x,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[x]=e;var A=(c,x,e)=>Qe(c,typeof x!="symbol"?x+"":x,e),G0=(c,x,e)=>x.has(c)||re("Cannot "+e);var k=(c,x,e)=>(G0(c,x,"read from private field"),e?e.call(c):x.get(c)),U=(c,x,e)=>x.has(c)?re("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(c):x.set(c,e),I=(c,x,e,a)=>(G0(c,x,"write to private field"),a?a.call(c,e):x.set(c,e),e),B=(c,x,e)=>(G0(c,x,"access private method"),e);var se=(c,x,e,a)=>({set _(d){I(c,x,d,e)},get _(){return k(c,x,a)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-h8S34vMi.js");function ex(c){const x=f.getBytes(c,"randomBytes");x[6]=x[6]&15|64,x[8]=x[8]&63|128;const e=f.hexlify(x);return[e.substring(2,10),e.substring(10,14),e.substring(14,18),e.substring(18,22),e.substring(22,34)].join("-")}let ge=!1;const Ae=function(c,x,e){return f.createHmac(c,x).update(e).digest()};let we=Ae;function m0(c,x,e){const a=f.getBytes(x,"key"),d=f.getBytes(e,"data");return f.hexlify(we(c,a,d))}m0._=Ae;m0.lock=function(){ge=!0};m0.register=function(c){if(ge)throw new Error("computeHmac is locked");we=c};Object.freeze(m0);const xx=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Ee=Uint8Array.from({length:16},(c,x)=>x),ax=Ee.map(c=>(9*c+5)%16);let ae=[Ee],ce=[ax];for(let c=0;c<4;c++)for(let x of[ae,ce])x.push(x[c].map(e=>xx[e]));const Ne=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(c=>new Uint8Array(c)),cx=ae.map((c,x)=>c.map(e=>Ne[x][e])),dx=ce.map((c,x)=>c.map(e=>Ne[x][e])),fx=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),tx=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),U0=(c,x)=>c<<x|c>>>32-x;function ie(c,x,e,a){return c===0?x^e^a:c===1?x&e|~x&a:c===2?(x|~e)^a:c===3?x&a|e&~a:x^(e|~a)}const B0=new Uint32Array(16);class bx extends f.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:x,h1:e,h2:a,h3:d,h4:t}=this;return[x,e,a,d,t]}set(x,e,a,d,t){this.h0=x|0,this.h1=e|0,this.h2=a|0,this.h3=d|0,this.h4=t|0}process(x,e){for(let l=0;l<16;l++,e+=4)B0[l]=x.getUint32(e,!0);let a=this.h0|0,d=a,t=this.h1|0,b=t,n=this.h2|0,r=n,s=this.h3|0,i=s,o=this.h4|0,h=o;for(let l=0;l<5;l++){const m=4-l,u=fx[l],w=tx[l],p=ae[l],N=ce[l],T=cx[l],M=dx[l];for(let g=0;g<16;g++){const C=U0(a+ie(l,t,n,s)+B0[p[g]]+u,T[g])+o|0;a=o,o=s,s=U0(n,10)|0,n=t,t=C}for(let g=0;g<16;g++){const C=U0(d+ie(m,b,r,i)+B0[N[g]]+w,M[g])+h|0;d=h,h=i,i=U0(r,10)|0,r=b,b=C}}this.set(this.h1+n+i|0,this.h2+s+h|0,this.h3+o+d|0,this.h4+a+b|0,this.h0+t+r|0)}roundClean(){B0.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const nx=f.wrapConstructor(()=>new bx);let Re=!1;const Te=function(c){return nx(c)};let Ce=Te;function g0(c){const x=f.getBytes(c,"data");return f.hexlify(Ce(x))}g0._=Te;g0.lock=function(){Re=!0};g0.register=function(c){if(Re)throw new TypeError("ripemd160 is locked");Ce=c};Object.freeze(g0);let ke=!1;const Ie=function(c,x,e,a,d){return f.pbkdf2Sync(c,x,e,a,d)};let Oe=Ie;function V(c,x,e,a,d){const t=f.getBytes(c,"password"),b=f.getBytes(x,"salt");return f.hexlify(Oe(t,b,e,a,d))}V._=Ie;V.lock=function(){ke=!0};V.register=function(c){if(ke)throw new Error("pbkdf2 is locked");Oe=c};Object.freeze(V);let Se=!1;const Pe=function(c){return new Uint8Array(f.randomBytes(c))};let ve=Pe;function _(c){return ve(c)}_._=Pe;_.lock=function(){Se=!0};_.register=function(c){if(Se)throw new Error("randomBytes is locked");ve=c};Object.freeze(_);const y=(c,x)=>c<<x|c>>>32-x;function oe(c,x,e,a,d,t){let b=c[x++]^e[a++],n=c[x++]^e[a++],r=c[x++]^e[a++],s=c[x++]^e[a++],i=c[x++]^e[a++],o=c[x++]^e[a++],h=c[x++]^e[a++],l=c[x++]^e[a++],m=c[x++]^e[a++],u=c[x++]^e[a++],w=c[x++]^e[a++],p=c[x++]^e[a++],N=c[x++]^e[a++],T=c[x++]^e[a++],M=c[x++]^e[a++],g=c[x++]^e[a++],C=b,F=n,W=r,z=s,Y=i,H=o,J=h,j=l,q=m,X=u,Z=w,Q=p,e0=N,x0=T,a0=M,c0=g;for(let ne=0;ne<8;ne+=2)Y^=y(C+e0|0,7),q^=y(Y+C|0,9),e0^=y(q+Y|0,13),C^=y(e0+q|0,18),X^=y(H+F|0,7),x0^=y(X+H|0,9),F^=y(x0+X|0,13),H^=y(F+x0|0,18),a0^=y(Z+J|0,7),W^=y(a0+Z|0,9),J^=y(W+a0|0,13),Z^=y(J+W|0,18),z^=y(c0+Q|0,7),j^=y(z+c0|0,9),Q^=y(j+z|0,13),c0^=y(Q+j|0,18),F^=y(C+z|0,7),W^=y(F+C|0,9),z^=y(W+F|0,13),C^=y(z+W|0,18),J^=y(H+Y|0,7),j^=y(J+H|0,9),Y^=y(j+J|0,13),H^=y(Y+j|0,18),Q^=y(Z+X|0,7),q^=y(Q+Z|0,9),X^=y(q+Q|0,13),Z^=y(X+q|0,18),e0^=y(c0+a0|0,7),x0^=y(e0+c0|0,9),a0^=y(x0+e0|0,13),c0^=y(a0+x0|0,18);d[t++]=b+C|0,d[t++]=n+F|0,d[t++]=r+W|0,d[t++]=s+z|0,d[t++]=i+Y|0,d[t++]=o+H|0,d[t++]=h+J|0,d[t++]=l+j|0,d[t++]=m+q|0,d[t++]=u+X|0,d[t++]=w+Z|0,d[t++]=p+Q|0,d[t++]=N+e0|0,d[t++]=T+x0|0,d[t++]=M+a0|0,d[t++]=g+c0|0}function o0(c,x,e,a,d){let t=a+0,b=a+16*d;for(let n=0;n<16;n++)e[b+n]=c[x+(2*d-1)*16+n];for(let n=0;n<d;n++,t+=16,x+=16)oe(e,b,c,x,e,t),n>0&&(b+=16),oe(e,t,c,x+=16,e,b)}function Ue(c,x,e){const a=f.checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},e),{N:d,r:t,p:b,dkLen:n,asyncTick:r,maxmem:s,onProgress:i}=a;if(f.number(d),f.number(t),f.number(b),f.number(n),f.number(r),f.number(s),i!==void 0&&typeof i!="function")throw new Error("progressCb should be function");const o=128*t,h=o/4;if(d<=1||d&d-1||d>=2**(o/8)||d>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(b<0||b>(2**32-1)*32/o)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(n<0||n>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const l=o*(d+b);if(l>s)throw new Error(`Scrypt: parameters too large, ${l} (128 * r * (N + p)) > ${s} (maxmem)`);const m=f.pbkdf2(f.sha256,c,x,{c:1,dkLen:o*b}),u=f.u32(m),w=f.u32(new Uint8Array(o*d)),p=f.u32(new Uint8Array(o));let N=()=>{};if(i){const T=2*d*b,M=Math.max(Math.floor(T/1e4),1);let g=0;N=()=>{g++,i&&(!(g%M)||g===T)&&i(g/T)}}return{N:d,r:t,p:b,dkLen:n,blockSize32:h,V:w,B32:u,B:m,tmp:p,blockMixCb:N,asyncTick:r}}function Be(c,x,e,a,d){const t=f.pbkdf2(f.sha256,c,e,{c:1,dkLen:x});return e.fill(0),a.fill(0),d.fill(0),t}function rx(c,x,e){const{N:a,r:d,p:t,dkLen:b,blockSize32:n,V:r,B32:s,B:i,tmp:o,blockMixCb:h}=Ue(c,x,e);for(let l=0;l<t;l++){const m=n*l;for(let u=0;u<n;u++)r[u]=s[m+u];for(let u=0,w=0;u<a-1;u++)o0(r,w,r,w+=n,d),h();o0(r,(a-1)*n,s,m,d),h();for(let u=0;u<a;u++){const w=s[m+n-16]%a;for(let p=0;p<n;p++)o[p]=s[m+p]^r[w*n+p];o0(o,0,s,m,d),h()}}return Be(c,b,i,r,o)}async function sx(c,x,e){const{N:a,r:d,p:t,dkLen:b,blockSize32:n,V:r,B32:s,B:i,tmp:o,blockMixCb:h,asyncTick:l}=Ue(c,x,e);for(let m=0;m<t;m++){const u=n*m;for(let p=0;p<n;p++)r[p]=s[u+p];let w=0;await f.asyncLoop(a-1,l,()=>{o0(r,w,r,w+=n,d),h()}),o0(r,(a-1)*n,s,u,d),h(),await f.asyncLoop(a,l,()=>{const p=s[u+n-16]%a;for(let N=0;N<n;N++)o[N]=s[u+N]^r[p*n+N];o0(o,0,s,u,d),h()})}return Be(c,b,i,r,o)}let Le=!1,Me=!1;const De=async function(c,x,e,a,d,t,b){return await sx(c,x,{N:e,r:a,p:d,dkLen:t,onProgress:b})},$e=function(c,x,e,a,d,t){return rx(c,x,{N:e,r:a,p:d,dkLen:t})};let Fe=De,Ke=$e;async function A0(c,x,e,a,d,t,b){const n=f.getBytes(c,"passwd"),r=f.getBytes(x,"salt");return f.hexlify(await Fe(n,r,e,a,d,t,b))}A0._=De;A0.lock=function(){Me=!0};A0.register=function(c){if(Me)throw new Error("scrypt is locked");Fe=c};Object.freeze(A0);function w0(c,x,e,a,d,t){const b=f.getBytes(c,"passwd"),n=f.getBytes(x,"salt");return f.hexlify(Ke(b,n,e,a,d,t))}w0._=$e;w0.lock=function(){Le=!0};w0.register=function(c){if(Le)throw new Error("scryptSync is locked");Ke=c};Object.freeze(w0);const ix=`Ethereum Signed Message:
2
2
  `;function ox(c){return typeof c=="string"&&(c=f.toUtf8Bytes(c)),f.keccak256(f.concat([f.toUtf8Bytes(ix),f.toUtf8Bytes(String(c.length)),c]))}var G,t0;const te=class te extends f.AbstractSigner{constructor(e){super(e.provider);A(this,"signer");U(this,G);U(this,t0);f.defineProperties(this,{signer:e}),I(this,G,null),I(this,t0,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new te(this.signer.connect(e))}async getNonce(e){if(e==="pending"){k(this,G)==null&&I(this,G,super.getNonce("pending"));const a=k(this,t0);return await k(this,G)+a}return super.getNonce(e)}increment(){se(this,t0)._++}reset(){I(this,t0,0),I(this,G,null)}async sendTransaction(e){const a=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await a,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,a,d){return this.signer.signTypedData(e,a,d)}};G=new WeakMap,t0=new WeakMap;let q0=te;var h0;const be=class be extends f.AbstractSigner{constructor(e,a){super(a);A(this,"address");U(this,h0);f.assertArgument(e&&typeof e.sign=="function","invalid private key","privateKey","[ REDACTED ]"),I(this,h0,e);const d=f.computeAddress(this.signingKey.publicKey);f.defineProperties(this,{address:d})}get signingKey(){return k(this,h0)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new be(k(this,h0),e)}async signTransaction(e){e=f.copyRequest(e);const{to:a,from:d}=await f.resolveProperties({to:e.to?f.resolveAddress(e.to,this.provider):void 0,from:e.from?f.resolveAddress(e.from,this.provider):void 0});a!=null&&(e.to=a),d!=null&&(e.from=d),e.from!=null&&(f.assertArgument(f.getAddress(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const t=f.Transaction.from(e);return t.signature=this.signingKey.sign(t.unsignedHash),t.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign(ox(e)).serialized}async signTypedData(e,a,d){const t=await f.TypedDataEncoder.resolveNames(e,a,d,async b=>{f.assert(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:b}});const n=await this.provider.resolveName(b);return f.assert(n!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:b}),n});return this.signingKey.sign(f.TypedDataEncoder.hash(t.domain,a,t.value)).serialized}};h0=new WeakMap;let $0=be;const F0=" !#$%&'()*+,-./<=>?@[]^_`{|}~",lx=/^[a-z]*$/i;function le(c,x){let e=97;return c.reduce((a,d)=>(d===x?e++:d.match(lx)?a.push(String.fromCharCode(e)+d):(e=97,a.push(d)),a),[])}function hx(c,x){for(let d=F0.length-1;d>=0;d--)c=c.split(F0[d]).join(x.substring(2*d,2*d+2));const e=[],a=c.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(d,t,b,n)=>{if(b)for(let r=parseInt(b);r>=0;r--)e.push(";");else e.push(t.toLowerCase());return""});if(a)throw new Error(`leftovers: ${JSON.stringify(a)}`);return le(le(e,";"),":")}function ux(c){return f.assertArgument(c[0]==="0","unsupported auwl data","data",c),hx(c.substring(1+2*F0.length),c.substring(1,1+2*F0.length))}class yx{constructor(x){A(this,"locale");f.defineProperties(this,{locale:x})}split(x){return x.toLowerCase().split(/\s+/g)}join(x){return x.join(" ")}}var u0,I0,b0,O0,X0;class px extends yx{constructor(e,a,d){super(e);U(this,O0);U(this,u0);U(this,I0);U(this,b0);I(this,u0,a),I(this,I0,d),I(this,b0,null)}get _data(){return k(this,u0)}_decodeWords(){return ux(k(this,u0))}getWord(e){const a=B(this,O0,X0).call(this);return f.assertArgument(e>=0&&e<a.length,`invalid word index: ${e}`,"index",e),a[e]}getWordIndex(e){return B(this,O0,X0).call(this).indexOf(e)}}u0=new WeakMap,I0=new WeakMap,b0=new WeakMap,O0=new WeakSet,X0=function(){if(k(this,b0)==null){const e=this._decodeWords();if(f.id(e.join(`
3
3
  `)+`
4
- `)!==k(this,I0))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);I(this,b0,e)}return k(this,b0)};const mx="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",gx="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let V0=null;class r0 extends px{constructor(){super("en",mx,gx)}static wordlist(){return V0==null&&(V0=new r0),V0}}function _e(c){return(1<<c)-1<<8-c&255}function Ax(c){return(1<<c)-1&255}function W0(c,x){f.assertNormalize("NFKD"),x==null&&(x=r0.wordlist());const e=x.split(c);f.assertArgument(e.length%3===0&&e.length>=12&&e.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const a=new Uint8Array(Math.ceil(11*e.length/8));let d=0;for(let s=0;s<e.length;s++){let i=x.getWordIndex(e[s].normalize("NFKD"));f.assertArgument(i>=0,`invalid mnemonic word at index ${s}`,"mnemonic","[ REDACTED ]");for(let o=0;o<11;o++)i&1<<10-o&&(a[d>>3]|=1<<7-d%8),d++}const t=32*e.length/3,b=e.length/3,n=_e(b),r=f.getBytes(f.sha256$1(a.slice(0,t/8)))[0]&n;return f.assertArgument(r===(a[a.length-1]&n),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),f.hexlify(a.slice(0,t/8))}function z0(c,x){f.assertArgument(c.length%4===0&&c.length>=16&&c.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),x==null&&(x=r0.wordlist());const e=[0];let a=11;for(let b=0;b<c.length;b++)a>8?(e[e.length-1]<<=8,e[e.length-1]|=c[b],a-=8):(e[e.length-1]<<=a,e[e.length-1]|=c[b]>>8-a,e.push(c[b]&Ax(8-a)),a+=3);const d=c.length/4,t=parseInt(f.sha256$1(c).substring(2,4),16)&_e(d);return e[e.length-1]<<=d,e[e.length-1]|=t>>8-d,x.join(e.map(b=>x.getWord(b)))}const Y0={};class y0{constructor(x,e,a,d,t){A(this,"phrase");A(this,"password");A(this,"wordlist");A(this,"entropy");d==null&&(d=""),t==null&&(t=r0.wordlist()),f.assertPrivate(x,Y0,"Mnemonic"),f.defineProperties(this,{phrase:a,password:d,wordlist:t,entropy:e})}computeSeed(){const x=f.toUtf8Bytes("mnemonic"+this.password,"NFKD");return V(f.toUtf8Bytes(this.phrase,"NFKD"),x,2048,64,"sha512")}static fromPhrase(x,e,a){const d=W0(x,a);return x=z0(f.getBytes(d),a),new y0(Y0,d,x,e,a)}static fromEntropy(x,e,a){const d=f.getBytes(x,"entropy"),t=z0(d,a);return new y0(Y0,f.hexlify(d),t,e,a)}static entropyToPhrase(x,e){const a=f.getBytes(x,"entropy");return z0(a,e)}static phraseToEntropy(x,e){return W0(x,e)}static isValidMnemonic(x,e){try{return W0(x,e),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var R=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},H0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},D0,P,D;const wx={16:10,24:12,32:14},Ex=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],O=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],L0=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Nx=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Rx=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Tx=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Cx=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],kx=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Ix=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Ox=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Sx=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Px=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],vx=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Ux=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Bx=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function J0(c){const x=[];for(let e=0;e<c.length;e+=4)x.push(c[e]<<24|c[e+1]<<16|c[e+2]<<8|c[e+3]);return x}class de{get key(){return R(this,D0,"f").slice()}constructor(x){if(D0.set(this,void 0),P.set(this,void 0),D.set(this,void 0),!(this instanceof de))throw Error("AES must be instanitated with `new`");H0(this,D0,new Uint8Array(x),"f");const e=wx[this.key.length];if(e==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");H0(this,D,[],"f"),H0(this,P,[],"f");for(let i=0;i<=e;i++)R(this,D,"f").push([0,0,0,0]),R(this,P,"f").push([0,0,0,0]);const a=(e+1)*4,d=this.key.length/4,t=J0(this.key);let b;for(let i=0;i<d;i++)b=i>>2,R(this,D,"f")[b][i%4]=t[i],R(this,P,"f")[e-b][i%4]=t[i];let n=0,r=d,s;for(;r<a;){if(s=t[d-1],t[0]^=O[s>>16&255]<<24^O[s>>8&255]<<16^O[s&255]<<8^O[s>>24&255]^Ex[n]<<24,n+=1,d!=8)for(let l=1;l<d;l++)t[l]^=t[l-1];else{for(let l=1;l<d/2;l++)t[l]^=t[l-1];s=t[d/2-1],t[d/2]^=O[s&255]^O[s>>8&255]<<8^O[s>>16&255]<<16^O[s>>24&255]<<24;for(let l=d/2+1;l<d;l++)t[l]^=t[l-1]}let i=0,o,h;for(;i<d&&r<a;)o=r>>2,h=r%4,R(this,D,"f")[o][h]=t[i],R(this,P,"f")[e-o][h]=t[i++],r++}for(let i=1;i<e;i++)for(let o=0;o<4;o++)s=R(this,P,"f")[i][o],R(this,P,"f")[i][o]=Px[s>>24&255]^vx[s>>16&255]^Ux[s>>8&255]^Bx[s&255]}encrypt(x){if(x.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const e=R(this,D,"f").length-1,a=[0,0,0,0];let d=J0(x);for(let n=0;n<4;n++)d[n]^=R(this,D,"f")[0][n];for(let n=1;n<e;n++){for(let r=0;r<4;r++)a[r]=Nx[d[r]>>24&255]^Rx[d[(r+1)%4]>>16&255]^Tx[d[(r+2)%4]>>8&255]^Cx[d[(r+3)%4]&255]^R(this,D,"f")[n][r];d=a.slice()}const t=new Uint8Array(16);let b=0;for(let n=0;n<4;n++)b=R(this,D,"f")[e][n],t[4*n]=(O[d[n]>>24&255]^b>>24)&255,t[4*n+1]=(O[d[(n+1)%4]>>16&255]^b>>16)&255,t[4*n+2]=(O[d[(n+2)%4]>>8&255]^b>>8)&255,t[4*n+3]=(O[d[(n+3)%4]&255]^b)&255;return t}decrypt(x){if(x.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const e=R(this,P,"f").length-1,a=[0,0,0,0];let d=J0(x);for(let n=0;n<4;n++)d[n]^=R(this,P,"f")[0][n];for(let n=1;n<e;n++){for(let r=0;r<4;r++)a[r]=kx[d[r]>>24&255]^Ix[d[(r+3)%4]>>16&255]^Ox[d[(r+2)%4]>>8&255]^Sx[d[(r+1)%4]&255]^R(this,P,"f")[n][r];d=a.slice()}const t=new Uint8Array(16);let b=0;for(let n=0;n<4;n++)b=R(this,P,"f")[e][n],t[4*n]=(L0[d[n]>>24&255]^b>>24)&255,t[4*n+1]=(L0[d[(n+3)%4]>>16&255]^b>>16)&255,t[4*n+2]=(L0[d[(n+2)%4]>>8&255]^b>>8)&255,t[4*n+3]=(L0[d[(n+1)%4]&255]^b)&255;return t}}D0=new WeakMap,P=new WeakMap,D=new WeakMap;class Ge{constructor(x,e,a){if(a&&!(this instanceof a))throw new Error(`${x} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new de(e)},name:{enumerable:!0,value:x}})}}var M0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},s0=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},N0,K;class fe extends Ge{constructor(x,e){if(super("ECC",x,fe),N0.set(this,void 0),K.set(this,void 0),e){if(e.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");M0(this,N0,new Uint8Array(e),"f")}else M0(this,N0,new Uint8Array(16),"f");M0(this,K,this.iv,"f")}get iv(){return new Uint8Array(s0(this,N0,"f"))}encrypt(x){if(x.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(x.length);for(let a=0;a<x.length;a+=16){for(let d=0;d<16;d++)s0(this,K,"f")[d]^=x[a+d];M0(this,K,this.aes.encrypt(s0(this,K,"f")),"f"),e.set(s0(this,K,"f"),a)}return e}decrypt(x){if(x.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const e=new Uint8Array(x.length);for(let a=0;a<x.length;a+=16){const d=this.aes.decrypt(x.subarray(a,a+16));for(let t=0;t<16;t++)e[a+t]=d[t]^s0(this,K,"f")[t],s0(this,K,"f")[t]=x[a+t]}return e}}N0=new WeakMap,K=new WeakMap;var i0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},S=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},R0,d0,v;class p0 extends Ge{constructor(x,e){super("CTR",x,p0),R0.set(this,void 0),d0.set(this,void 0),v.set(this,void 0),i0(this,v,new Uint8Array(16),"f"),S(this,v,"f").fill(0),i0(this,R0,S(this,v,"f"),"f"),i0(this,d0,16,"f"),e==null&&(e=1),typeof e=="number"?this.setCounterValue(e):this.setCounterBytes(e)}get counter(){return new Uint8Array(S(this,v,"f"))}setCounterValue(x){if(!Number.isInteger(x)||x<0||x>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let e=15;e>=0;--e)S(this,v,"f")[e]=x%256,x=Math.floor(x/256)}setCounterBytes(x){if(x.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");S(this,v,"f").set(x)}increment(){for(let x=15;x>=0;x--)if(S(this,v,"f")[x]===255)S(this,v,"f")[x]=0;else{S(this,v,"f")[x]++;break}}encrypt(x){var e,a;const d=new Uint8Array(x);for(let t=0;t<d.length;t++)S(this,d0,"f")===16&&(i0(this,R0,this.aes.encrypt(S(this,v,"f")),"f"),i0(this,d0,0,"f"),this.increment()),d[t]^=S(this,R0,"f")[i0(this,d0,(a=S(this,d0,"f"),e=a++,a),"f"),e];return d}decrypt(x){return this.encrypt(x)}}R0=new WeakMap,d0=new WeakMap,v=new WeakMap;function Lx(c){if(c.length<16)throw new TypeError("PKCS#7 invalid length");const x=c[c.length-1];if(x>16)throw new TypeError("PKCS#7 padding byte out of range");const e=c.length-x;for(let a=0;a<x;a++)if(c[e+a]!==x)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(c.subarray(0,e))}function Ve(c){return typeof c=="string"&&!c.startsWith("0x")&&(c="0x"+c),f.getBytesCopy(c)}function E0(c,x){for(c=String(c);c.length<x;)c="0"+c;return c}function v0(c){return typeof c=="string"?f.toUtf8Bytes(c,"NFKC"):f.getBytesCopy(c)}function E(c,x){const e=x.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);f.assertArgument(e!=null,"invalid path","path",x);const a=e[1],d=e[3],t=e[4]==="!";let b=c;for(const n of a.toLowerCase().split(".")){if(Array.isArray(b)){if(!n.match(/^[0-9]+$/))break;b=b[parseInt(n)]}else if(typeof b=="object"){let r=null;for(const s in b)if(s.toLowerCase()===n){r=b[s];break}b=r}else b=null;if(b==null)break}if(f.assertArgument(!t||b!=null,"missing required value","path",a),d&&b!=null){if(d==="int"){if(typeof b=="string"&&b.match(/^-?[0-9]+$/))return parseInt(b);if(Number.isSafeInteger(b))return b}if(d==="number"&&typeof b=="string"&&b.match(/^-?[0-9.]*$/))return parseFloat(b);if(d==="data"&&typeof b=="string")return Ve(b);if(d==="array"&&Array.isArray(b)||d===typeof b)return b;f.assertArgument(!1,`wrong type found for ${d} `,"path",a)}return b}const We="m/44'/60'/0'/0/0";function he(c){try{const x=JSON.parse(c);if((x.version!=null?parseInt(x.version):0)===3)return!0}catch{}return!1}function Mx(c,x,e){if(E(c,"crypto.cipher:string")==="aes-128-ctr"){const d=E(c,"crypto.cipherparams.iv:data!"),t=new p0(x,d);return f.hexlify(t.decrypt(e))}f.assert(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function K0(c,x){const e=f.getBytes(x),a=E(c,"crypto.ciphertext:data!"),d=f.hexlify(f.keccak256(f.concat([e.slice(16,32),a]))).substring(2);f.assertArgument(d===E(c,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const t=Mx(c,e.slice(0,16),a),b=f.computeAddress(t);if(c.address){let s=c.address.toLowerCase();s.startsWith("0x")||(s="0x"+s),f.assertArgument(f.getAddress(s)===b,"keystore address/privateKey mismatch","address",c.address)}const n={address:b,privateKey:t};if(E(c,"x-ethers.version:string")==="0.1"){const s=e.slice(32,64),i=E(c,"x-ethers.mnemonicCiphertext:data!"),o=E(c,"x-ethers.mnemonicCounter:data!"),h=new p0(s,o);n.mnemonic={path:E(c,"x-ethers.path:string")||We,locale:E(c,"x-ethers.locale:string")||"en",entropy:f.hexlify(f.getBytes(h.decrypt(i)))}}return n}function ze(c){const x=E(c,"crypto.kdf:string");if(x&&typeof x=="string"){if(x.toLowerCase()==="scrypt"){const e=E(c,"crypto.kdfparams.salt:data!"),a=E(c,"crypto.kdfparams.n:int!"),d=E(c,"crypto.kdfparams.r:int!"),t=E(c,"crypto.kdfparams.p:int!");f.assertArgument(a>0&&(a&a-1)===0,"invalid kdf.N","kdf.N",a),f.assertArgument(d>0&&t>0,"invalid kdf","kdf",x);const b=E(c,"crypto.kdfparams.dklen:int!");return f.assertArgument(b===32,"invalid kdf.dklen","kdf.dflen",b),{name:"scrypt",salt:e,N:a,r:d,p:t,dkLen:64}}else if(x.toLowerCase()==="pbkdf2"){const e=E(c,"crypto.kdfparams.salt:data!"),a=E(c,"crypto.kdfparams.prf:string!"),d=a.split("-").pop();f.assertArgument(d==="sha256"||d==="sha512","invalid kdf.pdf","kdf.pdf",a);const t=E(c,"crypto.kdfparams.c:int!"),b=E(c,"crypto.kdfparams.dklen:int!");return f.assertArgument(b===32,"invalid kdf.dklen","kdf.dklen",b),{name:"pbkdf2",salt:e,count:t,dkLen:b,algorithm:d}}}f.assertArgument(!1,"unsupported key-derivation function","kdf",x)}function Dx(c,x){const e=JSON.parse(c),a=v0(x),d=ze(e);if(d.name==="pbkdf2"){const{salt:o,count:h,dkLen:l,algorithm:m}=d,u=V(a,o,h,l,m);return K0(e,u)}f.assert(d.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:d});const{salt:t,N:b,r:n,p:r,dkLen:s}=d,i=w0(a,t,b,n,r,s);return K0(e,i)}function ue(c){return new Promise(x=>{setTimeout(()=>{x()},c)})}async function $x(c,x,e){const a=JSON.parse(c),d=v0(x),t=ze(a);if(t.name==="pbkdf2"){e&&(e(0),await ue(0));const{salt:h,count:l,dkLen:m,algorithm:u}=t,w=V(d,h,l,m,u);return e&&(e(1),await ue(0)),K0(a,w)}f.assert(t.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:t});const{salt:b,N:n,r,p:s,dkLen:i}=t,o=await A0(d,b,n,r,s,i,e);return K0(a,o)}function Ye(c){const x=c.salt!=null?f.getBytes(c.salt,"options.salt"):_(32);let e=1<<17,a=8,d=1;return c.scrypt&&(c.scrypt.N&&(e=c.scrypt.N),c.scrypt.r&&(a=c.scrypt.r),c.scrypt.p&&(d=c.scrypt.p)),f.assertArgument(typeof e=="number"&&e>0&&Number.isSafeInteger(e)&&(BigInt(e)&BigInt(e-1))===BigInt(0),"invalid scrypt N parameter","options.N",e),f.assertArgument(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt r parameter","options.r",a),f.assertArgument(typeof d=="number"&&d>0&&Number.isSafeInteger(d),"invalid scrypt p parameter","options.p",d),{name:"scrypt",dkLen:32,salt:x,N:e,r:a,p:d}}function He(c,x,e,a){const d=f.getBytes(e.privateKey,"privateKey"),t=a.iv!=null?f.getBytes(a.iv,"options.iv"):_(16);f.assertArgument(t.length===16,"invalid options.iv length","options.iv",a.iv);const b=a.uuid!=null?f.getBytes(a.uuid,"options.uuid"):_(16);f.assertArgument(b.length===16,"invalid options.uuid length","options.uuid",a.iv);const n=c.slice(0,16),r=c.slice(16,32),s=new p0(n,t),i=f.getBytes(s.encrypt(d)),o=f.keccak256(f.concat([r,i])),h={address:e.address.substring(2).toLowerCase(),id:ex(b),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:f.hexlify(t).substring(2)},ciphertext:f.hexlify(i).substring(2),kdf:"scrypt",kdfparams:{salt:f.hexlify(x.salt).substring(2),n:x.N,dklen:32,p:x.p,r:x.r},mac:o.substring(2)}};if(e.mnemonic){const l=a.client!=null?a.client:`ethers/${f.version}`,m=e.mnemonic.path||We,u=e.mnemonic.locale||"en",w=c.slice(32,64),p=f.getBytes(e.mnemonic.entropy,"account.mnemonic.entropy"),N=_(16),T=new p0(w,N),M=f.getBytes(T.encrypt(p)),g=new Date,F="UTC--"+(g.getUTCFullYear()+"-"+E0(g.getUTCMonth()+1,2)+"-"+E0(g.getUTCDate(),2)+"T"+E0(g.getUTCHours(),2)+"-"+E0(g.getUTCMinutes(),2)+"-"+E0(g.getUTCSeconds(),2)+".0Z")+"--"+h.address;h["x-ethers"]={client:l,gethFilename:F,path:m,locale:u,mnemonicCounter:f.hexlify(N).substring(2),mnemonicCiphertext:f.hexlify(M).substring(2),version:"0.1"}}return JSON.stringify(h)}function Je(c,x,e){e==null&&(e={});const a=v0(x),d=Ye(e),t=w0(a,d.salt,d.N,d.r,d.p,64);return He(f.getBytes(t),d,c,e)}async function je(c,x,e){e==null&&(e={});const a=v0(x),d=Ye(e),t=await A0(a,d.salt,d.N,d.r,d.p,64,e.progressCallback);return He(f.getBytes(t),d,c,e)}const j0="m/44'/60'/0'/0/0",Fx=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),l0=2147483648,Kx=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_x="0123456789abcdef";function _0(c,x){let e="";for(;c;)e=_x[c%16]+e,c=Math.trunc(c/16);for(;e.length<x*2;)e="0"+e;return"0x"+e}function Z0(c){const x=f.getBytes(c),e=f.dataSlice(f.sha256$1(f.sha256$1(x)),0,4),a=f.concat([x,e]);return f.encodeBase58(a)}const $={};function qe(c,x,e,a){const d=new Uint8Array(37);c&l0?(f.assert(a!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),d.set(f.getBytes(a),1)):d.set(f.getBytes(e));for(let b=24;b>=0;b-=8)d[33+(b>>3)]=c>>24-b&255;const t=f.getBytes(m0("sha512",x,d));return{IL:t.slice(0,32),IR:t.slice(32)}}function Xe(c,x){const e=x.split("/");f.assertArgument(e.length>0,"invalid path","path",x),e[0]==="m"&&(f.assertArgument(c.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${c.depth}`,"path",x),e.shift());let a=c;for(let d=0;d<e.length;d++){const t=e[d];if(t.match(/^[0-9]+'$/)){const b=parseInt(t.substring(0,t.length-1));f.assertArgument(b<l0,"invalid path index",`path[${d}]`,t),a=a.deriveChild(l0+b)}else if(t.match(/^[0-9]+$/)){const b=parseInt(t);f.assertArgument(b<l0,"invalid path index",`path[${d}]`,t),a=a.deriveChild(b)}else f.assertArgument(!1,"invalid path component",`path[${d}]`,t)}return a}var S0,Q0,n0,T0;const L=class L extends $0{constructor(e,a,d,t,b,n,r,s,i){super(a,i);U(this,S0);A(this,"publicKey");A(this,"fingerprint");A(this,"parentFingerprint");A(this,"mnemonic");A(this,"chainCode");A(this,"path");A(this,"index");A(this,"depth");f.assertPrivate(e,$,"HDNodeWallet"),f.defineProperties(this,{publicKey:a.compressedPublicKey});const o=f.dataSlice(g0(f.sha256$1(this.publicKey)),0,4);f.defineProperties(this,{parentFingerprint:d,fingerprint:o,chainCode:t,path:b,index:n,depth:r}),f.defineProperties(this,{mnemonic:s})}connect(e){return new L($,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}async encrypt(e,a){return await je(B(this,S0,Q0).call(this),e,{progressCallback:a})}encryptSync(e){return Je(B(this,S0,Q0).call(this),e)}get extendedKey(){return f.assert(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Z0(f.concat(["0x0488ADE4",_0(this.depth,1),this.parentFingerprint,_0(this.index,4),this.chainCode,f.concat(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new k0($,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const a=f.getNumber(e,"index");f.assertArgument(a<=4294967295,"invalid index","index",a);let d=this.path;d&&(d+="/"+(a&2147483647),a&l0&&(d+="'"));const{IR:t,IL:b}=qe(a,this.chainCode,this.publicKey,this.privateKey),n=new f.SigningKey(f.toBeHex((f.toBigInt(b)+BigInt(this.privateKey))%Kx,32));return new L($,n,this.fingerprint,f.hexlify(t),d,a,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return Xe(this,e)}static fromExtendedKey(e){const a=f.toBeArray(f.decodeBase58(e));f.assertArgument(a.length===82||Z0(a.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const d=a[4],t=f.hexlify(a.slice(5,9)),b=parseInt(f.hexlify(a.slice(9,13)).substring(2),16),n=f.hexlify(a.slice(13,45)),r=a.slice(45,78);switch(f.hexlify(a.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const s=f.hexlify(r);return new k0($,f.computeAddress(s),s,t,n,null,b,d,null)}case"0x0488ade4":case"0x04358394 ":if(r[0]!==0)break;return new L($,new f.SigningKey(r.slice(1)),t,n,null,b,d,null,null)}f.assertArgument(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,a,d){var b;e==null&&(e=""),a==null&&(a=j0),d==null&&(d=r0.wordlist());const t=y0.fromEntropy(_(16),e,d);return B(b=L,n0,T0).call(b,t.computeSeed(),t).derivePath(a)}static fromMnemonic(e,a){var d;return a||(a=j0),B(d=L,n0,T0).call(d,e.computeSeed(),e).derivePath(a)}static fromPhrase(e,a,d,t){var n;a==null&&(a=""),d==null&&(d=j0),t==null&&(t=r0.wordlist());const b=y0.fromPhrase(e,a,t);return B(n=L,n0,T0).call(n,b.computeSeed(),b).derivePath(d)}static fromSeed(e){var a;return B(a=L,n0,T0).call(a,e,null)}};S0=new WeakSet,Q0=function(){const e={address:this.address,privateKey:this.privateKey},a=this.mnemonic;return this.path&&a&&a.wordlist.locale==="en"&&a.password===""&&(e.mnemonic={path:this.path,locale:"en",entropy:a.entropy}),e},n0=new WeakSet,T0=function(e,a){f.assertArgument(f.isBytesLike(e),"invalid seed","seed","[REDACTED]");const d=f.getBytes(e,"seed");f.assertArgument(d.length>=16&&d.length<=64,"invalid seed","seed","[REDACTED]");const t=f.getBytes(m0("sha512",Fx,d)),b=new f.SigningKey(f.hexlify(t.slice(0,32)));return new L($,b,"0x00000000",f.hexlify(t.slice(32)),"m",0,0,a,null)},U(L,n0);let C0=L;class k0 extends f.VoidSigner{constructor(e,a,d,t,b,n,r,s,i){super(a,i);A(this,"publicKey");A(this,"fingerprint");A(this,"parentFingerprint");A(this,"chainCode");A(this,"path");A(this,"index");A(this,"depth");f.assertPrivate(e,$,"HDNodeVoidWallet"),f.defineProperties(this,{publicKey:d});const o=f.dataSlice(g0(f.sha256$1(d)),0,4);f.defineProperties(this,{publicKey:d,fingerprint:o,parentFingerprint:t,chainCode:b,path:n,index:r,depth:s})}connect(e){return new k0($,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return f.assert(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Z0(f.concat(["0x0488B21E",_0(this.depth,1),this.parentFingerprint,_0(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(e){const a=f.getNumber(e,"index");f.assertArgument(a<=4294967295,"invalid index","index",a);let d=this.path;d&&(d+="/"+(a&2147483647),a&l0&&(d+="'"));const{IR:t,IL:b}=qe(a,this.chainCode,this.publicKey,null),n=f.SigningKey.addPoints(b,this.publicKey,!0),r=f.computeAddress(n);return new k0($,r,n,this.fingerprint,f.hexlify(t),d,a,this.depth+1,this.provider)}derivePath(e){return Xe(this,e)}}function ye(c){try{if(JSON.parse(c).encseed)return!0}catch{}return!1}function pe(c,x){const e=JSON.parse(c),a=v0(x),d=f.getAddress(E(e,"ethaddr:string!")),t=Ve(E(e,"encseed:string!"));f.assertArgument(t&&t.length%16===0,"invalid encseed","json",c);const b=f.getBytes(V(a,a,2e3,32,"sha256")).slice(0,16),n=t.slice(0,16),r=t.slice(16),s=new fe(b,n),i=Lx(f.getBytes(s.decrypt(r)));let o="";for(let h=0;h<i.length;h++)o+=String.fromCharCode(i[h]);return{address:d,privateKey:f.id(o)}}function me(c){return new Promise(x=>{setTimeout(()=>{x()},c)})}var P0,xe;const f0=class f0 extends $0{constructor(x,e){typeof x=="string"&&!x.startsWith("0x")&&(x="0x"+x);let a=typeof x=="string"?new f.SigningKey(x):x;super(a,e)}connect(x){return new f0(this.signingKey,x)}async encrypt(x,e){const a={address:this.address,privateKey:this.privateKey};return await je(a,x,{progressCallback:e})}encryptSync(x){const e={address:this.address,privateKey:this.privateKey};return Je(e,x)}static async fromEncryptedJson(x,e,a){var t;let d=null;return he(x)?d=await $x(x,e,a):ye(x)&&(a&&(a(0),await me(0)),d=pe(x,e),a&&(a(1),await me(0))),B(t=f0,P0,xe).call(t,d)}static fromEncryptedJsonSync(x,e){var d;let a=null;return he(x)?a=Dx(x,e):ye(x)?a=pe(x,e):f.assertArgument(!1,"invalid JSON wallet","json","[ REDACTED ]"),B(d=f0,P0,xe).call(d,a)}static createRandom(x){const e=C0.createRandom();return x?e.connect(x):e}static fromPhrase(x,e){const a=C0.fromPhrase(x);return e?a.connect(e):a}};P0=new WeakSet,xe=function(x){if(f.assertArgument(x,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in x&&x.mnemonic&&x.mnemonic.locale==="en"){const a=y0.fromEntropy(x.mnemonic.entropy),d=C0.fromMnemonic(a,x.mnemonic.path);if(d.address===x.address&&d.privateKey===x.privateKey)return d;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new f0(x.privateKey);return f.assertArgument(e.address===x.address,"address/privateKey mismatch","json","[ REDACTED ]"),e},U(f0,P0);let ee=f0;async function Gx(c,x,e){const a=typeof x=="string"?new ee(x,c):x,d=(e==null?void 0:e.chain)??(await f.EvmPlatform.chainFromRpc(c))[1],t=new q0(a);if(t.provider===null)try{t.connect(c)}catch(b){console.error("Cannot connect to network for signer",b)}return new Vx(d,await a.getAddress(),t,e)}class Vx extends f.PlatformNativeSigner{constructor(e,a,d,t){super(e,a,d);A(this,"opts");this.opts=t}chain(){return this._chain}address(){return this._address}async sign(e){var i,o,h,l,m,u,w;const a=this.chain(),d=[];let t=500000n,b=100000000000n,n=1500000000n,r=100000000n;if(((i=this.opts)==null?void 0:i.overrides)===void 0&&a!=="Celo"){const p=await this._signer.provider.getFeeData();b=p.gasPrice??b,n=p.maxFeePerGas??n,r=p.maxPriorityFeePerGas??r}((o=this.opts)==null?void 0:o.gasLimit)!==void 0&&(t=this.opts.gasLimit),((h=this.opts)==null?void 0:h.maxGasLimit)!==void 0&&(t=t>((l=this.opts)==null?void 0:l.maxGasLimit)?(m=this.opts)==null?void 0:m.maxGasLimit:t);const s=a==="Oasis"?{gasLimit:t,gasPrice:b,type:0}:{gasLimit:t,maxFeePerGas:n,maxPriorityFeePerGas:r};for(const p of e){const{transaction:N,description:T}=p;(u=this.opts)!=null&&u.debug&&console.log(`Signing: ${T} for ${this.address()}`);const M={...N,...s,from:this.address(),nonce:await this._signer.getNonce(),...(w=this.opts)==null?void 0:w.overrides};d.push(await this._signer.signTransaction(M))}return d}}const Wx={Address:f.EvmAddress,Platform:f.EvmPlatform,getSigner:Gx,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-rccBLIiF.js")).then(c=>c.index$1),TokenBridge:()=>Promise.resolve().then(()=>require("./index-Gl0_8XA4.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-C7zo-CWd.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-xNnSGAtc.js")),TBTCBridge:()=>Promise.resolve().then(()=>require("./index-CNF58nPK.js"))},getChain:(c,x,e)=>new f.EvmChain(x,new f.EvmPlatform(c,f.applyChainsConfigConfigOverrides(c,f._platform,{[x]:e})))};exports.default=Wx;
4
+ `)!==k(this,I0))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);I(this,b0,e)}return k(this,b0)};const mx="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",gx="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let V0=null;class r0 extends px{constructor(){super("en",mx,gx)}static wordlist(){return V0==null&&(V0=new r0),V0}}function _e(c){return(1<<c)-1<<8-c&255}function Ax(c){return(1<<c)-1&255}function W0(c,x){f.assertNormalize("NFKD"),x==null&&(x=r0.wordlist());const e=x.split(c);f.assertArgument(e.length%3===0&&e.length>=12&&e.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const a=new Uint8Array(Math.ceil(11*e.length/8));let d=0;for(let s=0;s<e.length;s++){let i=x.getWordIndex(e[s].normalize("NFKD"));f.assertArgument(i>=0,`invalid mnemonic word at index ${s}`,"mnemonic","[ REDACTED ]");for(let o=0;o<11;o++)i&1<<10-o&&(a[d>>3]|=1<<7-d%8),d++}const t=32*e.length/3,b=e.length/3,n=_e(b),r=f.getBytes(f.sha256$1(a.slice(0,t/8)))[0]&n;return f.assertArgument(r===(a[a.length-1]&n),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),f.hexlify(a.slice(0,t/8))}function z0(c,x){f.assertArgument(c.length%4===0&&c.length>=16&&c.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),x==null&&(x=r0.wordlist());const e=[0];let a=11;for(let b=0;b<c.length;b++)a>8?(e[e.length-1]<<=8,e[e.length-1]|=c[b],a-=8):(e[e.length-1]<<=a,e[e.length-1]|=c[b]>>8-a,e.push(c[b]&Ax(8-a)),a+=3);const d=c.length/4,t=parseInt(f.sha256$1(c).substring(2,4),16)&_e(d);return e[e.length-1]<<=d,e[e.length-1]|=t>>8-d,x.join(e.map(b=>x.getWord(b)))}const Y0={};class y0{constructor(x,e,a,d,t){A(this,"phrase");A(this,"password");A(this,"wordlist");A(this,"entropy");d==null&&(d=""),t==null&&(t=r0.wordlist()),f.assertPrivate(x,Y0,"Mnemonic"),f.defineProperties(this,{phrase:a,password:d,wordlist:t,entropy:e})}computeSeed(){const x=f.toUtf8Bytes("mnemonic"+this.password,"NFKD");return V(f.toUtf8Bytes(this.phrase,"NFKD"),x,2048,64,"sha512")}static fromPhrase(x,e,a){const d=W0(x,a);return x=z0(f.getBytes(d),a),new y0(Y0,d,x,e,a)}static fromEntropy(x,e,a){const d=f.getBytes(x,"entropy"),t=z0(d,a);return new y0(Y0,f.hexlify(d),t,e,a)}static entropyToPhrase(x,e){const a=f.getBytes(x,"entropy");return z0(a,e)}static phraseToEntropy(x,e){return W0(x,e)}static isValidMnemonic(x,e){try{return W0(x,e),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var R=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},H0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},D0,P,D;const wx={16:10,24:12,32:14},Ex=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],O=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],L0=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Nx=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Rx=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Tx=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Cx=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],kx=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Ix=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Ox=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Sx=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Px=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],vx=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Ux=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Bx=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function J0(c){const x=[];for(let e=0;e<c.length;e+=4)x.push(c[e]<<24|c[e+1]<<16|c[e+2]<<8|c[e+3]);return x}class de{get key(){return R(this,D0,"f").slice()}constructor(x){if(D0.set(this,void 0),P.set(this,void 0),D.set(this,void 0),!(this instanceof de))throw Error("AES must be instanitated with `new`");H0(this,D0,new Uint8Array(x),"f");const e=wx[this.key.length];if(e==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");H0(this,D,[],"f"),H0(this,P,[],"f");for(let i=0;i<=e;i++)R(this,D,"f").push([0,0,0,0]),R(this,P,"f").push([0,0,0,0]);const a=(e+1)*4,d=this.key.length/4,t=J0(this.key);let b;for(let i=0;i<d;i++)b=i>>2,R(this,D,"f")[b][i%4]=t[i],R(this,P,"f")[e-b][i%4]=t[i];let n=0,r=d,s;for(;r<a;){if(s=t[d-1],t[0]^=O[s>>16&255]<<24^O[s>>8&255]<<16^O[s&255]<<8^O[s>>24&255]^Ex[n]<<24,n+=1,d!=8)for(let l=1;l<d;l++)t[l]^=t[l-1];else{for(let l=1;l<d/2;l++)t[l]^=t[l-1];s=t[d/2-1],t[d/2]^=O[s&255]^O[s>>8&255]<<8^O[s>>16&255]<<16^O[s>>24&255]<<24;for(let l=d/2+1;l<d;l++)t[l]^=t[l-1]}let i=0,o,h;for(;i<d&&r<a;)o=r>>2,h=r%4,R(this,D,"f")[o][h]=t[i],R(this,P,"f")[e-o][h]=t[i++],r++}for(let i=1;i<e;i++)for(let o=0;o<4;o++)s=R(this,P,"f")[i][o],R(this,P,"f")[i][o]=Px[s>>24&255]^vx[s>>16&255]^Ux[s>>8&255]^Bx[s&255]}encrypt(x){if(x.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const e=R(this,D,"f").length-1,a=[0,0,0,0];let d=J0(x);for(let n=0;n<4;n++)d[n]^=R(this,D,"f")[0][n];for(let n=1;n<e;n++){for(let r=0;r<4;r++)a[r]=Nx[d[r]>>24&255]^Rx[d[(r+1)%4]>>16&255]^Tx[d[(r+2)%4]>>8&255]^Cx[d[(r+3)%4]&255]^R(this,D,"f")[n][r];d=a.slice()}const t=new Uint8Array(16);let b=0;for(let n=0;n<4;n++)b=R(this,D,"f")[e][n],t[4*n]=(O[d[n]>>24&255]^b>>24)&255,t[4*n+1]=(O[d[(n+1)%4]>>16&255]^b>>16)&255,t[4*n+2]=(O[d[(n+2)%4]>>8&255]^b>>8)&255,t[4*n+3]=(O[d[(n+3)%4]&255]^b)&255;return t}decrypt(x){if(x.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const e=R(this,P,"f").length-1,a=[0,0,0,0];let d=J0(x);for(let n=0;n<4;n++)d[n]^=R(this,P,"f")[0][n];for(let n=1;n<e;n++){for(let r=0;r<4;r++)a[r]=kx[d[r]>>24&255]^Ix[d[(r+3)%4]>>16&255]^Ox[d[(r+2)%4]>>8&255]^Sx[d[(r+1)%4]&255]^R(this,P,"f")[n][r];d=a.slice()}const t=new Uint8Array(16);let b=0;for(let n=0;n<4;n++)b=R(this,P,"f")[e][n],t[4*n]=(L0[d[n]>>24&255]^b>>24)&255,t[4*n+1]=(L0[d[(n+3)%4]>>16&255]^b>>16)&255,t[4*n+2]=(L0[d[(n+2)%4]>>8&255]^b>>8)&255,t[4*n+3]=(L0[d[(n+1)%4]&255]^b)&255;return t}}D0=new WeakMap,P=new WeakMap,D=new WeakMap;class Ge{constructor(x,e,a){if(a&&!(this instanceof a))throw new Error(`${x} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new de(e)},name:{enumerable:!0,value:x}})}}var M0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},s0=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},N0,K;class fe extends Ge{constructor(x,e){if(super("ECC",x,fe),N0.set(this,void 0),K.set(this,void 0),e){if(e.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");M0(this,N0,new Uint8Array(e),"f")}else M0(this,N0,new Uint8Array(16),"f");M0(this,K,this.iv,"f")}get iv(){return new Uint8Array(s0(this,N0,"f"))}encrypt(x){if(x.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(x.length);for(let a=0;a<x.length;a+=16){for(let d=0;d<16;d++)s0(this,K,"f")[d]^=x[a+d];M0(this,K,this.aes.encrypt(s0(this,K,"f")),"f"),e.set(s0(this,K,"f"),a)}return e}decrypt(x){if(x.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const e=new Uint8Array(x.length);for(let a=0;a<x.length;a+=16){const d=this.aes.decrypt(x.subarray(a,a+16));for(let t=0;t<16;t++)e[a+t]=d[t]^s0(this,K,"f")[t],s0(this,K,"f")[t]=x[a+t]}return e}}N0=new WeakMap,K=new WeakMap;var i0=function(c,x,e,a,d){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!d)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?c!==x||!d:!x.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?d.call(c,e):d?d.value=e:x.set(c,e),e},S=function(c,x,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?c!==x||!a:!x.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:x.get(c)},R0,d0,v;class p0 extends Ge{constructor(x,e){super("CTR",x,p0),R0.set(this,void 0),d0.set(this,void 0),v.set(this,void 0),i0(this,v,new Uint8Array(16),"f"),S(this,v,"f").fill(0),i0(this,R0,S(this,v,"f"),"f"),i0(this,d0,16,"f"),e==null&&(e=1),typeof e=="number"?this.setCounterValue(e):this.setCounterBytes(e)}get counter(){return new Uint8Array(S(this,v,"f"))}setCounterValue(x){if(!Number.isInteger(x)||x<0||x>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let e=15;e>=0;--e)S(this,v,"f")[e]=x%256,x=Math.floor(x/256)}setCounterBytes(x){if(x.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");S(this,v,"f").set(x)}increment(){for(let x=15;x>=0;x--)if(S(this,v,"f")[x]===255)S(this,v,"f")[x]=0;else{S(this,v,"f")[x]++;break}}encrypt(x){var e,a;const d=new Uint8Array(x);for(let t=0;t<d.length;t++)S(this,d0,"f")===16&&(i0(this,R0,this.aes.encrypt(S(this,v,"f")),"f"),i0(this,d0,0,"f"),this.increment()),d[t]^=S(this,R0,"f")[i0(this,d0,(a=S(this,d0,"f"),e=a++,a),"f"),e];return d}decrypt(x){return this.encrypt(x)}}R0=new WeakMap,d0=new WeakMap,v=new WeakMap;function Lx(c){if(c.length<16)throw new TypeError("PKCS#7 invalid length");const x=c[c.length-1];if(x>16)throw new TypeError("PKCS#7 padding byte out of range");const e=c.length-x;for(let a=0;a<x;a++)if(c[e+a]!==x)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(c.subarray(0,e))}function Ve(c){return typeof c=="string"&&!c.startsWith("0x")&&(c="0x"+c),f.getBytesCopy(c)}function E0(c,x){for(c=String(c);c.length<x;)c="0"+c;return c}function v0(c){return typeof c=="string"?f.toUtf8Bytes(c,"NFKC"):f.getBytesCopy(c)}function E(c,x){const e=x.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);f.assertArgument(e!=null,"invalid path","path",x);const a=e[1],d=e[3],t=e[4]==="!";let b=c;for(const n of a.toLowerCase().split(".")){if(Array.isArray(b)){if(!n.match(/^[0-9]+$/))break;b=b[parseInt(n)]}else if(typeof b=="object"){let r=null;for(const s in b)if(s.toLowerCase()===n){r=b[s];break}b=r}else b=null;if(b==null)break}if(f.assertArgument(!t||b!=null,"missing required value","path",a),d&&b!=null){if(d==="int"){if(typeof b=="string"&&b.match(/^-?[0-9]+$/))return parseInt(b);if(Number.isSafeInteger(b))return b}if(d==="number"&&typeof b=="string"&&b.match(/^-?[0-9.]*$/))return parseFloat(b);if(d==="data"&&typeof b=="string")return Ve(b);if(d==="array"&&Array.isArray(b)||d===typeof b)return b;f.assertArgument(!1,`wrong type found for ${d} `,"path",a)}return b}const We="m/44'/60'/0'/0/0";function he(c){try{const x=JSON.parse(c);if((x.version!=null?parseInt(x.version):0)===3)return!0}catch{}return!1}function Mx(c,x,e){if(E(c,"crypto.cipher:string")==="aes-128-ctr"){const d=E(c,"crypto.cipherparams.iv:data!"),t=new p0(x,d);return f.hexlify(t.decrypt(e))}f.assert(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function K0(c,x){const e=f.getBytes(x),a=E(c,"crypto.ciphertext:data!"),d=f.hexlify(f.keccak256(f.concat([e.slice(16,32),a]))).substring(2);f.assertArgument(d===E(c,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const t=Mx(c,e.slice(0,16),a),b=f.computeAddress(t);if(c.address){let s=c.address.toLowerCase();s.startsWith("0x")||(s="0x"+s),f.assertArgument(f.getAddress(s)===b,"keystore address/privateKey mismatch","address",c.address)}const n={address:b,privateKey:t};if(E(c,"x-ethers.version:string")==="0.1"){const s=e.slice(32,64),i=E(c,"x-ethers.mnemonicCiphertext:data!"),o=E(c,"x-ethers.mnemonicCounter:data!"),h=new p0(s,o);n.mnemonic={path:E(c,"x-ethers.path:string")||We,locale:E(c,"x-ethers.locale:string")||"en",entropy:f.hexlify(f.getBytes(h.decrypt(i)))}}return n}function ze(c){const x=E(c,"crypto.kdf:string");if(x&&typeof x=="string"){if(x.toLowerCase()==="scrypt"){const e=E(c,"crypto.kdfparams.salt:data!"),a=E(c,"crypto.kdfparams.n:int!"),d=E(c,"crypto.kdfparams.r:int!"),t=E(c,"crypto.kdfparams.p:int!");f.assertArgument(a>0&&(a&a-1)===0,"invalid kdf.N","kdf.N",a),f.assertArgument(d>0&&t>0,"invalid kdf","kdf",x);const b=E(c,"crypto.kdfparams.dklen:int!");return f.assertArgument(b===32,"invalid kdf.dklen","kdf.dflen",b),{name:"scrypt",salt:e,N:a,r:d,p:t,dkLen:64}}else if(x.toLowerCase()==="pbkdf2"){const e=E(c,"crypto.kdfparams.salt:data!"),a=E(c,"crypto.kdfparams.prf:string!"),d=a.split("-").pop();f.assertArgument(d==="sha256"||d==="sha512","invalid kdf.pdf","kdf.pdf",a);const t=E(c,"crypto.kdfparams.c:int!"),b=E(c,"crypto.kdfparams.dklen:int!");return f.assertArgument(b===32,"invalid kdf.dklen","kdf.dklen",b),{name:"pbkdf2",salt:e,count:t,dkLen:b,algorithm:d}}}f.assertArgument(!1,"unsupported key-derivation function","kdf",x)}function Dx(c,x){const e=JSON.parse(c),a=v0(x),d=ze(e);if(d.name==="pbkdf2"){const{salt:o,count:h,dkLen:l,algorithm:m}=d,u=V(a,o,h,l,m);return K0(e,u)}f.assert(d.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:d});const{salt:t,N:b,r:n,p:r,dkLen:s}=d,i=w0(a,t,b,n,r,s);return K0(e,i)}function ue(c){return new Promise(x=>{setTimeout(()=>{x()},c)})}async function $x(c,x,e){const a=JSON.parse(c),d=v0(x),t=ze(a);if(t.name==="pbkdf2"){e&&(e(0),await ue(0));const{salt:h,count:l,dkLen:m,algorithm:u}=t,w=V(d,h,l,m,u);return e&&(e(1),await ue(0)),K0(a,w)}f.assert(t.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:t});const{salt:b,N:n,r,p:s,dkLen:i}=t,o=await A0(d,b,n,r,s,i,e);return K0(a,o)}function Ye(c){const x=c.salt!=null?f.getBytes(c.salt,"options.salt"):_(32);let e=1<<17,a=8,d=1;return c.scrypt&&(c.scrypt.N&&(e=c.scrypt.N),c.scrypt.r&&(a=c.scrypt.r),c.scrypt.p&&(d=c.scrypt.p)),f.assertArgument(typeof e=="number"&&e>0&&Number.isSafeInteger(e)&&(BigInt(e)&BigInt(e-1))===BigInt(0),"invalid scrypt N parameter","options.N",e),f.assertArgument(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt r parameter","options.r",a),f.assertArgument(typeof d=="number"&&d>0&&Number.isSafeInteger(d),"invalid scrypt p parameter","options.p",d),{name:"scrypt",dkLen:32,salt:x,N:e,r:a,p:d}}function He(c,x,e,a){const d=f.getBytes(e.privateKey,"privateKey"),t=a.iv!=null?f.getBytes(a.iv,"options.iv"):_(16);f.assertArgument(t.length===16,"invalid options.iv length","options.iv",a.iv);const b=a.uuid!=null?f.getBytes(a.uuid,"options.uuid"):_(16);f.assertArgument(b.length===16,"invalid options.uuid length","options.uuid",a.iv);const n=c.slice(0,16),r=c.slice(16,32),s=new p0(n,t),i=f.getBytes(s.encrypt(d)),o=f.keccak256(f.concat([r,i])),h={address:e.address.substring(2).toLowerCase(),id:ex(b),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:f.hexlify(t).substring(2)},ciphertext:f.hexlify(i).substring(2),kdf:"scrypt",kdfparams:{salt:f.hexlify(x.salt).substring(2),n:x.N,dklen:32,p:x.p,r:x.r},mac:o.substring(2)}};if(e.mnemonic){const l=a.client!=null?a.client:`ethers/${f.version}`,m=e.mnemonic.path||We,u=e.mnemonic.locale||"en",w=c.slice(32,64),p=f.getBytes(e.mnemonic.entropy,"account.mnemonic.entropy"),N=_(16),T=new p0(w,N),M=f.getBytes(T.encrypt(p)),g=new Date,F="UTC--"+(g.getUTCFullYear()+"-"+E0(g.getUTCMonth()+1,2)+"-"+E0(g.getUTCDate(),2)+"T"+E0(g.getUTCHours(),2)+"-"+E0(g.getUTCMinutes(),2)+"-"+E0(g.getUTCSeconds(),2)+".0Z")+"--"+h.address;h["x-ethers"]={client:l,gethFilename:F,path:m,locale:u,mnemonicCounter:f.hexlify(N).substring(2),mnemonicCiphertext:f.hexlify(M).substring(2),version:"0.1"}}return JSON.stringify(h)}function Je(c,x,e){e==null&&(e={});const a=v0(x),d=Ye(e),t=w0(a,d.salt,d.N,d.r,d.p,64);return He(f.getBytes(t),d,c,e)}async function je(c,x,e){e==null&&(e={});const a=v0(x),d=Ye(e),t=await A0(a,d.salt,d.N,d.r,d.p,64,e.progressCallback);return He(f.getBytes(t),d,c,e)}const j0="m/44'/60'/0'/0/0",Fx=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),l0=2147483648,Kx=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_x="0123456789abcdef";function _0(c,x){let e="";for(;c;)e=_x[c%16]+e,c=Math.trunc(c/16);for(;e.length<x*2;)e="0"+e;return"0x"+e}function Z0(c){const x=f.getBytes(c),e=f.dataSlice(f.sha256$1(f.sha256$1(x)),0,4),a=f.concat([x,e]);return f.encodeBase58(a)}const $={};function qe(c,x,e,a){const d=new Uint8Array(37);c&l0?(f.assert(a!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),d.set(f.getBytes(a),1)):d.set(f.getBytes(e));for(let b=24;b>=0;b-=8)d[33+(b>>3)]=c>>24-b&255;const t=f.getBytes(m0("sha512",x,d));return{IL:t.slice(0,32),IR:t.slice(32)}}function Xe(c,x){const e=x.split("/");f.assertArgument(e.length>0,"invalid path","path",x),e[0]==="m"&&(f.assertArgument(c.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${c.depth}`,"path",x),e.shift());let a=c;for(let d=0;d<e.length;d++){const t=e[d];if(t.match(/^[0-9]+'$/)){const b=parseInt(t.substring(0,t.length-1));f.assertArgument(b<l0,"invalid path index",`path[${d}]`,t),a=a.deriveChild(l0+b)}else if(t.match(/^[0-9]+$/)){const b=parseInt(t);f.assertArgument(b<l0,"invalid path index",`path[${d}]`,t),a=a.deriveChild(b)}else f.assertArgument(!1,"invalid path component",`path[${d}]`,t)}return a}var S0,Q0,n0,T0;const L=class L extends $0{constructor(e,a,d,t,b,n,r,s,i){super(a,i);U(this,S0);A(this,"publicKey");A(this,"fingerprint");A(this,"parentFingerprint");A(this,"mnemonic");A(this,"chainCode");A(this,"path");A(this,"index");A(this,"depth");f.assertPrivate(e,$,"HDNodeWallet"),f.defineProperties(this,{publicKey:a.compressedPublicKey});const o=f.dataSlice(g0(f.sha256$1(this.publicKey)),0,4);f.defineProperties(this,{parentFingerprint:d,fingerprint:o,chainCode:t,path:b,index:n,depth:r}),f.defineProperties(this,{mnemonic:s})}connect(e){return new L($,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}async encrypt(e,a){return await je(B(this,S0,Q0).call(this),e,{progressCallback:a})}encryptSync(e){return Je(B(this,S0,Q0).call(this),e)}get extendedKey(){return f.assert(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Z0(f.concat(["0x0488ADE4",_0(this.depth,1),this.parentFingerprint,_0(this.index,4),this.chainCode,f.concat(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new k0($,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const a=f.getNumber(e,"index");f.assertArgument(a<=4294967295,"invalid index","index",a);let d=this.path;d&&(d+="/"+(a&2147483647),a&l0&&(d+="'"));const{IR:t,IL:b}=qe(a,this.chainCode,this.publicKey,this.privateKey),n=new f.SigningKey(f.toBeHex((f.toBigInt(b)+BigInt(this.privateKey))%Kx,32));return new L($,n,this.fingerprint,f.hexlify(t),d,a,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return Xe(this,e)}static fromExtendedKey(e){const a=f.toBeArray(f.decodeBase58(e));f.assertArgument(a.length===82||Z0(a.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const d=a[4],t=f.hexlify(a.slice(5,9)),b=parseInt(f.hexlify(a.slice(9,13)).substring(2),16),n=f.hexlify(a.slice(13,45)),r=a.slice(45,78);switch(f.hexlify(a.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const s=f.hexlify(r);return new k0($,f.computeAddress(s),s,t,n,null,b,d,null)}case"0x0488ade4":case"0x04358394 ":if(r[0]!==0)break;return new L($,new f.SigningKey(r.slice(1)),t,n,null,b,d,null,null)}f.assertArgument(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,a,d){var b;e==null&&(e=""),a==null&&(a=j0),d==null&&(d=r0.wordlist());const t=y0.fromEntropy(_(16),e,d);return B(b=L,n0,T0).call(b,t.computeSeed(),t).derivePath(a)}static fromMnemonic(e,a){var d;return a||(a=j0),B(d=L,n0,T0).call(d,e.computeSeed(),e).derivePath(a)}static fromPhrase(e,a,d,t){var n;a==null&&(a=""),d==null&&(d=j0),t==null&&(t=r0.wordlist());const b=y0.fromPhrase(e,a,t);return B(n=L,n0,T0).call(n,b.computeSeed(),b).derivePath(d)}static fromSeed(e){var a;return B(a=L,n0,T0).call(a,e,null)}};S0=new WeakSet,Q0=function(){const e={address:this.address,privateKey:this.privateKey},a=this.mnemonic;return this.path&&a&&a.wordlist.locale==="en"&&a.password===""&&(e.mnemonic={path:this.path,locale:"en",entropy:a.entropy}),e},n0=new WeakSet,T0=function(e,a){f.assertArgument(f.isBytesLike(e),"invalid seed","seed","[REDACTED]");const d=f.getBytes(e,"seed");f.assertArgument(d.length>=16&&d.length<=64,"invalid seed","seed","[REDACTED]");const t=f.getBytes(m0("sha512",Fx,d)),b=new f.SigningKey(f.hexlify(t.slice(0,32)));return new L($,b,"0x00000000",f.hexlify(t.slice(32)),"m",0,0,a,null)},U(L,n0);let C0=L;class k0 extends f.VoidSigner{constructor(e,a,d,t,b,n,r,s,i){super(a,i);A(this,"publicKey");A(this,"fingerprint");A(this,"parentFingerprint");A(this,"chainCode");A(this,"path");A(this,"index");A(this,"depth");f.assertPrivate(e,$,"HDNodeVoidWallet"),f.defineProperties(this,{publicKey:d});const o=f.dataSlice(g0(f.sha256$1(d)),0,4);f.defineProperties(this,{publicKey:d,fingerprint:o,parentFingerprint:t,chainCode:b,path:n,index:r,depth:s})}connect(e){return new k0($,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return f.assert(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Z0(f.concat(["0x0488B21E",_0(this.depth,1),this.parentFingerprint,_0(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(e){const a=f.getNumber(e,"index");f.assertArgument(a<=4294967295,"invalid index","index",a);let d=this.path;d&&(d+="/"+(a&2147483647),a&l0&&(d+="'"));const{IR:t,IL:b}=qe(a,this.chainCode,this.publicKey,null),n=f.SigningKey.addPoints(b,this.publicKey,!0),r=f.computeAddress(n);return new k0($,r,n,this.fingerprint,f.hexlify(t),d,a,this.depth+1,this.provider)}derivePath(e){return Xe(this,e)}}function ye(c){try{if(JSON.parse(c).encseed)return!0}catch{}return!1}function pe(c,x){const e=JSON.parse(c),a=v0(x),d=f.getAddress(E(e,"ethaddr:string!")),t=Ve(E(e,"encseed:string!"));f.assertArgument(t&&t.length%16===0,"invalid encseed","json",c);const b=f.getBytes(V(a,a,2e3,32,"sha256")).slice(0,16),n=t.slice(0,16),r=t.slice(16),s=new fe(b,n),i=Lx(f.getBytes(s.decrypt(r)));let o="";for(let h=0;h<i.length;h++)o+=String.fromCharCode(i[h]);return{address:d,privateKey:f.id(o)}}function me(c){return new Promise(x=>{setTimeout(()=>{x()},c)})}var P0,xe;const f0=class f0 extends $0{constructor(x,e){typeof x=="string"&&!x.startsWith("0x")&&(x="0x"+x);let a=typeof x=="string"?new f.SigningKey(x):x;super(a,e)}connect(x){return new f0(this.signingKey,x)}async encrypt(x,e){const a={address:this.address,privateKey:this.privateKey};return await je(a,x,{progressCallback:e})}encryptSync(x){const e={address:this.address,privateKey:this.privateKey};return Je(e,x)}static async fromEncryptedJson(x,e,a){var t;let d=null;return he(x)?d=await $x(x,e,a):ye(x)&&(a&&(a(0),await me(0)),d=pe(x,e),a&&(a(1),await me(0))),B(t=f0,P0,xe).call(t,d)}static fromEncryptedJsonSync(x,e){var d;let a=null;return he(x)?a=Dx(x,e):ye(x)?a=pe(x,e):f.assertArgument(!1,"invalid JSON wallet","json","[ REDACTED ]"),B(d=f0,P0,xe).call(d,a)}static createRandom(x){const e=C0.createRandom();return x?e.connect(x):e}static fromPhrase(x,e){const a=C0.fromPhrase(x);return e?a.connect(e):a}};P0=new WeakSet,xe=function(x){if(f.assertArgument(x,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in x&&x.mnemonic&&x.mnemonic.locale==="en"){const a=y0.fromEntropy(x.mnemonic.entropy),d=C0.fromMnemonic(a,x.mnemonic.path);if(d.address===x.address&&d.privateKey===x.privateKey)return d;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new f0(x.privateKey);return f.assertArgument(e.address===x.address,"address/privateKey mismatch","json","[ REDACTED ]"),e},U(f0,P0);let ee=f0;async function Gx(c,x,e){const a=typeof x=="string"?new ee(x,c):x,d=(e==null?void 0:e.chain)??(await f.EvmPlatform.chainFromRpc(c))[1],t=new q0(a);if(t.provider===null)try{t.connect(c)}catch(b){console.error("Cannot connect to network for signer",b)}return new Vx(d,await a.getAddress(),t,e)}class Vx extends f.PlatformNativeSigner{constructor(e,a,d,t){super(e,a,d);A(this,"opts");this.opts=t}chain(){return this._chain}address(){return this._address}async sign(e){var i,o,h,l,m,u,w;const a=this.chain(),d=[];let t=500000n,b=100000000000n,n=1500000000n,r=100000000n;if(((i=this.opts)==null?void 0:i.overrides)===void 0&&a!=="Celo"){const p=await this._signer.provider.getFeeData();b=p.gasPrice??b,n=p.maxFeePerGas??n,r=p.maxPriorityFeePerGas??r}((o=this.opts)==null?void 0:o.gasLimit)!==void 0&&(t=this.opts.gasLimit),((h=this.opts)==null?void 0:h.maxGasLimit)!==void 0&&(t=t>((l=this.opts)==null?void 0:l.maxGasLimit)?(m=this.opts)==null?void 0:m.maxGasLimit:t);const s=a==="Oasis"?{gasLimit:t,gasPrice:b,type:0}:{gasLimit:t,maxFeePerGas:n,maxPriorityFeePerGas:r};for(const p of e){const{transaction:N,description:T}=p;(u=this.opts)!=null&&u.debug&&console.log(`Signing: ${T} for ${this.address()}`);const M={...N,...s,from:this.address(),nonce:await this._signer.getNonce(),...(w=this.opts)==null?void 0:w.overrides};d.push(await this._signer.signTransaction(M))}return d}}const Wx={Address:f.EvmAddress,Platform:f.EvmPlatform,getSigner:Gx,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-h8S34vMi.js")).then(c=>c.index$1),TokenBridge:()=>Promise.resolve().then(()=>require("./index-___kb-9z.js")),PorticoBridge:()=>Promise.resolve().then(()=>require("./index-B-fRe2Sl.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-BDO3Dr98.js")),TBTCBridge:()=>Promise.resolve().then(()=>require("./index-DE20fRvb.js"))},getChain:(c,x,e)=>new f.EvmChain(x,new f.EvmPlatform(c,f.applyChainsConfigConfigOverrides(c,f._platform,{[x]:e})))};exports.default=Wx;
@@ -1,4 +1,4 @@
1
- "use strict";const re=require("./index-rccBLIiF.js");function ne(e,u){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var D=0;D<e.length;D++){var n=e.charAt(D),a=n.charCodeAt(0);if(t[a]!==255)throw new TypeError(n+" is ambiguous");t[a]=D}var i=e.length,s=e.charAt(0),o=Math.log(i)/Math.log(256),f=Math.log(256)/Math.log(i);function _(c){if(c instanceof Uint8Array||(ArrayBuffer.isView(c)?c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength):Array.isArray(c)&&(c=Uint8Array.from(c))),!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(c.length===0)return"";for(var d=0,w=0,h=0,C=c.length;h!==C&&c[h]===0;)h++,d++;for(var p=(C-h)*f+1>>>0,b=new Uint8Array(p);h!==C;){for(var O=c[h],m=0,y=p-1;(O!==0||m<w)&&y!==-1;y--,m++)O+=256*b[y]>>>0,b[y]=O%i>>>0,O=O/i>>>0;if(O!==0)throw new Error("Non-zero carry");w=m,h++}for(var S=p-w;S!==p&&b[S]===0;)S++;for(var R=s.repeat(d);S<p;++S)R+=e.charAt(b[S]);return R}function l(c){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;var d=0;if(c[d]!==" "){for(var w=0,h=0;c[d]===s;)w++,d++;for(var C=(c.length-d)*o+1>>>0,p=new Uint8Array(C);c[d];){var b=t[c.charCodeAt(d)];if(b===255)return;for(var O=0,m=C-1;(b!==0||O<h)&&m!==-1;m--,O++)b+=i*p[m]>>>0,p[m]=b%256>>>0,b=b/256>>>0;if(b!==0)throw new Error("Non-zero carry");h=O,d++}if(c[d]!==" "){for(var y=C-h;y!==C&&p[y]===0;)y++;for(var S=new Uint8Array(w+(C-y)),R=w;y!==C;)S[R++]=p[y++];return S}}}function v(c){var d=l(c);if(d)return d;throw new Error(`Non-${u} character`)}return{encode:_,decodeUnsafe:l,decode:v}}var De=ne,ae=De;const ie=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},oe=e=>new TextEncoder().encode(e),ce=e=>new TextDecoder().decode(e);class fe{constructor(u,t,r){this.name=u,this.prefix=t,this.baseEncode=r}encode(u){if(u instanceof Uint8Array)return`${this.prefix}${this.baseEncode(u)}`;throw Error("Unknown type, must be binary type")}}class se{constructor(u,t,r){if(this.name=u,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(u){if(typeof u=="string"){if(u.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(u)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(u.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(u){return Z(this,u)}}class le{constructor(u){this.decoders=u}or(u){return Z(this,u)}decode(u){const t=u[0],r=this.decoders[t];if(r)return r.decode(u);throw RangeError(`Unable to decode multibase string ${JSON.stringify(u)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Z=(e,u)=>new le({...e.decoders||{[e.prefix]:e},...u.decoders||{[u.prefix]:u}});class Ee{constructor(u,t,r,D){this.name=u,this.prefix=t,this.baseEncode=r,this.baseDecode=D,this.encoder=new fe(u,t,r),this.decoder=new se(u,t,D)}encode(u){return this.encoder.encode(u)}decode(u){return this.decoder.decode(u)}}const M=({name:e,prefix:u,encode:t,decode:r})=>new Ee(e,u,t,r),j=({prefix:e,name:u,alphabet:t})=>{const{encode:r,decode:D}=ae(t,u);return M({prefix:e,name:u,encode:r,decode:n=>ie(D(n))})},de=(e,u,t,r)=>{const D={};for(let f=0;f<u.length;++f)D[u[f]]=f;let n=e.length;for(;e[n-1]==="=";)--n;const a=new Uint8Array(n*t/8|0);let i=0,s=0,o=0;for(let f=0;f<n;++f){const _=D[e[f]];if(_===void 0)throw new SyntaxError(`Non-${r} character`);s=s<<t|_,i+=t,i>=8&&(i-=8,a[o++]=255&s>>i)}if(i>=t||255&s<<8-i)throw new SyntaxError("Unexpected end of data");return a},be=(e,u,t)=>{const r=u[u.length-1]==="=",D=(1<<t)-1;let n="",a=0,i=0;for(let s=0;s<e.length;++s)for(i=i<<8|e[s],a+=8;a>t;)a-=t,n+=u[D&i>>a];if(a&&(n+=u[D&i<<t-a]),r)for(;n.length*t&7;)n+="=";return n},E=({name:e,prefix:u,bitsPerChar:t,alphabet:r})=>M({prefix:u,name:e,encode(D){return be(D,r,t)},decode(D){return de(D,r,t,e)}}),_e=M({prefix:"\0",name:"identity",encode:e=>ce(e),decode:e=>oe(e)}),he=Object.freeze(Object.defineProperty({__proto__:null,identity:_e},Symbol.toStringTag,{value:"Module"})),ye=E({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Ce=Object.freeze(Object.defineProperty({__proto__:null,base2:ye},Symbol.toStringTag,{value:"Module"})),pe=E({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Oe=Object.freeze(Object.defineProperty({__proto__:null,base8:pe},Symbol.toStringTag,{value:"Module"})),Se=j({prefix:"9",name:"base10",alphabet:"0123456789"}),ve=Object.freeze(Object.defineProperty({__proto__:null,base10:Se},Symbol.toStringTag,{value:"Module"})),me=E({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),we=E({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Ae=Object.freeze(Object.defineProperty({__proto__:null,base16:me,base16upper:we},Symbol.toStringTag,{value:"Module"})),ge=E({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Te=E({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ne=E({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Fe=E({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Ue=E({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),je=E({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Re=E({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Me=E({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Pe=E({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Ie=Object.freeze(Object.defineProperty({__proto__:null,base32:ge,base32hex:Ue,base32hexpad:Re,base32hexpadupper:Me,base32hexupper:je,base32pad:Ne,base32padupper:Fe,base32upper:Te,base32z:Pe},Symbol.toStringTag,{value:"Module"})),Be=j({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Ye=j({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),He=Object.freeze(Object.defineProperty({__proto__:null,base36:Be,base36upper:Ye},Symbol.toStringTag,{value:"Module"})),We=j({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),qe=j({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),ze=Object.freeze(Object.defineProperty({__proto__:null,base58btc:We,base58flickr:qe},Symbol.toStringTag,{value:"Module"})),$e=E({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ve=E({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ke=E({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Xe=E({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Ge=Object.freeze(Object.defineProperty({__proto__:null,base64:$e,base64pad:Ve,base64url:Ke,base64urlpad:Xe},Symbol.toStringTag,{value:"Module"})),x=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Je=x.reduce((e,u,t)=>(e[t]=u,e),[]),ke=x.reduce((e,u,t)=>(e[u.codePointAt(0)]=t,e),[]);function Le(e){return e.reduce((u,t)=>(u+=Je[t],u),"")}function Qe(e){const u=[];for(const t of e){const r=ke[t.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${t}`);u.push(r)}return new Uint8Array(u)}const Ze=M({prefix:"🚀",name:"base256emoji",encode:Le,decode:Qe}),xe=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:Ze},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;var ee={};/*! *****************************************************************************
1
+ "use strict";const re=require("./index-h8S34vMi.js");function ne(e,u){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var D=0;D<e.length;D++){var n=e.charAt(D),a=n.charCodeAt(0);if(t[a]!==255)throw new TypeError(n+" is ambiguous");t[a]=D}var i=e.length,s=e.charAt(0),o=Math.log(i)/Math.log(256),f=Math.log(256)/Math.log(i);function _(c){if(c instanceof Uint8Array||(ArrayBuffer.isView(c)?c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength):Array.isArray(c)&&(c=Uint8Array.from(c))),!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(c.length===0)return"";for(var d=0,w=0,h=0,C=c.length;h!==C&&c[h]===0;)h++,d++;for(var p=(C-h)*f+1>>>0,b=new Uint8Array(p);h!==C;){for(var O=c[h],m=0,y=p-1;(O!==0||m<w)&&y!==-1;y--,m++)O+=256*b[y]>>>0,b[y]=O%i>>>0,O=O/i>>>0;if(O!==0)throw new Error("Non-zero carry");w=m,h++}for(var S=p-w;S!==p&&b[S]===0;)S++;for(var R=s.repeat(d);S<p;++S)R+=e.charAt(b[S]);return R}function l(c){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;var d=0;if(c[d]!==" "){for(var w=0,h=0;c[d]===s;)w++,d++;for(var C=(c.length-d)*o+1>>>0,p=new Uint8Array(C);c[d];){var b=t[c.charCodeAt(d)];if(b===255)return;for(var O=0,m=C-1;(b!==0||O<h)&&m!==-1;m--,O++)b+=i*p[m]>>>0,p[m]=b%256>>>0,b=b/256>>>0;if(b!==0)throw new Error("Non-zero carry");h=O,d++}if(c[d]!==" "){for(var y=C-h;y!==C&&p[y]===0;)y++;for(var S=new Uint8Array(w+(C-y)),R=w;y!==C;)S[R++]=p[y++];return S}}}function v(c){var d=l(c);if(d)return d;throw new Error(`Non-${u} character`)}return{encode:_,decodeUnsafe:l,decode:v}}var De=ne,ae=De;const ie=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},oe=e=>new TextEncoder().encode(e),ce=e=>new TextDecoder().decode(e);class fe{constructor(u,t,r){this.name=u,this.prefix=t,this.baseEncode=r}encode(u){if(u instanceof Uint8Array)return`${this.prefix}${this.baseEncode(u)}`;throw Error("Unknown type, must be binary type")}}class se{constructor(u,t,r){if(this.name=u,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(u){if(typeof u=="string"){if(u.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(u)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(u.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(u){return Z(this,u)}}class le{constructor(u){this.decoders=u}or(u){return Z(this,u)}decode(u){const t=u[0],r=this.decoders[t];if(r)return r.decode(u);throw RangeError(`Unable to decode multibase string ${JSON.stringify(u)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Z=(e,u)=>new le({...e.decoders||{[e.prefix]:e},...u.decoders||{[u.prefix]:u}});class Ee{constructor(u,t,r,D){this.name=u,this.prefix=t,this.baseEncode=r,this.baseDecode=D,this.encoder=new fe(u,t,r),this.decoder=new se(u,t,D)}encode(u){return this.encoder.encode(u)}decode(u){return this.decoder.decode(u)}}const M=({name:e,prefix:u,encode:t,decode:r})=>new Ee(e,u,t,r),j=({prefix:e,name:u,alphabet:t})=>{const{encode:r,decode:D}=ae(t,u);return M({prefix:e,name:u,encode:r,decode:n=>ie(D(n))})},de=(e,u,t,r)=>{const D={};for(let f=0;f<u.length;++f)D[u[f]]=f;let n=e.length;for(;e[n-1]==="=";)--n;const a=new Uint8Array(n*t/8|0);let i=0,s=0,o=0;for(let f=0;f<n;++f){const _=D[e[f]];if(_===void 0)throw new SyntaxError(`Non-${r} character`);s=s<<t|_,i+=t,i>=8&&(i-=8,a[o++]=255&s>>i)}if(i>=t||255&s<<8-i)throw new SyntaxError("Unexpected end of data");return a},be=(e,u,t)=>{const r=u[u.length-1]==="=",D=(1<<t)-1;let n="",a=0,i=0;for(let s=0;s<e.length;++s)for(i=i<<8|e[s],a+=8;a>t;)a-=t,n+=u[D&i>>a];if(a&&(n+=u[D&i<<t-a]),r)for(;n.length*t&7;)n+="=";return n},E=({name:e,prefix:u,bitsPerChar:t,alphabet:r})=>M({prefix:u,name:e,encode(D){return be(D,r,t)},decode(D){return de(D,r,t,e)}}),_e=M({prefix:"\0",name:"identity",encode:e=>ce(e),decode:e=>oe(e)}),he=Object.freeze(Object.defineProperty({__proto__:null,identity:_e},Symbol.toStringTag,{value:"Module"})),ye=E({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Ce=Object.freeze(Object.defineProperty({__proto__:null,base2:ye},Symbol.toStringTag,{value:"Module"})),pe=E({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Oe=Object.freeze(Object.defineProperty({__proto__:null,base8:pe},Symbol.toStringTag,{value:"Module"})),Se=j({prefix:"9",name:"base10",alphabet:"0123456789"}),ve=Object.freeze(Object.defineProperty({__proto__:null,base10:Se},Symbol.toStringTag,{value:"Module"})),me=E({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),we=E({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Ae=Object.freeze(Object.defineProperty({__proto__:null,base16:me,base16upper:we},Symbol.toStringTag,{value:"Module"})),ge=E({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Te=E({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ne=E({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Fe=E({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Ue=E({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),je=E({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Re=E({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Me=E({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Pe=E({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Ie=Object.freeze(Object.defineProperty({__proto__:null,base32:ge,base32hex:Ue,base32hexpad:Re,base32hexpadupper:Me,base32hexupper:je,base32pad:Ne,base32padupper:Fe,base32upper:Te,base32z:Pe},Symbol.toStringTag,{value:"Module"})),Be=j({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Ye=j({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),He=Object.freeze(Object.defineProperty({__proto__:null,base36:Be,base36upper:Ye},Symbol.toStringTag,{value:"Module"})),We=j({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),qe=j({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),ze=Object.freeze(Object.defineProperty({__proto__:null,base58btc:We,base58flickr:qe},Symbol.toStringTag,{value:"Module"})),$e=E({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ve=E({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ke=E({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Xe=E({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Ge=Object.freeze(Object.defineProperty({__proto__:null,base64:$e,base64pad:Ve,base64url:Ke,base64urlpad:Xe},Symbol.toStringTag,{value:"Module"})),x=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Je=x.reduce((e,u,t)=>(e[t]=u,e),[]),ke=x.reduce((e,u,t)=>(e[u.codePointAt(0)]=t,e),[]);function Le(e){return e.reduce((u,t)=>(u+=Je[t],u),"")}function Qe(e){const u=[];for(const t of e){const r=ke[t.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${t}`);u.push(r)}return new Uint8Array(u)}const Ze=M({prefix:"🚀",name:"base256emoji",encode:Le,decode:Qe}),xe=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:Ze},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;var ee={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,8 +1,8 @@
1
1
  var Z = Object.defineProperty;
2
2
  var G = (n, f, e) => f in n ? Z(n, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[f] = e;
3
3
  var d = (n, f, e) => G(n, typeof f != "symbol" ? f + "" : f, e);
4
- import "./index-DMx_4irc.mjs";
5
- import { D as y, k as f0, y as L, j as p, v as e0, I as a0, bX as t0, bY as C, a2 as b0, bZ as n0, b_ as d0, bM as H, b$ as D, a6 as v, a9 as I, c0 as U, ap as F, bQ as u, c1 as q, x as c0, c2 as N, bU as j, bV as V, bL as s0, bK as i0, c3 as r0, c4 as S, bJ as $, i as E, bW as J, ab as K } from "./index-8qfDYZ9G.mjs";
4
+ import "./index-DgrS-KqY.mjs";
5
+ import { D as y, k as f0, y as L, j as p, v as e0, I as a0, bX as t0, bY as C, a2 as b0, bZ as n0, b_ as d0, bM as H, b$ as D, a6 as v, a9 as I, c0 as U, ap as F, bQ as u, c1 as q, x as c0, c2 as N, bU as j, bV as V, bL as s0, bK as i0, c3 as r0, c4 as S, bJ as $, i as E, bW as J, ab as K } from "./index-BrZB1GhQ.mjs";
6
6
  const p0 = new RegExp("^bytes([0-9]+)$"), y0 = new RegExp("^(u?int)([0-9]*)$"), o0 = new RegExp("^(.*)\\[([0-9]*)\\]$");
7
7
  function Q(n, f, e) {
8
8
  switch (n) {
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty;var P=(l,o,t)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t;var h=(l,o,t)=>P(l,typeof o!="symbol"?o+"":o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-rccBLIiF.js"),U=require("./index-Gl0_8XA4.js"),A=new e.Interface(["function start((bytes32,address,address,address,address,address,uint256,uint256,uint256,uint256)) returns (address,uint16,uint64)","function receiveMessageAndSwap(bytes)"]),q=new e.Interface(["function quoteExactInputSingle((address,address,uint256,uint24,uint160)) public view returns (uint256,uint160,uint32,uint256)"]),N="https://gfx.relayers.xlabs.xyz/api/v1/swap/quote";class R{static async quoteRelayer(o,t,r){var a;if(e.isNative(t)||e.isNative(r))throw new Error("how did you get here tho?");const n=e.hex.encode(t.toUniversalAddress().toUint8Array(),!1),s=e.hex.encode(r.toUniversalAddress().toUint8Array(),!1),i={targetChain:e.toChainId(o),sourceToken:n,targetToken:s};try{const c=await e.axios.post(N,i);return BigInt(c.data.fee)}catch(c){throw e.axios.isAxiosError(c)?new Error(`Error getting relayer fee: ${(a=c.response)==null?void 0:a.statusText}`):c}}}const m=100,E={ETH:[e.Wormhole.tokenId("Arbitrum","native"),e.Wormhole.tokenId("Base","native"),e.Wormhole.tokenId("Ethereum","native"),e.Wormhole.tokenId("Optimism","native")],WETH:[e.Wormhole.tokenId("Arbitrum","0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"),e.Wormhole.tokenId("Avalanche","0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"),e.Wormhole.tokenId("Base","0x4200000000000000000000000000000000000006"),e.Wormhole.tokenId("Bsc","0x2170Ed0880ac9A755fd29B2688956BD959F933F8"),e.Wormhole.tokenId("Ethereum","0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),e.Wormhole.tokenId("Optimism","0x4200000000000000000000000000000000000006"),e.Wormhole.tokenId("Polygon","0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619")],wstETH:[e.Wormhole.tokenId("Arbitrum","0x5979D7b546E38E414F7E9822514be443A4800529"),e.Wormhole.tokenId("Base","0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"),e.Wormhole.tokenId("Ethereum","0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"),e.Wormhole.tokenId("Optimism","0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"),e.Wormhole.tokenId("Polygon","0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD")],USDT:[e.Wormhole.tokenId("Arbitrum","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"),e.Wormhole.tokenId("Avalanche","0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"),e.Wormhole.tokenId("Base","0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"),e.Wormhole.tokenId("Bsc","0x55d398326f99059fF775485246999027B3197955"),e.Wormhole.tokenId("Ethereum","0xdAC17F958D2ee523a2206206994597C13D831ec7"),e.Wormhole.tokenId("Optimism","0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"),e.Wormhole.tokenId("Polygon","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"),e.Wormhole.tokenId("Celo","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e")]};class p{constructor(o,t,r,n){h(this,"network");h(this,"chain");h(this,"provider");h(this,"contracts");h(this,"chainId");h(this,"core");h(this,"tokenBridge");if(this.network=o,this.chain=t,this.provider=r,this.contracts=n,!n.portico)throw new Error("Unsupported chain, no contract addresses for: "+t);this.core=new e.EvmWormholeCore(o,t,r,n),this.tokenBridge=new U.EvmTokenBridge(o,t,r,n),this.chainId=e.networkChainToNativeChainId.get(o,t)}static async fromRpc(o,t){const[r,n]=await e.EvmPlatform.chainFromRpc(o),s=t[n];if(s.network!==r)throw new Error(`Network mismatch: ${s.network} != ${r}`);return new p(r,n,o,s.contracts)}async*transfer(o,t,r,n,s,d,i){const{minAmountStart:a,minAmountFinish:c}=i.swapAmounts;if(a===0n)throw new Error("Invalid min swap amount");if(c===0n)throw new Error("Invalid min swap amount");const f=new e.EvmAddress(o).toString(),[u,g]=e.resolveWrappedToken(this.network,this.chain,r),[T,C]=e.resolveWrappedToken(this.network,t.chain,s),k=e.canonicalAddress(g),I=e.canonicalAddress(await this.getTransferrableToken(k)),b=e.canonicalAddress(t),v=e.canonicalAddress(C),F=new Date().valueOf()%2**4,B=e.PorticoBridge.serializeFlagSet({flags:{shouldWrapNative:u,shouldUnwrapNative:T},recipientChain:e.toChainId(t.chain),bridgeNonce:F,feeTierStart:m,feeTierFinish:m,padding:new Uint8Array(19)}),y=A.encodeFunctionData("start",[[B,k.toLowerCase(),I,v.toLowerCase(),b,d,n.toString(),a.toString(),c.toString(),i.relayerFee.toString()]]),x=this.getTokenGroup(g.address.toString()),w=this.getPorticoAddress(x);u||(yield*this.approve(k,f,n,w));const W=await this.core.getMessageFee(),D={to:w,data:y,value:W+(u?n:0n)};yield this.createUnsignedTransaction(e.addFrom(D,f),"PorticoBridge.Transfer")}async*redeem(o,t){const r=e.toChain(t.payload.payload.flagSet.recipientChain),n=t.payload.payload.finalTokenAddress.toNative(r).toString(),s=this.getTokenGroup(n),d=this.getPorticoAddress(s),a=await new e.Contract(d,A.fragments,this.provider).getFunction("receiveMessageAndSwap").populateTransaction(e.serialize(t)),c=new e.EvmAddress(o).toString();yield this.createUnsignedTransaction(e.addFrom(a,c),"PorticoBridge.Redeem")}async isTransferCompleted(o){return await this.tokenBridge.tokenBridge.isTransferCompleted(e.keccak256(o.hash))}async quoteSwap(o,t,r,n){const[,s]=e.resolveWrappedToken(this.network,this.chain,o),[,d]=e.resolveWrappedToken(this.network,this.chain,t),i=e.canonicalAddress(s),a=e.canonicalAddress(d);if(e.isEqualCaseInsensitive(i,a))return n;const c=this.getQuoterAddress(r);return(await new e.Contract(c,q.fragments,this.provider).getFunction("quoteExactInputSingle").staticCall([i,a,n,m,0]))[0]}async quoteRelay(o,t){return await R.quoteRelayer(this.chain,o,t)}async getTransferrableToken(o){const t=e.Wormhole.tokenId(this.chain,o),[,r]=e.resolveWrappedToken(this.network,this.chain,t);if(this.chain==="Ethereum")return r;const n=Object.values(E).find(i=>i.find(a=>a.chain===this.chain&&e.canonicalAddress(a)===e.canonicalAddress(r)));if(!n)throw new Error(`No token group found for ${o} on ${this.chain}`);const s=n.find(i=>i.chain==="Ethereum");if(!s)throw new Error(`No Ethereum origin token found for ${o} on ${this.chain}`);const d=await this.tokenBridge.getWrappedAsset(s);return e.Wormhole.tokenId(this.chain,d.toString())}supportedTokens(){const o=[];for(const[t,r]of Object.entries(E))for(const n of r)n.chain===this.chain&&o.push({group:t,token:n});return o}getTokenGroup(o){const r=this.supportedTokens().find(n=>e.canonicalAddress(n.token)===o);if(!r)throw new Error("Token not found");return r.group}async*approve(o,t,r,n){const s=e.EvmPlatform.getTokenImplementation(this.provider,o);if(await s.allowance(t,n)<r){const i=await s.approve.populateTransaction(n,r);yield this.createUnsignedTransaction(e.addFrom(i,t),"PorticoBridge.Approve")}}createUnsignedTransaction(o,t){return new e.EvmUnsignedTransaction(e.addChainId(o,this.chainId),this.network,this.chain,t,!1)}getPorticoAddress(o){const t=this.contracts.portico;return o==="USDT"&&t.porticoPancakeSwap||t.porticoUniswap}getQuoterAddress(o){const t=this.contracts.portico;return o==="USDT"&&t.pancakeSwapQuoterV2||t.uniswapQuoterV2}}e.registerProtocol(e._platform,"PorticoBridge",p);exports.EvmPorticoBridge=p;
1
+ "use strict";var S=Object.defineProperty;var P=(l,o,t)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t;var h=(l,o,t)=>P(l,typeof o!="symbol"?o+"":o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-h8S34vMi.js"),U=require("./index-___kb-9z.js"),A=new e.Interface(["function start((bytes32,address,address,address,address,address,uint256,uint256,uint256,uint256)) returns (address,uint16,uint64)","function receiveMessageAndSwap(bytes)"]),q=new e.Interface(["function quoteExactInputSingle((address,address,uint256,uint24,uint160)) public view returns (uint256,uint160,uint32,uint256)"]),N="https://gfx.relayers.xlabs.xyz/api/v1/swap/quote";class R{static async quoteRelayer(o,t,r){var a;if(e.isNative(t)||e.isNative(r))throw new Error("how did you get here tho?");const n=e.hex.encode(t.toUniversalAddress().toUint8Array(),!1),s=e.hex.encode(r.toUniversalAddress().toUint8Array(),!1),i={targetChain:e.toChainId(o),sourceToken:n,targetToken:s};try{const c=await e.axios.post(N,i);return BigInt(c.data.fee)}catch(c){throw e.axios.isAxiosError(c)?new Error(`Error getting relayer fee: ${(a=c.response)==null?void 0:a.statusText}`):c}}}const m=100,E={ETH:[e.Wormhole.tokenId("Arbitrum","native"),e.Wormhole.tokenId("Base","native"),e.Wormhole.tokenId("Ethereum","native"),e.Wormhole.tokenId("Optimism","native")],WETH:[e.Wormhole.tokenId("Arbitrum","0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"),e.Wormhole.tokenId("Avalanche","0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"),e.Wormhole.tokenId("Base","0x4200000000000000000000000000000000000006"),e.Wormhole.tokenId("Bsc","0x2170Ed0880ac9A755fd29B2688956BD959F933F8"),e.Wormhole.tokenId("Ethereum","0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),e.Wormhole.tokenId("Optimism","0x4200000000000000000000000000000000000006"),e.Wormhole.tokenId("Polygon","0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619")],wstETH:[e.Wormhole.tokenId("Arbitrum","0x5979D7b546E38E414F7E9822514be443A4800529"),e.Wormhole.tokenId("Base","0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"),e.Wormhole.tokenId("Ethereum","0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"),e.Wormhole.tokenId("Optimism","0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"),e.Wormhole.tokenId("Polygon","0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD")],USDT:[e.Wormhole.tokenId("Arbitrum","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"),e.Wormhole.tokenId("Avalanche","0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"),e.Wormhole.tokenId("Base","0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"),e.Wormhole.tokenId("Bsc","0x55d398326f99059fF775485246999027B3197955"),e.Wormhole.tokenId("Ethereum","0xdAC17F958D2ee523a2206206994597C13D831ec7"),e.Wormhole.tokenId("Optimism","0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"),e.Wormhole.tokenId("Polygon","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"),e.Wormhole.tokenId("Celo","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e")]};class p{constructor(o,t,r,n){h(this,"network");h(this,"chain");h(this,"provider");h(this,"contracts");h(this,"chainId");h(this,"core");h(this,"tokenBridge");if(this.network=o,this.chain=t,this.provider=r,this.contracts=n,!n.portico)throw new Error("Unsupported chain, no contract addresses for: "+t);this.core=new e.EvmWormholeCore(o,t,r,n),this.tokenBridge=new U.EvmTokenBridge(o,t,r,n),this.chainId=e.networkChainToNativeChainId.get(o,t)}static async fromRpc(o,t){const[r,n]=await e.EvmPlatform.chainFromRpc(o),s=t[n];if(s.network!==r)throw new Error(`Network mismatch: ${s.network} != ${r}`);return new p(r,n,o,s.contracts)}async*transfer(o,t,r,n,s,d,i){const{minAmountStart:a,minAmountFinish:c}=i.swapAmounts;if(a===0n)throw new Error("Invalid min swap amount");if(c===0n)throw new Error("Invalid min swap amount");const f=new e.EvmAddress(o).toString(),[u,g]=e.resolveWrappedToken(this.network,this.chain,r),[T,C]=e.resolveWrappedToken(this.network,t.chain,s),k=e.canonicalAddress(g),I=e.canonicalAddress(await this.getTransferrableToken(k)),b=e.canonicalAddress(t),v=e.canonicalAddress(C),F=new Date().valueOf()%2**4,B=e.PorticoBridge.serializeFlagSet({flags:{shouldWrapNative:u,shouldUnwrapNative:T},recipientChain:e.toChainId(t.chain),bridgeNonce:F,feeTierStart:m,feeTierFinish:m,padding:new Uint8Array(19)}),y=A.encodeFunctionData("start",[[B,k.toLowerCase(),I,v.toLowerCase(),b,d,n.toString(),a.toString(),c.toString(),i.relayerFee.toString()]]),x=this.getTokenGroup(g.address.toString()),w=this.getPorticoAddress(x);u||(yield*this.approve(k,f,n,w));const W=await this.core.getMessageFee(),D={to:w,data:y,value:W+(u?n:0n)};yield this.createUnsignedTransaction(e.addFrom(D,f),"PorticoBridge.Transfer")}async*redeem(o,t){const r=e.toChain(t.payload.payload.flagSet.recipientChain),n=t.payload.payload.finalTokenAddress.toNative(r).toString(),s=this.getTokenGroup(n),d=this.getPorticoAddress(s),a=await new e.Contract(d,A.fragments,this.provider).getFunction("receiveMessageAndSwap").populateTransaction(e.serialize(t)),c=new e.EvmAddress(o).toString();yield this.createUnsignedTransaction(e.addFrom(a,c),"PorticoBridge.Redeem")}async isTransferCompleted(o){return await this.tokenBridge.tokenBridge.isTransferCompleted(e.keccak256(o.hash))}async quoteSwap(o,t,r,n){const[,s]=e.resolveWrappedToken(this.network,this.chain,o),[,d]=e.resolveWrappedToken(this.network,this.chain,t),i=e.canonicalAddress(s),a=e.canonicalAddress(d);if(e.isEqualCaseInsensitive(i,a))return n;const c=this.getQuoterAddress(r);return(await new e.Contract(c,q.fragments,this.provider).getFunction("quoteExactInputSingle").staticCall([i,a,n,m,0]))[0]}async quoteRelay(o,t){return await R.quoteRelayer(this.chain,o,t)}async getTransferrableToken(o){const t=e.Wormhole.tokenId(this.chain,o),[,r]=e.resolveWrappedToken(this.network,this.chain,t);if(this.chain==="Ethereum")return r;const n=Object.values(E).find(i=>i.find(a=>a.chain===this.chain&&e.canonicalAddress(a)===e.canonicalAddress(r)));if(!n)throw new Error(`No token group found for ${o} on ${this.chain}`);const s=n.find(i=>i.chain==="Ethereum");if(!s)throw new Error(`No Ethereum origin token found for ${o} on ${this.chain}`);const d=await this.tokenBridge.getWrappedAsset(s);return e.Wormhole.tokenId(this.chain,d.toString())}supportedTokens(){const o=[];for(const[t,r]of Object.entries(E))for(const n of r)n.chain===this.chain&&o.push({group:t,token:n});return o}getTokenGroup(o){const r=this.supportedTokens().find(n=>e.canonicalAddress(n.token)===o);if(!r)throw new Error("Token not found");return r.group}async*approve(o,t,r,n){const s=e.EvmPlatform.getTokenImplementation(this.provider,o);if(await s.allowance(t,n)<r){const i=await s.approve.populateTransaction(n,r);yield this.createUnsignedTransaction(e.addFrom(i,t),"PorticoBridge.Approve")}}createUnsignedTransaction(o,t){return new e.EvmUnsignedTransaction(e.addChainId(o,this.chainId),this.network,this.chain,t,!1)}getPorticoAddress(o){const t=this.contracts.portico;return o==="USDT"&&t.porticoPancakeSwap||t.porticoUniswap}getQuoterAddress(o){const t=this.contracts.portico;return o==="USDT"&&t.pancakeSwapQuoterV2||t.uniswapQuoterV2}}e.registerProtocol(e._platform,"PorticoBridge",p);exports.EvmPorticoBridge=p;