@wormhole-foundation/wormhole-connect 3.0.1-beta.0-development → 3.0.1-beta.1-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.
- package/dist/main.js +4 -4
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/dist/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
- package/lib/{add-BPFasfGu.mjs → add-B42z-BMK.mjs} +1 -1
- package/lib/{add-k3ewuJUG.js → add-DjQ9ptJ3.js} +1 -1
- package/lib/{all-wallets-DbhnhSgQ.js → all-wallets-CTXkmZGh.js} +1 -1
- package/lib/{all-wallets-la-1zudw.mjs → all-wallets-DafV-6aS.mjs} +1 -1
- package/lib/{app-store-DwyKNjnW.js → app-store-CEiGuBPg.js} +1 -1
- package/lib/{app-store-doruxuZE.mjs → app-store-Cl2NeyfU.mjs} +1 -1
- package/lib/{apple-Ba-W9z_L.mjs → apple-Bgd40Qpf.mjs} +1 -1
- package/lib/{apple-f5EysyhV.js → apple-I35UUnyy.js} +1 -1
- package/lib/{aptos-ChgDZ9Bs.mjs → aptos-CFxhkz1T.mjs} +1 -1
- package/lib/{aptos-BYM651I5.js → aptos-Cwu1YPJ4.js} +1 -1
- package/lib/{arrow-bottom-CyaXCpbT.js → arrow-bottom-ChKqsjAW.js} +1 -1
- package/lib/{arrow-bottom-circle-Kla1lJ0S.js → arrow-bottom-circle-CZ_7PXrz.js} +1 -1
- package/lib/{arrow-bottom-circle-BOmrxjxV.mjs → arrow-bottom-circle-CrW7hvKb.mjs} +1 -1
- package/lib/{arrow-bottom-CZPkUc3D.mjs → arrow-bottom-oM7dsIav.mjs} +1 -1
- package/lib/{arrow-left-Dqlhv2Qp.mjs → arrow-left-BnsvMZrw.mjs} +1 -1
- package/lib/{arrow-left-DtuOud7o.js → arrow-left-Bsuqh6ly.js} +1 -1
- package/lib/{arrow-right-W0IwU-6h.js → arrow-right-BnOX1FPQ.js} +1 -1
- package/lib/{arrow-right-glR4LxQL.mjs → arrow-right-DCVdKrqV.mjs} +1 -1
- package/lib/{arrow-top-DDcfmUYc.js → arrow-top-CGNi9Abs.js} +1 -1
- package/lib/{arrow-top-ChZhpBX5.mjs → arrow-top-HQD35uzA.mjs} +1 -1
- package/lib/{bank-CeAxLFYE.mjs → bank-5_XGvsWz.mjs} +1 -1
- package/lib/{bank-2fSYiPNd.js → bank-CC-gMFj5.js} +1 -1
- package/lib/{basic-DATFcjGI.js → basic-Cg6_7ml5.js} +1 -1
- package/lib/{basic-DmAZdELt.mjs → basic-kfkYJmqS.mjs} +2 -2
- package/lib/{browser-CD59CQ82.mjs → browser-CnMcQaL7.mjs} +1 -1
- package/lib/{browser-DrdHogv9.js → browser-QU3oDASy.js} +1 -1
- package/lib/{card-CR5E0M8J.mjs → card-2RHw5YuR.mjs} +1 -1
- package/lib/{card-DsBOUpCN.js → card-Drhs2ElR.js} +1 -1
- package/lib/{ccip-BFa4y-oy.js → ccip-B-6LnaS-.js} +1 -1
- package/lib/{ccip-bLQYuHSY.mjs → ccip-HRN5GU9R.mjs} +1 -1
- package/lib/{checkmark-CsX9NZH7.js → checkmark-DBiIELPX.js} +1 -1
- package/lib/{checkmark-CfNjLqyN.mjs → checkmark-DzamL7X4.mjs} +1 -1
- package/lib/{checkmark-bold-DY9T5oVa.mjs → checkmark-bold-Bj1aj7It.mjs} +1 -1
- package/lib/{checkmark-bold-BJIvwCmJ.js → checkmark-bold-BtLa1z0X.js} +1 -1
- package/lib/{chevron-bottom-Ditoq2xa.js → chevron-bottom-BoXMZSSJ.js} +1 -1
- package/lib/{chevron-bottom-BYoFClQQ.mjs → chevron-bottom-BwEoAp0U.mjs} +1 -1
- package/lib/{chevron-left-3WnVWUcO.js → chevron-left-C8qlvot4.js} +1 -1
- package/lib/{chevron-left-CqVSZU9b.mjs → chevron-left-Cd53L2Rd.mjs} +1 -1
- package/lib/{chevron-right-CJBuSXL6.js → chevron-right-BKR2Cj8x.js} +1 -1
- package/lib/{chevron-right-X3OiwFgb.mjs → chevron-right-BjnbXBQh.mjs} +1 -1
- package/lib/{chevron-top-evdJz5l1.js → chevron-top-C1-UVQzc.js} +1 -1
- package/lib/{chevron-top-sE88QRY5.mjs → chevron-top-DZM0Kk5N.mjs} +1 -1
- package/lib/{chrome-store-CrGMC4Ms.mjs → chrome-store-Be16ARhh.mjs} +1 -1
- package/lib/{chrome-store-BE0d8gm3.js → chrome-store-DEpEGVnh.js} +1 -1
- package/lib/{clock-BQOPbXNd.js → clock-2d6ryT3H.js} +1 -1
- package/lib/{clock-B2hRLLna.mjs → clock-lGyym1Yu.mjs} +1 -1
- package/lib/{close-DwQUJGX9.js → close-B-KS6tMf.js} +1 -1
- package/lib/{close-BAo2qofr.mjs → close-Bd0ixtrI.mjs} +1 -1
- package/lib/{coinPlaceholder-D4XIXbUt.js → coinPlaceholder-1F-4zLUF.js} +1 -1
- package/lib/{coinPlaceholder-Cop9iL3O.mjs → coinPlaceholder-CM171HV_.mjs} +1 -1
- package/lib/{compass-BirhgtWV.mjs → compass-BC4EBgBf.mjs} +1 -1
- package/lib/{compass-C1qPsOLt.js → compass-BtYGtp4s.js} +1 -1
- package/lib/{constants-D9NeMoZZ.mjs → constants-CbX2Dhdb.mjs} +3 -3
- package/lib/constants-D2XMo5x9.js +1 -0
- package/lib/{copy-CEI12w7k.mjs → copy-CBZyjKhN.mjs} +1 -1
- package/lib/{copy-DTprqw_x.js → copy-YhaE0x9J.js} +1 -1
- package/lib/{cursor-CJNQd6s1.js → cursor-DbW8CM2r.js} +1 -1
- package/lib/{cursor-BWYqc_Iy.mjs → cursor-HObwislP.mjs} +1 -1
- package/lib/{cursor-transparent-BgDxhGZb.js → cursor-transparent-D8qt_JkJ.js} +1 -1
- package/lib/{cursor-transparent-DyUm_Gyl.mjs → cursor-transparent-DRSuTF8F.mjs} +1 -1
- package/lib/{desktop-Donl6N-w.mjs → desktop-BXB88_hI.mjs} +1 -1
- package/lib/{desktop-Dhc3ut6w.js → desktop-DPSb6pT6.js} +1 -1
- package/lib/{disconnect-BOkIc2nC.mjs → disconnect-DQlW_0l3.mjs} +1 -1
- package/lib/{disconnect-BF1o-_4J.js → disconnect-voPLjD1W.js} +1 -1
- package/lib/{discord-Cr_4Cd1g.js → discord-ZKqi5hgs.js} +1 -1
- package/lib/{discord-3TAxBxMm.mjs → discord-rENS1KkQ.mjs} +1 -1
- package/lib/{etherscan-crtB48km.mjs → etherscan-CQI3NP6J.mjs} +1 -1
- package/lib/{etherscan-BdKsG3Bv.js → etherscan-DuY447FG.js} +1 -1
- package/lib/{evm-BW-hVkAs.mjs → evm-B2lMpZxw.mjs} +3 -3
- package/lib/{evm-BwVzzPhr.js → evm-G8FJAICS.js} +3 -3
- package/lib/{exclamation-triangle-B8ouyGn5.mjs → exclamation-triangle-D_u6lS5N.mjs} +1 -1
- package/lib/{exclamation-triangle-CDWJ40KD.js → exclamation-triangle-zkHXR2rM.js} +1 -1
- package/lib/{extension-CKbWDUFI.mjs → extension-ClXThzlK.mjs} +1 -1
- package/lib/{extension-DdSvlDz-.js → extension-DG4qfZ6E.js} +1 -1
- package/lib/{external-link-Ba6hY_g_.mjs → external-link-DMigdm5_.mjs} +1 -1
- package/lib/{external-link-DJvJgYIh.js → external-link-DzFTOSFi.js} +1 -1
- package/lib/{facebook-CFUYIcny.mjs → facebook-CXPHu-CF.mjs} +1 -1
- package/lib/{facebook-A65A2Gkq.js → facebook-DZcyCqTR.js} +1 -1
- package/lib/{farcaster-BVmh2zDV.mjs → farcaster-3fnaNorD.mjs} +1 -1
- package/lib/{farcaster-qZSmV22m.js → farcaster-DGzbpSpo.js} +1 -1
- package/lib/{filters-Uk-V5NfL.mjs → filters-DOCA08Tb.mjs} +1 -1
- package/lib/{filters-CNDKq3Qc.js → filters-GdndcLvS.js} +1 -1
- package/lib/{github-CKyZTPiz.mjs → github-Bt6o8gEP.mjs} +1 -1
- package/lib/{github-B34wWZJc.js → github-CS10Dwev.js} +1 -1
- package/lib/{google-CuY8LtEi.js → google-C3HmxVw4.js} +1 -1
- package/lib/{google-D5l_b5at.mjs → google-oL8KgGKh.mjs} +1 -1
- package/lib/{help-circle-CecVMIZq.mjs → help-circle-Bwas4fUE.mjs} +1 -1
- package/lib/{help-circle-B8yY3eo0.js → help-circle-vyJ6xZHu.js} +1 -1
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{id-DTrVc-vC.mjs → id-BMthpDYz.mjs} +1 -1
- package/lib/{id-DLcZPuZY.js → id-Cn7OOd5x.js} +1 -1
- package/lib/{image-Cwpi7jk6.js → image-CgBZH2xZ.js} +1 -1
- package/lib/{image-DTiFTFsi.mjs → image-Ci9ZM4mR.mjs} +1 -1
- package/lib/{index-DoD0YukX.js → index-B5zOthpC.js} +2 -2
- package/lib/{index-C8Ud7j_3.mjs → index-BI7ozQB8.mjs} +502 -498
- package/lib/{index-CXkqbcY-.mjs → index-BvNzRolu.mjs} +78 -78
- package/lib/{index-BLJhpzbW.js → index-Drek_-UI.js} +4 -4
- package/lib/{index.es-BMIY5pYw.mjs → index.es-B0qJRcfn.mjs} +3 -3
- package/lib/{index.es-CDEST0S7.mjs → index.es-BT9MvJ7o.mjs} +1 -1
- package/lib/{index.es-DpOAk4i2.js → index.es-C1D-rKkY.js} +1 -1
- package/lib/{index.es-TJGl70mY.js → index.es-CUXwE1pM.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{info-DcQS8IpR.js → info-D85fqVFL.js} +1 -1
- package/lib/{info-t-enQ6Lr.mjs → info-ELzT7QIr.mjs} +1 -1
- package/lib/{info-circle-DT6JQVme.mjs → info-circle-DK-6CdS6.mjs} +1 -1
- package/lib/{info-circle-aXtdOOCE.js → info-circle-NpvKzNp7.js} +1 -1
- package/lib/{lightbulb-PXEUZBLD.js → lightbulb-CiJVLtFu.js} +1 -1
- package/lib/{lightbulb-CtbmuzLN.mjs → lightbulb-Dy_NOzox.mjs} +1 -1
- package/lib/{mail-D9Wkb_fX.js → mail-DMR6frsv.js} +1 -1
- package/lib/{mail-BeOHsaxl.mjs → mail-X76s8rfB.mjs} +1 -1
- package/lib/{mobile-RJYQQ92x.mjs → mobile-CTWZtoa-.mjs} +1 -1
- package/lib/{mobile-iCRio9M2.js → mobile-Dz75gLYD.js} +1 -1
- package/lib/{more-5fdnBWda.mjs → more-BGUpPogP.mjs} +1 -1
- package/lib/{more-CjmHuHR3.js → more-BwPnu0VI.js} +1 -1
- package/lib/{network-placeholder-DfXy-pw6.js → network-placeholder-CF8oh182.js} +1 -1
- package/lib/{network-placeholder-xXksUrh5.mjs → network-placeholder-DU2R8jQ2.mjs} +1 -1
- package/lib/{nftPlaceholder-CsrQCxrs.mjs → nftPlaceholder-CoKZUHau.mjs} +1 -1
- package/lib/{nftPlaceholder-sAiBQkMk.js → nftPlaceholder-buAZxl05.js} +1 -1
- package/lib/{off-BwM4HctO.mjs → off-D0Z3jgVT.mjs} +1 -1
- package/lib/{off-BqIL7yPu.js → off-qyRQY4Vl.js} +1 -1
- package/lib/{play-store-DxNIHRp-.mjs → play-store-CYMg-nje.mjs} +1 -1
- package/lib/{play-store-CI-BG6p6.js → play-store-jvvEP4Tn.js} +1 -1
- package/lib/{plus-B7obWHt8.mjs → plus-B1VhqUcA.mjs} +1 -1
- package/lib/{plus-C6x2EScU.js → plus-Bu2X2bwl.js} +1 -1
- package/lib/{qr-code-3DFC3Q4R.mjs → qr-code-BAYTKQF7.mjs} +1 -1
- package/lib/{qr-code-DmjJRj0_.js → qr-code-CbgdCuGb.js} +1 -1
- package/lib/{recycle-horizontal-Bdxajrwe.mjs → recycle-horizontal-DEJL9OlS.mjs} +1 -1
- package/lib/{recycle-horizontal-CG5av2fz.js → recycle-horizontal-DRYNZsFE.js} +1 -1
- package/lib/{refresh-Zr5AsEKU.mjs → refresh-KOIfdwUh.mjs} +1 -1
- package/lib/{refresh-Btbt-_sS.js → refresh-oE_ngLqp.js} +1 -1
- package/lib/{reown-logo-CfO-XbUR.js → reown-logo-C3Mide1i.js} +1 -1
- package/lib/{reown-logo-CR3PdJr3.mjs → reown-logo-Dmpg2FAv.mjs} +1 -1
- package/lib/{search-CSdDYgkF.mjs → search-CuC3rSF2.mjs} +1 -1
- package/lib/{search-CTbUM9lC.js → search-mOkjsGJ1.js} +1 -1
- package/lib/{secp256k1-DPqpw2CY.mjs → secp256k1-Bja14kVd.mjs} +1 -1
- package/lib/{secp256k1-DWHMs4rw.mjs → secp256k1-C0qkk-vR.mjs} +1 -1
- package/lib/{secp256k1-CnnROfkI.js → secp256k1-D4Srooit.js} +1 -1
- package/lib/{secp256k1-BZjEFwP8.js → secp256k1-rd_mphQA.js} +1 -1
- package/lib/{send-B7xqmURU.js → send-BB0_nSIX.js} +1 -1
- package/lib/{send-DznbeEhx.mjs → send-yzjpu02e.mjs} +1 -1
- package/lib/{solana-AxtnvbY3.mjs → solana-BiosgjxK.mjs} +6 -6
- package/lib/{solana-DLlqlTiO.js → solana-Dr0ynR-F.js} +4 -4
- package/lib/{solanaEmbed.esm-7UXGCmUk.mjs → solanaEmbed.esm-0jQKzy4d.mjs} +1 -1
- package/lib/{solanaEmbed.esm-CAxFhfEV.js → solanaEmbed.esm-r6Bac8PP.js} +1 -1
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
- package/lib/{sui-hvPfY1xD.mjs → sui-CfRHIkOa.mjs} +1 -1
- package/lib/{sui-CBgZojMi.js → sui-ggIMQCwd.js} +1 -1
- package/lib/{swapHorizontal-CD3pRzO9.js → swapHorizontal-C6KHRSpK.js} +1 -1
- package/lib/{swapHorizontal-D794mX-0.mjs → swapHorizontal-zZeZYYWF.mjs} +1 -1
- package/lib/{swapHorizontalBold-BNqV8D-B.mjs → swapHorizontalBold-1MC8ZOxh.mjs} +1 -1
- package/lib/{swapHorizontalBold-DmkD9tJg.js → swapHorizontalBold-DoVEdayo.js} +1 -1
- package/lib/{swapHorizontalMedium-mBKWLCjs.mjs → swapHorizontalMedium-BOHZ9Dg5.mjs} +1 -1
- package/lib/{swapHorizontalMedium-BAsprxHr.js → swapHorizontalMedium-DcR2VrrT.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-TCs9zHMJ.mjs → swapHorizontalRoundedBold-JEVvyOfQ.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-Bxkjq6qT.js → swapHorizontalRoundedBold-N6P7ZpxL.js} +1 -1
- package/lib/{swapVertical-l8Luks9S.mjs → swapVertical-BULwQAah.mjs} +1 -1
- package/lib/{swapVertical-DhTXBg3D.js → swapVertical-CS2a-XY6.js} +1 -1
- package/lib/{telegram-kWkcmqoP.mjs → telegram-DSzKqVhj.mjs} +1 -1
- package/lib/{telegram-DL0uLP7b.js → telegram-DuIkJcxV.js} +1 -1
- package/lib/{three-dots-DrLoXyiQ.mjs → three-dots-DgHvZG77.mjs} +1 -1
- package/lib/{three-dots-DWHn78kh.js → three-dots-sLfFBOoe.js} +1 -1
- package/lib/{tokens-CVWDocZl.mjs → tokens-CA42f7sB.mjs} +1 -1
- package/lib/{tokens-BUz0LqoV.js → tokens-Dl_W_iHS.js} +1 -1
- package/lib/{twitch-I4SDZ--W.mjs → twitch-BhO_1W8r.mjs} +1 -1
- package/lib/{twitch-DhKQH1oi.js → twitch-m9JiCf-P.js} +1 -1
- package/lib/{twitterIcon-jhkqYcKG.js → twitterIcon--GnF9nvE.js} +1 -1
- package/lib/{twitterIcon-b32a7G08.mjs → twitterIcon-fsFN1hu7.mjs} +1 -1
- package/lib/{verify-BHunOaoq.js → verify-Bjs90N4f.js} +1 -1
- package/lib/{verify-BILic2OM.mjs → verify-Db3SLGRB.mjs} +1 -1
- package/lib/{verify-filled-DWED2hiA.mjs → verify-filled-LLxJtqw8.mjs} +1 -1
- package/lib/{verify-filled-DaZqbtNa.js → verify-filled-Q7X_30fP.js} +1 -1
- package/lib/{w3m-modal-Cy1spBe9.mjs → w3m-modal-By8X9uSa.mjs} +2 -2
- package/lib/{w3m-modal-FbJz8iZj.js → w3m-modal-bNYiLd7-.js} +1 -1
- package/lib/{wallet-Bt7nP-Xo.js → wallet-C6wn2W37.js} +1 -1
- package/lib/{wallet-BcFzu16M.mjs → wallet-DyFpD6Ri.mjs} +1 -1
- package/lib/{wallet-placeholder-DgWC2b6z.mjs → wallet-placeholder-C0U4gPUC.mjs} +1 -1
- package/lib/{wallet-placeholder-B4QUbZ9F.js → wallet-placeholder-CX66BGYj.js} +1 -1
- package/lib/{walletconnect-D0jqiSEY.mjs → walletconnect-BaXoBzrQ.mjs} +1 -1
- package/lib/{walletconnect-DJotTW4X.js → walletconnect-C0zt_mNA.js} +1 -1
- package/lib/{warning-circle-Bj9uBvqX.mjs → warning-circle-DqwHoo9u.mjs} +1 -1
- package/lib/{warning-circle-B9it-2WD.js → warning-circle-Dy3ZubCh.js} +1 -1
- package/lib/{x-BLLVBVBO.js → x-C4e8AToN.js} +1 -1
- package/lib/{x-uoxUEJo2.mjs → x-OReg0vUC.mjs} +1 -1
- package/package.json +1 -1
- package/lib/constants-T5Vq_IiF.js +0 -1
package/dist/main.js
CHANGED
|
@@ -99,7 +99,7 @@ export default theme;`}function W9(e={},...t){const{breakpoints:r,mixins:n={},sp
|
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var jh=Y;function Sq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dq=typeof Object.is=="function"?Object.is:Sq,Tq=jh.useSyncExternalStore,Iq=jh.useRef,Nq=jh.useEffect,Lq=jh.useMemo,jq=jh.useDebugValue;nz.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=Iq(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Lq(function(){function d(C){if(!h){if(h=!0,m=C,C=n(C),a!==void 0&&o.hasValue){var E=o.value;if(a(E,C))return b=E}return b=C}if(E=b,Dq(m,C))return E;var T=n(C);return a!==void 0&&a(E,T)?(m=C,E):(m=C,b=T)}var h=!1,m,b,v=r===void 0?null:r;return[function(){return d(t())},v===null?void 0:function(){return d(v())}]},[t,r,n,a]);var u=Tq(e,i[0],i[1]);return Nq(function(){o.hasValue=!0,o.value=u},[u]),jq(u),u};rz.exports=nz;var Bq=rz.exports;function kq(e){e()}function zq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){kq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!n||e===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var hA={notify(){},get:()=>[]};function _q(e,t){let r,n=hA,a=0,i=!1;function o(T){m();const I=n.subscribe(T);let S=!1;return()=>{S||(S=!0,I(),b())}}function u(){n.notify()}function d(){E.onStateChange&&E.onStateChange()}function h(){return i}function m(){a++,r||(r=e.subscribe(d),n=zq())}function b(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=hA)}function v(){i||(i=!0,m())}function C(){i&&(i=!1,b())}const E={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:h,trySubscribe:v,tryUnsubscribe:C,getListeners:()=>n};return E}var Fq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oq=Fq(),Rq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Uq=Rq(),Pq=()=>Oq||Uq?Y.useLayoutEffect:Y.useEffect,Wq=Pq(),Cm=Symbol.for("react-redux-context"),Am=typeof globalThis<"u"?globalThis:{};function Hq(){if(!Y.createContext)return{};const e=Am[Cm]??(Am[Cm]=new Map);let t=e.get(Y.createContext);return t||(t=Y.createContext(null),e.set(Y.createContext,t)),t}var ml=Hq();function Yq(e){const{children:t,context:r,serverState:n,store:a}=e,i=Y.useMemo(()=>{const d=_q(a);return{store:a,subscription:d,getServerState:n?()=>n:void 0}},[a,n]),o=Y.useMemo(()=>a.getState(),[a]);Wq(()=>{const{subscription:d}=i;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),o!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[i,o]);const u=r||ml;return Y.createElement(u.Provider,{value:i},t)}var Zq=Yq;function JM(e=ml){return function(){return Y.useContext(e)}}var iz=JM();function az(e=ml){const t=e===ml?iz:JM(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var Gq=az();function Qq(e=ml){const t=e===ml?Gq:az(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var oi=Qq(),qq=(e,t)=>e===t;function Vq(e=ml){const t=e===ml?iz:JM(e),r=(n,a={})=>{const{equalityFn:i=qq}=typeof a=="function"?{equalityFn:a}:a,o=t(),{store:u,subscription:d,getServerState:h}=o;Y.useRef(!0);const m=Y.useCallback({[n.name](v){return n(v)}}[n.name],[n]),b=Bq.useSyncExternalStoreWithSelector(d.addNestedSub,u.getState,h||u.getState,m,i);return Y.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Lr=Vq();function on(){const e=L6(XM);return e[Fs]||e}function $q(e){return j.jsx(mQ,{...e,defaultTheme:XM,themeId:Fs})}function Kq(e){return function(r){return j.jsx($q,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Xq(){return YM}const Ht=OQ;function Vt(e){return FQ(e)}const Jq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t}),eV=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function tV(e){return Gt("MuiScopedCssBaseline",e)}Zt("MuiScopedCssBaseline",["root"]);const rV=e=>{const{classes:t}=e;return Qt({root:["root"]},tV,t)},nV=at("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(Ht(({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,n])=>{var i,o;const a=e.getColorSchemeSelector(r);a.startsWith("@")?t[a]={colorScheme:(i=n.palette)==null?void 0:i.mode}:t[`&${a.replace(/\s*&/,"")}`]={colorScheme:(o=n.palette)==null?void 0:o.mode}}),{...Jq(e,!1),...eV(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}})),iV=Y.forwardRef(function(t,r){const n=Vt({props:t,name:"MuiScopedCssBaseline"}),{className:a,component:i="div",enableColorScheme:o,...u}=n,d={...n,component:i},h=rV(d);return j.jsx(nV,{as:i,className:Bt(h.root,a),ref:r,ownerState:d,...u})});function aV(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sV(e){return parseFloat(e)}function Em({theme:e,...t}){const r=Fs in e?e[Fs]:void 0;return j.jsx(qk,{...t,themeId:r?Fs:void 0,theme:r||e})}const j2={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:oV}=GQ({themeId:Fs,theme:()=>B6({cssVariables:!0}),colorSchemeStorageKey:j2.colorSchemeStorageKey,modeStorageKey:j2.modeStorageKey,defaultColorScheme:{light:j2.defaultLightColorScheme,dark:j2.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:$k(e.palette,e.typography)};return t.unstable_sx=function(n){return hl({sx:n,theme:this})},t}}),cV=oV;function lV({theme:e,...t}){if(typeof e=="function")return j.jsx(Em,{theme:e,...t});const r=Fs in e?e[Fs]:e;return"colorSchemes"in r?j.jsx(cV,{theme:e,...t}):"vars"in r?j.jsx(Em,{theme:e,...t}):j.jsx(Em,{theme:{...e,vars:null},...t})}function Ai(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uV=typeof Symbol=="function"&&Symbol.observable||"@@observable",pA=uV,Sm=()=>Math.random().toString(36).substring(7).split("").join("."),fV={INIT:`@@redux/INIT${Sm()}`,REPLACE:`@@redux/REPLACE${Sm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sm()}`},G3=fV;function ex(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function sz(e,t,r){if(typeof e!="function")throw new Error(Ai(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ai(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ai(1));return r(sz)(e,t)}let n=e,a=t,i=new Map,o=i,u=0,d=!1;function h(){o===i&&(o=new Map,i.forEach((I,S)=>{o.set(S,I)}))}function m(){if(d)throw new Error(Ai(3));return a}function b(I){if(typeof I!="function")throw new Error(Ai(4));if(d)throw new Error(Ai(5));let S=!0;h();const D=u++;return o.set(D,I),function(){if(S){if(d)throw new Error(Ai(6));S=!1,h(),o.delete(D),i=null}}}function v(I){if(!ex(I))throw new Error(Ai(7));if(typeof I.type>"u")throw new Error(Ai(8));if(typeof I.type!="string")throw new Error(Ai(17));if(d)throw new Error(Ai(9));try{d=!0,a=n(a,I)}finally{d=!1}return(i=o).forEach(D=>{D()}),I}function C(I){if(typeof I!="function")throw new Error(Ai(10));n=I,v({type:G3.REPLACE})}function E(){const I=b;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(Ai(11));function D(){const N=S;N.next&&N.next(m())}return D(),{unsubscribe:I(D)}},[pA](){return this}}}return v({type:G3.INIT}),{dispatch:v,subscribe:b,getState:m,replaceReducer:C,[pA]:E}}function dV(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:G3.INIT})>"u")throw new Error(Ai(12));if(typeof r(void 0,{type:G3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ai(13))})}function hV(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const o=t[i];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let a;try{dV(r)}catch(i){a=i}return function(o={},u){if(a)throw a;let d=!1;const h={};for(let m=0;m<n.length;m++){const b=n[m],v=r[b],C=o[b],E=v(C,u);if(typeof E>"u")throw u&&u.type,new Error(Ai(14));h[b]=E,d=d||E!==C}return d=d||n.length!==Object.keys(o).length,d?h:o}}function Q3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function pV(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error(Ai(15))};const o={getState:a.getState,dispatch:(d,...h)=>i(d,...h)},u=e.map(d=>d(o));return i=Q3(...u)(a.dispatch),{...a,dispatch:i}}}function mV(e){return ex(e)&&"type"in e&&typeof e.type=="string"}var oz=Symbol.for("immer-nothing"),mA=Symbol.for("immer-draftable"),Pa=Symbol.for("immer-state");function js(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var of=Object.getPrototypeOf;function D0(e){return!!e&&!!e[Pa]}function hc(e){var t;return e?cz(e)||Array.isArray(e)||!!e[mA]||!!((t=e.constructor)!=null&&t[mA])||z6(e)||_6(e):!1}var gV=Object.prototype.constructor.toString();function cz(e){if(!e||typeof e!="object")return!1;const t=of(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===gV}function q3(e,t){k6(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function k6(e){const t=e[Pa];return t?t.type_:Array.isArray(e)?1:z6(e)?2:_6(e)?3:0}function Y9(e,t){return k6(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lz(e,t,r){const n=k6(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function yV(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z6(e){return e instanceof Map}function _6(e){return e instanceof Set}function Ol(e){return e.copy_||e.base_}function Z9(e,t){if(z6(e))return new Map(e);if(_6(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=cz(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Pa];let a=Reflect.ownKeys(n);for(let i=0;i<a.length;i++){const o=a[i],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(of(e),n)}else{const n=of(e);if(n!==null&&r)return{...e};const a=Object.create(n);return Object.assign(a,e)}}function tx(e,t=!1){return F6(e)||D0(e)||!hc(e)||(k6(e)>1&&(e.set=e.add=e.clear=e.delete=bV),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>tx(n,!0))),e}function bV(){js(2)}function F6(e){return Object.isFrozen(e)}var MV={};function T0(e){const t=MV[e];return t||js(0,e),t}var O1;function uz(){return O1}function xV(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function gA(e,t){t&&(T0("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function G9(e){Q9(e),e.drafts_.forEach(vV),e.drafts_=null}function Q9(e){e===O1&&(O1=e.parent_)}function yA(e){return O1=xV(O1,e)}function vV(e){const t=e[Pa];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bA(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Pa].modified_&&(G9(t),js(4)),hc(e)&&(e=V3(t,e),t.parent_||$3(t,e)),t.patches_&&T0("Patches").generateReplacementPatches_(r[Pa].base_,e,t.patches_,t.inversePatches_)):e=V3(t,r,[]),G9(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==oz?e:void 0}function V3(e,t,r){if(F6(t))return t;const n=t[Pa];if(!n)return q3(t,(a,i)=>MA(e,n,t,a,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return $3(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const a=n.copy_;let i=a,o=!1;n.type_===3&&(i=new Set(a),a.clear(),o=!0),q3(i,(u,d)=>MA(e,n,a,u,d,r,o)),$3(e,a,!1),r&&e.patches_&&T0("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function MA(e,t,r,n,a,i,o){if(D0(a)){const u=i&&t&&t.type_!==3&&!Y9(t.assigned_,n)?i.concat(n):void 0,d=V3(e,a,u);if(lz(r,n,d),D0(d))e.canAutoFreeze_=!1;else return}else o&&r.add(a);if(hc(a)&&!F6(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;V3(e,a),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&$3(e,a)}}function $3(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tx(t,r)}function wV(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:uz(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,i=rx;r&&(a=[n],i=R1);const{revoke:o,proxy:u}=Proxy.revocable(a,i);return n.draft_=u,n.revoke_=o,u}var rx={get(e,t){if(t===Pa)return e;const r=Ol(e);if(!Y9(r,t))return CV(e,r,t);const n=r[t];return e.finalized_||!hc(n)?n:n===Dm(e.base_,t)?(Tm(e),e.copy_[t]=V9(n,e)):n},has(e,t){return t in Ol(e)},ownKeys(e){return Reflect.ownKeys(Ol(e))},set(e,t,r){const n=fz(Ol(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=Dm(Ol(e),t),i=a==null?void 0:a[Pa];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(yV(r,a)&&(r!==void 0||Y9(e.base_,t)))return!0;Tm(e),q9(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Dm(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Tm(e),q9(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ol(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){js(11)},getPrototypeOf(e){return of(e.base_)},setPrototypeOf(){js(12)}},R1={};q3(rx,(e,t)=>{R1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});R1.deleteProperty=function(e,t){return R1.set.call(this,e,t,void 0)};R1.set=function(e,t,r){return rx.set.call(this,e[0],t,r,e[0])};function Dm(e,t){const r=e[Pa];return(r?Ol(r):e)[t]}function CV(e,t,r){var a;const n=fz(t,r);return n?"value"in n?n.value:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function fz(e,t){if(!(t in e))return;let r=of(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=of(r)}}function q9(e){e.modified_||(e.modified_=!0,e.parent_&&q9(e.parent_))}function Tm(e){e.copy_||(e.copy_=Z9(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var AV=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(d=i,...h){return o.produce(d,m=>r.call(this,m,...h))}}typeof r!="function"&&js(6),n!==void 0&&typeof n!="function"&&js(7);let a;if(hc(t)){const i=yA(this),o=V9(t,void 0);let u=!0;try{a=r(o),u=!1}finally{u?G9(i):Q9(i)}return gA(i,n),bA(a,i)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===oz&&(a=void 0),this.autoFreeze_&&tx(a,!0),n){const i=[],o=[];T0("Patches").generateReplacementPatches_(t,a,i,o),n(i,o)}return a}else js(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,d=>t(d,...u));let n,a;return[this.produce(t,r,(o,u)=>{n=o,a=u}),n,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){hc(e)||js(8),D0(e)&&(e=EV(e));const t=yA(this),r=V9(e,void 0);return r[Pa].isManual_=!0,Q9(t),r}finishDraft(e,t){const r=e&&e[Pa];(!r||!r.isManual_)&&js(9);const{scope_:n}=r;return gA(n,t),bA(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const n=T0("Patches").applyPatches_;return D0(e)?n(e,t):this.produce(e,a=>n(a,t))}};function V9(e,t){const r=z6(e)?T0("MapSet").proxyMap_(e,t):_6(e)?T0("MapSet").proxySet_(e,t):wV(e,t);return(t?t.scope_:uz()).drafts_.push(r),r}function EV(e){return D0(e)||js(10,e),dz(e)}function dz(e){if(!hc(e)||F6(e))return e;const t=e[Pa];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Z9(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Z9(e,!0);return q3(r,(n,a)=>{lz(r,n,dz(a))}),t&&(t.finalized_=!1),r}var Wa=new AV,hz=Wa.produce;Wa.produceWithPatches.bind(Wa);Wa.setAutoFreeze.bind(Wa);Wa.setUseStrictShallowCopy.bind(Wa);Wa.applyPatches.bind(Wa);Wa.createDraft.bind(Wa);Wa.finishDraft.bind(Wa);function pz(e){return({dispatch:r,getState:n})=>a=>i=>typeof i=="function"?i(r,n,e):a(i)}var SV=pz(),DV=pz,TV=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Q3:Q3.apply(null,arguments)};function xA(e,t){function r(...n){if(t){let a=t(...n);if(!a)throw new Error(ac(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>mV(n)&&n.type===e,r}var mz=class Od extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Od.prototype)}static get[Symbol.species](){return Od}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Od(...t[0].concat(this)):new Od(...t.concat(this))}};function vA(e){return hc(e)?hz(e,()=>{}):e}function B2(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function IV(e){return typeof e=="boolean"}var NV=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:i=!0}=t??{};let o=new mz;return r&&(IV(r)?o.push(SV):o.push(DV(r.extraArgument))),o},LV="RTK_autoBatch",wA=e=>t=>{setTimeout(t,e)},jV=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wA(10):e.type==="callback"?e.queueNotification:wA(e.timeout),h=()=>{o=!1,i&&(i=!1,u.forEach(m=>m()))};return Object.assign({},n,{subscribe(m){const b=()=>a&&m(),v=n.subscribe(b);return u.add(m),()=>{v(),u.delete(m)}},dispatch(m){var b;try{return a=!((b=m==null?void 0:m.meta)!=null&&b[LV]),i=!a,i&&(o||(o=!0,d(h))),n.dispatch(m)}finally{a=!0}}})},BV=e=>function(r){const{autoBatch:n=!0}=r??{};let a=new mz(e);return n&&a.push(jV(typeof n=="object"?n:void 0)),a};function kV(e){const t=NV(),{reducer:r=void 0,middleware:n,devTools:a=!0,preloadedState:i=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(ex(r))u=hV(r);else throw new Error(ac(1));let d;typeof n=="function"?d=n(t):d=t();let h=Q3;a&&(h=TV({trace:!1,...typeof a=="object"&&a}));const m=pV(...d),b=BV(m);let v=typeof o=="function"?o(b):b();const C=h(...v);return sz(u,i,C)}function gz(e){const t={},r=[];let n;const a={addCase(i,o){const u=typeof i=="string"?i:i.type;if(!u)throw new Error(ac(28));if(u in t)throw new Error(ac(29));return t[u]=o,a},addMatcher(i,o){return r.push({matcher:i,reducer:o}),a},addDefaultCase(i){return n=i,a}};return e(a),[t,r,n]}function zV(e){return typeof e=="function"}function _V(e,t){let[r,n,a]=gz(t),i;if(zV(e))i=()=>vA(e());else{const u=vA(e);i=()=>u}function o(u=i(),d){let h=[r[d.type],...n.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return h.filter(m=>!!m).length===0&&(h=[a]),h.reduce((m,b)=>{if(b)if(D0(m)){const C=b(m,d);return C===void 0?m:C}else{if(hc(m))return hz(m,v=>b(v,d));{const v=b(m,d);if(v===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return m},u)}return o.getInitialState=i,o}var FV=Symbol.for("rtk-slice-createasyncthunk");function OV(e,t){return`${e}/${t}`}function RV({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[FV];return function(a){const{name:i,reducerPath:o=i}=a;if(!i)throw new Error(ac(11));const u=(typeof a.reducers=="function"?a.reducers(PV()):a.reducers)||{},d=Object.keys(u),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(N,_){const O=typeof N=="string"?N:N.type;if(!O)throw new Error(ac(12));if(O in h.sliceCaseReducersByType)throw new Error(ac(13));return h.sliceCaseReducersByType[O]=_,m},addMatcher(N,_){return h.sliceMatchers.push({matcher:N,reducer:_}),m},exposeAction(N,_){return h.actionCreators[N]=_,m},exposeCaseReducer(N,_){return h.sliceCaseReducersByName[N]=_,m}};d.forEach(N=>{const _=u[N],O={reducerName:N,type:OV(i,N),createNotation:typeof a.reducers=="function"};HV(_)?ZV(O,_,m,t):WV(O,_,m)});function b(){const[N={},_=[],O=void 0]=typeof a.extraReducers=="function"?gz(a.extraReducers):[a.extraReducers],U={...N,...h.sliceCaseReducersByType};return _V(a.initialState,z=>{for(let F in U)z.addCase(F,U[F]);for(let F of h.sliceMatchers)z.addMatcher(F.matcher,F.reducer);for(let F of _)z.addMatcher(F.matcher,F.reducer);O&&z.addDefaultCase(O)})}const v=N=>N,C=new Map,E=new WeakMap;let T;function I(N,_){return T||(T=b()),T(N,_)}function S(){return T||(T=b()),T.getInitialState()}function D(N,_=!1){function O(z){let F=z[N];return typeof F>"u"&&_&&(F=B2(E,O,S)),F}function U(z=v){const F=B2(C,_,()=>new WeakMap);return B2(F,z,()=>{const k={};for(const[w,s]of Object.entries(a.selectors??{}))k[w]=UV(s,z,()=>B2(E,z,S),_);return k})}return{reducerPath:N,getSelectors:U,get selectors(){return U(O)},selectSlice:O}}const L={name:i,reducer:I,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:S,...D(o),injectInto(N,{reducerPath:_,...O}={}){const U=_??o;return N.inject({reducerPath:U,reducer:I},O),{...L,...D(U,!0)}}};return L}}function UV(e,t,r,n){function a(i,...o){let u=t(i);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return a.unwrapped=e,a}var Uf=RV();function PV(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function WV({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!YV(n))throw new Error(ac(17));i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?xA(e,o):xA(e))}function HV(e){return e._reducerDefinitionType==="asyncThunk"}function YV(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ZV({type:e,reducerName:t},r,n,a){if(!a)throw new Error(ac(18));const{payloadCreator:i,fulfilled:o,pending:u,rejected:d,settled:h,options:m}=r,b=a(e,i,m);n.exposeAction(t,b),o&&n.addCase(b.fulfilled,o),u&&n.addCase(b.pending,u),d&&n.addCase(b.rejected,d),h&&n.addMatcher(b.settled,h),n.exposeCaseReducer(t,{fulfilled:o||k2,pending:u||k2,rejected:d||k2,settled:h||k2})}function k2(){}function ac(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const CA={txData:void 0,sendTx:"",redeemTx:"",transferComplete:!1,route:void 0,isResumeTx:!1,timestamp:0},yz=Uf({name:"redeem",initialState:CA,reducers:{setTxDetails:(e,{payload:t})=>{e.txData=t},setSendTx:(e,{payload:t})=>{e.sendTx=t},setRoute:(e,{payload:t})=>{e.route=t},clearRedeem:e=>{Object.keys(e).forEach(t=>{e[t]=CA[t]})},setIsResumeTx:(e,{payload:t})=>{e.isResumeTx=t},setTimestamp:(e,{payload:t})=>{e.timestamp=t}}}),{setTxDetails:nx,setSendTx:GV,clearRedeem:$9,setRoute:ix,setIsResumeTx:bz,setTimestamp:Mz}=yz.actions,QV=yz.reducer,qV={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Wormchain:"",Osmosis:"https://rpc.osmotest5.osmosis.zone",Cosmoshub:"https://rpc.sentry-02.theta-testnet.polypore.xyz",Evmos:"https://evmos-testnet-rpc.polkachu.com",Kujira:"https://kujira-testnet-rpc.polkachu.com",Injective:"https://injective-testnet-rpc.polkachu.com",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Blast:"https://sepolia.blast.io",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com"}},VV={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Wormchain:"https://wormchain-rpc.quickapi.com",Osmosis:"https://osmosis-rpc.polkachu.com",Cosmoshub:"https://cosmos-rpc.polkachu.com",Evmos:"https://evmos-rpc.polkachu.com",Kujira:"https://kujira-rpc.polkachu.com",Injective:"https://injective-rpc.publicnode.com/",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Blast:"https://blast-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com"}},$V={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545",Wormchain:"http://localhost:26659",Osmosis:"http://localhost:33043",Terra2:"http://localhost:26658"}},y1=class y1 extends Error{constructor(){super(y1.MESSAGE)}};Ye(y1,"MESSAGE","Insufficient funds for gas"),Ye(y1,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let K9=y1;const KV={MAINNET:VV,TESTNET:qV,DEVNET:$V},XV={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH"},Bsc:{displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR"},Blast:{displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},Tl=e=>{console.error(`Wormhole Connect: ${e}`)},$t=(e,t)=>t?{[e]:t}:{},JV=(e,t)=>{if(!t)return e;for(const r in t)for(const n in t[r])e[r]||(e[r]={}),e[r][n]={...t[r][n],...e[r][n]};return e},e$=(e,t,r)=>{if(e)return e.fromChain&&(t[e.fromChain]||(Tl(`Invalid chain name "${e.fromChain}" specified for defaultInputs.fromChain`),delete e.fromChain)),e.toChain&&(t[e.toChain]||(Tl(`Invalid chain name "${e.toChain}" specified for defaultInputs.toChain`),delete e.fromChain)),e.fromChain&&e.toChain&&e.fromChain===e.toChain&&Tl("Source and destination chain cannot be the same, check the defaultInputs configuration"),e.fromChain&&e.toChain&&e.requiredChain&&(t[e.requiredChain]||Tl(`Invalid network value "${e.requiredChain}" specified for defaultInputs.requiredChain`),e.toChain!==e.requiredChain&&e.fromChain!==e.requiredChain&&Tl("Source chain or destination chain must equal the required network")),e.fromChain&&e.fromToken&&(r.findByAddressOrSymbol(e.fromChain,e.fromToken)||(Tl(`Invalid token "${e.fromToken}" specified for defaultInputs.fromToken`),delete e.fromToken)),e.toChain&&e.toToken&&(r.findByAddressOrSymbol(e.toChain,e.toToken)||(Tl(`Invalid token "${e.toToken}" specified for defaultInputs.toToken`),delete e.toToken)),e},t$=e=>e[0].toUpperCase()+e.slice(1),r$={},{REACT_APP_ETHEREUM_RPC:n$,REACT_APP_SOLANA_RPC:i$,REACT_APP_POLYGON_RPC:a$,REACT_APP_BSC_RPC:s$,REACT_APP_AVALANCHE_RPC:o$,REACT_APP_FANTOM_RPC:c$,REACT_APP_CELO_RPC:l$,REACT_APP_MOONBEAM_RPC:u$,REACT_APP_SUI_RPC:f$,REACT_APP_APTOS_RPC:d$,REACT_APP_BASE_RPC:h$,REACT_APP_KLAYTN_RPC:p$,REACT_APP_ARBITRUM_RPC:m$,REACT_APP_OPTIMISM_RPC:g$,REACT_APP_SCROLL_RPC:y$,REACT_APP_BLAST_RPC:b$,REACT_APP_XLAYER_RPC:M$,REACT_APP_MANTLE_RPC:x$,REACT_APP_WORLDCHAIN_RPC:v$,REACT_APP_UNICHAIN_RPC:w$,REACT_APP_BERACHAIN_RPC:C$,REACT_APP_LINEA_RPC:A$,REACT_APP_SONIC_RPC:E$}=r$,S$={...$t("Ethereum",n$),...$t("Solana",i$),...$t("Polygon",a$),...$t("Bsc",s$),...$t("Avalanche",o$),...$t("Fantom",c$),...$t("Celo",l$),...$t("Moonbeam",u$),...$t("Sui",f$),...$t("Aptos",d$),...$t("Base",h$),...$t("Arbitrum",m$),...$t("Optimism",g$),...$t("Klaytn",p$),...$t("Scroll",y$),...$t("Blast",b$),...$t("Xlayer",M$),...$t("Mantle",x$),...$t("Worldchain",v$),...$t("Unichain",w$),...$t("Berachain",C$),...$t("Linea",A$),...$t("Sonic",E$)};function AA(e){return{...e,experimental:e.experimental??{},walletConnectProjectId:(e==null?void 0:e.walletConnectProjectId)??void 0}}var Ie=(e=>(e[e.AVAX=1]="AVAX",e[e.BNB=2]="BNB",e[e.BSC=3]="BSC",e[e.CELO=4]="CELO",e[e.ETH=5]="ETH",e[e.FANTOM=6]="FANTOM",e[e.POLYGON=7]="POLYGON",e[e.SOLANA=8]="SOLANA",e[e.USDC=9]="USDC",e[e.GLMR=10]="GLMR",e[e.DAI=11]="DAI",e[e.USDT=12]="USDT",e[e.BUSD=13]="BUSD",e[e.WBTC=14]="WBTC",e[e.SUI=15]="SUI",e[e.APT=16]="APT",e[e.SEI=17]="SEI",e[e.BASE=18]="BASE",e[e.OSMO=19]="OSMO",e[e.TBTC=20]="TBTC",e[e.WSTETH=21]="WSTETH",e[e.ARBITRUM=22]="ARBITRUM",e[e.OPTIMISM=23]="OPTIMISM",e[e.ATOM=24]="ATOM",e[e.EVMOS=25]="EVMOS",e[e.KUJI=26]="KUJI",e[e.PYTH=27]="PYTH",e[e.INJ=28]="INJ",e[e.KLAY=29]="KLAY",e[e.NTT=30]="NTT",e[e.SCROLL=31]="SCROLL",e[e.BLAST=32]="BLAST",e[e.XLAYER=33]="XLAYER",e[e.MANTLE=34]="MANTLE",e[e.WORLDCHAIN=35]="WORLDCHAIN",e[e.BERA=36]="BERA",e[e.BTC=37]="BTC",e[e.SONIC=38]="SONIC",e))(Ie||{});const D$=[{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ie.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ie.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ie.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ie.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ie.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ie.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ie.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ie.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ie.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ie.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:Ie.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:Ie.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:Ie.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:Ie.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ie.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ie.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ie.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ie.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ie.USDC},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ie.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ie.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ie.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ie.USDC},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ie.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ie.WSTETH},{symbol:"KLAY",decimals:18,icon:Ie.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:Ie.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ie.PYTH},{symbol:"ETH",decimals:18,icon:Ie.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:Ie.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:Ie.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ie.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ie.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ie.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ie.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ie.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ie.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ie.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ie.BERA},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:Ie.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ie.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:Ie.USDC}],T$={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},I$={chains:XV,tokens:D$,wrappedTokens:T$,rpcs:S$,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},N$={Bsc:{displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Blast:{displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST",sdkName:"Blast"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},L$={},{REACT_APP_SEPOLIA_RPC:j$,REACT_APP_BSC_TESTNET_RPC:B$,REACT_APP_FUJI_RPC:k$,REACT_APP_FANTOM_TESTNET_RPC:z$,REACT_APP_ALFAJORES_RPC:_$,REACT_APP_SOLANA_DEVNET_RPC:F$,REACT_APP_MOONBASE_RPC:O$,REACT_APP_SUI_TESTNET_RPC:R$,REACT_APP_APTOS_TESTNET_RPC:U$,REACT_APP_BASE_SEPOLIA_RPC:P$,REACT_APP_KLAYTN_TESTNET_RPC:W$,REACT_APP_ARBITRUM_SEPOLIA_RPC:H$,REACT_APP_OPTIMISM_SEPOLIA_RPC:Y$,REACT_APP_SCROLL_TESTNET_RPC:Z$,REACT_APP_BLAST_TESTNET_RPC:G$,REACT_APP_XLAYER_TESTNET_RPC:Q$,REACT_APP_MANTLE_TESTNET_RPC:q$,REACT_APP_WORLDCHAIN_TESTNET_RPC:V$,REACT_APP_UNICHAIN_TESTNET_RPC:$$,REACT_APP_MEZO_TESTNET_RPC:K$,REACT_APP_LINEA_TESTNET_RPC:X$,REACT_APP_SONIC_TESTNET_RPC:J$}=L$,eK={...$t("Sepolia",j$),...$t("Bsc",B$),...$t("Avalanche",k$),...$t("Fantom",z$),...$t("Celo",_$),...$t("Solana",F$),...$t("Moonbeam",O$),...$t("Sui",R$),...$t("Aptos",U$),...$t("BaseSepolia",P$),...$t("ArbitrumSepolia",H$),...$t("OptimismSepolia",Y$),...$t("Klaytn",W$),...$t("Scroll",Z$),...$t("Blast",G$),...$t("Xlayer",Q$),...$t("Mantle",q$),...$t("Worldchain",V$),...$t("Unichain",$$),...$t("Mezo",K$),...$t("Linea",X$),...$t("Sonic",J$)},tK=[{symbol:"BNB",icon:Ie.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ie.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ie.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ie.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:Ie.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:Ie.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:Ie.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ie.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ie.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ie.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ie.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ie.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ie.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ie.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ie.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ie.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ie.USDC},{symbol:"KLAY",icon:Ie.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:Ie.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ie.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ie.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:Ie.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:Ie.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:Ie.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ie.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ie.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ie.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ie.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ie.BTC},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:Ie.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ie.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:Ie.USDC}],rK={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},nK={chains:N$,tokens:tK,wrappedTokens:rK,rpcs:eK,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},iK={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"},Osmosis:{displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Wormchain:{sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Terra2:{sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",icon:"Terra2",symbol:"OSMO"}},aK={},{REACT_APP_ETHEREUM_DEVNET_RPC:sK}=aK,oK={...$t("Ethereum",sK)},cK=[{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],lK={chains:iK,tokens:cK,wrappedTokens:{},rpcs:oK,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},xz="https://wormholescan.io/#/",uK="3.0.1-beta.0-development",fK="177ffec57657fe58a1db5ac8450f10c24fd23dcb",EA=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain","Mezo"];function dK(e){var r;const t=typeof window>"u"||(r=window.location)==null?void 0:r.host;return function(n){const a={meta:{version:uK,hash:fK,host:t},...n};if(console.debug("Wormhole Connect event:",a),e)try{e(a)}catch(i){console.error("Error handling event:",i)}}}const K3=e=>[...Array(e).keys()],vz=(e,t)=>e.map(r=>r[t]),Xl=e=>K3(e[0].length).map(t=>K3(e.length).map(r=>e[r][t])),hK=(e,t,r)=>{const n=new Set(Array.isArray(t)?t:[t]);return e.filter((a,i)=>n.has(i)!==r)};function Ime(e,t=!1){if(e.length===0)throw new Error("Can't calculate median of empty array");const r=t?e:[...e].sort((o,u)=>o>u?1:o<u?-1:0),n=Math.floor(r.length/2);if(r.length%2===1)return r[n];const a=r[n-1],i=r[n];if(typeof a=="bigint"&&typeof i=="bigint")return(a+i)/2n;if(typeof a=="number"&&typeof i=="number")return(a+i)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function pK(e){return["string","number","symbol","bigint","boolean"].includes(typeof e)}const SA=e=>e.length===2&&!Array.isArray(e[0])&&Array.isArray(e[1]),X3=e=>e.length===0?[]:Array.isArray(e[0])?e.map(([t,r])=>Array.isArray(r)?(SA(r)?X3(r):r).map(n=>[t,n].flat()):[[t,r]]).flat():SA(e)?X3(e[1]).map(t=>[e[0],t]):e,mK=(e,t)=>{const r=X3(e);if(r.length===0)throw new Error("Invalid mapping: empty");const n=t===void 0?[K3(r[0].length-1),[r[0].length-1]]:t.map(v=>typeof v=="number"?[v]:v);let a=[],i=!0;const o=(v,C)=>{const E=Array.from(new Set(v[0]).values()),T=new Map(E.map(S=>[S,[]]));for(const[S,D]of v[0].entries())T.get(D).push(S);if(v.length===1){const S=Object.fromEntries(E.map(D=>[D,T.get(D).map(L=>C[L].length===1?C[L][0]:C[L])]));if(i){for(const D of T.values())if(D.length>1)return i=!1,S;a.push(S)}return S}const I=Xl(v.slice(1));return Object.fromEntries(E.map(S=>{const D=T.get(S),L=Xl(D.map(_=>I[_])),N=D.map(_=>C[_]);return[S,o(L,N)]}))},u=Xl(r),d=v=>{const C=u[v];if(C===void 0)throw new Error(`Invalid shape: column ${v} does not exist`);return C},[h,m]=n.map(v=>v.map(C=>d(C)));if(h.length===0)throw new Error("Invalid shape: empty key set");if(m.length===0)throw new Error("Invalid shape: empty value set");for(const v of h)for(const C of v)if(!pK(C))throw new Error(`Invalid key: ${C} in ${v}`);const b=o(h,Xl(m));if(i)for(const v of a)for(const C of Object.keys(v))v[C]=v[C][0];return b};function Kt(e,t){const r=n=>{const a=(...i)=>i.reduce((o,u)=>o?o[u.toString()]??void 0:void 0,n);return Object.assign(a,{has:(...i)=>a(...i)!==void 0,get:(...i)=>a(...i),subMap:i=>r(n[i.toString()])})};return r(mK(e,t))}function ax(e){let t=null;return()=>(t||(t=e()),t)}function gK(e){try{return e(),!1}catch{return!0}}function Nme(e,t,r){return e<t?t:e>r?r:e}var yK=["int","uint","bytes","array","switch"],wz="big",O6=6,I0=e=>typeof e=="number"||typeof e=="bigint",Pf=e=>e instanceof Uint8Array,bK=e=>I0(e)||Pf(e),U1=e=>yK.includes(e==null?void 0:e.binary),MK=e=>U1(e)||Array.isArray(e)&&e.every(U1),xK=e=>typeof(e==null?void 0:e.from)=="number",vK=e=>typeof(e==null?void 0:e.from)=="bigint",wK=e=>xK(e)||vK(e),Wf=e=>Pf(e==null?void 0:e.from),CK=e=>wK(e)||Wf(e),Cz=(e,t)=>{if(e!==t)throw new Error(`size mismatch: layout size: ${e}, data size: ${t}`);return t},cf=e=>"layout"in e&&e.layout!==void 0,X9=(e,t)=>"size"in e&&e.size!==void 0?Cz(e.size,t):t,J9=(e,t)=>{if(e!=t)throw new Error(`value mismatch: (constant) layout value: ${e}, data value: ${t}`)},eb=(e,t,r)=>{const n=(h,m)=>m===void 0?[0,h.length]:Array.isArray(m)?m:[m,h.length],[a,i]=n(e,r==null?void 0:r.customSlice),[o,u]=n(t,r==null?void 0:r.dataSlice),d=i-a;Cz(d,u-o);for(let h=0;h<e.length;++h)if(e[h+a]!==t[h+o])throw new Error(`binary data mismatch: layout value: ${e}, offset: ${a}, data value: ${t}, offset: ${o}`)};function Az(e,t){const r=t[e.idTag??"id"];return e.layouts.find(([n])=>(Array.isArray(n)?n[1]:n)==r)}function Ez(e){return Pl(e,ns)}var ns=Symbol("staticCalc");function AK(e,t){const r=[],n=Pl(e,t,r);if(n===null)throw new Error(`coding error: couldn't calculate layout size for layout ${e} with data ${t}`);return[n,r]}function DA(e,t,r){const n=a=>(r!==void 0&&r.push(a),a);switch(e.binary){case"int":case"uint":return e.size;case"bytes":{if("size"in e&&t===ns)return e.size;const a="lengthSize"in e?e.lengthSize|0:0;if(cf(e)){const{custom:o}=e,u=Pl(e.layout,o===void 0?t:typeof o.from=="function"?t!==ns?n(o.from(t)):ns:o.from,r);return u===null?"size"in e?e.size??null:null:a+X9(e,u)}const{custom:i}=e;return Pf(i)?a+i.length:Wf(i)?a+i.from.length:t===ns?null:a+X9(e,i!==void 0?n(i.from(t)).length:t.length)}case"array":{const a="length"in e?e.length:void 0;if(t===ns){if(a!==void 0){const o=Pl(e.layout,ns,r);return o!==null?a*o:null}return null}let i=0;if(a!==void 0&&a!==t.length)throw new Error(`array length mismatch: layout length: ${a}, data length: ${t.length}`);"lengthSize"in e&&e.lengthSize!==void 0&&(i+=e.lengthSize);for(let o=0;o<t.length;++o){const u=Pl(e.layout,t[o],r);if(u===null)return null;i+=u}return i}case"switch":{if(t!==ns){const[i,o]=Az(e,t),u=Pl(o,t,r);return u!==null?e.idSize+u:null}let a=null;for(const[i,o]of e.layouts){const u=Pl(o,ns,r);if(a===null)a=u;else if(u!==a)return null}return e.idSize+a}}}function Pl(e,t,r){if(U1(e))return DA(e,t,r);let n=0;for(const a of e){let i;if(t===ns)i=ns;else if(!("omit"in a)||!a.omit){if(!(a.name in t))throw new Error(`missing data for layout item: ${a.name}`);i=t[a.name]}const o=DA(a,i,r);if(o===null){if(t!==ns)throw new Error(`coding error: couldn't calculate size for layout item: ${a.name}`);return null}n+=o}return n}var Im=(e,t)=>{e.bytes.set(t,e.offset),e.offset+=t.length},TA=e=>e.bytesConversions[e.position++];function pc(e,t,r){const[n,a]=AK(e,t),i={bytes:new Uint8Array(n),offset:0};if(W4(e,t,i,{bytesConversions:a,position:0}),i.offset!==i.bytes.length)throw new Error(`encoded data is shorter than expected: ${i.bytes.length} > ${i.offset}`);return i.bytes}var EK=2**(O6*8);function Jl(e,t,r,n=wz,a=!1){if(!a&&e<0)throw new Error(`Value ${e} is negative but unsigned`);if(typeof e=="number"){if(!Number.isInteger(e))throw new Error(`Value ${e} is not an integer`);if(t>O6){if(e>=EK)throw new Error(`Value ${e} is too large to be safely converted into an integer`);if(a&&e<-281474976710656)throw new Error(`Value ${e} is too small to be safely converted into an integer`)}}const i=2n**BigInt(t*8-(a?1:0));if(e>=i)throw new Error(`Value ${e} is too large for ${t} bytes`);if(a&&e<-i)throw new Error(`Value ${e} is too small for ${t} bytes`);for(let o=0;o<t;++o)r.bytes[r.offset+o]=Number(BigInt(e)>>BigInt(8*(n==="big"?t-o-1:o))&0xffn);r.offset+=t}function W4(e,t,r,n){if(U1(e))IA(e,t,r,n);else for(const a of e)try{IA(a,t[a.name],r,n)}catch(i){throw i.message=`when serializing item '${a.name}': ${i.message}`,i}}function IA(e,t,r,n){switch(e.binary){case"int":case"uint":{const a=(()=>{var i;return I0(e.custom)?("omit"in e&&e.omit||J9(e.custom,t),e.custom):I0((i=e==null?void 0:e.custom)==null?void 0:i.from)?e.custom.from:e.custom!==void 0?e.custom.from(t):t})();Jl(a,e.size,r,e.endianness,e.binary==="int");break}case"bytes":{const a=r.offset;if("lengthSize"in e&&e.lengthSize!==void 0&&(r.offset+=e.lengthSize),cf(e)){const{custom:i}=e;let o;i===void 0?o=t:typeof i.from!="function"?o=i.from:o=TA(n),W4(e.layout,o,r,n)}else{const{custom:i}=e;Pf(i)?("omit"in e&&e.omit||eb(i,t),Im(r,i)):Wf(i)?Im(r,i.from):Im(r,i!==void 0?TA(n):t)}if("lengthSize"in e&&e.lengthSize!==void 0){const i=r.offset-a-e.lengthSize,o=r.offset;r.offset=a,Jl(i,e.lengthSize,r,e.lengthEndianness),r.offset=o}else X9(e,r.offset-a);break}case"array":{if("length"in e&&e.length!==t.length)throw new Error(`array length mismatch: layout length: ${e.length}, data length: ${t.length}`);"lengthSize"in e&&e.lengthSize!==void 0&&Jl(t.length,e.lengthSize,r,e.lengthEndianness);for(let a=0;a<t.length;++a)W4(e.layout,t[a],r,n);break}case"switch":{const[a,i]=Az(e,t),o=Array.isArray(a)?a[0]:a;Jl(o,e.idSize,r,e.idEndianness),W4(i,t,r,n);break}}}function Sz(e){const t=e.custom;if(!("cachedSerializedFrom"in t)&&(t.cachedSerializedFrom=pc(e.layout,t.from),"size"in e&&e.size!==void 0&&e.size!==t.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return t.cachedSerializedFrom}function mc(e,t,r){const n=r??!0,a={bytes:t,offset:0,end:t.length},i=Rd(e,a);if(n&&a.offset!==a.end)throw new Error(`encoded data is longer than expected: ${a.end} > ${a.offset}`);return n?i:[i,a.offset]}function H4(e,t){const r=e.offset+t;if(r>e.end)throw new Error(`chunk is shorter than expected: ${e.end} < ${r}`);e.offset=r}function Rd(e,t){if(!Array.isArray(e))return NA(e,t);let r={};for(const n of e)try{(n.omit?{}:r)[n.name]=NA(n,t)}catch(a){throw a.message=`when deserializing item '${n.name}': ${a.message}`,a}return r}function z2(e,t,r=wz,n=!1){let a=0n;for(let i=0;i<t;++i)a|=BigInt(e.bytes[e.offset+i])<<BigInt(8*(r==="big"?t-i-1:i));return n&&e.bytes[e.offset+(r==="big"?0:t-1)]&128&&(a-=1n<<BigInt(8*t)),H4(e,t),t>O6?a:Number(a)}function NA(e,t){switch(e.binary){case"int":case"uint":{const r=z2(t,e.size,e.endianness,e.binary==="int"),{custom:n}=e;return I0(n)?(J9(n,r),n):I0(n==null?void 0:n.from)?(J9(n.from,r),n.to):n!==void 0?n.to(r):r}case"bytes":{const r="lengthSize"in e&&e.lengthSize!==void 0?z2(t,e.lengthSize,e.lengthEndianness):e==null?void 0:e.size;if(cf(e)){const{custom:u}=e,d=t.offset;let h;if(r===void 0)h=Rd(e.layout,t);else{const m={...t,end:t.offset+r};if(H4(t,r),h=Rd(e.layout,m),m.offset!==m.end)throw new Error(`read less data than expected: ${m.offset-t.offset} < ${r}`)}return u!==void 0?typeof u.from!="function"?(eb(Sz(e),t.bytes,{dataSlice:[d,t.offset]}),u.to):u.to(h):h}const{custom:n}=e;{let u,d;if(Pf(n)?u=n:Wf(n)&&(u=n.from,d=n.to),u!==void 0){const h=r??u.length,m=t.bytes.subarray(t.offset,t.offset+h);return eb(u,m),H4(t,h),d??u}}const a=t.offset,i=r!==void 0?t.offset+r:t.end;H4(t,i-a);const o=t.bytes.subarray(a,i);return n!==void 0?n.to(o):o}case"array":{let r=[];const{layout:n}=e,a=()=>{const o=Rd(n,t);r.push(o)};let i=null;if("length"in e&&e.length!==void 0?i=e.length:"lengthSize"in e&&e.lengthSize!==void 0&&(i=z2(t,e.lengthSize,e.lengthEndianness)),i!==null)for(let o=0;o<i;++o)a();else for(;t.offset<t.end;)a();return r}case"switch":{const r=z2(t,e.idSize,e.idEndianness),{layouts:n}=e;if(n.length===0)throw new Error("switch item has no layouts");const a=typeof n[0][0]=="number",i=n.find(([h])=>a?h===r:h[0]===r);if(i===void 0)throw new Error(`unknown id value: ${r}`);const[o,u]=i,d=Rd(u,t);return{[e.idTag??"id"]:a?r:o[1],...d}}}}function Lme(e,t){return Y4(e,t)}function LA(e,t){switch(e.binary){case"bytes":if(cf(e)){const{custom:r}=e;return r===void 0||typeof r.from!="function"?Y4(e.layout,r?r.from:t):t}case"int":case"uint":{const{custom:r}=e;return e!=null&&e.omit?void 0:bK(r)?r:CK(r)?r.to:t}case"array":return Array.isArray(t)?t.map(r=>Y4(e.layout,r)):void 0;case"switch":{const r=t[e.idTag??"id"],[n,a]=e.layouts.find(([i])=>(Array.isArray(i)?i[1]:i)==r);return{[e.idTag??"id"]:r,...Y4(a,t)}}}}function Y4(e,t){if(t=t??{},U1(e))return LA(e,t);const r={};for(const n of e){const a=LA(n,t[n.name]??{});a!==void 0&&(r[n.name]=a)}return r}function SK(e,t){const[r,n]=TK(e);if(!r)throw new Error("Cannot uniquely distinguished the given layouts");return a=>{const i=n(a);return i.length===0?null:i[0]}}function tb(e){return e.reduce((t,r)=>t|BigInt(1)<<BigInt(r),BigInt(0))}function _2(e){const t=[];for(let r=0n;e>0n;e>>=1n,++r)e&1n&&t.push(Number(r));return t}function Jn(e){let t=0;for(;e>0n;e>>=1n)t+=Number(e&1n);return t}var jA=e=>e>0?2**(8*e)-1:1/0;function BA(e,t,r){var n;switch(e.binary){case"int":case"uint":{const a=I0(e.custom)?e.custom:I0((n=e==null?void 0:e.custom)==null?void 0:n.from)?e.custom.from:null;if(a!==null&&t!==null){const i={bytes:new Uint8Array(e.size),offset:0};Jl(a,e.size,i,e.endianness,e.binary==="int"),r.push([t,i.bytes])}return[e.size,e.size]}case"bytes":{const a="lengthSize"in e?e.lengthSize|0:0;let i,o;if(cf(e)){const{custom:d}=e;if(d!==void 0&&typeof d.from!="function")i=Sz(e),o=i.length;else{const h=Ez(e.layout);h!==null&&(o=h)}}else{const{custom:d}=e;Pf(d)?(i=d,o=d.length):Wf(d)&&(i=d.from,o=d.from.length)}if(a>0&&t!==null){if(o!==void 0){const d={bytes:new Uint8Array(a),offset:0},h=e.lengthEndianness;Jl(o,a,d,h,!1),r.push([t,d.bytes])}t+=a}if(i!==void 0)return t!==null&&r.push([t,i]),[a+i.length,a+i.length];const u="size"in e&&e.size!==void 0?[e.size,e.size]:void 0;if(cf(e)){const d=Z4(e.layout,t,r);return u??[a+d[0],a+d[1]]}return u??[a,jA(a)]}case"array":{if("length"in e){let i=[];const o=Z4(e.layout,0,i);if(t!==null)if(o[0]!==o[1]){if(e.length>0)for(const[u,d]of i)r.push([t+u,d])}else for(let u=0;u<e.length;++u)for(const[d,h]of i)r.push([t+d+u*o[0],h]);return[e.length*o[0],e.length*o[1]]}const a=e.lengthSize|0;return[a,jA(a)]}case"switch":{const a=e.layouts.map(d=>[]),{idSize:i,idEndianness:o}=e,u=e.layouts.map(([d,h],m)=>{const b=Array.isArray(d)?d[0]:d;if(t!==null){const C={bytes:new Uint8Array(i),offset:0};Jl(b,i,C,o),a[m].push([0,C.bytes])}const v=Z4(h,t!==null?i:null,a[m]);return[v[0]+i,v[1]+i]});return t!==null&&a.every(d=>d.length>0)&&(()=>{const d=Math.min(...a.map(m=>m.at(-1)[0]+m.at(-1)[1].length)),h=a.map(m=>0);for(let m=0;m<d;){let b=null,v=0;for(;v<a.length;){let C=h[v];const E=a[v],[T,I]=E[C];if(T+I.length<=m){if(++C,C===E.length)return;h[v]=C,m=E[C][0];break}const S=I[m-T];if(b===null&&(b=S),S!==b){++m;break}++v}v===a.length&&(r.push([t+m,new Uint8Array([b])]),++m)}})(),[Math.min(...u.map(([d])=>d)),Math.max(...u.map(([d,h])=>h))]}}}function Z4(e,t,r){if(!Array.isArray(e))return BA(e,t,r);let n=[0,0];for(const a of e){const i=BA(a,t,r);n[0]+=i[0],n[1]+=i[1],t!==null&&(t=i[0]===i[1]?t+i[0]:null)}return n}function DK(e){const t=new Map;let r=[];const n=a=>{for(;r.length>0&&r[0][0]<a;){const i=r[0][0]+1,o=r.findIndex(([u])=>i<=u);o===-1?r=[]:r.splice(0,o),t.set(i,tb(r.map(([,u])=>u)))}};for(const[[a,i],o]of e){n(a);const u=r.findIndex(([d])=>d>i);u===-1?r.push([i,o]):r.splice(u,0,[i,o]),t.set(a,tb(r.map(([,d])=>d)))}return n(1/0),t}function TK(e){if(e.length===0)throw new Error("Cannot discriminate empty set of layouts");const t=0n,r=(1n<<BigInt(e.length))-1n,n=e.map(()=>[]),a=e.map((L,N)=>Z4(L,0,n[N])),i=a.map((L,N)=>[L,N]).sort(([[L]],[[N]])=>L-N),o=(()=>{let L=r;const N=new Map;for(const[[_],O]of i)L^=1n<<BigInt(O),N.set(_,L);return N})(),u=DK(i),d=e.length-Math.max(...[...u.values()].map(L=>Jn(L))),h=L=>{let N=r;for(const[_,O]of o){if(L<_)break;N=O}return N},m=L=>{let N=t;for(const[_,O]of u){if(L<_)break;N=O}return N},b=Array.from({length:Math.max(...n.map(L=>L.length>0?L.at(-1)[0]+L.at(-1)[1].length:0))}).map(()=>[]);for(let L=0;L<n.length;++L)for(const[N,_]of n[L])for(let O=0;O<_.length;++O)b[N+O].push([_[O],L]);let v=[];for(const[L,N]of b.entries()){const _=h(L),O=_^tb(N.map(([,k])=>k)),U=r^_,z=new Map;for(const[k,w]of N)z.has(k)||z.set(k,t),z.set(k,z.get(k)|1n<<BigInt(w));let F=e.length-Math.max(Jn(O),Jn(U));for(const k of z.values()){const w=N.length-Jn(k)+Jn(U);F=Math.min(F,w)}if(F!==0){if(F===e.length-1)return[!0,k=>_2(k.length<=L?U:z.get(k[L])??t)];v.push([F,L,U,z,O])}}if(d===e.length-1)return[!0,L=>_2(m(L.length))];v.sort(([L],[N])=>N-L);let C=!0;const E=new Map,T=new Map,I=(L,N)=>{E.set(L,N),T.has(Jn(L))||T.set(Jn(L),[]),T.get(Jn(L)).push(L)},S=(L,N)=>{if(Jn(L)<=1||E.has(L))return;let _=0;const O=new Map;for(const z of _2(L)){const F=a[z][0],k=u.get(F)&L;O.set(F,k),_=Math.max(_,Jn(k))}_=Jn(L)-_;const U=[];for(const[z,F,k,w,s]of N){const l=new Map;let f=0;for(const[x,A]of w){const y=A&L;Jn(y)>0&&(l.set(x,y),f+=Jn(y))}const p=k&L;let g=l.size>0?z:0;for(const x of l.values()){const A=f-Jn(x)+Jn(p);g=Math.min(g,A)}if(g!==0){if(g===Jn(L)-1){I(L,[F,p,l]);return}U.push([g,F,p,l,s&L])}}if(_===Jn(L)-1){I(L,"size");return}if(U.sort(([z],[F])=>F-z),U.length>0&&U[0][0]>=_){const[,z,F,k,w]=U[0];I(L,[z,F,k]),S(F,U);for(const s of k.values())S(s|w,U.slice(1));return}if(_>0){I(L,"size");for(const z of O.values())S(z,U);return}I(L,"indistinguishable"),C=!1};S(r,v);const D=L=>{for(let N=Jn(L)+1;N<e.length-2;++N)for(const _ of T.get(N)??[])if((L&_)==L)return E.get(_);throw new Error("Implementation error in layout discrimination algorithm")};return[C,L=>{let N=r,_=E.get(N);for(;_!=="indistinguishable";){if(_==="size")N&=m(L.length);else{const[O,U,z]=_;if(L.length<=O)N&=U;else{const F=L[O];for(const[k,w]of z)k!==F&&(N^=N&w);N^=N&U}}if(Jn(N)<=1)break;_=E.get(N)??D(N)}return _2(N)}]}var sx=(e,t)=>({...e,binary:"bytes",...t===void 0?{}:MK(t)?{layout:t}:t instanceof Uint8Array||Wf(t)||!Array.isArray(t)?{custom:t}:{layout:t[0],custom:t[1]}});function IK(e,t){const r=Object.fromEntries(e.map(([a,i])=>[i,a])),n=Object.fromEntries(e);return{binary:"uint",size:(t==null?void 0:t.size)??1,endianness:(t==null?void 0:t.endianness)??"big",custom:{to:a=>{const i=r[a];if(i===void 0)throw new Error(`Invalid enum value: ${a}`);return i},from:a=>n[a]}}}function NK(e,t){return{binary:"uint",size:Math.ceil(e.length/8),custom:{to:r=>{const n={};for(let a=0;a<e.length;++a)e[a]&&(n[e[a]]=(BigInt(r)&1n<<BigInt(a))!==0n);return n},from:r=>{let n=0n;for(let a=0;a<e.length;++a)e[a]&&r[e[a]]&&(n|=1n<<BigInt(a));return e.length>O6?n:Number(n)}}}}function LK(e,t){return Number(Number(e).toFixed(t))}function g0(e,t){if(jK(e,t),e=e.toString(),e.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const r=e.split(".");if(r.length>2)throw"Too many decimals";let[n,a]=r.length===0?["0",""]:r.length===1?[r[0],""]:r;if(a=a.padEnd(t,"0"),a.length>t){if(BigInt(a.substring(t))!==0n)throw new Error("Amount: invalid input. Decimals too low.");a=a.substring(0,t)}return{amount:BigInt(n+a).toString(),decimals:t}}function Ra(e,t){if(e.decimals<=t)return e;const r=BigInt(e.decimals-t);return{amount:(er(e)/10n**r*10n**r).toString(),decimals:e.decimals}}function nl(e,t){if(e.decimals===t)return e;if(e.amount==="0")return{amount:e.amount,decimals:t};const r=t-e.decimals;if(r>0)return{amount:e.amount+"0".repeat(r),decimals:t};if(BigInt(e.amount.substring(e.amount.length+r))===0n)return{amount:e.amount.substring(0,e.amount.length+r),decimals:t};throw new Error(`scaleAmount(${JSON.stringify(e)}, ${t}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function Yr(e,t){return{amount:e.toString(),decimals:t}}function er(e){return Dz(e),BigInt(e.amount)}function mn(e,t){Dz(e);let r=e.amount.substring(0,e.amount.length-e.decimals).padStart(1,"0"),n=e.amount.substring(e.amount.length-e.decimals).padStart(e.decimals,"0");if(t!==void 0){for(;n.length>t&&n[n.length-1]==="0";)n=n.substring(0,n.length-1);n=n.padEnd(t,"0")}else n=n.replace(/0+$/,"");return n.length>0?`${r}.${n}`:r}function bo(e){return Number(mn(e))}function kA(e,t){return mn(Yr(e,t))}function jK(e,t){if(typeof e=="number"){if(!isFinite(e))throw new Error("Amount: invalid input. Amount must be finite");if(e<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(e))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(t))throw new Error("Amount: invalid input. Decimals must be finite")}function Dz(e){if(!/^[0-9]*$/.test(e.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(e.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(e.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const lf=(e=0,t=0,r=0)=>new Date(Date.now()+(e*60*60+t*60+r)*1e3);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uf(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function BK(e,...t){if(!uf(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Tz(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(r=>typeof r=="string"):t.every(r=>Number.isSafeInteger(r)):!1}function Iz(e){if(typeof e!="function")throw new Error("function expected");return!0}function N0(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function Hf(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function J3(e){if(!Array.isArray(e))throw new Error("array expected")}function ep(e,t){if(!Tz(!0,t))throw new Error(`${e}: array of strings expected`)}function ox(e,t){if(!Tz(!1,t))throw new Error(`${e}: array of numbers expected`)}function Bh(...e){const t=i=>i,r=(i,o)=>u=>i(o(u)),n=e.map(i=>i.encode).reduceRight(r,t),a=e.map(i=>i.decode).reduce(r,t);return{encode:n,decode:a}}function R6(e){const t=typeof e=="string"?e.split(""):e,r=t.length;ep("alphabet",t);const n=new Map(t.map((a,i)=>[a,i]));return{encode:a=>(J3(a),a.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${e}`);return t[i]})),decode:a=>(J3(a),a.map(i=>{N0("alphabet.decode",i);const o=n.get(i);if(o===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${e}`);return o}))}}function U6(e=""){return N0("join",e),{encode:t=>(ep("join.decode",t),t.join(e)),decode:t=>(N0("join.decode",t),t.split(e))}}function kK(e,t="="){return Hf(e),N0("padding",t),{encode(r){for(ep("padding.encode",r);r.length*e%8;)r.push(t);return r},decode(r){ep("padding.decode",r);let n=r.length;if(n*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if((n-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}function zA(e,t,r){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(J3(e),!e.length)return[];let n=0;const a=[],i=Array.from(e,u=>{if(Hf(u),u<0||u>=t)throw new Error(`invalid integer: ${u}`);return u}),o=i.length;for(;;){let u=0,d=!0;for(let h=n;h<o;h++){const m=i[h],b=t*u,v=b+m;if(!Number.isSafeInteger(v)||b/t!==u||v-m!==b)throw new Error("convertRadix: carry overflow");const C=v/r;u=v%r;const E=Math.floor(C);if(i[h]=E,!Number.isSafeInteger(E)||E*r+u!==v)throw new Error("convertRadix: carry overflow");if(d)E?d=!1:n=h;else continue}if(a.push(u),d)break}for(let u=0;u<e.length-1&&e[u]===0;u++)a.push(0);return a.reverse()}const Nz=(e,t)=>t===0?e:Nz(t,e%t),tp=(e,t)=>e+(t-Nz(e,t)),G4=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function rb(e,t,r,n){if(J3(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(tp(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${tp(t,r)}`);let a=0,i=0;const o=G4[t],u=G4[r]-1,d=[];for(const h of e){if(Hf(h),h>=o)throw new Error(`convertRadix2: invalid data word=${h} from=${t}`);if(a=a<<t|h,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=r;i-=r)d.push((a>>i-r&u)>>>0);const m=G4[i];if(m===void 0)throw new Error("invalid carry");a&=m-1}if(a=a<<r-i&u,!n&&i>=t)throw new Error("Excess padding");if(!n&&a>0)throw new Error(`Non-zero padding: ${a}`);return n&&i>0&&d.push(a>>>0),d}function zK(e){Hf(e);const t=2**8;return{encode:r=>{if(!uf(r))throw new Error("radix.encode input should be Uint8Array");return zA(Array.from(r),t,e)},decode:r=>(ox("radix.decode",r),Uint8Array.from(zA(r,e,t)))}}function cx(e,t=!1){if(Hf(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(tp(8,e)>32||tp(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!uf(r))throw new Error("radix2.encode input should be Uint8Array");return rb(Array.from(r),8,e,!t)},decode:r=>(ox("radix2.decode",r),Uint8Array.from(rb(r,e,8,t)))}}function _A(e){return Iz(e),function(...t){try{return e.apply(null,t)}catch{}}}function _K(e,t){return Hf(e),Iz(t),{encode(r){if(!uf(r))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),a=new Uint8Array(r.length+e);return a.set(r),a.set(n,r.length),a},decode(r){if(!uf(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),a=r.slice(-e),i=t(n).slice(0,e);for(let o=0;o<e;o++)if(i[o]!==a[o])throw new Error("Invalid checksum");return n}}}const FA=Bh(cx(4),R6("0123456789ABCDEF"),U6("")),FK=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",OA=FK?{encode(e){return BK(e),e.toBase64()},decode(e){return N0("base64",e),Uint8Array.fromBase64(e,{lastChunkHandling:"strict"})}}:Bh(cx(6),R6("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),kK(6),U6("")),OK=e=>Bh(zK(58),R6(e),U6("")),nb=OK("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),jme=e=>Bh(_K(4,t=>e(e(t))),nb),ib=Bh(R6("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),U6("")),RA=[996825010,642813549,513874426,1027748829,705979059];function gd(e){const t=e>>25;let r=(e&33554431)<<5;for(let n=0;n<RA.length;n++)(t>>n&1)===1&&(r^=RA[n]);return r}function UA(e,t,r=1){const n=e.length;let a=1;for(let i=0;i<n;i++){const o=e.charCodeAt(i);if(o<33||o>126)throw new Error(`Invalid prefix (${e})`);a=gd(a)^o>>5}a=gd(a);for(let i=0;i<n;i++)a=gd(a)^e.charCodeAt(i)&31;for(let i of t)a=gd(a)^i;for(let i=0;i<6;i++)a=gd(a);return a^=r,ib.encode(rb([a%G4[30]],30,5,!1))}function RK(e){const t=e==="bech32"?1:734539939,r=cx(5),n=r.decode,a=r.encode,i=_A(n);function o(b,v,C=90){N0("bech32.encode prefix",b),uf(v)&&(v=Array.from(v)),ox("bech32.encode",v);const E=b.length;if(E===0)throw new TypeError(`Invalid prefix length ${E}`);const T=E+7+v.length;if(C!==!1&&T>C)throw new TypeError(`Length ${T} exceeds limit ${C}`);const I=b.toLowerCase(),S=UA(I,v,t);return`${I}1${ib.encode(v)}${S}`}function u(b,v=90){N0("bech32.decode input",b);const C=b.length;if(C<8||v!==!1&&C>v)throw new TypeError(`invalid string length: ${C} (${b}). Expected (8..${v})`);const E=b.toLowerCase();if(b!==E&&b!==b.toUpperCase())throw new Error("String must be lowercase or uppercase");const T=E.lastIndexOf("1");if(T===0||T===-1)throw new Error('Letter "1" must be present between prefix and data only');const I=E.slice(0,T),S=E.slice(T+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const D=ib.decode(S).slice(0,-6),L=UA(I,D,t);if(!S.endsWith(L))throw new Error(`Invalid checksum in ${b}: expected "${L}"`);return{prefix:I,words:D}}const d=_A(u);function h(b){const{prefix:v,words:C}=u(b,!1);return{prefix:v,words:C,bytes:n(C)}}function m(b,v){return o(b,a(v))}return{encode:o,decode:u,encodeFromBytes:m,decodeToBytes:h,decodeUnsafe:d,fromWords:n,fromWordsUnsafe:i,toWords:a}}const Su=RK("bech32"),Lz=(e,t)=>t.startsWith(e)?t.slice(e.length):t,UK=/^(?:0x)?[0-9a-fA-F]+$/,Xr={valid:e=>UK.test(e),decode:e=>FA.decode(Lz("0x",e).toUpperCase()),encode:(e,t=!1)=>(e=typeof e=="string"?ii.encode(e):e,(t?"0x":"")+FA.encode(e).toLowerCase())},PK=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,P6={valid:e=>PK.test(e),decode:OA.decode,encode:e=>OA.encode(typeof e=="string"?ii.encode(e):e)},WK={decode:nb.decode,encode:e=>nb.encode(typeof e=="string"?ii.encode(e):e)},y0={decode:e=>(typeof e!="string"&&(e=Xr.encode(e,!0)),e===""||e==="0x"?0n:BigInt(e)),encode:(e,t=!1)=>y0.toString(e,t),toString:(e,t=!1)=>{let r=e.toString(16);return r=r.length%2===1?r="0"+r:r,t?"0x"+r:r},toBytes:(e,t)=>{typeof e=="number"&&(e=y0.toBigInt(e));const r=Xr.decode(y0.toString(e));if(!t)return r;if(t<r.length)throw new Error(`Can't fit ${e} into ${t} bytes.`);return ii.zpad(r,t)},toNumber:e=>{if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${e} exceeds MAX_SAFE_INTEGER`);return Number(e)},toBigInt:e=>{if(e>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${e} exceeds MAX_SAFE_INTEGER`);return BigInt(e)}},ii={encode:e=>new TextEncoder().encode(e),decode:e=>new TextDecoder().decode(e),equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),zpad:(e,t,r=!0)=>r?ii.concat(new Uint8Array(t-e.length),e):ii.concat(e,new Uint8Array(t-e.length)),concat:(...e)=>{const t=e.reduce((a,i)=>a+i.length,0),r=new Uint8Array(t);let n=0;return e.forEach(a=>{r.set(a,n),n+=a.length}),r}},lx=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[50,"Mezo"],[52,"Sonic"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"]],[Bme,jz]=Xl(lx),W6=Kt(lx,[1,0]),oo=Kt(lx),kh=e=>W6.has(e),ab=e=>oo.has(e),H6=e=>{switch(typeof e){case"string":if(kh(e))return W6(e);break;case"number":if(ab(e))return e;break}throw Error(`Cannot convert to ChainId: ${e}`)},zh=e=>{switch(typeof e){case"string":if(kh(e))return e;break;case"number":if(ab(e))return oo(e);break;case"bigint":if(ab(Number(e)))return oo.get(Number(e));break}throw Error(`Cannot convert to Chain: ${e}`)},ux=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Mezo","Sonic"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];vz(ux,0);const Bz=Kt(ux),Hn=Kt(ux,[1,0]),HK=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],YK=Kt(HK),Yf={byAddress:(e,t)=>Object.values(e).find(r=>ZK(r.address,t)),native:e=>Yf.byAddress(e,"native"),bySymbol:(e,t)=>{const r=Object.values(e).filter(n=>n.symbol===t);return r&&r.length>0?r:void 0},byKey:(e,t)=>{const r=Object.entries(e).find(([n])=>t===n);return r?r[1]:void 0}},ZK=(e,t)=>e.toLowerCase()===t.toLowerCase();var PA;(function(e){e[e.Finalized=1]="Finalized",e[e.Immediate=200]="Immediate",e[e.Safe=201]="Safe"})(PA||(PA={}));const GK=[["Ethereum",32]];Kt(GK);const QK=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Mezo",1],["Sonic",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],kz=Kt(QK),qK=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Ink",1e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500],["Berachain",2e3],["Mezo",4e3],["Sonic",330]],zz=Kt(qK);function Y6(e){const t=kz.get(e);if(t===void 0)throw new Error("Cannot find finality for "+e);const r=zz.get(e);if(r===void 0)throw new Error("Cannot find block time for "+e);return t*r}const VK=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],$K=Kt(VK),KK=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],XK=Kt(KK),JK=(e,t)=>e==="Devnet"?void 0:XK.get(e,t),eX=[["Mainnet",[["Ethereum","https://ethereum-rpc.publicnode.com"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://polygon-bor-rpc.publicnode.com"],["Bsc","https://bsc-rpc.publicnode.com"],["Avalanche","https://avalanche-c-chain-rpc.publicnode.com"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://celo-rpc.publicnode.com"],["Moonbeam","https://moonbeam-rpc.publicnode.com"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://scroll-rpc.publicnode.com"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://gnosis-rpc.publicnode.com"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://public-en.node.kaia.io"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"],["Ink","https://rpc-qnd.inkonchain.com"],["Sonic","https://rpc.soniclabs.com"]]],["Testnet",[["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://rpc.testnet.mantle.xyz"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://bepolia.rpc.berachain.com/"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://scroll-sepolia-rpc.publicnode.com"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://public-en-kairos.node.kaia.io"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"],["Mezo","https://rpc.test.mezo.org"],["Sonic","https://rpc.blaze.soniclabs.com"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],tX=Kt(eX),rX=(e,t)=>tX.get(e,t)??"",_z=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Seievm",1329n],["Unichain",130n],["Worldchain",480n],["Ink",57073n],["Sonic",146n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80069n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n],["Mezo",31611n],["Sonic",57054n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],Fz=Kt(_z),nX=Kt(_z,[2,[0,1]]);function kme(e,t){const n=nX(t).filter(([a,i])=>Hn(i)===e);if(n.length!==1)throw new Error(`Platform ${e} has multiple chains with native chain id ${t}`);return n[0]}const iX=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],WA=Kt(iX),aX=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"],["Sonic","0x29219dd400f2Bf60E5a23d13Be72B486D4038894"],["Linea","0x176211869cA2b568f2A7D4EE941E073a821EE1ff"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"],["Sonic","0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"],["Linea","0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"]]]],ki=Kt(aX),fx=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],sX=Kt(fx,[[0,1],2]),sb=Kt(fx,[[0,2],1]),[zme,_me]=Xl(fx),P1=(e,t)=>sX.has(e,t),HA=(e,t)=>sb.has(e,t),YA=(e,t)=>ki.has(e,t),Nm=(e,t)=>{switch(typeof t){case"string":if(P1(e,t))return t;break;case"number":if(HA(e,t))return sb(e,t);break;case"bigint":const r=Number(t);if(HA(e,r))return sb(e,r);break}throw Error(`Cannot convert to Chain: ${t}`)},oX=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Seievm","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"],["Ink","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Mezo","0x268557122Ffd64c85750d630b716471118F323c8"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Oz=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Seievm","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"],["Ink","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"],["Mezo","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Rz=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],cX=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],lX=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Berachain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Ink","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Unichain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Uz=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],uX=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],fX=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],dX=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Pz=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],hX=[["Mainnet",[["Solana","87MEvHZCXE3ML5rrmh5uX1FbShHmRXXS32xJDGbQ7h5t"],["Polygon","0x09959798B95d00a3183d20FaC298E4594E599eab"],["Arbitrum","0x1293a54e160D1cd7075487898d65266081A15458"],["Optimism","0x1293a54e160D1cd7075487898d65266081A15458"],["Base","0x09959798B95d00a3183d20FaC298E4594E599eab"]]]],pX=Kt(oX),mX=Kt(Oz),gX=Kt(Rz),yX=Kt(cX),bX=Kt(lX),ZA=Kt(uX),GA=Kt(fX),QA=Kt(Pz),Q4=Kt(hX),ob=Kt(Uz);Kt(dX);const Wz=Kt(Oz,[0,1]),qA=Kt(Rz,[0,1]),rp=Kt(Uz,[0,1]),VA=Kt(Pz,[0,1]),dx=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[Fme,Ome]=hK(Xl(X3(dx)),[1,2]);Kt(dx,[[0,2],1]);Kt(dx,[1,[0,2]]);const hx=5,MX=[["Mainnet",[["Ethereum","0x18084fbA666a33d37592fA2633fD49a74DD93a88"],["Solana","6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"],["Polygon","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"],["Arbitrum","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Optimism","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Base","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"]]]],xX=Kt(MX),ru=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function vX(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function W1(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function gc(e,...t){if(!vX(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function wX(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");W1(e.outputLen),W1(e.blockLen)}function ff(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Hz(e,t){gc(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function CX(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function gl(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Lm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Qs(e,t){return e<<32-t|e>>>t}function Rme(e,t){return e<<t|e>>>32-t>>>0}const Yz=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Zz(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Ume=Yz?e=>e:e=>Zz(e);function AX(e){for(let t=0;t<e.length;t++)e[t]=Zz(e[t]);return e}const $A=Yz?e=>e:AX,Gz=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",EX=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Pme(e){if(gc(e),Gz)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=EX[e[r]];return t}const Oo={_0:48,_9:57,A:65,F:70,a:97,f:102};function KA(e){if(e>=Oo._0&&e<=Oo._9)return e-Oo._0;if(e>=Oo.A&&e<=Oo.F)return e-(Oo.A-10);if(e>=Oo.a&&e<=Oo.f)return e-(Oo.a-10)}function Wme(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Gz)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const o=KA(e.charCodeAt(i)),u=KA(e.charCodeAt(i+1));if(o===void 0||u===void 0){const d=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+i)}n[a]=o*16+u}return n}function Qz(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function _h(e){return typeof e=="string"&&(e=Qz(e)),gc(e),e}function Hme(e){return typeof e=="string"&&(e=Qz(e)),gc(e),e}function SX(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];gc(a),t+=a.length}const r=new Uint8Array(t);for(let n=0,a=0;n<e.length;n++){const i=e[n];r.set(i,a),a+=i.length}return r}function Yme(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}let px=class{};function Z6(e){const t=n=>e().update(_h(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Gme(e){const t=(n,a)=>e(a).update(_h(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function qz(e=32){if(ru&&typeof ru.getRandomValues=="function")return ru.getRandomValues(new Uint8Array(e));if(ru&&typeof ru.randomBytes=="function")return Uint8Array.from(ru.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function DX(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const a=BigInt(32),i=BigInt(4294967295),o=Number(r>>a&i),u=Number(r&i),d=n?4:0,h=n?0:4;e.setUint32(t+d,o,n),e.setUint32(t+h,u,n)}function TX(e,t,r){return e&t^~e&r}function IX(e,t,r){return e&t^e&r^t&r}class Vz extends px{constructor(t,r,n,a){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=a,this.buffer=new Uint8Array(t),this.view=Lm(this.buffer)}update(t){ff(this),t=_h(t),gc(t);const{view:r,buffer:n,blockLen:a}=this,i=t.length;for(let o=0;o<i;){const u=Math.min(a-this.pos,i-o);if(u===a){const d=Lm(t);for(;a<=i-o;o+=a)this.process(d,o);continue}n.set(t.subarray(o,o+u),this.pos),this.pos+=u,o+=u,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){ff(this),Hz(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:a,isLE:i}=this;let{pos:o}=this;r[o++]=128,gl(this.buffer.subarray(o)),this.padOffset>a-o&&(this.process(n,0),o=0);for(let b=o;b<a;b++)r[b]=0;DX(n,a-8,BigInt(this.length*8),i),this.process(n,0);const u=Lm(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=d/4,m=this.get();if(h>m.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b<h;b++)u.setUint32(4*b,m[b],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:a,finished:i,destroyed:o,pos:u}=this;return t.destroyed=o,t.finished=i,t.length=a,t.pos=u,a%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const Sc=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ui=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),F2=BigInt(2**32-1),XA=BigInt(32);function NX(e,t=!1){return t?{h:Number(e&F2),l:Number(e>>XA&F2)}:{h:Number(e>>XA&F2)|0,l:Number(e&F2)|0}}function $z(e,t=!1){const r=e.length;let n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:o,l:u}=NX(e[i],t);[n[i],a[i]]=[o,u]}return[n,a]}const JA=(e,t,r)=>e>>>r,eE=(e,t,r)=>e<<32-r|t>>>r,nu=(e,t,r)=>e>>>r|t<<32-r,iu=(e,t,r)=>e<<32-r|t>>>r,O2=(e,t,r)=>e<<64-r|t>>>r-32,R2=(e,t,r)=>e>>>r-32|t<<64-r,Qme=(e,t)=>t,qme=(e,t)=>e,LX=(e,t,r)=>e<<r|t>>>32-r,jX=(e,t,r)=>t<<r|e>>>32-r,BX=(e,t,r)=>t<<r-32|e>>>64-r,kX=(e,t,r)=>e<<r-32|t>>>64-r;function Ro(e,t,r,n){const a=(t>>>0)+(n>>>0);return{h:e+r+(a/2**32|0)|0,l:a|0}}const zX=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),_X=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,FX=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),OX=(e,t,r,n,a)=>t+r+n+a+(e/2**32|0)|0,RX=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0),UX=(e,t,r,n,a,i)=>t+r+n+a+i+(e/2**32|0)|0,PX=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Dc=new Uint32Array(64);class WX extends Vz{constructor(t=32){super(64,t,8,!1),this.A=Sc[0]|0,this.B=Sc[1]|0,this.C=Sc[2]|0,this.D=Sc[3]|0,this.E=Sc[4]|0,this.F=Sc[5]|0,this.G=Sc[6]|0,this.H=Sc[7]|0}get(){const{A:t,B:r,C:n,D:a,E:i,F:o,G:u,H:d}=this;return[t,r,n,a,i,o,u,d]}set(t,r,n,a,i,o,u,d){this.A=t|0,this.B=r|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=o|0,this.G=u|0,this.H=d|0}process(t,r){for(let b=0;b<16;b++,r+=4)Dc[b]=t.getUint32(r,!1);for(let b=16;b<64;b++){const v=Dc[b-15],C=Dc[b-2],E=Qs(v,7)^Qs(v,18)^v>>>3,T=Qs(C,17)^Qs(C,19)^C>>>10;Dc[b]=T+Dc[b-7]+E+Dc[b-16]|0}let{A:n,B:a,C:i,D:o,E:u,F:d,G:h,H:m}=this;for(let b=0;b<64;b++){const v=Qs(u,6)^Qs(u,11)^Qs(u,25),C=m+v+TX(u,d,h)+PX[b]+Dc[b]|0,T=(Qs(n,2)^Qs(n,13)^Qs(n,22))+IX(n,a,i)|0;m=h,h=d,d=u,u=o+C|0,o=i,i=a,a=n,n=C+T|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,o=o+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,m=m+this.H|0,this.set(n,a,i,o,u,d,h,m)}roundClean(){gl(Dc)}destroy(){this.set(0,0,0,0,0,0,0,0),gl(this.buffer)}}const Kz=$z(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),HX=Kz[0],YX=Kz[1],Tc=new Uint32Array(80),Ic=new Uint32Array(80);class Xz extends Vz{constructor(t=64){super(128,t,16,!1),this.Ah=Ui[0]|0,this.Al=Ui[1]|0,this.Bh=Ui[2]|0,this.Bl=Ui[3]|0,this.Ch=Ui[4]|0,this.Cl=Ui[5]|0,this.Dh=Ui[6]|0,this.Dl=Ui[7]|0,this.Eh=Ui[8]|0,this.El=Ui[9]|0,this.Fh=Ui[10]|0,this.Fl=Ui[11]|0,this.Gh=Ui[12]|0,this.Gl=Ui[13]|0,this.Hh=Ui[14]|0,this.Hl=Ui[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:a,Ch:i,Cl:o,Dh:u,Dl:d,Eh:h,El:m,Fh:b,Fl:v,Gh:C,Gl:E,Hh:T,Hl:I}=this;return[t,r,n,a,i,o,u,d,h,m,b,v,C,E,T,I]}set(t,r,n,a,i,o,u,d,h,m,b,v,C,E,T,I){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=a|0,this.Ch=i|0,this.Cl=o|0,this.Dh=u|0,this.Dl=d|0,this.Eh=h|0,this.El=m|0,this.Fh=b|0,this.Fl=v|0,this.Gh=C|0,this.Gl=E|0,this.Hh=T|0,this.Hl=I|0}process(t,r){for(let L=0;L<16;L++,r+=4)Tc[L]=t.getUint32(r),Ic[L]=t.getUint32(r+=4);for(let L=16;L<80;L++){const N=Tc[L-15]|0,_=Ic[L-15]|0,O=nu(N,_,1)^nu(N,_,8)^JA(N,_,7),U=iu(N,_,1)^iu(N,_,8)^eE(N,_,7),z=Tc[L-2]|0,F=Ic[L-2]|0,k=nu(z,F,19)^O2(z,F,61)^JA(z,F,6),w=iu(z,F,19)^R2(z,F,61)^eE(z,F,6),s=FX(U,w,Ic[L-7],Ic[L-16]),l=OX(s,O,k,Tc[L-7],Tc[L-16]);Tc[L]=l|0,Ic[L]=s|0}let{Ah:n,Al:a,Bh:i,Bl:o,Ch:u,Cl:d,Dh:h,Dl:m,Eh:b,El:v,Fh:C,Fl:E,Gh:T,Gl:I,Hh:S,Hl:D}=this;for(let L=0;L<80;L++){const N=nu(b,v,14)^nu(b,v,18)^O2(b,v,41),_=iu(b,v,14)^iu(b,v,18)^R2(b,v,41),O=b&C^~b&T,U=v&E^~v&I,z=RX(D,_,U,YX[L],Ic[L]),F=UX(z,S,N,O,HX[L],Tc[L]),k=z|0,w=nu(n,a,28)^O2(n,a,34)^O2(n,a,39),s=iu(n,a,28)^R2(n,a,34)^R2(n,a,39),l=n&i^n&u^i&u,f=a&o^a&d^o&d;S=T|0,D=I|0,T=C|0,I=E|0,C=b|0,E=v|0,{h:b,l:v}=Ro(h|0,m|0,F|0,k|0),h=u|0,m=d|0,u=i|0,d=o|0,i=n|0,o=a|0;const p=zX(k,s,f);n=_X(p,F,w,l),a=p|0}({h:n,l:a}=Ro(this.Ah|0,this.Al|0,n|0,a|0)),{h:i,l:o}=Ro(this.Bh|0,this.Bl|0,i|0,o|0),{h:u,l:d}=Ro(this.Ch|0,this.Cl|0,u|0,d|0),{h,l:m}=Ro(this.Dh|0,this.Dl|0,h|0,m|0),{h:b,l:v}=Ro(this.Eh|0,this.El|0,b|0,v|0),{h:C,l:E}=Ro(this.Fh|0,this.Fl|0,C|0,E|0),{h:T,l:I}=Ro(this.Gh|0,this.Gl|0,T|0,I|0),{h:S,l:D}=Ro(this.Hh|0,this.Hl|0,S|0,D|0),this.set(n,a,i,o,u,d,h,m,b,v,C,E,T,I,S,D)}roundClean(){gl(Tc,Ic)}destroy(){gl(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Pi=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class ZX extends Xz{constructor(){super(32),this.Ah=Pi[0]|0,this.Al=Pi[1]|0,this.Bh=Pi[2]|0,this.Bl=Pi[3]|0,this.Ch=Pi[4]|0,this.Cl=Pi[5]|0,this.Dh=Pi[6]|0,this.Dl=Pi[7]|0,this.Eh=Pi[8]|0,this.El=Pi[9]|0,this.Fh=Pi[10]|0,this.Fl=Pi[11]|0,this.Gh=Pi[12]|0,this.Gl=Pi[13]|0,this.Hh=Pi[14]|0,this.Hl=Pi[15]|0}}const Jz=Z6(()=>new WX),e_=Z6(()=>new Xz),GX=Z6(()=>new ZX),cb=Jz,QX=BigInt(0),yd=BigInt(1),qX=BigInt(2),VX=BigInt(7),$X=BigInt(256),KX=BigInt(113),t_=[],r_=[],n_=[];for(let e=0,t=yd,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],t_.push(2*(5*n+r)),r_.push((e+1)*(e+2)/2%64);let a=QX;for(let i=0;i<7;i++)t=(t<<yd^(t>>VX)*KX)%$X,t&qX&&(a^=yd<<(yd<<BigInt(i))-yd);n_.push(a)}const i_=$z(n_,!0),XX=i_[0],JX=i_[1],tE=(e,t,r)=>r>32?BX(e,t,r):LX(e,t,r),rE=(e,t,r)=>r>32?kX(e,t,r):jX(e,t,r);function eJ(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)r[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const u=(o+8)%10,d=(o+2)%10,h=r[d],m=r[d+1],b=tE(h,m,1)^r[u],v=rE(h,m,1)^r[u+1];for(let C=0;C<50;C+=10)e[o+C]^=b,e[o+C+1]^=v}let a=e[2],i=e[3];for(let o=0;o<24;o++){const u=r_[o],d=tE(a,i,u),h=rE(a,i,u),m=t_[o];a=e[m],i=e[m+1],e[m]=d,e[m+1]=h}for(let o=0;o<50;o+=10){for(let u=0;u<10;u++)r[u]=e[o+u];for(let u=0;u<10;u++)e[o+u]^=~r[(u+2)%10]&r[(u+4)%10]}e[0]^=XX[n],e[1]^=JX[n]}gl(r)}let tJ=class a_ extends px{constructor(t,r,n,a=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=a,this.rounds=i,W1(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=CX(this.state)}clone(){return this._cloneInto()}keccak(){$A(this.state32),eJ(this.state32,this.rounds),$A(this.state32),this.posOut=0,this.pos=0}update(t){ff(this),t=_h(t),gc(t);const{blockLen:r,state:n}=this,a=t.length;for(let i=0;i<a;){const o=Math.min(r-this.pos,a-i);for(let u=0;u<o;u++)n[this.pos++]^=t[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:a}=this;t[n]^=r,r&128&&n===a-1&&this.keccak(),t[a-1]^=128,this.keccak()}writeInto(t){ff(this,!1),gc(t),this.finish();const r=this.state,{blockLen:n}=this;for(let a=0,i=t.length;a<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-a);t.set(r.subarray(this.posOut,this.posOut+o),a),this.posOut+=o,a+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return W1(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Hz(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,gl(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:a,rounds:i,enableXOF:o}=this;return t||(t=new a_(r,n,a,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=a,t.enableXOF=o,t.destroyed=this.destroyed,t}};const s_=(e,t,r)=>Z6(()=>new tJ(t,e,r)),Vme=s_(6,136,256/8),np=s_(1,136,256/8),$me=e_,rJ=GX;class o_ extends px{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,wX(t);const n=_h(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?t.create().update(n).digest():n);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),gl(i)}update(t){return ff(this),this.iHash.update(t),this}digestInto(t){ff(this),gc(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:a,destroyed:i,blockLen:o,outputLen:u}=this;return t=t,t.finished=a,t.destroyed=i,t.blockLen=o,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const c_=(e,t,r)=>new o_(e,t).update(r).digest();c_.create=(e,t)=>new o_(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mx=BigInt(0),ip=BigInt(1);function Fh(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function gx(e){if(!Fh(e))throw new Error("Uint8Array expected")}function il(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function U2(e){const t=e.toString(16);return t.length&1?"0"+t:t}function l_(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?mx:BigInt("0x"+e)}const u_=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",nJ=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function df(e){if(gx(e),u_)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=nJ[e[r]];return t}const Uo={_0:48,_9:57,A:65,F:70,a:97,f:102};function nE(e){if(e>=Uo._0&&e<=Uo._9)return e-Uo._0;if(e>=Uo.A&&e<=Uo.F)return e-(Uo.A-10);if(e>=Uo.a&&e<=Uo.f)return e-(Uo.a-10)}function ap(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(u_)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const o=nE(e.charCodeAt(i)),u=nE(e.charCodeAt(i+1));if(o===void 0||u===void 0){const d=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+i)}n[a]=o*16+u}return n}function b0(e){return l_(df(e))}function i1(e){return gx(e),l_(df(Uint8Array.from(e).reverse()))}function Oh(e,t){return ap(e.toString(16).padStart(t*2,"0"))}function sp(e,t){return Oh(e,t).reverse()}function Wn(e,t,r){let n;if(typeof t=="string")try{n=ap(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Fh(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const a=n.length;if(typeof r=="number"&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return n}function hf(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];gx(a),t+=a.length}const r=new Uint8Array(t);for(let n=0,a=0;n<e.length;n++){const i=e[n];r.set(i,a),a+=i.length}return r}function Kme(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}const jm=e=>typeof e=="bigint"&&mx<=e;function yx(e,t,r){return jm(e)&&jm(t)&&jm(r)&&t<=e&&e<r}function Bs(e,t,r,n){if(!yx(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function iJ(e){let t;for(t=0;e>mx;e>>=ip,t+=1);return t}function Xme(e,t){return e>>BigInt(t)&ip}const G6=e=>(ip<<BigInt(e))-ip,Bm=e=>new Uint8Array(e),iE=e=>Uint8Array.from(e);function aJ(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Bm(e),a=Bm(e),i=0;const o=()=>{n.fill(1),a.fill(0),i=0},u=(...b)=>r(a,n,...b),d=(b=Bm(0))=>{a=u(iE([0]),b),n=u(),b.length!==0&&(a=u(iE([1]),b),n=u())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let b=0;const v=[];for(;b<t;){n=u();const C=n.slice();v.push(C),b+=n.length}return hf(...v)};return(b,v)=>{o(),d(b);let C;for(;!(C=v(h()));)d();return o(),C}}const sJ={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Fh(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Rh(e,t,r={}){const n=(a,i,o)=>{const u=sJ[i];if(typeof u!="function")throw new Error("invalid validator function");const d=e[a];if(!(o&&d===void 0)&&!u(d,e))throw new Error("param "+String(a)+" is invalid. Expected "+i+", got "+d)};for(const[a,i]of Object.entries(t))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return e}const Jme=()=>{throw new Error("not implemented")};function op(e){const t=new WeakMap;return(r,...n)=>{const a=t.get(r);if(a!==void 0)return a;const i=e(r,...n);return t.set(r,i),i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pa=BigInt(0),zi=BigInt(1),e0=BigInt(2),oJ=BigInt(3),f_=BigInt(4),d_=BigInt(5),h_=BigInt(8);function Mn(e,t){const r=e%t;return r>=pa?r:t+r}function kn(e,t,r){let n=e;for(;t-- >pa;)n*=n,n%=r;return n}function lb(e,t){if(e===pa)throw new Error("invert: expected non-zero number");if(t<=pa)throw new Error("invert: expected positive modulus, got "+t);let r=Mn(e,t),n=t,a=pa,i=zi;for(;r!==pa;){const u=n/r,d=n%r,h=a-i*u;n=r,r=d,a=i,i=h}if(n!==zi)throw new Error("invert: does not exist");return Mn(a,t)}function p_(e,t){const r=(e.ORDER+zi)/f_,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function cJ(e,t){const r=(e.ORDER-d_)/h_,n=e.mul(t,e0),a=e.pow(n,r),i=e.mul(t,a),o=e.mul(e.mul(i,e0),a),u=e.mul(i,e.sub(o,e.ONE));if(!e.eql(e.sqr(u),t))throw new Error("Cannot find square root");return u}function lJ(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-zi,r=0;for(;t%e0===pa;)t/=e0,r++;let n=e0;const a=Uh(e);for(;aE(a,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return p_;let i=a.pow(n,t);const o=(t+zi)/e0;return function(d,h){if(d.is0(h))return h;if(aE(d,h)!==1)throw new Error("Cannot find square root");let m=r,b=d.mul(d.ONE,i),v=d.pow(h,t),C=d.pow(h,o);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let E=1,T=d.sqr(v);for(;!d.eql(T,d.ONE);)if(E++,T=d.sqr(T),E===m)throw new Error("Cannot find square root");const I=zi<<BigInt(m-E-1),S=d.pow(b,I);m=E,b=d.sqr(S),v=d.mul(v,b),C=d.mul(C,S)}return C}}function uJ(e){return e%f_===oJ?p_:e%h_===d_?cJ:lJ(e)}const fJ=(e,t)=>(Mn(e,t)&zi)===zi,dJ=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function hJ(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=dJ.reduce((n,a)=>(n[a]="function",n),t);return Rh(e,r)}function pJ(e,t,r){if(r<pa)throw new Error("invalid exponent, negatives unsupported");if(r===pa)return e.ONE;if(r===zi)return t;let n=e.ONE,a=t;for(;r>pa;)r&zi&&(n=e.mul(n,a)),a=e.sqr(a),r>>=zi;return n}function bx(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((o,u,d)=>e.is0(u)?o:(n[d]=o,e.mul(o,u)),e.ONE),i=e.inv(a);return t.reduceRight((o,u,d)=>e.is0(u)?o:(n[d]=e.mul(o,n[d]),e.mul(o,u)),i),n}function aE(e,t){const r=(e.ORDER-zi)/e0,n=e.pow(t,r),a=e.eql(n,e.ONE),i=e.eql(n,e.ZERO),o=e.eql(n,e.neg(e.ONE));if(!a&&!i&&!o)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}function m_(e,t){t!==void 0&&W1(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Uh(e,t,r=!1,n={}){if(e<=pa)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:a,nByteLength:i}=m_(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const u=Object.freeze({ORDER:e,isLE:r,BITS:a,BYTES:i,MASK:G6(a),ZERO:pa,ONE:zi,create:d=>Mn(d,e),isValid:d=>{if(typeof d!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof d);return pa<=d&&d<e},is0:d=>d===pa,isOdd:d=>(d&zi)===zi,neg:d=>Mn(-d,e),eql:(d,h)=>d===h,sqr:d=>Mn(d*d,e),add:(d,h)=>Mn(d+h,e),sub:(d,h)=>Mn(d-h,e),mul:(d,h)=>Mn(d*h,e),pow:(d,h)=>pJ(u,d,h),div:(d,h)=>Mn(d*lb(h,e),e),sqrN:d=>d*d,addN:(d,h)=>d+h,subN:(d,h)=>d-h,mulN:(d,h)=>d*h,inv:d=>lb(d,e),sqrt:n.sqrt||(d=>(o||(o=uJ(e)),o(u,d))),toBytes:d=>r?sp(d,i):Oh(d,i),fromBytes:d=>{if(d.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+d.length);return r?i1(d):b0(d)},invertBatch:d=>bx(u,d),cmov:(d,h,m)=>m?h:d});return Object.freeze(u)}function g_(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function y_(e){const t=g_(e);return t+Math.ceil(t/2)}function mJ(e,t,r=!1){const n=e.length,a=g_(t),i=y_(t);if(n<16||n<i||n>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+n);const o=r?i1(e):b0(e),u=Mn(o,t-zi)+zi;return r?sp(u,a):Oh(u,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const sE=BigInt(0),ub=BigInt(1);function km(e,t){const r=t.negate();return e?r:t}function b_(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function zm(e,t){b_(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),a=2**e,i=G6(e),o=BigInt(e);return{windows:r,windowSize:n,mask:i,maxNumber:a,shiftBy:o}}function oE(e,t,r){const{windowSize:n,mask:a,maxNumber:i,shiftBy:o}=r;let u=Number(e&a),d=e>>o;u>n&&(u-=i,d+=ub);const h=t*n,m=h+Math.abs(u)-1,b=u===0,v=u<0,C=t%2!==0;return{nextN:d,offset:m,isZero:b,isNeg:v,isNegF:C,offsetF:h}}function gJ(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function yJ(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const _m=new WeakMap,M_=new WeakMap;function Fm(e){return M_.get(e)||1}function x_(e,t){return{constTimeNegate:km,hasPrecomputes(r){return Fm(r)!==1},unsafeLadder(r,n,a=e.ZERO){let i=r;for(;n>sE;)n&ub&&(a=a.add(i)),i=i.double(),n>>=ub;return a},precomputeWindow(r,n){const{windows:a,windowSize:i}=zm(n,t),o=[];let u=r,d=u;for(let h=0;h<a;h++){d=u,o.push(d);for(let m=1;m<i;m++)d=d.add(u),o.push(d);u=d.double()}return o},wNAF(r,n,a){let i=e.ZERO,o=e.BASE;const u=zm(r,t);for(let d=0;d<u.windows;d++){const{nextN:h,offset:m,isZero:b,isNeg:v,isNegF:C,offsetF:E}=oE(a,d,u);a=h,b?o=o.add(km(C,n[E])):i=i.add(km(v,n[m]))}return{p:i,f:o}},wNAFUnsafe(r,n,a,i=e.ZERO){const o=zm(r,t);for(let u=0;u<o.windows&&a!==sE;u++){const{nextN:d,offset:h,isZero:m,isNeg:b}=oE(a,u,o);if(a=d,!m){const v=n[h];i=i.add(b?v.negate():v)}}return i},getPrecomputes(r,n,a){let i=_m.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&_m.set(n,a(i))),i},wNAFCached(r,n,a){const i=Fm(r);return this.wNAF(i,this.getPrecomputes(i,r,a),n)},wNAFCachedUnsafe(r,n,a,i){const o=Fm(r);return o===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(o,this.getPrecomputes(o,r,a),n,i)},setWindowSize(r,n){b_(n,t),M_.set(r,n),_m.delete(r)}}}function v_(e,t,r,n){gJ(r,e),yJ(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,u=iJ(BigInt(a));let d=1;u>12?d=u-3:u>4?d=u-2:u>0&&(d=2);const h=G6(d),m=new Array(Number(h)+1).fill(o),b=Math.floor((t.BITS-1)/d)*d;let v=o;for(let C=b;C>=0;C-=d){m.fill(o);for(let T=0;T<i;T++){const I=n[T],S=Number(I>>BigInt(C)&h);m[S]=m[S].add(r[T])}let E=o;for(let T=m.length-1,I=o;T>0;T--)I=I.add(m[T]),E=E.add(I);if(v=v.add(E),C!==0)for(let T=0;T<d;T++)v=v.double()}return v}function Mx(e){return hJ(e.Fp),Rh(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...m_(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function cE(e){e.lowS!==void 0&&il("lowS",e.lowS),e.prehash!==void 0&&il("prehash",e.prehash)}function bJ(e){const t=Mx(e);Rh(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:n,a}=t;if(r){if(!n.eql(a,n.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class MJ extends Error{constructor(t=""){super(t)}}const Zo={Err:MJ,_tlv:{encode:(e,t)=>{const{Err:r}=Zo;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,a=U2(n);if(a.length/2&128)throw new r("tlv.encode: long form length too big");const i=n>127?U2(a.length/2|128):"";return U2(e)+i+a+t},decode(e,t){const{Err:r}=Zo;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const a=t[n++],i=!!(a&128);let o=0;if(!i)o=a;else{const d=a&127;if(!d)throw new r("tlv.decode(long): indefinite length not supported");if(d>4)throw new r("tlv.decode(long): byte length is too big");const h=t.subarray(n,n+d);if(h.length!==d)throw new r("tlv.decode: length bytes not complete");if(h[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const m of h)o=o<<8|m;if(n+=d,o<128)throw new r("tlv.decode(long): not minimal encoding")}const u=t.subarray(n,n+o);if(u.length!==o)throw new r("tlv.decode: wrong value length");return{v:u,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=Zo;if(e<Qo)throw new t("integer: negative integers are not allowed");let r=U2(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=Zo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return b0(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=Zo,a=Wn("signature",e),{v:i,l:o}=n.decode(48,a);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:d}=n.decode(2,i),{v:h,l:m}=n.decode(2,d);if(m.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(h)}},hexFromSig(e){const{_tlv:t,_int:r}=Zo,n=t.encode(2,r.encode(e.r)),a=t.encode(2,r.encode(e.s)),i=n+a;return t.encode(48,i)}};function Om(e,t){return df(Oh(e,t))}const Qo=BigInt(0),ci=BigInt(1);BigInt(2);const Rm=BigInt(3),xJ=BigInt(4);function vJ(e){const t=bJ(e),{Fp:r}=t,n=Uh(t.n,t.nBitLength),a=t.toBytes||((L,N,_)=>{const O=N.toAffine();return hf(Uint8Array.from([4]),r.toBytes(O.x),r.toBytes(O.y))}),i=t.fromBytes||(L=>{const N=L.subarray(1),_=r.fromBytes(N.subarray(0,r.BYTES)),O=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:_,y:O}});function o(L){const{a:N,b:_}=t,O=r.sqr(L),U=r.mul(O,L);return r.add(r.add(U,r.mul(L,N)),_)}function u(L,N){const _=r.sqr(N),O=o(L);return r.eql(_,O)}if(!u(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const d=r.mul(r.pow(t.a,Rm),xJ),h=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(d,h)))throw new Error("bad curve params: a or b");function m(L){return yx(L,ci,t.n)}function b(L){const{allowedPrivateKeyLengths:N,nByteLength:_,wrapPrivateKey:O,n:U}=t;if(N&&typeof L!="bigint"){if(Fh(L)&&(L=df(L)),typeof L!="string"||!N.includes(L.length))throw new Error("invalid private key");L=L.padStart(_*2,"0")}let z;try{z=typeof L=="bigint"?L:b0(Wn("private key",L,_))}catch{throw new Error("invalid private key, expected hex or "+_+" bytes, got "+typeof L)}return O&&(z=Mn(z,U)),Bs("private key",z,ci,U),z}function v(L){if(!(L instanceof T))throw new Error("ProjectivePoint expected")}const C=op((L,N)=>{const{px:_,py:O,pz:U}=L;if(r.eql(U,r.ONE))return{x:_,y:O};const z=L.is0();N==null&&(N=z?r.ONE:r.inv(U));const F=r.mul(_,N),k=r.mul(O,N),w=r.mul(U,N);if(z)return{x:r.ZERO,y:r.ZERO};if(!r.eql(w,r.ONE))throw new Error("invZ was invalid");return{x:F,y:k}}),E=op(L=>{if(L.is0()){if(t.allowInfinityPoint&&!r.is0(L.py))return;throw new Error("bad point: ZERO")}const{x:N,y:_}=L.toAffine();if(!r.isValid(N)||!r.isValid(_))throw new Error("bad point: x or y not FE");if(!u(N,_))throw new Error("bad point: equation left != right");if(!L.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class T{constructor(N,_,O){if(N==null||!r.isValid(N))throw new Error("x required");if(_==null||!r.isValid(_)||r.is0(_))throw new Error("y required");if(O==null||!r.isValid(O))throw new Error("z required");this.px=N,this.py=_,this.pz=O,Object.freeze(this)}static fromAffine(N){const{x:_,y:O}=N||{};if(!N||!r.isValid(_)||!r.isValid(O))throw new Error("invalid affine point");if(N instanceof T)throw new Error("projective point not allowed");const U=z=>r.eql(z,r.ZERO);return U(_)&&U(O)?T.ZERO:new T(_,O,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){const _=bx(r,N.map(O=>O.pz));return N.map((O,U)=>O.toAffine(_[U])).map(T.fromAffine)}static fromHex(N){const _=T.fromAffine(i(Wn("pointHex",N)));return _.assertValidity(),_}static fromPrivateKey(N){return T.BASE.multiply(b(N))}static msm(N,_){return v_(T,n,N,_)}_setWindowSize(N){D.setWindowSize(this,N)}assertValidity(){E(this)}hasEvenY(){const{y:N}=this.toAffine();if(r.isOdd)return!r.isOdd(N);throw new Error("Field doesn't support isOdd")}equals(N){v(N);const{px:_,py:O,pz:U}=this,{px:z,py:F,pz:k}=N,w=r.eql(r.mul(_,k),r.mul(z,U)),s=r.eql(r.mul(O,k),r.mul(F,U));return w&&s}negate(){return new T(this.px,r.neg(this.py),this.pz)}double(){const{a:N,b:_}=t,O=r.mul(_,Rm),{px:U,py:z,pz:F}=this;let k=r.ZERO,w=r.ZERO,s=r.ZERO,l=r.mul(U,U),f=r.mul(z,z),p=r.mul(F,F),g=r.mul(U,z);return g=r.add(g,g),s=r.mul(U,F),s=r.add(s,s),k=r.mul(N,s),w=r.mul(O,p),w=r.add(k,w),k=r.sub(f,w),w=r.add(f,w),w=r.mul(k,w),k=r.mul(g,k),s=r.mul(O,s),p=r.mul(N,p),g=r.sub(l,p),g=r.mul(N,g),g=r.add(g,s),s=r.add(l,l),l=r.add(s,l),l=r.add(l,p),l=r.mul(l,g),w=r.add(w,l),p=r.mul(z,F),p=r.add(p,p),l=r.mul(p,g),k=r.sub(k,l),s=r.mul(p,f),s=r.add(s,s),s=r.add(s,s),new T(k,w,s)}add(N){v(N);const{px:_,py:O,pz:U}=this,{px:z,py:F,pz:k}=N;let w=r.ZERO,s=r.ZERO,l=r.ZERO;const f=t.a,p=r.mul(t.b,Rm);let g=r.mul(_,z),x=r.mul(O,F),A=r.mul(U,k),y=r.add(_,O),c=r.add(z,F);y=r.mul(y,c),c=r.add(g,x),y=r.sub(y,c),c=r.add(_,U);let M=r.add(z,k);return c=r.mul(c,M),M=r.add(g,A),c=r.sub(c,M),M=r.add(O,U),w=r.add(F,k),M=r.mul(M,w),w=r.add(x,A),M=r.sub(M,w),l=r.mul(f,c),w=r.mul(p,A),l=r.add(w,l),w=r.sub(x,l),l=r.add(x,l),s=r.mul(w,l),x=r.add(g,g),x=r.add(x,g),A=r.mul(f,A),c=r.mul(p,c),x=r.add(x,A),A=r.sub(g,A),A=r.mul(f,A),c=r.add(c,A),g=r.mul(x,c),s=r.add(s,g),g=r.mul(M,c),w=r.mul(y,w),w=r.sub(w,g),g=r.mul(y,x),l=r.mul(M,l),l=r.add(l,g),new T(w,s,l)}subtract(N){return this.add(N.negate())}is0(){return this.equals(T.ZERO)}wNAF(N){return D.wNAFCached(this,N,T.normalizeZ)}multiplyUnsafe(N){const{endo:_,n:O}=t;Bs("scalar",N,Qo,O);const U=T.ZERO;if(N===Qo)return U;if(this.is0()||N===ci)return this;if(!_||D.hasPrecomputes(this))return D.wNAFCachedUnsafe(this,N,T.normalizeZ);let{k1neg:z,k1:F,k2neg:k,k2:w}=_.splitScalar(N),s=U,l=U,f=this;for(;F>Qo||w>Qo;)F&ci&&(s=s.add(f)),w&ci&&(l=l.add(f)),f=f.double(),F>>=ci,w>>=ci;return z&&(s=s.negate()),k&&(l=l.negate()),l=new T(r.mul(l.px,_.beta),l.py,l.pz),s.add(l)}multiply(N){const{endo:_,n:O}=t;Bs("scalar",N,ci,O);let U,z;if(_){const{k1neg:F,k1:k,k2neg:w,k2:s}=_.splitScalar(N);let{p:l,f}=this.wNAF(k),{p,f:g}=this.wNAF(s);l=D.constTimeNegate(F,l),p=D.constTimeNegate(w,p),p=new T(r.mul(p.px,_.beta),p.py,p.pz),U=l.add(p),z=f.add(g)}else{const{p:F,f:k}=this.wNAF(N);U=F,z=k}return T.normalizeZ([U,z])[0]}multiplyAndAddUnsafe(N,_,O){const U=T.BASE,z=(k,w)=>w===Qo||w===ci||!k.equals(U)?k.multiplyUnsafe(w):k.multiply(w),F=z(this,_).add(z(N,O));return F.is0()?void 0:F}toAffine(N){return C(this,N)}isTorsionFree(){const{h:N,isTorsionFree:_}=t;if(N===ci)return!0;if(_)return _(T,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:N,clearCofactor:_}=t;return N===ci?this:_?_(T,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return il("isCompressed",N),this.assertValidity(),a(T,this,N)}toHex(N=!0){return il("isCompressed",N),df(this.toRawBytes(N))}}T.BASE=new T(t.Gx,t.Gy,r.ONE),T.ZERO=new T(r.ZERO,r.ONE,r.ZERO);const{endo:I,nBitLength:S}=t,D=x_(T,I?Math.ceil(S/2):S);return{CURVE:t,ProjectivePoint:T,normPrivateKeyToScalar:b,weierstrassEquation:o,isWithinCurveOrder:m}}function wJ(e){const t=Mx(e);return Rh(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function CJ(e){const t=wJ(e),{Fp:r,n,nByteLength:a,nBitLength:i}=t,o=r.BYTES+1,u=2*r.BYTES+1;function d(p){return Mn(p,n)}function h(p){return lb(p,n)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:v,isWithinCurveOrder:C}=vJ({...t,toBytes(p,g,x){const A=g.toAffine(),y=r.toBytes(A.x),c=hf;return il("isCompressed",x),x?c(Uint8Array.from([g.hasEvenY()?2:3]),y):c(Uint8Array.from([4]),y,r.toBytes(A.y))},fromBytes(p){const g=p.length,x=p[0],A=p.subarray(1);if(g===o&&(x===2||x===3)){const y=b0(A);if(!yx(y,ci,r.ORDER))throw new Error("Point is not on curve");const c=v(y);let M;try{M=r.sqrt(c)}catch(Q){const K=Q instanceof Error?": "+Q.message:"";throw new Error("Point is not on curve"+K)}const B=(M&ci)===ci;return(x&1)===1!==B&&(M=r.neg(M)),{x:y,y:M}}else if(g===u&&x===4){const y=r.fromBytes(A.subarray(0,r.BYTES)),c=r.fromBytes(A.subarray(r.BYTES,2*r.BYTES));return{x:y,y:c}}else{const y=o,c=u;throw new Error("invalid Point, expected length of "+y+", or uncompressed "+c+", got "+g)}}});function E(p){const g=n>>ci;return p>g}function T(p){return E(p)?d(-p):p}const I=(p,g,x)=>b0(p.slice(g,x));class S{constructor(g,x,A){Bs("r",g,ci,n),Bs("s",x,ci,n),this.r=g,this.s=x,A!=null&&(this.recovery=A),Object.freeze(this)}static fromCompact(g){const x=a;return g=Wn("compactSignature",g,x*2),new S(I(g,0,x),I(g,x,2*x))}static fromDER(g){const{r:x,s:A}=Zo.toSig(Wn("DER",g));return new S(x,A)}assertValidity(){}addRecoveryBit(g){return new S(this.r,this.s,g)}recoverPublicKey(g){const{r:x,s:A,recovery:y}=this,c=U(Wn("msgHash",g));if(y==null||![0,1,2,3].includes(y))throw new Error("recovery id invalid");const M=y===2||y===3?x+t.n:x;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=y&1?"03":"02",R=m.fromHex(B+Om(M,r.BYTES)),Q=h(M),K=d(-c*Q),q=d(A*Q),W=m.BASE.multiplyAndAddUnsafe(R,K,q);if(!W)throw new Error("point at infinify");return W.assertValidity(),W}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return ap(this.toDERHex())}toDERHex(){return Zo.hexFromSig(this)}toCompactRawBytes(){return ap(this.toCompactHex())}toCompactHex(){const g=a;return Om(this.r,g)+Om(this.s,g)}}const D={isValidPrivateKey(p){try{return b(p),!0}catch{return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const p=y_(t.n);return mJ(t.randomBytes(p),t.n)},precompute(p=8,g=m.BASE){return g._setWindowSize(p),g.multiply(BigInt(3)),g}};function L(p,g=!0){return m.fromPrivateKey(p).toRawBytes(g)}function N(p){if(typeof p=="bigint")return!1;if(p instanceof m)return!0;const x=Wn("key",p).length,A=r.BYTES,y=A+1,c=2*A+1;if(!(t.allowedPrivateKeyLengths||a===y))return x===y||x===c}function _(p,g,x=!0){if(N(p)===!0)throw new Error("first arg must be private key");if(N(g)===!1)throw new Error("second arg must be public key");return m.fromHex(g).multiply(b(p)).toRawBytes(x)}const O=t.bits2int||function(p){if(p.length>8192)throw new Error("input is too large");const g=b0(p),x=p.length*8-i;return x>0?g>>BigInt(x):g},U=t.bits2int_modN||function(p){return d(O(p))},z=G6(i);function F(p){return Bs("num < 2^"+i,p,Qo,z),Oh(p,a)}function k(p,g,x=w){if(["recovered","canonical"].some(X=>X in x))throw new Error("sign() legacy options not supported");const{hash:A,randomBytes:y}=t;let{lowS:c,prehash:M,extraEntropy:B}=x;c==null&&(c=!0),p=Wn("msgHash",p),cE(x),M&&(p=Wn("prehashed msgHash",A(p)));const R=U(p),Q=b(g),K=[F(Q),F(R)];if(B!=null&&B!==!1){const X=B===!0?y(r.BYTES):B;K.push(Wn("extraEntropy",X))}const q=hf(...K),W=R;function G(X){const ne=O(X);if(!C(ne))return;const te=h(ne),V=m.BASE.multiply(ne).toAffine(),oe=d(V.x);if(oe===Qo)return;const xe=d(te*d(W+oe*Q));if(xe===Qo)return;let fe=(V.x===oe?0:2)|Number(V.y&ci),me=xe;return c&&E(xe)&&(me=T(xe),fe^=1),new S(oe,me,fe)}return{seed:q,k2sig:G}}const w={lowS:t.lowS,prehash:!1},s={lowS:t.lowS,prehash:!1};function l(p,g,x=w){const{seed:A,k2sig:y}=k(p,g,x),c=t;return aJ(c.hash.outputLen,c.nByteLength,c.hmac)(A,y)}m.BASE._setWindowSize(8);function f(p,g,x,A=s){var fe;const y=p;g=Wn("msgHash",g),x=Wn("publicKey",x);const{lowS:c,prehash:M,format:B}=A;if(cE(A),"strict"in A)throw new Error("options.strict was renamed to lowS");if(B!==void 0&&B!=="compact"&&B!=="der")throw new Error("format must be compact or der");const R=typeof y=="string"||Fh(y),Q=!R&&!B&&typeof y=="object"&&y!==null&&typeof y.r=="bigint"&&typeof y.s=="bigint";if(!R&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let K,q;try{if(Q&&(K=new S(y.r,y.s)),R){try{B!=="compact"&&(K=S.fromDER(y))}catch(me){if(!(me instanceof Zo.Err))throw me}!K&&B!=="der"&&(K=S.fromCompact(y))}q=m.fromHex(x)}catch{return!1}if(!K||c&&K.hasHighS())return!1;M&&(g=t.hash(g));const{r:W,s:G}=K,X=U(g),ne=h(G),te=d(X*ne),V=d(W*ne),oe=(fe=m.BASE.multiplyAndAddUnsafe(q,te,V))==null?void 0:fe.toAffine();return oe?d(oe.x)===W:!1}return{CURVE:t,getPublicKey:L,getSharedSecret:_,sign:l,verify:f,ProjectivePoint:m,Signature:S,utils:D}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function AJ(e){return{hash:e,hmac:(t,...r)=>c_(e,t,SX(...r)),randomBytes:qz}}function EJ(e,t){const r=n=>CJ({...e,...AJ(n)});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const w_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lE=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),SJ=BigInt(0),DJ=BigInt(1),fb=BigInt(2),uE=(e,t)=>(e+t/fb)/t;function TJ(e){const t=w_,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),o=BigInt(23),u=BigInt(44),d=BigInt(88),h=e*e*e%t,m=h*h*e%t,b=kn(m,r,t)*m%t,v=kn(b,r,t)*m%t,C=kn(v,fb,t)*h%t,E=kn(C,a,t)*C%t,T=kn(E,i,t)*E%t,I=kn(T,u,t)*T%t,S=kn(I,d,t)*I%t,D=kn(S,u,t)*T%t,L=kn(D,r,t)*m%t,N=kn(L,o,t)*E%t,_=kn(N,n,t)*h%t,O=kn(_,fb,t);if(!db.eql(db.sqr(O),e))throw new Error("Cannot find square root");return O}const db=Uh(w_,void 0,void 0,{sqrt:TJ}),t0=EJ({a:SJ,b:BigInt(7),Fp:db,n:lE,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lE,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-DJ*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),u=uE(i*e,t),d=uE(-n*e,t);let h=Mn(e-u*r-d*a,t),m=Mn(-u*n-d*i,t);const b=h>o,v=m>o;if(b&&(h=t-h),v&&(m=t-m),h>o||m>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:h,k2neg:v,k2:m}}}},Jz);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qs=BigInt(0),Ki=BigInt(1),fE=BigInt(2),IJ=BigInt(8),NJ={zip215:!0};function LJ(e){const t=Mx(e);return Rh(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function jJ(e){const t=LJ(e),{Fp:r,n,prehash:a,hash:i,randomBytes:o,nByteLength:u,h:d}=t,h=fE<<BigInt(u*8)-Ki,m=r.create,b=Uh(t.n,t.nBitLength);function v(A,y){const c=r.sqr(A),M=r.sqr(y),B=r.add(r.mul(t.a,c),M),R=r.add(r.ONE,r.mul(t.d,r.mul(c,M)));return r.eql(B,R)}if(!v(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const C=t.uvRatio||((A,y)=>{try{return{isValid:!0,value:r.sqrt(A*r.inv(y))}}catch{return{isValid:!1,value:qs}}}),E=t.adjustScalarBytes||(A=>A),T=t.domain||((A,y,c)=>{if(il("phflag",c),y.length||c)throw new Error("Contexts/pre-hash are not supported");return A});function I(A,y,c=!1){const M=c?Ki:qs;Bs("coordinate "+A,y,M,h)}function S(A){if(!(A instanceof N))throw new Error("ExtendedPoint expected")}const D=op((A,y)=>{const{ex:c,ey:M,ez:B}=A,R=A.is0();y==null&&(y=R?IJ:r.inv(B));const Q=m(c*y),K=m(M*y),q=m(B*y);if(R)return{x:qs,y:Ki};if(q!==Ki)throw new Error("invZ was invalid");return{x:Q,y:K}}),L=op(A=>{const{a:y,d:c}=t;if(A.is0())throw new Error("bad point: ZERO");const{ex:M,ey:B,ez:R,et:Q}=A,K=m(M*M),q=m(B*B),W=m(R*R),G=m(W*W),X=m(K*y),ne=m(W*m(X+q)),te=m(G+m(c*m(K*q)));if(ne!==te)throw new Error("bad point: equation left != right (1)");const V=m(M*B),oe=m(R*Q);if(V!==oe)throw new Error("bad point: equation left != right (2)");return!0});class N{constructor(y,c,M,B){I("x",y),I("y",c),I("z",M,!0),I("t",B),this.ex=y,this.ey=c,this.ez=M,this.et=B,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof N)throw new Error("extended point not allowed");const{x:c,y:M}=y||{};return I("x",c),I("y",M),new N(c,M,Ki,m(c*M))}static normalizeZ(y){const c=bx(r,y.map(M=>M.ez));return y.map((M,B)=>M.toAffine(c[B])).map(N.fromAffine)}static msm(y,c){return v_(N,b,y,c)}_setWindowSize(y){U.setWindowSize(this,y)}assertValidity(){L(this)}equals(y){S(y);const{ex:c,ey:M,ez:B}=this,{ex:R,ey:Q,ez:K}=y,q=m(c*K),W=m(R*B),G=m(M*K),X=m(Q*B);return q===W&&G===X}is0(){return this.equals(N.ZERO)}negate(){return new N(m(-this.ex),this.ey,this.ez,m(-this.et))}double(){const{a:y}=t,{ex:c,ey:M,ez:B}=this,R=m(c*c),Q=m(M*M),K=m(fE*m(B*B)),q=m(y*R),W=c+M,G=m(m(W*W)-R-Q),X=q+Q,ne=X-K,te=q-Q,V=m(G*ne),oe=m(X*te),xe=m(G*te),fe=m(ne*X);return new N(V,oe,fe,xe)}add(y){S(y);const{a:c,d:M}=t,{ex:B,ey:R,ez:Q,et:K}=this,{ex:q,ey:W,ez:G,et:X}=y,ne=m(B*q),te=m(R*W),V=m(K*M*X),oe=m(Q*G),xe=m((B+R)*(q+W)-ne-te),fe=oe-V,me=oe+V,Ze=m(te-c*ne),he=m(xe*fe),Se=m(me*Ze),Ke=m(xe*Ze),ye=m(fe*me);return new N(he,Se,ye,Ke)}subtract(y){return this.add(y.negate())}wNAF(y){return U.wNAFCached(this,y,N.normalizeZ)}multiply(y){const c=y;Bs("scalar",c,Ki,n);const{p:M,f:B}=this.wNAF(c);return N.normalizeZ([M,B])[0]}multiplyUnsafe(y,c=N.ZERO){const M=y;return Bs("scalar",M,qs,n),M===qs?O:this.is0()||M===Ki?this:U.wNAFCachedUnsafe(this,M,N.normalizeZ,c)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return U.unsafeLadder(this,n).is0()}toAffine(y){return D(this,y)}clearCofactor(){const{h:y}=t;return y===Ki?this:this.multiplyUnsafe(y)}static fromHex(y,c=!1){const{d:M,a:B}=t,R=r.BYTES;y=Wn("pointHex",y,R),il("zip215",c);const Q=y.slice(),K=y[R-1];Q[R-1]=K&-129;const q=i1(Q),W=c?h:r.ORDER;Bs("pointHex.y",q,qs,W);const G=m(q*q),X=m(G-Ki),ne=m(M*G-B);let{isValid:te,value:V}=C(X,ne);if(!te)throw new Error("Point.fromHex: invalid y coordinate");const oe=(V&Ki)===Ki,xe=(K&128)!==0;if(!c&&V===qs&&xe)throw new Error("Point.fromHex: x=0 and x_0=1");return xe!==oe&&(V=m(-V)),N.fromAffine({x:V,y:q})}static fromPrivateKey(y){const{scalar:c}=k(y);return _.multiply(c)}toRawBytes(){const{x:y,y:c}=this.toAffine(),M=sp(c,r.BYTES);return M[M.length-1]|=y&Ki?128:0,M}toHex(){return df(this.toRawBytes())}}N.BASE=new N(t.Gx,t.Gy,Ki,m(t.Gx*t.Gy)),N.ZERO=new N(qs,Ki,Ki,qs);const{BASE:_,ZERO:O}=N,U=x_(N,u*8);function z(A){return Mn(A,n)}function F(A){return z(i1(A))}function k(A){const y=r.BYTES;A=Wn("private key",A,y);const c=Wn("hashed private key",i(A),2*y),M=E(c.slice(0,y)),B=c.slice(y,2*y),R=F(M);return{head:M,prefix:B,scalar:R}}function w(A){const{head:y,prefix:c,scalar:M}=k(A),B=_.multiply(M),R=B.toRawBytes();return{head:y,prefix:c,scalar:M,point:B,pointBytes:R}}function s(A){return w(A).pointBytes}function l(A=Uint8Array.of(),...y){const c=hf(...y);return F(i(T(c,Wn("context",A),!!a)))}function f(A,y,c={}){A=Wn("message",A),a&&(A=a(A));const{prefix:M,scalar:B,pointBytes:R}=w(y),Q=l(c.context,M,A),K=_.multiply(Q).toRawBytes(),q=l(c.context,K,R,A),W=z(Q+q*B);Bs("signature.s",W,qs,n);const G=hf(K,sp(W,r.BYTES));return Wn("result",G,r.BYTES*2)}const p=NJ;function g(A,y,c,M=p){const{context:B,zip215:R}=M,Q=r.BYTES;A=Wn("signature",A,2*Q),y=Wn("message",y),c=Wn("publicKey",c,Q),R!==void 0&&il("zip215",R),a&&(y=a(y));const K=i1(A.slice(Q,2*Q));let q,W,G;try{q=N.fromHex(c,R),W=N.fromHex(A.slice(0,Q),R),G=_.multiplyUnsafe(K)}catch{return!1}if(!R&&q.isSmallOrder())return!1;const X=l(B,W.toRawBytes(),q.toRawBytes(),y);return W.add(q.multiplyUnsafe(X)).subtract(G).clearCofactor().equals(N.ZERO)}return _._setWindowSize(8),{CURVE:t,getPublicKey:s,sign:f,verify:g,ExtendedPoint:N,utils:{getExtendedPublicKey:w,randomPrivateKey:()=>o(r.BYTES),precompute(A=8,y=N.BASE){return y._setWindowSize(A),y.multiply(BigInt(3)),y}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const xx=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),dE=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const BJ=BigInt(1),hE=BigInt(2);BigInt(3);const kJ=BigInt(5),zJ=BigInt(8);function _J(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),a=BigInt(80),i=xx,u=e*e%i*e%i,d=kn(u,hE,i)*u%i,h=kn(d,BJ,i)*e%i,m=kn(h,kJ,i)*h%i,b=kn(m,t,i)*m%i,v=kn(b,r,i)*b%i,C=kn(v,n,i)*v%i,E=kn(C,a,i)*C%i,T=kn(E,a,i)*C%i,I=kn(T,t,i)*m%i;return{pow_p_5_8:kn(I,hE,i)*e%i,b2:u}}function FJ(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function OJ(e,t){const r=xx,n=Mn(t*t*t,r),a=Mn(n*n*t,r),i=_J(e*a).pow_p_5_8;let o=Mn(e*n*i,r);const u=Mn(t*o*o,r),d=o,h=Mn(o*dE,r),m=u===e,b=u===Mn(-e,r),v=u===Mn(-e*dE,r);return m&&(o=d),(b||v)&&(o=h),fJ(o,r)&&(o=Mn(-o,r)),{isValid:m||b,value:o}}const pE=Uh(xx,void 0,!0),RJ={a:pE.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:pE,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:zJ,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:e_,randomBytes:qz,adjustScalarBytes:FJ,uvRatio:OJ},Zf=jJ(RJ),UJ=[{name:"appIdPrefix",binary:"bytes",custom:ii.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],Ks=class Ks{constructor(t,r="hex"){Ye(this,"address");this.address=typeof t=="string"?Ks.stringToUint8Array(t,r):t}toNative(t){return xa(t,this)}unwrap(){return this.address}toString(){return Xr.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(t){return ii.equals(this.address,t.address)}static isValidAddress(t,r="hex"){return!gK(()=>Ks.stringToUint8Array(t,r))}static instanceof(t){return typeof t=="object"&&"constructor"in t&&t.constructor.type===Ks.type}static stringToUint8Array(t,r){const n=(()=>{switch(r){case"hex":if(![40,2*this.byteSize].includes(t.length-(t.startsWith("0x")?2:0)))throw new Error(`string ${t} has invalid length for format ${r}`);return Xr.decode(t);case"base58":return WK.decode(t);case"bech32":return Su.decodeToBytes(t).bytes;case"algorandAppId":return rJ(pc(UJ,{appId:BigInt(t)}));case"sha256":return cb(t)}})();if(n.length>Ks.byteSize)throw new Error(`string ${t} has invalid length for format ${r}`);return n.length<Ks.byteSize?ii.zpad(n,Ks.byteSize):n}};Ye(Ks,"byteSize",32),Ye(Ks,"type","Universal");let fn=Ks;function PJ(e){return typeof e=="object"&&"setChain"in e}const hb=new Map;function Gf(e,t){hb.has(e)||hb.set(e,t)}function xa(e,t){const r=Hn.get(e),n=hb.get(r);if(!n)throw new Error(`No native address type registered for platform ${r}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const a=new n(t);return PJ(a)&&a.setChain(e),a}catch(a){const i=`Error parsing address as a native ${e} address: ${a.message}`;if(fn.instanceof(t))throw i;return new fn(t).toNative(e)}}function WJ(e,t){const r=Hn.get(e);return new fn(t,YK.get(r))}const pb=(e,t)=>e?`${e}:${t}`:t,mb=new Map;function HJ(e,t,r){const n=pb(e,t);if(mb.has(n))throw new Error(`Payload type ${n} already registered`);mb.set(n,r)}function Mi(e,t){for(const[r,n]of t)HJ(e,r,n)}const _i={binary:"uint",size:32},YJ={binary:"uint",size:2},ma=e=>({...YJ,custom:{to:t=>{if(t===0){if(!(e!=null&&e.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const r=zh(t),n=(e==null?void 0:e.allowedChains)??jz;if(!n.includes(r))throw new Error(`Chain ${r} not in allowed chains ${n}`);return r},from:t=>t==null?0:W6(t)}}),H1={binary:"uint",size:4},vx={binary:"uint",size:8},C_={binary:"uint",size:4},wl=e=>({name:"payloadId",binary:"uint",size:1,custom:e,omit:!0}),wx={binary:"uint",size:8};class ZJ{constructor(t,r,n){Ye(this,"r");Ye(this,"s");Ye(this,"v");this.r=t,this.s=r,this.v=n}encode(){return pc(gb,this)}static decode(t){return mc(gb,t)}}var mE;(function(e){function t(i){return t0.getPublicKey(i)}e.toPubkey=t;function r(i,o){if(o.length!=32)throw new Error("hash.length != 32");return t0.sign(o,i)}e.sign=r;function n(i,o,u){const{r:d,s:h}=i;return t0.verify({r:d,s:h},u,o)}e.validate=n;function a(i,o){const{r:u,s:d,v:h}=i,m=new t0.Signature(u,d);return m.recovery=h,m.recoverPublicKey(o).toRawBytes()}e.recover=a})(mE||(mE={}));const GJ=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],gb={binary:"bytes",layout:GJ,custom:{to:e=>new ZJ(e.r,e.s,e.v),from:e=>({r:e.r,s:e.s,v:e.v})}},wr={binary:"bytes",size:32,custom:{to:e=>new fn(e),from:e=>e.toUint8Array()}},QJ=e=>{const t=e.findIndex(r=>r!==0);return-1<t?e.slice(t):new Uint8Array([])},qJ={to:ii.decode,from:ii.encode},A_=e=>({binary:"bytes",size:e,custom:{to:t=>ii.decode(QJ(t)),from:t=>ii.zpad(ii.encode(t),e)}});function VJ(e){const t=e.indexOf(":");return t!==-1?[e.slice(0,t),e.slice(t+1)]:[null,e]}const $J=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...gb}],E_=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...C_},{name:"signatures",binary:"array",lengthSize:1,layout:$J}],S_=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...ma()},{name:"emitterAddress",...wr},{name:"sequence",...wx},{name:"consistencyLevel",binary:"uint",size:1}],KJ=[...E_,...S_];function Y1(e){const t=mb.get(e);if(!t)throw new Error(`No layout registered for payload type ${e}`);return t}function XJ(e){return{name:"payload",binary:"bytes",...e==="Uint8Array"?{}:{layout:Y1(e)}}}function yb(e){const t=[...KJ,XJ(e.payloadLiteral)];return pc(t,e)}function ege(e,t){if(e==="Uint8Array")return t;const r=Y1(e);return pc(r,t)}function Cx(e,t){const r=(()=>{if(Array.isArray(e[0]))return e.flatMap(([o,u])=>u.map(d=>pb(o,d)));if(typeof e[1]=="string")return e;const[a,i]=e;return i.map(o=>pb(a,o))})(),n=SK(r.map(a=>Y1(a)));return a=>{typeof a=="string"&&(a=Xr.decode(a));const i=n(a);return Array.isArray(i)?i.map(o=>r[o]):i!==null?r[i]:null}}function Z1(e,t){typeof t=="string"&&(t=Xr.decode(t));const[r,n]=mc(E_,t,!1);for(let C=1;C<r.signatures.length;++C)if(r.signatures[C].guardianIndex<=r.signatures[C-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const a=n,[i,o]=mc(S_,t.subarray(a),!1),u=a+o,[d,h]=typeof e=="string"?[e,gE(e,t.subarray(u))]:gE(e,t.subarray(u)),[m,b]=VJ(d),v=np(t.slice(a));return{protocolName:m,payloadName:b,payloadLiteral:d,...r,...i,payload:h,hash:v}}function gE(e,t,r=0){return(()=>{if(typeof t=="string"&&(t=Xr.decode(t)),e==="Uint8Array")return t.slice(r);if(typeof e=="string")return mc(Y1(e),t.subarray(r));const n=e(t.slice(r));if(n===null)throw new Error(`Encoded data does not match any of the given payload types - ${t}`);return[n,mc(Y1(n),t.subarray(r))]})()}const JJ=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],yE=Kt(JJ,[0,[1,2]]),eee=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],bE=Kt(eee,[0,[1,2]]);function Q6(e,t){if(e!=="Devnet"){if(e==="Mainnet"){if(!yE.has(t))return;const r=yE.get(t);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:t,key:n}]))}if(e==="Testnet"){if(!bE.has(t))return;const r=bE.get(t);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:t,key:n}]))}throw new Error("Unsupported network: "+e)}}function tee(e,t){const r=Q6(e,t);return r?Yf.native(r):void 0}function tge(e,t,r){const n=Q6(e,t);return n?Yf.byAddress(n,r):void 0}function ree(e,t,r){const n=Q6(e,t);return n?Yf.byKey(n,r):void 0}function nee(e,t){const r={coreBridge:pX.get(e,t),tokenBridge:mX.get(e,t),nftBridge:yX.get(e,t),relayer:bX.get(e,t),tokenBridgeRelayer:gX.get(e,t),tbtc:Q4.get(e,t)};return ob.has(e,t)&&(r.cctp=ob.get(e,t)),ZA.has(e,t)&&(r.gateway=ZA.get(e,t)),GA.has(e,t)&&(r.translator=GA.get(e,t)),QA.has(e,t)&&(r.portico=QA.get(e,t)),Q4.has(e,t)&&(r.tbtc=Q4.get(e,t)),r}function pn(e){return typeof e=="string"&&e==="native"}function D_(e){return{chain:e,address:"native"}}function Ph(e){return typeof e=="object"&&e.address!==void 0&&e.chain!==void 0&&kh(e.chain)}function ks(e,t){return e.chain!==t.chain?!1:pn(e.address)&&pn(t.address)?!0:Qi(e)===Qi(t)}function Qi(e){return Ph(e)&&pn(e.address)?e.address:e.address.toNative(e.chain).toString()}function q4(e,t,r){let n;if(Ph(r)){if(!pn(r.address))return[!1,r];n=r.address}else n=r;if(pn(n)){const i=tee(e,t);if(!i)throw new Error("Invalid destination token");const o=i.wrappedKey,u=ree(e,t,o);if(!u)throw new Error("Invalid wrapped token key: "+o);return[!0,{chain:t,address:xa(t,u.address)}]}return[!1,{chain:t,address:n}]}function T_(e){return e.chain!==void 0&&e.txid!==void 0}function Um(e){return jz.map(r=>{const n=Hn(r);let a="";try{a=Fz.get(e,r)}catch{}const i=Q6(e,r),o=i?Object.values(i).find(d=>pn(d.address)&&d.wrappedKey):void 0,u=o?i[o.wrappedKey]:void 0;return{key:r,platform:n,network:e,chainId:H6(r),finalityThreshold:kz.get(r)??0,blockTime:zz.get(r)??0,contracts:nee(e,r),nativeTokenDecimals:$K(n),nativeChainId:a,tokenMap:i,wrappedNative:u,explorer:JK(e,r),rpc:rX(e,r)}}).reduce((r,n)=>({...r,[n.key]:n}),{})}function iee(e){return aee(e)||I_(e)}function aee(e){return typeof e=="object"&&"chain"in e&&typeof e.chain=="function"&&"address"in e&&typeof e.address=="function"&&"sign"in e&&typeof e.sign=="function"}function I_(e){return typeof e=="object"&&"chain"in e&&typeof e.chain=="function"&&"address"in e&&typeof e.address=="function"&&"signAndSend"in e&&typeof e.signAndSend=="function"}class rge{constructor(t,r,n){Ye(this,"_chain");Ye(this,"_address");Ye(this,"_signer");this._chain=t,this._address=r,this._signer=n}unwrap(){return this._signer}}function Pu(e){return e.sequence!==void 0&&e.emitter!==void 0&&e.chain!==void 0}function cp(e){return e.hash!==void 0}const ME=e=>[wl(1),{name:"token",binary:"bytes",layout:[{name:"address",...wr},{name:"amount",..._i}]},{name:"sourceDomain",...H1},{name:"targetDomain",...H1},{name:"nonce",...vx},{name:"caller",...wr},{name:"mintRecipient",...wr},sx({name:"payload",lengthSize:2},e)],see=[wl(1),{name:"targetRelayerFee",..._i},{name:"toNativeTokenAmount",..._i},{name:"targetRecipient",...wr}],oee=[["DepositWithPayload",ME()],["TransferWithRelay",ME(see)]];Mi("AutomaticCircleBridge",oee);const N_={binary:"uint",size:4,custom:0,omit:!0},cee=[{name:"messageBodyVersion",...N_},{name:"burnToken",...wr},{name:"mintRecipient",...wr},{name:"amount",..._i},{name:"messageSender",...wr}],bb=[{name:"version",...N_},{name:"sourceDomain",...H1},{name:"destinationDomain",...H1},{name:"nonce",...vx},{name:"sender",...wr},{name:"recipient",...wr},{name:"destinationCaller",...wr},{name:"payload",binary:"bytes",layout:cee}],lee=[["Message",bb]];Mi("CircleBridge",lee);var pf;(function(e){e.isCircleAttestation=t=>t.message!==void 0,e.deserialize=t=>{const r=mc(bb,t),n=Xr.encode(np(t),!0);return[r,n]},e.serialize=t=>pc(bb,t)})(pf||(pf={}));var xE;(function(e){const t="AutomaticCircleBridge",r=["DepositWithPayload","TransferWithRelay"];e.getTransferDiscriminator=ax(()=>Cx([t,r]))})(xE||(xE={}));function uee(e){return e.amount!==void 0&&e.from!==void 0&&e.to!==void 0}const vE={binary:"bytes",size:32,custom:{to:e=>K3(e.byteLength).map(t=>String.fromCharCode(e[t])).join(""),from:e=>new Uint8Array(e.split("").map(t=>t.charCodeAt(0)))}},L_=[{name:"token",binary:"bytes",layout:[{name:"amount",..._i},{name:"address",...wr},{name:"chain",...ma()}]},{name:"to",binary:"bytes",layout:[{name:"address",...wr},{name:"chain",...ma()}]}],j_=[wl(1),...L_,{name:"fee",..._i}],q6=e=>[wl(3),...L_,{name:"from",...wr},sx({name:"payload"},e)],fee=[["AttestMeta",[wl(2),{name:"token",binary:"bytes",layout:[{name:"address",...wr},{name:"chain",...ma()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...vE},{name:"name",...vE}]],["Transfer",j_],["TransferWithPayload",q6()]];Mi("TokenBridge",fee);const dee=NK(["shouldWrapNative","shouldUnwrapNative"]),Mb=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...dee}],xb=[{name:"flagSet",binary:"bytes",layout:Mb},{name:"finalTokenAddress",...wr},{name:"recipientAddress",...wr},{name:"cannonAssetAmount",..._i},{name:"minAmountFinish",..._i},{name:"relayerFee",..._i}],hee=[["Transfer",q6(xb)]];Mi("PorticoBridge",hee);var wE;(function(e){e.deserializePayload=t=>mc(xb,t),e.serializePayload=t=>pc(xb,t),e.deserializeFlagSet=t=>mc(Mb,t),e.serializeFlagSet=t=>pc(Mb,t)})(wE||(wE={}));const B_={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",..._i},{name:"targetChainRefundPerGasUnused",..._i}]},CE={binary:"bytes",layout:[{name:"chain",...ma()},{name:"address",...wr}]},pee=[{name:"chain",...ma()},{name:"emitterAddress",...wr},{name:"sequence",...wx}],mee=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...H1},{name:"nonce",...vx}],k_={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],pee],[[2,"CCTP"],mee]]},gee=e=>[wl(1),{name:"target",...CE},sx({name:"payload",lengthSize:4},e),{name:"requestedReceiverValue",..._i},{name:"extraReceiverValue",..._i},{name:"executionInfo",...B_},{name:"refund",...CE},{name:"refundDeliveryProvider",...wr},{name:"sourceDeliveryProvider",...wr},{name:"senderAddress",...wr},{name:"messageKeys",binary:"array",lengthSize:1,layout:k_}],yee=[["DeliveryInstruction",gee()],["RedeliveryInstruction",[wl(2),{name:"deliveryVaaKey",binary:"bytes",layout:k_},{name:"targetChain",...ma()},{name:"newRequestedReceiverValue",..._i},{name:"newEncodedExecutionInfo",...B_},{name:"newSourceDeliveryProvider",...wr},{name:"newSenderAddress",...wr}]]];Mi("Relayer",yee);const bee=[wl(1),{name:"targetRelayerFee",..._i},{name:"toNativeTokenAmount",..._i},{name:"targetRecipient",...wr}],Mee=[["TransferWithRelay",q6(bee)]];Mi("AutomaticTokenBridge",Mee);const nge=e=>new Error(`Token ${e} is not a wrapped asset`);var vb;(function(e){const t="TokenBridge",r=["Transfer","TransferWithPayload"],n=["AttestMeta"];[...r,...n],e.getTransferDiscriminator=ax(()=>Cx([t,r]))})(vb||(vb={}));function xee(e){return e.token!==void 0&&e.amount!==void 0&&e.from!==void 0&&e.to!==void 0}const vee=[["Add",1],["Subtract",2],["Unknown",3]],wb={binary:"bytes",size:20,custom:{to:e=>Xr.encode(e,!0),from:e=>Xr.decode(e)}},wee=[["UpgradeContract",[!1,[{name:"newContract",...wr}]]],["RegisterChain",[!0,[{name:"foreignChain",...ma()},{name:"foreignAddress",...wr}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...ma({allowedChains:Bz("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...C_},{name:"guardians",binary:"array",lengthSize:1,layout:wb}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...wr}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...wr}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...ma()},{name:"emitterAddress",...wr},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],Pm={binary:"bytes",size:32},AE=[{name:"contractAddr",...wr},{name:"codeId",binary:"uint",size:8}],Cee=[["StoreCode",[!1,[{name:"wasmHash",...Pm}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...Pm}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...Pm}]]],["AddWasmInstantiateAllowlist",[!1,AE]],["DeleteWasmInstantiateAllowlist",[!1,AE]]],Aee=(()=>{const e=a=>({binary:"bytes",size:a,custom:qJ}),t=[{name:"height",binary:"uint",size:8}],r=Ez(t),n=a=>[{name:"name",...e(a)},...t];return{binary:"bytes",custom:{to:a=>mc(n(a.length-r),a),from:a=>pc(n(a.name.length),a)}}})(),Eee=[["ScheduleUpgrade",[!1,Aee]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...wr}]]]],See=[["ModifyBalance",[!1,[{name:"sequence",...wx},{name:"modifiedChain",...ma()},{name:"tokenChain",...ma()},{name:"tokenAddress",...wr},{name:"kind",...IK(vee)},{name:"amount",..._i},{name:"reason",...A_(32)}]]]],Dee=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...A_(64)},{name:"channelChain",...ma({allowedChains:Bz("Cosmwasm")})}]]]],Tee=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...wb},{name:"targetContract",...wb},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...wr},{name:"payload",binary:"bytes"}]]]],z_=[...wee,...Cee,...Eee,...See,...Dee,...Tee];vz(z_,0);const EE=Object.fromEntries(z_),Iee=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],Nee=Kt(Iee),Lee=e=>({to:e,from:(()=>{const r=new Uint8Array(32),n=Nee(e);for(let a=1;a<=n.length;++a)r[32-a]=n.charCodeAt(n.length-a);return r})()}),jee=(e,t)=>({to:e,from:t}),Bee=(e,t,r)=>[{name:"protocol",binary:"bytes",custom:Lee(e)},{name:"action",binary:"uint",size:1,custom:jee(t,r)},{name:"chain",...ma({allowNull:EE[t][0]})},{name:"actionArgs",binary:"bytes",layout:EE[t][1]}],Pr=(e,t,r)=>[t,Bee(e,t,r)],kee=[Pr("WormholeCore","UpgradeContract",1),Pr("WormholeCore","GuardianSetUpgrade",2),Pr("WormholeCore","SetMessageFee",3),Pr("WormholeCore","TransferFees",4),Pr("WormholeCore","RecoverChainId",5)],zee=[Pr("TokenBridge","RegisterChain",1),Pr("TokenBridge","UpgradeContract",2),Pr("TokenBridge","RecoverChainId",3)],_ee=[Pr("NftBridge","RegisterChain",1),Pr("NftBridge","UpgradeContract",2),Pr("NftBridge","RecoverChainId",3)],Fee=[Pr("Relayer","RegisterChain",1),Pr("Relayer","UpgradeContract",2),Pr("Relayer","UpdateDefaultProvider",3)],Oee=[Pr("CircleBridge","UpdateFinality",1),Pr("CircleBridge","RegisterEmitterAndDomain",2),Pr("CircleBridge","UpgradeContract",3)],Ree=[Pr("IbcBridge","ActionUpdateChannelChain",1)],Uee=[Pr("IbcReceiver","ActionUpdateChannelChain",1)],Pee=[Pr("GlobalAccountant","ModifyBalance",1)],Wee=[Pr("GeneralPurposeGovernance","GeneralPurposeEvm",1),Pr("GeneralPurposeGovernance","GeneralPurposeSolana",2)],Hee=[Pr("WormchainGovernance","StoreCode",1),Pr("WormchainGovernance","InstantiateContract",2),Pr("WormchainGovernance","MigrateContract",3),Pr("WormchainGovernance","AddWasmInstantiateAllowlist",4),Pr("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],Yee=[Pr("GatewayGovernance","ScheduleUpgrade",1),Pr("GatewayGovernance","CancelUpgrade",2),Pr("GatewayGovernance","SetIbcComposabilityMwContract",3)];Mi("WormholeCore",kee);Mi("TokenBridge",zee);Mi("NftBridge",_ee);Mi("Relayer",Fee);Mi("CircleBridge",Oee);Mi("IbcBridge",Ree);Mi("IbcReceiver",Uee);Mi("GlobalAccountant",Pee);Mi("GeneralPurposeGovernance",Wee);Mi("WormchainGovernance",Hee);Mi("GatewayGovernance",Yee);var ts;(function(e){const t="TBTCBridge",r=["GatewayTransfer","Transfer"];[...r],e.getTransferDiscriminator=ax(()=>Cx([t,r])),e.getNativeTbtcToken=n=>{const a=xX.get("Mainnet",n);if(a)return{chain:n,address:xa(n,a)}}})(ts||(ts={}));const Zee=[{name:"recipient",...wr}],Gee=[["GatewayTransfer",q6(Zee)],["Transfer",j_]];Mi("TBTCBridge",Gee);function __(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qee}=Object.prototype,{getPrototypeOf:Ax}=Object,V6=(e=>t=>{const r=Qee.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Io=e=>(e=e.toLowerCase(),t=>V6(t)===e),$6=e=>t=>typeof t===e,{isArray:Qf}=Array,G1=$6("undefined");function qee(e){return e!==null&&!G1(e)&&e.constructor!==null&&!G1(e.constructor)&&ps(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F_=Io("ArrayBuffer");function Vee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F_(e.buffer),t}const $ee=$6("string"),ps=$6("function"),O_=$6("number"),K6=e=>e!==null&&typeof e=="object",Kee=e=>e===!0||e===!1,V4=e=>{if(V6(e)!=="object")return!1;const t=Ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xee=Io("Date"),Jee=Io("File"),ete=Io("Blob"),tte=Io("FileList"),rte=e=>K6(e)&&ps(e.pipe),nte=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ps(e.append)&&((t=V6(e))==="formdata"||t==="object"&&ps(e.toString)&&e.toString()==="[object FormData]"))},ite=Io("URLSearchParams"),ate=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wh(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Qf(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let u;for(n=0;n<o;n++)u=i[n],t.call(null,e[u],u,e)}}function R_(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const U_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Je.global,P_=e=>!G1(e)&&e!==U_;function Cb(){const{caseless:e}=P_(this)&&this||{},t={},r=(n,a)=>{const i=e&&R_(t,a)||a;V4(t[i])&&V4(n)?t[i]=Cb(t[i],n):V4(n)?t[i]=Cb({},n):Qf(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Wh(arguments[n],r);return t}const ste=(e,t,r,{allOwnKeys:n}={})=>(Wh(t,(a,i)=>{r&&ps(a)?e[i]=__(a,r):e[i]=a},{allOwnKeys:n}),e),ote=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cte=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lte=(e,t,r,n)=>{let a,i,o;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&Ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ute=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},fte=e=>{if(!e)return null;if(Qf(e))return e;let t=e.length;if(!O_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dte=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ax(Uint8Array)),hte=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},pte=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mte=Io("HTMLFormElement"),gte=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),SE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),yte=Io("RegExp"),W_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Wh(r,(a,i)=>{t(a,i,e)!==!1&&(n[i]=a)}),Object.defineProperties(e,n)},bte=e=>{W_(e,(t,r)=>{if(ps(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ps(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Mte=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Qf(e)?n(e):n(String(e).split(t)),r},xte=()=>{},vte=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wm="abcdefghijklmnopqrstuvwxyz",DE="0123456789",H_={DIGIT:DE,ALPHA:Wm,ALPHA_DIGIT:Wm+Wm.toUpperCase()+DE},wte=(e=16,t=H_.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Cte(e){return!!(e&&ps(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ate=e=>{const t=new Array(10),r=(n,a)=>{if(K6(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Qf(n)?[]:{};return Wh(n,(o,u)=>{const d=r(o,a+1);!G1(d)&&(i[u]=d)}),t[a]=void 0,i}}return n};return r(e,0)},Ete=Io("AsyncFunction"),Ste=e=>e&&(K6(e)||ps(e))&&ps(e.then)&&ps(e.catch),$e={isArray:Qf,isArrayBuffer:F_,isBuffer:qee,isFormData:nte,isArrayBufferView:Vee,isString:$ee,isNumber:O_,isBoolean:Kee,isObject:K6,isPlainObject:V4,isUndefined:G1,isDate:Xee,isFile:Jee,isBlob:ete,isRegExp:yte,isFunction:ps,isStream:rte,isURLSearchParams:ite,isTypedArray:dte,isFileList:tte,forEach:Wh,merge:Cb,extend:ste,trim:ate,stripBOM:ote,inherits:cte,toFlatObject:lte,kindOf:V6,kindOfTest:Io,endsWith:ute,toArray:fte,forEachEntry:hte,matchAll:pte,isHTMLForm:mte,hasOwnProperty:SE,hasOwnProp:SE,reduceDescriptors:W_,freezeMethods:bte,toObjectSet:Mte,toCamelCase:gte,noop:xte,toFiniteNumber:vte,findKey:R_,global:U_,isContextDefined:P_,ALPHABET:H_,generateString:wte,isSpecCompliantForm:Cte,toJSONObject:Ate,isAsyncFn:Ete,isThenable:Ste};function Nr(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}$e.inherits(Nr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$e.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Y_=Nr.prototype,Z_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Z_[e]={value:e}});Object.defineProperties(Nr,Z_);Object.defineProperty(Y_,"isAxiosError",{value:!0});Nr.from=(e,t,r,n,a,i)=>{const o=Object.create(Y_);return $e.toFlatObject(e,o,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),Nr.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Dte=null;function Ab(e){return $e.isPlainObject(e)||$e.isArray(e)}function G_(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function TE(e,t,r){return e?e.concat(t).map(function(a,i){return a=G_(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function Tte(e){return $e.isArray(e)&&!e.some(Ab)}const Ite=$e.toFlatObject($e,{},null,function(t){return/^is[A-Z]/.test(t)});function X6(e,t,r){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$e.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,I){return!$e.isUndefined(I[T])});const n=r.metaTokens,a=r.visitor||m,i=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&$e.isSpecCompliantForm(t);if(!$e.isFunction(a))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if($e.isDate(E))return E.toISOString();if(!d&&$e.isBlob(E))throw new Nr("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(E)||$e.isTypedArray(E)?d&&typeof Blob=="function"?new Blob([E]):Je.Buffer.from(E):E}function m(E,T,I){let S=E;if(E&&!I&&typeof E=="object"){if($e.endsWith(T,"{}"))T=n?T:T.slice(0,-2),E=JSON.stringify(E);else if($e.isArray(E)&&Tte(E)||($e.isFileList(E)||$e.endsWith(T,"[]"))&&(S=$e.toArray(E)))return T=G_(T),S.forEach(function(L,N){!($e.isUndefined(L)||L===null)&&t.append(o===!0?TE([T],N,i):o===null?T:T+"[]",h(L))}),!1}return Ab(E)?!0:(t.append(TE(I,T,i),h(E)),!1)}const b=[],v=Object.assign(Ite,{defaultVisitor:m,convertValue:h,isVisitable:Ab});function C(E,T){if(!$e.isUndefined(E)){if(b.indexOf(E)!==-1)throw Error("Circular reference detected in "+T.join("."));b.push(E),$e.forEach(E,function(S,D){(!($e.isUndefined(S)||S===null)&&a.call(t,S,$e.isString(D)?D.trim():D,T,v))===!0&&C(S,T?T.concat(D):[D])}),b.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return C(e),t}function IE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ex(e,t){this._pairs=[],e&&X6(e,this,t)}const Q_=Ex.prototype;Q_.append=function(t,r){this._pairs.push([t,r])};Q_.toString=function(t){const r=t?function(n){return t.call(this,n,IE)}:IE;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Nte(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q_(e,t,r){if(!t)return e;const n=r&&r.encode||Nte,a=r&&r.serialize;let i;if(a?i=a(t,r):i=$e.isURLSearchParams(t)?t.toString():new Ex(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class NE{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$e.forEach(this.handlers,function(n){n!==null&&t(n)})}}const V_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lte=typeof URLSearchParams<"u"?URLSearchParams:Ex,jte=typeof FormData<"u"?FormData:null,Bte=typeof Blob<"u"?Blob:null,kte=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zte=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ho={classes:{URLSearchParams:Lte,FormData:jte,Blob:Bte},isStandardBrowserEnv:kte,isStandardBrowserWebWorkerEnv:zte,protocols:["http","https","file","blob","url","data"]};function _te(e,t){return X6(e,new ho.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return ho.isNode&&$e.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fte(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ote(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function $_(e){function t(r,n,a,i){let o=r[i++];const u=Number.isFinite(+o),d=i>=r.length;return o=!o&&$e.isArray(a)?a.length:o,d?($e.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!u):((!a[o]||!$e.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&$e.isArray(a[o])&&(a[o]=Ote(a[o])),!u)}if($e.isFormData(e)&&$e.isFunction(e.entries)){const r={};return $e.forEachEntry(e,(n,a)=>{t(Fte(n),a,r,0)}),r}return null}const Rte={"Content-Type":void 0};function Ute(e,t,r){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const qf={transitional:V_,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=$e.isObject(t);if(i&&$e.isHTMLForm(t)&&(t=new FormData(t)),$e.isFormData(t))return a&&a?JSON.stringify($_(t)):t;if($e.isArrayBuffer(t)||$e.isBuffer(t)||$e.isStream(t)||$e.isFile(t)||$e.isBlob(t))return t;if($e.isArrayBufferView(t))return t.buffer;if($e.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _te(t,this.formSerializer).toString();if((u=$e.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return X6(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Ute(t)):t}],transformResponse:[function(t){const r=this.transitional||qf.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&$e.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?Nr.from(u,Nr.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ho.classes.FormData,Blob:ho.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$e.forEach(["delete","get","head"],function(t){qf.headers[t]={}});$e.forEach(["post","put","patch"],function(t){qf.headers[t]=$e.merge(Rte)});const Pte=$e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wte=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
102
|
+
*/var jh=Y;function Sq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dq=typeof Object.is=="function"?Object.is:Sq,Tq=jh.useSyncExternalStore,Iq=jh.useRef,Nq=jh.useEffect,Lq=jh.useMemo,jq=jh.useDebugValue;nz.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=Iq(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Lq(function(){function d(C){if(!h){if(h=!0,m=C,C=n(C),a!==void 0&&o.hasValue){var E=o.value;if(a(E,C))return b=E}return b=C}if(E=b,Dq(m,C))return E;var T=n(C);return a!==void 0&&a(E,T)?(m=C,E):(m=C,b=T)}var h=!1,m,b,v=r===void 0?null:r;return[function(){return d(t())},v===null?void 0:function(){return d(v())}]},[t,r,n,a]);var u=Tq(e,i[0],i[1]);return Nq(function(){o.hasValue=!0,o.value=u},[u]),jq(u),u};rz.exports=nz;var Bq=rz.exports;function kq(e){e()}function zq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){kq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!n||e===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var hA={notify(){},get:()=>[]};function _q(e,t){let r,n=hA,a=0,i=!1;function o(T){m();const I=n.subscribe(T);let S=!1;return()=>{S||(S=!0,I(),b())}}function u(){n.notify()}function d(){E.onStateChange&&E.onStateChange()}function h(){return i}function m(){a++,r||(r=e.subscribe(d),n=zq())}function b(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=hA)}function v(){i||(i=!0,m())}function C(){i&&(i=!1,b())}const E={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:h,trySubscribe:v,tryUnsubscribe:C,getListeners:()=>n};return E}var Fq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oq=Fq(),Rq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Uq=Rq(),Pq=()=>Oq||Uq?Y.useLayoutEffect:Y.useEffect,Wq=Pq(),Cm=Symbol.for("react-redux-context"),Am=typeof globalThis<"u"?globalThis:{};function Hq(){if(!Y.createContext)return{};const e=Am[Cm]??(Am[Cm]=new Map);let t=e.get(Y.createContext);return t||(t=Y.createContext(null),e.set(Y.createContext,t)),t}var ml=Hq();function Yq(e){const{children:t,context:r,serverState:n,store:a}=e,i=Y.useMemo(()=>{const d=_q(a);return{store:a,subscription:d,getServerState:n?()=>n:void 0}},[a,n]),o=Y.useMemo(()=>a.getState(),[a]);Wq(()=>{const{subscription:d}=i;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),o!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[i,o]);const u=r||ml;return Y.createElement(u.Provider,{value:i},t)}var Zq=Yq;function JM(e=ml){return function(){return Y.useContext(e)}}var iz=JM();function az(e=ml){const t=e===ml?iz:JM(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var Gq=az();function Qq(e=ml){const t=e===ml?Gq:az(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var oi=Qq(),qq=(e,t)=>e===t;function Vq(e=ml){const t=e===ml?iz:JM(e),r=(n,a={})=>{const{equalityFn:i=qq}=typeof a=="function"?{equalityFn:a}:a,o=t(),{store:u,subscription:d,getServerState:h}=o;Y.useRef(!0);const m=Y.useCallback({[n.name](v){return n(v)}}[n.name],[n]),b=Bq.useSyncExternalStoreWithSelector(d.addNestedSub,u.getState,h||u.getState,m,i);return Y.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Lr=Vq();function on(){const e=L6(XM);return e[Fs]||e}function $q(e){return j.jsx(mQ,{...e,defaultTheme:XM,themeId:Fs})}function Kq(e){return function(r){return j.jsx($q,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Xq(){return YM}const Ht=OQ;function Vt(e){return FQ(e)}const Jq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t}),eV=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function tV(e){return Gt("MuiScopedCssBaseline",e)}Zt("MuiScopedCssBaseline",["root"]);const rV=e=>{const{classes:t}=e;return Qt({root:["root"]},tV,t)},nV=at("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(Ht(({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,n])=>{var i,o;const a=e.getColorSchemeSelector(r);a.startsWith("@")?t[a]={colorScheme:(i=n.palette)==null?void 0:i.mode}:t[`&${a.replace(/\s*&/,"")}`]={colorScheme:(o=n.palette)==null?void 0:o.mode}}),{...Jq(e,!1),...eV(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}})),iV=Y.forwardRef(function(t,r){const n=Vt({props:t,name:"MuiScopedCssBaseline"}),{className:a,component:i="div",enableColorScheme:o,...u}=n,d={...n,component:i},h=rV(d);return j.jsx(nV,{as:i,className:Bt(h.root,a),ref:r,ownerState:d,...u})});function aV(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function sV(e){return parseFloat(e)}function Em({theme:e,...t}){const r=Fs in e?e[Fs]:void 0;return j.jsx(qk,{...t,themeId:r?Fs:void 0,theme:r||e})}const j2={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:oV}=GQ({themeId:Fs,theme:()=>B6({cssVariables:!0}),colorSchemeStorageKey:j2.colorSchemeStorageKey,modeStorageKey:j2.modeStorageKey,defaultColorScheme:{light:j2.defaultLightColorScheme,dark:j2.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:$k(e.palette,e.typography)};return t.unstable_sx=function(n){return hl({sx:n,theme:this})},t}}),cV=oV;function lV({theme:e,...t}){if(typeof e=="function")return j.jsx(Em,{theme:e,...t});const r=Fs in e?e[Fs]:e;return"colorSchemes"in r?j.jsx(cV,{theme:e,...t}):"vars"in r?j.jsx(Em,{theme:e,...t}):j.jsx(Em,{theme:{...e,vars:null},...t})}function Ai(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uV=typeof Symbol=="function"&&Symbol.observable||"@@observable",pA=uV,Sm=()=>Math.random().toString(36).substring(7).split("").join("."),fV={INIT:`@@redux/INIT${Sm()}`,REPLACE:`@@redux/REPLACE${Sm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sm()}`},G3=fV;function ex(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function sz(e,t,r){if(typeof e!="function")throw new Error(Ai(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ai(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ai(1));return r(sz)(e,t)}let n=e,a=t,i=new Map,o=i,u=0,d=!1;function h(){o===i&&(o=new Map,i.forEach((I,S)=>{o.set(S,I)}))}function m(){if(d)throw new Error(Ai(3));return a}function b(I){if(typeof I!="function")throw new Error(Ai(4));if(d)throw new Error(Ai(5));let S=!0;h();const D=u++;return o.set(D,I),function(){if(S){if(d)throw new Error(Ai(6));S=!1,h(),o.delete(D),i=null}}}function v(I){if(!ex(I))throw new Error(Ai(7));if(typeof I.type>"u")throw new Error(Ai(8));if(typeof I.type!="string")throw new Error(Ai(17));if(d)throw new Error(Ai(9));try{d=!0,a=n(a,I)}finally{d=!1}return(i=o).forEach(D=>{D()}),I}function C(I){if(typeof I!="function")throw new Error(Ai(10));n=I,v({type:G3.REPLACE})}function E(){const I=b;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(Ai(11));function D(){const N=S;N.next&&N.next(m())}return D(),{unsubscribe:I(D)}},[pA](){return this}}}return v({type:G3.INIT}),{dispatch:v,subscribe:b,getState:m,replaceReducer:C,[pA]:E}}function dV(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:G3.INIT})>"u")throw new Error(Ai(12));if(typeof r(void 0,{type:G3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ai(13))})}function hV(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const o=t[i];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let a;try{dV(r)}catch(i){a=i}return function(o={},u){if(a)throw a;let d=!1;const h={};for(let m=0;m<n.length;m++){const b=n[m],v=r[b],C=o[b],E=v(C,u);if(typeof E>"u")throw u&&u.type,new Error(Ai(14));h[b]=E,d=d||E!==C}return d=d||n.length!==Object.keys(o).length,d?h:o}}function Q3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function pV(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error(Ai(15))};const o={getState:a.getState,dispatch:(d,...h)=>i(d,...h)},u=e.map(d=>d(o));return i=Q3(...u)(a.dispatch),{...a,dispatch:i}}}function mV(e){return ex(e)&&"type"in e&&typeof e.type=="string"}var oz=Symbol.for("immer-nothing"),mA=Symbol.for("immer-draftable"),Pa=Symbol.for("immer-state");function js(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var of=Object.getPrototypeOf;function D0(e){return!!e&&!!e[Pa]}function hc(e){var t;return e?cz(e)||Array.isArray(e)||!!e[mA]||!!((t=e.constructor)!=null&&t[mA])||z6(e)||_6(e):!1}var gV=Object.prototype.constructor.toString();function cz(e){if(!e||typeof e!="object")return!1;const t=of(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===gV}function q3(e,t){k6(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function k6(e){const t=e[Pa];return t?t.type_:Array.isArray(e)?1:z6(e)?2:_6(e)?3:0}function Y9(e,t){return k6(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lz(e,t,r){const n=k6(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function yV(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z6(e){return e instanceof Map}function _6(e){return e instanceof Set}function Ol(e){return e.copy_||e.base_}function Z9(e,t){if(z6(e))return new Map(e);if(_6(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=cz(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Pa];let a=Reflect.ownKeys(n);for(let i=0;i<a.length;i++){const o=a[i],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(of(e),n)}else{const n=of(e);if(n!==null&&r)return{...e};const a=Object.create(n);return Object.assign(a,e)}}function tx(e,t=!1){return F6(e)||D0(e)||!hc(e)||(k6(e)>1&&(e.set=e.add=e.clear=e.delete=bV),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>tx(n,!0))),e}function bV(){js(2)}function F6(e){return Object.isFrozen(e)}var MV={};function T0(e){const t=MV[e];return t||js(0,e),t}var O1;function uz(){return O1}function xV(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function gA(e,t){t&&(T0("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function G9(e){Q9(e),e.drafts_.forEach(vV),e.drafts_=null}function Q9(e){e===O1&&(O1=e.parent_)}function yA(e){return O1=xV(O1,e)}function vV(e){const t=e[Pa];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bA(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Pa].modified_&&(G9(t),js(4)),hc(e)&&(e=V3(t,e),t.parent_||$3(t,e)),t.patches_&&T0("Patches").generateReplacementPatches_(r[Pa].base_,e,t.patches_,t.inversePatches_)):e=V3(t,r,[]),G9(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==oz?e:void 0}function V3(e,t,r){if(F6(t))return t;const n=t[Pa];if(!n)return q3(t,(a,i)=>MA(e,n,t,a,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return $3(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const a=n.copy_;let i=a,o=!1;n.type_===3&&(i=new Set(a),a.clear(),o=!0),q3(i,(u,d)=>MA(e,n,a,u,d,r,o)),$3(e,a,!1),r&&e.patches_&&T0("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function MA(e,t,r,n,a,i,o){if(D0(a)){const u=i&&t&&t.type_!==3&&!Y9(t.assigned_,n)?i.concat(n):void 0,d=V3(e,a,u);if(lz(r,n,d),D0(d))e.canAutoFreeze_=!1;else return}else o&&r.add(a);if(hc(a)&&!F6(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;V3(e,a),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&$3(e,a)}}function $3(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tx(t,r)}function wV(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:uz(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,i=rx;r&&(a=[n],i=R1);const{revoke:o,proxy:u}=Proxy.revocable(a,i);return n.draft_=u,n.revoke_=o,u}var rx={get(e,t){if(t===Pa)return e;const r=Ol(e);if(!Y9(r,t))return CV(e,r,t);const n=r[t];return e.finalized_||!hc(n)?n:n===Dm(e.base_,t)?(Tm(e),e.copy_[t]=V9(n,e)):n},has(e,t){return t in Ol(e)},ownKeys(e){return Reflect.ownKeys(Ol(e))},set(e,t,r){const n=fz(Ol(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=Dm(Ol(e),t),i=a==null?void 0:a[Pa];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(yV(r,a)&&(r!==void 0||Y9(e.base_,t)))return!0;Tm(e),q9(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Dm(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Tm(e),q9(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ol(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){js(11)},getPrototypeOf(e){return of(e.base_)},setPrototypeOf(){js(12)}},R1={};q3(rx,(e,t)=>{R1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});R1.deleteProperty=function(e,t){return R1.set.call(this,e,t,void 0)};R1.set=function(e,t,r){return rx.set.call(this,e[0],t,r,e[0])};function Dm(e,t){const r=e[Pa];return(r?Ol(r):e)[t]}function CV(e,t,r){var a;const n=fz(t,r);return n?"value"in n?n.value:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function fz(e,t){if(!(t in e))return;let r=of(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=of(r)}}function q9(e){e.modified_||(e.modified_=!0,e.parent_&&q9(e.parent_))}function Tm(e){e.copy_||(e.copy_=Z9(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var AV=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(d=i,...h){return o.produce(d,m=>r.call(this,m,...h))}}typeof r!="function"&&js(6),n!==void 0&&typeof n!="function"&&js(7);let a;if(hc(t)){const i=yA(this),o=V9(t,void 0);let u=!0;try{a=r(o),u=!1}finally{u?G9(i):Q9(i)}return gA(i,n),bA(a,i)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===oz&&(a=void 0),this.autoFreeze_&&tx(a,!0),n){const i=[],o=[];T0("Patches").generateReplacementPatches_(t,a,i,o),n(i,o)}return a}else js(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,d=>t(d,...u));let n,a;return[this.produce(t,r,(o,u)=>{n=o,a=u}),n,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){hc(e)||js(8),D0(e)&&(e=EV(e));const t=yA(this),r=V9(e,void 0);return r[Pa].isManual_=!0,Q9(t),r}finishDraft(e,t){const r=e&&e[Pa];(!r||!r.isManual_)&&js(9);const{scope_:n}=r;return gA(n,t),bA(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const n=T0("Patches").applyPatches_;return D0(e)?n(e,t):this.produce(e,a=>n(a,t))}};function V9(e,t){const r=z6(e)?T0("MapSet").proxyMap_(e,t):_6(e)?T0("MapSet").proxySet_(e,t):wV(e,t);return(t?t.scope_:uz()).drafts_.push(r),r}function EV(e){return D0(e)||js(10,e),dz(e)}function dz(e){if(!hc(e)||F6(e))return e;const t=e[Pa];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Z9(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Z9(e,!0);return q3(r,(n,a)=>{lz(r,n,dz(a))}),t&&(t.finalized_=!1),r}var Wa=new AV,hz=Wa.produce;Wa.produceWithPatches.bind(Wa);Wa.setAutoFreeze.bind(Wa);Wa.setUseStrictShallowCopy.bind(Wa);Wa.applyPatches.bind(Wa);Wa.createDraft.bind(Wa);Wa.finishDraft.bind(Wa);function pz(e){return({dispatch:r,getState:n})=>a=>i=>typeof i=="function"?i(r,n,e):a(i)}var SV=pz(),DV=pz,TV=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Q3:Q3.apply(null,arguments)};function xA(e,t){function r(...n){if(t){let a=t(...n);if(!a)throw new Error(ac(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>mV(n)&&n.type===e,r}var mz=class Od extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Od.prototype)}static get[Symbol.species](){return Od}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Od(...t[0].concat(this)):new Od(...t.concat(this))}};function vA(e){return hc(e)?hz(e,()=>{}):e}function B2(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function IV(e){return typeof e=="boolean"}var NV=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:i=!0}=t??{};let o=new mz;return r&&(IV(r)?o.push(SV):o.push(DV(r.extraArgument))),o},LV="RTK_autoBatch",wA=e=>t=>{setTimeout(t,e)},jV=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wA(10):e.type==="callback"?e.queueNotification:wA(e.timeout),h=()=>{o=!1,i&&(i=!1,u.forEach(m=>m()))};return Object.assign({},n,{subscribe(m){const b=()=>a&&m(),v=n.subscribe(b);return u.add(m),()=>{v(),u.delete(m)}},dispatch(m){var b;try{return a=!((b=m==null?void 0:m.meta)!=null&&b[LV]),i=!a,i&&(o||(o=!0,d(h))),n.dispatch(m)}finally{a=!0}}})},BV=e=>function(r){const{autoBatch:n=!0}=r??{};let a=new mz(e);return n&&a.push(jV(typeof n=="object"?n:void 0)),a};function kV(e){const t=NV(),{reducer:r=void 0,middleware:n,devTools:a=!0,preloadedState:i=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(ex(r))u=hV(r);else throw new Error(ac(1));let d;typeof n=="function"?d=n(t):d=t();let h=Q3;a&&(h=TV({trace:!1,...typeof a=="object"&&a}));const m=pV(...d),b=BV(m);let v=typeof o=="function"?o(b):b();const C=h(...v);return sz(u,i,C)}function gz(e){const t={},r=[];let n;const a={addCase(i,o){const u=typeof i=="string"?i:i.type;if(!u)throw new Error(ac(28));if(u in t)throw new Error(ac(29));return t[u]=o,a},addMatcher(i,o){return r.push({matcher:i,reducer:o}),a},addDefaultCase(i){return n=i,a}};return e(a),[t,r,n]}function zV(e){return typeof e=="function"}function _V(e,t){let[r,n,a]=gz(t),i;if(zV(e))i=()=>vA(e());else{const u=vA(e);i=()=>u}function o(u=i(),d){let h=[r[d.type],...n.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return h.filter(m=>!!m).length===0&&(h=[a]),h.reduce((m,b)=>{if(b)if(D0(m)){const C=b(m,d);return C===void 0?m:C}else{if(hc(m))return hz(m,v=>b(v,d));{const v=b(m,d);if(v===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return m},u)}return o.getInitialState=i,o}var FV=Symbol.for("rtk-slice-createasyncthunk");function OV(e,t){return`${e}/${t}`}function RV({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[FV];return function(a){const{name:i,reducerPath:o=i}=a;if(!i)throw new Error(ac(11));const u=(typeof a.reducers=="function"?a.reducers(PV()):a.reducers)||{},d=Object.keys(u),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(N,_){const O=typeof N=="string"?N:N.type;if(!O)throw new Error(ac(12));if(O in h.sliceCaseReducersByType)throw new Error(ac(13));return h.sliceCaseReducersByType[O]=_,m},addMatcher(N,_){return h.sliceMatchers.push({matcher:N,reducer:_}),m},exposeAction(N,_){return h.actionCreators[N]=_,m},exposeCaseReducer(N,_){return h.sliceCaseReducersByName[N]=_,m}};d.forEach(N=>{const _=u[N],O={reducerName:N,type:OV(i,N),createNotation:typeof a.reducers=="function"};HV(_)?ZV(O,_,m,t):WV(O,_,m)});function b(){const[N={},_=[],O=void 0]=typeof a.extraReducers=="function"?gz(a.extraReducers):[a.extraReducers],U={...N,...h.sliceCaseReducersByType};return _V(a.initialState,z=>{for(let F in U)z.addCase(F,U[F]);for(let F of h.sliceMatchers)z.addMatcher(F.matcher,F.reducer);for(let F of _)z.addMatcher(F.matcher,F.reducer);O&&z.addDefaultCase(O)})}const v=N=>N,C=new Map,E=new WeakMap;let T;function I(N,_){return T||(T=b()),T(N,_)}function S(){return T||(T=b()),T.getInitialState()}function D(N,_=!1){function O(z){let F=z[N];return typeof F>"u"&&_&&(F=B2(E,O,S)),F}function U(z=v){const F=B2(C,_,()=>new WeakMap);return B2(F,z,()=>{const k={};for(const[w,s]of Object.entries(a.selectors??{}))k[w]=UV(s,z,()=>B2(E,z,S),_);return k})}return{reducerPath:N,getSelectors:U,get selectors(){return U(O)},selectSlice:O}}const L={name:i,reducer:I,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:S,...D(o),injectInto(N,{reducerPath:_,...O}={}){const U=_??o;return N.inject({reducerPath:U,reducer:I},O),{...L,...D(U,!0)}}};return L}}function UV(e,t,r,n){function a(i,...o){let u=t(i);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return a.unwrapped=e,a}var Uf=RV();function PV(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function WV({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!YV(n))throw new Error(ac(17));i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?xA(e,o):xA(e))}function HV(e){return e._reducerDefinitionType==="asyncThunk"}function YV(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ZV({type:e,reducerName:t},r,n,a){if(!a)throw new Error(ac(18));const{payloadCreator:i,fulfilled:o,pending:u,rejected:d,settled:h,options:m}=r,b=a(e,i,m);n.exposeAction(t,b),o&&n.addCase(b.fulfilled,o),u&&n.addCase(b.pending,u),d&&n.addCase(b.rejected,d),h&&n.addMatcher(b.settled,h),n.exposeCaseReducer(t,{fulfilled:o||k2,pending:u||k2,rejected:d||k2,settled:h||k2})}function k2(){}function ac(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const CA={txData:void 0,sendTx:"",redeemTx:"",transferComplete:!1,route:void 0,isResumeTx:!1,timestamp:0},yz=Uf({name:"redeem",initialState:CA,reducers:{setTxDetails:(e,{payload:t})=>{e.txData=t},setSendTx:(e,{payload:t})=>{e.sendTx=t},setRoute:(e,{payload:t})=>{e.route=t},clearRedeem:e=>{Object.keys(e).forEach(t=>{e[t]=CA[t]})},setIsResumeTx:(e,{payload:t})=>{e.isResumeTx=t},setTimestamp:(e,{payload:t})=>{e.timestamp=t}}}),{setTxDetails:nx,setSendTx:GV,clearRedeem:$9,setRoute:ix,setIsResumeTx:bz,setTimestamp:Mz}=yz.actions,QV=yz.reducer,qV={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Wormchain:"",Osmosis:"https://rpc.osmotest5.osmosis.zone",Cosmoshub:"https://rpc.sentry-02.theta-testnet.polypore.xyz",Evmos:"https://evmos-testnet-rpc.polkachu.com",Kujira:"https://kujira-testnet-rpc.polkachu.com",Injective:"https://injective-testnet-rpc.polkachu.com",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Blast:"https://sepolia.blast.io",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com"}},VV={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Wormchain:"https://wormchain-rpc.quickapi.com",Osmosis:"https://osmosis-rpc.polkachu.com",Cosmoshub:"https://cosmos-rpc.polkachu.com",Evmos:"https://evmos-rpc.polkachu.com",Kujira:"https://kujira-rpc.polkachu.com",Injective:"https://injective-rpc.publicnode.com/",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Blast:"https://blast-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com"}},$V={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545",Wormchain:"http://localhost:26659",Osmosis:"http://localhost:33043",Terra2:"http://localhost:26658"}},y1=class y1 extends Error{constructor(){super(y1.MESSAGE)}};Ye(y1,"MESSAGE","Insufficient funds for gas"),Ye(y1,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let K9=y1;const KV={MAINNET:VV,TESTNET:qV,DEVNET:$V},XV={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH"},Bsc:{displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR"},Blast:{displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},Tl=e=>{console.error(`Wormhole Connect: ${e}`)},$t=(e,t)=>t?{[e]:t}:{},JV=(e,t)=>{if(!t)return e;for(const r in t)for(const n in t[r])e[r]||(e[r]={}),e[r][n]={...t[r][n],...e[r][n]};return e},e$=(e,t,r)=>{if(e)return e.fromChain&&(t[e.fromChain]||(Tl(`Invalid chain name "${e.fromChain}" specified for defaultInputs.fromChain`),delete e.fromChain)),e.toChain&&(t[e.toChain]||(Tl(`Invalid chain name "${e.toChain}" specified for defaultInputs.toChain`),delete e.fromChain)),e.fromChain&&e.toChain&&e.fromChain===e.toChain&&Tl("Source and destination chain cannot be the same, check the defaultInputs configuration"),e.fromChain&&e.toChain&&e.requiredChain&&(t[e.requiredChain]||Tl(`Invalid network value "${e.requiredChain}" specified for defaultInputs.requiredChain`),e.toChain!==e.requiredChain&&e.fromChain!==e.requiredChain&&Tl("Source chain or destination chain must equal the required network")),e.fromChain&&e.fromToken&&(r.findByAddressOrSymbol(e.fromChain,e.fromToken)||(Tl(`Invalid token "${e.fromToken}" specified for defaultInputs.fromToken`),delete e.fromToken)),e.toChain&&e.toToken&&(r.findByAddressOrSymbol(e.toChain,e.toToken)||(Tl(`Invalid token "${e.toToken}" specified for defaultInputs.toToken`),delete e.toToken)),e},t$=e=>e[0].toUpperCase()+e.slice(1),r$={},{REACT_APP_ETHEREUM_RPC:n$,REACT_APP_SOLANA_RPC:i$,REACT_APP_POLYGON_RPC:a$,REACT_APP_BSC_RPC:s$,REACT_APP_AVALANCHE_RPC:o$,REACT_APP_FANTOM_RPC:c$,REACT_APP_CELO_RPC:l$,REACT_APP_MOONBEAM_RPC:u$,REACT_APP_SUI_RPC:f$,REACT_APP_APTOS_RPC:d$,REACT_APP_BASE_RPC:h$,REACT_APP_KLAYTN_RPC:p$,REACT_APP_ARBITRUM_RPC:m$,REACT_APP_OPTIMISM_RPC:g$,REACT_APP_SCROLL_RPC:y$,REACT_APP_BLAST_RPC:b$,REACT_APP_XLAYER_RPC:M$,REACT_APP_MANTLE_RPC:x$,REACT_APP_WORLDCHAIN_RPC:v$,REACT_APP_UNICHAIN_RPC:w$,REACT_APP_BERACHAIN_RPC:C$,REACT_APP_LINEA_RPC:A$,REACT_APP_SONIC_RPC:E$}=r$,S$={...$t("Ethereum",n$),...$t("Solana",i$),...$t("Polygon",a$),...$t("Bsc",s$),...$t("Avalanche",o$),...$t("Fantom",c$),...$t("Celo",l$),...$t("Moonbeam",u$),...$t("Sui",f$),...$t("Aptos",d$),...$t("Base",h$),...$t("Arbitrum",m$),...$t("Optimism",g$),...$t("Klaytn",p$),...$t("Scroll",y$),...$t("Blast",b$),...$t("Xlayer",M$),...$t("Mantle",x$),...$t("Worldchain",v$),...$t("Unichain",w$),...$t("Berachain",C$),...$t("Linea",A$),...$t("Sonic",E$)};function AA(e){return{...e,experimental:e.experimental??{},walletConnectProjectId:(e==null?void 0:e.walletConnectProjectId)??void 0}}var Ie=(e=>(e[e.AVAX=1]="AVAX",e[e.BNB=2]="BNB",e[e.BSC=3]="BSC",e[e.CELO=4]="CELO",e[e.ETH=5]="ETH",e[e.FANTOM=6]="FANTOM",e[e.POLYGON=7]="POLYGON",e[e.SOLANA=8]="SOLANA",e[e.USDC=9]="USDC",e[e.GLMR=10]="GLMR",e[e.DAI=11]="DAI",e[e.USDT=12]="USDT",e[e.BUSD=13]="BUSD",e[e.WBTC=14]="WBTC",e[e.SUI=15]="SUI",e[e.APT=16]="APT",e[e.SEI=17]="SEI",e[e.BASE=18]="BASE",e[e.OSMO=19]="OSMO",e[e.TBTC=20]="TBTC",e[e.WSTETH=21]="WSTETH",e[e.ARBITRUM=22]="ARBITRUM",e[e.OPTIMISM=23]="OPTIMISM",e[e.ATOM=24]="ATOM",e[e.EVMOS=25]="EVMOS",e[e.KUJI=26]="KUJI",e[e.PYTH=27]="PYTH",e[e.INJ=28]="INJ",e[e.KLAY=29]="KLAY",e[e.NTT=30]="NTT",e[e.SCROLL=31]="SCROLL",e[e.BLAST=32]="BLAST",e[e.XLAYER=33]="XLAYER",e[e.MANTLE=34]="MANTLE",e[e.WORLDCHAIN=35]="WORLDCHAIN",e[e.BERA=36]="BERA",e[e.BTC=37]="BTC",e[e.SONIC=38]="SONIC",e))(Ie||{});const D$=[{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ie.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ie.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ie.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ie.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ie.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ie.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ie.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ie.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ie.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ie.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:Ie.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:Ie.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:Ie.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:Ie.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ie.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ie.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ie.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ie.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ie.USDC},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ie.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ie.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ie.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ie.USDC},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ie.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ie.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ie.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ie.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ie.WSTETH},{symbol:"KLAY",decimals:18,icon:Ie.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:Ie.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ie.PYTH},{symbol:"ETH",decimals:18,icon:Ie.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:Ie.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:Ie.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:Ie.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ie.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ie.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ie.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ie.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ie.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ie.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ie.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ie.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ie.BERA},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:Ie.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ie.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:Ie.USDC}],T$={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},I$={chains:XV,tokens:D$,wrappedTokens:T$,rpcs:S$,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},N$={Bsc:{displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Blast:{displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",icon:"Blast",symbol:"BLAST",sdkName:"Blast"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"}},L$={},{REACT_APP_SEPOLIA_RPC:j$,REACT_APP_BSC_TESTNET_RPC:B$,REACT_APP_FUJI_RPC:k$,REACT_APP_FANTOM_TESTNET_RPC:z$,REACT_APP_ALFAJORES_RPC:_$,REACT_APP_SOLANA_DEVNET_RPC:F$,REACT_APP_MOONBASE_RPC:O$,REACT_APP_SUI_TESTNET_RPC:R$,REACT_APP_APTOS_TESTNET_RPC:U$,REACT_APP_BASE_SEPOLIA_RPC:P$,REACT_APP_KLAYTN_TESTNET_RPC:W$,REACT_APP_ARBITRUM_SEPOLIA_RPC:H$,REACT_APP_OPTIMISM_SEPOLIA_RPC:Y$,REACT_APP_SCROLL_TESTNET_RPC:Z$,REACT_APP_BLAST_TESTNET_RPC:G$,REACT_APP_XLAYER_TESTNET_RPC:Q$,REACT_APP_MANTLE_TESTNET_RPC:q$,REACT_APP_WORLDCHAIN_TESTNET_RPC:V$,REACT_APP_UNICHAIN_TESTNET_RPC:$$,REACT_APP_MEZO_TESTNET_RPC:K$,REACT_APP_LINEA_TESTNET_RPC:X$,REACT_APP_SONIC_TESTNET_RPC:J$}=L$,eK={...$t("Sepolia",j$),...$t("Bsc",B$),...$t("Avalanche",k$),...$t("Fantom",z$),...$t("Celo",_$),...$t("Solana",F$),...$t("Moonbeam",O$),...$t("Sui",R$),...$t("Aptos",U$),...$t("BaseSepolia",P$),...$t("ArbitrumSepolia",H$),...$t("OptimismSepolia",Y$),...$t("Klaytn",W$),...$t("Scroll",Z$),...$t("Blast",G$),...$t("Xlayer",Q$),...$t("Mantle",q$),...$t("Worldchain",V$),...$t("Unichain",$$),...$t("Mezo",K$),...$t("Linea",X$),...$t("Sonic",J$)},tK=[{symbol:"BNB",icon:Ie.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ie.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ie.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ie.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:Ie.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:Ie.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:Ie.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ie.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ie.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ie.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ie.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ie.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ie.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ie.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ie.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ie.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ie.USDC},{symbol:"KLAY",icon:Ie.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:Ie.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:Ie.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ie.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ie.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:Ie.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:Ie.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:Ie.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ie.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ie.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ie.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ie.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ie.BTC},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ie.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:Ie.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ie.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:Ie.USDC}],rK={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},nK={chains:N$,tokens:tK,wrappedTokens:rK,rpcs:eK,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},iK={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"},Osmosis:{displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Wormchain:{sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",icon:"Osmosis",symbol:"OSMO"},Terra2:{sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",icon:"Terra2",symbol:"OSMO"}},aK={},{REACT_APP_ETHEREUM_DEVNET_RPC:sK}=aK,oK={...$t("Ethereum",sK)},cK=[{symbol:"ETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ie.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],lK={chains:iK,tokens:cK,wrappedTokens:{},rpcs:oK,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},xz="https://wormholescan.io/#/",uK="3.0.1-beta.1-development",fK="31fbef88f77decbb5865e761493bcd58efd07f47",EA=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain","Mezo"];function dK(e){var r;const t=typeof window>"u"||(r=window.location)==null?void 0:r.host;return function(n){const a={meta:{version:uK,hash:fK,host:t},...n};if(console.debug("Wormhole Connect event:",a),e)try{e(a)}catch(i){console.error("Error handling event:",i)}}}const K3=e=>[...Array(e).keys()],vz=(e,t)=>e.map(r=>r[t]),Xl=e=>K3(e[0].length).map(t=>K3(e.length).map(r=>e[r][t])),hK=(e,t,r)=>{const n=new Set(Array.isArray(t)?t:[t]);return e.filter((a,i)=>n.has(i)!==r)};function Ime(e,t=!1){if(e.length===0)throw new Error("Can't calculate median of empty array");const r=t?e:[...e].sort((o,u)=>o>u?1:o<u?-1:0),n=Math.floor(r.length/2);if(r.length%2===1)return r[n];const a=r[n-1],i=r[n];if(typeof a=="bigint"&&typeof i=="bigint")return(a+i)/2n;if(typeof a=="number"&&typeof i=="number")return(a+i)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function pK(e){return["string","number","symbol","bigint","boolean"].includes(typeof e)}const SA=e=>e.length===2&&!Array.isArray(e[0])&&Array.isArray(e[1]),X3=e=>e.length===0?[]:Array.isArray(e[0])?e.map(([t,r])=>Array.isArray(r)?(SA(r)?X3(r):r).map(n=>[t,n].flat()):[[t,r]]).flat():SA(e)?X3(e[1]).map(t=>[e[0],t]):e,mK=(e,t)=>{const r=X3(e);if(r.length===0)throw new Error("Invalid mapping: empty");const n=t===void 0?[K3(r[0].length-1),[r[0].length-1]]:t.map(v=>typeof v=="number"?[v]:v);let a=[],i=!0;const o=(v,C)=>{const E=Array.from(new Set(v[0]).values()),T=new Map(E.map(S=>[S,[]]));for(const[S,D]of v[0].entries())T.get(D).push(S);if(v.length===1){const S=Object.fromEntries(E.map(D=>[D,T.get(D).map(L=>C[L].length===1?C[L][0]:C[L])]));if(i){for(const D of T.values())if(D.length>1)return i=!1,S;a.push(S)}return S}const I=Xl(v.slice(1));return Object.fromEntries(E.map(S=>{const D=T.get(S),L=Xl(D.map(_=>I[_])),N=D.map(_=>C[_]);return[S,o(L,N)]}))},u=Xl(r),d=v=>{const C=u[v];if(C===void 0)throw new Error(`Invalid shape: column ${v} does not exist`);return C},[h,m]=n.map(v=>v.map(C=>d(C)));if(h.length===0)throw new Error("Invalid shape: empty key set");if(m.length===0)throw new Error("Invalid shape: empty value set");for(const v of h)for(const C of v)if(!pK(C))throw new Error(`Invalid key: ${C} in ${v}`);const b=o(h,Xl(m));if(i)for(const v of a)for(const C of Object.keys(v))v[C]=v[C][0];return b};function Kt(e,t){const r=n=>{const a=(...i)=>i.reduce((o,u)=>o?o[u.toString()]??void 0:void 0,n);return Object.assign(a,{has:(...i)=>a(...i)!==void 0,get:(...i)=>a(...i),subMap:i=>r(n[i.toString()])})};return r(mK(e,t))}function ax(e){let t=null;return()=>(t||(t=e()),t)}function gK(e){try{return e(),!1}catch{return!0}}function Nme(e,t,r){return e<t?t:e>r?r:e}var yK=["int","uint","bytes","array","switch"],wz="big",O6=6,I0=e=>typeof e=="number"||typeof e=="bigint",Pf=e=>e instanceof Uint8Array,bK=e=>I0(e)||Pf(e),U1=e=>yK.includes(e==null?void 0:e.binary),MK=e=>U1(e)||Array.isArray(e)&&e.every(U1),xK=e=>typeof(e==null?void 0:e.from)=="number",vK=e=>typeof(e==null?void 0:e.from)=="bigint",wK=e=>xK(e)||vK(e),Wf=e=>Pf(e==null?void 0:e.from),CK=e=>wK(e)||Wf(e),Cz=(e,t)=>{if(e!==t)throw new Error(`size mismatch: layout size: ${e}, data size: ${t}`);return t},cf=e=>"layout"in e&&e.layout!==void 0,X9=(e,t)=>"size"in e&&e.size!==void 0?Cz(e.size,t):t,J9=(e,t)=>{if(e!=t)throw new Error(`value mismatch: (constant) layout value: ${e}, data value: ${t}`)},eb=(e,t,r)=>{const n=(h,m)=>m===void 0?[0,h.length]:Array.isArray(m)?m:[m,h.length],[a,i]=n(e,r==null?void 0:r.customSlice),[o,u]=n(t,r==null?void 0:r.dataSlice),d=i-a;Cz(d,u-o);for(let h=0;h<e.length;++h)if(e[h+a]!==t[h+o])throw new Error(`binary data mismatch: layout value: ${e}, offset: ${a}, data value: ${t}, offset: ${o}`)};function Az(e,t){const r=t[e.idTag??"id"];return e.layouts.find(([n])=>(Array.isArray(n)?n[1]:n)==r)}function Ez(e){return Pl(e,ns)}var ns=Symbol("staticCalc");function AK(e,t){const r=[],n=Pl(e,t,r);if(n===null)throw new Error(`coding error: couldn't calculate layout size for layout ${e} with data ${t}`);return[n,r]}function DA(e,t,r){const n=a=>(r!==void 0&&r.push(a),a);switch(e.binary){case"int":case"uint":return e.size;case"bytes":{if("size"in e&&t===ns)return e.size;const a="lengthSize"in e?e.lengthSize|0:0;if(cf(e)){const{custom:o}=e,u=Pl(e.layout,o===void 0?t:typeof o.from=="function"?t!==ns?n(o.from(t)):ns:o.from,r);return u===null?"size"in e?e.size??null:null:a+X9(e,u)}const{custom:i}=e;return Pf(i)?a+i.length:Wf(i)?a+i.from.length:t===ns?null:a+X9(e,i!==void 0?n(i.from(t)).length:t.length)}case"array":{const a="length"in e?e.length:void 0;if(t===ns){if(a!==void 0){const o=Pl(e.layout,ns,r);return o!==null?a*o:null}return null}let i=0;if(a!==void 0&&a!==t.length)throw new Error(`array length mismatch: layout length: ${a}, data length: ${t.length}`);"lengthSize"in e&&e.lengthSize!==void 0&&(i+=e.lengthSize);for(let o=0;o<t.length;++o){const u=Pl(e.layout,t[o],r);if(u===null)return null;i+=u}return i}case"switch":{if(t!==ns){const[i,o]=Az(e,t),u=Pl(o,t,r);return u!==null?e.idSize+u:null}let a=null;for(const[i,o]of e.layouts){const u=Pl(o,ns,r);if(a===null)a=u;else if(u!==a)return null}return e.idSize+a}}}function Pl(e,t,r){if(U1(e))return DA(e,t,r);let n=0;for(const a of e){let i;if(t===ns)i=ns;else if(!("omit"in a)||!a.omit){if(!(a.name in t))throw new Error(`missing data for layout item: ${a.name}`);i=t[a.name]}const o=DA(a,i,r);if(o===null){if(t!==ns)throw new Error(`coding error: couldn't calculate size for layout item: ${a.name}`);return null}n+=o}return n}var Im=(e,t)=>{e.bytes.set(t,e.offset),e.offset+=t.length},TA=e=>e.bytesConversions[e.position++];function pc(e,t,r){const[n,a]=AK(e,t),i={bytes:new Uint8Array(n),offset:0};if(W4(e,t,i,{bytesConversions:a,position:0}),i.offset!==i.bytes.length)throw new Error(`encoded data is shorter than expected: ${i.bytes.length} > ${i.offset}`);return i.bytes}var EK=2**(O6*8);function Jl(e,t,r,n=wz,a=!1){if(!a&&e<0)throw new Error(`Value ${e} is negative but unsigned`);if(typeof e=="number"){if(!Number.isInteger(e))throw new Error(`Value ${e} is not an integer`);if(t>O6){if(e>=EK)throw new Error(`Value ${e} is too large to be safely converted into an integer`);if(a&&e<-281474976710656)throw new Error(`Value ${e} is too small to be safely converted into an integer`)}}const i=2n**BigInt(t*8-(a?1:0));if(e>=i)throw new Error(`Value ${e} is too large for ${t} bytes`);if(a&&e<-i)throw new Error(`Value ${e} is too small for ${t} bytes`);for(let o=0;o<t;++o)r.bytes[r.offset+o]=Number(BigInt(e)>>BigInt(8*(n==="big"?t-o-1:o))&0xffn);r.offset+=t}function W4(e,t,r,n){if(U1(e))IA(e,t,r,n);else for(const a of e)try{IA(a,t[a.name],r,n)}catch(i){throw i.message=`when serializing item '${a.name}': ${i.message}`,i}}function IA(e,t,r,n){switch(e.binary){case"int":case"uint":{const a=(()=>{var i;return I0(e.custom)?("omit"in e&&e.omit||J9(e.custom,t),e.custom):I0((i=e==null?void 0:e.custom)==null?void 0:i.from)?e.custom.from:e.custom!==void 0?e.custom.from(t):t})();Jl(a,e.size,r,e.endianness,e.binary==="int");break}case"bytes":{const a=r.offset;if("lengthSize"in e&&e.lengthSize!==void 0&&(r.offset+=e.lengthSize),cf(e)){const{custom:i}=e;let o;i===void 0?o=t:typeof i.from!="function"?o=i.from:o=TA(n),W4(e.layout,o,r,n)}else{const{custom:i}=e;Pf(i)?("omit"in e&&e.omit||eb(i,t),Im(r,i)):Wf(i)?Im(r,i.from):Im(r,i!==void 0?TA(n):t)}if("lengthSize"in e&&e.lengthSize!==void 0){const i=r.offset-a-e.lengthSize,o=r.offset;r.offset=a,Jl(i,e.lengthSize,r,e.lengthEndianness),r.offset=o}else X9(e,r.offset-a);break}case"array":{if("length"in e&&e.length!==t.length)throw new Error(`array length mismatch: layout length: ${e.length}, data length: ${t.length}`);"lengthSize"in e&&e.lengthSize!==void 0&&Jl(t.length,e.lengthSize,r,e.lengthEndianness);for(let a=0;a<t.length;++a)W4(e.layout,t[a],r,n);break}case"switch":{const[a,i]=Az(e,t),o=Array.isArray(a)?a[0]:a;Jl(o,e.idSize,r,e.idEndianness),W4(i,t,r,n);break}}}function Sz(e){const t=e.custom;if(!("cachedSerializedFrom"in t)&&(t.cachedSerializedFrom=pc(e.layout,t.from),"size"in e&&e.size!==void 0&&e.size!==t.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return t.cachedSerializedFrom}function mc(e,t,r){const n=r??!0,a={bytes:t,offset:0,end:t.length},i=Rd(e,a);if(n&&a.offset!==a.end)throw new Error(`encoded data is longer than expected: ${a.end} > ${a.offset}`);return n?i:[i,a.offset]}function H4(e,t){const r=e.offset+t;if(r>e.end)throw new Error(`chunk is shorter than expected: ${e.end} < ${r}`);e.offset=r}function Rd(e,t){if(!Array.isArray(e))return NA(e,t);let r={};for(const n of e)try{(n.omit?{}:r)[n.name]=NA(n,t)}catch(a){throw a.message=`when deserializing item '${n.name}': ${a.message}`,a}return r}function z2(e,t,r=wz,n=!1){let a=0n;for(let i=0;i<t;++i)a|=BigInt(e.bytes[e.offset+i])<<BigInt(8*(r==="big"?t-i-1:i));return n&&e.bytes[e.offset+(r==="big"?0:t-1)]&128&&(a-=1n<<BigInt(8*t)),H4(e,t),t>O6?a:Number(a)}function NA(e,t){switch(e.binary){case"int":case"uint":{const r=z2(t,e.size,e.endianness,e.binary==="int"),{custom:n}=e;return I0(n)?(J9(n,r),n):I0(n==null?void 0:n.from)?(J9(n.from,r),n.to):n!==void 0?n.to(r):r}case"bytes":{const r="lengthSize"in e&&e.lengthSize!==void 0?z2(t,e.lengthSize,e.lengthEndianness):e==null?void 0:e.size;if(cf(e)){const{custom:u}=e,d=t.offset;let h;if(r===void 0)h=Rd(e.layout,t);else{const m={...t,end:t.offset+r};if(H4(t,r),h=Rd(e.layout,m),m.offset!==m.end)throw new Error(`read less data than expected: ${m.offset-t.offset} < ${r}`)}return u!==void 0?typeof u.from!="function"?(eb(Sz(e),t.bytes,{dataSlice:[d,t.offset]}),u.to):u.to(h):h}const{custom:n}=e;{let u,d;if(Pf(n)?u=n:Wf(n)&&(u=n.from,d=n.to),u!==void 0){const h=r??u.length,m=t.bytes.subarray(t.offset,t.offset+h);return eb(u,m),H4(t,h),d??u}}const a=t.offset,i=r!==void 0?t.offset+r:t.end;H4(t,i-a);const o=t.bytes.subarray(a,i);return n!==void 0?n.to(o):o}case"array":{let r=[];const{layout:n}=e,a=()=>{const o=Rd(n,t);r.push(o)};let i=null;if("length"in e&&e.length!==void 0?i=e.length:"lengthSize"in e&&e.lengthSize!==void 0&&(i=z2(t,e.lengthSize,e.lengthEndianness)),i!==null)for(let o=0;o<i;++o)a();else for(;t.offset<t.end;)a();return r}case"switch":{const r=z2(t,e.idSize,e.idEndianness),{layouts:n}=e;if(n.length===0)throw new Error("switch item has no layouts");const a=typeof n[0][0]=="number",i=n.find(([h])=>a?h===r:h[0]===r);if(i===void 0)throw new Error(`unknown id value: ${r}`);const[o,u]=i,d=Rd(u,t);return{[e.idTag??"id"]:a?r:o[1],...d}}}}function Lme(e,t){return Y4(e,t)}function LA(e,t){switch(e.binary){case"bytes":if(cf(e)){const{custom:r}=e;return r===void 0||typeof r.from!="function"?Y4(e.layout,r?r.from:t):t}case"int":case"uint":{const{custom:r}=e;return e!=null&&e.omit?void 0:bK(r)?r:CK(r)?r.to:t}case"array":return Array.isArray(t)?t.map(r=>Y4(e.layout,r)):void 0;case"switch":{const r=t[e.idTag??"id"],[n,a]=e.layouts.find(([i])=>(Array.isArray(i)?i[1]:i)==r);return{[e.idTag??"id"]:r,...Y4(a,t)}}}}function Y4(e,t){if(t=t??{},U1(e))return LA(e,t);const r={};for(const n of e){const a=LA(n,t[n.name]??{});a!==void 0&&(r[n.name]=a)}return r}function SK(e,t){const[r,n]=TK(e);if(!r)throw new Error("Cannot uniquely distinguished the given layouts");return a=>{const i=n(a);return i.length===0?null:i[0]}}function tb(e){return e.reduce((t,r)=>t|BigInt(1)<<BigInt(r),BigInt(0))}function _2(e){const t=[];for(let r=0n;e>0n;e>>=1n,++r)e&1n&&t.push(Number(r));return t}function Jn(e){let t=0;for(;e>0n;e>>=1n)t+=Number(e&1n);return t}var jA=e=>e>0?2**(8*e)-1:1/0;function BA(e,t,r){var n;switch(e.binary){case"int":case"uint":{const a=I0(e.custom)?e.custom:I0((n=e==null?void 0:e.custom)==null?void 0:n.from)?e.custom.from:null;if(a!==null&&t!==null){const i={bytes:new Uint8Array(e.size),offset:0};Jl(a,e.size,i,e.endianness,e.binary==="int"),r.push([t,i.bytes])}return[e.size,e.size]}case"bytes":{const a="lengthSize"in e?e.lengthSize|0:0;let i,o;if(cf(e)){const{custom:d}=e;if(d!==void 0&&typeof d.from!="function")i=Sz(e),o=i.length;else{const h=Ez(e.layout);h!==null&&(o=h)}}else{const{custom:d}=e;Pf(d)?(i=d,o=d.length):Wf(d)&&(i=d.from,o=d.from.length)}if(a>0&&t!==null){if(o!==void 0){const d={bytes:new Uint8Array(a),offset:0},h=e.lengthEndianness;Jl(o,a,d,h,!1),r.push([t,d.bytes])}t+=a}if(i!==void 0)return t!==null&&r.push([t,i]),[a+i.length,a+i.length];const u="size"in e&&e.size!==void 0?[e.size,e.size]:void 0;if(cf(e)){const d=Z4(e.layout,t,r);return u??[a+d[0],a+d[1]]}return u??[a,jA(a)]}case"array":{if("length"in e){let i=[];const o=Z4(e.layout,0,i);if(t!==null)if(o[0]!==o[1]){if(e.length>0)for(const[u,d]of i)r.push([t+u,d])}else for(let u=0;u<e.length;++u)for(const[d,h]of i)r.push([t+d+u*o[0],h]);return[e.length*o[0],e.length*o[1]]}const a=e.lengthSize|0;return[a,jA(a)]}case"switch":{const a=e.layouts.map(d=>[]),{idSize:i,idEndianness:o}=e,u=e.layouts.map(([d,h],m)=>{const b=Array.isArray(d)?d[0]:d;if(t!==null){const C={bytes:new Uint8Array(i),offset:0};Jl(b,i,C,o),a[m].push([0,C.bytes])}const v=Z4(h,t!==null?i:null,a[m]);return[v[0]+i,v[1]+i]});return t!==null&&a.every(d=>d.length>0)&&(()=>{const d=Math.min(...a.map(m=>m.at(-1)[0]+m.at(-1)[1].length)),h=a.map(m=>0);for(let m=0;m<d;){let b=null,v=0;for(;v<a.length;){let C=h[v];const E=a[v],[T,I]=E[C];if(T+I.length<=m){if(++C,C===E.length)return;h[v]=C,m=E[C][0];break}const S=I[m-T];if(b===null&&(b=S),S!==b){++m;break}++v}v===a.length&&(r.push([t+m,new Uint8Array([b])]),++m)}})(),[Math.min(...u.map(([d])=>d)),Math.max(...u.map(([d,h])=>h))]}}}function Z4(e,t,r){if(!Array.isArray(e))return BA(e,t,r);let n=[0,0];for(const a of e){const i=BA(a,t,r);n[0]+=i[0],n[1]+=i[1],t!==null&&(t=i[0]===i[1]?t+i[0]:null)}return n}function DK(e){const t=new Map;let r=[];const n=a=>{for(;r.length>0&&r[0][0]<a;){const i=r[0][0]+1,o=r.findIndex(([u])=>i<=u);o===-1?r=[]:r.splice(0,o),t.set(i,tb(r.map(([,u])=>u)))}};for(const[[a,i],o]of e){n(a);const u=r.findIndex(([d])=>d>i);u===-1?r.push([i,o]):r.splice(u,0,[i,o]),t.set(a,tb(r.map(([,d])=>d)))}return n(1/0),t}function TK(e){if(e.length===0)throw new Error("Cannot discriminate empty set of layouts");const t=0n,r=(1n<<BigInt(e.length))-1n,n=e.map(()=>[]),a=e.map((L,N)=>Z4(L,0,n[N])),i=a.map((L,N)=>[L,N]).sort(([[L]],[[N]])=>L-N),o=(()=>{let L=r;const N=new Map;for(const[[_],O]of i)L^=1n<<BigInt(O),N.set(_,L);return N})(),u=DK(i),d=e.length-Math.max(...[...u.values()].map(L=>Jn(L))),h=L=>{let N=r;for(const[_,O]of o){if(L<_)break;N=O}return N},m=L=>{let N=t;for(const[_,O]of u){if(L<_)break;N=O}return N},b=Array.from({length:Math.max(...n.map(L=>L.length>0?L.at(-1)[0]+L.at(-1)[1].length:0))}).map(()=>[]);for(let L=0;L<n.length;++L)for(const[N,_]of n[L])for(let O=0;O<_.length;++O)b[N+O].push([_[O],L]);let v=[];for(const[L,N]of b.entries()){const _=h(L),O=_^tb(N.map(([,k])=>k)),U=r^_,z=new Map;for(const[k,w]of N)z.has(k)||z.set(k,t),z.set(k,z.get(k)|1n<<BigInt(w));let F=e.length-Math.max(Jn(O),Jn(U));for(const k of z.values()){const w=N.length-Jn(k)+Jn(U);F=Math.min(F,w)}if(F!==0){if(F===e.length-1)return[!0,k=>_2(k.length<=L?U:z.get(k[L])??t)];v.push([F,L,U,z,O])}}if(d===e.length-1)return[!0,L=>_2(m(L.length))];v.sort(([L],[N])=>N-L);let C=!0;const E=new Map,T=new Map,I=(L,N)=>{E.set(L,N),T.has(Jn(L))||T.set(Jn(L),[]),T.get(Jn(L)).push(L)},S=(L,N)=>{if(Jn(L)<=1||E.has(L))return;let _=0;const O=new Map;for(const z of _2(L)){const F=a[z][0],k=u.get(F)&L;O.set(F,k),_=Math.max(_,Jn(k))}_=Jn(L)-_;const U=[];for(const[z,F,k,w,s]of N){const l=new Map;let f=0;for(const[x,A]of w){const y=A&L;Jn(y)>0&&(l.set(x,y),f+=Jn(y))}const p=k&L;let g=l.size>0?z:0;for(const x of l.values()){const A=f-Jn(x)+Jn(p);g=Math.min(g,A)}if(g!==0){if(g===Jn(L)-1){I(L,[F,p,l]);return}U.push([g,F,p,l,s&L])}}if(_===Jn(L)-1){I(L,"size");return}if(U.sort(([z],[F])=>F-z),U.length>0&&U[0][0]>=_){const[,z,F,k,w]=U[0];I(L,[z,F,k]),S(F,U);for(const s of k.values())S(s|w,U.slice(1));return}if(_>0){I(L,"size");for(const z of O.values())S(z,U);return}I(L,"indistinguishable"),C=!1};S(r,v);const D=L=>{for(let N=Jn(L)+1;N<e.length-2;++N)for(const _ of T.get(N)??[])if((L&_)==L)return E.get(_);throw new Error("Implementation error in layout discrimination algorithm")};return[C,L=>{let N=r,_=E.get(N);for(;_!=="indistinguishable";){if(_==="size")N&=m(L.length);else{const[O,U,z]=_;if(L.length<=O)N&=U;else{const F=L[O];for(const[k,w]of z)k!==F&&(N^=N&w);N^=N&U}}if(Jn(N)<=1)break;_=E.get(N)??D(N)}return _2(N)}]}var sx=(e,t)=>({...e,binary:"bytes",...t===void 0?{}:MK(t)?{layout:t}:t instanceof Uint8Array||Wf(t)||!Array.isArray(t)?{custom:t}:{layout:t[0],custom:t[1]}});function IK(e,t){const r=Object.fromEntries(e.map(([a,i])=>[i,a])),n=Object.fromEntries(e);return{binary:"uint",size:(t==null?void 0:t.size)??1,endianness:(t==null?void 0:t.endianness)??"big",custom:{to:a=>{const i=r[a];if(i===void 0)throw new Error(`Invalid enum value: ${a}`);return i},from:a=>n[a]}}}function NK(e,t){return{binary:"uint",size:Math.ceil(e.length/8),custom:{to:r=>{const n={};for(let a=0;a<e.length;++a)e[a]&&(n[e[a]]=(BigInt(r)&1n<<BigInt(a))!==0n);return n},from:r=>{let n=0n;for(let a=0;a<e.length;++a)e[a]&&r[e[a]]&&(n|=1n<<BigInt(a));return e.length>O6?n:Number(n)}}}}function LK(e,t){return Number(Number(e).toFixed(t))}function g0(e,t){if(jK(e,t),e=e.toString(),e.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const r=e.split(".");if(r.length>2)throw"Too many decimals";let[n,a]=r.length===0?["0",""]:r.length===1?[r[0],""]:r;if(a=a.padEnd(t,"0"),a.length>t){if(BigInt(a.substring(t))!==0n)throw new Error("Amount: invalid input. Decimals too low.");a=a.substring(0,t)}return{amount:BigInt(n+a).toString(),decimals:t}}function Ra(e,t){if(e.decimals<=t)return e;const r=BigInt(e.decimals-t);return{amount:(er(e)/10n**r*10n**r).toString(),decimals:e.decimals}}function nl(e,t){if(e.decimals===t)return e;if(e.amount==="0")return{amount:e.amount,decimals:t};const r=t-e.decimals;if(r>0)return{amount:e.amount+"0".repeat(r),decimals:t};if(BigInt(e.amount.substring(e.amount.length+r))===0n)return{amount:e.amount.substring(0,e.amount.length+r),decimals:t};throw new Error(`scaleAmount(${JSON.stringify(e)}, ${t}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function Yr(e,t){return{amount:e.toString(),decimals:t}}function er(e){return Dz(e),BigInt(e.amount)}function mn(e,t){Dz(e);let r=e.amount.substring(0,e.amount.length-e.decimals).padStart(1,"0"),n=e.amount.substring(e.amount.length-e.decimals).padStart(e.decimals,"0");if(t!==void 0){for(;n.length>t&&n[n.length-1]==="0";)n=n.substring(0,n.length-1);n=n.padEnd(t,"0")}else n=n.replace(/0+$/,"");return n.length>0?`${r}.${n}`:r}function bo(e){return Number(mn(e))}function kA(e,t){return mn(Yr(e,t))}function jK(e,t){if(typeof e=="number"){if(!isFinite(e))throw new Error("Amount: invalid input. Amount must be finite");if(e<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(e))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(t))throw new Error("Amount: invalid input. Decimals must be finite")}function Dz(e){if(!/^[0-9]*$/.test(e.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(e.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(e.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}const lf=(e=0,t=0,r=0)=>new Date(Date.now()+(e*60*60+t*60+r)*1e3);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uf(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function BK(e,...t){if(!uf(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Tz(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(r=>typeof r=="string"):t.every(r=>Number.isSafeInteger(r)):!1}function Iz(e){if(typeof e!="function")throw new Error("function expected");return!0}function N0(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function Hf(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function J3(e){if(!Array.isArray(e))throw new Error("array expected")}function ep(e,t){if(!Tz(!0,t))throw new Error(`${e}: array of strings expected`)}function ox(e,t){if(!Tz(!1,t))throw new Error(`${e}: array of numbers expected`)}function Bh(...e){const t=i=>i,r=(i,o)=>u=>i(o(u)),n=e.map(i=>i.encode).reduceRight(r,t),a=e.map(i=>i.decode).reduce(r,t);return{encode:n,decode:a}}function R6(e){const t=typeof e=="string"?e.split(""):e,r=t.length;ep("alphabet",t);const n=new Map(t.map((a,i)=>[a,i]));return{encode:a=>(J3(a),a.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${e}`);return t[i]})),decode:a=>(J3(a),a.map(i=>{N0("alphabet.decode",i);const o=n.get(i);if(o===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${e}`);return o}))}}function U6(e=""){return N0("join",e),{encode:t=>(ep("join.decode",t),t.join(e)),decode:t=>(N0("join.decode",t),t.split(e))}}function kK(e,t="="){return Hf(e),N0("padding",t),{encode(r){for(ep("padding.encode",r);r.length*e%8;)r.push(t);return r},decode(r){ep("padding.decode",r);let n=r.length;if(n*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if((n-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}function zA(e,t,r){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(J3(e),!e.length)return[];let n=0;const a=[],i=Array.from(e,u=>{if(Hf(u),u<0||u>=t)throw new Error(`invalid integer: ${u}`);return u}),o=i.length;for(;;){let u=0,d=!0;for(let h=n;h<o;h++){const m=i[h],b=t*u,v=b+m;if(!Number.isSafeInteger(v)||b/t!==u||v-m!==b)throw new Error("convertRadix: carry overflow");const C=v/r;u=v%r;const E=Math.floor(C);if(i[h]=E,!Number.isSafeInteger(E)||E*r+u!==v)throw new Error("convertRadix: carry overflow");if(d)E?d=!1:n=h;else continue}if(a.push(u),d)break}for(let u=0;u<e.length-1&&e[u]===0;u++)a.push(0);return a.reverse()}const Nz=(e,t)=>t===0?e:Nz(t,e%t),tp=(e,t)=>e+(t-Nz(e,t)),G4=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function rb(e,t,r,n){if(J3(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(tp(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${tp(t,r)}`);let a=0,i=0;const o=G4[t],u=G4[r]-1,d=[];for(const h of e){if(Hf(h),h>=o)throw new Error(`convertRadix2: invalid data word=${h} from=${t}`);if(a=a<<t|h,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=r;i-=r)d.push((a>>i-r&u)>>>0);const m=G4[i];if(m===void 0)throw new Error("invalid carry");a&=m-1}if(a=a<<r-i&u,!n&&i>=t)throw new Error("Excess padding");if(!n&&a>0)throw new Error(`Non-zero padding: ${a}`);return n&&i>0&&d.push(a>>>0),d}function zK(e){Hf(e);const t=2**8;return{encode:r=>{if(!uf(r))throw new Error("radix.encode input should be Uint8Array");return zA(Array.from(r),t,e)},decode:r=>(ox("radix.decode",r),Uint8Array.from(zA(r,e,t)))}}function cx(e,t=!1){if(Hf(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(tp(8,e)>32||tp(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!uf(r))throw new Error("radix2.encode input should be Uint8Array");return rb(Array.from(r),8,e,!t)},decode:r=>(ox("radix2.decode",r),Uint8Array.from(rb(r,e,8,t)))}}function _A(e){return Iz(e),function(...t){try{return e.apply(null,t)}catch{}}}function _K(e,t){return Hf(e),Iz(t),{encode(r){if(!uf(r))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),a=new Uint8Array(r.length+e);return a.set(r),a.set(n,r.length),a},decode(r){if(!uf(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),a=r.slice(-e),i=t(n).slice(0,e);for(let o=0;o<e;o++)if(i[o]!==a[o])throw new Error("Invalid checksum");return n}}}const FA=Bh(cx(4),R6("0123456789ABCDEF"),U6("")),FK=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",OA=FK?{encode(e){return BK(e),e.toBase64()},decode(e){return N0("base64",e),Uint8Array.fromBase64(e,{lastChunkHandling:"strict"})}}:Bh(cx(6),R6("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),kK(6),U6("")),OK=e=>Bh(zK(58),R6(e),U6("")),nb=OK("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),jme=e=>Bh(_K(4,t=>e(e(t))),nb),ib=Bh(R6("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),U6("")),RA=[996825010,642813549,513874426,1027748829,705979059];function gd(e){const t=e>>25;let r=(e&33554431)<<5;for(let n=0;n<RA.length;n++)(t>>n&1)===1&&(r^=RA[n]);return r}function UA(e,t,r=1){const n=e.length;let a=1;for(let i=0;i<n;i++){const o=e.charCodeAt(i);if(o<33||o>126)throw new Error(`Invalid prefix (${e})`);a=gd(a)^o>>5}a=gd(a);for(let i=0;i<n;i++)a=gd(a)^e.charCodeAt(i)&31;for(let i of t)a=gd(a)^i;for(let i=0;i<6;i++)a=gd(a);return a^=r,ib.encode(rb([a%G4[30]],30,5,!1))}function RK(e){const t=e==="bech32"?1:734539939,r=cx(5),n=r.decode,a=r.encode,i=_A(n);function o(b,v,C=90){N0("bech32.encode prefix",b),uf(v)&&(v=Array.from(v)),ox("bech32.encode",v);const E=b.length;if(E===0)throw new TypeError(`Invalid prefix length ${E}`);const T=E+7+v.length;if(C!==!1&&T>C)throw new TypeError(`Length ${T} exceeds limit ${C}`);const I=b.toLowerCase(),S=UA(I,v,t);return`${I}1${ib.encode(v)}${S}`}function u(b,v=90){N0("bech32.decode input",b);const C=b.length;if(C<8||v!==!1&&C>v)throw new TypeError(`invalid string length: ${C} (${b}). Expected (8..${v})`);const E=b.toLowerCase();if(b!==E&&b!==b.toUpperCase())throw new Error("String must be lowercase or uppercase");const T=E.lastIndexOf("1");if(T===0||T===-1)throw new Error('Letter "1" must be present between prefix and data only');const I=E.slice(0,T),S=E.slice(T+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const D=ib.decode(S).slice(0,-6),L=UA(I,D,t);if(!S.endsWith(L))throw new Error(`Invalid checksum in ${b}: expected "${L}"`);return{prefix:I,words:D}}const d=_A(u);function h(b){const{prefix:v,words:C}=u(b,!1);return{prefix:v,words:C,bytes:n(C)}}function m(b,v){return o(b,a(v))}return{encode:o,decode:u,encodeFromBytes:m,decodeToBytes:h,decodeUnsafe:d,fromWords:n,fromWordsUnsafe:i,toWords:a}}const Su=RK("bech32"),Lz=(e,t)=>t.startsWith(e)?t.slice(e.length):t,UK=/^(?:0x)?[0-9a-fA-F]+$/,Xr={valid:e=>UK.test(e),decode:e=>FA.decode(Lz("0x",e).toUpperCase()),encode:(e,t=!1)=>(e=typeof e=="string"?ii.encode(e):e,(t?"0x":"")+FA.encode(e).toLowerCase())},PK=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,P6={valid:e=>PK.test(e),decode:OA.decode,encode:e=>OA.encode(typeof e=="string"?ii.encode(e):e)},WK={decode:nb.decode,encode:e=>nb.encode(typeof e=="string"?ii.encode(e):e)},y0={decode:e=>(typeof e!="string"&&(e=Xr.encode(e,!0)),e===""||e==="0x"?0n:BigInt(e)),encode:(e,t=!1)=>y0.toString(e,t),toString:(e,t=!1)=>{let r=e.toString(16);return r=r.length%2===1?r="0"+r:r,t?"0x"+r:r},toBytes:(e,t)=>{typeof e=="number"&&(e=y0.toBigInt(e));const r=Xr.decode(y0.toString(e));if(!t)return r;if(t<r.length)throw new Error(`Can't fit ${e} into ${t} bytes.`);return ii.zpad(r,t)},toNumber:e=>{if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${e} exceeds MAX_SAFE_INTEGER`);return Number(e)},toBigInt:e=>{if(e>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${e} exceeds MAX_SAFE_INTEGER`);return BigInt(e)}},ii={encode:e=>new TextEncoder().encode(e),decode:e=>new TextDecoder().decode(e),equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),zpad:(e,t,r=!0)=>r?ii.concat(new Uint8Array(t-e.length),e):ii.concat(e,new Uint8Array(t-e.length)),concat:(...e)=>{const t=e.reduce((a,i)=>a+i.length,0),r=new Uint8Array(t);let n=0;return e.forEach(a=>{r.set(a,n),n+=a.length}),r}},lx=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[50,"Mezo"],[52,"Sonic"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"]],[Bme,jz]=Xl(lx),W6=Kt(lx,[1,0]),oo=Kt(lx),kh=e=>W6.has(e),ab=e=>oo.has(e),H6=e=>{switch(typeof e){case"string":if(kh(e))return W6(e);break;case"number":if(ab(e))return e;break}throw Error(`Cannot convert to ChainId: ${e}`)},zh=e=>{switch(typeof e){case"string":if(kh(e))return e;break;case"number":if(ab(e))return oo(e);break;case"bigint":if(ab(Number(e)))return oo.get(Number(e));break}throw Error(`Cannot convert to Chain: ${e}`)},ux=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Mezo","Sonic"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];vz(ux,0);const Bz=Kt(ux),Hn=Kt(ux,[1,0]),HK=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],YK=Kt(HK),Yf={byAddress:(e,t)=>Object.values(e).find(r=>ZK(r.address,t)),native:e=>Yf.byAddress(e,"native"),bySymbol:(e,t)=>{const r=Object.values(e).filter(n=>n.symbol===t);return r&&r.length>0?r:void 0},byKey:(e,t)=>{const r=Object.entries(e).find(([n])=>t===n);return r?r[1]:void 0}},ZK=(e,t)=>e.toLowerCase()===t.toLowerCase();var PA;(function(e){e[e.Finalized=1]="Finalized",e[e.Immediate=200]="Immediate",e[e.Safe=201]="Safe"})(PA||(PA={}));const GK=[["Ethereum",32]];Kt(GK);const QK=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Mezo",1],["Sonic",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],kz=Kt(QK),qK=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Ink",1e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500],["Berachain",2e3],["Mezo",4e3],["Sonic",330]],zz=Kt(qK);function Y6(e){const t=kz.get(e);if(t===void 0)throw new Error("Cannot find finality for "+e);const r=zz.get(e);if(r===void 0)throw new Error("Cannot find block time for "+e);return t*r}const VK=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],$K=Kt(VK),KK=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],XK=Kt(KK),JK=(e,t)=>e==="Devnet"?void 0:XK.get(e,t),eX=[["Mainnet",[["Ethereum","https://ethereum-rpc.publicnode.com"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://polygon-bor-rpc.publicnode.com"],["Bsc","https://bsc-rpc.publicnode.com"],["Avalanche","https://avalanche-c-chain-rpc.publicnode.com"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://celo-rpc.publicnode.com"],["Moonbeam","https://moonbeam-rpc.publicnode.com"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://scroll-rpc.publicnode.com"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://gnosis-rpc.publicnode.com"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://public-en.node.kaia.io"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"],["Ink","https://rpc-qnd.inkonchain.com"],["Sonic","https://rpc.soniclabs.com"]]],["Testnet",[["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://rpc.testnet.mantle.xyz"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://bepolia.rpc.berachain.com/"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://scroll-sepolia-rpc.publicnode.com"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://public-en-kairos.node.kaia.io"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"],["Mezo","https://rpc.test.mezo.org"],["Sonic","https://rpc.blaze.soniclabs.com"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],tX=Kt(eX),rX=(e,t)=>tX.get(e,t)??"",_z=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Seievm",1329n],["Unichain",130n],["Worldchain",480n],["Ink",57073n],["Sonic",146n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80069n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n],["Mezo",31611n],["Sonic",57054n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],Fz=Kt(_z),nX=Kt(_z,[2,[0,1]]);function kme(e,t){const n=nX(t).filter(([a,i])=>Hn(i)===e);if(n.length!==1)throw new Error(`Platform ${e} has multiple chains with native chain id ${t}`);return n[0]}const iX=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],WA=Kt(iX),aX=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"],["Sonic","0x29219dd400f2Bf60E5a23d13Be72B486D4038894"],["Linea","0x176211869cA2b568f2A7D4EE941E073a821EE1ff"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"],["Sonic","0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"],["Linea","0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"]]]],ki=Kt(aX),fx=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],sX=Kt(fx,[[0,1],2]),sb=Kt(fx,[[0,2],1]),[zme,_me]=Xl(fx),P1=(e,t)=>sX.has(e,t),HA=(e,t)=>sb.has(e,t),YA=(e,t)=>ki.has(e,t),Nm=(e,t)=>{switch(typeof t){case"string":if(P1(e,t))return t;break;case"number":if(HA(e,t))return sb(e,t);break;case"bigint":const r=Number(t);if(HA(e,r))return sb(e,r);break}throw Error(`Cannot convert to Chain: ${t}`)},oX=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Seievm","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"],["Ink","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Mezo","0x268557122Ffd64c85750d630b716471118F323c8"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Oz=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Seievm","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"],["Ink","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"],["Mezo","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Rz=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],cX=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],lX=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Berachain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Ink","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Unichain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Uz=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],uX=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],fX=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],dX=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Pz=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],hX=[["Mainnet",[["Solana","87MEvHZCXE3ML5rrmh5uX1FbShHmRXXS32xJDGbQ7h5t"],["Polygon","0x09959798B95d00a3183d20FaC298E4594E599eab"],["Arbitrum","0x1293a54e160D1cd7075487898d65266081A15458"],["Optimism","0x1293a54e160D1cd7075487898d65266081A15458"],["Base","0x09959798B95d00a3183d20FaC298E4594E599eab"]]]],pX=Kt(oX),mX=Kt(Oz),gX=Kt(Rz),yX=Kt(cX),bX=Kt(lX),ZA=Kt(uX),GA=Kt(fX),QA=Kt(Pz),Q4=Kt(hX),ob=Kt(Uz);Kt(dX);const Wz=Kt(Oz,[0,1]),qA=Kt(Rz,[0,1]),rp=Kt(Uz,[0,1]),VA=Kt(Pz,[0,1]),dx=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[Fme,Ome]=hK(Xl(X3(dx)),[1,2]);Kt(dx,[[0,2],1]);Kt(dx,[1,[0,2]]);const hx=5,MX=[["Mainnet",[["Ethereum","0x18084fbA666a33d37592fA2633fD49a74DD93a88"],["Solana","6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"],["Polygon","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"],["Arbitrum","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Optimism","0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"],["Base","0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"]]]],xX=Kt(MX),ru=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function vX(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function W1(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function gc(e,...t){if(!vX(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function wX(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");W1(e.outputLen),W1(e.blockLen)}function ff(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Hz(e,t){gc(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function CX(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function gl(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Lm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Qs(e,t){return e<<32-t|e>>>t}function Rme(e,t){return e<<t|e>>>32-t>>>0}const Yz=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Zz(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Ume=Yz?e=>e:e=>Zz(e);function AX(e){for(let t=0;t<e.length;t++)e[t]=Zz(e[t]);return e}const $A=Yz?e=>e:AX,Gz=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",EX=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Pme(e){if(gc(e),Gz)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=EX[e[r]];return t}const Oo={_0:48,_9:57,A:65,F:70,a:97,f:102};function KA(e){if(e>=Oo._0&&e<=Oo._9)return e-Oo._0;if(e>=Oo.A&&e<=Oo.F)return e-(Oo.A-10);if(e>=Oo.a&&e<=Oo.f)return e-(Oo.a-10)}function Wme(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Gz)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const o=KA(e.charCodeAt(i)),u=KA(e.charCodeAt(i+1));if(o===void 0||u===void 0){const d=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+i)}n[a]=o*16+u}return n}function Qz(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function _h(e){return typeof e=="string"&&(e=Qz(e)),gc(e),e}function Hme(e){return typeof e=="string"&&(e=Qz(e)),gc(e),e}function SX(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];gc(a),t+=a.length}const r=new Uint8Array(t);for(let n=0,a=0;n<e.length;n++){const i=e[n];r.set(i,a),a+=i.length}return r}function Yme(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}let px=class{};function Z6(e){const t=n=>e().update(_h(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Gme(e){const t=(n,a)=>e(a).update(_h(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function qz(e=32){if(ru&&typeof ru.getRandomValues=="function")return ru.getRandomValues(new Uint8Array(e));if(ru&&typeof ru.randomBytes=="function")return Uint8Array.from(ru.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function DX(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const a=BigInt(32),i=BigInt(4294967295),o=Number(r>>a&i),u=Number(r&i),d=n?4:0,h=n?0:4;e.setUint32(t+d,o,n),e.setUint32(t+h,u,n)}function TX(e,t,r){return e&t^~e&r}function IX(e,t,r){return e&t^e&r^t&r}class Vz extends px{constructor(t,r,n,a){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=a,this.buffer=new Uint8Array(t),this.view=Lm(this.buffer)}update(t){ff(this),t=_h(t),gc(t);const{view:r,buffer:n,blockLen:a}=this,i=t.length;for(let o=0;o<i;){const u=Math.min(a-this.pos,i-o);if(u===a){const d=Lm(t);for(;a<=i-o;o+=a)this.process(d,o);continue}n.set(t.subarray(o,o+u),this.pos),this.pos+=u,o+=u,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){ff(this),Hz(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:a,isLE:i}=this;let{pos:o}=this;r[o++]=128,gl(this.buffer.subarray(o)),this.padOffset>a-o&&(this.process(n,0),o=0);for(let b=o;b<a;b++)r[b]=0;DX(n,a-8,BigInt(this.length*8),i),this.process(n,0);const u=Lm(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=d/4,m=this.get();if(h>m.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b<h;b++)u.setUint32(4*b,m[b],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:a,finished:i,destroyed:o,pos:u}=this;return t.destroyed=o,t.finished=i,t.length=a,t.pos=u,a%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const Sc=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ui=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),F2=BigInt(2**32-1),XA=BigInt(32);function NX(e,t=!1){return t?{h:Number(e&F2),l:Number(e>>XA&F2)}:{h:Number(e>>XA&F2)|0,l:Number(e&F2)|0}}function $z(e,t=!1){const r=e.length;let n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:o,l:u}=NX(e[i],t);[n[i],a[i]]=[o,u]}return[n,a]}const JA=(e,t,r)=>e>>>r,eE=(e,t,r)=>e<<32-r|t>>>r,nu=(e,t,r)=>e>>>r|t<<32-r,iu=(e,t,r)=>e<<32-r|t>>>r,O2=(e,t,r)=>e<<64-r|t>>>r-32,R2=(e,t,r)=>e>>>r-32|t<<64-r,Qme=(e,t)=>t,qme=(e,t)=>e,LX=(e,t,r)=>e<<r|t>>>32-r,jX=(e,t,r)=>t<<r|e>>>32-r,BX=(e,t,r)=>t<<r-32|e>>>64-r,kX=(e,t,r)=>e<<r-32|t>>>64-r;function Ro(e,t,r,n){const a=(t>>>0)+(n>>>0);return{h:e+r+(a/2**32|0)|0,l:a|0}}const zX=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),_X=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,FX=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),OX=(e,t,r,n,a)=>t+r+n+a+(e/2**32|0)|0,RX=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0),UX=(e,t,r,n,a,i)=>t+r+n+a+i+(e/2**32|0)|0,PX=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Dc=new Uint32Array(64);class WX extends Vz{constructor(t=32){super(64,t,8,!1),this.A=Sc[0]|0,this.B=Sc[1]|0,this.C=Sc[2]|0,this.D=Sc[3]|0,this.E=Sc[4]|0,this.F=Sc[5]|0,this.G=Sc[6]|0,this.H=Sc[7]|0}get(){const{A:t,B:r,C:n,D:a,E:i,F:o,G:u,H:d}=this;return[t,r,n,a,i,o,u,d]}set(t,r,n,a,i,o,u,d){this.A=t|0,this.B=r|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=o|0,this.G=u|0,this.H=d|0}process(t,r){for(let b=0;b<16;b++,r+=4)Dc[b]=t.getUint32(r,!1);for(let b=16;b<64;b++){const v=Dc[b-15],C=Dc[b-2],E=Qs(v,7)^Qs(v,18)^v>>>3,T=Qs(C,17)^Qs(C,19)^C>>>10;Dc[b]=T+Dc[b-7]+E+Dc[b-16]|0}let{A:n,B:a,C:i,D:o,E:u,F:d,G:h,H:m}=this;for(let b=0;b<64;b++){const v=Qs(u,6)^Qs(u,11)^Qs(u,25),C=m+v+TX(u,d,h)+PX[b]+Dc[b]|0,T=(Qs(n,2)^Qs(n,13)^Qs(n,22))+IX(n,a,i)|0;m=h,h=d,d=u,u=o+C|0,o=i,i=a,a=n,n=C+T|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,o=o+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,m=m+this.H|0,this.set(n,a,i,o,u,d,h,m)}roundClean(){gl(Dc)}destroy(){this.set(0,0,0,0,0,0,0,0),gl(this.buffer)}}const Kz=$z(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),HX=Kz[0],YX=Kz[1],Tc=new Uint32Array(80),Ic=new Uint32Array(80);class Xz extends Vz{constructor(t=64){super(128,t,16,!1),this.Ah=Ui[0]|0,this.Al=Ui[1]|0,this.Bh=Ui[2]|0,this.Bl=Ui[3]|0,this.Ch=Ui[4]|0,this.Cl=Ui[5]|0,this.Dh=Ui[6]|0,this.Dl=Ui[7]|0,this.Eh=Ui[8]|0,this.El=Ui[9]|0,this.Fh=Ui[10]|0,this.Fl=Ui[11]|0,this.Gh=Ui[12]|0,this.Gl=Ui[13]|0,this.Hh=Ui[14]|0,this.Hl=Ui[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:a,Ch:i,Cl:o,Dh:u,Dl:d,Eh:h,El:m,Fh:b,Fl:v,Gh:C,Gl:E,Hh:T,Hl:I}=this;return[t,r,n,a,i,o,u,d,h,m,b,v,C,E,T,I]}set(t,r,n,a,i,o,u,d,h,m,b,v,C,E,T,I){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=a|0,this.Ch=i|0,this.Cl=o|0,this.Dh=u|0,this.Dl=d|0,this.Eh=h|0,this.El=m|0,this.Fh=b|0,this.Fl=v|0,this.Gh=C|0,this.Gl=E|0,this.Hh=T|0,this.Hl=I|0}process(t,r){for(let L=0;L<16;L++,r+=4)Tc[L]=t.getUint32(r),Ic[L]=t.getUint32(r+=4);for(let L=16;L<80;L++){const N=Tc[L-15]|0,_=Ic[L-15]|0,O=nu(N,_,1)^nu(N,_,8)^JA(N,_,7),U=iu(N,_,1)^iu(N,_,8)^eE(N,_,7),z=Tc[L-2]|0,F=Ic[L-2]|0,k=nu(z,F,19)^O2(z,F,61)^JA(z,F,6),w=iu(z,F,19)^R2(z,F,61)^eE(z,F,6),s=FX(U,w,Ic[L-7],Ic[L-16]),l=OX(s,O,k,Tc[L-7],Tc[L-16]);Tc[L]=l|0,Ic[L]=s|0}let{Ah:n,Al:a,Bh:i,Bl:o,Ch:u,Cl:d,Dh:h,Dl:m,Eh:b,El:v,Fh:C,Fl:E,Gh:T,Gl:I,Hh:S,Hl:D}=this;for(let L=0;L<80;L++){const N=nu(b,v,14)^nu(b,v,18)^O2(b,v,41),_=iu(b,v,14)^iu(b,v,18)^R2(b,v,41),O=b&C^~b&T,U=v&E^~v&I,z=RX(D,_,U,YX[L],Ic[L]),F=UX(z,S,N,O,HX[L],Tc[L]),k=z|0,w=nu(n,a,28)^O2(n,a,34)^O2(n,a,39),s=iu(n,a,28)^R2(n,a,34)^R2(n,a,39),l=n&i^n&u^i&u,f=a&o^a&d^o&d;S=T|0,D=I|0,T=C|0,I=E|0,C=b|0,E=v|0,{h:b,l:v}=Ro(h|0,m|0,F|0,k|0),h=u|0,m=d|0,u=i|0,d=o|0,i=n|0,o=a|0;const p=zX(k,s,f);n=_X(p,F,w,l),a=p|0}({h:n,l:a}=Ro(this.Ah|0,this.Al|0,n|0,a|0)),{h:i,l:o}=Ro(this.Bh|0,this.Bl|0,i|0,o|0),{h:u,l:d}=Ro(this.Ch|0,this.Cl|0,u|0,d|0),{h,l:m}=Ro(this.Dh|0,this.Dl|0,h|0,m|0),{h:b,l:v}=Ro(this.Eh|0,this.El|0,b|0,v|0),{h:C,l:E}=Ro(this.Fh|0,this.Fl|0,C|0,E|0),{h:T,l:I}=Ro(this.Gh|0,this.Gl|0,T|0,I|0),{h:S,l:D}=Ro(this.Hh|0,this.Hl|0,S|0,D|0),this.set(n,a,i,o,u,d,h,m,b,v,C,E,T,I,S,D)}roundClean(){gl(Tc,Ic)}destroy(){gl(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Pi=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class ZX extends Xz{constructor(){super(32),this.Ah=Pi[0]|0,this.Al=Pi[1]|0,this.Bh=Pi[2]|0,this.Bl=Pi[3]|0,this.Ch=Pi[4]|0,this.Cl=Pi[5]|0,this.Dh=Pi[6]|0,this.Dl=Pi[7]|0,this.Eh=Pi[8]|0,this.El=Pi[9]|0,this.Fh=Pi[10]|0,this.Fl=Pi[11]|0,this.Gh=Pi[12]|0,this.Gl=Pi[13]|0,this.Hh=Pi[14]|0,this.Hl=Pi[15]|0}}const Jz=Z6(()=>new WX),e_=Z6(()=>new Xz),GX=Z6(()=>new ZX),cb=Jz,QX=BigInt(0),yd=BigInt(1),qX=BigInt(2),VX=BigInt(7),$X=BigInt(256),KX=BigInt(113),t_=[],r_=[],n_=[];for(let e=0,t=yd,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],t_.push(2*(5*n+r)),r_.push((e+1)*(e+2)/2%64);let a=QX;for(let i=0;i<7;i++)t=(t<<yd^(t>>VX)*KX)%$X,t&qX&&(a^=yd<<(yd<<BigInt(i))-yd);n_.push(a)}const i_=$z(n_,!0),XX=i_[0],JX=i_[1],tE=(e,t,r)=>r>32?BX(e,t,r):LX(e,t,r),rE=(e,t,r)=>r>32?kX(e,t,r):jX(e,t,r);function eJ(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)r[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const u=(o+8)%10,d=(o+2)%10,h=r[d],m=r[d+1],b=tE(h,m,1)^r[u],v=rE(h,m,1)^r[u+1];for(let C=0;C<50;C+=10)e[o+C]^=b,e[o+C+1]^=v}let a=e[2],i=e[3];for(let o=0;o<24;o++){const u=r_[o],d=tE(a,i,u),h=rE(a,i,u),m=t_[o];a=e[m],i=e[m+1],e[m]=d,e[m+1]=h}for(let o=0;o<50;o+=10){for(let u=0;u<10;u++)r[u]=e[o+u];for(let u=0;u<10;u++)e[o+u]^=~r[(u+2)%10]&r[(u+4)%10]}e[0]^=XX[n],e[1]^=JX[n]}gl(r)}let tJ=class a_ extends px{constructor(t,r,n,a=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=a,this.rounds=i,W1(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=CX(this.state)}clone(){return this._cloneInto()}keccak(){$A(this.state32),eJ(this.state32,this.rounds),$A(this.state32),this.posOut=0,this.pos=0}update(t){ff(this),t=_h(t),gc(t);const{blockLen:r,state:n}=this,a=t.length;for(let i=0;i<a;){const o=Math.min(r-this.pos,a-i);for(let u=0;u<o;u++)n[this.pos++]^=t[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:a}=this;t[n]^=r,r&128&&n===a-1&&this.keccak(),t[a-1]^=128,this.keccak()}writeInto(t){ff(this,!1),gc(t),this.finish();const r=this.state,{blockLen:n}=this;for(let a=0,i=t.length;a<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-a);t.set(r.subarray(this.posOut,this.posOut+o),a),this.posOut+=o,a+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return W1(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Hz(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,gl(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:a,rounds:i,enableXOF:o}=this;return t||(t=new a_(r,n,a,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=a,t.enableXOF=o,t.destroyed=this.destroyed,t}};const s_=(e,t,r)=>Z6(()=>new tJ(t,e,r)),Vme=s_(6,136,256/8),np=s_(1,136,256/8),$me=e_,rJ=GX;class o_ extends px{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,wX(t);const n=_h(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?t.create().update(n).digest():n);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),gl(i)}update(t){return ff(this),this.iHash.update(t),this}digestInto(t){ff(this),gc(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:a,destroyed:i,blockLen:o,outputLen:u}=this;return t=t,t.finished=a,t.destroyed=i,t.blockLen=o,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const c_=(e,t,r)=>new o_(e,t).update(r).digest();c_.create=(e,t)=>new o_(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mx=BigInt(0),ip=BigInt(1);function Fh(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function gx(e){if(!Fh(e))throw new Error("Uint8Array expected")}function il(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function U2(e){const t=e.toString(16);return t.length&1?"0"+t:t}function l_(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?mx:BigInt("0x"+e)}const u_=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",nJ=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function df(e){if(gx(e),u_)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=nJ[e[r]];return t}const Uo={_0:48,_9:57,A:65,F:70,a:97,f:102};function nE(e){if(e>=Uo._0&&e<=Uo._9)return e-Uo._0;if(e>=Uo.A&&e<=Uo.F)return e-(Uo.A-10);if(e>=Uo.a&&e<=Uo.f)return e-(Uo.a-10)}function ap(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(u_)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const o=nE(e.charCodeAt(i)),u=nE(e.charCodeAt(i+1));if(o===void 0||u===void 0){const d=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+i)}n[a]=o*16+u}return n}function b0(e){return l_(df(e))}function i1(e){return gx(e),l_(df(Uint8Array.from(e).reverse()))}function Oh(e,t){return ap(e.toString(16).padStart(t*2,"0"))}function sp(e,t){return Oh(e,t).reverse()}function Wn(e,t,r){let n;if(typeof t=="string")try{n=ap(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Fh(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const a=n.length;if(typeof r=="number"&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return n}function hf(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];gx(a),t+=a.length}const r=new Uint8Array(t);for(let n=0,a=0;n<e.length;n++){const i=e[n];r.set(i,a),a+=i.length}return r}function Kme(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}const jm=e=>typeof e=="bigint"&&mx<=e;function yx(e,t,r){return jm(e)&&jm(t)&&jm(r)&&t<=e&&e<r}function Bs(e,t,r,n){if(!yx(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function iJ(e){let t;for(t=0;e>mx;e>>=ip,t+=1);return t}function Xme(e,t){return e>>BigInt(t)&ip}const G6=e=>(ip<<BigInt(e))-ip,Bm=e=>new Uint8Array(e),iE=e=>Uint8Array.from(e);function aJ(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Bm(e),a=Bm(e),i=0;const o=()=>{n.fill(1),a.fill(0),i=0},u=(...b)=>r(a,n,...b),d=(b=Bm(0))=>{a=u(iE([0]),b),n=u(),b.length!==0&&(a=u(iE([1]),b),n=u())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let b=0;const v=[];for(;b<t;){n=u();const C=n.slice();v.push(C),b+=n.length}return hf(...v)};return(b,v)=>{o(),d(b);let C;for(;!(C=v(h()));)d();return o(),C}}const sJ={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Fh(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Rh(e,t,r={}){const n=(a,i,o)=>{const u=sJ[i];if(typeof u!="function")throw new Error("invalid validator function");const d=e[a];if(!(o&&d===void 0)&&!u(d,e))throw new Error("param "+String(a)+" is invalid. Expected "+i+", got "+d)};for(const[a,i]of Object.entries(t))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return e}const Jme=()=>{throw new Error("not implemented")};function op(e){const t=new WeakMap;return(r,...n)=>{const a=t.get(r);if(a!==void 0)return a;const i=e(r,...n);return t.set(r,i),i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pa=BigInt(0),zi=BigInt(1),e0=BigInt(2),oJ=BigInt(3),f_=BigInt(4),d_=BigInt(5),h_=BigInt(8);function Mn(e,t){const r=e%t;return r>=pa?r:t+r}function kn(e,t,r){let n=e;for(;t-- >pa;)n*=n,n%=r;return n}function lb(e,t){if(e===pa)throw new Error("invert: expected non-zero number");if(t<=pa)throw new Error("invert: expected positive modulus, got "+t);let r=Mn(e,t),n=t,a=pa,i=zi;for(;r!==pa;){const u=n/r,d=n%r,h=a-i*u;n=r,r=d,a=i,i=h}if(n!==zi)throw new Error("invert: does not exist");return Mn(a,t)}function p_(e,t){const r=(e.ORDER+zi)/f_,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function cJ(e,t){const r=(e.ORDER-d_)/h_,n=e.mul(t,e0),a=e.pow(n,r),i=e.mul(t,a),o=e.mul(e.mul(i,e0),a),u=e.mul(i,e.sub(o,e.ONE));if(!e.eql(e.sqr(u),t))throw new Error("Cannot find square root");return u}function lJ(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-zi,r=0;for(;t%e0===pa;)t/=e0,r++;let n=e0;const a=Uh(e);for(;aE(a,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return p_;let i=a.pow(n,t);const o=(t+zi)/e0;return function(d,h){if(d.is0(h))return h;if(aE(d,h)!==1)throw new Error("Cannot find square root");let m=r,b=d.mul(d.ONE,i),v=d.pow(h,t),C=d.pow(h,o);for(;!d.eql(v,d.ONE);){if(d.is0(v))return d.ZERO;let E=1,T=d.sqr(v);for(;!d.eql(T,d.ONE);)if(E++,T=d.sqr(T),E===m)throw new Error("Cannot find square root");const I=zi<<BigInt(m-E-1),S=d.pow(b,I);m=E,b=d.sqr(S),v=d.mul(v,b),C=d.mul(C,S)}return C}}function uJ(e){return e%f_===oJ?p_:e%h_===d_?cJ:lJ(e)}const fJ=(e,t)=>(Mn(e,t)&zi)===zi,dJ=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function hJ(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=dJ.reduce((n,a)=>(n[a]="function",n),t);return Rh(e,r)}function pJ(e,t,r){if(r<pa)throw new Error("invalid exponent, negatives unsupported");if(r===pa)return e.ONE;if(r===zi)return t;let n=e.ONE,a=t;for(;r>pa;)r&zi&&(n=e.mul(n,a)),a=e.sqr(a),r>>=zi;return n}function bx(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((o,u,d)=>e.is0(u)?o:(n[d]=o,e.mul(o,u)),e.ONE),i=e.inv(a);return t.reduceRight((o,u,d)=>e.is0(u)?o:(n[d]=e.mul(o,n[d]),e.mul(o,u)),i),n}function aE(e,t){const r=(e.ORDER-zi)/e0,n=e.pow(t,r),a=e.eql(n,e.ONE),i=e.eql(n,e.ZERO),o=e.eql(n,e.neg(e.ONE));if(!a&&!i&&!o)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}function m_(e,t){t!==void 0&&W1(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Uh(e,t,r=!1,n={}){if(e<=pa)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:a,nByteLength:i}=m_(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const u=Object.freeze({ORDER:e,isLE:r,BITS:a,BYTES:i,MASK:G6(a),ZERO:pa,ONE:zi,create:d=>Mn(d,e),isValid:d=>{if(typeof d!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof d);return pa<=d&&d<e},is0:d=>d===pa,isOdd:d=>(d&zi)===zi,neg:d=>Mn(-d,e),eql:(d,h)=>d===h,sqr:d=>Mn(d*d,e),add:(d,h)=>Mn(d+h,e),sub:(d,h)=>Mn(d-h,e),mul:(d,h)=>Mn(d*h,e),pow:(d,h)=>pJ(u,d,h),div:(d,h)=>Mn(d*lb(h,e),e),sqrN:d=>d*d,addN:(d,h)=>d+h,subN:(d,h)=>d-h,mulN:(d,h)=>d*h,inv:d=>lb(d,e),sqrt:n.sqrt||(d=>(o||(o=uJ(e)),o(u,d))),toBytes:d=>r?sp(d,i):Oh(d,i),fromBytes:d=>{if(d.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+d.length);return r?i1(d):b0(d)},invertBatch:d=>bx(u,d),cmov:(d,h,m)=>m?h:d});return Object.freeze(u)}function g_(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function y_(e){const t=g_(e);return t+Math.ceil(t/2)}function mJ(e,t,r=!1){const n=e.length,a=g_(t),i=y_(t);if(n<16||n<i||n>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+n);const o=r?i1(e):b0(e),u=Mn(o,t-zi)+zi;return r?sp(u,a):Oh(u,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const sE=BigInt(0),ub=BigInt(1);function km(e,t){const r=t.negate();return e?r:t}function b_(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function zm(e,t){b_(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),a=2**e,i=G6(e),o=BigInt(e);return{windows:r,windowSize:n,mask:i,maxNumber:a,shiftBy:o}}function oE(e,t,r){const{windowSize:n,mask:a,maxNumber:i,shiftBy:o}=r;let u=Number(e&a),d=e>>o;u>n&&(u-=i,d+=ub);const h=t*n,m=h+Math.abs(u)-1,b=u===0,v=u<0,C=t%2!==0;return{nextN:d,offset:m,isZero:b,isNeg:v,isNegF:C,offsetF:h}}function gJ(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function yJ(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const _m=new WeakMap,M_=new WeakMap;function Fm(e){return M_.get(e)||1}function x_(e,t){return{constTimeNegate:km,hasPrecomputes(r){return Fm(r)!==1},unsafeLadder(r,n,a=e.ZERO){let i=r;for(;n>sE;)n&ub&&(a=a.add(i)),i=i.double(),n>>=ub;return a},precomputeWindow(r,n){const{windows:a,windowSize:i}=zm(n,t),o=[];let u=r,d=u;for(let h=0;h<a;h++){d=u,o.push(d);for(let m=1;m<i;m++)d=d.add(u),o.push(d);u=d.double()}return o},wNAF(r,n,a){let i=e.ZERO,o=e.BASE;const u=zm(r,t);for(let d=0;d<u.windows;d++){const{nextN:h,offset:m,isZero:b,isNeg:v,isNegF:C,offsetF:E}=oE(a,d,u);a=h,b?o=o.add(km(C,n[E])):i=i.add(km(v,n[m]))}return{p:i,f:o}},wNAFUnsafe(r,n,a,i=e.ZERO){const o=zm(r,t);for(let u=0;u<o.windows&&a!==sE;u++){const{nextN:d,offset:h,isZero:m,isNeg:b}=oE(a,u,o);if(a=d,!m){const v=n[h];i=i.add(b?v.negate():v)}}return i},getPrecomputes(r,n,a){let i=_m.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&_m.set(n,a(i))),i},wNAFCached(r,n,a){const i=Fm(r);return this.wNAF(i,this.getPrecomputes(i,r,a),n)},wNAFCachedUnsafe(r,n,a,i){const o=Fm(r);return o===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(o,this.getPrecomputes(o,r,a),n,i)},setWindowSize(r,n){b_(n,t),M_.set(r,n),_m.delete(r)}}}function v_(e,t,r,n){gJ(r,e),yJ(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,u=iJ(BigInt(a));let d=1;u>12?d=u-3:u>4?d=u-2:u>0&&(d=2);const h=G6(d),m=new Array(Number(h)+1).fill(o),b=Math.floor((t.BITS-1)/d)*d;let v=o;for(let C=b;C>=0;C-=d){m.fill(o);for(let T=0;T<i;T++){const I=n[T],S=Number(I>>BigInt(C)&h);m[S]=m[S].add(r[T])}let E=o;for(let T=m.length-1,I=o;T>0;T--)I=I.add(m[T]),E=E.add(I);if(v=v.add(E),C!==0)for(let T=0;T<d;T++)v=v.double()}return v}function Mx(e){return hJ(e.Fp),Rh(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...m_(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function cE(e){e.lowS!==void 0&&il("lowS",e.lowS),e.prehash!==void 0&&il("prehash",e.prehash)}function bJ(e){const t=Mx(e);Rh(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:n,a}=t;if(r){if(!n.eql(a,n.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class MJ extends Error{constructor(t=""){super(t)}}const Zo={Err:MJ,_tlv:{encode:(e,t)=>{const{Err:r}=Zo;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,a=U2(n);if(a.length/2&128)throw new r("tlv.encode: long form length too big");const i=n>127?U2(a.length/2|128):"";return U2(e)+i+a+t},decode(e,t){const{Err:r}=Zo;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const a=t[n++],i=!!(a&128);let o=0;if(!i)o=a;else{const d=a&127;if(!d)throw new r("tlv.decode(long): indefinite length not supported");if(d>4)throw new r("tlv.decode(long): byte length is too big");const h=t.subarray(n,n+d);if(h.length!==d)throw new r("tlv.decode: length bytes not complete");if(h[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const m of h)o=o<<8|m;if(n+=d,o<128)throw new r("tlv.decode(long): not minimal encoding")}const u=t.subarray(n,n+o);if(u.length!==o)throw new r("tlv.decode: wrong value length");return{v:u,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=Zo;if(e<Qo)throw new t("integer: negative integers are not allowed");let r=U2(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=Zo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return b0(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=Zo,a=Wn("signature",e),{v:i,l:o}=n.decode(48,a);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:d}=n.decode(2,i),{v:h,l:m}=n.decode(2,d);if(m.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(h)}},hexFromSig(e){const{_tlv:t,_int:r}=Zo,n=t.encode(2,r.encode(e.r)),a=t.encode(2,r.encode(e.s)),i=n+a;return t.encode(48,i)}};function Om(e,t){return df(Oh(e,t))}const Qo=BigInt(0),ci=BigInt(1);BigInt(2);const Rm=BigInt(3),xJ=BigInt(4);function vJ(e){const t=bJ(e),{Fp:r}=t,n=Uh(t.n,t.nBitLength),a=t.toBytes||((L,N,_)=>{const O=N.toAffine();return hf(Uint8Array.from([4]),r.toBytes(O.x),r.toBytes(O.y))}),i=t.fromBytes||(L=>{const N=L.subarray(1),_=r.fromBytes(N.subarray(0,r.BYTES)),O=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:_,y:O}});function o(L){const{a:N,b:_}=t,O=r.sqr(L),U=r.mul(O,L);return r.add(r.add(U,r.mul(L,N)),_)}function u(L,N){const _=r.sqr(N),O=o(L);return r.eql(_,O)}if(!u(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const d=r.mul(r.pow(t.a,Rm),xJ),h=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(d,h)))throw new Error("bad curve params: a or b");function m(L){return yx(L,ci,t.n)}function b(L){const{allowedPrivateKeyLengths:N,nByteLength:_,wrapPrivateKey:O,n:U}=t;if(N&&typeof L!="bigint"){if(Fh(L)&&(L=df(L)),typeof L!="string"||!N.includes(L.length))throw new Error("invalid private key");L=L.padStart(_*2,"0")}let z;try{z=typeof L=="bigint"?L:b0(Wn("private key",L,_))}catch{throw new Error("invalid private key, expected hex or "+_+" bytes, got "+typeof L)}return O&&(z=Mn(z,U)),Bs("private key",z,ci,U),z}function v(L){if(!(L instanceof T))throw new Error("ProjectivePoint expected")}const C=op((L,N)=>{const{px:_,py:O,pz:U}=L;if(r.eql(U,r.ONE))return{x:_,y:O};const z=L.is0();N==null&&(N=z?r.ONE:r.inv(U));const F=r.mul(_,N),k=r.mul(O,N),w=r.mul(U,N);if(z)return{x:r.ZERO,y:r.ZERO};if(!r.eql(w,r.ONE))throw new Error("invZ was invalid");return{x:F,y:k}}),E=op(L=>{if(L.is0()){if(t.allowInfinityPoint&&!r.is0(L.py))return;throw new Error("bad point: ZERO")}const{x:N,y:_}=L.toAffine();if(!r.isValid(N)||!r.isValid(_))throw new Error("bad point: x or y not FE");if(!u(N,_))throw new Error("bad point: equation left != right");if(!L.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class T{constructor(N,_,O){if(N==null||!r.isValid(N))throw new Error("x required");if(_==null||!r.isValid(_)||r.is0(_))throw new Error("y required");if(O==null||!r.isValid(O))throw new Error("z required");this.px=N,this.py=_,this.pz=O,Object.freeze(this)}static fromAffine(N){const{x:_,y:O}=N||{};if(!N||!r.isValid(_)||!r.isValid(O))throw new Error("invalid affine point");if(N instanceof T)throw new Error("projective point not allowed");const U=z=>r.eql(z,r.ZERO);return U(_)&&U(O)?T.ZERO:new T(_,O,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){const _=bx(r,N.map(O=>O.pz));return N.map((O,U)=>O.toAffine(_[U])).map(T.fromAffine)}static fromHex(N){const _=T.fromAffine(i(Wn("pointHex",N)));return _.assertValidity(),_}static fromPrivateKey(N){return T.BASE.multiply(b(N))}static msm(N,_){return v_(T,n,N,_)}_setWindowSize(N){D.setWindowSize(this,N)}assertValidity(){E(this)}hasEvenY(){const{y:N}=this.toAffine();if(r.isOdd)return!r.isOdd(N);throw new Error("Field doesn't support isOdd")}equals(N){v(N);const{px:_,py:O,pz:U}=this,{px:z,py:F,pz:k}=N,w=r.eql(r.mul(_,k),r.mul(z,U)),s=r.eql(r.mul(O,k),r.mul(F,U));return w&&s}negate(){return new T(this.px,r.neg(this.py),this.pz)}double(){const{a:N,b:_}=t,O=r.mul(_,Rm),{px:U,py:z,pz:F}=this;let k=r.ZERO,w=r.ZERO,s=r.ZERO,l=r.mul(U,U),f=r.mul(z,z),p=r.mul(F,F),g=r.mul(U,z);return g=r.add(g,g),s=r.mul(U,F),s=r.add(s,s),k=r.mul(N,s),w=r.mul(O,p),w=r.add(k,w),k=r.sub(f,w),w=r.add(f,w),w=r.mul(k,w),k=r.mul(g,k),s=r.mul(O,s),p=r.mul(N,p),g=r.sub(l,p),g=r.mul(N,g),g=r.add(g,s),s=r.add(l,l),l=r.add(s,l),l=r.add(l,p),l=r.mul(l,g),w=r.add(w,l),p=r.mul(z,F),p=r.add(p,p),l=r.mul(p,g),k=r.sub(k,l),s=r.mul(p,f),s=r.add(s,s),s=r.add(s,s),new T(k,w,s)}add(N){v(N);const{px:_,py:O,pz:U}=this,{px:z,py:F,pz:k}=N;let w=r.ZERO,s=r.ZERO,l=r.ZERO;const f=t.a,p=r.mul(t.b,Rm);let g=r.mul(_,z),x=r.mul(O,F),A=r.mul(U,k),y=r.add(_,O),c=r.add(z,F);y=r.mul(y,c),c=r.add(g,x),y=r.sub(y,c),c=r.add(_,U);let M=r.add(z,k);return c=r.mul(c,M),M=r.add(g,A),c=r.sub(c,M),M=r.add(O,U),w=r.add(F,k),M=r.mul(M,w),w=r.add(x,A),M=r.sub(M,w),l=r.mul(f,c),w=r.mul(p,A),l=r.add(w,l),w=r.sub(x,l),l=r.add(x,l),s=r.mul(w,l),x=r.add(g,g),x=r.add(x,g),A=r.mul(f,A),c=r.mul(p,c),x=r.add(x,A),A=r.sub(g,A),A=r.mul(f,A),c=r.add(c,A),g=r.mul(x,c),s=r.add(s,g),g=r.mul(M,c),w=r.mul(y,w),w=r.sub(w,g),g=r.mul(y,x),l=r.mul(M,l),l=r.add(l,g),new T(w,s,l)}subtract(N){return this.add(N.negate())}is0(){return this.equals(T.ZERO)}wNAF(N){return D.wNAFCached(this,N,T.normalizeZ)}multiplyUnsafe(N){const{endo:_,n:O}=t;Bs("scalar",N,Qo,O);const U=T.ZERO;if(N===Qo)return U;if(this.is0()||N===ci)return this;if(!_||D.hasPrecomputes(this))return D.wNAFCachedUnsafe(this,N,T.normalizeZ);let{k1neg:z,k1:F,k2neg:k,k2:w}=_.splitScalar(N),s=U,l=U,f=this;for(;F>Qo||w>Qo;)F&ci&&(s=s.add(f)),w&ci&&(l=l.add(f)),f=f.double(),F>>=ci,w>>=ci;return z&&(s=s.negate()),k&&(l=l.negate()),l=new T(r.mul(l.px,_.beta),l.py,l.pz),s.add(l)}multiply(N){const{endo:_,n:O}=t;Bs("scalar",N,ci,O);let U,z;if(_){const{k1neg:F,k1:k,k2neg:w,k2:s}=_.splitScalar(N);let{p:l,f}=this.wNAF(k),{p,f:g}=this.wNAF(s);l=D.constTimeNegate(F,l),p=D.constTimeNegate(w,p),p=new T(r.mul(p.px,_.beta),p.py,p.pz),U=l.add(p),z=f.add(g)}else{const{p:F,f:k}=this.wNAF(N);U=F,z=k}return T.normalizeZ([U,z])[0]}multiplyAndAddUnsafe(N,_,O){const U=T.BASE,z=(k,w)=>w===Qo||w===ci||!k.equals(U)?k.multiplyUnsafe(w):k.multiply(w),F=z(this,_).add(z(N,O));return F.is0()?void 0:F}toAffine(N){return C(this,N)}isTorsionFree(){const{h:N,isTorsionFree:_}=t;if(N===ci)return!0;if(_)return _(T,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:N,clearCofactor:_}=t;return N===ci?this:_?_(T,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return il("isCompressed",N),this.assertValidity(),a(T,this,N)}toHex(N=!0){return il("isCompressed",N),df(this.toRawBytes(N))}}T.BASE=new T(t.Gx,t.Gy,r.ONE),T.ZERO=new T(r.ZERO,r.ONE,r.ZERO);const{endo:I,nBitLength:S}=t,D=x_(T,I?Math.ceil(S/2):S);return{CURVE:t,ProjectivePoint:T,normPrivateKeyToScalar:b,weierstrassEquation:o,isWithinCurveOrder:m}}function wJ(e){const t=Mx(e);return Rh(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function CJ(e){const t=wJ(e),{Fp:r,n,nByteLength:a,nBitLength:i}=t,o=r.BYTES+1,u=2*r.BYTES+1;function d(p){return Mn(p,n)}function h(p){return lb(p,n)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:v,isWithinCurveOrder:C}=vJ({...t,toBytes(p,g,x){const A=g.toAffine(),y=r.toBytes(A.x),c=hf;return il("isCompressed",x),x?c(Uint8Array.from([g.hasEvenY()?2:3]),y):c(Uint8Array.from([4]),y,r.toBytes(A.y))},fromBytes(p){const g=p.length,x=p[0],A=p.subarray(1);if(g===o&&(x===2||x===3)){const y=b0(A);if(!yx(y,ci,r.ORDER))throw new Error("Point is not on curve");const c=v(y);let M;try{M=r.sqrt(c)}catch(Q){const K=Q instanceof Error?": "+Q.message:"";throw new Error("Point is not on curve"+K)}const B=(M&ci)===ci;return(x&1)===1!==B&&(M=r.neg(M)),{x:y,y:M}}else if(g===u&&x===4){const y=r.fromBytes(A.subarray(0,r.BYTES)),c=r.fromBytes(A.subarray(r.BYTES,2*r.BYTES));return{x:y,y:c}}else{const y=o,c=u;throw new Error("invalid Point, expected length of "+y+", or uncompressed "+c+", got "+g)}}});function E(p){const g=n>>ci;return p>g}function T(p){return E(p)?d(-p):p}const I=(p,g,x)=>b0(p.slice(g,x));class S{constructor(g,x,A){Bs("r",g,ci,n),Bs("s",x,ci,n),this.r=g,this.s=x,A!=null&&(this.recovery=A),Object.freeze(this)}static fromCompact(g){const x=a;return g=Wn("compactSignature",g,x*2),new S(I(g,0,x),I(g,x,2*x))}static fromDER(g){const{r:x,s:A}=Zo.toSig(Wn("DER",g));return new S(x,A)}assertValidity(){}addRecoveryBit(g){return new S(this.r,this.s,g)}recoverPublicKey(g){const{r:x,s:A,recovery:y}=this,c=U(Wn("msgHash",g));if(y==null||![0,1,2,3].includes(y))throw new Error("recovery id invalid");const M=y===2||y===3?x+t.n:x;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=y&1?"03":"02",R=m.fromHex(B+Om(M,r.BYTES)),Q=h(M),K=d(-c*Q),q=d(A*Q),W=m.BASE.multiplyAndAddUnsafe(R,K,q);if(!W)throw new Error("point at infinify");return W.assertValidity(),W}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return ap(this.toDERHex())}toDERHex(){return Zo.hexFromSig(this)}toCompactRawBytes(){return ap(this.toCompactHex())}toCompactHex(){const g=a;return Om(this.r,g)+Om(this.s,g)}}const D={isValidPrivateKey(p){try{return b(p),!0}catch{return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const p=y_(t.n);return mJ(t.randomBytes(p),t.n)},precompute(p=8,g=m.BASE){return g._setWindowSize(p),g.multiply(BigInt(3)),g}};function L(p,g=!0){return m.fromPrivateKey(p).toRawBytes(g)}function N(p){if(typeof p=="bigint")return!1;if(p instanceof m)return!0;const x=Wn("key",p).length,A=r.BYTES,y=A+1,c=2*A+1;if(!(t.allowedPrivateKeyLengths||a===y))return x===y||x===c}function _(p,g,x=!0){if(N(p)===!0)throw new Error("first arg must be private key");if(N(g)===!1)throw new Error("second arg must be public key");return m.fromHex(g).multiply(b(p)).toRawBytes(x)}const O=t.bits2int||function(p){if(p.length>8192)throw new Error("input is too large");const g=b0(p),x=p.length*8-i;return x>0?g>>BigInt(x):g},U=t.bits2int_modN||function(p){return d(O(p))},z=G6(i);function F(p){return Bs("num < 2^"+i,p,Qo,z),Oh(p,a)}function k(p,g,x=w){if(["recovered","canonical"].some(X=>X in x))throw new Error("sign() legacy options not supported");const{hash:A,randomBytes:y}=t;let{lowS:c,prehash:M,extraEntropy:B}=x;c==null&&(c=!0),p=Wn("msgHash",p),cE(x),M&&(p=Wn("prehashed msgHash",A(p)));const R=U(p),Q=b(g),K=[F(Q),F(R)];if(B!=null&&B!==!1){const X=B===!0?y(r.BYTES):B;K.push(Wn("extraEntropy",X))}const q=hf(...K),W=R;function G(X){const ne=O(X);if(!C(ne))return;const te=h(ne),V=m.BASE.multiply(ne).toAffine(),oe=d(V.x);if(oe===Qo)return;const xe=d(te*d(W+oe*Q));if(xe===Qo)return;let fe=(V.x===oe?0:2)|Number(V.y&ci),me=xe;return c&&E(xe)&&(me=T(xe),fe^=1),new S(oe,me,fe)}return{seed:q,k2sig:G}}const w={lowS:t.lowS,prehash:!1},s={lowS:t.lowS,prehash:!1};function l(p,g,x=w){const{seed:A,k2sig:y}=k(p,g,x),c=t;return aJ(c.hash.outputLen,c.nByteLength,c.hmac)(A,y)}m.BASE._setWindowSize(8);function f(p,g,x,A=s){var fe;const y=p;g=Wn("msgHash",g),x=Wn("publicKey",x);const{lowS:c,prehash:M,format:B}=A;if(cE(A),"strict"in A)throw new Error("options.strict was renamed to lowS");if(B!==void 0&&B!=="compact"&&B!=="der")throw new Error("format must be compact or der");const R=typeof y=="string"||Fh(y),Q=!R&&!B&&typeof y=="object"&&y!==null&&typeof y.r=="bigint"&&typeof y.s=="bigint";if(!R&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let K,q;try{if(Q&&(K=new S(y.r,y.s)),R){try{B!=="compact"&&(K=S.fromDER(y))}catch(me){if(!(me instanceof Zo.Err))throw me}!K&&B!=="der"&&(K=S.fromCompact(y))}q=m.fromHex(x)}catch{return!1}if(!K||c&&K.hasHighS())return!1;M&&(g=t.hash(g));const{r:W,s:G}=K,X=U(g),ne=h(G),te=d(X*ne),V=d(W*ne),oe=(fe=m.BASE.multiplyAndAddUnsafe(q,te,V))==null?void 0:fe.toAffine();return oe?d(oe.x)===W:!1}return{CURVE:t,getPublicKey:L,getSharedSecret:_,sign:l,verify:f,ProjectivePoint:m,Signature:S,utils:D}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function AJ(e){return{hash:e,hmac:(t,...r)=>c_(e,t,SX(...r)),randomBytes:qz}}function EJ(e,t){const r=n=>CJ({...e,...AJ(n)});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const w_=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lE=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),SJ=BigInt(0),DJ=BigInt(1),fb=BigInt(2),uE=(e,t)=>(e+t/fb)/t;function TJ(e){const t=w_,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),o=BigInt(23),u=BigInt(44),d=BigInt(88),h=e*e*e%t,m=h*h*e%t,b=kn(m,r,t)*m%t,v=kn(b,r,t)*m%t,C=kn(v,fb,t)*h%t,E=kn(C,a,t)*C%t,T=kn(E,i,t)*E%t,I=kn(T,u,t)*T%t,S=kn(I,d,t)*I%t,D=kn(S,u,t)*T%t,L=kn(D,r,t)*m%t,N=kn(L,o,t)*E%t,_=kn(N,n,t)*h%t,O=kn(_,fb,t);if(!db.eql(db.sqr(O),e))throw new Error("Cannot find square root");return O}const db=Uh(w_,void 0,void 0,{sqrt:TJ}),t0=EJ({a:SJ,b:BigInt(7),Fp:db,n:lE,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lE,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-DJ*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),u=uE(i*e,t),d=uE(-n*e,t);let h=Mn(e-u*r-d*a,t),m=Mn(-u*n-d*i,t);const b=h>o,v=m>o;if(b&&(h=t-h),v&&(m=t-m),h>o||m>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:h,k2neg:v,k2:m}}}},Jz);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qs=BigInt(0),Ki=BigInt(1),fE=BigInt(2),IJ=BigInt(8),NJ={zip215:!0};function LJ(e){const t=Mx(e);return Rh(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function jJ(e){const t=LJ(e),{Fp:r,n,prehash:a,hash:i,randomBytes:o,nByteLength:u,h:d}=t,h=fE<<BigInt(u*8)-Ki,m=r.create,b=Uh(t.n,t.nBitLength);function v(A,y){const c=r.sqr(A),M=r.sqr(y),B=r.add(r.mul(t.a,c),M),R=r.add(r.ONE,r.mul(t.d,r.mul(c,M)));return r.eql(B,R)}if(!v(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const C=t.uvRatio||((A,y)=>{try{return{isValid:!0,value:r.sqrt(A*r.inv(y))}}catch{return{isValid:!1,value:qs}}}),E=t.adjustScalarBytes||(A=>A),T=t.domain||((A,y,c)=>{if(il("phflag",c),y.length||c)throw new Error("Contexts/pre-hash are not supported");return A});function I(A,y,c=!1){const M=c?Ki:qs;Bs("coordinate "+A,y,M,h)}function S(A){if(!(A instanceof N))throw new Error("ExtendedPoint expected")}const D=op((A,y)=>{const{ex:c,ey:M,ez:B}=A,R=A.is0();y==null&&(y=R?IJ:r.inv(B));const Q=m(c*y),K=m(M*y),q=m(B*y);if(R)return{x:qs,y:Ki};if(q!==Ki)throw new Error("invZ was invalid");return{x:Q,y:K}}),L=op(A=>{const{a:y,d:c}=t;if(A.is0())throw new Error("bad point: ZERO");const{ex:M,ey:B,ez:R,et:Q}=A,K=m(M*M),q=m(B*B),W=m(R*R),G=m(W*W),X=m(K*y),ne=m(W*m(X+q)),te=m(G+m(c*m(K*q)));if(ne!==te)throw new Error("bad point: equation left != right (1)");const V=m(M*B),oe=m(R*Q);if(V!==oe)throw new Error("bad point: equation left != right (2)");return!0});class N{constructor(y,c,M,B){I("x",y),I("y",c),I("z",M,!0),I("t",B),this.ex=y,this.ey=c,this.ez=M,this.et=B,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof N)throw new Error("extended point not allowed");const{x:c,y:M}=y||{};return I("x",c),I("y",M),new N(c,M,Ki,m(c*M))}static normalizeZ(y){const c=bx(r,y.map(M=>M.ez));return y.map((M,B)=>M.toAffine(c[B])).map(N.fromAffine)}static msm(y,c){return v_(N,b,y,c)}_setWindowSize(y){U.setWindowSize(this,y)}assertValidity(){L(this)}equals(y){S(y);const{ex:c,ey:M,ez:B}=this,{ex:R,ey:Q,ez:K}=y,q=m(c*K),W=m(R*B),G=m(M*K),X=m(Q*B);return q===W&&G===X}is0(){return this.equals(N.ZERO)}negate(){return new N(m(-this.ex),this.ey,this.ez,m(-this.et))}double(){const{a:y}=t,{ex:c,ey:M,ez:B}=this,R=m(c*c),Q=m(M*M),K=m(fE*m(B*B)),q=m(y*R),W=c+M,G=m(m(W*W)-R-Q),X=q+Q,ne=X-K,te=q-Q,V=m(G*ne),oe=m(X*te),xe=m(G*te),fe=m(ne*X);return new N(V,oe,fe,xe)}add(y){S(y);const{a:c,d:M}=t,{ex:B,ey:R,ez:Q,et:K}=this,{ex:q,ey:W,ez:G,et:X}=y,ne=m(B*q),te=m(R*W),V=m(K*M*X),oe=m(Q*G),xe=m((B+R)*(q+W)-ne-te),fe=oe-V,me=oe+V,Ze=m(te-c*ne),he=m(xe*fe),Se=m(me*Ze),Ke=m(xe*Ze),ye=m(fe*me);return new N(he,Se,ye,Ke)}subtract(y){return this.add(y.negate())}wNAF(y){return U.wNAFCached(this,y,N.normalizeZ)}multiply(y){const c=y;Bs("scalar",c,Ki,n);const{p:M,f:B}=this.wNAF(c);return N.normalizeZ([M,B])[0]}multiplyUnsafe(y,c=N.ZERO){const M=y;return Bs("scalar",M,qs,n),M===qs?O:this.is0()||M===Ki?this:U.wNAFCachedUnsafe(this,M,N.normalizeZ,c)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return U.unsafeLadder(this,n).is0()}toAffine(y){return D(this,y)}clearCofactor(){const{h:y}=t;return y===Ki?this:this.multiplyUnsafe(y)}static fromHex(y,c=!1){const{d:M,a:B}=t,R=r.BYTES;y=Wn("pointHex",y,R),il("zip215",c);const Q=y.slice(),K=y[R-1];Q[R-1]=K&-129;const q=i1(Q),W=c?h:r.ORDER;Bs("pointHex.y",q,qs,W);const G=m(q*q),X=m(G-Ki),ne=m(M*G-B);let{isValid:te,value:V}=C(X,ne);if(!te)throw new Error("Point.fromHex: invalid y coordinate");const oe=(V&Ki)===Ki,xe=(K&128)!==0;if(!c&&V===qs&&xe)throw new Error("Point.fromHex: x=0 and x_0=1");return xe!==oe&&(V=m(-V)),N.fromAffine({x:V,y:q})}static fromPrivateKey(y){const{scalar:c}=k(y);return _.multiply(c)}toRawBytes(){const{x:y,y:c}=this.toAffine(),M=sp(c,r.BYTES);return M[M.length-1]|=y&Ki?128:0,M}toHex(){return df(this.toRawBytes())}}N.BASE=new N(t.Gx,t.Gy,Ki,m(t.Gx*t.Gy)),N.ZERO=new N(qs,Ki,Ki,qs);const{BASE:_,ZERO:O}=N,U=x_(N,u*8);function z(A){return Mn(A,n)}function F(A){return z(i1(A))}function k(A){const y=r.BYTES;A=Wn("private key",A,y);const c=Wn("hashed private key",i(A),2*y),M=E(c.slice(0,y)),B=c.slice(y,2*y),R=F(M);return{head:M,prefix:B,scalar:R}}function w(A){const{head:y,prefix:c,scalar:M}=k(A),B=_.multiply(M),R=B.toRawBytes();return{head:y,prefix:c,scalar:M,point:B,pointBytes:R}}function s(A){return w(A).pointBytes}function l(A=Uint8Array.of(),...y){const c=hf(...y);return F(i(T(c,Wn("context",A),!!a)))}function f(A,y,c={}){A=Wn("message",A),a&&(A=a(A));const{prefix:M,scalar:B,pointBytes:R}=w(y),Q=l(c.context,M,A),K=_.multiply(Q).toRawBytes(),q=l(c.context,K,R,A),W=z(Q+q*B);Bs("signature.s",W,qs,n);const G=hf(K,sp(W,r.BYTES));return Wn("result",G,r.BYTES*2)}const p=NJ;function g(A,y,c,M=p){const{context:B,zip215:R}=M,Q=r.BYTES;A=Wn("signature",A,2*Q),y=Wn("message",y),c=Wn("publicKey",c,Q),R!==void 0&&il("zip215",R),a&&(y=a(y));const K=i1(A.slice(Q,2*Q));let q,W,G;try{q=N.fromHex(c,R),W=N.fromHex(A.slice(0,Q),R),G=_.multiplyUnsafe(K)}catch{return!1}if(!R&&q.isSmallOrder())return!1;const X=l(B,W.toRawBytes(),q.toRawBytes(),y);return W.add(q.multiplyUnsafe(X)).subtract(G).clearCofactor().equals(N.ZERO)}return _._setWindowSize(8),{CURVE:t,getPublicKey:s,sign:f,verify:g,ExtendedPoint:N,utils:{getExtendedPublicKey:w,randomPrivateKey:()=>o(r.BYTES),precompute(A=8,y=N.BASE){return y._setWindowSize(A),y.multiply(BigInt(3)),y}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const xx=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),dE=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const BJ=BigInt(1),hE=BigInt(2);BigInt(3);const kJ=BigInt(5),zJ=BigInt(8);function _J(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),a=BigInt(80),i=xx,u=e*e%i*e%i,d=kn(u,hE,i)*u%i,h=kn(d,BJ,i)*e%i,m=kn(h,kJ,i)*h%i,b=kn(m,t,i)*m%i,v=kn(b,r,i)*b%i,C=kn(v,n,i)*v%i,E=kn(C,a,i)*C%i,T=kn(E,a,i)*C%i,I=kn(T,t,i)*m%i;return{pow_p_5_8:kn(I,hE,i)*e%i,b2:u}}function FJ(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function OJ(e,t){const r=xx,n=Mn(t*t*t,r),a=Mn(n*n*t,r),i=_J(e*a).pow_p_5_8;let o=Mn(e*n*i,r);const u=Mn(t*o*o,r),d=o,h=Mn(o*dE,r),m=u===e,b=u===Mn(-e,r),v=u===Mn(-e*dE,r);return m&&(o=d),(b||v)&&(o=h),fJ(o,r)&&(o=Mn(-o,r)),{isValid:m||b,value:o}}const pE=Uh(xx,void 0,!0),RJ={a:pE.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:pE,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:zJ,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:e_,randomBytes:qz,adjustScalarBytes:FJ,uvRatio:OJ},Zf=jJ(RJ),UJ=[{name:"appIdPrefix",binary:"bytes",custom:ii.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],Ks=class Ks{constructor(t,r="hex"){Ye(this,"address");this.address=typeof t=="string"?Ks.stringToUint8Array(t,r):t}toNative(t){return xa(t,this)}unwrap(){return this.address}toString(){return Xr.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(t){return ii.equals(this.address,t.address)}static isValidAddress(t,r="hex"){return!gK(()=>Ks.stringToUint8Array(t,r))}static instanceof(t){return typeof t=="object"&&"constructor"in t&&t.constructor.type===Ks.type}static stringToUint8Array(t,r){const n=(()=>{switch(r){case"hex":if(![40,2*this.byteSize].includes(t.length-(t.startsWith("0x")?2:0)))throw new Error(`string ${t} has invalid length for format ${r}`);return Xr.decode(t);case"base58":return WK.decode(t);case"bech32":return Su.decodeToBytes(t).bytes;case"algorandAppId":return rJ(pc(UJ,{appId:BigInt(t)}));case"sha256":return cb(t)}})();if(n.length>Ks.byteSize)throw new Error(`string ${t} has invalid length for format ${r}`);return n.length<Ks.byteSize?ii.zpad(n,Ks.byteSize):n}};Ye(Ks,"byteSize",32),Ye(Ks,"type","Universal");let fn=Ks;function PJ(e){return typeof e=="object"&&"setChain"in e}const hb=new Map;function Gf(e,t){hb.has(e)||hb.set(e,t)}function xa(e,t){const r=Hn.get(e),n=hb.get(r);if(!n)throw new Error(`No native address type registered for platform ${r}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const a=new n(t);return PJ(a)&&a.setChain(e),a}catch(a){const i=`Error parsing address as a native ${e} address: ${a.message}`;if(fn.instanceof(t))throw i;return new fn(t).toNative(e)}}function WJ(e,t){const r=Hn.get(e);return new fn(t,YK.get(r))}const pb=(e,t)=>e?`${e}:${t}`:t,mb=new Map;function HJ(e,t,r){const n=pb(e,t);if(mb.has(n))throw new Error(`Payload type ${n} already registered`);mb.set(n,r)}function Mi(e,t){for(const[r,n]of t)HJ(e,r,n)}const _i={binary:"uint",size:32},YJ={binary:"uint",size:2},ma=e=>({...YJ,custom:{to:t=>{if(t===0){if(!(e!=null&&e.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const r=zh(t),n=(e==null?void 0:e.allowedChains)??jz;if(!n.includes(r))throw new Error(`Chain ${r} not in allowed chains ${n}`);return r},from:t=>t==null?0:W6(t)}}),H1={binary:"uint",size:4},vx={binary:"uint",size:8},C_={binary:"uint",size:4},wl=e=>({name:"payloadId",binary:"uint",size:1,custom:e,omit:!0}),wx={binary:"uint",size:8};class ZJ{constructor(t,r,n){Ye(this,"r");Ye(this,"s");Ye(this,"v");this.r=t,this.s=r,this.v=n}encode(){return pc(gb,this)}static decode(t){return mc(gb,t)}}var mE;(function(e){function t(i){return t0.getPublicKey(i)}e.toPubkey=t;function r(i,o){if(o.length!=32)throw new Error("hash.length != 32");return t0.sign(o,i)}e.sign=r;function n(i,o,u){const{r:d,s:h}=i;return t0.verify({r:d,s:h},u,o)}e.validate=n;function a(i,o){const{r:u,s:d,v:h}=i,m=new t0.Signature(u,d);return m.recovery=h,m.recoverPublicKey(o).toRawBytes()}e.recover=a})(mE||(mE={}));const GJ=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],gb={binary:"bytes",layout:GJ,custom:{to:e=>new ZJ(e.r,e.s,e.v),from:e=>({r:e.r,s:e.s,v:e.v})}},wr={binary:"bytes",size:32,custom:{to:e=>new fn(e),from:e=>e.toUint8Array()}},QJ=e=>{const t=e.findIndex(r=>r!==0);return-1<t?e.slice(t):new Uint8Array([])},qJ={to:ii.decode,from:ii.encode},A_=e=>({binary:"bytes",size:e,custom:{to:t=>ii.decode(QJ(t)),from:t=>ii.zpad(ii.encode(t),e)}});function VJ(e){const t=e.indexOf(":");return t!==-1?[e.slice(0,t),e.slice(t+1)]:[null,e]}const $J=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...gb}],E_=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...C_},{name:"signatures",binary:"array",lengthSize:1,layout:$J}],S_=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...ma()},{name:"emitterAddress",...wr},{name:"sequence",...wx},{name:"consistencyLevel",binary:"uint",size:1}],KJ=[...E_,...S_];function Y1(e){const t=mb.get(e);if(!t)throw new Error(`No layout registered for payload type ${e}`);return t}function XJ(e){return{name:"payload",binary:"bytes",...e==="Uint8Array"?{}:{layout:Y1(e)}}}function yb(e){const t=[...KJ,XJ(e.payloadLiteral)];return pc(t,e)}function ege(e,t){if(e==="Uint8Array")return t;const r=Y1(e);return pc(r,t)}function Cx(e,t){const r=(()=>{if(Array.isArray(e[0]))return e.flatMap(([o,u])=>u.map(d=>pb(o,d)));if(typeof e[1]=="string")return e;const[a,i]=e;return i.map(o=>pb(a,o))})(),n=SK(r.map(a=>Y1(a)));return a=>{typeof a=="string"&&(a=Xr.decode(a));const i=n(a);return Array.isArray(i)?i.map(o=>r[o]):i!==null?r[i]:null}}function Z1(e,t){typeof t=="string"&&(t=Xr.decode(t));const[r,n]=mc(E_,t,!1);for(let C=1;C<r.signatures.length;++C)if(r.signatures[C].guardianIndex<=r.signatures[C-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const a=n,[i,o]=mc(S_,t.subarray(a),!1),u=a+o,[d,h]=typeof e=="string"?[e,gE(e,t.subarray(u))]:gE(e,t.subarray(u)),[m,b]=VJ(d),v=np(t.slice(a));return{protocolName:m,payloadName:b,payloadLiteral:d,...r,...i,payload:h,hash:v}}function gE(e,t,r=0){return(()=>{if(typeof t=="string"&&(t=Xr.decode(t)),e==="Uint8Array")return t.slice(r);if(typeof e=="string")return mc(Y1(e),t.subarray(r));const n=e(t.slice(r));if(n===null)throw new Error(`Encoded data does not match any of the given payload types - ${t}`);return[n,mc(Y1(n),t.subarray(r))]})()}const JJ=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],yE=Kt(JJ,[0,[1,2]]),eee=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],bE=Kt(eee,[0,[1,2]]);function Q6(e,t){if(e!=="Devnet"){if(e==="Mainnet"){if(!yE.has(t))return;const r=yE.get(t);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:t,key:n}]))}if(e==="Testnet"){if(!bE.has(t))return;const r=bE.get(t);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:t,key:n}]))}throw new Error("Unsupported network: "+e)}}function tee(e,t){const r=Q6(e,t);return r?Yf.native(r):void 0}function tge(e,t,r){const n=Q6(e,t);return n?Yf.byAddress(n,r):void 0}function ree(e,t,r){const n=Q6(e,t);return n?Yf.byKey(n,r):void 0}function nee(e,t){const r={coreBridge:pX.get(e,t),tokenBridge:mX.get(e,t),nftBridge:yX.get(e,t),relayer:bX.get(e,t),tokenBridgeRelayer:gX.get(e,t),tbtc:Q4.get(e,t)};return ob.has(e,t)&&(r.cctp=ob.get(e,t)),ZA.has(e,t)&&(r.gateway=ZA.get(e,t)),GA.has(e,t)&&(r.translator=GA.get(e,t)),QA.has(e,t)&&(r.portico=QA.get(e,t)),Q4.has(e,t)&&(r.tbtc=Q4.get(e,t)),r}function pn(e){return typeof e=="string"&&e==="native"}function D_(e){return{chain:e,address:"native"}}function Ph(e){return typeof e=="object"&&e.address!==void 0&&e.chain!==void 0&&kh(e.chain)}function ks(e,t){return e.chain!==t.chain?!1:pn(e.address)&&pn(t.address)?!0:Qi(e)===Qi(t)}function Qi(e){return Ph(e)&&pn(e.address)?e.address:e.address.toNative(e.chain).toString()}function q4(e,t,r){let n;if(Ph(r)){if(!pn(r.address))return[!1,r];n=r.address}else n=r;if(pn(n)){const i=tee(e,t);if(!i)throw new Error("Invalid destination token");const o=i.wrappedKey,u=ree(e,t,o);if(!u)throw new Error("Invalid wrapped token key: "+o);return[!0,{chain:t,address:xa(t,u.address)}]}return[!1,{chain:t,address:n}]}function T_(e){return e.chain!==void 0&&e.txid!==void 0}function Um(e){return jz.map(r=>{const n=Hn(r);let a="";try{a=Fz.get(e,r)}catch{}const i=Q6(e,r),o=i?Object.values(i).find(d=>pn(d.address)&&d.wrappedKey):void 0,u=o?i[o.wrappedKey]:void 0;return{key:r,platform:n,network:e,chainId:H6(r),finalityThreshold:kz.get(r)??0,blockTime:zz.get(r)??0,contracts:nee(e,r),nativeTokenDecimals:$K(n),nativeChainId:a,tokenMap:i,wrappedNative:u,explorer:JK(e,r),rpc:rX(e,r)}}).reduce((r,n)=>({...r,[n.key]:n}),{})}function iee(e){return aee(e)||I_(e)}function aee(e){return typeof e=="object"&&"chain"in e&&typeof e.chain=="function"&&"address"in e&&typeof e.address=="function"&&"sign"in e&&typeof e.sign=="function"}function I_(e){return typeof e=="object"&&"chain"in e&&typeof e.chain=="function"&&"address"in e&&typeof e.address=="function"&&"signAndSend"in e&&typeof e.signAndSend=="function"}class rge{constructor(t,r,n){Ye(this,"_chain");Ye(this,"_address");Ye(this,"_signer");this._chain=t,this._address=r,this._signer=n}unwrap(){return this._signer}}function Pu(e){return e.sequence!==void 0&&e.emitter!==void 0&&e.chain!==void 0}function cp(e){return e.hash!==void 0}const ME=e=>[wl(1),{name:"token",binary:"bytes",layout:[{name:"address",...wr},{name:"amount",..._i}]},{name:"sourceDomain",...H1},{name:"targetDomain",...H1},{name:"nonce",...vx},{name:"caller",...wr},{name:"mintRecipient",...wr},sx({name:"payload",lengthSize:2},e)],see=[wl(1),{name:"targetRelayerFee",..._i},{name:"toNativeTokenAmount",..._i},{name:"targetRecipient",...wr}],oee=[["DepositWithPayload",ME()],["TransferWithRelay",ME(see)]];Mi("AutomaticCircleBridge",oee);const N_={binary:"uint",size:4,custom:0,omit:!0},cee=[{name:"messageBodyVersion",...N_},{name:"burnToken",...wr},{name:"mintRecipient",...wr},{name:"amount",..._i},{name:"messageSender",...wr}],bb=[{name:"version",...N_},{name:"sourceDomain",...H1},{name:"destinationDomain",...H1},{name:"nonce",...vx},{name:"sender",...wr},{name:"recipient",...wr},{name:"destinationCaller",...wr},{name:"payload",binary:"bytes",layout:cee}],lee=[["Message",bb]];Mi("CircleBridge",lee);var pf;(function(e){e.isCircleAttestation=t=>t.message!==void 0,e.deserialize=t=>{const r=mc(bb,t),n=Xr.encode(np(t),!0);return[r,n]},e.serialize=t=>pc(bb,t)})(pf||(pf={}));var xE;(function(e){const t="AutomaticCircleBridge",r=["DepositWithPayload","TransferWithRelay"];e.getTransferDiscriminator=ax(()=>Cx([t,r]))})(xE||(xE={}));function uee(e){return e.amount!==void 0&&e.from!==void 0&&e.to!==void 0}const vE={binary:"bytes",size:32,custom:{to:e=>K3(e.byteLength).map(t=>String.fromCharCode(e[t])).join(""),from:e=>new Uint8Array(e.split("").map(t=>t.charCodeAt(0)))}},L_=[{name:"token",binary:"bytes",layout:[{name:"amount",..._i},{name:"address",...wr},{name:"chain",...ma()}]},{name:"to",binary:"bytes",layout:[{name:"address",...wr},{name:"chain",...ma()}]}],j_=[wl(1),...L_,{name:"fee",..._i}],q6=e=>[wl(3),...L_,{name:"from",...wr},sx({name:"payload"},e)],fee=[["AttestMeta",[wl(2),{name:"token",binary:"bytes",layout:[{name:"address",...wr},{name:"chain",...ma()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...vE},{name:"name",...vE}]],["Transfer",j_],["TransferWithPayload",q6()]];Mi("TokenBridge",fee);const dee=NK(["shouldWrapNative","shouldUnwrapNative"]),Mb=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...dee}],xb=[{name:"flagSet",binary:"bytes",layout:Mb},{name:"finalTokenAddress",...wr},{name:"recipientAddress",...wr},{name:"cannonAssetAmount",..._i},{name:"minAmountFinish",..._i},{name:"relayerFee",..._i}],hee=[["Transfer",q6(xb)]];Mi("PorticoBridge",hee);var wE;(function(e){e.deserializePayload=t=>mc(xb,t),e.serializePayload=t=>pc(xb,t),e.deserializeFlagSet=t=>mc(Mb,t),e.serializeFlagSet=t=>pc(Mb,t)})(wE||(wE={}));const B_={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",..._i},{name:"targetChainRefundPerGasUnused",..._i}]},CE={binary:"bytes",layout:[{name:"chain",...ma()},{name:"address",...wr}]},pee=[{name:"chain",...ma()},{name:"emitterAddress",...wr},{name:"sequence",...wx}],mee=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...H1},{name:"nonce",...vx}],k_={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],pee],[[2,"CCTP"],mee]]},gee=e=>[wl(1),{name:"target",...CE},sx({name:"payload",lengthSize:4},e),{name:"requestedReceiverValue",..._i},{name:"extraReceiverValue",..._i},{name:"executionInfo",...B_},{name:"refund",...CE},{name:"refundDeliveryProvider",...wr},{name:"sourceDeliveryProvider",...wr},{name:"senderAddress",...wr},{name:"messageKeys",binary:"array",lengthSize:1,layout:k_}],yee=[["DeliveryInstruction",gee()],["RedeliveryInstruction",[wl(2),{name:"deliveryVaaKey",binary:"bytes",layout:k_},{name:"targetChain",...ma()},{name:"newRequestedReceiverValue",..._i},{name:"newEncodedExecutionInfo",...B_},{name:"newSourceDeliveryProvider",...wr},{name:"newSenderAddress",...wr}]]];Mi("Relayer",yee);const bee=[wl(1),{name:"targetRelayerFee",..._i},{name:"toNativeTokenAmount",..._i},{name:"targetRecipient",...wr}],Mee=[["TransferWithRelay",q6(bee)]];Mi("AutomaticTokenBridge",Mee);const nge=e=>new Error(`Token ${e} is not a wrapped asset`);var vb;(function(e){const t="TokenBridge",r=["Transfer","TransferWithPayload"],n=["AttestMeta"];[...r,...n],e.getTransferDiscriminator=ax(()=>Cx([t,r]))})(vb||(vb={}));function xee(e){return e.token!==void 0&&e.amount!==void 0&&e.from!==void 0&&e.to!==void 0}const vee=[["Add",1],["Subtract",2],["Unknown",3]],wb={binary:"bytes",size:20,custom:{to:e=>Xr.encode(e,!0),from:e=>Xr.decode(e)}},wee=[["UpgradeContract",[!1,[{name:"newContract",...wr}]]],["RegisterChain",[!0,[{name:"foreignChain",...ma()},{name:"foreignAddress",...wr}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...ma({allowedChains:Bz("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...C_},{name:"guardians",binary:"array",lengthSize:1,layout:wb}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",...wr}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",...wr}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...ma()},{name:"emitterAddress",...wr},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],Pm={binary:"bytes",size:32},AE=[{name:"contractAddr",...wr},{name:"codeId",binary:"uint",size:8}],Cee=[["StoreCode",[!1,[{name:"wasmHash",...Pm}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...Pm}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...Pm}]]],["AddWasmInstantiateAllowlist",[!1,AE]],["DeleteWasmInstantiateAllowlist",[!1,AE]]],Aee=(()=>{const e=a=>({binary:"bytes",size:a,custom:qJ}),t=[{name:"height",binary:"uint",size:8}],r=Ez(t),n=a=>[{name:"name",...e(a)},...t];return{binary:"bytes",custom:{to:a=>mc(n(a.length-r),a),from:a=>pc(n(a.name.length),a)}}})(),Eee=[["ScheduleUpgrade",[!1,Aee]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",...wr}]]]],See=[["ModifyBalance",[!1,[{name:"sequence",...wx},{name:"modifiedChain",...ma()},{name:"tokenChain",...ma()},{name:"tokenAddress",...wr},{name:"kind",...IK(vee)},{name:"amount",..._i},{name:"reason",...A_(32)}]]]],Dee=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...A_(64)},{name:"channelChain",...ma({allowedChains:Bz("Cosmwasm")})}]]]],Tee=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...wb},{name:"targetContract",...wb},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",...wr},{name:"payload",binary:"bytes"}]]]],z_=[...wee,...Cee,...Eee,...See,...Dee,...Tee];vz(z_,0);const EE=Object.fromEntries(z_),Iee=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],Nee=Kt(Iee),Lee=e=>({to:e,from:(()=>{const r=new Uint8Array(32),n=Nee(e);for(let a=1;a<=n.length;++a)r[32-a]=n.charCodeAt(n.length-a);return r})()}),jee=(e,t)=>({to:e,from:t}),Bee=(e,t,r)=>[{name:"protocol",binary:"bytes",custom:Lee(e)},{name:"action",binary:"uint",size:1,custom:jee(t,r)},{name:"chain",...ma({allowNull:EE[t][0]})},{name:"actionArgs",binary:"bytes",layout:EE[t][1]}],Pr=(e,t,r)=>[t,Bee(e,t,r)],kee=[Pr("WormholeCore","UpgradeContract",1),Pr("WormholeCore","GuardianSetUpgrade",2),Pr("WormholeCore","SetMessageFee",3),Pr("WormholeCore","TransferFees",4),Pr("WormholeCore","RecoverChainId",5)],zee=[Pr("TokenBridge","RegisterChain",1),Pr("TokenBridge","UpgradeContract",2),Pr("TokenBridge","RecoverChainId",3)],_ee=[Pr("NftBridge","RegisterChain",1),Pr("NftBridge","UpgradeContract",2),Pr("NftBridge","RecoverChainId",3)],Fee=[Pr("Relayer","RegisterChain",1),Pr("Relayer","UpgradeContract",2),Pr("Relayer","UpdateDefaultProvider",3)],Oee=[Pr("CircleBridge","UpdateFinality",1),Pr("CircleBridge","RegisterEmitterAndDomain",2),Pr("CircleBridge","UpgradeContract",3)],Ree=[Pr("IbcBridge","ActionUpdateChannelChain",1)],Uee=[Pr("IbcReceiver","ActionUpdateChannelChain",1)],Pee=[Pr("GlobalAccountant","ModifyBalance",1)],Wee=[Pr("GeneralPurposeGovernance","GeneralPurposeEvm",1),Pr("GeneralPurposeGovernance","GeneralPurposeSolana",2)],Hee=[Pr("WormchainGovernance","StoreCode",1),Pr("WormchainGovernance","InstantiateContract",2),Pr("WormchainGovernance","MigrateContract",3),Pr("WormchainGovernance","AddWasmInstantiateAllowlist",4),Pr("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],Yee=[Pr("GatewayGovernance","ScheduleUpgrade",1),Pr("GatewayGovernance","CancelUpgrade",2),Pr("GatewayGovernance","SetIbcComposabilityMwContract",3)];Mi("WormholeCore",kee);Mi("TokenBridge",zee);Mi("NftBridge",_ee);Mi("Relayer",Fee);Mi("CircleBridge",Oee);Mi("IbcBridge",Ree);Mi("IbcReceiver",Uee);Mi("GlobalAccountant",Pee);Mi("GeneralPurposeGovernance",Wee);Mi("WormchainGovernance",Hee);Mi("GatewayGovernance",Yee);var ts;(function(e){const t="TBTCBridge",r=["GatewayTransfer","Transfer"];[...r],e.getTransferDiscriminator=ax(()=>Cx([t,r])),e.getNativeTbtcToken=n=>{const a=xX.get("Mainnet",n);if(a)return{chain:n,address:xa(n,a)}}})(ts||(ts={}));const Zee=[{name:"recipient",...wr}],Gee=[["GatewayTransfer",q6(Zee)],["Transfer",j_]];Mi("TBTCBridge",Gee);function __(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qee}=Object.prototype,{getPrototypeOf:Ax}=Object,V6=(e=>t=>{const r=Qee.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Io=e=>(e=e.toLowerCase(),t=>V6(t)===e),$6=e=>t=>typeof t===e,{isArray:Qf}=Array,G1=$6("undefined");function qee(e){return e!==null&&!G1(e)&&e.constructor!==null&&!G1(e.constructor)&&ps(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F_=Io("ArrayBuffer");function Vee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F_(e.buffer),t}const $ee=$6("string"),ps=$6("function"),O_=$6("number"),K6=e=>e!==null&&typeof e=="object",Kee=e=>e===!0||e===!1,V4=e=>{if(V6(e)!=="object")return!1;const t=Ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xee=Io("Date"),Jee=Io("File"),ete=Io("Blob"),tte=Io("FileList"),rte=e=>K6(e)&&ps(e.pipe),nte=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ps(e.append)&&((t=V6(e))==="formdata"||t==="object"&&ps(e.toString)&&e.toString()==="[object FormData]"))},ite=Io("URLSearchParams"),ate=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wh(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Qf(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let u;for(n=0;n<o;n++)u=i[n],t.call(null,e[u],u,e)}}function R_(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const U_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Je.global,P_=e=>!G1(e)&&e!==U_;function Cb(){const{caseless:e}=P_(this)&&this||{},t={},r=(n,a)=>{const i=e&&R_(t,a)||a;V4(t[i])&&V4(n)?t[i]=Cb(t[i],n):V4(n)?t[i]=Cb({},n):Qf(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Wh(arguments[n],r);return t}const ste=(e,t,r,{allOwnKeys:n}={})=>(Wh(t,(a,i)=>{r&&ps(a)?e[i]=__(a,r):e[i]=a},{allOwnKeys:n}),e),ote=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cte=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lte=(e,t,r,n)=>{let a,i,o;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&Ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ute=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},fte=e=>{if(!e)return null;if(Qf(e))return e;let t=e.length;if(!O_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dte=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ax(Uint8Array)),hte=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},pte=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mte=Io("HTMLFormElement"),gte=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),SE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),yte=Io("RegExp"),W_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Wh(r,(a,i)=>{t(a,i,e)!==!1&&(n[i]=a)}),Object.defineProperties(e,n)},bte=e=>{W_(e,(t,r)=>{if(ps(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ps(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Mte=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Qf(e)?n(e):n(String(e).split(t)),r},xte=()=>{},vte=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Wm="abcdefghijklmnopqrstuvwxyz",DE="0123456789",H_={DIGIT:DE,ALPHA:Wm,ALPHA_DIGIT:Wm+Wm.toUpperCase()+DE},wte=(e=16,t=H_.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Cte(e){return!!(e&&ps(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ate=e=>{const t=new Array(10),r=(n,a)=>{if(K6(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Qf(n)?[]:{};return Wh(n,(o,u)=>{const d=r(o,a+1);!G1(d)&&(i[u]=d)}),t[a]=void 0,i}}return n};return r(e,0)},Ete=Io("AsyncFunction"),Ste=e=>e&&(K6(e)||ps(e))&&ps(e.then)&&ps(e.catch),$e={isArray:Qf,isArrayBuffer:F_,isBuffer:qee,isFormData:nte,isArrayBufferView:Vee,isString:$ee,isNumber:O_,isBoolean:Kee,isObject:K6,isPlainObject:V4,isUndefined:G1,isDate:Xee,isFile:Jee,isBlob:ete,isRegExp:yte,isFunction:ps,isStream:rte,isURLSearchParams:ite,isTypedArray:dte,isFileList:tte,forEach:Wh,merge:Cb,extend:ste,trim:ate,stripBOM:ote,inherits:cte,toFlatObject:lte,kindOf:V6,kindOfTest:Io,endsWith:ute,toArray:fte,forEachEntry:hte,matchAll:pte,isHTMLForm:mte,hasOwnProperty:SE,hasOwnProp:SE,reduceDescriptors:W_,freezeMethods:bte,toObjectSet:Mte,toCamelCase:gte,noop:xte,toFiniteNumber:vte,findKey:R_,global:U_,isContextDefined:P_,ALPHABET:H_,generateString:wte,isSpecCompliantForm:Cte,toJSONObject:Ate,isAsyncFn:Ete,isThenable:Ste};function Nr(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}$e.inherits(Nr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$e.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Y_=Nr.prototype,Z_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Z_[e]={value:e}});Object.defineProperties(Nr,Z_);Object.defineProperty(Y_,"isAxiosError",{value:!0});Nr.from=(e,t,r,n,a,i)=>{const o=Object.create(Y_);return $e.toFlatObject(e,o,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),Nr.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Dte=null;function Ab(e){return $e.isPlainObject(e)||$e.isArray(e)}function G_(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function TE(e,t,r){return e?e.concat(t).map(function(a,i){return a=G_(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function Tte(e){return $e.isArray(e)&&!e.some(Ab)}const Ite=$e.toFlatObject($e,{},null,function(t){return/^is[A-Z]/.test(t)});function X6(e,t,r){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$e.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,I){return!$e.isUndefined(I[T])});const n=r.metaTokens,a=r.visitor||m,i=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&$e.isSpecCompliantForm(t);if(!$e.isFunction(a))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if($e.isDate(E))return E.toISOString();if(!d&&$e.isBlob(E))throw new Nr("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(E)||$e.isTypedArray(E)?d&&typeof Blob=="function"?new Blob([E]):Je.Buffer.from(E):E}function m(E,T,I){let S=E;if(E&&!I&&typeof E=="object"){if($e.endsWith(T,"{}"))T=n?T:T.slice(0,-2),E=JSON.stringify(E);else if($e.isArray(E)&&Tte(E)||($e.isFileList(E)||$e.endsWith(T,"[]"))&&(S=$e.toArray(E)))return T=G_(T),S.forEach(function(L,N){!($e.isUndefined(L)||L===null)&&t.append(o===!0?TE([T],N,i):o===null?T:T+"[]",h(L))}),!1}return Ab(E)?!0:(t.append(TE(I,T,i),h(E)),!1)}const b=[],v=Object.assign(Ite,{defaultVisitor:m,convertValue:h,isVisitable:Ab});function C(E,T){if(!$e.isUndefined(E)){if(b.indexOf(E)!==-1)throw Error("Circular reference detected in "+T.join("."));b.push(E),$e.forEach(E,function(S,D){(!($e.isUndefined(S)||S===null)&&a.call(t,S,$e.isString(D)?D.trim():D,T,v))===!0&&C(S,T?T.concat(D):[D])}),b.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return C(e),t}function IE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ex(e,t){this._pairs=[],e&&X6(e,this,t)}const Q_=Ex.prototype;Q_.append=function(t,r){this._pairs.push([t,r])};Q_.toString=function(t){const r=t?function(n){return t.call(this,n,IE)}:IE;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Nte(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q_(e,t,r){if(!t)return e;const n=r&&r.encode||Nte,a=r&&r.serialize;let i;if(a?i=a(t,r):i=$e.isURLSearchParams(t)?t.toString():new Ex(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class NE{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$e.forEach(this.handlers,function(n){n!==null&&t(n)})}}const V_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lte=typeof URLSearchParams<"u"?URLSearchParams:Ex,jte=typeof FormData<"u"?FormData:null,Bte=typeof Blob<"u"?Blob:null,kte=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zte=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ho={classes:{URLSearchParams:Lte,FormData:jte,Blob:Bte},isStandardBrowserEnv:kte,isStandardBrowserWebWorkerEnv:zte,protocols:["http","https","file","blob","url","data"]};function _te(e,t){return X6(e,new ho.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return ho.isNode&&$e.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fte(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ote(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function $_(e){function t(r,n,a,i){let o=r[i++];const u=Number.isFinite(+o),d=i>=r.length;return o=!o&&$e.isArray(a)?a.length:o,d?($e.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!u):((!a[o]||!$e.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&$e.isArray(a[o])&&(a[o]=Ote(a[o])),!u)}if($e.isFormData(e)&&$e.isFunction(e.entries)){const r={};return $e.forEachEntry(e,(n,a)=>{t(Fte(n),a,r,0)}),r}return null}const Rte={"Content-Type":void 0};function Ute(e,t,r){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const qf={transitional:V_,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=$e.isObject(t);if(i&&$e.isHTMLForm(t)&&(t=new FormData(t)),$e.isFormData(t))return a&&a?JSON.stringify($_(t)):t;if($e.isArrayBuffer(t)||$e.isBuffer(t)||$e.isStream(t)||$e.isFile(t)||$e.isBlob(t))return t;if($e.isArrayBufferView(t))return t.buffer;if($e.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _te(t,this.formSerializer).toString();if((u=$e.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return X6(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Ute(t)):t}],transformResponse:[function(t){const r=this.transitional||qf.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&$e.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?Nr.from(u,Nr.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ho.classes.FormData,Blob:ho.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$e.forEach(["delete","get","head"],function(t){qf.headers[t]={}});$e.forEach(["post","put","patch"],function(t){qf.headers[t]=$e.merge(Rte)});const Pte=$e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wte=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
103
103
|
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Pte[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},LE=Symbol("internals");function bd(e){return e&&String(e).trim().toLowerCase()}function $4(e){return e===!1||e==null?e:$e.isArray(e)?e.map($4):String(e)}function Hte(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Yte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hm(e,t,r,n,a){if($e.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!$e.isString(t)){if($e.isString(n))return t.indexOf(n)!==-1;if($e.isRegExp(n))return n.test(t)}}function Zte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gte(e,t){const r=$e.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}let ms=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(u,d,h){const m=bd(d);if(!m)throw new Error("header name must be a non-empty string");const b=$e.findKey(a,m);(!b||a[b]===void 0||h===!0||h===void 0&&a[b]!==!1)&&(a[b||d]=$4(u))}const o=(u,d)=>$e.forEach(u,(h,m)=>i(h,m,d));return $e.isPlainObject(t)||t instanceof this.constructor?o(t,r):$e.isString(t)&&(t=t.trim())&&!Yte(t)?o(Wte(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=bd(t),t){const n=$e.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Hte(a);if($e.isFunction(r))return r.call(this,a,n);if($e.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=bd(t),t){const n=$e.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hm(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=bd(o),o){const u=$e.findKey(n,o);u&&(!r||Hm(n,n[u],u,r))&&(delete n[u],a=!0)}}return $e.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||Hm(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return $e.forEach(this,(a,i)=>{const o=$e.findKey(n,i);if(o){r[o]=$4(a),delete r[i];return}const u=t?Zte(i):String(i).trim();u!==i&&delete r[i],r[u]=$4(a),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $e.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&$e.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
104
104
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[LE]=this[LE]={accessors:{}}).accessors,a=this.prototype;function i(o){const u=bd(o);n[u]||(Gte(a,o),n[u]=!0)}return $e.isArray(t)?t.forEach(i):i(t),this}};ms.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$e.freezeMethods(ms.prototype);$e.freezeMethods(ms);function Ym(e,t){const r=this||qf,n=t||r,a=ms.from(n.headers);let i=n.data;return $e.forEach(e,function(u){i=u.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function K_(e){return!!(e&&e.__CANCEL__)}function Hh(e,t,r){Nr.call(this,e??"canceled",Nr.ERR_CANCELED,t,r),this.name="CanceledError"}$e.inherits(Hh,Nr,{__CANCEL__:!0});function Qte(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Nr("Request failed with status code "+r.status,[Nr.ERR_BAD_REQUEST,Nr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const qte=ho.isStandardBrowserEnv?function(){return{write:function(r,n,a,i,o,u){const d=[];d.push(r+"="+encodeURIComponent(n)),$e.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),$e.isString(i)&&d.push("path="+i),$e.isString(o)&&d.push("domain="+o),u===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Vte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $te(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function X_(e,t){return e&&!Vte(t)?$te(e,t):t}const Kte=ho.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const u=$e.isString(o)?a(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Xte(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jte(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),m=n[i];o||(o=h),r[a]=d,n[a]=h;let b=i,v=0;for(;b!==a;)v+=r[b++],b=b%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),h-o<t)return;const C=m&&h-m;return C?Math.round(v*1e3/C):void 0}}function jE(e,t){let r=0;const n=Jte(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,d=n(u),h=i<=o;r=i;const m={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:d||void 0,estimated:d&&o&&h?(o-i)/d:void 0,event:a};m[t?"download":"upload"]=!0,e(m)}}const ere=typeof XMLHttpRequest<"u",tre=ere&&function(e){return new Promise(function(r,n){let a=e.data;const i=ms.from(e.headers).normalize(),o=e.responseType;let u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}$e.isFormData(a)&&(ho.isStandardBrowserEnv||ho.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let h=new XMLHttpRequest;if(e.auth){const C=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(C+":"+E))}const m=X_(e.baseURL,e.url);h.open(e.method.toUpperCase(),q_(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function b(){if(!h)return;const C=ms.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:C,config:e,request:h};Qte(function(S){r(S),d()},function(S){n(S),d()},T),h=null}if("onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(n(new Nr("Request aborted",Nr.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Nr("Network Error",Nr.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const T=e.transitional||V_;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),n(new Nr(E,T.clarifyTimeoutError?Nr.ETIMEDOUT:Nr.ECONNABORTED,e,h)),h=null},ho.isStandardBrowserEnv){const C=(e.withCredentials||Kte(m))&&e.xsrfCookieName&&qte.read(e.xsrfCookieName);C&&i.set(e.xsrfHeaderName,C)}a===void 0&&i.setContentType(null),"setRequestHeader"in h&&$e.forEach(i.toJSON(),function(E,T){h.setRequestHeader(T,E)}),$e.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),o&&o!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",jE(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",jE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=C=>{h&&(n(!C||C.type?new Hh(null,e,h):C),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const v=Xte(m);if(v&&ho.protocols.indexOf(v)===-1){n(new Nr("Unsupported protocol "+v+":",Nr.ERR_BAD_REQUEST,e));return}h.send(a||null)})},K4={http:Dte,xhr:tre};$e.forEach(K4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rre={getAdapter:e=>{e=$e.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let a=0;a<t&&(r=e[a],!(n=$e.isString(r)?K4[r.toLowerCase()]:r));a++);if(!n)throw n===!1?new Nr(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error($e.hasOwnProp(K4,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!$e.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:K4};function Zm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hh(null,e)}function BE(e){return Zm(e),e.headers=ms.from(e.headers),e.data=Ym.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rre.getAdapter(e.adapter||qf.adapter)(e).then(function(n){return Zm(e),n.data=Ym.call(e,e.transformResponse,n),n.headers=ms.from(n.headers),n},function(n){return K_(n)||(Zm(e),n&&n.response&&(n.response.data=Ym.call(e,e.transformResponse,n.response),n.response.headers=ms.from(n.response.headers))),Promise.reject(n)})}const kE=e=>e instanceof ms?e.toJSON():e;function mf(e,t){t=t||{};const r={};function n(h,m,b){return $e.isPlainObject(h)&&$e.isPlainObject(m)?$e.merge.call({caseless:b},h,m):$e.isPlainObject(m)?$e.merge({},m):$e.isArray(m)?m.slice():m}function a(h,m,b){if($e.isUndefined(m)){if(!$e.isUndefined(h))return n(void 0,h,b)}else return n(h,m,b)}function i(h,m){if(!$e.isUndefined(m))return n(void 0,m)}function o(h,m){if($e.isUndefined(m)){if(!$e.isUndefined(h))return n(void 0,h)}else return n(void 0,m)}function u(h,m,b){if(b in t)return n(h,m);if(b in e)return n(void 0,h)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(h,m)=>a(kE(h),kE(m),!0)};return $e.forEach(Object.keys(Object.assign({},e,t)),function(m){const b=d[m]||a,v=b(e[m],t[m],m);$e.isUndefined(v)&&b!==u||(r[m]=v)}),r}const J_="1.4.0",Sx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const zE={};Sx.transitional=function(t,r,n){function a(i,o){return"[Axios v"+J_+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,u)=>{if(t===!1)throw new Nr(a(o," has been removed"+(r?" in "+r:"")),Nr.ERR_DEPRECATED);return r&&!zE[o]&&(zE[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,u):!0}};function nre(e,t,r){if(typeof e!="object")throw new Nr("options must be an object",Nr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const u=e[i],d=u===void 0||o(u,i,e);if(d!==!0)throw new Nr("option "+i+" must be "+d,Nr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Nr("Unknown option "+i,Nr.ERR_BAD_OPTION)}}const Eb={assertOptions:nre,validators:Sx},Nc=Eb.validators;let M0=class{constructor(t){this.defaults=t,this.interceptors={request:new NE,response:new NE}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mf(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Eb.assertOptions(n,{silentJSONParsing:Nc.transitional(Nc.boolean),forcedJSONParsing:Nc.transitional(Nc.boolean),clarifyTimeoutError:Nc.transitional(Nc.boolean)},!1),a!=null&&($e.isFunction(a)?r.paramsSerializer={serialize:a}:Eb.assertOptions(a,{encode:Nc.function,serialize:Nc.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o;o=i&&$e.merge(i.common,i[r.method]),o&&$e.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),r.headers=ms.concat(o,i);const u=[];let d=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(r)===!1||(d=d&&T.synchronous,u.unshift(T.fulfilled,T.rejected))});const h=[];this.interceptors.response.forEach(function(T){h.push(T.fulfilled,T.rejected)});let m,b=0,v;if(!d){const E=[BE.bind(this),void 0];for(E.unshift.apply(E,u),E.push.apply(E,h),v=E.length,m=Promise.resolve(r);b<v;)m=m.then(E[b++],E[b++]);return m}v=u.length;let C=r;for(b=0;b<v;){const E=u[b++],T=u[b++];try{C=E(C)}catch(I){T.call(this,I);break}}try{m=BE.call(this,C)}catch(E){return Promise.reject(E)}for(b=0,v=h.length;b<v;)m=m.then(h[b++],h[b++]);return m}getUri(t){t=mf(this.defaults,t);const r=X_(t.baseURL,t.url);return q_(r,t.params,t.paramsSerializer)}};$e.forEach(["delete","get","head","options"],function(t){M0.prototype[t]=function(r,n){return this.request(mf(n||{},{method:t,url:r,data:(n||{}).data}))}});$e.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,u){return this.request(mf(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}M0.prototype[t]=r(),M0.prototype[t+"Form"]=r(!0)});let ire=class eF{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(u=>{n.subscribe(u),i=u}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,u){n.reason||(n.reason=new Hh(i,o,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new eF(function(a){t=a}),cancel:t}}};function are(e){return function(r){return e.apply(null,r)}}function sre(e){return $e.isObject(e)&&e.isAxiosError===!0}const Sb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sb).forEach(([e,t])=>{Sb[t]=e});function tF(e){const t=new M0(e),r=__(M0.prototype.request,t);return $e.extend(r,M0.prototype,t,{allOwnKeys:!0}),$e.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return tF(mf(e,a))},r}const kr=tF(qf);kr.Axios=M0;kr.CanceledError=Hh;kr.CancelToken=ire;kr.isCancel=K_;kr.VERSION=J_;kr.toFormData=X6;kr.AxiosError=Nr;kr.Cancel=kr.CanceledError;kr.all=function(t){return Promise.all(t)};kr.spread=are;kr.isAxiosError=sre;kr.mergeConfig=mf;kr.AxiosHeaders=ms;kr.formToJSON=e=>$_($e.isHTMLForm(e)?new FormData(e):e);kr.HttpStatusCode=Sb;kr.default=kr;const{Axios:sge,AxiosError:oge,CanceledError:cge,isCancel:lge,CancelToken:uge,VERSION:fge,all:dge,Cancel:hge,isAxiosError:pge,spread:mge,toFormData:gge,AxiosHeaders:yge,HttpStatusCode:bge,formToJSON:Mge,mergeConfig:xge}=kr,qo=60*1e3,rF={Mainnet:{api:"https://api.wormholescan.io",circleAPI:WA("Mainnet"),chains:Um("Mainnet")},Testnet:{api:"https://api.testnet.wormholescan.io",circleAPI:WA("Testnet"),chains:Um("Testnet")},Devnet:{api:"http://guardian:7071",circleAPI:"",chains:Um("Devnet")}};function ore(e,t){return Object.fromEntries(Object.entries(rF[e].chains).filter(([r,n])=>n.platform==t))}function cre(e,t){let r=rF[e];return t?Dx(r,t):r}function vge(e,t,r){const n=ore(e,t);return r?Dx(n,r):n}function Dx(e,t){e||(e={});for(const[r,n]of Object.entries(t))typeof n=="object"&&!Array.isArray(n)?e[r]=Dx(e[r],n):e[r]=n;return e}async function Vf(e,t,r=qo,n){const a=Math.floor(r/t);let i=0;return new Promise((o,u)=>{e().then(d=>{if(d!==null){o(d);return}let h=setInterval(async()=>{if(i>=a){clearInterval(h),o(null);return}const m=await e();m!==null?(clearInterval(h),o(m)):n&&console.log(`Retrying ${n}, attempt ${i}/${a} `),i++},t)})})}const lre=2e3;var _E;(function(e){e.complete="complete",e.pending_confirmations="pending_confirmations"})(_E||(_E={}));const ure=e=>({message:e.attestation,status:e.status});async function fre(e,t){var n;const r=`${e}/${t}`;try{const a=await kr.get(r),i=ure(a==null?void 0:a.data);return i.message==="PENDING"?null:i.message}catch(a){if(!a||typeof a=="object"&&(kr.isAxiosError(a)&&((n=a.response)==null?void 0:n.status)===404||"status"in a&&a.status===404))return null;throw a}}async function dre(e,t,r){return Vf(()=>fre(e,t),lre,r,"Circle:GetAttestation")}async function Mo(e,t,r){if(!iee(r))throw new Error("Invalid signer, not SignAndSendSigner or SignOnlySigner");return(await hre(t,async i=>I_(r)?r.signAndSend(i):e.sendWait(await r.sign(i)))).map(i=>({chain:e.chain,txid:i}))}async function hre(e,t){const r=[];let n=[];for await(const a of e)a.parallelizable?n.push(a):(n.length>0&&(r.push(...await t(n)),n=[]),r.push(...await t([a])));return n.length>0&&r.push(...await t(n)),r}var Lt;(function(e){e[e.Failed=-1]="Failed",e[e.Created=0]="Created",e[e.SourceInitiated=1]="SourceInitiated",e[e.SourceFinalized=2]="SourceFinalized",e[e.InReview=3]="InReview",e[e.Attested=4]="Attested",e[e.Refunded=5]="Refunded",e[e.DestinationInitiated=6]="DestinationInitiated",e[e.DestinationQueued=7]="DestinationQueued",e[e.DestinationFinalized=8]="DestinationFinalized"})(Lt||(Lt={}));function J6(e){return e.state===Lt.SourceInitiated}function gf(e){return e.state===Lt.SourceFinalized}function FE(e){return e.state===Lt.InReview}function Us(e){return e.state===Lt.Attested}function pre(e){return e.state===Lt.Refunded}function nF(e){return e.state===Lt.DestinationInitiated}function Gm(e){return e.state===Lt.DestinationQueued}function Db(e){return e.state===Lt.DestinationFinalized}function Qm(e){return e.state<0}class Vr{constructor(t,r,n,a){Ye(this,"wh");Ye(this,"fromChain");Ye(this,"toChain");Ye(this,"_state");Ye(this,"transfer");Ye(this,"txids",[]);Ye(this,"attestations");this._state=Lt.Created,this.wh=t,this.transfer=r,this.fromChain=n??t.getChain(r.from.chain),this.toChain=a??t.getChain(r.to.chain)}getTransferState(){return this._state}static async from(t,r,n=qo,a,i){if(uee(r))return r={...r,...await Vr.destinationOverrides(t.getChain(r.from.chain),t.getChain(r.to.chain),r)},new Vr(t,r,a,i);let o;if(Pu(r))o=await Vr.fromWormholeMessageId(t,r,n);else if(T_(r))o=await Vr.fromTransaction(t,r,n,a);else if(cp(r))o=await Vr.fromCircleMessage(t,r);else throw new Error("Invalid `from` parameter for CircleTransfer");return o.fromChain=a??t.getChain(o.transfer.from.chain),o.toChain=i??t.getChain(o.transfer.to.chain),await o.fetchAttestation(n),o}static async fromWormholeMessageId(t,r,n){const{chain:a,emitter:i}=r,o=await Vr.getTransferVaa(t,r),u=o.payload.mintRecipient,d=Nm(t.network,o.payload.targetDomain),{wormholeRelayer:h}=t.config.chains[d].contracts.cctp;let m=!1;if(h){const C=ar.chainAddress(a,h).address.toUniversalAddress();m=o.payloadName==="TransferWithRelay"&&u.equals(C)}const b={from:{chain:r.chain,address:o.payload.caller},to:{chain:d,address:u},amount:o.payload.token.amount,automatic:m},v=new Vr(t,b);return v.attestations=[{id:{emitter:i,sequence:o.sequence,chain:a},attestation:o}],v._state=Lt.Attested,v}static async fromCircleMessage(t,r){const[n,a]=pf.deserialize(Xr.decode(r)),{payload:i}=n,o=i.messageSender,u=i.mintRecipient,d=Nm(t.network,n.sourceDomain),h=Nm(t.network,n.destinationDomain),m={from:{chain:d,address:o},to:{chain:h,address:u},amount:i.amount,automatic:!1},b=new Vr(t,m);return b.attestations=[{id:{hash:a},attestation:{message:n}}],b._state=Lt.SourceInitiated,b}static async fromTransaction(t,r,n,a){const{chain:i,txid:o}=r;a=a??t.getChain(i);let u=[];try{u=await a.parseTransaction(o)}catch(h){if(!(h.message.includes("no bridge messages found")||h.message.includes("not found")))throw h}let d;if(u.length>0)d=await Vr.fromWormholeMessageId(t,u[0],n);else{const m=await(await a.getCircleBridge()).parseTransactionDetails(o),b={...m,automatic:!1};d=new Vr(t,b),d.attestations=[{id:m.id,attestation:{message:m.message}}]}return d._state=Lt.SourceInitiated,d.txids=[r],d}async initiateTransfer(t){if(this._state!==Lt.Created)throw new Error("Invalid state transition in `start`");return this.txids=await Vr.transfer(this.fromChain,this.transfer,t),this._state=Lt.SourceInitiated,this.txids.map(({txid:r})=>r)}async _fetchWormholeAttestation(t){let r=this.attestations??[];if(!r||r.length==0)throw new Error("No VAA details available");for(const n in r)r[n].attestation||(r[n].attestation=await Vr.getTransferVaa(this.wh,r[n].id,t));return this.attestations=r,r.map(n=>n.id)}async _fetchCircleAttestation(t){var n,a;let r=this.attestations??[];if(!r||r.length==0){if(this.txids.length===0)throw new Error("No circle attestations or transactions to fetch");const i=this.txids[((n=this.txids)==null?void 0:n.length)-1],d=await(await this.wh.getChain(this.transfer.from.chain).getCircleBridge()).parseTransactionDetails(i.txid);r=[{id:d.id,attestation:{message:d.message}}]}for(const i in r){const o=r[i];if((a=o.attestation)!=null&&a.attestation)continue;const u=await this.wh.getCircleAttestation(o.id.hash,t);if(u===null)throw new Error("No attestation available after timeout exhausted");r[i].attestation.attestation=u}return this.attestations=r,r.map(i=>i.id)}async fetchAttestation(t){if(this._state<Lt.SourceInitiated)throw new Error("Invalid state transition in `fetchAttestation`");const r=this.transfer.automatic?(await Promise.all([this._fetchWormholeAttestation(t),this._fetchCircleAttestation(t)])).flat():await this._fetchCircleAttestation(t);if(this._state=Lt.Attested,this.attestations&&this.attestations.length>0)for(const n of this.attestations){const{attestation:a}=n;if(!pf.isCircleAttestation(a))continue;await Vr.isTransferComplete(this.toChain,a)&&(this._state=Lt.DestinationFinalized)}return r}async completeTransfer(t){var b;if(this._state<Lt.Attested)throw new Error("Invalid state transition in `finish`");if(this.transfer.automatic)throw this.attestations?this.attestations.find(C=>Pu(C.id))?new Error("No method to redeem auto circle bridge tx (yet)"):new Error("No VAA found"):new Error("No VAA details available");if(!this.attestations)throw new Error("No Circle Attestations found");const r=this.attestations.filter(v=>cp(v.id));if(r.length>1)throw new Error(`Expected a single circle attestation, found ${r.length}`);const{id:n,attestation:a}=r[0];if(!a)throw new Error(`No Circle Attestation for ${n.hash}`);const{message:i,attestation:o}=a;if(!o)throw new Error(`No Circle Attestation for ${n.hash}`);const u=await this.toChain.getCircleBridge(),d=ar.parseAddress(t.chain(),t.address()),h=u.redeem(d,i,o),m=await Mo(this.toChain,h,t);return(b=this.txids)==null||b.push(...m),m.map(({txid:v})=>v)}}(function(e){async function t(h,m,b){let v;return m.automatic?v=(await h.getAutomaticCircleBridge()).transfer(m.from.address,{chain:m.to.chain,address:m.to.address},m.amount,m.nativeGas):v=(await h.getCircleBridge()).transfer(m.from.address,{chain:m.to.chain,address:m.to.address},m.amount),await Mo(h,v,b)}e.transfer=t;async function*r(h,m,b=qo,v,C){var I,S;const E=Date.now(),T=(D,L)=>Math.max(L-(Date.now()-D),0);if(v=v??h.getChain(m.from),C=C??h.getChain(m.to),J6(m)){if(m.originTxs.length===0)throw"Invalid state transition: no originating transactions";const D=m.originTxs[m.originTxs.length-1],L=await e.getTransferMessage(v,D.txid);m={...m,attestation:{id:L.id,attestation:{message:L.message}},state:Lt.SourceFinalized},yield m}if(gf(m)){if(!m.attestation)throw"Invalid state transition: no attestation id";if(Pu(m.attestation.id)){let D=m.attestation.attestation?m.attestation.attestation:void 0;D||(D=await e.getTransferVaa(h,m.attestation.id,T(E,b)),m={...m,attestation:{id:m.attestation.id,attestation:D},state:Lt.Attested},yield m)}else if(cp(m.attestation.id)){const D=await h.getCircleAttestation(m.attestation.id.hash,b),L=m.originTxs[m.originTxs.length-1],_=await(await v.getCircleBridge()).parseTransactionDetails(L.txid);D&&(m={...m,attestation:{id:m.attestation.id,attestation:{attestation:D,message:_.message}},state:Lt.Attested},yield m)}}if(Us(m)||gf(m)){if(!m.attestation)throw"Invalid state transition";if(Pu(m.attestation.id)){const D=await h.getTransactionStatus(m.attestation.id,T(E,b));if(D&&((S=(I=D.globalTx)==null?void 0:I.destinationTx)!=null&&S.txHash)){const{chainId:L,txHash:N}=D.globalTx.destinationTx;m={...m,destinationTxs:[{chain:zh(L),txid:N}],state:Lt.DestinationInitiated},yield m}}}(Us(m)||nF(m))&&(await e.isTransferComplete(C,m.attestation.attestation)&&(m={...m,state:Lt.DestinationFinalized,destinationTxs:[]}),yield m)}e.track=r;async function n(h,m,b){const v={...b};if(b.to.chain==="Solana"&&!v.automatic){const C=ar.parseAddress("Solana",ki.get(m.network,m.chain));v.to=await m.getTokenAccount(v.to.address,C)}return v}e.destinationOverrides=n;async function a(h,m,b){if(!P1(m.network,m.chain))throw new Error(`Invalid destination chain ${m.chain} for Circle transfer`);const v=ki.get(m.network,m.chain);if(!v)throw"Invalid transfer, no USDC contract on destination";if(!P1(h.network,h.chain))throw new Error(`Invalid source chain ${h.chain} for Circle transfer`);const C=ki.get(h.network,h.chain);if(!C)throw"Invalid transfer, no USDC contract on source";const E=ar.chainAddress(m.chain,v),T=ar.chainAddress(h.chain,C),I=(h.chain==="Polygon"?2e3*200:Y6(h.chain))+hx,S=b.automatic?lf(0,5,0):lf(24,0,0);if(!b.automatic)return{sourceToken:{token:T,amount:b.amount},destinationToken:{token:E,amount:b.amount},eta:I,expires:S};let D=b.amount;const L=b.nativeGas?b.nativeGas:0n;D-=L;const _=await(await h.getAutomaticCircleBridge()).getRelayerFee(m.chain);D-=_;let O=0n;return b.nativeGas&&(O=await(await m.getAutomaticCircleBridge()).nativeTokenAmount(L)),{sourceToken:{token:T,amount:b.amount},destinationToken:{token:E,amount:D},relayFee:{token:T,amount:_},destinationNativeGas:O,eta:I,expires:S}}e.quoteTransfer=a;async function i(h,m){if(!pf.isCircleAttestation(m))throw new Error("Must check for completion with circle message");return await(await h.getCircleBridge()).isTransferCompleted(m.message)}e.isTransferComplete=i;async function o(h,m,b){const v=await h.getVaa(m,"AutomaticCircleBridge:TransferWithRelay",b);if(!v)throw new Error("No VAA available after timeout exhausted");return v}e.getTransferVaa=o;async function u(h,m){return await(await h.getCircleBridge()).parseTransactionDetails(m)}e.getTransferMessage=u;function d(h){var D,L;const{from:m,to:b}=h.transfer;let v={from:m.chain,to:b.chain,state:Lt.Created};const C=h.txids.filter(N=>N.chain===h.transfer.from.chain);C.length>0&&(v={...v,state:Lt.SourceInitiated,originTxs:C});const E=((D=h.attestations)==null?void 0:D.filter(N=>Pu(N.id)))??[],T=((L=h.attestations)==null?void 0:L.filter(N=>cp(N.id)))??[],I=T.length>0?T[0]:E.length>0?E[0]:void 0;I&&I.id&&(v={...v,state:Lt.SourceFinalized,attestation:I},I.attestation&&(v={...v,state:Lt.Attested,attestation:{id:I.id,attestation:I.attestation}}));const S=h.txids.filter(N=>N.chain===h.transfer.to.chain);return S.length>0&&(v={...v,state:Lt.DestinationInitiated,destinationTxs:S}),v}e.getReceipt=d})(Vr||(Vr={}));const e5=2e3;async function iF(e,t){var d;const{chain:r,emitter:n,sequence:a}=t,i=H6(r),o=Lz("0x",n.toString()),u=`${e}/v1/signed_vaa/${i}/${o}/${a}`;try{const{data:{vaaBytes:h}}=await kr.get(u);return P6.decode(h)}catch(h){if(!h||typeof h=="object"&&(kr.isAxiosError(h)&&((d=h.response)==null?void 0:d.status)===404||"status"in h&&h.status===404))return null;throw h}}async function mre(e,t,r){return await Vf(()=>iF(e,t),e5,r,"Wormholescan:GetVaaBytes")}async function gre(e,t,r){const n=await iF(e,t);return n?Z1(r,n):null}async function yre(e,t,r,n){return await Vf(()=>gre(e,t,r),e5,n,"Wormholescan:GetVaaBytes")}async function bre(e,t){var d;const{chain:r,emitter:n,sequence:a}=t,i=H6(r),o=n.toUniversalAddress().toString(),u=`${e}/api/v1/transactions/${i}/${o}/${a}`;try{return(await kr.get(u)).data}catch(h){if(!h||typeof h=="object"&&(kr.isAxiosError(h)&&((d=h.response)==null?void 0:d.status)===404||"status"in h&&h.status===404))return null;throw h}}async function Mre(e,t,r){return await Vf(()=>bre(e,t),e5,r,"Wormholescan:GetTransactionStatus")}async function xre(e,t){var n;const r=`${e}/api/v1/vaas?txHash=${t}`;try{const a=await kr.get(r);if(a.data.data.length>0)return a.data.data[0]}catch(a){if(!a||typeof a=="object"&&(kr.isAxiosError(a)&&((n=a.response)==null?void 0:n.status)===404||"status"in a&&a.status===404))return null;throw a}return null}async function OE(e,t,r,n){const i=await Vf(()=>xre(e,t),e5,n,"Wormholescan:GetVaaByTxHash");return i?Z1(r,P6.decode(i.vaa)):null}async function vre(e,t,r=50,n=0){var i;const a=`${e}/api/v1/transactions?address=${t}&pageSize=${r}&page=${n}`;try{const o=await kr.get(a);if(o.data.transactions.length>0)return o.data.transactions}catch(o){if(!o||typeof o=="object"&&(kr.isAxiosError(o)&&((i=o.response)==null?void 0:i.status)===404||"status"in o&&o.status===404))return null;throw o}return null}async function wre(e){const t=`${e}/v1/governor/token_list`;try{const r=await kr.get(t);if(r.data&&r.data.entries.length>0)return r.data.entries.reduce((n,a)=>{const i=zh(a.originChainId);return n[i]=n[i]||{},n[i][a.originAddress]=a.price,n},{})}catch{}return null}async function Cre(e){const t=`${e}/v1/governor/available_notional_by_chain`;try{const r=await kr.get(t);if(r.data&&r.data.entries.length>0)return r.data.entries.reduce((n,a)=>{const i=a.bigTransactionSize==="0"?void 0:bo(g0(a.bigTransactionSize,2));return n[zh(a.chainId)]={available:bo(g0(a.remainingAvailableNotional,2)),limit:bo(g0(a.notionalLimit,2)),maxSize:i},n},{})}catch{}return null}async function Are(e,t){const{chain:r,emitter:n,sequence:a}=t,i=H6(r),o=n.toUniversalAddress().toString(),u=`${e}/v1/governor/is_vaa_enqueued/${i}/${o}/${a}`;return(await kr.get(u)).data.isEnqueued}class Er{constructor(t,r,n,a){Ye(this,"wh");Ye(this,"fromChain");Ye(this,"toChain");Ye(this,"_state");Ye(this,"transfer");Ye(this,"txids",[]);Ye(this,"attestations");this._state=Lt.Created,this.wh=t,this.transfer=r,this.fromChain=n??t.getChain(r.from.chain),this.toChain=a??t.getChain(r.to.chain)}getTransferState(){return this._state}static async from(t,r,n=6e3,a,i){if(xee(r))return a=a??t.getChain(r.from.chain),i=i??t.getChain(r.to.chain),Er.validateTransferDetails(t,r,a,i),r={...r,...await Er.destinationOverrides(a,i,r)},new Er(t,r,a,i);let o;if(Pu(r))o=await Er.fromIdentifier(t,r,n);else if(T_(r))o=await Er.fromTransaction(t,r,n,a);else throw new Error("Invalid `from` parameter for TokenTransfer");return o.fromChain=a??t.getChain(o.transfer.from.chain),o.toChain=i??t.getChain(o.transfer.to.chain),await o.fetchAttestation(n),o}static async fromIdentifier(t,r,n){const a=await Er.getTransferVaa(t,r,n);if(!a)throw new Error("VAA not found");const i=a.protocolName==="AutomaticTokenBridge";let o={chain:a.emitterChain,address:a.emitterAddress},{token:u,to:d}=a.payload,h;if(u.chain===o.chain)h=await t.getTokenNativeAddress(o.chain,u.chain,u.address);else{const S=await(await(await t.getChain(o.chain)).getTokenBridge()).getWrappedAsset(u);h=xa(o.chain,S.toString())}const m=await t.getDecimals(o.chain,h),b=nl(Yr(u.amount,Math.min(m,Er.MAX_DECIMALS)),m);let v=0n;i&&(v=a.payload.payload.toNativeTokenAmount,o={chain:a.emitterChain,address:a.payload.from},d={chain:a.payload.to.chain,address:a.payload.payload.targetRecipient});const C={token:u,amount:er(b),from:o,to:d,automatic:i,nativeGas:v},E=new Er(t,C);return E.attestations=[{id:r,attestation:a}],E._state=Lt.Attested,E}static async fromTransaction(t,r,n,a){a=a??t.getChain(r.chain);const i=await Er.getTransferMessage(a,r.txid,n),o=await Er.fromIdentifier(t,i,n);return o.txids=[r],o}async initiateTransfer(t){if(this._state!==Lt.Created)throw new Error("Invalid state transition in `initiateTransfer`");return this.txids=await Er.transfer(this.fromChain,this.transfer,t),this._state=Lt.SourceInitiated,this.txids.map(({txid:r})=>r)}async fetchAttestation(t){if(this._state<Lt.SourceInitiated||this._state>Lt.Attested)throw new Error("Invalid state transition in `fetchAttestation`, expected at least `SourceInitiated`");if(!this.attestations||this.attestations.length===0){if(this.txids.length===0)throw new Error("No VAAs set and txids available to look them up");const r=this.txids[this.txids.length-1],n=await Er.getTransferMessage(this.fromChain,r.txid,t);this.attestations=[{id:n}]}for(const r in this.attestations){if(this.attestations[r].attestation)continue;const n=await Er.getTransferVaa(this.wh,this.attestations[r].id,t);if(!n)throw new Error("VAA not found");this.attestations[r].attestation=n}if(this._state=Lt.Attested,this.attestations.length>0){const{attestation:r}=this.attestations[0];await Er.isTransferComplete(this.toChain,r)&&(this._state=Lt.DestinationFinalized)}return this.attestations.map(r=>r.id)}async completeTransfer(t){if(this._state<Lt.Attested)throw new Error("Invalid state transition, must be attested prior to calling `completeTransfer`.");if(!this.attestations)throw new Error("No VAA details available");const{attestation:r}=this.attestations[0];if(!r)throw new Error(`No VAA found for ${this.attestations[0].id.sequence}`);const n=await Er.redeem(this.toChain,r,t);return this.txids.push(...n),this._state=Lt.DestinationInitiated,n.map(({txid:a})=>a)}}(function(e){e.MAX_DECIMALS=8;async function t(C,E,T){const I=xa(T.chain(),T.address()),S=Ph(E.token)?E.token.address:E.token;let D;return E.automatic?D=(await C.getAutomaticTokenBridge()).transfer(I,E.to,S,E.amount,E.nativeGas):D=(await C.getTokenBridge()).transfer(I,E.to,S,E.amount,E.payload),Mo(C,D,T)}e.transfer=t;async function r(C,E,T){const I=xa(T.chain(),T.address()),S=E.protocolName==="AutomaticTokenBridge"?(await C.getAutomaticTokenBridge()).redeem(I,E):(await C.getTokenBridge()).redeem(I,E);return Mo(C,S,T)}e.redeem=r;async function*n(C,E,T=qo,I,S){var N,_;const D=Date.now(),L=(O,U)=>Math.max(U-(Date.now()-O),0);if(I=I??C.getChain(E.from),J6(E)){if(E.originTxs.length===0)throw"Origin transactions required to fetch message id";const{txid:O}=E.originTxs[E.originTxs.length-1],U=await e.getTransferMessage(I,O,L(D,T));E={...E,state:Lt.SourceFinalized,attestation:{id:U}},yield E}if(gf(E)||FE(E)){if(!E.attestation.id)throw"Attestation id required to fetch attestation";const{id:O}=E.attestation,U=await e.getTransferVaa(C,O,L(D,T));throw U?(E={...E,attestation:{id:O,attestation:U},state:Lt.Attested},yield E):await e.isTransferEnqueued(C,O)&&(E={...E,state:Lt.InReview},yield E),new Error("Attestation not found")}if(Us(E)||gf(E)||FE(E)){if(!E.attestation.id)throw"Attestation id required to fetch redeem tx";const{id:O}=E.attestation,U=await C.getTransactionStatus(O,L(D,T));if(U&&((_=(N=U.globalTx)==null?void 0:N.destinationTx)!=null&&_.txHash)){const{chainId:z,txHash:F}=U.globalTx.destinationTx;E={...E,destinationTxs:[{chain:zh(z),txid:F}],state:Lt.DestinationInitiated}}yield E}if(Us(E)||nF(E)){if(!E.attestation.attestation)throw"Signed Attestation required to check for redeem";if(E.attestation.attestation.payloadName==="AttestMeta")throw new Error("Unable to track an AttestMeta receipt");await e.isTransferComplete(S??C.getChain(E.attestation.attestation.payload.to.chain),E.attestation.attestation)&&(E={...E,state:Lt.DestinationFinalized}),yield E}yield E}e.track=n;function a(C){const{transfer:E}=C,T=E.from.chain,I=E.to.chain;let S={from:T,to:I,state:Lt.Created};const D=C.txids.filter(O=>O.chain===E.from.chain);D.length>0&&(S={...S,state:Lt.SourceInitiated,originTxs:D});const L=C.attestations&&C.attestations.length>0?C.attestations[0]:void 0,N=L&&L.id?{id:L.id,attestation:L.attestation}:void 0;N&&N.id&&(S={...S,state:Lt.SourceFinalized,attestation:{id:N.id}},N.attestation&&(S={...S,state:Lt.Attested,attestation:{id:N.id,attestation:N.attestation}}));const _=C.txids.filter(O=>O.chain===E.to.chain);return _.length>0&&(S={...S,state:Lt.DestinationFinalized,destinationTxs:_}),S}e.getReceipt=a;async function i(C,E,T){let I;const S=await C.getTokenBridge();if(pn(T.address)){const N=await S.getWrappedNative();I={chain:T.chain,address:await S.getTokenUniversalAddress(N)}}else try{let N;fn.instanceof(T.address)?N=await S.getWrappedAsset(T):N=T.address,I=await S.getOriginalAsset(N)}catch(N){if(!N.message.includes("not a wrapped asset"))throw N;let _;fn.instanceof(T.address)?_=await S.getTokenNativeAddress(C.chain,T.address):_=T.address,I={chain:T.chain,address:await S.getTokenUniversalAddress(_)}}const D=await E.getTokenBridge();if(I.chain===E.chain){const N=await D.getTokenNativeAddress(I.chain,I.address),_=await D.getWrappedNative();return Qi({chain:E.chain,address:_})===Qi({chain:E.chain,address:N})?{chain:E.chain,address:"native"}:{chain:E.chain,address:N}}const L=await D.getWrappedAsset(I);return{chain:E.chain,address:L}}e.lookupDestinationToken=i;async function o(C,E){return E.protocolName==="AutomaticTokenBridge"&&(E=Z1("TokenBridge:TransferWithPayload",yb(E))),(await C.getTokenBridge()).isTransferCompleted(E)}e.isTransferComplete=o;async function u(C,E,T){const I=await ar.parseMessageFromTx(C,E,T);if(I.length!==1)throw new Error("Expected a single Wormhole Message, got: "+I.length);return I[0]}e.getTransferMessage=u;async function d(C,E,T){const I=await C.getVaa(E,vb.getTransferDiscriminator(),T);if(!I)return null;if(I.payloadName==="TransferWithPayload"){const{chain:S,address:D}=I.payload.to,{tokenBridgeRelayer:L}=C.config.chains[S].contracts,N=L?WJ(S,L):null;if(N&&D.equals(N))return Z1("AutomaticTokenBridge:TransferWithRelay",yb(I))}return I}e.getTransferVaa=d;async function h(C,E){return await C.getIsVaaEnqueued(E)}e.isTransferEnqueued=h;function m(C,E,T,I){if(E.amount===0n)throw new Error("Amount cannot be 0");if(E.from.chain===E.to.chain)throw new Error("Cannot transfer to the same chain");if(T=T??C.getChain(E.from.chain),I=I??C.getChain(E.to.chain),E.automatic){if(E.payload)throw new Error("Payload with automatic delivery is not supported");if(!T.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${E.from.chain}`);if(!I.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${E.to.chain}`);const S=E.nativeGas??0n;if(S>E.amount)throw new Error(`Native gas amount > amount (${S} > ${E.amount})`)}else{if(E.nativeGas)throw new Error("Gas Dropoff is only supported for automatic transfers");if(!T.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${E.from.chain}`);if(!I.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${E.to.chain}`)}}e.validateTransferDetails=m;async function b(C,E,T,I){const S=await E.getTokenBridge();let D;if(pn(I.token.address))D=await S.getWrappedNative();else if(fn.instanceof(I.token.address))try{D=await S.getWrappedAsset(I.token)}catch(M){if(!M.message.includes("not a wrapped asset"))throw M;D=await S.getTokenNativeAddress(E.chain,I.token.address)}else D=I.token.address;ar.tokenId(E.chain,D.toString());const L=await E.getDecimals(D),N=Yr(I.amount,L),_=Ra(N,e.MAX_DECIMALS),[O,U]=await Promise.all([wre(C.config.api),Cre(C.config.api)]),z=[];if(U!==null&&E.chain in U&&O!==null){let M;if(pn(I.token.address))M={chain:E.chain,address:await S.getTokenUniversalAddress(D)};else try{M=await S.getOriginalAsset(I.token.address)}catch(B){if(!B.message.includes("not a wrapped asset"))throw B;M={chain:E.chain,address:await S.getTokenUniversalAddress(D)}}if(M.chain in O&&M.address.toString()in O[M.chain]){const B=U[E.chain],Q=O[M.chain][M.address.toString()]*bo(_);B.maxSize&&Q>B.maxSize&&z.push({type:"GovernorLimitWarning",reason:"ExceedsLargeTransferLimit"}),Q>B.available&&z.push({type:"GovernorLimitWarning",reason:"ExceedsRemainingNotional"})}}const F=await e.lookupDestinationToken(E,T,I.token),k=await T.getDecimals(F.address),w=nl(_,k),s=Y6(E.chain)+hx;if(!I.automatic)return{sourceToken:{token:I.token,amount:er(_)},destinationToken:{token:F,amount:er(w)},warnings:z.length>0?z:void 0,eta:s,expires:lf(24,0,0)};const f=await(await E.getAutomaticTokenBridge()).getRelayerFee(T.chain,D),p=nl(Ra(Yr(f,L),e.MAX_DECIMALS),k),g=I.nativeGas??0n,x=er(nl(Ra(Yr(g,L),e.MAX_DECIMALS),k)),A=890880n;let y=0n;if(I.nativeGas){const M=await T.getAutomaticTokenBridge(),[B,R]=await Promise.all([M.maxSwapAmount(F.address),M.nativeTokenAmount(F.address,x)]);if(x>B)throw new Error(`Native gas amount exceeds maximum swap amount: ${kA(x,k)}>${kA(B,k)}`);if(T.chain==="Solana"&&R<A)throw new Error(`Native gas amount must be at least ${A} lamports`);y=R}const c=er(w)-x-er(p);if(F.chain==="Solana"){const M=await T.getNativeWrappedTokenId();if((pn(F.address)||ks(F,M))&&c<A)throw new Error(`Destination amount must be at least ${A} lamports`)}return{sourceToken:{token:I.token,amount:er(_)},destinationToken:{token:F,amount:c},relayFee:{token:F,amount:er(p)},destinationNativeGas:y,warnings:z.length>0?z:void 0,eta:s,expires:lf(0,5,0)}}e.quoteTransfer=b;async function v(C,E,T){const I={...T};if(T.to.chain==="Solana"&&!I.automatic){const S=await e.lookupDestinationToken(C,E,I.token);if(pn(S.address)){const D=await E.getNativeWrappedTokenId();I.to=await E.getTokenAccount(I.to.address,D.address)}else I.to=await E.getTokenAccount(I.to.address,S.address)}if(I.to.chain==="Sei"){if(I.to.chain==="Sei"&&I.payload)throw new Error("Arbitrary payloads unsupported for Sei");I.payload=ii.encode(JSON.stringify({basic_recipient:{recipient:P6.encode(I.to.address.toString())}}));const S=E.config.contracts.translator;if(S===void 0||S==="")throw new Error("Unexpected empty translator address");I.to=ar.chainAddress(I.to.chain,S)}return I}e.destinationOverrides=v})(Er||(Er={}));function Ere(e){if(e.length===0)return[];const{chain:t}=e[0];if(!e.every(r=>r.chain===t))throw new Error("Not every chain is equal");return Array.from(new Set(e.map(r=>Qi(r)))).map(r=>ar.tokenId(t,r))}async function RE(e,t,r){const n=Qi(t),a=e.config.tokenMap?Yf.byAddress(e.config.tokenMap,n):void 0,i=a?a.symbol:void 0,o=pn(t.address)?await e.getNativeWrappedTokenId():void 0;return r=r??await e.getDecimals(t.address),{id:t,decimals:r,wrapped:o,symbol:i}}class Sre{constructor(t,r){Ye(this,"wh");Ye(this,"routeConstructors");Ye(this,"inputTokenList");this.wh=t,this.routeConstructors=r}async supportedDestinationTokens(t,r,n){const[,a]=q4(r.network,r.chain,t),i=await Promise.all(this.routeConstructors.map(async o=>{if(!o.supportedNetworks().includes(r.network))return[];const d=o.supportedChains(r.network);if(!d.includes(r.chain)||!d.includes(n.chain))return[];try{return await o.supportedDestinationTokens(a,r,n)}catch{return[]}}));return Ere(i.flat())}async findRoutes(t){return(await Promise.all(this.routeConstructors.map(async n=>{try{const a=n.supportedNetworks().includes(this.wh.network)&&n.supportedChains(this.wh.network).includes(t.toChain.chain)&&n.supportedChains(this.wh.network).includes(t.fromChain.chain),i=Qi(pn(t.destination.id.address)?t.destination.wrapped:t.destination.id),o=(await n.supportedDestinationTokens(t.source.id,t.fromChain,t.toChain)).filter(u=>Qi(u)===i).length>0;return a&&o}catch{return!1}})).then(n=>this.routeConstructors.filter((a,i)=>n[i]))).map(n=>new n(this.wh))}}class ar{constructor(t,r,n){Ye(this,"_network");Ye(this,"_platforms");Ye(this,"_chains");Ye(this,"config");this._network=t,this.config=cre(t,n),this._chains=new Map,this._platforms=new Map;for(const a of r)this._platforms.set(a._platform,new a(t,this.config.chains))}get network(){return this._network}async circleTransfer(t,r,n,a,i,o){if(a&&i)throw new Error("Payload with automatic delivery is not supported");if(!P1(this.network,r.chain)||!P1(this.network,n.chain)||!YA(this.network,r.chain)||!YA(this.network,n.chain))throw new Error(`Network and chain not supported: ${this.network} ${r.chain} `);if(a){const h=await(await this.getChain(r.chain).getAutomaticCircleBridge()).getRelayerFee(n.chain)+(o||0n);if(t<h)throw new Error(`Amount must be > ${h} (relayerFee + nativeGas)`)}return await Vr.from(this,{amount:t,from:r,to:n,automatic:a,payload:i,nativeGas:o})}async tokenTransfer(t,r,n,a,i,o,u){return await Er.from(this,{token:t,amount:r,from:n,to:a,automatic:i,payload:o,nativeGas:u})}resolver(t){return new Sre(this,t)}getContracts(t){var r;return(r=this.config.chains[t])==null?void 0:r.contracts}getPlatform(t){const r=this._platforms.get(t);if(!r)throw new Error(`Not able to retrieve platform ${t}. Did it get registered in the constructor?`);return r}getChain(t){const r=Hn(t);return this._chains.has(t)||this._chains.set(t,this.getPlatform(r).getChain(t)),this._chains.get(t)}async getWrappedAsset(t,r){const a=await this.getChain(t).getTokenBridge();return{chain:t,address:await a.getWrappedAsset(r)}}async getOriginalAsset(t){return await(await this.getChain(t.chain).getTokenBridge()).getOriginalAsset(t.address)}async getTokenUniversalAddress(t,r){return await(await this.getChain(t).getTokenBridge()).getTokenUniversalAddress(r)}async getTokenNativeAddress(t,r,n){return await(await this.getChain(t).getTokenBridge()).getTokenNativeAddress(r,n)}async getDecimals(t,r){return await this.getChain(t).getDecimals(r)}async getBalance(t,r,n){return this.getChain(t).getBalance(n,r)}async getTokenAccount(t,r){return this.getChain(t.chain).getTokenAccount(t.address,r.address)}async getVaaBytes(t,r=qo){return await mre(this.config.api,t,r)}async getVaa(t,r,n=qo){return typeof t=="string"?await OE(this.config.api,t,r,n):await yre(this.config.api,t,r,n)}async getIsVaaEnqueued(t){return await Are(this.config.api,t)}async getCircleAttestation(t,r=qo){return dre(this.config.circleAPI,t,r)}async getTransactionStatus(t,r=qo){let n;if(typeof t=="string"){const a=await OE(this.config.api,t,"Uint8Array",r);if(!a)return null;n={emitter:a.emitterAddress,chain:a.emitterChain,sequence:a.sequence}}else n=t;return await Mre(this.config.api,n,r)}async getTransactionsForAddress(t,r=50,n=0){return vre(this.config.api,t,r,n)}static parseAddress(t,r){return xa(t,r)}static canonicalAddress(t){return Qi(t)}static chainAddress(t,r){return{chain:t,address:ar.parseAddress(t,r)}}static tokenId(t,r){return pn(r)?D_(t):this.chainAddress(t,r)}static async parseMessageFromTx(t,r,n=qo){const i=await Vf(async()=>{try{const o=await t.parseTransaction(r);return o.length===0?null:o}catch(o){return console.error(o),null}},t.config.blockTime,n,"WormholeCore:ParseMessageFromTransaction");if(!i)throw new Error(`No WormholeMessageId found for ${r}`);return i}}class aF{constructor(t){Ye(this,"wh");this.wh=t}transferUrl(t){return`https://wormholescan.io/#/tx/${t}?network=${this.wh.network}`}}class t5 extends aF{}Ye(t5,"IS_AUTOMATIC",!0);class Q1 extends aF{}Ye(Q1,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),Ye(Q1,"IS_AUTOMATIC",!1);function Tb(e){return e.complete!==void 0}function Ib(e){return e.finalize!==void 0}class Tx{constructor(t,r,n,a,i){Ye(this,"source");Ye(this,"destination");Ye(this,"fromChain");Ye(this,"toChain");Ye(this,"recipient");this.fromChain=t,this.toChain=r,this.source=n,this.destination=a,this.recipient=i}parseAmount(t){return g0(t,this.source.decimals)}amountFromBaseUnits(t){return Yr(t,this.source.decimals)}async displayQuote(t,r,n){let a={success:!0,sourceToken:{token:t.sourceToken.token,amount:Yr(t.sourceToken.amount,this.source.decimals)},destinationToken:{token:t.destinationToken.token,amount:Yr(t.destinationToken.amount,this.destination.decimals)},params:r};if(t.relayFee){const o=await(t.relayFee.token.chain===this.fromChain.chain?this.fromChain:this.toChain).getDecimals(t.relayFee.token.address);a.relayFee={token:t.relayFee.token,amount:Yr(t.relayFee.amount,o)}}if(t.destinationNativeGas){const i=await this.toChain.getDecimals("native");a.destinationNativeGas=Yr(t.destinationNativeGas,i)}return t.warnings&&t.warnings.length>0&&(a.warnings=[...t.warnings]),a.eta=t.eta,a.expires=t.expires,n&&(a.details=n),a}static async create(t,r,n,a){n=n??t.getChain(r.source.chain),a=a??t.getChain(r.destination.chain);const i=await RE(n,r.source,r.sourceDecimals),o=await RE(a,r.destination,r.destinationDecimals);return new Tx(n,a,i,o,r.recipient)}}class sF extends Error{constructor(r){super(`Minimum transfer amount is ${mn(r)}`);Ye(this,"min");this.min=r}minAmount(){return this.min}}class oF extends Error{constructor(t){super(t)}}class Nb extends t5{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return qA.has(t)?qA.get(t):[]}static async supportedDestinationTokens(t,r,n){try{if(!pn(t)&&!await(await r.getAutomaticTokenBridge()).isRegisteredToken(t.address))return[];const a=await Er.lookupDestinationToken(r,n,t);return await(await n.getAutomaticTokenBridge()).isRegisteredToken(a.address)?[a]:[]}catch{return[]}}getDefaultOptions(){return{nativeGas:0}}async validate(t,r){try{const n=r.options??this.getDefaultOptions();if(n.nativeGas&&(n.nativeGas>1||n.nativeGas<0))throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");const{destination:a}=t;pn(a.id.address)&&n.nativeGas===0&&(n.nativeGas=0);const i={...r,options:n};return{valid:!0,params:{...i,normalizedParams:await this.normalizeTransferParams(t,i)}}}catch(n){return{valid:!1,params:r,error:n}}}async normalizeTransferParams(t,r){const n=t.parseAmount(r.amount),a=pn(t.source.id.address)?await t.fromChain.getNativeWrappedTokenId():t.source.id,o=await(await t.fromChain.getAutomaticTokenBridge()).getRelayerFee(t.toChain.chain,a.address),u=o*105n/100n;if(er(n)<u)throw new sF(Yr(u,n.decimals));const d=er(n)-o;let h=Yr(0n,t.source.decimals);if(r.options&&r.options.nativeGas>0){let b=await(await t.toChain.getAutomaticTokenBridge()).maxSwapAmount(t.destination.id.address);const v=Ra(Yr(d,n.decimals),Er.MAX_DECIMALS),C=await t.toChain.getDecimals(t.destination.id.address),E=er(nl(v,C));E<b&&(b=E);const T=1e4,I=BigInt(Math.floor(r.options.nativeGas*T)),S=b*I/BigInt(T),D=Yr(S,t.destination.decimals);h=nl(Ra(D,Er.MAX_DECIMALS),t.source.decimals),er(h)>d&&(h=Yr(d,t.source.decimals))}return{fee:Yr(o,t.source.decimals),amount:n,nativeGasAmount:h}}async quote(t,r){const n=await t.fromChain.getAutomaticTokenBridge();if(Ph(t.source.id)&&!await n.isRegisteredToken(t.source.id.address))return{success:!1,error:new Error("Source token is not registered")};try{let a=await Er.quoteTransfer(this.wh,t.fromChain,t.toChain,{automatic:!0,amount:er(r.normalizedParams.amount),token:t.source.id,nativeGas:er(r.normalizedParams.nativeGasAmount)});return t.displayQuote(a,r)}catch(a){return{success:!1,error:a}}}async initiate(t,r,n,a){const{params:i}=n,o=this.toTransferDetails(t,i,ar.chainAddress(r.chain(),r.address()),a),u=await Er.transfer(t.fromChain,o,r);return{from:o.from.chain,to:o.to.chain,state:Lt.SourceInitiated,originTxs:u}}async*track(t,r){try{yield*Er.track(this.wh,t,r)}catch(n){throw n}}toTransferDetails(t,r,n,a){return{from:n,to:a,automatic:!0,amount:er(r.normalizedParams.amount),token:t.source.id,nativeGas:er(r.normalizedParams.nativeGasAmount)}}}Ye(Nb,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),Ye(Nb,"meta",{name:"AutomaticTokenBridge"});class cF extends Q1{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return Wz(t)}static async supportedDestinationTokens(t,r,n){try{return[await Er.lookupDestinationToken(r,n,t)]}catch{return[]}}getDefaultOptions(){return{payload:void 0}}async validate(t,r){const n=g0(r.amount,t.source.decimals);return{valid:!0,params:{amount:r.amount,normalizedParams:{amount:n},options:{}}}}async quote(t,r){try{return t.displayQuote(await Er.quoteTransfer(this.wh,t.fromChain,t.toChain,{token:t.source.id,amount:er(r.normalizedParams.amount),...r.options}),r)}catch(n){return{success:!1,error:n}}}async initiate(t,r,n,a){const{params:i}=n,o=await Er.destinationOverrides(t.fromChain,t.toChain,this.toTransferDetails(t,i,ar.chainAddress(r.chain(),r.address()),a)),u=await Er.transfer(t.fromChain,o,r);return{from:o.from.chain,to:o.to.chain,state:Lt.SourceInitiated,originTxs:u}}async complete(t,r){if(!Us(r))throw new Error("The source must be finalized in order to complete the transfer");const n=this.wh.getChain(r.to),a=await Er.redeem(n,r.attestation.attestation,t);return{...r,state:Lt.DestinationInitiated,destinationTxs:a}}async resume(t){const r=await Er.from(this.wh,t,1e4);return Er.getReceipt(r)}async*track(t,r){yield*Er.track(this.wh,t,r)}toTransferDetails(t,r,n,a){return{from:n,to:a,token:t.source.id,amount:er(r.normalizedParams.amount),...r.options}}}Ye(cF,"meta",{name:"ManualTokenBridge"});const UE=15n,Dre=100n,qm=10000n,Iu=class Iu extends t5{static supportedNetworks(){return["Mainnet"]}static supportedChains(t){return VA.has(t)?VA.get(t):[]}static async supportedDestinationTokens(t,r,n){const[,a]=q4(r.network,r.chain,t),i=Qi(a),o=await r.getPorticoBridge();if(!o.supportedTokens().some(b=>Qi(b.token)===i))return[];try{const b=await o.getTransferrableToken(i);await Er.lookupDestinationToken(r,n,b)}catch{return[]}const d=(await n.getPorticoBridge()).supportedTokens(),{tokenMap:h}=n.config,m=o.getTokenGroup(i);return d.filter(b=>(b.group===m||b.group==="ETH"&&m==="WETH"||b.group==="WETH"&&m==="ETH")&&(!h||Yf.byAddress(h,Qi(b.token)))).map(b=>b.token)}getDefaultOptions(){return{}}async validate(t,r){try{if(!Iu.supportedChains(t.fromChain.network).includes(t.fromChain.chain)||!Iu.supportedChains(t.toChain.network).includes(t.toChain.chain))throw new Error("Protocol not supported");const{fromChain:n,toChain:a,source:i,destination:o}=t,{network:u}=n,[,d]=q4(u,n.chain,i.id),[,h]=q4(u,a.chain,o.id),m=await n.getPorticoBridge(),b=await a.getPorticoBridge(),v=await m.getTransferrableToken(Qi(d)),C=await b.getTransferrableToken(Qi(h));return{valid:!0,params:{amount:r.amount,options:r.options??this.getDefaultOptions(),normalizedParams:{amount:t.parseAmount(r.amount),canonicalSourceToken:v,canonicalDestinationToken:C,sourceToken:d,destinationToken:h}}}}catch(n){return{valid:!1,error:n,params:r}}}async quote(t,r){try{const n=await this.fetchSwapQuote(t,r),a=Math.max(t.source.decimals,t.destination.decimals),i=er(nl(r.normalizedParams.amount,a));if(er(nl(Yr(n.minAmountFinish,t.destination.decimals),a))<i-i*Dre/qm)throw new Error("Slippage too high");const d=await(await t.toChain.getPorticoBridge()).quoteRelay(r.normalizedParams.canonicalDestinationToken.address,r.normalizedParams.destinationToken.address),h={swapAmounts:n,relayerFee:d},m=h.swapAmounts.minAmountFinish-d;return m<0n?{success:!1,error:new Error(`Amount too low for slippage and fee, would result in negative destination amount (${m})`)}:await t.displayQuote({sourceToken:{token:r.normalizedParams.sourceToken,amount:er(r.normalizedParams.amount)},destinationToken:{token:r.normalizedParams.destinationToken,amount:h.swapAmounts.minAmountFinish-d},relayFee:{token:r.normalizedParams.destinationToken,amount:d},eta:Y6(t.fromChain.chain),expires:lf(0,5,0)},r,h)}catch(n){return{success:!1,error:n}}}async initiate(t,r,n,a){const{params:i,details:o}=n,u=t.source.id.address,d=t.destination.id,h=await t.fromChain.getPorticoBridge(),m=h.getTokenGroup(u.toString()),v=(await t.toChain.getPorticoBridge()).getPorticoAddress(m),C=h.transfer(ar.parseAddress(r.chain(),r.address()),a,u,er(i.normalizedParams.amount),d,v,o);return{originTxs:await Mo(t.fromChain,C,r),state:Lt.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async*track(t,r){if(J6(t)||gf(t)){const{txid:n}=t.originTxs[t.originTxs.length-1],a=await this.wh.getVaa(n,"PorticoBridge:Transfer",r);if(!a)throw new Error("No VAA found for transaction: "+n);const i={chain:a.emitterChain,emitter:a.emitterAddress,sequence:a.sequence};t={...t,state:Lt.Attested,attestation:{id:i,attestation:a}},yield t}Us(t)&&await(await this.wh.getChain(t.to).getPorticoBridge()).isTransferCompleted(t.attestation.attestation)&&(t={...t,state:Lt.DestinationFinalized},yield t),yield t}async complete(t,r){if(!Us(r))throw new Error("Source must be attested");const n=await this.wh.getChain(r.to),a=await n.getPorticoBridge(),i=ar.chainAddress(t.chain(),t.address()),o=a.redeem(i.address,r.attestation.attestation);return await Mo(n,o,t)}async fetchSwapQuote(t,r){const n=await t.fromChain.getPorticoBridge(),a=er(r.normalizedParams.amount),i=n.getTokenGroup(Qi(r.normalizedParams.sourceToken)),o=await n.quoteSwap(r.normalizedParams.sourceToken.address,r.normalizedParams.canonicalSourceToken.address,i,a),u=o*UE/qm;if(u>=o)throw new Error("Start slippage too high");const d=await t.toChain.getPorticoBridge(),h=o-u,m=await d.quoteSwap(r.normalizedParams.canonicalDestinationToken.address,r.normalizedParams.destinationToken.address,i,h),b=m*UE/qm;if(b>=m)throw new Error("Finish slippage too high");const v=m-b;return{minAmountStart:h,minAmountFinish:v}}};Ye(Iu,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),Ye(Iu,"meta",{name:"AutomaticPortico"});let Lb=Iu;class lF extends Q1{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return rp.has(t)?rp.get(t):[]}static async supportedDestinationTokens(t,r,n){const a=ki.get(r.network,r.chain);if(!a)return[];if(!ks(t,ar.tokenId(r.chain,a)))return[];const{network:i,chain:o}=n;return ki.has(i,o)?[ar.chainAddress(o,ki.get(i,o))]:[]}getDefaultOptions(){return{payload:void 0}}async validate(t,r){return{valid:!0,params:{normalizedParams:{amount:t.parseAmount(r.amount)},options:r.options??this.getDefaultOptions(),...r}}}async quote(t,r){try{return t.displayQuote(await Vr.quoteTransfer(t.fromChain,t.toChain,{automatic:!1,amount:er(r.normalizedParams.amount),...r.options}),r)}catch(n){return{success:!1,error:n}}}async initiate(t,r,n,a){const{params:i}=n,o=await Vr.destinationOverrides(t.fromChain,t.toChain,this.toTransferDetails(i,ar.chainAddress(r.chain(),r.address()),a)),u=await Vr.transfer(t.fromChain,o,r),d=await Vr.getTransferMessage(t.fromChain,u[u.length-1].txid);return{from:o.from.chain,to:o.to.chain,state:Lt.SourceFinalized,originTxs:u,attestation:{id:d.id,attestation:{message:d.message}}}}async complete(t,r){if(!Us(r))throw new Error("The source must be finalized in order to complete the transfer");const{id:n,attestation:a}=r.attestation;if(pf.isCircleAttestation(a)){const{message:i,attestation:o}=a;if(!o)throw new Error(`No Circle attestation for ${n}`);const u=this.wh.getChain(r.to),d=await u.getCircleBridge(),h=ar.parseAddress(t.chain(),t.address()),m=d.redeem(h,i,o),b=await Mo(u,m,t);return{...r,state:Lt.DestinationInitiated,destinationTxs:b}}else return r}async resume(t){const r=await Vr.from(this.wh,t,1e4);return Vr.getReceipt(r)}async*track(t,r){yield*Vr.track(this.wh,t,r)}toTransferDetails(t,r,n){return{from:r,to:n,amount:er(t.normalizedParams.amount),automatic:!1,...t.options}}}Ye(lF,"meta",{name:"ManualCCTP",provider:"Circle"});class jb extends t5{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(t){return rp.has(t)?rp.get(t).filter(n=>{var a;return(a=ob.get(t,n))==null?void 0:a.wormholeRelayer}):[]}static async supportedDestinationTokens(t,r,n){const a=ki.get(r.network,r.chain);if(!a)return[];if(!ks(t,ar.tokenId(r.chain,a)))return[];const{network:i,chain:o}=n;return ki.has(i,o)?[ar.chainAddress(o,ki.get(i,o))]:[]}getDefaultOptions(){return{nativeGas:0}}async validate(t,r){try{const n=r.options??this.getDefaultOptions();return{valid:!0,params:{normalizedParams:await this.normalizeTransferParams(t,r),options:n,...r}}}catch(n){return{valid:!1,params:r,error:n}}}async quote(t,r){try{return t.displayQuote(await Vr.quoteTransfer(t.fromChain,t.toChain,{automatic:!0,amount:er(r.normalizedParams.amount),nativeGas:er(r.normalizedParams.nativeGasAmount)}),r)}catch(n){return{success:!1,error:n}}}async normalizeTransferParams(t,r){const n=t.parseAmount(r.amount),i=await(await t.fromChain.getAutomaticCircleBridge()).getRelayerFee(t.toChain.chain),o=i*105n/100n;if(er(n)<o)throw new sF(Yr(o,n.decimals));const u=er(n)-i,h=(r.options??this.getDefaultOptions()).nativeGas??0;if(h>1||h<0)throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");let m=0n;if(h>0){let v=await(await t.toChain.getAutomaticCircleBridge()).maxSwapAmount();u<v&&(v=u);const C=1e4,E=BigInt(Math.floor(h*C));m=v*E/BigInt(C),m===u&&m>0n&&(m-=1n)}return{fee:t.amountFromBaseUnits(i),amount:n,nativeGasAmount:t.amountFromBaseUnits(m)}}toTransferDetails(t,r,n){return{from:r,to:n,amount:er(t.normalizedParams.amount),automatic:!0,nativeGas:er(t.normalizedParams.nativeGasAmount)}}async initiate(t,r,n,a){const{params:i}=n;let o=this.toTransferDetails(i,ar.chainAddress(r.chain(),r.address()),a),u=await Vr.transfer(t.fromChain,o,r);const d=await Vr.getTransferMessage(t.fromChain,u[u.length-1].txid);return{from:o.from.chain,to:o.to.chain,state:Lt.SourceFinalized,originTxs:u,attestation:{id:d.id,attestation:{message:d.message}}}}async*track(t,r){yield*Vr.track(this.wh,t,r)}}Ye(jb,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),Ye(jb,"meta",{name:"AutomaticCCTP",provider:"Circle"});class uF extends Q1{static supportedNetworks(){return["Mainnet"]}static supportedChains(t){return Wz(t)}static async supportedDestinationTokens(t,r,n){if(!await this.isSourceTokenSupported(t,r))return[];const a=ts.getNativeTbtcToken(n.chain);if(a)return[a];const i=await n.getTokenBridge(),o=ts.getNativeTbtcToken("Ethereum");try{const u=await i.getWrappedAsset(o);return[ar.tokenId(n.chain,u.toString())]}catch(u){if(u.message.includes("not a wrapped asset"))return[];throw u}}getDefaultOptions(){return{}}async validate(t,r){return{valid:!0,params:{normalizedParams:{amount:t.parseAmount(r.amount)},options:r.options??this.getDefaultOptions(),...r}}}async quote(t,r){const n=Y6(t.fromChain.chain)+hx;return{success:!0,params:r,sourceToken:{token:t.source.id,amount:r.normalizedParams.amount},destinationToken:{token:t.destination.id,amount:r.normalizedParams.amount},eta:n,expires:lf(24,0,0)}}async initiate(t,r,n,a){const i=er(n.params.normalizedParams.amount),o=t.fromChain.chain==="Ethereum",u=ts.getNativeTbtcToken(t.fromChain.chain),d=u&&ks(n.sourceToken.token,u);if(d&&!o)return await this.transferNative(t,r,a,i);if(!d&&o)throw new Error("Only tbtc can be transferred on Ethereum");if(!d){const m=await(await t.fromChain.getTokenBridge()).getOriginalAsset(n.sourceToken.token.address),b=ts.getNativeTbtcToken("Ethereum");if(!ks(m,b))throw new Error("Can only transfer wrapped tbtc")}return await this.transferWrapped(t,r,a,i)}async transferNative(t,r,n,a){const i=ar.parseAddress(r.chain(),r.address()),u=(await t.fromChain.getTBTCBridge()).transfer(i,n,a);return{originTxs:await Mo(t.fromChain,u,r),state:Lt.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async transferWrapped(t,r,n,a){const i=ar.parseAddress(r.chain(),r.address()),o=Q4.get(t.fromChain.network,n.chain),u=await t.fromChain.getTokenBridge();let d;return o?d=u.transfer(i,ar.chainAddress(t.toChain.chain,o),t.source.id.address,a,n.address.toUniversalAddress().toUint8Array()):d=u.transfer(i,n,t.source.id.address,a),{originTxs:await Mo(t.fromChain,d,r),state:Lt.SourceInitiated,from:t.fromChain.chain,to:t.toChain.chain}}async complete(t,r){if(!Us(r))throw new Error("The source must be finalized in order to complete the transfer");const n=ar.parseAddress(t.chain(),t.address()),a=r.attestation.attestation,i=this.wh.getChain(r.to);let o;if(a.payloadLiteral==="TBTCBridge:GatewayTransfer")o=(await i.getTBTCBridge()).redeem(n,a);else{const d=await i.getTokenBridge(),h=yb(a),m=Z1("TokenBridge:Transfer",h);o=d.redeem(n,m)}const u=await Mo(i,o,t);return{...r,state:Lt.DestinationInitiated,destinationTxs:u}}async resume(t){const r=await this.wh.getVaa(t.txid,ts.getTransferDiscriminator());if(!r)throw new Error("No VAA found for transaction: "+t);const n=ts.getNativeTbtcToken("Ethereum"),{chain:a,address:i}=r.payload.token;if(!ks(n,{chain:a,address:i}))throw new Error("Can only resume tbtc transfers");return{originTxs:[t],state:Lt.Attested,from:r.emitterChain,to:r.payload.to.chain,attestation:{id:{chain:r.emitterChain,emitter:r.emitterAddress,sequence:r.sequence},attestation:r}}}async*track(t,r){if(J6(t)||gf(t)){const{txid:n}=t.originTxs[t.originTxs.length-1],a=await this.wh.getVaa(n,ts.getTransferDiscriminator(),r);if(!a)throw new Error("No VAA found for transaction: "+n);const i={chain:a.emitterChain,emitter:a.emitterAddress,sequence:a.sequence};t={...t,state:Lt.Attested,attestation:{id:i,attestation:a}},yield t}Us(t)&&await(await this.wh.getChain(t.to).getTokenBridge()).isTransferCompleted(t.attestation.attestation)&&(t={...t,state:Lt.DestinationFinalized},yield t),yield t}static async isSourceTokenSupported(t,r){if(pn(t.address))return!1;const n=ts.getNativeTbtcToken(r.chain);if(n&&ks(t,n))return!0;const a=await r.getTokenBridge();try{const i=await a.getOriginalAsset(t.address);return ks(i,ts.getNativeTbtcToken("Ethereum"))}catch(i){if(i.message.includes("not a wrapped asset"))return!1;throw i}}}Ye(uF,"meta",{name:"ManualTBTC"});function Tre(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fF={exports:{}},ir={},P2={exports:{}},Bb={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=vt,n=r.Buffer;function a(o,u){for(var d in o)u[d]=o[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i);function i(o,u,d){return n(o,u,d)}i.prototype=Object.create(n.prototype),a(n,i),i.from=function(o,u,d){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,d)},i.alloc=function(o,u,d){if(typeof o!="number")throw new TypeError("Argument must be a number");var h=n(o);return u!==void 0?typeof d=="string"?h.fill(u,d):h.fill(u):h.fill(0),h},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(Bb,Bb.exports);var sr=Bb.exports,PE;function $f(){if(PE)return P2.exports;PE=1;var e=65536,t=4294967295;function r(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
105
105
|
Use Chrome, Firefox or Internet Explorer 11`)}var n=sr.Buffer,a=Ut.crypto||Ut.msCrypto;a&&a.getRandomValues?P2.exports=i:P2.exports=r;function i(o,u){if(o>t)throw new RangeError("requested too many random bytes");var d=n.allocUnsafe(o);if(o>0)if(o>e)for(var h=0;h<o;h+=e)a.getRandomValues(d.slice(h,h+e));else a.getRandomValues(d);return typeof u=="function"?Je.process.nextTick(function(){u(null,d)}):d}return P2.exports}var kb={exports:{}};typeof Object.create=="function"?kb.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:kb.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var Xt=kb.exports,W2={exports:{}},WE;function Yh(){if(WE)return W2.exports;WE=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(_,O,U){return Function.prototype.apply.call(_,O,U)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:r=function(_){return Object.getOwnPropertyNames(_)};function n(N){console&&console.warn&&console.warn(N)}var a=Number.isNaN||function(_){return _!==_};function i(){i.init.call(this)}W2.exports=i,W2.exports.once=S,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function u(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(N){if(typeof N!="number"||N<0||a(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");o=N}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||a(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this};function d(N){return N._maxListeners===void 0?i.defaultMaxListeners:N._maxListeners}i.prototype.getMaxListeners=function(){return d(this)},i.prototype.emit=function(_){for(var O=[],U=1;U<arguments.length;U++)O.push(arguments[U]);var z=_==="error",F=this._events;if(F!==void 0)z=z&&F.error===void 0;else if(!z)return!1;if(z){var k;if(O.length>0&&(k=O[0]),k instanceof Error)throw k;var w=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw w.context=k,w}var s=F[_];if(s===void 0)return!1;if(typeof s=="function")t(s,this,O);else for(var l=s.length,f=E(s,l),U=0;U<l;++U)t(f[U],this,O);return!0};function h(N,_,O,U){var z,F,k;if(u(O),F=N._events,F===void 0?(F=N._events=Object.create(null),N._eventsCount=0):(F.newListener!==void 0&&(N.emit("newListener",_,O.listener?O.listener:O),F=N._events),k=F[_]),k===void 0)k=F[_]=O,++N._eventsCount;else if(typeof k=="function"?k=F[_]=U?[O,k]:[k,O]:U?k.unshift(O):k.push(O),z=d(N),z>0&&k.length>z&&!k.warned){k.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+k.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=N,w.type=_,w.count=k.length,n(w)}return N}i.prototype.addListener=function(_,O){return h(this,_,O,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(_,O){return h(this,_,O,!0)};function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(N,_,O){var U={fired:!1,wrapFn:void 0,target:N,type:_,listener:O},z=m.bind(U);return z.listener=O,U.wrapFn=z,z}i.prototype.once=function(_,O){return u(O),this.on(_,b(this,_,O)),this},i.prototype.prependOnceListener=function(_,O){return u(O),this.prependListener(_,b(this,_,O)),this},i.prototype.removeListener=function(_,O){var U,z,F,k,w;if(u(O),z=this._events,z===void 0)return this;if(U=z[_],U===void 0)return this;if(U===O||U.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete z[_],z.removeListener&&this.emit("removeListener",_,U.listener||O));else if(typeof U!="function"){for(F=-1,k=U.length-1;k>=0;k--)if(U[k]===O||U[k].listener===O){w=U[k].listener,F=k;break}if(F<0)return this;F===0?U.shift():T(U,F),U.length===1&&(z[_]=U[0]),z.removeListener!==void 0&&this.emit("removeListener",_,w||O)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(_){var O,U,z;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[_]),this;if(arguments.length===0){var F=Object.keys(U),k;for(z=0;z<F.length;++z)k=F[z],k!=="removeListener"&&this.removeAllListeners(k);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=U[_],typeof O=="function")this.removeListener(_,O);else if(O!==void 0)for(z=O.length-1;z>=0;z--)this.removeListener(_,O[z]);return this};function v(N,_,O){var U=N._events;if(U===void 0)return[];var z=U[_];return z===void 0?[]:typeof z=="function"?O?[z.listener||z]:[z]:O?I(z):E(z,z.length)}i.prototype.listeners=function(_){return v(this,_,!0)},i.prototype.rawListeners=function(_){return v(this,_,!1)},i.listenerCount=function(N,_){return typeof N.listenerCount=="function"?N.listenerCount(_):C.call(N,_)},i.prototype.listenerCount=C;function C(N){var _=this._events;if(_!==void 0){var O=_[N];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function E(N,_){for(var O=new Array(_),U=0;U<_;++U)O[U]=N[U];return O}function T(N,_){for(;_+1<N.length;_++)N[_]=N[_+1];N.pop()}function I(N){for(var _=new Array(N.length),O=0;O<_.length;++O)_[O]=N[O].listener||N[O];return _}function S(N,_){return new Promise(function(O,U){function z(k){N.removeListener(_,F),U(k)}function F(){typeof N.removeListener=="function"&&N.removeListener("error",z),O([].slice.call(arguments))}L(N,_,F,{once:!0}),_!=="error"&&D(N,z,{once:!0})})}function D(N,_,O){typeof N.on=="function"&&L(N,"error",_,O)}function L(N,_,O,U){if(typeof N.on=="function")U.once?N.once(_,O):N.on(_,O);else if(typeof N.addEventListener=="function")N.addEventListener(_,function z(F){U.once&&N.removeEventListener(_,z),O(F)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}return W2.exports}var Vm,HE;function dF(){return HE||(HE=1,Vm=Yh().EventEmitter),Vm}const Ire={},Nre=Object.freeze(Object.defineProperty({__proto__:null,default:Ire},Symbol.toStringTag,{value:"Module"})),Zh=jp(Nre);var $m,YE;function Lre(){if(YE)return $m;YE=1;function e(E,T){var I=Object.keys(E);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(E);T&&(S=S.filter(function(D){return Object.getOwnPropertyDescriptor(E,D).enumerable})),I.push.apply(I,S)}return I}function t(E){for(var T=1;T<arguments.length;T++){var I=arguments[T]!=null?arguments[T]:{};T%2?e(Object(I),!0).forEach(function(S){r(E,S,I[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(I)):e(Object(I)).forEach(function(S){Object.defineProperty(E,S,Object.getOwnPropertyDescriptor(I,S))})}return E}function r(E,T,I){return T=o(T),T in E?Object.defineProperty(E,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):E[T]=I,E}function n(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function a(E,T){for(var I=0;I<T.length;I++){var S=T[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,o(S.key),S)}}function i(E,T,I){return T&&a(E.prototype,T),Object.defineProperty(E,"prototype",{writable:!1}),E}function o(E){var T=u(E,"string");return typeof T=="symbol"?T:String(T)}function u(E,T){if(typeof E!="object"||E===null)return E;var I=E[Symbol.toPrimitive];if(I!==void 0){var S=I.call(E,T);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(E)}var d=vt,h=d.Buffer,m=Zh,b=m.inspect,v=b&&b.custom||"inspect";function C(E,T,I){h.prototype.copy.call(E,T,I)}return $m=function(){function E(){n(this,E),this.head=null,this.tail=null,this.length=0}return i(E,[{key:"push",value:function(I){var S={data:I,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(I){var S={data:I,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var I=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,I}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(I){if(this.length===0)return"";for(var S=this.head,D=""+S.data;S=S.next;)D+=I+S.data;return D}},{key:"concat",value:function(I){if(this.length===0)return h.alloc(0);for(var S=h.allocUnsafe(I>>>0),D=this.head,L=0;D;)C(D.data,S,L),L+=D.data.length,D=D.next;return S}},{key:"consume",value:function(I,S){var D;return I<this.head.data.length?(D=this.head.data.slice(0,I),this.head.data=this.head.data.slice(I)):I===this.head.data.length?D=this.shift():D=S?this._getString(I):this._getBuffer(I),D}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(I){var S=this.head,D=1,L=S.data;for(I-=L.length;S=S.next;){var N=S.data,_=I>N.length?N.length:I;if(_===N.length?L+=N:L+=N.slice(0,I),I-=_,I===0){_===N.length?(++D,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=N.slice(_));break}++D}return this.length-=D,L}},{key:"_getBuffer",value:function(I){var S=h.allocUnsafe(I),D=this.head,L=1;for(D.data.copy(S),I-=D.data.length;D=D.next;){var N=D.data,_=I>N.length?N.length:I;if(N.copy(S,S.length-I,0,_),I-=_,I===0){_===N.length?(++L,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=N.slice(_));break}++L}return this.length-=L,S}},{key:v,value:function(I,S){return b(this,t(t({},S),{},{depth:0,customInspect:!1}))}}]),E}(),$m}var Km,ZE;function hF(){if(ZE)return Km;ZE=1;function e(o,u){var d=this,h=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return h||m?(u?u(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Je.process.nextTick(a,this,o)):Je.process.nextTick(a,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(b){!u&&b?d._writableState?d._writableState.errorEmitted?Je.process.nextTick(r,d):(d._writableState.errorEmitted=!0,Je.process.nextTick(t,d,b)):Je.process.nextTick(t,d,b):u?(Je.process.nextTick(r,d),u(b)):Je.process.nextTick(r,d)}),this)}function t(o,u){a(o,u),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(o,u){o.emit("error",u)}function i(o,u){var d=o._readableState,h=o._writableState;d&&d.autoDestroy||h&&h.autoDestroy?o.destroy(u):o.emit("error",u)}return Km={destroy:e,undestroy:n,errorOrDestroy:i},Km}var Xm={},GE;function Kf(){if(GE)return Xm;GE=1;function e(u,d){u.prototype=Object.create(d.prototype),u.prototype.constructor=u,u.__proto__=d}var t={};function r(u,d,h){h||(h=Error);function m(v,C,E){return typeof d=="string"?d:d(v,C,E)}var b=function(v){e(C,v);function C(E,T,I){return v.call(this,m(E,T,I))||this}return C}(h);b.prototype.name=h.name,b.prototype.code=u,t[u]=b}function n(u,d){if(Array.isArray(u)){var h=u.length;return u=u.map(function(m){return String(m)}),h>2?"one of ".concat(d," ").concat(u.slice(0,h-1).join(", "),", or ")+u[h-1]:h===2?"one of ".concat(d," ").concat(u[0]," or ").concat(u[1]):"of ".concat(d," ").concat(u[0])}else return"of ".concat(d," ").concat(String(u))}function a(u,d,h){return u.substr(0,d.length)===d}function i(u,d,h){return(h===void 0||h>u.length)&&(h=u.length),u.substring(h-d.length,h)===d}function o(u,d,h){return typeof h!="number"&&(h=0),h+d.length>u.length?!1:u.indexOf(d,h)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,d){return'The value "'+d+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,d,h){var m;typeof d=="string"&&a(d,"not ")?(m="must not be",d=d.replace(/^not /,"")):m="must be";var b;if(i(u," argument"))b="The ".concat(u," ").concat(m," ").concat(n(d,"type"));else{var v=o(u,".")?"property":"argument";b='The "'.concat(u,'" ').concat(v," ").concat(m," ").concat(n(d,"type"))}return b+=". Received type ".concat(typeof h),b},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Xm.codes=t,Xm}var Jm,QE;function pF(){if(QE)return Jm;QE=1;var e=Kf().codes.ERR_INVALID_OPT_VALUE;function t(n,a,i){return n.highWaterMark!=null?n.highWaterMark:a?n[i]:null}function r(n,a,i,o){var u=t(a,o,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var d=o?i:"highWaterMark";throw new e(d,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Jm={getHighWaterMark:r},Jm}var eg,qE;function mF(){if(qE)return eg;qE=1,eg=e;function e(r,n){if(t("noDeprecation"))return r;var a=!1;function i(){if(!a){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),a=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!Ut.localStorage)return!1}catch{return!1}var n=Ut.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return eg}var tg,VE;function gF(){if(VE)return tg;VE=1,tg=z;function e(q){var W=this;this.next=null,this.entry=null,this.finish=function(){K(W,q)}}var t;z.WritableState=O;var r={deprecate:mF()},n=dF(),a=vt.Buffer,i=(typeof Ut<"u"?Ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(q){return a.from(q)}function u(q){return a.isBuffer(q)||q instanceof i}var d=hF(),h=pF(),m=h.getHighWaterMark,b=Kf().codes,v=b.ERR_INVALID_ARG_TYPE,C=b.ERR_METHOD_NOT_IMPLEMENTED,E=b.ERR_MULTIPLE_CALLBACK,T=b.ERR_STREAM_CANNOT_PIPE,I=b.ERR_STREAM_DESTROYED,S=b.ERR_STREAM_NULL_VALUES,D=b.ERR_STREAM_WRITE_AFTER_END,L=b.ERR_UNKNOWN_ENCODING,N=d.errorOrDestroy;Xt(z,n);function _(){}function O(q,W,G){t=t||yf(),q=q||{},typeof G!="boolean"&&(G=W instanceof t),this.objectMode=!!q.objectMode,G&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=m(this,q,"writableHighWaterMark",G),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var X=q.decodeStrings===!1;this.decodeStrings=!X,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){g(W,ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}O.prototype.getBuffer=function(){for(var W=this.bufferedRequest,G=[];W;)G.push(W),W=W.next;return G},function(){try{Object.defineProperty(O.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var U;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(W){return U.call(this,W)?!0:this!==z?!1:W&&W._writableState instanceof O}})):U=function(W){return W instanceof this};function z(q){t=t||yf();var W=this instanceof t;if(!W&&!U.call(z,this))return new z(q);this._writableState=new O(q,this,W),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),n.call(this)}z.prototype.pipe=function(){N(this,new T)};function F(q,W){var G=new D;N(q,G),Je.process.nextTick(W,G)}function k(q,W,G,X){var ne;return G===null?ne=new S:typeof G!="string"&&!W.objectMode&&(ne=new v("chunk",["string","Buffer"],G)),ne?(N(q,ne),Je.process.nextTick(X,ne),!1):!0}z.prototype.write=function(q,W,G){var X=this._writableState,ne=!1,te=!X.objectMode&&u(q);return te&&!a.isBuffer(q)&&(q=o(q)),typeof W=="function"&&(G=W,W=null),te?W="buffer":W||(W=X.defaultEncoding),typeof G!="function"&&(G=_),X.ending?F(this,G):(te||k(this,X,q,G))&&(X.pendingcb++,ne=s(this,X,te,q,W,G)),ne},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&y(this,q))},z.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new L(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function w(q,W,G){return!q.objectMode&&q.decodeStrings!==!1&&typeof W=="string"&&(W=a.from(W,G)),W}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function s(q,W,G,X,ne,te){if(!G){var V=w(W,X,ne);X!==V&&(G=!0,ne="buffer",X=V)}var oe=W.objectMode?1:X.length;W.length+=oe;var xe=W.length<W.highWaterMark;if(xe||(W.needDrain=!0),W.writing||W.corked){var fe=W.lastBufferedRequest;W.lastBufferedRequest={chunk:X,encoding:ne,isBuf:G,callback:te,next:null},fe?fe.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else l(q,W,!1,oe,X,ne,te);return xe}function l(q,W,G,X,ne,te,V){W.writelen=X,W.writecb=V,W.writing=!0,W.sync=!0,W.destroyed?W.onwrite(new I("write")):G?q._writev(ne,W.onwrite):q._write(ne,te,W.onwrite),W.sync=!1}function f(q,W,G,X,ne){--W.pendingcb,G?(Je.process.nextTick(ne,X),Je.process.nextTick(R,q,W),q._writableState.errorEmitted=!0,N(q,X)):(ne(X),q._writableState.errorEmitted=!0,N(q,X),R(q,W))}function p(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function g(q,W){var G=q._writableState,X=G.sync,ne=G.writecb;if(typeof ne!="function")throw new E;if(p(G),W)f(q,G,X,W,ne);else{var te=c(G)||q.destroyed;!te&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&y(q,G),X?Je.process.nextTick(x,q,G,te,ne):x(q,G,te,ne)}}function x(q,W,G,X){G||A(q,W),W.pendingcb--,X(),R(q,W)}function A(q,W){W.length===0&&W.needDrain&&(W.needDrain=!1,q.emit("drain"))}function y(q,W){W.bufferProcessing=!0;var G=W.bufferedRequest;if(q._writev&&G&&G.next){var X=W.bufferedRequestCount,ne=new Array(X),te=W.corkedRequestsFree;te.entry=G;for(var V=0,oe=!0;G;)ne[V]=G,G.isBuf||(oe=!1),G=G.next,V+=1;ne.allBuffers=oe,l(q,W,!0,W.length,ne,"",te.finish),W.pendingcb++,W.lastBufferedRequest=null,te.next?(W.corkedRequestsFree=te.next,te.next=null):W.corkedRequestsFree=new e(W),W.bufferedRequestCount=0}else{for(;G;){var xe=G.chunk,fe=G.encoding,me=G.callback,Ze=W.objectMode?1:xe.length;if(l(q,W,!1,Ze,xe,fe,me),G=G.next,W.bufferedRequestCount--,W.writing)break}G===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=G,W.bufferProcessing=!1}z.prototype._write=function(q,W,G){G(new C("_write()"))},z.prototype._writev=null,z.prototype.end=function(q,W,G){var X=this._writableState;return typeof q=="function"?(G=q,q=null,W=null):typeof W=="function"&&(G=W,W=null),q!=null&&this.write(q,W),X.corked&&(X.corked=1,this.uncork()),X.ending||Q(this,X,G),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function M(q,W){q._final(function(G){W.pendingcb--,G&&N(q,G),W.prefinished=!0,q.emit("prefinish"),R(q,W)})}function B(q,W){!W.prefinished&&!W.finalCalled&&(typeof q._final=="function"&&!W.destroyed?(W.pendingcb++,W.finalCalled=!0,Je.process.nextTick(M,q,W)):(W.prefinished=!0,q.emit("prefinish")))}function R(q,W){var G=c(W);if(G&&(B(q,W),W.pendingcb===0&&(W.finished=!0,q.emit("finish"),W.autoDestroy))){var X=q._readableState;(!X||X.autoDestroy&&X.endEmitted)&&q.destroy()}return G}function Q(q,W,G){W.ending=!0,R(q,W),G&&(W.finished?Je.process.nextTick(G):q.once("finish",G)),W.ended=!0,q.writable=!1}function K(q,W,G){var X=q.entry;for(q.entry=null;X;){var ne=X.callback;W.pendingcb--,ne(G),X=X.next}W.corkedRequestsFree.next=q}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(q,W){W(q)},tg}var rg,$E;function yf(){if($E)return rg;$E=1;var e=Object.keys||function(h){var m=[];for(var b in h)m.push(b);return m};rg=o;var t=yF(),r=gF();Xt(o,t);for(var n=e(r.prototype),a=0;a<n.length;a++){var i=n[a];o.prototype[i]||(o.prototype[i]=r.prototype[i])}function o(h){if(!(this instanceof o))return new o(h);t.call(this,h),r.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||Je.process.nextTick(d,this)}function d(h){h.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=m,this._writableState.destroyed=m)}}),rg}var ng={},KE;function zb(){if(KE)return ng;KE=1;var e=sr.Buffer,t=e.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(S){if(!S)return"utf8";for(var D;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(D)return;S=(""+S).toLowerCase(),D=!0}}function n(S){var D=r(S);if(typeof D!="string"&&(e.isEncoding===t||!t(S)))throw new Error("Unknown encoding: "+S);return D||S}ng.StringDecoder=a;function a(S){this.encoding=n(S);var D;switch(this.encoding){case"utf16le":this.text=b,this.end=v,D=4;break;case"utf8":this.fillLast=d,D=4;break;case"base64":this.text=C,this.end=E,D=3;break;default:this.write=T,this.end=I;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(D)}a.prototype.write=function(S){if(S.length===0)return"";var D,L;if(this.lastNeed){if(D=this.fillLast(S),D===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;return L<S.length?D?D+this.text(S,L):this.text(S,L):D||""},a.prototype.end=m,a.prototype.text=h,a.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function i(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function o(S,D,L){var N=D.length-1;if(N<L)return 0;var _=i(D[N]);return _>=0?(_>0&&(S.lastNeed=_-1),_):--N<L||_===-2?0:(_=i(D[N]),_>=0?(_>0&&(S.lastNeed=_-2),_):--N<L||_===-2?0:(_=i(D[N]),_>=0?(_>0&&(_===2?_=0:S.lastNeed=_-3),_):0))}function u(S,D,L){if((D[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&D.length>1){if((D[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&D.length>2&&(D[2]&192)!==128)return S.lastNeed=2,"�"}}function d(S){var D=this.lastTotal-this.lastNeed,L=u(this,S);if(L!==void 0)return L;if(this.lastNeed<=S.length)return S.copy(this.lastChar,D,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,D,0,S.length),this.lastNeed-=S.length}function h(S,D){var L=o(this,S,D);if(!this.lastNeed)return S.toString("utf8",D);this.lastTotal=L;var N=S.length-(L-this.lastNeed);return S.copy(this.lastChar,0,N),S.toString("utf8",D,N)}function m(S){var D=S&&S.length?this.write(S):"";return this.lastNeed?D+"�":D}function b(S,D){if((S.length-D)%2===0){var L=S.toString("utf16le",D);if(L){var N=L.charCodeAt(L.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",D,S.length-1)}function v(S){var D=S&&S.length?this.write(S):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return D+this.lastChar.toString("utf16le",0,L)}return D}function C(S,D){var L=(S.length-D)%3;return L===0?S.toString("base64",D):(this.lastNeed=3-L,this.lastTotal=3,L===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",D,S.length-L))}function E(S){var D=S&&S.length?this.write(S):"";return this.lastNeed?D+this.lastChar.toString("base64",0,3-this.lastNeed):D}function T(S){return S.toString(this.encoding)}function I(S){return S&&S.length?this.write(S):""}return ng}var ig,XE;function Ix(){if(XE)return ig;XE=1;var e=Kf().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];i.apply(this,d)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function a(i,o,u){if(typeof o=="function")return a(i,null,o);o||(o={}),u=t(u||r);var d=o.readable||o.readable!==!1&&i.readable,h=o.writable||o.writable!==!1&&i.writable,m=function(){i.writable||v()},b=i._writableState&&i._writableState.finished,v=function(){h=!1,b=!0,d||u.call(i)},C=i._readableState&&i._readableState.endEmitted,E=function(){d=!1,C=!0,h||u.call(i)},T=function(L){u.call(i,L)},I=function(){var L;if(d&&!C)return(!i._readableState||!i._readableState.ended)&&(L=new e),u.call(i,L);if(h&&!b)return(!i._writableState||!i._writableState.ended)&&(L=new e),u.call(i,L)},S=function(){i.req.on("finish",v)};return n(i)?(i.on("complete",v),i.on("abort",I),i.req?S():i.on("request",S)):h&&!i._writableState&&(i.on("end",m),i.on("close",m)),i.on("end",E),i.on("finish",v),o.error!==!1&&i.on("error",T),i.on("close",I),function(){i.removeListener("complete",v),i.removeListener("abort",I),i.removeListener("request",S),i.req&&i.req.removeListener("finish",v),i.removeListener("end",m),i.removeListener("close",m),i.removeListener("finish",v),i.removeListener("end",E),i.removeListener("error",T),i.removeListener("close",I)}}return ig=a,ig}var ag,JE;function jre(){if(JE)return ag;JE=1;var e;function t(L,N,_){return N=r(N),N in L?Object.defineProperty(L,N,{value:_,enumerable:!0,configurable:!0,writable:!0}):L[N]=_,L}function r(L){var N=n(L,"string");return typeof N=="symbol"?N:String(N)}function n(L,N){if(typeof L!="object"||L===null)return L;var _=L[Symbol.toPrimitive];if(_!==void 0){var O=_.call(L,N);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(L)}var a=Ix(),i=Symbol("lastResolve"),o=Symbol("lastReject"),u=Symbol("error"),d=Symbol("ended"),h=Symbol("lastPromise"),m=Symbol("handlePromise"),b=Symbol("stream");function v(L,N){return{value:L,done:N}}function C(L){var N=L[i];if(N!==null){var _=L[b].read();_!==null&&(L[h]=null,L[i]=null,L[o]=null,N(v(_,!1)))}}function E(L){Je.process.nextTick(C,L)}function T(L,N){return function(_,O){L.then(function(){if(N[d]){_(v(void 0,!0));return}N[m](_,O)},O)}}var I=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((e={get stream(){return this[b]},next:function(){var N=this,_=this[u];if(_!==null)return Promise.reject(_);if(this[d])return Promise.resolve(v(void 0,!0));if(this[b].destroyed)return new Promise(function(F,k){Je.process.nextTick(function(){N[u]?k(N[u]):F(v(void 0,!0))})});var O=this[h],U;if(O)U=new Promise(T(O,this));else{var z=this[b].read();if(z!==null)return Promise.resolve(v(z,!1));U=new Promise(this[m])}return this[h]=U,U}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var N=this;return new Promise(function(_,O){N[b].destroy(null,function(U){if(U){O(U);return}_(v(void 0,!0))})})}),e),I),D=function(N){var _,O=Object.create(S,(_={},t(_,b,{value:N,writable:!0}),t(_,i,{value:null,writable:!0}),t(_,o,{value:null,writable:!0}),t(_,u,{value:null,writable:!0}),t(_,d,{value:N._readableState.endEmitted,writable:!0}),t(_,m,{value:function(z,F){var k=O[b].read();k?(O[h]=null,O[i]=null,O[o]=null,z(v(k,!1))):(O[i]=z,O[o]=F)},writable:!0}),_));return O[h]=null,a(N,function(U){if(U&&U.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=O[o];z!==null&&(O[h]=null,O[i]=null,O[o]=null,z(U)),O[u]=U;return}var F=O[i];F!==null&&(O[h]=null,O[i]=null,O[o]=null,F(v(void 0,!0))),O[d]=!0}),N.on("readable",E.bind(null,O)),O};return ag=D,ag}var sg,eS;function Bre(){return eS||(eS=1,sg=function(){throw new Error("Readable.from is not available in the browser")}),sg}var og,tS;function yF(){if(tS)return og;tS=1,og=F;var e;F.ReadableState=z,Yh().EventEmitter;var t=function(V,oe){return V.listeners(oe).length},r=dF(),n=vt.Buffer,a=(typeof Ut<"u"?Ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(te){return n.from(te)}function o(te){return n.isBuffer(te)||te instanceof a}var u=Zh,d;u&&u.debuglog?d=u.debuglog("stream"):d=function(){};var h=Lre(),m=hF(),b=pF(),v=b.getHighWaterMark,C=Kf().codes,E=C.ERR_INVALID_ARG_TYPE,T=C.ERR_STREAM_PUSH_AFTER_EOF,I=C.ERR_METHOD_NOT_IMPLEMENTED,S=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,D,L,N;Xt(F,r);var _=m.errorOrDestroy,O=["error","close","destroy","pause","resume"];function U(te,V,oe){if(typeof te.prependListener=="function")return te.prependListener(V,oe);!te._events||!te._events[V]?te.on(V,oe):Array.isArray(te._events[V])?te._events[V].unshift(oe):te._events[V]=[oe,te._events[V]]}function z(te,V,oe){e=e||yf(),te=te||{},typeof oe!="boolean"&&(oe=V instanceof e),this.objectMode=!!te.objectMode,oe&&(this.objectMode=this.objectMode||!!te.readableObjectMode),this.highWaterMark=v(this,te,"readableHighWaterMark",oe),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=te.emitClose!==!1,this.autoDestroy=!!te.autoDestroy,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(D||(D=zb().StringDecoder),this.decoder=new D(te.encoding),this.encoding=te.encoding)}function F(te){if(e=e||yf(),!(this instanceof F))return new F(te);var V=this instanceof e;this._readableState=new z(te,this,V),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),r.call(this)}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),F.prototype.destroy=m.destroy,F.prototype._undestroy=m.undestroy,F.prototype._destroy=function(te,V){V(te)},F.prototype.push=function(te,V){var oe=this._readableState,xe;return oe.objectMode?xe=!0:typeof te=="string"&&(V=V||oe.defaultEncoding,V!==oe.encoding&&(te=n.from(te,V),V=""),xe=!0),k(this,te,V,!1,xe)},F.prototype.unshift=function(te){return k(this,te,null,!0,!1)};function k(te,V,oe,xe,fe){d("readableAddChunk",V);var me=te._readableState;if(V===null)me.reading=!1,g(te,me);else{var Ze;if(fe||(Ze=s(me,V)),Ze)_(te,Ze);else if(me.objectMode||V&&V.length>0)if(typeof V!="string"&&!me.objectMode&&Object.getPrototypeOf(V)!==n.prototype&&(V=i(V)),xe)me.endEmitted?_(te,new S):w(te,me,V,!0);else if(me.ended)_(te,new T);else{if(me.destroyed)return!1;me.reading=!1,me.decoder&&!oe?(V=me.decoder.write(V),me.objectMode||V.length!==0?w(te,me,V,!1):y(te,me)):w(te,me,V,!1)}else xe||(me.reading=!1,y(te,me))}return!me.ended&&(me.length<me.highWaterMark||me.length===0)}function w(te,V,oe,xe){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,te.emit("data",oe)):(V.length+=V.objectMode?1:oe.length,xe?V.buffer.unshift(oe):V.buffer.push(oe),V.needReadable&&x(te)),y(te,V)}function s(te,V){var oe;return!o(V)&&typeof V!="string"&&V!==void 0&&!te.objectMode&&(oe=new E("chunk",["string","Buffer","Uint8Array"],V)),oe}F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(te){D||(D=zb().StringDecoder);var V=new D(te);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,xe="";oe!==null;)xe+=V.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),xe!==""&&this._readableState.buffer.push(xe),this._readableState.length=xe.length,this};var l=1073741824;function f(te){return te>=l?te=l:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function p(te,V){return te<=0||V.length===0&&V.ended?0:V.objectMode?1:te!==te?V.flowing&&V.length?V.buffer.head.data.length:V.length:(te>V.highWaterMark&&(V.highWaterMark=f(te)),te<=V.length?te:V.ended?V.length:(V.needReadable=!0,0))}F.prototype.read=function(te){d("read",te),te=parseInt(te,10);var V=this._readableState,oe=te;if(te!==0&&(V.emittedReadable=!1),te===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return d("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?G(this):x(this),null;if(te=p(te,V),te===0&&V.ended)return V.length===0&&G(this),null;var xe=V.needReadable;d("need readable",xe),(V.length===0||V.length-te<V.highWaterMark)&&(xe=!0,d("length less than watermark",xe)),V.ended||V.reading?(xe=!1,d("reading or ended",xe)):xe&&(d("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(te=p(oe,V)));var fe;return te>0?fe=W(te,V):fe=null,fe===null?(V.needReadable=V.length<=V.highWaterMark,te=0):(V.length-=te,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),oe!==te&&V.ended&&G(this)),fe!==null&&this.emit("data",fe),fe};function g(te,V){if(d("onEofChunk"),!V.ended){if(V.decoder){var oe=V.decoder.end();oe&&oe.length&&(V.buffer.push(oe),V.length+=V.objectMode?1:oe.length)}V.ended=!0,V.sync?x(te):(V.needReadable=!1,V.emittedReadable||(V.emittedReadable=!0,A(te)))}}function x(te){var V=te._readableState;d("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(d("emitReadable",V.flowing),V.emittedReadable=!0,Je.process.nextTick(A,te))}function A(te){var V=te._readableState;d("emitReadable_",V.destroyed,V.length,V.ended),!V.destroyed&&(V.length||V.ended)&&(te.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,q(te)}function y(te,V){V.readingMore||(V.readingMore=!0,Je.process.nextTick(c,te,V))}function c(te,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var oe=V.length;if(d("maybeReadMore read 0"),te.read(0),oe===V.length)break}V.readingMore=!1}F.prototype._read=function(te){_(this,new I("_read()"))},F.prototype.pipe=function(te,V){var oe=this,xe=this._readableState;switch(xe.pipesCount){case 0:xe.pipes=te;break;case 1:xe.pipes=[xe.pipes,te];break;default:xe.pipes.push(te);break}xe.pipesCount+=1,d("pipe count=%d opts=%j",xe.pipesCount,V);var fe=(!V||V.end!==!1)&&te!==Je.process.stdout&&te!==Je.process.stderr,me=fe?he:gt;xe.endEmitted?Je.process.nextTick(me):oe.once("end",me),te.on("unpipe",Ze);function Ze($,P){d("onunpipe"),$===oe&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,ye())}function he(){d("onend"),te.end()}var Se=M(oe);te.on("drain",Se);var Ke=!1;function ye(){d("cleanup"),te.removeListener("close",pe),te.removeListener("finish",we),te.removeListener("drain",Se),te.removeListener("error",Fe),te.removeListener("unpipe",Ze),oe.removeListener("end",he),oe.removeListener("end",gt),oe.removeListener("data",ce),Ke=!0,xe.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&Se()}oe.on("data",ce);function ce($){d("ondata");var P=te.write($);d("dest.write",P),P===!1&&((xe.pipesCount===1&&xe.pipes===te||xe.pipesCount>1&&ne(xe.pipes,te)!==-1)&&!Ke&&(d("false write response, pause",xe.awaitDrain),xe.awaitDrain++),oe.pause())}function Fe($){d("onerror",$),gt(),te.removeListener("error",Fe),t(te,"error")===0&&_(te,$)}U(te,"error",Fe);function pe(){te.removeListener("finish",we),gt()}te.once("close",pe);function we(){d("onfinish"),te.removeListener("close",pe),gt()}te.once("finish",we);function gt(){d("unpipe"),oe.unpipe(te)}return te.emit("pipe",oe),xe.flowing||(d("pipe resume"),oe.resume()),te};function M(te){return function(){var oe=te._readableState;d("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&t(te,"data")&&(oe.flowing=!0,q(te))}}F.prototype.unpipe=function(te){var V=this._readableState,oe={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return te&&te!==V.pipes?this:(te||(te=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,te&&te.emit("unpipe",this,oe),this);if(!te){var xe=V.pipes,fe=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var me=0;me<fe;me++)xe[me].emit("unpipe",this,{hasUnpiped:!1});return this}var Ze=ne(V.pipes,te);return Ze===-1?this:(V.pipes.splice(Ze,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),te.emit("unpipe",this,oe),this)},F.prototype.on=function(te,V){var oe=r.prototype.on.call(this,te,V),xe=this._readableState;return te==="data"?(xe.readableListening=this.listenerCount("readable")>0,xe.flowing!==!1&&this.resume()):te==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,d("on readable",xe.length,xe.reading),xe.length?x(this):xe.reading||Je.process.nextTick(R,this)),oe},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(te,V){var oe=r.prototype.removeListener.call(this,te,V);return te==="readable"&&Je.process.nextTick(B,this),oe},F.prototype.removeAllListeners=function(te){var V=r.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&Je.process.nextTick(B,this),V};function B(te){var V=te._readableState;V.readableListening=te.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:te.listenerCount("data")>0&&te.resume()}function R(te){d("readable nexttick read 0"),te.read(0)}F.prototype.resume=function(){var te=this._readableState;return te.flowing||(d("resume"),te.flowing=!te.readableListening,Q(this,te)),te.paused=!1,this};function Q(te,V){V.resumeScheduled||(V.resumeScheduled=!0,Je.process.nextTick(K,te,V))}function K(te,V){d("resume",V.reading),V.reading||te.read(0),V.resumeScheduled=!1,te.emit("resume"),q(te),V.flowing&&!V.reading&&te.read(0)}F.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(te){var V=te._readableState;for(d("flow",V.flowing);V.flowing&&te.read()!==null;);}F.prototype.wrap=function(te){var V=this,oe=this._readableState,xe=!1;te.on("end",function(){if(d("wrapped end"),oe.decoder&&!oe.ended){var Ze=oe.decoder.end();Ze&&Ze.length&&V.push(Ze)}V.push(null)}),te.on("data",function(Ze){if(d("wrapped data"),oe.decoder&&(Ze=oe.decoder.write(Ze)),!(oe.objectMode&&Ze==null)&&!(!oe.objectMode&&(!Ze||!Ze.length))){var he=V.push(Ze);he||(xe=!0,te.pause())}});for(var fe in te)this[fe]===void 0&&typeof te[fe]=="function"&&(this[fe]=function(he){return function(){return te[he].apply(te,arguments)}}(fe));for(var me=0;me<O.length;me++)te.on(O[me],this.emit.bind(this,O[me]));return this._read=function(Ze){d("wrapped _read",Ze),xe&&(xe=!1,te.resume())},this},typeof Symbol=="function"&&(F.prototype[Symbol.asyncIterator]=function(){return L===void 0&&(L=jre()),L(this)}),Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(F.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(F.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(V){this._readableState&&(this._readableState.flowing=V)}}),F._fromList=W,Object.defineProperty(F.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function W(te,V){if(V.length===0)return null;var oe;return V.objectMode?oe=V.buffer.shift():!te||te>=V.length?(V.decoder?oe=V.buffer.join(""):V.buffer.length===1?oe=V.buffer.first():oe=V.buffer.concat(V.length),V.buffer.clear()):oe=V.buffer.consume(te,V.decoder),oe}function G(te){var V=te._readableState;d("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,Je.process.nextTick(X,V,te))}function X(te,V){if(d("endReadableNT",te.endEmitted,te.length),!te.endEmitted&&te.length===0&&(te.endEmitted=!0,V.readable=!1,V.emit("end"),te.autoDestroy)){var oe=V._writableState;(!oe||oe.autoDestroy&&oe.finished)&&V.destroy()}}typeof Symbol=="function"&&(F.from=function(te,V){return N===void 0&&(N=Bre()),N(F,te,V)});function ne(te,V){for(var oe=0,xe=te.length;oe<xe;oe++)if(te[oe]===V)return oe;return-1}return og}var cg,rS;function bF(){if(rS)return cg;rS=1,cg=u;var e=Kf().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,i=yf();Xt(u,i);function o(m,b){var v=this._transformState;v.transforming=!1;var C=v.writecb;if(C===null)return this.emit("error",new r);v.writechunk=null,v.writecb=null,b!=null&&this.push(b),C(m);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function u(m){if(!(this instanceof u))return new u(m);i.call(this,m),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.on("prefinish",d)}function d(){var m=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(b,v){h(m,b,v)}):h(this,null,null)}u.prototype.push=function(m,b){return this._transformState.needTransform=!1,i.prototype.push.call(this,m,b)},u.prototype._transform=function(m,b,v){v(new t("_transform()"))},u.prototype._write=function(m,b,v){var C=this._transformState;if(C.writecb=v,C.writechunk=m,C.writeencoding=b,!C.transforming){var E=this._readableState;(C.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},u.prototype._read=function(m){var b=this._transformState;b.writechunk!==null&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},u.prototype._destroy=function(m,b){i.prototype._destroy.call(this,m,function(v){b(v)})};function h(m,b,v){if(b)return m.emit("error",b);if(v!=null&&m.push(v),m._writableState.length)throw new a;if(m._transformState.transforming)throw new n;return m.push(null)}return cg}var lg,nS;function kre(){if(nS)return lg;nS=1,lg=t;var e=bF();Xt(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,a){a(null,r)},lg}var ug,iS;function zre(){if(iS)return ug;iS=1;var e;function t(v){var C=!1;return function(){C||(C=!0,v.apply(void 0,arguments))}}var r=Kf().codes,n=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function i(v){if(v)throw v}function o(v){return v.setHeader&&typeof v.abort=="function"}function u(v,C,E,T){T=t(T);var I=!1;v.on("close",function(){I=!0}),e===void 0&&(e=Ix()),e(v,{readable:C,writable:E},function(D){if(D)return T(D);I=!0,T()});var S=!1;return function(D){if(!I&&!S){if(S=!0,o(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();T(D||new a("pipe"))}}}function d(v){v()}function h(v,C){return v.pipe(C)}function m(v){return!v.length||typeof v[v.length-1]!="function"?i:v.pop()}function b(){for(var v=arguments.length,C=new Array(v),E=0;E<v;E++)C[E]=arguments[E];var T=m(C);if(Array.isArray(C[0])&&(C=C[0]),C.length<2)throw new n("streams");var I,S=C.map(function(D,L){var N=L<C.length-1,_=L>0;return u(D,N,_,function(O){I||(I=O),O&&S.forEach(d),!N&&(S.forEach(d),T(I))})});return C.reduce(h)}return ug=b,ug}var Nx=ws,Lx=Yh().EventEmitter,_re=Xt;_re(ws,Lx);ws.Readable=yF();ws.Writable=gF();ws.Duplex=yf();ws.Transform=bF();ws.PassThrough=kre();ws.finished=Ix();ws.pipeline=zre();ws.Stream=ws;function ws(){Lx.call(this)}ws.prototype.pipe=function(e,t){var r=this;function n(m){e.writable&&e.write(m)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",u));var i=!1;function o(){i||(i=!0,e.end())}function u(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function d(m){if(h(),Lx.listenerCount(this,"error")===0)throw m}r.on("error",d),e.on("error",d);function h(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",h),r.removeListener("close",h),e.removeListener("close",h)}return r.on("end",h),r.on("close",h),e.on("close",h),e.emit("pipe",r),e};const wge=Ya(Nx);var fg,aS;function MF(){if(aS)return fg;aS=1;var e=sr.Buffer,t=Nx.Transform,r=Xt;function n(u){t.call(this),this._block=e.allocUnsafe(u),this._blockSize=u,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(n,t),n.prototype._transform=function(u,d,h){var m=null;try{this.update(u,d)}catch(b){m=b}h(m)},n.prototype._flush=function(u){var d=null;try{this.push(this.digest())}catch(h){d=h}u(d)};var a=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);function o(u,d){if(u instanceof e)return u;if(typeof u=="string")return e.from(u,d);if(i&&ArrayBuffer.isView(u)){if(u.byteLength===0)return e.alloc(0);var h=e.from(u.buffer,u.byteOffset,u.byteLength);if(h.byteLength===u.byteLength)return h}if(a&&u instanceof Uint8Array||e.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return e.from(u);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return n.prototype.update=function(u,d){if(this._finalized)throw new Error("Digest already called");u=o(u,d);for(var h=this._block,m=0;this._blockOffset+u.length-m>=this._blockSize;){for(var b=this._blockOffset;b<this._blockSize;)h[b++]=u[m++];this._update(),this._blockOffset=0}for(;m<u.length;)h[this._blockOffset++]=u[m++];for(var v=0,C=u.length*8;C>0;++v)this._length[v]+=C,C=this._length[v]/4294967296|0,C>0&&(this._length[v]-=4294967296*C);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(u){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();u!==void 0&&(d=d.toString(u)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return d},n.prototype._digest=function(){throw new Error("_digest is not implemented")},fg=n,fg}var dg,sS;function jx(){if(sS)return dg;sS=1;var e=Xt,t=MF(),r=sr.Buffer,n=new Array(16);function a(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}e(a,t),a.prototype._update=function(){for(var m=n,b=0;b<16;++b)m[b]=this._block.readInt32LE(b*4);var v=this._a,C=this._b,E=this._c,T=this._d;v=o(v,C,E,T,m[0],3614090360,7),T=o(T,v,C,E,m[1],3905402710,12),E=o(E,T,v,C,m[2],606105819,17),C=o(C,E,T,v,m[3],3250441966,22),v=o(v,C,E,T,m[4],4118548399,7),T=o(T,v,C,E,m[5],1200080426,12),E=o(E,T,v,C,m[6],2821735955,17),C=o(C,E,T,v,m[7],4249261313,22),v=o(v,C,E,T,m[8],1770035416,7),T=o(T,v,C,E,m[9],2336552879,12),E=o(E,T,v,C,m[10],4294925233,17),C=o(C,E,T,v,m[11],2304563134,22),v=o(v,C,E,T,m[12],1804603682,7),T=o(T,v,C,E,m[13],4254626195,12),E=o(E,T,v,C,m[14],2792965006,17),C=o(C,E,T,v,m[15],1236535329,22),v=u(v,C,E,T,m[1],4129170786,5),T=u(T,v,C,E,m[6],3225465664,9),E=u(E,T,v,C,m[11],643717713,14),C=u(C,E,T,v,m[0],3921069994,20),v=u(v,C,E,T,m[5],3593408605,5),T=u(T,v,C,E,m[10],38016083,9),E=u(E,T,v,C,m[15],3634488961,14),C=u(C,E,T,v,m[4],3889429448,20),v=u(v,C,E,T,m[9],568446438,5),T=u(T,v,C,E,m[14],3275163606,9),E=u(E,T,v,C,m[3],4107603335,14),C=u(C,E,T,v,m[8],1163531501,20),v=u(v,C,E,T,m[13],2850285829,5),T=u(T,v,C,E,m[2],4243563512,9),E=u(E,T,v,C,m[7],1735328473,14),C=u(C,E,T,v,m[12],2368359562,20),v=d(v,C,E,T,m[5],4294588738,4),T=d(T,v,C,E,m[8],2272392833,11),E=d(E,T,v,C,m[11],1839030562,16),C=d(C,E,T,v,m[14],4259657740,23),v=d(v,C,E,T,m[1],2763975236,4),T=d(T,v,C,E,m[4],1272893353,11),E=d(E,T,v,C,m[7],4139469664,16),C=d(C,E,T,v,m[10],3200236656,23),v=d(v,C,E,T,m[13],681279174,4),T=d(T,v,C,E,m[0],3936430074,11),E=d(E,T,v,C,m[3],3572445317,16),C=d(C,E,T,v,m[6],76029189,23),v=d(v,C,E,T,m[9],3654602809,4),T=d(T,v,C,E,m[12],3873151461,11),E=d(E,T,v,C,m[15],530742520,16),C=d(C,E,T,v,m[2],3299628645,23),v=h(v,C,E,T,m[0],4096336452,6),T=h(T,v,C,E,m[7],1126891415,10),E=h(E,T,v,C,m[14],2878612391,15),C=h(C,E,T,v,m[5],4237533241,21),v=h(v,C,E,T,m[12],1700485571,6),T=h(T,v,C,E,m[3],2399980690,10),E=h(E,T,v,C,m[10],4293915773,15),C=h(C,E,T,v,m[1],2240044497,21),v=h(v,C,E,T,m[8],1873313359,6),T=h(T,v,C,E,m[15],4264355552,10),E=h(E,T,v,C,m[6],2734768916,15),C=h(C,E,T,v,m[13],1309151649,21),v=h(v,C,E,T,m[4],4149444226,6),T=h(T,v,C,E,m[11],3174756917,10),E=h(E,T,v,C,m[2],718787259,15),C=h(C,E,T,v,m[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+C|0,this._c=this._c+E|0,this._d=this._d+T|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=r.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m};function i(m,b){return m<<b|m>>>32-b}function o(m,b,v,C,E,T,I){return i(m+(b&v|~b&C)+E+T|0,I)+b|0}function u(m,b,v,C,E,T,I){return i(m+(b&C|v&~C)+E+T|0,I)+b|0}function d(m,b,v,C,E,T,I){return i(m+(b^v^C)+E+T|0,I)+b|0}function h(m,b,v,C,E,T,I){return i(m+(v^(b|~C))+E+T|0,I)+b|0}return dg=a,dg}var hg,oS;function Bx(){if(oS)return hg;oS=1;var e=vt.Buffer,t=Xt,r=MF(),n=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function m(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(m,r),m.prototype._update=function(){for(var S=n,D=0;D<16;++D)S[D]=this._block.readInt32LE(D*4);for(var L=this._a|0,N=this._b|0,_=this._c|0,O=this._d|0,U=this._e|0,z=this._a|0,F=this._b|0,k=this._c|0,w=this._d|0,s=this._e|0,l=0;l<80;l+=1){var f,p;l<16?(f=v(L,N,_,O,U,S[a[l]],d[0],o[l]),p=I(z,F,k,w,s,S[i[l]],h[0],u[l])):l<32?(f=C(L,N,_,O,U,S[a[l]],d[1],o[l]),p=T(z,F,k,w,s,S[i[l]],h[1],u[l])):l<48?(f=E(L,N,_,O,U,S[a[l]],d[2],o[l]),p=E(z,F,k,w,s,S[i[l]],h[2],u[l])):l<64?(f=T(L,N,_,O,U,S[a[l]],d[3],o[l]),p=C(z,F,k,w,s,S[i[l]],h[3],u[l])):(f=I(L,N,_,O,U,S[a[l]],d[4],o[l]),p=v(z,F,k,w,s,S[i[l]],h[4],u[l])),L=U,U=O,O=b(_,10),_=N,N=f,z=s,s=w,w=b(k,10),k=F,F=p}var g=this._b+_+w|0;this._b=this._c+O+s|0,this._c=this._d+U+z|0,this._d=this._e+L+F|0,this._e=this._a+N+k|0,this._a=g},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var S=e.alloc?e.alloc(20):new e(20);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S.writeInt32LE(this._e,16),S};function b(S,D){return S<<D|S>>>32-D}function v(S,D,L,N,_,O,U,z){return b(S+(D^L^N)+O+U|0,z)+_|0}function C(S,D,L,N,_,O,U,z){return b(S+(D&L|~D&N)+O+U|0,z)+_|0}function E(S,D,L,N,_,O,U,z){return b(S+((D|~L)^N)+O+U|0,z)+_|0}function T(S,D,L,N,_,O,U,z){return b(S+(D&N|L&~N)+O+U|0,z)+_|0}function I(S,D,L,N,_,O,U,z){return b(S+(D^(L|~N))+O+U|0,z)+_|0}return hg=m,hg}var pg={exports:{}},mg,cS;function Xf(){if(cS)return mg;cS=1;var e=sr.Buffer;function t(r,n){this._block=e.alloc(r),this._finalSize=n,this._blockSize=r,this._len=0}return t.prototype.update=function(r,n){typeof r=="string"&&(n=n||"utf8",r=e.from(r,n));for(var a=this._block,i=this._blockSize,o=r.length,u=this._len,d=0;d<o;){for(var h=u%i,m=Math.min(o-d,i-h),b=0;b<m;b++)a[h+b]=r[d+b];u+=m,d+=m,u%i===0&&this._update(a)}return this._len+=o,this},t.prototype.digest=function(r){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=this._len*8;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var i=(a&4294967295)>>>0,o=(a-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var u=this._hash();return r?u.toString(r):u},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},mg=t,mg}var gg,lS;function Fre(){if(lS)return gg;lS=1;var e=Xt,t=Xf(),r=sr.Buffer,n=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function i(){this.init(),this._w=a,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(h){return h<<5|h>>>27}function u(h){return h<<30|h>>>2}function d(h,m,b,v){return h===0?m&b|~m&v:h===2?m&b|m&v|b&v:m^b^v}return i.prototype._update=function(h){for(var m=this._w,b=this._a|0,v=this._b|0,C=this._c|0,E=this._d|0,T=this._e|0,I=0;I<16;++I)m[I]=h.readInt32BE(I*4);for(;I<80;++I)m[I]=m[I-3]^m[I-8]^m[I-14]^m[I-16];for(var S=0;S<80;++S){var D=~~(S/20),L=o(b)+d(D,v,C,E)+T+m[S]+n[D]|0;T=E,E=C,C=u(v),v=b,b=L}this._a=b+this._a|0,this._b=v+this._b|0,this._c=C+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},i.prototype._hash=function(){var h=r.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},gg=i,gg}var yg,uS;function Ore(){if(uS)return yg;uS=1;var e=Xt,t=Xf(),r=sr.Buffer,n=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function i(){this.init(),this._w=a,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(m){return m<<1|m>>>31}function u(m){return m<<5|m>>>27}function d(m){return m<<30|m>>>2}function h(m,b,v,C){return m===0?b&v|~b&C:m===2?b&v|b&C|v&C:b^v^C}return i.prototype._update=function(m){for(var b=this._w,v=this._a|0,C=this._b|0,E=this._c|0,T=this._d|0,I=this._e|0,S=0;S<16;++S)b[S]=m.readInt32BE(S*4);for(;S<80;++S)b[S]=o(b[S-3]^b[S-8]^b[S-14]^b[S-16]);for(var D=0;D<80;++D){var L=~~(D/20),N=u(v)+h(L,C,E,T)+I+b[D]+n[L]|0;I=T,T=E,E=d(C),C=v,v=N}this._a=v+this._a|0,this._b=C+this._b|0,this._c=E+this._c|0,this._d=T+this._d|0,this._e=I+this._e|0},i.prototype._hash=function(){var m=r.allocUnsafe(20);return m.writeInt32BE(this._a|0,0),m.writeInt32BE(this._b|0,4),m.writeInt32BE(this._c|0,8),m.writeInt32BE(this._d|0,12),m.writeInt32BE(this._e|0,16),m},yg=i,yg}var bg,fS;function xF(){if(fS)return bg;fS=1;var e=Xt,t=Xf(),r=sr.Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function i(){this.init(),this._w=a,t.call(this,64,56)}e(i,t),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function o(v,C,E){return E^v&(C^E)}function u(v,C,E){return v&C|E&(v|C)}function d(v){return(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10)}function h(v){return(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7)}function m(v){return(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3}function b(v){return(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10}return i.prototype._update=function(v){for(var C=this._w,E=this._a|0,T=this._b|0,I=this._c|0,S=this._d|0,D=this._e|0,L=this._f|0,N=this._g|0,_=this._h|0,O=0;O<16;++O)C[O]=v.readInt32BE(O*4);for(;O<64;++O)C[O]=b(C[O-2])+C[O-7]+m(C[O-15])+C[O-16]|0;for(var U=0;U<64;++U){var z=_+h(D)+o(D,L,N)+n[U]+C[U]|0,F=d(E)+u(E,T,I)|0;_=N,N=L,L=D,D=S+z|0,S=I,I=T,T=E,E=z+F|0}this._a=E+this._a|0,this._b=T+this._b|0,this._c=I+this._c|0,this._d=S+this._d|0,this._e=D+this._e|0,this._f=L+this._f|0,this._g=N+this._g|0,this._h=_+this._h|0},i.prototype._hash=function(){var v=r.allocUnsafe(32);return v.writeInt32BE(this._a,0),v.writeInt32BE(this._b,4),v.writeInt32BE(this._c,8),v.writeInt32BE(this._d,12),v.writeInt32BE(this._e,16),v.writeInt32BE(this._f,20),v.writeInt32BE(this._g,24),v.writeInt32BE(this._h,28),v},bg=i,bg}var Mg,dS;function Rre(){if(dS)return Mg;dS=1;var e=Xt,t=xF(),r=Xf(),n=sr.Buffer,a=new Array(64);function i(){this.init(),this._w=a,r.call(this,64,56)}return e(i,t),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var o=n.allocUnsafe(28);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o},Mg=i,Mg}var xg,hS;function vF(){if(hS)return xg;hS=1;var e=Xt,t=Xf(),r=sr.Buffer,n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function i(){this.init(),this._w=a,t.call(this,128,112)}e(i,t),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function o(T,I,S){return S^T&(I^S)}function u(T,I,S){return T&I|S&(T|I)}function d(T,I){return(T>>>28|I<<4)^(I>>>2|T<<30)^(I>>>7|T<<25)}function h(T,I){return(T>>>14|I<<18)^(T>>>18|I<<14)^(I>>>9|T<<23)}function m(T,I){return(T>>>1|I<<31)^(T>>>8|I<<24)^T>>>7}function b(T,I){return(T>>>1|I<<31)^(T>>>8|I<<24)^(T>>>7|I<<25)}function v(T,I){return(T>>>19|I<<13)^(I>>>29|T<<3)^T>>>6}function C(T,I){return(T>>>19|I<<13)^(I>>>29|T<<3)^(T>>>6|I<<26)}function E(T,I){return T>>>0<I>>>0?1:0}return i.prototype._update=function(T){for(var I=this._w,S=this._ah|0,D=this._bh|0,L=this._ch|0,N=this._dh|0,_=this._eh|0,O=this._fh|0,U=this._gh|0,z=this._hh|0,F=this._al|0,k=this._bl|0,w=this._cl|0,s=this._dl|0,l=this._el|0,f=this._fl|0,p=this._gl|0,g=this._hl|0,x=0;x<32;x+=2)I[x]=T.readInt32BE(x*4),I[x+1]=T.readInt32BE(x*4+4);for(;x<160;x+=2){var A=I[x-30],y=I[x-15*2+1],c=m(A,y),M=b(y,A);A=I[x-2*2],y=I[x-2*2+1];var B=v(A,y),R=C(y,A),Q=I[x-7*2],K=I[x-7*2+1],q=I[x-16*2],W=I[x-16*2+1],G=M+K|0,X=c+Q+E(G,M)|0;G=G+R|0,X=X+B+E(G,R)|0,G=G+W|0,X=X+q+E(G,W)|0,I[x]=X,I[x+1]=G}for(var ne=0;ne<160;ne+=2){X=I[ne],G=I[ne+1];var te=u(S,D,L),V=u(F,k,w),oe=d(S,F),xe=d(F,S),fe=h(_,l),me=h(l,_),Ze=n[ne],he=n[ne+1],Se=o(_,O,U),Ke=o(l,f,p),ye=g+me|0,ce=z+fe+E(ye,g)|0;ye=ye+Ke|0,ce=ce+Se+E(ye,Ke)|0,ye=ye+he|0,ce=ce+Ze+E(ye,he)|0,ye=ye+G|0,ce=ce+X+E(ye,G)|0;var Fe=xe+V|0,pe=oe+te+E(Fe,xe)|0;z=U,g=p,U=O,p=f,O=_,f=l,l=s+ye|0,_=N+ce+E(l,s)|0,N=L,s=w,L=D,w=k,D=S,k=F,F=ye+Fe|0,S=ce+pe+E(F,ye)|0}this._al=this._al+F|0,this._bl=this._bl+k|0,this._cl=this._cl+w|0,this._dl=this._dl+s|0,this._el=this._el+l|0,this._fl=this._fl+f|0,this._gl=this._gl+p|0,this._hl=this._hl+g|0,this._ah=this._ah+S+E(this._al,F)|0,this._bh=this._bh+D+E(this._bl,k)|0,this._ch=this._ch+L+E(this._cl,w)|0,this._dh=this._dh+N+E(this._dl,s)|0,this._eh=this._eh+_+E(this._el,l)|0,this._fh=this._fh+O+E(this._fl,f)|0,this._gh=this._gh+U+E(this._gl,p)|0,this._hh=this._hh+z+E(this._hl,g)|0},i.prototype._hash=function(){var T=r.allocUnsafe(64);function I(S,D,L){T.writeInt32BE(S,L),T.writeInt32BE(D,L+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),I(this._gh,this._gl,48),I(this._hh,this._hl,56),T},xg=i,xg}var vg,pS;function Ure(){if(pS)return vg;pS=1;var e=Xt,t=vF(),r=Xf(),n=sr.Buffer,a=new Array(160);function i(){this.init(),this._w=a,r.call(this,128,112)}return e(i,t),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var o=n.allocUnsafe(48);function u(d,h,m){o.writeInt32BE(d,m),o.writeInt32BE(h,m+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),o},vg=i,vg}var mS;function kx(){if(mS)return pg.exports;mS=1;var e=pg.exports=function(r){r=r.toLowerCase();var n=e[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n};return e.sha=Fre(),e.sha1=Ore(),e.sha224=Rre(),e.sha256=xF(),e.sha384=Ure(),e.sha512=vF(),pg.exports}var wg,gS;function Cl(){if(gS)return wg;gS=1;var e=sr.Buffer,t=Nx.Transform,r=zb().StringDecoder,n=Xt;function a(d){t.call(this),this.hashMode=typeof d=="string",this.hashMode?this[d]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(a,t);var i=typeof Uint8Array<"u",o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);function u(d,h){if(d instanceof e)return d;if(typeof d=="string")return e.from(d,h);if(o&&ArrayBuffer.isView(d)){if(d.byteLength===0)return e.alloc(0);var m=e.from(d.buffer,d.byteOffset,d.byteLength);if(m.byteLength===d.byteLength)return m}if(i&&d instanceof Uint8Array||e.isBuffer(d)&&d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return e.from(d);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return a.prototype.update=function(d,h,m){var b=u(d,h),v=this._update(b);return this.hashMode?this:(m&&(v=this._toString(v,m)),v)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(d,h,m){var b;try{this.hashMode?this._update(d):this.push(this._update(d))}catch(v){b=v}finally{m(b)}},a.prototype._flush=function(d){var h;try{this.push(this.__final())}catch(m){h=m}d(h)},a.prototype._finalOrDigest=function(d){var h=this.__final()||e.alloc(0);return d&&(h=this._toString(h,d,!0)),h},a.prototype._toString=function(d,h,m){if(this._decoder||(this._decoder=new r(h),this._encoding=h),this._encoding!==h)throw new Error("can’t switch encodings");var b=this._decoder.write(d);return m&&(b+=this._decoder.end()),b},wg=a,wg}var Cg,yS;function Gh(){if(yS)return Cg;yS=1;var e=Xt,t=jx(),r=Bx(),n=kx(),a=Cl();function i(o){a.call(this,"digest"),this._hash=o}return e(i,a),i.prototype._update=function(o){this._hash.update(o)},i.prototype._final=function(){return this._hash.digest()},Cg=function(u){return u=u.toLowerCase(),u==="md5"?new t:u==="rmd160"||u==="ripemd160"?new r:new i(n(u))},Cg}var Ag,bS;function Pre(){if(bS)return Ag;bS=1;var e=Xt,t=sr.Buffer,r=Cl(),n=t.alloc(128),a=64;function i(o,u){r.call(this,"digest"),typeof u=="string"&&(u=t.from(u)),this._alg=o,this._key=u,u.length>a?u=o(u):u.length<a&&(u=t.concat([u,n],a));for(var d=this._ipad=t.allocUnsafe(a),h=this._opad=t.allocUnsafe(a),m=0;m<a;m++)d[m]=u[m]^54,h[m]=u[m]^92;this._hash=[d]}return e(i,r),i.prototype._update=function(o){this._hash.push(o)},i.prototype._final=function(){var o=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,o]))},Ag=i,Ag}var Eg,MS;function wF(){if(MS)return Eg;MS=1;var e=jx();return Eg=function(t){return new e().update(t).digest()},Eg}var Sg,xS;function CF(){if(xS)return Sg;xS=1;var e=Xt,t=Pre(),r=Cl(),n=sr.Buffer,a=wF(),i=Bx(),o=kx(),u=n.alloc(128);function d(h,m){r.call(this,"digest"),typeof m=="string"&&(m=n.from(m));var b=h==="sha512"||h==="sha384"?128:64;if(this._alg=h,this._key=m,m.length>b){var v=h==="rmd160"?new i:o(h);m=v.update(m).digest()}else m.length<b&&(m=n.concat([m,u],b));for(var C=this._ipad=n.allocUnsafe(b),E=this._opad=n.allocUnsafe(b),T=0;T<b;T++)C[T]=m[T]^54,E[T]=m[T]^92;this._hash=h==="rmd160"?new i:o(h),this._hash.update(C)}return e(d,r),d.prototype._update=function(h){this._hash.update(h)},d.prototype._final=function(){var h=this._hash.digest(),m=this._alg==="rmd160"?new i:o(this._alg);return m.update(this._opad).update(h).digest()},Sg=function(m,b){return m=m.toLowerCase(),m==="rmd160"||m==="ripemd160"?new d("rmd160",b):m==="md5"?new t(a,b):new d(m,b)},Sg}const Wre={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},Hre={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},Yre={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},Zre={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},Gre={sign:"ecdsa",hash:"sha256",id:""},Qre={sign:"ecdsa",hash:"sha224",id:""},qre={sign:"ecdsa",hash:"sha384",id:""},Vre={sign:"ecdsa",hash:"sha512",id:""},$re={sign:"dsa",hash:"sha1",id:""},Kre={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},Xre={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},AF={sha224WithRSAEncryption:Wre,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:Hre,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:Yre,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:Zre,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:Gre,sha224:Qre,sha384:qre,sha512:Vre,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:$re,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:Kre,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:Xre,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var Dg,vS;function Jre(){return vS||(vS=1,Dg=AF),Dg}var H2={},Tg,wS;function EF(){if(wS)return Tg;wS=1;var e=Math.pow(2,30)-1;return Tg=function(t,r){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof r!="number")throw new TypeError("Key length not a number");if(r<0||r>e||r!==r)throw new TypeError("Bad key length")},Tg}var Ig,CS;function SF(){if(CS)return Ig;CS=1;var e;if(Ut.process&&Ut.process.browser)e="utf-8";else if(Ut.process&&Ut.process.version){var t=parseInt(Je.process.version.split(".")[0].slice(1),10);e=t>=6?"utf-8":"binary"}else e="utf-8";return Ig=e,Ig}var Ng,AS;function DF(){if(AS)return Ng;AS=1;var e=sr.Buffer;return Ng=function(t,r,n){if(e.isBuffer(t))return t;if(typeof t=="string")return e.from(t,r);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},Ng}var Lg,ES;function TF(){if(ES)return Lg;ES=1;var e=wF(),t=Bx(),r=kx(),n=sr.Buffer,a=EF(),i=SF(),o=DF(),u=n.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(v,C,E){var T=m(v),I=v==="sha512"||v==="sha384"?128:64;C.length>I?C=T(C):C.length<I&&(C=n.concat([C,u],I));for(var S=n.allocUnsafe(I+d[v]),D=n.allocUnsafe(I+d[v]),L=0;L<I;L++)S[L]=C[L]^54,D[L]=C[L]^92;var N=n.allocUnsafe(I+E+4);S.copy(N,0,0,I),this.ipad1=N,this.ipad2=S,this.opad=D,this.alg=v,this.blocksize=I,this.hash=T,this.size=d[v]}h.prototype.run=function(v,C){v.copy(C,this.blocksize);var E=this.hash(C);return E.copy(this.opad,this.blocksize),this.hash(this.opad)};function m(v){function C(T){return r(v).update(T).digest()}function E(T){return new t().update(T).digest()}return v==="rmd160"||v==="ripemd160"?E:v==="md5"?e:C}function b(v,C,E,T,I){a(E,T),v=o(v,i,"Password"),C=o(C,i,"Salt"),I=I||"sha1";var S=new h(I,v,C.length),D=n.allocUnsafe(T),L=n.allocUnsafe(C.length+4);C.copy(L,0,0,C.length);for(var N=0,_=d[I],O=Math.ceil(T/_),U=1;U<=O;U++){L.writeUInt32BE(U,C.length);for(var z=S.run(L,S.ipad1),F=z,k=1;k<E;k++){F=S.run(F,S.ipad2);for(var w=0;w<_;w++)z[w]^=F[w]}z.copy(D,N),N+=_}return D}return Lg=b,Lg}var jg,SS;function ene(){if(SS)return jg;SS=1;var e=sr.Buffer,t=EF(),r=SF(),n=TF(),a=DF(),i,o=Ut.crypto&&Ut.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(E){if(Ut.process&&!Ut.process.browser||!o||!o.importKey||!o.deriveBits)return Promise.resolve(!1);if(d[E]!==void 0)return d[E];i=i||e.alloc(8);var T=v(i,i,10,128,E).then(function(){return!0}).catch(function(){return!1});return d[E]=T,T}var m;function b(){return m||(Ut.process&&Ut.process.nextTick?m=Ut.process.nextTick:Ut.queueMicrotask?m=Ut.queueMicrotask:Ut.setImmediate?m=Ut.setImmediate:m=Ut.setTimeout,m)}function v(E,T,I,S,D){return o.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(L){return o.deriveBits({name:"PBKDF2",salt:T,iterations:I,hash:{name:D}},L,S<<3)}).then(function(L){return e.from(L)})}function C(E,T){E.then(function(I){b()(function(){T(null,I)})},function(I){b()(function(){T(I)})})}return jg=function(E,T,I,S,D,L){typeof D=="function"&&(L=D,D=void 0),D=D||"sha1";var N=u[D.toLowerCase()];if(!N||typeof Ut.Promise!="function"){b()(function(){var _;try{_=n(E,T,I,S,D)}catch(O){return L(O)}L(null,_)});return}if(t(I,S),E=a(E,r,"Password"),T=a(T,r,"Salt"),typeof L!="function")throw new Error("No callback provided to pbkdf2");C(h(N).then(function(_){return _?v(E,T,I,S,N):n(E,T,I,S,D)}),L)},jg}var DS;function IF(){return DS||(DS=1,H2.pbkdf2=ene(),H2.pbkdf2Sync=TF()),H2}var Qa={},Il={},Ea={},TS;function NF(){if(TS)return Ea;TS=1,Ea.readUInt32BE=function(a,i){var o=a[0+i]<<24|a[1+i]<<16|a[2+i]<<8|a[3+i];return o>>>0},Ea.writeUInt32BE=function(a,i,o){a[0+o]=i>>>24,a[1+o]=i>>>16&255,a[2+o]=i>>>8&255,a[3+o]=i&255},Ea.ip=function(a,i,o,u){for(var d=0,h=0,m=6;m>=0;m-=2){for(var b=0;b<=24;b+=8)d<<=1,d|=i>>>b+m&1;for(var b=0;b<=24;b+=8)d<<=1,d|=a>>>b+m&1}for(var m=6;m>=0;m-=2){for(var b=1;b<=25;b+=8)h<<=1,h|=i>>>b+m&1;for(var b=1;b<=25;b+=8)h<<=1,h|=a>>>b+m&1}o[u+0]=d>>>0,o[u+1]=h>>>0},Ea.rip=function(a,i,o,u){for(var d=0,h=0,m=0;m<4;m++)for(var b=24;b>=0;b-=8)d<<=1,d|=i>>>b+m&1,d<<=1,d|=a>>>b+m&1;for(var m=4;m<8;m++)for(var b=24;b>=0;b-=8)h<<=1,h|=i>>>b+m&1,h<<=1,h|=a>>>b+m&1;o[u+0]=d>>>0,o[u+1]=h>>>0},Ea.pc1=function(a,i,o,u){for(var d=0,h=0,m=7;m>=5;m--){for(var b=0;b<=24;b+=8)d<<=1,d|=i>>b+m&1;for(var b=0;b<=24;b+=8)d<<=1,d|=a>>b+m&1}for(var b=0;b<=24;b+=8)d<<=1,d|=i>>b+m&1;for(var m=1;m<=3;m++){for(var b=0;b<=24;b+=8)h<<=1,h|=i>>b+m&1;for(var b=0;b<=24;b+=8)h<<=1,h|=a>>b+m&1}for(var b=0;b<=24;b+=8)h<<=1,h|=a>>b+m&1;o[u+0]=d>>>0,o[u+1]=h>>>0},Ea.r28shl=function(a,i){return a<<i&268435455|a>>>28-i};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Ea.pc2=function(a,i,o,u){for(var d=0,h=0,m=e.length>>>1,b=0;b<m;b++)d<<=1,d|=a>>>e[b]&1;for(var b=m;b<e.length;b++)h<<=1,h|=i>>>e[b]&1;o[u+0]=d>>>0,o[u+1]=h>>>0},Ea.expand=function(a,i,o){var u=0,d=0;u=(a&1)<<5|a>>>27;for(var h=23;h>=15;h-=4)u<<=6,u|=a>>>h&63;for(var h=11;h>=3;h-=4)d|=a>>>h&63,d<<=6;d|=(a&31)<<1|a>>>31,i[o+0]=u>>>0,i[o+1]=d>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Ea.substitute=function(a,i){for(var o=0,u=0;u<4;u++){var d=a>>>18-u*6&63,h=t[u*64+d];o<<=4,o|=h}for(var u=0;u<4;u++){var d=i>>>18-u*6&63,h=t[4*64+u*64+d];o<<=4,o|=h}return o>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return Ea.permute=function(a){for(var i=0,o=0;o<r.length;o++)i<<=1,i|=a>>>r[o]&1;return i>>>0},Ea.padSplit=function(a,i,o){for(var u=a.toString(2);u.length<i;)u="0"+u;for(var d=[],h=0;h<i;h+=o)d.push(u.slice(h,h+o));return d.join(" ")},Ea}var Bg,IS;function Ds(){if(IS)return Bg;IS=1,Bg=e;function e(t,r){if(!t)throw new Error(r||"Assertion failed")}return e.equal=function(r,n,a){if(r!=n)throw new Error(a||"Assertion failed: "+r+" != "+n)},Bg}var kg,NS;function zx(){if(NS)return kg;NS=1;var e=Ds();function t(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=r.padding!==!1}return kg=t,t.prototype._init=function(){},t.prototype.update=function(n){return n.length===0?[]:this.type==="decrypt"?this._updateDecrypt(n):this._updateEncrypt(n)},t.prototype._buffer=function(n,a){for(var i=Math.min(this.buffer.length-this.bufferOff,n.length-a),o=0;o<i;o++)this.buffer[this.bufferOff+o]=n[a+o];return this.bufferOff+=i,i},t.prototype._flushBuffer=function(n,a){return this._update(this.buffer,0,n,a),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(n){var a=0,i=0,o=(this.bufferOff+n.length)/this.blockSize|0,u=new Array(o*this.blockSize);this.bufferOff!==0&&(a+=this._buffer(n,a),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(u,i)));for(var d=n.length-(n.length-a)%this.blockSize;a<d;a+=this.blockSize)this._update(n,a,u,i),i+=this.blockSize;for(;a<n.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=n[a];return u},t.prototype._updateDecrypt=function(n){for(var a=0,i=0,o=Math.ceil((this.bufferOff+n.length)/this.blockSize)-1,u=new Array(o*this.blockSize);o>0;o--)a+=this._buffer(n,a),i+=this._flushBuffer(u,i);return a+=this._buffer(n,a),u},t.prototype.final=function(n){var a;n&&(a=this.update(n));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),a?a.concat(i):i},t.prototype._pad=function(n,a){if(a===0)return!1;for(;a<n.length;)n[a++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var n=new Array(this.blockSize);return this._update(this.buffer,0,n,0),n},t.prototype._unpad=function(n){return n},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var n=new Array(this.blockSize);return this._flushBuffer(n,0),this._unpad(n)},kg}var zg,LS;function LF(){if(LS)return zg;LS=1;var e=Ds(),t=Xt,r=NF(),n=zx();function a(){this.tmp=new Array(2),this.keys=null}function i(u){n.call(this,u);var d=new a;this._desState=d,this.deriveKeys(d,u.key)}t(i,n),zg=i,i.create=function(d){return new i(d)};var o=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(d,h){d.keys=new Array(16*2),e.equal(h.length,this.blockSize,"Invalid key length");var m=r.readUInt32BE(h,0),b=r.readUInt32BE(h,4);r.pc1(m,b,d.tmp,0),m=d.tmp[0],b=d.tmp[1];for(var v=0;v<d.keys.length;v+=2){var C=o[v>>>1];m=r.r28shl(m,C),b=r.r28shl(b,C),r.pc2(m,b,d.keys,v)}},i.prototype._update=function(d,h,m,b){var v=this._desState,C=r.readUInt32BE(d,h),E=r.readUInt32BE(d,h+4);r.ip(C,E,v.tmp,0),C=v.tmp[0],E=v.tmp[1],this.type==="encrypt"?this._encrypt(v,C,E,v.tmp,0):this._decrypt(v,C,E,v.tmp,0),C=v.tmp[0],E=v.tmp[1],r.writeUInt32BE(m,C,b),r.writeUInt32BE(m,E,b+4)},i.prototype._pad=function(d,h){if(this.padding===!1)return!1;for(var m=d.length-h,b=h;b<d.length;b++)d[b]=m;return!0},i.prototype._unpad=function(d){if(this.padding===!1)return d;for(var h=d[d.length-1],m=d.length-h;m<d.length;m++)e.equal(d[m],h);return d.slice(0,d.length-h)},i.prototype._encrypt=function(d,h,m,b,v){for(var C=h,E=m,T=0;T<d.keys.length;T+=2){var I=d.keys[T],S=d.keys[T+1];r.expand(E,d.tmp,0),I^=d.tmp[0],S^=d.tmp[1];var D=r.substitute(I,S),L=r.permute(D),N=E;E=(C^L)>>>0,C=N}r.rip(E,C,b,v)},i.prototype._decrypt=function(d,h,m,b,v){for(var C=m,E=h,T=d.keys.length-2;T>=0;T-=2){var I=d.keys[T],S=d.keys[T+1];r.expand(C,d.tmp,0),I^=d.tmp[0],S^=d.tmp[1];var D=r.substitute(I,S),L=r.permute(D),N=C;C=(E^L)>>>0,E=N}r.rip(C,E,b,v)},zg}var _g={},jS;function tne(){if(jS)return _g;jS=1;var e=Ds(),t=Xt,r={};function n(i){e.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var o=0;o<this.iv.length;o++)this.iv[o]=i[o]}function a(i){function o(m){i.call(this,m),this._cbcInit()}t(o,i);for(var u=Object.keys(r),d=0;d<u.length;d++){var h=u[d];o.prototype[h]=r[h]}return o.create=function(b){return new o(b)},o}return _g.instantiate=a,r._cbcInit=function(){var o=new n(this.options.iv);this._cbcState=o},r._update=function(o,u,d,h){var m=this._cbcState,b=this.constructor.super_.prototype,v=m.iv;if(this.type==="encrypt"){for(var C=0;C<this.blockSize;C++)v[C]^=o[u+C];b._update.call(this,v,0,d,h);for(var C=0;C<this.blockSize;C++)v[C]=d[h+C]}else{b._update.call(this,o,u,d,h);for(var C=0;C<this.blockSize;C++)d[h+C]^=v[C];for(var C=0;C<this.blockSize;C++)v[C]=o[u+C]}},_g}var Fg,BS;function rne(){if(BS)return Fg;BS=1;var e=Ds(),t=Xt,r=zx(),n=LF();function a(o,u){e.equal(u.length,24,"Invalid key length");var d=u.slice(0,8),h=u.slice(8,16),m=u.slice(16,24);o==="encrypt"?this.ciphers=[n.create({type:"encrypt",key:d}),n.create({type:"decrypt",key:h}),n.create({type:"encrypt",key:m})]:this.ciphers=[n.create({type:"decrypt",key:m}),n.create({type:"encrypt",key:h}),n.create({type:"decrypt",key:d})]}function i(o){r.call(this,o);var u=new a(this.type,this.options.key);this._edeState=u}return t(i,r),Fg=i,i.create=function(u){return new i(u)},i.prototype._update=function(u,d,h,m){var b=this._edeState;b.ciphers[0]._update(u,d,h,m),b.ciphers[1]._update(h,m,h,m),b.ciphers[2]._update(h,m,h,m)},i.prototype._pad=n.prototype._pad,i.prototype._unpad=n.prototype._unpad,Fg}var kS;function nne(){return kS||(kS=1,Il.utils=NF(),Il.Cipher=zx(),Il.DES=LF(),Il.CBC=tne(),Il.EDE=rne()),Il}var Og,zS;function ine(){if(zS)return Og;zS=1;var e=Cl(),t=nne(),r=Xt,n=sr.Buffer,a={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],Og=i,r(i,e);function i(o){e.call(this);var u=o.mode.toLowerCase(),d=a[u],h;o.decrypt?h="decrypt":h="encrypt";var m=o.key;n.isBuffer(m)||(m=n.from(m)),(u==="des-ede"||u==="des-ede-cbc")&&(m=n.concat([m,m.slice(0,8)]));var b=o.iv;n.isBuffer(b)||(b=n.from(b)),this._des=d.create({key:m,iv:b,type:h})}return i.prototype._update=function(o){return n.from(this._des.update(o))},i.prototype._final=function(){return n.from(this._des.final())},Og}var qa={},Y2={},Z2={},_S;function ane(){return _S||(_S=1,Z2.encrypt=function(e,t){return e._cipher.encryptBlock(t)},Z2.decrypt=function(e,t){return e._cipher.decryptBlock(t)}),Z2}var G2={},Rg,FS;function Qh(){return FS||(FS=1,Rg=function(t,r){for(var n=Math.min(t.length,r.length),a=new Je.Buffer(n),i=0;i<n;++i)a[i]=t[i]^r[i];return a}),Rg}var OS;function sne(){if(OS)return G2;OS=1;var e=Qh();return G2.encrypt=function(t,r){var n=e(r,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},G2.decrypt=function(t,r){var n=t._prev;t._prev=r;var a=t._cipher.decryptBlock(r);return e(a,n)},G2}var Ug={},RS;function one(){if(RS)return Ug;RS=1;var e=sr.Buffer,t=Qh();function r(n,a,i){var o=a.length,u=t(a,n._cache);return n._cache=n._cache.slice(o),n._prev=e.concat([n._prev,i?a:u]),u}return Ug.encrypt=function(n,a,i){for(var o=e.allocUnsafe(0),u;a.length;)if(n._cache.length===0&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=e.allocUnsafe(0)),n._cache.length<=a.length)u=n._cache.length,o=e.concat([o,r(n,a.slice(0,u),i)]),a=a.slice(u);else{o=e.concat([o,r(n,a,i)]);break}return o},Ug}var Pg={},US;function cne(){if(US)return Pg;US=1;var e=sr.Buffer;function t(r,n,a){var i=r._cipher.encryptBlock(r._prev),o=i[0]^n;return r._prev=e.concat([r._prev.slice(1),e.from([a?n:o])]),o}return Pg.encrypt=function(r,n,a){for(var i=n.length,o=e.allocUnsafe(i),u=-1;++u<i;)o[u]=t(r,n[u],a);return o},Pg}var Wg={},PS;function lne(){if(PS)return Wg;PS=1;var e=sr.Buffer;function t(n,a,i){for(var o,u=-1,d=8,h=0,m,b;++u<d;)o=n._cipher.encryptBlock(n._prev),m=a&1<<7-u?128:0,b=o[0]^m,h+=(b&128)>>u%8,n._prev=r(n._prev,i?m:b);return h}function r(n,a){var i=n.length,o=-1,u=e.allocUnsafe(n.length);for(n=e.concat([n,e.from([a])]);++o<i;)u[o]=n[o]<<1|n[o+1]>>7;return u}return Wg.encrypt=function(n,a,i){for(var o=a.length,u=e.allocUnsafe(o),d=-1;++d<o;)u[d]=t(n,a[d],i);return u},Wg}var Hg={},WS;function une(){if(WS)return Hg;WS=1;var e=Qh();function t(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}return Hg.encrypt=function(r,n){for(;r._cache.length<n.length;)r._cache=Je.Buffer.concat([r._cache,t(r)]);var a=r._cache.slice(0,n.length);return r._cache=r._cache.slice(n.length),e(n,a)},Hg}var Yg={},Zg,HS;function jF(){if(HS)return Zg;HS=1;function e(t){for(var r=t.length,n;r--;)if(n=t.readUInt8(r),n===255)t.writeUInt8(0,r);else{n++,t.writeUInt8(n,r);break}}return Zg=e,Zg}var YS;function ZS(){if(YS)return Yg;YS=1;var e=Qh(),t=sr.Buffer,r=jF();function n(i){var o=i._cipher.encryptBlockRaw(i._prev);return r(i._prev),o}var a=16;return Yg.encrypt=function(i,o){var u=Math.ceil(o.length/a),d=i._cache.length;i._cache=t.concat([i._cache,t.allocUnsafe(u*a)]);for(var h=0;h<u;h++){var m=n(i),b=d+h*a;i._cache.writeUInt32BE(m[0],b+0),i._cache.writeUInt32BE(m[1],b+4),i._cache.writeUInt32BE(m[2],b+8),i._cache.writeUInt32BE(m[3],b+12)}var v=i._cache.slice(0,o.length);return i._cache=i._cache.slice(o.length),e(o,v)},Yg}const fne={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},dne={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},hne={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},BF={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:fne,aes192:dne,aes256:hne,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var Gg,GS;function _x(){if(GS)return Gg;GS=1;var e={ECB:ane(),CBC:sne(),CFB:one(),CFB8:cne(),CFB1:lne(),OFB:une(),CTR:ZS(),GCM:ZS()},t=BF;for(var r in t)t[r].module=e[t[r].mode];return Gg=t,Gg}var Qg={},QS;function r5(){if(QS)return Qg;QS=1;var e=sr.Buffer;function t(u){e.isBuffer(u)||(u=e.from(u));for(var d=u.length/4|0,h=new Array(d),m=0;m<d;m++)h[m]=u.readUInt32BE(m*4);return h}function r(u){for(var d=0;d<u.length;u++)u[d]=0}function n(u,d,h,m,b){for(var v=h[0],C=h[1],E=h[2],T=h[3],I=u[0]^d[0],S=u[1]^d[1],D=u[2]^d[2],L=u[3]^d[3],N,_,O,U,z=4,F=1;F<b;F++)N=v[I>>>24]^C[S>>>16&255]^E[D>>>8&255]^T[L&255]^d[z++],_=v[S>>>24]^C[D>>>16&255]^E[L>>>8&255]^T[I&255]^d[z++],O=v[D>>>24]^C[L>>>16&255]^E[I>>>8&255]^T[S&255]^d[z++],U=v[L>>>24]^C[I>>>16&255]^E[S>>>8&255]^T[D&255]^d[z++],I=N,S=_,D=O,L=U;return N=(m[I>>>24]<<24|m[S>>>16&255]<<16|m[D>>>8&255]<<8|m[L&255])^d[z++],_=(m[S>>>24]<<24|m[D>>>16&255]<<16|m[L>>>8&255]<<8|m[I&255])^d[z++],O=(m[D>>>24]<<24|m[L>>>16&255]<<16|m[I>>>8&255]<<8|m[S&255])^d[z++],U=(m[L>>>24]<<24|m[I>>>16&255]<<16|m[S>>>8&255]<<8|m[D&255])^d[z++],N=N>>>0,_=_>>>0,O=O>>>0,U=U>>>0,[N,_,O,U]}var a=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var u=new Array(256),d=0;d<256;d++)d<128?u[d]=d<<1:u[d]=d<<1^283;for(var h=[],m=[],b=[[],[],[],[]],v=[[],[],[],[]],C=0,E=0,T=0;T<256;++T){var I=E^E<<1^E<<2^E<<3^E<<4;I=I>>>8^I&255^99,h[C]=I,m[I]=C;var S=u[C],D=u[S],L=u[D],N=u[I]*257^I*16843008;b[0][C]=N<<24|N>>>8,b[1][C]=N<<16|N>>>16,b[2][C]=N<<8|N>>>24,b[3][C]=N,N=L*16843009^D*65537^S*257^C*16843008,v[0][I]=N<<24|N>>>8,v[1][I]=N<<16|N>>>16,v[2][I]=N<<8|N>>>24,v[3][I]=N,C===0?C=E=1:(C=S^u[u[u[L^S]]],E^=u[u[E]])}return{SBOX:h,INV_SBOX:m,SUB_MIX:b,INV_SUB_MIX:v}}();function o(u){this._key=t(u),this._reset()}return o.blockSize=4*4,o.keySize=256/8,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var u=this._key,d=u.length,h=d+6,m=(h+1)*4,b=[],v=0;v<d;v++)b[v]=u[v];for(v=d;v<m;v++){var C=b[v-1];v%d===0?(C=C<<8|C>>>24,C=i.SBOX[C>>>24]<<24|i.SBOX[C>>>16&255]<<16|i.SBOX[C>>>8&255]<<8|i.SBOX[C&255],C^=a[v/d|0]<<24):d>6&&v%d===4&&(C=i.SBOX[C>>>24]<<24|i.SBOX[C>>>16&255]<<16|i.SBOX[C>>>8&255]<<8|i.SBOX[C&255]),b[v]=b[v-d]^C}for(var E=[],T=0;T<m;T++){var I=m-T,S=b[I-(T%4?0:4)];T<4||I<=4?E[T]=S:E[T]=i.INV_SUB_MIX[0][i.SBOX[S>>>24]]^i.INV_SUB_MIX[1][i.SBOX[S>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[S>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[S&255]]}this._nRounds=h,this._keySchedule=b,this._invKeySchedule=E},o.prototype.encryptBlockRaw=function(u){return u=t(u),n(u,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},o.prototype.encryptBlock=function(u){var d=this.encryptBlockRaw(u),h=e.allocUnsafe(16);return h.writeUInt32BE(d[0],0),h.writeUInt32BE(d[1],4),h.writeUInt32BE(d[2],8),h.writeUInt32BE(d[3],12),h},o.prototype.decryptBlock=function(u){u=t(u);var d=u[1];u[1]=u[3],u[3]=d;var h=n(u,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),m=e.allocUnsafe(16);return m.writeUInt32BE(h[0],0),m.writeUInt32BE(h[3],4),m.writeUInt32BE(h[2],8),m.writeUInt32BE(h[1],12),m},o.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},Qg.AES=o,Qg}var qg,qS;function pne(){if(qS)return qg;qS=1;var e=sr.Buffer,t=e.alloc(16,0);function r(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function n(i){var o=e.allocUnsafe(16);return o.writeUInt32BE(i[0]>>>0,0),o.writeUInt32BE(i[1]>>>0,4),o.writeUInt32BE(i[2]>>>0,8),o.writeUInt32BE(i[3]>>>0,12),o}function a(i){this.h=i,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}return a.prototype.ghash=function(i){for(var o=-1;++o<i.length;)this.state[o]^=i[o];this._multiply()},a.prototype._multiply=function(){for(var i=r(this.h),o=[0,0,0,0],u,d,h,m=-1;++m<128;){for(d=(this.state[~~(m/8)]&1<<7-m%8)!==0,d&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),h=(i[3]&1)!==0,u=3;u>0;u--)i[u]=i[u]>>>1|(i[u-1]&1)<<31;i[0]=i[0]>>>1,h&&(i[0]=i[0]^225<<24)}this.state=n(o)},a.prototype.update=function(i){this.cache=e.concat([this.cache,i]);for(var o;this.cache.length>=16;)o=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(o)},a.prototype.final=function(i,o){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(n([0,i,0,o])),this.state},qg=a,qg}var Vg,VS;function kF(){if(VS)return Vg;VS=1;var e=r5(),t=sr.Buffer,r=Cl(),n=Xt,a=pne(),i=Qh(),o=jF();function u(m,b){var v=0;m.length!==b.length&&v++;for(var C=Math.min(m.length,b.length),E=0;E<C;++E)v+=m[E]^b[E];return v}function d(m,b,v){if(b.length===12)return m._finID=t.concat([b,t.from([0,0,0,1])]),t.concat([b,t.from([0,0,0,2])]);var C=new a(v),E=b.length,T=E%16;C.update(b),T&&(T=16-T,C.update(t.alloc(T,0))),C.update(t.alloc(8,0));var I=E*8,S=t.alloc(8);S.writeUIntBE(I,0,8),C.update(S),m._finID=C.state;var D=t.from(m._finID);return o(D),D}function h(m,b,v,C){r.call(this);var E=t.alloc(4,0);this._cipher=new e.AES(b);var T=this._cipher.encryptBlock(E);this._ghash=new a(T),v=d(this,v,T),this._prev=t.from(v),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=C,this._alen=0,this._len=0,this._mode=m,this._authTag=null,this._called=!1}return n(h,r),h.prototype._update=function(m){if(!this._called&&this._alen){var b=16-this._alen%16;b<16&&(b=t.alloc(b,0),this._ghash.update(b))}this._called=!0;var v=this._mode.encrypt(this,m);return this._decrypt?this._ghash.update(m):this._ghash.update(v),this._len+=m.length,v},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var m=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(m,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=m,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(b){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=b},h.prototype.setAAD=function(b){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(b),this._alen+=b.length},Vg=h,Vg}var $g,$S;function zF(){if($S)return $g;$S=1;var e=r5(),t=sr.Buffer,r=Cl(),n=Xt;function a(i,o,u,d){r.call(this),this._cipher=new e.AES(o),this._prev=t.from(u),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=d,this._mode=i}return n(a,r),a.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},$g=a,$g}var Kg,KS;function n5(){if(KS)return Kg;KS=1;var e=sr.Buffer,t=jx();function r(n,a,i,o){if(e.isBuffer(n)||(n=e.from(n,"binary")),a&&(e.isBuffer(a)||(a=e.from(a,"binary")),a.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var u=i/8,d=e.alloc(u),h=e.alloc(o||0),m=e.alloc(0);u>0||o>0;){var b=new t;b.update(m),b.update(n),a&&b.update(a),m=b.digest();var v=0;if(u>0){var C=d.length-u;v=Math.min(u,m.length),m.copy(d,C,0,v),u-=v}if(v<m.length&&o>0){var E=h.length-o,T=Math.min(o,m.length-v);m.copy(h,E,v,v+T),o-=T}}return m.fill(0),{key:d,iv:h}}return Kg=r,Kg}var XS;function mne(){if(XS)return Y2;XS=1;var e=_x(),t=kF(),r=sr.Buffer,n=zF(),a=Cl(),i=r5(),o=n5(),u=Xt;function d(C,E,T){a.call(this),this._cache=new m,this._cipher=new i.AES(E),this._prev=r.from(T),this._mode=C,this._autopadding=!0}u(d,a),d.prototype._update=function(C){this._cache.add(C);for(var E,T,I=[];E=this._cache.get();)T=this._mode.encrypt(this,E),I.push(T);return r.concat(I)};var h=r.alloc(16,16);d.prototype._final=function(){var C=this._cache.flush();if(this._autopadding)return C=this._mode.encrypt(this,C),this._cipher.scrub(),C;if(!C.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(C){return this._autopadding=!!C,this};function m(){this.cache=r.allocUnsafe(0)}m.prototype.add=function(C){this.cache=r.concat([this.cache,C])},m.prototype.get=function(){if(this.cache.length>15){var C=this.cache.slice(0,16);return this.cache=this.cache.slice(16),C}return null},m.prototype.flush=function(){for(var C=16-this.cache.length,E=r.allocUnsafe(C),T=-1;++T<C;)E.writeUInt8(C,T);return r.concat([this.cache,E])};function b(C,E,T){var I=e[C.toLowerCase()];if(!I)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=r.from(E)),E.length!==I.key/8)throw new TypeError("invalid key length "+E.length);if(typeof T=="string"&&(T=r.from(T)),I.mode!=="GCM"&&T.length!==I.iv)throw new TypeError("invalid iv length "+T.length);return I.type==="stream"?new n(I.module,E,T):I.type==="auth"?new t(I.module,E,T):new d(I.module,E,T)}function v(C,E){var T=e[C.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var I=o(E,!1,T.key,T.iv);return b(C,I.key,I.iv)}return Y2.createCipheriv=b,Y2.createCipher=v,Y2}var Q2={},JS;function gne(){if(JS)return Q2;JS=1;var e=kF(),t=sr.Buffer,r=_x(),n=zF(),a=Cl(),i=r5(),o=n5(),u=Xt;function d(C,E,T){a.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(E),this._prev=t.from(T),this._mode=C,this._autopadding=!0}u(d,a),d.prototype._update=function(C){this._cache.add(C);for(var E,T,I=[];E=this._cache.get(this._autopadding);)T=this._mode.decrypt(this,E),I.push(T);return t.concat(I)},d.prototype._final=function(){var C=this._cache.flush();if(this._autopadding)return m(this._mode.decrypt(this,C));if(C)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(C){return this._autopadding=!!C,this};function h(){this.cache=t.allocUnsafe(0)}h.prototype.add=function(C){this.cache=t.concat([this.cache,C])},h.prototype.get=function(C){var E;if(C){if(this.cache.length>16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E}else if(this.cache.length>=16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache};function m(C){var E=C[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var T=-1;++T<E;)if(C[T+(16-E)]!==E)throw new Error("unable to decrypt data");if(E!==16)return C.slice(0,16-E)}function b(C,E,T){var I=r[C.toLowerCase()];if(!I)throw new TypeError("invalid suite type");if(typeof T=="string"&&(T=t.from(T)),I.mode!=="GCM"&&T.length!==I.iv)throw new TypeError("invalid iv length "+T.length);if(typeof E=="string"&&(E=t.from(E)),E.length!==I.key/8)throw new TypeError("invalid key length "+E.length);return I.type==="stream"?new n(I.module,E,T,!0):I.type==="auth"?new e(I.module,E,T,!0):new d(I.module,E,T)}function v(C,E){var T=r[C.toLowerCase()];if(!T)throw new TypeError("invalid suite type");var I=o(E,!1,T.key,T.iv);return b(C,I.key,I.iv)}return Q2.createDecipher=v,Q2.createDecipheriv=b,Q2}var eD;function Fx(){if(eD)return qa;eD=1;var e=mne(),t=gne(),r=BF;function n(){return Object.keys(r)}return qa.createCipher=qa.Cipher=e.createCipher,qa.createCipheriv=qa.Cipheriv=e.createCipheriv,qa.createDecipher=qa.Decipher=t.createDecipher,qa.createDecipheriv=qa.Decipheriv=t.createDecipheriv,qa.listCiphers=qa.getCiphers=n,qa}var Xg={},tD;function yne(){return tD||(tD=1,function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(Xg)),Xg}var rD;function bne(){if(rD)return Qa;rD=1;var e=ine(),t=Fx(),r=_x(),n=yne(),a=n5();function i(m,b){m=m.toLowerCase();var v,C;if(r[m])v=r[m].key,C=r[m].iv;else if(n[m])v=n[m].key*8,C=n[m].iv;else throw new TypeError("invalid suite type");var E=a(b,!1,v,C);return u(m,E.key,E.iv)}function o(m,b){m=m.toLowerCase();var v,C;if(r[m])v=r[m].key,C=r[m].iv;else if(n[m])v=n[m].key*8,C=n[m].iv;else throw new TypeError("invalid suite type");var E=a(b,!1,v,C);return d(m,E.key,E.iv)}function u(m,b,v){if(m=m.toLowerCase(),r[m])return t.createCipheriv(m,b,v);if(n[m])return new e({key:b,iv:v,mode:m});throw new TypeError("invalid suite type")}function d(m,b,v){if(m=m.toLowerCase(),r[m])return t.createDecipheriv(m,b,v);if(n[m])return new e({key:b,iv:v,mode:m,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(n).concat(t.getCiphers())}return Qa.createCipher=Qa.Cipher=i,Qa.createCipheriv=Qa.Cipheriv=u,Qa.createDecipher=Qa.Decipher=o,Qa.createDecipheriv=Qa.Decipheriv=d,Qa.listCiphers=Qa.getCiphers=h,Qa}var Nl={},X4={exports:{}};X4.exports;var nD;function _F(){return nD||(nD=1,function(e){(function(t,r){function n(w,s){if(!w)throw new Error(s||"Assertion failed")}function a(w,s){w.super_=s;var l=function(){};l.prototype=s.prototype,w.prototype=new l,w.prototype.constructor=w}function i(w,s,l){if(i.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(w||0,s||10,l||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=vt.Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,f){if(typeof s=="number")return this._initNumber(s,l,f);if(typeof s=="object")return this._initArray(s,l,f);l==="hex"&&(l=16),n(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var p=0;s[0]==="-"&&(p++,this.negative=1),p<s.length&&(l===16?this._parseHex(s,p,f):(this._parseBase(s,l,p),f==="le"&&this._initArray(this.toArray(),l,f)))},i.prototype._initNumber=function(s,l,f){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(n(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),f==="le"&&this._initArray(this.toArray(),l,f)},i.prototype._initArray=function(s,l,f){if(n(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g,x,A=0;if(f==="be")for(p=s.length-1,g=0;p>=0;p-=3)x=s[p]|s[p-1]<<8|s[p-2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);else if(f==="le")for(p=0,g=0;p<s.length;p+=3)x=s[p]|s[p+1]<<8|s[p+2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);return this.strip()};function u(w,s){var l=w.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function d(w,s,l){var f=u(w,l);return l-1>=s&&(f|=u(w,l-1)<<4),f}i.prototype._parseHex=function(s,l,f){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g=0,x=0,A;if(f==="be")for(p=s.length-1;p>=l;p-=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8;else{var y=s.length-l;for(p=y%2===0?l+1:l;p<s.length;p+=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8}this.strip()};function h(w,s,l,f){for(var p=0,g=Math.min(w.length,l),x=s;x<g;x++){var A=w.charCodeAt(x)-48;p*=f,A>=49?p+=A-49+10:A>=17?p+=A-17+10:p+=A}return p}i.prototype._parseBase=function(s,l,f){this.words=[0],this.length=1;for(var p=0,g=1;g<=67108863;g*=l)p++;p--,g=g/l|0;for(var x=s.length-f,A=x%p,y=Math.min(x,x-A)+f,c=0,M=f;M<y;M+=p)c=h(s,M,M+p,l),this.imuln(g),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(A!==0){var B=1;for(c=h(s,M,s.length,l),M=0;M<A;M++)B*=l;this.imuln(B),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var f;if(s===16||s==="hex"){f="";for(var p=0,g=0,x=0;x<this.length;x++){var A=this.words[x],y=((A<<p|g)&16777215).toString(16);g=A>>>24-p&16777215,p+=2,p>=26&&(p-=26,x--),g!==0||x!==this.length-1?f=m[6-y.length]+y+f:f=y+f}for(g!==0&&(f=g.toString(16)+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}if(s===(s|0)&&s>=2&&s<=36){var c=b[s],M=v[s];f="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(M).toString(s);B=B.idivn(M),B.isZero()?f=R+f:f=m[c-R.length]+R+f}for(this.isZero()&&(f="0"+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return n(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,f){var p=this.byteLength(),g=f||Math.max(1,p);n(p<=g,"byte array longer than desired length"),n(g>0,"Requested array length <= 0"),this.strip();var x=l==="le",A=new s(g),y,c,M=this.clone();if(x){for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[c]=y;for(;c<g;c++)A[c]=0}else{for(c=0;c<g-p;c++)A[c]=0;for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[g-c-1]=y}return A},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,f=0;return l>=4096&&(f+=13,l>>>=13),l>=64&&(f+=7,l>>>=7),l>=8&&(f+=4,l>>>=4),l>=2&&(f+=2,l>>>=2),f+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,f=0;return l&8191||(f+=13,l>>>=13),l&127||(f+=7,l>>>=7),l&15||(f+=4,l>>>=4),l&3||(f+=2,l>>>=2),l&1||f++,f},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function C(w){for(var s=new Array(w.bitLength()),l=0;l<s.length;l++){var f=l/26|0,p=l%26;s[l]=(w.words[f]&1<<p)>>>p}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var f=this._zeroBits(this.words[l]);if(s+=f,f!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return n((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var f=0;f<l.length;f++)this.words[f]=this.words[f]&s.words[f];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return n((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var p=0;p<f.length;p++)this.words[p]=l.words[p]^f.words[p];if(this!==l)for(;p<l.length;p++)this.words[p]=l.words[p];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return n((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){n(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,f=s%26;this._expand(l),f>0&&l--;for(var p=0;p<l;p++)this.words[p]=~this.words[p]&67108863;return f>0&&(this.words[p]=~this.words[p]&67108863>>26-f),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){n(typeof s=="number"&&s>=0);var f=s/26|0,p=s%26;return this._expand(f+1),l?this.words[f]=this.words[f]|1<<p:this.words[f]=this.words[f]&~(1<<p),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var f,p;this.length>s.length?(f=this,p=s):(f=s,p=this);for(var g=0,x=0;x<p.length;x++)l=(f.words[x]|0)+(p.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;for(;g!==0&&x<f.length;x++)l=(f.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;if(this.length=f.length,g!==0)this.words[this.length]=g,this.length++;else if(f!==this)for(;x<f.length;x++)this.words[x]=f.words[x];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var f=this.cmp(s);if(f===0)return this.negative=0,this.length=1,this.words[0]=0,this;var p,g;f>0?(p=this,g=s):(p=s,g=this);for(var x=0,A=0;A<g.length;A++)l=(p.words[A]|0)-(g.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;for(;x!==0&&A<p.length;A++)l=(p.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;if(x===0&&A<p.length&&p!==this)for(;A<p.length;A++)this.words[A]=p.words[A];return this.length=Math.max(this.length,A),p!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function E(w,s,l){l.negative=s.negative^w.negative;var f=w.length+s.length|0;l.length=f,f=f-1|0;var p=w.words[0]|0,g=s.words[0]|0,x=p*g,A=x&67108863,y=x/67108864|0;l.words[0]=A;for(var c=1;c<f;c++){for(var M=y>>>26,B=y&67108863,R=Math.min(c,s.length-1),Q=Math.max(0,c-w.length+1);Q<=R;Q++){var K=c-Q|0;p=w.words[K]|0,g=s.words[Q]|0,x=p*g+B,M+=x/67108864|0,B=x&67108863}l.words[c]=B|0,y=M|0}return y!==0?l.words[c]=y|0:l.length--,l.strip()}var T=function(s,l,f){var p=s.words,g=l.words,x=f.words,A=0,y,c,M,B=p[0]|0,R=B&8191,Q=B>>>13,K=p[1]|0,q=K&8191,W=K>>>13,G=p[2]|0,X=G&8191,ne=G>>>13,te=p[3]|0,V=te&8191,oe=te>>>13,xe=p[4]|0,fe=xe&8191,me=xe>>>13,Ze=p[5]|0,he=Ze&8191,Se=Ze>>>13,Ke=p[6]|0,ye=Ke&8191,ce=Ke>>>13,Fe=p[7]|0,pe=Fe&8191,we=Fe>>>13,gt=p[8]|0,$=gt&8191,P=gt>>>13,Z=p[9]|0,ie=Z&8191,se=Z>>>13,be=g[0]|0,le=be&8191,Ae=be>>>13,We=g[1]|0,Me=We&8191,De=We>>>13,st=g[2]|0,Te=st&8191,Oe=st>>>13,Ft=g[3]|0,je=Ft&8191,Ue=Ft>>>13,Yt=g[4]|0,_e=Yt&8191,Pe=Yt>>>13,Mt=g[5]|0,Be=Mt&8191,He=Mt>>>13,or=g[6]|0,ke=or&8191,Ge=or>>>13,J=g[7]|0,ee=J&8191,re=J>>>13,H=g[8]|0,ae=H&8191,ue=H>>>13,Ee=g[9]|0,de=Ee&8191,ve=Ee>>>13;f.negative=s.negative^l.negative,f.length=19,y=Math.imul(R,le),c=Math.imul(R,Ae),c=c+Math.imul(Q,le)|0,M=Math.imul(Q,Ae);var tt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(tt>>>26)|0,tt&=67108863,y=Math.imul(q,le),c=Math.imul(q,Ae),c=c+Math.imul(W,le)|0,M=Math.imul(W,Ae),y=y+Math.imul(R,Me)|0,c=c+Math.imul(R,De)|0,c=c+Math.imul(Q,Me)|0,M=M+Math.imul(Q,De)|0;var qe=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(X,le),c=Math.imul(X,Ae),c=c+Math.imul(ne,le)|0,M=Math.imul(ne,Ae),y=y+Math.imul(q,Me)|0,c=c+Math.imul(q,De)|0,c=c+Math.imul(W,Me)|0,M=M+Math.imul(W,De)|0,y=y+Math.imul(R,Te)|0,c=c+Math.imul(R,Oe)|0,c=c+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Oe)|0;var _t=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(V,le),c=Math.imul(V,Ae),c=c+Math.imul(oe,le)|0,M=Math.imul(oe,Ae),y=y+Math.imul(X,Me)|0,c=c+Math.imul(X,De)|0,c=c+Math.imul(ne,Me)|0,M=M+Math.imul(ne,De)|0,y=y+Math.imul(q,Te)|0,c=c+Math.imul(q,Oe)|0,c=c+Math.imul(W,Te)|0,M=M+Math.imul(W,Oe)|0,y=y+Math.imul(R,je)|0,c=c+Math.imul(R,Ue)|0,c=c+Math.imul(Q,je)|0,M=M+Math.imul(Q,Ue)|0;var lt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(lt>>>26)|0,lt&=67108863,y=Math.imul(fe,le),c=Math.imul(fe,Ae),c=c+Math.imul(me,le)|0,M=Math.imul(me,Ae),y=y+Math.imul(V,Me)|0,c=c+Math.imul(V,De)|0,c=c+Math.imul(oe,Me)|0,M=M+Math.imul(oe,De)|0,y=y+Math.imul(X,Te)|0,c=c+Math.imul(X,Oe)|0,c=c+Math.imul(ne,Te)|0,M=M+Math.imul(ne,Oe)|0,y=y+Math.imul(q,je)|0,c=c+Math.imul(q,Ue)|0,c=c+Math.imul(W,je)|0,M=M+Math.imul(W,Ue)|0,y=y+Math.imul(R,_e)|0,c=c+Math.imul(R,Pe)|0,c=c+Math.imul(Q,_e)|0,M=M+Math.imul(Q,Pe)|0;var wt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(he,le),c=Math.imul(he,Ae),c=c+Math.imul(Se,le)|0,M=Math.imul(Se,Ae),y=y+Math.imul(fe,Me)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(me,Me)|0,M=M+Math.imul(me,De)|0,y=y+Math.imul(V,Te)|0,c=c+Math.imul(V,Oe)|0,c=c+Math.imul(oe,Te)|0,M=M+Math.imul(oe,Oe)|0,y=y+Math.imul(X,je)|0,c=c+Math.imul(X,Ue)|0,c=c+Math.imul(ne,je)|0,M=M+Math.imul(ne,Ue)|0,y=y+Math.imul(q,_e)|0,c=c+Math.imul(q,Pe)|0,c=c+Math.imul(W,_e)|0,M=M+Math.imul(W,Pe)|0,y=y+Math.imul(R,Be)|0,c=c+Math.imul(R,He)|0,c=c+Math.imul(Q,Be)|0,M=M+Math.imul(Q,He)|0;var Et=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(ye,le),c=Math.imul(ye,Ae),c=c+Math.imul(ce,le)|0,M=Math.imul(ce,Ae),y=y+Math.imul(he,Me)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(Se,Me)|0,M=M+Math.imul(Se,De)|0,y=y+Math.imul(fe,Te)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(me,Te)|0,M=M+Math.imul(me,Oe)|0,y=y+Math.imul(V,je)|0,c=c+Math.imul(V,Ue)|0,c=c+Math.imul(oe,je)|0,M=M+Math.imul(oe,Ue)|0,y=y+Math.imul(X,_e)|0,c=c+Math.imul(X,Pe)|0,c=c+Math.imul(ne,_e)|0,M=M+Math.imul(ne,Pe)|0,y=y+Math.imul(q,Be)|0,c=c+Math.imul(q,He)|0,c=c+Math.imul(W,Be)|0,M=M+Math.imul(W,He)|0,y=y+Math.imul(R,ke)|0,c=c+Math.imul(R,Ge)|0,c=c+Math.imul(Q,ke)|0,M=M+Math.imul(Q,Ge)|0;var jt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(jt>>>26)|0,jt&=67108863,y=Math.imul(pe,le),c=Math.imul(pe,Ae),c=c+Math.imul(we,le)|0,M=Math.imul(we,Ae),y=y+Math.imul(ye,Me)|0,c=c+Math.imul(ye,De)|0,c=c+Math.imul(ce,Me)|0,M=M+Math.imul(ce,De)|0,y=y+Math.imul(he,Te)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(Se,Te)|0,M=M+Math.imul(Se,Oe)|0,y=y+Math.imul(fe,je)|0,c=c+Math.imul(fe,Ue)|0,c=c+Math.imul(me,je)|0,M=M+Math.imul(me,Ue)|0,y=y+Math.imul(V,_e)|0,c=c+Math.imul(V,Pe)|0,c=c+Math.imul(oe,_e)|0,M=M+Math.imul(oe,Pe)|0,y=y+Math.imul(X,Be)|0,c=c+Math.imul(X,He)|0,c=c+Math.imul(ne,Be)|0,M=M+Math.imul(ne,He)|0,y=y+Math.imul(q,ke)|0,c=c+Math.imul(q,Ge)|0,c=c+Math.imul(W,ke)|0,M=M+Math.imul(W,Ge)|0,y=y+Math.imul(R,ee)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(Q,ee)|0,M=M+Math.imul(Q,re)|0;var Nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,y=Math.imul($,le),c=Math.imul($,Ae),c=c+Math.imul(P,le)|0,M=Math.imul(P,Ae),y=y+Math.imul(pe,Me)|0,c=c+Math.imul(pe,De)|0,c=c+Math.imul(we,Me)|0,M=M+Math.imul(we,De)|0,y=y+Math.imul(ye,Te)|0,c=c+Math.imul(ye,Oe)|0,c=c+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Oe)|0,y=y+Math.imul(he,je)|0,c=c+Math.imul(he,Ue)|0,c=c+Math.imul(Se,je)|0,M=M+Math.imul(Se,Ue)|0,y=y+Math.imul(fe,_e)|0,c=c+Math.imul(fe,Pe)|0,c=c+Math.imul(me,_e)|0,M=M+Math.imul(me,Pe)|0,y=y+Math.imul(V,Be)|0,c=c+Math.imul(V,He)|0,c=c+Math.imul(oe,Be)|0,M=M+Math.imul(oe,He)|0,y=y+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,M=M+Math.imul(ne,Ge)|0,y=y+Math.imul(q,ee)|0,c=c+Math.imul(q,re)|0,c=c+Math.imul(W,ee)|0,M=M+Math.imul(W,re)|0,y=y+Math.imul(R,ae)|0,c=c+Math.imul(R,ue)|0,c=c+Math.imul(Q,ae)|0,M=M+Math.imul(Q,ue)|0;var St=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(St>>>26)|0,St&=67108863,y=Math.imul(ie,le),c=Math.imul(ie,Ae),c=c+Math.imul(se,le)|0,M=Math.imul(se,Ae),y=y+Math.imul($,Me)|0,c=c+Math.imul($,De)|0,c=c+Math.imul(P,Me)|0,M=M+Math.imul(P,De)|0,y=y+Math.imul(pe,Te)|0,c=c+Math.imul(pe,Oe)|0,c=c+Math.imul(we,Te)|0,M=M+Math.imul(we,Oe)|0,y=y+Math.imul(ye,je)|0,c=c+Math.imul(ye,Ue)|0,c=c+Math.imul(ce,je)|0,M=M+Math.imul(ce,Ue)|0,y=y+Math.imul(he,_e)|0,c=c+Math.imul(he,Pe)|0,c=c+Math.imul(Se,_e)|0,M=M+Math.imul(Se,Pe)|0,y=y+Math.imul(fe,Be)|0,c=c+Math.imul(fe,He)|0,c=c+Math.imul(me,Be)|0,M=M+Math.imul(me,He)|0,y=y+Math.imul(V,ke)|0,c=c+Math.imul(V,Ge)|0,c=c+Math.imul(oe,ke)|0,M=M+Math.imul(oe,Ge)|0,y=y+Math.imul(X,ee)|0,c=c+Math.imul(X,re)|0,c=c+Math.imul(ne,ee)|0,M=M+Math.imul(ne,re)|0,y=y+Math.imul(q,ae)|0,c=c+Math.imul(q,ue)|0,c=c+Math.imul(W,ae)|0,M=M+Math.imul(W,ue)|0,y=y+Math.imul(R,de)|0,c=c+Math.imul(R,ve)|0,c=c+Math.imul(Q,de)|0,M=M+Math.imul(Q,ve)|0;var It=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(It>>>26)|0,It&=67108863,y=Math.imul(ie,Me),c=Math.imul(ie,De),c=c+Math.imul(se,Me)|0,M=Math.imul(se,De),y=y+Math.imul($,Te)|0,c=c+Math.imul($,Oe)|0,c=c+Math.imul(P,Te)|0,M=M+Math.imul(P,Oe)|0,y=y+Math.imul(pe,je)|0,c=c+Math.imul(pe,Ue)|0,c=c+Math.imul(we,je)|0,M=M+Math.imul(we,Ue)|0,y=y+Math.imul(ye,_e)|0,c=c+Math.imul(ye,Pe)|0,c=c+Math.imul(ce,_e)|0,M=M+Math.imul(ce,Pe)|0,y=y+Math.imul(he,Be)|0,c=c+Math.imul(he,He)|0,c=c+Math.imul(Se,Be)|0,M=M+Math.imul(Se,He)|0,y=y+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(me,ke)|0,M=M+Math.imul(me,Ge)|0,y=y+Math.imul(V,ee)|0,c=c+Math.imul(V,re)|0,c=c+Math.imul(oe,ee)|0,M=M+Math.imul(oe,re)|0,y=y+Math.imul(X,ae)|0,c=c+Math.imul(X,ue)|0,c=c+Math.imul(ne,ae)|0,M=M+Math.imul(ne,ue)|0,y=y+Math.imul(q,de)|0,c=c+Math.imul(q,ve)|0,c=c+Math.imul(W,de)|0,M=M+Math.imul(W,ve)|0;var Dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,y=Math.imul(ie,Te),c=Math.imul(ie,Oe),c=c+Math.imul(se,Te)|0,M=Math.imul(se,Oe),y=y+Math.imul($,je)|0,c=c+Math.imul($,Ue)|0,c=c+Math.imul(P,je)|0,M=M+Math.imul(P,Ue)|0,y=y+Math.imul(pe,_e)|0,c=c+Math.imul(pe,Pe)|0,c=c+Math.imul(we,_e)|0,M=M+Math.imul(we,Pe)|0,y=y+Math.imul(ye,Be)|0,c=c+Math.imul(ye,He)|0,c=c+Math.imul(ce,Be)|0,M=M+Math.imul(ce,He)|0,y=y+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(Se,ke)|0,M=M+Math.imul(Se,Ge)|0,y=y+Math.imul(fe,ee)|0,c=c+Math.imul(fe,re)|0,c=c+Math.imul(me,ee)|0,M=M+Math.imul(me,re)|0,y=y+Math.imul(V,ae)|0,c=c+Math.imul(V,ue)|0,c=c+Math.imul(oe,ae)|0,M=M+Math.imul(oe,ue)|0,y=y+Math.imul(X,de)|0,c=c+Math.imul(X,ve)|0,c=c+Math.imul(ne,de)|0,M=M+Math.imul(ne,ve)|0;var dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(ie,je),c=Math.imul(ie,Ue),c=c+Math.imul(se,je)|0,M=Math.imul(se,Ue),y=y+Math.imul($,_e)|0,c=c+Math.imul($,Pe)|0,c=c+Math.imul(P,_e)|0,M=M+Math.imul(P,Pe)|0,y=y+Math.imul(pe,Be)|0,c=c+Math.imul(pe,He)|0,c=c+Math.imul(we,Be)|0,M=M+Math.imul(we,He)|0,y=y+Math.imul(ye,ke)|0,c=c+Math.imul(ye,Ge)|0,c=c+Math.imul(ce,ke)|0,M=M+Math.imul(ce,Ge)|0,y=y+Math.imul(he,ee)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Se,ee)|0,M=M+Math.imul(Se,re)|0,y=y+Math.imul(fe,ae)|0,c=c+Math.imul(fe,ue)|0,c=c+Math.imul(me,ae)|0,M=M+Math.imul(me,ue)|0,y=y+Math.imul(V,de)|0,c=c+Math.imul(V,ve)|0,c=c+Math.imul(oe,de)|0,M=M+Math.imul(oe,ve)|0;var yt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(ie,_e),c=Math.imul(ie,Pe),c=c+Math.imul(se,_e)|0,M=Math.imul(se,Pe),y=y+Math.imul($,Be)|0,c=c+Math.imul($,He)|0,c=c+Math.imul(P,Be)|0,M=M+Math.imul(P,He)|0,y=y+Math.imul(pe,ke)|0,c=c+Math.imul(pe,Ge)|0,c=c+Math.imul(we,ke)|0,M=M+Math.imul(we,Ge)|0,y=y+Math.imul(ye,ee)|0,c=c+Math.imul(ye,re)|0,c=c+Math.imul(ce,ee)|0,M=M+Math.imul(ce,re)|0,y=y+Math.imul(he,ae)|0,c=c+Math.imul(he,ue)|0,c=c+Math.imul(Se,ae)|0,M=M+Math.imul(Se,ue)|0,y=y+Math.imul(fe,de)|0,c=c+Math.imul(fe,ve)|0,c=c+Math.imul(me,de)|0,M=M+Math.imul(me,ve)|0;var ot=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ot>>>26)|0,ot&=67108863,y=Math.imul(ie,Be),c=Math.imul(ie,He),c=c+Math.imul(se,Be)|0,M=Math.imul(se,He),y=y+Math.imul($,ke)|0,c=c+Math.imul($,Ge)|0,c=c+Math.imul(P,ke)|0,M=M+Math.imul(P,Ge)|0,y=y+Math.imul(pe,ee)|0,c=c+Math.imul(pe,re)|0,c=c+Math.imul(we,ee)|0,M=M+Math.imul(we,re)|0,y=y+Math.imul(ye,ae)|0,c=c+Math.imul(ye,ue)|0,c=c+Math.imul(ce,ae)|0,M=M+Math.imul(ce,ue)|0,y=y+Math.imul(he,de)|0,c=c+Math.imul(he,ve)|0,c=c+Math.imul(Se,de)|0,M=M+Math.imul(Se,ve)|0;var ht=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,y=Math.imul(ie,ke),c=Math.imul(ie,Ge),c=c+Math.imul(se,ke)|0,M=Math.imul(se,Ge),y=y+Math.imul($,ee)|0,c=c+Math.imul($,re)|0,c=c+Math.imul(P,ee)|0,M=M+Math.imul(P,re)|0,y=y+Math.imul(pe,ae)|0,c=c+Math.imul(pe,ue)|0,c=c+Math.imul(we,ae)|0,M=M+Math.imul(we,ue)|0,y=y+Math.imul(ye,de)|0,c=c+Math.imul(ye,ve)|0,c=c+Math.imul(ce,de)|0,M=M+Math.imul(ce,ve)|0;var pt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(ie,ee),c=Math.imul(ie,re),c=c+Math.imul(se,ee)|0,M=Math.imul(se,re),y=y+Math.imul($,ae)|0,c=c+Math.imul($,ue)|0,c=c+Math.imul(P,ae)|0,M=M+Math.imul(P,ue)|0,y=y+Math.imul(pe,de)|0,c=c+Math.imul(pe,ve)|0,c=c+Math.imul(we,de)|0,M=M+Math.imul(we,ve)|0;var nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(nt>>>26)|0,nt&=67108863,y=Math.imul(ie,ae),c=Math.imul(ie,ue),c=c+Math.imul(se,ae)|0,M=Math.imul(se,ue),y=y+Math.imul($,de)|0,c=c+Math.imul($,ve)|0,c=c+Math.imul(P,de)|0,M=M+Math.imul(P,ve)|0;var Ne=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,y=Math.imul(ie,de),c=Math.imul(ie,ve),c=c+Math.imul(se,de)|0,M=Math.imul(se,ve);var Le=(A+y|0)+((c&8191)<<13)|0;return A=(M+(c>>>13)|0)+(Le>>>26)|0,Le&=67108863,x[0]=tt,x[1]=qe,x[2]=_t,x[3]=lt,x[4]=wt,x[5]=Et,x[6]=jt,x[7]=Nt,x[8]=St,x[9]=It,x[10]=Dt,x[11]=dt,x[12]=yt,x[13]=ot,x[14]=ht,x[15]=pt,x[16]=nt,x[17]=Ne,x[18]=Le,A!==0&&(x[19]=A,f.length++),f};Math.imul||(T=E);function I(w,s,l){l.negative=s.negative^w.negative,l.length=w.length+s.length;for(var f=0,p=0,g=0;g<l.length-1;g++){var x=p;p=0;for(var A=f&67108863,y=Math.min(g,s.length-1),c=Math.max(0,g-w.length+1);c<=y;c++){var M=g-c,B=w.words[M]|0,R=s.words[c]|0,Q=B*R,K=Q&67108863;x=x+(Q/67108864|0)|0,K=K+A|0,A=K&67108863,x=x+(K>>>26)|0,p+=x>>>26,x&=67108863}l.words[g]=A,f=x,x=p}return f!==0?l.words[g]=f:l.length--,l.strip()}function S(w,s,l){var f=new D;return f.mulp(w,s,l)}i.prototype.mulTo=function(s,l){var f,p=this.length+s.length;return this.length===10&&s.length===10?f=T(this,s,l):p<63?f=E(this,s,l):p<1024?f=I(this,s,l):f=S(this,s,l),f};function D(w,s){this.x=w,this.y=s}D.prototype.makeRBT=function(s){for(var l=new Array(s),f=i.prototype._countBits(s)-1,p=0;p<s;p++)l[p]=this.revBin(p,f,s);return l},D.prototype.revBin=function(s,l,f){if(s===0||s===f-1)return s;for(var p=0,g=0;g<l;g++)p|=(s&1)<<l-g-1,s>>=1;return p},D.prototype.permute=function(s,l,f,p,g,x){for(var A=0;A<x;A++)p[A]=l[s[A]],g[A]=f[s[A]]},D.prototype.transform=function(s,l,f,p,g,x){this.permute(x,s,l,f,p,g);for(var A=1;A<g;A<<=1)for(var y=A<<1,c=Math.cos(2*Math.PI/y),M=Math.sin(2*Math.PI/y),B=0;B<g;B+=y)for(var R=c,Q=M,K=0;K<A;K++){var q=f[B+K],W=p[B+K],G=f[B+K+A],X=p[B+K+A],ne=R*G-Q*X;X=R*X+Q*G,G=ne,f[B+K]=q+G,p[B+K]=W+X,f[B+K+A]=q-G,p[B+K+A]=W-X,K!==y&&(ne=c*R-M*Q,Q=c*Q+M*R,R=ne)}},D.prototype.guessLen13b=function(s,l){var f=Math.max(l,s)|1,p=f&1,g=0;for(f=f/2|0;f;f=f>>>1)g++;return 1<<g+1+p},D.prototype.conjugate=function(s,l,f){if(!(f<=1))for(var p=0;p<f/2;p++){var g=s[p];s[p]=s[f-p-1],s[f-p-1]=g,g=l[p],l[p]=-l[f-p-1],l[f-p-1]=-g}},D.prototype.normalize13b=function(s,l){for(var f=0,p=0;p<l/2;p++){var g=Math.round(s[2*p+1]/l)*8192+Math.round(s[2*p]/l)+f;s[p]=g&67108863,g<67108864?f=0:f=g/67108864|0}return s},D.prototype.convert13b=function(s,l,f,p){for(var g=0,x=0;x<l;x++)g=g+(s[x]|0),f[2*x]=g&8191,g=g>>>13,f[2*x+1]=g&8191,g=g>>>13;for(x=2*l;x<p;++x)f[x]=0;n(g===0),n((g&-8192)===0)},D.prototype.stub=function(s){for(var l=new Array(s),f=0;f<s;f++)l[f]=0;return l},D.prototype.mulp=function(s,l,f){var p=2*this.guessLen13b(s.length,l.length),g=this.makeRBT(p),x=this.stub(p),A=new Array(p),y=new Array(p),c=new Array(p),M=new Array(p),B=new Array(p),R=new Array(p),Q=f.words;Q.length=p,this.convert13b(s.words,s.length,A,p),this.convert13b(l.words,l.length,M,p),this.transform(A,x,y,c,p,g),this.transform(M,x,B,R,p,g);for(var K=0;K<p;K++){var q=y[K]*B[K]-c[K]*R[K];c[K]=y[K]*R[K]+c[K]*B[K],y[K]=q}return this.conjugate(y,c,p),this.transform(y,c,Q,x,p,g),this.conjugate(Q,x,p),this.normalize13b(Q,p),f.negative=s.negative^l.negative,f.length=s.length+l.length,f.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),S(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){n(typeof s=="number"),n(s<67108864);for(var l=0,f=0;f<this.length;f++){var p=(this.words[f]|0)*s,g=(p&67108863)+(l&67108863);l>>=26,l+=p/67108864|0,l+=g>>>26,this.words[f]=g&67108863}return l!==0&&(this.words[f]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=C(s);if(l.length===0)return new i(1);for(var f=this,p=0;p<l.length&&l[p]===0;p++,f=f.sqr());if(++p<l.length)for(var g=f.sqr();p<l.length;p++,g=g.sqr())l[p]!==0&&(f=f.mul(g));return f},i.prototype.iushln=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=67108863>>>26-l<<26-l,g;if(l!==0){var x=0;for(g=0;g<this.length;g++){var A=this.words[g]&p,y=(this.words[g]|0)-A<<l;this.words[g]=y|x,x=A>>>26-l}x&&(this.words[g]=x,this.length++)}if(f!==0){for(g=this.length-1;g>=0;g--)this.words[g+f]=this.words[g];for(g=0;g<f;g++)this.words[g]=0;this.length+=f}return this.strip()},i.prototype.ishln=function(s){return n(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,f){n(typeof s=="number"&&s>=0);var p;l?p=(l-l%26)/26:p=0;var g=s%26,x=Math.min((s-g)/26,this.length),A=67108863^67108863>>>g<<g,y=f;if(p-=x,p=Math.max(0,p),y){for(var c=0;c<x;c++)y.words[c]=this.words[c];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,c=0;c<this.length;c++)this.words[c]=this.words[c+x];else this.words[0]=0,this.length=1;var M=0;for(c=this.length-1;c>=0&&(M!==0||c>=p);c--){var B=this.words[c]|0;this.words[c]=M<<26-g|B>>>g,M=B&A}return y&&M!==0&&(y.words[y.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,f){return n(this.negative===0),this.iushrn(s,l,f)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return!1;var g=this.words[f];return!!(g&p)},i.prototype.imaskn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=f)return this;if(l!==0&&f++,this.length=Math.min(f,this.length),l!==0){var p=67108863^67108863>>>l<<l;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return n(typeof s=="number"),n(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(n(typeof s=="number"),n(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,f){var p=s.length+f,g;this._expand(p);var x,A=0;for(g=0;g<s.length;g++){x=(this.words[g+f]|0)+A;var y=(s.words[g]|0)*l;x-=y&67108863,A=(x>>26)-(y/67108864|0),this.words[g+f]=x&67108863}for(;g<this.length-f;g++)x=(this.words[g+f]|0)+A,A=x>>26,this.words[g+f]=x&67108863;if(A===0)return this.strip();for(n(A===-1),A=0,g=0;g<this.length;g++)x=-(this.words[g]|0)+A,A=x>>26,this.words[g]=x&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var f=this.length-s.length,p=this.clone(),g=s,x=g.words[g.length-1]|0,A=this._countBits(x);f=26-A,f!==0&&(g=g.ushln(f),p.iushln(f),x=g.words[g.length-1]|0);var y=p.length-g.length,c;if(l!=="mod"){c=new i(null),c.length=y+1,c.words=new Array(c.length);for(var M=0;M<c.length;M++)c.words[M]=0}var B=p.clone()._ishlnsubmul(g,1,y);B.negative===0&&(p=B,c&&(c.words[y]=1));for(var R=y-1;R>=0;R--){var Q=(p.words[g.length+R]|0)*67108864+(p.words[g.length+R-1]|0);for(Q=Math.min(Q/x|0,67108863),p._ishlnsubmul(g,Q,R);p.negative!==0;)Q--,p.negative=0,p._ishlnsubmul(g,1,R),p.isZero()||(p.negative^=1);c&&(c.words[R]=Q)}return c&&c.strip(),p.strip(),l!=="div"&&f!==0&&p.iushrn(f),{div:c||null,mod:p}},i.prototype.divmod=function(s,l,f){if(n(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var p,g,x;return this.negative!==0&&s.negative===0?(x=this.neg().divmod(s,l),l!=="mod"&&(p=x.div.neg()),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.iadd(s)),{div:p,mod:g}):this.negative===0&&s.negative!==0?(x=this.divmod(s.neg(),l),l!=="mod"&&(p=x.div.neg()),{div:p,mod:x.mod}):this.negative&s.negative?(x=this.neg().divmod(s.neg(),l),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.isub(s)),{div:x.div,mod:g}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var f=l.div.negative!==0?l.mod.isub(s):l.mod,p=s.ushrn(1),g=s.andln(1),x=f.cmp(p);return x<0||g===1&&x===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){n(s<=67108863);for(var l=(1<<26)%s,f=0,p=this.length-1;p>=0;p--)f=(l*f+(this.words[p]|0))%s;return f},i.prototype.idivn=function(s){n(s<=67108863);for(var l=0,f=this.length-1;f>=0;f--){var p=(this.words[f]|0)+l*67108864;this.words[f]=p/s|0,l=p%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=new i(0),A=new i(1),y=0;l.isEven()&&f.isEven();)l.iushrn(1),f.iushrn(1),++y;for(var c=f.clone(),M=l.clone();!l.isZero();){for(var B=0,R=1;!(l.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(l.iushrn(B);B-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(c),g.isub(M)),p.iushrn(1),g.iushrn(1);for(var Q=0,K=1;!(f.words[0]&K)&&Q<26;++Q,K<<=1);if(Q>0)for(f.iushrn(Q);Q-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(c),A.isub(M)),x.iushrn(1),A.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(x),g.isub(A)):(f.isub(l),x.isub(p),A.isub(g))}return{a:x,b:A,gcd:f.iushln(y)}},i.prototype._invmp=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=f.clone();l.cmpn(1)>0&&f.cmpn(1)>0;){for(var A=0,y=1;!(l.words[0]&y)&&A<26;++A,y<<=1);if(A>0)for(l.iushrn(A);A-- >0;)p.isOdd()&&p.iadd(x),p.iushrn(1);for(var c=0,M=1;!(f.words[0]&M)&&c<26;++c,M<<=1);if(c>0)for(f.iushrn(c);c-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(g)):(f.isub(l),g.isub(p))}var B;return l.cmpn(1)===0?B=p:B=g,B.cmpn(0)<0&&B.iadd(s),B},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),f=s.clone();l.negative=0,f.negative=0;for(var p=0;l.isEven()&&f.isEven();p++)l.iushrn(1),f.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;f.isEven();)f.iushrn(1);var g=l.cmp(f);if(g<0){var x=l;l=f,f=x}else if(g===0||f.cmpn(1)===0)break;l.isub(f)}while(!0);return f.iushln(p)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){n(typeof s=="number");var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return this._expand(f+1),this.words[f]|=p,this;for(var g=p,x=f;g!==0&&x<this.length;x++){var A=this.words[x]|0;A+=g,g=A>>>26,A&=67108863,this.words[x]=A}return g!==0&&(this.words[x]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var f;if(this.length>1)f=1;else{l&&(s=-s),n(s<=67108863,"Number is too big");var p=this.words[0]|0;f=p===s?0:p<s?-1:1}return this.negative!==0?-f|0:f},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,f=this.length-1;f>=0;f--){var p=this.words[f]|0,g=s.words[f]|0;if(p!==g){p<g?l=-1:p>g&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new F(s)},i.prototype.toRed=function(s){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return n(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return n(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var L={k256:null,p224:null,p192:null,p25519:null};function N(w,s){this.name=w,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},N.prototype.ireduce=function(s){var l=s,f;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),f=l.bitLength();while(f>this.n);var p=f<this.n?-1:l.ucmp(this.p);return p===0?(l.words[0]=0,l.length=1):p>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},N.prototype.split=function(s,l){s.iushrn(this.n,0,l)},N.prototype.imulK=function(s){return s.imul(this.k)};function _(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,N),_.prototype.split=function(s,l){for(var f=4194303,p=Math.min(s.length,9),g=0;g<p;g++)l.words[g]=s.words[g];if(l.length=p,s.length<=9){s.words[0]=0,s.length=1;return}var x=s.words[9];for(l.words[l.length++]=x&f,g=10;g<s.length;g++){var A=s.words[g]|0;s.words[g-10]=(A&f)<<4|x>>>22,x=A}x>>>=22,s.words[g-10]=x,x===0&&s.length>10?s.length-=10:s.length-=9},_.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,f=0;f<s.length;f++){var p=s.words[f]|0;l+=p*977,s.words[f]=l&67108863,l=p*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function O(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(O,N);function U(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(U,N);function z(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(z,N),z.prototype.imulK=function(s){for(var l=0,f=0;f<s.length;f++){var p=(s.words[f]|0)*19+l,g=p&67108863;p>>>=26,s.words[f]=g,l=p}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(L[s])return L[s];var l;if(s==="k256")l=new _;else if(s==="p224")l=new O;else if(s==="p192")l=new U;else if(s==="p25519")l=new z;else throw new Error("Unknown prime "+s);return L[s]=l,l};function F(w){if(typeof w=="string"){var s=i._prime(w);this.m=s.p,this.prime=s}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(s){n(s.negative===0,"red works only with positives"),n(s.red,"red works only with red numbers")},F.prototype._verify2=function(s,l){n((s.negative|l.negative)===0,"red works only with positives"),n(s.red&&s.red===l.red,"red works only with red numbers")},F.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},F.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},F.prototype.add=function(s,l){this._verify2(s,l);var f=s.add(l);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},F.prototype.iadd=function(s,l){this._verify2(s,l);var f=s.iadd(l);return f.cmp(this.m)>=0&&f.isub(this.m),f},F.prototype.sub=function(s,l){this._verify2(s,l);var f=s.sub(l);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},F.prototype.isub=function(s,l){this._verify2(s,l);var f=s.isub(l);return f.cmpn(0)<0&&f.iadd(this.m),f},F.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},F.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},F.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},F.prototype.isqr=function(s){return this.imul(s,s.clone())},F.prototype.sqr=function(s){return this.mul(s,s)},F.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(n(l%2===1),l===3){var f=this.m.add(new i(1)).iushrn(2);return this.pow(s,f)}for(var p=this.m.subn(1),g=0;!p.isZero()&&p.andln(1)===0;)g++,p.iushrn(1);n(!p.isZero());var x=new i(1).toRed(this),A=x.redNeg(),y=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);this.pow(c,y).cmp(A)!==0;)c.redIAdd(A);for(var M=this.pow(c,p),B=this.pow(s,p.addn(1).iushrn(1)),R=this.pow(s,p),Q=g;R.cmp(x)!==0;){for(var K=R,q=0;K.cmp(x)!==0;q++)K=K.redSqr();n(q<Q);var W=this.pow(M,new i(1).iushln(Q-q-1));B=B.redMul(W),M=W.redSqr(),R=R.redMul(M),Q=q}return B},F.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},F.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var f=4,p=new Array(1<<f);p[0]=new i(1).toRed(this),p[1]=s;for(var g=2;g<p.length;g++)p[g]=this.mul(p[g-1],s);var x=p[0],A=0,y=0,c=l.bitLength()%26;for(c===0&&(c=26),g=l.length-1;g>=0;g--){for(var M=l.words[g],B=c-1;B>=0;B--){var R=M>>B&1;if(x!==p[0]&&(x=this.sqr(x)),R===0&&A===0){y=0;continue}A<<=1,A|=R,y++,!(y!==f&&(g!==0||B!==0))&&(x=this.mul(x,p[A]),y=0,A=0)}c=26}return x},F.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},F.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new k(s)};function k(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(k,F),k.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},k.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},k.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var f=s.imul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var f=s.mul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(e,Ut)}(X4)),X4.exports}var J4={exports:{}};J4.exports;var iD;function Mne(){return iD||(iD=1,function(e){(function(t,r){function n(w,s){if(!w)throw new Error(s||"Assertion failed")}function a(w,s){w.super_=s;var l=function(){};l.prototype=s.prototype,w.prototype=new l,w.prototype.constructor=w}function i(w,s,l){if(i.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(w||0,s||10,l||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=vt.Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,f){if(typeof s=="number")return this._initNumber(s,l,f);if(typeof s=="object")return this._initArray(s,l,f);l==="hex"&&(l=16),n(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var p=0;s[0]==="-"&&(p++,this.negative=1),p<s.length&&(l===16?this._parseHex(s,p,f):(this._parseBase(s,l,p),f==="le"&&this._initArray(this.toArray(),l,f)))},i.prototype._initNumber=function(s,l,f){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(n(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),f==="le"&&this._initArray(this.toArray(),l,f)},i.prototype._initArray=function(s,l,f){if(n(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g,x,A=0;if(f==="be")for(p=s.length-1,g=0;p>=0;p-=3)x=s[p]|s[p-1]<<8|s[p-2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);else if(f==="le")for(p=0,g=0;p<s.length;p+=3)x=s[p]|s[p+1]<<8|s[p+2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);return this.strip()};function u(w,s){var l=w.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function d(w,s,l){var f=u(w,l);return l-1>=s&&(f|=u(w,l-1)<<4),f}i.prototype._parseHex=function(s,l,f){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g=0,x=0,A;if(f==="be")for(p=s.length-1;p>=l;p-=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8;else{var y=s.length-l;for(p=y%2===0?l+1:l;p<s.length;p+=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8}this.strip()};function h(w,s,l,f){for(var p=0,g=Math.min(w.length,l),x=s;x<g;x++){var A=w.charCodeAt(x)-48;p*=f,A>=49?p+=A-49+10:A>=17?p+=A-17+10:p+=A}return p}i.prototype._parseBase=function(s,l,f){this.words=[0],this.length=1;for(var p=0,g=1;g<=67108863;g*=l)p++;p--,g=g/l|0;for(var x=s.length-f,A=x%p,y=Math.min(x,x-A)+f,c=0,M=f;M<y;M+=p)c=h(s,M,M+p,l),this.imuln(g),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(A!==0){var B=1;for(c=h(s,M,s.length,l),M=0;M<A;M++)B*=l;this.imuln(B),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var f;if(s===16||s==="hex"){f="";for(var p=0,g=0,x=0;x<this.length;x++){var A=this.words[x],y=((A<<p|g)&16777215).toString(16);g=A>>>24-p&16777215,p+=2,p>=26&&(p-=26,x--),g!==0||x!==this.length-1?f=m[6-y.length]+y+f:f=y+f}for(g!==0&&(f=g.toString(16)+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}if(s===(s|0)&&s>=2&&s<=36){var c=b[s],M=v[s];f="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(M).toString(s);B=B.idivn(M),B.isZero()?f=R+f:f=m[c-R.length]+R+f}for(this.isZero()&&(f="0"+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return n(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,f){var p=this.byteLength(),g=f||Math.max(1,p);n(p<=g,"byte array longer than desired length"),n(g>0,"Requested array length <= 0"),this.strip();var x=l==="le",A=new s(g),y,c,M=this.clone();if(x){for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[c]=y;for(;c<g;c++)A[c]=0}else{for(c=0;c<g-p;c++)A[c]=0;for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[g-c-1]=y}return A},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,f=0;return l>=4096&&(f+=13,l>>>=13),l>=64&&(f+=7,l>>>=7),l>=8&&(f+=4,l>>>=4),l>=2&&(f+=2,l>>>=2),f+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,f=0;return l&8191||(f+=13,l>>>=13),l&127||(f+=7,l>>>=7),l&15||(f+=4,l>>>=4),l&3||(f+=2,l>>>=2),l&1||f++,f},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function C(w){for(var s=new Array(w.bitLength()),l=0;l<s.length;l++){var f=l/26|0,p=l%26;s[l]=(w.words[f]&1<<p)>>>p}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var f=this._zeroBits(this.words[l]);if(s+=f,f!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return n((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var f=0;f<l.length;f++)this.words[f]=this.words[f]&s.words[f];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return n((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var p=0;p<f.length;p++)this.words[p]=l.words[p]^f.words[p];if(this!==l)for(;p<l.length;p++)this.words[p]=l.words[p];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return n((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){n(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,f=s%26;this._expand(l),f>0&&l--;for(var p=0;p<l;p++)this.words[p]=~this.words[p]&67108863;return f>0&&(this.words[p]=~this.words[p]&67108863>>26-f),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){n(typeof s=="number"&&s>=0);var f=s/26|0,p=s%26;return this._expand(f+1),l?this.words[f]=this.words[f]|1<<p:this.words[f]=this.words[f]&~(1<<p),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var f,p;this.length>s.length?(f=this,p=s):(f=s,p=this);for(var g=0,x=0;x<p.length;x++)l=(f.words[x]|0)+(p.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;for(;g!==0&&x<f.length;x++)l=(f.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;if(this.length=f.length,g!==0)this.words[this.length]=g,this.length++;else if(f!==this)for(;x<f.length;x++)this.words[x]=f.words[x];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var f=this.cmp(s);if(f===0)return this.negative=0,this.length=1,this.words[0]=0,this;var p,g;f>0?(p=this,g=s):(p=s,g=this);for(var x=0,A=0;A<g.length;A++)l=(p.words[A]|0)-(g.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;for(;x!==0&&A<p.length;A++)l=(p.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;if(x===0&&A<p.length&&p!==this)for(;A<p.length;A++)this.words[A]=p.words[A];return this.length=Math.max(this.length,A),p!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function E(w,s,l){l.negative=s.negative^w.negative;var f=w.length+s.length|0;l.length=f,f=f-1|0;var p=w.words[0]|0,g=s.words[0]|0,x=p*g,A=x&67108863,y=x/67108864|0;l.words[0]=A;for(var c=1;c<f;c++){for(var M=y>>>26,B=y&67108863,R=Math.min(c,s.length-1),Q=Math.max(0,c-w.length+1);Q<=R;Q++){var K=c-Q|0;p=w.words[K]|0,g=s.words[Q]|0,x=p*g+B,M+=x/67108864|0,B=x&67108863}l.words[c]=B|0,y=M|0}return y!==0?l.words[c]=y|0:l.length--,l.strip()}var T=function(s,l,f){var p=s.words,g=l.words,x=f.words,A=0,y,c,M,B=p[0]|0,R=B&8191,Q=B>>>13,K=p[1]|0,q=K&8191,W=K>>>13,G=p[2]|0,X=G&8191,ne=G>>>13,te=p[3]|0,V=te&8191,oe=te>>>13,xe=p[4]|0,fe=xe&8191,me=xe>>>13,Ze=p[5]|0,he=Ze&8191,Se=Ze>>>13,Ke=p[6]|0,ye=Ke&8191,ce=Ke>>>13,Fe=p[7]|0,pe=Fe&8191,we=Fe>>>13,gt=p[8]|0,$=gt&8191,P=gt>>>13,Z=p[9]|0,ie=Z&8191,se=Z>>>13,be=g[0]|0,le=be&8191,Ae=be>>>13,We=g[1]|0,Me=We&8191,De=We>>>13,st=g[2]|0,Te=st&8191,Oe=st>>>13,Ft=g[3]|0,je=Ft&8191,Ue=Ft>>>13,Yt=g[4]|0,_e=Yt&8191,Pe=Yt>>>13,Mt=g[5]|0,Be=Mt&8191,He=Mt>>>13,or=g[6]|0,ke=or&8191,Ge=or>>>13,J=g[7]|0,ee=J&8191,re=J>>>13,H=g[8]|0,ae=H&8191,ue=H>>>13,Ee=g[9]|0,de=Ee&8191,ve=Ee>>>13;f.negative=s.negative^l.negative,f.length=19,y=Math.imul(R,le),c=Math.imul(R,Ae),c=c+Math.imul(Q,le)|0,M=Math.imul(Q,Ae);var tt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(tt>>>26)|0,tt&=67108863,y=Math.imul(q,le),c=Math.imul(q,Ae),c=c+Math.imul(W,le)|0,M=Math.imul(W,Ae),y=y+Math.imul(R,Me)|0,c=c+Math.imul(R,De)|0,c=c+Math.imul(Q,Me)|0,M=M+Math.imul(Q,De)|0;var qe=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(X,le),c=Math.imul(X,Ae),c=c+Math.imul(ne,le)|0,M=Math.imul(ne,Ae),y=y+Math.imul(q,Me)|0,c=c+Math.imul(q,De)|0,c=c+Math.imul(W,Me)|0,M=M+Math.imul(W,De)|0,y=y+Math.imul(R,Te)|0,c=c+Math.imul(R,Oe)|0,c=c+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Oe)|0;var _t=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(V,le),c=Math.imul(V,Ae),c=c+Math.imul(oe,le)|0,M=Math.imul(oe,Ae),y=y+Math.imul(X,Me)|0,c=c+Math.imul(X,De)|0,c=c+Math.imul(ne,Me)|0,M=M+Math.imul(ne,De)|0,y=y+Math.imul(q,Te)|0,c=c+Math.imul(q,Oe)|0,c=c+Math.imul(W,Te)|0,M=M+Math.imul(W,Oe)|0,y=y+Math.imul(R,je)|0,c=c+Math.imul(R,Ue)|0,c=c+Math.imul(Q,je)|0,M=M+Math.imul(Q,Ue)|0;var lt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(lt>>>26)|0,lt&=67108863,y=Math.imul(fe,le),c=Math.imul(fe,Ae),c=c+Math.imul(me,le)|0,M=Math.imul(me,Ae),y=y+Math.imul(V,Me)|0,c=c+Math.imul(V,De)|0,c=c+Math.imul(oe,Me)|0,M=M+Math.imul(oe,De)|0,y=y+Math.imul(X,Te)|0,c=c+Math.imul(X,Oe)|0,c=c+Math.imul(ne,Te)|0,M=M+Math.imul(ne,Oe)|0,y=y+Math.imul(q,je)|0,c=c+Math.imul(q,Ue)|0,c=c+Math.imul(W,je)|0,M=M+Math.imul(W,Ue)|0,y=y+Math.imul(R,_e)|0,c=c+Math.imul(R,Pe)|0,c=c+Math.imul(Q,_e)|0,M=M+Math.imul(Q,Pe)|0;var wt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(he,le),c=Math.imul(he,Ae),c=c+Math.imul(Se,le)|0,M=Math.imul(Se,Ae),y=y+Math.imul(fe,Me)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(me,Me)|0,M=M+Math.imul(me,De)|0,y=y+Math.imul(V,Te)|0,c=c+Math.imul(V,Oe)|0,c=c+Math.imul(oe,Te)|0,M=M+Math.imul(oe,Oe)|0,y=y+Math.imul(X,je)|0,c=c+Math.imul(X,Ue)|0,c=c+Math.imul(ne,je)|0,M=M+Math.imul(ne,Ue)|0,y=y+Math.imul(q,_e)|0,c=c+Math.imul(q,Pe)|0,c=c+Math.imul(W,_e)|0,M=M+Math.imul(W,Pe)|0,y=y+Math.imul(R,Be)|0,c=c+Math.imul(R,He)|0,c=c+Math.imul(Q,Be)|0,M=M+Math.imul(Q,He)|0;var Et=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(ye,le),c=Math.imul(ye,Ae),c=c+Math.imul(ce,le)|0,M=Math.imul(ce,Ae),y=y+Math.imul(he,Me)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(Se,Me)|0,M=M+Math.imul(Se,De)|0,y=y+Math.imul(fe,Te)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(me,Te)|0,M=M+Math.imul(me,Oe)|0,y=y+Math.imul(V,je)|0,c=c+Math.imul(V,Ue)|0,c=c+Math.imul(oe,je)|0,M=M+Math.imul(oe,Ue)|0,y=y+Math.imul(X,_e)|0,c=c+Math.imul(X,Pe)|0,c=c+Math.imul(ne,_e)|0,M=M+Math.imul(ne,Pe)|0,y=y+Math.imul(q,Be)|0,c=c+Math.imul(q,He)|0,c=c+Math.imul(W,Be)|0,M=M+Math.imul(W,He)|0,y=y+Math.imul(R,ke)|0,c=c+Math.imul(R,Ge)|0,c=c+Math.imul(Q,ke)|0,M=M+Math.imul(Q,Ge)|0;var jt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(jt>>>26)|0,jt&=67108863,y=Math.imul(pe,le),c=Math.imul(pe,Ae),c=c+Math.imul(we,le)|0,M=Math.imul(we,Ae),y=y+Math.imul(ye,Me)|0,c=c+Math.imul(ye,De)|0,c=c+Math.imul(ce,Me)|0,M=M+Math.imul(ce,De)|0,y=y+Math.imul(he,Te)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(Se,Te)|0,M=M+Math.imul(Se,Oe)|0,y=y+Math.imul(fe,je)|0,c=c+Math.imul(fe,Ue)|0,c=c+Math.imul(me,je)|0,M=M+Math.imul(me,Ue)|0,y=y+Math.imul(V,_e)|0,c=c+Math.imul(V,Pe)|0,c=c+Math.imul(oe,_e)|0,M=M+Math.imul(oe,Pe)|0,y=y+Math.imul(X,Be)|0,c=c+Math.imul(X,He)|0,c=c+Math.imul(ne,Be)|0,M=M+Math.imul(ne,He)|0,y=y+Math.imul(q,ke)|0,c=c+Math.imul(q,Ge)|0,c=c+Math.imul(W,ke)|0,M=M+Math.imul(W,Ge)|0,y=y+Math.imul(R,ee)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(Q,ee)|0,M=M+Math.imul(Q,re)|0;var Nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,y=Math.imul($,le),c=Math.imul($,Ae),c=c+Math.imul(P,le)|0,M=Math.imul(P,Ae),y=y+Math.imul(pe,Me)|0,c=c+Math.imul(pe,De)|0,c=c+Math.imul(we,Me)|0,M=M+Math.imul(we,De)|0,y=y+Math.imul(ye,Te)|0,c=c+Math.imul(ye,Oe)|0,c=c+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Oe)|0,y=y+Math.imul(he,je)|0,c=c+Math.imul(he,Ue)|0,c=c+Math.imul(Se,je)|0,M=M+Math.imul(Se,Ue)|0,y=y+Math.imul(fe,_e)|0,c=c+Math.imul(fe,Pe)|0,c=c+Math.imul(me,_e)|0,M=M+Math.imul(me,Pe)|0,y=y+Math.imul(V,Be)|0,c=c+Math.imul(V,He)|0,c=c+Math.imul(oe,Be)|0,M=M+Math.imul(oe,He)|0,y=y+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,M=M+Math.imul(ne,Ge)|0,y=y+Math.imul(q,ee)|0,c=c+Math.imul(q,re)|0,c=c+Math.imul(W,ee)|0,M=M+Math.imul(W,re)|0,y=y+Math.imul(R,ae)|0,c=c+Math.imul(R,ue)|0,c=c+Math.imul(Q,ae)|0,M=M+Math.imul(Q,ue)|0;var St=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(St>>>26)|0,St&=67108863,y=Math.imul(ie,le),c=Math.imul(ie,Ae),c=c+Math.imul(se,le)|0,M=Math.imul(se,Ae),y=y+Math.imul($,Me)|0,c=c+Math.imul($,De)|0,c=c+Math.imul(P,Me)|0,M=M+Math.imul(P,De)|0,y=y+Math.imul(pe,Te)|0,c=c+Math.imul(pe,Oe)|0,c=c+Math.imul(we,Te)|0,M=M+Math.imul(we,Oe)|0,y=y+Math.imul(ye,je)|0,c=c+Math.imul(ye,Ue)|0,c=c+Math.imul(ce,je)|0,M=M+Math.imul(ce,Ue)|0,y=y+Math.imul(he,_e)|0,c=c+Math.imul(he,Pe)|0,c=c+Math.imul(Se,_e)|0,M=M+Math.imul(Se,Pe)|0,y=y+Math.imul(fe,Be)|0,c=c+Math.imul(fe,He)|0,c=c+Math.imul(me,Be)|0,M=M+Math.imul(me,He)|0,y=y+Math.imul(V,ke)|0,c=c+Math.imul(V,Ge)|0,c=c+Math.imul(oe,ke)|0,M=M+Math.imul(oe,Ge)|0,y=y+Math.imul(X,ee)|0,c=c+Math.imul(X,re)|0,c=c+Math.imul(ne,ee)|0,M=M+Math.imul(ne,re)|0,y=y+Math.imul(q,ae)|0,c=c+Math.imul(q,ue)|0,c=c+Math.imul(W,ae)|0,M=M+Math.imul(W,ue)|0,y=y+Math.imul(R,de)|0,c=c+Math.imul(R,ve)|0,c=c+Math.imul(Q,de)|0,M=M+Math.imul(Q,ve)|0;var It=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(It>>>26)|0,It&=67108863,y=Math.imul(ie,Me),c=Math.imul(ie,De),c=c+Math.imul(se,Me)|0,M=Math.imul(se,De),y=y+Math.imul($,Te)|0,c=c+Math.imul($,Oe)|0,c=c+Math.imul(P,Te)|0,M=M+Math.imul(P,Oe)|0,y=y+Math.imul(pe,je)|0,c=c+Math.imul(pe,Ue)|0,c=c+Math.imul(we,je)|0,M=M+Math.imul(we,Ue)|0,y=y+Math.imul(ye,_e)|0,c=c+Math.imul(ye,Pe)|0,c=c+Math.imul(ce,_e)|0,M=M+Math.imul(ce,Pe)|0,y=y+Math.imul(he,Be)|0,c=c+Math.imul(he,He)|0,c=c+Math.imul(Se,Be)|0,M=M+Math.imul(Se,He)|0,y=y+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(me,ke)|0,M=M+Math.imul(me,Ge)|0,y=y+Math.imul(V,ee)|0,c=c+Math.imul(V,re)|0,c=c+Math.imul(oe,ee)|0,M=M+Math.imul(oe,re)|0,y=y+Math.imul(X,ae)|0,c=c+Math.imul(X,ue)|0,c=c+Math.imul(ne,ae)|0,M=M+Math.imul(ne,ue)|0,y=y+Math.imul(q,de)|0,c=c+Math.imul(q,ve)|0,c=c+Math.imul(W,de)|0,M=M+Math.imul(W,ve)|0;var Dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,y=Math.imul(ie,Te),c=Math.imul(ie,Oe),c=c+Math.imul(se,Te)|0,M=Math.imul(se,Oe),y=y+Math.imul($,je)|0,c=c+Math.imul($,Ue)|0,c=c+Math.imul(P,je)|0,M=M+Math.imul(P,Ue)|0,y=y+Math.imul(pe,_e)|0,c=c+Math.imul(pe,Pe)|0,c=c+Math.imul(we,_e)|0,M=M+Math.imul(we,Pe)|0,y=y+Math.imul(ye,Be)|0,c=c+Math.imul(ye,He)|0,c=c+Math.imul(ce,Be)|0,M=M+Math.imul(ce,He)|0,y=y+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(Se,ke)|0,M=M+Math.imul(Se,Ge)|0,y=y+Math.imul(fe,ee)|0,c=c+Math.imul(fe,re)|0,c=c+Math.imul(me,ee)|0,M=M+Math.imul(me,re)|0,y=y+Math.imul(V,ae)|0,c=c+Math.imul(V,ue)|0,c=c+Math.imul(oe,ae)|0,M=M+Math.imul(oe,ue)|0,y=y+Math.imul(X,de)|0,c=c+Math.imul(X,ve)|0,c=c+Math.imul(ne,de)|0,M=M+Math.imul(ne,ve)|0;var dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(ie,je),c=Math.imul(ie,Ue),c=c+Math.imul(se,je)|0,M=Math.imul(se,Ue),y=y+Math.imul($,_e)|0,c=c+Math.imul($,Pe)|0,c=c+Math.imul(P,_e)|0,M=M+Math.imul(P,Pe)|0,y=y+Math.imul(pe,Be)|0,c=c+Math.imul(pe,He)|0,c=c+Math.imul(we,Be)|0,M=M+Math.imul(we,He)|0,y=y+Math.imul(ye,ke)|0,c=c+Math.imul(ye,Ge)|0,c=c+Math.imul(ce,ke)|0,M=M+Math.imul(ce,Ge)|0,y=y+Math.imul(he,ee)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Se,ee)|0,M=M+Math.imul(Se,re)|0,y=y+Math.imul(fe,ae)|0,c=c+Math.imul(fe,ue)|0,c=c+Math.imul(me,ae)|0,M=M+Math.imul(me,ue)|0,y=y+Math.imul(V,de)|0,c=c+Math.imul(V,ve)|0,c=c+Math.imul(oe,de)|0,M=M+Math.imul(oe,ve)|0;var yt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(ie,_e),c=Math.imul(ie,Pe),c=c+Math.imul(se,_e)|0,M=Math.imul(se,Pe),y=y+Math.imul($,Be)|0,c=c+Math.imul($,He)|0,c=c+Math.imul(P,Be)|0,M=M+Math.imul(P,He)|0,y=y+Math.imul(pe,ke)|0,c=c+Math.imul(pe,Ge)|0,c=c+Math.imul(we,ke)|0,M=M+Math.imul(we,Ge)|0,y=y+Math.imul(ye,ee)|0,c=c+Math.imul(ye,re)|0,c=c+Math.imul(ce,ee)|0,M=M+Math.imul(ce,re)|0,y=y+Math.imul(he,ae)|0,c=c+Math.imul(he,ue)|0,c=c+Math.imul(Se,ae)|0,M=M+Math.imul(Se,ue)|0,y=y+Math.imul(fe,de)|0,c=c+Math.imul(fe,ve)|0,c=c+Math.imul(me,de)|0,M=M+Math.imul(me,ve)|0;var ot=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ot>>>26)|0,ot&=67108863,y=Math.imul(ie,Be),c=Math.imul(ie,He),c=c+Math.imul(se,Be)|0,M=Math.imul(se,He),y=y+Math.imul($,ke)|0,c=c+Math.imul($,Ge)|0,c=c+Math.imul(P,ke)|0,M=M+Math.imul(P,Ge)|0,y=y+Math.imul(pe,ee)|0,c=c+Math.imul(pe,re)|0,c=c+Math.imul(we,ee)|0,M=M+Math.imul(we,re)|0,y=y+Math.imul(ye,ae)|0,c=c+Math.imul(ye,ue)|0,c=c+Math.imul(ce,ae)|0,M=M+Math.imul(ce,ue)|0,y=y+Math.imul(he,de)|0,c=c+Math.imul(he,ve)|0,c=c+Math.imul(Se,de)|0,M=M+Math.imul(Se,ve)|0;var ht=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,y=Math.imul(ie,ke),c=Math.imul(ie,Ge),c=c+Math.imul(se,ke)|0,M=Math.imul(se,Ge),y=y+Math.imul($,ee)|0,c=c+Math.imul($,re)|0,c=c+Math.imul(P,ee)|0,M=M+Math.imul(P,re)|0,y=y+Math.imul(pe,ae)|0,c=c+Math.imul(pe,ue)|0,c=c+Math.imul(we,ae)|0,M=M+Math.imul(we,ue)|0,y=y+Math.imul(ye,de)|0,c=c+Math.imul(ye,ve)|0,c=c+Math.imul(ce,de)|0,M=M+Math.imul(ce,ve)|0;var pt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(ie,ee),c=Math.imul(ie,re),c=c+Math.imul(se,ee)|0,M=Math.imul(se,re),y=y+Math.imul($,ae)|0,c=c+Math.imul($,ue)|0,c=c+Math.imul(P,ae)|0,M=M+Math.imul(P,ue)|0,y=y+Math.imul(pe,de)|0,c=c+Math.imul(pe,ve)|0,c=c+Math.imul(we,de)|0,M=M+Math.imul(we,ve)|0;var nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(nt>>>26)|0,nt&=67108863,y=Math.imul(ie,ae),c=Math.imul(ie,ue),c=c+Math.imul(se,ae)|0,M=Math.imul(se,ue),y=y+Math.imul($,de)|0,c=c+Math.imul($,ve)|0,c=c+Math.imul(P,de)|0,M=M+Math.imul(P,ve)|0;var Ne=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,y=Math.imul(ie,de),c=Math.imul(ie,ve),c=c+Math.imul(se,de)|0,M=Math.imul(se,ve);var Le=(A+y|0)+((c&8191)<<13)|0;return A=(M+(c>>>13)|0)+(Le>>>26)|0,Le&=67108863,x[0]=tt,x[1]=qe,x[2]=_t,x[3]=lt,x[4]=wt,x[5]=Et,x[6]=jt,x[7]=Nt,x[8]=St,x[9]=It,x[10]=Dt,x[11]=dt,x[12]=yt,x[13]=ot,x[14]=ht,x[15]=pt,x[16]=nt,x[17]=Ne,x[18]=Le,A!==0&&(x[19]=A,f.length++),f};Math.imul||(T=E);function I(w,s,l){l.negative=s.negative^w.negative,l.length=w.length+s.length;for(var f=0,p=0,g=0;g<l.length-1;g++){var x=p;p=0;for(var A=f&67108863,y=Math.min(g,s.length-1),c=Math.max(0,g-w.length+1);c<=y;c++){var M=g-c,B=w.words[M]|0,R=s.words[c]|0,Q=B*R,K=Q&67108863;x=x+(Q/67108864|0)|0,K=K+A|0,A=K&67108863,x=x+(K>>>26)|0,p+=x>>>26,x&=67108863}l.words[g]=A,f=x,x=p}return f!==0?l.words[g]=f:l.length--,l.strip()}function S(w,s,l){var f=new D;return f.mulp(w,s,l)}i.prototype.mulTo=function(s,l){var f,p=this.length+s.length;return this.length===10&&s.length===10?f=T(this,s,l):p<63?f=E(this,s,l):p<1024?f=I(this,s,l):f=S(this,s,l),f};function D(w,s){this.x=w,this.y=s}D.prototype.makeRBT=function(s){for(var l=new Array(s),f=i.prototype._countBits(s)-1,p=0;p<s;p++)l[p]=this.revBin(p,f,s);return l},D.prototype.revBin=function(s,l,f){if(s===0||s===f-1)return s;for(var p=0,g=0;g<l;g++)p|=(s&1)<<l-g-1,s>>=1;return p},D.prototype.permute=function(s,l,f,p,g,x){for(var A=0;A<x;A++)p[A]=l[s[A]],g[A]=f[s[A]]},D.prototype.transform=function(s,l,f,p,g,x){this.permute(x,s,l,f,p,g);for(var A=1;A<g;A<<=1)for(var y=A<<1,c=Math.cos(2*Math.PI/y),M=Math.sin(2*Math.PI/y),B=0;B<g;B+=y)for(var R=c,Q=M,K=0;K<A;K++){var q=f[B+K],W=p[B+K],G=f[B+K+A],X=p[B+K+A],ne=R*G-Q*X;X=R*X+Q*G,G=ne,f[B+K]=q+G,p[B+K]=W+X,f[B+K+A]=q-G,p[B+K+A]=W-X,K!==y&&(ne=c*R-M*Q,Q=c*Q+M*R,R=ne)}},D.prototype.guessLen13b=function(s,l){var f=Math.max(l,s)|1,p=f&1,g=0;for(f=f/2|0;f;f=f>>>1)g++;return 1<<g+1+p},D.prototype.conjugate=function(s,l,f){if(!(f<=1))for(var p=0;p<f/2;p++){var g=s[p];s[p]=s[f-p-1],s[f-p-1]=g,g=l[p],l[p]=-l[f-p-1],l[f-p-1]=-g}},D.prototype.normalize13b=function(s,l){for(var f=0,p=0;p<l/2;p++){var g=Math.round(s[2*p+1]/l)*8192+Math.round(s[2*p]/l)+f;s[p]=g&67108863,g<67108864?f=0:f=g/67108864|0}return s},D.prototype.convert13b=function(s,l,f,p){for(var g=0,x=0;x<l;x++)g=g+(s[x]|0),f[2*x]=g&8191,g=g>>>13,f[2*x+1]=g&8191,g=g>>>13;for(x=2*l;x<p;++x)f[x]=0;n(g===0),n((g&-8192)===0)},D.prototype.stub=function(s){for(var l=new Array(s),f=0;f<s;f++)l[f]=0;return l},D.prototype.mulp=function(s,l,f){var p=2*this.guessLen13b(s.length,l.length),g=this.makeRBT(p),x=this.stub(p),A=new Array(p),y=new Array(p),c=new Array(p),M=new Array(p),B=new Array(p),R=new Array(p),Q=f.words;Q.length=p,this.convert13b(s.words,s.length,A,p),this.convert13b(l.words,l.length,M,p),this.transform(A,x,y,c,p,g),this.transform(M,x,B,R,p,g);for(var K=0;K<p;K++){var q=y[K]*B[K]-c[K]*R[K];c[K]=y[K]*R[K]+c[K]*B[K],y[K]=q}return this.conjugate(y,c,p),this.transform(y,c,Q,x,p,g),this.conjugate(Q,x,p),this.normalize13b(Q,p),f.negative=s.negative^l.negative,f.length=s.length+l.length,f.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),S(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){n(typeof s=="number"),n(s<67108864);for(var l=0,f=0;f<this.length;f++){var p=(this.words[f]|0)*s,g=(p&67108863)+(l&67108863);l>>=26,l+=p/67108864|0,l+=g>>>26,this.words[f]=g&67108863}return l!==0&&(this.words[f]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=C(s);if(l.length===0)return new i(1);for(var f=this,p=0;p<l.length&&l[p]===0;p++,f=f.sqr());if(++p<l.length)for(var g=f.sqr();p<l.length;p++,g=g.sqr())l[p]!==0&&(f=f.mul(g));return f},i.prototype.iushln=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=67108863>>>26-l<<26-l,g;if(l!==0){var x=0;for(g=0;g<this.length;g++){var A=this.words[g]&p,y=(this.words[g]|0)-A<<l;this.words[g]=y|x,x=A>>>26-l}x&&(this.words[g]=x,this.length++)}if(f!==0){for(g=this.length-1;g>=0;g--)this.words[g+f]=this.words[g];for(g=0;g<f;g++)this.words[g]=0;this.length+=f}return this.strip()},i.prototype.ishln=function(s){return n(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,f){n(typeof s=="number"&&s>=0);var p;l?p=(l-l%26)/26:p=0;var g=s%26,x=Math.min((s-g)/26,this.length),A=67108863^67108863>>>g<<g,y=f;if(p-=x,p=Math.max(0,p),y){for(var c=0;c<x;c++)y.words[c]=this.words[c];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,c=0;c<this.length;c++)this.words[c]=this.words[c+x];else this.words[0]=0,this.length=1;var M=0;for(c=this.length-1;c>=0&&(M!==0||c>=p);c--){var B=this.words[c]|0;this.words[c]=M<<26-g|B>>>g,M=B&A}return y&&M!==0&&(y.words[y.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,f){return n(this.negative===0),this.iushrn(s,l,f)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return!1;var g=this.words[f];return!!(g&p)},i.prototype.imaskn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=f)return this;if(l!==0&&f++,this.length=Math.min(f,this.length),l!==0){var p=67108863^67108863>>>l<<l;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return n(typeof s=="number"),n(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(n(typeof s=="number"),n(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,f){var p=s.length+f,g;this._expand(p);var x,A=0;for(g=0;g<s.length;g++){x=(this.words[g+f]|0)+A;var y=(s.words[g]|0)*l;x-=y&67108863,A=(x>>26)-(y/67108864|0),this.words[g+f]=x&67108863}for(;g<this.length-f;g++)x=(this.words[g+f]|0)+A,A=x>>26,this.words[g+f]=x&67108863;if(A===0)return this.strip();for(n(A===-1),A=0,g=0;g<this.length;g++)x=-(this.words[g]|0)+A,A=x>>26,this.words[g]=x&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var f=this.length-s.length,p=this.clone(),g=s,x=g.words[g.length-1]|0,A=this._countBits(x);f=26-A,f!==0&&(g=g.ushln(f),p.iushln(f),x=g.words[g.length-1]|0);var y=p.length-g.length,c;if(l!=="mod"){c=new i(null),c.length=y+1,c.words=new Array(c.length);for(var M=0;M<c.length;M++)c.words[M]=0}var B=p.clone()._ishlnsubmul(g,1,y);B.negative===0&&(p=B,c&&(c.words[y]=1));for(var R=y-1;R>=0;R--){var Q=(p.words[g.length+R]|0)*67108864+(p.words[g.length+R-1]|0);for(Q=Math.min(Q/x|0,67108863),p._ishlnsubmul(g,Q,R);p.negative!==0;)Q--,p.negative=0,p._ishlnsubmul(g,1,R),p.isZero()||(p.negative^=1);c&&(c.words[R]=Q)}return c&&c.strip(),p.strip(),l!=="div"&&f!==0&&p.iushrn(f),{div:c||null,mod:p}},i.prototype.divmod=function(s,l,f){if(n(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var p,g,x;return this.negative!==0&&s.negative===0?(x=this.neg().divmod(s,l),l!=="mod"&&(p=x.div.neg()),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.iadd(s)),{div:p,mod:g}):this.negative===0&&s.negative!==0?(x=this.divmod(s.neg(),l),l!=="mod"&&(p=x.div.neg()),{div:p,mod:x.mod}):this.negative&s.negative?(x=this.neg().divmod(s.neg(),l),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.isub(s)),{div:x.div,mod:g}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var f=l.div.negative!==0?l.mod.isub(s):l.mod,p=s.ushrn(1),g=s.andln(1),x=f.cmp(p);return x<0||g===1&&x===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){n(s<=67108863);for(var l=(1<<26)%s,f=0,p=this.length-1;p>=0;p--)f=(l*f+(this.words[p]|0))%s;return f},i.prototype.idivn=function(s){n(s<=67108863);for(var l=0,f=this.length-1;f>=0;f--){var p=(this.words[f]|0)+l*67108864;this.words[f]=p/s|0,l=p%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=new i(0),A=new i(1),y=0;l.isEven()&&f.isEven();)l.iushrn(1),f.iushrn(1),++y;for(var c=f.clone(),M=l.clone();!l.isZero();){for(var B=0,R=1;!(l.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(l.iushrn(B);B-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(c),g.isub(M)),p.iushrn(1),g.iushrn(1);for(var Q=0,K=1;!(f.words[0]&K)&&Q<26;++Q,K<<=1);if(Q>0)for(f.iushrn(Q);Q-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(c),A.isub(M)),x.iushrn(1),A.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(x),g.isub(A)):(f.isub(l),x.isub(p),A.isub(g))}return{a:x,b:A,gcd:f.iushln(y)}},i.prototype._invmp=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=f.clone();l.cmpn(1)>0&&f.cmpn(1)>0;){for(var A=0,y=1;!(l.words[0]&y)&&A<26;++A,y<<=1);if(A>0)for(l.iushrn(A);A-- >0;)p.isOdd()&&p.iadd(x),p.iushrn(1);for(var c=0,M=1;!(f.words[0]&M)&&c<26;++c,M<<=1);if(c>0)for(f.iushrn(c);c-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(g)):(f.isub(l),g.isub(p))}var B;return l.cmpn(1)===0?B=p:B=g,B.cmpn(0)<0&&B.iadd(s),B},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),f=s.clone();l.negative=0,f.negative=0;for(var p=0;l.isEven()&&f.isEven();p++)l.iushrn(1),f.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;f.isEven();)f.iushrn(1);var g=l.cmp(f);if(g<0){var x=l;l=f,f=x}else if(g===0||f.cmpn(1)===0)break;l.isub(f)}while(!0);return f.iushln(p)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){n(typeof s=="number");var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return this._expand(f+1),this.words[f]|=p,this;for(var g=p,x=f;g!==0&&x<this.length;x++){var A=this.words[x]|0;A+=g,g=A>>>26,A&=67108863,this.words[x]=A}return g!==0&&(this.words[x]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var f;if(this.length>1)f=1;else{l&&(s=-s),n(s<=67108863,"Number is too big");var p=this.words[0]|0;f=p===s?0:p<s?-1:1}return this.negative!==0?-f|0:f},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,f=this.length-1;f>=0;f--){var p=this.words[f]|0,g=s.words[f]|0;if(p!==g){p<g?l=-1:p>g&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new F(s)},i.prototype.toRed=function(s){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return n(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return n(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var L={k256:null,p224:null,p192:null,p25519:null};function N(w,s){this.name=w,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},N.prototype.ireduce=function(s){var l=s,f;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),f=l.bitLength();while(f>this.n);var p=f<this.n?-1:l.ucmp(this.p);return p===0?(l.words[0]=0,l.length=1):p>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},N.prototype.split=function(s,l){s.iushrn(this.n,0,l)},N.prototype.imulK=function(s){return s.imul(this.k)};function _(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,N),_.prototype.split=function(s,l){for(var f=4194303,p=Math.min(s.length,9),g=0;g<p;g++)l.words[g]=s.words[g];if(l.length=p,s.length<=9){s.words[0]=0,s.length=1;return}var x=s.words[9];for(l.words[l.length++]=x&f,g=10;g<s.length;g++){var A=s.words[g]|0;s.words[g-10]=(A&f)<<4|x>>>22,x=A}x>>>=22,s.words[g-10]=x,x===0&&s.length>10?s.length-=10:s.length-=9},_.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,f=0;f<s.length;f++){var p=s.words[f]|0;l+=p*977,s.words[f]=l&67108863,l=p*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function O(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(O,N);function U(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(U,N);function z(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(z,N),z.prototype.imulK=function(s){for(var l=0,f=0;f<s.length;f++){var p=(s.words[f]|0)*19+l,g=p&67108863;p>>>=26,s.words[f]=g,l=p}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(L[s])return L[s];var l;if(s==="k256")l=new _;else if(s==="p224")l=new O;else if(s==="p192")l=new U;else if(s==="p25519")l=new z;else throw new Error("Unknown prime "+s);return L[s]=l,l};function F(w){if(typeof w=="string"){var s=i._prime(w);this.m=s.p,this.prime=s}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(s){n(s.negative===0,"red works only with positives"),n(s.red,"red works only with red numbers")},F.prototype._verify2=function(s,l){n((s.negative|l.negative)===0,"red works only with positives"),n(s.red&&s.red===l.red,"red works only with red numbers")},F.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},F.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},F.prototype.add=function(s,l){this._verify2(s,l);var f=s.add(l);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},F.prototype.iadd=function(s,l){this._verify2(s,l);var f=s.iadd(l);return f.cmp(this.m)>=0&&f.isub(this.m),f},F.prototype.sub=function(s,l){this._verify2(s,l);var f=s.sub(l);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},F.prototype.isub=function(s,l){this._verify2(s,l);var f=s.isub(l);return f.cmpn(0)<0&&f.iadd(this.m),f},F.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},F.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},F.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},F.prototype.isqr=function(s){return this.imul(s,s.clone())},F.prototype.sqr=function(s){return this.mul(s,s)},F.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(n(l%2===1),l===3){var f=this.m.add(new i(1)).iushrn(2);return this.pow(s,f)}for(var p=this.m.subn(1),g=0;!p.isZero()&&p.andln(1)===0;)g++,p.iushrn(1);n(!p.isZero());var x=new i(1).toRed(this),A=x.redNeg(),y=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);this.pow(c,y).cmp(A)!==0;)c.redIAdd(A);for(var M=this.pow(c,p),B=this.pow(s,p.addn(1).iushrn(1)),R=this.pow(s,p),Q=g;R.cmp(x)!==0;){for(var K=R,q=0;K.cmp(x)!==0;q++)K=K.redSqr();n(q<Q);var W=this.pow(M,new i(1).iushln(Q-q-1));B=B.redMul(W),M=W.redSqr(),R=R.redMul(M),Q=q}return B},F.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},F.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var f=4,p=new Array(1<<f);p[0]=new i(1).toRed(this),p[1]=s;for(var g=2;g<p.length;g++)p[g]=this.mul(p[g-1],s);var x=p[0],A=0,y=0,c=l.bitLength()%26;for(c===0&&(c=26),g=l.length-1;g>=0;g--){for(var M=l.words[g],B=c-1;B>=0;B--){var R=M>>B&1;if(x!==p[0]&&(x=this.sqr(x)),R===0&&A===0){y=0;continue}A<<=1,A|=R,y++,!(y!==f&&(g!==0||B!==0))&&(x=this.mul(x,p[A]),y=0,A=0)}c=26}return x},F.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},F.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new k(s)};function k(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(k,F),k.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},k.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},k.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var f=s.imul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var f=s.mul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(e,Ut)}(J4)),J4.exports}var q2={exports:{}},aD;function Ox(){if(aD)return q2.exports;aD=1;var e;q2.exports=function(a){return e||(e=new t(null)),e.generate(a)};function t(n){this.rand=n}if(q2.exports.Rand=t,t.prototype.generate=function(a){return this._rand(a)},t.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var i=new Uint8Array(a),o=0;o<i.length;o++)i[o]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(a){var i=new Uint8Array(a);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(a){var i=new Uint8Array(a);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=rO();if(typeof r.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(a){return r.randomBytes(a)}}catch{}return q2.exports}var Jg,sD;function FF(){if(sD)return Jg;sD=1;var e=Mne(),t=Ox();function r(n){this.rand=n||new t.Rand}return Jg=r,r.create=function(a){return new r(a)},r.prototype._randbelow=function(a){var i=a.bitLength(),o=Math.ceil(i/8);do var u=new e(this.rand.generate(o));while(u.cmp(a)>=0);return u},r.prototype._randrange=function(a,i){var o=i.sub(a);return a.add(this._randbelow(o))},r.prototype.test=function(a,i,o){var u=a.bitLength(),d=e.mont(a),h=new e(1).toRed(d);i||(i=Math.max(1,u/48|0));for(var m=a.subn(1),b=0;!m.testn(b);b++);for(var v=a.shrn(b),C=m.toRed(d),E=!0;i>0;i--){var T=this._randrange(new e(2),m);o&&o(T);var I=T.toRed(d).redPow(v);if(!(I.cmp(h)===0||I.cmp(C)===0)){for(var S=1;S<b;S++){if(I=I.redSqr(),I.cmp(h)===0)return!1;if(I.cmp(C)===0)break}if(S===b)return!1}}return E},r.prototype.getDivisor=function(a,i){var o=a.bitLength(),u=e.mont(a),d=new e(1).toRed(u);i||(i=Math.max(1,o/48|0));for(var h=a.subn(1),m=0;!h.testn(m);m++);for(var b=a.shrn(m),v=h.toRed(u);i>0;i--){var C=this._randrange(new e(2),h),E=a.gcd(C);if(E.cmpn(1)!==0)return E;var T=C.toRed(u).redPow(b);if(!(T.cmp(d)===0||T.cmp(v)===0)){for(var I=1;I<m;I++){if(T=T.redSqr(),T.cmp(d)===0)return T.fromRed().subn(1).gcd(a);if(T.cmp(v)===0)break}if(I===m)return T=T.redSqr(),T.fromRed().subn(1).gcd(a)}}return!1},Jg}var e8,oD;function OF(){if(oD)return e8;oD=1;var e=$f();e8=I,I.simpleSieve=E,I.fermatTest=T;var t=_F(),r=new t(24),n=FF(),a=new n,i=new t(1),o=new t(2),u=new t(5);new t(16),new t(8);var d=new t(10),h=new t(3);new t(7);var m=new t(11),b=new t(4);new t(12);var v=null;function C(){if(v!==null)return v;var S=1048576,D=[];D[0]=2;for(var L=1,N=3;N<S;N+=2){for(var _=Math.ceil(Math.sqrt(N)),O=0;O<L&&D[O]<=_&&N%D[O]!==0;O++);L!==O&&D[O]<=_||(D[L++]=N)}return v=D,D}function E(S){for(var D=C(),L=0;L<D.length;L++)if(S.modn(D[L])===0)return S.cmpn(D[L])===0;return!0}function T(S){var D=t.mont(S);return o.toRed(D).redPow(S.subn(1)).fromRed().cmpn(1)===0}function I(S,D){if(S<16)return D===2||D===5?new t([140,123]):new t([140,39]);D=new t(D);for(var L,N;;){for(L=new t(e(Math.ceil(S/8)));L.bitLength()>S;)L.ishrn(1);if(L.isEven()&&L.iadd(i),L.testn(1)||L.iadd(o),D.cmp(o)){if(!D.cmp(u))for(;L.mod(d).cmp(h);)L.iadd(b)}else for(;L.mod(r).cmp(m);)L.iadd(b);if(N=L.shrn(1),E(N)&&E(L)&&T(N)&&T(L)&&a.test(N)&&a.test(L))return L}}return e8}const xne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},vne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},wne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Cne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},Ane={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Ene={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},Sne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},Dne={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},Tne={modp1:xne,modp2:vne,modp5:wne,modp14:Cne,modp15:Ane,modp16:Ene,modp17:Sne,modp18:Dne};var t8,cD;function Ine(){if(cD)return t8;cD=1;var e=_F(),t=FF(),r=new t,n=new e(24),a=new e(11),i=new e(10),o=new e(3),u=new e(7),d=OF(),h=$f();t8=E;function m(I,S){return S=S||"utf8",Je.Buffer.isBuffer(I)||(I=new Je.Buffer(I,S)),this._pub=new e(I),this}function b(I,S){return S=S||"utf8",Je.Buffer.isBuffer(I)||(I=new Je.Buffer(I,S)),this._priv=new e(I),this}var v={};function C(I,S){var D=S.toString("hex"),L=[D,I.toString(16)].join("_");if(L in v)return v[L];var N=0;if(I.isEven()||!d.simpleSieve||!d.fermatTest(I)||!r.test(I))return N+=1,D==="02"||D==="05"?N+=8:N+=4,v[L]=N,N;r.test(I.shrn(1))||(N+=2);var _;switch(D){case"02":I.mod(n).cmp(a)&&(N+=8);break;case"05":_=I.mod(i),_.cmp(o)&&_.cmp(u)&&(N+=8);break;default:N+=4}return v[L]=N,N}function E(I,S,D){this.setGenerator(S),this.__prime=new e(I),this._prime=e.mont(this.__prime),this._primeLen=I.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,D?(this.setPublicKey=m,this.setPrivateKey=b):this._primeCode=8}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=C(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new e(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(I){I=new e(I),I=I.toRed(this._prime);var S=I.redPow(this._priv).fromRed(),D=new Je.Buffer(S.toArray()),L=this.getPrime();if(D.length<L.length){var N=new Je.Buffer(L.length-D.length);N.fill(0),D=Je.Buffer.concat([N,D])}return D},E.prototype.getPublicKey=function(S){return T(this._pub,S)},E.prototype.getPrivateKey=function(S){return T(this._priv,S)},E.prototype.getPrime=function(I){return T(this.__prime,I)},E.prototype.getGenerator=function(I){return T(this._gen,I)},E.prototype.setGenerator=function(I,S){return S=S||"utf8",Je.Buffer.isBuffer(I)||(I=new Je.Buffer(I,S)),this.__gen=I,this._gen=new e(I),this};function T(I,S){var D=new Je.Buffer(I.toArray());return S?D.toString(S):D}return t8}var lD;function Nne(){if(lD)return Nl;lD=1;var e=OF(),t=Tne,r=Ine();function n(o){var u=new Je.Buffer(t[o].prime,"hex"),d=new Je.Buffer(t[o].gen,"hex");return new r(u,d)}var a={binary:!0,hex:!0,base64:!0};function i(o,u,d,h){return Je.Buffer.isBuffer(u)||a[u]===void 0?i(o,"binary",u,d):(u=u||"binary",h=h||"binary",d=d||new Je.Buffer([2]),Je.Buffer.isBuffer(d)||(d=new Je.Buffer(d,h)),typeof o=="number"?new r(e(o,d),d,!0):(Je.Buffer.isBuffer(o)||(o=new Je.Buffer(o,u)),new r(o,d,!0)))}return Nl.DiffieHellmanGroup=Nl.createDiffieHellmanGroup=Nl.getDiffieHellman=n,Nl.createDiffieHellman=Nl.DiffieHellman=i,Nl}var V2={exports:{}},$2={exports:{}},uD;function i5(){if(uD)return $2.exports;uD=1,typeof Je.process>"u"||!Je.process.version||Je.process.version.indexOf("v0.")===0||Je.process.version.indexOf("v1.")===0&&Je.process.version.indexOf("v1.8.")!==0?$2.exports={nextTick:e}:$2.exports=Je.process;function e(t,r,n,a){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,u;switch(i){case 0:case 1:return Je.process.nextTick(t);case 2:return Je.process.nextTick(function(){t.call(null,r)});case 3:return Je.process.nextTick(function(){t.call(null,r,n)});case 4:return Je.process.nextTick(function(){t.call(null,r,n,a)});default:for(o=new Array(i-1),u=0;u<o.length;)o[u++]=arguments[u];return Je.process.nextTick(function(){t.apply(null,o)})}}return $2.exports}var r8,fD;function Lne(){if(fD)return r8;fD=1;var e={}.toString;return r8=Array.isArray||function(t){return e.call(t)=="[object Array]"},r8}var n8,dD;function RF(){return dD||(dD=1,n8=Yh().EventEmitter),n8}var K2={exports:{}},hD;function Rx(){return hD||(hD=1,function(e,t){var r=vt,n=r.Buffer;function a(o,u){for(var d in o)u[d]=o[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i);function i(o,u,d){return n(o,u,d)}a(n,i),i.from=function(o,u,d){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,d)},i.alloc=function(o,u,d){if(typeof o!="number")throw new TypeError("Argument must be a number");var h=n(o);return u!==void 0?typeof d=="string"?h.fill(u,d):h.fill(u):h.fill(0),h},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}}(K2,K2.exports)),K2.exports}var xi={},pD;function qh(){if(pD)return xi;pD=1;function e(T){return Array.isArray?Array.isArray(T):E(T)==="[object Array]"}xi.isArray=e;function t(T){return typeof T=="boolean"}xi.isBoolean=t;function r(T){return T===null}xi.isNull=r;function n(T){return T==null}xi.isNullOrUndefined=n;function a(T){return typeof T=="number"}xi.isNumber=a;function i(T){return typeof T=="string"}xi.isString=i;function o(T){return typeof T=="symbol"}xi.isSymbol=o;function u(T){return T===void 0}xi.isUndefined=u;function d(T){return E(T)==="[object RegExp]"}xi.isRegExp=d;function h(T){return typeof T=="object"&&T!==null}xi.isObject=h;function m(T){return E(T)==="[object Date]"}xi.isDate=m;function b(T){return E(T)==="[object Error]"||T instanceof Error}xi.isError=b;function v(T){return typeof T=="function"}xi.isFunction=v;function C(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}xi.isPrimitive=C,xi.isBuffer=vt.Buffer.isBuffer;function E(T){return Object.prototype.toString.call(T)}return xi}var i8={exports:{}},mD;function jne(){return mD||(mD=1,function(e){function t(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}var r=Rx().Buffer,n=Zh;function a(i,o,u){i.copy(o,u)}e.exports=function(){function i(){t(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(u){var d={data:u,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},i.prototype.unshift=function(u){var d={data:u,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},i.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(u){if(this.length===0)return"";for(var d=this.head,h=""+d.data;d=d.next;)h+=u+d.data;return h},i.prototype.concat=function(u){if(this.length===0)return r.alloc(0);for(var d=r.allocUnsafe(u>>>0),h=this.head,m=0;h;)a(h.data,d,m),m+=h.data.length,h=h.next;return d},i}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var i=n.inspect({length:this.length});return this.constructor.name+" "+i})}(i8)),i8.exports}var a8,gD;function UF(){if(gD)return a8;gD=1;var e=i5();function t(a,i){var o=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(i?i(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,a)):e.nextTick(n,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!i&&h?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,e.nextTick(n,o,h)):e.nextTick(n,o,h):i&&i(h)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(a,i){a.emit("error",i)}return a8={destroy:t,undestroy:r},a8}var s8,yD;function PF(){if(yD)return s8;yD=1;var e=i5();s8=T;function t(x){var A=this;this.next=null,this.entry=null,this.finish=function(){g(A,x)}}var r=!Je.process.browser&&["v0.10","v0.9."].indexOf(Je.process.version.slice(0,5))>-1?setImmediate:e.nextTick,n;T.WritableState=C;var a=Object.create(qh());a.inherits=Xt;var i={deprecate:mF()},o=RF(),u=Rx().Buffer,d=(typeof Ut<"u"?Ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(x){return u.from(x)}function m(x){return u.isBuffer(x)||x instanceof d}var b=UF();a.inherits(T,o);function v(){}function C(x,A){n=n||bf(),x=x||{};var y=A instanceof n;this.objectMode=!!x.objectMode,y&&(this.objectMode=this.objectMode||!!x.writableObjectMode);var c=x.highWaterMark,M=x.writableHighWaterMark,B=this.objectMode?16:16*1024;c||c===0?this.highWaterMark=c:y&&(M||M===0)?this.highWaterMark=M:this.highWaterMark=B,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=x.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){U(A,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}C.prototype.getBuffer=function(){for(var A=this.bufferedRequest,y=[];A;)y.push(A),A=A.next;return y},function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(x){return E.call(this,x)?!0:this!==T?!1:x&&x._writableState instanceof C}})):E=function(x){return x instanceof this};function T(x){if(n=n||bf(),!E.call(T,this)&&!(this instanceof n))return new T(x);this._writableState=new C(x,this),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),o.call(this)}T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(x,A){var y=new Error("write after end");x.emit("error",y),e.nextTick(A,y)}function S(x,A,y,c){var M=!0,B=!1;return y===null?B=new TypeError("May not write null values to stream"):typeof y!="string"&&y!==void 0&&!A.objectMode&&(B=new TypeError("Invalid non-string/buffer chunk")),B&&(x.emit("error",B),e.nextTick(c,B),M=!1),M}T.prototype.write=function(x,A,y){var c=this._writableState,M=!1,B=!c.objectMode&&m(x);return B&&!u.isBuffer(x)&&(x=h(x)),typeof A=="function"&&(y=A,A=null),B?A="buffer":A||(A=c.defaultEncoding),typeof y!="function"&&(y=v),c.ended?I(this,y):(B||S(this,c,x,y))&&(c.pendingcb++,M=L(this,c,B,x,A,y)),M},T.prototype.cork=function(){var x=this._writableState;x.corked++},T.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&k(this,x))},T.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this};function D(x,A,y){return!x.objectMode&&x.decodeStrings!==!1&&typeof A=="string"&&(A=u.from(A,y)),A}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(x,A,y,c,M,B){if(!y){var R=D(A,c,M);c!==R&&(y=!0,M="buffer",c=R)}var Q=A.objectMode?1:c.length;A.length+=Q;var K=A.length<A.highWaterMark;if(K||(A.needDrain=!0),A.writing||A.corked){var q=A.lastBufferedRequest;A.lastBufferedRequest={chunk:c,encoding:M,isBuf:y,callback:B,next:null},q?q.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else N(x,A,!1,Q,c,M,B);return K}function N(x,A,y,c,M,B,R){A.writelen=c,A.writecb=R,A.writing=!0,A.sync=!0,y?x._writev(M,A.onwrite):x._write(M,B,A.onwrite),A.sync=!1}function _(x,A,y,c,M){--A.pendingcb,y?(e.nextTick(M,c),e.nextTick(f,x,A),x._writableState.errorEmitted=!0,x.emit("error",c)):(M(c),x._writableState.errorEmitted=!0,x.emit("error",c),f(x,A))}function O(x){x.writing=!1,x.writecb=null,x.length-=x.writelen,x.writelen=0}function U(x,A){var y=x._writableState,c=y.sync,M=y.writecb;if(O(y),A)_(x,y,c,A,M);else{var B=w(y);!B&&!y.corked&&!y.bufferProcessing&&y.bufferedRequest&&k(x,y),c?r(z,x,y,B,M):z(x,y,B,M)}}function z(x,A,y,c){y||F(x,A),A.pendingcb--,c(),f(x,A)}function F(x,A){A.length===0&&A.needDrain&&(A.needDrain=!1,x.emit("drain"))}function k(x,A){A.bufferProcessing=!0;var y=A.bufferedRequest;if(x._writev&&y&&y.next){var c=A.bufferedRequestCount,M=new Array(c),B=A.corkedRequestsFree;B.entry=y;for(var R=0,Q=!0;y;)M[R]=y,y.isBuf||(Q=!1),y=y.next,R+=1;M.allBuffers=Q,N(x,A,!0,A.length,M,"",B.finish),A.pendingcb++,A.lastBufferedRequest=null,B.next?(A.corkedRequestsFree=B.next,B.next=null):A.corkedRequestsFree=new t(A),A.bufferedRequestCount=0}else{for(;y;){var K=y.chunk,q=y.encoding,W=y.callback,G=A.objectMode?1:K.length;if(N(x,A,!1,G,K,q,W),y=y.next,A.bufferedRequestCount--,A.writing)break}y===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=y,A.bufferProcessing=!1}T.prototype._write=function(x,A,y){y(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(x,A,y){var c=this._writableState;typeof x=="function"?(y=x,x=null,A=null):typeof A=="function"&&(y=A,A=null),x!=null&&this.write(x,A),c.corked&&(c.corked=1,this.uncork()),c.ending||p(this,c,y)};function w(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function s(x,A){x._final(function(y){A.pendingcb--,y&&x.emit("error",y),A.prefinished=!0,x.emit("prefinish"),f(x,A)})}function l(x,A){!A.prefinished&&!A.finalCalled&&(typeof x._final=="function"?(A.pendingcb++,A.finalCalled=!0,e.nextTick(s,x,A)):(A.prefinished=!0,x.emit("prefinish")))}function f(x,A){var y=w(A);return y&&(l(x,A),A.pendingcb===0&&(A.finished=!0,x.emit("finish"))),y}function p(x,A,y){A.ending=!0,f(x,A),y&&(A.finished?e.nextTick(y):x.once("finish",y)),A.ended=!0,x.writable=!1}function g(x,A,y){var c=x.entry;for(x.entry=null;c;){var M=c.callback;A.pendingcb--,M(y),c=c.next}A.corkedRequestsFree.next=x}return Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),T.prototype.destroy=b.destroy,T.prototype._undestroy=b.undestroy,T.prototype._destroy=function(x,A){this.end(),A(x)},s8}var o8,bD;function bf(){if(bD)return o8;bD=1;var e=i5(),t=Object.keys||function(b){var v=[];for(var C in b)v.push(C);return v};o8=d;var r=Object.create(qh());r.inherits=Xt;var n=WF(),a=PF();r.inherits(d,n);for(var i=t(a.prototype),o=0;o<i.length;o++){var u=i[o];d.prototype[u]||(d.prototype[u]=a.prototype[u])}function d(b){if(!(this instanceof d))return new d(b);n.call(this,b),a.call(this,b),b&&b.readable===!1&&(this.readable=!1),b&&b.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,b&&b.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function h(){this.allowHalfOpen||this._writableState.ended||e.nextTick(m,this)}function m(b){b.end()}return Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(b){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=b,this._writableState.destroyed=b)}}),d.prototype._destroy=function(b,v){this.push(null),this.end(),e.nextTick(v,b)},o8}var c8={},X2={exports:{}},MD;function Bne(){return MD||(MD=1,function(e,t){var r=vt,n=r.Buffer;function a(o,u){for(var d in o)u[d]=o[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i);function i(o,u,d){return n(o,u,d)}a(n,i),i.from=function(o,u,d){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,d)},i.alloc=function(o,u,d){if(typeof o!="number")throw new TypeError("Argument must be a number");var h=n(o);return u!==void 0?typeof d=="string"?h.fill(u,d):h.fill(u):h.fill(0),h},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}}(X2,X2.exports)),X2.exports}var xD;function vD(){if(xD)return c8;xD=1;var e=Bne().Buffer,t=e.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(S){if(!S)return"utf8";for(var D;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(D)return;S=(""+S).toLowerCase(),D=!0}}function n(S){var D=r(S);if(typeof D!="string"&&(e.isEncoding===t||!t(S)))throw new Error("Unknown encoding: "+S);return D||S}c8.StringDecoder=a;function a(S){this.encoding=n(S);var D;switch(this.encoding){case"utf16le":this.text=b,this.end=v,D=4;break;case"utf8":this.fillLast=d,D=4;break;case"base64":this.text=C,this.end=E,D=3;break;default:this.write=T,this.end=I;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(D)}a.prototype.write=function(S){if(S.length===0)return"";var D,L;if(this.lastNeed){if(D=this.fillLast(S),D===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;return L<S.length?D?D+this.text(S,L):this.text(S,L):D||""},a.prototype.end=m,a.prototype.text=h,a.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function i(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function o(S,D,L){var N=D.length-1;if(N<L)return 0;var _=i(D[N]);return _>=0?(_>0&&(S.lastNeed=_-1),_):--N<L||_===-2?0:(_=i(D[N]),_>=0?(_>0&&(S.lastNeed=_-2),_):--N<L||_===-2?0:(_=i(D[N]),_>=0?(_>0&&(_===2?_=0:S.lastNeed=_-3),_):0))}function u(S,D,L){if((D[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&D.length>1){if((D[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&D.length>2&&(D[2]&192)!==128)return S.lastNeed=2,"�"}}function d(S){var D=this.lastTotal-this.lastNeed,L=u(this,S);if(L!==void 0)return L;if(this.lastNeed<=S.length)return S.copy(this.lastChar,D,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,D,0,S.length),this.lastNeed-=S.length}function h(S,D){var L=o(this,S,D);if(!this.lastNeed)return S.toString("utf8",D);this.lastTotal=L;var N=S.length-(L-this.lastNeed);return S.copy(this.lastChar,0,N),S.toString("utf8",D,N)}function m(S){var D=S&&S.length?this.write(S):"";return this.lastNeed?D+"�":D}function b(S,D){if((S.length-D)%2===0){var L=S.toString("utf16le",D);if(L){var N=L.charCodeAt(L.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",D,S.length-1)}function v(S){var D=S&&S.length?this.write(S):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return D+this.lastChar.toString("utf16le",0,L)}return D}function C(S,D){var L=(S.length-D)%3;return L===0?S.toString("base64",D):(this.lastNeed=3-L,this.lastTotal=3,L===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",D,S.length-L))}function E(S){var D=S&&S.length?this.write(S):"";return this.lastNeed?D+this.lastChar.toString("base64",0,3-this.lastNeed):D}function T(S){return S.toString(this.encoding)}function I(S){return S&&S.length?this.write(S):""}return c8}var l8,wD;function WF(){if(wD)return l8;wD=1;var e=i5();l8=D;var t=Lne(),r;D.ReadableState=S,Yh().EventEmitter;var n=function(W,G){return W.listeners(G).length},a=RF(),i=Rx().Buffer,o=(typeof Ut<"u"?Ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(W){return i.from(W)}function d(W){return i.isBuffer(W)||W instanceof o}var h=Object.create(qh());h.inherits=Xt;var m=Zh,b=void 0;m&&m.debuglog?b=m.debuglog("stream"):b=function(){};var v=jne(),C=UF(),E;h.inherits(D,a);var T=["error","close","destroy","pause","resume"];function I(W,G,X){if(typeof W.prependListener=="function")return W.prependListener(G,X);!W._events||!W._events[G]?W.on(G,X):t(W._events[G])?W._events[G].unshift(X):W._events[G]=[X,W._events[G]]}function S(W,G){r=r||bf(),W=W||{};var X=G instanceof r;this.objectMode=!!W.objectMode,X&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var ne=W.highWaterMark,te=W.readableHighWaterMark,V=this.objectMode?16:16*1024;ne||ne===0?this.highWaterMark=ne:X&&(te||te===0)?this.highWaterMark=te:this.highWaterMark=V,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(E||(E=vD().StringDecoder),this.decoder=new E(W.encoding),this.encoding=W.encoding)}function D(W){if(r=r||bf(),!(this instanceof D))return new D(W);this._readableState=new S(W,this),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),a.call(this)}Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),D.prototype.destroy=C.destroy,D.prototype._undestroy=C.undestroy,D.prototype._destroy=function(W,G){this.push(null),G(W)},D.prototype.push=function(W,G){var X=this._readableState,ne;return X.objectMode?ne=!0:typeof W=="string"&&(G=G||X.defaultEncoding,G!==X.encoding&&(W=i.from(W,G),G=""),ne=!0),L(this,W,G,!1,ne)},D.prototype.unshift=function(W){return L(this,W,null,!0,!1)};function L(W,G,X,ne,te){var V=W._readableState;if(G===null)V.reading=!1,k(W,V);else{var oe;te||(oe=_(V,G)),oe?W.emit("error",oe):V.objectMode||G&&G.length>0?(typeof G!="string"&&!V.objectMode&&Object.getPrototypeOf(G)!==i.prototype&&(G=u(G)),ne?V.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):N(W,V,G,!0):V.ended?W.emit("error",new Error("stream.push() after EOF")):(V.reading=!1,V.decoder&&!X?(G=V.decoder.write(G),V.objectMode||G.length!==0?N(W,V,G,!1):l(W,V)):N(W,V,G,!1))):ne||(V.reading=!1)}return O(V)}function N(W,G,X,ne){G.flowing&&G.length===0&&!G.sync?(W.emit("data",X),W.read(0)):(G.length+=G.objectMode?1:X.length,ne?G.buffer.unshift(X):G.buffer.push(X),G.needReadable&&w(W)),l(W,G)}function _(W,G){var X;return!d(G)&&typeof G!="string"&&G!==void 0&&!W.objectMode&&(X=new TypeError("Invalid non-string/buffer chunk")),X}function O(W){return!W.ended&&(W.needReadable||W.length<W.highWaterMark||W.length===0)}D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(W){return E||(E=vD().StringDecoder),this._readableState.decoder=new E(W),this._readableState.encoding=W,this};var U=8388608;function z(W){return W>=U?W=U:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function F(W,G){return W<=0||G.length===0&&G.ended?0:G.objectMode?1:W!==W?G.flowing&&G.length?G.buffer.head.data.length:G.length:(W>G.highWaterMark&&(G.highWaterMark=z(W)),W<=G.length?W:G.ended?G.length:(G.needReadable=!0,0))}D.prototype.read=function(W){b("read",W),W=parseInt(W,10);var G=this._readableState,X=W;if(W!==0&&(G.emittedReadable=!1),W===0&&G.needReadable&&(G.length>=G.highWaterMark||G.ended))return b("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?Q(this):w(this),null;if(W=F(W,G),W===0&&G.ended)return G.length===0&&Q(this),null;var ne=G.needReadable;b("need readable",ne),(G.length===0||G.length-W<G.highWaterMark)&&(ne=!0,b("length less than watermark",ne)),G.ended||G.reading?(ne=!1,b("reading or ended",ne)):ne&&(b("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0),this._read(G.highWaterMark),G.sync=!1,G.reading||(W=F(X,G)));var te;return W>0?te=c(W,G):te=null,te===null?(G.needReadable=!0,W=0):G.length-=W,G.length===0&&(G.ended||(G.needReadable=!0),X!==W&&G.ended&&Q(this)),te!==null&&this.emit("data",te),te};function k(W,G){if(!G.ended){if(G.decoder){var X=G.decoder.end();X&&X.length&&(G.buffer.push(X),G.length+=G.objectMode?1:X.length)}G.ended=!0,w(W)}}function w(W){var G=W._readableState;G.needReadable=!1,G.emittedReadable||(b("emitReadable",G.flowing),G.emittedReadable=!0,G.sync?e.nextTick(s,W):s(W))}function s(W){b("emit readable"),W.emit("readable"),y(W)}function l(W,G){G.readingMore||(G.readingMore=!0,e.nextTick(f,W,G))}function f(W,G){for(var X=G.length;!G.reading&&!G.flowing&&!G.ended&&G.length<G.highWaterMark&&(b("maybeReadMore read 0"),W.read(0),X!==G.length);)X=G.length;G.readingMore=!1}D.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},D.prototype.pipe=function(W,G){var X=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=W;break;case 1:ne.pipes=[ne.pipes,W];break;default:ne.pipes.push(W);break}ne.pipesCount+=1,b("pipe count=%d opts=%j",ne.pipesCount,G);var te=(!G||G.end!==!1)&&W!==Je.process.stdout&&W!==Je.process.stderr,V=te?xe:Fe;ne.endEmitted?e.nextTick(V):X.once("end",V),W.on("unpipe",oe);function oe(pe,we){b("onunpipe"),pe===X&&we&&we.hasUnpiped===!1&&(we.hasUnpiped=!0,Ze())}function xe(){b("onend"),W.end()}var fe=p(X);W.on("drain",fe);var me=!1;function Ze(){b("cleanup"),W.removeListener("close",ye),W.removeListener("finish",ce),W.removeListener("drain",fe),W.removeListener("error",Ke),W.removeListener("unpipe",oe),X.removeListener("end",xe),X.removeListener("end",Fe),X.removeListener("data",Se),me=!0,ne.awaitDrain&&(!W._writableState||W._writableState.needDrain)&&fe()}var he=!1;X.on("data",Se);function Se(pe){b("ondata"),he=!1;var we=W.write(pe);we===!1&&!he&&((ne.pipesCount===1&&ne.pipes===W||ne.pipesCount>1&&q(ne.pipes,W)!==-1)&&!me&&(b("false write response, pause",ne.awaitDrain),ne.awaitDrain++,he=!0),X.pause())}function Ke(pe){b("onerror",pe),Fe(),W.removeListener("error",Ke),n(W,"error")===0&&W.emit("error",pe)}I(W,"error",Ke);function ye(){W.removeListener("finish",ce),Fe()}W.once("close",ye);function ce(){b("onfinish"),W.removeListener("close",ye),Fe()}W.once("finish",ce);function Fe(){b("unpipe"),X.unpipe(W)}return W.emit("pipe",X),ne.flowing||(b("pipe resume"),X.resume()),W};function p(W){return function(){var G=W._readableState;b("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&n(W,"data")&&(G.flowing=!0,y(W))}}D.prototype.unpipe=function(W){var G=this._readableState,X={hasUnpiped:!1};if(G.pipesCount===0)return this;if(G.pipesCount===1)return W&&W!==G.pipes?this:(W||(W=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,W&&W.emit("unpipe",this,X),this);if(!W){var ne=G.pipes,te=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var V=0;V<te;V++)ne[V].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=q(G.pipes,W);return oe===-1?this:(G.pipes.splice(oe,1),G.pipesCount-=1,G.pipesCount===1&&(G.pipes=G.pipes[0]),W.emit("unpipe",this,X),this)},D.prototype.on=function(W,G){var X=a.prototype.on.call(this,W,G);if(W==="data")this._readableState.flowing!==!1&&this.resume();else if(W==="readable"){var ne=this._readableState;!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&w(this):e.nextTick(g,this))}return X},D.prototype.addListener=D.prototype.on;function g(W){b("readable nexttick read 0"),W.read(0)}D.prototype.resume=function(){var W=this._readableState;return W.flowing||(b("resume"),W.flowing=!0,x(this,W)),this};function x(W,G){G.resumeScheduled||(G.resumeScheduled=!0,e.nextTick(A,W,G))}function A(W,G){G.reading||(b("resume read 0"),W.read(0)),G.resumeScheduled=!1,G.awaitDrain=0,W.emit("resume"),y(W),G.flowing&&!G.reading&&W.read(0)}D.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function y(W){var G=W._readableState;for(b("flow",G.flowing);G.flowing&&W.read()!==null;);}D.prototype.wrap=function(W){var G=this,X=this._readableState,ne=!1;W.on("end",function(){if(b("wrapped end"),X.decoder&&!X.ended){var oe=X.decoder.end();oe&&oe.length&&G.push(oe)}G.push(null)}),W.on("data",function(oe){if(b("wrapped data"),X.decoder&&(oe=X.decoder.write(oe)),!(X.objectMode&&oe==null)&&!(!X.objectMode&&(!oe||!oe.length))){var xe=G.push(oe);xe||(ne=!0,W.pause())}});for(var te in W)this[te]===void 0&&typeof W[te]=="function"&&(this[te]=function(oe){return function(){return W[oe].apply(W,arguments)}}(te));for(var V=0;V<T.length;V++)W.on(T[V],this.emit.bind(this,T[V]));return this._read=function(oe){b("wrapped _read",oe),ne&&(ne=!1,W.resume())},this},Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),D._fromList=c;function c(W,G){if(G.length===0)return null;var X;return G.objectMode?X=G.buffer.shift():!W||W>=G.length?(G.decoder?X=G.buffer.join(""):G.buffer.length===1?X=G.buffer.head.data:X=G.buffer.concat(G.length),G.buffer.clear()):X=M(W,G.buffer,G.decoder),X}function M(W,G,X){var ne;return W<G.head.data.length?(ne=G.head.data.slice(0,W),G.head.data=G.head.data.slice(W)):W===G.head.data.length?ne=G.shift():ne=X?B(W,G):R(W,G),ne}function B(W,G){var X=G.head,ne=1,te=X.data;for(W-=te.length;X=X.next;){var V=X.data,oe=W>V.length?V.length:W;if(oe===V.length?te+=V:te+=V.slice(0,W),W-=oe,W===0){oe===V.length?(++ne,X.next?G.head=X.next:G.head=G.tail=null):(G.head=X,X.data=V.slice(oe));break}++ne}return G.length-=ne,te}function R(W,G){var X=i.allocUnsafe(W),ne=G.head,te=1;for(ne.data.copy(X),W-=ne.data.length;ne=ne.next;){var V=ne.data,oe=W>V.length?V.length:W;if(V.copy(X,X.length-W,0,oe),W-=oe,W===0){oe===V.length?(++te,ne.next?G.head=ne.next:G.head=G.tail=null):(G.head=ne,ne.data=V.slice(oe));break}++te}return G.length-=te,X}function Q(W){var G=W._readableState;if(G.length>0)throw new Error('"endReadable()" called on non-empty stream');G.endEmitted||(G.ended=!0,e.nextTick(K,G,W))}function K(W,G){!W.endEmitted&&W.length===0&&(W.endEmitted=!0,G.readable=!1,G.emit("end"))}function q(W,G){for(var X=0,ne=W.length;X<ne;X++)if(W[X]===G)return X;return-1}return l8}var u8,CD;function HF(){if(CD)return u8;CD=1,u8=n;var e=bf(),t=Object.create(qh());t.inherits=Xt,t.inherits(n,e);function r(o,u){var d=this._transformState;d.transforming=!1;var h=d.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,u!=null&&this.push(u),h(o);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function n(o){if(!(this instanceof n))return new n(o);e.call(this,o),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,o&&(typeof o.transform=="function"&&(this._transform=o.transform),typeof o.flush=="function"&&(this._flush=o.flush)),this.on("prefinish",a)}function a(){var o=this;typeof this._flush=="function"?this._flush(function(u,d){i(o,u,d)}):i(this,null,null)}n.prototype.push=function(o,u){return this._transformState.needTransform=!1,e.prototype.push.call(this,o,u)},n.prototype._transform=function(o,u,d){throw new Error("_transform() is not implemented")},n.prototype._write=function(o,u,d){var h=this._transformState;if(h.writecb=d,h.writechunk=o,h.writeencoding=u,!h.transforming){var m=this._readableState;(h.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},n.prototype._read=function(o){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},n.prototype._destroy=function(o,u){var d=this;e.prototype._destroy.call(this,o,function(h){u(h),d.emit("close")})};function i(o,u,d){if(u)return o.emit("error",u);if(d!=null&&o.push(d),o._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(o._transformState.transforming)throw new Error("Calling transform done when still transforming");return o.push(null)}return u8}var f8,AD;function kne(){if(AD)return f8;AD=1,f8=r;var e=HF(),t=Object.create(qh());t.inherits=Xt,t.inherits(r,e);function r(n){if(!(this instanceof r))return new r(n);e.call(this,n)}return r.prototype._transform=function(n,a,i){i(null,n)},f8}var ED;function zne(){return ED||(ED=1,function(e,t){t=e.exports=WF(),t.Stream=t,t.Readable=t,t.Writable=PF(),t.Duplex=bf(),t.Transform=HF(),t.PassThrough=kne()}(V2,V2.exports)),V2.exports}var Md={exports:{}},Ux={exports:{}};Ux.exports;(function(e){(function(t,r){function n(l,f){if(!l)throw new Error(f||"Assertion failed")}function a(l,f){l.super_=f;var p=function(){};p.prototype=f.prototype,l.prototype=new p,l.prototype.constructor=l}function i(l,f,p){if(i.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((f==="le"||f==="be")&&(p=f,f=10),this._init(l||0,f||10,p||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=vt.Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,p){return f.cmp(p)>0?f:p},i.min=function(f,p){return f.cmp(p)<0?f:p},i.prototype._init=function(f,p,g){if(typeof f=="number")return this._initNumber(f,p,g);if(typeof f=="object")return this._initArray(f,p,g);p==="hex"&&(p=16),n(p===(p|0)&&p>=2&&p<=36),f=f.toString().replace(/\s+/g,"");var x=0;f[0]==="-"&&(x++,this.negative=1),x<f.length&&(p===16?this._parseHex(f,x,g):(this._parseBase(f,p,x),g==="le"&&this._initArray(this.toArray(),p,g)))},i.prototype._initNumber=function(f,p,g){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(n(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),p,g)},i.prototype._initArray=function(f,p,g){if(n(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var A,y,c=0;if(g==="be")for(x=f.length-1,A=0;x>=0;x-=3)y=f[x]|f[x-1]<<8|f[x-2]<<16,this.words[A]|=y<<c&67108863,this.words[A+1]=y>>>26-c&67108863,c+=24,c>=26&&(c-=26,A++);else if(g==="le")for(x=0,A=0;x<f.length;x+=3)y=f[x]|f[x+1]<<8|f[x+2]<<16,this.words[A]|=y<<c&67108863,this.words[A+1]=y>>>26-c&67108863,c+=24,c>=26&&(c-=26,A++);return this._strip()};function u(l,f){var p=l.charCodeAt(f);if(p>=48&&p<=57)return p-48;if(p>=65&&p<=70)return p-55;if(p>=97&&p<=102)return p-87;n(!1,"Invalid character in "+l)}function d(l,f,p){var g=u(l,p);return p-1>=f&&(g|=u(l,p-1)<<4),g}i.prototype._parseHex=function(f,p,g){this.length=Math.ceil((f.length-p)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var A=0,y=0,c;if(g==="be")for(x=f.length-1;x>=p;x-=2)c=d(f,p,x)<<A,this.words[y]|=c&67108863,A>=18?(A-=18,y+=1,this.words[y]|=c>>>26):A+=8;else{var M=f.length-p;for(x=M%2===0?p+1:p;x<f.length;x+=2)c=d(f,p,x)<<A,this.words[y]|=c&67108863,A>=18?(A-=18,y+=1,this.words[y]|=c>>>26):A+=8}this._strip()};function h(l,f,p,g){for(var x=0,A=0,y=Math.min(l.length,p),c=f;c<y;c++){var M=l.charCodeAt(c)-48;x*=g,M>=49?A=M-49+10:M>=17?A=M-17+10:A=M,n(M>=0&&A<g,"Invalid character"),x+=A}return x}i.prototype._parseBase=function(f,p,g){this.words=[0],this.length=1;for(var x=0,A=1;A<=67108863;A*=p)x++;x--,A=A/p|0;for(var y=f.length-g,c=y%x,M=Math.min(y,y-c)+g,B=0,R=g;R<M;R+=x)B=h(f,R,R+x,p),this.imuln(A),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B);if(c!==0){var Q=1;for(B=h(f,R,f.length,p),R=0;R<c;R++)Q*=p;this.imuln(Q),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var p=0;p<this.length;p++)f.words[p]=this.words[p];f.length=this.length,f.negative=this.negative,f.red=this.red};function m(l,f){l.words=f.words,l.length=f.length,l.negative=f.negative,l.red=f.red}if(i.prototype._move=function(f){m(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch{i.prototype.inspect=b}else i.prototype.inspect=b;function b(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(f,p){f=f||10,p=p|0||1;var g;if(f===16||f==="hex"){g="";for(var x=0,A=0,y=0;y<this.length;y++){var c=this.words[y],M=((c<<x|A)&16777215).toString(16);A=c>>>24-x&16777215,x+=2,x>=26&&(x-=26,y--),A!==0||y!==this.length-1?g=v[6-M.length]+M+g:g=M+g}for(A!==0&&(g=A.toString(16)+g);g.length%p!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(f===(f|0)&&f>=2&&f<=36){var B=C[f],R=E[f];g="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var K=Q.modrn(R).toString(f);Q=Q.idivn(R),Q.isZero()?g=K+g:g=v[B-K.length]+K+g}for(this.isZero()&&(g="0"+g);g.length%p!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(f,p){return this.toArrayLike(o,f,p)}),i.prototype.toArray=function(f,p){return this.toArrayLike(Array,f,p)};var T=function(f,p){return f.allocUnsafe?f.allocUnsafe(p):new f(p)};i.prototype.toArrayLike=function(f,p,g){this._strip();var x=this.byteLength(),A=g||Math.max(1,x);n(x<=A,"byte array longer than desired length"),n(A>0,"Requested array length <= 0");var y=T(f,A),c=p==="le"?"LE":"BE";return this["_toArrayLike"+c](y,x),y},i.prototype._toArrayLikeLE=function(f,p){for(var g=0,x=0,A=0,y=0;A<this.length;A++){var c=this.words[A]<<y|x;f[g++]=c&255,g<f.length&&(f[g++]=c>>8&255),g<f.length&&(f[g++]=c>>16&255),y===6?(g<f.length&&(f[g++]=c>>24&255),x=0,y=0):(x=c>>>24,y+=2)}if(g<f.length)for(f[g++]=x;g<f.length;)f[g++]=0},i.prototype._toArrayLikeBE=function(f,p){for(var g=f.length-1,x=0,A=0,y=0;A<this.length;A++){var c=this.words[A]<<y|x;f[g--]=c&255,g>=0&&(f[g--]=c>>8&255),g>=0&&(f[g--]=c>>16&255),y===6?(g>=0&&(f[g--]=c>>24&255),x=0,y=0):(x=c>>>24,y+=2)}if(g>=0)for(f[g--]=x;g>=0;)f[g--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var p=f,g=0;return p>=4096&&(g+=13,p>>>=13),p>=64&&(g+=7,p>>>=7),p>=8&&(g+=4,p>>>=4),p>=2&&(g+=2,p>>>=2),g+p},i.prototype._zeroBits=function(f){if(f===0)return 26;var p=f,g=0;return p&8191||(g+=13,p>>>=13),p&127||(g+=7,p>>>=7),p&15||(g+=4,p>>>=4),p&3||(g+=2,p>>>=2),p&1||g++,g},i.prototype.bitLength=function(){var f=this.words[this.length-1],p=this._countBits(f);return(this.length-1)*26+p};function I(l){for(var f=new Array(l.bitLength()),p=0;p<f.length;p++){var g=p/26|0,x=p%26;f[p]=l.words[g]>>>x&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,p=0;p<this.length;p++){var g=this._zeroBits(this.words[p]);if(f+=g,g!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var p=0;p<f.length;p++)this.words[p]=this.words[p]|f.words[p];return this._strip()},i.prototype.ior=function(f){return n((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var p;this.length>f.length?p=f:p=this;for(var g=0;g<p.length;g++)this.words[g]=this.words[g]&f.words[g];return this.length=p.length,this._strip()},i.prototype.iand=function(f){return n((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var p,g;this.length>f.length?(p=this,g=f):(p=f,g=this);for(var x=0;x<g.length;x++)this.words[x]=p.words[x]^g.words[x];if(this!==p)for(;x<p.length;x++)this.words[x]=p.words[x];return this.length=p.length,this._strip()},i.prototype.ixor=function(f){return n((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){n(typeof f=="number"&&f>=0);var p=Math.ceil(f/26)|0,g=f%26;this._expand(p),g>0&&p--;for(var x=0;x<p;x++)this.words[x]=~this.words[x]&67108863;return g>0&&(this.words[x]=~this.words[x]&67108863>>26-g),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,p){n(typeof f=="number"&&f>=0);var g=f/26|0,x=f%26;return this._expand(g+1),p?this.words[g]=this.words[g]|1<<x:this.words[g]=this.words[g]&~(1<<x),this._strip()},i.prototype.iadd=function(f){var p;if(this.negative!==0&&f.negative===0)return this.negative=0,p=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,p=this.isub(f),f.negative=1,p._normSign();var g,x;this.length>f.length?(g=this,x=f):(g=f,x=this);for(var A=0,y=0;y<x.length;y++)p=(g.words[y]|0)+(x.words[y]|0)+A,this.words[y]=p&67108863,A=p>>>26;for(;A!==0&&y<g.length;y++)p=(g.words[y]|0)+A,this.words[y]=p&67108863,A=p>>>26;if(this.length=g.length,A!==0)this.words[this.length]=A,this.length++;else if(g!==this)for(;y<g.length;y++)this.words[y]=g.words[y];return this},i.prototype.add=function(f){var p;return f.negative!==0&&this.negative===0?(f.negative=0,p=this.sub(f),f.negative^=1,p):f.negative===0&&this.negative!==0?(this.negative=0,p=f.sub(this),this.negative=1,p):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var p=this.iadd(f);return f.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var g=this.cmp(f);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,A;g>0?(x=this,A=f):(x=f,A=this);for(var y=0,c=0;c<A.length;c++)p=(x.words[c]|0)-(A.words[c]|0)+y,y=p>>26,this.words[c]=p&67108863;for(;y!==0&&c<x.length;c++)p=(x.words[c]|0)+y,y=p>>26,this.words[c]=p&67108863;if(y===0&&c<x.length&&x!==this)for(;c<x.length;c++)this.words[c]=x.words[c];return this.length=Math.max(this.length,c),x!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function S(l,f,p){p.negative=f.negative^l.negative;var g=l.length+f.length|0;p.length=g,g=g-1|0;var x=l.words[0]|0,A=f.words[0]|0,y=x*A,c=y&67108863,M=y/67108864|0;p.words[0]=c;for(var B=1;B<g;B++){for(var R=M>>>26,Q=M&67108863,K=Math.min(B,f.length-1),q=Math.max(0,B-l.length+1);q<=K;q++){var W=B-q|0;x=l.words[W]|0,A=f.words[q]|0,y=x*A+Q,R+=y/67108864|0,Q=y&67108863}p.words[B]=Q|0,M=R|0}return M!==0?p.words[B]=M|0:p.length--,p._strip()}var D=function(f,p,g){var x=f.words,A=p.words,y=g.words,c=0,M,B,R,Q=x[0]|0,K=Q&8191,q=Q>>>13,W=x[1]|0,G=W&8191,X=W>>>13,ne=x[2]|0,te=ne&8191,V=ne>>>13,oe=x[3]|0,xe=oe&8191,fe=oe>>>13,me=x[4]|0,Ze=me&8191,he=me>>>13,Se=x[5]|0,Ke=Se&8191,ye=Se>>>13,ce=x[6]|0,Fe=ce&8191,pe=ce>>>13,we=x[7]|0,gt=we&8191,$=we>>>13,P=x[8]|0,Z=P&8191,ie=P>>>13,se=x[9]|0,be=se&8191,le=se>>>13,Ae=A[0]|0,We=Ae&8191,Me=Ae>>>13,De=A[1]|0,st=De&8191,Te=De>>>13,Oe=A[2]|0,Ft=Oe&8191,je=Oe>>>13,Ue=A[3]|0,Yt=Ue&8191,_e=Ue>>>13,Pe=A[4]|0,Mt=Pe&8191,Be=Pe>>>13,He=A[5]|0,or=He&8191,ke=He>>>13,Ge=A[6]|0,J=Ge&8191,ee=Ge>>>13,re=A[7]|0,H=re&8191,ae=re>>>13,ue=A[8]|0,Ee=ue&8191,de=ue>>>13,ve=A[9]|0,tt=ve&8191,qe=ve>>>13;g.negative=f.negative^p.negative,g.length=19,M=Math.imul(K,We),B=Math.imul(K,Me),B=B+Math.imul(q,We)|0,R=Math.imul(q,Me);var _t=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(_t>>>26)|0,_t&=67108863,M=Math.imul(G,We),B=Math.imul(G,Me),B=B+Math.imul(X,We)|0,R=Math.imul(X,Me),M=M+Math.imul(K,st)|0,B=B+Math.imul(K,Te)|0,B=B+Math.imul(q,st)|0,R=R+Math.imul(q,Te)|0;var lt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(lt>>>26)|0,lt&=67108863,M=Math.imul(te,We),B=Math.imul(te,Me),B=B+Math.imul(V,We)|0,R=Math.imul(V,Me),M=M+Math.imul(G,st)|0,B=B+Math.imul(G,Te)|0,B=B+Math.imul(X,st)|0,R=R+Math.imul(X,Te)|0,M=M+Math.imul(K,Ft)|0,B=B+Math.imul(K,je)|0,B=B+Math.imul(q,Ft)|0,R=R+Math.imul(q,je)|0;var wt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(wt>>>26)|0,wt&=67108863,M=Math.imul(xe,We),B=Math.imul(xe,Me),B=B+Math.imul(fe,We)|0,R=Math.imul(fe,Me),M=M+Math.imul(te,st)|0,B=B+Math.imul(te,Te)|0,B=B+Math.imul(V,st)|0,R=R+Math.imul(V,Te)|0,M=M+Math.imul(G,Ft)|0,B=B+Math.imul(G,je)|0,B=B+Math.imul(X,Ft)|0,R=R+Math.imul(X,je)|0,M=M+Math.imul(K,Yt)|0,B=B+Math.imul(K,_e)|0,B=B+Math.imul(q,Yt)|0,R=R+Math.imul(q,_e)|0;var Et=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(Et>>>26)|0,Et&=67108863,M=Math.imul(Ze,We),B=Math.imul(Ze,Me),B=B+Math.imul(he,We)|0,R=Math.imul(he,Me),M=M+Math.imul(xe,st)|0,B=B+Math.imul(xe,Te)|0,B=B+Math.imul(fe,st)|0,R=R+Math.imul(fe,Te)|0,M=M+Math.imul(te,Ft)|0,B=B+Math.imul(te,je)|0,B=B+Math.imul(V,Ft)|0,R=R+Math.imul(V,je)|0,M=M+Math.imul(G,Yt)|0,B=B+Math.imul(G,_e)|0,B=B+Math.imul(X,Yt)|0,R=R+Math.imul(X,_e)|0,M=M+Math.imul(K,Mt)|0,B=B+Math.imul(K,Be)|0,B=B+Math.imul(q,Mt)|0,R=R+Math.imul(q,Be)|0;var jt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(jt>>>26)|0,jt&=67108863,M=Math.imul(Ke,We),B=Math.imul(Ke,Me),B=B+Math.imul(ye,We)|0,R=Math.imul(ye,Me),M=M+Math.imul(Ze,st)|0,B=B+Math.imul(Ze,Te)|0,B=B+Math.imul(he,st)|0,R=R+Math.imul(he,Te)|0,M=M+Math.imul(xe,Ft)|0,B=B+Math.imul(xe,je)|0,B=B+Math.imul(fe,Ft)|0,R=R+Math.imul(fe,je)|0,M=M+Math.imul(te,Yt)|0,B=B+Math.imul(te,_e)|0,B=B+Math.imul(V,Yt)|0,R=R+Math.imul(V,_e)|0,M=M+Math.imul(G,Mt)|0,B=B+Math.imul(G,Be)|0,B=B+Math.imul(X,Mt)|0,R=R+Math.imul(X,Be)|0,M=M+Math.imul(K,or)|0,B=B+Math.imul(K,ke)|0,B=B+Math.imul(q,or)|0,R=R+Math.imul(q,ke)|0;var Nt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,M=Math.imul(Fe,We),B=Math.imul(Fe,Me),B=B+Math.imul(pe,We)|0,R=Math.imul(pe,Me),M=M+Math.imul(Ke,st)|0,B=B+Math.imul(Ke,Te)|0,B=B+Math.imul(ye,st)|0,R=R+Math.imul(ye,Te)|0,M=M+Math.imul(Ze,Ft)|0,B=B+Math.imul(Ze,je)|0,B=B+Math.imul(he,Ft)|0,R=R+Math.imul(he,je)|0,M=M+Math.imul(xe,Yt)|0,B=B+Math.imul(xe,_e)|0,B=B+Math.imul(fe,Yt)|0,R=R+Math.imul(fe,_e)|0,M=M+Math.imul(te,Mt)|0,B=B+Math.imul(te,Be)|0,B=B+Math.imul(V,Mt)|0,R=R+Math.imul(V,Be)|0,M=M+Math.imul(G,or)|0,B=B+Math.imul(G,ke)|0,B=B+Math.imul(X,or)|0,R=R+Math.imul(X,ke)|0,M=M+Math.imul(K,J)|0,B=B+Math.imul(K,ee)|0,B=B+Math.imul(q,J)|0,R=R+Math.imul(q,ee)|0;var St=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(St>>>26)|0,St&=67108863,M=Math.imul(gt,We),B=Math.imul(gt,Me),B=B+Math.imul($,We)|0,R=Math.imul($,Me),M=M+Math.imul(Fe,st)|0,B=B+Math.imul(Fe,Te)|0,B=B+Math.imul(pe,st)|0,R=R+Math.imul(pe,Te)|0,M=M+Math.imul(Ke,Ft)|0,B=B+Math.imul(Ke,je)|0,B=B+Math.imul(ye,Ft)|0,R=R+Math.imul(ye,je)|0,M=M+Math.imul(Ze,Yt)|0,B=B+Math.imul(Ze,_e)|0,B=B+Math.imul(he,Yt)|0,R=R+Math.imul(he,_e)|0,M=M+Math.imul(xe,Mt)|0,B=B+Math.imul(xe,Be)|0,B=B+Math.imul(fe,Mt)|0,R=R+Math.imul(fe,Be)|0,M=M+Math.imul(te,or)|0,B=B+Math.imul(te,ke)|0,B=B+Math.imul(V,or)|0,R=R+Math.imul(V,ke)|0,M=M+Math.imul(G,J)|0,B=B+Math.imul(G,ee)|0,B=B+Math.imul(X,J)|0,R=R+Math.imul(X,ee)|0,M=M+Math.imul(K,H)|0,B=B+Math.imul(K,ae)|0,B=B+Math.imul(q,H)|0,R=R+Math.imul(q,ae)|0;var It=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(It>>>26)|0,It&=67108863,M=Math.imul(Z,We),B=Math.imul(Z,Me),B=B+Math.imul(ie,We)|0,R=Math.imul(ie,Me),M=M+Math.imul(gt,st)|0,B=B+Math.imul(gt,Te)|0,B=B+Math.imul($,st)|0,R=R+Math.imul($,Te)|0,M=M+Math.imul(Fe,Ft)|0,B=B+Math.imul(Fe,je)|0,B=B+Math.imul(pe,Ft)|0,R=R+Math.imul(pe,je)|0,M=M+Math.imul(Ke,Yt)|0,B=B+Math.imul(Ke,_e)|0,B=B+Math.imul(ye,Yt)|0,R=R+Math.imul(ye,_e)|0,M=M+Math.imul(Ze,Mt)|0,B=B+Math.imul(Ze,Be)|0,B=B+Math.imul(he,Mt)|0,R=R+Math.imul(he,Be)|0,M=M+Math.imul(xe,or)|0,B=B+Math.imul(xe,ke)|0,B=B+Math.imul(fe,or)|0,R=R+Math.imul(fe,ke)|0,M=M+Math.imul(te,J)|0,B=B+Math.imul(te,ee)|0,B=B+Math.imul(V,J)|0,R=R+Math.imul(V,ee)|0,M=M+Math.imul(G,H)|0,B=B+Math.imul(G,ae)|0,B=B+Math.imul(X,H)|0,R=R+Math.imul(X,ae)|0,M=M+Math.imul(K,Ee)|0,B=B+Math.imul(K,de)|0,B=B+Math.imul(q,Ee)|0,R=R+Math.imul(q,de)|0;var Dt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,M=Math.imul(be,We),B=Math.imul(be,Me),B=B+Math.imul(le,We)|0,R=Math.imul(le,Me),M=M+Math.imul(Z,st)|0,B=B+Math.imul(Z,Te)|0,B=B+Math.imul(ie,st)|0,R=R+Math.imul(ie,Te)|0,M=M+Math.imul(gt,Ft)|0,B=B+Math.imul(gt,je)|0,B=B+Math.imul($,Ft)|0,R=R+Math.imul($,je)|0,M=M+Math.imul(Fe,Yt)|0,B=B+Math.imul(Fe,_e)|0,B=B+Math.imul(pe,Yt)|0,R=R+Math.imul(pe,_e)|0,M=M+Math.imul(Ke,Mt)|0,B=B+Math.imul(Ke,Be)|0,B=B+Math.imul(ye,Mt)|0,R=R+Math.imul(ye,Be)|0,M=M+Math.imul(Ze,or)|0,B=B+Math.imul(Ze,ke)|0,B=B+Math.imul(he,or)|0,R=R+Math.imul(he,ke)|0,M=M+Math.imul(xe,J)|0,B=B+Math.imul(xe,ee)|0,B=B+Math.imul(fe,J)|0,R=R+Math.imul(fe,ee)|0,M=M+Math.imul(te,H)|0,B=B+Math.imul(te,ae)|0,B=B+Math.imul(V,H)|0,R=R+Math.imul(V,ae)|0,M=M+Math.imul(G,Ee)|0,B=B+Math.imul(G,de)|0,B=B+Math.imul(X,Ee)|0,R=R+Math.imul(X,de)|0,M=M+Math.imul(K,tt)|0,B=B+Math.imul(K,qe)|0,B=B+Math.imul(q,tt)|0,R=R+Math.imul(q,qe)|0;var dt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(dt>>>26)|0,dt&=67108863,M=Math.imul(be,st),B=Math.imul(be,Te),B=B+Math.imul(le,st)|0,R=Math.imul(le,Te),M=M+Math.imul(Z,Ft)|0,B=B+Math.imul(Z,je)|0,B=B+Math.imul(ie,Ft)|0,R=R+Math.imul(ie,je)|0,M=M+Math.imul(gt,Yt)|0,B=B+Math.imul(gt,_e)|0,B=B+Math.imul($,Yt)|0,R=R+Math.imul($,_e)|0,M=M+Math.imul(Fe,Mt)|0,B=B+Math.imul(Fe,Be)|0,B=B+Math.imul(pe,Mt)|0,R=R+Math.imul(pe,Be)|0,M=M+Math.imul(Ke,or)|0,B=B+Math.imul(Ke,ke)|0,B=B+Math.imul(ye,or)|0,R=R+Math.imul(ye,ke)|0,M=M+Math.imul(Ze,J)|0,B=B+Math.imul(Ze,ee)|0,B=B+Math.imul(he,J)|0,R=R+Math.imul(he,ee)|0,M=M+Math.imul(xe,H)|0,B=B+Math.imul(xe,ae)|0,B=B+Math.imul(fe,H)|0,R=R+Math.imul(fe,ae)|0,M=M+Math.imul(te,Ee)|0,B=B+Math.imul(te,de)|0,B=B+Math.imul(V,Ee)|0,R=R+Math.imul(V,de)|0,M=M+Math.imul(G,tt)|0,B=B+Math.imul(G,qe)|0,B=B+Math.imul(X,tt)|0,R=R+Math.imul(X,qe)|0;var yt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(yt>>>26)|0,yt&=67108863,M=Math.imul(be,Ft),B=Math.imul(be,je),B=B+Math.imul(le,Ft)|0,R=Math.imul(le,je),M=M+Math.imul(Z,Yt)|0,B=B+Math.imul(Z,_e)|0,B=B+Math.imul(ie,Yt)|0,R=R+Math.imul(ie,_e)|0,M=M+Math.imul(gt,Mt)|0,B=B+Math.imul(gt,Be)|0,B=B+Math.imul($,Mt)|0,R=R+Math.imul($,Be)|0,M=M+Math.imul(Fe,or)|0,B=B+Math.imul(Fe,ke)|0,B=B+Math.imul(pe,or)|0,R=R+Math.imul(pe,ke)|0,M=M+Math.imul(Ke,J)|0,B=B+Math.imul(Ke,ee)|0,B=B+Math.imul(ye,J)|0,R=R+Math.imul(ye,ee)|0,M=M+Math.imul(Ze,H)|0,B=B+Math.imul(Ze,ae)|0,B=B+Math.imul(he,H)|0,R=R+Math.imul(he,ae)|0,M=M+Math.imul(xe,Ee)|0,B=B+Math.imul(xe,de)|0,B=B+Math.imul(fe,Ee)|0,R=R+Math.imul(fe,de)|0,M=M+Math.imul(te,tt)|0,B=B+Math.imul(te,qe)|0,B=B+Math.imul(V,tt)|0,R=R+Math.imul(V,qe)|0;var ot=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(ot>>>26)|0,ot&=67108863,M=Math.imul(be,Yt),B=Math.imul(be,_e),B=B+Math.imul(le,Yt)|0,R=Math.imul(le,_e),M=M+Math.imul(Z,Mt)|0,B=B+Math.imul(Z,Be)|0,B=B+Math.imul(ie,Mt)|0,R=R+Math.imul(ie,Be)|0,M=M+Math.imul(gt,or)|0,B=B+Math.imul(gt,ke)|0,B=B+Math.imul($,or)|0,R=R+Math.imul($,ke)|0,M=M+Math.imul(Fe,J)|0,B=B+Math.imul(Fe,ee)|0,B=B+Math.imul(pe,J)|0,R=R+Math.imul(pe,ee)|0,M=M+Math.imul(Ke,H)|0,B=B+Math.imul(Ke,ae)|0,B=B+Math.imul(ye,H)|0,R=R+Math.imul(ye,ae)|0,M=M+Math.imul(Ze,Ee)|0,B=B+Math.imul(Ze,de)|0,B=B+Math.imul(he,Ee)|0,R=R+Math.imul(he,de)|0,M=M+Math.imul(xe,tt)|0,B=B+Math.imul(xe,qe)|0,B=B+Math.imul(fe,tt)|0,R=R+Math.imul(fe,qe)|0;var ht=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(ht>>>26)|0,ht&=67108863,M=Math.imul(be,Mt),B=Math.imul(be,Be),B=B+Math.imul(le,Mt)|0,R=Math.imul(le,Be),M=M+Math.imul(Z,or)|0,B=B+Math.imul(Z,ke)|0,B=B+Math.imul(ie,or)|0,R=R+Math.imul(ie,ke)|0,M=M+Math.imul(gt,J)|0,B=B+Math.imul(gt,ee)|0,B=B+Math.imul($,J)|0,R=R+Math.imul($,ee)|0,M=M+Math.imul(Fe,H)|0,B=B+Math.imul(Fe,ae)|0,B=B+Math.imul(pe,H)|0,R=R+Math.imul(pe,ae)|0,M=M+Math.imul(Ke,Ee)|0,B=B+Math.imul(Ke,de)|0,B=B+Math.imul(ye,Ee)|0,R=R+Math.imul(ye,de)|0,M=M+Math.imul(Ze,tt)|0,B=B+Math.imul(Ze,qe)|0,B=B+Math.imul(he,tt)|0,R=R+Math.imul(he,qe)|0;var pt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(pt>>>26)|0,pt&=67108863,M=Math.imul(be,or),B=Math.imul(be,ke),B=B+Math.imul(le,or)|0,R=Math.imul(le,ke),M=M+Math.imul(Z,J)|0,B=B+Math.imul(Z,ee)|0,B=B+Math.imul(ie,J)|0,R=R+Math.imul(ie,ee)|0,M=M+Math.imul(gt,H)|0,B=B+Math.imul(gt,ae)|0,B=B+Math.imul($,H)|0,R=R+Math.imul($,ae)|0,M=M+Math.imul(Fe,Ee)|0,B=B+Math.imul(Fe,de)|0,B=B+Math.imul(pe,Ee)|0,R=R+Math.imul(pe,de)|0,M=M+Math.imul(Ke,tt)|0,B=B+Math.imul(Ke,qe)|0,B=B+Math.imul(ye,tt)|0,R=R+Math.imul(ye,qe)|0;var nt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(nt>>>26)|0,nt&=67108863,M=Math.imul(be,J),B=Math.imul(be,ee),B=B+Math.imul(le,J)|0,R=Math.imul(le,ee),M=M+Math.imul(Z,H)|0,B=B+Math.imul(Z,ae)|0,B=B+Math.imul(ie,H)|0,R=R+Math.imul(ie,ae)|0,M=M+Math.imul(gt,Ee)|0,B=B+Math.imul(gt,de)|0,B=B+Math.imul($,Ee)|0,R=R+Math.imul($,de)|0,M=M+Math.imul(Fe,tt)|0,B=B+Math.imul(Fe,qe)|0,B=B+Math.imul(pe,tt)|0,R=R+Math.imul(pe,qe)|0;var Ne=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,M=Math.imul(be,H),B=Math.imul(be,ae),B=B+Math.imul(le,H)|0,R=Math.imul(le,ae),M=M+Math.imul(Z,Ee)|0,B=B+Math.imul(Z,de)|0,B=B+Math.imul(ie,Ee)|0,R=R+Math.imul(ie,de)|0,M=M+Math.imul(gt,tt)|0,B=B+Math.imul(gt,qe)|0,B=B+Math.imul($,tt)|0,R=R+Math.imul($,qe)|0;var Le=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(Le>>>26)|0,Le&=67108863,M=Math.imul(be,Ee),B=Math.imul(be,de),B=B+Math.imul(le,Ee)|0,R=Math.imul(le,de),M=M+Math.imul(Z,tt)|0,B=B+Math.imul(Z,qe)|0,B=B+Math.imul(ie,tt)|0,R=R+Math.imul(ie,qe)|0;var rt=(c+M|0)+((B&8191)<<13)|0;c=(R+(B>>>13)|0)+(rt>>>26)|0,rt&=67108863,M=Math.imul(be,tt),B=Math.imul(be,qe),B=B+Math.imul(le,tt)|0,R=Math.imul(le,qe);var Ve=(c+M|0)+((B&8191)<<13)|0;return c=(R+(B>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,y[0]=_t,y[1]=lt,y[2]=wt,y[3]=Et,y[4]=jt,y[5]=Nt,y[6]=St,y[7]=It,y[8]=Dt,y[9]=dt,y[10]=yt,y[11]=ot,y[12]=ht,y[13]=pt,y[14]=nt,y[15]=Ne,y[16]=Le,y[17]=rt,y[18]=Ve,c!==0&&(y[19]=c,g.length++),g};Math.imul||(D=S);function L(l,f,p){p.negative=f.negative^l.negative,p.length=l.length+f.length;for(var g=0,x=0,A=0;A<p.length-1;A++){var y=x;x=0;for(var c=g&67108863,M=Math.min(A,f.length-1),B=Math.max(0,A-l.length+1);B<=M;B++){var R=A-B,Q=l.words[R]|0,K=f.words[B]|0,q=Q*K,W=q&67108863;y=y+(q/67108864|0)|0,W=W+c|0,c=W&67108863,y=y+(W>>>26)|0,x+=y>>>26,y&=67108863}p.words[A]=c,g=y,y=x}return g!==0?p.words[A]=g:p.length--,p._strip()}function N(l,f,p){return L(l,f,p)}i.prototype.mulTo=function(f,p){var g,x=this.length+f.length;return this.length===10&&f.length===10?g=D(this,f,p):x<63?g=S(this,f,p):x<1024?g=L(this,f,p):g=N(this,f,p),g},i.prototype.mul=function(f){var p=new i(null);return p.words=new Array(this.length+f.length),this.mulTo(f,p)},i.prototype.mulf=function(f){var p=new i(null);return p.words=new Array(this.length+f.length),N(this,f,p)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var p=f<0;p&&(f=-f),n(typeof f=="number"),n(f<67108864);for(var g=0,x=0;x<this.length;x++){var A=(this.words[x]|0)*f,y=(A&67108863)+(g&67108863);g>>=26,g+=A/67108864|0,g+=y>>>26,this.words[x]=y&67108863}return g!==0&&(this.words[x]=g,this.length++),this.length=f===0?1:this.length,p?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var p=I(f);if(p.length===0)return new i(1);for(var g=this,x=0;x<p.length&&p[x]===0;x++,g=g.sqr());if(++x<p.length)for(var A=g.sqr();x<p.length;x++,A=A.sqr())p[x]!==0&&(g=g.mul(A));return g},i.prototype.iushln=function(f){n(typeof f=="number"&&f>=0);var p=f%26,g=(f-p)/26,x=67108863>>>26-p<<26-p,A;if(p!==0){var y=0;for(A=0;A<this.length;A++){var c=this.words[A]&x,M=(this.words[A]|0)-c<<p;this.words[A]=M|y,y=c>>>26-p}y&&(this.words[A]=y,this.length++)}if(g!==0){for(A=this.length-1;A>=0;A--)this.words[A+g]=this.words[A];for(A=0;A<g;A++)this.words[A]=0;this.length+=g}return this._strip()},i.prototype.ishln=function(f){return n(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,p,g){n(typeof f=="number"&&f>=0);var x;p?x=(p-p%26)/26:x=0;var A=f%26,y=Math.min((f-A)/26,this.length),c=67108863^67108863>>>A<<A,M=g;if(x-=y,x=Math.max(0,x),M){for(var B=0;B<y;B++)M.words[B]=this.words[B];M.length=y}if(y!==0)if(this.length>y)for(this.length-=y,B=0;B<this.length;B++)this.words[B]=this.words[B+y];else this.words[0]=0,this.length=1;var R=0;for(B=this.length-1;B>=0&&(R!==0||B>=x);B--){var Q=this.words[B]|0;this.words[B]=R<<26-A|Q>>>A,R=Q&c}return M&&R!==0&&(M.words[M.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,p,g){return n(this.negative===0),this.iushrn(f,p,g)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){n(typeof f=="number"&&f>=0);var p=f%26,g=(f-p)/26,x=1<<p;if(this.length<=g)return!1;var A=this.words[g];return!!(A&x)},i.prototype.imaskn=function(f){n(typeof f=="number"&&f>=0);var p=f%26,g=(f-p)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(p!==0&&g++,this.length=Math.min(g,this.length),p!==0){var x=67108863^67108863>>>p<<p;this.words[this.length-1]&=x}return this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return n(typeof f=="number"),n(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},i.prototype.isubn=function(f){if(n(typeof f=="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,p,g){var x=f.length+g,A;this._expand(x);var y,c=0;for(A=0;A<f.length;A++){y=(this.words[A+g]|0)+c;var M=(f.words[A]|0)*p;y-=M&67108863,c=(y>>26)-(M/67108864|0),this.words[A+g]=y&67108863}for(;A<this.length-g;A++)y=(this.words[A+g]|0)+c,c=y>>26,this.words[A+g]=y&67108863;if(c===0)return this._strip();for(n(c===-1),c=0,A=0;A<this.length;A++)y=-(this.words[A]|0)+c,c=y>>26,this.words[A]=y&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,p){var g=this.length-f.length,x=this.clone(),A=f,y=A.words[A.length-1]|0,c=this._countBits(y);g=26-c,g!==0&&(A=A.ushln(g),x.iushln(g),y=A.words[A.length-1]|0);var M=x.length-A.length,B;if(p!=="mod"){B=new i(null),B.length=M+1,B.words=new Array(B.length);for(var R=0;R<B.length;R++)B.words[R]=0}var Q=x.clone()._ishlnsubmul(A,1,M);Q.negative===0&&(x=Q,B&&(B.words[M]=1));for(var K=M-1;K>=0;K--){var q=(x.words[A.length+K]|0)*67108864+(x.words[A.length+K-1]|0);for(q=Math.min(q/y|0,67108863),x._ishlnsubmul(A,q,K);x.negative!==0;)q--,x.negative=0,x._ishlnsubmul(A,1,K),x.isZero()||(x.negative^=1);B&&(B.words[K]=q)}return B&&B._strip(),x._strip(),p!=="div"&&g!==0&&x.iushrn(g),{div:B||null,mod:x}},i.prototype.divmod=function(f,p,g){if(n(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var x,A,y;return this.negative!==0&&f.negative===0?(y=this.neg().divmod(f,p),p!=="mod"&&(x=y.div.neg()),p!=="div"&&(A=y.mod.neg(),g&&A.negative!==0&&A.iadd(f)),{div:x,mod:A}):this.negative===0&&f.negative!==0?(y=this.divmod(f.neg(),p),p!=="mod"&&(x=y.div.neg()),{div:x,mod:y.mod}):this.negative&f.negative?(y=this.neg().divmod(f.neg(),p),p!=="div"&&(A=y.mod.neg(),g&&A.negative!==0&&A.isub(f)),{div:y.div,mod:A}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?p==="div"?{div:this.divn(f.words[0]),mod:null}:p==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,p)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var p=this.divmod(f);if(p.mod.isZero())return p.div;var g=p.div.negative!==0?p.mod.isub(f):p.mod,x=f.ushrn(1),A=f.andln(1),y=g.cmp(x);return y<0||A===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},i.prototype.modrn=function(f){var p=f<0;p&&(f=-f),n(f<=67108863);for(var g=(1<<26)%f,x=0,A=this.length-1;A>=0;A--)x=(g*x+(this.words[A]|0))%f;return p?-x:x},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var p=f<0;p&&(f=-f),n(f<=67108863);for(var g=0,x=this.length-1;x>=0;x--){var A=(this.words[x]|0)+g*67108864;this.words[x]=A/f|0,g=A%f}return this._strip(),p?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var p=this,g=f.clone();p.negative!==0?p=p.umod(f):p=p.clone();for(var x=new i(1),A=new i(0),y=new i(0),c=new i(1),M=0;p.isEven()&&g.isEven();)p.iushrn(1),g.iushrn(1),++M;for(var B=g.clone(),R=p.clone();!p.isZero();){for(var Q=0,K=1;!(p.words[0]&K)&&Q<26;++Q,K<<=1);if(Q>0)for(p.iushrn(Q);Q-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(B),A.isub(R)),x.iushrn(1),A.iushrn(1);for(var q=0,W=1;!(g.words[0]&W)&&q<26;++q,W<<=1);if(q>0)for(g.iushrn(q);q-- >0;)(y.isOdd()||c.isOdd())&&(y.iadd(B),c.isub(R)),y.iushrn(1),c.iushrn(1);p.cmp(g)>=0?(p.isub(g),x.isub(y),A.isub(c)):(g.isub(p),y.isub(x),c.isub(A))}return{a:y,b:c,gcd:g.iushln(M)}},i.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var p=this,g=f.clone();p.negative!==0?p=p.umod(f):p=p.clone();for(var x=new i(1),A=new i(0),y=g.clone();p.cmpn(1)>0&&g.cmpn(1)>0;){for(var c=0,M=1;!(p.words[0]&M)&&c<26;++c,M<<=1);if(c>0)for(p.iushrn(c);c-- >0;)x.isOdd()&&x.iadd(y),x.iushrn(1);for(var B=0,R=1;!(g.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(g.iushrn(B);B-- >0;)A.isOdd()&&A.iadd(y),A.iushrn(1);p.cmp(g)>=0?(p.isub(g),x.isub(A)):(g.isub(p),A.isub(x))}var Q;return p.cmpn(1)===0?Q=x:Q=A,Q.cmpn(0)<0&&Q.iadd(f),Q},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var p=this.clone(),g=f.clone();p.negative=0,g.negative=0;for(var x=0;p.isEven()&&g.isEven();x++)p.iushrn(1),g.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;g.isEven();)g.iushrn(1);var A=p.cmp(g);if(A<0){var y=p;p=g,g=y}else if(A===0||g.cmpn(1)===0)break;p.isub(g)}while(!0);return g.iushln(x)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){n(typeof f=="number");var p=f%26,g=(f-p)/26,x=1<<p;if(this.length<=g)return this._expand(g+1),this.words[g]|=x,this;for(var A=x,y=g;A!==0&&y<this.length;y++){var c=this.words[y]|0;c+=A,A=c>>>26,c&=67108863,this.words[y]=c}return A!==0&&(this.words[y]=A,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var p=f<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this._strip();var g;if(this.length>1)g=1;else{p&&(f=-f),n(f<=67108863,"Number is too big");var x=this.words[0]|0;g=x===f?0:x<f?-1:1}return this.negative!==0?-g|0:g},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var p=this.ucmp(f);return this.negative!==0?-p|0:p},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var p=0,g=this.length-1;g>=0;g--){var x=this.words[g]|0,A=f.words[g]|0;if(x!==A){x<A?p=-1:x>A&&(p=1);break}}return p},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new w(f)},i.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var _={k256:null,p224:null,p192:null,p25519:null};function O(l,f){this.name=l,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},O.prototype.ireduce=function(f){var p=f,g;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),g=p.bitLength();while(g>this.n);var x=g<this.n?-1:p.ucmp(this.p);return x===0?(p.words[0]=0,p.length=1):x>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},O.prototype.split=function(f,p){f.iushrn(this.n,0,p)},O.prototype.imulK=function(f){return f.imul(this.k)};function U(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(U,O),U.prototype.split=function(f,p){for(var g=4194303,x=Math.min(f.length,9),A=0;A<x;A++)p.words[A]=f.words[A];if(p.length=x,f.length<=9){f.words[0]=0,f.length=1;return}var y=f.words[9];for(p.words[p.length++]=y&g,A=10;A<f.length;A++){var c=f.words[A]|0;f.words[A-10]=(c&g)<<4|y>>>22,y=c}y>>>=22,f.words[A-10]=y,y===0&&f.length>10?f.length-=10:f.length-=9},U.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var p=0,g=0;g<f.length;g++){var x=f.words[g]|0;p+=x*977,f.words[g]=p&67108863,p=x*64+(p/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function z(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(z,O);function F(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(F,O);function k(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(k,O),k.prototype.imulK=function(f){for(var p=0,g=0;g<f.length;g++){var x=(f.words[g]|0)*19+p,A=x&67108863;x>>>=26,f.words[g]=A,p=x}return p!==0&&(f.words[f.length++]=p),f},i._prime=function(f){if(_[f])return _[f];var p;if(f==="k256")p=new U;else if(f==="p224")p=new z;else if(f==="p192")p=new F;else if(f==="p25519")p=new k;else throw new Error("Unknown prime "+f);return _[f]=p,p};function w(l){if(typeof l=="string"){var f=i._prime(l);this.m=f.p,this.prime=f}else n(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}w.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},w.prototype._verify2=function(f,p){n((f.negative|p.negative)===0,"red works only with positives"),n(f.red&&f.red===p.red,"red works only with red numbers")},w.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(m(f,f.umod(this.m)._forceRed(this)),f)},w.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},w.prototype.add=function(f,p){this._verify2(f,p);var g=f.add(p);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},w.prototype.iadd=function(f,p){this._verify2(f,p);var g=f.iadd(p);return g.cmp(this.m)>=0&&g.isub(this.m),g},w.prototype.sub=function(f,p){this._verify2(f,p);var g=f.sub(p);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},w.prototype.isub=function(f,p){this._verify2(f,p);var g=f.isub(p);return g.cmpn(0)<0&&g.iadd(this.m),g},w.prototype.shl=function(f,p){return this._verify1(f),this.imod(f.ushln(p))},w.prototype.imul=function(f,p){return this._verify2(f,p),this.imod(f.imul(p))},w.prototype.mul=function(f,p){return this._verify2(f,p),this.imod(f.mul(p))},w.prototype.isqr=function(f){return this.imul(f,f.clone())},w.prototype.sqr=function(f){return this.mul(f,f)},w.prototype.sqrt=function(f){if(f.isZero())return f.clone();var p=this.m.andln(3);if(n(p%2===1),p===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(f,g)}for(var x=this.m.subn(1),A=0;!x.isZero()&&x.andln(1)===0;)A++,x.iushrn(1);n(!x.isZero());var y=new i(1).toRed(this),c=y.redNeg(),M=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new i(2*B*B).toRed(this);this.pow(B,M).cmp(c)!==0;)B.redIAdd(c);for(var R=this.pow(B,x),Q=this.pow(f,x.addn(1).iushrn(1)),K=this.pow(f,x),q=A;K.cmp(y)!==0;){for(var W=K,G=0;W.cmp(y)!==0;G++)W=W.redSqr();n(G<q);var X=this.pow(R,new i(1).iushln(q-G-1));Q=Q.redMul(X),R=X.redSqr(),K=K.redMul(R),q=G}return Q},w.prototype.invm=function(f){var p=f._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},w.prototype.pow=function(f,p){if(p.isZero())return new i(1).toRed(this);if(p.cmpn(1)===0)return f.clone();var g=4,x=new Array(1<<g);x[0]=new i(1).toRed(this),x[1]=f;for(var A=2;A<x.length;A++)x[A]=this.mul(x[A-1],f);var y=x[0],c=0,M=0,B=p.bitLength()%26;for(B===0&&(B=26),A=p.length-1;A>=0;A--){for(var R=p.words[A],Q=B-1;Q>=0;Q--){var K=R>>Q&1;if(y!==x[0]&&(y=this.sqr(y)),K===0&&c===0){M=0;continue}c<<=1,c|=K,M++,!(M!==g&&(A!==0||Q!==0))&&(y=this.mul(y,x[c]),M=0,c=0)}B=26}return y},w.prototype.convertTo=function(f){var p=f.umod(this.m);return p===f?p.clone():p},w.prototype.convertFrom=function(f){var p=f.clone();return p.red=null,p},i.mont=function(f){return new s(f)};function s(l){w.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(s,w),s.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},s.prototype.convertFrom=function(f){var p=this.imod(f.mul(this.rinv));return p.red=null,p},s.prototype.imul=function(f,p){if(f.isZero()||p.isZero())return f.words[0]=0,f.length=1,f;var g=f.imul(p),x=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=g.isub(x).iushrn(this.shift),y=A;return A.cmp(this.m)>=0?y=A.isub(this.m):A.cmpn(0)<0&&(y=A.iadd(this.m)),y._forceRed(this)},s.prototype.mul=function(f,p){if(f.isZero()||p.isZero())return new i(0)._forceRed(this);var g=f.mul(p),x=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=g.isub(x).iushrn(this.shift),y=A;return A.cmp(this.m)>=0?y=A.isub(this.m):A.cmpn(0)<0&&(y=A.iadd(this.m)),y._forceRed(this)},s.prototype.invm=function(f){var p=this.imod(f._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(e,Ut)})(Ux);var Vh=Ux.exports;const SD=Ya(Vh);var d8,DD;function Px(){if(DD)return d8;DD=1;var e=Vh,t=$f(),r=sr.Buffer;function n(o){var u=o.modulus.byteLength(),d;do d=new e(t(u));while(d.cmp(o.modulus)>=0||!d.umod(o.prime1)||!d.umod(o.prime2));return d}function a(o){var u=n(o),d=u.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed();return{blinder:d,unblinder:u.invm(o.modulus)}}function i(o,u){var d=a(u),h=u.modulus.byteLength(),m=new e(o).mul(d.blinder).umod(u.modulus),b=m.toRed(e.mont(u.prime1)),v=m.toRed(e.mont(u.prime2)),C=u.coefficient,E=u.prime1,T=u.prime2,I=b.redPow(u.exponent1).fromRed(),S=v.redPow(u.exponent2).fromRed(),D=I.isub(S).imul(C).umod(E).imul(T);return S.iadd(D).imul(d.unblinder).umod(u.modulus).toArrayLike(r,"be",h)}return i.getr=n,d8=i,d8}var h8={};const _ne="6.6.1",Fne={version:_ne};var p8={},e3={exports:{}};e3.exports;var TD;function wc(){return TD||(TD=1,function(e){(function(t,r){function n(w,s){if(!w)throw new Error(s||"Assertion failed")}function a(w,s){w.super_=s;var l=function(){};l.prototype=s.prototype,w.prototype=new l,w.prototype.constructor=w}function i(w,s,l){if(i.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(w||0,s||10,l||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=vt.Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,f){if(typeof s=="number")return this._initNumber(s,l,f);if(typeof s=="object")return this._initArray(s,l,f);l==="hex"&&(l=16),n(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var p=0;s[0]==="-"&&(p++,this.negative=1),p<s.length&&(l===16?this._parseHex(s,p,f):(this._parseBase(s,l,p),f==="le"&&this._initArray(this.toArray(),l,f)))},i.prototype._initNumber=function(s,l,f){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(n(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),f==="le"&&this._initArray(this.toArray(),l,f)},i.prototype._initArray=function(s,l,f){if(n(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g,x,A=0;if(f==="be")for(p=s.length-1,g=0;p>=0;p-=3)x=s[p]|s[p-1]<<8|s[p-2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);else if(f==="le")for(p=0,g=0;p<s.length;p+=3)x=s[p]|s[p+1]<<8|s[p+2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);return this.strip()};function u(w,s){var l=w.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function d(w,s,l){var f=u(w,l);return l-1>=s&&(f|=u(w,l-1)<<4),f}i.prototype._parseHex=function(s,l,f){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g=0,x=0,A;if(f==="be")for(p=s.length-1;p>=l;p-=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8;else{var y=s.length-l;for(p=y%2===0?l+1:l;p<s.length;p+=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8}this.strip()};function h(w,s,l,f){for(var p=0,g=Math.min(w.length,l),x=s;x<g;x++){var A=w.charCodeAt(x)-48;p*=f,A>=49?p+=A-49+10:A>=17?p+=A-17+10:p+=A}return p}i.prototype._parseBase=function(s,l,f){this.words=[0],this.length=1;for(var p=0,g=1;g<=67108863;g*=l)p++;p--,g=g/l|0;for(var x=s.length-f,A=x%p,y=Math.min(x,x-A)+f,c=0,M=f;M<y;M+=p)c=h(s,M,M+p,l),this.imuln(g),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(A!==0){var B=1;for(c=h(s,M,s.length,l),M=0;M<A;M++)B*=l;this.imuln(B),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var f;if(s===16||s==="hex"){f="";for(var p=0,g=0,x=0;x<this.length;x++){var A=this.words[x],y=((A<<p|g)&16777215).toString(16);g=A>>>24-p&16777215,p+=2,p>=26&&(p-=26,x--),g!==0||x!==this.length-1?f=m[6-y.length]+y+f:f=y+f}for(g!==0&&(f=g.toString(16)+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}if(s===(s|0)&&s>=2&&s<=36){var c=b[s],M=v[s];f="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(M).toString(s);B=B.idivn(M),B.isZero()?f=R+f:f=m[c-R.length]+R+f}for(this.isZero()&&(f="0"+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return n(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,f){var p=this.byteLength(),g=f||Math.max(1,p);n(p<=g,"byte array longer than desired length"),n(g>0,"Requested array length <= 0"),this.strip();var x=l==="le",A=new s(g),y,c,M=this.clone();if(x){for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[c]=y;for(;c<g;c++)A[c]=0}else{for(c=0;c<g-p;c++)A[c]=0;for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[g-c-1]=y}return A},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,f=0;return l>=4096&&(f+=13,l>>>=13),l>=64&&(f+=7,l>>>=7),l>=8&&(f+=4,l>>>=4),l>=2&&(f+=2,l>>>=2),f+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,f=0;return l&8191||(f+=13,l>>>=13),l&127||(f+=7,l>>>=7),l&15||(f+=4,l>>>=4),l&3||(f+=2,l>>>=2),l&1||f++,f},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function C(w){for(var s=new Array(w.bitLength()),l=0;l<s.length;l++){var f=l/26|0,p=l%26;s[l]=(w.words[f]&1<<p)>>>p}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var f=this._zeroBits(this.words[l]);if(s+=f,f!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return n((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var f=0;f<l.length;f++)this.words[f]=this.words[f]&s.words[f];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return n((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var p=0;p<f.length;p++)this.words[p]=l.words[p]^f.words[p];if(this!==l)for(;p<l.length;p++)this.words[p]=l.words[p];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return n((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){n(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,f=s%26;this._expand(l),f>0&&l--;for(var p=0;p<l;p++)this.words[p]=~this.words[p]&67108863;return f>0&&(this.words[p]=~this.words[p]&67108863>>26-f),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){n(typeof s=="number"&&s>=0);var f=s/26|0,p=s%26;return this._expand(f+1),l?this.words[f]=this.words[f]|1<<p:this.words[f]=this.words[f]&~(1<<p),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var f,p;this.length>s.length?(f=this,p=s):(f=s,p=this);for(var g=0,x=0;x<p.length;x++)l=(f.words[x]|0)+(p.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;for(;g!==0&&x<f.length;x++)l=(f.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;if(this.length=f.length,g!==0)this.words[this.length]=g,this.length++;else if(f!==this)for(;x<f.length;x++)this.words[x]=f.words[x];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var f=this.cmp(s);if(f===0)return this.negative=0,this.length=1,this.words[0]=0,this;var p,g;f>0?(p=this,g=s):(p=s,g=this);for(var x=0,A=0;A<g.length;A++)l=(p.words[A]|0)-(g.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;for(;x!==0&&A<p.length;A++)l=(p.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;if(x===0&&A<p.length&&p!==this)for(;A<p.length;A++)this.words[A]=p.words[A];return this.length=Math.max(this.length,A),p!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function E(w,s,l){l.negative=s.negative^w.negative;var f=w.length+s.length|0;l.length=f,f=f-1|0;var p=w.words[0]|0,g=s.words[0]|0,x=p*g,A=x&67108863,y=x/67108864|0;l.words[0]=A;for(var c=1;c<f;c++){for(var M=y>>>26,B=y&67108863,R=Math.min(c,s.length-1),Q=Math.max(0,c-w.length+1);Q<=R;Q++){var K=c-Q|0;p=w.words[K]|0,g=s.words[Q]|0,x=p*g+B,M+=x/67108864|0,B=x&67108863}l.words[c]=B|0,y=M|0}return y!==0?l.words[c]=y|0:l.length--,l.strip()}var T=function(s,l,f){var p=s.words,g=l.words,x=f.words,A=0,y,c,M,B=p[0]|0,R=B&8191,Q=B>>>13,K=p[1]|0,q=K&8191,W=K>>>13,G=p[2]|0,X=G&8191,ne=G>>>13,te=p[3]|0,V=te&8191,oe=te>>>13,xe=p[4]|0,fe=xe&8191,me=xe>>>13,Ze=p[5]|0,he=Ze&8191,Se=Ze>>>13,Ke=p[6]|0,ye=Ke&8191,ce=Ke>>>13,Fe=p[7]|0,pe=Fe&8191,we=Fe>>>13,gt=p[8]|0,$=gt&8191,P=gt>>>13,Z=p[9]|0,ie=Z&8191,se=Z>>>13,be=g[0]|0,le=be&8191,Ae=be>>>13,We=g[1]|0,Me=We&8191,De=We>>>13,st=g[2]|0,Te=st&8191,Oe=st>>>13,Ft=g[3]|0,je=Ft&8191,Ue=Ft>>>13,Yt=g[4]|0,_e=Yt&8191,Pe=Yt>>>13,Mt=g[5]|0,Be=Mt&8191,He=Mt>>>13,or=g[6]|0,ke=or&8191,Ge=or>>>13,J=g[7]|0,ee=J&8191,re=J>>>13,H=g[8]|0,ae=H&8191,ue=H>>>13,Ee=g[9]|0,de=Ee&8191,ve=Ee>>>13;f.negative=s.negative^l.negative,f.length=19,y=Math.imul(R,le),c=Math.imul(R,Ae),c=c+Math.imul(Q,le)|0,M=Math.imul(Q,Ae);var tt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(tt>>>26)|0,tt&=67108863,y=Math.imul(q,le),c=Math.imul(q,Ae),c=c+Math.imul(W,le)|0,M=Math.imul(W,Ae),y=y+Math.imul(R,Me)|0,c=c+Math.imul(R,De)|0,c=c+Math.imul(Q,Me)|0,M=M+Math.imul(Q,De)|0;var qe=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(X,le),c=Math.imul(X,Ae),c=c+Math.imul(ne,le)|0,M=Math.imul(ne,Ae),y=y+Math.imul(q,Me)|0,c=c+Math.imul(q,De)|0,c=c+Math.imul(W,Me)|0,M=M+Math.imul(W,De)|0,y=y+Math.imul(R,Te)|0,c=c+Math.imul(R,Oe)|0,c=c+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Oe)|0;var _t=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(V,le),c=Math.imul(V,Ae),c=c+Math.imul(oe,le)|0,M=Math.imul(oe,Ae),y=y+Math.imul(X,Me)|0,c=c+Math.imul(X,De)|0,c=c+Math.imul(ne,Me)|0,M=M+Math.imul(ne,De)|0,y=y+Math.imul(q,Te)|0,c=c+Math.imul(q,Oe)|0,c=c+Math.imul(W,Te)|0,M=M+Math.imul(W,Oe)|0,y=y+Math.imul(R,je)|0,c=c+Math.imul(R,Ue)|0,c=c+Math.imul(Q,je)|0,M=M+Math.imul(Q,Ue)|0;var lt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(lt>>>26)|0,lt&=67108863,y=Math.imul(fe,le),c=Math.imul(fe,Ae),c=c+Math.imul(me,le)|0,M=Math.imul(me,Ae),y=y+Math.imul(V,Me)|0,c=c+Math.imul(V,De)|0,c=c+Math.imul(oe,Me)|0,M=M+Math.imul(oe,De)|0,y=y+Math.imul(X,Te)|0,c=c+Math.imul(X,Oe)|0,c=c+Math.imul(ne,Te)|0,M=M+Math.imul(ne,Oe)|0,y=y+Math.imul(q,je)|0,c=c+Math.imul(q,Ue)|0,c=c+Math.imul(W,je)|0,M=M+Math.imul(W,Ue)|0,y=y+Math.imul(R,_e)|0,c=c+Math.imul(R,Pe)|0,c=c+Math.imul(Q,_e)|0,M=M+Math.imul(Q,Pe)|0;var wt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(he,le),c=Math.imul(he,Ae),c=c+Math.imul(Se,le)|0,M=Math.imul(Se,Ae),y=y+Math.imul(fe,Me)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(me,Me)|0,M=M+Math.imul(me,De)|0,y=y+Math.imul(V,Te)|0,c=c+Math.imul(V,Oe)|0,c=c+Math.imul(oe,Te)|0,M=M+Math.imul(oe,Oe)|0,y=y+Math.imul(X,je)|0,c=c+Math.imul(X,Ue)|0,c=c+Math.imul(ne,je)|0,M=M+Math.imul(ne,Ue)|0,y=y+Math.imul(q,_e)|0,c=c+Math.imul(q,Pe)|0,c=c+Math.imul(W,_e)|0,M=M+Math.imul(W,Pe)|0,y=y+Math.imul(R,Be)|0,c=c+Math.imul(R,He)|0,c=c+Math.imul(Q,Be)|0,M=M+Math.imul(Q,He)|0;var Et=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(ye,le),c=Math.imul(ye,Ae),c=c+Math.imul(ce,le)|0,M=Math.imul(ce,Ae),y=y+Math.imul(he,Me)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(Se,Me)|0,M=M+Math.imul(Se,De)|0,y=y+Math.imul(fe,Te)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(me,Te)|0,M=M+Math.imul(me,Oe)|0,y=y+Math.imul(V,je)|0,c=c+Math.imul(V,Ue)|0,c=c+Math.imul(oe,je)|0,M=M+Math.imul(oe,Ue)|0,y=y+Math.imul(X,_e)|0,c=c+Math.imul(X,Pe)|0,c=c+Math.imul(ne,_e)|0,M=M+Math.imul(ne,Pe)|0,y=y+Math.imul(q,Be)|0,c=c+Math.imul(q,He)|0,c=c+Math.imul(W,Be)|0,M=M+Math.imul(W,He)|0,y=y+Math.imul(R,ke)|0,c=c+Math.imul(R,Ge)|0,c=c+Math.imul(Q,ke)|0,M=M+Math.imul(Q,Ge)|0;var jt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(jt>>>26)|0,jt&=67108863,y=Math.imul(pe,le),c=Math.imul(pe,Ae),c=c+Math.imul(we,le)|0,M=Math.imul(we,Ae),y=y+Math.imul(ye,Me)|0,c=c+Math.imul(ye,De)|0,c=c+Math.imul(ce,Me)|0,M=M+Math.imul(ce,De)|0,y=y+Math.imul(he,Te)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(Se,Te)|0,M=M+Math.imul(Se,Oe)|0,y=y+Math.imul(fe,je)|0,c=c+Math.imul(fe,Ue)|0,c=c+Math.imul(me,je)|0,M=M+Math.imul(me,Ue)|0,y=y+Math.imul(V,_e)|0,c=c+Math.imul(V,Pe)|0,c=c+Math.imul(oe,_e)|0,M=M+Math.imul(oe,Pe)|0,y=y+Math.imul(X,Be)|0,c=c+Math.imul(X,He)|0,c=c+Math.imul(ne,Be)|0,M=M+Math.imul(ne,He)|0,y=y+Math.imul(q,ke)|0,c=c+Math.imul(q,Ge)|0,c=c+Math.imul(W,ke)|0,M=M+Math.imul(W,Ge)|0,y=y+Math.imul(R,ee)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(Q,ee)|0,M=M+Math.imul(Q,re)|0;var Nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,y=Math.imul($,le),c=Math.imul($,Ae),c=c+Math.imul(P,le)|0,M=Math.imul(P,Ae),y=y+Math.imul(pe,Me)|0,c=c+Math.imul(pe,De)|0,c=c+Math.imul(we,Me)|0,M=M+Math.imul(we,De)|0,y=y+Math.imul(ye,Te)|0,c=c+Math.imul(ye,Oe)|0,c=c+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Oe)|0,y=y+Math.imul(he,je)|0,c=c+Math.imul(he,Ue)|0,c=c+Math.imul(Se,je)|0,M=M+Math.imul(Se,Ue)|0,y=y+Math.imul(fe,_e)|0,c=c+Math.imul(fe,Pe)|0,c=c+Math.imul(me,_e)|0,M=M+Math.imul(me,Pe)|0,y=y+Math.imul(V,Be)|0,c=c+Math.imul(V,He)|0,c=c+Math.imul(oe,Be)|0,M=M+Math.imul(oe,He)|0,y=y+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,M=M+Math.imul(ne,Ge)|0,y=y+Math.imul(q,ee)|0,c=c+Math.imul(q,re)|0,c=c+Math.imul(W,ee)|0,M=M+Math.imul(W,re)|0,y=y+Math.imul(R,ae)|0,c=c+Math.imul(R,ue)|0,c=c+Math.imul(Q,ae)|0,M=M+Math.imul(Q,ue)|0;var St=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(St>>>26)|0,St&=67108863,y=Math.imul(ie,le),c=Math.imul(ie,Ae),c=c+Math.imul(se,le)|0,M=Math.imul(se,Ae),y=y+Math.imul($,Me)|0,c=c+Math.imul($,De)|0,c=c+Math.imul(P,Me)|0,M=M+Math.imul(P,De)|0,y=y+Math.imul(pe,Te)|0,c=c+Math.imul(pe,Oe)|0,c=c+Math.imul(we,Te)|0,M=M+Math.imul(we,Oe)|0,y=y+Math.imul(ye,je)|0,c=c+Math.imul(ye,Ue)|0,c=c+Math.imul(ce,je)|0,M=M+Math.imul(ce,Ue)|0,y=y+Math.imul(he,_e)|0,c=c+Math.imul(he,Pe)|0,c=c+Math.imul(Se,_e)|0,M=M+Math.imul(Se,Pe)|0,y=y+Math.imul(fe,Be)|0,c=c+Math.imul(fe,He)|0,c=c+Math.imul(me,Be)|0,M=M+Math.imul(me,He)|0,y=y+Math.imul(V,ke)|0,c=c+Math.imul(V,Ge)|0,c=c+Math.imul(oe,ke)|0,M=M+Math.imul(oe,Ge)|0,y=y+Math.imul(X,ee)|0,c=c+Math.imul(X,re)|0,c=c+Math.imul(ne,ee)|0,M=M+Math.imul(ne,re)|0,y=y+Math.imul(q,ae)|0,c=c+Math.imul(q,ue)|0,c=c+Math.imul(W,ae)|0,M=M+Math.imul(W,ue)|0,y=y+Math.imul(R,de)|0,c=c+Math.imul(R,ve)|0,c=c+Math.imul(Q,de)|0,M=M+Math.imul(Q,ve)|0;var It=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(It>>>26)|0,It&=67108863,y=Math.imul(ie,Me),c=Math.imul(ie,De),c=c+Math.imul(se,Me)|0,M=Math.imul(se,De),y=y+Math.imul($,Te)|0,c=c+Math.imul($,Oe)|0,c=c+Math.imul(P,Te)|0,M=M+Math.imul(P,Oe)|0,y=y+Math.imul(pe,je)|0,c=c+Math.imul(pe,Ue)|0,c=c+Math.imul(we,je)|0,M=M+Math.imul(we,Ue)|0,y=y+Math.imul(ye,_e)|0,c=c+Math.imul(ye,Pe)|0,c=c+Math.imul(ce,_e)|0,M=M+Math.imul(ce,Pe)|0,y=y+Math.imul(he,Be)|0,c=c+Math.imul(he,He)|0,c=c+Math.imul(Se,Be)|0,M=M+Math.imul(Se,He)|0,y=y+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(me,ke)|0,M=M+Math.imul(me,Ge)|0,y=y+Math.imul(V,ee)|0,c=c+Math.imul(V,re)|0,c=c+Math.imul(oe,ee)|0,M=M+Math.imul(oe,re)|0,y=y+Math.imul(X,ae)|0,c=c+Math.imul(X,ue)|0,c=c+Math.imul(ne,ae)|0,M=M+Math.imul(ne,ue)|0,y=y+Math.imul(q,de)|0,c=c+Math.imul(q,ve)|0,c=c+Math.imul(W,de)|0,M=M+Math.imul(W,ve)|0;var Dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,y=Math.imul(ie,Te),c=Math.imul(ie,Oe),c=c+Math.imul(se,Te)|0,M=Math.imul(se,Oe),y=y+Math.imul($,je)|0,c=c+Math.imul($,Ue)|0,c=c+Math.imul(P,je)|0,M=M+Math.imul(P,Ue)|0,y=y+Math.imul(pe,_e)|0,c=c+Math.imul(pe,Pe)|0,c=c+Math.imul(we,_e)|0,M=M+Math.imul(we,Pe)|0,y=y+Math.imul(ye,Be)|0,c=c+Math.imul(ye,He)|0,c=c+Math.imul(ce,Be)|0,M=M+Math.imul(ce,He)|0,y=y+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(Se,ke)|0,M=M+Math.imul(Se,Ge)|0,y=y+Math.imul(fe,ee)|0,c=c+Math.imul(fe,re)|0,c=c+Math.imul(me,ee)|0,M=M+Math.imul(me,re)|0,y=y+Math.imul(V,ae)|0,c=c+Math.imul(V,ue)|0,c=c+Math.imul(oe,ae)|0,M=M+Math.imul(oe,ue)|0,y=y+Math.imul(X,de)|0,c=c+Math.imul(X,ve)|0,c=c+Math.imul(ne,de)|0,M=M+Math.imul(ne,ve)|0;var dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(ie,je),c=Math.imul(ie,Ue),c=c+Math.imul(se,je)|0,M=Math.imul(se,Ue),y=y+Math.imul($,_e)|0,c=c+Math.imul($,Pe)|0,c=c+Math.imul(P,_e)|0,M=M+Math.imul(P,Pe)|0,y=y+Math.imul(pe,Be)|0,c=c+Math.imul(pe,He)|0,c=c+Math.imul(we,Be)|0,M=M+Math.imul(we,He)|0,y=y+Math.imul(ye,ke)|0,c=c+Math.imul(ye,Ge)|0,c=c+Math.imul(ce,ke)|0,M=M+Math.imul(ce,Ge)|0,y=y+Math.imul(he,ee)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Se,ee)|0,M=M+Math.imul(Se,re)|0,y=y+Math.imul(fe,ae)|0,c=c+Math.imul(fe,ue)|0,c=c+Math.imul(me,ae)|0,M=M+Math.imul(me,ue)|0,y=y+Math.imul(V,de)|0,c=c+Math.imul(V,ve)|0,c=c+Math.imul(oe,de)|0,M=M+Math.imul(oe,ve)|0;var yt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(ie,_e),c=Math.imul(ie,Pe),c=c+Math.imul(se,_e)|0,M=Math.imul(se,Pe),y=y+Math.imul($,Be)|0,c=c+Math.imul($,He)|0,c=c+Math.imul(P,Be)|0,M=M+Math.imul(P,He)|0,y=y+Math.imul(pe,ke)|0,c=c+Math.imul(pe,Ge)|0,c=c+Math.imul(we,ke)|0,M=M+Math.imul(we,Ge)|0,y=y+Math.imul(ye,ee)|0,c=c+Math.imul(ye,re)|0,c=c+Math.imul(ce,ee)|0,M=M+Math.imul(ce,re)|0,y=y+Math.imul(he,ae)|0,c=c+Math.imul(he,ue)|0,c=c+Math.imul(Se,ae)|0,M=M+Math.imul(Se,ue)|0,y=y+Math.imul(fe,de)|0,c=c+Math.imul(fe,ve)|0,c=c+Math.imul(me,de)|0,M=M+Math.imul(me,ve)|0;var ot=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ot>>>26)|0,ot&=67108863,y=Math.imul(ie,Be),c=Math.imul(ie,He),c=c+Math.imul(se,Be)|0,M=Math.imul(se,He),y=y+Math.imul($,ke)|0,c=c+Math.imul($,Ge)|0,c=c+Math.imul(P,ke)|0,M=M+Math.imul(P,Ge)|0,y=y+Math.imul(pe,ee)|0,c=c+Math.imul(pe,re)|0,c=c+Math.imul(we,ee)|0,M=M+Math.imul(we,re)|0,y=y+Math.imul(ye,ae)|0,c=c+Math.imul(ye,ue)|0,c=c+Math.imul(ce,ae)|0,M=M+Math.imul(ce,ue)|0,y=y+Math.imul(he,de)|0,c=c+Math.imul(he,ve)|0,c=c+Math.imul(Se,de)|0,M=M+Math.imul(Se,ve)|0;var ht=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,y=Math.imul(ie,ke),c=Math.imul(ie,Ge),c=c+Math.imul(se,ke)|0,M=Math.imul(se,Ge),y=y+Math.imul($,ee)|0,c=c+Math.imul($,re)|0,c=c+Math.imul(P,ee)|0,M=M+Math.imul(P,re)|0,y=y+Math.imul(pe,ae)|0,c=c+Math.imul(pe,ue)|0,c=c+Math.imul(we,ae)|0,M=M+Math.imul(we,ue)|0,y=y+Math.imul(ye,de)|0,c=c+Math.imul(ye,ve)|0,c=c+Math.imul(ce,de)|0,M=M+Math.imul(ce,ve)|0;var pt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(ie,ee),c=Math.imul(ie,re),c=c+Math.imul(se,ee)|0,M=Math.imul(se,re),y=y+Math.imul($,ae)|0,c=c+Math.imul($,ue)|0,c=c+Math.imul(P,ae)|0,M=M+Math.imul(P,ue)|0,y=y+Math.imul(pe,de)|0,c=c+Math.imul(pe,ve)|0,c=c+Math.imul(we,de)|0,M=M+Math.imul(we,ve)|0;var nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(nt>>>26)|0,nt&=67108863,y=Math.imul(ie,ae),c=Math.imul(ie,ue),c=c+Math.imul(se,ae)|0,M=Math.imul(se,ue),y=y+Math.imul($,de)|0,c=c+Math.imul($,ve)|0,c=c+Math.imul(P,de)|0,M=M+Math.imul(P,ve)|0;var Ne=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,y=Math.imul(ie,de),c=Math.imul(ie,ve),c=c+Math.imul(se,de)|0,M=Math.imul(se,ve);var Le=(A+y|0)+((c&8191)<<13)|0;return A=(M+(c>>>13)|0)+(Le>>>26)|0,Le&=67108863,x[0]=tt,x[1]=qe,x[2]=_t,x[3]=lt,x[4]=wt,x[5]=Et,x[6]=jt,x[7]=Nt,x[8]=St,x[9]=It,x[10]=Dt,x[11]=dt,x[12]=yt,x[13]=ot,x[14]=ht,x[15]=pt,x[16]=nt,x[17]=Ne,x[18]=Le,A!==0&&(x[19]=A,f.length++),f};Math.imul||(T=E);function I(w,s,l){l.negative=s.negative^w.negative,l.length=w.length+s.length;for(var f=0,p=0,g=0;g<l.length-1;g++){var x=p;p=0;for(var A=f&67108863,y=Math.min(g,s.length-1),c=Math.max(0,g-w.length+1);c<=y;c++){var M=g-c,B=w.words[M]|0,R=s.words[c]|0,Q=B*R,K=Q&67108863;x=x+(Q/67108864|0)|0,K=K+A|0,A=K&67108863,x=x+(K>>>26)|0,p+=x>>>26,x&=67108863}l.words[g]=A,f=x,x=p}return f!==0?l.words[g]=f:l.length--,l.strip()}function S(w,s,l){var f=new D;return f.mulp(w,s,l)}i.prototype.mulTo=function(s,l){var f,p=this.length+s.length;return this.length===10&&s.length===10?f=T(this,s,l):p<63?f=E(this,s,l):p<1024?f=I(this,s,l):f=S(this,s,l),f};function D(w,s){this.x=w,this.y=s}D.prototype.makeRBT=function(s){for(var l=new Array(s),f=i.prototype._countBits(s)-1,p=0;p<s;p++)l[p]=this.revBin(p,f,s);return l},D.prototype.revBin=function(s,l,f){if(s===0||s===f-1)return s;for(var p=0,g=0;g<l;g++)p|=(s&1)<<l-g-1,s>>=1;return p},D.prototype.permute=function(s,l,f,p,g,x){for(var A=0;A<x;A++)p[A]=l[s[A]],g[A]=f[s[A]]},D.prototype.transform=function(s,l,f,p,g,x){this.permute(x,s,l,f,p,g);for(var A=1;A<g;A<<=1)for(var y=A<<1,c=Math.cos(2*Math.PI/y),M=Math.sin(2*Math.PI/y),B=0;B<g;B+=y)for(var R=c,Q=M,K=0;K<A;K++){var q=f[B+K],W=p[B+K],G=f[B+K+A],X=p[B+K+A],ne=R*G-Q*X;X=R*X+Q*G,G=ne,f[B+K]=q+G,p[B+K]=W+X,f[B+K+A]=q-G,p[B+K+A]=W-X,K!==y&&(ne=c*R-M*Q,Q=c*Q+M*R,R=ne)}},D.prototype.guessLen13b=function(s,l){var f=Math.max(l,s)|1,p=f&1,g=0;for(f=f/2|0;f;f=f>>>1)g++;return 1<<g+1+p},D.prototype.conjugate=function(s,l,f){if(!(f<=1))for(var p=0;p<f/2;p++){var g=s[p];s[p]=s[f-p-1],s[f-p-1]=g,g=l[p],l[p]=-l[f-p-1],l[f-p-1]=-g}},D.prototype.normalize13b=function(s,l){for(var f=0,p=0;p<l/2;p++){var g=Math.round(s[2*p+1]/l)*8192+Math.round(s[2*p]/l)+f;s[p]=g&67108863,g<67108864?f=0:f=g/67108864|0}return s},D.prototype.convert13b=function(s,l,f,p){for(var g=0,x=0;x<l;x++)g=g+(s[x]|0),f[2*x]=g&8191,g=g>>>13,f[2*x+1]=g&8191,g=g>>>13;for(x=2*l;x<p;++x)f[x]=0;n(g===0),n((g&-8192)===0)},D.prototype.stub=function(s){for(var l=new Array(s),f=0;f<s;f++)l[f]=0;return l},D.prototype.mulp=function(s,l,f){var p=2*this.guessLen13b(s.length,l.length),g=this.makeRBT(p),x=this.stub(p),A=new Array(p),y=new Array(p),c=new Array(p),M=new Array(p),B=new Array(p),R=new Array(p),Q=f.words;Q.length=p,this.convert13b(s.words,s.length,A,p),this.convert13b(l.words,l.length,M,p),this.transform(A,x,y,c,p,g),this.transform(M,x,B,R,p,g);for(var K=0;K<p;K++){var q=y[K]*B[K]-c[K]*R[K];c[K]=y[K]*R[K]+c[K]*B[K],y[K]=q}return this.conjugate(y,c,p),this.transform(y,c,Q,x,p,g),this.conjugate(Q,x,p),this.normalize13b(Q,p),f.negative=s.negative^l.negative,f.length=s.length+l.length,f.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),S(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){n(typeof s=="number"),n(s<67108864);for(var l=0,f=0;f<this.length;f++){var p=(this.words[f]|0)*s,g=(p&67108863)+(l&67108863);l>>=26,l+=p/67108864|0,l+=g>>>26,this.words[f]=g&67108863}return l!==0&&(this.words[f]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=C(s);if(l.length===0)return new i(1);for(var f=this,p=0;p<l.length&&l[p]===0;p++,f=f.sqr());if(++p<l.length)for(var g=f.sqr();p<l.length;p++,g=g.sqr())l[p]!==0&&(f=f.mul(g));return f},i.prototype.iushln=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=67108863>>>26-l<<26-l,g;if(l!==0){var x=0;for(g=0;g<this.length;g++){var A=this.words[g]&p,y=(this.words[g]|0)-A<<l;this.words[g]=y|x,x=A>>>26-l}x&&(this.words[g]=x,this.length++)}if(f!==0){for(g=this.length-1;g>=0;g--)this.words[g+f]=this.words[g];for(g=0;g<f;g++)this.words[g]=0;this.length+=f}return this.strip()},i.prototype.ishln=function(s){return n(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,f){n(typeof s=="number"&&s>=0);var p;l?p=(l-l%26)/26:p=0;var g=s%26,x=Math.min((s-g)/26,this.length),A=67108863^67108863>>>g<<g,y=f;if(p-=x,p=Math.max(0,p),y){for(var c=0;c<x;c++)y.words[c]=this.words[c];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,c=0;c<this.length;c++)this.words[c]=this.words[c+x];else this.words[0]=0,this.length=1;var M=0;for(c=this.length-1;c>=0&&(M!==0||c>=p);c--){var B=this.words[c]|0;this.words[c]=M<<26-g|B>>>g,M=B&A}return y&&M!==0&&(y.words[y.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,f){return n(this.negative===0),this.iushrn(s,l,f)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return!1;var g=this.words[f];return!!(g&p)},i.prototype.imaskn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=f)return this;if(l!==0&&f++,this.length=Math.min(f,this.length),l!==0){var p=67108863^67108863>>>l<<l;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return n(typeof s=="number"),n(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(n(typeof s=="number"),n(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,f){var p=s.length+f,g;this._expand(p);var x,A=0;for(g=0;g<s.length;g++){x=(this.words[g+f]|0)+A;var y=(s.words[g]|0)*l;x-=y&67108863,A=(x>>26)-(y/67108864|0),this.words[g+f]=x&67108863}for(;g<this.length-f;g++)x=(this.words[g+f]|0)+A,A=x>>26,this.words[g+f]=x&67108863;if(A===0)return this.strip();for(n(A===-1),A=0,g=0;g<this.length;g++)x=-(this.words[g]|0)+A,A=x>>26,this.words[g]=x&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var f=this.length-s.length,p=this.clone(),g=s,x=g.words[g.length-1]|0,A=this._countBits(x);f=26-A,f!==0&&(g=g.ushln(f),p.iushln(f),x=g.words[g.length-1]|0);var y=p.length-g.length,c;if(l!=="mod"){c=new i(null),c.length=y+1,c.words=new Array(c.length);for(var M=0;M<c.length;M++)c.words[M]=0}var B=p.clone()._ishlnsubmul(g,1,y);B.negative===0&&(p=B,c&&(c.words[y]=1));for(var R=y-1;R>=0;R--){var Q=(p.words[g.length+R]|0)*67108864+(p.words[g.length+R-1]|0);for(Q=Math.min(Q/x|0,67108863),p._ishlnsubmul(g,Q,R);p.negative!==0;)Q--,p.negative=0,p._ishlnsubmul(g,1,R),p.isZero()||(p.negative^=1);c&&(c.words[R]=Q)}return c&&c.strip(),p.strip(),l!=="div"&&f!==0&&p.iushrn(f),{div:c||null,mod:p}},i.prototype.divmod=function(s,l,f){if(n(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var p,g,x;return this.negative!==0&&s.negative===0?(x=this.neg().divmod(s,l),l!=="mod"&&(p=x.div.neg()),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.iadd(s)),{div:p,mod:g}):this.negative===0&&s.negative!==0?(x=this.divmod(s.neg(),l),l!=="mod"&&(p=x.div.neg()),{div:p,mod:x.mod}):this.negative&s.negative?(x=this.neg().divmod(s.neg(),l),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.isub(s)),{div:x.div,mod:g}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var f=l.div.negative!==0?l.mod.isub(s):l.mod,p=s.ushrn(1),g=s.andln(1),x=f.cmp(p);return x<0||g===1&&x===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){n(s<=67108863);for(var l=(1<<26)%s,f=0,p=this.length-1;p>=0;p--)f=(l*f+(this.words[p]|0))%s;return f},i.prototype.idivn=function(s){n(s<=67108863);for(var l=0,f=this.length-1;f>=0;f--){var p=(this.words[f]|0)+l*67108864;this.words[f]=p/s|0,l=p%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=new i(0),A=new i(1),y=0;l.isEven()&&f.isEven();)l.iushrn(1),f.iushrn(1),++y;for(var c=f.clone(),M=l.clone();!l.isZero();){for(var B=0,R=1;!(l.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(l.iushrn(B);B-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(c),g.isub(M)),p.iushrn(1),g.iushrn(1);for(var Q=0,K=1;!(f.words[0]&K)&&Q<26;++Q,K<<=1);if(Q>0)for(f.iushrn(Q);Q-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(c),A.isub(M)),x.iushrn(1),A.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(x),g.isub(A)):(f.isub(l),x.isub(p),A.isub(g))}return{a:x,b:A,gcd:f.iushln(y)}},i.prototype._invmp=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=f.clone();l.cmpn(1)>0&&f.cmpn(1)>0;){for(var A=0,y=1;!(l.words[0]&y)&&A<26;++A,y<<=1);if(A>0)for(l.iushrn(A);A-- >0;)p.isOdd()&&p.iadd(x),p.iushrn(1);for(var c=0,M=1;!(f.words[0]&M)&&c<26;++c,M<<=1);if(c>0)for(f.iushrn(c);c-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(g)):(f.isub(l),g.isub(p))}var B;return l.cmpn(1)===0?B=p:B=g,B.cmpn(0)<0&&B.iadd(s),B},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),f=s.clone();l.negative=0,f.negative=0;for(var p=0;l.isEven()&&f.isEven();p++)l.iushrn(1),f.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;f.isEven();)f.iushrn(1);var g=l.cmp(f);if(g<0){var x=l;l=f,f=x}else if(g===0||f.cmpn(1)===0)break;l.isub(f)}while(!0);return f.iushln(p)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){n(typeof s=="number");var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return this._expand(f+1),this.words[f]|=p,this;for(var g=p,x=f;g!==0&&x<this.length;x++){var A=this.words[x]|0;A+=g,g=A>>>26,A&=67108863,this.words[x]=A}return g!==0&&(this.words[x]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var f;if(this.length>1)f=1;else{l&&(s=-s),n(s<=67108863,"Number is too big");var p=this.words[0]|0;f=p===s?0:p<s?-1:1}return this.negative!==0?-f|0:f},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,f=this.length-1;f>=0;f--){var p=this.words[f]|0,g=s.words[f]|0;if(p!==g){p<g?l=-1:p>g&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new F(s)},i.prototype.toRed=function(s){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return n(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return n(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var L={k256:null,p224:null,p192:null,p25519:null};function N(w,s){this.name=w,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},N.prototype.ireduce=function(s){var l=s,f;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),f=l.bitLength();while(f>this.n);var p=f<this.n?-1:l.ucmp(this.p);return p===0?(l.words[0]=0,l.length=1):p>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},N.prototype.split=function(s,l){s.iushrn(this.n,0,l)},N.prototype.imulK=function(s){return s.imul(this.k)};function _(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,N),_.prototype.split=function(s,l){for(var f=4194303,p=Math.min(s.length,9),g=0;g<p;g++)l.words[g]=s.words[g];if(l.length=p,s.length<=9){s.words[0]=0,s.length=1;return}var x=s.words[9];for(l.words[l.length++]=x&f,g=10;g<s.length;g++){var A=s.words[g]|0;s.words[g-10]=(A&f)<<4|x>>>22,x=A}x>>>=22,s.words[g-10]=x,x===0&&s.length>10?s.length-=10:s.length-=9},_.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,f=0;f<s.length;f++){var p=s.words[f]|0;l+=p*977,s.words[f]=l&67108863,l=p*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function O(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(O,N);function U(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(U,N);function z(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(z,N),z.prototype.imulK=function(s){for(var l=0,f=0;f<s.length;f++){var p=(s.words[f]|0)*19+l,g=p&67108863;p>>>=26,s.words[f]=g,l=p}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(L[s])return L[s];var l;if(s==="k256")l=new _;else if(s==="p224")l=new O;else if(s==="p192")l=new U;else if(s==="p25519")l=new z;else throw new Error("Unknown prime "+s);return L[s]=l,l};function F(w){if(typeof w=="string"){var s=i._prime(w);this.m=s.p,this.prime=s}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(s){n(s.negative===0,"red works only with positives"),n(s.red,"red works only with red numbers")},F.prototype._verify2=function(s,l){n((s.negative|l.negative)===0,"red works only with positives"),n(s.red&&s.red===l.red,"red works only with red numbers")},F.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},F.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},F.prototype.add=function(s,l){this._verify2(s,l);var f=s.add(l);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},F.prototype.iadd=function(s,l){this._verify2(s,l);var f=s.iadd(l);return f.cmp(this.m)>=0&&f.isub(this.m),f},F.prototype.sub=function(s,l){this._verify2(s,l);var f=s.sub(l);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},F.prototype.isub=function(s,l){this._verify2(s,l);var f=s.isub(l);return f.cmpn(0)<0&&f.iadd(this.m),f},F.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},F.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},F.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},F.prototype.isqr=function(s){return this.imul(s,s.clone())},F.prototype.sqr=function(s){return this.mul(s,s)},F.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(n(l%2===1),l===3){var f=this.m.add(new i(1)).iushrn(2);return this.pow(s,f)}for(var p=this.m.subn(1),g=0;!p.isZero()&&p.andln(1)===0;)g++,p.iushrn(1);n(!p.isZero());var x=new i(1).toRed(this),A=x.redNeg(),y=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);this.pow(c,y).cmp(A)!==0;)c.redIAdd(A);for(var M=this.pow(c,p),B=this.pow(s,p.addn(1).iushrn(1)),R=this.pow(s,p),Q=g;R.cmp(x)!==0;){for(var K=R,q=0;K.cmp(x)!==0;q++)K=K.redSqr();n(q<Q);var W=this.pow(M,new i(1).iushln(Q-q-1));B=B.redMul(W),M=W.redSqr(),R=R.redMul(M),Q=q}return B},F.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},F.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var f=4,p=new Array(1<<f);p[0]=new i(1).toRed(this),p[1]=s;for(var g=2;g<p.length;g++)p[g]=this.mul(p[g-1],s);var x=p[0],A=0,y=0,c=l.bitLength()%26;for(c===0&&(c=26),g=l.length-1;g>=0;g--){for(var M=l.words[g],B=c-1;B>=0;B--){var R=M>>B&1;if(x!==p[0]&&(x=this.sqr(x)),R===0&&A===0){y=0;continue}A<<=1,A|=R,y++,!(y!==f&&(g!==0||B!==0))&&(x=this.mul(x,p[A]),y=0,A=0)}c=26}return x},F.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},F.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new k(s)};function k(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(k,F),k.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},k.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},k.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var f=s.imul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var f=s.mul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(e,Ut)}(e3)),e3.exports}var m8={},ID;function YF(){return ID||(ID=1,function(e){var t=e;function r(i,o){if(Array.isArray(i))return i.slice();if(!i)return[];var u=[];if(typeof i!="string"){for(var d=0;d<i.length;d++)u[d]=i[d]|0;return u}if(o==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var d=0;d<i.length;d+=2)u.push(parseInt(i[d]+i[d+1],16))}else for(var d=0;d<i.length;d++){var h=i.charCodeAt(d),m=h>>8,b=h&255;m?u.push(m,b):u.push(b)}return u}t.toArray=r;function n(i){return i.length===1?"0"+i:i}t.zero2=n;function a(i){for(var o="",u=0;u<i.length;u++)o+=n(i[u].toString(16));return o}t.toHex=a,t.encode=function(o,u){return u==="hex"?a(o):o}}(m8)),m8}var ND;function Ts(){return ND||(ND=1,function(e){var t=e,r=wc(),n=Ds(),a=YF();t.assert=n,t.toArray=a.toArray,t.zero2=a.zero2,t.toHex=a.toHex,t.encode=a.encode;function i(m,b,v){var C=new Array(Math.max(m.bitLength(),v)+1),E;for(E=0;E<C.length;E+=1)C[E]=0;var T=1<<b+1,I=m.clone();for(E=0;E<C.length;E++){var S,D=I.andln(T-1);I.isOdd()?(D>(T>>1)-1?S=(T>>1)-D:S=D,I.isubn(S)):S=0,C[E]=S,I.iushrn(1)}return C}t.getNAF=i;function o(m,b){var v=[[],[]];m=m.clone(),b=b.clone();for(var C=0,E=0,T;m.cmpn(-C)>0||b.cmpn(-E)>0;){var I=m.andln(3)+C&3,S=b.andln(3)+E&3;I===3&&(I=-1),S===3&&(S=-1);var D;I&1?(T=m.andln(7)+C&7,(T===3||T===5)&&S===2?D=-I:D=I):D=0,v[0].push(D);var L;S&1?(T=b.andln(7)+E&7,(T===3||T===5)&&I===2?L=-S:L=S):L=0,v[1].push(L),2*C===D+1&&(C=1-C),2*E===L+1&&(E=1-E),m.iushrn(1),b.iushrn(1)}return v}t.getJSF=o;function u(m,b,v){var C="_"+b;m.prototype[b]=function(){return this[C]!==void 0?this[C]:this[C]=v.call(this)}}t.cachedProperty=u;function d(m){return typeof m=="string"?t.toArray(m,"hex"):m}t.parseBytes=d;function h(m){return new r(m,"hex","le")}t.intFromLE=h}(p8)),p8}var g8={},y8,LD;function a5(){if(LD)return y8;LD=1;var e=wc(),t=Ts(),r=t.getNAF,n=t.getJSF,a=t.assert;function i(u,d){this.type=u,this.p=new e(d.p,16),this.red=d.prime?e.red(d.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=d.n&&new e(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}y8=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(d,h){a(d.precomputed);var m=d._getDoubles(),b=r(h,1,this._bitLength),v=(1<<m.step+1)-(m.step%2===0?2:1);v/=3;var C=[],E,T;for(E=0;E<b.length;E+=m.step){T=0;for(var I=E+m.step-1;I>=E;I--)T=(T<<1)+b[I];C.push(T)}for(var S=this.jpoint(null,null,null),D=this.jpoint(null,null,null),L=v;L>0;L--){for(E=0;E<C.length;E++)T=C[E],T===L?D=D.mixedAdd(m.points[E]):T===-L&&(D=D.mixedAdd(m.points[E].neg()));S=S.add(D)}return S.toP()},i.prototype._wnafMul=function(d,h){var m=4,b=d._getNAFPoints(m);m=b.wnd;for(var v=b.points,C=r(h,m,this._bitLength),E=this.jpoint(null,null,null),T=C.length-1;T>=0;T--){for(var I=0;T>=0&&C[T]===0;T--)I++;if(T>=0&&I++,E=E.dblp(I),T<0)break;var S=C[T];a(S!==0),d.type==="affine"?S>0?E=E.mixedAdd(v[S-1>>1]):E=E.mixedAdd(v[-S-1>>1].neg()):S>0?E=E.add(v[S-1>>1]):E=E.add(v[-S-1>>1].neg())}return d.type==="affine"?E.toP():E},i.prototype._wnafMulAdd=function(d,h,m,b,v){var C=this._wnafT1,E=this._wnafT2,T=this._wnafT3,I=0,S,D,L;for(S=0;S<b;S++){L=h[S];var N=L._getNAFPoints(d);C[S]=N.wnd,E[S]=N.points}for(S=b-1;S>=1;S-=2){var _=S-1,O=S;if(C[_]!==1||C[O]!==1){T[_]=r(m[_],C[_],this._bitLength),T[O]=r(m[O],C[O],this._bitLength),I=Math.max(T[_].length,I),I=Math.max(T[O].length,I);continue}var U=[h[_],null,null,h[O]];h[_].y.cmp(h[O].y)===0?(U[1]=h[_].add(h[O]),U[2]=h[_].toJ().mixedAdd(h[O].neg())):h[_].y.cmp(h[O].y.redNeg())===0?(U[1]=h[_].toJ().mixedAdd(h[O]),U[2]=h[_].add(h[O].neg())):(U[1]=h[_].toJ().mixedAdd(h[O]),U[2]=h[_].toJ().mixedAdd(h[O].neg()));var z=[-3,-1,-5,-7,0,7,5,1,3],F=n(m[_],m[O]);for(I=Math.max(F[0].length,I),T[_]=new Array(I),T[O]=new Array(I),D=0;D<I;D++){var k=F[0][D]|0,w=F[1][D]|0;T[_][D]=z[(k+1)*3+(w+1)],T[O][D]=0,E[_]=U}}var s=this.jpoint(null,null,null),l=this._wnafT4;for(S=I;S>=0;S--){for(var f=0;S>=0;){var p=!0;for(D=0;D<b;D++)l[D]=T[D][S]|0,l[D]!==0&&(p=!1);if(!p)break;f++,S--}if(S>=0&&f++,s=s.dblp(f),S<0)break;for(D=0;D<b;D++){var g=l[D];g!==0&&(g>0?L=E[D][g-1>>1]:g<0&&(L=E[D][-g-1>>1].neg()),L.type==="affine"?s=s.mixedAdd(L):s=s.add(L))}}for(S=0;S<b;S++)E[S]=null;return v?s:s.toP()};function o(u,d){this.curve=u,this.type=d,this.precomputed=null}return i.BasePoint=o,o.prototype.eq=function(){throw new Error("Not implemented")},o.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(d,h){d=t.toArray(d,h);var m=this.p.byteLength();if((d[0]===4||d[0]===6||d[0]===7)&&d.length-1===2*m){d[0]===6?a(d[d.length-1]%2===0):d[0]===7&&a(d[d.length-1]%2===1);var b=this.point(d.slice(1,1+m),d.slice(1+m,1+2*m));return b}else if((d[0]===2||d[0]===3)&&d.length-1===m)return this.pointFromX(d.slice(1,1+m),d[0]===3);throw new Error("Unknown point format")},o.prototype.encodeCompressed=function(d){return this.encode(d,!0)},o.prototype._encode=function(d){var h=this.curve.p.byteLength(),m=this.getX().toArray("be",h);return d?[this.getY().isEven()?2:3].concat(m):[4].concat(m,this.getY().toArray("be",h))},o.prototype.encode=function(d,h){return t.encode(this._encode(h),d)},o.prototype.precompute=function(d){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,d),h.beta=this._getBeta(),this.precomputed=h,this},o.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return h?h.points.length>=Math.ceil((d.bitLength()+1)/h.step):!1},o.prototype._getDoubles=function(d,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],b=this,v=0;v<h;v+=d){for(var C=0;C<d;C++)b=b.dbl();m.push(b)}return{step:d,points:m}},o.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],m=(1<<d)-1,b=m===1?null:this.dbl(),v=1;v<m;v++)h[v]=h[v-1].add(b);return{wnd:d,points:h}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(d){for(var h=this,m=0;m<d;m++)h=h.dbl();return h},y8}var b8,jD;function One(){if(jD)return b8;jD=1;var e=Ts(),t=wc(),r=Xt,n=a5(),a=e.assert;function i(d){n.call(this,"short",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(i,n),b8=i,i.prototype._getEndomorphism=function(h){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var m,b;if(h.beta)m=new t(h.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);m=v[0].cmp(v[1])<0?v[0]:v[1],m=m.toRed(this.red)}if(h.lambda)b=new t(h.lambda,16);else{var C=this._getEndoRoots(this.n);this.g.mul(C[0]).x.cmp(this.g.x.redMul(m))===0?b=C[0]:(b=C[1],a(this.g.mul(b).x.cmp(this.g.x.redMul(m))===0))}var E;return h.basis?E=h.basis.map(function(T){return{a:new t(T.a,16),b:new t(T.b,16)}}):E=this._getEndoBasis(b),{beta:m,lambda:b,basis:E}}},i.prototype._getEndoRoots=function(h){var m=h===this.p?this.red:t.mont(h),b=new t(2).toRed(m).redInvm(),v=b.redNeg(),C=new t(3).toRed(m).redNeg().redSqrt().redMul(b),E=v.redAdd(C).fromRed(),T=v.redSub(C).fromRed();return[E,T]},i.prototype._getEndoBasis=function(h){for(var m=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=h,v=this.n.clone(),C=new t(1),E=new t(0),T=new t(0),I=new t(1),S,D,L,N,_,O,U,z=0,F,k;b.cmpn(0)!==0;){var w=v.div(b);F=v.sub(w.mul(b)),k=T.sub(w.mul(C));var s=I.sub(w.mul(E));if(!L&&F.cmp(m)<0)S=U.neg(),D=C,L=F.neg(),N=k;else if(L&&++z===2)break;U=F,v=b,b=F,T=C,C=k,I=E,E=s}_=F.neg(),O=k;var l=L.sqr().add(N.sqr()),f=_.sqr().add(O.sqr());return f.cmp(l)>=0&&(_=S,O=D),L.negative&&(L=L.neg(),N=N.neg()),_.negative&&(_=_.neg(),O=O.neg()),[{a:L,b:N},{a:_,b:O}]},i.prototype._endoSplit=function(h){var m=this.endo.basis,b=m[0],v=m[1],C=v.b.mul(h).divRound(this.n),E=b.b.neg().mul(h).divRound(this.n),T=C.mul(b.a),I=E.mul(v.a),S=C.mul(b.b),D=E.mul(v.b),L=h.sub(T).sub(I),N=S.add(D).neg();return{k1:L,k2:N}},i.prototype.pointFromX=function(h,m){h=new t(h,16),h.red||(h=h.toRed(this.red));var b=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),v=b.redSqrt();if(v.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var C=v.fromRed().isOdd();return(m&&!C||!m&&C)&&(v=v.redNeg()),this.point(h,v)},i.prototype.validate=function(h){if(h.inf)return!0;var m=h.x,b=h.y,v=this.a.redMul(m),C=m.redSqr().redMul(m).redIAdd(v).redIAdd(this.b);return b.redSqr().redISub(C).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(h,m,b){for(var v=this._endoWnafT1,C=this._endoWnafT2,E=0;E<h.length;E++){var T=this._endoSplit(m[E]),I=h[E],S=I._getBeta();T.k1.negative&&(T.k1.ineg(),I=I.neg(!0)),T.k2.negative&&(T.k2.ineg(),S=S.neg(!0)),v[E*2]=I,v[E*2+1]=S,C[E*2]=T.k1,C[E*2+1]=T.k2}for(var D=this._wnafMulAdd(1,v,C,E*2,b),L=0;L<E*2;L++)v[L]=null,C[L]=null;return D};function o(d,h,m,b){n.BasePoint.call(this,d,"affine"),h===null&&m===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(h,16),this.y=new t(m,16),b&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(o,n.BasePoint),i.prototype.point=function(h,m,b){return new o(this,h,m,b)},i.prototype.pointFromJSON=function(h,m){return o.fromJSON(this,h,m)},o.prototype._getBeta=function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var m=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var b=this.curve,v=function(C){return b.point(C.x.redMul(b.endo.beta),C.y)};h.beta=m,m.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(v)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(v)}}}return m}},o.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},o.fromJSON=function(h,m,b){typeof m=="string"&&(m=JSON.parse(m));var v=h.point(m[0],m[1],b);if(!m[2])return v;function C(T){return h.point(T[0],T[1],b)}var E=m[2];return v.precomputed={beta:null,doubles:E.doubles&&{step:E.doubles.step,points:[v].concat(E.doubles.points.map(C))},naf:E.naf&&{wnd:E.naf.wnd,points:[v].concat(E.naf.points.map(C))}},v},o.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},o.prototype.isInfinity=function(){return this.inf},o.prototype.add=function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var m=this.y.redSub(h.y);m.cmpn(0)!==0&&(m=m.redMul(this.x.redSub(h.x).redInvm()));var b=m.redSqr().redISub(this.x).redISub(h.x),v=m.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,v)},o.prototype.dbl=function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var m=this.curve.a,b=this.x.redSqr(),v=h.redInvm(),C=b.redAdd(b).redIAdd(b).redIAdd(m).redMul(v),E=C.redSqr().redISub(this.x.redAdd(this.x)),T=C.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,T)},o.prototype.getX=function(){return this.x.fromRed()},o.prototype.getY=function(){return this.y.fromRed()},o.prototype.mul=function(h){return h=new t(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},o.prototype.mulAdd=function(h,m,b){var v=[this,m],C=[h,b];return this.curve.endo?this.curve._endoWnafMulAdd(v,C):this.curve._wnafMulAdd(1,v,C,2)},o.prototype.jmulAdd=function(h,m,b){var v=[this,m],C=[h,b];return this.curve.endo?this.curve._endoWnafMulAdd(v,C,!0):this.curve._wnafMulAdd(1,v,C,2,!0)},o.prototype.eq=function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},o.prototype.neg=function(h){if(this.inf)return this;var m=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var b=this.precomputed,v=function(C){return C.neg()};m.precomputed={naf:b.naf&&{wnd:b.naf.wnd,points:b.naf.points.map(v)},doubles:b.doubles&&{step:b.doubles.step,points:b.doubles.points.map(v)}}}return m},o.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var h=this.curve.jpoint(this.x,this.y,this.curve.one);return h};function u(d,h,m,b){n.BasePoint.call(this,d,"jacobian"),h===null&&m===null&&b===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(h,16),this.y=new t(m,16),this.z=new t(b,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return r(u,n.BasePoint),i.prototype.jpoint=function(h,m,b){return new u(this,h,m,b)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),m=h.redSqr(),b=this.x.redMul(m),v=this.y.redMul(m).redMul(h);return this.curve.point(b,v)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var m=h.z.redSqr(),b=this.z.redSqr(),v=this.x.redMul(m),C=h.x.redMul(b),E=this.y.redMul(m.redMul(h.z)),T=h.y.redMul(b.redMul(this.z)),I=v.redSub(C),S=E.redSub(T);if(I.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=I.redSqr(),L=D.redMul(I),N=v.redMul(D),_=S.redSqr().redIAdd(L).redISub(N).redISub(N),O=S.redMul(N.redISub(_)).redISub(E.redMul(L)),U=this.z.redMul(h.z).redMul(I);return this.curve.jpoint(_,O,U)},u.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var m=this.z.redSqr(),b=this.x,v=h.x.redMul(m),C=this.y,E=h.y.redMul(m).redMul(this.z),T=b.redSub(v),I=C.redSub(E);if(T.cmpn(0)===0)return I.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=T.redSqr(),D=S.redMul(T),L=b.redMul(S),N=I.redSqr().redIAdd(D).redISub(L).redISub(L),_=I.redMul(L.redISub(N)).redISub(C.redMul(D)),O=this.z.redMul(T);return this.curve.jpoint(N,_,O)},u.prototype.dblp=function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var b=this;for(m=0;m<h;m++)b=b.dbl();return b}var v=this.curve.a,C=this.curve.tinv,E=this.x,T=this.y,I=this.z,S=I.redSqr().redSqr(),D=T.redAdd(T);for(m=0;m<h;m++){var L=E.redSqr(),N=D.redSqr(),_=N.redSqr(),O=L.redAdd(L).redIAdd(L).redIAdd(v.redMul(S)),U=E.redMul(N),z=O.redSqr().redISub(U.redAdd(U)),F=U.redISub(z),k=O.redMul(F);k=k.redIAdd(k).redISub(_);var w=D.redMul(I);m+1<h&&(S=S.redMul(_)),E=z,I=w,D=k}return this.curve.jpoint(E,D.redMul(C),I)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var h,m,b;if(this.zOne){var v=this.x.redSqr(),C=this.y.redSqr(),E=C.redSqr(),T=this.x.redAdd(C).redSqr().redISub(v).redISub(E);T=T.redIAdd(T);var I=v.redAdd(v).redIAdd(v),S=I.redSqr().redISub(T).redISub(T),D=E.redIAdd(E);D=D.redIAdd(D),D=D.redIAdd(D),h=S,m=I.redMul(T.redISub(S)).redISub(D),b=this.y.redAdd(this.y)}else{var L=this.x.redSqr(),N=this.y.redSqr(),_=N.redSqr(),O=this.x.redAdd(N).redSqr().redISub(L).redISub(_);O=O.redIAdd(O);var U=L.redAdd(L).redIAdd(L),z=U.redSqr(),F=_.redIAdd(_);F=F.redIAdd(F),F=F.redIAdd(F),h=z.redISub(O).redISub(O),m=U.redMul(O.redISub(h)).redISub(F),b=this.y.redMul(this.z),b=b.redIAdd(b)}return this.curve.jpoint(h,m,b)},u.prototype._threeDbl=function(){var h,m,b;if(this.zOne){var v=this.x.redSqr(),C=this.y.redSqr(),E=C.redSqr(),T=this.x.redAdd(C).redSqr().redISub(v).redISub(E);T=T.redIAdd(T);var I=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),S=I.redSqr().redISub(T).redISub(T);h=S;var D=E.redIAdd(E);D=D.redIAdd(D),D=D.redIAdd(D),m=I.redMul(T.redISub(S)).redISub(D),b=this.y.redAdd(this.y)}else{var L=this.z.redSqr(),N=this.y.redSqr(),_=this.x.redMul(N),O=this.x.redSub(L).redMul(this.x.redAdd(L));O=O.redAdd(O).redIAdd(O);var U=_.redIAdd(_);U=U.redIAdd(U);var z=U.redAdd(U);h=O.redSqr().redISub(z),b=this.y.redAdd(this.z).redSqr().redISub(N).redISub(L);var F=N.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F),m=O.redMul(U.redISub(h)).redISub(F)}return this.curve.jpoint(h,m,b)},u.prototype._dbl=function(){var h=this.curve.a,m=this.x,b=this.y,v=this.z,C=v.redSqr().redSqr(),E=m.redSqr(),T=b.redSqr(),I=E.redAdd(E).redIAdd(E).redIAdd(h.redMul(C)),S=m.redAdd(m);S=S.redIAdd(S);var D=S.redMul(T),L=I.redSqr().redISub(D.redAdd(D)),N=D.redISub(L),_=T.redSqr();_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var O=I.redMul(N).redISub(_),U=b.redAdd(b).redMul(v);return this.curve.jpoint(L,O,U)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),m=this.y.redSqr(),b=this.z.redSqr(),v=m.redSqr(),C=h.redAdd(h).redIAdd(h),E=C.redSqr(),T=this.x.redAdd(m).redSqr().redISub(h).redISub(v);T=T.redIAdd(T),T=T.redAdd(T).redIAdd(T),T=T.redISub(E);var I=T.redSqr(),S=v.redIAdd(v);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var D=C.redIAdd(T).redSqr().redISub(E).redISub(I).redISub(S),L=m.redMul(D);L=L.redIAdd(L),L=L.redIAdd(L);var N=this.x.redMul(I).redISub(L);N=N.redIAdd(N),N=N.redIAdd(N);var _=this.y.redMul(D.redMul(S.redISub(D)).redISub(T.redMul(I)));_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var O=this.z.redAdd(T).redSqr().redISub(b).redISub(I);return this.curve.jpoint(N,_,O)},u.prototype.mul=function(h,m){return h=new t(h,m),this.curve._wnafMul(this,h)},u.prototype.eq=function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var m=this.z.redSqr(),b=h.z.redSqr();if(this.x.redMul(b).redISub(h.x.redMul(m)).cmpn(0)!==0)return!1;var v=m.redMul(this.z),C=b.redMul(h.z);return this.y.redMul(C).redISub(h.y.redMul(v)).cmpn(0)===0},u.prototype.eqXToP=function(h){var m=this.z.redSqr(),b=h.toRed(this.curve.red).redMul(m);if(this.x.cmp(b)===0)return!0;for(var v=h.clone(),C=this.curve.redN.redMul(m);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(b.redIAdd(C),this.x.cmp(b)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},b8}var M8,BD;function Rne(){if(BD)return M8;BD=1;var e=wc(),t=Xt,r=a5(),n=Ts();function a(o){r.call(this,"mont",o),this.a=new e(o.a,16).toRed(this.red),this.b=new e(o.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}t(a,r),M8=a,a.prototype.validate=function(u){var d=u.normalize().x,h=d.redSqr(),m=h.redMul(d).redAdd(h.redMul(this.a)).redAdd(d),b=m.redSqrt();return b.redSqr().cmp(m)===0};function i(o,u,d){r.BasePoint.call(this,o,"projective"),u===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(u,16),this.z=new e(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(i,r.BasePoint),a.prototype.decodePoint=function(u,d){return this.point(n.toArray(u,d),1)},a.prototype.point=function(u,d){return new i(this,u,d)},a.prototype.pointFromJSON=function(u){return i.fromJSON(this,u)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(u,d){return new i(u,d[0],d[1]||u.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var u=this.x.redAdd(this.z),d=u.redSqr(),h=this.x.redSub(this.z),m=h.redSqr(),b=d.redSub(m),v=d.redMul(m),C=b.redMul(m.redAdd(this.curve.a24.redMul(b)));return this.curve.point(v,C)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(u,d){var h=this.x.redAdd(this.z),m=this.x.redSub(this.z),b=u.x.redAdd(u.z),v=u.x.redSub(u.z),C=v.redMul(h),E=b.redMul(m),T=d.z.redMul(C.redAdd(E).redSqr()),I=d.x.redMul(C.redISub(E).redSqr());return this.curve.point(T,I)},i.prototype.mul=function(u){for(var d=u.clone(),h=this,m=this.curve.point(null,null),b=this,v=[];d.cmpn(0)!==0;d.iushrn(1))v.push(d.andln(1));for(var C=v.length-1;C>=0;C--)v[C]===0?(h=h.diffAdd(m,b),m=m.dbl()):(m=h.diffAdd(m,b),h=h.dbl());return m},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},M8}var x8,kD;function Une(){if(kD)return x8;kD=1;var e=Ts(),t=wc(),r=Xt,n=a5(),a=e.assert;function i(u){this.twisted=(u.a|0)!==1,this.mOneA=this.twisted&&(u.a|0)===-1,this.extended=this.mOneA,n.call(this,"edwards",u),this.a=new t(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(u.c|0)===1}r(i,n),x8=i,i.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},i.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},i.prototype.jpoint=function(d,h,m,b){return this.point(d,h,m,b)},i.prototype.pointFromX=function(d,h){d=new t(d,16),d.red||(d=d.toRed(this.red));var m=d.redSqr(),b=this.c2.redSub(this.a.redMul(m)),v=this.one.redSub(this.c2.redMul(this.d).redMul(m)),C=b.redMul(v.redInvm()),E=C.redSqrt();if(E.redSqr().redSub(C).cmp(this.zero)!==0)throw new Error("invalid point");var T=E.fromRed().isOdd();return(h&&!T||!h&&T)&&(E=E.redNeg()),this.point(d,E)},i.prototype.pointFromY=function(d,h){d=new t(d,16),d.red||(d=d.toRed(this.red));var m=d.redSqr(),b=m.redSub(this.c2),v=m.redMul(this.d).redMul(this.c2).redSub(this.a),C=b.redMul(v.redInvm());if(C.cmp(this.zero)===0){if(h)throw new Error("invalid point");return this.point(this.zero,d)}var E=C.redSqrt();if(E.redSqr().redSub(C).cmp(this.zero)!==0)throw new Error("invalid point");return E.fromRed().isOdd()!==h&&(E=E.redNeg()),this.point(E,d)},i.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var h=d.x.redSqr(),m=d.y.redSqr(),b=h.redMul(this.a).redAdd(m),v=this.c2.redMul(this.one.redAdd(this.d.redMul(h).redMul(m)));return b.cmp(v)===0};function o(u,d,h,m,b){n.BasePoint.call(this,u,"projective"),d===null&&h===null&&m===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(d,16),this.y=new t(h,16),this.z=m?new t(m,16):this.curve.one,this.t=b&&new t(b,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return r(o,n.BasePoint),i.prototype.pointFromJSON=function(d){return o.fromJSON(this,d)},i.prototype.point=function(d,h,m,b){return new o(this,d,h,m,b)},o.fromJSON=function(d,h){return new o(d,h[0],h[1],h[2])},o.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},o.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},o.prototype._extDbl=function(){var d=this.x.redSqr(),h=this.y.redSqr(),m=this.z.redSqr();m=m.redIAdd(m);var b=this.curve._mulA(d),v=this.x.redAdd(this.y).redSqr().redISub(d).redISub(h),C=b.redAdd(h),E=C.redSub(m),T=b.redSub(h),I=v.redMul(E),S=C.redMul(T),D=v.redMul(T),L=E.redMul(C);return this.curve.point(I,S,L,D)},o.prototype._projDbl=function(){var d=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),m=this.y.redSqr(),b,v,C,E,T,I;if(this.curve.twisted){E=this.curve._mulA(h);var S=E.redAdd(m);this.zOne?(b=d.redSub(h).redSub(m).redMul(S.redSub(this.curve.two)),v=S.redMul(E.redSub(m)),C=S.redSqr().redSub(S).redSub(S)):(T=this.z.redSqr(),I=S.redSub(T).redISub(T),b=d.redSub(h).redISub(m).redMul(I),v=S.redMul(E.redSub(m)),C=S.redMul(I))}else E=h.redAdd(m),T=this.curve._mulC(this.z).redSqr(),I=E.redSub(T).redSub(T),b=this.curve._mulC(d.redISub(E)).redMul(I),v=this.curve._mulC(E).redMul(h.redISub(m)),C=E.redMul(I);return this.curve.point(b,v,C)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},o.prototype._extAdd=function(d){var h=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),m=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),b=this.t.redMul(this.curve.dd).redMul(d.t),v=this.z.redMul(d.z.redAdd(d.z)),C=m.redSub(h),E=v.redSub(b),T=v.redAdd(b),I=m.redAdd(h),S=C.redMul(E),D=T.redMul(I),L=C.redMul(I),N=E.redMul(T);return this.curve.point(S,D,N,L)},o.prototype._projAdd=function(d){var h=this.z.redMul(d.z),m=h.redSqr(),b=this.x.redMul(d.x),v=this.y.redMul(d.y),C=this.curve.d.redMul(b).redMul(v),E=m.redSub(C),T=m.redAdd(C),I=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(b).redISub(v),S=h.redMul(E).redMul(I),D,L;return this.curve.twisted?(D=h.redMul(T).redMul(v.redSub(this.curve._mulA(b))),L=E.redMul(T)):(D=h.redMul(T).redMul(v.redSub(b)),L=this.curve._mulC(E).redMul(T)),this.curve.point(S,D,L)},o.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},o.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},o.prototype.mulAdd=function(d,h,m){return this.curve._wnafMulAdd(1,[this,h],[d,m],2,!1)},o.prototype.jmulAdd=function(d,h,m){return this.curve._wnafMulAdd(1,[this,h],[d,m],2,!0)},o.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},o.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()},o.prototype.getY=function(){return this.normalize(),this.y.fromRed()},o.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},o.prototype.eqXToP=function(d){var h=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(h)===0)return!0;for(var m=d.clone(),b=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(b),this.x.cmp(h)===0)return!0}},o.prototype.toP=o.prototype.normalize,o.prototype.mixedAdd=o.prototype.add,x8}var zD;function ZF(){return zD||(zD=1,function(e){var t=e;t.base=a5(),t.short=One(),t.mont=Rne(),t.edwards=Une()}(g8)),g8}var v8={},w8={},qr={},_D;function No(){if(_D)return qr;_D=1;var e=Ds(),t=Xt;qr.inherits=t;function r(s,l){return(s.charCodeAt(l)&64512)!==55296||l<0||l+1>=s.length?!1:(s.charCodeAt(l+1)&64512)===56320}function n(s,l){if(Array.isArray(s))return s.slice();if(!s)return[];var f=[];if(typeof s=="string")if(l){if(l==="hex")for(s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s),g=0;g<s.length;g+=2)f.push(parseInt(s[g]+s[g+1],16))}else for(var p=0,g=0;g<s.length;g++){var x=s.charCodeAt(g);x<128?f[p++]=x:x<2048?(f[p++]=x>>6|192,f[p++]=x&63|128):r(s,g)?(x=65536+((x&1023)<<10)+(s.charCodeAt(++g)&1023),f[p++]=x>>18|240,f[p++]=x>>12&63|128,f[p++]=x>>6&63|128,f[p++]=x&63|128):(f[p++]=x>>12|224,f[p++]=x>>6&63|128,f[p++]=x&63|128)}else for(g=0;g<s.length;g++)f[g]=s[g]|0;return f}qr.toArray=n;function a(s){for(var l="",f=0;f<s.length;f++)l+=u(s[f].toString(16));return l}qr.toHex=a;function i(s){var l=s>>>24|s>>>8&65280|s<<8&16711680|(s&255)<<24;return l>>>0}qr.htonl=i;function o(s,l){for(var f="",p=0;p<s.length;p++){var g=s[p];l==="little"&&(g=i(g)),f+=d(g.toString(16))}return f}qr.toHex32=o;function u(s){return s.length===1?"0"+s:s}qr.zero2=u;function d(s){return s.length===7?"0"+s:s.length===6?"00"+s:s.length===5?"000"+s:s.length===4?"0000"+s:s.length===3?"00000"+s:s.length===2?"000000"+s:s.length===1?"0000000"+s:s}qr.zero8=d;function h(s,l,f,p){var g=f-l;e(g%4===0);for(var x=new Array(g/4),A=0,y=l;A<x.length;A++,y+=4){var c;p==="big"?c=s[y]<<24|s[y+1]<<16|s[y+2]<<8|s[y+3]:c=s[y+3]<<24|s[y+2]<<16|s[y+1]<<8|s[y],x[A]=c>>>0}return x}qr.join32=h;function m(s,l){for(var f=new Array(s.length*4),p=0,g=0;p<s.length;p++,g+=4){var x=s[p];l==="big"?(f[g]=x>>>24,f[g+1]=x>>>16&255,f[g+2]=x>>>8&255,f[g+3]=x&255):(f[g+3]=x>>>24,f[g+2]=x>>>16&255,f[g+1]=x>>>8&255,f[g]=x&255)}return f}qr.split32=m;function b(s,l){return s>>>l|s<<32-l}qr.rotr32=b;function v(s,l){return s<<l|s>>>32-l}qr.rotl32=v;function C(s,l){return s+l>>>0}qr.sum32=C;function E(s,l,f){return s+l+f>>>0}qr.sum32_3=E;function T(s,l,f,p){return s+l+f+p>>>0}qr.sum32_4=T;function I(s,l,f,p,g){return s+l+f+p+g>>>0}qr.sum32_5=I;function S(s,l,f,p){var g=s[l],x=s[l+1],A=p+x>>>0,y=(A<p?1:0)+f+g;s[l]=y>>>0,s[l+1]=A}qr.sum64=S;function D(s,l,f,p){var g=l+p>>>0,x=(g<l?1:0)+s+f;return x>>>0}qr.sum64_hi=D;function L(s,l,f,p){var g=l+p;return g>>>0}qr.sum64_lo=L;function N(s,l,f,p,g,x,A,y){var c=0,M=l;M=M+p>>>0,c+=M<l?1:0,M=M+x>>>0,c+=M<x?1:0,M=M+y>>>0,c+=M<y?1:0;var B=s+f+g+A+c;return B>>>0}qr.sum64_4_hi=N;function _(s,l,f,p,g,x,A,y){var c=l+p+x+y;return c>>>0}qr.sum64_4_lo=_;function O(s,l,f,p,g,x,A,y,c,M){var B=0,R=l;R=R+p>>>0,B+=R<l?1:0,R=R+x>>>0,B+=R<x?1:0,R=R+y>>>0,B+=R<y?1:0,R=R+M>>>0,B+=R<M?1:0;var Q=s+f+g+A+c+B;return Q>>>0}qr.sum64_5_hi=O;function U(s,l,f,p,g,x,A,y,c,M){var B=l+p+x+y+M;return B>>>0}qr.sum64_5_lo=U;function z(s,l,f){var p=l<<32-f|s>>>f;return p>>>0}qr.rotr64_hi=z;function F(s,l,f){var p=s<<32-f|l>>>f;return p>>>0}qr.rotr64_lo=F;function k(s,l,f){return s>>>f}qr.shr64_hi=k;function w(s,l,f){var p=s<<32-f|l>>>f;return p>>>0}return qr.shr64_lo=w,qr}var C8={},FD;function $h(){if(FD)return C8;FD=1;var e=No(),t=Ds();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return C8.BlockHash=r,r.prototype.update=function(a,i){if(a=e.toArray(a,i),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var o=a.length%this._delta8;this.pending=a.slice(a.length-o,a.length),this.pending.length===0&&(this.pending=null),a=e.join32(a,0,a.length-o,this.endian);for(var u=0;u<a.length;u+=this._delta32)this._update(a,u,u+this._delta32)}return this},r.prototype.digest=function(a){return this.update(this._pad()),t(this.pending===null),this._digest(a)},r.prototype._pad=function(){var a=this.pendingTotal,i=this._delta8,o=i-(a+this.padLength)%i,u=new Array(o+this.padLength);u[0]=128;for(var d=1;d<o;d++)u[d]=0;if(a<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)u[d++]=0;u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=a>>>24&255,u[d++]=a>>>16&255,u[d++]=a>>>8&255,u[d++]=a&255}else for(u[d++]=a&255,u[d++]=a>>>8&255,u[d++]=a>>>16&255,u[d++]=a>>>24&255,u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=0,h=8;h<this.padLength;h++)u[d++]=0;return u},C8}var Ll={},Vs={},OD;function GF(){if(OD)return Vs;OD=1;var e=No(),t=e.rotr32;function r(m,b,v,C){if(m===0)return n(b,v,C);if(m===1||m===3)return i(b,v,C);if(m===2)return a(b,v,C)}Vs.ft_1=r;function n(m,b,v){return m&b^~m&v}Vs.ch32=n;function a(m,b,v){return m&b^m&v^b&v}Vs.maj32=a;function i(m,b,v){return m^b^v}Vs.p32=i;function o(m){return t(m,2)^t(m,13)^t(m,22)}Vs.s0_256=o;function u(m){return t(m,6)^t(m,11)^t(m,25)}Vs.s1_256=u;function d(m){return t(m,7)^t(m,18)^m>>>3}Vs.g0_256=d;function h(m){return t(m,17)^t(m,19)^m>>>10}return Vs.g1_256=h,Vs}var A8,RD;function Pne(){if(RD)return A8;RD=1;var e=No(),t=$h(),r=GF(),n=e.rotl32,a=e.sum32,i=e.sum32_5,o=r.ft_1,u=t.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(h,u),A8=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(b,v){for(var C=this.W,E=0;E<16;E++)C[E]=b[v+E];for(;E<C.length;E++)C[E]=n(C[E-3]^C[E-8]^C[E-14]^C[E-16],1);var T=this.h[0],I=this.h[1],S=this.h[2],D=this.h[3],L=this.h[4];for(E=0;E<C.length;E++){var N=~~(E/20),_=i(n(T,5),o(N,I,S,D),L,C[E],d[N]);L=D,D=S,S=n(I,30),I=T,T=_}this.h[0]=a(this.h[0],T),this.h[1]=a(this.h[1],I),this.h[2]=a(this.h[2],S),this.h[3]=a(this.h[3],D),this.h[4]=a(this.h[4],L)},h.prototype._digest=function(b){return b==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},A8}var E8,UD;function QF(){if(UD)return E8;UD=1;var e=No(),t=$h(),r=GF(),n=Ds(),a=e.sum32,i=e.sum32_4,o=e.sum32_5,u=r.ch32,d=r.maj32,h=r.s0_256,m=r.s1_256,b=r.g0_256,v=r.g1_256,C=t.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function T(){if(!(this instanceof T))return new T;C.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}return e.inherits(T,C),E8=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(S,D){for(var L=this.W,N=0;N<16;N++)L[N]=S[D+N];for(;N<L.length;N++)L[N]=i(v(L[N-2]),L[N-7],b(L[N-15]),L[N-16]);var _=this.h[0],O=this.h[1],U=this.h[2],z=this.h[3],F=this.h[4],k=this.h[5],w=this.h[6],s=this.h[7];for(n(this.k.length===L.length),N=0;N<L.length;N++){var l=o(s,m(F),u(F,k,w),this.k[N],L[N]),f=a(h(_),d(_,O,U));s=w,w=k,k=F,F=a(z,l),z=U,U=O,O=_,_=a(l,f)}this.h[0]=a(this.h[0],_),this.h[1]=a(this.h[1],O),this.h[2]=a(this.h[2],U),this.h[3]=a(this.h[3],z),this.h[4]=a(this.h[4],F),this.h[5]=a(this.h[5],k),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],s)},T.prototype._digest=function(S){return S==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},E8}var S8,PD;function Wne(){if(PD)return S8;PD=1;var e=No(),t=QF();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(r,t),S8=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(a){return a==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},S8}var D8,WD;function qF(){if(WD)return D8;WD=1;var e=No(),t=$h(),r=Ds(),n=e.rotr64_hi,a=e.rotr64_lo,i=e.shr64_hi,o=e.shr64_lo,u=e.sum64,d=e.sum64_hi,h=e.sum64_lo,m=e.sum64_4_hi,b=e.sum64_4_lo,v=e.sum64_5_hi,C=e.sum64_5_lo,E=t.BlockHash,T=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I(){if(!(this instanceof I))return new I;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}e.inherits(I,E),D8=I,I.blockSize=1024,I.outSize=512,I.hmacStrength=192,I.padLength=128,I.prototype._prepareBlock=function(f,p){for(var g=this.W,x=0;x<32;x++)g[x]=f[p+x];for(;x<g.length;x+=2){var A=w(g[x-4],g[x-3]),y=s(g[x-4],g[x-3]),c=g[x-14],M=g[x-13],B=F(g[x-30],g[x-29]),R=k(g[x-30],g[x-29]),Q=g[x-32],K=g[x-31];g[x]=m(A,y,c,M,B,R,Q,K),g[x+1]=b(A,y,c,M,B,R,Q,K)}},I.prototype._update=function(f,p){this._prepareBlock(f,p);var g=this.W,x=this.h[0],A=this.h[1],y=this.h[2],c=this.h[3],M=this.h[4],B=this.h[5],R=this.h[6],Q=this.h[7],K=this.h[8],q=this.h[9],W=this.h[10],G=this.h[11],X=this.h[12],ne=this.h[13],te=this.h[14],V=this.h[15];r(this.k.length===g.length);for(var oe=0;oe<g.length;oe+=2){var xe=te,fe=V,me=U(K,q),Ze=z(K,q),he=S(K,q,W,G,X),Se=D(K,q,W,G,X,ne),Ke=this.k[oe],ye=this.k[oe+1],ce=g[oe],Fe=g[oe+1],pe=v(xe,fe,me,Ze,he,Se,Ke,ye,ce,Fe),we=C(xe,fe,me,Ze,he,Se,Ke,ye,ce,Fe);xe=_(x,A),fe=O(x,A),me=L(x,A,y,c,M),Ze=N(x,A,y,c,M,B);var gt=d(xe,fe,me,Ze),$=h(xe,fe,me,Ze);te=X,V=ne,X=W,ne=G,W=K,G=q,K=d(R,Q,pe,we),q=h(Q,Q,pe,we),R=M,Q=B,M=y,B=c,y=x,c=A,x=d(pe,we,gt,$),A=h(pe,we,gt,$)}u(this.h,0,x,A),u(this.h,2,y,c),u(this.h,4,M,B),u(this.h,6,R,Q),u(this.h,8,K,q),u(this.h,10,W,G),u(this.h,12,X,ne),u(this.h,14,te,V)},I.prototype._digest=function(f){return f==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function S(l,f,p,g,x){var A=l&p^~l&x;return A<0&&(A+=4294967296),A}function D(l,f,p,g,x,A){var y=f&g^~f&A;return y<0&&(y+=4294967296),y}function L(l,f,p,g,x){var A=l&p^l&x^p&x;return A<0&&(A+=4294967296),A}function N(l,f,p,g,x,A){var y=f&g^f&A^g&A;return y<0&&(y+=4294967296),y}function _(l,f){var p=n(l,f,28),g=n(f,l,2),x=n(f,l,7),A=p^g^x;return A<0&&(A+=4294967296),A}function O(l,f){var p=a(l,f,28),g=a(f,l,2),x=a(f,l,7),A=p^g^x;return A<0&&(A+=4294967296),A}function U(l,f){var p=n(l,f,14),g=n(l,f,18),x=n(f,l,9),A=p^g^x;return A<0&&(A+=4294967296),A}function z(l,f){var p=a(l,f,14),g=a(l,f,18),x=a(f,l,9),A=p^g^x;return A<0&&(A+=4294967296),A}function F(l,f){var p=n(l,f,1),g=n(l,f,8),x=i(l,f,7),A=p^g^x;return A<0&&(A+=4294967296),A}function k(l,f){var p=a(l,f,1),g=a(l,f,8),x=o(l,f,7),A=p^g^x;return A<0&&(A+=4294967296),A}function w(l,f){var p=n(l,f,19),g=n(f,l,29),x=i(l,f,6),A=p^g^x;return A<0&&(A+=4294967296),A}function s(l,f){var p=a(l,f,19),g=a(f,l,29),x=o(l,f,6),A=p^g^x;return A<0&&(A+=4294967296),A}return D8}var T8,HD;function Hne(){if(HD)return T8;HD=1;var e=No(),t=qF();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(r,t),T8=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(a){return a==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},T8}var YD;function Yne(){return YD||(YD=1,Ll.sha1=Pne(),Ll.sha224=Wne(),Ll.sha256=QF(),Ll.sha384=Hne(),Ll.sha512=qF()),Ll}var I8={},ZD;function Zne(){if(ZD)return I8;ZD=1;var e=No(),t=$h(),r=e.rotl32,n=e.sum32,a=e.sum32_3,i=e.sum32_4,o=t.BlockHash;function u(){if(!(this instanceof u))return new u;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(u,o),I8.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(I,S){for(var D=this.h[0],L=this.h[1],N=this.h[2],_=this.h[3],O=this.h[4],U=D,z=L,F=N,k=_,w=O,s=0;s<80;s++){var l=n(r(i(D,d(s,L,N,_),I[b[s]+S],h(s)),C[s]),O);D=O,O=_,_=r(N,10),N=L,L=l,l=n(r(i(U,d(79-s,z,F,k),I[v[s]+S],m(s)),E[s]),w),U=w,w=k,k=r(F,10),F=z,z=l}l=a(this.h[1],N,k),this.h[1]=a(this.h[2],_,w),this.h[2]=a(this.h[3],O,U),this.h[3]=a(this.h[4],D,z),this.h[4]=a(this.h[0],L,F),this.h[0]=l},u.prototype._digest=function(I){return I==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function d(T,I,S,D){return T<=15?I^S^D:T<=31?I&S|~I&D:T<=47?(I|~S)^D:T<=63?I&D|S&~D:I^(S|~D)}function h(T){return T<=15?0:T<=31?1518500249:T<=47?1859775393:T<=63?2400959708:2840853838}function m(T){return T<=15?1352829926:T<=31?1548603684:T<=47?1836072691:T<=63?2053994217:0}var b=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],C=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return I8}var N8,GD;function Gne(){if(GD)return N8;GD=1;var e=No(),t=Ds();function r(n,a,i){if(!(this instanceof r))return new r(n,a,i);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(a,i))}return N8=r,r.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),t(a.length<=this.blockSize);for(var i=a.length;i<this.blockSize;i++)a.push(0);for(i=0;i<a.length;i++)a[i]^=54;for(this.inner=new this.Hash().update(a),i=0;i<a.length;i++)a[i]^=106;this.outer=new this.Hash().update(a)},r.prototype.update=function(a,i){return this.inner.update(a,i),this},r.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)},N8}var QD;function Wx(){return QD||(QD=1,function(e){var t=e;t.utils=No(),t.common=$h(),t.sha=Yne(),t.ripemd=Zne(),t.hmac=Gne(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(w8)),w8}var L8,qD;function Qne(){return qD||(qD=1,L8={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),L8}var VD;function Hx(){return VD||(VD=1,function(e){var t=e,r=Wx(),n=ZF(),a=Ts(),i=a.assert;function o(h){h.type==="short"?this.curve=new n.short(h):h.type==="edwards"?this.curve=new n.edwards(h):this.curve=new n.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=o;function u(h,m){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var b=new o(m);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:b}),b}})}u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=Qne()}catch{d=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})}(v8)),v8}var j8,$D;function qne(){if($D)return j8;$D=1;var e=Wx(),t=YF(),r=Ds();function n(a){if(!(this instanceof n))return new n(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=t.toArray(a.entropy,a.entropyEnc||"hex"),o=t.toArray(a.nonce,a.nonceEnc||"hex"),u=t.toArray(a.pers,a.persEnc||"hex");r(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,o,u)}return j8=n,n.prototype._init=function(i,o,u){var d=i.concat(o).concat(u);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},n.prototype._update=function(i){var o=this._hmac().update(this.V).update([0]);i&&(o=o.update(i)),this.K=o.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(i,o,u,d){typeof o!="string"&&(d=u,u=o,o=null),i=t.toArray(i,o),u=t.toArray(u,d),r(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(u||[])),this._reseed=1},n.prototype.generate=function(i,o,u,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof o!="string"&&(d=u,u=o,o=null),u&&(u=t.toArray(u,d||"hex"),this._update(u));for(var h=[];h.length<i;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var m=h.slice(0,i);return this._update(u),this._reseed++,t.encode(m,o)},j8}var B8,KD;function Vne(){if(KD)return B8;KD=1;var e=wc(),t=Ts(),r=t.assert;function n(a,i){this.ec=a,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return B8=n,n.fromPublic=function(i,o,u){return o instanceof n?o:new n(i,{pub:o,pubEnc:u})},n.fromPrivate=function(i,o,u){return o instanceof n?o:new n(i,{priv:o,privEnc:u})},n.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(i,o){return typeof i=="string"&&(o=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),o?this.pub.encode(o,i):this.pub},n.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(i,o){this.priv=new e(i,o||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(i,o){if(i.x||i.y){this.ec.curve.type==="mont"?r(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,o)},n.prototype.derive=function(i){return i.validate()||r(i.validate(),"public point not validated"),i.mul(this.priv).getX()},n.prototype.sign=function(i,o,u){return this.ec.sign(i,this,o,u)},n.prototype.verify=function(i,o,u){return this.ec.verify(i,o,this,void 0,u)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},B8}var k8,XD;function $ne(){if(XD)return k8;XD=1;var e=wc(),t=Ts(),r=t.assert;function n(d,h){if(d instanceof n)return d;this._importDER(d,h)||(r(d.r&&d.s,"Signature without r or s"),this.r=new e(d.r,16),this.s=new e(d.s,16),d.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=d.recoveryParam)}k8=n;function a(){this.place=0}function i(d,h){var m=d[h.place++];if(!(m&128))return m;var b=m&15;if(b===0||b>4||d[h.place]===0)return!1;for(var v=0,C=0,E=h.place;C<b;C++,E++)v<<=8,v|=d[E],v>>>=0;return v<=127?!1:(h.place=E,v)}function o(d){for(var h=0,m=d.length-1;!d[h]&&!(d[h+1]&128)&&h<m;)h++;return h===0?d:d.slice(h)}n.prototype._importDER=function(h,m){h=t.toArray(h,m);var b=new a;if(h[b.place++]!==48)return!1;var v=i(h,b);if(v===!1||v+b.place!==h.length||h[b.place++]!==2)return!1;var C=i(h,b);if(C===!1||h[b.place]&128)return!1;var E=h.slice(b.place,C+b.place);if(b.place+=C,h[b.place++]!==2)return!1;var T=i(h,b);if(T===!1||h.length!==T+b.place||h[b.place]&128)return!1;var I=h.slice(b.place,T+b.place);if(E[0]===0)if(E[1]&128)E=E.slice(1);else return!1;if(I[0]===0)if(I[1]&128)I=I.slice(1);else return!1;return this.r=new e(E),this.s=new e(I),this.recoveryParam=null,!0};function u(d,h){if(h<128){d.push(h);return}var m=1+(Math.log(h)/Math.LN2>>>3);for(d.push(m|128);--m;)d.push(h>>>(m<<3)&255);d.push(h)}return n.prototype.toDER=function(h){var m=this.r.toArray(),b=this.s.toArray();for(m[0]&128&&(m=[0].concat(m)),b[0]&128&&(b=[0].concat(b)),m=o(m),b=o(b);!b[0]&&!(b[1]&128);)b=b.slice(1);var v=[2];u(v,m.length),v=v.concat(m),v.push(2),u(v,b.length);var C=v.concat(b),E=[48];return u(E,C.length),E=E.concat(C),t.encode(E,h)},k8}var z8,JD;function Kne(){if(JD)return z8;JD=1;var e=wc(),t=qne(),r=Ts(),n=Hx(),a=Ox(),i=r.assert,o=Vne(),u=$ne();function d(h){if(!(this instanceof d))return new d(h);typeof h=="string"&&(i(Object.prototype.hasOwnProperty.call(n,h),"Unknown curve "+h),h=n[h]),h instanceof n.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}return z8=d,d.prototype.keyPair=function(m){return new o(this,m)},d.prototype.keyFromPrivate=function(m,b){return o.fromPrivate(this,m,b)},d.prototype.keyFromPublic=function(m,b){return o.fromPublic(this,m,b)},d.prototype.genKeyPair=function(m){m||(m={});for(var b=new t({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||a(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),C=this.n.sub(new e(2));;){var E=new e(b.generate(v));if(!(E.cmp(C)>0))return E.iaddn(1),this.keyFromPrivate(E)}},d.prototype._truncateToN=function(m,b,v){var C;if(e.isBN(m)||typeof m=="number")m=new e(m,16),C=m.byteLength();else if(typeof m=="object")C=m.length,m=new e(m,16);else{var E=m.toString();C=E.length+1>>>1,m=new e(E,16)}typeof v!="number"&&(v=C*8);var T=v-this.n.bitLength();return T>0&&(m=m.ushrn(T)),!b&&m.cmp(this.n)>=0?m.sub(this.n):m},d.prototype.sign=function(m,b,v,C){if(typeof v=="object"&&(C=v,v=null),C||(C={}),typeof m!="string"&&typeof m!="number"&&!e.isBN(m)){i(typeof m=="object"&&m&&typeof m.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(m.length>>>0===m.length);for(var E=0;E<m.length;E++)i((m[E]&255)===m[E])}b=this.keyFromPrivate(b,v),m=this._truncateToN(m,!1,C.msgBitLength),i(!m.isNeg(),"Can not sign a negative message");var T=this.n.byteLength(),I=b.getPrivate().toArray("be",T),S=m.toArray("be",T);i(new e(S).eq(m),"Can not sign message");for(var D=new t({hash:this.hash,entropy:I,nonce:S,pers:C.pers,persEnc:C.persEnc||"utf8"}),L=this.n.sub(new e(1)),N=0;;N++){var _=C.k?C.k(N):new e(D.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(L)>=0)){var O=this.g.mul(_);if(!O.isInfinity()){var U=O.getX(),z=U.umod(this.n);if(z.cmpn(0)!==0){var F=_.invm(this.n).mul(z.mul(b.getPrivate()).iadd(m));if(F=F.umod(this.n),F.cmpn(0)!==0){var k=(O.getY().isOdd()?1:0)|(U.cmp(z)!==0?2:0);return C.canonical&&F.cmp(this.nh)>0&&(F=this.n.sub(F),k^=1),new u({r:z,s:F,recoveryParam:k})}}}}}},d.prototype.verify=function(m,b,v,C,E){E||(E={}),m=this._truncateToN(m,!1,E.msgBitLength),v=this.keyFromPublic(v,C),b=new u(b,"hex");var T=b.r,I=b.s;if(T.cmpn(1)<0||T.cmp(this.n)>=0||I.cmpn(1)<0||I.cmp(this.n)>=0)return!1;var S=I.invm(this.n),D=S.mul(m).umod(this.n),L=S.mul(T).umod(this.n),N;return this.curve._maxwellTrick?(N=this.g.jmulAdd(D,v.getPublic(),L),N.isInfinity()?!1:N.eqXToP(T)):(N=this.g.mulAdd(D,v.getPublic(),L),N.isInfinity()?!1:N.getX().umod(this.n).cmp(T)===0)},d.prototype.recoverPubKey=function(h,m,b,v){i((3&b)===b,"The recovery param is more than two bits"),m=new u(m,v);var C=this.n,E=new e(h),T=m.r,I=m.s,S=b&1,D=b>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&D)throw new Error("Unable to find sencond key candinate");D?T=this.curve.pointFromX(T.add(this.curve.n),S):T=this.curve.pointFromX(T,S);var L=m.r.invm(C),N=C.sub(E).mul(L).umod(C),_=I.mul(L).umod(C);return this.g.mulAdd(N,T,_)},d.prototype.getKeyRecoveryParam=function(h,m,b,v){if(m=new u(m,v),m.recoveryParam!==null)return m.recoveryParam;for(var C=0;C<4;C++){var E;try{E=this.recoverPubKey(h,m,C)}catch{continue}if(E.eq(b))return C}throw new Error("Unable to find valid recovery factor")},z8}var _8,eT;function Xne(){if(eT)return _8;eT=1;var e=Ts(),t=e.assert,r=e.parseBytes,n=e.cachedProperty;function a(i,o){this.eddsa=i,this._secret=r(o.secret),i.isPoint(o.pub)?this._pub=o.pub:this._pubBytes=r(o.pub)}return a.fromPublic=function(o,u){return u instanceof a?u:new a(o,{pub:u})},a.fromSecret=function(o,u){return u instanceof a?u:new a(o,{secret:u})},a.prototype.secret=function(){return this._secret},n(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),n(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),n(a,"privBytes",function(){var o=this.eddsa,u=this.hash(),d=o.encodingLength-1,h=u.slice(0,o.encodingLength);return h[0]&=248,h[d]&=127,h[d]|=64,h}),n(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),n(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),n(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(o){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(o,this)},a.prototype.verify=function(o,u){return this.eddsa.verify(o,u,this)},a.prototype.getSecret=function(o){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),o)},a.prototype.getPublic=function(o){return e.encode(this.pubBytes(),o)},_8=a,_8}var F8,tT;function Jne(){if(tT)return F8;tT=1;var e=wc(),t=Ts(),r=t.assert,n=t.cachedProperty,a=t.parseBytes;function i(o,u){this.eddsa=o,typeof u!="object"&&(u=a(u)),Array.isArray(u)&&(r(u.length===o.encodingLength*2,"Signature has invalid size"),u={R:u.slice(0,o.encodingLength),S:u.slice(o.encodingLength)}),r(u.R&&u.S,"Signature without R or S"),o.isPoint(u.R)&&(this._R=u.R),u.S instanceof e&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}return n(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),n(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),n(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),n(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},F8=i,F8}var O8,rT;function eie(){if(rT)return O8;rT=1;var e=Wx(),t=Hx(),r=Ts(),n=r.assert,a=r.parseBytes,i=Xne(),o=Jne();function u(d){if(n(d==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(d);d=t[d].curve,this.curve=d,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=e.sha512}return O8=u,u.prototype.sign=function(h,m){h=a(h);var b=this.keyFromSecret(m),v=this.hashInt(b.messagePrefix(),h),C=this.g.mul(v),E=this.encodePoint(C),T=this.hashInt(E,b.pubBytes(),h).mul(b.priv()),I=v.add(T).umod(this.curve.n);return this.makeSignature({R:C,S:I,Rencoded:E})},u.prototype.verify=function(h,m,b){if(h=a(h),m=this.makeSignature(m),m.S().gte(m.eddsa.curve.n)||m.S().isNeg())return!1;var v=this.keyFromPublic(b),C=this.hashInt(m.Rencoded(),v.pubBytes(),h),E=this.g.mul(m.S()),T=m.R().add(v.pub().mul(C));return T.eq(E)},u.prototype.hashInt=function(){for(var h=this.hash(),m=0;m<arguments.length;m++)h.update(arguments[m]);return r.intFromLE(h.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(h){return i.fromPublic(this,h)},u.prototype.keyFromSecret=function(h){return i.fromSecret(this,h)},u.prototype.makeSignature=function(h){return h instanceof o?h:new o(this,h)},u.prototype.encodePoint=function(h){var m=h.getY().toArray("le",this.encodingLength);return m[this.encodingLength-1]|=h.getX().isOdd()?128:0,m},u.prototype.decodePoint=function(h){h=r.parseBytes(h);var m=h.length-1,b=h.slice(0,m).concat(h[m]&-129),v=(h[m]&128)!==0,C=r.intFromLE(b);return this.curve.pointFromY(C,v)},u.prototype.encodeInt=function(h){return h.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(h){return r.intFromLE(h)},u.prototype.isPoint=function(h){return h instanceof this.pointClass},O8}var nT;function Yx(){return nT||(nT=1,function(e){var t=e;t.version=Fne.version,t.utils=Ts(),t.rand=Ox(),t.curve=ZF(),t.curves=Hx(),t.ec=Kne(),t.eddsa=eie()}(h8)),h8}var Va={},R8={},t3={exports:{}};t3.exports;var iT;function tie(){return iT||(iT=1,function(e){(function(t,r){function n(w,s){if(!w)throw new Error(s||"Assertion failed")}function a(w,s){w.super_=s;var l=function(){};l.prototype=s.prototype,w.prototype=new l,w.prototype.constructor=w}function i(w,s,l){if(i.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,w!==null&&((s==="le"||s==="be")&&(l=s,s=10),this._init(w||0,s||10,l||"be"))}typeof t=="object"?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=vt.Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,l){return s.cmp(l)>0?s:l},i.min=function(s,l){return s.cmp(l)<0?s:l},i.prototype._init=function(s,l,f){if(typeof s=="number")return this._initNumber(s,l,f);if(typeof s=="object")return this._initArray(s,l,f);l==="hex"&&(l=16),n(l===(l|0)&&l>=2&&l<=36),s=s.toString().replace(/\s+/g,"");var p=0;s[0]==="-"&&(p++,this.negative=1),p<s.length&&(l===16?this._parseHex(s,p,f):(this._parseBase(s,l,p),f==="le"&&this._initArray(this.toArray(),l,f)))},i.prototype._initNumber=function(s,l,f){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(n(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),f==="le"&&this._initArray(this.toArray(),l,f)},i.prototype._initArray=function(s,l,f){if(n(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g,x,A=0;if(f==="be")for(p=s.length-1,g=0;p>=0;p-=3)x=s[p]|s[p-1]<<8|s[p-2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);else if(f==="le")for(p=0,g=0;p<s.length;p+=3)x=s[p]|s[p+1]<<8|s[p+2]<<16,this.words[g]|=x<<A&67108863,this.words[g+1]=x>>>26-A&67108863,A+=24,A>=26&&(A-=26,g++);return this.strip()};function u(w,s){var l=w.charCodeAt(s);return l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:l-48&15}function d(w,s,l){var f=u(w,l);return l-1>=s&&(f|=u(w,l-1)<<4),f}i.prototype._parseHex=function(s,l,f){this.length=Math.ceil((s.length-l)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var g=0,x=0,A;if(f==="be")for(p=s.length-1;p>=l;p-=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8;else{var y=s.length-l;for(p=y%2===0?l+1:l;p<s.length;p+=2)A=d(s,l,p)<<g,this.words[x]|=A&67108863,g>=18?(g-=18,x+=1,this.words[x]|=A>>>26):g+=8}this.strip()};function h(w,s,l,f){for(var p=0,g=Math.min(w.length,l),x=s;x<g;x++){var A=w.charCodeAt(x)-48;p*=f,A>=49?p+=A-49+10:A>=17?p+=A-17+10:p+=A}return p}i.prototype._parseBase=function(s,l,f){this.words=[0],this.length=1;for(var p=0,g=1;g<=67108863;g*=l)p++;p--,g=g/l|0;for(var x=s.length-f,A=x%p,y=Math.min(x,x-A)+f,c=0,M=f;M<y;M+=p)c=h(s,M,M+p,l),this.imuln(g),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(A!==0){var B=1;for(c=h(s,M,s.length,l),M=0;M<A;M++)B*=l;this.imuln(B),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var l=0;l<this.length;l++)s.words[l]=this.words[l];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(s,l){s=s||10,l=l|0||1;var f;if(s===16||s==="hex"){f="";for(var p=0,g=0,x=0;x<this.length;x++){var A=this.words[x],y=((A<<p|g)&16777215).toString(16);g=A>>>24-p&16777215,p+=2,p>=26&&(p-=26,x--),g!==0||x!==this.length-1?f=m[6-y.length]+y+f:f=y+f}for(g!==0&&(f=g.toString(16)+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}if(s===(s|0)&&s>=2&&s<=36){var c=b[s],M=v[s];f="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(M).toString(s);B=B.idivn(M),B.isZero()?f=R+f:f=m[c-R.length]+R+f}for(this.isZero()&&(f="0"+f);f.length%l!==0;)f="0"+f;return this.negative!==0&&(f="-"+f),f}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,l){return n(typeof o<"u"),this.toArrayLike(o,s,l)},i.prototype.toArray=function(s,l){return this.toArrayLike(Array,s,l)},i.prototype.toArrayLike=function(s,l,f){var p=this.byteLength(),g=f||Math.max(1,p);n(p<=g,"byte array longer than desired length"),n(g>0,"Requested array length <= 0"),this.strip();var x=l==="le",A=new s(g),y,c,M=this.clone();if(x){for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[c]=y;for(;c<g;c++)A[c]=0}else{for(c=0;c<g-p;c++)A[c]=0;for(c=0;!M.isZero();c++)y=M.andln(255),M.iushrn(8),A[g-c-1]=y}return A},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var l=s,f=0;return l>=4096&&(f+=13,l>>>=13),l>=64&&(f+=7,l>>>=7),l>=8&&(f+=4,l>>>=4),l>=2&&(f+=2,l>>>=2),f+l},i.prototype._zeroBits=function(s){if(s===0)return 26;var l=s,f=0;return l&8191||(f+=13,l>>>=13),l&127||(f+=7,l>>>=7),l&15||(f+=4,l>>>=4),l&3||(f+=2,l>>>=2),l&1||f++,f},i.prototype.bitLength=function(){var s=this.words[this.length-1],l=this._countBits(s);return(this.length-1)*26+l};function C(w){for(var s=new Array(w.bitLength()),l=0;l<s.length;l++){var f=l/26|0,p=l%26;s[l]=(w.words[f]&1<<p)>>>p}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,l=0;l<this.length;l++){var f=this._zeroBits(this.words[l]);if(s+=f,f!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var l=0;l<s.length;l++)this.words[l]=this.words[l]|s.words[l];return this.strip()},i.prototype.ior=function(s){return n((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var l;this.length>s.length?l=s:l=this;for(var f=0;f<l.length;f++)this.words[f]=this.words[f]&s.words[f];return this.length=l.length,this.strip()},i.prototype.iand=function(s){return n((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var p=0;p<f.length;p++)this.words[p]=l.words[p]^f.words[p];if(this!==l)for(;p<l.length;p++)this.words[p]=l.words[p];return this.length=l.length,this.strip()},i.prototype.ixor=function(s){return n((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){n(typeof s=="number"&&s>=0);var l=Math.ceil(s/26)|0,f=s%26;this._expand(l),f>0&&l--;for(var p=0;p<l;p++)this.words[p]=~this.words[p]&67108863;return f>0&&(this.words[p]=~this.words[p]&67108863>>26-f),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,l){n(typeof s=="number"&&s>=0);var f=s/26|0,p=s%26;return this._expand(f+1),l?this.words[f]=this.words[f]|1<<p:this.words[f]=this.words[f]&~(1<<p),this.strip()},i.prototype.iadd=function(s){var l;if(this.negative!==0&&s.negative===0)return this.negative=0,l=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,l=this.isub(s),s.negative=1,l._normSign();var f,p;this.length>s.length?(f=this,p=s):(f=s,p=this);for(var g=0,x=0;x<p.length;x++)l=(f.words[x]|0)+(p.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;for(;g!==0&&x<f.length;x++)l=(f.words[x]|0)+g,this.words[x]=l&67108863,g=l>>>26;if(this.length=f.length,g!==0)this.words[this.length]=g,this.length++;else if(f!==this)for(;x<f.length;x++)this.words[x]=f.words[x];return this},i.prototype.add=function(s){var l;return s.negative!==0&&this.negative===0?(s.negative=0,l=this.sub(s),s.negative^=1,l):s.negative===0&&this.negative!==0?(this.negative=0,l=s.sub(this),this.negative=1,l):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var l=this.iadd(s);return s.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var f=this.cmp(s);if(f===0)return this.negative=0,this.length=1,this.words[0]=0,this;var p,g;f>0?(p=this,g=s):(p=s,g=this);for(var x=0,A=0;A<g.length;A++)l=(p.words[A]|0)-(g.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;for(;x!==0&&A<p.length;A++)l=(p.words[A]|0)+x,x=l>>26,this.words[A]=l&67108863;if(x===0&&A<p.length&&p!==this)for(;A<p.length;A++)this.words[A]=p.words[A];return this.length=Math.max(this.length,A),p!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function E(w,s,l){l.negative=s.negative^w.negative;var f=w.length+s.length|0;l.length=f,f=f-1|0;var p=w.words[0]|0,g=s.words[0]|0,x=p*g,A=x&67108863,y=x/67108864|0;l.words[0]=A;for(var c=1;c<f;c++){for(var M=y>>>26,B=y&67108863,R=Math.min(c,s.length-1),Q=Math.max(0,c-w.length+1);Q<=R;Q++){var K=c-Q|0;p=w.words[K]|0,g=s.words[Q]|0,x=p*g+B,M+=x/67108864|0,B=x&67108863}l.words[c]=B|0,y=M|0}return y!==0?l.words[c]=y|0:l.length--,l.strip()}var T=function(s,l,f){var p=s.words,g=l.words,x=f.words,A=0,y,c,M,B=p[0]|0,R=B&8191,Q=B>>>13,K=p[1]|0,q=K&8191,W=K>>>13,G=p[2]|0,X=G&8191,ne=G>>>13,te=p[3]|0,V=te&8191,oe=te>>>13,xe=p[4]|0,fe=xe&8191,me=xe>>>13,Ze=p[5]|0,he=Ze&8191,Se=Ze>>>13,Ke=p[6]|0,ye=Ke&8191,ce=Ke>>>13,Fe=p[7]|0,pe=Fe&8191,we=Fe>>>13,gt=p[8]|0,$=gt&8191,P=gt>>>13,Z=p[9]|0,ie=Z&8191,se=Z>>>13,be=g[0]|0,le=be&8191,Ae=be>>>13,We=g[1]|0,Me=We&8191,De=We>>>13,st=g[2]|0,Te=st&8191,Oe=st>>>13,Ft=g[3]|0,je=Ft&8191,Ue=Ft>>>13,Yt=g[4]|0,_e=Yt&8191,Pe=Yt>>>13,Mt=g[5]|0,Be=Mt&8191,He=Mt>>>13,or=g[6]|0,ke=or&8191,Ge=or>>>13,J=g[7]|0,ee=J&8191,re=J>>>13,H=g[8]|0,ae=H&8191,ue=H>>>13,Ee=g[9]|0,de=Ee&8191,ve=Ee>>>13;f.negative=s.negative^l.negative,f.length=19,y=Math.imul(R,le),c=Math.imul(R,Ae),c=c+Math.imul(Q,le)|0,M=Math.imul(Q,Ae);var tt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(tt>>>26)|0,tt&=67108863,y=Math.imul(q,le),c=Math.imul(q,Ae),c=c+Math.imul(W,le)|0,M=Math.imul(W,Ae),y=y+Math.imul(R,Me)|0,c=c+Math.imul(R,De)|0,c=c+Math.imul(Q,Me)|0,M=M+Math.imul(Q,De)|0;var qe=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(qe>>>26)|0,qe&=67108863,y=Math.imul(X,le),c=Math.imul(X,Ae),c=c+Math.imul(ne,le)|0,M=Math.imul(ne,Ae),y=y+Math.imul(q,Me)|0,c=c+Math.imul(q,De)|0,c=c+Math.imul(W,Me)|0,M=M+Math.imul(W,De)|0,y=y+Math.imul(R,Te)|0,c=c+Math.imul(R,Oe)|0,c=c+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Oe)|0;var _t=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(V,le),c=Math.imul(V,Ae),c=c+Math.imul(oe,le)|0,M=Math.imul(oe,Ae),y=y+Math.imul(X,Me)|0,c=c+Math.imul(X,De)|0,c=c+Math.imul(ne,Me)|0,M=M+Math.imul(ne,De)|0,y=y+Math.imul(q,Te)|0,c=c+Math.imul(q,Oe)|0,c=c+Math.imul(W,Te)|0,M=M+Math.imul(W,Oe)|0,y=y+Math.imul(R,je)|0,c=c+Math.imul(R,Ue)|0,c=c+Math.imul(Q,je)|0,M=M+Math.imul(Q,Ue)|0;var lt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(lt>>>26)|0,lt&=67108863,y=Math.imul(fe,le),c=Math.imul(fe,Ae),c=c+Math.imul(me,le)|0,M=Math.imul(me,Ae),y=y+Math.imul(V,Me)|0,c=c+Math.imul(V,De)|0,c=c+Math.imul(oe,Me)|0,M=M+Math.imul(oe,De)|0,y=y+Math.imul(X,Te)|0,c=c+Math.imul(X,Oe)|0,c=c+Math.imul(ne,Te)|0,M=M+Math.imul(ne,Oe)|0,y=y+Math.imul(q,je)|0,c=c+Math.imul(q,Ue)|0,c=c+Math.imul(W,je)|0,M=M+Math.imul(W,Ue)|0,y=y+Math.imul(R,_e)|0,c=c+Math.imul(R,Pe)|0,c=c+Math.imul(Q,_e)|0,M=M+Math.imul(Q,Pe)|0;var wt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(he,le),c=Math.imul(he,Ae),c=c+Math.imul(Se,le)|0,M=Math.imul(Se,Ae),y=y+Math.imul(fe,Me)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(me,Me)|0,M=M+Math.imul(me,De)|0,y=y+Math.imul(V,Te)|0,c=c+Math.imul(V,Oe)|0,c=c+Math.imul(oe,Te)|0,M=M+Math.imul(oe,Oe)|0,y=y+Math.imul(X,je)|0,c=c+Math.imul(X,Ue)|0,c=c+Math.imul(ne,je)|0,M=M+Math.imul(ne,Ue)|0,y=y+Math.imul(q,_e)|0,c=c+Math.imul(q,Pe)|0,c=c+Math.imul(W,_e)|0,M=M+Math.imul(W,Pe)|0,y=y+Math.imul(R,Be)|0,c=c+Math.imul(R,He)|0,c=c+Math.imul(Q,Be)|0,M=M+Math.imul(Q,He)|0;var Et=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(ye,le),c=Math.imul(ye,Ae),c=c+Math.imul(ce,le)|0,M=Math.imul(ce,Ae),y=y+Math.imul(he,Me)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(Se,Me)|0,M=M+Math.imul(Se,De)|0,y=y+Math.imul(fe,Te)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(me,Te)|0,M=M+Math.imul(me,Oe)|0,y=y+Math.imul(V,je)|0,c=c+Math.imul(V,Ue)|0,c=c+Math.imul(oe,je)|0,M=M+Math.imul(oe,Ue)|0,y=y+Math.imul(X,_e)|0,c=c+Math.imul(X,Pe)|0,c=c+Math.imul(ne,_e)|0,M=M+Math.imul(ne,Pe)|0,y=y+Math.imul(q,Be)|0,c=c+Math.imul(q,He)|0,c=c+Math.imul(W,Be)|0,M=M+Math.imul(W,He)|0,y=y+Math.imul(R,ke)|0,c=c+Math.imul(R,Ge)|0,c=c+Math.imul(Q,ke)|0,M=M+Math.imul(Q,Ge)|0;var jt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(jt>>>26)|0,jt&=67108863,y=Math.imul(pe,le),c=Math.imul(pe,Ae),c=c+Math.imul(we,le)|0,M=Math.imul(we,Ae),y=y+Math.imul(ye,Me)|0,c=c+Math.imul(ye,De)|0,c=c+Math.imul(ce,Me)|0,M=M+Math.imul(ce,De)|0,y=y+Math.imul(he,Te)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(Se,Te)|0,M=M+Math.imul(Se,Oe)|0,y=y+Math.imul(fe,je)|0,c=c+Math.imul(fe,Ue)|0,c=c+Math.imul(me,je)|0,M=M+Math.imul(me,Ue)|0,y=y+Math.imul(V,_e)|0,c=c+Math.imul(V,Pe)|0,c=c+Math.imul(oe,_e)|0,M=M+Math.imul(oe,Pe)|0,y=y+Math.imul(X,Be)|0,c=c+Math.imul(X,He)|0,c=c+Math.imul(ne,Be)|0,M=M+Math.imul(ne,He)|0,y=y+Math.imul(q,ke)|0,c=c+Math.imul(q,Ge)|0,c=c+Math.imul(W,ke)|0,M=M+Math.imul(W,Ge)|0,y=y+Math.imul(R,ee)|0,c=c+Math.imul(R,re)|0,c=c+Math.imul(Q,ee)|0,M=M+Math.imul(Q,re)|0;var Nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,y=Math.imul($,le),c=Math.imul($,Ae),c=c+Math.imul(P,le)|0,M=Math.imul(P,Ae),y=y+Math.imul(pe,Me)|0,c=c+Math.imul(pe,De)|0,c=c+Math.imul(we,Me)|0,M=M+Math.imul(we,De)|0,y=y+Math.imul(ye,Te)|0,c=c+Math.imul(ye,Oe)|0,c=c+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Oe)|0,y=y+Math.imul(he,je)|0,c=c+Math.imul(he,Ue)|0,c=c+Math.imul(Se,je)|0,M=M+Math.imul(Se,Ue)|0,y=y+Math.imul(fe,_e)|0,c=c+Math.imul(fe,Pe)|0,c=c+Math.imul(me,_e)|0,M=M+Math.imul(me,Pe)|0,y=y+Math.imul(V,Be)|0,c=c+Math.imul(V,He)|0,c=c+Math.imul(oe,Be)|0,M=M+Math.imul(oe,He)|0,y=y+Math.imul(X,ke)|0,c=c+Math.imul(X,Ge)|0,c=c+Math.imul(ne,ke)|0,M=M+Math.imul(ne,Ge)|0,y=y+Math.imul(q,ee)|0,c=c+Math.imul(q,re)|0,c=c+Math.imul(W,ee)|0,M=M+Math.imul(W,re)|0,y=y+Math.imul(R,ae)|0,c=c+Math.imul(R,ue)|0,c=c+Math.imul(Q,ae)|0,M=M+Math.imul(Q,ue)|0;var St=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(St>>>26)|0,St&=67108863,y=Math.imul(ie,le),c=Math.imul(ie,Ae),c=c+Math.imul(se,le)|0,M=Math.imul(se,Ae),y=y+Math.imul($,Me)|0,c=c+Math.imul($,De)|0,c=c+Math.imul(P,Me)|0,M=M+Math.imul(P,De)|0,y=y+Math.imul(pe,Te)|0,c=c+Math.imul(pe,Oe)|0,c=c+Math.imul(we,Te)|0,M=M+Math.imul(we,Oe)|0,y=y+Math.imul(ye,je)|0,c=c+Math.imul(ye,Ue)|0,c=c+Math.imul(ce,je)|0,M=M+Math.imul(ce,Ue)|0,y=y+Math.imul(he,_e)|0,c=c+Math.imul(he,Pe)|0,c=c+Math.imul(Se,_e)|0,M=M+Math.imul(Se,Pe)|0,y=y+Math.imul(fe,Be)|0,c=c+Math.imul(fe,He)|0,c=c+Math.imul(me,Be)|0,M=M+Math.imul(me,He)|0,y=y+Math.imul(V,ke)|0,c=c+Math.imul(V,Ge)|0,c=c+Math.imul(oe,ke)|0,M=M+Math.imul(oe,Ge)|0,y=y+Math.imul(X,ee)|0,c=c+Math.imul(X,re)|0,c=c+Math.imul(ne,ee)|0,M=M+Math.imul(ne,re)|0,y=y+Math.imul(q,ae)|0,c=c+Math.imul(q,ue)|0,c=c+Math.imul(W,ae)|0,M=M+Math.imul(W,ue)|0,y=y+Math.imul(R,de)|0,c=c+Math.imul(R,ve)|0,c=c+Math.imul(Q,de)|0,M=M+Math.imul(Q,ve)|0;var It=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(It>>>26)|0,It&=67108863,y=Math.imul(ie,Me),c=Math.imul(ie,De),c=c+Math.imul(se,Me)|0,M=Math.imul(se,De),y=y+Math.imul($,Te)|0,c=c+Math.imul($,Oe)|0,c=c+Math.imul(P,Te)|0,M=M+Math.imul(P,Oe)|0,y=y+Math.imul(pe,je)|0,c=c+Math.imul(pe,Ue)|0,c=c+Math.imul(we,je)|0,M=M+Math.imul(we,Ue)|0,y=y+Math.imul(ye,_e)|0,c=c+Math.imul(ye,Pe)|0,c=c+Math.imul(ce,_e)|0,M=M+Math.imul(ce,Pe)|0,y=y+Math.imul(he,Be)|0,c=c+Math.imul(he,He)|0,c=c+Math.imul(Se,Be)|0,M=M+Math.imul(Se,He)|0,y=y+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Ge)|0,c=c+Math.imul(me,ke)|0,M=M+Math.imul(me,Ge)|0,y=y+Math.imul(V,ee)|0,c=c+Math.imul(V,re)|0,c=c+Math.imul(oe,ee)|0,M=M+Math.imul(oe,re)|0,y=y+Math.imul(X,ae)|0,c=c+Math.imul(X,ue)|0,c=c+Math.imul(ne,ae)|0,M=M+Math.imul(ne,ue)|0,y=y+Math.imul(q,de)|0,c=c+Math.imul(q,ve)|0,c=c+Math.imul(W,de)|0,M=M+Math.imul(W,ve)|0;var Dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,y=Math.imul(ie,Te),c=Math.imul(ie,Oe),c=c+Math.imul(se,Te)|0,M=Math.imul(se,Oe),y=y+Math.imul($,je)|0,c=c+Math.imul($,Ue)|0,c=c+Math.imul(P,je)|0,M=M+Math.imul(P,Ue)|0,y=y+Math.imul(pe,_e)|0,c=c+Math.imul(pe,Pe)|0,c=c+Math.imul(we,_e)|0,M=M+Math.imul(we,Pe)|0,y=y+Math.imul(ye,Be)|0,c=c+Math.imul(ye,He)|0,c=c+Math.imul(ce,Be)|0,M=M+Math.imul(ce,He)|0,y=y+Math.imul(he,ke)|0,c=c+Math.imul(he,Ge)|0,c=c+Math.imul(Se,ke)|0,M=M+Math.imul(Se,Ge)|0,y=y+Math.imul(fe,ee)|0,c=c+Math.imul(fe,re)|0,c=c+Math.imul(me,ee)|0,M=M+Math.imul(me,re)|0,y=y+Math.imul(V,ae)|0,c=c+Math.imul(V,ue)|0,c=c+Math.imul(oe,ae)|0,M=M+Math.imul(oe,ue)|0,y=y+Math.imul(X,de)|0,c=c+Math.imul(X,ve)|0,c=c+Math.imul(ne,de)|0,M=M+Math.imul(ne,ve)|0;var dt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(ie,je),c=Math.imul(ie,Ue),c=c+Math.imul(se,je)|0,M=Math.imul(se,Ue),y=y+Math.imul($,_e)|0,c=c+Math.imul($,Pe)|0,c=c+Math.imul(P,_e)|0,M=M+Math.imul(P,Pe)|0,y=y+Math.imul(pe,Be)|0,c=c+Math.imul(pe,He)|0,c=c+Math.imul(we,Be)|0,M=M+Math.imul(we,He)|0,y=y+Math.imul(ye,ke)|0,c=c+Math.imul(ye,Ge)|0,c=c+Math.imul(ce,ke)|0,M=M+Math.imul(ce,Ge)|0,y=y+Math.imul(he,ee)|0,c=c+Math.imul(he,re)|0,c=c+Math.imul(Se,ee)|0,M=M+Math.imul(Se,re)|0,y=y+Math.imul(fe,ae)|0,c=c+Math.imul(fe,ue)|0,c=c+Math.imul(me,ae)|0,M=M+Math.imul(me,ue)|0,y=y+Math.imul(V,de)|0,c=c+Math.imul(V,ve)|0,c=c+Math.imul(oe,de)|0,M=M+Math.imul(oe,ve)|0;var yt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(ie,_e),c=Math.imul(ie,Pe),c=c+Math.imul(se,_e)|0,M=Math.imul(se,Pe),y=y+Math.imul($,Be)|0,c=c+Math.imul($,He)|0,c=c+Math.imul(P,Be)|0,M=M+Math.imul(P,He)|0,y=y+Math.imul(pe,ke)|0,c=c+Math.imul(pe,Ge)|0,c=c+Math.imul(we,ke)|0,M=M+Math.imul(we,Ge)|0,y=y+Math.imul(ye,ee)|0,c=c+Math.imul(ye,re)|0,c=c+Math.imul(ce,ee)|0,M=M+Math.imul(ce,re)|0,y=y+Math.imul(he,ae)|0,c=c+Math.imul(he,ue)|0,c=c+Math.imul(Se,ae)|0,M=M+Math.imul(Se,ue)|0,y=y+Math.imul(fe,de)|0,c=c+Math.imul(fe,ve)|0,c=c+Math.imul(me,de)|0,M=M+Math.imul(me,ve)|0;var ot=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ot>>>26)|0,ot&=67108863,y=Math.imul(ie,Be),c=Math.imul(ie,He),c=c+Math.imul(se,Be)|0,M=Math.imul(se,He),y=y+Math.imul($,ke)|0,c=c+Math.imul($,Ge)|0,c=c+Math.imul(P,ke)|0,M=M+Math.imul(P,Ge)|0,y=y+Math.imul(pe,ee)|0,c=c+Math.imul(pe,re)|0,c=c+Math.imul(we,ee)|0,M=M+Math.imul(we,re)|0,y=y+Math.imul(ye,ae)|0,c=c+Math.imul(ye,ue)|0,c=c+Math.imul(ce,ae)|0,M=M+Math.imul(ce,ue)|0,y=y+Math.imul(he,de)|0,c=c+Math.imul(he,ve)|0,c=c+Math.imul(Se,de)|0,M=M+Math.imul(Se,ve)|0;var ht=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(ht>>>26)|0,ht&=67108863,y=Math.imul(ie,ke),c=Math.imul(ie,Ge),c=c+Math.imul(se,ke)|0,M=Math.imul(se,Ge),y=y+Math.imul($,ee)|0,c=c+Math.imul($,re)|0,c=c+Math.imul(P,ee)|0,M=M+Math.imul(P,re)|0,y=y+Math.imul(pe,ae)|0,c=c+Math.imul(pe,ue)|0,c=c+Math.imul(we,ae)|0,M=M+Math.imul(we,ue)|0,y=y+Math.imul(ye,de)|0,c=c+Math.imul(ye,ve)|0,c=c+Math.imul(ce,de)|0,M=M+Math.imul(ce,ve)|0;var pt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(ie,ee),c=Math.imul(ie,re),c=c+Math.imul(se,ee)|0,M=Math.imul(se,re),y=y+Math.imul($,ae)|0,c=c+Math.imul($,ue)|0,c=c+Math.imul(P,ae)|0,M=M+Math.imul(P,ue)|0,y=y+Math.imul(pe,de)|0,c=c+Math.imul(pe,ve)|0,c=c+Math.imul(we,de)|0,M=M+Math.imul(we,ve)|0;var nt=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(nt>>>26)|0,nt&=67108863,y=Math.imul(ie,ae),c=Math.imul(ie,ue),c=c+Math.imul(se,ae)|0,M=Math.imul(se,ue),y=y+Math.imul($,de)|0,c=c+Math.imul($,ve)|0,c=c+Math.imul(P,de)|0,M=M+Math.imul(P,ve)|0;var Ne=(A+y|0)+((c&8191)<<13)|0;A=(M+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,y=Math.imul(ie,de),c=Math.imul(ie,ve),c=c+Math.imul(se,de)|0,M=Math.imul(se,ve);var Le=(A+y|0)+((c&8191)<<13)|0;return A=(M+(c>>>13)|0)+(Le>>>26)|0,Le&=67108863,x[0]=tt,x[1]=qe,x[2]=_t,x[3]=lt,x[4]=wt,x[5]=Et,x[6]=jt,x[7]=Nt,x[8]=St,x[9]=It,x[10]=Dt,x[11]=dt,x[12]=yt,x[13]=ot,x[14]=ht,x[15]=pt,x[16]=nt,x[17]=Ne,x[18]=Le,A!==0&&(x[19]=A,f.length++),f};Math.imul||(T=E);function I(w,s,l){l.negative=s.negative^w.negative,l.length=w.length+s.length;for(var f=0,p=0,g=0;g<l.length-1;g++){var x=p;p=0;for(var A=f&67108863,y=Math.min(g,s.length-1),c=Math.max(0,g-w.length+1);c<=y;c++){var M=g-c,B=w.words[M]|0,R=s.words[c]|0,Q=B*R,K=Q&67108863;x=x+(Q/67108864|0)|0,K=K+A|0,A=K&67108863,x=x+(K>>>26)|0,p+=x>>>26,x&=67108863}l.words[g]=A,f=x,x=p}return f!==0?l.words[g]=f:l.length--,l.strip()}function S(w,s,l){var f=new D;return f.mulp(w,s,l)}i.prototype.mulTo=function(s,l){var f,p=this.length+s.length;return this.length===10&&s.length===10?f=T(this,s,l):p<63?f=E(this,s,l):p<1024?f=I(this,s,l):f=S(this,s,l),f};function D(w,s){this.x=w,this.y=s}D.prototype.makeRBT=function(s){for(var l=new Array(s),f=i.prototype._countBits(s)-1,p=0;p<s;p++)l[p]=this.revBin(p,f,s);return l},D.prototype.revBin=function(s,l,f){if(s===0||s===f-1)return s;for(var p=0,g=0;g<l;g++)p|=(s&1)<<l-g-1,s>>=1;return p},D.prototype.permute=function(s,l,f,p,g,x){for(var A=0;A<x;A++)p[A]=l[s[A]],g[A]=f[s[A]]},D.prototype.transform=function(s,l,f,p,g,x){this.permute(x,s,l,f,p,g);for(var A=1;A<g;A<<=1)for(var y=A<<1,c=Math.cos(2*Math.PI/y),M=Math.sin(2*Math.PI/y),B=0;B<g;B+=y)for(var R=c,Q=M,K=0;K<A;K++){var q=f[B+K],W=p[B+K],G=f[B+K+A],X=p[B+K+A],ne=R*G-Q*X;X=R*X+Q*G,G=ne,f[B+K]=q+G,p[B+K]=W+X,f[B+K+A]=q-G,p[B+K+A]=W-X,K!==y&&(ne=c*R-M*Q,Q=c*Q+M*R,R=ne)}},D.prototype.guessLen13b=function(s,l){var f=Math.max(l,s)|1,p=f&1,g=0;for(f=f/2|0;f;f=f>>>1)g++;return 1<<g+1+p},D.prototype.conjugate=function(s,l,f){if(!(f<=1))for(var p=0;p<f/2;p++){var g=s[p];s[p]=s[f-p-1],s[f-p-1]=g,g=l[p],l[p]=-l[f-p-1],l[f-p-1]=-g}},D.prototype.normalize13b=function(s,l){for(var f=0,p=0;p<l/2;p++){var g=Math.round(s[2*p+1]/l)*8192+Math.round(s[2*p]/l)+f;s[p]=g&67108863,g<67108864?f=0:f=g/67108864|0}return s},D.prototype.convert13b=function(s,l,f,p){for(var g=0,x=0;x<l;x++)g=g+(s[x]|0),f[2*x]=g&8191,g=g>>>13,f[2*x+1]=g&8191,g=g>>>13;for(x=2*l;x<p;++x)f[x]=0;n(g===0),n((g&-8192)===0)},D.prototype.stub=function(s){for(var l=new Array(s),f=0;f<s;f++)l[f]=0;return l},D.prototype.mulp=function(s,l,f){var p=2*this.guessLen13b(s.length,l.length),g=this.makeRBT(p),x=this.stub(p),A=new Array(p),y=new Array(p),c=new Array(p),M=new Array(p),B=new Array(p),R=new Array(p),Q=f.words;Q.length=p,this.convert13b(s.words,s.length,A,p),this.convert13b(l.words,l.length,M,p),this.transform(A,x,y,c,p,g),this.transform(M,x,B,R,p,g);for(var K=0;K<p;K++){var q=y[K]*B[K]-c[K]*R[K];c[K]=y[K]*R[K]+c[K]*B[K],y[K]=q}return this.conjugate(y,c,p),this.transform(y,c,Q,x,p,g),this.conjugate(Q,x,p),this.normalize13b(Q,p),f.negative=s.negative^l.negative,f.length=s.length+l.length,f.strip()},i.prototype.mul=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),this.mulTo(s,l)},i.prototype.mulf=function(s){var l=new i(null);return l.words=new Array(this.length+s.length),S(this,s,l)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){n(typeof s=="number"),n(s<67108864);for(var l=0,f=0;f<this.length;f++){var p=(this.words[f]|0)*s,g=(p&67108863)+(l&67108863);l>>=26,l+=p/67108864|0,l+=g>>>26,this.words[f]=g&67108863}return l!==0&&(this.words[f]=l,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var l=C(s);if(l.length===0)return new i(1);for(var f=this,p=0;p<l.length&&l[p]===0;p++,f=f.sqr());if(++p<l.length)for(var g=f.sqr();p<l.length;p++,g=g.sqr())l[p]!==0&&(f=f.mul(g));return f},i.prototype.iushln=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=67108863>>>26-l<<26-l,g;if(l!==0){var x=0;for(g=0;g<this.length;g++){var A=this.words[g]&p,y=(this.words[g]|0)-A<<l;this.words[g]=y|x,x=A>>>26-l}x&&(this.words[g]=x,this.length++)}if(f!==0){for(g=this.length-1;g>=0;g--)this.words[g+f]=this.words[g];for(g=0;g<f;g++)this.words[g]=0;this.length+=f}return this.strip()},i.prototype.ishln=function(s){return n(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,l,f){n(typeof s=="number"&&s>=0);var p;l?p=(l-l%26)/26:p=0;var g=s%26,x=Math.min((s-g)/26,this.length),A=67108863^67108863>>>g<<g,y=f;if(p-=x,p=Math.max(0,p),y){for(var c=0;c<x;c++)y.words[c]=this.words[c];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,c=0;c<this.length;c++)this.words[c]=this.words[c+x];else this.words[0]=0,this.length=1;var M=0;for(c=this.length-1;c>=0&&(M!==0||c>=p);c--){var B=this.words[c]|0;this.words[c]=M<<26-g|B>>>g,M=B&A}return y&&M!==0&&(y.words[y.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,l,f){return n(this.negative===0),this.iushrn(s,l,f)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return!1;var g=this.words[f];return!!(g&p)},i.prototype.imaskn=function(s){n(typeof s=="number"&&s>=0);var l=s%26,f=(s-l)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=f)return this;if(l!==0&&f++,this.length=Math.min(f,this.length),l!==0){var p=67108863^67108863>>>l<<l;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return n(typeof s=="number"),n(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(s){if(n(typeof s=="number"),n(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,l,f){var p=s.length+f,g;this._expand(p);var x,A=0;for(g=0;g<s.length;g++){x=(this.words[g+f]|0)+A;var y=(s.words[g]|0)*l;x-=y&67108863,A=(x>>26)-(y/67108864|0),this.words[g+f]=x&67108863}for(;g<this.length-f;g++)x=(this.words[g+f]|0)+A,A=x>>26,this.words[g+f]=x&67108863;if(A===0)return this.strip();for(n(A===-1),A=0,g=0;g<this.length;g++)x=-(this.words[g]|0)+A,A=x>>26,this.words[g]=x&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,l){var f=this.length-s.length,p=this.clone(),g=s,x=g.words[g.length-1]|0,A=this._countBits(x);f=26-A,f!==0&&(g=g.ushln(f),p.iushln(f),x=g.words[g.length-1]|0);var y=p.length-g.length,c;if(l!=="mod"){c=new i(null),c.length=y+1,c.words=new Array(c.length);for(var M=0;M<c.length;M++)c.words[M]=0}var B=p.clone()._ishlnsubmul(g,1,y);B.negative===0&&(p=B,c&&(c.words[y]=1));for(var R=y-1;R>=0;R--){var Q=(p.words[g.length+R]|0)*67108864+(p.words[g.length+R-1]|0);for(Q=Math.min(Q/x|0,67108863),p._ishlnsubmul(g,Q,R);p.negative!==0;)Q--,p.negative=0,p._ishlnsubmul(g,1,R),p.isZero()||(p.negative^=1);c&&(c.words[R]=Q)}return c&&c.strip(),p.strip(),l!=="div"&&f!==0&&p.iushrn(f),{div:c||null,mod:p}},i.prototype.divmod=function(s,l,f){if(n(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var p,g,x;return this.negative!==0&&s.negative===0?(x=this.neg().divmod(s,l),l!=="mod"&&(p=x.div.neg()),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.iadd(s)),{div:p,mod:g}):this.negative===0&&s.negative!==0?(x=this.divmod(s.neg(),l),l!=="mod"&&(p=x.div.neg()),{div:p,mod:x.mod}):this.negative&s.negative?(x=this.neg().divmod(s.neg(),l),l!=="div"&&(g=x.mod.neg(),f&&g.negative!==0&&g.isub(s)),{div:x.div,mod:g}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?l==="div"?{div:this.divn(s.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,l)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var l=this.divmod(s);if(l.mod.isZero())return l.div;var f=l.div.negative!==0?l.mod.isub(s):l.mod,p=s.ushrn(1),g=s.andln(1),x=f.cmp(p);return x<0||g===1&&x===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modn=function(s){n(s<=67108863);for(var l=(1<<26)%s,f=0,p=this.length-1;p>=0;p--)f=(l*f+(this.words[p]|0))%s;return f},i.prototype.idivn=function(s){n(s<=67108863);for(var l=0,f=this.length-1;f>=0;f--){var p=(this.words[f]|0)+l*67108864;this.words[f]=p/s|0,l=p%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=new i(0),A=new i(1),y=0;l.isEven()&&f.isEven();)l.iushrn(1),f.iushrn(1),++y;for(var c=f.clone(),M=l.clone();!l.isZero();){for(var B=0,R=1;!(l.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(l.iushrn(B);B-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(c),g.isub(M)),p.iushrn(1),g.iushrn(1);for(var Q=0,K=1;!(f.words[0]&K)&&Q<26;++Q,K<<=1);if(Q>0)for(f.iushrn(Q);Q-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(c),A.isub(M)),x.iushrn(1),A.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(x),g.isub(A)):(f.isub(l),x.isub(p),A.isub(g))}return{a:x,b:A,gcd:f.iushln(y)}},i.prototype._invmp=function(s){n(s.negative===0),n(!s.isZero());var l=this,f=s.clone();l.negative!==0?l=l.umod(s):l=l.clone();for(var p=new i(1),g=new i(0),x=f.clone();l.cmpn(1)>0&&f.cmpn(1)>0;){for(var A=0,y=1;!(l.words[0]&y)&&A<26;++A,y<<=1);if(A>0)for(l.iushrn(A);A-- >0;)p.isOdd()&&p.iadd(x),p.iushrn(1);for(var c=0,M=1;!(f.words[0]&M)&&c<26;++c,M<<=1);if(c>0)for(f.iushrn(c);c-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);l.cmp(f)>=0?(l.isub(f),p.isub(g)):(f.isub(l),g.isub(p))}var B;return l.cmpn(1)===0?B=p:B=g,B.cmpn(0)<0&&B.iadd(s),B},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var l=this.clone(),f=s.clone();l.negative=0,f.negative=0;for(var p=0;l.isEven()&&f.isEven();p++)l.iushrn(1),f.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;f.isEven();)f.iushrn(1);var g=l.cmp(f);if(g<0){var x=l;l=f,f=x}else if(g===0||f.cmpn(1)===0)break;l.isub(f)}while(!0);return f.iushln(p)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){n(typeof s=="number");var l=s%26,f=(s-l)/26,p=1<<l;if(this.length<=f)return this._expand(f+1),this.words[f]|=p,this;for(var g=p,x=f;g!==0&&x<this.length;x++){var A=this.words[x]|0;A+=g,g=A>>>26,A&=67108863,this.words[x]=A}return g!==0&&(this.words[x]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var l=s<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this.strip();var f;if(this.length>1)f=1;else{l&&(s=-s),n(s<=67108863,"Number is too big");var p=this.words[0]|0;f=p===s?0:p<s?-1:1}return this.negative!==0?-f|0:f},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var l=this.ucmp(s);return this.negative!==0?-l|0:l},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var l=0,f=this.length-1;f>=0;f--){var p=this.words[f]|0,g=s.words[f]|0;if(p!==g){p<g?l=-1:p>g&&(l=1);break}}return l},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new F(s)},i.prototype.toRed=function(s){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return n(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return n(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var L={k256:null,p224:null,p192:null,p25519:null};function N(w,s){this.name=w,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},N.prototype.ireduce=function(s){var l=s,f;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),f=l.bitLength();while(f>this.n);var p=f<this.n?-1:l.ucmp(this.p);return p===0?(l.words[0]=0,l.length=1):p>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},N.prototype.split=function(s,l){s.iushrn(this.n,0,l)},N.prototype.imulK=function(s){return s.imul(this.k)};function _(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,N),_.prototype.split=function(s,l){for(var f=4194303,p=Math.min(s.length,9),g=0;g<p;g++)l.words[g]=s.words[g];if(l.length=p,s.length<=9){s.words[0]=0,s.length=1;return}var x=s.words[9];for(l.words[l.length++]=x&f,g=10;g<s.length;g++){var A=s.words[g]|0;s.words[g-10]=(A&f)<<4|x>>>22,x=A}x>>>=22,s.words[g-10]=x,x===0&&s.length>10?s.length-=10:s.length-=9},_.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var l=0,f=0;f<s.length;f++){var p=s.words[f]|0;l+=p*977,s.words[f]=l&67108863,l=p*64+(l/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function O(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(O,N);function U(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(U,N);function z(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(z,N),z.prototype.imulK=function(s){for(var l=0,f=0;f<s.length;f++){var p=(s.words[f]|0)*19+l,g=p&67108863;p>>>=26,s.words[f]=g,l=p}return l!==0&&(s.words[s.length++]=l),s},i._prime=function(s){if(L[s])return L[s];var l;if(s==="k256")l=new _;else if(s==="p224")l=new O;else if(s==="p192")l=new U;else if(s==="p25519")l=new z;else throw new Error("Unknown prime "+s);return L[s]=l,l};function F(w){if(typeof w=="string"){var s=i._prime(w);this.m=s.p,this.prime=s}else n(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}F.prototype._verify1=function(s){n(s.negative===0,"red works only with positives"),n(s.red,"red works only with red numbers")},F.prototype._verify2=function(s,l){n((s.negative|l.negative)===0,"red works only with positives"),n(s.red&&s.red===l.red,"red works only with red numbers")},F.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},F.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},F.prototype.add=function(s,l){this._verify2(s,l);var f=s.add(l);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},F.prototype.iadd=function(s,l){this._verify2(s,l);var f=s.iadd(l);return f.cmp(this.m)>=0&&f.isub(this.m),f},F.prototype.sub=function(s,l){this._verify2(s,l);var f=s.sub(l);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},F.prototype.isub=function(s,l){this._verify2(s,l);var f=s.isub(l);return f.cmpn(0)<0&&f.iadd(this.m),f},F.prototype.shl=function(s,l){return this._verify1(s),this.imod(s.ushln(l))},F.prototype.imul=function(s,l){return this._verify2(s,l),this.imod(s.imul(l))},F.prototype.mul=function(s,l){return this._verify2(s,l),this.imod(s.mul(l))},F.prototype.isqr=function(s){return this.imul(s,s.clone())},F.prototype.sqr=function(s){return this.mul(s,s)},F.prototype.sqrt=function(s){if(s.isZero())return s.clone();var l=this.m.andln(3);if(n(l%2===1),l===3){var f=this.m.add(new i(1)).iushrn(2);return this.pow(s,f)}for(var p=this.m.subn(1),g=0;!p.isZero()&&p.andln(1)===0;)g++,p.iushrn(1);n(!p.isZero());var x=new i(1).toRed(this),A=x.redNeg(),y=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);this.pow(c,y).cmp(A)!==0;)c.redIAdd(A);for(var M=this.pow(c,p),B=this.pow(s,p.addn(1).iushrn(1)),R=this.pow(s,p),Q=g;R.cmp(x)!==0;){for(var K=R,q=0;K.cmp(x)!==0;q++)K=K.redSqr();n(q<Q);var W=this.pow(M,new i(1).iushln(Q-q-1));B=B.redMul(W),M=W.redSqr(),R=R.redMul(M),Q=q}return B},F.prototype.invm=function(s){var l=s._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},F.prototype.pow=function(s,l){if(l.isZero())return new i(1).toRed(this);if(l.cmpn(1)===0)return s.clone();var f=4,p=new Array(1<<f);p[0]=new i(1).toRed(this),p[1]=s;for(var g=2;g<p.length;g++)p[g]=this.mul(p[g-1],s);var x=p[0],A=0,y=0,c=l.bitLength()%26;for(c===0&&(c=26),g=l.length-1;g>=0;g--){for(var M=l.words[g],B=c-1;B>=0;B--){var R=M>>B&1;if(x!==p[0]&&(x=this.sqr(x)),R===0&&A===0){y=0;continue}A<<=1,A|=R,y++,!(y!==f&&(g!==0||B!==0))&&(x=this.mul(x,p[A]),y=0,A=0)}c=26}return x},F.prototype.convertTo=function(s){var l=s.umod(this.m);return l===s?l.clone():l},F.prototype.convertFrom=function(s){var l=s.clone();return l.red=null,l},i.mont=function(s){return new k(s)};function k(w){F.call(this,w),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(k,F),k.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},k.prototype.convertFrom=function(s){var l=this.imod(s.mul(this.rinv));return l.red=null,l},k.prototype.imul=function(s,l){if(s.isZero()||l.isZero())return s.words[0]=0,s.length=1,s;var f=s.imul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.mul=function(s,l){if(s.isZero()||l.isZero())return new i(0)._forceRed(this);var f=s.mul(l),p=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=f.isub(p).iushrn(this.shift),x=g;return g.cmp(this.m)>=0?x=g.isub(this.m):g.cmpn(0)<0&&(x=g.iadd(this.m)),x._forceRed(this)},k.prototype.invm=function(s){var l=this.imod(s._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(e,Ut)}(t3)),t3.exports}var U8={},aT;function rie(){return aT||(aT=1,function(e){var t=Kh(),r=Xt,n=e;n.define=function(o,u){return new a(o,u)};function a(i,o){this.name=i,this.body=o,this.decoders={},this.encoders={}}a.prototype._createNamed=function(o){var u;try{u=Zh.runInThisContext("(function "+this.name+`(entity) {
|
|
@@ -122,7 +122,7 @@ ${JSON.stringify(a.slice(-10),null,2)}. `:"",o="\nCatch the `SendTransactionErro
|
|
|
122
122
|
${n}. `+i+o;break;case"simulate":u=`Simulation failed.
|
|
123
123
|
Message: ${n}.
|
|
124
124
|
`+i+o;break;default:u=`Unknown action '${(d=>d)(t)}'`}super(u),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=r,this.transactionMessage=n,this.transactionLogs=a||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((r,n)=>{t.getTransaction(this.signature).then(a=>{if(a&&a.meta&&a.meta.logMessages){const i=a.meta.logMessages;this.transactionLogs=i,r(i)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}const boe={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class Ot extends Error{constructor({code:t,message:r,data:n},a){super(a!=null?`${a}: ${r}`:r),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}async function Zb(e,t,r,n){const a=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},i=await e.sendTransaction(t,r,a);let o;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)o=(await e.confirmTransaction({abortSignal:n==null?void 0:n.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},n&&n.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){const{nonceInstruction:u}=t.nonceInfo,d=u.keys[0].pubkey;o=(await e.confirmTransaction({abortSignal:n==null?void 0:n.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:d,nonceValue:t.nonceInfo.nonce,signature:i},n&&n.commitment)).value}else(n==null?void 0:n.abortSignal)!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),o=(await e.confirmTransaction(i,n&&n.commitment)).value;if(o.err)throw i!=null?new K1({action:"send",signature:i,transactionMessage:`Status: (${JSON.stringify(o)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(o)})`);return i}function Yl(e){return new Promise(t=>setTimeout(t,e))}function Sr(e,t){const r=e.layout.span>=0?e.layout.span:vR(e,t),n=vt.Buffer.alloc(r),a=Object.assign({instruction:e.index},t);return e.layout.encode(a,n),n}function Ur(e,t){let r;try{r=e.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(r.instruction!==e.index)throw new Error(`invalid instruction; instruction index mismatch ${r.instruction} != ${e.index}`);return r}const AR=Ci("lamportsPerSignature"),ER=zt([kt("version"),kt("state"),br("authorizedPubkey"),br("nonce"),zt([AR],"feeCalculator")]),Gb=ER.span;class b5{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const r=ER.decode(ur(t),0);return new b5({authorizedPubkey:new ct(r.authorizedPubkey),nonce:new ct(r.nonce).toString(),feeCalculator:r.feeCalculator})}}const Moe=e=>{const t=e.decode.bind(e),r=e.encode.bind(e);return{decode:t,encode:r}},xoe=e=>t=>{const r=rn(e,t),{encode:n,decode:a}=Moe(r),i=r;return i.decode=(o,u)=>{const d=a(o,u);return lR(vt.Buffer.from(d))},i.encode=(o,u,d)=>{const h=nv(o,e);return n(h,u,d)},i},vf=xoe(8);class voe{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(un))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a SystemInstruction");return a}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:r,space:n,programId:a}=Ur(un.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:r,space:n,programId:new ct(a)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:r}=Ur(un.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:r}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r,seed:n,programId:a}=Ur(un.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:r,seed:n,programId:new ct(a)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:r}=Ur(un.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:r}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:r,seed:n,space:a,programId:i}=Ur(un.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new ct(r),seed:n,space:a,programId:new ct(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:r}=Ur(un.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new ct(r)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:r,seed:n,programId:a}=Ur(un.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new ct(r),seed:n,programId:new ct(a)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:r,seed:n,lamports:a,space:i,programId:o}=Ur(un.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new ct(r),seed:n,lamports:a,space:i,programId:new ct(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:r}=Ur(un.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new ct(r)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ur(un.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:r}=Ur(un.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:r}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:r}=Ur(un.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new ct(r)}}static checkProgramId(t){if(!t.equals(di.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const un=Object.freeze({Create:{index:0,layout:zt([kt("instruction"),Ta("lamports"),Ta("space"),br("programId")])},Assign:{index:1,layout:zt([kt("instruction"),br("programId")])},Transfer:{index:2,layout:zt([kt("instruction"),vf("lamports")])},CreateWithSeed:{index:3,layout:zt([kt("instruction"),br("base"),n0("seed"),Ta("lamports"),Ta("space"),br("programId")])},AdvanceNonceAccount:{index:4,layout:zt([kt("instruction")])},WithdrawNonceAccount:{index:5,layout:zt([kt("instruction"),Ta("lamports")])},InitializeNonceAccount:{index:6,layout:zt([kt("instruction"),br("authorized")])},AuthorizeNonceAccount:{index:7,layout:zt([kt("instruction"),br("authorized")])},Allocate:{index:8,layout:zt([kt("instruction"),Ta("space")])},AllocateWithSeed:{index:9,layout:zt([kt("instruction"),br("base"),n0("seed"),Ta("space"),br("programId")])},AssignWithSeed:{index:10,layout:zt([kt("instruction"),br("base"),n0("seed"),br("programId")])},TransferWithSeed:{index:11,layout:zt([kt("instruction"),vf("lamports"),n0("seed"),br("programId")])},UpgradeNonceAccount:{index:12,layout:zt([kt("instruction")])}});class di{constructor(){}static createAccount(t){const r=un.Create,n=Sr(r,{lamports:t.lamports,space:t.space,programId:ur(t.programId.toBuffer())});return new nn({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:n})}static transfer(t){let r,n;if("basePubkey"in t){const a=un.TransferWithSeed;r=Sr(a,{lamports:BigInt(t.lamports),seed:t.seed,programId:ur(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{const a=un.Transfer;r=Sr(a,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new nn({keys:n,programId:this.programId,data:r})}static assign(t){let r,n;if("basePubkey"in t){const a=un.AssignWithSeed;r=Sr(a,{base:ur(t.basePubkey.toBuffer()),seed:t.seed,programId:ur(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const a=un.Assign;r=Sr(a,{programId:ur(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new nn({keys:n,programId:this.programId,data:r})}static createAccountWithSeed(t){const r=un.CreateWithSeed,n=Sr(r,{base:ur(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:ur(t.programId.toBuffer())});let a=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||a.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new nn({keys:a,programId:this.programId,data:n})}static createNonceAccount(t){const r=new Fr;"basePubkey"in t&&"seed"in t?r.add(di.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Gb,programId:this.programId})):r.add(di.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Gb,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}static nonceInitialize(t){const r=un.InitializeNonceAccount,n=Sr(r,{authorized:ur(t.authorizedPubkey.toBuffer())}),a={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:a3,isSigner:!1,isWritable:!1},{pubkey:xf,isSigner:!1,isWritable:!1}],programId:this.programId,data:n};return new nn(a)}static nonceAdvance(t){const r=un.AdvanceNonceAccount,n=Sr(r),a={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:a3,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new nn(a)}static nonceWithdraw(t){const r=un.WithdrawNonceAccount,n=Sr(r,{lamports:t.lamports});return new nn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:a3,isSigner:!1,isWritable:!1},{pubkey:xf,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static nonceAuthorize(t){const r=un.AuthorizeNonceAccount,n=Sr(r,{authorized:ur(t.newAuthorizedPubkey.toBuffer())});return new nn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static allocate(t){let r,n;if("basePubkey"in t){const a=un.AllocateWithSeed;r=Sr(a,{base:ur(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:ur(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const a=un.Allocate;r=Sr(a,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new nn({keys:n,programId:this.programId,data:r})}}di.programId=new ct("11111111111111111111111111111111");const woe=ol-300;class j0{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/j0.chunkSize)+1+1)}static async load(t,r,n,a,i){{const b=await t.getMinimumBalanceForRentExemption(i.length),v=await t.getAccountInfo(n.publicKey,"confirmed");let C=null;if(v!==null){if(v.executable)return console.error("Program load failed, account is already executable"),!1;v.data.length!==i.length&&(C=C||new Fr,C.add(di.allocate({accountPubkey:n.publicKey,space:i.length}))),v.owner.equals(a)||(C=C||new Fr,C.add(di.assign({accountPubkey:n.publicKey,programId:a}))),v.lamports<b&&(C=C||new Fr,C.add(di.transfer({fromPubkey:r.publicKey,toPubkey:n.publicKey,lamports:b-v.lamports})))}else C=new Fr().add(di.createAccount({fromPubkey:r.publicKey,newAccountPubkey:n.publicKey,lamports:b>0?b:1,space:i.length,programId:a}));C!==null&&await Zb(t,C,[r,n],{commitment:"confirmed"})}const o=zt([kt("instruction"),kt("offset"),kt("bytesLength"),kt("bytesLengthPadding"),ji(mr("byte"),sl(kt(),-8),"bytes")]),u=j0.chunkSize;let d=0,h=i,m=[];for(;h.length>0;){const b=h.slice(0,u),v=vt.Buffer.alloc(u+16);o.encode({instruction:0,offset:d,bytes:b,bytesLength:0,bytesLengthPadding:0},v);const C=new Fr().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:a,data:v});m.push(Zb(t,C,[r,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await Yl(1e3/4),d+=u,h=h.slice(u)}await Promise.all(m);{const b=zt([kt("instruction")]),v=vt.Buffer.alloc(b.span);b.encode({instruction:1},v);const C=new Fr().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:xf,isSigner:!1,isWritable:!1}],programId:a,data:v}),E="processed",T=await t.sendTransaction(C,[r,n],{preflightCommitment:E}),{context:I,value:S}=await t.confirmTransaction({signature:T,lastValidBlockHeight:C.lastValidBlockHeight,blockhash:C.recentBlockhash},E);if(S.err)throw new Error(`Transaction ${T} failed (${JSON.stringify(S)})`);for(;;){try{if(await t.getSlot({commitment:E})>I.slot)break}catch{}await new Promise(D=>setTimeout(D,Math.round(CR/2)))}}return!0}}j0.chunkSize=woe;const Coe=new ct("BPFLoader2111111111111111111111111111111111");class Aoe{static getMinNumSignatures(t){return j0.getMinNumSignatures(t)}static load(t,r,n,a,i){return j0.load(t,r,n,i,a)}}function Eoe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wy,cI;function Soe(){if(cI)return wy;cI=1;var e=Object.prototype.toString,t=Object.keys||function(n){var a=[];for(var i in n)a.push(i);return a};function r(n,a){var i,o,u,d,h,m,b;if(n===!0)return"true";if(n===!1)return"false";switch(typeof n){case"object":if(n===null)return null;if(n.toJSON&&typeof n.toJSON=="function")return r(n.toJSON(),a);if(b=e.call(n),b==="[object Array]"){for(u="[",o=n.length-1,i=0;i<o;i++)u+=r(n[i],!0)+",";return o>-1&&(u+=r(n[i],!0)),u+"]"}else if(b==="[object Object]"){for(d=t(n).sort(),o=d.length,u="",i=0;i<o;)h=d[i],m=r(n[h],!1),m!==void 0&&(u&&(u+=","),u+=JSON.stringify(h)+":"+m),i++;return"{"+u+"}"}else return JSON.stringify(n);case"function":case"undefined":return a?null:void 0;case"string":return JSON.stringify(n);default:return isFinite(n)?n:null}}return wy=function(n){var a=r(n,!1);if(a!==void 0)return""+a},wy}var Doe=Soe(),lI=Eoe(Doe);const vd=32;function Cy(e){let t=0;for(;e>1;)e/=2,t++;return t}function Toe(e){return e===0?1:(e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e+1)}class SR{constructor(t,r,n,a,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=r,this.warmup=n,this.firstNormalEpoch=a,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const r=Cy(Toe(t+vd+1))-Cy(vd)-1,n=this.getSlotsInEpoch(r),a=t-(n-vd);return[r,a]}else{const r=t-this.firstNormalSlot,n=Math.floor(r/this.slotsPerEpoch),a=this.firstNormalEpoch+n,i=r%this.slotsPerEpoch;return[a,i]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*vd:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Cy(vd)):this.slotsPerEpoch}}var Ioe=globalThis.fetch;class Noe extends Kse{constructor(t,r,n){const a=i=>{const o=Vse(i,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...r});return"socket"in o?this.underlyingSocket=o.socket:this.underlyingSocket=o,o};super(a,t,r,n),this.underlyingSocket=void 0}call(...t){var n;const r=(n=this.underlyingSocket)==null?void 0:n.readyState;return r===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}notify(...t){var n;const r=(n=this.underlyingSocket)==null?void 0:n.readyState;return r===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}}function Loe(e,t){let r;try{r=e.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(r.typeIndex!==e.index)throw new Error(`invalid account data; account type mismatch ${r.typeIndex} != ${e.index}`);return r}const uI=56;class Qb{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const r=Loe(joe,t),n=t.length-uI;jr(n>=0,"lookup table is invalid"),jr(n%32===0,"lookup table is invalid");const a=n/32,{addresses:i}=zt([ji(br(),a,"addresses")]).decode(t.slice(uI));return{deactivationSlot:r.deactivationSlot,lastExtendedSlot:r.lastExtendedSlot,lastExtendedSlotStartIndex:r.lastExtendedStartIndex,authority:r.authority.length!==0?new ct(r.authority[0]):void 0,addresses:i.map(o=>new ct(o))}}}const joe={index:1,layout:zt([kt("typeIndex"),vf("deactivationSlot"),Ci("lastExtendedSlot"),mr("lastExtendedStartIndex"),mr(),ji(br(),sl(mr(),-1),"authority")])},Boe=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function koe(e){const t=e.match(Boe);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${e}\``);const[r,n,a,i]=t,o=e.startsWith("https:")?"wss:":"ws:",u=a==null?null:parseInt(a.slice(1),10),d=u==null?"":`:${u+1}`;return`${o}//${n}${d}${i}`}const Sn=r2(av(ct),bt(),e=>new ct(e)),DR=sv([bt(),An("base64")]),mv=r2(av(vt.Buffer),DR,e=>vt.Buffer.from(e[0],"base64")),TR=30*1e3;function zoe(e){if(/^https?:/.test(e)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return e}function ln(e){let t,r;if(typeof e=="string")t=e;else if(e){const{commitment:n,...a}=e;t=n,r=a}return{commitment:t,config:r}}function fI(e){return e.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function IR(e){return ia([it({jsonrpc:An("2.0"),id:bt(),result:e}),it({jsonrpc:An("2.0"),id:bt(),error:it({code:rd(),message:bt(),data:Wt(Mse())})})])}const _oe=IR(rd());function lr(e){return r2(IR(e),_oe,t=>"error"in t?t:{...t,result:xt(t.result,e)})}function Un(e){return lr(it({context:it({slot:ze()}),value:e}))}function M5(e){return it({context:it({slot:ze()}),value:e})}function Ay(e,t){return e===0?new L0({header:t.header,staticAccountKeys:t.accountKeys.map(r=>new ct(r)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(r=>({programIdIndex:r.programIdIndex,accountKeyIndexes:r.accounts,data:Ii.decode(r.data)})),addressTableLookups:t.addressTableLookups}):new Ws(t)}const Foe=it({foundation:ze(),foundationTerm:ze(),initial:ze(),taper:ze(),terminal:ze()}),Ooe=lr(At(Tt(it({epoch:ze(),effectiveSlot:ze(),amount:ze(),postBalance:ze(),commission:Wt(Tt(ze()))})))),Roe=At(it({slot:ze(),prioritizationFee:ze()})),Uoe=it({total:ze(),validator:ze(),foundation:ze(),epoch:ze()}),Poe=it({epoch:ze(),slotIndex:ze(),slotsInEpoch:ze(),absoluteSlot:ze(),blockHeight:Wt(ze()),transactionCount:Wt(ze())}),Woe=it({slotsPerEpoch:ze(),leaderScheduleSlotOffset:ze(),warmup:Ao(),firstNormalEpoch:ze(),firstNormalSlot:ze()}),Hoe=dR(bt(),At(ze())),Y0=Tt(ia([it({}),bt()])),Yoe=it({err:Y0}),Zoe=An("receivedSignature"),Goe=it({"solana-core":bt(),"feature-set":Wt(ze())}),Qoe=it({program:bt(),programId:Sn,parsed:rd()}),qoe=it({programId:Sn,accounts:At(Sn),data:bt()}),dI=Un(it({err:Tt(ia([it({}),bt()])),logs:Tt(At(bt())),accounts:Wt(Tt(At(Tt(it({executable:Ao(),owner:bt(),lamports:ze(),data:At(bt()),rentEpoch:Wt(ze())}))))),unitsConsumed:Wt(ze()),returnData:Wt(Tt(it({programId:bt(),data:sv([bt(),An("base64")])}))),innerInstructions:Wt(Tt(At(it({index:ze(),instructions:At(ia([Qoe,qoe]))}))))})),Voe=Un(it({byIdentity:dR(bt(),At(ze())),range:it({firstSlot:ze(),lastSlot:ze()})}));function $oe(e,t,r,n,a,i){const o=r||Ioe;let u;i!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let d;return n&&(d=async(m,b)=>{const v=await new Promise((C,E)=>{try{n(m,b,(T,I)=>C([T,I]))}catch(T){E(T)}});return await o(...v)}),new Gse(async(m,b)=>{const v={method:"POST",body:m,agent:u,headers:Object.assign({"Content-Type":"application/json"},t||{},$ce)};try{let C=5,E,T=500;for(;d?E=await d(e,v):E=await o(e,v),!(E.status!==429||a===!0||(C-=1,C===0));)console.error(`Server responded with ${E.status} ${E.statusText}. Retrying after ${T}ms delay...`),await Yl(T),T*=2;const I=await E.text();E.ok?b(null,I):b(new Error(`${E.status} ${E.statusText}: ${I}`))}catch(C){C instanceof Error&&b(C)}},{})}function Koe(e){return(t,r)=>new Promise((n,a)=>{e.request(t,r,(i,o)=>{if(i){a(i);return}n(o)})})}function Xoe(e){return t=>new Promise((r,n)=>{t.length===0&&r([]);const a=t.map(i=>e.request(i.methodName,i.args));e.request(a,(i,o)=>{if(i){n(i);return}r(o)})})}const Joe=lr(Foe),ece=lr(Uoe),tce=lr(Roe),rce=lr(Poe),nce=lr(Woe),ice=lr(Hoe),ace=lr(ze()),sce=Un(it({total:ze(),circulating:ze(),nonCirculating:ze(),nonCirculatingAccounts:At(Sn)})),qb=it({amount:bt(),uiAmount:Tt(ze()),decimals:ze(),uiAmountString:Wt(bt())}),oce=Un(At(it({address:Sn,amount:bt(),uiAmount:Tt(ze()),decimals:ze(),uiAmountString:Wt(bt())}))),cce=Un(At(it({pubkey:Sn,account:it({executable:Ao(),owner:Sn,lamports:ze(),data:mv,rentEpoch:ze()})}))),Vb=it({program:bt(),parsed:rd(),space:ze()}),lce=Un(At(it({pubkey:Sn,account:it({executable:Ao(),owner:Sn,lamports:ze(),data:Vb,rentEpoch:ze()})}))),uce=Un(At(it({lamports:ze(),address:Sn}))),X1=it({executable:Ao(),owner:Sn,lamports:ze(),data:mv,rentEpoch:ze()}),fce=it({pubkey:Sn,account:X1}),dce=r2(ia([av(vt.Buffer),Vb]),ia([DR,Vb]),e=>Array.isArray(e)?xt(e,mv):e),$b=it({executable:Ao(),owner:Sn,lamports:ze(),data:dce,rentEpoch:ze()}),hce=it({pubkey:Sn,account:$b}),pce=it({state:ia([An("active"),An("inactive"),An("activating"),An("deactivating")]),active:ze(),inactive:ze()}),mce=lr(At(it({signature:bt(),slot:ze(),err:Y0,memo:Tt(bt()),blockTime:Wt(Tt(ze()))}))),gce=lr(At(it({signature:bt(),slot:ze(),err:Y0,memo:Tt(bt()),blockTime:Wt(Tt(ze()))}))),yce=it({subscription:ze(),result:M5(X1)}),bce=it({pubkey:Sn,account:X1}),Mce=it({subscription:ze(),result:M5(bce)}),xce=it({parent:ze(),slot:ze(),root:ze()}),vce=it({subscription:ze(),result:xce}),wce=ia([it({type:ia([An("firstShredReceived"),An("completed"),An("optimisticConfirmation"),An("root")]),slot:ze(),timestamp:ze()}),it({type:An("createdBank"),parent:ze(),slot:ze(),timestamp:ze()}),it({type:An("frozen"),slot:ze(),timestamp:ze(),stats:it({numTransactionEntries:ze(),numSuccessfulTransactions:ze(),numFailedTransactions:ze(),maxTransactionsPerEntry:ze()})}),it({type:An("dead"),slot:ze(),timestamp:ze(),err:bt()})]),Cce=it({subscription:ze(),result:wce}),Ace=it({subscription:ze(),result:M5(ia([Yoe,Zoe]))}),Ece=it({subscription:ze(),result:ze()}),Sce=it({pubkey:bt(),gossip:Tt(bt()),tpu:Tt(bt()),rpc:Tt(bt()),version:Tt(bt())}),hI=it({votePubkey:bt(),nodePubkey:bt(),activatedStake:ze(),epochVoteAccount:Ao(),epochCredits:At(sv([ze(),ze(),ze()])),commission:ze(),lastVote:ze(),rootSlot:Tt(ze())}),Dce=lr(it({current:At(hI),delinquent:At(hI)})),Tce=ia([An("processed"),An("confirmed"),An("finalized")]),Ice=it({slot:ze(),confirmations:Tt(ze()),err:Y0,confirmationStatus:Wt(Tce)}),Nce=Un(At(Tt(Ice))),Lce=lr(ze()),NR=it({accountKey:Sn,writableIndexes:At(ze()),readonlyIndexes:At(ze())}),gv=it({signatures:At(bt()),message:it({accountKeys:At(bt()),header:it({numRequiredSignatures:ze(),numReadonlySignedAccounts:ze(),numReadonlyUnsignedAccounts:ze()}),instructions:At(it({accounts:At(ze()),data:bt(),programIdIndex:ze()})),recentBlockhash:bt(),addressTableLookups:Wt(At(NR))})}),LR=it({pubkey:Sn,signer:Ao(),writable:Ao(),source:Wt(ia([An("transaction"),An("lookupTable")]))}),jR=it({accountKeys:At(LR),signatures:At(bt())}),BR=it({parsed:rd(),program:bt(),programId:Sn}),kR=it({accounts:At(Sn),data:bt(),programId:Sn}),jce=ia([kR,BR]),Bce=ia([it({parsed:rd(),program:bt(),programId:bt()}),it({accounts:At(bt()),data:bt(),programId:bt()})]),zR=r2(jce,Bce,e=>"accounts"in e?xt(e,kR):xt(e,BR)),_R=it({signatures:At(bt()),message:it({accountKeys:At(LR),instructions:At(zR),recentBlockhash:bt(),addressTableLookups:Wt(Tt(At(NR)))})}),yp=it({accountIndex:ze(),mint:bt(),owner:Wt(bt()),programId:Wt(bt()),uiTokenAmount:qb}),FR=it({writable:At(Sn),readonly:At(Sn)}),x5=it({err:Y0,fee:ze(),innerInstructions:Wt(Tt(At(it({index:ze(),instructions:At(it({accounts:At(ze()),data:bt(),programIdIndex:ze()}))})))),preBalances:At(ze()),postBalances:At(ze()),logMessages:Wt(Tt(At(bt()))),preTokenBalances:Wt(Tt(At(yp))),postTokenBalances:Wt(Tt(At(yp))),loadedAddresses:Wt(FR),computeUnitsConsumed:Wt(ze())}),yv=it({err:Y0,fee:ze(),innerInstructions:Wt(Tt(At(it({index:ze(),instructions:At(zR)})))),preBalances:At(ze()),postBalances:At(ze()),logMessages:Wt(Tt(At(bt()))),preTokenBalances:Wt(Tt(At(yp))),postTokenBalances:Wt(Tt(At(yp))),loadedAddresses:Wt(FR),computeUnitsConsumed:Wt(ze())}),nd=ia([An(0),An("legacy")]),Z0=it({pubkey:bt(),lamports:ze(),postBalance:Tt(ze()),rewardType:Tt(bt()),commission:Wt(Tt(ze()))}),kce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),transactions:At(it({transaction:gv,meta:Tt(x5),version:Wt(nd)})),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),zce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),_ce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),transactions:At(it({transaction:jR,meta:Tt(x5),version:Wt(nd)})),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),Fce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),transactions:At(it({transaction:_R,meta:Tt(yv),version:Wt(nd)})),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),Oce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),transactions:At(it({transaction:jR,meta:Tt(yv),version:Wt(nd)})),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),Rce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),rewards:Wt(At(Z0)),blockTime:Tt(ze()),blockHeight:Tt(ze())}))),Uce=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),transactions:At(it({transaction:gv,meta:Tt(x5)})),rewards:Wt(At(Z0)),blockTime:Tt(ze())}))),pI=lr(Tt(it({blockhash:bt(),previousBlockhash:bt(),parentSlot:ze(),signatures:At(bt()),blockTime:Tt(ze())}))),Ey=lr(Tt(it({slot:ze(),meta:Tt(x5),blockTime:Wt(Tt(ze())),transaction:gv,version:Wt(nd)}))),s4=lr(Tt(it({slot:ze(),transaction:_R,meta:Tt(yv),blockTime:Wt(Tt(ze())),version:Wt(nd)}))),Pce=Un(it({blockhash:bt(),lastValidBlockHeight:ze()})),Wce=Un(Ao()),Hce=it({slot:ze(),numTransactions:ze(),numSlots:ze(),samplePeriodSecs:ze()}),Yce=lr(At(Hce)),Zce=Un(Tt(it({feeCalculator:it({lamportsPerSignature:ze()})}))),Gce=lr(bt()),Qce=lr(bt()),qce=it({err:Y0,logs:At(bt()),signature:bt()}),Vce=it({result:M5(qce),subscription:ze()}),$ce={"solana-client":"js/1.0.0-maintenance"};class v5{constructor(t,r){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const h={};return async m=>{const{commitment:b,config:v}=ln(m),C=this._buildArgs([],b,void 0,v),E=lI(C);return h[E]=h[E]??(async()=>{try{const T=await this._rpcRequest("getBlockHeight",C),I=xt(T,lr(ze()));if("error"in I)throw new Ot(I.error,"failed to get block height information");return I.result}finally{delete h[E]}})(),await h[E]}})();let n,a,i,o,u,d;r&&typeof r=="string"?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,n=r.wsEndpoint,a=r.httpHeaders,i=r.fetch,o=r.fetchMiddleware,u=r.disableRetryOnRateLimit,d=r.httpAgent),this._rpcEndpoint=zoe(t),this._rpcWsEndpoint=n||koe(t),this._rpcClient=$oe(t,a,i,o,u,d),this._rpcRequest=Koe(this._rpcClient),this._rpcBatchRequest=Xoe(this._rpcClient),this._rpcWebSocket=new Noe(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgs([t.toBase58()],n,void 0,a),o=await this._rpcRequest("getBalance",i),u=xt(o,Un(ze()));if("error"in u)throw new Ot(u.error,`failed to get balance for ${t.toBase58()}`);return u.result}async getBalance(t,r){return await this.getBalanceAndContext(t,r).then(n=>n.value).catch(n=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+n)})}async getBlockTime(t){const r=await this._rpcRequest("getBlockTime",[t]),n=xt(r,lr(Tt(ze())));if("error"in n)throw new Ot(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),r=xt(t,lr(ze()));if("error"in r)throw new Ot(r.error,"failed to get minimum ledger slot");return r.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),r=xt(t,ace);if("error"in r)throw new Ot(r.error,"failed to get first available block");return r.result}async getSupply(t){let r={};typeof t=="string"?r={commitment:t}:t?r={...t,commitment:t&&t.commitment||this.commitment}:r={commitment:this.commitment};const n=await this._rpcRequest("getSupply",[r]),a=xt(n,sce);if("error"in a)throw new Ot(a.error,"failed to get supply");return a.result}async getTokenSupply(t,r){const n=this._buildArgs([t.toBase58()],r),a=await this._rpcRequest("getTokenSupply",n),i=xt(a,Un(qb));if("error"in i)throw new Ot(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,r){const n=this._buildArgs([t.toBase58()],r),a=await this._rpcRequest("getTokenAccountBalance",n),i=xt(a,Un(qb));if("error"in i)throw new Ot(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,r,n){const{commitment:a,config:i}=ln(n);let o=[t.toBase58()];"mint"in r?o.push({mint:r.mint.toBase58()}):o.push({programId:r.programId.toBase58()});const u=this._buildArgs(o,a,"base64",i),d=await this._rpcRequest("getTokenAccountsByOwner",u),h=xt(d,cce);if("error"in h)throw new Ot(h.error,`failed to get token accounts owned by account ${t.toBase58()}`);return h.result}async getParsedTokenAccountsByOwner(t,r,n){let a=[t.toBase58()];"mint"in r?a.push({mint:r.mint.toBase58()}):a.push({programId:r.programId.toBase58()});const i=this._buildArgs(a,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),u=xt(o,lce);if("error"in u)throw new Ot(u.error,`failed to get token accounts owned by account ${t.toBase58()}`);return u.result}async getLargestAccounts(t){const r={...t,commitment:t&&t.commitment||this.commitment},n=r.filter||r.commitment?[r]:[],a=await this._rpcRequest("getLargestAccounts",n),i=xt(a,uce);if("error"in i)throw new Ot(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,r){const n=this._buildArgs([t.toBase58()],r),a=await this._rpcRequest("getTokenLargestAccounts",n),i=xt(a,oce);if("error"in i)throw new Ot(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgs([t.toBase58()],n,"base64",a),o=await this._rpcRequest("getAccountInfo",i),u=xt(o,Un(Tt(X1)));if("error"in u)throw new Ot(u.error,`failed to get info about account ${t.toBase58()}`);return u.result}async getParsedAccountInfo(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgs([t.toBase58()],n,"jsonParsed",a),o=await this._rpcRequest("getAccountInfo",i),u=xt(o,Un(Tt($b)));if("error"in u)throw new Ot(u.error,`failed to get info about account ${t.toBase58()}`);return u.result}async getAccountInfo(t,r){try{return(await this.getAccountInfoAndContext(t,r)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleParsedAccounts(t,r){const{commitment:n,config:a}=ln(r),i=t.map(h=>h.toBase58()),o=this._buildArgs([i],n,"jsonParsed",a),u=await this._rpcRequest("getMultipleAccounts",o),d=xt(u,Un(At(Tt($b))));if("error"in d)throw new Ot(d.error,`failed to get info for accounts ${i}`);return d.result}async getMultipleAccountsInfoAndContext(t,r){const{commitment:n,config:a}=ln(r),i=t.map(h=>h.toBase58()),o=this._buildArgs([i],n,"base64",a),u=await this._rpcRequest("getMultipleAccounts",o),d=xt(u,Un(At(Tt(X1))));if("error"in d)throw new Ot(d.error,`failed to get info for accounts ${i}`);return d.result}async getMultipleAccountsInfo(t,r){return(await this.getMultipleAccountsInfoAndContext(t,r)).value}async getStakeActivation(t,r,n){const{commitment:a,config:i}=ln(r),o=this._buildArgs([t.toBase58()],a,void 0,{...i,epoch:n??(i==null?void 0:i.epoch)}),u=await this._rpcRequest("getStakeActivation",o),d=xt(u,lr(pce));if("error"in d)throw new Ot(d.error,`failed to get Stake Activation ${t.toBase58()}`);return d.result}async getProgramAccounts(t,r){const{commitment:n,config:a}=ln(r),{encoding:i,...o}=a||{},u=this._buildArgs([t.toBase58()],n,i||"base64",{...o,...o.filters?{filters:fI(o.filters)}:null}),d=await this._rpcRequest("getProgramAccounts",u),h=At(fce),m=o.withContext===!0?xt(d,Un(h)):xt(d,lr(h));if("error"in m)throw new Ot(m.error,`failed to get accounts owned by program ${t.toBase58()}`);return m.result}async getParsedProgramAccounts(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgs([t.toBase58()],n,"jsonParsed",a),o=await this._rpcRequest("getProgramAccounts",i),u=xt(o,lr(At(hce)));if("error"in u)throw new Ot(u.error,`failed to get accounts owned by program ${t.toBase58()}`);return u.result}async confirmTransaction(t,r){var i;let n;if(typeof t=="string")n=t;else{const o=t;if((i=o.abortSignal)!=null&&i.aborted)return Promise.reject(o.abortSignal.reason);n=o.signature}let a;try{a=Ii.decode(n)}catch{throw new Error("signature must be base58 encoded: "+n)}return jr(a.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:r||this.commitment,signature:n}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:r||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:r||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((r,n)=>{t!=null&&(t.aborted?n(t.reason):t.addEventListener("abort",()=>{n(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:r}){let n,a,i=!1;const o=new Promise((d,h)=>{try{n=this.onSignature(r,(b,v)=>{n=void 0;const C={context:v,value:b};d({__type:Yo.PROCESSED,response:C})},t);const m=new Promise(b=>{n==null?b():a=this._onSubscriptionStateChange(n,v=>{v==="subscribed"&&b()})});(async()=>{if(await m,i)return;const b=await this.getSignatureStatus(r);if(i||b==null)return;const{context:v,value:C}=b;if(C!=null)if(C!=null&&C.err)h(C.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(C.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(C.confirmationStatus==="processed"||C.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}i=!0,d({__type:Yo.PROCESSED,response:{context:v,value:C}})}})()}catch(m){h(m)}});return{abortConfirmation:()=>{a&&(a(),a=void 0),n!=null&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:o}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:r,lastValidBlockHeight:n,signature:a}}){let i=!1;const o=new Promise(b=>{const v=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let C=await v();if(!i){for(;C<=n;)if(await Yl(1e3),i||(C=await v(),i))return;b({__type:Yo.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:u,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:t,signature:a}),h=this.getCancellationPromise(r);let m;try{const b=await Promise.race([h,d,o]);if(b.__type===Yo.PROCESSED)m=b.response;else throw new uv(a)}finally{i=!0,u()}return m}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:r,minContextSlot:n,nonceAccountPubkey:a,nonceValue:i,signature:o}}){let u=!1;const d=new Promise(C=>{let E=i,T=null;const I=async()=>{try{const{context:S,value:D}=await this.getNonceAndContext(a,{commitment:t,minContextSlot:n});return T=S.slot,D==null?void 0:D.nonce}catch{return E}};(async()=>{if(E=await I(),!u)for(;;){if(i!==E){C({__type:Yo.NONCE_INVALID,slotInWhichNonceDidAdvance:T});return}if(await Yl(2e3),u||(E=await I(),u))return}})()}),{abortConfirmation:h,confirmationPromise:m}=this.getTransactionConfirmationPromise({commitment:t,signature:o}),b=this.getCancellationPromise(r);let v;try{const C=await Promise.race([b,m,d]);if(C.__type===Yo.PROCESSED)v=C.response;else{let E;for(;;){const T=await this.getSignatureStatus(o);if(T==null)break;if(T.context.slot<(C.slotInWhichNonceDidAdvance??n)){await Yl(400);continue}E=T;break}if(E!=null&&E.value){const T=t||"finalized",{confirmationStatus:I}=E.value;switch(T){case"processed":case"recent":if(I!=="processed"&&I!=="confirmed"&&I!=="finalized")throw new Tu(o);break;case"confirmed":case"single":case"singleGossip":if(I!=="confirmed"&&I!=="finalized")throw new Tu(o);break;case"finalized":case"max":case"root":if(I!=="finalized")throw new Tu(o);break;default:}v={context:E.context,value:{err:E.value.err}}}else throw new Tu(o)}}finally{u=!0,h()}return v}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:r}){let n;const a=new Promise(d=>{let h=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{h=this._confirmTransactionInitialTimeout||3e4;break}}n=setTimeout(()=>d({__type:Yo.TIMED_OUT,timeoutMs:h}),h)}),{abortConfirmation:i,confirmationPromise:o}=this.getTransactionConfirmationPromise({commitment:t,signature:r});let u;try{const d=await Promise.race([o,a]);if(d.__type===Yo.PROCESSED)u=d.response;else throw new fv(r,d.timeoutMs/1e3)}finally{clearTimeout(n),i()}return u}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),r=xt(t,lr(At(Sce)));if("error"in r)throw new Ot(r.error,"failed to get cluster nodes");return r.result}async getVoteAccounts(t){const r=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",r),a=xt(n,Dce);if("error"in a)throw new Ot(a.error,"failed to get vote accounts");return a.result}async getSlot(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getSlot",a),o=xt(i,lr(ze()));if("error"in o)throw new Ot(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getSlotLeader",a),o=xt(i,lr(bt()));if("error"in o)throw new Ot(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,r){const n=[t,r],a=await this._rpcRequest("getSlotLeaders",n),i=xt(a,lr(At(Sn)));if("error"in i)throw new Ot(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,r){const{context:n,value:a}=await this.getSignatureStatuses([t],r);jr(a.length===1);const i=a[0];return{context:n,value:i}}async getSignatureStatuses(t,r){const n=[t];r&&n.push(r);const a=await this._rpcRequest("getSignatureStatuses",n),i=xt(a,Nce);if("error"in i)throw new Ot(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getTransactionCount",a),o=xt(i,lr(ze()));if("error"in o)throw new Ot(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const r=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",r),a=xt(n,Joe);if("error"in a)throw new Ot(a.error,"failed to get inflation");return a.result}async getInflationReward(t,r,n){const{commitment:a,config:i}=ln(n),o=this._buildArgs([t.map(h=>h.toBase58())],a,void 0,{...i,epoch:r??(i==null?void 0:i.epoch)}),u=await this._rpcRequest("getInflationReward",o),d=xt(u,Ooe);if("error"in d)throw new Ot(d.error,"failed to get inflation reward");return d.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),r=xt(t,ece);if("error"in r)throw new Ot(r.error,"failed to get inflation rate");return r.result}async getEpochInfo(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getEpochInfo",a),o=xt(i,rce);if("error"in o)throw new Ot(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),r=xt(t,nce);if("error"in r)throw new Ot(r.error,"failed to get epoch schedule");const n=r.result;return new SR(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),r=xt(t,ice);if("error"in r)throw new Ot(r.error,"failed to get leader schedule");return r.result}async getMinimumBalanceForRentExemption(t,r){const n=this._buildArgs([t],r),a=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=xt(a,Lce);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const{context:r,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(t);return{context:r,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){const r=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=xt(r,Yce);if("error"in n)throw new Ot(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,r){const n=this._buildArgs([t],r),a=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=xt(a,Zce);if("error"in i)throw new Ot(i.error,"failed to get fee calculator");const{context:o,value:u}=i.result;return{context:o,value:u!==null?u.feeCalculator:null}}async getFeeForMessage(t,r){const n=ur(t.serialize()).toString("base64"),a=this._buildArgs([n],r),i=await this._rpcRequest("getFeeForMessage",a),o=xt(i,Un(Tt(ze())));if("error"in o)throw new Ot(o.error,"failed to get fee for message");if(o.result===null)throw new Error("invalid blockhash");return o.result}async getRecentPrioritizationFees(t){var o;const r=(o=t==null?void 0:t.lockedWritableAccounts)==null?void 0:o.map(u=>u.toBase58()),n=r!=null&&r.length?[r]:[],a=await this._rpcRequest("getRecentPrioritizationFees",n),i=xt(a,tce);if("error"in i)throw new Ot(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhashAndContext(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getLatestBlockhash",a),o=xt(i,Pce);if("error"in o)throw new Ot(o.error,"failed to get latest blockhash");return o.result}async isBlockhashValid(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgs([t],n,void 0,a),o=await this._rpcRequest("isBlockhashValid",i),u=xt(o,Wce);if("error"in u)throw new Ot(u.error,"failed to determine if the blockhash `"+t+"`is valid");return u.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),r=xt(t,lr(Goe));if("error"in r)throw new Ot(r.error,"failed to get version");return r.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),r=xt(t,lr(bt()));if("error"in r)throw new Ot(r.error,"failed to get genesis hash");return r.result}async getBlock(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgsAtLeastConfirmed([t],n,void 0,a),o=await this._rpcRequest("getBlock",i);try{switch(a==null?void 0:a.transactionDetails){case"accounts":{const u=xt(o,_ce);if("error"in u)throw u.error;return u.result}case"none":{const u=xt(o,zce);if("error"in u)throw u.error;return u.result}default:{const u=xt(o,kce);if("error"in u)throw u.error;const{result:d}=u;return d?{...d,transactions:d.transactions.map(({transaction:h,meta:m,version:b})=>({meta:m,transaction:{...h,message:Ay(b,h.message)},version:b}))}:null}}}catch(u){throw new Ot(u,"failed to get confirmed block")}}async getParsedBlock(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",a),o=await this._rpcRequest("getBlock",i);try{switch(a==null?void 0:a.transactionDetails){case"accounts":{const u=xt(o,Oce);if("error"in u)throw u.error;return u.result}case"none":{const u=xt(o,Rce);if("error"in u)throw u.error;return u.result}default:{const u=xt(o,Fce);if("error"in u)throw u.error;return u.result}}}catch(u){throw new Ot(u,"failed to get block")}}async getBlockProduction(t){let r,n;if(typeof t=="string")n=t;else if(t){const{commitment:u,...d}=t;n=u,r=d}const a=this._buildArgs([],n,"base64",r),i=await this._rpcRequest("getBlockProduction",a),o=xt(i,Voe);if("error"in o)throw new Ot(o.error,"failed to get block production information");return o.result}async getTransaction(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgsAtLeastConfirmed([t],n,void 0,a),o=await this._rpcRequest("getTransaction",i),u=xt(o,Ey);if("error"in u)throw new Ot(u.error,"failed to get transaction");const d=u.result;return d&&{...d,transaction:{...d.transaction,message:Ay(d.version,d.transaction.message)}}}async getParsedTransaction(t,r){const{commitment:n,config:a}=ln(r),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",a),o=await this._rpcRequest("getTransaction",i),u=xt(o,s4);if("error"in u)throw new Ot(u.error,"failed to get transaction");return u.result}async getParsedTransactions(t,r){const{commitment:n,config:a}=ln(r),i=t.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],n,"jsonParsed",a)}));return(await this._rpcBatchRequest(i)).map(d=>{const h=xt(d,s4);if("error"in h)throw new Ot(h.error,"failed to get transactions");return h.result})}async getTransactions(t,r){const{commitment:n,config:a}=ln(r),i=t.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],n,void 0,a)}));return(await this._rpcBatchRequest(i)).map(d=>{const h=xt(d,Ey);if("error"in h)throw new Ot(h.error,"failed to get transactions");const m=h.result;return m&&{...m,transaction:{...m.transaction,message:Ay(m.version,m.transaction.message)}}})}async getConfirmedBlock(t,r){const n=this._buildArgsAtLeastConfirmed([t],r),a=await this._rpcRequest("getBlock",n),i=xt(a,Uce);if("error"in i)throw new Ot(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const u={...o,transactions:o.transactions.map(({transaction:d,meta:h})=>{const m=new Ws(d.message);return{meta:h,transaction:{...d,message:m}}})};return{...u,transactions:u.transactions.map(({transaction:d,meta:h})=>({meta:h,transaction:Fr.populate(d.message,d.signatures)}))}}async getBlocks(t,r,n){const a=this._buildArgsAtLeastConfirmed(r!==void 0?[t,r]:[t],n),i=await this._rpcRequest("getBlocks",a),o=xt(i,lr(At(ze())));if("error"in o)throw new Ot(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),a=await this._rpcRequest("getBlock",n),i=xt(a,pI);if("error"in i)throw new Ot(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),a=await this._rpcRequest("getBlock",n),i=xt(a,pI);if("error"in i)throw new Ot(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,r){const n=this._buildArgsAtLeastConfirmed([t],r),a=await this._rpcRequest("getTransaction",n),i=xt(a,Ey);if("error"in i)throw new Ot(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const u=new Ws(o.transaction.message),d=o.transaction.signatures;return{...o,transaction:Fr.populate(u,d)}}async getParsedConfirmedTransaction(t,r){const n=this._buildArgsAtLeastConfirmed([t],r,"jsonParsed"),a=await this._rpcRequest("getTransaction",n),i=xt(a,s4);if("error"in i)throw new Ot(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,r){const n=t.map(o=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([o],r,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(o=>{const u=xt(o,s4);if("error"in u)throw new Ot(u.error,"failed to get confirmed transactions");return u.result})}async getConfirmedSignaturesForAddress(t,r,n){let a={},i=await this.getFirstAvailableBlock();for(;!("until"in a)&&(r--,!(r<=0||r<i));)try{const d=await this.getConfirmedBlockSignatures(r,"finalized");d.signatures.length>0&&(a.until=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}let o=await this.getSlot("finalized");for(;!("before"in a)&&(n++,!(n>o));)try{const d=await this.getConfirmedBlockSignatures(n);d.signatures.length>0&&(a.before=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}return(await this.getConfirmedSignaturesForAddress2(t,a)).map(d=>d.signature)}async getConfirmedSignaturesForAddress2(t,r,n){const a=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",a),o=xt(i,mce);if("error"in o)throw new Ot(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,r,n){const a=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),i=await this._rpcRequest("getSignaturesForAddress",a),o=xt(i,gce);if("error"in o)throw new Ot(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(t,r){const{context:n,value:a}=await this.getAccountInfoAndContext(t,r);let i=null;return a!==null&&(i=new Qb({key:t,state:Qb.deserialize(a.data)})),{context:n,value:i}}async getNonceAndContext(t,r){const{context:n,value:a}=await this.getAccountInfoAndContext(t,r);let i=null;return a!==null&&(i=b5.fromAccountData(a.data)),{context:n,value:i}}async getNonce(t,r){return await this.getNonceAndContext(t,r).then(n=>n.value).catch(n=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+n)})}async requestAirdrop(t,r){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),r]),a=xt(n,Gce);if("error"in a)throw new Ot(a.error,`airdrop to ${t.toBase58()} failed`);return a.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await Yl(100);const n=Date.now()-this._blockhashInfo.lastFetch>=TR;if(this._blockhashInfo.latestBlockhash!==null&&!n)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),r=this._blockhashInfo.latestBlockhash,n=r?r.blockhash:null;for(let a=0;a<50;a++){const i=await this.getLatestBlockhash("finalized");if(n!==i.blockhash)return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},i;await Yl(CR/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:r,config:n}=ln(t),a=this._buildArgs([],r,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",a),o=xt(i,Un(ze()));if("error"in o)throw new Ot(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(t,r,n){if("message"in t){const T=t.serialize(),I=vt.Buffer.from(T).toString("base64");if(Array.isArray(r)||n!==void 0)throw new Error("Invalid arguments");const S=r||{};S.encoding="base64","commitment"in S||(S.commitment=this.commitment),r&&typeof r=="object"&&"innerInstructions"in r&&(S.innerInstructions=r.innerInstructions);const D=[I,S],L=await this._rpcRequest("simulateTransaction",D),N=xt(L,dI);if("error"in N)throw new Error("failed to simulate transaction: "+N.error.message);return N.result}let a;if(t instanceof Fr){let E=t;a=new Fr,a.feePayer=E.feePayer,a.instructions=t.instructions,a.nonceInfo=E.nonceInfo,a.signatures=E.signatures}else a=Fr.populate(t),a._message=a._json=void 0;if(r!==void 0&&!Array.isArray(r))throw new Error("Invalid arguments");const i=r;if(a.nonceInfo&&i)a.sign(...i);else{let E=this._disableBlockhashCaching;for(;;){const T=await this._blockhashWithExpiryBlockHeight(E);if(a.lastValidBlockHeight=T.lastValidBlockHeight,a.recentBlockhash=T.blockhash,!i)break;if(a.sign(...i),!a.signature)throw new Error("!signature");const I=a.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(I)&&!this._blockhashInfo.transactionSignatures.includes(I)){this._blockhashInfo.simulatedSignatures.push(I);break}else E=!0}}const o=a._compile(),u=o.serialize(),h=a._serialize(u).toString("base64"),m={encoding:"base64",commitment:this.commitment};if(n){const E=(Array.isArray(n)?n:o.nonProgramIds()).map(T=>T.toBase58());m.accounts={encoding:"base64",addresses:E}}i&&(m.sigVerify=!0),r&&typeof r=="object"&&"innerInstructions"in r&&(m.innerInstructions=r.innerInstructions);const b=[h,m],v=await this._rpcRequest("simulateTransaction",b),C=xt(v,dI);if("error"in C){let E;if("data"in C.error&&(E=C.error.data.logs,E&&Array.isArray(E))){const T=`
|
|
125
|
-
`,I=T+E.join(T);console.error(C.error.message,I)}throw new K1({action:"simulate",signature:"",transactionMessage:C.error.message,logs:E})}return C.result}async sendTransaction(t,r,n){if("version"in t){if(r&&Array.isArray(r))throw new Error("Invalid arguments");const o=t.serialize();return await this.sendRawTransaction(o,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");const a=r;if(t.nonceInfo)t.sign(...a);else{let o=this._disableBlockhashCaching;for(;;){const u=await this._blockhashWithExpiryBlockHeight(o);if(t.lastValidBlockHeight=u.lastValidBlockHeight,t.recentBlockhash=u.blockhash,t.sign(...a),!t.signature)throw new Error("!signature");const d=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(d))o=!0;else{this._blockhashInfo.transactionSignatures.push(d);break}}}const i=t.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(t,r){const n=ur(t).toString("base64");return await this.sendEncodedTransaction(n,r)}async sendEncodedTransaction(t,r){const n={encoding:"base64"},a=r&&r.skipPreflight,i=a===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(n.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(n.minContextSlot=r.minContextSlot),a&&(n.skipPreflight=a),i&&(n.preflightCommitment=i);const o=[t,n],u=await this._rpcRequest("sendTransaction",o),d=xt(u,Qce);if("error"in d){let h;throw"data"in d.error&&(h=d.error.data.logs),new K1({action:a?"send":"simulate",signature:"",transactionMessage:d.error.message,logs:h})}return d.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,n])=>{this._setSubscription(r,{...n,state:"pending"})})}_setSubscription(t,r){var a;const n=(a=this._subscriptionsByHash[t])==null?void 0:a.state;if(this._subscriptionsByHash[t]=r,n!==r.state){const i=this._subscriptionStateChangeCallbacksByHash[t];i&&i.forEach(o=>{try{o(r.state)}catch{}})}}_onSubscriptionStateChange(t,r){var i;const n=this._subscriptionHashByClientSubscriptionId[t];if(n==null)return()=>{};const a=(i=this._subscriptionStateChangeCallbacksByHash)[n]||(i[n]=new Set);return a.add(r),()=>{a.delete(r),a.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,r=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const a=this._subscriptionsByHash[n];if(a!==void 0)switch(a.state){case"pending":case"unsubscribed":if(a.callbacks.size===0){delete this._subscriptionsByHash[n],a.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:o}=a;try{this._setSubscription(n,{...a,state:"subscribing"});const u=await this._rpcWebSocket.call(o,i);this._setSubscription(n,{...a,serverSubscriptionId:u,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[u]=a.callbacks,await this._updateSubscriptions()}catch(u){if(console.error(`Received ${u instanceof Error?"":"JSON-RPC "}error calling \`${o}\``,{args:i,error:u}),!r())return;this._setSubscription(n,{...a,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":a.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:o}=a;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...a,state:"unsubscribing"}),this._setSubscription(n,{...a,state:"unsubscribing"});try{await this._rpcWebSocket.call(o,[i])}catch(u){if(u instanceof Error&&console.error(`${o} error:`,u.message),!r())return;this._setSubscription(n,{...a,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...a,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,r){const n=this._subscriptionCallbacksByServerSubscriptionId[t];n!==void 0&&n.forEach(a=>{try{a(...r)}catch(i){console.error(i)}})}_wsOnAccountNotification(t){const{result:r,subscription:n}=xt(t,yce);this._handleServerNotification(n,[r.value,r.context])}_makeSubscription(t,r){const n=this._nextClientSubscriptionId++,a=lI([t.method,r]),i=this._subscriptionsByHash[a];return i===void 0?this._subscriptionsByHash[a]={...t,args:r,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const o=this._subscriptionsByHash[a];jr(o!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),o.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,r,n){const{commitment:a,config:i}=ln(n),o=this._buildArgs([t.toBase58()],a||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},o)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:r,subscription:n}=xt(t,Mce);this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(t,r,n,a){const{commitment:i,config:o}=ln(n),u=this._buildArgs([t.toBase58()],i||this._commitment||"finalized","base64",o||(a?{filters:fI(a)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},u)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,r,n){const a=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},a)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:r,subscription:n}=xt(t,Vce);this._handleServerNotification(n,[r.value,r.context])}_wsOnSlotNotification(t){const{result:r,subscription:n}=xt(t,vce);this._handleServerNotification(n,[r])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:r,subscription:n}=xt(t,Cce);this._handleServerNotification(n,[r])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,r){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${r}' events could not be found.`)}_buildArgs(t,r,n,a){const i=r||this._commitment;if(i||n||a){let o={};n&&(o.encoding=n),i&&(o.commitment=i),a&&(o=Object.assign(o,a)),t.push(o)}return t}_buildArgsAtLeastConfirmed(t,r,n,a){const i=r||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,r,n,a)}_wsOnSignatureNotification(t){const{result:r,subscription:n}=xt(t,Ace);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(t,r,n){const a=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(o,u)=>{if(o.type==="status"){r(o.result,u);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}onSignatureWithOptions(t,r,n){const{commitment:a,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],a,void 0,i),u=this._makeSubscription({callback:(d,h)=>{r(d,h);try{this.removeSignatureListener(u)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return u}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:r,subscription:n}=xt(t,Ece);this._handleServerNotification(n,[r])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Wu{constructor(t){this._keypair=void 0,this._keypair=t??aI()}static generate(){return new Wu(aI())}static fromSecretKey(t,r){if(t.byteLength!==64)throw new Error("bad secret key size");const n=t.slice(32,64);if(!r||!r.skipValidation){const a=t.slice(0,32),i=gp(a);for(let o=0;o<32;o++)if(n[o]!==i[o])throw new Error("provided secretKey is invalid")}return new Wu({publicKey:n,secretKey:t})}static fromSeed(t){const r=gp(t),n=new Uint8Array(64);return n.set(t),n.set(r,32),new Wu({publicKey:r,secretKey:n})}get publicKey(){return new ct(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const $o=Object.freeze({CreateLookupTable:{index:0,layout:zt([kt("instruction"),vf("recentSlot"),mr("bumpSeed")])},FreezeLookupTable:{index:1,layout:zt([kt("instruction")])},ExtendLookupTable:{index:2,layout:zt([kt("instruction"),vf(),ji(br(),sl(kt(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:zt([kt("instruction")])},CloseLookupTable:{index:4,layout:zt([kt("instruction")])}});class Kce{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries($o))if(o.index==n){a=i;break}if(!a)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return a}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:r}=Ur($o.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:r}=Ur($o.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:r.map(n=>new ct(n))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(bv.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}class bv{constructor(){}static createLookupTable(t){const[r,n]=ct.findProgramAddressSync([t.authority.toBuffer(),nv(BigInt(t.recentSlot),8)],this.programId),a=$o.CreateLookupTable,i=Sr(a,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),o=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:di.programId,isSigner:!1,isWritable:!1}];return[new nn({programId:this.programId,keys:o,data:i}),r]}static freezeLookupTable(t){const r=$o.FreezeLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new nn({programId:this.programId,keys:a,data:n})}static extendLookupTable(t){const r=$o.ExtendLookupTable,n=Sr(r,{addresses:t.addresses.map(i=>i.toBytes())}),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&a.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:di.programId,isSigner:!1,isWritable:!1}),new nn({programId:this.programId,keys:a,data:n})}static deactivateLookupTable(t){const r=$o.DeactivateLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new nn({programId:this.programId,keys:a,data:n})}static closeLookupTable(t){const r=$o.CloseLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new nn({programId:this.programId,keys:a,data:n})}}bv.programId=new ct("AddressLookupTab1e1111111111111111111111111");class Xce{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=mr("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(lo))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return a}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:r,additionalFee:n}=Ur(lo.RequestUnits,t.data);return{units:r,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:r}=Ur(lo.RequestHeapFrame,t.data);return{bytes:r}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:r}=Ur(lo.SetComputeUnitLimit,t.data);return{units:r}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:r}=Ur(lo.SetComputeUnitPrice,t.data);return{microLamports:r}}static checkProgramId(t){if(!t.equals(Mv.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const lo=Object.freeze({RequestUnits:{index:0,layout:zt([mr("instruction"),kt("units"),kt("additionalFee")])},RequestHeapFrame:{index:1,layout:zt([mr("instruction"),kt("bytes")])},SetComputeUnitLimit:{index:2,layout:zt([mr("instruction"),kt("units")])},SetComputeUnitPrice:{index:3,layout:zt([mr("instruction"),vf("microLamports")])}});class Mv{constructor(){}static requestUnits(t){const r=lo.RequestUnits,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const r=lo.RequestHeapFrame,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const r=lo.SetComputeUnitLimit,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const r=lo.SetComputeUnitPrice,n=Sr(r,{microLamports:BigInt(t.microLamports)});return new nn({keys:[],programId:this.programId,data:n})}}Mv.programId=new ct("ComputeBudget111111111111111111111111111111");const mI=64,gI=32,yI=64,bI=zt([mr("numSignatures"),mr("padding"),is("signatureOffset"),is("signatureInstructionIndex"),is("publicKeyOffset"),is("publicKeyInstructionIndex"),is("messageDataOffset"),is("messageDataSize"),is("messageInstructionIndex")]);class w5{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:a,instructionIndex:i}=t;jr(r.length===gI,`Public Key must be ${gI} bytes but received ${r.length} bytes`),jr(a.length===yI,`Signature must be ${yI} bytes but received ${a.length} bytes`);const o=bI.span,u=o+r.length,d=u+a.length,h=1,m=vt.Buffer.alloc(d+n.length),b=i??65535;return bI.encode({numSignatures:h,padding:0,signatureOffset:u,signatureInstructionIndex:b,publicKeyOffset:o,publicKeyInstructionIndex:b,messageDataOffset:d,messageDataSize:n.length,messageInstructionIndex:b},m),m.fill(r,o),m.fill(a,u),m.fill(n,d),new nn({keys:[],programId:w5.programId,data:m})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:a}=t;jr(r.length===mI,`Private key must be ${mI} bytes but received ${r.length} bytes`);try{const i=Wu.fromSecretKey(r),o=i.publicKey.toBytes(),u=cv(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:u,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}w5.programId=new ct("Ed25519SigVerify111111111111111111111111111");const Jce=(e,t)=>{const r=t0.sign(e,t);return[r.toCompactRawBytes(),r.recovery]};t0.utils.isValidPrivateKey;const ele=t0.getPublicKey,MI=32,Sy=20,xI=64,tle=11,Dy=zt([mr("numSignatures"),is("signatureOffset"),mr("signatureInstructionIndex"),is("ethAddressOffset"),mr("ethAddressInstructionIndex"),is("messageDataOffset"),is("messageDataSize"),mr("messageInstructionIndex"),rn(20,"ethAddress"),rn(64,"signature"),mr("recoveryId")]);class Hu{constructor(){}static publicKeyToEthAddress(t){jr(t.length===xI,`Public key must be ${xI} bytes but received ${t.length} bytes`);try{return vt.Buffer.from(np(ur(t))).slice(-Sy)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:a,recoveryId:i,instructionIndex:o}=t;return Hu.createInstructionWithEthAddress({ethAddress:Hu.publicKeyToEthAddress(r),message:n,signature:a,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:r,message:n,signature:a,recoveryId:i,instructionIndex:o=0}=t;let u;typeof r=="string"?r.startsWith("0x")?u=vt.Buffer.from(r.substr(2),"hex"):u=vt.Buffer.from(r,"hex"):u=r,jr(u.length===Sy,`Address must be ${Sy} bytes but received ${u.length} bytes`);const d=1+tle,h=d,m=d+u.length,b=m+a.length+1,v=1,C=vt.Buffer.alloc(Dy.span+n.length);return Dy.encode({numSignatures:v,signatureOffset:m,signatureInstructionIndex:o,ethAddressOffset:h,ethAddressInstructionIndex:o,messageDataOffset:b,messageDataSize:n.length,messageInstructionIndex:o,signature:ur(a),ethAddress:ur(u),recoveryId:i},C),C.fill(ur(n),Dy.span),new nn({keys:[],programId:Hu.programId,data:C})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:a}=t;jr(r.length===MI,`Private key must be ${MI} bytes but received ${r.length} bytes`);try{const i=ur(r),o=ele(i,!1).slice(1),u=vt.Buffer.from(np(ur(n))),[d,h]=Jce(u,i);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:d,recoveryId:h,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Hu.programId=new ct("KeccakSecp256k11111111111111111111111111111");var OR;const RR=new ct("StakeConfig11111111111111111111111111111111");class UR{constructor(t,r){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=r}}class n2{constructor(t,r,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=r,this.custodian=n}}OR=n2;n2.default=new OR(0,0,ct.default);class rle{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(li))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a StakeInstruction");return a}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:r,lockup:n}=Ur(li.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new UR(new ct(r.staker),new ct(r.withdrawer)),lockup:new n2(n.unixTimestamp,n.epoch,new ct(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),Ur(li.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,stakeAuthorizationType:n}=Ur(li.Authorize,t.data),a={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new ct(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(a.custodianPubkey=t.keys[3].pubkey),a}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:r,stakeAuthorizationType:n,authoritySeed:a,authorityOwner:i}=Ur(li.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:a,authorityOwner:new ct(i),newAuthorizedPubkey:new ct(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=Ur(li.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:r}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ur(li.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:r}=Ur(li.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:r};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ur(li.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(C5.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const li=Object.freeze({Initialize:{index:0,layout:zt([kt("instruction"),aoe(),soe()])},Authorize:{index:1,layout:zt([kt("instruction"),br("newAuthorized"),kt("stakeAuthorizationType")])},Delegate:{index:2,layout:zt([kt("instruction")])},Split:{index:3,layout:zt([kt("instruction"),Ta("lamports")])},Withdraw:{index:4,layout:zt([kt("instruction"),Ta("lamports")])},Deactivate:{index:5,layout:zt([kt("instruction")])},Merge:{index:7,layout:zt([kt("instruction")])},AuthorizeWithSeed:{index:8,layout:zt([kt("instruction"),br("newAuthorized"),kt("stakeAuthorizationType"),n0("authoritySeed"),br("authorityOwner")])}}),nle=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class C5{constructor(){}static initialize(t){const{stakePubkey:r,authorized:n,lockup:a}=t,i=a||n2.default,o=li.Initialize,u=Sr(o,{authorized:{staker:ur(n.staker.toBuffer()),withdrawer:ur(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:ur(i.custodian.toBuffer())}}),d={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:xf,isSigner:!1,isWritable:!1}],programId:this.programId,data:u};return new nn(d)}static createAccountWithSeed(t){const r=new Fr;r.add(di.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=t;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static createAccount(t){const r=new Fr;r.add(di.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=t;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static delegate(t){const{stakePubkey:r,authorizedPubkey:n,votePubkey:a}=t,i=li.Delegate,o=Sr(i);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:RR,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static authorize(t){const{stakePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,stakeAuthorizationType:i,custodianPubkey:o}=t,u=li.Authorize,d=Sr(u,{newAuthorized:ur(a.toBuffer()),stakeAuthorizationType:i.index}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&h.push({pubkey:o,isSigner:!0,isWritable:!1}),new Fr().add({keys:h,programId:this.programId,data:d})}static authorizeWithSeed(t){const{stakePubkey:r,authorityBase:n,authoritySeed:a,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:u,custodianPubkey:d}=t,h=li.AuthorizeWithSeed,m=Sr(h,{newAuthorized:ur(o.toBuffer()),stakeAuthorizationType:u.index,authoritySeed:a,authorityOwner:ur(i.toBuffer())}),b=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1}];return d&&b.push({pubkey:d,isSigner:!0,isWritable:!1}),new Fr().add({keys:b,programId:this.programId,data:m})}static splitInstruction(t){const{stakePubkey:r,authorizedPubkey:n,splitStakePubkey:a,lamports:i}=t,o=li.Split,u=Sr(o,{lamports:i});return new nn({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static split(t,r){const n=new Fr;return n.add(di.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),n.add(this.splitInstruction(t))}static splitWithSeed(t,r){const{stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,basePubkey:o,seed:u,lamports:d}=t,h=new Fr;return h.add(di.allocate({accountPubkey:i,basePubkey:o,seed:u,space:this.space,programId:this.programId})),r&&r>0&&h.add(di.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:r})),h.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,lamports:d}))}static merge(t){const{stakePubkey:r,sourceStakePubKey:n,authorizedPubkey:a}=t,i=li.Merge,o=Sr(i);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static withdraw(t){const{stakePubkey:r,authorizedPubkey:n,toPubkey:a,lamports:i,custodianPubkey:o}=t,u=li.Withdraw,d=Sr(u,{lamports:i}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&h.push({pubkey:o,isSigner:!0,isWritable:!1}),new Fr().add({keys:h,programId:this.programId,data:d})}static deactivate(t){const{stakePubkey:r,authorizedPubkey:n}=t,a=li.Deactivate,i=Sr(a);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}C5.programId=new ct("Stake11111111111111111111111111111111111111");C5.space=200;class PR{constructor(t,r,n,a){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=r,this.authorizedWithdrawer=n,this.commission=a}}class ile{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(uo))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a VoteInstruction");return a}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:r}=Ur(uo.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new PR(new ct(r.nodePubkey),new ct(r.authorizedVoter),new ct(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,voteAuthorizationType:n}=Ur(uo.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new ct(r),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorized:a,voteAuthorizationType:i}}=Ur(uo.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new ct(r),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new ct(a),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=Ur(uo.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:r,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(id.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const uo=Object.freeze({InitializeAccount:{index:0,layout:zt([kt("instruction"),ooe()])},Authorize:{index:1,layout:zt([kt("instruction"),br("newAuthorized"),kt("voteAuthorizationType")])},Withdraw:{index:3,layout:zt([kt("instruction"),Ta("lamports")])},UpdateValidatorIdentity:{index:4,layout:zt([kt("instruction")])},AuthorizeWithSeed:{index:10,layout:zt([kt("instruction"),coe()])}}),ale=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class id{constructor(){}static initializeAccount(t){const{votePubkey:r,nodePubkey:n,voteInit:a}=t,i=uo.InitializeAccount,o=Sr(i,{voteInit:{nodePubkey:ur(a.nodePubkey.toBuffer()),authorizedVoter:ur(a.authorizedVoter.toBuffer()),authorizedWithdrawer:ur(a.authorizedWithdrawer.toBuffer()),commission:a.commission}}),u={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:xf,isSigner:!1,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o};return new nn(u)}static createAccount(t){const r=new Fr;return r.add(di.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,voteAuthorizationType:i}=t,o=uo.Authorize,u=Sr(o,{newAuthorized:ur(a.toBuffer()),voteAuthorizationType:i.index}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:d,programId:this.programId,data:u})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:a,newAuthorizedPubkey:i,voteAuthorizationType:o,votePubkey:u}=t,d=uo.AuthorizeWithSeed,h=Sr(d,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ur(n.toBuffer()),currentAuthorityDerivedKeySeed:a,newAuthorized:ur(i.toBuffer()),voteAuthorizationType:o.index}}),m=[{pubkey:u,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Fr().add({keys:m,programId:this.programId,data:h})}static withdraw(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,lamports:a,toPubkey:i}=t,o=uo.Withdraw,u=Sr(o,{lamports:a}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:d,programId:this.programId,data:u})}static safeWithdraw(t,r,n){if(t.lamports>r-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return id.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,nodePubkey:a}=t,i=uo.UpdateValidatorIdentity,o=Sr(i),u=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:u,programId:this.programId,data:o})}}id.programId=new ct("Vote111111111111111111111111111111111111111");id.space=3762;const WR=new ct("Va1idator1nfo111111111111111111111111111111"),sle=it({name:bt(),website:Wt(bt()),details:Wt(bt()),iconUrl:Wt(bt()),keybaseUsername:Wt(bt())});class xv{constructor(t,r){this.key=void 0,this.info=void 0,this.key=t,this.info=r}static fromConfigData(t){let r=[...t];if(fa(r)!==2)return null;const a=[];for(let i=0;i<2;i++){const o=new ct(da(r,0,xo)),u=co(r)===1;a.push({publicKey:o,isSigner:u})}if(a[0].publicKey.equals(WR)&&a[1].isSigner){const i=n0().decode(vt.Buffer.from(r)),o=JSON.parse(i);return uR(o,sle),new xv(a[1].publicKey,o)}return null}}const ole=new ct("Vote111111111111111111111111111111111111111"),cle=zt([br("nodePubkey"),br("authorizedWithdrawer"),mr("commission"),Ci(),ji(zt([Ci("slot"),kt("confirmationCount")]),sl(kt(),-8),"votes"),mr("rootSlotValid"),Ci("rootSlot"),Ci(),ji(zt([Ci("epoch"),br("authorizedVoter")]),sl(kt(),-8),"authorizedVoters"),zt([ji(zt([br("authorizedPubkey"),Ci("epochOfLastAuthorizedSwitch"),Ci("targetEpoch")]),32,"buf"),Ci("idx"),mr("isEmpty")],"priorVoters"),Ci(),ji(zt([Ci("epoch"),Ci("credits"),Ci("prevCredits")]),sl(kt(),-8),"epochCredits"),zt([Ci("slot"),Ci("timestamp")],"lastTimestamp")]);class vv{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const n=cle.decode(ur(t),4);let a=n.rootSlot;return n.rootSlotValid||(a=null),new vv({nodePubkey:new ct(n.nodePubkey),authorizedWithdrawer:new ct(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:a,authorizedVoters:n.authorizedVoters.map(lle),priorVoters:ule(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function lle({authorizedVoter:e,epoch:t}){return{epoch:t,authorizedVoter:new ct(e)}}function vI({authorizedPubkey:e,epochOfLastAuthorizedSwitch:t,targetEpoch:r}){return{authorizedPubkey:new ct(e),epochOfLastAuthorizedSwitch:t,targetEpoch:r}}function ule({buf:e,idx:t,isEmpty:r}){return r?[]:[...e.slice(t+1).map(vI),...e.slice(0,t).map(vI)]}const wI={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function fle(e,t){const r=t===!1?"http":"https";if(!e)return wI[r].devnet;const n=wI[r][e];if(!n)throw new Error(`Unknown ${r} cluster: ${e}`);return n}async function dle(e,t,r,n){let a,i;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(a=r,i=n):i=r;const o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},u=await e.sendRawTransaction(t,o),d=i&&i.commitment,m=(await(a?e.confirmTransaction(a,d):e.confirmTransaction(u,d))).value;if(m.err)throw u!=null?new K1({action:o!=null&&o.skipPreflight?"send":"simulate",signature:u,transactionMessage:`Status: (${JSON.stringify(m)})`}):new Error(`Raw transaction ${u} failed (${JSON.stringify(m)})`);return u}const hle=1e9,e8e=Object.freeze(Object.defineProperty({__proto__:null,Account:roe,AddressLookupTableAccount:Qb,AddressLookupTableInstruction:Kce,AddressLookupTableProgram:bv,Authorized:UR,BLOCKHASH_CACHE_TIMEOUT_MS:TR,BPF_LOADER_DEPRECATED_PROGRAM_ID:noe,BPF_LOADER_PROGRAM_ID:Coe,BpfLoader:Aoe,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:lo,ComputeBudgetInstruction:Xce,ComputeBudgetProgram:Mv,Connection:v5,Ed25519Program:w5,Enum:eoe,EpochSchedule:SR,FeeCalculatorLayout:AR,Keypair:Wu,LAMPORTS_PER_SOL:hle,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:$o,Loader:j0,Lockup:n2,MAX_SEED_LENGTH:xR,Message:Ws,MessageAccountKeys:$1,MessageV0:L0,NONCE_ACCOUNT_LENGTH:Gb,NonceAccount:b5,PACKET_DATA_SIZE:ol,PUBLIC_KEY_LENGTH:xo,PublicKey:ct,SIGNATURE_LENGTH_IN_BYTES:V1,SOLANA_SCHEMA:s1,STAKE_CONFIG_ID:RR,STAKE_INSTRUCTION_LAYOUTS:li,SYSTEM_INSTRUCTION_LAYOUTS:un,SYSVAR_CLOCK_PUBKEY:no,SYSVAR_EPOCH_SCHEDULE_PUBKEY:hoe,SYSVAR_INSTRUCTIONS_PUBKEY:poe,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:a3,SYSVAR_RENT_PUBKEY:xf,SYSVAR_REWARDS_PUBKEY:moe,SYSVAR_SLOT_HASHES_PUBKEY:goe,SYSVAR_SLOT_HISTORY_PUBKEY:yoe,SYSVAR_STAKE_HISTORY_PUBKEY:s3,Secp256k1Program:Hu,SendTransactionError:K1,SolanaJSONRPCError:Ot,SolanaJSONRPCErrorCode:boe,StakeAuthorizationLayout:nle,StakeInstruction:rle,StakeProgram:C5,Struct:lv,SystemInstruction:voe,SystemProgram:di,Transaction:Fr,TransactionExpiredBlockheightExceededError:uv,TransactionExpiredNonceInvalidError:Tu,TransactionExpiredTimeoutError:fv,TransactionInstruction:nn,TransactionMessage:hv,TransactionStatus:Yo,VALIDATOR_INFO_KEY:WR,VERSION_PREFIX_MASK:g5,VOTE_PROGRAM_ID:ole,ValidatorInfo:xv,VersionedMessage:dv,VersionedTransaction:pv,VoteAccount:vv,VoteAuthorizationLayout:ale,VoteInit:PR,VoteInstruction:ile,VoteProgram:id,clusterApiUrl:fle,sendAndConfirmRawTransaction:dle,sendAndConfirmTransaction:Zb},Symbol.toStringTag,{value:"Module"})),HR="Solana",t8e="11111111111111111111111111111111",ql=class ql{constructor(t){Ye(this,"type","Native");Ye(this,"address");ql.instanceof(t)?this.address=t.address:fn.instanceof(t)?this.address=new ct(t.toUint8Array()):typeof t=="string"&&Xr.valid(t)?this.address=new ct(Xr.decode(t)):this.address=new ct(t)}unwrap(){return this.address}toString(){return this.address.toBase58()}toUint8Array(){return new Uint8Array(this.address.toBytes())}toNative(){return this}toUniversalAddress(){return new fn(this.toUint8Array())}static instanceof(t){return t.constructor.platform===ql.platform}equals(t){return ql.instanceof(t)?t.unwrap().equals(this.unwrap()):this.toUniversalAddress().equals(t)}};Ye(ql,"byteSize",32),Ye(ql,"platform",HR);let Kb=ql;Gf(HR,Kb);function ple(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let h=0;h<t.length;h++)t[h]=255;for(let h=0;h<e.length;h++){const m=e.charAt(h),b=m.charCodeAt(0);if(t[b]!==255)throw new TypeError(m+" is ambiguous");t[b]=h}const r=e.length,n=e.charAt(0),a=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function o(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";let m=0,b=0,v=0;const C=h.length;for(;v!==C&&h[v]===0;)v++,m++;const E=(C-v)*i+1>>>0,T=new Uint8Array(E);for(;v!==C;){let D=h[v],L=0;for(let N=E-1;(D!==0||L<b)&&N!==-1;N--,L++)D+=256*T[N]>>>0,T[N]=D%r>>>0,D=D/r>>>0;if(D!==0)throw new Error("Non-zero carry");b=L,v++}let I=E-b;for(;I!==E&&T[I]===0;)I++;let S=n.repeat(m);for(;I<E;++I)S+=e.charAt(T[I]);return S}function u(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let m=0,b=0,v=0;for(;h[m]===n;)b++,m++;const C=(h.length-m)*a+1>>>0,E=new Uint8Array(C);for(;m<h.length;){const D=h.charCodeAt(m);if(D>255)return;let L=t[D];if(L===255)return;let N=0;for(let _=C-1;(L!==0||N<v)&&_!==-1;_--,N++)L+=r*E[_]>>>0,E[_]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");v=N,m++}let T=C-v;for(;T!==C&&E[T]===0;)T++;const I=new Uint8Array(b+(C-T));let S=b;for(;T!==C;)I[S++]=E[T++];return I}function d(h){const m=u(h);if(m)return m;throw new Error("Non-base"+r+" character")}return{encode:o,decodeUnsafe:u,decode:d}}var mle="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const YR=ple(mle),gle=e=>YR.encode(e),yle=e=>YR.decode(e);function r8e(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}const Ty=8192;function ble(e){if(e.length<Ty)return btoa(String.fromCharCode(...e));let t="";for(var r=0;r<e.length;r+=Ty){const n=e.slice(r,r+Ty);t+=String.fromCharCode(...n)}return btoa(t)}function n8e(e){var a;const t=e.startsWith("0x")?e.slice(2):e,r=t.length%2===0?t:`0${t}`,n=((a=r.match(/[0-9a-fA-F]{2}/g))==null?void 0:a.map(i=>parseInt(i,16)))??[];if(n.length!==r.length/2)throw new Error(`Invalid hex string ${e}`);return Uint8Array.from(n)}function Mle(e){return e.reduce((t,r)=>t+r.toString(16).padStart(2,"0"),"")}function i8e(e,t){switch(t){case"base58":return gle(e);case"base64":return ble(e);case"hex":return Mle(e);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function xle(e,t=["<",">"]){const[r,n]=t,a=[];let i="",o=0;for(let u=0;u<e.length;u++){const d=e[u];if(d===r&&o++,d===n&&o--,o===0&&d===","){a.push(i.trim()),i="";continue}i+=d}return a.push(i.trim()),a}const vle=32;function wle(e){try{return yle(e).length===vle}catch{return!1}}const ZR=32;function GR(e){return Ele(e)&&Sle(e)===ZR}function a8e(e){return GR(e)}function Cle(e){return e.includes("::")?Ale(e):e}function Ale(e){const[t,r]=e.split("::"),n=e.slice(t.length+r.length+4),a=n.includes("<")?n.slice(0,n.indexOf("<")):n,i=n.includes("<")?xle(n.slice(n.indexOf("<")+1,n.lastIndexOf(">"))).map(o=>Cle(o.trim())):[];return{address:wv(t),module:r,name:a,typeParams:i}}function wv(e,t=!1){let r=e.toLowerCase();return!t&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(ZR*2,"0")}`}function s8e(e,t=!1){return wv(e,t)}function Ele(e){return/^(0x|0X)?[a-fA-F0-9]+$/.test(e)&&e.length%2===0}function Sle(e){return/^(0x|0X)/.test(e)?(e.length-2)/2:e.length/2}const o1="::",Dle="0x2::sui::SUI",Cv=e=>/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(e),Tle=e=>e.replace(/(0x)(0*)/g,"0x");function CI(e){return e=e.startsWith("0x")?e.slice(2):e,e=e.length%2===0?e:"0"+e,`0x${e.length===64?e:Xr.encode(ii.zpad(Xr.decode(e),32))}`}const o8e=e=>{const t=e.split(o1);if(t.length!==3)throw new Error(`Invalid Sui type: ${e}`);return[wv(t[0]),t[1],t[2]].join(o1)},c8e=e=>new J1(e).getCoinType(),l8e=e=>new J1(e).getPackageId(),u8e=e=>{const t=Tle(e).match(/0x2::table::Table<(.*)>/);if(!t)throw new Error(`Invalid table type: ${e}`);if(t.length<2)throw new Error(`Invalid table type: ${e}`);const[r]=t[1].split(",");if(!r||!Cv(r))throw new Error(`Invalid key type: ${r}`);return r},Vl=class Vl{constructor(t){Ye(this,"address");Ye(this,"module");if(Vl.instanceof(t))this.address=t.address,this.module=t.module;else if(fn.instanceof(t))this.address=t.toUint8Array();else if(typeof t=="string"){if(Cv(t)){const r=t.split(o1);this.module=r.slice(1).join(o1),t=r[0]}if(t=CI(t),!Xr.valid(t))throw new Error("Invalid Sui address: "+t);this.address=Xr.decode(t)}else this.address=t}unwrap(){const t=this.getPackageId(),r=this.module?o1+this.module:"";return`${t}${r}`}toString(){return this.unwrap()}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new fn(this.toUint8Array())}getPackageId(){return CI(Xr.encode(this.address))}getCoinType(){if(this.module==="sui::SUI")return Dle;if(!this.module)throw new Error("No module present in Sui token address");return this.unwrap()}static instanceof(t){return t.constructor.platform===Vl.platform}equals(t){return Vl.instanceof(t)?t.unwrap()===this.unwrap():this.toUniversalAddress().equals(t)}};Ye(Vl,"byteSize",32),Ye(Vl,"platform","Sui");let J1=Vl;Gf("Sui",J1);async function Ile(e){try{const t=await Promise.all(e.map(async r=>r()));return await Promise.all(t.map(async r=>await Nle(r))),t}catch(t){throw console.error("Failed to load required packages",t),t}}async function Nle(e,t){try{let r=Object.entries(e.protocols);await Promise.all(r.map(([,n])=>n()))}catch(r){throw console.error("Failed to load required packages",r),r}}async function Lle(e,t,r){const n=(await Ile(t)).map(a=>a.Platform);return new ar(e,n,r)}const jle="modulepreload",Ble=function(e){return"/"+e},AI={},ja=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(r.map(d=>{if(d=Ble(d),d in AI)return;AI[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const b=document.createElement("link");if(b.rel=h?"stylesheet":jle,h||(b.as="script"),b.crossOrigin="",b.href=d,u&&b.setAttribute("nonce",u),document.head.appendChild(b),h)return new Promise((v,C)=>{b.addEventListener("load",v),b.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return a.then(o=>{for(const u of o||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})},kle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/evm-CWAxZ2a7.js").then(t=>t.e);return{default:e}},__vite__mapDeps([0,1,2,3]))).default,zle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/solana-B3bc0p0T.js");return{default:e}},__vite__mapDeps([4,5,1]))).default,_le=async()=>(await ja(async()=>{const{default:e}=await import("./assets/aptos-BuLH7jck.js").then(t=>t.a);return{default:e}},__vite__mapDeps([6,1,7,8,9]))).default,Fle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/sui-CXoaI0gx.js").then(t=>t.s);return{default:e}},__vite__mapDeps([10,1,11,8]))).default,Ole="https://api.coingecko.com",Rle="https://pro-api.coingecko.com",EI={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Blast:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum"},Ule={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer"},Xb=async(e,t)=>{var a,i,o,u;const r=new Headers({...(a=Ce.coingecko)!=null&&a.apiKey?{"x-cg-pro-api-key":Ce.coingecko.apiKey}:{}}),n=(i=Ce.coingecko)!=null&&i.customUrl?Ce.coingecko.customUrl:(o=Ce.coingecko)!=null&&o.apiKey?Rle:Ole;return fetch(`${n}${e}`,{signal:(u=t==null?void 0:t.abort)==null?void 0:u.signal,headers:r}).then(d=>d.json()).catch(d=>(console.error("Error fetching from Coingecko",d),null))},Ple=async(e,t)=>Ce.network!=="Mainnet"?null:Xb(`/api/v3/coins/${e.chain.toLowerCase()}/contract/${e.address.toString()}`,t),Wle=async(e,t)=>{const r=new Av;if(Ce.network!=="Mainnet")return r;const n={},a=[];for(const u of e)pn(u.address)?a.push(u):(n[u.chain]===void 0&&(n[u.chain]=[]),n[u.chain].push(u.address.toString()));const i=Object.keys(n).map(u=>{const d=n[u];return new Promise((h,m)=>{const b=d.join(","),v=Ule[u]||u.toLowerCase();Xb(`/api/v3/simple/token_price/${v}?contract_addresses=${b}&vs_currencies=usd`,t).then(C=>{C.error!==void 0||C.error_code!==void 0?m(C.error):h(Object.keys(C).map(E=>{try{const T=ar.tokenId(u,E);return C[E]?{tokenId:T,price:C[E].usd}:null}catch(T){return console.error("Coingecko error",T),null}}).filter(E=>E!==null))}).catch(m)})});a.length>0&&i.push(new Promise((u,d)=>{const h=[];for(const m of a){const b=EI[m.chain];b?h.push(b):console.error(`Don't know a coingecko ID for native token for chain ${m.chain}`)}Xb(`/api/v3/simple/price?ids=${h.join(",")}&vs_currencies=usd`,t).then(m=>u(a.map(b=>{const v=EI[b.chain];if(v){const{usd:C}=m[v];return{tokenId:b,price:C}}else return null}).filter(b=>!!b))).catch(d)}));const o=(await Promise.allSettled(i)).map(u=>u.status==="fulfilled"?u.value:null).filter(u=>!!u).flat();for(const{tokenId:u,price:d}of o)r.add(u,d);return r},Hle=1,SI=typeof localStorage<"u";class B0{constructor(t,r){Ye(this,"chain");Ye(this,"addressString");Ye(this,"_address");this.chain=t,this.addressString=r}get address(){return pn(this.addressString)?this.addressString:(this._address||(this._address=xa(this.chain,this.addressString)),this._address)}static fromTokenTuple(t){return new B0(t[0],t[1])}}class wf extends B0{constructor(r,n,a,i,o,u,d){super(r,n);Ye(this,"decimals");Ye(this,"symbol");Ye(this,"name");Ye(this,"icon");Ye(this,"tokenBridgeOriginalTokenId");this.decimals=a,this.symbol=i,this.name=o,this.icon=u,this.tokenBridgeOriginalTokenId=d}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const r=this.addressString;return`${r.substring(0,5)}...${r.substring(r.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return cl(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return pn(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){var r;return((r=this.tokenBridgeOriginalTokenId)==null?void 0:r.chain)||this.chain}equals(r){return e7(this,r)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?QR(this.tokenBridgeOriginalTokenId):void 0}}static fromJson({chain:r,address:n,decimals:a,symbol:i,name:o,icon:u,tokenBridgeOriginalTokenId:d}){return new wf(r,n,a,i,o,u===""?void 0:u,d?A5(d):void 0)}}class Av{constructor(){Ye(this,"lastUpdate");Ye(this,"_localStorageKey");Ye(this,"_mapping");Ye(this,"size");this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(t,r){this._mapping.has(t.chain)||this._mapping.set(t.chain,new Map),this._mapping.get(t.chain).set(Jb(t).toLowerCase(),r),this.lastUpdate=new Date,this.size+=1}get(t,r){var n,a,i,o,u;if(typeof t=="string"&&typeof r=="string"&&kh(t))return(n=this._mapping.get(t))==null?void 0:n.get(r.toLowerCase());if(t instanceof B0)return(a=this._mapping.get(t.chain))==null?void 0:a.get(t.addressString.toLowerCase());if(Ph(t))return(i=this._mapping.get(t.chain))==null?void 0:i.get(t.address.toString().toLowerCase());if(Ev(t))return(o=this._mapping.get(t[0]))==null?void 0:o.get(t[1].toLowerCase());{const d=qR(t);return(u=this._mapping.get(d.chain))==null?void 0:u.get(Jb(d).toLowerCase())}}mustGet(t,r){const n=this.get(t,r);if(!n)throw new Error("Failed to get token");return n}getList(t){return t.map(r=>this.get(r)).filter(r=>r!==void 0)}getAllForChain(t){const r=this._mapping.get(t);return r?Array.from(r.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(t=>Array.from(t.values()))}get chains(){return Array.from(this._mapping.keys())}merge(t){t.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(t){this._mapping.forEach((r,n)=>{r.forEach((a,i)=>{const o=new B0(n,i);t(o,a)})})}get empty(){return this.size===0}}class bp extends Av{add(t){if(t.tokenBridgeOriginalTokenId){const r=this.get(t.tokenBridgeOriginalTokenId);r&&(t.icon=r.icon,t.name=r.name,t.symbol=r.symbol)}super.add(t,t)}getGasToken(t){return t==="Celo"?this.findBySymbol("Celo","CELO"):this.get(t,"native")}findByAddressOrSymbol(t,r){const n=this.get(t,r);if(n)return n;const a=this.findBySymbol(t,r);if(a)return a}queryBySymbol(t,r){return this.getAllForChain(t).filter(n=>{var a;return n.symbol.toLowerCase().startsWith(r.toLowerCase())||((a=n.name)==null?void 0:a.toLowerCase().startsWith(r.toLowerCase()))})}findBySymbol(t,r){let n=this.getAllForChain(t).filter(a=>a.symbol.toLowerCase()===r.toLowerCase());if(n.length>1&&(n=n.filter(a=>!a.isTokenBridgeWrappedToken)),n.length===1)return n[0];n.length>1&&console.error(`Ambiguous token symbol: ${r}`)}setLocalStorageKey(t){this._localStorageKey=t}async addFromTokenId(t){var v,C;if(t.chain==="Sui"&&!Cv(t.address.toString()))throw new Error(`Not a valid Sui token address: ${t.address.toString()}`);const r=await Ba(),n=r.getChain(t.chain),a=await n.getDecimals(t.address),i=await Ple(t);let o=((v=i==null?void 0:i.symbol)==null?void 0:v.toUpperCase())||"",u=(i==null?void 0:i.name)||"",d=((C=i==null?void 0:i.image)==null?void 0:C.large)||null;if(!o){const{getTokenMetadataFromRpc:E}=await ja(async()=>{const{getTokenMetadataFromRpc:I}=await import("./assets/tokens-DNQKjj3l.js");return{getTokenMetadataFromRpc:I}},__vite__mapDeps([12,3])),T=await E(t);T&&(console.info("Got metadata from RPC",T),o=T.symbol,u=T.name,d=T.icon)}let h;const m=await n.getTokenBridge();if(await m.isWrappedAsset(t.address)&&(h=await m.getOriginalAsset(t.address),fn.instanceof(h.address)&&(h.address=await r.getTokenNativeAddress(h.chain,h.chain,h.address)),h)){const E=this.get(h);E&&E.icon&&(d=E.icon,o=E.symbol)}const b=new wf(t.chain,Qi(t),a,o,u,d,h);return this.add(b),b}persist(){if(SI&&this._localStorageKey){const t={version:Hle,tokens:{}};this.forEach((n,a)=>{t.tokens[cl(n)]=a.toJson()});const r=JSON.stringify(t);localStorage.setItem(this._localStorageKey,r)}}static load(t){if(SI){const n=localStorage.getItem(t);if(n)try{const a=JSON.parse(n),i=new bp;i.setLocalStorageKey(t);for(const[,o]of Object.entries(a.tokens)){const u=wf.fromJson(o);i.add(u)}return i}catch(a){console.error("Error parsing cached TokenCache",a)}}const r=new bp;return r.setLocalStorageKey(t),r}}function Yle(e,t,r,n){const a=bp.load(`wormhole-connect:token-cache:${e}`);for(const{tokenId:i,symbol:o,name:u,icon:d,decimals:h}of t){const m=new wf(i.chain,i.address.toString(),h,o,u,d);a.add(m)}for(const i in r)for(const o in r[i]){const u=r[i][o];for(const d in u){const h=a.get(i,o);if(h){const m=u[d];let b=Hn(d)==="Evm"?18:8;b=Math.min(b,h.decimals);const v=new wf(d,m,b,h.symbol,h.name,h.icon,h);a.add(v)}}}return a.persist(),a}function Ev(e){return Array.isArray(e)&&e.length==2&&kh(e[0])}function QR(e){return[e.chain,Jb(e)]}function A5(e){return B0.fromTokenTuple(e)}function cl(e){return JSON.stringify(QR(e))}function qR(e){const t=JSON.parse(e);if(Ev(t))return A5(t);throw new Error(`Invalid token key "${e}"; couldn't parse`)}function Jb(e){return e instanceof B0?e.addressString:e.address.toString()}function e7(e,t){return e.chain===t.chain&&e.addressString===t.addressString}const Zle="insufficient_allowance",DI="insufficient_gas",Gle="amount_too_large",Qle="amount_too_small",VR="user_rejected",qle="user_timeout",Vle="unknown",$le="relay_failed",Kle=/insufficient token allowance/im,TI=/insufficient lamports.*?(\d+).*?(\d+)/im,Xle=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature","mi"),Jle=new RegExp("AmountInTooSmall","m");function t7(e,t){let r="Error with transfer, please try again",n=Vle;if(e.message){if(e instanceof oF)r=e.message,n=$le;else if(Kle.test(e==null?void 0:e.message))r="Error with transfer, please try again",n=Zle;else if(e.name==="TransactionExpiredTimeoutError"||e.name==="TransactionExpiredBlockheightExceededError")r="Transfer timed out, please try again",n=qle;else if(K9.MESSAGE_REGEX.test(e==null?void 0:e.message))r="Insufficient funds",n=DI;else if(Xle.test(e==null?void 0:e.message))r="Transfer rejected in wallet, please try again",n=VR;else if(Jle.test(e==null?void 0:e.message))r="Amount is too small for the selected route",n=Qle;else if(t.route.includes("CCTP")&&/burn.*exceed/i.test(e==null?void 0:e.toString())){const{amount:i}=t;r=`Amount exceeds Circle limit${i!==void 0&&bo(i)>1e6?" of 1,000,000":""}. Please reduce transfer amount.`,n=Gle}else if(TI.test(e==null?void 0:e.message)){const a=e==null?void 0:e.message.match(TI),i=a==null?void 0:a[1],o=a==null?void 0:a[2];if(r="Insufficient funds for gas.",i&&o){const u=Yr(i,9),d=Yr(o,9);r+=` Current balance is ${mn(u)} SOL, but required ${mn(d)} SOL`}n=DI}}return[r,{type:n,original:e}]}function $R(e,t){e instanceof Error&&e.message.startsWith("No protocols registered for")||console.error(t?`${t}: ${e}`:e)}const Sv=e=>{const t=e.decode.bind(e),r=e.encode.bind(e);return{decode:t,encode:r}},e0e=e=>t=>{const r=rn(e,t),{encode:n,decode:a}=Sv(r),i=r;return i.decode=(o,u)=>{const d=a(o,u);return lR(Je.Buffer.from(d))},i.encode=(o,u,d)=>{const h=nv(o,e);return n(h,u,d)},i},o3=e0e(8),KR=e=>{const t=mr(e),{encode:r,decode:n}=Sv(t),a=t;return a.decode=(i,o)=>!!n(i,o),a.encode=(i,o,u)=>{const d=Number(i);return r(d,o,u)},a},Ei=e=>{const t=rn(32,e),{encode:r,decode:n}=Sv(t),a=t;return a.decode=(i,o)=>{const u=n(i,o);return new ct(u)},a.encode=(i,o,u)=>{const d=i.toBuffer();return r(d,o,u)},a};class f8e extends Error{constructor(){super("Not supported")}}class d8e extends Error{constructor(){super("Not connected")}}var II;(function(e){e.SignTransaction="SignTransaction",e.SendTransaction="SendTransaction",e.SignAndSendTransaction="SignAndSendTransaction",e.SignMessage="SignMessage"})(II||(II={}));var eh;(function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"})(eh||(eh={}));class t0e extends ov{getWalletState(){return eh.Installed}supportsFeature(t){const r=this.getFeatures();return Array.isArray(t)?t.every(n=>r.includes(n)):r.includes(t)}}const Jr={unset:0,solana:1,ethereum:2,terra:3,bsc:4,polygon:5,avalanche:6,oasis:7,algorand:8,aurora:9,fantom:10,karura:11,acala:12,klaytn:13,celo:14,near:15,moonbeam:16,neon:17,terra2:18,injective:19,osmosis:20,sui:21,aptos:22,arbitrum:23,optimism:24,gnosis:25,pythnet:26,xpla:28,btc:29,base:30,sei:32,rootstock:33,scroll:34,mantle:35,blast:36,xlayer:37,linea:38,berachain:39,seievm:40,unichain:44,worldchain:45,monad:48,wormchain:3104,cosmoshub:4e3,evmos:4001,kujira:4002,neutron:4003,celestia:4004,stargaze:4005,seda:4006,dymension:4007,provenance:4008,sepolia:10002,arbitrum_sepolia:10003,base_sepolia:10004,optimism_sepolia:10005,holesky:10006,polygon_sepolia:10007};Object.entries(Jr).reduce((e,[t,r])=>(e[r]=t,e),{});const h8e=Jr.solana,r0e=Jr.ethereum,n0e=Jr.bsc,i0e=Jr.polygon,a0e=Jr.avalanche,s0e=Jr.oasis,o0e=Jr.aurora,c0e=Jr.fantom,l0e=Jr.karura,u0e=Jr.acala,f0e=Jr.klaytn,d0e=Jr.celo,h0e=Jr.moonbeam,p0e=Jr.neon,p8e=Jr.sui,m8e=Jr.aptos,m0e=Jr.arbitrum,g0e=Jr.optimism,y0e=Jr.gnosis,b0e=Jr.base,M0e=Jr.scroll,x0e=Jr.mantle,v0e=Jr.blast,w0e=Jr.xlayer,C0e=Jr.worldchain,A0e=Jr.unichain,E0e=Jr.monad;function g8e(e){return e===r0e||e===n0e||e===a0e||e===i0e||e===s0e||e===o0e||e===c0e||e===l0e||e===u0e||e===f0e||e===d0e||e===h0e||e===p0e||e===m0e||e===g0e||e===y0e||e===b0e||e===M0e||e===C0e||e===v0e||e===w0e||e===x0e||e===A0e||e===E0e}const Lp=class Lp extends t0e{constructor(r,n){super();Ye(this,"_isConnected",!0);this._address=r,this._chain=n}getName(){return Lp.NAME}getUrl(){return""}async connect(){return this._isConnected=!0,this.emit("connect"),[this._address.toString()]}async disconnect(){this._isConnected=!1,this.emit("disconnect")}getChainId(){return W6(this._chain)}getNetworkInfo(){throw new Error("Method not implemented.")}getAddress(){return this._address.toString()}getAddresses(){return[this.getAddress()]}setMainAddress(r){}async getBalance(){throw new Error("Address only wallet cannot fetch balance")}isConnected(){return this._isConnected}getIcon(){return""}async signTransaction(r){throw new Error("Address only wallet cannot sign transactions")}async sendTransaction(r){throw new Error("Address only wallet cannot send transactions")}async signMessage(r){throw new Error("Address only wallet cannot sign messages")}async signAndSendTransaction(r){throw new Error("Address only wallet cannot sign or send transactions")}getFeatures(){return[]}supportsChain(r){return this.getChainId()===r}};Ye(Lp,"NAME","ReadyOnlyWallet");let Cf=Lp;const c1={address:"",type:void 0,currentAddress:"",error:"",icon:void 0,name:""},NI={sending:c1,receiving:c1},XR=Uf({name:"wallet",initialState:NI,reducers:{connectWallet:(e,{payload:t})=>{e.sending.address=t.address,e.sending.currentAddress=t.address,e.sending.type=t.type,e.sending.name=t.name,e.sending.error="",e.sending.icon=t.icon},connectReceivingWallet:(e,{payload:t})=>{e.receiving.address=t.address,e.receiving.currentAddress=t.address,e.receiving.type=t.type,e.receiving.name=t.name,e.receiving.error="",e.receiving.icon=t.icon},clearWallet:(e,{payload:t})=>{e[t]=c1},disconnectWallet:(e,{payload:t})=>{jI(t),e[t]=c1},setWalletError:(e,{payload:t})=>{const{type:r,error:n}=t;e[r].error=n},setAddress:(e,{payload:t})=>{const{type:r,address:n}=t;e[r].address=n,e[r].currentAddress=n},clearWallets:e=>{Object.keys(e).forEach(t=>{e[t]=NI[t]})},swapWallets:e=>{const t=e.sending;e.sending=e.receiving,e.receiving=t,k0e(),e.sending.name===Cf.NAME&&(jI(qn.SENDING),e[qn.SENDING]=c1)}}}),{connectWallet:S0e,connectReceivingWallet:D0e,clearWallet:Mp,setAddress:y8e,setWalletError:T0e,clearWallets:I0e,disconnectWallet:N0e,swapWallets:L0e}=XR.actions,j0e=XR.reducer;var qn=(e=>(e.SENDING="sending",e.RECEIVING="receiving",e))(qn||{});const i0={sending:void 0,receiving:void 0},JR=e=>e?Ce.chainsArr.filter(t=>Hn(t.sdkName)===e).map(t=>t.sdkName):Ce.chainsArr.map(t=>t.sdkName),B0e=(e,t)=>{i0[e]=t},r7=async(e,t,r,n)=>{const{wallet:a,name:i}=r;if(B0e(e,a),!Ce.chains[t])throw new Error(`Unable to find wallets for chain ${t}`);const u=Hn(t),d=Fz.get(Ce.network,t);try{const b=typeof d=="bigint"?Number(d):d;await a.connect({chainId:b})}catch(b){if(b.message&&b.message.toLowerCase().includes("rejected"))return console.info("User rejected wallet connection"),!1;throw b}Ce.triggerEvent({type:"wallet.connect",details:{side:e,chain:t,wallet:r.name.toLowerCase()}});const h=a.getAddress(),m={address:h,type:r.type,icon:a.getIcon(),name:a.getName()};return n(e==="sending"?S0e(m):D0e(m)),a.on("disconnect",()=>{a.removeAllListeners(),setTimeout(()=>{n(Mp(e))},0),localStorage.removeItem(`wormhole-connect:wallet:${u}`)}),a.on("accountsChanged",b=>{(b.length===0||b.length&&h&&b[0]!==h)&&a.disconnect()}),i!==Cf.NAME&&localStorage.setItem(`wormhole-connect:wallet:${u}`,i),!0},LI=async(e,t,r)=>{const n=Ce.chains[t],a=`wormhole-connect:wallet:${Hn(n.sdkName)}`,i=localStorage.getItem(a);if(i&&i!=="WalletConnect"){const u=(await tU(n)).find(d=>d.name===i);if(u)try{await r7(e,t,u,r)||localStorage.removeItem(a)}catch(d){throw localStorage.removeItem(a),new Error(`Failed to autoconnect to wallet ${i} for ${t}: ${d.message}`)}}},eU=()=>{const e=oi(),{toChain:t,fromChain:r}=Lr(n=>n.transferInput);Y.useEffect(()=>{let n=!1;return(async()=>{r&&!n&&await LI("sending",r,e),t&&!n&&await LI("receiving",t,e)})(),()=>{n=!0}},[r,t])},k0e=()=>{const e=i0.sending;i0.sending=i0.receiving,i0.receiving=e},jI=async e=>{const t=i0[e];t&&await t.disconnect()},z0e=async(e,t,r,n={})=>{const a=Ce.chains[e],i=i0[r];if(!i)throw new Error("wallet is undefined");const o=Hn(a.sdkName);if(o==="Evm")return await(await ja(()=>import("./assets/evm-fcQsoqVd.js").then(h=>h.g),__vite__mapDeps([13,14,2,3]))).signAndSendTransaction(t,i,e);if(o==="Solana")return await(await ja(()=>import("./assets/solana-D0M1N7L4.js").then(h=>h.a5),__vite__mapDeps([15,16,17,5,1,18,14]))).signAndSendTransaction(t,i,n);if(o==="Sui")return(await(await ja(()=>import("./assets/sui-DXdm7DBB.js"),__vite__mapDeps([19,17,16,11]))).signAndSendTransaction(t,i)).id;if(o==="Aptos")return(await(await ja(()=>import("./assets/aptos-gb8snog6.js"),__vite__mapDeps([20,7,8,9,17]))).signAndSendTransaction(t,i)).id;throw new Error("unimplemented")},_0e=e=>{const t=e.getWalletState();return t!==eh.Unsupported&&t!==eh.NotDetected},o4=(e,t,r=[])=>Object.values(e).filter((n,a,i)=>a===i.findIndex(o=>o.getName()===n.getName())).filter(n=>!r.includes(n.getName())).map(n=>({wallet:n,type:t,name:n.getName(),icon:n.getIcon(),isReady:_0e(n)})),tU=async e=>{if(e===void 0)return[];const t=Hn(e.sdkName);if(t==="Evm"){const r=await ja(()=>import("./assets/evm-fcQsoqVd.js").then(n=>n.g),__vite__mapDeps([13,14,2,3]));return Object.values(o4(r.getWallets(),t))}else if(t==="Solana"){const n=(await ja(()=>import("./assets/solana-D0M1N7L4.js").then(a=>a.a5),__vite__mapDeps([15,16,17,5,1,18,14]))).fetchOptions();return Object.values(o4(n,t))}else if(t==="Sui"){const n=await(await ja(()=>import("./assets/sui-DXdm7DBB.js"),__vite__mapDeps([19,17,16,11]))).fetchOptions();return Object.values(o4(n,t))}else if(t==="Aptos"){const n=(await ja(()=>import("./assets/aptos-gb8snog6.js"),__vite__mapDeps([20,7,8,9,17]))).fetchOptions();return Object.values(o4(n,t))}return[]};class th{constructor(t,r,n,a,i){Ye(this,"_chain");Ye(this,"_chainContextV2");Ye(this,"_address");Ye(this,"_options");Ye(this,"_walletType");this._chain=t,this._chainContextV2=r,this._address=n,this._options=a,this._walletType=i}static async fromChain(t,r,n,a){const o=(await Ba()).getPlatform(Hn(t)).getChain(t);return new th(t,o,r,n,a)}static async fromPrivateKey(t){const a=(await Ba()).getPlatform(Hn(t)).getChain(t).platform.utils()._platform;switch(a){case"Evm":throw new Error("Missing Ethereum private key");case"Solana":throw new Error("Missing Solana private key");case"Sui":throw new Error("Missing Sui private key");default:throw new Error(`Unrecognized platform: ${a}`)}}async signAndSend(t){const r=[];for(const n of t){const a=await z0e(this._chain,n,this._walletType,this._options);r.push(a)}return r}chain(){return this._chainContextV2.chain}address(){return this._address}}class F0e{constructor(t){Ye(this,"cache",new Map);Ye(this,"pendingRequests",new Map);this.TTLms=t}async requestWithCache(t,r){const n=Date.now(),a=this.cache.get(t);if(a&&n-a.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),a.isError)throw a.value;return a.value}let i=this.pendingRequests.get(t);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=r().then(o=>(this.cache.set(t,{value:o,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(t),o)).catch(o=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(t,{value:o,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(t),o}),this.pendingRequests.set(t,i)),i}}function O0e(e){return e.length===22?e:`0x${e.slice(e.length-40,e.length)}`}function x0(e,t=6){return e.slice(0,t)+"..."+e.slice(e.length-4,e.length)}function R0e(e,t=6,r=4){const n=e.slice(0,t),a=e.slice(e.length-r,e.length);return`${n}...${a}`}function rU(e,t){return e?e==="Evm"?x0(O0e(t)):e==="Solana"?x0(t,4):x0(t):""}function BI(e){const t=Ce.tokens.getGasToken(e);if(!t)throw new Error(`gas token not found for ${e}`);return t}function U0e(e){const t=Ce.chains[e];return t?t.displayName:e}function kI(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(t)}}function nU(e){return navigator.clipboard&&navigator.clipboard.writeText(e).then(function(){return!0},function(){return kI(e)}),kI(e)}function P0e(e){return e.startsWith("0x")?e:`0x${e}`}function W0e(e,t){return e==="Sui"?wle(t):e==="Sei"?c5(P0e(t),32):t.startsWith("0x")&&t.length===66?!0:t.length>70&&t.length<100}function H0e(e){const t=Y.useRef(void 0);return Y.useEffect(()=>{t.current=e}),t.current}async function n7(e){return new Promise(t=>setTimeout(t,e))}const iU=e=>typeof e>"u"?"":e===0?"$0":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(e),a0=(e,t,r)=>{if(typeof t>"u"||!r)return;const n=e(r);if(n)return typeof t=="number"?t*n:bo(t)*n},sc=(e,t,r)=>iU(a0(e,t,r)),aU=e=>{if(e==null)return!0;for(const t in e)if(e.hasOwnProperty.call(e,t))return!1;return!0},l1=(e,t,r)=>{const a=Ce.chains[e].explorerUrl;switch(r){case"wallet":return e==="Aptos"?`${a}account/${t}`:`${a}address/${t}`;case"tx":return e==="Aptos"?`${a}txn/${t}`:`${a}tx/${t}`;default:switch(e){case"Sui":return`${a}coin/${t}`;case"Aptos":return`${a}${c5(t)?"fungible_asset":"coin"}/${t}`;case"Fantom":case"Solana":return`${a}address/${t}`;default:return`${a}token/${t}`}}},sU=(e,t)=>{if(!e.isTokenBridgeWrappedToken)return!1;const{nativeChain:r,symbol:n}=e;return n==="USDC"&&r==="Ethereum"&&t==="Fantom"||e.symbol==="tBTC"?!0:!["Ethereum","Sepolia"].includes(r)&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(n)},oU=e=>e>=2*6e4?`~${Math.ceil(e/6e4)} min`:`~${Math.ceil(e/1e3)} sec`,Y0e=e=>{if(e>864e5){const a=Math.floor(e/864e5);return`~${a} ${a===1?"day":"days"} ago`}else if(e>36e5){const a=Math.floor(e/36e5);return`~${a} ${a===1?"hour":"hours"} ago`}else if(e>6e4){const a=Math.floor(e/6e4);return`~${a} ${a===1?"minute":"minutes"} ago`}else return"~1 minute ago"},Z0e=e=>{if(e<60)return e===1?`${e} second`:`${e} seconds`;if(e<3600){const t=Math.floor(e/60);return t===1?`${t} minute`:`${t} minutes`}else{const t=Math.floor(e/3600);return t===1?`${t} hour`:`${t} hours`}},u1=e=>e?e.endsWith("ExecutorRoute"):!1;class G0e{constructor(t){Ye(this,"IS_TOKEN_BRIDGE_ROUTE",!1);Ye(this,"tokenCache",new F0e(24*60*60*1e3));this.rc=t,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","CosmosGateway"].includes(t.meta.name)}get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(t){const n=(await Ba()).getPlatform(Hn(t)).getChain(t);return{chain:t,context:n}}async isRouteSupported(t,r,n,a){const i=await this.getV2ChainContext(n),o=await this.getV2ChainContext(a),u=this.rc.supportedChains(Ce.network),d=u.includes(i.chain),h=u.includes(o.chain);if(!d||!h)return!1;try{return!!(await this.supportedDestTokens(t,n,a)).find(b=>ks(b,r))}catch(m){return console.error("Error checking route support:",m),!1}}isSupportedChain(t){return this.rc.supportedChains(Ce.network).includes(t)}async supportedDestTokens(t,r,n){if(!r||!n||!t)return[];const a=await this.getV2ChainContext(r),i=await this.getV2ChainContext(n);if(await this.isIlliquidDestToken(t,a.context,i.context))return[];const u=`supportedDestTokens-${t.address}-${r}-${n}`;return(await this.tokenCache.requestWithCache(u,()=>this.rc.supportedDestinationTokens(t.tokenId,a.context,i.context))).filter(h=>{const m=Ce.tokens.get(h);return!(m&&sU(m,i.chain))})}async getQuote(t,r,n,a,i,o,u){const d=await this.createRequest(r,n,a,i,u),h=await Ba(),m=new this.rc(h),b=await m.validate(d,{amount:mn(t),options:o});if(!b.valid)throw b.error;const v=await m.quote(d,b.params);return[m,v,d]}async createRequest(t,r,n,a,i){const o=(await this.getV2ChainContext(n)).context,u=(await this.getV2ChainContext(a)).context,d=await Ba();return await Tx.create(d,{source:t.tokenId,destination:r.tokenId,recipient:i?ar.chainAddress(a,i):void 0},o,u)}async computeQuote(t,r,n,a,i,o,u){if(!a||!i)throw new Error("Need both chains to get a quote from SDKv2");const[,d]=await this.getQuote(t,r,n,a,i,o,u);if(!d.success)throw d.error;return d}async send(t,r,n,a,i,o,u,d){var S;const[h,m,b]=await this.getQuote(r,t,u,n,i,d,o);if(!m.success)throw m.error;let v;(S=Ce.ui.testOptions)!=null&&S.enableHeadlessSigner?v=await th.fromPrivateKey(n):v=await th.fromChain(n,a,{},qn.SENDING);let C=await h.initiate(b,v,m,ar.chainAddress(i,o));if(C.state===Lt.SourceInitiated||C.state===Lt.SourceFinalized)return[h,C];let E=0;const T=5,I=1e3;for(;E<T;)try{for await(C of h.track(C,120*1e3))if(C.state>=Lt.SourceInitiated)return[h,C]}catch(D){console.error(`Error tracking transfer (attempt ${E+1} / ${T}):`,D);const L=I*Math.pow(2,E);await n7(L),E++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(t){const r=await Ba(),n=new this.rc(r);return Tb(n)||Ib(n)?n.resume(t):null}async isIlliquidDestToken(t,r,n){if(!this.IS_TOKEN_BRIDGE_ROUTE)return!1;const{symbol:a,nativeChain:i}=t;return!!(await Q0e(t,r,n)||["ETH","WETH"].includes(a)&&i==="Ethereum"&&["Scroll","Blast","Xlayer","Mantle","Unichain"].includes(n.chain))}}const Q0e=async(e,t,r)=>{const n=async u=>{const d=Ce.routes.get(u);if(!d)return!1;try{return(await d.rc.supportedDestinationTokens(e,t,r)).length>0}catch{return!1}},[a,i,o]=await Promise.all([n("ManualNtt"),n("AutomaticNtt"),n("M0AutomaticRoute")]);return a||i||o},q0e=[jb,lF,Nb,cF,Lb,uF];class V0e{constructor(t=q0e){Ye(this,"preference");Ye(this,"routes");Ye(this,"quoteCache");const r={},n=[];for(const a of t){const i=a.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in r)throw new Error(`Route has duplicate meta.name: ${i}`);n.push(i),r[i]=new G0e(a)}this.routes=r,this.preference=n,this.quoteCache=new $0e}get(t){return this.routes[t]}async forEach(t){return Promise.all(this.preference.map(r=>t(r,this.routes[r])))}async resumeFromTx(t){return new Promise((r,n)=>{const a=Object.keys(this.routes).length;let i=0;this.forEach((o,u)=>{u.resumeIfManual(t).then(d=>{d!==null?r({route:o,receipt:d}):i+=1}).catch(d=>{i+=1}).finally(()=>{i===a&&r(null)})})})}allSupportedChains(){const t=new Set;for(const r in Ce.chains){const n=r;this.forEach(async(a,i)=>{t.has(n)||i.isSupportedChain(n)&&t.add(n)})}return Array.from(t)}async allSupportedDestTokens(t,r,n){const a=new Set;return await this.forEach(async(i,o)=>{try{if(i.includes("Mayan")){a.add(cl(ar.tokenId(n,"native")));const u=ki.get(Ce.network,n);u&&a.add(cl(ar.tokenId(n,u)))}else{const u=await o.supportedDestTokens(t,r,n);for(const d of u)a.add(cl(d))}}catch(u){$R(u)}}),Array.from(a).map(qR)}async getQuotes(t,r){const n=await Promise.allSettled(t.map(i=>{const o=this.quoteCache.get(i,r);return o||this.quoteCache.fetch(i,r,this.get(i))})),a={};for(let i=0;i<t.length;i++){const o=t[i],u=n[i];u.status==="rejected"?a[o]={success:!1,error:u.reason}:a[o]=u.value}return a}}class $0e{constructor(){Ye(this,"cache");Ye(this,"pending");this.cache={},this.pending={}}quoteParamsKey(t,r){return`${t}:${r.sourceChain}:${r.sourceToken.address.toString()}:${r.destChain}:${r.destToken.address.toString()}:${er(r.amount)}:${r.nativeGas}:${r.recipient}`}get(t,r){const n=this.quoteParamsKey(t,r),a=this.cache[n];if(a){if(a.ttl()>5)return a.result;delete this.cache[n]}return null}async fetch(t,r,n){console.debug("Fetching quote",t,r);const a=this.quoteParamsKey(t,r),i=this.pending[a];if(i)return new Promise((o,u)=>{i.push({resolve:o,reject:u})});{const o=new Promise((u,d)=>{this.pending[a]=[{resolve:u,reject:d}]});return n.computeQuote(r.amount,r.sourceToken,r.destToken,r.sourceChain,r.destChain,{nativeGas:r.nativeGas},r.recipient).then(u=>{const d=this.pending[a];for(const{resolve:h}of d)h(u);delete this.pending[a],u.success&&u.expires===void 0&&(u.expires=new Date(Date.now()+6e4)),console.debug("Fetched quote",t,u),this.cache[a]=new zI(u)}).catch(u=>{console.debug("Error fetching quote",t,u);const d=this.pending[a];for(const{reject:h}of d)h(u);delete this.pending[a],this.cache[a]=new zI({success:!1,error:u})}),o}}nextExpiry(t,r){const n=t.map(a=>{const i=this.quoteParamsKey(a,r);if(this.cache[i])return this.cache[i].expires()}).filter(a=>a!==void 0).sort((a,i)=>a.valueOf()-i.valueOf());if(n.length>0)return n[0]}}class zI{constructor(t){Ye(this,"result");Ye(this,"timestamp");this.result=t,this.timestamp=new Date}expires(){return this.result.success?this.result.expires??new Date(this.timestamp.valueOf()+6e4):new Date(this.timestamp.valueOf()+12e4)}ttl(){return(this.expires().valueOf()-Date.now().valueOf())/1e3}}function cU(e={}){var d;const t=t$(e.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(t))throw new Error(`Invalid env "${t}": Use "Testnet", "Devnet", or "Mainnet"`);const r={MAINNET:I$,DEVNET:lK,TESTNET:nK}[t.toUpperCase()],n=JV(r.wrappedTokens,e.wrappedTokens),a=Yle(t,[...r.tokens,...e.tokensConfig?Object.values(e.tokensConfig):[]],n),i=KV[t.toUpperCase()],o=Object.assign({},i.rpcs,r.rpcs,e.rpcs);(d=e.ui)!=null&&d.defaultInputs&&e$(e.ui.defaultInputs,r.chains,a);const u=AA(e.ui??{});return e.tokens&&e.tokens.length>0&&u.disableUserInputtedTokens===void 0&&(u.disableUserInputtedTokens=!0),{sdkConfig:i,network:t,isMainnet:t==="Mainnet",rpcs:o,mayanApi:"https://explorer-api.mayan.finance",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[t],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[t],coingecko:e.coingecko,triggerEvent:dK(e.eventHandler),validateTransfer:e.validateTransferHandler,isRouteSupportedHandler:e.isRouteSupportedHandler,isTokenSupportedHandler:e.isTokenSupportedHandler,filterRoutes:e.filterRoutes,chains:r.chains,chainsArr:Object.values(r.chains).filter(h=>e.chains?e.chains.includes(h.sdkName):!0).sort((h,m)=>{const b=EA.indexOf(h.sdkName),v=EA.indexOf(m.sdkName);return b>=0&&v>=0?b-v:b===-1?1:v===-1?-1:0}),tokens:a,tokenWhitelist:e.tokens,routes:new V0e(e.routes),ui:AA({...e.ui}),guardianSet:r.guardianSet,transactionSettings:(e==null?void 0:e.transactionSettings)||{}}}const Ce=cU();async function Ba(){return Ce._v2Wormhole||(Ce._v2Wormhole=await X0e()),Ce._v2Wormhole}async function K0e(){delete Ce._v2Wormhole}async function X0e(){const e={chains:{}};for(const t in Ce.chains){const r=t,n=Ce.rpcs[r],a={};for(const i of Ce.tokens.getAllForChain(r)){const o={key:i.key,chain:r,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};a[i.address.toString()]=o}e.chains[r]={rpc:n,tokenMap:a}}return await Lle(Ce.network,[kle,zle,_le,Fle],e)}function J0e(e={}){const t=cU(e);for(const r in t)Ce[r]=t[r];typeof window<"u"&&(window._connectConfig=Ce)}function eue(){return{data:null,error:null,isFetching:!1,receivedAt:null}}function tue(e){return{data:e,error:null,isFetching:!1,receivedAt:new Date().toISOString()}}function rue(e){return{data:null,error:e,isFetching:!1,receivedAt:null}}function nue(){return{data:null,error:null,isFetching:!0,receivedAt:null}}const iue=(e,t,r)=>{if(!r||!e||!t)return;const n=e[t];if(!n)return;const a=n[r];if(a)return a},lU=(e,t,r,n)=>{const a=iue(e,t,r);if(a)return a.balances[n.key]};function _I(){var o,u,d;const{fromChain:e,toChain:t,fromToken:r,toToken:n}=Ce.ui.defaultInputs||{},a=e&&r?(o=Ce.tokens.findByAddressOrSymbol(e,r))==null?void 0:o.tuple:void 0,i=t&&n?(u=Ce.tokens.findByAddressOrSymbol(t,n))==null?void 0:u.tuple:void 0;return{showValidationState:!1,validations:{fromChain:"",toChain:"",amount:"",toNativeToken:"",sendingWallet:"",receivingWallet:"",relayerFee:"",receiveAmount:""},fromChain:e,toChain:t,token:a,destToken:i,amount:void 0,receiveAmount:eue(),preferredRouteName:(d=Ce.ui.defaultInputs)==null?void 0:d.preferredRouteName,route:void 0,balances:{},foreignAsset:"",associatedTokenAddress:"",gasEst:{send:"",claim:""},isTransactionInProgress:!1,receiverNativeBalance:""}}const FI=e=>{const{fromChain:t}=e;if(e.token){const r=Ce.tokens.get(e.token);if(r&&t&&r.chain!==t&&r.symbol){const n=Ce.tokens.findBySymbol(t,r.symbol);n&&(e.token=n.tuple)}}},OI=e=>{const{toChain:t}=e;if(e.destToken){const r=Ce.tokens.get(e.destToken);if(r&&t&&r.chain!==t&&r.symbol){const n=Ce.tokens.findBySymbol(t,r.symbol);n&&(e.destToken=n.tuple)}}},uU=Uf({name:"transfer",initialState:_I(),reducers:{setValidations:(e,{payload:{showValidationState:t,validations:r}})=>{Object.keys(r).forEach(n=>{e.validations[n]=r[n]}),e.showValidationState=t},setToken:(e,{payload:t})=>{e.token=t},clearToken:e=>{e.token=void 0},setDestToken:(e,{payload:t})=>{e.destToken=t},clearDestToken:e=>{e.destToken=void 0},setFromChain:(e,{payload:t})=>{e.fromChain=t,FI(e)},setToChain:(e,{payload:t})=>{e.toChain=t,OI(e)},setAmount:(e,{payload:t})=>{if(e.token&&e.fromChain){const r=Ce.tokens.get(e.token);if(r){const{decimals:n}=r,a=g0(t,n);er(a)===0n?e.amount=void 0:e.amount=a}}else console.warn("Can't call setAmount without a fromChain and token")},setReceiveAmount:(e,{payload:t})=>{e.receiveAmount=tue(t)},setFetchingReceiveAmount:e=>{e.receiveAmount=nue()},setReceiveAmountError:(e,{payload:t})=>{e.receiveAmount=rue(t)},updateBalances:(e,{payload:t})=>{var i,o;const{chain:r,balances:n,address:a}=t;a&&((i=e.balances)[a]??(i[a]={}),(o=e.balances[a])[r]??(o[r]={balances:{}}),e.balances[a][r].balances={...e.balances[a][r].balances,...n})},setTransferRoute:(e,{payload:t})=>{if(!t){e.route=void 0;return}e.route=t},clearTransfer:e=>{const t=_I();Object.keys(e).forEach(r=>{e[r]=t[r]})},setIsTransactionInProgress:(e,{payload:t})=>{e.isTransactionInProgress=t},swapInputs:e=>{const t=e.fromChain;e.fromChain=e.toChain,e.toChain=t;const r=e.token;e.token=e.destToken,e.destToken=r,FI(e),OI(e)}}}),fU=(e,t)=>t.name==="OKX Wallet"&&e==="Evmos"?!0:!JR(t.type).includes(e),aue=async(e,t,r)=>{dU(qn.SENDING,e,t,r)},sue=async(e,t,r)=>{dU(qn.RECEIVING,e,t,r)},dU=async(e,t,r,n)=>{fU(r,n)&&(t(Mp(e)),t(T0e({type:e,error:"Wallet disconnected, please connect a supported wallet"}))),Ce.chains[r]&&t(e===qn.SENDING?fue(r):Dv(r))},{setValidations:oue,setToken:cue,clearToken:lue,setDestToken:hU,clearDestToken:uue,setFromChain:fue,setToChain:Dv,setAmount:Tv,setTransferRoute:c4,updateBalances:due,clearTransfer:RI,setIsTransactionInProgress:UI,swapInputs:hue}=uU.actions,pue=uU.reducer,PI={maxSwapAmt:void 0,toNativeToken:0,receiveNativeAmt:void 0,relayerFee:void 0,receiverNativeBalance:""},pU=Uf({name:"transfer",initialState:PI,reducers:{setToNativeToken:(e,{payload:t})=>{e.toNativeToken=t},clearRelay:e=>{Object.keys(e).forEach(t=>{e[t]=PI[t]})}}}),{setToNativeToken:mue}=pU.actions,gue=pU.reducer,yue={route:"bridge",showFromChainsModal:!1,showToChainsModal:!1,showTokensModal:!1,showWalletModal:!1},mU=Uf({name:"router",initialState:yue,reducers:{setRoute:(e,{payload:t})=>{e.route=t}}}),{setRoute:ys}=mU.actions,bue=mU.reducer,Mue={txHash:void 0,chain:void 0},gU=Uf({name:"search",initialState:Mue,reducers:{setSearch(e,t){e.txHash=t.payload.txHash,e.chain=t.payload.chain},clearSearch(e){e.txHash=void 0,e.chain=void 0}}}),{setSearch:yU,clearSearch:bU}=gU.actions,xue=gU.reducer,WI=kV({reducer:{redeem:QV,transferInput:pue,router:bue,wallet:j0e,relay:gue,search:xue}}),MU=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(r=>{const[n,a]=e[r];t[n]=a}),t};function yl(e){return Object.keys(e)}function s0(e,t){if(!e)throw new Error(t)}function Iv(e,t){return t}const Nv=e=>{const t=e.length;let r=0,n="";for(;r<t;r++){const a=e[r];if(a==null)continue;let i;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=Nv(a);else{s0(!Iv(a,!1)),i="";for(const o in a)a[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}return n};function vue(e,t){var r;const n=Y.useRef();return(!n.current||t.length!==((r=n.current.prevDeps)===null||r===void 0?void 0:r.length)||n.current.prevDeps.map((a,i)=>a===t[i]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}function wue(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:Cue}=(()=>{function e(r,n,a){const i=[],o=kM(r,i,a);return i.length<2?a:o+n(i)}function t(r){const{cache:n}=r,a=(...o)=>{const u=Rf(o,n.registered);f6(n,u,!1);const d=`${n.key}-${u.name}`;e:{const h=o[0];if(!wue(h))break e;HI.saveClassNameCSSObjectMapping(n,d,h)}return d};return{css:a,cx:(...o)=>{const u=Nv(o),d=HI.fixClassName(n,u,a);return e(n.registered,a,d)}}}return{createCssAndCx:t}})();function xU(e){const{useCache:t}=e;function r(){const n=t(),{css:a,cx:i}=vue(()=>Cue({cache:n}),[n]);return{css:a,cx:i}}return{useCssAndCx:r}}const HI=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,r,n)=>{let a=e.get(t);a===void 0&&(a=new Map,e.set(t,a)),a.set(r,n)},fixClassName:(()=>{function t(r){let n=!1;return r.map(([a,i])=>{if(i===void 0)return a;let o;if(n)o={"&&":i};else{o=a;for(const u in i)if(u.startsWith("@media")){n=!0;break}}return o})}return(r,n,a)=>{const i=e.get(r);return Nv(t(n.split(" ").map(o=>[o,i==null?void 0:i.get(o)])).map(o=>typeof o=="string"?o:a(o)))}})()}})();function bl(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const r in e){const n=e[r],a=typeof n;if(!(a==="string"||a==="number"&&!isNaN(n)||a==="boolean"||n===void 0||n===null))return e;t.push(`${r}:${a}_${n}`)}return"xSqLiJdLMd9s"+t.join("|")}function Lv(e,t,r){if(!(t instanceof Object))return e;const n={};return yl(e).forEach(a=>n[a]=r(e[a],t[a])),yl(t).forEach(a=>{if(a in e)return;const i=t[a];typeof i=="string"&&(n[a]=i)}),n}const vU=({classes:e,theme:t,muiStyleOverridesParams:r,css:n,cx:a,name:i})=>{var o,u;e:{if(i==="makeStyle no name"){i=void 0;break e}if(r!==void 0&&i===void 0)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}let d;try{d=i===void 0?void 0:((u=(o=t.components)===null||o===void 0?void 0:o[i])===null||u===void 0?void 0:u.styleOverrides)||void 0}catch{}const h=Y.useMemo(()=>{if(d===void 0)return;const m={};for(const b in d){const v=d[b];v instanceof Object&&(m[b]=n(typeof v=="function"?v({theme:t,ownerState:r==null?void 0:r.ownerState,...r==null?void 0:r.props}):v))}return m},[d,bl(r==null?void 0:r.props),bl(r==null?void 0:r.ownerState),n]);return e=Y.useMemo(()=>Lv(e,h,a),[e,h,a]),{classes:e}},Aue=IZ;let Eue=0;function wU(e){const{useTheme:t,cache:r}=e,{useCache:n}=CU({cacheProvidedAtInception:r}),{useCssAndCx:a}=xU({useCache:n});function i(u){const{name:d,uniqId:h=`${Eue++}`}=u??{},m=typeof d!="object"?d:Object.keys(d)[0];return function(b){const v=typeof b=="function"?b:()=>b;return function(E,T){const I=t();let{css:S,cx:D}=a();const L=n();let N=Y.useMemo(()=>{const _={},O=typeof Proxy<"u"&&new Proxy({},{get:(F,k)=>(typeof k=="symbol"&&s0(!1),_[k]=`${L.key}-${h}${m!==void 0?`-${m}`:""}-${k}-ref`)}),U=v(I,E,O||{}),z=MU(yl(U).map(F=>{const k=U[F];return k.label||(k.label=`${m!==void 0?`${m}-`:""}${F}`),[F,`${S(k)}${Iv(F,F in _)?` ${_[F]}`:""}`]}));return yl(_).forEach(F=>{F in z||(z[F]=_[F])}),z},[L,S,D,I,bl(E)]);{const _=T==null?void 0:T.props.classes;N=Y.useMemo(()=>Lv(N,_,D),[N,bl(_),D])}{const _=vU({classes:N,css:S,cx:D,name:m??"makeStyle no name",muiStyleOverridesParams:T,theme:I});_.classes!==void 0&&(N=_.classes),_.css!==void 0&&(S=_.css),_.cx!==void 0&&(D=_.cx)}return{classes:N,theme:I,css:S,cx:D}}}}function o(){const u=t(),{css:d,cx:h}=a();return{theme:u,css:d,cx:h}}return{makeStyles:i,useStyles:o}}const Sue=Y.createContext(void 0),{createUseCache:CU}=(()=>{function e(){return Y.useContext(Sue)}function t(r){const{cacheProvidedAtInception:n}=r;function a(){var i;const o=Aue(),u=e(),d=(i=n??u)!==null&&i!==void 0?i:o;if(d===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
|
|
125
|
+
`,I=T+E.join(T);console.error(C.error.message,I)}throw new K1({action:"simulate",signature:"",transactionMessage:C.error.message,logs:E})}return C.result}async sendTransaction(t,r,n){if("version"in t){if(r&&Array.isArray(r))throw new Error("Invalid arguments");const o=t.serialize();return await this.sendRawTransaction(o,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");const a=r;if(t.nonceInfo)t.sign(...a);else{let o=this._disableBlockhashCaching;for(;;){const u=await this._blockhashWithExpiryBlockHeight(o);if(t.lastValidBlockHeight=u.lastValidBlockHeight,t.recentBlockhash=u.blockhash,t.sign(...a),!t.signature)throw new Error("!signature");const d=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(d))o=!0;else{this._blockhashInfo.transactionSignatures.push(d);break}}}const i=t.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(t,r){const n=ur(t).toString("base64");return await this.sendEncodedTransaction(n,r)}async sendEncodedTransaction(t,r){const n={encoding:"base64"},a=r&&r.skipPreflight,i=a===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(n.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(n.minContextSlot=r.minContextSlot),a&&(n.skipPreflight=a),i&&(n.preflightCommitment=i);const o=[t,n],u=await this._rpcRequest("sendTransaction",o),d=xt(u,Qce);if("error"in d){let h;throw"data"in d.error&&(h=d.error.data.logs),new K1({action:a?"send":"simulate",signature:"",transactionMessage:d.error.message,logs:h})}return d.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,n])=>{this._setSubscription(r,{...n,state:"pending"})})}_setSubscription(t,r){var a;const n=(a=this._subscriptionsByHash[t])==null?void 0:a.state;if(this._subscriptionsByHash[t]=r,n!==r.state){const i=this._subscriptionStateChangeCallbacksByHash[t];i&&i.forEach(o=>{try{o(r.state)}catch{}})}}_onSubscriptionStateChange(t,r){var i;const n=this._subscriptionHashByClientSubscriptionId[t];if(n==null)return()=>{};const a=(i=this._subscriptionStateChangeCallbacksByHash)[n]||(i[n]=new Set);return a.add(r),()=>{a.delete(r),a.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,r=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const a=this._subscriptionsByHash[n];if(a!==void 0)switch(a.state){case"pending":case"unsubscribed":if(a.callbacks.size===0){delete this._subscriptionsByHash[n],a.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:o}=a;try{this._setSubscription(n,{...a,state:"subscribing"});const u=await this._rpcWebSocket.call(o,i);this._setSubscription(n,{...a,serverSubscriptionId:u,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[u]=a.callbacks,await this._updateSubscriptions()}catch(u){if(console.error(`Received ${u instanceof Error?"":"JSON-RPC "}error calling \`${o}\``,{args:i,error:u}),!r())return;this._setSubscription(n,{...a,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":a.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:o}=a;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...a,state:"unsubscribing"}),this._setSubscription(n,{...a,state:"unsubscribing"});try{await this._rpcWebSocket.call(o,[i])}catch(u){if(u instanceof Error&&console.error(`${o} error:`,u.message),!r())return;this._setSubscription(n,{...a,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...a,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,r){const n=this._subscriptionCallbacksByServerSubscriptionId[t];n!==void 0&&n.forEach(a=>{try{a(...r)}catch(i){console.error(i)}})}_wsOnAccountNotification(t){const{result:r,subscription:n}=xt(t,yce);this._handleServerNotification(n,[r.value,r.context])}_makeSubscription(t,r){const n=this._nextClientSubscriptionId++,a=lI([t.method,r]),i=this._subscriptionsByHash[a];return i===void 0?this._subscriptionsByHash[a]={...t,args:r,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const o=this._subscriptionsByHash[a];jr(o!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),o.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,r,n){const{commitment:a,config:i}=ln(n),o=this._buildArgs([t.toBase58()],a||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},o)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:r,subscription:n}=xt(t,Mce);this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(t,r,n,a){const{commitment:i,config:o}=ln(n),u=this._buildArgs([t.toBase58()],i||this._commitment||"finalized","base64",o||(a?{filters:fI(a)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},u)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,r,n){const a=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},a)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:r,subscription:n}=xt(t,Vce);this._handleServerNotification(n,[r.value,r.context])}_wsOnSlotNotification(t){const{result:r,subscription:n}=xt(t,vce);this._handleServerNotification(n,[r])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:r,subscription:n}=xt(t,Cce);this._handleServerNotification(n,[r])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,r){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${r}' events could not be found.`)}_buildArgs(t,r,n,a){const i=r||this._commitment;if(i||n||a){let o={};n&&(o.encoding=n),i&&(o.commitment=i),a&&(o=Object.assign(o,a)),t.push(o)}return t}_buildArgsAtLeastConfirmed(t,r,n,a){const i=r||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,r,n,a)}_wsOnSignatureNotification(t){const{result:r,subscription:n}=xt(t,Ace);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(t,r,n){const a=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(o,u)=>{if(o.type==="status"){r(o.result,u);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}onSignatureWithOptions(t,r,n){const{commitment:a,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],a,void 0,i),u=this._makeSubscription({callback:(d,h)=>{r(d,h);try{this.removeSignatureListener(u)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return u}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:r,subscription:n}=xt(t,Ece);this._handleServerNotification(n,[r])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Wu{constructor(t){this._keypair=void 0,this._keypair=t??aI()}static generate(){return new Wu(aI())}static fromSecretKey(t,r){if(t.byteLength!==64)throw new Error("bad secret key size");const n=t.slice(32,64);if(!r||!r.skipValidation){const a=t.slice(0,32),i=gp(a);for(let o=0;o<32;o++)if(n[o]!==i[o])throw new Error("provided secretKey is invalid")}return new Wu({publicKey:n,secretKey:t})}static fromSeed(t){const r=gp(t),n=new Uint8Array(64);return n.set(t),n.set(r,32),new Wu({publicKey:r,secretKey:n})}get publicKey(){return new ct(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const $o=Object.freeze({CreateLookupTable:{index:0,layout:zt([kt("instruction"),vf("recentSlot"),mr("bumpSeed")])},FreezeLookupTable:{index:1,layout:zt([kt("instruction")])},ExtendLookupTable:{index:2,layout:zt([kt("instruction"),vf(),ji(br(),sl(kt(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:zt([kt("instruction")])},CloseLookupTable:{index:4,layout:zt([kt("instruction")])}});class Kce{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries($o))if(o.index==n){a=i;break}if(!a)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return a}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:r}=Ur($o.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:r}=Ur($o.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:r.map(n=>new ct(n))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(bv.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}class bv{constructor(){}static createLookupTable(t){const[r,n]=ct.findProgramAddressSync([t.authority.toBuffer(),nv(BigInt(t.recentSlot),8)],this.programId),a=$o.CreateLookupTable,i=Sr(a,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),o=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:di.programId,isSigner:!1,isWritable:!1}];return[new nn({programId:this.programId,keys:o,data:i}),r]}static freezeLookupTable(t){const r=$o.FreezeLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new nn({programId:this.programId,keys:a,data:n})}static extendLookupTable(t){const r=$o.ExtendLookupTable,n=Sr(r,{addresses:t.addresses.map(i=>i.toBytes())}),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&a.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:di.programId,isSigner:!1,isWritable:!1}),new nn({programId:this.programId,keys:a,data:n})}static deactivateLookupTable(t){const r=$o.DeactivateLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new nn({programId:this.programId,keys:a,data:n})}static closeLookupTable(t){const r=$o.CloseLookupTable,n=Sr(r),a=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new nn({programId:this.programId,keys:a,data:n})}}bv.programId=new ct("AddressLookupTab1e1111111111111111111111111");class Xce{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=mr("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(lo))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return a}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:r,additionalFee:n}=Ur(lo.RequestUnits,t.data);return{units:r,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:r}=Ur(lo.RequestHeapFrame,t.data);return{bytes:r}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:r}=Ur(lo.SetComputeUnitLimit,t.data);return{units:r}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:r}=Ur(lo.SetComputeUnitPrice,t.data);return{microLamports:r}}static checkProgramId(t){if(!t.equals(Mv.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const lo=Object.freeze({RequestUnits:{index:0,layout:zt([mr("instruction"),kt("units"),kt("additionalFee")])},RequestHeapFrame:{index:1,layout:zt([mr("instruction"),kt("bytes")])},SetComputeUnitLimit:{index:2,layout:zt([mr("instruction"),kt("units")])},SetComputeUnitPrice:{index:3,layout:zt([mr("instruction"),vf("microLamports")])}});class Mv{constructor(){}static requestUnits(t){const r=lo.RequestUnits,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const r=lo.RequestHeapFrame,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const r=lo.SetComputeUnitLimit,n=Sr(r,t);return new nn({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const r=lo.SetComputeUnitPrice,n=Sr(r,{microLamports:BigInt(t.microLamports)});return new nn({keys:[],programId:this.programId,data:n})}}Mv.programId=new ct("ComputeBudget111111111111111111111111111111");const mI=64,gI=32,yI=64,bI=zt([mr("numSignatures"),mr("padding"),is("signatureOffset"),is("signatureInstructionIndex"),is("publicKeyOffset"),is("publicKeyInstructionIndex"),is("messageDataOffset"),is("messageDataSize"),is("messageInstructionIndex")]);class w5{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:a,instructionIndex:i}=t;jr(r.length===gI,`Public Key must be ${gI} bytes but received ${r.length} bytes`),jr(a.length===yI,`Signature must be ${yI} bytes but received ${a.length} bytes`);const o=bI.span,u=o+r.length,d=u+a.length,h=1,m=vt.Buffer.alloc(d+n.length),b=i??65535;return bI.encode({numSignatures:h,padding:0,signatureOffset:u,signatureInstructionIndex:b,publicKeyOffset:o,publicKeyInstructionIndex:b,messageDataOffset:d,messageDataSize:n.length,messageInstructionIndex:b},m),m.fill(r,o),m.fill(a,u),m.fill(n,d),new nn({keys:[],programId:w5.programId,data:m})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:a}=t;jr(r.length===mI,`Private key must be ${mI} bytes but received ${r.length} bytes`);try{const i=Wu.fromSecretKey(r),o=i.publicKey.toBytes(),u=cv(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:u,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}w5.programId=new ct("Ed25519SigVerify111111111111111111111111111");const Jce=(e,t)=>{const r=t0.sign(e,t);return[r.toCompactRawBytes(),r.recovery]};t0.utils.isValidPrivateKey;const ele=t0.getPublicKey,MI=32,Sy=20,xI=64,tle=11,Dy=zt([mr("numSignatures"),is("signatureOffset"),mr("signatureInstructionIndex"),is("ethAddressOffset"),mr("ethAddressInstructionIndex"),is("messageDataOffset"),is("messageDataSize"),mr("messageInstructionIndex"),rn(20,"ethAddress"),rn(64,"signature"),mr("recoveryId")]);class Hu{constructor(){}static publicKeyToEthAddress(t){jr(t.length===xI,`Public key must be ${xI} bytes but received ${t.length} bytes`);try{return vt.Buffer.from(np(ur(t))).slice(-Sy)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(t){const{publicKey:r,message:n,signature:a,recoveryId:i,instructionIndex:o}=t;return Hu.createInstructionWithEthAddress({ethAddress:Hu.publicKeyToEthAddress(r),message:n,signature:a,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:r,message:n,signature:a,recoveryId:i,instructionIndex:o=0}=t;let u;typeof r=="string"?r.startsWith("0x")?u=vt.Buffer.from(r.substr(2),"hex"):u=vt.Buffer.from(r,"hex"):u=r,jr(u.length===Sy,`Address must be ${Sy} bytes but received ${u.length} bytes`);const d=1+tle,h=d,m=d+u.length,b=m+a.length+1,v=1,C=vt.Buffer.alloc(Dy.span+n.length);return Dy.encode({numSignatures:v,signatureOffset:m,signatureInstructionIndex:o,ethAddressOffset:h,ethAddressInstructionIndex:o,messageDataOffset:b,messageDataSize:n.length,messageInstructionIndex:o,signature:ur(a),ethAddress:ur(u),recoveryId:i},C),C.fill(ur(n),Dy.span),new nn({keys:[],programId:Hu.programId,data:C})}static createInstructionWithPrivateKey(t){const{privateKey:r,message:n,instructionIndex:a}=t;jr(r.length===MI,`Private key must be ${MI} bytes but received ${r.length} bytes`);try{const i=ur(r),o=ele(i,!1).slice(1),u=vt.Buffer.from(np(ur(n))),[d,h]=Jce(u,i);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:d,recoveryId:h,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Hu.programId=new ct("KeccakSecp256k11111111111111111111111111111");var OR;const RR=new ct("StakeConfig11111111111111111111111111111111");class UR{constructor(t,r){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=r}}class n2{constructor(t,r,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=r,this.custodian=n}}OR=n2;n2.default=new OR(0,0,ct.default);class rle{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(li))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a StakeInstruction");return a}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:r,lockup:n}=Ur(li.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new UR(new ct(r.staker),new ct(r.withdrawer)),lockup:new n2(n.unixTimestamp,n.epoch,new ct(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),Ur(li.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,stakeAuthorizationType:n}=Ur(li.Authorize,t.data),a={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new ct(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(a.custodianPubkey=t.keys[3].pubkey),a}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:r,stakeAuthorizationType:n,authoritySeed:a,authorityOwner:i}=Ur(li.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:a,authorityOwner:new ct(i),newAuthorizedPubkey:new ct(r),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=Ur(li.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:r}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ur(li.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:r}=Ur(li.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:r};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ur(li.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(C5.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const li=Object.freeze({Initialize:{index:0,layout:zt([kt("instruction"),aoe(),soe()])},Authorize:{index:1,layout:zt([kt("instruction"),br("newAuthorized"),kt("stakeAuthorizationType")])},Delegate:{index:2,layout:zt([kt("instruction")])},Split:{index:3,layout:zt([kt("instruction"),Ta("lamports")])},Withdraw:{index:4,layout:zt([kt("instruction"),Ta("lamports")])},Deactivate:{index:5,layout:zt([kt("instruction")])},Merge:{index:7,layout:zt([kt("instruction")])},AuthorizeWithSeed:{index:8,layout:zt([kt("instruction"),br("newAuthorized"),kt("stakeAuthorizationType"),n0("authoritySeed"),br("authorityOwner")])}}),nle=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class C5{constructor(){}static initialize(t){const{stakePubkey:r,authorized:n,lockup:a}=t,i=a||n2.default,o=li.Initialize,u=Sr(o,{authorized:{staker:ur(n.staker.toBuffer()),withdrawer:ur(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:ur(i.custodian.toBuffer())}}),d={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:xf,isSigner:!1,isWritable:!1}],programId:this.programId,data:u};return new nn(d)}static createAccountWithSeed(t){const r=new Fr;r.add(di.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=t;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static createAccount(t){const r=new Fr;r.add(di.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=t;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static delegate(t){const{stakePubkey:r,authorizedPubkey:n,votePubkey:a}=t,i=li.Delegate,o=Sr(i);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:RR,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static authorize(t){const{stakePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,stakeAuthorizationType:i,custodianPubkey:o}=t,u=li.Authorize,d=Sr(u,{newAuthorized:ur(a.toBuffer()),stakeAuthorizationType:i.index}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&h.push({pubkey:o,isSigner:!0,isWritable:!1}),new Fr().add({keys:h,programId:this.programId,data:d})}static authorizeWithSeed(t){const{stakePubkey:r,authorityBase:n,authoritySeed:a,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:u,custodianPubkey:d}=t,h=li.AuthorizeWithSeed,m=Sr(h,{newAuthorized:ur(o.toBuffer()),stakeAuthorizationType:u.index,authoritySeed:a,authorityOwner:ur(i.toBuffer())}),b=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1}];return d&&b.push({pubkey:d,isSigner:!0,isWritable:!1}),new Fr().add({keys:b,programId:this.programId,data:m})}static splitInstruction(t){const{stakePubkey:r,authorizedPubkey:n,splitStakePubkey:a,lamports:i}=t,o=li.Split,u=Sr(o,{lamports:i});return new nn({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static split(t,r){const n=new Fr;return n.add(di.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),n.add(this.splitInstruction(t))}static splitWithSeed(t,r){const{stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,basePubkey:o,seed:u,lamports:d}=t,h=new Fr;return h.add(di.allocate({accountPubkey:i,basePubkey:o,seed:u,space:this.space,programId:this.programId})),r&&r>0&&h.add(di.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:r})),h.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,lamports:d}))}static merge(t){const{stakePubkey:r,sourceStakePubKey:n,authorizedPubkey:a}=t,i=li.Merge,o=Sr(i);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static withdraw(t){const{stakePubkey:r,authorizedPubkey:n,toPubkey:a,lamports:i,custodianPubkey:o}=t,u=li.Withdraw,d=Sr(u,{lamports:i}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:s3,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&h.push({pubkey:o,isSigner:!0,isWritable:!1}),new Fr().add({keys:h,programId:this.programId,data:d})}static deactivate(t){const{stakePubkey:r,authorizedPubkey:n}=t,a=li.Deactivate,i=Sr(a);return new Fr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}C5.programId=new ct("Stake11111111111111111111111111111111111111");C5.space=200;class PR{constructor(t,r,n,a){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=r,this.authorizedWithdrawer=n,this.commission=a}}class ile{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=kt("instruction").decode(t.data);let a;for(const[i,o]of Object.entries(uo))if(o.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a VoteInstruction");return a}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:r}=Ur(uo.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new PR(new ct(r.nodePubkey),new ct(r.authorizedVoter),new ct(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:r,voteAuthorizationType:n}=Ur(uo.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new ct(r),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorized:a,voteAuthorizationType:i}}=Ur(uo.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new ct(r),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new ct(a),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:r}=Ur(uo.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:r,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(id.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,r){if(t.length<r)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${r}`)}}const uo=Object.freeze({InitializeAccount:{index:0,layout:zt([kt("instruction"),ooe()])},Authorize:{index:1,layout:zt([kt("instruction"),br("newAuthorized"),kt("voteAuthorizationType")])},Withdraw:{index:3,layout:zt([kt("instruction"),Ta("lamports")])},UpdateValidatorIdentity:{index:4,layout:zt([kt("instruction")])},AuthorizeWithSeed:{index:10,layout:zt([kt("instruction"),coe()])}}),ale=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class id{constructor(){}static initializeAccount(t){const{votePubkey:r,nodePubkey:n,voteInit:a}=t,i=uo.InitializeAccount,o=Sr(i,{voteInit:{nodePubkey:ur(a.nodePubkey.toBuffer()),authorizedVoter:ur(a.authorizedVoter.toBuffer()),authorizedWithdrawer:ur(a.authorizedWithdrawer.toBuffer()),commission:a.commission}}),u={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:xf,isSigner:!1,isWritable:!1},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o};return new nn(u)}static createAccount(t){const r=new Fr;return r.add(di.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,voteAuthorizationType:i}=t,o=uo.Authorize,u=Sr(o,{newAuthorized:ur(a.toBuffer()),voteAuthorizationType:i.index}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:d,programId:this.programId,data:u})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:a,newAuthorizedPubkey:i,voteAuthorizationType:o,votePubkey:u}=t,d=uo.AuthorizeWithSeed,h=Sr(d,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ur(n.toBuffer()),currentAuthorityDerivedKeySeed:a,newAuthorized:ur(i.toBuffer()),voteAuthorizationType:o.index}}),m=[{pubkey:u,isSigner:!1,isWritable:!0},{pubkey:no,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Fr().add({keys:m,programId:this.programId,data:h})}static withdraw(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,lamports:a,toPubkey:i}=t,o=uo.Withdraw,u=Sr(o,{lamports:a}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:d,programId:this.programId,data:u})}static safeWithdraw(t,r,n){if(t.lamports>r-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return id.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:r,authorizedWithdrawerPubkey:n,nodePubkey:a}=t,i=uo.UpdateValidatorIdentity,o=Sr(i),u=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Fr().add({keys:u,programId:this.programId,data:o})}}id.programId=new ct("Vote111111111111111111111111111111111111111");id.space=3762;const WR=new ct("Va1idator1nfo111111111111111111111111111111"),sle=it({name:bt(),website:Wt(bt()),details:Wt(bt()),iconUrl:Wt(bt()),keybaseUsername:Wt(bt())});class xv{constructor(t,r){this.key=void 0,this.info=void 0,this.key=t,this.info=r}static fromConfigData(t){let r=[...t];if(fa(r)!==2)return null;const a=[];for(let i=0;i<2;i++){const o=new ct(da(r,0,xo)),u=co(r)===1;a.push({publicKey:o,isSigner:u})}if(a[0].publicKey.equals(WR)&&a[1].isSigner){const i=n0().decode(vt.Buffer.from(r)),o=JSON.parse(i);return uR(o,sle),new xv(a[1].publicKey,o)}return null}}const ole=new ct("Vote111111111111111111111111111111111111111"),cle=zt([br("nodePubkey"),br("authorizedWithdrawer"),mr("commission"),Ci(),ji(zt([Ci("slot"),kt("confirmationCount")]),sl(kt(),-8),"votes"),mr("rootSlotValid"),Ci("rootSlot"),Ci(),ji(zt([Ci("epoch"),br("authorizedVoter")]),sl(kt(),-8),"authorizedVoters"),zt([ji(zt([br("authorizedPubkey"),Ci("epochOfLastAuthorizedSwitch"),Ci("targetEpoch")]),32,"buf"),Ci("idx"),mr("isEmpty")],"priorVoters"),Ci(),ji(zt([Ci("epoch"),Ci("credits"),Ci("prevCredits")]),sl(kt(),-8),"epochCredits"),zt([Ci("slot"),Ci("timestamp")],"lastTimestamp")]);class vv{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const n=cle.decode(ur(t),4);let a=n.rootSlot;return n.rootSlotValid||(a=null),new vv({nodePubkey:new ct(n.nodePubkey),authorizedWithdrawer:new ct(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:a,authorizedVoters:n.authorizedVoters.map(lle),priorVoters:ule(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function lle({authorizedVoter:e,epoch:t}){return{epoch:t,authorizedVoter:new ct(e)}}function vI({authorizedPubkey:e,epochOfLastAuthorizedSwitch:t,targetEpoch:r}){return{authorizedPubkey:new ct(e),epochOfLastAuthorizedSwitch:t,targetEpoch:r}}function ule({buf:e,idx:t,isEmpty:r}){return r?[]:[...e.slice(t+1).map(vI),...e.slice(0,t).map(vI)]}const wI={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function fle(e,t){const r=t===!1?"http":"https";if(!e)return wI[r].devnet;const n=wI[r][e];if(!n)throw new Error(`Unknown ${r} cluster: ${e}`);return n}async function dle(e,t,r,n){let a,i;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(a=r,i=n):i=r;const o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},u=await e.sendRawTransaction(t,o),d=i&&i.commitment,m=(await(a?e.confirmTransaction(a,d):e.confirmTransaction(u,d))).value;if(m.err)throw u!=null?new K1({action:o!=null&&o.skipPreflight?"send":"simulate",signature:u,transactionMessage:`Status: (${JSON.stringify(m)})`}):new Error(`Raw transaction ${u} failed (${JSON.stringify(m)})`);return u}const hle=1e9,e8e=Object.freeze(Object.defineProperty({__proto__:null,Account:roe,AddressLookupTableAccount:Qb,AddressLookupTableInstruction:Kce,AddressLookupTableProgram:bv,Authorized:UR,BLOCKHASH_CACHE_TIMEOUT_MS:TR,BPF_LOADER_DEPRECATED_PROGRAM_ID:noe,BPF_LOADER_PROGRAM_ID:Coe,BpfLoader:Aoe,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:lo,ComputeBudgetInstruction:Xce,ComputeBudgetProgram:Mv,Connection:v5,Ed25519Program:w5,Enum:eoe,EpochSchedule:SR,FeeCalculatorLayout:AR,Keypair:Wu,LAMPORTS_PER_SOL:hle,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:$o,Loader:j0,Lockup:n2,MAX_SEED_LENGTH:xR,Message:Ws,MessageAccountKeys:$1,MessageV0:L0,NONCE_ACCOUNT_LENGTH:Gb,NonceAccount:b5,PACKET_DATA_SIZE:ol,PUBLIC_KEY_LENGTH:xo,PublicKey:ct,SIGNATURE_LENGTH_IN_BYTES:V1,SOLANA_SCHEMA:s1,STAKE_CONFIG_ID:RR,STAKE_INSTRUCTION_LAYOUTS:li,SYSTEM_INSTRUCTION_LAYOUTS:un,SYSVAR_CLOCK_PUBKEY:no,SYSVAR_EPOCH_SCHEDULE_PUBKEY:hoe,SYSVAR_INSTRUCTIONS_PUBKEY:poe,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:a3,SYSVAR_RENT_PUBKEY:xf,SYSVAR_REWARDS_PUBKEY:moe,SYSVAR_SLOT_HASHES_PUBKEY:goe,SYSVAR_SLOT_HISTORY_PUBKEY:yoe,SYSVAR_STAKE_HISTORY_PUBKEY:s3,Secp256k1Program:Hu,SendTransactionError:K1,SolanaJSONRPCError:Ot,SolanaJSONRPCErrorCode:boe,StakeAuthorizationLayout:nle,StakeInstruction:rle,StakeProgram:C5,Struct:lv,SystemInstruction:voe,SystemProgram:di,Transaction:Fr,TransactionExpiredBlockheightExceededError:uv,TransactionExpiredNonceInvalidError:Tu,TransactionExpiredTimeoutError:fv,TransactionInstruction:nn,TransactionMessage:hv,TransactionStatus:Yo,VALIDATOR_INFO_KEY:WR,VERSION_PREFIX_MASK:g5,VOTE_PROGRAM_ID:ole,ValidatorInfo:xv,VersionedMessage:dv,VersionedTransaction:pv,VoteAccount:vv,VoteAuthorizationLayout:ale,VoteInit:PR,VoteInstruction:ile,VoteProgram:id,clusterApiUrl:fle,sendAndConfirmRawTransaction:dle,sendAndConfirmTransaction:Zb},Symbol.toStringTag,{value:"Module"})),HR="Solana",t8e="11111111111111111111111111111111",ql=class ql{constructor(t){Ye(this,"type","Native");Ye(this,"address");ql.instanceof(t)?this.address=t.address:fn.instanceof(t)?this.address=new ct(t.toUint8Array()):typeof t=="string"&&Xr.valid(t)?this.address=new ct(Xr.decode(t)):this.address=new ct(t)}unwrap(){return this.address}toString(){return this.address.toBase58()}toUint8Array(){return new Uint8Array(this.address.toBytes())}toNative(){return this}toUniversalAddress(){return new fn(this.toUint8Array())}static instanceof(t){return t.constructor.platform===ql.platform}equals(t){return ql.instanceof(t)?t.unwrap().equals(this.unwrap()):this.toUniversalAddress().equals(t)}};Ye(ql,"byteSize",32),Ye(ql,"platform",HR);let Kb=ql;Gf(HR,Kb);function ple(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let h=0;h<t.length;h++)t[h]=255;for(let h=0;h<e.length;h++){const m=e.charAt(h),b=m.charCodeAt(0);if(t[b]!==255)throw new TypeError(m+" is ambiguous");t[b]=h}const r=e.length,n=e.charAt(0),a=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function o(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";let m=0,b=0,v=0;const C=h.length;for(;v!==C&&h[v]===0;)v++,m++;const E=(C-v)*i+1>>>0,T=new Uint8Array(E);for(;v!==C;){let D=h[v],L=0;for(let N=E-1;(D!==0||L<b)&&N!==-1;N--,L++)D+=256*T[N]>>>0,T[N]=D%r>>>0,D=D/r>>>0;if(D!==0)throw new Error("Non-zero carry");b=L,v++}let I=E-b;for(;I!==E&&T[I]===0;)I++;let S=n.repeat(m);for(;I<E;++I)S+=e.charAt(T[I]);return S}function u(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let m=0,b=0,v=0;for(;h[m]===n;)b++,m++;const C=(h.length-m)*a+1>>>0,E=new Uint8Array(C);for(;m<h.length;){const D=h.charCodeAt(m);if(D>255)return;let L=t[D];if(L===255)return;let N=0;for(let _=C-1;(L!==0||N<v)&&_!==-1;_--,N++)L+=r*E[_]>>>0,E[_]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");v=N,m++}let T=C-v;for(;T!==C&&E[T]===0;)T++;const I=new Uint8Array(b+(C-T));let S=b;for(;T!==C;)I[S++]=E[T++];return I}function d(h){const m=u(h);if(m)return m;throw new Error("Non-base"+r+" character")}return{encode:o,decodeUnsafe:u,decode:d}}var mle="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const YR=ple(mle),gle=e=>YR.encode(e),yle=e=>YR.decode(e);function r8e(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}const Ty=8192;function ble(e){if(e.length<Ty)return btoa(String.fromCharCode(...e));let t="";for(var r=0;r<e.length;r+=Ty){const n=e.slice(r,r+Ty);t+=String.fromCharCode(...n)}return btoa(t)}function n8e(e){var a;const t=e.startsWith("0x")?e.slice(2):e,r=t.length%2===0?t:`0${t}`,n=((a=r.match(/[0-9a-fA-F]{2}/g))==null?void 0:a.map(i=>parseInt(i,16)))??[];if(n.length!==r.length/2)throw new Error(`Invalid hex string ${e}`);return Uint8Array.from(n)}function Mle(e){return e.reduce((t,r)=>t+r.toString(16).padStart(2,"0"),"")}function i8e(e,t){switch(t){case"base58":return gle(e);case"base64":return ble(e);case"hex":return Mle(e);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function xle(e,t=["<",">"]){const[r,n]=t,a=[];let i="",o=0;for(let u=0;u<e.length;u++){const d=e[u];if(d===r&&o++,d===n&&o--,o===0&&d===","){a.push(i.trim()),i="";continue}i+=d}return a.push(i.trim()),a}const vle=32;function wle(e){try{return yle(e).length===vle}catch{return!1}}const ZR=32;function GR(e){return Ele(e)&&Sle(e)===ZR}function a8e(e){return GR(e)}function Cle(e){return e.includes("::")?Ale(e):e}function Ale(e){const[t,r]=e.split("::"),n=e.slice(t.length+r.length+4),a=n.includes("<")?n.slice(0,n.indexOf("<")):n,i=n.includes("<")?xle(n.slice(n.indexOf("<")+1,n.lastIndexOf(">"))).map(o=>Cle(o.trim())):[];return{address:wv(t),module:r,name:a,typeParams:i}}function wv(e,t=!1){let r=e.toLowerCase();return!t&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(ZR*2,"0")}`}function s8e(e,t=!1){return wv(e,t)}function Ele(e){return/^(0x|0X)?[a-fA-F0-9]+$/.test(e)&&e.length%2===0}function Sle(e){return/^(0x|0X)/.test(e)?(e.length-2)/2:e.length/2}const o1="::",Dle="0x2::sui::SUI",Cv=e=>/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(e),Tle=e=>e.replace(/(0x)(0*)/g,"0x");function CI(e){return e=e.startsWith("0x")?e.slice(2):e,e=e.length%2===0?e:"0"+e,`0x${e.length===64?e:Xr.encode(ii.zpad(Xr.decode(e),32))}`}const o8e=e=>{const t=e.split(o1);if(t.length!==3)throw new Error(`Invalid Sui type: ${e}`);return[wv(t[0]),t[1],t[2]].join(o1)},c8e=e=>new J1(e).getCoinType(),l8e=e=>new J1(e).getPackageId(),u8e=e=>{const t=Tle(e).match(/0x2::table::Table<(.*)>/);if(!t)throw new Error(`Invalid table type: ${e}`);if(t.length<2)throw new Error(`Invalid table type: ${e}`);const[r]=t[1].split(",");if(!r||!Cv(r))throw new Error(`Invalid key type: ${r}`);return r},Vl=class Vl{constructor(t){Ye(this,"address");Ye(this,"module");if(Vl.instanceof(t))this.address=t.address,this.module=t.module;else if(fn.instanceof(t))this.address=t.toUint8Array();else if(typeof t=="string"){if(Cv(t)){const r=t.split(o1);this.module=r.slice(1).join(o1),t=r[0]}if(t=CI(t),!Xr.valid(t))throw new Error("Invalid Sui address: "+t);this.address=Xr.decode(t)}else this.address=t}unwrap(){const t=this.getPackageId(),r=this.module?o1+this.module:"";return`${t}${r}`}toString(){return this.unwrap()}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new fn(this.toUint8Array())}getPackageId(){return CI(Xr.encode(this.address))}getCoinType(){if(this.module==="sui::SUI")return Dle;if(!this.module)throw new Error("No module present in Sui token address");return this.unwrap()}static instanceof(t){return t.constructor.platform===Vl.platform}equals(t){return Vl.instanceof(t)?t.unwrap()===this.unwrap():this.toUniversalAddress().equals(t)}};Ye(Vl,"byteSize",32),Ye(Vl,"platform","Sui");let J1=Vl;Gf("Sui",J1);async function Ile(e){try{const t=await Promise.all(e.map(async r=>r()));return await Promise.all(t.map(async r=>await Nle(r))),t}catch(t){throw console.error("Failed to load required packages",t),t}}async function Nle(e,t){try{let r=Object.entries(e.protocols);await Promise.all(r.map(([,n])=>n()))}catch(r){throw console.error("Failed to load required packages",r),r}}async function Lle(e,t,r){const n=(await Ile(t)).map(a=>a.Platform);return new ar(e,n,r)}const jle="modulepreload",Ble=function(e){return"/"+e},AI={},ja=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(r.map(d=>{if(d=Ble(d),d in AI)return;AI[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const b=document.createElement("link");if(b.rel=h?"stylesheet":jle,h||(b.as="script"),b.crossOrigin="",b.href=d,u&&b.setAttribute("nonce",u),document.head.appendChild(b),h)return new Promise((v,C)=>{b.addEventListener("load",v),b.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return a.then(o=>{for(const u of o||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})},kle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/evm-CWAxZ2a7.js").then(t=>t.e);return{default:e}},__vite__mapDeps([0,1,2,3]))).default,zle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/solana-B3bc0p0T.js");return{default:e}},__vite__mapDeps([4,5,1]))).default,_le=async()=>(await ja(async()=>{const{default:e}=await import("./assets/aptos-BuLH7jck.js").then(t=>t.a);return{default:e}},__vite__mapDeps([6,1,7,8,9]))).default,Fle=async()=>(await ja(async()=>{const{default:e}=await import("./assets/sui-CXoaI0gx.js").then(t=>t.s);return{default:e}},__vite__mapDeps([10,1,11,8]))).default,Ole="https://api.coingecko.com",Rle="https://pro-api.coingecko.com",EI={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Blast:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum"},Ule={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer"},Xb=async(e,t)=>{var a,i,o,u;const r=new Headers({...(a=Ce.coingecko)!=null&&a.apiKey?{"x-cg-pro-api-key":Ce.coingecko.apiKey}:{}}),n=(i=Ce.coingecko)!=null&&i.customUrl?Ce.coingecko.customUrl:(o=Ce.coingecko)!=null&&o.apiKey?Rle:Ole;return fetch(`${n}${e}`,{signal:(u=t==null?void 0:t.abort)==null?void 0:u.signal,headers:r}).then(d=>d.json()).catch(d=>(console.error("Error fetching from Coingecko",d),null))},Ple=async(e,t)=>Ce.network!=="Mainnet"?null:Xb(`/api/v3/coins/${e.chain.toLowerCase()}/contract/${e.address.toString()}`,t),Wle=async(e,t)=>{const r=new Av;if(Ce.network!=="Mainnet")return r;const n={},a=[];for(const u of e)pn(u.address)?a.push(u):(n[u.chain]===void 0&&(n[u.chain]=[]),n[u.chain].push(u.address.toString()));const i=Object.keys(n).map(u=>{const d=n[u];return new Promise((h,m)=>{const b=d.join(","),v=Ule[u]||u.toLowerCase();Xb(`/api/v3/simple/token_price/${v}?contract_addresses=${b}&vs_currencies=usd`,t).then(C=>{C.error!==void 0||C.error_code!==void 0?m(C.error):h(Object.keys(C).map(E=>{try{const T=ar.tokenId(u,E);return C[E]?{tokenId:T,price:C[E].usd}:null}catch(T){return console.error("Coingecko error",T),null}}).filter(E=>E!==null))}).catch(m)})});a.length>0&&i.push(new Promise((u,d)=>{const h=[];for(const m of a){const b=EI[m.chain];b?h.push(b):console.error(`Don't know a coingecko ID for native token for chain ${m.chain}`)}Xb(`/api/v3/simple/price?ids=${h.join(",")}&vs_currencies=usd`,t).then(m=>u(a.map(b=>{const v=EI[b.chain];if(v){const{usd:C}=m[v];return{tokenId:b,price:C}}else return null}).filter(b=>!!b))).catch(d)}));const o=(await Promise.allSettled(i)).map(u=>u.status==="fulfilled"?u.value:null).filter(u=>!!u).flat();for(const{tokenId:u,price:d}of o)r.add(u,d);return r},Hle=1,SI=typeof localStorage<"u";class B0{constructor(t,r){Ye(this,"chain");Ye(this,"addressString");Ye(this,"_address");this.chain=t,this.addressString=r}get address(){return pn(this.addressString)?this.addressString:(this._address||(this._address=xa(this.chain,this.addressString)),this._address)}static fromTokenTuple(t){return new B0(t[0],t[1])}}class wf extends B0{constructor(r,n,a,i,o,u,d){super(r,n);Ye(this,"decimals");Ye(this,"symbol");Ye(this,"name");Ye(this,"icon");Ye(this,"tokenBridgeOriginalTokenId");this.decimals=a,this.symbol=i,this.name=o,this.icon=u,this.tokenBridgeOriginalTokenId=d}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const r=this.addressString;return`${r.substring(0,5)}...${r.substring(r.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return cl(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return pn(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){var r;return((r=this.tokenBridgeOriginalTokenId)==null?void 0:r.chain)||this.chain}equals(r){return e7(this,r)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?QR(this.tokenBridgeOriginalTokenId):void 0}}static fromJson({chain:r,address:n,decimals:a,symbol:i,name:o,icon:u,tokenBridgeOriginalTokenId:d}){return new wf(r,n,a,i,o,u===""?void 0:u,d?A5(d):void 0)}}class Av{constructor(){Ye(this,"lastUpdate");Ye(this,"_localStorageKey");Ye(this,"_mapping");Ye(this,"size");this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(t,r){this._mapping.has(t.chain)||this._mapping.set(t.chain,new Map),this._mapping.get(t.chain).set(Jb(t).toLowerCase(),r),this.lastUpdate=new Date,this.size+=1}get(t,r){var n,a,i,o,u;if(typeof t=="string"&&typeof r=="string"&&kh(t))return(n=this._mapping.get(t))==null?void 0:n.get(r.toLowerCase());if(t instanceof B0)return(a=this._mapping.get(t.chain))==null?void 0:a.get(t.addressString.toLowerCase());if(Ph(t))return(i=this._mapping.get(t.chain))==null?void 0:i.get(t.address.toString().toLowerCase());if(Ev(t))return(o=this._mapping.get(t[0]))==null?void 0:o.get(t[1].toLowerCase());{const d=qR(t);return(u=this._mapping.get(d.chain))==null?void 0:u.get(Jb(d).toLowerCase())}}mustGet(t,r){const n=this.get(t,r);if(!n)throw new Error("Failed to get token");return n}getList(t){return t.map(r=>this.get(r)).filter(r=>r!==void 0)}getAllForChain(t){const r=this._mapping.get(t);return r?Array.from(r.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(t=>Array.from(t.values()))}get chains(){return Array.from(this._mapping.keys())}merge(t){t.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(t){this._mapping.forEach((r,n)=>{r.forEach((a,i)=>{const o=new B0(n,i);t(o,a)})})}get empty(){return this.size===0}}class bp extends Av{add(t){if(t.tokenBridgeOriginalTokenId){const r=this.get(t.tokenBridgeOriginalTokenId);r&&(t.icon=r.icon,t.name=r.name,t.symbol=r.symbol)}super.add(t,t)}getGasToken(t){return t==="Celo"?this.findBySymbol("Celo","CELO"):this.get(t,"native")}findByAddressOrSymbol(t,r){const n=this.get(t,r);if(n)return n;const a=this.findBySymbol(t,r);if(a)return a}queryBySymbol(t,r){return this.getAllForChain(t).filter(n=>{var a;return n.symbol.toLowerCase().startsWith(r.toLowerCase())||((a=n.name)==null?void 0:a.toLowerCase().startsWith(r.toLowerCase()))})}findBySymbol(t,r){let n=this.getAllForChain(t).filter(a=>a.symbol.toLowerCase()===r.toLowerCase());if(n.length>1&&(n=n.filter(a=>!a.isTokenBridgeWrappedToken)),n.length===1)return n[0];n.length>1&&console.error(`Ambiguous token symbol: ${r}`)}setLocalStorageKey(t){this._localStorageKey=t}async addFromTokenId(t){var v,C;if(t.chain==="Sui"&&!Cv(t.address.toString()))throw new Error(`Not a valid Sui token address: ${t.address.toString()}`);const r=await Ba(),n=r.getChain(t.chain),a=await n.getDecimals(t.address),i=await Ple(t);let o=((v=i==null?void 0:i.symbol)==null?void 0:v.toUpperCase())||"",u=(i==null?void 0:i.name)||"",d=((C=i==null?void 0:i.image)==null?void 0:C.large)||null;if(!o){const{getTokenMetadataFromRpc:E}=await ja(async()=>{const{getTokenMetadataFromRpc:I}=await import("./assets/tokens-DNQKjj3l.js");return{getTokenMetadataFromRpc:I}},__vite__mapDeps([12,3])),T=await E(t);T&&(console.info("Got metadata from RPC",T),o=T.symbol,u=T.name,d=T.icon)}let h;const m=await n.getTokenBridge();if(await m.isWrappedAsset(t.address)&&(h=await m.getOriginalAsset(t.address),fn.instanceof(h.address)&&(h.address=await r.getTokenNativeAddress(h.chain,h.chain,h.address)),h)){const E=this.get(h);E&&E.icon&&(d=E.icon,o=E.symbol)}const b=new wf(t.chain,Qi(t),a,o,u,d,h);return this.add(b),b}persist(){if(SI&&this._localStorageKey){const t={version:Hle,tokens:{}};this.forEach((n,a)=>{t.tokens[cl(n)]=a.toJson()});const r=JSON.stringify(t);localStorage.setItem(this._localStorageKey,r)}}static load(t){if(SI){const n=localStorage.getItem(t);if(n)try{const a=JSON.parse(n),i=new bp;i.setLocalStorageKey(t);for(const[,o]of Object.entries(a.tokens)){const u=wf.fromJson(o);i.add(u)}return i}catch(a){console.error("Error parsing cached TokenCache",a)}}const r=new bp;return r.setLocalStorageKey(t),r}}function Yle(e,t,r,n){const a=bp.load(`wormhole-connect:token-cache:${e}`);for(const{tokenId:i,symbol:o,name:u,icon:d,decimals:h}of t){const m=new wf(i.chain,i.address.toString(),h,o,u,d);a.add(m)}for(const i in r)for(const o in r[i]){const u=r[i][o];for(const d in u){const h=a.get(i,o);if(h){const m=u[d];let b=Hn(d)==="Evm"?18:8;b=Math.min(b,h.decimals);const v=new wf(d,m,b,h.symbol,h.name,h.icon,h);a.add(v)}}}return a.persist(),a}function Ev(e){return Array.isArray(e)&&e.length==2&&kh(e[0])}function QR(e){return[e.chain,Jb(e)]}function A5(e){return B0.fromTokenTuple(e)}function cl(e){return JSON.stringify(QR(e))}function qR(e){const t=JSON.parse(e);if(Ev(t))return A5(t);throw new Error(`Invalid token key "${e}"; couldn't parse`)}function Jb(e){return e instanceof B0?e.addressString:e.address.toString()}function e7(e,t){return e.chain===t.chain&&e.addressString===t.addressString}const Zle="insufficient_allowance",DI="insufficient_gas",Gle="amount_too_large",Qle="amount_too_small",VR="user_rejected",qle="user_timeout",Vle="unknown",$le="relay_failed",Kle=/insufficient token allowance/im,TI=/insufficient lamports.*?(\d+).*?(\d+)/im,Xle=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature","mi"),Jle=new RegExp("AmountInTooSmall","m");function t7(e,t){let r="Error with transfer, please try again",n=Vle;if(e.message){if(e instanceof oF)r=e.message,n=$le;else if(Kle.test(e==null?void 0:e.message))r="Error with transfer, please try again",n=Zle;else if(e.name==="TransactionExpiredTimeoutError"||e.name==="TransactionExpiredBlockheightExceededError")r="Transfer timed out, please try again",n=qle;else if(K9.MESSAGE_REGEX.test(e==null?void 0:e.message))r="Insufficient funds",n=DI;else if(Xle.test(e==null?void 0:e.message))r="Transfer rejected in wallet, please try again",n=VR;else if(Jle.test(e==null?void 0:e.message))r="Amount is too small for the selected route",n=Qle;else if(t.route.includes("CCTP")&&/burn.*exceed/i.test(e==null?void 0:e.toString())){const{amount:i}=t;r=`Amount exceeds Circle limit${i!==void 0&&bo(i)>1e6?" of 1,000,000":""}. Please reduce transfer amount.`,n=Gle}else if(TI.test(e==null?void 0:e.message)){const a=e==null?void 0:e.message.match(TI),i=a==null?void 0:a[1],o=a==null?void 0:a[2];if(r="Insufficient funds for gas.",i&&o){const u=Yr(i,9),d=Yr(o,9);r+=` Current balance is ${mn(u)} SOL, but required ${mn(d)} SOL`}n=DI}}return[r,{type:n,original:e}]}function $R(e,t){e instanceof Error&&e.message.startsWith("No protocols registered for")||console.error(t?`${t}: ${e}`:e)}const Sv=e=>{const t=e.decode.bind(e),r=e.encode.bind(e);return{decode:t,encode:r}},e0e=e=>t=>{const r=rn(e,t),{encode:n,decode:a}=Sv(r),i=r;return i.decode=(o,u)=>{const d=a(o,u);return lR(Je.Buffer.from(d))},i.encode=(o,u,d)=>{const h=nv(o,e);return n(h,u,d)},i},o3=e0e(8),KR=e=>{const t=mr(e),{encode:r,decode:n}=Sv(t),a=t;return a.decode=(i,o)=>!!n(i,o),a.encode=(i,o,u)=>{const d=Number(i);return r(d,o,u)},a},Ei=e=>{const t=rn(32,e),{encode:r,decode:n}=Sv(t),a=t;return a.decode=(i,o)=>{const u=n(i,o);return new ct(u)},a.encode=(i,o,u)=>{const d=i.toBuffer();return r(d,o,u)},a};class f8e extends Error{constructor(){super("Not supported")}}class d8e extends Error{constructor(){super("Not connected")}}var II;(function(e){e.SignTransaction="SignTransaction",e.SendTransaction="SendTransaction",e.SignAndSendTransaction="SignAndSendTransaction",e.SignMessage="SignMessage"})(II||(II={}));var eh;(function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"})(eh||(eh={}));class t0e extends ov{getWalletState(){return eh.Installed}supportsFeature(t){const r=this.getFeatures();return Array.isArray(t)?t.every(n=>r.includes(n)):r.includes(t)}}const Jr={unset:0,solana:1,ethereum:2,terra:3,bsc:4,polygon:5,avalanche:6,oasis:7,algorand:8,aurora:9,fantom:10,karura:11,acala:12,klaytn:13,celo:14,near:15,moonbeam:16,neon:17,terra2:18,injective:19,osmosis:20,sui:21,aptos:22,arbitrum:23,optimism:24,gnosis:25,pythnet:26,xpla:28,btc:29,base:30,sei:32,rootstock:33,scroll:34,mantle:35,blast:36,xlayer:37,linea:38,berachain:39,seievm:40,unichain:44,worldchain:45,monad:48,wormchain:3104,cosmoshub:4e3,evmos:4001,kujira:4002,neutron:4003,celestia:4004,stargaze:4005,seda:4006,dymension:4007,provenance:4008,sepolia:10002,arbitrum_sepolia:10003,base_sepolia:10004,optimism_sepolia:10005,holesky:10006,polygon_sepolia:10007};Object.entries(Jr).reduce((e,[t,r])=>(e[r]=t,e),{});const h8e=Jr.solana,r0e=Jr.ethereum,n0e=Jr.bsc,i0e=Jr.polygon,a0e=Jr.avalanche,s0e=Jr.oasis,o0e=Jr.aurora,c0e=Jr.fantom,l0e=Jr.karura,u0e=Jr.acala,f0e=Jr.klaytn,d0e=Jr.celo,h0e=Jr.moonbeam,p0e=Jr.neon,p8e=Jr.sui,m8e=Jr.aptos,m0e=Jr.arbitrum,g0e=Jr.optimism,y0e=Jr.gnosis,b0e=Jr.base,M0e=Jr.scroll,x0e=Jr.mantle,v0e=Jr.blast,w0e=Jr.xlayer,C0e=Jr.worldchain,A0e=Jr.unichain,E0e=Jr.monad;function g8e(e){return e===r0e||e===n0e||e===a0e||e===i0e||e===s0e||e===o0e||e===c0e||e===l0e||e===u0e||e===f0e||e===d0e||e===h0e||e===p0e||e===m0e||e===g0e||e===y0e||e===b0e||e===M0e||e===C0e||e===v0e||e===w0e||e===x0e||e===A0e||e===E0e}const Lp=class Lp extends t0e{constructor(r,n){super();Ye(this,"_isConnected",!0);this._address=r,this._chain=n}getName(){return Lp.NAME}getUrl(){return""}async connect(){return this._isConnected=!0,this.emit("connect"),[this._address.toString()]}async disconnect(){this._isConnected=!1,this.emit("disconnect")}getChainId(){return W6(this._chain)}getNetworkInfo(){throw new Error("Method not implemented.")}getAddress(){return this._address.toString()}getAddresses(){return[this.getAddress()]}setMainAddress(r){}async getBalance(){throw new Error("Address only wallet cannot fetch balance")}isConnected(){return this._isConnected}getIcon(){return""}async signTransaction(r){throw new Error("Address only wallet cannot sign transactions")}async sendTransaction(r){throw new Error("Address only wallet cannot send transactions")}async signMessage(r){throw new Error("Address only wallet cannot sign messages")}async signAndSendTransaction(r){throw new Error("Address only wallet cannot sign or send transactions")}getFeatures(){return[]}supportsChain(r){return this.getChainId()===r}};Ye(Lp,"NAME","ReadyOnlyWallet");let Cf=Lp;const c1={address:"",type:void 0,currentAddress:"",error:"",icon:void 0,name:""},NI={sending:c1,receiving:c1},XR=Uf({name:"wallet",initialState:NI,reducers:{connectWallet:(e,{payload:t})=>{e.sending.address=t.address,e.sending.currentAddress=t.address,e.sending.type=t.type,e.sending.name=t.name,e.sending.error="",e.sending.icon=t.icon},connectReceivingWallet:(e,{payload:t})=>{e.receiving.address=t.address,e.receiving.currentAddress=t.address,e.receiving.type=t.type,e.receiving.name=t.name,e.receiving.error="",e.receiving.icon=t.icon},clearWallet:(e,{payload:t})=>{e[t]=c1},disconnectWallet:(e,{payload:t})=>{jI(t),e[t]=c1},setWalletError:(e,{payload:t})=>{const{type:r,error:n}=t;e[r].error=n},setAddress:(e,{payload:t})=>{const{type:r,address:n}=t;e[r].address=n,e[r].currentAddress=n},clearWallets:e=>{Object.keys(e).forEach(t=>{e[t]=NI[t]})},swapWallets:e=>{const t=e.sending;e.sending=e.receiving,e.receiving=t,k0e(),e.sending.name===Cf.NAME&&(jI(qn.SENDING),e[qn.SENDING]=c1)}}}),{connectWallet:S0e,connectReceivingWallet:D0e,clearWallet:Mp,setAddress:y8e,setWalletError:T0e,clearWallets:I0e,disconnectWallet:N0e,swapWallets:L0e}=XR.actions,j0e=XR.reducer;var qn=(e=>(e.SENDING="sending",e.RECEIVING="receiving",e))(qn||{});const i0={sending:void 0,receiving:void 0},JR=e=>e?Ce.chainsArr.filter(t=>Hn(t.sdkName)===e).map(t=>t.sdkName):Ce.chainsArr.map(t=>t.sdkName),B0e=(e,t)=>{i0[e]=t},r7=async(e,t,r,n)=>{const{wallet:a,name:i}=r;if(B0e(e,a),!Ce.chains[t])throw new Error(`Unable to find wallets for chain ${t}`);const u=Hn(t),d=Fz.get(Ce.network,t);try{const b=typeof d=="bigint"?Number(d):d;await a.connect({chainId:b})}catch(b){if(b.message&&b.message.toLowerCase().includes("rejected"))return console.info("User rejected wallet connection"),!1;throw b}Ce.triggerEvent({type:"wallet.connect",details:{side:e,chain:t,wallet:r.name.toLowerCase()}});const h=a.getAddress(),m={address:h,type:r.type,icon:a.getIcon(),name:a.getName()};return n(e==="sending"?S0e(m):D0e(m)),a.on("disconnect",()=>{a.removeAllListeners(),setTimeout(()=>{n(Mp(e))},0),localStorage.removeItem(`wormhole-connect:wallet:${u}`)}),a.on("accountsChanged",b=>{(b.length===0||b.length&&h&&b[0]!==h)&&a.disconnect()}),i!==Cf.NAME&&localStorage.setItem(`wormhole-connect:wallet:${u}`,i),!0},LI=async(e,t,r)=>{const n=Ce.chains[t],a=`wormhole-connect:wallet:${Hn(n.sdkName)}`,i=localStorage.getItem(a);if(i&&i!=="WalletConnect"){const u=(await tU(n)).find(d=>d.name===i);if(u)try{await r7(e,t,u,r)||localStorage.removeItem(a)}catch(d){throw localStorage.removeItem(a),new Error(`Failed to autoconnect to wallet ${i} for ${t}: ${d.message}`)}}},eU=()=>{const e=oi(),{toChain:t,fromChain:r}=Lr(n=>n.transferInput);Y.useEffect(()=>{let n=!1;return(async()=>{r&&!n&&await LI("sending",r,e),t&&!n&&await LI("receiving",t,e)})(),()=>{n=!0}},[r,t])},k0e=()=>{const e=i0.sending;i0.sending=i0.receiving,i0.receiving=e},jI=async e=>{const t=i0[e];t&&await t.disconnect()},z0e=async(e,t,r,n={})=>{const a=Ce.chains[e],i=i0[r];if(!i)throw new Error("wallet is undefined");const o=Hn(a.sdkName);if(o==="Evm")return await(await ja(()=>import("./assets/evm-fcQsoqVd.js").then(h=>h.g),__vite__mapDeps([13,14,2,3]))).signAndSendTransaction(t,i,e);if(o==="Solana")return await(await ja(()=>import("./assets/solana-D0M1N7L4.js").then(h=>h.a5),__vite__mapDeps([15,16,17,5,1,18,14]))).signAndSendTransaction(t,i,n);if(o==="Sui")return(await(await ja(()=>import("./assets/sui-DXdm7DBB.js"),__vite__mapDeps([19,17,16,11]))).signAndSendTransaction(t,i)).id;if(o==="Aptos")return(await(await ja(()=>import("./assets/aptos-gb8snog6.js"),__vite__mapDeps([20,7,8,9,17]))).signAndSendTransaction(t,i)).id;throw new Error("unimplemented")},_0e=e=>{const t=e.getWalletState();return t!==eh.Unsupported&&t!==eh.NotDetected},o4=(e,t,r=[])=>Object.values(e).filter((n,a,i)=>a===i.findIndex(o=>o.getName()===n.getName())).filter(n=>!r.includes(n.getName())).map(n=>({wallet:n,type:t,name:n.getName(),icon:n.getIcon(),isReady:_0e(n)})),tU=async e=>{if(e===void 0)return[];const t=Hn(e.sdkName);if(t==="Evm"){const r=await ja(()=>import("./assets/evm-fcQsoqVd.js").then(n=>n.g),__vite__mapDeps([13,14,2,3]));return Object.values(o4(r.getWallets(),t))}else if(t==="Solana"){const n=(await ja(()=>import("./assets/solana-D0M1N7L4.js").then(a=>a.a5),__vite__mapDeps([15,16,17,5,1,18,14]))).fetchOptions();return Object.values(o4(n,t))}else if(t==="Sui"){const n=await(await ja(()=>import("./assets/sui-DXdm7DBB.js"),__vite__mapDeps([19,17,16,11]))).fetchOptions();return Object.values(o4(n,t))}else if(t==="Aptos"){const n=(await ja(()=>import("./assets/aptos-gb8snog6.js"),__vite__mapDeps([20,7,8,9,17]))).fetchOptions();return Object.values(o4(n,t))}return[]};class th{constructor(t,r,n,a,i){Ye(this,"_chain");Ye(this,"_chainContextV2");Ye(this,"_address");Ye(this,"_options");Ye(this,"_walletType");this._chain=t,this._chainContextV2=r,this._address=n,this._options=a,this._walletType=i}static async fromChain(t,r,n,a){const o=(await Ba()).getPlatform(Hn(t)).getChain(t);return new th(t,o,r,n,a)}static async fromPrivateKey(t){const a=(await Ba()).getPlatform(Hn(t)).getChain(t).platform.utils()._platform;switch(a){case"Evm":throw new Error("Missing Ethereum private key");case"Solana":throw new Error("Missing Solana private key");case"Sui":throw new Error("Missing Sui private key");default:throw new Error(`Unrecognized platform: ${a}`)}}async signAndSend(t){const r=[];for(const n of t){const a=await z0e(this._chain,n,this._walletType,this._options);r.push(a)}return r}chain(){return this._chainContextV2.chain}address(){return this._address}}class F0e{constructor(t){Ye(this,"cache",new Map);Ye(this,"pendingRequests",new Map);this.TTLms=t}async requestWithCache(t,r){const n=Date.now(),a=this.cache.get(t);if(a&&n-a.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),a.isError)throw a.value;return a.value}let i=this.pendingRequests.get(t);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=r().then(o=>(this.cache.set(t,{value:o,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(t),o)).catch(o=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(t,{value:o,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(t),o}),this.pendingRequests.set(t,i)),i}}function O0e(e){return e.length===22?e:`0x${e.slice(e.length-40,e.length)}`}function x0(e,t=6){return e.slice(0,t)+"..."+e.slice(e.length-4,e.length)}function R0e(e,t=6,r=4){const n=e.slice(0,t),a=e.slice(e.length-r,e.length);return`${n}...${a}`}function rU(e,t){return e?e==="Evm"?x0(O0e(t)):e==="Solana"?x0(t,4):x0(t):""}function BI(e){const t=Ce.tokens.getGasToken(e);if(!t)throw new Error(`gas token not found for ${e}`);return t}function U0e(e){const t=Ce.chains[e];return t?t.displayName:e}function kI(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(t)}}function nU(e){return navigator.clipboard&&navigator.clipboard.writeText(e).then(function(){return!0},function(){return kI(e)}),kI(e)}function P0e(e){return e.startsWith("0x")?e:`0x${e}`}function W0e(e,t){return e==="Sui"?wle(t):e==="Sei"?c5(P0e(t),32):t.startsWith("0x")&&t.length===66?!0:t.length>70&&t.length<100}function H0e(e){const t=Y.useRef(void 0);return Y.useEffect(()=>{t.current=e}),t.current}async function n7(e){return new Promise(t=>setTimeout(t,e))}const iU=e=>typeof e>"u"?"":e===0?"$0":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(e),a0=(e,t,r)=>{if(typeof t>"u"||!r)return;const n=e(r);if(n)return typeof t=="number"?t*n:bo(t)*n},sc=(e,t,r)=>iU(a0(e,t,r)),aU=e=>{if(e==null)return!0;for(const t in e)if(e.hasOwnProperty.call(e,t))return!1;return!0},l1=(e,t,r)=>{const n=Ce.chains[e];if(!(n!=null&&n.explorerUrl))return;const a=n.explorerUrl;switch(r){case"wallet":return e==="Aptos"?`${a}account/${t}`:`${a}address/${t}`;case"tx":return e==="Aptos"?`${a}txn/${t}`:`${a}tx/${t}`;default:switch(e){case"Sui":return`${a}coin/${t}`;case"Aptos":return`${a}${c5(t)?"fungible_asset":"coin"}/${t}`;case"Fantom":case"Solana":return`${a}address/${t}`;default:return`${a}token/${t}`}}},sU=(e,t)=>{if(!e.isTokenBridgeWrappedToken)return!1;const{nativeChain:r,symbol:n}=e;return n==="USDC"&&r==="Ethereum"&&t==="Fantom"||e.symbol==="tBTC"?!0:!["Ethereum","Sepolia"].includes(r)&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(n)},oU=e=>e>=2*6e4?`~${Math.ceil(e/6e4)} min`:`~${Math.ceil(e/1e3)} sec`,Y0e=e=>{if(e>864e5){const a=Math.floor(e/864e5);return`~${a} ${a===1?"day":"days"} ago`}else if(e>36e5){const a=Math.floor(e/36e5);return`~${a} ${a===1?"hour":"hours"} ago`}else if(e>6e4){const a=Math.floor(e/6e4);return`~${a} ${a===1?"minute":"minutes"} ago`}else return"~1 minute ago"},Z0e=e=>{if(e<60)return e===1?`${e} second`:`${e} seconds`;if(e<3600){const t=Math.floor(e/60);return t===1?`${t} minute`:`${t} minutes`}else{const t=Math.floor(e/3600);return t===1?`${t} hour`:`${t} hours`}},u1=e=>e?e.endsWith("ExecutorRoute"):!1;class G0e{constructor(t){Ye(this,"IS_TOKEN_BRIDGE_ROUTE",!1);Ye(this,"tokenCache",new F0e(24*60*60*1e3));this.rc=t,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","CosmosGateway"].includes(t.meta.name)}get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(t){const n=(await Ba()).getPlatform(Hn(t)).getChain(t);return{chain:t,context:n}}async isRouteSupported(t,r,n,a){const i=await this.getV2ChainContext(n),o=await this.getV2ChainContext(a),u=this.rc.supportedChains(Ce.network),d=u.includes(i.chain),h=u.includes(o.chain);if(!d||!h)return!1;try{return!!(await this.supportedDestTokens(t,n,a)).find(b=>ks(b,r))}catch(m){return console.error("Error checking route support:",m),!1}}isSupportedChain(t){return this.rc.supportedChains(Ce.network).includes(t)}async supportedDestTokens(t,r,n){if(!r||!n||!t)return[];const a=await this.getV2ChainContext(r),i=await this.getV2ChainContext(n);if(await this.isIlliquidDestToken(t,a.context,i.context))return[];const u=`supportedDestTokens-${t.address}-${r}-${n}`;return(await this.tokenCache.requestWithCache(u,()=>this.rc.supportedDestinationTokens(t.tokenId,a.context,i.context))).filter(h=>{const m=Ce.tokens.get(h);return!(m&&sU(m,i.chain))})}async getQuote(t,r,n,a,i,o,u){const d=await this.createRequest(r,n,a,i,u),h=await Ba(),m=new this.rc(h),b=await m.validate(d,{amount:mn(t),options:o});if(!b.valid)throw b.error;const v=await m.quote(d,b.params);return[m,v,d]}async createRequest(t,r,n,a,i){const o=(await this.getV2ChainContext(n)).context,u=(await this.getV2ChainContext(a)).context,d=await Ba();return await Tx.create(d,{source:t.tokenId,destination:r.tokenId,recipient:i?ar.chainAddress(a,i):void 0},o,u)}async computeQuote(t,r,n,a,i,o,u){if(!a||!i)throw new Error("Need both chains to get a quote from SDKv2");const[,d]=await this.getQuote(t,r,n,a,i,o,u);if(!d.success)throw d.error;return d}async send(t,r,n,a,i,o,u,d){var S;const[h,m,b]=await this.getQuote(r,t,u,n,i,d,o);if(!m.success)throw m.error;let v;(S=Ce.ui.testOptions)!=null&&S.enableHeadlessSigner?v=await th.fromPrivateKey(n):v=await th.fromChain(n,a,{},qn.SENDING);let C=await h.initiate(b,v,m,ar.chainAddress(i,o));if(C.state===Lt.SourceInitiated||C.state===Lt.SourceFinalized)return[h,C];let E=0;const T=5,I=1e3;for(;E<T;)try{for await(C of h.track(C,120*1e3))if(C.state>=Lt.SourceInitiated)return[h,C]}catch(D){console.error(`Error tracking transfer (attempt ${E+1} / ${T}):`,D);const L=I*Math.pow(2,E);await n7(L),E++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(t){const r=await Ba(),n=new this.rc(r);return Tb(n)||Ib(n)?n.resume(t):null}async isIlliquidDestToken(t,r,n){if(!this.IS_TOKEN_BRIDGE_ROUTE)return!1;const{symbol:a,nativeChain:i}=t;return!!(await Q0e(t,r,n)||["ETH","WETH"].includes(a)&&i==="Ethereum"&&["Scroll","Blast","Xlayer","Mantle","Unichain"].includes(n.chain))}}const Q0e=async(e,t,r)=>{const n=async u=>{const d=Ce.routes.get(u);if(!d)return!1;try{return(await d.rc.supportedDestinationTokens(e,t,r)).length>0}catch{return!1}},[a,i,o]=await Promise.all([n("ManualNtt"),n("AutomaticNtt"),n("M0AutomaticRoute")]);return a||i||o},q0e=[jb,lF,Nb,cF,Lb,uF];class V0e{constructor(t=q0e){Ye(this,"preference");Ye(this,"routes");Ye(this,"quoteCache");const r={},n=[];for(const a of t){const i=a.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in r)throw new Error(`Route has duplicate meta.name: ${i}`);n.push(i),r[i]=new G0e(a)}this.routes=r,this.preference=n,this.quoteCache=new $0e}get(t){return this.routes[t]}async forEach(t){return Promise.all(this.preference.map(r=>t(r,this.routes[r])))}async resumeFromTx(t){return new Promise((r,n)=>{const a=Object.keys(this.routes).length;let i=0;this.forEach((o,u)=>{u.resumeIfManual(t).then(d=>{d!==null?r({route:o,receipt:d}):i+=1}).catch(d=>{i+=1}).finally(()=>{i===a&&r(null)})})})}allSupportedChains(){const t=new Set;for(const r in Ce.chains){const n=r;this.forEach(async(a,i)=>{t.has(n)||i.isSupportedChain(n)&&t.add(n)})}return Array.from(t)}async allSupportedDestTokens(t,r,n){const a=new Set;return await this.forEach(async(i,o)=>{try{if(i.includes("Mayan")){a.add(cl(ar.tokenId(n,"native")));const u=ki.get(Ce.network,n);u&&a.add(cl(ar.tokenId(n,u)))}else{const u=await o.supportedDestTokens(t,r,n);for(const d of u)a.add(cl(d))}}catch(u){$R(u)}}),Array.from(a).map(qR)}async getQuotes(t,r){const n=await Promise.allSettled(t.map(i=>{const o=this.quoteCache.get(i,r);return o||this.quoteCache.fetch(i,r,this.get(i))})),a={};for(let i=0;i<t.length;i++){const o=t[i],u=n[i];u.status==="rejected"?a[o]={success:!1,error:u.reason}:a[o]=u.value}return a}}class $0e{constructor(){Ye(this,"cache");Ye(this,"pending");this.cache={},this.pending={}}quoteParamsKey(t,r){return`${t}:${r.sourceChain}:${r.sourceToken.address.toString()}:${r.destChain}:${r.destToken.address.toString()}:${er(r.amount)}:${r.nativeGas}:${r.recipient}`}get(t,r){const n=this.quoteParamsKey(t,r),a=this.cache[n];if(a){if(a.ttl()>5)return a.result;delete this.cache[n]}return null}async fetch(t,r,n){console.debug("Fetching quote",t,r);const a=this.quoteParamsKey(t,r),i=this.pending[a];if(i)return new Promise((o,u)=>{i.push({resolve:o,reject:u})});{const o=new Promise((u,d)=>{this.pending[a]=[{resolve:u,reject:d}]});return n.computeQuote(r.amount,r.sourceToken,r.destToken,r.sourceChain,r.destChain,{nativeGas:r.nativeGas},r.recipient).then(u=>{const d=this.pending[a];for(const{resolve:h}of d)h(u);delete this.pending[a],u.success&&u.expires===void 0&&(u.expires=new Date(Date.now()+6e4)),console.debug("Fetched quote",t,u),this.cache[a]=new zI(u)}).catch(u=>{console.debug("Error fetching quote",t,u);const d=this.pending[a];for(const{reject:h}of d)h(u);delete this.pending[a],this.cache[a]=new zI({success:!1,error:u})}),o}}nextExpiry(t,r){const n=t.map(a=>{const i=this.quoteParamsKey(a,r);if(this.cache[i])return this.cache[i].expires()}).filter(a=>a!==void 0).sort((a,i)=>a.valueOf()-i.valueOf());if(n.length>0)return n[0]}}class zI{constructor(t){Ye(this,"result");Ye(this,"timestamp");this.result=t,this.timestamp=new Date}expires(){return this.result.success?this.result.expires??new Date(this.timestamp.valueOf()+6e4):new Date(this.timestamp.valueOf()+12e4)}ttl(){return(this.expires().valueOf()-Date.now().valueOf())/1e3}}function cU(e={}){var d;const t=t$(e.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(t))throw new Error(`Invalid env "${t}": Use "Testnet", "Devnet", or "Mainnet"`);const r={MAINNET:I$,DEVNET:lK,TESTNET:nK}[t.toUpperCase()],n=JV(r.wrappedTokens,e.wrappedTokens),a=Yle(t,[...r.tokens,...e.tokensConfig?Object.values(e.tokensConfig):[]],n),i=KV[t.toUpperCase()],o=Object.assign({},i.rpcs,r.rpcs,e.rpcs);(d=e.ui)!=null&&d.defaultInputs&&e$(e.ui.defaultInputs,r.chains,a);const u=AA(e.ui??{});return e.tokens&&e.tokens.length>0&&u.disableUserInputtedTokens===void 0&&(u.disableUserInputtedTokens=!0),{sdkConfig:i,network:t,isMainnet:t==="Mainnet",rpcs:o,mayanApi:"https://explorer-api.mayan.finance",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[t],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[t],coingecko:e.coingecko,triggerEvent:dK(e.eventHandler),validateTransfer:e.validateTransferHandler,isRouteSupportedHandler:e.isRouteSupportedHandler,isTokenSupportedHandler:e.isTokenSupportedHandler,filterRoutes:e.filterRoutes,chains:r.chains,chainsArr:Object.values(r.chains).filter(h=>e.chains?e.chains.includes(h.sdkName):!0).sort((h,m)=>{const b=EA.indexOf(h.sdkName),v=EA.indexOf(m.sdkName);return b>=0&&v>=0?b-v:b===-1?1:v===-1?-1:0}),tokens:a,tokenWhitelist:e.tokens,routes:new V0e(e.routes),ui:AA({...e.ui}),guardianSet:r.guardianSet,transactionSettings:(e==null?void 0:e.transactionSettings)||{}}}const Ce=cU();async function Ba(){return Ce._v2Wormhole||(Ce._v2Wormhole=await X0e()),Ce._v2Wormhole}async function K0e(){delete Ce._v2Wormhole}async function X0e(){const e={chains:{}};for(const t in Ce.chains){const r=t,n=Ce.rpcs[r],a={};for(const i of Ce.tokens.getAllForChain(r)){const o={key:i.key,chain:r,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};a[i.address.toString()]=o}e.chains[r]={rpc:n,tokenMap:a}}return await Lle(Ce.network,[kle,zle,_le,Fle],e)}function J0e(e={}){const t=cU(e);for(const r in t)Ce[r]=t[r];typeof window<"u"&&(window._connectConfig=Ce)}function eue(){return{data:null,error:null,isFetching:!1,receivedAt:null}}function tue(e){return{data:e,error:null,isFetching:!1,receivedAt:new Date().toISOString()}}function rue(e){return{data:null,error:e,isFetching:!1,receivedAt:null}}function nue(){return{data:null,error:null,isFetching:!0,receivedAt:null}}const iue=(e,t,r)=>{if(!r||!e||!t)return;const n=e[t];if(!n)return;const a=n[r];if(a)return a},lU=(e,t,r,n)=>{const a=iue(e,t,r);if(a)return a.balances[n.key]};function _I(){var o,u,d;const{fromChain:e,toChain:t,fromToken:r,toToken:n}=Ce.ui.defaultInputs||{},a=e&&r?(o=Ce.tokens.findByAddressOrSymbol(e,r))==null?void 0:o.tuple:void 0,i=t&&n?(u=Ce.tokens.findByAddressOrSymbol(t,n))==null?void 0:u.tuple:void 0;return{showValidationState:!1,validations:{fromChain:"",toChain:"",amount:"",toNativeToken:"",sendingWallet:"",receivingWallet:"",relayerFee:"",receiveAmount:""},fromChain:e,toChain:t,token:a,destToken:i,amount:void 0,receiveAmount:eue(),preferredRouteName:(d=Ce.ui.defaultInputs)==null?void 0:d.preferredRouteName,route:void 0,balances:{},foreignAsset:"",associatedTokenAddress:"",gasEst:{send:"",claim:""},isTransactionInProgress:!1,receiverNativeBalance:""}}const FI=e=>{const{fromChain:t}=e;if(e.token){const r=Ce.tokens.get(e.token);if(r&&t&&r.chain!==t&&r.symbol){const n=Ce.tokens.findBySymbol(t,r.symbol);n&&(e.token=n.tuple)}}},OI=e=>{const{toChain:t}=e;if(e.destToken){const r=Ce.tokens.get(e.destToken);if(r&&t&&r.chain!==t&&r.symbol){const n=Ce.tokens.findBySymbol(t,r.symbol);n&&(e.destToken=n.tuple)}}},uU=Uf({name:"transfer",initialState:_I(),reducers:{setValidations:(e,{payload:{showValidationState:t,validations:r}})=>{Object.keys(r).forEach(n=>{e.validations[n]=r[n]}),e.showValidationState=t},setToken:(e,{payload:t})=>{e.token=t},clearToken:e=>{e.token=void 0},setDestToken:(e,{payload:t})=>{e.destToken=t},clearDestToken:e=>{e.destToken=void 0},setFromChain:(e,{payload:t})=>{e.fromChain=t,FI(e)},setToChain:(e,{payload:t})=>{e.toChain=t,OI(e)},setAmount:(e,{payload:t})=>{if(e.token&&e.fromChain){const r=Ce.tokens.get(e.token);if(r){const{decimals:n}=r,a=g0(t,n);er(a)===0n?e.amount=void 0:e.amount=a}}else console.warn("Can't call setAmount without a fromChain and token")},setReceiveAmount:(e,{payload:t})=>{e.receiveAmount=tue(t)},setFetchingReceiveAmount:e=>{e.receiveAmount=nue()},setReceiveAmountError:(e,{payload:t})=>{e.receiveAmount=rue(t)},updateBalances:(e,{payload:t})=>{var i,o;const{chain:r,balances:n,address:a}=t;a&&((i=e.balances)[a]??(i[a]={}),(o=e.balances[a])[r]??(o[r]={balances:{}}),e.balances[a][r].balances={...e.balances[a][r].balances,...n})},setTransferRoute:(e,{payload:t})=>{if(!t){e.route=void 0;return}e.route=t},clearTransfer:e=>{const t=_I();Object.keys(e).forEach(r=>{e[r]=t[r]})},setIsTransactionInProgress:(e,{payload:t})=>{e.isTransactionInProgress=t},swapInputs:e=>{const t=e.fromChain;e.fromChain=e.toChain,e.toChain=t;const r=e.token;e.token=e.destToken,e.destToken=r,FI(e),OI(e)}}}),fU=(e,t)=>t.name==="OKX Wallet"&&e==="Evmos"?!0:!JR(t.type).includes(e),aue=async(e,t,r)=>{dU(qn.SENDING,e,t,r)},sue=async(e,t,r)=>{dU(qn.RECEIVING,e,t,r)},dU=async(e,t,r,n)=>{fU(r,n)&&(t(Mp(e)),t(T0e({type:e,error:"Wallet disconnected, please connect a supported wallet"}))),Ce.chains[r]&&t(e===qn.SENDING?fue(r):Dv(r))},{setValidations:oue,setToken:cue,clearToken:lue,setDestToken:hU,clearDestToken:uue,setFromChain:fue,setToChain:Dv,setAmount:Tv,setTransferRoute:c4,updateBalances:due,clearTransfer:RI,setIsTransactionInProgress:UI,swapInputs:hue}=uU.actions,pue=uU.reducer,PI={maxSwapAmt:void 0,toNativeToken:0,receiveNativeAmt:void 0,relayerFee:void 0,receiverNativeBalance:""},pU=Uf({name:"transfer",initialState:PI,reducers:{setToNativeToken:(e,{payload:t})=>{e.toNativeToken=t},clearRelay:e=>{Object.keys(e).forEach(t=>{e[t]=PI[t]})}}}),{setToNativeToken:mue}=pU.actions,gue=pU.reducer,yue={route:"bridge",showFromChainsModal:!1,showToChainsModal:!1,showTokensModal:!1,showWalletModal:!1},mU=Uf({name:"router",initialState:yue,reducers:{setRoute:(e,{payload:t})=>{e.route=t}}}),{setRoute:ys}=mU.actions,bue=mU.reducer,Mue={txHash:void 0,chain:void 0},gU=Uf({name:"search",initialState:Mue,reducers:{setSearch(e,t){e.txHash=t.payload.txHash,e.chain=t.payload.chain},clearSearch(e){e.txHash=void 0,e.chain=void 0}}}),{setSearch:yU,clearSearch:bU}=gU.actions,xue=gU.reducer,WI=kV({reducer:{redeem:QV,transferInput:pue,router:bue,wallet:j0e,relay:gue,search:xue}}),MU=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(r=>{const[n,a]=e[r];t[n]=a}),t};function yl(e){return Object.keys(e)}function s0(e,t){if(!e)throw new Error(t)}function Iv(e,t){return t}const Nv=e=>{const t=e.length;let r=0,n="";for(;r<t;r++){const a=e[r];if(a==null)continue;let i;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=Nv(a);else{s0(!Iv(a,!1)),i="";for(const o in a)a[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}return n};function vue(e,t){var r;const n=Y.useRef();return(!n.current||t.length!==((r=n.current.prevDeps)===null||r===void 0?void 0:r.length)||n.current.prevDeps.map((a,i)=>a===t[i]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}function wue(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:Cue}=(()=>{function e(r,n,a){const i=[],o=kM(r,i,a);return i.length<2?a:o+n(i)}function t(r){const{cache:n}=r,a=(...o)=>{const u=Rf(o,n.registered);f6(n,u,!1);const d=`${n.key}-${u.name}`;e:{const h=o[0];if(!wue(h))break e;HI.saveClassNameCSSObjectMapping(n,d,h)}return d};return{css:a,cx:(...o)=>{const u=Nv(o),d=HI.fixClassName(n,u,a);return e(n.registered,a,d)}}}return{createCssAndCx:t}})();function xU(e){const{useCache:t}=e;function r(){const n=t(),{css:a,cx:i}=vue(()=>Cue({cache:n}),[n]);return{css:a,cx:i}}return{useCssAndCx:r}}const HI=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,r,n)=>{let a=e.get(t);a===void 0&&(a=new Map,e.set(t,a)),a.set(r,n)},fixClassName:(()=>{function t(r){let n=!1;return r.map(([a,i])=>{if(i===void 0)return a;let o;if(n)o={"&&":i};else{o=a;for(const u in i)if(u.startsWith("@media")){n=!0;break}}return o})}return(r,n,a)=>{const i=e.get(r);return Nv(t(n.split(" ").map(o=>[o,i==null?void 0:i.get(o)])).map(o=>typeof o=="string"?o:a(o)))}})()}})();function bl(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const r in e){const n=e[r],a=typeof n;if(!(a==="string"||a==="number"&&!isNaN(n)||a==="boolean"||n===void 0||n===null))return e;t.push(`${r}:${a}_${n}`)}return"xSqLiJdLMd9s"+t.join("|")}function Lv(e,t,r){if(!(t instanceof Object))return e;const n={};return yl(e).forEach(a=>n[a]=r(e[a],t[a])),yl(t).forEach(a=>{if(a in e)return;const i=t[a];typeof i=="string"&&(n[a]=i)}),n}const vU=({classes:e,theme:t,muiStyleOverridesParams:r,css:n,cx:a,name:i})=>{var o,u;e:{if(i==="makeStyle no name"){i=void 0;break e}if(r!==void 0&&i===void 0)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}let d;try{d=i===void 0?void 0:((u=(o=t.components)===null||o===void 0?void 0:o[i])===null||u===void 0?void 0:u.styleOverrides)||void 0}catch{}const h=Y.useMemo(()=>{if(d===void 0)return;const m={};for(const b in d){const v=d[b];v instanceof Object&&(m[b]=n(typeof v=="function"?v({theme:t,ownerState:r==null?void 0:r.ownerState,...r==null?void 0:r.props}):v))}return m},[d,bl(r==null?void 0:r.props),bl(r==null?void 0:r.ownerState),n]);return e=Y.useMemo(()=>Lv(e,h,a),[e,h,a]),{classes:e}},Aue=IZ;let Eue=0;function wU(e){const{useTheme:t,cache:r}=e,{useCache:n}=CU({cacheProvidedAtInception:r}),{useCssAndCx:a}=xU({useCache:n});function i(u){const{name:d,uniqId:h=`${Eue++}`}=u??{},m=typeof d!="object"?d:Object.keys(d)[0];return function(b){const v=typeof b=="function"?b:()=>b;return function(E,T){const I=t();let{css:S,cx:D}=a();const L=n();let N=Y.useMemo(()=>{const _={},O=typeof Proxy<"u"&&new Proxy({},{get:(F,k)=>(typeof k=="symbol"&&s0(!1),_[k]=`${L.key}-${h}${m!==void 0?`-${m}`:""}-${k}-ref`)}),U=v(I,E,O||{}),z=MU(yl(U).map(F=>{const k=U[F];return k.label||(k.label=`${m!==void 0?`${m}-`:""}${F}`),[F,`${S(k)}${Iv(F,F in _)?` ${_[F]}`:""}`]}));return yl(_).forEach(F=>{F in z||(z[F]=_[F])}),z},[L,S,D,I,bl(E)]);{const _=T==null?void 0:T.props.classes;N=Y.useMemo(()=>Lv(N,_,D),[N,bl(_),D])}{const _=vU({classes:N,css:S,cx:D,name:m??"makeStyle no name",muiStyleOverridesParams:T,theme:I});_.classes!==void 0&&(N=_.classes),_.css!==void 0&&(S=_.css),_.cx!==void 0&&(D=_.cx)}return{classes:N,theme:I,css:S,cx:D}}}}function o(){const u=t(),{css:d,cx:h}=a();return{theme:u,css:d,cx:h}}return{makeStyles:i,useStyles:o}}const Sue=Y.createContext(void 0),{createUseCache:CU}=(()=>{function e(){return Y.useContext(Sue)}function t(r){const{cacheProvidedAtInception:n}=r;function a(){var i;const o=Aue(),u=e(),d=(i=n??u)!==null&&i!==void 0?i:o;if(d===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
|
|
126
126
|
`));return d}return{useCache:a}}return{createUseCache:t}})();function YI(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Due(e){const{useTheme:t,cache:r}=e,{makeStyles:n}=wU({useTheme:t,cache:r});function a(i,o,u){const d=typeof i=="string"?(()=>{const C=i,E=function({children:T,...I}){return Y.createElement(C,I,T)};return Object.defineProperty(E,"name",{value:YI(C)}),E})():i,h=(()=>{{const{name:E}=u??{};if(E!==void 0)return typeof E!="object"?E:Object.keys(E)[0]}let C;e:{const E=d.displayName;if(typeof E!="string"||E==="")break e;C=E}e:{if(C!==void 0)break e;const E=d.name;if(typeof E!="string"||E==="")break e;C=E}if(C!==void 0)return C=C.replace(/\$/g,"usd"),C=C.replace(/\(/g,"_").replace(/\)/g,"_"),C=C.replace(/[^a-zA-Z0-9-_]/g,"_"),C})(),m=n({...u,name:h})(typeof o=="function"?(C,E,T)=>GI(o(C,E,T)):GI(o));function b(C){for(const E in C)if(E!=="root")return!0;return!1}const v=Y.forwardRef(function(C,E){const{className:T,classes:I,...S}=C,{classes:D,cx:L}=m(C,{props:C}),N=L(D.root,T);return AU.set(D,{...D,root:N}),Vn.createElement(d,{ref:E,className:b(D)?T:N,...typeof i=="string"?{}:{classes:D},...S})});return h!==void 0&&(v.displayName=`${YI(h)}WithStyles`,Object.defineProperty(v,"name",{value:v.displayName})),v}return a.getClasses=Tue,{withStyles:a}}const AU=new WeakMap,ZI="getClasses should only be used in conjunction with withStyles";function Tue(e){const t=e.classes;if(t===void 0)throw new Error(ZI);const r=AU.get(t);if(r===void 0)throw new Error(ZI);return r}function GI(e){const t={},r={};return Object.keys(e).forEach(n=>(n.startsWith("@media")?r:t)[n]=e[n]),Object.keys(r).forEach(n=>{const a=r[n];Object.keys(a).forEach(i=>{var o;return t[i]={...(o=t[i])!==null&&o!==void 0?o:{},[n]:a[i]}})}),t}const Iue=!(typeof document=="object"&&typeof(document==null?void 0:document.getElementById)=="function")&&!(typeof jest<"u")&&!(typeof mocha<"u")&&!(typeof __vitest_worker__<"u");function EU(e){SU=0,Fc.splice(0,Fc.length);const{useContext:t,usePlugin:r,cache:n}=e,{useCache:a}=CU({cacheProvidedAtInception:n}),{useCssAndCx:i}=xU({useCache:a});return{tss:c3({useContext:t,useCache:a,useCssAndCx:i,usePlugin:r??(({classes:d,cx:h,css:m})=>({classes:d,cx:h,css:m})),name:void 0,doesUseNestedSelectors:!1})}}let SU=0;const Fc=[];function c3(e){const{useContext:t,useCache:r,useCssAndCx:n,usePlugin:a,name:i,doesUseNestedSelectors:o}=e;return{withParams:()=>c3({...e}),withName:u=>c3({...e,name:typeof u!="object"?u:Object.keys(u)[0]}),withNestedSelectors:()=>c3({...e,doesUseNestedSelectors:!0}),create:u=>{const d=`x${SU++}`;if(i!==void 0)for(;;){const m=Fc.find(b=>b.name===i);if(m===void 0)break;Fc.splice(Fc.indexOf(m),1)}const h=typeof u=="function"?u:()=>u;return function(b){var v,C,E;const{classesOverrides:T,...I}=b??{},S=t(),{css:D,cx:L}=n(),N=r(),_=()=>{const z={},F=h({...b,...S,...o?{classes:typeof Proxy>"u"?{}:new Proxy({},{get:(w,s)=>{if(typeof s=="symbol"&&s0(!1),Iue&&i===void 0)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join(`
|
|
127
127
|
`));e:{if(i===void 0)break e;let l=Fc.find(f=>f.name===i&&f.idOfUseStyles===d);l===void 0&&(l={name:i,idOfUseStyles:d,nestedSelectorRuleNames:new Set},Fc.push(l)),l.nestedSelectorRuleNames.add(s)}e:{if(i===void 0||!(Fc.find(f=>f.name===i&&f.idOfUseStyles!==d&&f.nestedSelectorRuleNames.has(s))!==void 0))break e;throw new Error([`tss-react: There are in your codebase two different useStyles named "${i}" that`,`both use use the nested selector ${s}.
|
|
128
128
|
`,`This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.
|
|
@@ -339,6 +339,6 @@ Message: ${n}.
|
|
|
339
339
|
350.784C333.887 394.401 386.876 441.618 425.888 388.905C446.28 361.434
|
|
340
340
|
481.956 283.697 469.558 226.035C462.309 193.336 452.647 169.501 414.337
|
|
341
341
|
136.759C421.441 140.951 428.34 145.706 435.032 151.026C524.043 233.94
|
|
342
|
-
513.716 362.141 451.503 430.865Z`,fill:"url(#icons_tokens_inj_linearGradient_1)"})]})}function K6e(){return j.jsxs("svg",{viewBox:"316.829 225.555 66.146 48.89",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("g",{filter:"url(#icons_tokens_ntt_filter_0)",transform:"matrix(1, 0, 0, 1, 307.15521240234375, 224.00100708007812)",children:j.jsx("path",{d:"M42.3874 29.5938C40.2035 29.5938 38.433 27.8234 38.433 25.6394C38.433 23.4555 40.2035 21.6851 42.3874 21.6851C44.5714 21.6851 46.3418 23.4555 46.3418 25.6394C46.3418 27.8234 44.5714 29.5938 42.3874 29.5938Z",fill:"white"})}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 316.829 249.281 L 382.975 249.281 L 382.975 250.719 L 316.829 250.719 L 316.829 249.281 Z",fill:"url(#icons_tokens_ntt_linearGradient_0)"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 349.903 273.007 C 362.609 273.007 372.91 262.707 372.91 250 C 372.91 237.293 362.609 226.993 349.903 226.993 C 337.196 226.993 326.896 237.293 326.896 250 C 326.896 262.707 337.196 273.007 349.903 273.007 Z M 349.903 274.445 C 363.404 274.445 374.348 263.501 374.348 250 C 374.348 236.499 363.404 225.555 349.903 225.555 C 336.402 225.555 325.458 236.499 325.458 250 C 325.458 263.501 336.402 274.445 349.903 274.445 Z",fill:"url(#icons_tokens_ntt_linearGradient_1)"})]})}function X6e(){return j.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"444",height:"444",viewBox:"0 0 444 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("style",{children:".st0{fill:#ffeeda}.st2{fill:#101010}"}),j.jsx("path",{d:"M0 0h444v444H0z",className:"st0"}),j.jsx("path",{d:"M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",className:"st0"}),j.jsx("path",{d:"M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",style:{fill:"#ebc28e"}}),j.jsx("path",{d:"M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",className:"st2"}),j.jsx("path",{d:"M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",className:"st2"}),j.jsx("path",{d:"M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zm16.5-36.4H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",className:"st2"})]})}function J6e(){return j.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"252",height:"166",viewBox:"0 0 252 166",fill:"none",children:[j.jsx("path",{fill:"#FCFC03",d:"m197.902 81.513 39.608-19.736 13.653-41.906L223.857 0H42.041L0 31.226h213.718l-11.355 35.147H116.66l-8.246 25.684h85.703L170.055 166l40.149-19.871 14.329-44.339-26.901-19.736.27-.541Z"}),j.jsx("path",{fill:"#FCFC03",d:"m60.422 134.233 24.737-77.052-27.441-20.548L16.488 166h153.564l10.273-31.767H60.422Z"})]})}function e5e(){return j.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{cx:"18",cy:"18",r:"18",fill:"black"}),j.jsx("path",{d:"M28.3266 11.8302L17.9483 11.8466C14.5118 11.8466 11.7258 14.6326 11.7258 18.069C11.7258 21.5055 14.5118 24.2915 17.9483 24.2915H27.9424",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),j.jsx("path",{d:"M6.16479 18.069H30.138",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),j.jsx("path",{d:"M18.069 6C24.7345 6 30.1379 11.4035 30.1379 18.069C30.1379 24.7345 24.7345 30.1379 18.069 30.1379C11.4035 30.1379 6 24.7345 6 18.069C6 11.4035 11.4035 6 18.069 6Z",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function t5e(){return j.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#814625"}),j.jsx("path",{d:"M30.8066 30.3796C30.7714 30.2733 30.7468 30.1643 30.7278 30.0542C30.7191 30.0032 30.7089 29.9524 30.6974 29.902C30.6723 29.7925 30.6444 29.6836 30.6143 29.5753V29.575C31.1133 28.8474 33.4988 25.0525 30.7842 22.6167C27.7714 19.9133 24.2512 23.4567 24.2512 23.4567L24.2621 23.4724C22.6799 23.0093 20.9643 22.955 19.2952 23.4565C19.295 23.4565 19.2949 23.4565 19.2949 23.4565C19.2743 23.4358 15.7659 19.9212 12.762 22.6167C9.75706 25.313 13.0019 29.6752 13.0188 29.698C13.0188 29.698 13.0188 29.6981 13.0188 29.6983C12.9843 29.8008 12.9564 29.9054 12.938 30.0117C12.6129 31.8784 10.3999 32.4545 10.3999 35.7061C10.3999 38.9576 12.715 41.6321 17.4404 41.6321H19.3794C19.3794 41.6321 19.3796 41.6321 19.3797 41.6321C19.3884 41.644 20.1867 42.7339 21.826 42.7327C23.3478 42.7316 24.3528 41.6414 24.3615 41.6321C24.3615 41.6321 24.3615 41.6321 24.3618 41.6321H26.2117C30.9371 41.6321 33.2522 39.0204 33.2522 35.7061C33.2522 32.6781 31.3331 31.9702 30.8068 30.3796H30.8066Z",fill:"white"}),j.jsx("path",{d:"M53.3886 26.6644C53.3886 26.6644 53.74 23.5305 51.0687 22.8571V21.6002H48.9999V22.8257C46.182 23.4261 46.5451 26.6644 46.5451 26.6644V27.2017C46.5451 27.2017 46.1818 30.4407 49.0009 31.0405H49.0006V33.7308C46.0304 34.252 46.4057 37.5966 46.4057 37.5966V38.1339C46.4057 38.1339 46.0424 41.3722 48.8604 41.9725V43.1981H50.9292V41.9412C53.6007 41.2678 53.2491 38.1339 53.2491 38.1339C53.3659 38.1339 53.4606 38.0427 53.4606 37.9303V37.8003C53.4606 37.6878 53.3659 37.5966 53.2491 37.5966C53.2491 37.5966 53.5977 34.4899 50.9638 33.7984V31.0405H50.9327C53.7518 30.4407 53.3885 27.2017 53.3885 27.2017C53.5052 27.2017 53.5999 27.1105 53.5999 26.998V26.868C53.5999 26.7556 53.5052 26.6644 53.3885 26.6644H53.3886ZM51.7027 37.5966H51.5134C51.3967 37.5966 51.302 37.6878 51.302 37.8003V37.9303C51.302 38.0427 51.3967 38.1339 51.5134 38.1339H51.7027C51.7027 40.0779 51.0324 40.405 50.8069 40.4601C50.7698 40.4691 50.7338 40.4426 50.7338 40.4058V39.7862C50.7338 39.4436 50.5072 39.256 50.2806 39.1539C49.9941 39.0249 49.6605 39.0249 49.3741 39.1539C49.1475 39.256 48.9208 39.4436 48.9208 39.7862V40.4058C48.9208 40.4421 48.8855 40.4692 48.849 40.4603C48.6248 40.4062 47.952 40.0817 47.952 38.1339V37.5966C47.952 35.6526 48.6222 35.3255 48.8478 35.2705C48.8848 35.2615 48.9208 35.2879 48.9208 35.3247V35.9444C48.9208 36.2869 49.1475 36.4746 49.3741 36.5767C49.6605 36.7056 49.9941 36.7056 50.2806 36.5767C50.5072 36.4746 50.7338 36.2869 50.7338 35.9444V35.3247C50.7338 35.2885 50.7691 35.2613 50.8056 35.2702C51.0299 35.3243 51.7027 35.6489 51.7027 37.5966ZM51.6529 27.2017H51.8421C51.8421 29.1494 51.1694 29.4741 50.9451 29.5281C50.9086 29.537 50.8733 29.5098 50.8733 29.4736V28.8539C50.8733 28.5114 50.6467 28.3237 50.42 28.2216C50.1336 28.0927 49.8 28.0927 49.5135 28.2216C49.2869 28.3237 49.0603 28.5114 49.0603 28.8539V29.4736C49.0603 29.5104 49.0243 29.5368 48.9872 29.5278C48.7617 29.4728 48.0915 29.1457 48.0915 27.2017V26.6644C48.0915 24.7166 48.7642 24.3919 48.9885 24.3379C49.025 24.3291 49.0603 24.3564 49.0603 24.3925V25.0121C49.0603 25.3547 49.2869 25.5423 49.5135 25.6444C49.8 25.7734 50.1336 25.7734 50.42 25.6444C50.6467 25.5423 50.8733 25.3547 50.8733 25.0121V24.3925C50.8733 24.3557 50.9093 24.3292 50.9464 24.3382C51.1719 24.3933 51.8421 24.7204 51.8421 26.6644H51.6529C51.5361 26.6644 51.4414 26.7556 51.4414 26.868V26.998C51.4414 27.1105 51.5361 27.2017 51.6529 27.2017Z",fill:"white"}),j.jsx("path",{d:"M43.036 32.1987C43.036 32.1987 43.4013 28.9416 40.5566 28.355V25.4288C43.3256 24.8038 42.9663 21.6002 42.9663 21.6002C42.9663 21.6002 41.4134 21.6002 41.4198 21.6002C41.4198 23.548 40.7471 23.8726 40.5228 23.9266C40.4863 23.9355 40.451 23.9082 40.451 23.8721V23.2524C40.451 22.9099 40.2244 22.7223 39.9977 22.6202C39.7113 22.4912 39.3777 22.4912 39.0912 22.6202C38.8646 22.7223 38.638 22.9099 38.638 23.2524V23.8721C38.638 23.9089 38.602 23.9354 38.5649 23.9264C38.3394 23.8713 37.6692 23.5442 37.6692 21.6002C37.6757 21.6002 36.1227 21.6002 36.1227 21.6002C36.1227 21.6002 35.7499 24.9246 38.6908 25.4611V28.351C35.8255 28.927 36.1924 32.1985 36.1924 32.1985V32.7358C36.1924 32.7358 35.8255 36.0074 38.6908 36.5834V39.339C35.7499 39.8756 36.1227 43.1998 36.1227 43.1998C36.1227 43.1998 37.6756 43.1998 37.6692 43.1998C37.6692 41.2521 38.3419 40.9274 38.5662 40.8734C38.6027 40.8645 38.638 40.8917 38.638 40.9279V41.5476C38.638 41.8901 38.8646 42.0778 39.0912 42.1799C39.3777 42.3088 39.7113 42.3088 39.9977 42.1799C40.2244 42.0778 40.451 41.8901 40.451 41.5476V40.9279C40.451 40.8911 40.487 40.8647 40.5241 40.8737C40.7496 40.9287 41.4198 41.2558 41.4198 43.1998C41.4133 43.1998 42.9663 43.1998 42.9663 43.1998C42.9663 43.1998 43.3256 39.9962 40.5566 39.3712V36.5794C43.4013 35.9927 43.036 32.7357 43.036 32.7357C43.1528 32.7357 43.2475 32.6445 43.2475 32.5321V32.402C43.2475 32.2896 43.1528 32.1984 43.036 32.1984V32.1987ZM41.3003 32.736H41.4895C41.4895 34.6837 40.8168 35.0084 40.5925 35.0624C40.556 35.0713 40.5207 35.0441 40.5207 35.0079V34.3882C40.5207 34.0457 40.2941 33.858 40.0675 33.7559C39.781 33.627 39.4474 33.627 39.161 33.7559C38.9343 33.858 38.7077 34.0457 38.7077 34.3882V35.0079C38.7077 35.0447 38.6717 35.0711 38.6346 35.0621C38.4091 35.007 37.7389 34.68 37.7389 32.736V32.1987C37.7389 30.2509 38.4116 29.9262 38.6359 29.8722C38.6724 29.8634 38.7077 29.8906 38.7077 29.9268V30.5464C38.7077 30.889 38.9343 31.0766 39.161 31.1787C39.4474 31.3077 39.781 31.3077 40.0675 31.1787C40.2941 31.0766 40.5207 30.889 40.5207 30.5464V29.9268C40.5207 29.89 40.5567 29.8635 40.5938 29.8725C40.8193 29.9276 41.4895 30.2547 41.4895 32.1987H41.3003C41.1836 32.1987 41.0889 32.2899 41.0889 32.4023V32.5323C41.0889 32.6448 41.1836 32.736 41.3003 32.736Z",fill:"white"})]})}function r5e(){return j.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",height:"64",width:"64",viewBox:"0 0 64 64",children:j.jsxs("g",{transform:"translate(0.00630876,-0.00301984)",children:[j.jsx("path",{fill:"#f7931a",d:"m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"}),j.jsx("path",{fill:"#FFF",d:"m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"})]})})}const MP=gr()((e,{size:t})=>({container:{height:t,width:t,...L5},iconImage:{width:t,height:t,borderRadius:"50px"},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:t,height:t,borderRadius:"50px",background:`color-mix(in hsl, ${e.palette.text.secondary}, ${e.palette.input.background} 80%)`}})),GN={[Ie.WBTC]:w6e(),[Ie.BUSD]:C6e(),[Ie.USDT]:A6e(),[Ie.DAI]:E6e(),[Ie.GLMR]:S6e(),[Ie.AVAX]:D6e(),[Ie.BNB]:T6e(),[Ie.BSC]:O6e(),[Ie.CELO]:I6e(),[Ie.ETH]:N6e(),[Ie.FANTOM]:L6e(),[Ie.POLYGON]:F6e(),[Ie.SOLANA]:j6e(),[Ie.USDC]:R6e(),[Ie.SUI]:k6e(),[Ie.APT]:B6e(),[Ie.ARBITRUM]:U6e(),[Ie.OPTIMISM]:P6e(),[Ie.SEI]:z6e(),[Ie.BASE]:_6e(),[Ie.OSMO]:W6e(),[Ie.TBTC]:H6e(),[Ie.WSTETH]:Y6e(),[Ie.ATOM]:G6e(),[Ie.EVMOS]:Z6e(),[Ie.KUJI]:Q6e(),[Ie.PYTH]:V6e(),[Ie.KLAY]:q6e(),[Ie.INJ]:$6e(),[Ie.NTT]:K6e(),[Ie.SCROLL]:X6e(),[Ie.BLAST]:J6e(),[Ie.XLAYER]:j.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:ZN("Xlayer")}),[Ie.MANTLE]:j.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:ZN("Mantle")}),[Ie.WORLDCHAIN]:e5e(),[Ie.BERA]:t5e(),[Ie.BTC]:r5e(),[Ie.SONIC]:iP()};function n5e(e){return Object.values(Ie).includes(e)}function i5e(e){const{classes:t}=MP(e);return j.jsx("div",{className:t.emptyIcon})}function lw(e){const t=e.height||36,{classes:r}=MP({size:t});let n=j.jsx(i5e,{size:t});return n5e(e.icon)&&GN[e.icon]?n=GN[e.icon]:typeof e.icon=="string"&&(n=j.jsx("img",{className:r.iconImage,src:e.icon})),j.jsx("div",{className:r.container,children:n})}const m1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},xP=Object.create(null);for(const e in m1)Object.hasOwn(m1,e)&&(xP[m1[e]]=e);const ni={to:{},get:{}};ni.get=function(e){const t=e.slice(0,3).toLowerCase();let r,n;switch(t){case"hsl":{r=ni.get.hsl(e),n="hsl";break}case"hwb":{r=ni.get.hwb(e),n="hwb";break}default:{r=ni.get.rgb(e),n="rgb";break}}return r?{model:n,value:r}:null};ni.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^(\w+)$/;let o=[0,0,0,1],u,d,h;if(u=e.match(r)){for(h=u[2],u=u[1],d=0;d<3;d++){const m=d*2;o[d]=Number.parseInt(u.slice(m,m+2),16)}h&&(o[3]=Number.parseInt(h,16)/255)}else if(u=e.match(t)){for(u=u[1],h=u[3],d=0;d<3;d++)o[d]=Number.parseInt(u[d]+u[d],16);h&&(o[3]=Number.parseInt(h+h,16)/255)}else if(u=e.match(n)){for(d=0;d<3;d++)o[d]=Number.parseInt(u[d+1],10);u[4]&&(o[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else if(u=e.match(a)){for(d=0;d<3;d++)o[d]=Math.round(Number.parseFloat(u[d+1])*2.55);u[4]&&(o[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else return(u=e.match(i))?u[1]==="transparent"?[0,0,0,0]:Object.hasOwn(m1,u[1])?(o=m1[u[1]],o[3]=1,o):null:null;for(d=0;d<3;d++)o[d]=ll(o[d],0,255);return o[3]=ll(o[3],0,1),o};ni.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){const n=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,i=ll(Number.parseFloat(r[2]),0,100),o=ll(Number.parseFloat(r[3]),0,100),u=ll(Number.isNaN(n)?1:n,0,1);return[a,i,o,u]}return null};ni.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){const n=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,i=ll(Number.parseFloat(r[2]),0,100),o=ll(Number.parseFloat(r[3]),0,100),u=ll(Number.isNaN(n)?1:n,0,1);return[a,i,o,u]}return null};ni.to.hex=function(...e){return"#"+v4(e[0])+v4(e[1])+v4(e[2])+(e[3]<1?v4(Math.round(e[3]*255)):"")};ni.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};ni.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"};ni.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};ni.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};ni.to.keyword=function(...e){return xP[e.slice(0,3)]};function ll(e,t,r){return Math.min(Math.max(t,e),r)}function v4(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const sh={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},vP={};for(const e of Object.keys(sh))vP[sh[e]]=e;const Ct={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},oc=(6/29)**3;function Yu(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function Zu(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(Ct)){if(!("channels"in Ct[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ct[e]))throw new Error("missing channel labels property: "+e);if(Ct[e].labels.length!==Ct[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Ct[e];delete Ct[e].channels,delete Ct[e].labels,Object.defineProperty(Ct[e],"channels",{value:t}),Object.defineProperty(Ct[e],"labels",{value:r})}Ct.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a;let u,d;switch(i){case a:{u=0;break}case t:{u=(r-n)/o;break}case r:{u=2+(n-t)/o;break}case n:{u=4+(t-r)/o;break}}u=Math.min(u*60,360),u<0&&(u+=360);const h=(a+i)/2;return i===a?d=0:h<=.5?d=o/(i+a):d=o/(2-i-a),[u,d*100,h*100]};Ct.rgb.hsv=function(e){let t,r,n,a,i;const o=e[0]/255,u=e[1]/255,d=e[2]/255,h=Math.max(o,u,d),m=h-Math.min(o,u,d),b=function(v){return(h-v)/6/m+1/2};if(m===0)a=0,i=0;else{switch(i=m/h,t=b(o),r=b(u),n=b(d),h){case o:{a=n-r;break}case u:{a=1/3+t-n;break}case d:{a=2/3+r-t;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,i*100,h*100]};Ct.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=Ct.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,i*100,n*100]};Ct.rgb.oklab=function(e){const t=Zu(e[0]/255),r=Zu(e[1]/255),n=Zu(e[2]/255),a=Math.cbrt(.4122214708*t+.5363325363*r+.0514459929*n),i=Math.cbrt(.2119034982*t+.6806995451*r+.1073969566*n),o=Math.cbrt(.0883024619*t+.2817188376*r+.6299787005*n),u=.2104542553*a+.793617785*i-.0040720468*o,d=1.9779984951*a-2.428592205*i+.4505937099*o,h=.0259040371*a+.7827717662*i-.808675766*o;return[u*100,d*100,h*100]};Ct.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,u=(1-n-a)/(1-a)||0;return[i*100,o*100,u*100,a*100]};function a5e(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Ct.rgb.keyword=function(e){const t=vP[e];if(t)return t;let r=Number.POSITIVE_INFINITY,n;for(const a of Object.keys(sh)){const i=sh[a],o=a5e(e,i);o<r&&(r=o,n=a)}return n};Ct.keyword.rgb=function(e){return sh[e]};Ct.rgb.xyz=function(e){const t=Zu(e[0]/255),r=Zu(e[1]/255),n=Zu(e[2]/255),a=t*.4124564+r*.3575761+n*.1804375,i=t*.2126729+r*.7151522+n*.072175,o=t*.0193339+r*.119192+n*.9503041;return[a*100,i*100,o*100]};Ct.rgb.lab=function(e){const t=Ct.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>oc?r**(1/3):7.787*r+16/116,n=n>oc?n**(1/3):7.787*n+16/116,a=a>oc?a**(1/3):7.787*a+16/116;const i=116*n-16,o=500*(r-n),u=200*(n-a);return[i,o,u]};Ct.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,i;if(r===0)return i=n*255,[i,i,i];const o=n<.5?n*(1+r):n+r-n*r,u=2*n-o,d=[0,0,0];for(let h=0;h<3;h++)a=t+1/3*-(h-1),a<0&&a++,a>1&&a--,6*a<1?i=u+(o-u)*6*a:2*a<1?i=o:3*a<2?i=u+(o-u)*(2/3-a)*6:i=u,d[h]=i*255;return d};Ct.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i;const o=(n+r)/2,u=n===0?2*a/(i+a):2*r/(n+r);return[t,u*100,o*100]};Ct.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*i),d=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,d,o];case 1:return[u,n,o];case 2:return[o,n,d];case 3:return[o,u,n];case 4:return[d,o,n];case 5:return[n,o,u]}};Ct.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let i,o;o=(2-r)*n;const u=(2-r)*a;return i=r*a,i/=u<=1?u:2-u,i=i||0,o/=2,[t,i*100,o*100]};Ct.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let i;a>1&&(r/=a,n/=a);const o=Math.floor(6*t),u=1-n;i=6*t-o,o&1&&(i=1-i);const d=r+i*(u-r);let h,m,b;switch(o){default:case 6:case 0:{h=u,m=d,b=r;break}case 1:{h=d,m=u,b=r;break}case 2:{h=r,m=u,b=d;break}case 3:{h=r,m=d,b=u;break}case 4:{h=d,m=r,b=u;break}case 5:{h=u,m=r,b=d;break}}return[h*255,m*255,b*255]};Ct.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,i=1-Math.min(1,t*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),u=1-Math.min(1,n*(1-a)+a);return[i*255,o*255,u*255]};Ct.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,i,o;return a=t*3.2404542+r*-1.5371385+n*-.4985314,i=t*-.969266+r*1.8760108+n*.041556,o=t*.0556434+r*-.2040259+n*1.0572252,a=Yu(a),i=Yu(i),o=Yu(o),[a*255,i*255,o*255]};Ct.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>oc?t**(1/3):7.787*t+16/116,r=r>oc?r**(1/3):7.787*r+16/116,n=n>oc?n**(1/3):7.787*n+16/116;const a=116*r-16,i=500*(t-r),o=200*(r-n);return[a,i,o]};Ct.xyz.oklab=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=Math.cbrt(.8189330101*t+.3618667424*r-.1288597137*n),i=Math.cbrt(.0329845436*t+.9293118715*r+.0361456387*n),o=Math.cbrt(.0482003018*t+.2643662691*r+.633851707*n),u=.2104542553*a+.793617785*i-.0040720468*o,d=1.9779984951*a-2.428592205*i+.4505937099*o,h=.0259040371*a+.7827717662*i-.808675766*o;return[u*100,d*100,h*100]};Ct.oklab.oklch=function(e){return Ct.lab.lch(e)};Ct.oklab.xyz=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=(.999999998*t+.396337792*r+.215803758*n)**3,i=(1.000000008*t-.105561342*r-.063854175*n)**3,o=(1.000000055*t-.089484182*r-1.291485538*n)**3,u=1.227013851*a-.55779998*i+.281256149*o,d=-.040580178*a+1.11225687*i-.071676679*o,h=-.076381285*a-.421481978*i+1.58616322*o;return[u*100,d*100,h*100]};Ct.oklab.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=(t+.3963377774*r+.2158037573*n)**3,i=(t-.1055613458*r-.0638541728*n)**3,o=(t-.0894841775*r-1.291485548*n)**3,u=Yu(4.0767416621*a-3.3077115913*i+.2309699292*o),d=Yu(-1.2684380046*a+2.6097574011*i-.3413193965*o),h=Yu(-.0041960863*a-.7034186147*i+1.707614701*o);return[u*255,d*255,h*255]};Ct.oklch.oklab=function(e){return Ct.lch.lab(e)};Ct.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let a,i,o;i=(t+16)/116,a=r/500+i,o=i-n/200;const u=i**3,d=a**3,h=o**3;return i=u>oc?u:(i-16/116)/7.787,a=d>oc?d:(a-16/116)/7.787,o=h>oc?h:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};Ct.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);const o=Math.sqrt(r*r+n*n);return[t,o,a]};Ct.lch.lab=function(e){const t=e[0],r=e[1],a=e[2]/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a);return[t,i,o]};Ct.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let i=t===null?Ct.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return i===2&&(o+=60),o};Ct.hsv.ansi16=function(e){return Ct.rgb.ansi16(Ct.hsv.rgb(e),e[2])};Ct.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t>>4===r>>4&&r>>4===n>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ct.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(Math.trunc(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,a,i]};Ct.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};Ct.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(r.length)+r};Ct.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=[...r].map(u=>u+u).join(""));const n=Number.parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};Ct.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=a-i;let u;const d=o<1?i/(1-o):0;return o<=0?u=0:a===t?u=(r-n)/o%6:a===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,d*100]};Ct.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};Ct.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};Ct.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const a=[0,0,0],i=t%1*6,o=i%1,u=1-o;let d=0;switch(Math.floor(i)){case 0:{a[0]=1,a[1]=o,a[2]=0;break}case 1:{a[0]=u,a[1]=1,a[2]=0;break}case 2:{a[0]=0,a[1]=1,a[2]=o;break}case 3:{a[0]=0,a[1]=u,a[2]=1;break}case 4:{a[0]=o,a[1]=0,a[2]=1;break}default:a[0]=1,a[1]=0,a[2]=u}return d=(1-r)*n,[(r*a[0]+d)*255,(r*a[1]+d)*255,(r*a[2]+d)*255]};Ct.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};Ct.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};Ct.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Ct.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let i=0;return a<1&&(i=(n-a)/(1-a)),[e[0],a*100,i*100]};Ct.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Ct.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Ct.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Ct.gray.hsl=function(e){return[0,0,e[0]]};Ct.gray.hsv=Ct.gray.hsl;Ct.gray.hwb=function(e){return[0,100,e[0]]};Ct.gray.cmyk=function(e){return[0,0,0,e[0]]};Ct.gray.lab=function(e){return[e[0],0,0]};Ct.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n};Ct.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function s5e(){const e={},t=Object.keys(Ct);for(let{length:r}=t,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function o5e(e){const t=s5e(),r=[e];for(t[e].distance=0;r.length>0;){const n=r.pop(),a=Object.keys(Ct[n]);for(let{length:i}=a,o=0;o<i;o++){const u=a[o],d=t[u];d.distance===-1&&(d.distance=t[n].distance+1,d.parent=n,r.unshift(u))}}return t}function c5e(e,t){return function(r){return t(e(r))}}function l5e(e,t){const r=[t[e].parent,e];let n=Ct[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),n=c5e(Ct[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}function u5e(e){const t=o5e(e),r={},n=Object.keys(t);for(let{length:a}=n,i=0;i<a;i++){const o=n[i];t[o].parent!==null&&(r[o]=l5e(o,t))}return r}const hi={},f5e=Object.keys(Ct);function d5e(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function h5e(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const a=e(r);if(typeof a=="object")for(let{length:i}=a,o=0;o<i;o++)a[o]=Math.round(a[o]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of f5e){hi[e]={},Object.defineProperty(hi[e],"channels",{value:Ct[e].channels}),Object.defineProperty(hi[e],"labels",{value:Ct[e].labels});const t=u5e(e),r=Object.keys(t);for(const n of r){const a=t[n];hi[e][n]=h5e(a),hi[e][n].raw=d5e(a)}}const wP=["keyword","gray","hex"],E7={};for(const e of Object.keys(hi))E7[[...hi[e].labels].sort().join("")]=e;const g1={};function _n(e,t){if(!(this instanceof _n))return new _n(e,t);if(t&&t in wP&&(t=null),t&&!(t in hi))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof _n)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=ni.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,n=hi[this.model].channels,this.color=a.value.slice(0,n),this.valpha=typeof a.value[n]=="number"?a.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=hi[this.model].channels;const a=Array.prototype.slice.call(e,0,n);this.color=S7(a,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=a.sort().join("");if(!(i in E7))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=E7[i];const{labels:o}=hi[this.model],u=[];for(r=0;r<o.length;r++)u.push(e[o[r]]);this.color=S7(u)}if(g1[this.model])for(n=hi[this.model].channels,r=0;r<n;r++){const a=g1[this.model][r];a&&(this.color[r]=a(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}_n.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ni.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return ni.to[t.model](...r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return ni.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=hi[this.model],{labels:r}=hi[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new _n([...this.color.map(m5e(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new _n([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Nn("rgb",0,ei(255)),green:Nn("rgb",1,ei(255)),blue:Nn("rgb",2,ei(255)),hue:Nn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Nn("hsl",1,ei(100)),lightness:Nn("hsl",2,ei(100)),saturationv:Nn("hsv",1,ei(100)),value:Nn("hsv",2,ei(100)),chroma:Nn("hcg",1,ei(100)),gray:Nn("hcg",2,ei(100)),white:Nn("hwb",1,ei(100)),wblack:Nn("hwb",2,ei(100)),cyan:Nn("cmyk",0,ei(100)),magenta:Nn("cmyk",1,ei(100)),yellow:Nn("cmyk",2,ei(100)),black:Nn("cmyk",3,ei(100)),x:Nn("xyz",0,ei(95.047)),y:Nn("xyz",1,ei(100)),z:Nn("xyz",2,ei(108.833)),l:Nn("lab",0,ei(100)),a:Nn("lab",1),b:Nn("lab",2),keyword(e){return e!==void 0?new _n(e):hi[this.model].keyword(this.color)},hex(e){return e!==void 0?new _n(e):ni.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new _n(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),ni.to.hex(...t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const a=n/255;t[r]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return _n.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),a=t===void 0?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),u=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,d=1-u;return _n.rgb(u*r.red()+d*n.red(),u*r.green()+d*n.green(),u*r.blue()+d*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(hi)){if(wP.includes(e))continue;const{channels:t}=hi[e];_n.prototype[e]=function(...r){return this.model===e?new _n(this):r.length>0?new _n(r,e):new _n([...g5e(hi[this.model][e].raw(this.color)),this.valpha],e)},_n[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=S7(r,t)),new _n(n,e)}}function p5e(e,t){return Number(e.toFixed(t))}function m5e(e){return function(t){return p5e(t,e)}}function Nn(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(g1[n]||(g1[n]=[]))[t]=r;return e=e[0],function(n){let a;return n!==void 0?(r&&(n=r(n)),a=this[e](),a.color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function ei(e){return function(t){return Math.max(0,Math.min(e,t))}}function g5e(e){return Array.isArray(e)?e:[e]}function S7(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}const y5e=gr()(e=>({tokenListItem:{display:"flex",justifyContent:"space-between",padding:"8px 16px",borderRadius:0,":hover":{backgroundColor:_n(e.palette.primary.main).alpha(.07).hexa()}},tokenListItemSelected:{backgroundColor:_n(e.palette.primary.main).alpha(.07).hexa()},tokenDetails:{display:"flex",flexDirection:"row",alignItems:"center"},addressLink:{display:"inline-flex",alignItems:"center",height:"10px",overflow:"hidden",color:e.palette.text.primary,opacity:.6},wormholeWrappedDisclaimer:{display:"inline",marginRight:4}}));function b5e(e){var d;const{classes:t}=y5e(),r=on(),{chain:n,token:a}=e,i=(d=a.tokenId)==null?void 0:d.address.toString(),o=i?l1(n,i,"token"):void 0,u=`${a.shortAddress}`;return j.jsxs(Co,{className:`${t.tokenListItem} ${e.isSelected?t.tokenListItemSelected:""}`,dense:!0,disabled:e.disabled,"data-testid":`token-button-${n.toLowerCase()}-${a.address.toString()}`,onMouseDown:e.onClick,children:[j.jsxs("div",{className:t.tokenDetails,children:[j.jsx($v,{children:j.jsx(lw,{icon:e.token.icon})}),j.jsxs("div",{children:[j.jsx(ft,{children:a.display}),j.jsxs(ai,{display:"flex",children:[a.tokenBridgeOriginalTokenId?j.jsx(z0,{title:`Wormhole-wrapped from ${U0e(a.tokenBridgeOriginalTokenId.chain)}`,children:j.jsx(ai,{margin:"2px",marginRight:"5px",children:j.jsx(_0,{height:10,icon:a.tokenBridgeOriginalTokenId.chain})})}):null,a.symbol?j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,children:a.symbol}):null,a.symbol&&!a.isNativeGasToken?j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,marginLeft:1,marginRight:1,children:"•"}):null,a.isNativeGasToken?null:j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,children:!pn(i)&&j.jsxs(c2,{onMouseDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),className:t.addressLink,href:o,rel:"noreferrer noopener",target:"_blank",children:[u,j.jsx(bP,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]})})]})]})]}),j.jsxs(hr,{alignItems:"flex-end",children:[j.jsx(ft,{fontSize:14,children:e.isFetchingBalance?j.jsx($n,{size:24}):e.balance?mn(Ra(e.balance,6)):""}),e.price&&j.jsx(ft,{color:r.palette.text.secondary,fontSize:"10px",children:e.price})]})]})}const M5e=Y.memo(b5e),x5e=gr()(e=>({card:{background:e.palette.input.background,maxWidth:"420px"},tokenListContainer:{padding:"16px 0 0 0 !important"},title:{fontSize:14,marginBottom:"8px"},tokenLoader:{padding:0,display:"flex",justifyContent:"space-between"},tokenList:{maxHeight:"360px",[e.breakpoints.down("sm")]:{maxHeight:"480px"}}})),QN=e=>{var S;const{classes:t}=x5e(),r=on(),n=Ce.ui.disableUserInputtedTokens!==!0,{getOrFetchToken:a,isFetchingToken:i,getTokenPrice:o}=Ys(),[u,d]=Y.useState(""),{isFetching:h,balances:m}=dP(e.wallet,e.selectedChainConfig.sdkName,e.tokenList||[]);Y.useEffect(()=>{if(n)try{if(u!==""){const D=e.selectedChainConfig.sdkName,L=xa(D,u);L&&(Ce.tokens.get(D,u)||a({chain:D,address:L}))}}catch{}},[u,e.selectedChainConfig.sdkName]);const b=D=>{if(e.selectedToken&&e7(e.selectedToken,D))return 4;if(pn(D.addressString))return 3;const L=ki.get(Ce.network,D.chain);return L&&D.addressString===L?2:D.isTokenBridgeWrappedToken?0:1},v=Y.useMemo(()=>{if(!e.tokenList)return[];const D=e.tokenList;if(u){let O=[];const U=Ce.tokens.get(e.selectedChainConfig.sdkName,u);U&&O.push(U);const z=Ce.tokens.queryBySymbol(e.selectedChainConfig.sdkName,u).filter(F=>!sU(F,e.selectedChainConfig.sdkName));z.length>0&&(O=O.concat(z));for(const F of O)e.tokenList.find(k=>e7(F,k))||D.push(F)}const L=O=>{const U=m[cl(O)];return!U||!U.balance?0:a0(o,U.balance,O)??0};let N=D.sort((O,U)=>{const z=b(O),F=b(U);if(z>F)return-1;if(F>z)return 1;const k=L(O),w=L(U);return k!==w?w-k:O.symbol.localeCompare(U.symbol)});if(Ce.tokenWhitelist&&Ce.tokenWhitelist.length>0){const O=new Set,U=[];for(const z of Ce.tokenWhitelist)if(typeof z=="string")U.push(z);else if(Ev(z)){const F=A5(z);F.chain===e.selectedChainConfig.sdkName&&O.add(F.address.toString())}for(const z of U){let F=!1;const k=[];for(const w of N)w.symbol===z&&(w.isTokenBridgeWrappedToken?k.push(w):(O.add(w.address.toString()),F=!0));if(!F&&k.length>0){for(const{address:w}of k)O.add(w.toString());k.length>1&&console.warn(`Ambiguous token whitelist item "${z}"; found ${k.length} matching wrapped tokens.`)}}N=N.filter(z=>O.has(z.address.toString()))}const _=Ce.isTokenSupportedHandler;return _&&(N=N.filter(O=>_(O,e.sourceToken))),e.isSource&&e.wallet.address&&(N=N.filter(O=>{var z;const U=(z=m[cl(O)])==null?void 0:z.balance;return U&&er(U)>0})),N},[e.selectedChainConfig.sdkName,e.selectedToken,e.tokenList,e.sourceToken,e.isSource,(S=e.wallet)==null?void 0:S.address,m,u]),C=Y.useMemo(()=>j.jsx(ft,{variant:"body2",color:r.palette.grey.A400,children:"No supported tokens found in wallet"}),[r.palette.grey.A400]),E=v.length===0&&!h&&!e.isFetching,T=`Search for a token${n?" or paste an address":""}`,I=j.jsx(yP,{searchPlaceholder:T,className:t.tokenList,dataTestId:"token-search-list",listTitle:E?C:j.jsxs(ft,{fontSize:14,color:r.palette.text.secondary,children:["Tokens on ",e.selectedChainConfig.displayName]}),loading:e.isFetching&&[1,2,3].map(D=>j.jsx(Co,{className:t.tokenLoader,dense:!0,children:j.jsx(ai,{padding:"8px 16px",children:j.jsx(JU,{variant:"circular",width:"36px",height:"36px"},D)})})),items:v,onQueryChange:D=>{d(D)},filterFn:(D,L)=>{if(L.length===0)return!0;const N=L.toLowerCase();return!!([D.symbol,D.name].some(O=>{var U,z;return(z=(U=O==null?void 0:O.toLowerCase())==null?void 0:U.startsWith)==null?void 0:z.call(U,N)})||D.address.toString().toLowerCase()===N||D.tokenBridgeOriginalTokenId&&D.tokenBridgeOriginalTokenId.address.toString().toLowerCase().includes(N))},renderFn:D=>{var O,U,z;const L=(O=m==null?void 0:m[D.key])==null?void 0:O.balance,N=L?sc(o,L,D):null,_=e.isSource&&!!((U=e.wallet)!=null&&U.address)&&!!m&&(!L||er(L)===0n);return j.jsx(M5e,{token:D,chain:e.selectedChainConfig.sdkName,disabled:_,onClick:()=>{e.onSelectToken(D)},balance:L,price:N,isSelected:D.key===((z=e.selectedToken)==null?void 0:z.key),isFetchingBalance:h},D.key)}});return j.jsx(Cc,{className:t.card,variant:"elevation",children:j.jsxs(Sl,{className:t.tokenListContainer,children:[j.jsxs(ai,{sx:{display:"flex",width:"100%",padding:"0 16px"},children:[j.jsx(ft,{width:"100%",className:t.title,children:"Select a token"}),i?j.jsx($n,{sx:{alignSelf:"flex-end",marginBottom:"12px"},size:14}):null]}),I]})})},v5e=gr()(e=>({badgeContent:{border:`1.5px solid ${e.palette.input.background}`,borderRadius:"4px"}}));function oh(e){const{classes:t}=v5e(),{chainConfig:r,token:n}=e;return j.jsx(d1e,{badgeContent:j.jsx(ai,{className:t.badgeContent,children:j.jsx(_0,{icon:r==null?void 0:r.icon,height:13})}),sx:{zIndex:0,height:"38px",marginRight:"8px","& .MuiBadge-badge":{right:2,top:32}},children:j.jsx(lw,{icon:n==null?void 0:n.icon,height:36})})}const w5e=gr()(e=>({inputArea:{width:"100%",cursor:"pointer",maxWidth:"420px",borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},inputAreaEmpty:{borderColor:e.palette.input.background,background:e.palette.input.background},cardContent:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"72px",padding:"16px 20px",":last-child":{padding:"16px 20px"}},chainSelector:{display:"flex",alignItems:"center",justifyContent:"space-between"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},popover:{marginLeft:"-1px",marginTop:"-1px",width:"422px"},popoverSlot:{width:"100%",maxWidth:"422px",borderRadius:"8px",background:e.palette.input.background},backdrop:{backgroundColor:"rgba(0,0,0,0.2)"},drawer:{background:e.palette.input.background,borderRadius:"8px",height:"calc(100vh - 40px)",maxWidth:"100vw"}})),qN=e=>{const t=on(),r=Qv(t.breakpoints.down("sm")),[n,a]=Y.useState(!1),[i,o]=Y.useState(!1),{classes:u}=w5e(),d=pP({variant:"popover",popupId:"asset-picker"});Y.useEffect(()=>{(r&&!i||!r&&!d.isOpen)&&setTimeout(()=>{a(!1)},300)},[i,r,d.isOpen]),Y.useEffect(()=>{if(r&&i&&!e.chain||!r&&d.isOpen&&!e.chain){const v=e.chainList.find(C=>!fU(C.sdkName,e.wallet));v&&e.setChain(v.sdkName)}},[r,i,d.isOpen]);const h=Y.useMemo(()=>e.chain?Ce.chains[e.chain]:void 0,[e.chain]),m=Y.useMemo(()=>{if(!h&&!e.token)return j.jsx(ft,{component:"div",fontSize:16,children:"Select chain and token"});const v=e.token?j.jsx(j.Fragment,{children:e.token.display}):j.jsx(j.Fragment,{children:"Select token"});return j.jsxs("div",{children:[j.jsx(ft,{component:"div",maxWidth:300,fontSize:16,fontWeight:700,sx:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v}),j.jsx(ft,{component:"div",fontSize:12,sx:{opacity:.6},children:h==null?void 0:h.displayName})]})},[h,e.token]),b=e.isTransactionInProgress||r?{}:mP(d);return j.jsxs(j.Fragment,{children:[j.jsx(UU,{open:d.isOpen,className:u.backdrop}),j.jsx(Cc,{className:Ms([u.inputArea,!h&&u.inputAreaEmpty,e.isTransactionInProgress&&u.disabled]),"data-testid":e.dataTestId,variant:"elevation",onMouseDown:v=>{r?o(!0):d.open(v)},onTouchEnd:v=>{v.stopPropagation(),v.preventDefault(),r?o(!0):d.open(v)},...b,children:j.jsxs(Sl,{className:u.cardContent,children:[j.jsxs(ft,{className:u.chainSelector,component:"div",gap:1,children:[j.jsx(oh,{chainConfig:h,token:e.token}),m]}),d.isOpen||i?j.jsx(m6e,{}):j.jsx(p6e,{})]})}),r?j.jsxs(I4e,{anchor:"bottom",open:i,PaperProps:{className:u.drawer},transitionDuration:200,onOpen:()=>o(!0),onClose:()=>o(!1),children:[j.jsx(hr,{alignItems:"center",paddingBottom:"4px",paddingTop:"8px",children:j.jsx(ai,{sx:{width:"40px",height:"5px",backgroundColor:t.palette.text.secondary,borderRadius:"8px"}})}),j.jsx(YN,{chainList:e.chainList,selectedChainConfig:h,showSearch:n,setShowSearch:a,wallet:e.wallet,onChainSelect:v=>{e.setChain(v)}}),!n&&h&&j.jsx(QN,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:v=>{e.setToken(v),o(!1)},isSource:e.isSource})]}):j.jsxs(Kv,{...gP(d),transitionDuration:200,anchorOrigin:{vertical:"top",horizontal:"center"},className:u.popover,transformOrigin:{vertical:"top",horizontal:"center"},marginThreshold:4,slotProps:{paper:{className:u.popoverSlot,sx:{borderRadius:"8px"}}},children:[j.jsx(YN,{chainList:e.chainList,selectedChainConfig:h,showSearch:n,setShowSearch:a,wallet:e.wallet,onChainSelect:v=>{e.setChain(v)}}),!n&&h&&j.jsx(QN,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:v=>{e.setToken(v),d.close()},isSource:e.isSource})]})]})},C5e=e=>{const{address:t,href:r,target:n="_blank",label:a="Transactions"}=e,i=Y.useCallback(()=>window.open(r.replace("{:address}",t),n),[t,r,n]);return j.jsx(Co,{onClick:i,children:j.jsx(ft,{fontSize:14,children:a})})},A5e=gr()(e=>({connectWallet:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingTop:"2px",opacity:1},walletAddress:{color:e.palette.textSecondary,marginLeft:"8px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},dropdown:{backgroundColor:e.palette.popover.background,display:"flex",flexDirection:"column",gap:"8px",padding:"8px"},dropdownItem:{borderRadius:"8px",padding:"16px",cursor:"pointer","&:hover":{backgroundColor:e.palette.popover.secondary}}})),E5e=1e3,VN=e=>{const t=oi(),{classes:r}=A5e(),{isTransactionInProgress:n}=Lr(E=>E.transferInput),a=Lr(E=>E.wallet[e.type]),[i,o]=Y.useState(!1),[u,d]=Y.useState(!1),h=pP({variant:"popover",popupId:`connected-wallet-popover-${e.type}`}),m=Y.useCallback(()=>{h==null||h.close(),o(!0)},[h]),b=Y.useCallback(()=>{nU(a.address),h==null||h.close(),d(!0)},[h,a.address]),v=Y.useCallback(()=>{t(N0e(e.type)),h==null||h.close()},[t,h,e.type]);Y.useEffect(()=>{u&&setTimeout(()=>{d(!1)},E5e)},[u]);const C=n?{}:mP(h);return j.jsxs(j.Fragment,{children:[a!=null&&a.address?j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:Ms([r.connectWallet,n&&r.disabled]),...C,children:[j.jsx(hP,{name:a.name,icon:a.icon,size:20}),j.jsx(z0,{title:"Copied",open:u,placement:"top",arrow:!0,children:j.jsx(ft,{className:r.walletAddress,fontSize:14,fontWeight:700,children:rU(a.type,a.address)})})]}),j.jsx(Kv,{...gP(h),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:j.jsxs(l2,{children:[j.jsx(Co,{onClick:b,children:j.jsx(ft,{fontSize:14,children:"Copy address"})}),Ce.ui.explorer?j.jsx(C5e,{address:a.address,href:Ce.ui.explorer.href,target:Ce.ui.explorer.target,label:Ce.ui.explorer.label}):null,j.jsx(Co,{onClick:m,children:j.jsx(ft,{fontSize:14,children:"Change wallet"})}),j.jsx(Co,{onClick:v,children:j.jsx(ft,{fontSize:14,children:"Disconnect"})})]})})]}):null,j.jsx(cw,{open:i,type:e.type,onClose:()=>{o(!1)},showAddressInput:e.type===qn.RECEIVING})]})},S5e=500,D5e=Y.memo(({value:e,onChange:t,onDebouncedChange:r,...n})=>{const[a,i]=Y.useState(e),[o,u]=Y.useState(!1),d=nw(r,S5e),h=Y.useCallback(m=>{let b=m.target.value;b==="."&&(b="0.");const v=Number(b);isNaN(v)||v<0||(i(m.target.value),t(m.target.value),d(m.target.value))},[d,t]);return Y.useEffect(()=>{o||i(e)},[e]),j.jsx(Tp,{...n,"data-testid":"amount-input",value:a,focused:o,onChange:h,onFocus:()=>u(!0),onBlur:()=>u(!1)})}),T5e=gr()(e=>({amountContainer:{width:"100%",maxWidth:"420px"},amountInput:{borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},amountInputEmpty:{background:e.palette.input.background,borderColor:e.palette.input.background},amountCardContent:{display:"flex",alignItems:"center",height:"72px",padding:"12px 20px",":last-child":{padding:"12px 20px"}},amountTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},inputError:{marginTop:"12px"},balance:{color:e.palette.text.secondary,fontSize:"14px",lineHeight:"14px",textAlign:"right"}})),I5e=e=>{const{classes:t}=T5e(),r=oi(),n=on(),{sending:a}=Lr(N=>N.wallet),{amount:i}=Lr(N=>N.transferInput),[o,u]=Y.useState(i?mn(i):""),[d,h]=Y.useState(i?mn(i):""),{fromChain:m,isTransactionInProgress:b}=Lr(N=>N.transferInput),{sourceToken:v}=B5(),{getTokenPrice:C}=Ys();Y.useEffect(()=>{!i&&(o||d)&&(I(""),D(""))},[i]);const E=Y.useMemo(()=>b||!m||!v,[b,m,v]),T=Y.useMemo(()=>E||!a.address?null:j.jsxs(hr,{direction:"row",alignItems:"center",children:[j.jsx(ft,{className:t.balance,component:"span",sx:{marginRight:"4px"},children:"Balance:"}),e.isFetchingTokenBalance?j.jsx($n,{size:14}):j.jsx(ft,{fontSize:14,textAlign:"right",className:t.balance,children:e.tokenBalance?mn(Ra(e.tokenBalance,6)):"0"})]}),[E,a.address,t.balance,e.isFetchingTokenBalance,e.tokenBalance]),I=Y.useCallback(N=>{u(N)},[]),S=Y.useMemo(()=>{const N=sc(C,Number(o==="."?"0.":o),v);return N?j.jsx(Dp,{position:"end",sx:{position:"absolute",top:"38px",margin:0},children:j.jsx(hr,{alignItems:"start",children:j.jsx(ft,{color:n.palette.text.secondary,component:"span",fontSize:"14px",lineHeight:"14px",children:N})})}):null},[o,C,v,n.palette.text.secondary]),D=Y.useCallback(N=>{r(Tv(N)),h(N)},[r]),L=Y.useMemo(()=>{const N=E||!a.address||!e.tokenBalance;return j.jsx(o2,{sx:{minWidth:"32px",padding:"4px"},disabled:N,onClick:()=>{if(e.tokenBalance){const _=mn(e.tokenBalance);I(_),D(_)}},children:j.jsx(ft,{fontSize:14,fontWeight:N?400:600,textTransform:"none",children:"Max"})})},[E,a.address,e.tokenBalance,I,D]);return j.jsxs("div",{className:t.amountContainer,children:[j.jsx("div",{className:t.amountTitle,children:j.jsx(ft,{variant:"body2",children:"Amount"})}),j.jsx(Cc,{className:`${t.amountInput} ${o===""?t.amountInputEmpty:""}`,children:j.jsx(Sl,{className:t.amountCardContent,children:j.jsx(D5e,{fullWidth:!0,disabled:E,inputProps:{style:{color:e.error?n.palette.error.main:n.palette.text.primary,fontSize:24,height:"28px",marginBottom:S?"16px":0,padding:0},onWheel:N=>{N.currentTarget.blur()},step:"0.1"},placeholder:"0",variant:"standard",value:d,onChange:I,onDebouncedChange:D,InputProps:{disableUnderline:!0,startAdornment:S,endAdornment:j.jsx(Dp,{position:"end",children:j.jsxs(hr,{alignItems:"end",justifyContent:"space-between",children:[L,T]})})}})})}),j.jsx(d2,{error:!!e.error,content:e.error||e.warning,show:!!e.error||!!e.warning,color:e.error?n.palette.error.main:n.palette.grey.A400,className:t.inputError})]})},N5e=e=>{const{destToken:t,route:r,isTransactionInProgress:n}=e,a=n,i=!!r&&Ce.routes.get(r).NATIVE_GAS_DROPOFF_SUPPORTED&&!(t!=null&&t.isNativeGasToken);return{disabled:a,showGasSlider:i}},L5e=cn(j.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),j.jsx("path",{d:"M17 11C13.1386 11 10 14.1386 10 18C10 21.8614 13.1386 25 17 25C20.8614 25 24 21.8614 24 18C24 14.1386 20.8614 11 17 11ZM17 24.0233C13.6791 24.0233 10.9767 21.3209 10.9767 18C10.9767 14.6791 13.6791 11.9767 17 11.9767C20.3209 11.9767 23.0233 14.6791 23.0233 18C23.0233 21.3209 20.3209 24.0233 17 24.0233ZM16.5116 18.6512V14.7442C16.5116 14.4772 16.733 14.2558 17 14.2558C17.267 14.2558 17.4884 14.4772 17.4884 14.7442V18.6512C17.4884 18.9181 17.267 19.1395 17 19.1395C16.733 19.1395 16.5116 18.9181 16.5116 18.6512ZM17.814 20.9302C17.814 21.3795 17.4493 21.7442 17 21.7442C16.5507 21.7442 16.186 21.3795 16.186 20.9302C16.186 20.4809 16.5507 20.1163 17 20.1163C17.4493 20.1163 17.814 20.4809 17.814 20.9302Z",fill:"currentColor"})]}),"Error"),Oy=cn(j.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),j.jsx("path",{d:"M17 10.5C13.1386 10.5 10 13.6386 10 17.5C10 21.3614 13.1386 24.5 17 24.5C20.8614 24.5 24 21.3614 24 17.5C24 13.6386 20.8614 10.5 17 10.5ZM17 23.5233C13.6791 23.5233 10.9767 20.8209 10.9767 17.5C10.9767 14.1791 13.6791 11.4767 17 11.4767C20.3209 11.4767 23.0233 14.1791 23.0233 17.5C23.0233 20.8209 20.3209 23.5233 17 23.5233ZM16.5116 18.1512V14.2442C16.5116 13.9772 16.733 13.7558 17 13.7558C17.267 13.7558 17.4884 13.9772 17.4884 14.2442V18.1512C17.4884 18.4181 17.267 18.6395 17 18.6395C16.733 18.6395 16.5116 18.4181 16.5116 18.1512ZM17.814 20.4302C17.814 20.8795 17.4493 21.2442 17 21.2442C16.5507 21.2442 16.186 20.8795 16.186 20.4302C16.186 19.9809 16.5507 19.6163 17 19.6163C17.4493 19.6163 17.814 19.9809 17.814 20.4302Z",fill:"currentColor"})]}),"Warning"),j5e=cn(j.jsx("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M8.9,5.7c0-.1-.2-.2-.4-.2h-4c-.3,0-.5-.2-.5-.4V0L0,7.9c0,.1,0,.3,0,.4,0,.1.2.2.4.2h4c.3,0,.5.2.5.4v5.1l4-7.9c0-.1,0-.3,0-.4Z"})}),"Fastest"),B5e=cn(j.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{d:"M5.2,7.5c0-1,.8-1.8,1.7-1.8s1.7.8,1.7,1.8-.8,1.8-1.7,1.8-1.7-.8-1.7-1.8Z"}),j.jsx("path",{d:"M10.1,7.5c0,1.2-.6,2.2-1.6,2.7l1.9,3.4c2.1-1.2,3.5-3.5,3.5-6.1h-3.9Z"}),j.jsx("path",{d:"M7,4.3c.6,0,1.1.2,1.6.4l1.9-3.4c-1-.6-2.2-.9-3.5-.9s-2.5.3-3.5.9l1.9,3.4c.5-.3,1-.4,1.6-.4Z"}),j.jsx("path",{d:"M3.9,7.5H0c0,2.6,1.4,4.9,3.5,6.1l1.9-3.4c-.9-.5-1.6-1.5-1.6-2.7Z"})]}),"Cheapest"),k5e=cn(j.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),z5e=gr()(e=>({content:{width:"100%",cursor:"pointer",maxWidth:"420px",overflow:"visible",padding:"16px 20px"},container:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},amounts:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px",width:"100%"},toggleButton:{backgroundColor:_n(e.palette.text.primary).alpha(.1).hexa(),border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:`1px solid ${e.palette.primary.main}`,borderRadius:"8px"},"&.MuiToggleButtonGroup-middleButton":{margin:"0 2px"},"&.MuiToggleButtonGroup-lastButton":{margin:"0"}}})),_5e=at(_4e)(({theme:e})=>({padding:"9px 12px",right:"-9px","& .MuiSwitch-switchBase.Mui-checked":{color:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-track":{height:"20px",borderRadius:"9px"}})),F5e=e=>{const{classes:t}=z5e(),r=oi(),n=on(),{fromChain:a,toChain:i}=Lr(I=>I.transferInput),{getTokenPrice:o,lastTokenPriceUpdate:u}=Ys(),d=Ce.tokens.getGasToken(i),h=Ce.tokens.getGasToken(a),[m,b]=Y.useState(!1),[v,C]=Y.useState(0);Y.useEffect(()=>{e.isSelected||(b(!1),C(0))},[r,e.isSelected]),Y.useEffect(()=>{r(mue(v/100))},[v,r]);const E=Y.useMemo(()=>{if(!i||!d)return null;const I=mn(Ra(e.destinationGasDrop,6)),S=sc(o,e.destinationGasDrop,d),D=S?`(${S})`:"";return`+${I} ${d.symbol} ${D}`},[d,u,e.destinationGasDrop,i]),T=Y.useMemo(()=>j.jsxs(q4e,{exclusive:!0,fullWidth:!0,value:v.toString(),onChange:I=>{const S=Number(I.currentTarget.value);C(S===v?0:S)},children:[j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"5",children:"5%"}),j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"10",children:"10%"}),j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"15",children:"15%"})]}),[t.toggleButton,v]);return!h||!d?j.jsx(j.Fragment,{}):j.jsxs("div",{className:t.content,children:[j.jsxs(hr,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[j.jsx(ft,{children:`Need extra ${d.symbol} on ${i}?`}),j.jsx(_5e,{checked:m,disabled:e.disabled,onClick:I=>{const{checked:S}=I.target;b(S),S?e.isExecutorRoute&&C(100):C(0)}})]}),j.jsx(Af,{in:m,unmountOnExit:!0,children:j.jsx("div",{className:t.container,children:j.jsxs(hr,{children:[!e.isExecutorRoute&&T,j.jsxs("div",{className:t.amounts,children:[j.jsxs(hr,{alignItems:"center",flexDirection:"row",children:[j.jsx(ft,{color:n.palette.text.secondary,fontSize:14,marginRight:"4px",children:"Gas amount"}),j.jsx(z0,{title:e.isExecutorRoute?`Add a small amount of ${h.symbol} to your transaction to receive ${E} on ${i}.`:"This additional gas is swapped from a percentage of your transfer amount.",children:j.jsx(k5e,{sx:{color:n.palette.text.secondary,fontSize:"16px"}})})]}),j.jsx(ft,{color:n.palette.primary.main,fontSize:14,children:E})]})]})})})]})},O5e=20,R5e=gr()(e=>({container:{width:"100%",maxWidth:"420px",marginBottom:"8px"},card:{borderRadius:"8px",width:"100%",maxWidth:"420px"},cardSelected:{backgroundColor:e.palette.input.fillTreatment?_n(e.palette.primary.main).alpha(.05).hexa():e.palette.card.background,borderColor:e.palette.primary.main},cardHeader:{padding:"20px 20px 0px"},cardContent:{marginTop:"18px",padding:"0px 20px 20px"},errorIcon:{color:e.palette.error.main,height:"34px",width:"34px",marginRight:"24px"},fastestBadge:{width:"14px",height:"14px",position:"relative",top:"2px",marginRight:"4px",fill:e.palette.primary.main},cheapestBadge:{width:"12px",height:"12px",position:"relative",top:"1px",marginRight:"3px",fill:e.palette.primary.main},messageContainer:{padding:"12px 0px 0px"},warningIcon:{color:e.palette.warning.main,height:"34px",width:"34px",marginRight:"12px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"}})),U5e=e=>{const{classes:t}=R5e(),r=on(),n=Ce.routes.get(e.route),{toChain:a,fromChain:i,isTransactionInProgress:o}=Lr(f=>f.transferInput),{getTokenPrice:u,lastTokenPriceUpdate:d}=Ys(),{quote:h,isSelected:m}=e,b=h==null?void 0:h.destinationNativeGas,{sourceToken:v,destToken:C}=B5(),{disabled:E,showGasSlider:T}=N5e({destToken:C,route:e.route,isTransactionInProgress:o}),I=Y.useMemo(()=>{if(!(h!=null&&h.relayFee))return!1;const f=bo(h.relayFee.amount),p=Ce.tokens.get(h.relayFee.token),g=a0(u,f,p);return g===void 0?!1:g>O5e},[u,h==null?void 0:h.relayFee]),S=Y.useMemo(()=>{if(!a||e.destinationGasDrop===void 0||er(e.destinationGasDrop)===0n)return j.jsx(j.Fragment,{});const f=Ce.chains[a],p=Ce.tokens.getGasToken(a);if(!f||!p)return j.jsx(j.Fragment,{});const g=sc(u,e.destinationGasDrop,p),x=mn(Ra(e.destinationGasDrop,6)),A=g?` (${g})`:"";return j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:r.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Additional gas"}),j.jsx(ft,{color:r.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:`${x} ${p.symbol}${A}`})]})},[a,d,e.destinationGasDrop,u,d,r.palette.text.secondary,r.palette.text.primary]),D=Y.useMemo(()=>j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:r.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:`Time to ${a}`}),j.jsx(ft,{component:"div",fontSize:"14px",lineHeight:"14px",sx:{color:h!=null&&h.eta&&h.eta<60*1e3?r.palette.success.main:r.palette.text.primary},children:h!=null&&h.eta?oU(h.eta):"N/A"})]}),[a,h==null?void 0:h.eta,r.palette.success.main,r.palette.text.primary,r.palette.text.secondary]),L=Y.useMemo(()=>e.route?!n.AUTOMATIC_DEPOSIT:!1,[e.route,n.AUTOMATIC_DEPOSIT]),N=Y.useMemo(()=>j.jsx(ah,{flexItem:!0,sx:{marginTop:"24px"}}),[]),_=Y.useMemo(()=>e.error?j.jsxs(j.Fragment,{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(L5e,{className:t.errorIcon}),j.jsx(ft,{color:r.palette.error.main,fontSize:"14px",lineHeight:"18px",children:e.error})]})]}):null,[t.errorIcon,t.messageContainer,N,e.error,r.palette.error.main]),O=Y.useMemo(()=>{const f=[];L&&f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsxs(hr,{children:[j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:"This transfer requires two transactions."}),j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"You will need to make two wallet approvals and have gas on the destination chain."})]})]})]},"ManualTransactionWarning"));for(const p of(h==null?void 0:h.warnings)||[])if(p.type==="DestinationCapacityWarning"&&p.delayDurationSec){const g=Z0e(p.delayDurationSec);f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:`Your transfer to ${a} may be delayed due to rate limits set by ${C.display}. If your transfer is delayed, you will need to return after ${g} to complete the transfer. Please consider this before proceeding.`})]})]},`${p.type}-${p.delayDurationSec}`))}return I&&f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsxs(hr,{children:[j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:"Output amount is much lower than input amount."}),j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"Double check before proceeding."})]})]})]},"HighFee")),f},[L,I,N,t.warningIcon,t.messageContainer,r.palette.warning.main,r.palette.text.secondary,h==null?void 0:h.warnings,C,a]),U=Y.useMemo(()=>v?e.route==="AutomaticNtt"&&(v==null?void 0:v.symbol)==="wstETH"&&(i==="Ethereum"&&a==="Bsc"||i==="Bsc"&&a==="Ethereum")?"via NTT: Wormhole + Axelar":n.rc.meta.provider?`via ${n.rc.meta.provider}`:"":"",[e.route,n,i,v,a]),z=Y.useMemo(()=>h?bo(h==null?void 0:h.destinationToken.amount):void 0,[h]),F=Y.useMemo(()=>{if(h)return mn(Ra(h.destinationToken.amount,6))},[h]),k=Y.useMemo(()=>{if(e.error)return j.jsx(ft,{color:"error",children:"Route is unavailable"});if(z===void 0||!C)return null;const f=I?r.palette.warning.main:r.palette.text.primary;return j.jsxs(ft,{fontSize:"18px",lineHeight:"18px",color:f,component:"div",marginBottom:"6px",children:[F," ",C.symbol]})},[e.error,z,F,C,I,r.palette.warning.main,r.palette.text.primary]),w=Y.useMemo(()=>{if(e.error||!a||!C||z===void 0)return null;const f=sc(u,z,C);return j.jsx(ft,{fontSize:"14px",lineHeight:"14px",color:r.palette.text.secondary,component:"div",children:`${f} ${U}`})},[a,C,u,d,e.error,U,z,r.palette.text.secondary]),s=Y.useMemo(()=>m||typeof e.onSelect!="function"?"default":e.error?"not-allowed":"pointer",[e.error,m,e.onSelect]),l=Y.useMemo(()=>e.isFastest?j.jsxs(j.Fragment,{children:[j.jsx(j5e,{className:t.fastestBadge}),e.isOnlyChoice?"Fast":"Fastest"]}):e.isCheapest&&!e.isOnlyChoice?j.jsxs(j.Fragment,{children:[j.jsx(B5e,{className:t.cheapestBadge})," Cheapest"]}):null,[e.isFastest,e.isCheapest,e.isOnlyChoice,t.fastestBadge,t.cheapestBadge]);return e.route?j.jsx("div",{className:t.container,"data-testid":`route-${e.route}${m?"-selected":""}`,children:j.jsx(Cc,{className:Ms([t.card,m&&t.cardSelected,o&&t.disabled]),sx:{border:"1px solid",borderColor:m?r.palette.primary.main:"transparent",opacity:1},children:j.jsxs(Zv,{component:"div",disabled:o||typeof e.onSelect!="function"||e.error!==void 0,disableTouchRipple:!0,sx:{cursor:s},onClick:()=>{var f;(f=e.onSelect)==null||f.call(e,e.route)},children:[j.jsx(WU,{avatar:j.jsx(lw,{icon:C==null?void 0:C.icon}),className:t.cardHeader,title:k,subheader:w,action:l}),j.jsxs(Sl,{className:t.cardContent,children:[j.jsxs(hr,{gap:"14px",children:[n.AUTOMATIC_DEPOSIT?null:`You pay gas on ${a}`,S,D]}),_,O]}),T&&j.jsxs(j.Fragment,{children:[j.jsx(ah,{flexItem:!0,sx:{margin:"0px 16px"}}),j.jsx(Af,{in:T,children:j.jsx(F5e,{destinationGasDrop:b||Yr(0n,8),disabled:E,isExecutorRoute:u1(e.route),isSelected:m})})]})]})})},e.route):j.jsx(j.Fragment,{})},P5e=gr()(e=>({otherRoutesToggle:{display:"block",width:"100%",textAlign:"center",fontSize:14,color:e.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}})),W5e=({...e})=>{const{classes:t}=P5e(),[r,n]=Y.useState(!1),a=Y.useMemo(()=>e.routes.filter(h=>e.quotes[h]!==void 0),[e.routes,e.quotes]),i=Y.useMemo(()=>a.reduce((h,m)=>{const b=e.quotes[m];return!b||!b.success?h:b.eta!==void 0&&b.eta<h.eta&&b.eta<6e4?{name:m,eta:b.eta}:h},{name:"",eta:1/0}),[a,e.quotes]),o=Y.useMemo(()=>a.reduce((h,m)=>{const b=e.quotes[m],v=Ce.routes.get(m);if(!b||!b.success||!v.AUTOMATIC_DEPOSIT)return h;const C=BigInt(b.destinationToken.amount.amount);return C>h.amountOut?{name:m,amountOut:C}:h},{name:"",amountOut:0n}),[a,e.quotes]),u=Y.useMemo(()=>{if(r)return a;const h=a.find(m=>m===e.selectedRoute);if(h){const m=[];return h===i.name?(m.push(h),o.name&&o.name!==h&&m.push(o.name)):h===o.name?(i.name&&i.name!==h&&m.push(i.name),m.push(h)):(m.push(h),a.length>2&&(i.name?m.push(i.name):o.name&&m.push(o.name))),m}return i.name&&o.name?a.slice(0,2):a.slice(0,1)},[r,a,i,o,e.selectedRoute]),d=Y.useMemo(()=>a.length<2||a.length===2&&i.name&&o.name?null:j.jsx(c2,{className:t.otherRoutesToggle,"data-testid":"other-routes-toggle",onClick:()=>n(h=>!h),children:r?"Hide other routes":"View other routes"}),[o.name,t.otherRoutesToggle,i.name,a.length,r]);return j.jsxs(j.Fragment,{children:[e.isLoading||u.length>0?j.jsxs(ai,{sx:{display:"flex",width:"100%"},children:[j.jsx(ft,{align:"left",fontSize:16,paddingBottom:0,marginTop:"8px",marginBottom:0,width:"100%",textAlign:"left",children:"Routes"}),e.isLoading?j.jsx($n,{sx:{alignSelf:"flex-end"},size:20}):null]}):null,e.isLoading&&u.length===0?j.jsx(JU,{variant:"rounded",height:153,width:"100%"}):u.map((h,m)=>{var T;const b=h===e.selectedRoute,v=e.quotes[h],C=v!=null&&v.success?v:void 0,E=(v==null?void 0:v.success)===!1?((T=v==null?void 0:v.error)==null?void 0:T.message)??`Error while getting a quote for ${h}.`:void 0;return j.jsx(U5e,{route:h,error:E,isSelected:b&&!E,isFastest:h===i.name,isCheapest:h===o.name,isOnlyChoice:a.length===1,onSelect:e.onRouteChange,quote:C},h)}),d]})},H5e=cn(j.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),Y5e=gr()(()=>({swapButton:{display:"block",position:"absolute",bottom:-44,left:"calc(50% - 20px)",width:40,height:40,zIndex:1}}));function Z5e(){const e=oi(),[t,r]=Y.useState(""),{isTransactionInProgress:n,fromChain:a,toChain:i}=Lr(h=>h.transferInput),o=!n&&a&&i,u=Y.useCallback(()=>{!o||n||(r(h=>h==="spinRight"?"spinLeft":"spinRight"),e(hue()),e(L0e()),e(Tv("")))},[o,n,e]),{classes:d}=Y5e();return j.jsx(i2,{className:d.swapButton,sx:{animation:`${t} 0.3s linear 1`,"@keyframes spinRight":{"0%":{transform:"rotate(-180deg)"},"100%":{transform:"rotate(0deg)"}},"@keyframes spinLeft":{"0%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(0deg)"}}},onClick:u,disabled:!o,children:j.jsx(H5e,{})})}var CP={exports:{}};(function(e,t){(function(r,n){e.exports=n(Y)})(typeof self<"u"?self:Ut,r=>(()=>{var n={155:S=>{S.exports=r}},a={};function i(S){var D=a[S];if(D!==void 0)return D.exports;var L=a[S]={exports:{}};return n[S](L,L.exports,i),L.exports}i.d=(S,D)=>{for(var L in D)i.o(D,L)&&!i.o(S,L)&&Object.defineProperty(S,L,{enumerable:!0,get:D[L]})},i.o=(S,D)=>Object.prototype.hasOwnProperty.call(S,D),i.r=S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})};var o={};i.r(o),i.d(o,{default:()=>I,useStopwatch:()=>E,useTime:()=>T,useTimer:()=>C});var u=i(155);class d{static expiryTimestamp(D){const L=new Date(D).getTime()>0;return L||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",D),L}static onExpire(D){const L=D&&typeof D=="function";return D&&!L&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",D),L}}class h{static getTimeFromSeconds(D){const L=Math.ceil(D),N=Math.floor(L/86400),_=Math.floor(L%86400/3600),O=Math.floor(L%3600/60);return{totalSeconds:L,seconds:Math.floor(L%60),minutes:O,hours:_,days:N}}static getSecondsFromExpiry(D,L){const N=D-new Date().getTime();if(N>0){const _=N/1e3;return L?Math.round(_):_}return 0}static getSecondsFromPrevTime(D,L){const N=new Date().getTime()-D;if(N>0){const _=N/1e3;return L?Math.round(_):_}return 0}static getSecondsFromTimeNow(){const D=new Date;return D.getTime()/1e3-60*D.getTimezoneOffset()}static getFormattedTimeFromSeconds(D,L){const{seconds:N,minutes:_,hours:O}=h.getTimeFromSeconds(D);let U="",z=O;return L==="12-hour"&&(U=O>=12?"pm":"am",z=O%12),{seconds:N,minutes:_,hours:z,ampm:U}}}function m(S,D){const L=(0,u.useRef)();(0,u.useEffect)(()=>{L.current=S}),(0,u.useEffect)(()=>{if(!D)return()=>{};const N=setInterval(()=>{L.current&&L.current()},D);return()=>clearInterval(N)},[D])}const b=1e3;function v(S){if(!d.expiryTimestamp(S))return null;const D=h.getSecondsFromExpiry(S),L=Math.floor(1e3*(D-Math.floor(D)));return L>0?L:b}function C(){let{expiryTimestamp:S,onExpire:D,autoStart:L=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[N,_]=(0,u.useState)(S),[O,U]=(0,u.useState)(h.getSecondsFromExpiry(N)),[z,F]=(0,u.useState)(L),[k,w]=(0,u.useState)(L),[s,l]=(0,u.useState)(v(N)),f=(0,u.useCallback)(()=>{d.onExpire(D)&&D(),F(!1),l(null)},[D]),p=(0,u.useCallback)(()=>{F(!1)},[]),g=(0,u.useCallback)(function(y){let c=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];l(v(y)),w(c),F(c),_(y),U(h.getSecondsFromExpiry(y))},[]),x=(0,u.useCallback)(()=>{const y=new Date;y.setMilliseconds(y.getMilliseconds()+1e3*O),g(y)},[O,g]),A=(0,u.useCallback)(()=>{k?(U(h.getSecondsFromExpiry(N)),F(!0)):x()},[N,k,x]);return m(()=>{s!==b&&l(b);const y=h.getSecondsFromExpiry(N);U(y),y<=0&&f()},z?s:null),{...h.getTimeFromSeconds(O),start:A,pause:p,resume:x,restart:g,isRunning:z}}function E(){let{autoStart:S,offsetTimestamp:D}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[L,N]=(0,u.useState)(h.getSecondsFromExpiry(D,!0)||0),[_,O]=(0,u.useState)(new Date),[U,z]=(0,u.useState)(L+h.getSecondsFromPrevTime(_||0,!0)),[F,k]=(0,u.useState)(S);m(()=>{z(L+h.getSecondsFromPrevTime(_,!0))},F?1e3:null);const w=(0,u.useCallback)(()=>{const f=new Date;O(f),k(!0),z(L+h.getSecondsFromPrevTime(f,!0))},[L]),s=(0,u.useCallback)(()=>{N(U),k(!1)},[U]),l=(0,u.useCallback)(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,p=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const g=h.getSecondsFromExpiry(f,!0)||0,x=new Date;O(x),N(g),k(p),z(g+h.getSecondsFromPrevTime(x,!0))},[]);return{...h.getTimeFromSeconds(U),start:w,pause:s,reset:l,isRunning:F}}function T(){let{format:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[D,L]=(0,u.useState)(h.getSecondsFromTimeNow());return m(()=>{L(h.getSecondsFromTimeNow())},1e3),{...h.getFormattedTimeFromSeconds(D,S)}}function I(S){if((0,u.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),S.expiryTimestamp){const L=C(S);return{...L,startTimer:L.start,stopTimer:L.pause,resetTimer:()=>{}}}const D=E(S);return{...D,startTimer:D.start,stopTimer:D.pause,resetTimer:D.reset}}return o})())})(CP);var AP=CP.exports;const $N=60*1e3,G5e=120*1e3,EP=e=>{const[t,r]=Y.useState(!1),[n,a]=Y.useState(!1),[i,o]=Y.useState(),{eta:u,route:d}=e;return Y.useEffect(()=>{e.receipt&&o(e.receipt)},[e.receipt]),Y.useEffect(()=>{let h=!0;return(async()=>{if(!d||!i)return;const b=Ce.routes.get(d);if(!b)return;const v=T=>T.valueOf()-new Date().valueOf(),C=await Ba(),E=new b.rc(C);for(;h&&!Db(i);){if(u!==void 0){const I=v(u);I>$N&&await n7(I-$N)}try{for await(const I of E.track(i,G5e)){if(!h)break;if(I.state!==i.state){if(o(I),Db(I)){r(!0);break}!b.AUTOMATIC_DEPOSIT&&I.state>=Lt.Attested&&a(!0)}}}catch(I){console.error("Error tracking transfer:",I)}let T=5e3;u!==void 0&&b.AUTOMATIC_DEPOSIT&&v(u)<1e4&&(T=1e3),await n7(T)}})(),()=>{h=!1}},[u,i,d]),{isCompleted:t,isReadyToClaim:n,receipt:i}},Q5e=cn(j.jsx("path",{d:"M4 12H20M20 12L13 5M20 12L13 19",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),"ArrowRight"),SP=cn(j.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2079 105.5C82.2486 105.5 105.791 81.9949 105.791 53C105.791 24.0051 82.2486 0.5 53.2079 0.5C24.1672 0.5 0.625 24.0051 0.625 53C0.625 81.9949 24.1672 105.5 53.2079 105.5ZM53.207 102.097C80.3654 102.097 102.382 80.1157 102.382 53.0001C102.382 25.8844 80.3654 3.90283 53.207 3.90283C26.0485 3.90283 4.03223 25.8844 4.03223 53.0001C4.03223 80.1157 26.0485 102.097 53.207 102.097Z",fill:"currentColor"}),j.jsx("path",{d:"M46.8789 68L32.628906 53.75L36.19141 50.1875L46.8789 60.875L69.8164 37.9375L73.3789 41.5L46.8789 68Z",fill:"currentColor"})]}),"Alert"),q5e=gr()(e=>({alertBanner:{marginTop:"12px"},arrowIcon:{fontSize:"16px",margin:"0 4px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardContent:{padding:"16px 20px",":last-child":{padding:"16px 20px"}},cardActionArea:{height:"72px"},chainIcon:{border:`2px solid ${e.palette.input.background}`,borderRadius:"6px"},completedIcon:{color:e.palette.success.main,height:"24px",width:"24px"},container:{width:"100%",maxWidth:"420px"},progressBar:{borderRadius:"4px",marginTop:"8px"}})),V5e=e=>{var y,c;const[t,r]=Y.useState(""),[n,a]=Y.useState(!1),{classes:i}=q5e(),o=oi(),u=Y.useContext(Q0),d=on(),{data:h}=e,{receipt:m,route:b,timestamp:v,txDetails:C,txHash:E}=h,{amount:T,eta:I,fromChain:S,toChain:D,token:L}=C||{},N=Ce.tokens.get(L),{seconds:_,minutes:O,totalSeconds:U,isRunning:z,restart:F}=AP.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>a(!0)}),k=Y.useMemo(()=>{if(I&&v)return new Date(v+I)},[I,v]),{isCompleted:w,isReadyToClaim:s,receipt:l}=EP({eta:k,receipt:m,route:b});Y.useEffect(()=>{w&&E&&lP(E)},[w,E]);const f=l||m,p=Y.useMemo(()=>{if(!I||!v)return 0;const M=Date.now()-v;return I<M?0:I-M},[I,v,U]),g=Y.useMemo(()=>s||h.isReadyToClaim?"Ready to claim...":n||p===0?"Wrapping up...":z?aw(O,_):j.jsx($n,{size:16}),[n,p,s,z,O,_,h]),x=Y.useMemo(()=>!I||p>I||!n&&p===0?0:n?100:(I-p)/I*100,[I,n,p]);Y.useEffect(()=>{!z&&!w&&p&&F(new Date(Date.now()+p),!0)},[p,w,z,F]);const A=Y.useCallback(async()=>{if(r(""),!f){r("No receipt found for this transaction");return}try{const M=await Ba(),B=new(Ce.routes.get(b)).rc(M);o(Mz(v)),o(nx(C)),o(bz(!0)),o(ix(b)),o(Dv(C.toChain)),o(ys("redeem")),u.setReceipt(f),u.setRoute(B)}catch{r(`Error resuming transaction: ${C.sendTx}`)}},[o,f,b,u,v,C]);return!h||!N?j.jsx(j.Fragment,{}):j.jsxs("div",{className:i.container,children:[j.jsx(Cc,{className:i.card,children:j.jsx(Zv,{disableTouchRipple:!0,disabled:e.disabled||!C,className:i.cardActionArea,onClick:A,children:j.jsxs(Sl,{className:i.cardContent,children:[j.jsxs(hr,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[j.jsx(ft,{display:"flex",justifyContent:"space-between",children:w?j.jsx(SP,{className:i.completedIcon}):g}),j.jsxs(hr,{direction:"row",alignItems:"center",children:[j.jsx(ft,{fontSize:14,marginRight:"8px",children:`${mn(Ra(T,6))} ${N.symbol}`}),j.jsx(ai,{className:i.chainIcon,children:j.jsx(_0,{icon:(y=Ce.chains[S])==null?void 0:y.icon,height:24})}),j.jsx(Q5e,{className:i.arrowIcon}),j.jsx(ai,{className:i.chainIcon,children:j.jsx(_0,{icon:(c=Ce.chains[D])==null?void 0:c.icon,height:24})})]})]}),!w&&j.jsx(i2e,{className:i.progressBar,variant:"determinate",value:x})]})})}),j.jsx(d2,{className:i.alertBanner,color:t?d.palette.error.light:d.palette.grey.A400,content:t,error:!!t,show:!!t})]})},$5e=gr()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardHeader:{paddingBottom:0},spacer:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"16px",alignItems:"center",justifyContent:"center",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"}})),K5e=e=>{const{classes:t}=$5e(),r=on(),[n,a]=Y.useState();return Y.useEffect(()=>{const i=k5(),o=i==null?void 0:i.filter(u=>{var d,h;if(!((d=u==null?void 0:u.txDetails)!=null&&d.token))return!1;try{return!!Ce.tokens.get((h=u==null?void 0:u.txDetails)==null?void 0:h.token)}catch(m){return console.log("Error while parsing token from local storage (in-progress widget):",m),!1}});a(o)},[]),!n||n.length===0?j.jsx(j.Fragment,{}):j.jsxs("div",{className:t.spacer,children:[j.jsx("div",{className:t.txHistoryHeader,children:j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,children:"Transactions in progress"})}),n.map(i=>j.jsx(V5e,{data:i,disabled:e.disabled},i.txHash))]})},X5e=({sendingWallet:e,receivingWallet:t,sourceChain:r,destChain:n,routes:a})=>Y.useMemo(()=>{if(a.length===1&&a[0]==="ManualCCTP"){const o=["Petra","Pontem Wallet","Nightly","Continue with Google","Continue with Apple"];if(r==="Aptos"&&!o.includes(e.name)||n==="Aptos"&&!o.includes(t.name))return{isCompatible:!1,warning:"Please use a compatible wallet for this route."}}return{isCompatible:!0}},[e,t,r,n,a]),J5e=gr()(e=>({assetPickerContainer:{width:"100%",position:"relative"},assetPickerTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},bridgeContent:{margin:"auto",maxWidth:"420px"},bridgeHeader:{width:"100%",minHeight:"28px",display:"flex",alignItems:"center"},doneIcon:{fontSize:"14px",color:e.palette.success.main},confirmTransaction:{padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%"},copyIcon:{fontSize:"14px"},ctaContainer:{marginTop:"8px",width:"100%"},spacer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"center",width:"100%"}})),eme=()=>{var me,Ze;const{classes:e}=J5e(),t=on(),r=oi(),{lastTokenCacheUpdate:n}=Ys(),[a,i]=Y.useState(!1),o=Qv(t.breakpoints.down("sm")),{sending:u,receiving:d}=Lr(he=>he.wallet),{fromChain:h,toChain:m,route:b,preferredRouteName:v,amount:C,toNativeToken:E,isTransactionInProgress:T,validations:I}=Lr(he=>({...he.transferInput,...he.relay})),{sourceToken:S,destToken:D}=B5(),{allSupportedRoutes:L,sortedRoutes:N,sortedRoutesWithQuotes:_,quotes:O,isFetching:U}=Ipe({amount:C,fromChain:h,toChain:m,preferredRouteName:v,sourceToken:S,destToken:D,toNativeToken:E,receivingWallet:d}),{isFetching:z,supportedDestTokens:F}=Epe({sourceChain:h,destChain:m,sourceToken:S}),{error:k,errorInternal:w,onConfirm:s}=$pe({quotes:O});Y.useEffect(()=>{if(_.length===0)r(c4(""));else{const he=_.find(ce=>ce.route===v),Se=b??(he==null?void 0:he.route)??_[0].route,Ke=_.findIndex(ce=>ce.route===Se)>-1;if(Ke||r(c4("")),!Se||b&&Ke)return;const ye=_==null?void 0:_.find(ce=>ce.route===Se);ye&&r(c4(ye.route))}},[v,b,_]),eU(),qpe();const l=Y.useMemo(()=>S?[S]:[],[S]),{balances:f,isFetching:p}=dP(u,h,l),g=Lpe({balance:S?(me=f[S.key])==null?void 0:me.balance:null,routes:L,quotes:O,tokenSymbol:(S==null?void 0:S.symbol)??"",disabled:!u.address||!h||!S}),x=Y.useMemo(()=>uP(I),[I]),A=Y.useMemo(()=>Ce.routes.allSupportedChains(),[Ce.chains]),y=Y.useMemo(()=>h?Ce.tokens.getAllForChain(h):[],[h,n]),c=Y.useMemo(()=>Ce.chainsArr.filter(he=>he.sdkName!==m&&A.includes(he.sdkName)),[m,A]),M=Y.useMemo(()=>Ce.chainsArr.filter(he=>he.sdkName!==h&&A.includes(he.sdkName)),[h,A]),B=Y.useMemo(()=>{const he={text:"",align:"left"};let Se;return typeof Ce.ui.pageHeader=="string"?Se={...he,text:Ce.ui.pageHeader}:Se={...he,...Ce.ui.pageHeader},j.jsx(u2,{title:Se.text,align:Se.align})},[]),R=Y.useMemo(()=>j.jsxs("div",{className:e.assetPickerContainer,children:[j.jsxs("div",{className:e.assetPickerTitle,children:[j.jsx(ft,{variant:"body2",children:"From"}),j.jsx(VN,{type:qn.SENDING})]}),j.jsx(qN,{chain:h,chainList:c,token:S,tokenList:y,setChain:he=>{aue(r,he,u),r(lue())},setToken:he=>{r(cue(he.tuple))},wallet:u,isSource:!0,isTransactionInProgress:T,dataTestId:"source-asset-picker"}),j.jsx(Z5e,{})]}),[e.assetPickerContainer,e.assetPickerTitle,h,c,S,y,n,T,u,r]),Q=Y.useMemo(()=>j.jsxs("div",{className:e.assetPickerContainer,children:[j.jsxs("div",{className:e.assetPickerTitle,children:[j.jsx(ft,{variant:"body2",children:"To"}),j.jsx(VN,{type:qn.RECEIVING})]}),j.jsx(qN,{chain:m,chainList:M,token:D,sourceToken:S,tokenList:F,isFetching:F.length===0&&z,setChain:he=>{sue(r,he,d),r(uue())},setToken:he=>{r(hU(he.tuple))},wallet:d,isSource:!1,isTransactionInProgress:T,dataTestId:"dest-asset-picker"})]}),[e.assetPickerContainer,e.assetPickerTitle,m,M,D,S,F,z,T,d,r]),K=Y.useMemo(()=>{const he=!(u!=null&&u.address)||T;return j.jsxs("div",{className:e.bridgeHeader,children:[j.jsx(jv,{align:"left",text:Ce.ui.title??"Wormhole Connect",size:18,testId:"bridge-view-header"}),j.jsx(z0,{title:u!=null&&u.address?"":"No connected wallets found",children:j.jsx("span",{children:j.jsx(i2,{"data-testid":"history-button",sx:{padding:0},disabled:he,onClick:()=>{r(ys("history")),Ce.triggerEvent({type:"history.load",details:{wallet:u==null?void 0:u.address}})},children:j.jsx(ype,{})})})})]})},[e.bridgeHeader,r,T,u==null?void 0:u.address]),q=Y.useMemo(()=>u!=null&&u.address&&(d!=null&&d.address)?null:u!=null&&u.address&&!(d!=null&&d.address)?j.jsx(UN,{disabled:!m,side:"destination",type:qn.RECEIVING}):j.jsx(UN,{disabled:!h,side:"source",type:qn.SENDING}),[h,m,u,d]),{isCompatible:W,warning:G}=X5e({sendingWallet:u,receivingWallet:d,sourceChain:h,destChain:m,routes:N}),X=Y.useMemo(()=>k?j.jsxs(ai,{sx:{marginBottom:2},children:[j.jsx(d2,{error:!0,content:k,show:!0,testId:"send-error-message"}),w&&w.message&&Ce.ui.getHelpUrl?j.jsxs(ft,{fontSize:14,sx:{marginTop:1},children:["Having trouble?"," ",j.jsxs("a",{href:"#",onClick:()=>{nU(w.message),i(!0),setTimeout(()=>i(!1),3e3)},children:["Copy the error logs"," ",a?j.jsx(gpe,{className:e.doneIcon}):j.jsx(mpe,{className:e.copyIcon})]})," and ",j.jsx("a",{href:Ce.ui.getHelpUrl,target:"_blank",children:"ask for help"}),"."]}):null]}):null,[e.copyIcon,e.doneIcon,a,k,w]),ne=!!g.error,te=C&&bo(C)>0,V=u.address&&d.address,oe=!h||!S||!m||!D||!V||!W||!b||!x||U||!te||T||ne,xe=Y.useMemo(()=>j.jsx(Gl,{disabled:oe,"data-testid":"confirm-transaction-button",variant:"primary",className:e.confirmTransaction,onClick:()=>s(),children:T?j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{size:16,sx:{color:t.palette.primary.contrastText}}),o?"Preparing":"Preparing transaction"]}):!T&&U?j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{color:"secondary",size:16}),o?"Refreshing":"Refreshing quote"]}):j.jsx(ft,{textTransform:"none",children:o?"Confirm":"Confirm transaction"})}),[oe,e.confirmTransaction,T,t.palette.primary.contrastText,o,U,s]),fe=!h||!S?"Please select a source asset":!m||!D?"Please select a destination asset":te?U?"Loading quotes...":b?"":"Please select a quote":"Please enter an amount";return j.jsxs("div",{className:Ms([e.bridgeContent,e.spacer]),"data-testid":"bridge-view",children:[B,Ce.ui.showInProgressWidget&&j.jsx(K5e,{disabled:T}),K,R,Q,j.jsx(I5e,{sourceChain:h,supportedSourceTokens:y,tokenBalance:S?(Ze=f[S.key])==null?void 0:Ze.balance:null,isFetchingTokenBalance:p,error:g.error,warning:g.warning||G}),te&&j.jsx(W5e,{routes:N,selectedRoute:b,onRouteChange:he=>{r(c4(he))},quotes:O,isLoading:U||p}),X,j.jsx("span",{className:e.ctaContainer,children:V?j.jsx(z0,{title:fe,children:j.jsx("span",{children:xe})}):q}),j.jsx(ow,{color:t.palette.text.primary}),j.jsx(rw,{})]})},tme=cn(j.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),rme=gr()(e=>({addressLink:{display:"inline-flex",alignItems:"center",overflow:"hidden",color:e.palette.text.primary,opacity:.6}})),u3=({url:e,text:t})=>{const{classes:r}=rme();return e&&t?j.jsxs(c2,{onClick:n=>n.stopPropagation(),className:r.addressLink,href:e,rel:"noreferrer noopener",target:"_blank",children:[t,j.jsx(bP,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]}):null},nme=gr()(e=>({container:{width:"100%",maxWidth:"420px",backgroundColor:e.palette.input.background},card:{width:"100%",backgroundColor:e.palette.input.background}})),ime=()=>{const{classes:e}=nme(),t=on(),r=Vn.useContext(Q0),{sendTx:n,sender:a,amount:i,recipient:o,toChain:u,fromChain:d,token:h,receivedToken:m,receiveAmount:b,receiveNativeAmount:v,eta:C}=Lr(l=>l.redeem.txData),{route:E}=Lr(l=>l.redeem),T=Ce.tokens.get(h),I=Ce.tokens.get(m),{getTokenPrice:S,isFetchingTokenPrices:D,lastTokenPriceUpdate:L}=Ys(),N=Y.useMemo(()=>j.jsx(ft,{component:"span",padding:"0px 8px",children:"·"}),[]),_=Y.useMemo(()=>{if(!T||!d)return j.jsx(j.Fragment,{});const l=Ce.tokens.get(h),f=Ce.chains[d],p=sc(S,i,l),g=a?x0(a):"",x=a?l1(d,a,"wallet"):"",A=mn(Ra(i,6));return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:f,token:l}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[A," ",T.symbol]}),j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:D?j.jsx($n,{size:14}):j.jsxs(j.Fragment,{children:[p,p?N:null,f.displayName,N,j.jsx(u3,{url:x,text:g})]})})]})]})},[T,d,h,S,i,a,t.palette.text.secondary,D,N]),O=Y.useMemo(()=>{if(!I||!u)return j.jsx(j.Fragment,{});const l=Ce.chains[u],f=sc(S,b,I),p=o?x0(o):"",g=o?l1(u,o,"wallet"):"",x=b?mn(Ra(b,6)):"-";return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:l,token:I}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[x," ",I.symbol]}),j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:D?j.jsx($n,{size:14}):j.jsxs(j.Fragment,{children:[f,f?N:null,l.displayName,N,j.jsx(u3,{url:g,text:p})]})})]})]})},[I,S,b,o,N,t.palette.text.secondary,u,D,L]),U=Y.useMemo(()=>j.jsx(hr,{height:"28px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),z=Y.useMemo(()=>{if(!m||!v||er(v)===0n)return j.jsx(j.Fragment,{});const l=Ce.chains[u];if(!l)return j.jsx(j.Fragment,{});const f=sc(S,v,Ce.tokens.getGasToken(l.sdkName));return j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:"Additional gas"}),D?j.jsx($n,{size:14}):j.jsx(ft,{fontSize:14,children:f})]})},[v,t.palette.text.secondary,u,D,L]),F=Y.useMemo(()=>{const l=r.route??E;if(!l)return null;const{name:f,url:p}=j3e(l,n,d,u);return URL.canParse(p)?j.jsx(hr,{alignItems:"center",padding:"24px 12px",children:j.jsx(c2,{display:"flex",gap:"8px",href:p,rel:"noreferrer",target:"_blank",underline:"none",children:j.jsx(ft,{color:t.palette.text.primary,fontSize:14,children:`View on ${f}`})})}):null},[r.route,E,n,t.palette.text.primary]),k=Y.useMemo(()=>{let l=j.jsx($n,{size:14});return C?(l=oU(C),j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:`Time to ${u}`}),j.jsx(ft,{fontSize:14,children:l})]})):null},[C,t.palette.text.secondary,u]),w=n?x0(n):"",s=n?l1(d,n,"tx"):"";return j.jsx("div",{className:e.container,children:j.jsxs(Cc,{className:e.card,children:[j.jsxs(Sl,{children:[j.jsxs(ft,{color:t.palette.text.secondary,marginBottom:"12px",children:["Transaction #",j.jsx(u3,{url:s,text:w})]}),_,U,O,j.jsxs(hr,{direction:"column",gap:"8px",justifyContent:"space-between",marginTop:"16px",children:[z,k]})]}),j.jsx(ah,{flexItem:!0,sx:{margin:"0 16px",opacity:"50%"}}),F]})})},ame=cn(j.jsx("svg",{width:"107",height:"107",viewBox:"0 0 107 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M53.5 36.625V57.7188M104.125 53.5C104.125 60.1482 102.816 66.7312 100.271 72.8733C97.7273 79.0155 93.9982 84.5963 89.2973 89.2973C84.5963 93.9982 79.0155 97.7273 72.8733 100.271C66.7312 102.816 60.1482 104.125 53.5 104.125C46.8518 104.125 40.2688 102.816 34.1267 100.271C27.9845 97.7273 22.4037 93.9982 17.7027 89.2973C13.0018 84.5963 9.27274 79.0155 6.7286 72.8733C4.18445 66.7312 2.875 60.1482 2.875 53.5C2.875 40.0734 8.20869 27.1967 17.7027 17.7027C27.1967 8.20869 40.0734 2.875 53.5 2.875C66.9266 2.875 79.8032 8.20869 89.2973 17.7027C98.7913 27.1967 104.125 40.0734 104.125 53.5ZM53.5 74.5938H53.545V74.6388H53.5V74.5938Z",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),"Alert"),sme=cn(j.jsxs("svg",{width:"106",height:"106",viewBox:"0 0 106 106",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.5829 105C81.6236 105 105.166 81.4949 105.166 52.5C105.166 23.5051 81.6236 0 52.5829 0C23.5422 0 0 23.5051 0 52.5C0 81.4949 23.5422 105 52.5829 105ZM52.582 101.597C79.7404 101.597 101.757 79.6157 101.757 52.5001C101.757 25.3844 79.7404 3.40283 52.582 3.40283C25.4235 3.40283 3.40723 25.3844 3.40723 52.5001C3.40723 79.6157 25.4235 101.597 52.582 101.597Z",fill:"currentColor"}),j.jsx("path",{d:"M65.7583 39.2417L39.2418 65.7582",stroke:"currentColor",strokeWidth:"4"}),j.jsx("path",{d:"M39.2417 39.2417L65.7582 65.7582",stroke:"currentColor",strokeWidth:"4"})]}),"Alert"),KN=cn(j.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M53.2,105.5c29,0,52.6-23.5,52.6-52.5S82.2.5,53.2.5.6,24,.6,53s23.5,52.5,52.6,52.5ZM53.2,102.1c27.2,0,49.2-22,49.2-49.1S80.4,3.9,53.2,3.9,4,25.9,4,53s22,49.1,49.2,49.1Z"}),j.jsx("rect",{fill:"currentColor",x:"51",y:"28.8",width:"5",height:"42.6"}),j.jsx("rect",{fill:"currentColor",x:"48",y:"63.9",width:"25.5",height:"5",transform:"translate(-29.2 62.4) rotate(-45)"}),j.jsx("rect",{fill:"currentColor",x:"43.8",y:"53.7",width:"5",height:"25.5",transform:"translate(-33.4 52.2) rotate(-45)"})]}),"Alert"),ome=gr()(e=>({spacer:{display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",justifyContent:"center",width:"100%"},container:{margin:"auto",maxWidth:"650px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},actionButton:{padding:"12px 16px",backgroundColor:e.palette.primary.main,borderRadius:"8px",margin:"auto",maxWidth:"420px",width:"100%"},backButton:{alignItems:"start",maxWidth:"420px",width:"100%"},claimButton:{backgroundColor:e.palette.warning.light,color:e.palette.warning.contrastText??e.palette.background.default,"&:hover":{backgroundColor:e.palette.warning.main}},circularProgressCircleIndeterminite:{stroke:"url(#circularGradient)",strokeDasharray:"100px, 200px",strokeLinecap:"round"},circularProgressCircleDeterminite:{strokeLinecap:"round",transitionDuration:"1s",transitionProperty:"all",transitionTimingFunction:"linear"},circularProgressRoot:{animationDuration:"1s"},errorBox:{maxWidth:"420px"},txStatusIcon:{width:"105px",height:"105px"},delayText:{maxWidth:"420px"}})),cme=()=>{const e=oi(),t=on(),{classes:r}=ome(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!1),[h,m]=Y.useState(!1),[b,v]=Y.useState(!1),C=Vn.useContext(Q0),{sourceToken:E,destToken:T}=jpe();eU();const{route:I,timestamp:S,isResumeTx:D,txData:L}=Lr(ce=>ce.redeem),[N,_]=Y.useState(void 0),{receipt:O}=C,U=O&&Us(O),z=O&&pre(O),F=O&&Qm(O)||!!N,k=O&&Qm(O)&&O.error instanceof oF,w=O&&Gm(O),{recipient:s,toChain:l,fromChain:f,token:p,receivedToken:g,amount:x,eta:A=0,sendTx:y}=L,c=cP(),M=Y.useMemo(()=>{if(A&&S)return new Date(S+A)},[A,S]),{seconds:B,minutes:R,isRunning:Q,restart:K}=AP.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>m(!0)});Y.useEffect(()=>{!S||!A||Q||K(new Date(S+A),!0)},[A,Q,K,S]);const q=EP({receipt:O,route:I,eta:M}),W=O&&Db(O)||q.isCompleted;Y.useEffect(()=>{q.receipt&&C.setReceipt(q.receipt)},[C,q.receipt]);const G=Y.useMemo(()=>{if(!I)return!1;const ce=Ce.routes.get(I);return ce?ce.AUTOMATIC_DEPOSIT:!1},[I]),X=oP(I,E,T,f,l,x,c);Y.useEffect(()=>{const{receipt:ce}=C;if(ce)if(W)u||(d(!0),Ce.triggerEvent({type:"transfer.success",details:X}),G||Ce.triggerEvent({type:"transfer.redeem.success",details:X}),o(!1),a(""),L!=null&&L.sendTx&&lP(L==null?void 0:L.sendTx));else if(z)Ce.triggerEvent({type:"transfer.refunded",details:X});else if(Qm(ce)){const[Fe,pe]=t7(ce.error,X);a(Fe),Ce.triggerEvent({type:"transfer.error",details:X,error:pe}),console.error(`Transfer failed with error ${pe}: ${ce.error}`),o(!1)}else if(N){const[Fe,pe]=t7(N,X);a(Fe),Ce.triggerEvent({type:"transfer.redeem.error",details:X,error:pe}),console.error(`Error while manually redeeming: ${pe.type} - ${N}`),o(!1)}else U&&!G&&(L!=null&&L.sendTx)&&Rpe(L==null?void 0:L.sendTx,"isReadyToClaim",!0)},[O==null?void 0:O.state,W,z,U,N,u]);const ne=Lr(ce=>ce.wallet.receiving),te=Y.useMemo(()=>{const ce=S+A,Fe=Date.now();return ce>Fe?ce-Fe:0},[S,A,h,B]),V=Y.useMemo(()=>{const ce={text:"",align:"left"};let Fe;return typeof Ce.ui.pageHeader=="string"?Fe={...ce,text:Ce.ui.pageHeader}:Fe={...ce,...Ce.ui.pageHeader},j.jsx(u2,{title:Fe.text,align:Fe.align})},[]),oe=Y.useMemo(()=>{let ce="Transaction submitted";return W?ce="Transaction completed":z?ce="Transaction was refunded":k&&u1(I)?ce=`Ready to claim on ${l}`:F?ce="Transaction failed":w?ce="Transaction delayed":U&&!G&&(ce=`Ready to claim on ${l}`),j.jsx(hr,{children:j.jsx(ft,{"data-testid":"redeem-view-status-header",fontSize:18,children:ce})})},[W,z,k,I,F,w,U,G,l]),xe=Y.useMemo(()=>{if(h)return j.jsx(hr,{children:j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:"Wrapping up..."})});const ce=Q?aw(R,B):null;let Fe=j.jsx($n,{size:14});return A&&(Fe=Vpe(A)),j.jsxs(hr,{alignItems:"center",justifyContent:"center",children:[j.jsxs(ft,{color:t.palette.text.secondary,fontSize:14,children:["ETA ",Fe]}),j.jsx(ft,{fontSize:28,children:ce})]})},[A,h,Q,R,B,t.palette.text.secondary]),fe=Y.useMemo(()=>A?(A-te)/A*100:0,[A,te]),me=Y.useMemo(()=>j.jsxs(j.Fragment,{children:[j.jsx("svg",{width:0,height:0,children:j.jsx("defs",{children:j.jsxs("linearGradient",{id:"circularGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[j.jsx("stop",{offset:"0%",stopColor:t.palette.primary.main,stopOpacity:"1"}),j.jsx("stop",{offset:"100%",stopColor:t.palette.background.default,stopOpacity:"0.1"})]})})}),j.jsxs(ai,{sx:{position:"relative"},children:[j.jsx($n,{variant:"determinate",sx:ce=>({color:ce.palette.primary.main,opacity:.2,position:"absolute"}),size:140,thickness:2,value:100}),j.jsx($n,{variant:h?"indeterminate":"determinate",classes:{root:r.circularProgressRoot,circle:h?r.circularProgressCircleIndeterminite:r.circularProgressCircleDeterminite},disableShrink:h,size:140,thickness:2,value:fe})]}),j.jsx(ai,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:xe})]}),[r.circularProgressCircleDeterminite,r.circularProgressCircleIndeterminite,r.circularProgressRoot,xe,h,fe,t.palette.background.default,t.palette.primary.main]),Ze=Y.useMemo(()=>W?j.jsx(SP,{className:r.txStatusIcon,sx:{color:t.palette.primary.light}}):z||w?j.jsx(ame,{className:r.txStatusIcon,sx:{color:t.palette.warning.main}}):k&&u1(I)?j.jsx(KN,{className:r.txStatusIcon,sx:{color:t.palette.warning.light}}):F?j.jsx(sme,{className:r.txStatusIcon,sx:{color:t.palette.error.light}}):!G&&U?j.jsx(KN,{className:r.txStatusIcon,sx:{color:t.palette.warning.light}}):me,[W,z,w,k,I,F,G,U,r.txStatusIcon,t.palette.primary.light,t.palette.warning.main,t.palette.warning.light,t.palette.error.light,me]);Y.useEffect(()=>{let ce;if(C.receipt&&Gm(C.receipt)){o(!0);const pe=C.receipt.queueReleaseTime.getTime()-Date.now();ce=setTimeout(()=>{o(!1)},pe)}return()=>{ce&&clearTimeout(ce)}},[C.receipt]);const he=Y.useMemo(()=>{if(!s)return!1;if(D&&l==="Solana"&&ne.address&&ne.type==="Solana"&&ne.address!==s&&I&&["ManualTokenBridge","ManualCCTP"].includes(I)){const{address:we}=A5(g);return L3e(new ct(pn(we)?v3e:we.toString()),new ct(ne.address)).equals(new ct(s))?(a(""),!0):(a("Not connected to the receiving wallet"),!1)}const ce=ne.address.toLowerCase(),Fe=ne.currentAddress.toLowerCase(),pe=s.toLowerCase();return ce===Fe&&ce===pe},[ne,s,l,D,I,g]),Se=Y.useCallback(async()=>{if(o(!0),a(""),_(void 0),!I)throw new Error("Unknown route, can not claim");if(!C.receipt)throw new Error("No receipt found, can not claim");const ce={route:I,fromToken:Nf(Ce.tokens.mustGet(p)),toToken:Nf(Ce.tokens.mustGet(g)),fromChain:f,toChain:l};if(Ce.triggerEvent({type:"transfer.redeem.initiate",details:ce}),!he)throw a("Not connected to the receiving wallet"),new Error("Not connected to the receiving wallet");if(!Ce.chains[l])throw a("Your claim has failed, please try again"),new Error("invalid destination chain");const pe=C.route;try{if(!Tb(pe)&&!Ib(pe))throw new Error("Route is not manual or finalizable");const we=await th.fromChain(l,ne.address,{},qn.RECEIVING),gt=w&&Ib(pe)?pe.finalize(we,C.receipt):!w&&Tb(pe)?pe.complete(we,C.receipt):void 0;gt&&(Ce.triggerEvent({type:"transfer.redeem.start",details:X}),await gt)}catch(we){_(we),o(!1)}},[X,f,he,w,g,ne.address,C.receipt,C.route,I,l,p]),Ke=Y.useMemo(()=>i?j.jsx(Gl,{disabled:!0,variant:"primary",className:r.actionButton,children:j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{size:16,sx:{color:t.palette.primary.contrastText}}),"Transfer in progress"]})}):k&&I==="CCTPExecutorRoute"&&y?j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>{e($9()),e(ys("search")),e(yU({txHash:y,chain:f}))},children:j.jsx(ft,{textTransform:"none",children:"Claim tokens to complete transfer"})}):w||!G&&U||u1(I)&&k?he?j.jsx(Gl,{className:Ms([r.actionButton,r.claimButton]),variant:n?"error":"primary",onClick:Se,children:j.jsx(ft,{textTransform:"none",children:"Claim tokens to complete transfer"})}):j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>v(!0),children:j.jsx(ft,{textTransform:"none",children:"Connect receiving wallet"})}):j.jsxs(j.Fragment,{children:[j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>{e(ys("bridge"))},children:j.jsx(ft,{textTransform:"none",children:"Start a new transaction"})}),!W&&j.jsx(ft,{fontSize:"12px",sx:{margin:"auto",opacity:.6},children:"Your current transaction will continue to process in the background."})]}),[i,w,G,U,k,I,y,r.actionButton,r.claimButton,W,t.palette.primary.contrastText,he,n,Se,e,f]),ye=Y.useMemo(()=>{var gt;if(!C.receipt||!Gm(C.receipt))return null;const{to:ce,queueReleaseTime:Fe}=C.receipt,pe=((gt=Ce.tokens.get(g))==null?void 0:gt.symbol)||"",we=Fe.toLocaleString();return j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,className:r.delayText,children:`Your transfer to ${ce} is delayed due to rate limits configured by ${pe}. After
|
|
342
|
+
513.716 362.141 451.503 430.865Z`,fill:"url(#icons_tokens_inj_linearGradient_1)"})]})}function K6e(){return j.jsxs("svg",{viewBox:"316.829 225.555 66.146 48.89",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("g",{filter:"url(#icons_tokens_ntt_filter_0)",transform:"matrix(1, 0, 0, 1, 307.15521240234375, 224.00100708007812)",children:j.jsx("path",{d:"M42.3874 29.5938C40.2035 29.5938 38.433 27.8234 38.433 25.6394C38.433 23.4555 40.2035 21.6851 42.3874 21.6851C44.5714 21.6851 46.3418 23.4555 46.3418 25.6394C46.3418 27.8234 44.5714 29.5938 42.3874 29.5938Z",fill:"white"})}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 316.829 249.281 L 382.975 249.281 L 382.975 250.719 L 316.829 250.719 L 316.829 249.281 Z",fill:"url(#icons_tokens_ntt_linearGradient_0)"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 349.903 273.007 C 362.609 273.007 372.91 262.707 372.91 250 C 372.91 237.293 362.609 226.993 349.903 226.993 C 337.196 226.993 326.896 237.293 326.896 250 C 326.896 262.707 337.196 273.007 349.903 273.007 Z M 349.903 274.445 C 363.404 274.445 374.348 263.501 374.348 250 C 374.348 236.499 363.404 225.555 349.903 225.555 C 336.402 225.555 325.458 236.499 325.458 250 C 325.458 263.501 336.402 274.445 349.903 274.445 Z",fill:"url(#icons_tokens_ntt_linearGradient_1)"})]})}function X6e(){return j.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},width:"444",height:"444",viewBox:"0 0 444 444",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("style",{children:".st0{fill:#ffeeda}.st2{fill:#101010}"}),j.jsx("path",{d:"M0 0h444v444H0z",className:"st0"}),j.jsx("path",{d:"M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",className:"st0"}),j.jsx("path",{d:"M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",style:{fill:"#ebc28e"}}),j.jsx("path",{d:"M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",className:"st2"}),j.jsx("path",{d:"M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",className:"st2"}),j.jsx("path",{d:"M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zm16.5-36.4H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",className:"st2"})]})}function J6e(){return j.jsxs("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",width:"252",height:"166",viewBox:"0 0 252 166",fill:"none",children:[j.jsx("path",{fill:"#FCFC03",d:"m197.902 81.513 39.608-19.736 13.653-41.906L223.857 0H42.041L0 31.226h213.718l-11.355 35.147H116.66l-8.246 25.684h85.703L170.055 166l40.149-19.871 14.329-44.339-26.901-19.736.27-.541Z"}),j.jsx("path",{fill:"#FCFC03",d:"m60.422 134.233 24.737-77.052-27.441-20.548L16.488 166h153.564l10.273-31.767H60.422Z"})]})}function e5e(){return j.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{cx:"18",cy:"18",r:"18",fill:"black"}),j.jsx("path",{d:"M28.3266 11.8302L17.9483 11.8466C14.5118 11.8466 11.7258 14.6326 11.7258 18.069C11.7258 21.5055 14.5118 24.2915 17.9483 24.2915H27.9424",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),j.jsx("path",{d:"M6.16479 18.069H30.138",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"}),j.jsx("path",{d:"M18.069 6C24.7345 6 30.1379 11.4035 30.1379 18.069C30.1379 24.7345 24.7345 30.1379 18.069 30.1379C11.4035 30.1379 6 24.7345 6 18.069C6 11.4035 11.4035 6 18.069 6Z",stroke:"white",strokeWidth:"2.18153",strokeMiterlimit:"10",strokeLinecap:"round"})]})}function t5e(){return j.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{cx:"32",cy:"32",r:"32",fill:"#814625"}),j.jsx("path",{d:"M30.8066 30.3796C30.7714 30.2733 30.7468 30.1643 30.7278 30.0542C30.7191 30.0032 30.7089 29.9524 30.6974 29.902C30.6723 29.7925 30.6444 29.6836 30.6143 29.5753V29.575C31.1133 28.8474 33.4988 25.0525 30.7842 22.6167C27.7714 19.9133 24.2512 23.4567 24.2512 23.4567L24.2621 23.4724C22.6799 23.0093 20.9643 22.955 19.2952 23.4565C19.295 23.4565 19.2949 23.4565 19.2949 23.4565C19.2743 23.4358 15.7659 19.9212 12.762 22.6167C9.75706 25.313 13.0019 29.6752 13.0188 29.698C13.0188 29.698 13.0188 29.6981 13.0188 29.6983C12.9843 29.8008 12.9564 29.9054 12.938 30.0117C12.6129 31.8784 10.3999 32.4545 10.3999 35.7061C10.3999 38.9576 12.715 41.6321 17.4404 41.6321H19.3794C19.3794 41.6321 19.3796 41.6321 19.3797 41.6321C19.3884 41.644 20.1867 42.7339 21.826 42.7327C23.3478 42.7316 24.3528 41.6414 24.3615 41.6321C24.3615 41.6321 24.3615 41.6321 24.3618 41.6321H26.2117C30.9371 41.6321 33.2522 39.0204 33.2522 35.7061C33.2522 32.6781 31.3331 31.9702 30.8068 30.3796H30.8066Z",fill:"white"}),j.jsx("path",{d:"M53.3886 26.6644C53.3886 26.6644 53.74 23.5305 51.0687 22.8571V21.6002H48.9999V22.8257C46.182 23.4261 46.5451 26.6644 46.5451 26.6644V27.2017C46.5451 27.2017 46.1818 30.4407 49.0009 31.0405H49.0006V33.7308C46.0304 34.252 46.4057 37.5966 46.4057 37.5966V38.1339C46.4057 38.1339 46.0424 41.3722 48.8604 41.9725V43.1981H50.9292V41.9412C53.6007 41.2678 53.2491 38.1339 53.2491 38.1339C53.3659 38.1339 53.4606 38.0427 53.4606 37.9303V37.8003C53.4606 37.6878 53.3659 37.5966 53.2491 37.5966C53.2491 37.5966 53.5977 34.4899 50.9638 33.7984V31.0405H50.9327C53.7518 30.4407 53.3885 27.2017 53.3885 27.2017C53.5052 27.2017 53.5999 27.1105 53.5999 26.998V26.868C53.5999 26.7556 53.5052 26.6644 53.3885 26.6644H53.3886ZM51.7027 37.5966H51.5134C51.3967 37.5966 51.302 37.6878 51.302 37.8003V37.9303C51.302 38.0427 51.3967 38.1339 51.5134 38.1339H51.7027C51.7027 40.0779 51.0324 40.405 50.8069 40.4601C50.7698 40.4691 50.7338 40.4426 50.7338 40.4058V39.7862C50.7338 39.4436 50.5072 39.256 50.2806 39.1539C49.9941 39.0249 49.6605 39.0249 49.3741 39.1539C49.1475 39.256 48.9208 39.4436 48.9208 39.7862V40.4058C48.9208 40.4421 48.8855 40.4692 48.849 40.4603C48.6248 40.4062 47.952 40.0817 47.952 38.1339V37.5966C47.952 35.6526 48.6222 35.3255 48.8478 35.2705C48.8848 35.2615 48.9208 35.2879 48.9208 35.3247V35.9444C48.9208 36.2869 49.1475 36.4746 49.3741 36.5767C49.6605 36.7056 49.9941 36.7056 50.2806 36.5767C50.5072 36.4746 50.7338 36.2869 50.7338 35.9444V35.3247C50.7338 35.2885 50.7691 35.2613 50.8056 35.2702C51.0299 35.3243 51.7027 35.6489 51.7027 37.5966ZM51.6529 27.2017H51.8421C51.8421 29.1494 51.1694 29.4741 50.9451 29.5281C50.9086 29.537 50.8733 29.5098 50.8733 29.4736V28.8539C50.8733 28.5114 50.6467 28.3237 50.42 28.2216C50.1336 28.0927 49.8 28.0927 49.5135 28.2216C49.2869 28.3237 49.0603 28.5114 49.0603 28.8539V29.4736C49.0603 29.5104 49.0243 29.5368 48.9872 29.5278C48.7617 29.4728 48.0915 29.1457 48.0915 27.2017V26.6644C48.0915 24.7166 48.7642 24.3919 48.9885 24.3379C49.025 24.3291 49.0603 24.3564 49.0603 24.3925V25.0121C49.0603 25.3547 49.2869 25.5423 49.5135 25.6444C49.8 25.7734 50.1336 25.7734 50.42 25.6444C50.6467 25.5423 50.8733 25.3547 50.8733 25.0121V24.3925C50.8733 24.3557 50.9093 24.3292 50.9464 24.3382C51.1719 24.3933 51.8421 24.7204 51.8421 26.6644H51.6529C51.5361 26.6644 51.4414 26.7556 51.4414 26.868V26.998C51.4414 27.1105 51.5361 27.2017 51.6529 27.2017Z",fill:"white"}),j.jsx("path",{d:"M43.036 32.1987C43.036 32.1987 43.4013 28.9416 40.5566 28.355V25.4288C43.3256 24.8038 42.9663 21.6002 42.9663 21.6002C42.9663 21.6002 41.4134 21.6002 41.4198 21.6002C41.4198 23.548 40.7471 23.8726 40.5228 23.9266C40.4863 23.9355 40.451 23.9082 40.451 23.8721V23.2524C40.451 22.9099 40.2244 22.7223 39.9977 22.6202C39.7113 22.4912 39.3777 22.4912 39.0912 22.6202C38.8646 22.7223 38.638 22.9099 38.638 23.2524V23.8721C38.638 23.9089 38.602 23.9354 38.5649 23.9264C38.3394 23.8713 37.6692 23.5442 37.6692 21.6002C37.6757 21.6002 36.1227 21.6002 36.1227 21.6002C36.1227 21.6002 35.7499 24.9246 38.6908 25.4611V28.351C35.8255 28.927 36.1924 32.1985 36.1924 32.1985V32.7358C36.1924 32.7358 35.8255 36.0074 38.6908 36.5834V39.339C35.7499 39.8756 36.1227 43.1998 36.1227 43.1998C36.1227 43.1998 37.6756 43.1998 37.6692 43.1998C37.6692 41.2521 38.3419 40.9274 38.5662 40.8734C38.6027 40.8645 38.638 40.8917 38.638 40.9279V41.5476C38.638 41.8901 38.8646 42.0778 39.0912 42.1799C39.3777 42.3088 39.7113 42.3088 39.9977 42.1799C40.2244 42.0778 40.451 41.8901 40.451 41.5476V40.9279C40.451 40.8911 40.487 40.8647 40.5241 40.8737C40.7496 40.9287 41.4198 41.2558 41.4198 43.1998C41.4133 43.1998 42.9663 43.1998 42.9663 43.1998C42.9663 43.1998 43.3256 39.9962 40.5566 39.3712V36.5794C43.4013 35.9927 43.036 32.7357 43.036 32.7357C43.1528 32.7357 43.2475 32.6445 43.2475 32.5321V32.402C43.2475 32.2896 43.1528 32.1984 43.036 32.1984V32.1987ZM41.3003 32.736H41.4895C41.4895 34.6837 40.8168 35.0084 40.5925 35.0624C40.556 35.0713 40.5207 35.0441 40.5207 35.0079V34.3882C40.5207 34.0457 40.2941 33.858 40.0675 33.7559C39.781 33.627 39.4474 33.627 39.161 33.7559C38.9343 33.858 38.7077 34.0457 38.7077 34.3882V35.0079C38.7077 35.0447 38.6717 35.0711 38.6346 35.0621C38.4091 35.007 37.7389 34.68 37.7389 32.736V32.1987C37.7389 30.2509 38.4116 29.9262 38.6359 29.8722C38.6724 29.8634 38.7077 29.8906 38.7077 29.9268V30.5464C38.7077 30.889 38.9343 31.0766 39.161 31.1787C39.4474 31.3077 39.781 31.3077 40.0675 31.1787C40.2941 31.0766 40.5207 30.889 40.5207 30.5464V29.9268C40.5207 29.89 40.5567 29.8635 40.5938 29.8725C40.8193 29.9276 41.4895 30.2547 41.4895 32.1987H41.3003C41.1836 32.1987 41.0889 32.2899 41.0889 32.4023V32.5323C41.0889 32.6448 41.1836 32.736 41.3003 32.736Z",fill:"white"})]})}function r5e(){return j.jsx("svg",{style:{maxHeight:"100%",maxWidth:"100%"},xmlns:"http://www.w3.org/2000/svg",height:"64",width:"64",viewBox:"0 0 64 64",children:j.jsxs("g",{transform:"translate(0.00630876,-0.00301984)",children:[j.jsx("path",{fill:"#f7931a",d:"m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"}),j.jsx("path",{fill:"#FFF",d:"m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"})]})})}const MP=gr()((e,{size:t})=>({container:{height:t,width:t,...L5},iconImage:{width:t,height:t,borderRadius:"50px"},icon:{maxHeight:"100%",maxWidth:"100%"},emptyIcon:{width:t,height:t,borderRadius:"50px",background:`color-mix(in hsl, ${e.palette.text.secondary}, ${e.palette.input.background} 80%)`}})),GN={[Ie.WBTC]:w6e(),[Ie.BUSD]:C6e(),[Ie.USDT]:A6e(),[Ie.DAI]:E6e(),[Ie.GLMR]:S6e(),[Ie.AVAX]:D6e(),[Ie.BNB]:T6e(),[Ie.BSC]:O6e(),[Ie.CELO]:I6e(),[Ie.ETH]:N6e(),[Ie.FANTOM]:L6e(),[Ie.POLYGON]:F6e(),[Ie.SOLANA]:j6e(),[Ie.USDC]:R6e(),[Ie.SUI]:k6e(),[Ie.APT]:B6e(),[Ie.ARBITRUM]:U6e(),[Ie.OPTIMISM]:P6e(),[Ie.SEI]:z6e(),[Ie.BASE]:_6e(),[Ie.OSMO]:W6e(),[Ie.TBTC]:H6e(),[Ie.WSTETH]:Y6e(),[Ie.ATOM]:G6e(),[Ie.EVMOS]:Z6e(),[Ie.KUJI]:Q6e(),[Ie.PYTH]:V6e(),[Ie.KLAY]:q6e(),[Ie.INJ]:$6e(),[Ie.NTT]:K6e(),[Ie.SCROLL]:X6e(),[Ie.BLAST]:J6e(),[Ie.XLAYER]:j.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:ZN("Xlayer")}),[Ie.MANTLE]:j.jsx("img",{style:{maxHeight:"100%",maxWidth:"100%"},src:ZN("Mantle")}),[Ie.WORLDCHAIN]:e5e(),[Ie.BERA]:t5e(),[Ie.BTC]:r5e(),[Ie.SONIC]:iP()};function n5e(e){return Object.values(Ie).includes(e)}function i5e(e){const{classes:t}=MP(e);return j.jsx("div",{className:t.emptyIcon})}function lw(e){const t=e.height||36,{classes:r}=MP({size:t});let n=j.jsx(i5e,{size:t});return n5e(e.icon)&&GN[e.icon]?n=GN[e.icon]:typeof e.icon=="string"&&(n=j.jsx("img",{className:r.iconImage,src:e.icon})),j.jsx("div",{className:r.container,children:n})}const m1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},xP=Object.create(null);for(const e in m1)Object.hasOwn(m1,e)&&(xP[m1[e]]=e);const ni={to:{},get:{}};ni.get=function(e){const t=e.slice(0,3).toLowerCase();let r,n;switch(t){case"hsl":{r=ni.get.hsl(e),n="hsl";break}case"hwb":{r=ni.get.hwb(e),n="hwb";break}default:{r=ni.get.rgb(e),n="rgb";break}}return r?{model:n,value:r}:null};ni.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^(\w+)$/;let o=[0,0,0,1],u,d,h;if(u=e.match(r)){for(h=u[2],u=u[1],d=0;d<3;d++){const m=d*2;o[d]=Number.parseInt(u.slice(m,m+2),16)}h&&(o[3]=Number.parseInt(h,16)/255)}else if(u=e.match(t)){for(u=u[1],h=u[3],d=0;d<3;d++)o[d]=Number.parseInt(u[d]+u[d],16);h&&(o[3]=Number.parseInt(h+h,16)/255)}else if(u=e.match(n)){for(d=0;d<3;d++)o[d]=Number.parseInt(u[d+1],10);u[4]&&(o[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else if(u=e.match(a)){for(d=0;d<3;d++)o[d]=Math.round(Number.parseFloat(u[d+1])*2.55);u[4]&&(o[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else return(u=e.match(i))?u[1]==="transparent"?[0,0,0,0]:Object.hasOwn(m1,u[1])?(o=m1[u[1]],o[3]=1,o):null:null;for(d=0;d<3;d++)o[d]=ll(o[d],0,255);return o[3]=ll(o[3],0,1),o};ni.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){const n=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,i=ll(Number.parseFloat(r[2]),0,100),o=ll(Number.parseFloat(r[3]),0,100),u=ll(Number.isNaN(n)?1:n,0,1);return[a,i,o,u]}return null};ni.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){const n=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,i=ll(Number.parseFloat(r[2]),0,100),o=ll(Number.parseFloat(r[3]),0,100),u=ll(Number.isNaN(n)?1:n,0,1);return[a,i,o,u]}return null};ni.to.hex=function(...e){return"#"+v4(e[0])+v4(e[1])+v4(e[2])+(e[3]<1?v4(Math.round(e[3]*255)):"")};ni.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};ni.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"};ni.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};ni.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};ni.to.keyword=function(...e){return xP[e.slice(0,3)]};function ll(e,t,r){return Math.min(Math.max(t,e),r)}function v4(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const sh={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},vP={};for(const e of Object.keys(sh))vP[sh[e]]=e;const Ct={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},oc=(6/29)**3;function Yu(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function Zu(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(Ct)){if(!("channels"in Ct[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ct[e]))throw new Error("missing channel labels property: "+e);if(Ct[e].labels.length!==Ct[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Ct[e];delete Ct[e].channels,delete Ct[e].labels,Object.defineProperty(Ct[e],"channels",{value:t}),Object.defineProperty(Ct[e],"labels",{value:r})}Ct.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a;let u,d;switch(i){case a:{u=0;break}case t:{u=(r-n)/o;break}case r:{u=2+(n-t)/o;break}case n:{u=4+(t-r)/o;break}}u=Math.min(u*60,360),u<0&&(u+=360);const h=(a+i)/2;return i===a?d=0:h<=.5?d=o/(i+a):d=o/(2-i-a),[u,d*100,h*100]};Ct.rgb.hsv=function(e){let t,r,n,a,i;const o=e[0]/255,u=e[1]/255,d=e[2]/255,h=Math.max(o,u,d),m=h-Math.min(o,u,d),b=function(v){return(h-v)/6/m+1/2};if(m===0)a=0,i=0;else{switch(i=m/h,t=b(o),r=b(u),n=b(d),h){case o:{a=n-r;break}case u:{a=1/3+t-n;break}case d:{a=2/3+r-t;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,i*100,h*100]};Ct.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const a=Ct.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,i*100,n*100]};Ct.rgb.oklab=function(e){const t=Zu(e[0]/255),r=Zu(e[1]/255),n=Zu(e[2]/255),a=Math.cbrt(.4122214708*t+.5363325363*r+.0514459929*n),i=Math.cbrt(.2119034982*t+.6806995451*r+.1073969566*n),o=Math.cbrt(.0883024619*t+.2817188376*r+.6299787005*n),u=.2104542553*a+.793617785*i-.0040720468*o,d=1.9779984951*a-2.428592205*i+.4505937099*o,h=.0259040371*a+.7827717662*i-.808675766*o;return[u*100,d*100,h*100]};Ct.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,u=(1-n-a)/(1-a)||0;return[i*100,o*100,u*100,a*100]};function a5e(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Ct.rgb.keyword=function(e){const t=vP[e];if(t)return t;let r=Number.POSITIVE_INFINITY,n;for(const a of Object.keys(sh)){const i=sh[a],o=a5e(e,i);o<r&&(r=o,n=a)}return n};Ct.keyword.rgb=function(e){return sh[e]};Ct.rgb.xyz=function(e){const t=Zu(e[0]/255),r=Zu(e[1]/255),n=Zu(e[2]/255),a=t*.4124564+r*.3575761+n*.1804375,i=t*.2126729+r*.7151522+n*.072175,o=t*.0193339+r*.119192+n*.9503041;return[a*100,i*100,o*100]};Ct.rgb.lab=function(e){const t=Ct.rgb.xyz(e);let r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>oc?r**(1/3):7.787*r+16/116,n=n>oc?n**(1/3):7.787*n+16/116,a=a>oc?a**(1/3):7.787*a+16/116;const i=116*n-16,o=500*(r-n),u=200*(n-a);return[i,o,u]};Ct.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let a,i;if(r===0)return i=n*255,[i,i,i];const o=n<.5?n*(1+r):n+r-n*r,u=2*n-o,d=[0,0,0];for(let h=0;h<3;h++)a=t+1/3*-(h-1),a<0&&a++,a>1&&a--,6*a<1?i=u+(o-u)*6*a:2*a<1?i=o:3*a<2?i=u+(o-u)*(2/3-a)*6:i=u,d[h]=i*255;return d};Ct.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,a=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i;const o=(n+r)/2,u=n===0?2*a/(i+a):2*r/(n+r);return[t,u*100,o*100]};Ct.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),u=255*n*(1-r*i),d=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,d,o];case 1:return[u,n,o];case 2:return[o,n,d];case 3:return[o,u,n];case 4:return[d,o,n];case 5:return[n,o,u]}};Ct.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let i,o;o=(2-r)*n;const u=(2-r)*a;return i=r*a,i/=u<=1?u:2-u,i=i||0,o/=2,[t,i*100,o*100]};Ct.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const a=r+n;let i;a>1&&(r/=a,n/=a);const o=Math.floor(6*t),u=1-n;i=6*t-o,o&1&&(i=1-i);const d=r+i*(u-r);let h,m,b;switch(o){default:case 6:case 0:{h=u,m=d,b=r;break}case 1:{h=d,m=u,b=r;break}case 2:{h=r,m=u,b=d;break}case 3:{h=r,m=d,b=u;break}case 4:{h=d,m=r,b=u;break}case 5:{h=u,m=r,b=d;break}}return[h*255,m*255,b*255]};Ct.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,i=1-Math.min(1,t*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),u=1-Math.min(1,n*(1-a)+a);return[i*255,o*255,u*255]};Ct.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let a,i,o;return a=t*3.2404542+r*-1.5371385+n*-.4985314,i=t*-.969266+r*1.8760108+n*.041556,o=t*.0556434+r*-.2040259+n*1.0572252,a=Yu(a),i=Yu(i),o=Yu(o),[a*255,i*255,o*255]};Ct.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>oc?t**(1/3):7.787*t+16/116,r=r>oc?r**(1/3):7.787*r+16/116,n=n>oc?n**(1/3):7.787*n+16/116;const a=116*r-16,i=500*(t-r),o=200*(r-n);return[a,i,o]};Ct.xyz.oklab=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=Math.cbrt(.8189330101*t+.3618667424*r-.1288597137*n),i=Math.cbrt(.0329845436*t+.9293118715*r+.0361456387*n),o=Math.cbrt(.0482003018*t+.2643662691*r+.633851707*n),u=.2104542553*a+.793617785*i-.0040720468*o,d=1.9779984951*a-2.428592205*i+.4505937099*o,h=.0259040371*a+.7827717662*i-.808675766*o;return[u*100,d*100,h*100]};Ct.oklab.oklch=function(e){return Ct.lab.lch(e)};Ct.oklab.xyz=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=(.999999998*t+.396337792*r+.215803758*n)**3,i=(1.000000008*t-.105561342*r-.063854175*n)**3,o=(1.000000055*t-.089484182*r-1.291485538*n)**3,u=1.227013851*a-.55779998*i+.281256149*o,d=-.040580178*a+1.11225687*i-.071676679*o,h=-.076381285*a-.421481978*i+1.58616322*o;return[u*100,d*100,h*100]};Ct.oklab.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,a=(t+.3963377774*r+.2158037573*n)**3,i=(t-.1055613458*r-.0638541728*n)**3,o=(t-.0894841775*r-1.291485548*n)**3,u=Yu(4.0767416621*a-3.3077115913*i+.2309699292*o),d=Yu(-1.2684380046*a+2.6097574011*i-.3413193965*o),h=Yu(-.0041960863*a-.7034186147*i+1.707614701*o);return[u*255,d*255,h*255]};Ct.oklch.oklab=function(e){return Ct.lch.lab(e)};Ct.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let a,i,o;i=(t+16)/116,a=r/500+i,o=i-n/200;const u=i**3,d=a**3,h=o**3;return i=u>oc?u:(i-16/116)/7.787,a=d>oc?d:(a-16/116)/7.787,o=h>oc?h:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};Ct.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);const o=Math.sqrt(r*r+n*n);return[t,o,a]};Ct.lch.lab=function(e){const t=e[0],r=e[1],a=e[2]/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a);return[t,i,o]};Ct.rgb.ansi16=function(e,t=null){const[r,n,a]=e;let i=t===null?Ct.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return i===2&&(o+=60),o};Ct.hsv.ansi16=function(e){return Ct.rgb.ansi16(Ct.hsv.rgb(e),e[2])};Ct.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t>>4===r>>4&&r>>4===n>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ct.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(Math.trunc(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,a,i]};Ct.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};Ct.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(r.length)+r};Ct.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=[...r].map(u=>u+u).join(""));const n=Number.parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};Ct.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=a-i;let u;const d=o<1?i/(1-o):0;return o<=0?u=0:a===t?u=(r-n)/o%6:a===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,d*100]};Ct.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};Ct.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};Ct.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const a=[0,0,0],i=t%1*6,o=i%1,u=1-o;let d=0;switch(Math.floor(i)){case 0:{a[0]=1,a[1]=o,a[2]=0;break}case 1:{a[0]=u,a[1]=1,a[2]=0;break}case 2:{a[0]=0,a[1]=1,a[2]=o;break}case 3:{a[0]=0,a[1]=u,a[2]=1;break}case 4:{a[0]=o,a[1]=0,a[2]=1;break}default:a[0]=1,a[1]=0,a[2]=u}return d=(1-r)*n,[(r*a[0]+d)*255,(r*a[1]+d)*255,(r*a[2]+d)*255]};Ct.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};Ct.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};Ct.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Ct.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let i=0;return a<1&&(i=(n-a)/(1-a)),[e[0],a*100,i*100]};Ct.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Ct.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Ct.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Ct.gray.hsl=function(e){return[0,0,e[0]]};Ct.gray.hsv=Ct.gray.hsl;Ct.gray.hwb=function(e){return[0,100,e[0]]};Ct.gray.cmyk=function(e){return[0,0,0,e[0]]};Ct.gray.lab=function(e){return[e[0],0,0]};Ct.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n};Ct.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function s5e(){const e={},t=Object.keys(Ct);for(let{length:r}=t,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function o5e(e){const t=s5e(),r=[e];for(t[e].distance=0;r.length>0;){const n=r.pop(),a=Object.keys(Ct[n]);for(let{length:i}=a,o=0;o<i;o++){const u=a[o],d=t[u];d.distance===-1&&(d.distance=t[n].distance+1,d.parent=n,r.unshift(u))}}return t}function c5e(e,t){return function(r){return t(e(r))}}function l5e(e,t){const r=[t[e].parent,e];let n=Ct[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),n=c5e(Ct[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}function u5e(e){const t=o5e(e),r={},n=Object.keys(t);for(let{length:a}=n,i=0;i<a;i++){const o=n[i];t[o].parent!==null&&(r[o]=l5e(o,t))}return r}const hi={},f5e=Object.keys(Ct);function d5e(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function h5e(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const a=e(r);if(typeof a=="object")for(let{length:i}=a,o=0;o<i;o++)a[o]=Math.round(a[o]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of f5e){hi[e]={},Object.defineProperty(hi[e],"channels",{value:Ct[e].channels}),Object.defineProperty(hi[e],"labels",{value:Ct[e].labels});const t=u5e(e),r=Object.keys(t);for(const n of r){const a=t[n];hi[e][n]=h5e(a),hi[e][n].raw=d5e(a)}}const wP=["keyword","gray","hex"],E7={};for(const e of Object.keys(hi))E7[[...hi[e].labels].sort().join("")]=e;const g1={};function _n(e,t){if(!(this instanceof _n))return new _n(e,t);if(t&&t in wP&&(t=null),t&&!(t in hi))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof _n)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const a=ni.get(e);if(a===null)throw new Error("Unable to parse color from string: "+e);this.model=a.model,n=hi[this.model].channels,this.color=a.value.slice(0,n),this.valpha=typeof a.value[n]=="number"?a.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=hi[this.model].channels;const a=Array.prototype.slice.call(e,0,n);this.color=S7(a,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=a.sort().join("");if(!(i in E7))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=E7[i];const{labels:o}=hi[this.model],u=[];for(r=0;r<o.length;r++)u.push(e[o[r]]);this.color=S7(u)}if(g1[this.model])for(n=hi[this.model].channels,r=0;r<n;r++){const a=g1[this.model][r];a&&(this.color[r]=a(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}_n.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ni.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return ni.to[t.model](...r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return ni.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=hi[this.model],{labels:r}=hi[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new _n([...this.color.map(m5e(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new _n([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Nn("rgb",0,ei(255)),green:Nn("rgb",1,ei(255)),blue:Nn("rgb",2,ei(255)),hue:Nn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Nn("hsl",1,ei(100)),lightness:Nn("hsl",2,ei(100)),saturationv:Nn("hsv",1,ei(100)),value:Nn("hsv",2,ei(100)),chroma:Nn("hcg",1,ei(100)),gray:Nn("hcg",2,ei(100)),white:Nn("hwb",1,ei(100)),wblack:Nn("hwb",2,ei(100)),cyan:Nn("cmyk",0,ei(100)),magenta:Nn("cmyk",1,ei(100)),yellow:Nn("cmyk",2,ei(100)),black:Nn("cmyk",3,ei(100)),x:Nn("xyz",0,ei(95.047)),y:Nn("xyz",1,ei(100)),z:Nn("xyz",2,ei(108.833)),l:Nn("lab",0,ei(100)),a:Nn("lab",1),b:Nn("lab",2),keyword(e){return e!==void 0?new _n(e):hi[this.model].keyword(this.color)},hex(e){return e!==void 0?new _n(e):ni.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new _n(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),ni.to.hex(...t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const a=n/255;t[r]=a<=.04045?a/12.92:((a+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return _n.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),a=t===void 0?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),u=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,d=1-u;return _n.rgb(u*r.red()+d*n.red(),u*r.green()+d*n.green(),u*r.blue()+d*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(hi)){if(wP.includes(e))continue;const{channels:t}=hi[e];_n.prototype[e]=function(...r){return this.model===e?new _n(this):r.length>0?new _n(r,e):new _n([...g5e(hi[this.model][e].raw(this.color)),this.valpha],e)},_n[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=S7(r,t)),new _n(n,e)}}function p5e(e,t){return Number(e.toFixed(t))}function m5e(e){return function(t){return p5e(t,e)}}function Nn(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(g1[n]||(g1[n]=[]))[t]=r;return e=e[0],function(n){let a;return n!==void 0?(r&&(n=r(n)),a=this[e](),a.color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function ei(e){return function(t){return Math.max(0,Math.min(e,t))}}function g5e(e){return Array.isArray(e)?e:[e]}function S7(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}const y5e=gr()(e=>({tokenListItem:{display:"flex",justifyContent:"space-between",padding:"8px 16px",borderRadius:0,":hover":{backgroundColor:_n(e.palette.primary.main).alpha(.07).hexa()}},tokenListItemSelected:{backgroundColor:_n(e.palette.primary.main).alpha(.07).hexa()},tokenDetails:{display:"flex",flexDirection:"row",alignItems:"center"},addressLink:{display:"inline-flex",alignItems:"center",height:"10px",overflow:"hidden",color:e.palette.text.primary,opacity:.6},wormholeWrappedDisclaimer:{display:"inline",marginRight:4}}));function b5e(e){var d;const{classes:t}=y5e(),r=on(),{chain:n,token:a}=e,i=(d=a.tokenId)==null?void 0:d.address.toString(),o=i?l1(n,i,"token"):void 0,u=`${a.shortAddress}`;return j.jsxs(Co,{className:`${t.tokenListItem} ${e.isSelected?t.tokenListItemSelected:""}`,dense:!0,disabled:e.disabled,"data-testid":`token-button-${n.toLowerCase()}-${a.address.toString()}`,onMouseDown:e.onClick,children:[j.jsxs("div",{className:t.tokenDetails,children:[j.jsx($v,{children:j.jsx(lw,{icon:e.token.icon})}),j.jsxs("div",{children:[j.jsx(ft,{children:a.display}),j.jsxs(ai,{display:"flex",children:[a.tokenBridgeOriginalTokenId?j.jsx(z0,{title:`Wormhole-wrapped from ${U0e(a.tokenBridgeOriginalTokenId.chain)}`,children:j.jsx(ai,{margin:"2px",marginRight:"5px",children:j.jsx(_0,{height:10,icon:a.tokenBridgeOriginalTokenId.chain})})}):null,a.symbol?j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,children:a.symbol}):null,a.symbol&&!a.isNativeGasToken?j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,marginLeft:1,marginRight:1,children:"•"}):null,a.isNativeGasToken?null:j.jsx(ft,{fontSize:10,color:r.palette.text.secondary,children:!pn(i)&&j.jsxs(c2,{onMouseDown:h=>h.stopPropagation(),onClick:h=>h.stopPropagation(),className:t.addressLink,href:o,rel:"noreferrer noopener",target:"_blank",children:[u,j.jsx(bP,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]})})]})]})]}),j.jsxs(hr,{alignItems:"flex-end",children:[j.jsx(ft,{fontSize:14,children:e.isFetchingBalance?j.jsx($n,{size:24}):e.balance?mn(Ra(e.balance,6)):""}),e.price&&j.jsx(ft,{color:r.palette.text.secondary,fontSize:"10px",children:e.price})]})]})}const M5e=Y.memo(b5e),x5e=gr()(e=>({card:{background:e.palette.input.background,maxWidth:"420px"},tokenListContainer:{padding:"16px 0 0 0 !important"},title:{fontSize:14,marginBottom:"8px"},tokenLoader:{padding:0,display:"flex",justifyContent:"space-between"},tokenList:{maxHeight:"360px",[e.breakpoints.down("sm")]:{maxHeight:"480px"}}})),QN=e=>{var S;const{classes:t}=x5e(),r=on(),n=Ce.ui.disableUserInputtedTokens!==!0,{getOrFetchToken:a,isFetchingToken:i,getTokenPrice:o}=Ys(),[u,d]=Y.useState(""),{isFetching:h,balances:m}=dP(e.wallet,e.selectedChainConfig.sdkName,e.tokenList||[]);Y.useEffect(()=>{if(n)try{if(u!==""){const D=e.selectedChainConfig.sdkName,L=xa(D,u);L&&(Ce.tokens.get(D,u)||a({chain:D,address:L}))}}catch{}},[u,e.selectedChainConfig.sdkName]);const b=D=>{if(e.selectedToken&&e7(e.selectedToken,D))return 4;if(pn(D.addressString))return 3;const L=ki.get(Ce.network,D.chain);return L&&D.addressString===L?2:D.isTokenBridgeWrappedToken?0:1},v=Y.useMemo(()=>{if(!e.tokenList)return[];const D=e.tokenList;if(u){let O=[];const U=Ce.tokens.get(e.selectedChainConfig.sdkName,u);U&&O.push(U);const z=Ce.tokens.queryBySymbol(e.selectedChainConfig.sdkName,u).filter(F=>!sU(F,e.selectedChainConfig.sdkName));z.length>0&&(O=O.concat(z));for(const F of O)e.tokenList.find(k=>e7(F,k))||D.push(F)}const L=O=>{const U=m[cl(O)];return!U||!U.balance?0:a0(o,U.balance,O)??0};let N=D.sort((O,U)=>{const z=b(O),F=b(U);if(z>F)return-1;if(F>z)return 1;const k=L(O),w=L(U);return k!==w?w-k:O.symbol.localeCompare(U.symbol)});if(Ce.tokenWhitelist&&Ce.tokenWhitelist.length>0){const O=new Set,U=[];for(const z of Ce.tokenWhitelist)if(typeof z=="string")U.push(z);else if(Ev(z)){const F=A5(z);F.chain===e.selectedChainConfig.sdkName&&O.add(F.address.toString())}for(const z of U){let F=!1;const k=[];for(const w of N)w.symbol===z&&(w.isTokenBridgeWrappedToken?k.push(w):(O.add(w.address.toString()),F=!0));if(!F&&k.length>0){for(const{address:w}of k)O.add(w.toString());k.length>1&&console.warn(`Ambiguous token whitelist item "${z}"; found ${k.length} matching wrapped tokens.`)}}N=N.filter(z=>O.has(z.address.toString()))}const _=Ce.isTokenSupportedHandler;return _&&(N=N.filter(O=>_(O,e.sourceToken))),e.isSource&&e.wallet.address&&(N=N.filter(O=>{var z;const U=(z=m[cl(O)])==null?void 0:z.balance;return U&&er(U)>0})),N},[e.selectedChainConfig.sdkName,e.selectedToken,e.tokenList,e.sourceToken,e.isSource,(S=e.wallet)==null?void 0:S.address,m,u]),C=Y.useMemo(()=>j.jsx(ft,{variant:"body2",color:r.palette.grey.A400,children:"No supported tokens found in wallet"}),[r.palette.grey.A400]),E=v.length===0&&!h&&!e.isFetching,T=`Search for a token${n?" or paste an address":""}`,I=j.jsx(yP,{searchPlaceholder:T,className:t.tokenList,dataTestId:"token-search-list",listTitle:E?C:j.jsxs(ft,{fontSize:14,color:r.palette.text.secondary,children:["Tokens on ",e.selectedChainConfig.displayName]}),loading:e.isFetching&&[1,2,3].map(D=>j.jsx(Co,{className:t.tokenLoader,dense:!0,children:j.jsx(ai,{padding:"8px 16px",children:j.jsx(JU,{variant:"circular",width:"36px",height:"36px"},D)})})),items:v,onQueryChange:D=>{d(D)},filterFn:(D,L)=>{if(L.length===0)return!0;const N=L.toLowerCase();return!!([D.symbol,D.name].some(O=>{var U,z;return(z=(U=O==null?void 0:O.toLowerCase())==null?void 0:U.startsWith)==null?void 0:z.call(U,N)})||D.address.toString().toLowerCase()===N||D.tokenBridgeOriginalTokenId&&D.tokenBridgeOriginalTokenId.address.toString().toLowerCase().includes(N))},renderFn:D=>{var O,U,z;const L=(O=m==null?void 0:m[D.key])==null?void 0:O.balance,N=L?sc(o,L,D):null,_=e.isSource&&!!((U=e.wallet)!=null&&U.address)&&!!m&&(!L||er(L)===0n);return j.jsx(M5e,{token:D,chain:e.selectedChainConfig.sdkName,disabled:_,onClick:()=>{e.onSelectToken(D)},balance:L,price:N,isSelected:D.key===((z=e.selectedToken)==null?void 0:z.key),isFetchingBalance:h},D.key)}});return j.jsx(Cc,{className:t.card,variant:"elevation",children:j.jsxs(Sl,{className:t.tokenListContainer,children:[j.jsxs(ai,{sx:{display:"flex",width:"100%",padding:"0 16px"},children:[j.jsx(ft,{width:"100%",className:t.title,children:"Select a token"}),i?j.jsx($n,{sx:{alignSelf:"flex-end",marginBottom:"12px"},size:14}):null]}),I]})})},v5e=gr()(e=>({badgeContent:{border:`1.5px solid ${e.palette.input.background}`,borderRadius:"4px"}}));function oh(e){const{classes:t}=v5e(),{chainConfig:r,token:n}=e;return j.jsx(d1e,{badgeContent:j.jsx(ai,{className:t.badgeContent,children:j.jsx(_0,{icon:r==null?void 0:r.icon,height:13})}),sx:{zIndex:0,height:"38px",marginRight:"8px","& .MuiBadge-badge":{right:2,top:32}},children:j.jsx(lw,{icon:n==null?void 0:n.icon,height:36})})}const w5e=gr()(e=>({inputArea:{width:"100%",cursor:"pointer",maxWidth:"420px",borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},inputAreaEmpty:{borderColor:e.palette.input.background,background:e.palette.input.background},cardContent:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"72px",padding:"16px 20px",":last-child":{padding:"16px 20px"}},chainSelector:{display:"flex",alignItems:"center",justifyContent:"space-between"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},popover:{marginLeft:"-1px",marginTop:"-1px",width:"422px"},popoverSlot:{width:"100%",maxWidth:"422px",borderRadius:"8px",background:e.palette.input.background},backdrop:{backgroundColor:"rgba(0,0,0,0.2)"},drawer:{background:e.palette.input.background,borderRadius:"8px",height:"calc(100vh - 40px)",maxWidth:"100vw"}})),qN=e=>{const t=on(),r=Qv(t.breakpoints.down("sm")),[n,a]=Y.useState(!1),[i,o]=Y.useState(!1),{classes:u}=w5e(),d=pP({variant:"popover",popupId:"asset-picker"});Y.useEffect(()=>{(r&&!i||!r&&!d.isOpen)&&setTimeout(()=>{a(!1)},300)},[i,r,d.isOpen]),Y.useEffect(()=>{if(r&&i&&!e.chain||!r&&d.isOpen&&!e.chain){const v=e.chainList.find(C=>!fU(C.sdkName,e.wallet));v&&e.setChain(v.sdkName)}},[r,i,d.isOpen]);const h=Y.useMemo(()=>e.chain?Ce.chains[e.chain]:void 0,[e.chain]),m=Y.useMemo(()=>{if(!h&&!e.token)return j.jsx(ft,{component:"div",fontSize:16,children:"Select chain and token"});const v=e.token?j.jsx(j.Fragment,{children:e.token.display}):j.jsx(j.Fragment,{children:"Select token"});return j.jsxs("div",{children:[j.jsx(ft,{component:"div",maxWidth:300,fontSize:16,fontWeight:700,sx:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v}),j.jsx(ft,{component:"div",fontSize:12,sx:{opacity:.6},children:h==null?void 0:h.displayName})]})},[h,e.token]),b=e.isTransactionInProgress||r?{}:mP(d);return j.jsxs(j.Fragment,{children:[j.jsx(UU,{open:d.isOpen,className:u.backdrop}),j.jsx(Cc,{className:Ms([u.inputArea,!h&&u.inputAreaEmpty,e.isTransactionInProgress&&u.disabled]),"data-testid":e.dataTestId,variant:"elevation",onMouseDown:v=>{r?o(!0):d.open(v)},onTouchEnd:v=>{v.stopPropagation(),v.preventDefault(),r?o(!0):d.open(v)},...b,children:j.jsxs(Sl,{className:u.cardContent,children:[j.jsxs(ft,{className:u.chainSelector,component:"div",gap:1,children:[j.jsx(oh,{chainConfig:h,token:e.token}),m]}),d.isOpen||i?j.jsx(m6e,{}):j.jsx(p6e,{})]})}),r?j.jsxs(I4e,{anchor:"bottom",open:i,PaperProps:{className:u.drawer},transitionDuration:200,onOpen:()=>o(!0),onClose:()=>o(!1),children:[j.jsx(hr,{alignItems:"center",paddingBottom:"4px",paddingTop:"8px",children:j.jsx(ai,{sx:{width:"40px",height:"5px",backgroundColor:t.palette.text.secondary,borderRadius:"8px"}})}),j.jsx(YN,{chainList:e.chainList,selectedChainConfig:h,showSearch:n,setShowSearch:a,wallet:e.wallet,onChainSelect:v=>{e.setChain(v)}}),!n&&h&&j.jsx(QN,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:v=>{e.setToken(v),o(!1)},isSource:e.isSource})]}):j.jsxs(Kv,{...gP(d),transitionDuration:200,anchorOrigin:{vertical:"top",horizontal:"center"},className:u.popover,transformOrigin:{vertical:"top",horizontal:"center"},marginThreshold:4,slotProps:{paper:{className:u.popoverSlot,sx:{borderRadius:"8px"}}},children:[j.jsx(YN,{chainList:e.chainList,selectedChainConfig:h,showSearch:n,setShowSearch:a,wallet:e.wallet,onChainSelect:v=>{e.setChain(v)}}),!n&&h&&j.jsx(QN,{tokenList:e.tokenList,isFetching:e.isFetching,selectedChainConfig:h,selectedToken:e.token,sourceToken:e.sourceToken,wallet:e.wallet,onSelectToken:v=>{e.setToken(v),d.close()},isSource:e.isSource})]})]})},C5e=e=>{const{address:t,href:r,target:n="_blank",label:a="Transactions"}=e,i=Y.useCallback(()=>window.open(r.replace("{:address}",t),n),[t,r,n]);return j.jsx(Co,{onClick:i,children:j.jsx(ft,{fontSize:14,children:a})})},A5e=gr()(e=>({connectWallet:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingTop:"2px",opacity:1},walletAddress:{color:e.palette.textSecondary,marginLeft:"8px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"},dropdown:{backgroundColor:e.palette.popover.background,display:"flex",flexDirection:"column",gap:"8px",padding:"8px"},dropdownItem:{borderRadius:"8px",padding:"16px",cursor:"pointer","&:hover":{backgroundColor:e.palette.popover.secondary}}})),E5e=1e3,VN=e=>{const t=oi(),{classes:r}=A5e(),{isTransactionInProgress:n}=Lr(E=>E.transferInput),a=Lr(E=>E.wallet[e.type]),[i,o]=Y.useState(!1),[u,d]=Y.useState(!1),h=pP({variant:"popover",popupId:`connected-wallet-popover-${e.type}`}),m=Y.useCallback(()=>{h==null||h.close(),o(!0)},[h]),b=Y.useCallback(()=>{nU(a.address),h==null||h.close(),d(!0)},[h,a.address]),v=Y.useCallback(()=>{t(N0e(e.type)),h==null||h.close()},[t,h,e.type]);Y.useEffect(()=>{u&&setTimeout(()=>{d(!1)},E5e)},[u]);const C=n?{}:mP(h);return j.jsxs(j.Fragment,{children:[a!=null&&a.address?j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:Ms([r.connectWallet,n&&r.disabled]),...C,children:[j.jsx(hP,{name:a.name,icon:a.icon,size:20}),j.jsx(z0,{title:"Copied",open:u,placement:"top",arrow:!0,children:j.jsx(ft,{className:r.walletAddress,fontSize:14,fontWeight:700,children:rU(a.type,a.address)})})]}),j.jsx(Kv,{...gP(h),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:j.jsxs(l2,{children:[j.jsx(Co,{onClick:b,children:j.jsx(ft,{fontSize:14,children:"Copy address"})}),Ce.ui.explorer?j.jsx(C5e,{address:a.address,href:Ce.ui.explorer.href,target:Ce.ui.explorer.target,label:Ce.ui.explorer.label}):null,j.jsx(Co,{onClick:m,children:j.jsx(ft,{fontSize:14,children:"Change wallet"})}),j.jsx(Co,{onClick:v,children:j.jsx(ft,{fontSize:14,children:"Disconnect"})})]})})]}):null,j.jsx(cw,{open:i,type:e.type,onClose:()=>{o(!1)},showAddressInput:e.type===qn.RECEIVING})]})},S5e=500,D5e=Y.memo(({value:e,onChange:t,onDebouncedChange:r,...n})=>{const[a,i]=Y.useState(e),[o,u]=Y.useState(!1),d=nw(r,S5e),h=Y.useCallback(m=>{let b=m.target.value;b==="."&&(b="0.");const v=Number(b);isNaN(v)||v<0||(i(m.target.value),t(m.target.value),d(m.target.value))},[d,t]);return Y.useEffect(()=>{o||i(e)},[e]),j.jsx(Tp,{...n,"data-testid":"amount-input",value:a,focused:o,onChange:h,onFocus:()=>u(!0),onBlur:()=>u(!1)})}),T5e=gr()(e=>({amountContainer:{width:"100%",maxWidth:"420px"},amountInput:{borderRadius:"8px",background:e.palette.input.fillTreatment?"transparent":e.palette.input.background,border:e.palette.input.fillTreatment?`1px solid ${e.palette.input.border}`:"none"},amountInputEmpty:{background:e.palette.input.background,borderColor:e.palette.input.background},amountCardContent:{display:"flex",alignItems:"center",height:"72px",padding:"12px 20px",":last-child":{padding:"12px 20px"}},amountTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},inputError:{marginTop:"12px"},balance:{color:e.palette.text.secondary,fontSize:"14px",lineHeight:"14px",textAlign:"right"}})),I5e=e=>{const{classes:t}=T5e(),r=oi(),n=on(),{sending:a}=Lr(N=>N.wallet),{amount:i}=Lr(N=>N.transferInput),[o,u]=Y.useState(i?mn(i):""),[d,h]=Y.useState(i?mn(i):""),{fromChain:m,isTransactionInProgress:b}=Lr(N=>N.transferInput),{sourceToken:v}=B5(),{getTokenPrice:C}=Ys();Y.useEffect(()=>{!i&&(o||d)&&(I(""),D(""))},[i]);const E=Y.useMemo(()=>b||!m||!v,[b,m,v]),T=Y.useMemo(()=>E||!a.address?null:j.jsxs(hr,{direction:"row",alignItems:"center",children:[j.jsx(ft,{className:t.balance,component:"span",sx:{marginRight:"4px"},children:"Balance:"}),e.isFetchingTokenBalance?j.jsx($n,{size:14}):j.jsx(ft,{fontSize:14,textAlign:"right",className:t.balance,children:e.tokenBalance?mn(Ra(e.tokenBalance,6)):"0"})]}),[E,a.address,t.balance,e.isFetchingTokenBalance,e.tokenBalance]),I=Y.useCallback(N=>{u(N)},[]),S=Y.useMemo(()=>{const N=sc(C,Number(o==="."?"0.":o),v);return N?j.jsx(Dp,{position:"end",sx:{position:"absolute",top:"38px",margin:0},children:j.jsx(hr,{alignItems:"start",children:j.jsx(ft,{color:n.palette.text.secondary,component:"span",fontSize:"14px",lineHeight:"14px",children:N})})}):null},[o,C,v,n.palette.text.secondary]),D=Y.useCallback(N=>{r(Tv(N)),h(N)},[r]),L=Y.useMemo(()=>{const N=E||!a.address||!e.tokenBalance;return j.jsx(o2,{sx:{minWidth:"32px",padding:"4px"},disabled:N,onClick:()=>{if(e.tokenBalance){const _=mn(e.tokenBalance);I(_),D(_)}},children:j.jsx(ft,{fontSize:14,fontWeight:N?400:600,textTransform:"none",children:"Max"})})},[E,a.address,e.tokenBalance,I,D]);return j.jsxs("div",{className:t.amountContainer,children:[j.jsx("div",{className:t.amountTitle,children:j.jsx(ft,{variant:"body2",children:"Amount"})}),j.jsx(Cc,{className:`${t.amountInput} ${o===""?t.amountInputEmpty:""}`,children:j.jsx(Sl,{className:t.amountCardContent,children:j.jsx(D5e,{fullWidth:!0,disabled:E,inputProps:{style:{color:e.error?n.palette.error.main:n.palette.text.primary,fontSize:24,height:"28px",marginBottom:S?"16px":0,padding:0},onWheel:N=>{N.currentTarget.blur()},step:"0.1"},placeholder:"0",variant:"standard",value:d,onChange:I,onDebouncedChange:D,InputProps:{disableUnderline:!0,startAdornment:S,endAdornment:j.jsx(Dp,{position:"end",children:j.jsxs(hr,{alignItems:"end",justifyContent:"space-between",children:[L,T]})})}})})}),j.jsx(d2,{error:!!e.error,content:e.error||e.warning,show:!!e.error||!!e.warning,color:e.error?n.palette.error.main:n.palette.grey.A400,className:t.inputError})]})},N5e=e=>{const{destToken:t,route:r,isTransactionInProgress:n}=e,a=n,i=!!r&&Ce.routes.get(r).NATIVE_GAS_DROPOFF_SUPPORTED&&!(t!=null&&t.isNativeGasToken);return{disabled:a,showGasSlider:i}},L5e=cn(j.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),j.jsx("path",{d:"M17 11C13.1386 11 10 14.1386 10 18C10 21.8614 13.1386 25 17 25C20.8614 25 24 21.8614 24 18C24 14.1386 20.8614 11 17 11ZM17 24.0233C13.6791 24.0233 10.9767 21.3209 10.9767 18C10.9767 14.6791 13.6791 11.9767 17 11.9767C20.3209 11.9767 23.0233 14.6791 23.0233 18C23.0233 21.3209 20.3209 24.0233 17 24.0233ZM16.5116 18.6512V14.7442C16.5116 14.4772 16.733 14.2558 17 14.2558C17.267 14.2558 17.4884 14.4772 17.4884 14.7442V18.6512C17.4884 18.9181 17.267 19.1395 17 19.1395C16.733 19.1395 16.5116 18.9181 16.5116 18.6512ZM17.814 20.9302C17.814 21.3795 17.4493 21.7442 17 21.7442C16.5507 21.7442 16.186 21.3795 16.186 20.9302C16.186 20.4809 16.5507 20.1163 17 20.1163C17.4493 20.1163 17.814 20.4809 17.814 20.9302Z",fill:"currentColor"})]}),"Error"),Oy=cn(j.jsxs("svg",{width:"34",height:"35",viewBox:"0 0 34 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("circle",{opacity:"0.1",cx:"17",cy:"17.5",r:"17",fill:"currentColor"}),j.jsx("path",{d:"M17 10.5C13.1386 10.5 10 13.6386 10 17.5C10 21.3614 13.1386 24.5 17 24.5C20.8614 24.5 24 21.3614 24 17.5C24 13.6386 20.8614 10.5 17 10.5ZM17 23.5233C13.6791 23.5233 10.9767 20.8209 10.9767 17.5C10.9767 14.1791 13.6791 11.4767 17 11.4767C20.3209 11.4767 23.0233 14.1791 23.0233 17.5C23.0233 20.8209 20.3209 23.5233 17 23.5233ZM16.5116 18.1512V14.2442C16.5116 13.9772 16.733 13.7558 17 13.7558C17.267 13.7558 17.4884 13.9772 17.4884 14.2442V18.1512C17.4884 18.4181 17.267 18.6395 17 18.6395C16.733 18.6395 16.5116 18.4181 16.5116 18.1512ZM17.814 20.4302C17.814 20.8795 17.4493 21.2442 17 21.2442C16.5507 21.2442 16.186 20.8795 16.186 20.4302C16.186 19.9809 16.5507 19.6163 17 19.6163C17.4493 19.6163 17.814 19.9809 17.814 20.4302Z",fill:"currentColor"})]}),"Warning"),j5e=cn(j.jsx("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M8.9,5.7c0-.1-.2-.2-.4-.2h-4c-.3,0-.5-.2-.5-.4V0L0,7.9c0,.1,0,.3,0,.4,0,.1.2.2.4.2h4c.3,0,.5.2.5.4v5.1l4-7.9c0-.1,0-.3,0-.4Z"})}),"Fastest"),B5e=cn(j.jsxs("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{d:"M5.2,7.5c0-1,.8-1.8,1.7-1.8s1.7.8,1.7,1.8-.8,1.8-1.7,1.8-1.7-.8-1.7-1.8Z"}),j.jsx("path",{d:"M10.1,7.5c0,1.2-.6,2.2-1.6,2.7l1.9,3.4c2.1-1.2,3.5-3.5,3.5-6.1h-3.9Z"}),j.jsx("path",{d:"M7,4.3c.6,0,1.1.2,1.6.4l1.9-3.4c-1-.6-2.2-.9-3.5-.9s-2.5.3-3.5.9l1.9,3.4c.5-.3,1-.4,1.6-.4Z"}),j.jsx("path",{d:"M3.9,7.5H0c0,2.6,1.4,4.9,3.5,6.1l1.9-3.4c-.9-.5-1.6-1.5-1.6-2.7Z"})]}),"Cheapest"),k5e=cn(j.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),z5e=gr()(e=>({content:{width:"100%",cursor:"pointer",maxWidth:"420px",overflow:"visible",padding:"16px 20px"},container:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},amounts:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"8px",width:"100%"},toggleButton:{backgroundColor:_n(e.palette.text.primary).alpha(.1).hexa(),border:"1px solid transparent",borderRadius:"8px","&.Mui-selected":{border:`1px solid ${e.palette.primary.main}`,borderRadius:"8px"},"&.MuiToggleButtonGroup-middleButton":{margin:"0 2px"},"&.MuiToggleButtonGroup-lastButton":{margin:"0"}}})),_5e=at(_4e)(({theme:e})=>({padding:"9px 12px",right:"-9px","& .MuiSwitch-switchBase.Mui-checked":{color:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-track":{height:"20px",borderRadius:"9px"}})),F5e=e=>{const{classes:t}=z5e(),r=oi(),n=on(),{fromChain:a,toChain:i}=Lr(I=>I.transferInput),{getTokenPrice:o,lastTokenPriceUpdate:u}=Ys(),d=Ce.tokens.getGasToken(i),h=Ce.tokens.getGasToken(a),[m,b]=Y.useState(!1),[v,C]=Y.useState(0);Y.useEffect(()=>{e.isSelected||(b(!1),C(0))},[r,e.isSelected]),Y.useEffect(()=>{r(mue(v/100))},[v,r]);const E=Y.useMemo(()=>{if(!i||!d)return null;const I=mn(Ra(e.destinationGasDrop,6)),S=sc(o,e.destinationGasDrop,d),D=S?`(${S})`:"";return`+${I} ${d.symbol} ${D}`},[d,u,e.destinationGasDrop,i]),T=Y.useMemo(()=>j.jsxs(q4e,{exclusive:!0,fullWidth:!0,value:v.toString(),onChange:I=>{const S=Number(I.currentTarget.value);C(S===v?0:S)},children:[j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"5",children:"5%"}),j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"10",children:"10%"}),j.jsx(Fy,{className:t.toggleButton,disableRipple:!0,value:"15",children:"15%"})]}),[t.toggleButton,v]);return!h||!d?j.jsx(j.Fragment,{}):j.jsxs("div",{className:t.content,children:[j.jsxs(hr,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[j.jsx(ft,{children:`Need extra ${d.symbol} on ${i}?`}),j.jsx(_5e,{checked:m,disabled:e.disabled,onClick:I=>{const{checked:S}=I.target;b(S),S?e.isExecutorRoute&&C(100):C(0)}})]}),j.jsx(Af,{in:m,unmountOnExit:!0,children:j.jsx("div",{className:t.container,children:j.jsxs(hr,{children:[!e.isExecutorRoute&&T,j.jsxs("div",{className:t.amounts,children:[j.jsxs(hr,{alignItems:"center",flexDirection:"row",children:[j.jsx(ft,{color:n.palette.text.secondary,fontSize:14,marginRight:"4px",children:"Gas amount"}),j.jsx(z0,{title:e.isExecutorRoute?`Add a small amount of ${h.symbol} to your transaction to receive ${E} on ${i}.`:"This additional gas is swapped from a percentage of your transfer amount.",children:j.jsx(k5e,{sx:{color:n.palette.text.secondary,fontSize:"16px"}})})]}),j.jsx(ft,{color:n.palette.primary.main,fontSize:14,children:E})]})]})})})]})},O5e=20,R5e=gr()(e=>({container:{width:"100%",maxWidth:"420px",marginBottom:"8px"},card:{borderRadius:"8px",width:"100%",maxWidth:"420px"},cardSelected:{backgroundColor:e.palette.input.fillTreatment?_n(e.palette.primary.main).alpha(.05).hexa():e.palette.card.background,borderColor:e.palette.primary.main},cardHeader:{padding:"20px 20px 0px"},cardContent:{marginTop:"18px",padding:"0px 20px 20px"},errorIcon:{color:e.palette.error.main,height:"34px",width:"34px",marginRight:"24px"},fastestBadge:{width:"14px",height:"14px",position:"relative",top:"2px",marginRight:"4px",fill:e.palette.primary.main},cheapestBadge:{width:"12px",height:"12px",position:"relative",top:"1px",marginRight:"3px",fill:e.palette.primary.main},messageContainer:{padding:"12px 0px 0px"},warningIcon:{color:e.palette.warning.main,height:"34px",width:"34px",marginRight:"12px"},disabled:{opacity:"0.6",cursor:"default",pointerEvents:"none"}})),U5e=e=>{const{classes:t}=R5e(),r=on(),n=Ce.routes.get(e.route),{toChain:a,fromChain:i,isTransactionInProgress:o}=Lr(f=>f.transferInput),{getTokenPrice:u,lastTokenPriceUpdate:d}=Ys(),{quote:h,isSelected:m}=e,b=h==null?void 0:h.destinationNativeGas,{sourceToken:v,destToken:C}=B5(),{disabled:E,showGasSlider:T}=N5e({destToken:C,route:e.route,isTransactionInProgress:o}),I=Y.useMemo(()=>{if(!(h!=null&&h.relayFee))return!1;const f=bo(h.relayFee.amount),p=Ce.tokens.get(h.relayFee.token),g=a0(u,f,p);return g===void 0?!1:g>O5e},[u,h==null?void 0:h.relayFee]),S=Y.useMemo(()=>{if(!a||e.destinationGasDrop===void 0||er(e.destinationGasDrop)===0n)return j.jsx(j.Fragment,{});const f=Ce.chains[a],p=Ce.tokens.getGasToken(a);if(!f||!p)return j.jsx(j.Fragment,{});const g=sc(u,e.destinationGasDrop,p),x=mn(Ra(e.destinationGasDrop,6)),A=g?` (${g})`:"";return j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:r.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:"Additional gas"}),j.jsx(ft,{color:r.palette.text.primary,component:"div",fontSize:"14px",lineHeight:"14px",children:`${x} ${p.symbol}${A}`})]})},[a,d,e.destinationGasDrop,u,d,r.palette.text.secondary,r.palette.text.primary]),D=Y.useMemo(()=>j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:r.palette.text.secondary,component:"div",fontSize:"14px",lineHeight:"14px",children:`Time to ${a}`}),j.jsx(ft,{component:"div",fontSize:"14px",lineHeight:"14px",sx:{color:h!=null&&h.eta&&h.eta<60*1e3?r.palette.success.main:r.palette.text.primary},children:h!=null&&h.eta?oU(h.eta):"N/A"})]}),[a,h==null?void 0:h.eta,r.palette.success.main,r.palette.text.primary,r.palette.text.secondary]),L=Y.useMemo(()=>e.route?!n.AUTOMATIC_DEPOSIT:!1,[e.route,n.AUTOMATIC_DEPOSIT]),N=Y.useMemo(()=>j.jsx(ah,{flexItem:!0,sx:{marginTop:"24px"}}),[]),_=Y.useMemo(()=>e.error?j.jsxs(j.Fragment,{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(L5e,{className:t.errorIcon}),j.jsx(ft,{color:r.palette.error.main,fontSize:"14px",lineHeight:"18px",children:e.error})]})]}):null,[t.errorIcon,t.messageContainer,N,e.error,r.palette.error.main]),O=Y.useMemo(()=>{const f=[];L&&f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsxs(hr,{children:[j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:"This transfer requires two transactions."}),j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"You will need to make two wallet approvals and have gas on the destination chain."})]})]})]},"ManualTransactionWarning"));for(const p of(h==null?void 0:h.warnings)||[])if(p.type==="DestinationCapacityWarning"&&p.delayDurationSec){const g=Z0e(p.delayDurationSec);f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:`Your transfer to ${a} may be delayed due to rate limits set by ${C.display}. If your transfer is delayed, you will need to return after ${g} to complete the transfer. Please consider this before proceeding.`})]})]},`${p.type}-${p.delayDurationSec}`))}return I&&f.push(j.jsxs("div",{children:[N,j.jsxs(hr,{className:t.messageContainer,direction:"row",alignItems:"center",children:[j.jsx(Oy,{className:t.warningIcon}),j.jsxs(hr,{children:[j.jsx(ft,{color:r.palette.warning.main,fontSize:14,lineHeight:"18px",children:"Output amount is much lower than input amount."}),j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,lineHeight:"18px",children:"Double check before proceeding."})]})]})]},"HighFee")),f},[L,I,N,t.warningIcon,t.messageContainer,r.palette.warning.main,r.palette.text.secondary,h==null?void 0:h.warnings,C,a]),U=Y.useMemo(()=>v?e.route==="AutomaticNtt"&&(v==null?void 0:v.symbol)==="wstETH"&&(i==="Ethereum"&&a==="Bsc"||i==="Bsc"&&a==="Ethereum")?"via NTT: Wormhole + Axelar":n.rc.meta.provider?`via ${n.rc.meta.provider}`:"":"",[e.route,n,i,v,a]),z=Y.useMemo(()=>h?bo(h==null?void 0:h.destinationToken.amount):void 0,[h]),F=Y.useMemo(()=>{if(h)return mn(Ra(h.destinationToken.amount,6))},[h]),k=Y.useMemo(()=>{if(e.error)return j.jsx(ft,{color:"error",children:"Route is unavailable"});if(z===void 0||!C)return null;const f=I?r.palette.warning.main:r.palette.text.primary;return j.jsxs(ft,{fontSize:"18px",lineHeight:"18px",color:f,component:"div",marginBottom:"6px",children:[F," ",C.symbol]})},[e.error,z,F,C,I,r.palette.warning.main,r.palette.text.primary]),w=Y.useMemo(()=>{if(e.error||!a||!C||z===void 0)return null;const f=sc(u,z,C);return j.jsx(ft,{fontSize:"14px",lineHeight:"14px",color:r.palette.text.secondary,component:"div",children:`${f} ${U}`})},[a,C,u,d,e.error,U,z,r.palette.text.secondary]),s=Y.useMemo(()=>m||typeof e.onSelect!="function"?"default":e.error?"not-allowed":"pointer",[e.error,m,e.onSelect]),l=Y.useMemo(()=>e.isFastest?j.jsxs(j.Fragment,{children:[j.jsx(j5e,{className:t.fastestBadge}),e.isOnlyChoice?"Fast":"Fastest"]}):e.isCheapest&&!e.isOnlyChoice?j.jsxs(j.Fragment,{children:[j.jsx(B5e,{className:t.cheapestBadge})," Cheapest"]}):null,[e.isFastest,e.isCheapest,e.isOnlyChoice,t.fastestBadge,t.cheapestBadge]);return e.route?j.jsx("div",{className:t.container,"data-testid":`route-${e.route}${m?"-selected":""}`,children:j.jsx(Cc,{className:Ms([t.card,m&&t.cardSelected,o&&t.disabled]),sx:{border:"1px solid",borderColor:m?r.palette.primary.main:"transparent",opacity:1},children:j.jsxs(Zv,{component:"div",disabled:o||typeof e.onSelect!="function"||e.error!==void 0,disableTouchRipple:!0,sx:{cursor:s},onClick:()=>{var f;(f=e.onSelect)==null||f.call(e,e.route)},children:[j.jsx(WU,{avatar:j.jsx(lw,{icon:C==null?void 0:C.icon}),className:t.cardHeader,title:k,subheader:w,action:l}),j.jsxs(Sl,{className:t.cardContent,children:[j.jsxs(hr,{gap:"14px",children:[n.AUTOMATIC_DEPOSIT?null:`You pay gas on ${a}`,S,D]}),_,O]}),T&&j.jsxs(j.Fragment,{children:[j.jsx(ah,{flexItem:!0,sx:{margin:"0px 16px"}}),j.jsx(Af,{in:T,children:j.jsx(F5e,{destinationGasDrop:b||Yr(0n,8),disabled:E,isExecutorRoute:u1(e.route),isSelected:m})})]})]})})},e.route):j.jsx(j.Fragment,{})},P5e=gr()(e=>({otherRoutesToggle:{display:"block",width:"100%",textAlign:"center",fontSize:14,color:e.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}})),W5e=({...e})=>{const{classes:t}=P5e(),[r,n]=Y.useState(!1),a=Y.useMemo(()=>e.routes.filter(h=>e.quotes[h]!==void 0),[e.routes,e.quotes]),i=Y.useMemo(()=>a.reduce((h,m)=>{const b=e.quotes[m];return!b||!b.success?h:b.eta!==void 0&&b.eta<h.eta&&b.eta<6e4?{name:m,eta:b.eta}:h},{name:"",eta:1/0}),[a,e.quotes]),o=Y.useMemo(()=>a.reduce((h,m)=>{const b=e.quotes[m],v=Ce.routes.get(m);if(!b||!b.success||!v.AUTOMATIC_DEPOSIT)return h;const C=BigInt(b.destinationToken.amount.amount);return C>h.amountOut?{name:m,amountOut:C}:h},{name:"",amountOut:0n}),[a,e.quotes]),u=Y.useMemo(()=>{if(r)return a;const h=a.find(m=>m===e.selectedRoute);if(h){const m=[];return h===i.name?(m.push(h),o.name&&o.name!==h&&m.push(o.name)):h===o.name?(i.name&&i.name!==h&&m.push(i.name),m.push(h)):(m.push(h),a.length>2&&(i.name?m.push(i.name):o.name&&m.push(o.name))),m}return i.name&&o.name?a.slice(0,2):a.slice(0,1)},[r,a,i,o,e.selectedRoute]),d=Y.useMemo(()=>a.length<2||a.length===2&&i.name&&o.name?null:j.jsx(c2,{className:t.otherRoutesToggle,"data-testid":"other-routes-toggle",onClick:()=>n(h=>!h),children:r?"Hide other routes":"View other routes"}),[o.name,t.otherRoutesToggle,i.name,a.length,r]);return j.jsxs(j.Fragment,{children:[e.isLoading||u.length>0?j.jsxs(ai,{sx:{display:"flex",width:"100%"},children:[j.jsx(ft,{align:"left",fontSize:16,paddingBottom:0,marginTop:"8px",marginBottom:0,width:"100%",textAlign:"left",children:"Routes"}),e.isLoading?j.jsx($n,{sx:{alignSelf:"flex-end"},size:20}):null]}):null,e.isLoading&&u.length===0?j.jsx(JU,{variant:"rounded",height:153,width:"100%"}):u.map((h,m)=>{var T;const b=h===e.selectedRoute,v=e.quotes[h],C=v!=null&&v.success?v:void 0,E=(v==null?void 0:v.success)===!1?((T=v==null?void 0:v.error)==null?void 0:T.message)??`Error while getting a quote for ${h}.`:void 0;return j.jsx(U5e,{route:h,error:E,isSelected:b&&!E,isFastest:h===i.name,isCheapest:h===o.name,isOnlyChoice:a.length===1,onSelect:e.onRouteChange,quote:C},h)}),d]})},H5e=cn(j.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),Y5e=gr()(()=>({swapButton:{display:"block",position:"absolute",bottom:-44,left:"calc(50% - 20px)",width:40,height:40,zIndex:1}}));function Z5e(){const e=oi(),[t,r]=Y.useState(""),{isTransactionInProgress:n,fromChain:a,toChain:i}=Lr(h=>h.transferInput),o=!n&&a&&i,u=Y.useCallback(()=>{!o||n||(r(h=>h==="spinRight"?"spinLeft":"spinRight"),e(hue()),e(L0e()),e(Tv("")))},[o,n,e]),{classes:d}=Y5e();return j.jsx(i2,{className:d.swapButton,sx:{animation:`${t} 0.3s linear 1`,"@keyframes spinRight":{"0%":{transform:"rotate(-180deg)"},"100%":{transform:"rotate(0deg)"}},"@keyframes spinLeft":{"0%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(0deg)"}}},onClick:u,disabled:!o,children:j.jsx(H5e,{})})}var CP={exports:{}};(function(e,t){(function(r,n){e.exports=n(Y)})(typeof self<"u"?self:Ut,r=>(()=>{var n={155:S=>{S.exports=r}},a={};function i(S){var D=a[S];if(D!==void 0)return D.exports;var L=a[S]={exports:{}};return n[S](L,L.exports,i),L.exports}i.d=(S,D)=>{for(var L in D)i.o(D,L)&&!i.o(S,L)&&Object.defineProperty(S,L,{enumerable:!0,get:D[L]})},i.o=(S,D)=>Object.prototype.hasOwnProperty.call(S,D),i.r=S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})};var o={};i.r(o),i.d(o,{default:()=>I,useStopwatch:()=>E,useTime:()=>T,useTimer:()=>C});var u=i(155);class d{static expiryTimestamp(D){const L=new Date(D).getTime()>0;return L||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",D),L}static onExpire(D){const L=D&&typeof D=="function";return D&&!L&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",D),L}}class h{static getTimeFromSeconds(D){const L=Math.ceil(D),N=Math.floor(L/86400),_=Math.floor(L%86400/3600),O=Math.floor(L%3600/60);return{totalSeconds:L,seconds:Math.floor(L%60),minutes:O,hours:_,days:N}}static getSecondsFromExpiry(D,L){const N=D-new Date().getTime();if(N>0){const _=N/1e3;return L?Math.round(_):_}return 0}static getSecondsFromPrevTime(D,L){const N=new Date().getTime()-D;if(N>0){const _=N/1e3;return L?Math.round(_):_}return 0}static getSecondsFromTimeNow(){const D=new Date;return D.getTime()/1e3-60*D.getTimezoneOffset()}static getFormattedTimeFromSeconds(D,L){const{seconds:N,minutes:_,hours:O}=h.getTimeFromSeconds(D);let U="",z=O;return L==="12-hour"&&(U=O>=12?"pm":"am",z=O%12),{seconds:N,minutes:_,hours:z,ampm:U}}}function m(S,D){const L=(0,u.useRef)();(0,u.useEffect)(()=>{L.current=S}),(0,u.useEffect)(()=>{if(!D)return()=>{};const N=setInterval(()=>{L.current&&L.current()},D);return()=>clearInterval(N)},[D])}const b=1e3;function v(S){if(!d.expiryTimestamp(S))return null;const D=h.getSecondsFromExpiry(S),L=Math.floor(1e3*(D-Math.floor(D)));return L>0?L:b}function C(){let{expiryTimestamp:S,onExpire:D,autoStart:L=!0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[N,_]=(0,u.useState)(S),[O,U]=(0,u.useState)(h.getSecondsFromExpiry(N)),[z,F]=(0,u.useState)(L),[k,w]=(0,u.useState)(L),[s,l]=(0,u.useState)(v(N)),f=(0,u.useCallback)(()=>{d.onExpire(D)&&D(),F(!1),l(null)},[D]),p=(0,u.useCallback)(()=>{F(!1)},[]),g=(0,u.useCallback)(function(y){let c=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];l(v(y)),w(c),F(c),_(y),U(h.getSecondsFromExpiry(y))},[]),x=(0,u.useCallback)(()=>{const y=new Date;y.setMilliseconds(y.getMilliseconds()+1e3*O),g(y)},[O,g]),A=(0,u.useCallback)(()=>{k?(U(h.getSecondsFromExpiry(N)),F(!0)):x()},[N,k,x]);return m(()=>{s!==b&&l(b);const y=h.getSecondsFromExpiry(N);U(y),y<=0&&f()},z?s:null),{...h.getTimeFromSeconds(O),start:A,pause:p,resume:x,restart:g,isRunning:z}}function E(){let{autoStart:S,offsetTimestamp:D}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[L,N]=(0,u.useState)(h.getSecondsFromExpiry(D,!0)||0),[_,O]=(0,u.useState)(new Date),[U,z]=(0,u.useState)(L+h.getSecondsFromPrevTime(_||0,!0)),[F,k]=(0,u.useState)(S);m(()=>{z(L+h.getSecondsFromPrevTime(_,!0))},F?1e3:null);const w=(0,u.useCallback)(()=>{const f=new Date;O(f),k(!0),z(L+h.getSecondsFromPrevTime(f,!0))},[L]),s=(0,u.useCallback)(()=>{N(U),k(!1)},[U]),l=(0,u.useCallback)(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,p=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const g=h.getSecondsFromExpiry(f,!0)||0,x=new Date;O(x),N(g),k(p),z(g+h.getSecondsFromPrevTime(x,!0))},[]);return{...h.getTimeFromSeconds(U),start:w,pause:s,reset:l,isRunning:F}}function T(){let{format:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[D,L]=(0,u.useState)(h.getSecondsFromTimeNow());return m(()=>{L(h.getSecondsFromTimeNow())},1e3),{...h.getFormattedTimeFromSeconds(D,S)}}function I(S){if((0,u.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),S.expiryTimestamp){const L=C(S);return{...L,startTimer:L.start,stopTimer:L.pause,resetTimer:()=>{}}}const D=E(S);return{...D,startTimer:D.start,stopTimer:D.pause,resetTimer:D.reset}}return o})())})(CP);var AP=CP.exports;const $N=60*1e3,G5e=120*1e3,EP=e=>{const[t,r]=Y.useState(!1),[n,a]=Y.useState(!1),[i,o]=Y.useState(),{eta:u,route:d}=e;return Y.useEffect(()=>{e.receipt&&o(e.receipt)},[e.receipt]),Y.useEffect(()=>{let h=!0;return(async()=>{if(!d||!i)return;const b=Ce.routes.get(d);if(!b)return;const v=T=>T.valueOf()-new Date().valueOf(),C=await Ba(),E=new b.rc(C);for(;h&&!Db(i);){if(u!==void 0){const I=v(u);I>$N&&await n7(I-$N)}try{for await(const I of E.track(i,G5e)){if(!h)break;if(I.state!==i.state){if(o(I),Db(I)){r(!0);break}!b.AUTOMATIC_DEPOSIT&&I.state>=Lt.Attested&&a(!0)}}}catch(I){console.error("Error tracking transfer:",I)}let T=5e3;u!==void 0&&b.AUTOMATIC_DEPOSIT&&v(u)<1e4&&(T=1e3),await n7(T)}})(),()=>{h=!1}},[u,i,d]),{isCompleted:t,isReadyToClaim:n,receipt:i}},Q5e=cn(j.jsx("path",{d:"M4 12H20M20 12L13 5M20 12L13 19",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),"ArrowRight"),SP=cn(j.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2079 105.5C82.2486 105.5 105.791 81.9949 105.791 53C105.791 24.0051 82.2486 0.5 53.2079 0.5C24.1672 0.5 0.625 24.0051 0.625 53C0.625 81.9949 24.1672 105.5 53.2079 105.5ZM53.207 102.097C80.3654 102.097 102.382 80.1157 102.382 53.0001C102.382 25.8844 80.3654 3.90283 53.207 3.90283C26.0485 3.90283 4.03223 25.8844 4.03223 53.0001C4.03223 80.1157 26.0485 102.097 53.207 102.097Z",fill:"currentColor"}),j.jsx("path",{d:"M46.8789 68L32.628906 53.75L36.19141 50.1875L46.8789 60.875L69.8164 37.9375L73.3789 41.5L46.8789 68Z",fill:"currentColor"})]}),"Alert"),q5e=gr()(e=>({alertBanner:{marginTop:"12px"},arrowIcon:{fontSize:"16px",margin:"0 4px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardContent:{padding:"16px 20px",":last-child":{padding:"16px 20px"}},cardActionArea:{height:"72px"},chainIcon:{border:`2px solid ${e.palette.input.background}`,borderRadius:"6px"},completedIcon:{color:e.palette.success.main,height:"24px",width:"24px"},container:{width:"100%",maxWidth:"420px"},progressBar:{borderRadius:"4px",marginTop:"8px"}})),V5e=e=>{var y,c;const[t,r]=Y.useState(""),[n,a]=Y.useState(!1),{classes:i}=q5e(),o=oi(),u=Y.useContext(Q0),d=on(),{data:h}=e,{receipt:m,route:b,timestamp:v,txDetails:C,txHash:E}=h,{amount:T,eta:I,fromChain:S,toChain:D,token:L}=C||{},N=Ce.tokens.get(L),{seconds:_,minutes:O,totalSeconds:U,isRunning:z,restart:F}=AP.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>a(!0)}),k=Y.useMemo(()=>{if(I&&v)return new Date(v+I)},[I,v]),{isCompleted:w,isReadyToClaim:s,receipt:l}=EP({eta:k,receipt:m,route:b});Y.useEffect(()=>{w&&E&&lP(E)},[w,E]);const f=l||m,p=Y.useMemo(()=>{if(!I||!v)return 0;const M=Date.now()-v;return I<M?0:I-M},[I,v,U]),g=Y.useMemo(()=>s||h.isReadyToClaim?"Ready to claim...":n||p===0?"Wrapping up...":z?aw(O,_):j.jsx($n,{size:16}),[n,p,s,z,O,_,h]),x=Y.useMemo(()=>!I||p>I||!n&&p===0?0:n?100:(I-p)/I*100,[I,n,p]);Y.useEffect(()=>{!z&&!w&&p&&F(new Date(Date.now()+p),!0)},[p,w,z,F]);const A=Y.useCallback(async()=>{if(r(""),!f){r("No receipt found for this transaction");return}try{const M=await Ba(),B=new(Ce.routes.get(b)).rc(M);o(Mz(v)),o(nx(C)),o(bz(!0)),o(ix(b)),o(Dv(C.toChain)),o(ys("redeem")),u.setReceipt(f),u.setRoute(B)}catch{r(`Error resuming transaction: ${C.sendTx}`)}},[o,f,b,u,v,C]);return!h||!N?j.jsx(j.Fragment,{}):j.jsxs("div",{className:i.container,children:[j.jsx(Cc,{className:i.card,children:j.jsx(Zv,{disableTouchRipple:!0,disabled:e.disabled||!C,className:i.cardActionArea,onClick:A,children:j.jsxs(Sl,{className:i.cardContent,children:[j.jsxs(hr,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[j.jsx(ft,{display:"flex",justifyContent:"space-between",children:w?j.jsx(SP,{className:i.completedIcon}):g}),j.jsxs(hr,{direction:"row",alignItems:"center",children:[j.jsx(ft,{fontSize:14,marginRight:"8px",children:`${mn(Ra(T,6))} ${N.symbol}`}),j.jsx(ai,{className:i.chainIcon,children:j.jsx(_0,{icon:(y=Ce.chains[S])==null?void 0:y.icon,height:24})}),j.jsx(Q5e,{className:i.arrowIcon}),j.jsx(ai,{className:i.chainIcon,children:j.jsx(_0,{icon:(c=Ce.chains[D])==null?void 0:c.icon,height:24})})]})]}),!w&&j.jsx(i2e,{className:i.progressBar,variant:"determinate",value:x})]})})}),j.jsx(d2,{className:i.alertBanner,color:t?d.palette.error.light:d.palette.grey.A400,content:t,error:!!t,show:!!t})]})},$5e=gr()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",boxShadow:`0px 0px 3.5px 0px ${e.palette.primary.main}`},cardHeader:{paddingBottom:0},spacer:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"16px",alignItems:"center",justifyContent:"center",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"}})),K5e=e=>{const{classes:t}=$5e(),r=on(),[n,a]=Y.useState();return Y.useEffect(()=>{const i=k5(),o=i==null?void 0:i.filter(u=>{var d,h;if(!((d=u==null?void 0:u.txDetails)!=null&&d.token))return!1;try{return!!Ce.tokens.get((h=u==null?void 0:u.txDetails)==null?void 0:h.token)}catch(m){return console.log("Error while parsing token from local storage (in-progress widget):",m),!1}});a(o)},[]),!n||n.length===0?j.jsx(j.Fragment,{}):j.jsxs("div",{className:t.spacer,children:[j.jsx("div",{className:t.txHistoryHeader,children:j.jsx(ft,{color:r.palette.text.secondary,fontSize:14,children:"Transactions in progress"})}),n.map(i=>j.jsx(V5e,{data:i,disabled:e.disabled},i.txHash))]})},X5e=({sendingWallet:e,receivingWallet:t,sourceChain:r,destChain:n,routes:a})=>Y.useMemo(()=>{if(a.length===1&&a[0]==="ManualCCTP"){const o=["Petra","Pontem Wallet","Nightly","Continue with Google","Continue with Apple"];if(r==="Aptos"&&!o.includes(e.name)||n==="Aptos"&&!o.includes(t.name))return{isCompatible:!1,warning:"Please use a compatible wallet for this route."}}return{isCompatible:!0}},[e,t,r,n,a]),J5e=gr()(e=>({assetPickerContainer:{width:"100%",position:"relative"},assetPickerTitle:{color:e.palette.text.secondary,display:"flex",minHeight:"40px",alignItems:"center",justifyContent:"space-between"},bridgeContent:{margin:"auto",maxWidth:"420px"},bridgeHeader:{width:"100%",minHeight:"28px",display:"flex",alignItems:"center"},doneIcon:{fontSize:"14px",color:e.palette.success.main},confirmTransaction:{padding:"8px 16px",borderRadius:"8px",height:"48px",margin:"auto",maxWidth:"420px",width:"100%"},copyIcon:{fontSize:"14px"},ctaContainer:{marginTop:"8px",width:"100%"},spacer:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"center",width:"100%"}})),eme=()=>{var me,Ze;const{classes:e}=J5e(),t=on(),r=oi(),{lastTokenCacheUpdate:n}=Ys(),[a,i]=Y.useState(!1),o=Qv(t.breakpoints.down("sm")),{sending:u,receiving:d}=Lr(he=>he.wallet),{fromChain:h,toChain:m,route:b,preferredRouteName:v,amount:C,toNativeToken:E,isTransactionInProgress:T,validations:I}=Lr(he=>({...he.transferInput,...he.relay})),{sourceToken:S,destToken:D}=B5(),{allSupportedRoutes:L,sortedRoutes:N,sortedRoutesWithQuotes:_,quotes:O,isFetching:U}=Ipe({amount:C,fromChain:h,toChain:m,preferredRouteName:v,sourceToken:S,destToken:D,toNativeToken:E,receivingWallet:d}),{isFetching:z,supportedDestTokens:F}=Epe({sourceChain:h,destChain:m,sourceToken:S}),{error:k,errorInternal:w,onConfirm:s}=$pe({quotes:O});Y.useEffect(()=>{if(_.length===0)r(c4(""));else{const he=_.find(ce=>ce.route===v),Se=b??(he==null?void 0:he.route)??_[0].route,Ke=_.findIndex(ce=>ce.route===Se)>-1;if(Ke||r(c4("")),!Se||b&&Ke)return;const ye=_==null?void 0:_.find(ce=>ce.route===Se);ye&&r(c4(ye.route))}},[v,b,_]),eU(),qpe();const l=Y.useMemo(()=>S?[S]:[],[S]),{balances:f,isFetching:p}=dP(u,h,l),g=Lpe({balance:S?(me=f[S.key])==null?void 0:me.balance:null,routes:L,quotes:O,tokenSymbol:(S==null?void 0:S.symbol)??"",disabled:!u.address||!h||!S}),x=Y.useMemo(()=>uP(I),[I]),A=Y.useMemo(()=>Ce.routes.allSupportedChains(),[Ce.chains]),y=Y.useMemo(()=>h?Ce.tokens.getAllForChain(h):[],[h,n]),c=Y.useMemo(()=>Ce.chainsArr.filter(he=>he.sdkName!==m&&A.includes(he.sdkName)),[m,A]),M=Y.useMemo(()=>Ce.chainsArr.filter(he=>he.sdkName!==h&&A.includes(he.sdkName)),[h,A]),B=Y.useMemo(()=>{const he={text:"",align:"left"};let Se;return typeof Ce.ui.pageHeader=="string"?Se={...he,text:Ce.ui.pageHeader}:Se={...he,...Ce.ui.pageHeader},j.jsx(u2,{title:Se.text,align:Se.align})},[]),R=Y.useMemo(()=>j.jsxs("div",{className:e.assetPickerContainer,children:[j.jsxs("div",{className:e.assetPickerTitle,children:[j.jsx(ft,{variant:"body2",children:"From"}),j.jsx(VN,{type:qn.SENDING})]}),j.jsx(qN,{chain:h,chainList:c,token:S,tokenList:y,setChain:he=>{aue(r,he,u),r(lue())},setToken:he=>{r(cue(he.tuple))},wallet:u,isSource:!0,isTransactionInProgress:T,dataTestId:"source-asset-picker"}),j.jsx(Z5e,{})]}),[e.assetPickerContainer,e.assetPickerTitle,h,c,S,y,n,T,u,r]),Q=Y.useMemo(()=>j.jsxs("div",{className:e.assetPickerContainer,children:[j.jsxs("div",{className:e.assetPickerTitle,children:[j.jsx(ft,{variant:"body2",children:"To"}),j.jsx(VN,{type:qn.RECEIVING})]}),j.jsx(qN,{chain:m,chainList:M,token:D,sourceToken:S,tokenList:F,isFetching:F.length===0&&z,setChain:he=>{sue(r,he,d),r(uue())},setToken:he=>{r(hU(he.tuple))},wallet:d,isSource:!1,isTransactionInProgress:T,dataTestId:"dest-asset-picker"})]}),[e.assetPickerContainer,e.assetPickerTitle,m,M,D,S,F,z,T,d,r]),K=Y.useMemo(()=>{const he=!(u!=null&&u.address)||T;return j.jsxs("div",{className:e.bridgeHeader,children:[j.jsx(jv,{align:"left",text:Ce.ui.title??"Wormhole Connect",size:18,testId:"bridge-view-header"}),j.jsx(z0,{title:u!=null&&u.address?"":"No connected wallets found",children:j.jsx("span",{children:j.jsx(i2,{"data-testid":"history-button",sx:{padding:0},disabled:he,onClick:()=>{r(ys("history")),Ce.triggerEvent({type:"history.load",details:{wallet:u==null?void 0:u.address}})},children:j.jsx(ype,{})})})})]})},[e.bridgeHeader,r,T,u==null?void 0:u.address]),q=Y.useMemo(()=>u!=null&&u.address&&(d!=null&&d.address)?null:u!=null&&u.address&&!(d!=null&&d.address)?j.jsx(UN,{disabled:!m,side:"destination",type:qn.RECEIVING}):j.jsx(UN,{disabled:!h,side:"source",type:qn.SENDING}),[h,m,u,d]),{isCompatible:W,warning:G}=X5e({sendingWallet:u,receivingWallet:d,sourceChain:h,destChain:m,routes:N}),X=Y.useMemo(()=>k?j.jsxs(ai,{sx:{marginBottom:2},children:[j.jsx(d2,{error:!0,content:k,show:!0,testId:"send-error-message"}),w&&w.message&&Ce.ui.getHelpUrl?j.jsxs(ft,{fontSize:14,sx:{marginTop:1},children:["Having trouble?"," ",j.jsxs("a",{href:"#",onClick:()=>{nU(w.message),i(!0),setTimeout(()=>i(!1),3e3)},children:["Copy the error logs"," ",a?j.jsx(gpe,{className:e.doneIcon}):j.jsx(mpe,{className:e.copyIcon})]})," and ",j.jsx("a",{href:Ce.ui.getHelpUrl,target:"_blank",children:"ask for help"}),"."]}):null]}):null,[e.copyIcon,e.doneIcon,a,k,w]),ne=!!g.error,te=C&&bo(C)>0,V=u.address&&d.address,oe=!h||!S||!m||!D||!V||!W||!b||!x||U||!te||T||ne,xe=Y.useMemo(()=>j.jsx(Gl,{disabled:oe,"data-testid":"confirm-transaction-button",variant:"primary",className:e.confirmTransaction,onClick:()=>s(),children:T?j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{size:16,sx:{color:t.palette.primary.contrastText}}),o?"Preparing":"Preparing transaction"]}):!T&&U?j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{color:"secondary",size:16}),o?"Refreshing":"Refreshing quote"]}):j.jsx(ft,{textTransform:"none",children:o?"Confirm":"Confirm transaction"})}),[oe,e.confirmTransaction,T,t.palette.primary.contrastText,o,U,s]),fe=!h||!S?"Please select a source asset":!m||!D?"Please select a destination asset":te?U?"Loading quotes...":b?"":"Please select a quote":"Please enter an amount";return j.jsxs("div",{className:Ms([e.bridgeContent,e.spacer]),"data-testid":"bridge-view",children:[B,Ce.ui.showInProgressWidget&&j.jsx(K5e,{disabled:T}),K,R,Q,j.jsx(I5e,{sourceChain:h,supportedSourceTokens:y,tokenBalance:S?(Ze=f[S.key])==null?void 0:Ze.balance:null,isFetchingTokenBalance:p,error:g.error,warning:g.warning||G}),te&&j.jsx(W5e,{routes:N,selectedRoute:b,onRouteChange:he=>{r(c4(he))},quotes:O,isLoading:U||p}),X,j.jsx("span",{className:e.ctaContainer,children:V?j.jsx(z0,{title:fe,children:j.jsx("span",{children:xe})}):q}),j.jsx(ow,{color:t.palette.text.primary}),j.jsx(rw,{})]})},tme=cn(j.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),rme=gr()(e=>({addressLink:{display:"inline-flex",alignItems:"center",overflow:"hidden",color:e.palette.text.primary,opacity:.6}})),u3=({url:e,text:t})=>{const{classes:r}=rme();return e&&t?j.jsxs(c2,{onClick:n=>n.stopPropagation(),className:r.addressLink,href:e,rel:"noreferrer noopener",target:"_blank",children:[t,j.jsx(bP,{sx:{height:"10px",width:"10px",marginLeft:"2px"}})]}):null},nme=gr()(e=>({container:{width:"100%",maxWidth:"420px",backgroundColor:e.palette.input.background},card:{width:"100%",backgroundColor:e.palette.input.background}})),ime=()=>{const{classes:e}=nme(),t=on(),r=Vn.useContext(Q0),{sendTx:n,sender:a,amount:i,recipient:o,toChain:u,fromChain:d,token:h,receivedToken:m,receiveAmount:b,receiveNativeAmount:v,eta:C}=Lr(l=>l.redeem.txData),{route:E}=Lr(l=>l.redeem),T=Ce.tokens.get(h),I=Ce.tokens.get(m),{getTokenPrice:S,isFetchingTokenPrices:D,lastTokenPriceUpdate:L}=Ys(),N=Y.useMemo(()=>j.jsx(ft,{component:"span",padding:"0px 8px",children:"·"}),[]),_=Y.useMemo(()=>{if(!T||!d)return j.jsx(j.Fragment,{});const l=Ce.tokens.get(h),f=Ce.chains[d],p=sc(S,i,l),g=a?x0(a):"",x=a?l1(d,a,"wallet"):"",A=mn(Ra(i,6));return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:f,token:l}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[A," ",T.symbol]}),j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:D?j.jsx($n,{size:14}):j.jsxs(j.Fragment,{children:[p,p?N:null,f.displayName,x?j.jsxs(j.Fragment,{children:[N,j.jsx(u3,{url:x,text:g})]}):null]})})]})]})},[T,d,h,S,i,a,t.palette.text.secondary,D,N]),O=Y.useMemo(()=>{if(!I||!u)return j.jsx(j.Fragment,{});const l=Ce.chains[u],f=sc(S,b,I),p=o?x0(o):"",g=o?l1(u,o,"wallet"):"",x=b?mn(Ra(b,6)):"-";return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:l,token:I}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[x," ",I.symbol]}),j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:D?j.jsx($n,{size:14}):j.jsxs(j.Fragment,{children:[f,f?N:null,l.displayName,g?j.jsxs(j.Fragment,{children:[N,j.jsx(u3,{url:g,text:p})]}):null]})})]})]})},[I,S,b,o,N,t.palette.text.secondary,u,D,L]),U=Y.useMemo(()=>j.jsx(hr,{height:"28px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),z=Y.useMemo(()=>{if(!m||!v||er(v)===0n)return j.jsx(j.Fragment,{});const l=Ce.chains[u];if(!l)return j.jsx(j.Fragment,{});const f=sc(S,v,Ce.tokens.getGasToken(l.sdkName));return j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:"Additional gas"}),D?j.jsx($n,{size:14}):j.jsx(ft,{fontSize:14,children:f})]})},[v,t.palette.text.secondary,u,D,L]),F=Y.useMemo(()=>{const l=r.route??E;if(!l)return null;const{name:f,url:p}=j3e(l,n,d,u);return URL.canParse(p)?j.jsx(hr,{alignItems:"center",padding:"24px 12px",children:j.jsx(c2,{display:"flex",gap:"8px",href:p,rel:"noreferrer",target:"_blank",underline:"none",children:j.jsx(ft,{color:t.palette.text.primary,fontSize:14,children:`View on ${f}`})})}):null},[r.route,E,n,t.palette.text.primary]),k=Y.useMemo(()=>{let l=j.jsx($n,{size:14});return C?(l=oU(C),j.jsxs(hr,{direction:"row",justifyContent:"space-between",children:[j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:`Time to ${u}`}),j.jsx(ft,{fontSize:14,children:l})]})):null},[C,t.palette.text.secondary,u]),w=n?x0(n):"",s=n?l1(d,n,"tx"):"";return j.jsx("div",{className:e.container,children:j.jsxs(Cc,{className:e.card,children:[j.jsxs(Sl,{children:[j.jsxs(ft,{color:t.palette.text.secondary,marginBottom:"12px",children:["Transaction #",s?j.jsx(u3,{url:s,text:w}):w]}),_,U,O,j.jsxs(hr,{direction:"column",gap:"8px",justifyContent:"space-between",marginTop:"16px",children:[z,k]})]}),j.jsx(ah,{flexItem:!0,sx:{margin:"0 16px",opacity:"50%"}}),F]})})},ame=cn(j.jsx("svg",{width:"107",height:"107",viewBox:"0 0 107 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M53.5 36.625V57.7188M104.125 53.5C104.125 60.1482 102.816 66.7312 100.271 72.8733C97.7273 79.0155 93.9982 84.5963 89.2973 89.2973C84.5963 93.9982 79.0155 97.7273 72.8733 100.271C66.7312 102.816 60.1482 104.125 53.5 104.125C46.8518 104.125 40.2688 102.816 34.1267 100.271C27.9845 97.7273 22.4037 93.9982 17.7027 89.2973C13.0018 84.5963 9.27274 79.0155 6.7286 72.8733C4.18445 66.7312 2.875 60.1482 2.875 53.5C2.875 40.0734 8.20869 27.1967 17.7027 17.7027C27.1967 8.20869 40.0734 2.875 53.5 2.875C66.9266 2.875 79.8032 8.20869 89.2973 17.7027C98.7913 27.1967 104.125 40.0734 104.125 53.5ZM53.5 74.5938H53.545V74.6388H53.5V74.5938Z",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),"Alert"),sme=cn(j.jsxs("svg",{width:"106",height:"106",viewBox:"0 0 106 106",stroke:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.5829 105C81.6236 105 105.166 81.4949 105.166 52.5C105.166 23.5051 81.6236 0 52.5829 0C23.5422 0 0 23.5051 0 52.5C0 81.4949 23.5422 105 52.5829 105ZM52.582 101.597C79.7404 101.597 101.757 79.6157 101.757 52.5001C101.757 25.3844 79.7404 3.40283 52.582 3.40283C25.4235 3.40283 3.40723 25.3844 3.40723 52.5001C3.40723 79.6157 25.4235 101.597 52.582 101.597Z",fill:"currentColor"}),j.jsx("path",{d:"M65.7583 39.2417L39.2418 65.7582",stroke:"currentColor",strokeWidth:"4"}),j.jsx("path",{d:"M39.2417 39.2417L65.7582 65.7582",stroke:"currentColor",strokeWidth:"4"})]}),"Alert"),KN=cn(j.jsxs("svg",{width:"107",height:"106",viewBox:"0 0 107 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M53.2,105.5c29,0,52.6-23.5,52.6-52.5S82.2.5,53.2.5.6,24,.6,53s23.5,52.5,52.6,52.5ZM53.2,102.1c27.2,0,49.2-22,49.2-49.1S80.4,3.9,53.2,3.9,4,25.9,4,53s22,49.1,49.2,49.1Z"}),j.jsx("rect",{fill:"currentColor",x:"51",y:"28.8",width:"5",height:"42.6"}),j.jsx("rect",{fill:"currentColor",x:"48",y:"63.9",width:"25.5",height:"5",transform:"translate(-29.2 62.4) rotate(-45)"}),j.jsx("rect",{fill:"currentColor",x:"43.8",y:"53.7",width:"5",height:"25.5",transform:"translate(-33.4 52.2) rotate(-45)"})]}),"Alert"),ome=gr()(e=>({spacer:{display:"flex",flexDirection:"column",gap:"16px",alignItems:"center",justifyContent:"center",width:"100%"},container:{margin:"auto",maxWidth:"650px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},actionButton:{padding:"12px 16px",backgroundColor:e.palette.primary.main,borderRadius:"8px",margin:"auto",maxWidth:"420px",width:"100%"},backButton:{alignItems:"start",maxWidth:"420px",width:"100%"},claimButton:{backgroundColor:e.palette.warning.light,color:e.palette.warning.contrastText??e.palette.background.default,"&:hover":{backgroundColor:e.palette.warning.main}},circularProgressCircleIndeterminite:{stroke:"url(#circularGradient)",strokeDasharray:"100px, 200px",strokeLinecap:"round"},circularProgressCircleDeterminite:{strokeLinecap:"round",transitionDuration:"1s",transitionProperty:"all",transitionTimingFunction:"linear"},circularProgressRoot:{animationDuration:"1s"},errorBox:{maxWidth:"420px"},txStatusIcon:{width:"105px",height:"105px"},delayText:{maxWidth:"420px"}})),cme=()=>{const e=oi(),t=on(),{classes:r}=ome(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!1),[h,m]=Y.useState(!1),[b,v]=Y.useState(!1),C=Vn.useContext(Q0),{sourceToken:E,destToken:T}=jpe();eU();const{route:I,timestamp:S,isResumeTx:D,txData:L}=Lr(ce=>ce.redeem),[N,_]=Y.useState(void 0),{receipt:O}=C,U=O&&Us(O),z=O&&pre(O),F=O&&Qm(O)||!!N,k=O&&Qm(O)&&O.error instanceof oF,w=O&&Gm(O),{recipient:s,toChain:l,fromChain:f,token:p,receivedToken:g,amount:x,eta:A=0,sendTx:y}=L,c=cP(),M=Y.useMemo(()=>{if(A&&S)return new Date(S+A)},[A,S]),{seconds:B,minutes:R,isRunning:Q,restart:K}=AP.useTimer({expiryTimestamp:new Date,autoStart:!1,onExpire:()=>m(!0)});Y.useEffect(()=>{!S||!A||Q||K(new Date(S+A),!0)},[A,Q,K,S]);const q=EP({receipt:O,route:I,eta:M}),W=O&&Db(O)||q.isCompleted;Y.useEffect(()=>{q.receipt&&C.setReceipt(q.receipt)},[C,q.receipt]);const G=Y.useMemo(()=>{if(!I)return!1;const ce=Ce.routes.get(I);return ce?ce.AUTOMATIC_DEPOSIT:!1},[I]),X=oP(I,E,T,f,l,x,c);Y.useEffect(()=>{const{receipt:ce}=C;if(ce)if(W)u||(d(!0),Ce.triggerEvent({type:"transfer.success",details:X}),G||Ce.triggerEvent({type:"transfer.redeem.success",details:X}),o(!1),a(""),L!=null&&L.sendTx&&lP(L==null?void 0:L.sendTx));else if(z)Ce.triggerEvent({type:"transfer.refunded",details:X});else if(Qm(ce)){const[Fe,pe]=t7(ce.error,X);a(Fe),Ce.triggerEvent({type:"transfer.error",details:X,error:pe}),console.error(`Transfer failed with error ${pe}: ${ce.error}`),o(!1)}else if(N){const[Fe,pe]=t7(N,X);a(Fe),Ce.triggerEvent({type:"transfer.redeem.error",details:X,error:pe}),console.error(`Error while manually redeeming: ${pe.type} - ${N}`),o(!1)}else U&&!G&&(L!=null&&L.sendTx)&&Rpe(L==null?void 0:L.sendTx,"isReadyToClaim",!0)},[O==null?void 0:O.state,W,z,U,N,u]);const ne=Lr(ce=>ce.wallet.receiving),te=Y.useMemo(()=>{const ce=S+A,Fe=Date.now();return ce>Fe?ce-Fe:0},[S,A,h,B]),V=Y.useMemo(()=>{const ce={text:"",align:"left"};let Fe;return typeof Ce.ui.pageHeader=="string"?Fe={...ce,text:Ce.ui.pageHeader}:Fe={...ce,...Ce.ui.pageHeader},j.jsx(u2,{title:Fe.text,align:Fe.align})},[]),oe=Y.useMemo(()=>{let ce="Transaction submitted";return W?ce="Transaction completed":z?ce="Transaction was refunded":k&&u1(I)?ce=`Ready to claim on ${l}`:F?ce="Transaction failed":w?ce="Transaction delayed":U&&!G&&(ce=`Ready to claim on ${l}`),j.jsx(hr,{children:j.jsx(ft,{"data-testid":"redeem-view-status-header",fontSize:18,children:ce})})},[W,z,k,I,F,w,U,G,l]),xe=Y.useMemo(()=>{if(h)return j.jsx(hr,{children:j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,children:"Wrapping up..."})});const ce=Q?aw(R,B):null;let Fe=j.jsx($n,{size:14});return A&&(Fe=Vpe(A)),j.jsxs(hr,{alignItems:"center",justifyContent:"center",children:[j.jsxs(ft,{color:t.palette.text.secondary,fontSize:14,children:["ETA ",Fe]}),j.jsx(ft,{fontSize:28,children:ce})]})},[A,h,Q,R,B,t.palette.text.secondary]),fe=Y.useMemo(()=>A?(A-te)/A*100:0,[A,te]),me=Y.useMemo(()=>j.jsxs(j.Fragment,{children:[j.jsx("svg",{width:0,height:0,children:j.jsx("defs",{children:j.jsxs("linearGradient",{id:"circularGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[j.jsx("stop",{offset:"0%",stopColor:t.palette.primary.main,stopOpacity:"1"}),j.jsx("stop",{offset:"100%",stopColor:t.palette.background.default,stopOpacity:"0.1"})]})})}),j.jsxs(ai,{sx:{position:"relative"},children:[j.jsx($n,{variant:"determinate",sx:ce=>({color:ce.palette.primary.main,opacity:.2,position:"absolute"}),size:140,thickness:2,value:100}),j.jsx($n,{variant:h?"indeterminate":"determinate",classes:{root:r.circularProgressRoot,circle:h?r.circularProgressCircleIndeterminite:r.circularProgressCircleDeterminite},disableShrink:h,size:140,thickness:2,value:fe})]}),j.jsx(ai,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:xe})]}),[r.circularProgressCircleDeterminite,r.circularProgressCircleIndeterminite,r.circularProgressRoot,xe,h,fe,t.palette.background.default,t.palette.primary.main]),Ze=Y.useMemo(()=>W?j.jsx(SP,{className:r.txStatusIcon,sx:{color:t.palette.primary.light}}):z||w?j.jsx(ame,{className:r.txStatusIcon,sx:{color:t.palette.warning.main}}):k&&u1(I)?j.jsx(KN,{className:r.txStatusIcon,sx:{color:t.palette.warning.light}}):F?j.jsx(sme,{className:r.txStatusIcon,sx:{color:t.palette.error.light}}):!G&&U?j.jsx(KN,{className:r.txStatusIcon,sx:{color:t.palette.warning.light}}):me,[W,z,w,k,I,F,G,U,r.txStatusIcon,t.palette.primary.light,t.palette.warning.main,t.palette.warning.light,t.palette.error.light,me]);Y.useEffect(()=>{let ce;if(C.receipt&&Gm(C.receipt)){o(!0);const pe=C.receipt.queueReleaseTime.getTime()-Date.now();ce=setTimeout(()=>{o(!1)},pe)}return()=>{ce&&clearTimeout(ce)}},[C.receipt]);const he=Y.useMemo(()=>{if(!s)return!1;if(D&&l==="Solana"&&ne.address&&ne.type==="Solana"&&ne.address!==s&&I&&["ManualTokenBridge","ManualCCTP"].includes(I)){const{address:we}=A5(g);return L3e(new ct(pn(we)?v3e:we.toString()),new ct(ne.address)).equals(new ct(s))?(a(""),!0):(a("Not connected to the receiving wallet"),!1)}const ce=ne.address.toLowerCase(),Fe=ne.currentAddress.toLowerCase(),pe=s.toLowerCase();return ce===Fe&&ce===pe},[ne,s,l,D,I,g]),Se=Y.useCallback(async()=>{if(o(!0),a(""),_(void 0),!I)throw new Error("Unknown route, can not claim");if(!C.receipt)throw new Error("No receipt found, can not claim");const ce={route:I,fromToken:Nf(Ce.tokens.mustGet(p)),toToken:Nf(Ce.tokens.mustGet(g)),fromChain:f,toChain:l};if(Ce.triggerEvent({type:"transfer.redeem.initiate",details:ce}),!he)throw a("Not connected to the receiving wallet"),new Error("Not connected to the receiving wallet");if(!Ce.chains[l])throw a("Your claim has failed, please try again"),new Error("invalid destination chain");const pe=C.route;try{if(!Tb(pe)&&!Ib(pe))throw new Error("Route is not manual or finalizable");const we=await th.fromChain(l,ne.address,{},qn.RECEIVING),gt=w&&Ib(pe)?pe.finalize(we,C.receipt):!w&&Tb(pe)?pe.complete(we,C.receipt):void 0;gt&&(Ce.triggerEvent({type:"transfer.redeem.start",details:X}),await gt)}catch(we){_(we),o(!1)}},[X,f,he,w,g,ne.address,C.receipt,C.route,I,l,p]),Ke=Y.useMemo(()=>i?j.jsx(Gl,{disabled:!0,variant:"primary",className:r.actionButton,children:j.jsxs(ft,{display:"flex",alignItems:"center",gap:1,textTransform:"none",children:[j.jsx($n,{size:16,sx:{color:t.palette.primary.contrastText}}),"Transfer in progress"]})}):k&&I==="CCTPExecutorRoute"&&y?j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>{e($9()),e(ys("search")),e(yU({txHash:y,chain:f}))},children:j.jsx(ft,{textTransform:"none",children:"Claim tokens to complete transfer"})}):w||!G&&U||u1(I)&&k?he?j.jsx(Gl,{className:Ms([r.actionButton,r.claimButton]),variant:n?"error":"primary",onClick:Se,children:j.jsx(ft,{textTransform:"none",children:"Claim tokens to complete transfer"})}):j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>v(!0),children:j.jsx(ft,{textTransform:"none",children:"Connect receiving wallet"})}):j.jsxs(j.Fragment,{children:[j.jsx(Gl,{variant:"primary",className:r.actionButton,onClick:()=>{e(ys("bridge"))},children:j.jsx(ft,{textTransform:"none",children:"Start a new transaction"})}),!W&&j.jsx(ft,{fontSize:"12px",sx:{margin:"auto",opacity:.6},children:"Your current transaction will continue to process in the background."})]}),[i,w,G,U,k,I,y,r.actionButton,r.claimButton,W,t.palette.primary.contrastText,he,n,Se,e,f]),ye=Y.useMemo(()=>{var gt;if(!C.receipt||!Gm(C.receipt))return null;const{to:ce,queueReleaseTime:Fe}=C.receipt,pe=((gt=Ce.tokens.get(g))==null?void 0:gt.symbol)||"",we=Fe.toLocaleString();return j.jsx(ft,{color:t.palette.text.secondary,fontSize:14,className:r.delayText,children:`Your transfer to ${ce} is delayed due to rate limits configured by ${pe}. After
|
|
343
343
|
the delay ends on ${we}, you will need to tap "Claim" to
|
|
344
|
-
complete your transfer.`})},[r.delayText,g,C.receipt,t.palette.text.secondary]);return j.jsxs("div",{className:Ms([r.container,r.spacer]),"data-testid":"redeem-view",children:[V,j.jsx(hr,{className:r.backButton,children:j.jsx(i2,{sx:{padding:0},onClick:()=>e(ys("bridge")),children:j.jsx(tme,{sx:{fontSize:"32px"}})})}),oe,j.jsx(ai,{sx:{position:"relative",display:"inline-flex",alignItems:"center",marginBottom:"24px",height:"140px"},children:Ze}),j.jsx(ime,{}),Ke,ye,j.jsx(d2,{error:!0,content:n,show:!!n,className:r.errorBox}),j.jsx(ow,{color:t.palette.text.primary}),j.jsx(cw,{open:b,type:qn.RECEIVING,onClose:()=>{v(!1)}})]})};class D7 extends Y.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const r={get passive(){t=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const r=this.props.getScrollParent&&this.props.getScrollParent();return r??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let r=window;this.props.useWindow===!1&&(r=t),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,r=window,n=this.getParentElement(t);let a;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,o=r.pageYOffset!==void 0?r.pageYOffset:i.scrollTop;this.props.isReverse?a=o:a=this.calculateOffset(t,o)}else this.props.isReverse?a=n.scrollTop:a=t.scrollHeight-n.scrollTop-n.clientHeight;a<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,r){return t?this.calculateTopPosition(t)+(t.offsetHeight-r-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:r,element:n,hasMore:a,initialLoad:i,isReverse:o,loader:u,loadMore:d,pageStart:h,ref:m,threshold:b,useCapture:v,useWindow:C,getScrollParent:E,...T}=t;T.ref=S=>{this.scrollComponent=S,m&&m(S)};const I=[r];return a&&(u?o?I.unshift(u):I.push(u):this.defaultLoader&&(o?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),Vn.createElement(n,T,I)}}Ye(D7,"propTypes",{children:Aa.node.isRequired,element:Aa.node,hasMore:Aa.bool,initialLoad:Aa.bool,isReverse:Aa.bool,loader:Aa.node,loadMore:Aa.func.isRequired,pageStart:Aa.number,ref:Aa.func,getScrollParent:Aa.func,threshold:Aa.number,useCapture:Aa.bool,useWindow:Aa.bool}),Ye(D7,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const lme=cn(j.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHoriz"),Ry=8,ume=e=>{const[t,r]=Y.useState(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!0),{getOrFetchToken:h}=Ys(),{address:m,page:b=0,pageSize:v=30}=e,C=Y.useCallback(async O=>{var q,W,G,X,ne;const{content:U,data:z,sourceChain:F,targetChain:k}=O,{standarizedProperties:w,payload:s}=U||{},l=w.fromChain||(F==null?void 0:F.chainId),f=w.toChain||(k==null?void 0:k.chainId),p=w.tokenChain,g=oo(l);if(!g)return;const x=oo(p||f);if(!x)return;let A;try{A=await h(ar.tokenId(x,w.tokenAddress))}catch{}if(!A){const te=(z==null?void 0:z.symbol)&&Ce.tokens.findBySymbol(x,z.symbol);te&&(A=te)}A||console.warn("Can't find token",O);const y=oo(f);let c,M,B;if(z&&z.tokenAmount?c=z.tokenAmount:w.amount&&(c=mn({amount:w.amount,decimals:w.normalizedDecimals??Ry},0)),w.amount){const te=w.fee||s.fee||((q=s.parsedPayload)==null?void 0:q.feeAmount)||((W=s.parsedPayload)==null?void 0:W.relayerFee)||"0",V=BigInt(w.amount)-BigInt(te);V>0&&(M=mn({amount:V.toString(),decimals:Ry},0))}z&&z.usdAmount&&(B=Number(z.usdAmount));const R=(G=F.transaction)==null?void 0:G.txHash,Q=((X=F==null?void 0:F.status)==null?void 0:X.toLowerCase())==="confirmed"&&((ne=k==null?void 0:k.status)==null?void 0:ne.toLowerCase())!=="completed";return{txHash:R,sender:w.fromAddress||F.from,recipient:w.toAddress,amount:c,amountUsd:B,receiveAmount:M,fromChain:g,fromToken:A,toChain:y,toToken:A,senderTimestamp:F==null?void 0:F.timestamp,receiverTimestamp:k==null?void 0:k.timestamp,explorerLink:`${xz}tx/${R}${Ce.isMainnet?"":"?network=TESTNET"}`,inProgress:Q}},[h]),E=Y.useCallback(O=>C(O),[C]),T=Y.useCallback(O=>C(O),[C]),I=Y.useCallback(O=>C(O),[C]),S=Y.useCallback(O=>C(O),[C]),D=Y.useCallback(async O=>{var A;const U=await C(O);if(!U)return;const z=O.content.payload.parsedPayload,{finalTokenAddress:F,flagSet:k,minAmountFinish:w,recipientAddress:s,relayerFee:l}=z,f=Ce.tokens.get(oo(O.content.standarizedProperties.tokenChain),O.content.standarizedProperties.tokenAddress);if(!f)return;const p=(A=k.flags)!=null&&A.shouldWrapNative?BI(U.fromChain):f,g=Ce.tokens.get(ar.tokenId(U.toChain,xa(U.toChain,F).toString()));if(!g)return;const x=BigInt(w)-BigInt(l);return U.fromToken=p,U.toToken=k.flags.shouldUnwrapNative?BI(U.toChain):g,U.receiveAmount=x>0?kpe(mn(Yr(x,g.decimals),0),Ry):"",U.recipient=xa(U.toChain,s).toString(),U},[C]),L=Y.useCallback(O=>C(O),[C]),N=Y.useMemo(()=>({PORTAL_TOKEN_BRIDGE:E,GENERIC_RELAYER:T,NATIVE_TOKEN_TRANSFER:I,CCTP_WORMHOLE_INTEGRATION:S,ETH_BRIDGE:D,USDT_BRIDGE:D,FAST_TRANSFERS:L,WORMHOLE_LIQUIDITY_LAYER:L}),[S,I,D,E,L,T]),_=Y.useCallback(async O=>(await Promise.all(O.map(async U=>{var F,k;const z=((k=(F=U.content)==null?void 0:F.standarizedProperties)==null?void 0:k.appIds)||[];if(z.includes("ETH_BRIDGE")||z.includes("USDT_BRIDGE"))return D(U);for(const w of z){const s=N[w];if(s)return s(U)}}))).filter(U=>!!U),[N,D]);return Y.useEffect(()=>{let O=!1;const U=new Headers({accept:"application/json"});return(async()=>{o(!0);try{const F=await fetch(`${Ce.wormholeApi}api/v1/operations?address=${m}&page=${b}&pageSize=${v}`,{headers:U});if(F.status!==200)r([]),d(!1),o(!1);else{const k=await F.json();if(!O){const w=k==null?void 0:k.operations;if(w){const s=await _(w);r(l=>{if(l&&l.length>0){const f=new Set;return l.forEach(p=>{p!=null&&p.txHash&&f.add(p.txHash)}),l.concat(s.filter(p=>!f.has(p.txHash)))}return s})}(w==null?void 0:w.length)<v&&d(!1)}}}catch(F){O||(d(!1),a(`Error fetching transaction history from WormholeScan: ${F}`))}finally{o(!1)}})(),()=>{O=!0}},[m,b,v,_]),{transactions:t,error:n,isFetching:i,hasMore:u}},fme=e=>{const[t,r]=Y.useState(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!0),{address:h,page:m=0,pageSize:b=30}=e,v=E=>{const{fromAmount:T,sourceChain:I,destChain:S,fromTokenPrice:D,fromTokenAddress:L,initiatedAt:N,toAmount:_,toTokenAddress:O,sourceTxHash:U,trader:z,destAddress:F,clientStatus:k}=E,w=oo(I),s=oo(S);if(!w||!s)return;let l,f;try{l=Ce.tokens.get(XN(w,L)),f=Ce.tokens.get(XN(s,O))}catch(A){console.error(A);return}if(!l){const A=Ce.tokens.findBySymbol(w,E.fromTokenSymbol);A&&(l=A)}if(!f){const A=Ce.tokens.findBySymbol(s,E.toTokenSymbol);A&&(f=A)}if(!l||!f){console.error("Cant find tokenz");return}const p=k==null?void 0:k.toLowerCase(),g=p!=="completed"&&p!=="refunded";return{txHash:U,sender:z,amount:T,amountUsd:Number(T)*D,recipient:F,fromChain:w,fromToken:l,toChain:s,toToken:f,receiveAmount:_,senderTimestamp:N,explorerLink:`https://explorer.mayan.finance/swap/${U}`,inProgress:g}},C=Y.useCallback(E=>E.map(T=>v(T)).filter(T=>!!T),[]);return Y.useEffect(()=>{let E=!1;return(async()=>{o(!0);const I=b,S=I*m;try{const D=await fetch(`${Ce.mayanApi}/v3/swaps?trader=${h}&offset=${S}&limit=${I}`);if(D.status!==200)r([]),d(!1),o(!1);else{const L=await D.json();if(!E){const N=L==null?void 0:L.data;N&&r(_=>{const O=C(N);if(_&&_.length>0){const U=new Set;return _.forEach(z=>{z!=null&&z.txHash&&U.add(z.txHash)}),_.concat(O.filter(z=>!U.has(z.txHash)))}return O}),(N==null?void 0:N.length)<I&&d(!1)}}}catch(D){E||(d(!1),a(`Error fetching transaction history from Mayan: ${D}`))}finally{o(!1)}})(),()=>{E=!0}},[h,m,b,C]),{transactions:t,error:n,isFetching:i,hasMore:u}};function XN(e,t){if(t==="0x0000000000000000000000000000000000000000")return{chain:e,address:"native"};const r=xa(e,t);return{chain:e,address:r}}const dme=e=>{const{page:t=0,pageSize:r=30}=e||{},[n,a]=Y.useState(0),[i,o]=Y.useState(0),[u,d]=Y.useState(t),[h,m]=Y.useState(t),[b,v]=Y.useState(),{address:C}=Lr(F=>F.wallet.sending),{transactions:E,isFetching:T,hasMore:I,error:S}=ume({address:C,page:h,pageSize:r}),{transactions:D,isFetching:L,hasMore:N,error:_}=fme({address:C,page:u,pageSize:r}),O=Y.useCallback((F,k)=>F?F.concat(k):k,[]),U=Y.useCallback(F=>{E&&F<=(E==null?void 0:E.length)&&o(F)},[E]),z=Y.useCallback(F=>{D&&F<=(D==null?void 0:D.length)&&a(F)},[D]);return Y.useEffect(()=>{N&&u!==t&&d(t),I&&h!==t&&m(t)},[N,I,u,t,h]),Y.useEffect(()=>{if(!E||!D)return;const F=[];let k=i,w=n;for(let f=0;f<r;f++){if(k===E.length&&I||w===D.length&&N){U(k),z(w),v(x=>O(x,F));return}const p=E[k],g=D[w];if(!p&&!g){U(k),z(w),v(x=>O(x,F));return}if(!g)F.push(p),k+=1;else if(!p)F.push(g),w+=1;else{const x=new Date(p.senderTimestamp),A=new Date(g.senderTimestamp);x>A?(F.push(p),k+=1):(F.push(g),w+=1)}}U(k),z(w);const s=new Set,l=O(b,F).filter(f=>f.txHash&&s.has(f.txHash)?!1:(s.add(f.txHash),!0));v(f=>l)},[E,D]),{transactions:b,error:[S,_],isFetching:T||L,hasMore:I||N}},hme=gr()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",borderRadius:"8px",border:`1px solid ${e.palette.input.border}`},cardHeader:{paddingBottom:0}})),pme=e=>{const{classes:t}=hme(),r=on(),{txHash:n,amount:a,amountUsd:i,fromChain:o,fromToken:u,toChain:d,toToken:h,receiveAmount:m,senderTimestamp:b,explorerLink:v}=e.data,C=Y.useMemo(()=>j.jsx(ft,{component:"span",padding:"0px 8px",children:"·"}),[]),{getTokenPrice:E,lastTokenPriceUpdate:T}=Ys(),I=Y.useMemo(()=>{const _=Ce.chains[o];return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:_,token:u}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[a," ",u==null?void 0:u.symbol]}),j.jsxs(ft,{color:r.palette.text.secondary,fontSize:14,children:[i?j.jsxs(j.Fragment,{children:[iU(i),C]}):null,_==null?void 0:_.displayName]})]})]})},[a,i,o,C,r.palette.text.secondary,u]),S=Y.useMemo(()=>{const _=Ce.chains[d],O=h,U=m?sc(E,parseFloat(m),O):0,z=U?j.jsxs(j.Fragment,{children:[U,C]}):null;return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:_,token:O}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[m," ",O==null?void 0:O.symbol]}),j.jsxs(ft,{color:r.palette.text.secondary,fontSize:14,children:[z,_==null?void 0:_.displayName]})]})]})},[T,d,h,m,E,C,r.palette.text.secondary]),D=Y.useMemo(()=>j.jsx(hr,{height:"24px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),L=Y.useMemo(()=>{if(!b)return"Unknown time";const _=new Date(b),O=Date.now()-_.getTime();return O<1e3*60*60*24?Y0e(O):`${new Intl.DateTimeFormat("en-US",{dateStyle:"short",timeStyle:"short"}).format(_)}`},[b]),N=Y.useMemo(()=>j.jsx(u3,{url:l1(o,n,"tx"),text:R0e(n,4,4)}),[o,n]);return j.jsx("div",{className:t.container,children:j.jsx(Cc,{className:t.card,children:j.jsxs(Zv,{disableTouchRipple:!0,onClick:()=>{window.open(v,"_blank")},children:[j.jsx(WU,{className:t.cardHeader,title:j.jsxs(ft,{justifyContent:"space-between",color:r.palette.text.secondary,display:"flex",children:[j.jsxs("span",{children:["Transaction #",N]}),j.jsx("span",{children:L})]})}),j.jsxs(Sl,{children:[I,D,S]})]})})})},mme=gr()(e=>({container:{margin:"auto",maxWidth:"420px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},infiniteScroller:{height:"640px",overflow:"auto",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"},spacer:{display:"flex",flexDirection:"column",gap:"24px",alignItems:"center",justifyContent:"center",width:"100%"}})),gme=()=>{const e=oi(),{classes:t}=mme(),r=on(),[n,a]=Y.useState(0),{transactions:i,isFetching:o,hasMore:u}=dme({page:n}),d=Lr(v=>v.wallet.sending),h=Y.useMemo(()=>{const v={text:"",align:"left"};let C;return typeof Ce.ui.pageHeader=="string"?C={...v,text:Ce.ui.pageHeader}:C={...v,...Ce.ui.pageHeader},j.jsx(u2,{title:C.text,align:C.align})},[]),m=Y.useMemo(()=>j.jsxs("div",{className:t.txHistoryHeader,children:[j.jsx(jv,{align:"left",size:18,text:"Transaction history"}),j.jsx(i2,{onClick:()=>e(ys("bridge")),children:j.jsx(lme,{})})]}),[t.txHistoryHeader,e]),b=Y.useMemo(()=>{if(i){if(i.length===0)return j.jsx(ft,{color:r.palette.text.secondary,textAlign:"center",children:`No transactions found for the wallet ${x0(d.address)}`})}else return j.jsx(j.Fragment,{});return j.jsx("div",{className:Ms([t.infiniteScroller]),children:j.jsx(D7,{hasMore:u,loadMore:v=>a(v),useWindow:!1,style:{scrollbarWidth:"thin"},children:j.jsx("div",{className:Ms([t.spacer]),children:i.map((v,C)=>j.jsx(pme,{data:v},C))})})})},[t.infiniteScroller,t.spacer,u,d.address,r.palette.text.secondary,i]);return j.jsxs("div",{className:Ms([t.container,t.spacer]),children:[h,m,b,(!i||o)&&j.jsx($n,{}),j.jsx(ow,{color:r.palette.text.primary})]})},yme=()=>j.jsxs("svg",{width:"0",height:"0",viewBox:"0 0 0 0",children:[j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"icons_tokens_sol_linearGradient_0",x1:"4.168",y1:"85.832",x2:"91.832",y2:"-1.832",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#9945FF"}),j.jsx("stop",{offset:".2",stopColor:"#7962E7"}),j.jsx("stop",{offset:"1",stopColor:"#00D18C"})]}),j.jsx("clipPath",{id:"icons_tokens_sol_clipPath_0",children:j.jsx("path",{fill:"#fff",d:"M0 0h96v84H0z"})})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_chains_apt_clipPath_0",children:j.jsx("rect",{width:"36",height:"36",fill:"white"})})}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#81FFFF"}),j.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0002E9"}),j.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:j.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_0",x1:"21.9203",y1:"4.40983",x2:"9.65997",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_1",x1:"21.9203",y1:"4.40982",x2:"9.65999",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_2",x1:"21.9203",y1:"4.40983",x2:"9.66001",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_chains_sui_clipPath_0",children:j.jsx("rect",{width:"18",height:"24",fill:"white",transform:"translate(9 6)"})})}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_uni_radialGradient_0",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.4297 18) rotate(90) scale(18 17.93)",children:[j.jsx("stop",{stopColor:"#FC74FE"}),j.jsx("stop",{offset:"1",stopColor:"#F50DB4"})]}),j.jsx("clipPath",{id:"icons_chains_uni_clipPath_0",children:j.jsx("rect",{width:"36",height:"36",fill:"white",transform:"translate(0.429688)"})})]}),j.jsx("defs",{children:j.jsxs("linearGradient",{id:"icons_chains_xlayer_linearGradient_0",x1:"34",y1:"35.4996",x2:"1.5",y2:"3.49957",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#040404"}),j.jsx("stop",{offset:"1",stopColor:"#282828"})]})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_busd_clipPath_0",children:j.jsx("rect",{width:"199.401",height:"200",fill:"white"})})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_dai_clipPath_0",children:j.jsx("rect",{width:"200",height:"200",fill:"white"})})}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_0",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0082FA"}),j.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]}),j.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_1",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0082FA"}),j.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]})]}),j.jsxs("defs",{children:[j.jsxs("filter",{id:"icons_tokens_ntt_filter_0",x:"36.0726",y:"19.3241",width:"12.6301",height:"12.6306",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[j.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),j.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),j.jsx("feGaussianBlur",{stdDeviation:"1.18048",result:"effect1_foregroundBlur_4160_67832"})]}),j.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_0",x1:"76.3139",y1:"25.3915",x2:"10.1678",y2:"25.3915",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[j.jsx("stop",{stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"0.5142",stopColor:"white"}),j.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_1",x1:"42.748",y1:"1.55322",x2:"42.748",y2:"50.4438",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[j.jsx("stop",{stopColor:"white"}),j.jsx("stop",{offset:"0.4519",stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"0.5397",stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"1",stopColor:"white"})]})]}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#81FFFF"}),j.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0002E9"}),j.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:j.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_usdt_clipPath_0",children:j.jsx("rect",{width:"229.912",height:"200",fill:"white"})})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_wbtc_clipPath_0",children:j.jsx("rect",{width:"200",height:"200.022",fill:"white"})})})]}),bme=gr()(e=>({appContent:{textAlign:"left",margin:"40px auto",maxWidth:"900px",width:"100%",display:"flex",justifyContent:"center",padding:"4px",fontFamily:e.typography.fontFamily,[e.breakpoints.down("sm")]:{margin:"0 auto"}}}));function Mme(e){const{classes:t}=bme(),r=oi(),n=Y.useContext(Q0),a=Lr(m=>m.router.route),i=Y.useRef(!1),o=Y.useRef(!0),u=Y.useCallback(m=>{aU(m)||J0e(m),i.current=!0,Ce.triggerEvent({type:"config",config:m})},[]);i.current||(e.config&&u(e.config),a!=="bridge"&&r(ys("bridge"))),Y.useEffect(()=>{o.current?(o.current=!1,Ce.triggerEvent({type:"load",config:e.config})):e.config&&(u(e.config),r(RI()))},[e.config]);const d=H0e(a),{hasExternalSearch:h}=ppe();return Y.useEffect(()=>{const m="redeem",b="bridge";d===m&&a!==m&&(r($9()),r(I0e()),n.clear()),a===b&&d!==b&&d!=="history"&&r(RI())},[a,d,r]),Y.useEffect(()=>{h&&(r($9()),r(ys("search")))},[h,r]),j.jsxs("div",{className:t.appContent,children:[j.jsx(yme,{}),a==="bridge"&&j.jsx(eme,{}),a==="redeem"&&j.jsx(cme,{}),a==="search"&&j.jsx(hpe,{}),a==="history"&&j.jsx(gme,{}),a==="terms"&&j.jsx(a3e,{})]})}const xme={mode:"light",primary:{main:"#9892e6"},secondary:{main:"#cccccc"},divider:"#a0a2a9",background:{default:"transparent"},text:{primary:U4[900],secondary:"#7d7d7d"},error:{main:"#f44336"},info:{main:"#A4C8F3"},success:{main:"#4caf50"},warning:{main:"#ff9800"},button:{primary:"#ffffff",primaryText:U4[900],disabled:"#c8cad1",disabledText:U4[800],action:"#F3A01E",actionText:"#000000",hover:"#b7b9c1"},options:{hover:"#f9f9fb",select:"#F0F0F5"},card:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},popover:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},input:{background:"#f9f9f9",border:"#DEE0E3",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#000000"},vme={mode:"dark",primary:{main:"#C1BBF6"},secondary:{main:"#667085"},divider:"#ffffff"+la[20],background:{default:"transparent"},text:{primary:"#ffffff",secondary:"#79859e"},info:{main:"#304C70"},error:{main:"#F04438"},success:{main:"#12B76A"},warning:{main:"#F79009"},button:{primary:"#ffffff"+la[10],primaryText:"#ffffff",disabled:"#ffffff"+la[7],disabledText:"#ffffff"+la[40],action:"#ffffff",actionText:"#000000",hover:"#ffffff"+la[7]},options:{hover:"#ffffff"+la[7],select:"#ffffff"+la[10]},card:{background:"#ffffff"+la[5],secondary:"#ffffff"+la[5],elevation:"none"},popover:{background:"#1b2033",secondary:"#ffffff"+la[5],elevation:"none"},input:{background:"#1a1928",border:"#1e1f35",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#ffffff"},wme=e=>{const r=e.mode==="light"?xme:vme,n=Object.assign({},r);if(e){e.background&&(n.background={default:e.background}),e.input&&(n.input={...n.input,background:e.input,border:e.secondary||n.secondary.main}),e.inputFillTreatment!==void 0&&(n.input.fillTreatment=e.inputFillTreatment),e.primary&&(n.primary={main:e.primary}),e.secondary&&(n.secondary={main:e.secondary}),e.text&&(n.text.primary=e.text),e.textSecondary&&(n.text.secondary=e.textSecondary),e.error&&(n.error={main:e.error}),e.success&&(n.success={main:e.success});const a=_n(e.primary||n.primary.main);let i,o,u,d,h,m;a.isDark()?(i=a.lightness(95).hex(),o=a.alpha(.4).hexa(),u=a.lightness(95).alpha(.9).hexa(),d=a.darken(.15).hex(),h=a.lightness(80).hex(),m=a.darken(.05).hex()):(i=a.lightness(5).hex(),o=a.alpha(.4).hexa(),u=a.lightness(5).alpha(.9).hexa(),d=a.lighten(.05).hex(),h=a.lightness(0).hex(),m=a.lighten(.05).hex()),n.button={primary:a.hex(),primaryText:i,disabled:o,disabledText:u,action:d,actionText:h,hover:m}}return B6({components:{MuiPaper:{styleOverrides:{root:{boxShadow:"none"}}},MuiCollapse:{styleOverrides:{root:{width:"100%"}}}},breakpoints:{values:{xs:300,sm:500,md:650,lg:900,xl:1200}},typography:{fontFamily:e.font??'"Inter", sans-serif'},palette:{...n}})};class DP extends Vn.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?j.jsx(Cc,{children:j.jsx(ft,{variant:"h5",style:{textAlign:"center",marginTop:24,marginBottom:24},children:"An unexpected error has occurred. Please refresh the page."})}):this.props.children}}function Cme({config:e,theme:t}){Y.useEffect(()=>{globalThis.dispatchReduxAction||(window.dispatchReduxAction=n=>{WI.dispatch(n)})},[]);const r=Y.useMemo(()=>wme(t??{mode:"dark"}),[t]);return j.jsx(Zq,{store:WI,children:j.jsx(lV,{theme:r,children:j.jsx(iV,{enableColorScheme:!0,children:j.jsx(DP,{children:j.jsx(Ape,{children:j.jsx(b3e,{children:j.jsx(Mme,{config:e})})})})})})})}const TP=document.getElementById("wormhole-connect");if(!TP)throw new Error('Could not find an element with id "wormhole-connect". Please add one to use the Connect widget.');const Ame=window.__CONNECT_CONFIG,Eme=window.__CONNECT_THEME,Sme=OY.createRoot(TP);Sme.render(j.jsx(Vn.StrictMode,{children:j.jsx(DP,{children:j.jsx(Cme,{config:Ame,theme:Eme})})}));export{p8e as $,Qb as A,II as B,v5 as C,g8e as D,Tre as E,rO as F,Ce as G,n7 as H,ov as I,Yx as J,Wu as K,Fr as L,Ws as M,f8e as N,h8e as O,ct as P,hv as Q,Mv as R,wge as S,nn as T,aU as U,pv as V,t0e as W,hle as X,fle as Y,Gse as Z,ja as _,L0 as a,Ub as a$,Cie as a0,nO as a1,Vme as a2,kr as a3,m8e as a4,l5 as a5,sae as a6,Uge as a7,Wge as a8,lp as a9,CO as aA,XT as aB,vO as aC,Oge as aD,Jie as aE,Rge as aF,Yge as aG,Hge as aH,Pge as aI,Bge as aJ,zge as aK,$ie as aL,Sge as aM,Dge as aN,_ge as aO,Oae as aP,Kb as aQ,HR as aR,t8e as aS,Ime as aT,Nme as aU,WK as aV,uv as aW,K1 as aX,Xr as aY,mO as aZ,Cge as a_,eae as aa,Xh as ab,jge as ac,Ege as ad,Zge as ae,al as af,Tge as ag,Nge as ah,qie as ai,kge as aj,Lge as ak,_O as al,ore as am,Fz as an,ar as ao,$ge as ap,pn as aq,$K as ar,Hb as as,kme as at,y0 as au,rge as av,vge as aw,Kie as ax,iae as ay,Fge as az,vt as b,W1 as b$,Rh as b0,gx as b1,Kme as b2,Mn as b3,b0 as b4,hf as b5,Pme as b6,Wme as b7,c_ as b8,$me as b9,CJ as bA,AJ as bB,i8e as bC,n8e as bD,yle as bE,r8e as bF,Mle as bG,ble as bH,gle as bI,s8e as bJ,wv as bK,xle as bL,ZR as bM,GR as bN,a8e as bO,wle as bP,o8e as bQ,P6 as bR,l8e as bS,Dle as bT,J1 as bU,Gme as bV,_h as bW,CX as bX,Ume as bY,NX as bZ,px as b_,Z6 as ba,Vz as bb,Rme as bc,gl as bd,Lm as be,jme as bf,SX as bg,gc as bh,Qz as bi,e_ as bj,t0 as bk,Jz as bl,vJ as bm,op as bn,y_ as bo,mJ as bp,Wn as bq,Uh as br,G6 as bs,iJ as bt,bx as bu,pJ as bv,Jme as bw,aE as bx,Xme as by,qz as bz,Ut as c,e8e as c$,ff as c0,$A as c1,Hz as c2,_X as c3,qme as c4,Qme as c5,Ro as c6,iu as c7,nu as c8,R2 as c9,ki as cA,Nm as cB,W6 as cC,nge as cD,fn as cE,Qge as cF,Gge as cG,ts as cH,Pu as cI,di as cJ,SD as cK,Vh as cL,Q4 as cM,xf as cN,no as cO,Ta as cP,ose as cQ,is as cR,rn as cS,ji as cT,lse as cU,ii as cV,wr as cW,mc as cX,Hu as cY,ege as cZ,poe as c_,O2 as ca,zX as cb,wX as cc,Yme as cd,Hme as ce,kh as cf,Qi as cg,tge as ch,xa as ci,YP as cj,zt as ck,kt as cl,Ei as cm,o3 as cn,mr as co,KR as cp,H6 as cq,q4 as cr,wE as cs,qge as ct,zh as cu,yb as cv,ZK as cw,Vge as cx,sX as cy,pf as cz,Zh as d,Ii as d0,cb as d1,pc as d2,ma as d3,i3 as d4,Age as d5,Wie as d6,VJ as d7,Lme as d8,S_ as d9,XJ as da,E_ as db,Kt as dc,Cv as dd,u8e as de,Tle as df,c8e as dg,Ale as dh,o1 as di,Zf as e,Je as f,mF as g,zb as h,Xt as i,Ya as j,jp as k,Ba as l,Hn as m,Ige as n,$T as o,r0 as p,yc as q,Yh as r,Nx as s,Jf as t,np as u,Jr as v,r0e as w,d8e as x,eh as y,c5 as z};
|
|
344
|
+
complete your transfer.`})},[r.delayText,g,C.receipt,t.palette.text.secondary]);return j.jsxs("div",{className:Ms([r.container,r.spacer]),"data-testid":"redeem-view",children:[V,j.jsx(hr,{className:r.backButton,children:j.jsx(i2,{sx:{padding:0},onClick:()=>e(ys("bridge")),children:j.jsx(tme,{sx:{fontSize:"32px"}})})}),oe,j.jsx(ai,{sx:{position:"relative",display:"inline-flex",alignItems:"center",marginBottom:"24px",height:"140px"},children:Ze}),j.jsx(ime,{}),Ke,ye,j.jsx(d2,{error:!0,content:n,show:!!n,className:r.errorBox}),j.jsx(ow,{color:t.palette.text.primary}),j.jsx(cw,{open:b,type:qn.RECEIVING,onClose:()=>{v(!1)}})]})};class D7 extends Y.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const r={get passive(){t=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const r=this.props.getScrollParent&&this.props.getScrollParent();return r??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let r=window;this.props.useWindow===!1&&(r=t),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,r=window,n=this.getParentElement(t);let a;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,o=r.pageYOffset!==void 0?r.pageYOffset:i.scrollTop;this.props.isReverse?a=o:a=this.calculateOffset(t,o)}else this.props.isReverse?a=n.scrollTop:a=t.scrollHeight-n.scrollTop-n.clientHeight;a<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,r){return t?this.calculateTopPosition(t)+(t.offsetHeight-r-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:r,element:n,hasMore:a,initialLoad:i,isReverse:o,loader:u,loadMore:d,pageStart:h,ref:m,threshold:b,useCapture:v,useWindow:C,getScrollParent:E,...T}=t;T.ref=S=>{this.scrollComponent=S,m&&m(S)};const I=[r];return a&&(u?o?I.unshift(u):I.push(u):this.defaultLoader&&(o?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),Vn.createElement(n,T,I)}}Ye(D7,"propTypes",{children:Aa.node.isRequired,element:Aa.node,hasMore:Aa.bool,initialLoad:Aa.bool,isReverse:Aa.bool,loader:Aa.node,loadMore:Aa.func.isRequired,pageStart:Aa.number,ref:Aa.func,getScrollParent:Aa.func,threshold:Aa.number,useCapture:Aa.bool,useWindow:Aa.bool}),Ye(D7,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const lme=cn(j.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHoriz"),Ry=8,ume=e=>{const[t,r]=Y.useState(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!0),{getOrFetchToken:h}=Ys(),{address:m,page:b=0,pageSize:v=30}=e,C=Y.useCallback(async O=>{var q,W,G,X,ne;const{content:U,data:z,sourceChain:F,targetChain:k}=O,{standarizedProperties:w,payload:s}=U||{},l=w.fromChain||(F==null?void 0:F.chainId),f=w.toChain||(k==null?void 0:k.chainId),p=w.tokenChain,g=oo(l);if(!g)return;const x=oo(p||f);if(!x)return;let A;try{A=await h(ar.tokenId(x,w.tokenAddress))}catch{}if(!A){const te=(z==null?void 0:z.symbol)&&Ce.tokens.findBySymbol(x,z.symbol);te&&(A=te)}A||console.warn("Can't find token",O);const y=oo(f);let c,M,B;if(z&&z.tokenAmount?c=z.tokenAmount:w.amount&&(c=mn({amount:w.amount,decimals:w.normalizedDecimals??Ry},0)),w.amount){const te=w.fee||s.fee||((q=s.parsedPayload)==null?void 0:q.feeAmount)||((W=s.parsedPayload)==null?void 0:W.relayerFee)||"0",V=BigInt(w.amount)-BigInt(te);V>0&&(M=mn({amount:V.toString(),decimals:Ry},0))}z&&z.usdAmount&&(B=Number(z.usdAmount));const R=(G=F.transaction)==null?void 0:G.txHash,Q=((X=F==null?void 0:F.status)==null?void 0:X.toLowerCase())==="confirmed"&&((ne=k==null?void 0:k.status)==null?void 0:ne.toLowerCase())!=="completed";return{txHash:R,sender:w.fromAddress||F.from,recipient:w.toAddress,amount:c,amountUsd:B,receiveAmount:M,fromChain:g,fromToken:A,toChain:y,toToken:A,senderTimestamp:F==null?void 0:F.timestamp,receiverTimestamp:k==null?void 0:k.timestamp,explorerLink:`${xz}tx/${R}${Ce.isMainnet?"":"?network=TESTNET"}`,inProgress:Q}},[h]),E=Y.useCallback(O=>C(O),[C]),T=Y.useCallback(O=>C(O),[C]),I=Y.useCallback(O=>C(O),[C]),S=Y.useCallback(O=>C(O),[C]),D=Y.useCallback(async O=>{var A;const U=await C(O);if(!U)return;const z=O.content.payload.parsedPayload,{finalTokenAddress:F,flagSet:k,minAmountFinish:w,recipientAddress:s,relayerFee:l}=z,f=Ce.tokens.get(oo(O.content.standarizedProperties.tokenChain),O.content.standarizedProperties.tokenAddress);if(!f)return;const p=(A=k.flags)!=null&&A.shouldWrapNative?BI(U.fromChain):f,g=Ce.tokens.get(ar.tokenId(U.toChain,xa(U.toChain,F).toString()));if(!g)return;const x=BigInt(w)-BigInt(l);return U.fromToken=p,U.toToken=k.flags.shouldUnwrapNative?BI(U.toChain):g,U.receiveAmount=x>0?kpe(mn(Yr(x,g.decimals),0),Ry):"",U.recipient=xa(U.toChain,s).toString(),U},[C]),L=Y.useCallback(O=>C(O),[C]),N=Y.useMemo(()=>({PORTAL_TOKEN_BRIDGE:E,GENERIC_RELAYER:T,NATIVE_TOKEN_TRANSFER:I,CCTP_WORMHOLE_INTEGRATION:S,ETH_BRIDGE:D,USDT_BRIDGE:D,FAST_TRANSFERS:L,WORMHOLE_LIQUIDITY_LAYER:L}),[S,I,D,E,L,T]),_=Y.useCallback(async O=>(await Promise.all(O.map(async U=>{var F,k;const z=((k=(F=U.content)==null?void 0:F.standarizedProperties)==null?void 0:k.appIds)||[];if(z.includes("ETH_BRIDGE")||z.includes("USDT_BRIDGE"))return D(U);for(const w of z){const s=N[w];if(s)return s(U)}}))).filter(U=>!!U),[N,D]);return Y.useEffect(()=>{let O=!1;const U=new Headers({accept:"application/json"});return(async()=>{o(!0);try{const F=await fetch(`${Ce.wormholeApi}api/v1/operations?address=${m}&page=${b}&pageSize=${v}`,{headers:U});if(F.status!==200)r([]),d(!1),o(!1);else{const k=await F.json();if(!O){const w=k==null?void 0:k.operations;if(w){const s=await _(w);r(l=>{if(l&&l.length>0){const f=new Set;return l.forEach(p=>{p!=null&&p.txHash&&f.add(p.txHash)}),l.concat(s.filter(p=>!f.has(p.txHash)))}return s})}(w==null?void 0:w.length)<v&&d(!1)}}}catch(F){O||(d(!1),a(`Error fetching transaction history from WormholeScan: ${F}`))}finally{o(!1)}})(),()=>{O=!0}},[m,b,v,_]),{transactions:t,error:n,isFetching:i,hasMore:u}},fme=e=>{const[t,r]=Y.useState(),[n,a]=Y.useState(""),[i,o]=Y.useState(!1),[u,d]=Y.useState(!0),{address:h,page:m=0,pageSize:b=30}=e,v=E=>{const{fromAmount:T,sourceChain:I,destChain:S,fromTokenPrice:D,fromTokenAddress:L,initiatedAt:N,toAmount:_,toTokenAddress:O,sourceTxHash:U,trader:z,destAddress:F,clientStatus:k}=E,w=oo(I),s=oo(S);if(!w||!s)return;let l,f;try{l=Ce.tokens.get(XN(w,L)),f=Ce.tokens.get(XN(s,O))}catch(A){console.error(A);return}if(!l){const A=Ce.tokens.findBySymbol(w,E.fromTokenSymbol);A&&(l=A)}if(!f){const A=Ce.tokens.findBySymbol(s,E.toTokenSymbol);A&&(f=A)}if(!l||!f){console.error("Cant find tokenz");return}const p=k==null?void 0:k.toLowerCase(),g=p!=="completed"&&p!=="refunded";return{txHash:U,sender:z,amount:T,amountUsd:Number(T)*D,recipient:F,fromChain:w,fromToken:l,toChain:s,toToken:f,receiveAmount:_,senderTimestamp:N,explorerLink:`https://explorer.mayan.finance/swap/${U}`,inProgress:g}},C=Y.useCallback(E=>E.map(T=>v(T)).filter(T=>!!T),[]);return Y.useEffect(()=>{let E=!1;return(async()=>{o(!0);const I=b,S=I*m;try{const D=await fetch(`${Ce.mayanApi}/v3/swaps?trader=${h}&offset=${S}&limit=${I}`);if(D.status!==200)r([]),d(!1),o(!1);else{const L=await D.json();if(!E){const N=L==null?void 0:L.data;N&&r(_=>{const O=C(N);if(_&&_.length>0){const U=new Set;return _.forEach(z=>{z!=null&&z.txHash&&U.add(z.txHash)}),_.concat(O.filter(z=>!U.has(z.txHash)))}return O}),(N==null?void 0:N.length)<I&&d(!1)}}}catch(D){E||(d(!1),a(`Error fetching transaction history from Mayan: ${D}`))}finally{o(!1)}})(),()=>{E=!0}},[h,m,b,C]),{transactions:t,error:n,isFetching:i,hasMore:u}};function XN(e,t){if(t==="0x0000000000000000000000000000000000000000")return{chain:e,address:"native"};const r=xa(e,t);return{chain:e,address:r}}const dme=e=>{const{page:t=0,pageSize:r=30}=e||{},[n,a]=Y.useState(0),[i,o]=Y.useState(0),[u,d]=Y.useState(t),[h,m]=Y.useState(t),[b,v]=Y.useState(),{address:C}=Lr(F=>F.wallet.sending),{transactions:E,isFetching:T,hasMore:I,error:S}=ume({address:C,page:h,pageSize:r}),{transactions:D,isFetching:L,hasMore:N,error:_}=fme({address:C,page:u,pageSize:r}),O=Y.useCallback((F,k)=>F?F.concat(k):k,[]),U=Y.useCallback(F=>{E&&F<=(E==null?void 0:E.length)&&o(F)},[E]),z=Y.useCallback(F=>{D&&F<=(D==null?void 0:D.length)&&a(F)},[D]);return Y.useEffect(()=>{N&&u!==t&&d(t),I&&h!==t&&m(t)},[N,I,u,t,h]),Y.useEffect(()=>{if(!E||!D)return;const F=[];let k=i,w=n;for(let f=0;f<r;f++){if(k===E.length&&I||w===D.length&&N){U(k),z(w),v(x=>O(x,F));return}const p=E[k],g=D[w];if(!p&&!g){U(k),z(w),v(x=>O(x,F));return}if(!g)F.push(p),k+=1;else if(!p)F.push(g),w+=1;else{const x=new Date(p.senderTimestamp),A=new Date(g.senderTimestamp);x>A?(F.push(p),k+=1):(F.push(g),w+=1)}}U(k),z(w);const s=new Set,l=O(b,F).filter(f=>f.txHash&&s.has(f.txHash)?!1:(s.add(f.txHash),!0));v(f=>l)},[E,D]),{transactions:b,error:[S,_],isFetching:T||L,hasMore:I||N}},hme=gr()(e=>({container:{width:"100%",maxWidth:"420px"},card:{width:"100%",borderRadius:"8px",border:`1px solid ${e.palette.input.border}`},cardHeader:{paddingBottom:0}})),pme=e=>{const{classes:t}=hme(),r=on(),{txHash:n,amount:a,amountUsd:i,fromChain:o,fromToken:u,toChain:d,toToken:h,receiveAmount:m,senderTimestamp:b,explorerLink:v}=e.data,C=Y.useMemo(()=>j.jsx(ft,{component:"span",padding:"0px 8px",children:"·"}),[]),{getTokenPrice:E,lastTokenPriceUpdate:T}=Ys(),I=Y.useMemo(()=>{const _=Ce.chains[o];return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:_,token:u}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[a," ",u==null?void 0:u.symbol]}),j.jsxs(ft,{color:r.palette.text.secondary,fontSize:14,children:[i?j.jsxs(j.Fragment,{children:[iU(i),C]}):null,_==null?void 0:_.displayName]})]})]})},[a,i,o,C,r.palette.text.secondary,u]),S=Y.useMemo(()=>{const _=Ce.chains[d],O=h,U=m?sc(E,parseFloat(m),O):0,z=U?j.jsxs(j.Fragment,{children:[U,C]}):null;return j.jsxs(hr,{alignItems:"center",direction:"row",justifyContent:"flex-start",children:[j.jsx(oh,{chainConfig:_,token:O}),j.jsxs(hr,{direction:"column",marginLeft:"12px",children:[j.jsxs(ft,{fontSize:16,children:[m," ",O==null?void 0:O.symbol]}),j.jsxs(ft,{color:r.palette.text.secondary,fontSize:14,children:[z,_==null?void 0:_.displayName]})]})]})},[T,d,h,m,E,C,r.palette.text.secondary]),D=Y.useMemo(()=>j.jsx(hr,{height:"24px",borderLeft:"1px solid #8B919D",marginLeft:"16px"}),[]),L=Y.useMemo(()=>{if(!b)return"Unknown time";const _=new Date(b),O=Date.now()-_.getTime();return O<1e3*60*60*24?Y0e(O):`${new Intl.DateTimeFormat("en-US",{dateStyle:"short",timeStyle:"short"}).format(_)}`},[b]),N=Y.useMemo(()=>{const _=l1(o,n,"tx"),O=R0e(n,4,4);return _?j.jsx(u3,{url:_,text:O}):O},[o,n]);return j.jsx("div",{className:t.container,children:j.jsx(Cc,{className:t.card,children:j.jsxs(Zv,{disableTouchRipple:!0,onClick:()=>{window.open(v,"_blank")},children:[j.jsx(WU,{className:t.cardHeader,title:j.jsxs(ft,{justifyContent:"space-between",color:r.palette.text.secondary,display:"flex",children:[j.jsxs("span",{children:["Transaction #",N]}),j.jsx("span",{children:L})]})}),j.jsxs(Sl,{children:[I,D,S]})]})})})},mme=gr()(e=>({container:{margin:"auto",maxWidth:"420px"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},infiniteScroller:{height:"640px",overflow:"auto",width:"100%"},txHistoryHeader:{width:"100%",display:"flex",alignItems:"center"},spacer:{display:"flex",flexDirection:"column",gap:"24px",alignItems:"center",justifyContent:"center",width:"100%"}})),gme=()=>{const e=oi(),{classes:t}=mme(),r=on(),[n,a]=Y.useState(0),{transactions:i,isFetching:o,hasMore:u}=dme({page:n}),d=Lr(v=>v.wallet.sending),h=Y.useMemo(()=>{const v={text:"",align:"left"};let C;return typeof Ce.ui.pageHeader=="string"?C={...v,text:Ce.ui.pageHeader}:C={...v,...Ce.ui.pageHeader},j.jsx(u2,{title:C.text,align:C.align})},[]),m=Y.useMemo(()=>j.jsxs("div",{className:t.txHistoryHeader,children:[j.jsx(jv,{align:"left",size:18,text:"Transaction history"}),j.jsx(i2,{onClick:()=>e(ys("bridge")),children:j.jsx(lme,{})})]}),[t.txHistoryHeader,e]),b=Y.useMemo(()=>{if(i){if(i.length===0)return j.jsx(ft,{color:r.palette.text.secondary,textAlign:"center",children:`No transactions found for the wallet ${x0(d.address)}`})}else return j.jsx(j.Fragment,{});return j.jsx("div",{className:Ms([t.infiniteScroller]),children:j.jsx(D7,{hasMore:u,loadMore:v=>a(v),useWindow:!1,style:{scrollbarWidth:"thin"},children:j.jsx("div",{className:Ms([t.spacer]),children:i.map((v,C)=>j.jsx(pme,{data:v},C))})})})},[t.infiniteScroller,t.spacer,u,d.address,r.palette.text.secondary,i]);return j.jsxs("div",{className:Ms([t.container,t.spacer]),children:[h,m,b,(!i||o)&&j.jsx($n,{}),j.jsx(ow,{color:r.palette.text.primary})]})},yme=()=>j.jsxs("svg",{width:"0",height:"0",viewBox:"0 0 0 0",children:[j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"icons_tokens_sol_linearGradient_0",x1:"4.168",y1:"85.832",x2:"91.832",y2:"-1.832",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#9945FF"}),j.jsx("stop",{offset:".2",stopColor:"#7962E7"}),j.jsx("stop",{offset:"1",stopColor:"#00D18C"})]}),j.jsx("clipPath",{id:"icons_tokens_sol_clipPath_0",children:j.jsx("path",{fill:"#fff",d:"M0 0h96v84H0z"})})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_chains_apt_clipPath_0",children:j.jsx("rect",{width:"36",height:"36",fill:"white"})})}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#81FFFF"}),j.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0002E9"}),j.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:j.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_0",x1:"21.9203",y1:"4.40983",x2:"9.65997",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_1",x1:"21.9203",y1:"4.40982",x2:"9.65999",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]}),j.jsxs("linearGradient",{id:"linearGradient_icons_chains_sol_2",x1:"21.9203",y1:"4.40983",x2:"9.66001",y2:"27.9398",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#00FFA3"}),j.jsx("stop",{offset:"1",stopColor:"#DC1FFF"})]})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_chains_sui_clipPath_0",children:j.jsx("rect",{width:"18",height:"24",fill:"white",transform:"translate(9 6)"})})}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_uni_radialGradient_0",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(18.4297 18) rotate(90) scale(18 17.93)",children:[j.jsx("stop",{stopColor:"#FC74FE"}),j.jsx("stop",{offset:"1",stopColor:"#F50DB4"})]}),j.jsx("clipPath",{id:"icons_chains_uni_clipPath_0",children:j.jsx("rect",{width:"36",height:"36",fill:"white",transform:"translate(0.429688)"})})]}),j.jsx("defs",{children:j.jsxs("linearGradient",{id:"icons_chains_xlayer_linearGradient_0",x1:"34",y1:"35.4996",x2:"1.5",y2:"3.49957",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#040404"}),j.jsx("stop",{offset:"1",stopColor:"#282828"})]})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_busd_clipPath_0",children:j.jsx("rect",{width:"199.401",height:"200",fill:"white"})})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_dai_clipPath_0",children:j.jsx("rect",{width:"200",height:"200",fill:"white"})})}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_0",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0082FA"}),j.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]}),j.jsxs("linearGradient",{id:"icons_tokens_inj_linearGradient_1",x1:"100",y1:"300",x2:"500",y2:"300",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0082FA"}),j.jsx("stop",{offset:"1",stopColor:"#00F2FE"})]})]}),j.jsxs("defs",{children:[j.jsxs("filter",{id:"icons_tokens_ntt_filter_0",x:"36.0726",y:"19.3241",width:"12.6301",height:"12.6306",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[j.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),j.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),j.jsx("feGaussianBlur",{stdDeviation:"1.18048",result:"effect1_foregroundBlur_4160_67832"})]}),j.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_0",x1:"76.3139",y1:"25.3915",x2:"10.1678",y2:"25.3915",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[j.jsx("stop",{stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"0.5142",stopColor:"white"}),j.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_tokens_ntt_linearGradient_1",x1:"42.748",y1:"1.55322",x2:"42.748",y2:"50.4438",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(1, 0, 0, 1, 307.155052, 224.001474)",children:[j.jsx("stop",{stopColor:"white"}),j.jsx("stop",{offset:"0.4519",stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"0.5397",stopColor:"white",stopOpacity:"0"}),j.jsx("stop",{offset:"1",stopColor:"white"})]})]}),j.jsxs("defs",{children:[j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_0",cx:"0",cy:"0",r:"1",gradientTransform:"translate(653.009 167.889) scale(202.547 206.035)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("radialGradient",{id:"icons_chains_osmo_radialGradient_1",cx:"0",cy:"0",r:"1",gradientTransform:"translate(540.32 255.753) scale(495.56 504.093)",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#FFEAFF",stopOpacity:".6"}),j.jsx("stop",{offset:".681",stopColor:"#A087C9"}),j.jsx("stop",{offset:"1",stopColor:"#10002F"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_0",x1:"331.959",x2:"415.726",y1:"687.445",y2:"179.399",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#81FFFF"}),j.jsx("stop",{offset:".62",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_1",x1:"551.129",x2:"338.385",y1:"258.408",y2:"450.302",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_2",x1:"131.705",x2:"613.118",y1:"553.353",y2:"553.353",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#0002E9"}),j.jsx("stop",{offset:".995",stopColor:"#FF00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_3",x1:"635.906",x2:"369.659",y1:"452.584",y2:"699.942",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_4",x1:"131.705",x2:"389.259",y1:"553.352",y2:"553.352",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#7D00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_5",x1:"132.029",x2:"612.795",y1:"453.743",y2:"453.743",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#000292"}),j.jsx("stop",{offset:".995",stopColor:"#BE00C7"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_6",x1:"604.91",x2:"569.494",y1:"191.453",y2:"248.03",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_7",x1:"343.013",x2:"362.187",y1:"613.233",y2:"613.233",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_8",x1:"409.132",x2:"428.305",y1:"606.695",y2:"606.695",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_9",x1:"379.785",x2:"394.18",y1:"639.688",y2:"639.688",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_10",x1:"438.053",x2:"452.447",y1:"632.755",y2:"632.755",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_11",x1:"281.083",x2:"312.395",y1:"600.365",y2:"600.365",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsxs("linearGradient",{id:"icons_chains_osmo_linearGradient_12",x1:"467.049",x2:"498.361",y1:"548.259",y2:"548.259",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{offset:".289",stopColor:"#fff"}),j.jsx("stop",{offset:".78",stopColor:"#fff",stopOpacity:"0"})]}),j.jsx("clipPath",{id:"icons_chains_osmo_clipPath_0",children:j.jsx("rect",{width:"800",height:"800",fill:"#fff"})})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_usdt_clipPath_0",children:j.jsx("rect",{width:"229.912",height:"200",fill:"white"})})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"icons_tokens_wbtc_clipPath_0",children:j.jsx("rect",{width:"200",height:"200.022",fill:"white"})})})]}),bme=gr()(e=>({appContent:{textAlign:"left",margin:"40px auto",maxWidth:"900px",width:"100%",display:"flex",justifyContent:"center",padding:"4px",fontFamily:e.typography.fontFamily,[e.breakpoints.down("sm")]:{margin:"0 auto"}}}));function Mme(e){const{classes:t}=bme(),r=oi(),n=Y.useContext(Q0),a=Lr(m=>m.router.route),i=Y.useRef(!1),o=Y.useRef(!0),u=Y.useCallback(m=>{aU(m)||J0e(m),i.current=!0,Ce.triggerEvent({type:"config",config:m})},[]);i.current||(e.config&&u(e.config),a!=="bridge"&&r(ys("bridge"))),Y.useEffect(()=>{o.current?(o.current=!1,Ce.triggerEvent({type:"load",config:e.config})):e.config&&(u(e.config),r(RI()))},[e.config]);const d=H0e(a),{hasExternalSearch:h}=ppe();return Y.useEffect(()=>{const m="redeem",b="bridge";d===m&&a!==m&&(r($9()),r(I0e()),n.clear()),a===b&&d!==b&&d!=="history"&&r(RI())},[a,d,r]),Y.useEffect(()=>{h&&(r($9()),r(ys("search")))},[h,r]),j.jsxs("div",{className:t.appContent,children:[j.jsx(yme,{}),a==="bridge"&&j.jsx(eme,{}),a==="redeem"&&j.jsx(cme,{}),a==="search"&&j.jsx(hpe,{}),a==="history"&&j.jsx(gme,{}),a==="terms"&&j.jsx(a3e,{})]})}const xme={mode:"light",primary:{main:"#9892e6"},secondary:{main:"#cccccc"},divider:"#a0a2a9",background:{default:"transparent"},text:{primary:U4[900],secondary:"#7d7d7d"},error:{main:"#f44336"},info:{main:"#A4C8F3"},success:{main:"#4caf50"},warning:{main:"#ff9800"},button:{primary:"#ffffff",primaryText:U4[900],disabled:"#c8cad1",disabledText:U4[800],action:"#F3A01E",actionText:"#000000",hover:"#b7b9c1"},options:{hover:"#f9f9fb",select:"#F0F0F5"},card:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},popover:{background:"#ffffff",elevation:"10px 10px 30px 15px #CCD2E7",secondary:"#F0F0F5"},input:{background:"#f9f9f9",border:"#DEE0E3",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#000000"},vme={mode:"dark",primary:{main:"#C1BBF6"},secondary:{main:"#667085"},divider:"#ffffff"+la[20],background:{default:"transparent"},text:{primary:"#ffffff",secondary:"#79859e"},info:{main:"#304C70"},error:{main:"#F04438"},success:{main:"#12B76A"},warning:{main:"#F79009"},button:{primary:"#ffffff"+la[10],primaryText:"#ffffff",disabled:"#ffffff"+la[7],disabledText:"#ffffff"+la[40],action:"#ffffff",actionText:"#000000",hover:"#ffffff"+la[7]},options:{hover:"#ffffff"+la[7],select:"#ffffff"+la[10]},card:{background:"#ffffff"+la[5],secondary:"#ffffff"+la[5],elevation:"none"},popover:{background:"#1b2033",secondary:"#ffffff"+la[5],elevation:"none"},input:{background:"#1a1928",border:"#1e1f35",fillTreatment:!0},font:'"Inter", sans-serif',logo:"#ffffff"},wme=e=>{const r=e.mode==="light"?xme:vme,n=Object.assign({},r);if(e){e.background&&(n.background={default:e.background}),e.input&&(n.input={...n.input,background:e.input,border:e.secondary||n.secondary.main}),e.inputFillTreatment!==void 0&&(n.input.fillTreatment=e.inputFillTreatment),e.primary&&(n.primary={main:e.primary}),e.secondary&&(n.secondary={main:e.secondary}),e.text&&(n.text.primary=e.text),e.textSecondary&&(n.text.secondary=e.textSecondary),e.error&&(n.error={main:e.error}),e.success&&(n.success={main:e.success});const a=_n(e.primary||n.primary.main);let i,o,u,d,h,m;a.isDark()?(i=a.lightness(95).hex(),o=a.alpha(.4).hexa(),u=a.lightness(95).alpha(.9).hexa(),d=a.darken(.15).hex(),h=a.lightness(80).hex(),m=a.darken(.05).hex()):(i=a.lightness(5).hex(),o=a.alpha(.4).hexa(),u=a.lightness(5).alpha(.9).hexa(),d=a.lighten(.05).hex(),h=a.lightness(0).hex(),m=a.lighten(.05).hex()),n.button={primary:a.hex(),primaryText:i,disabled:o,disabledText:u,action:d,actionText:h,hover:m}}return B6({components:{MuiPaper:{styleOverrides:{root:{boxShadow:"none"}}},MuiCollapse:{styleOverrides:{root:{width:"100%"}}}},breakpoints:{values:{xs:300,sm:500,md:650,lg:900,xl:1200}},typography:{fontFamily:e.font??'"Inter", sans-serif'},palette:{...n}})};class DP extends Vn.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?j.jsx(Cc,{children:j.jsx(ft,{variant:"h5",style:{textAlign:"center",marginTop:24,marginBottom:24},children:"An unexpected error has occurred. Please refresh the page."})}):this.props.children}}function Cme({config:e,theme:t}){Y.useEffect(()=>{globalThis.dispatchReduxAction||(window.dispatchReduxAction=n=>{WI.dispatch(n)})},[]);const r=Y.useMemo(()=>wme(t??{mode:"dark"}),[t]);return j.jsx(Zq,{store:WI,children:j.jsx(lV,{theme:r,children:j.jsx(iV,{enableColorScheme:!0,children:j.jsx(DP,{children:j.jsx(Ape,{children:j.jsx(b3e,{children:j.jsx(Mme,{config:e})})})})})})})}const TP=document.getElementById("wormhole-connect");if(!TP)throw new Error('Could not find an element with id "wormhole-connect". Please add one to use the Connect widget.');const Ame=window.__CONNECT_CONFIG,Eme=window.__CONNECT_THEME,Sme=OY.createRoot(TP);Sme.render(j.jsx(Vn.StrictMode,{children:j.jsx(DP,{children:j.jsx(Cme,{config:Ame,theme:Eme})})}));export{p8e as $,Qb as A,II as B,v5 as C,g8e as D,Tre as E,rO as F,Ce as G,n7 as H,ov as I,Yx as J,Wu as K,Fr as L,Ws as M,f8e as N,h8e as O,ct as P,hv as Q,Mv as R,wge as S,nn as T,aU as U,pv as V,t0e as W,hle as X,fle as Y,Gse as Z,ja as _,L0 as a,Ub as a$,Cie as a0,nO as a1,Vme as a2,kr as a3,m8e as a4,l5 as a5,sae as a6,Uge as a7,Wge as a8,lp as a9,CO as aA,XT as aB,vO as aC,Oge as aD,Jie as aE,Rge as aF,Yge as aG,Hge as aH,Pge as aI,Bge as aJ,zge as aK,$ie as aL,Sge as aM,Dge as aN,_ge as aO,Oae as aP,Kb as aQ,HR as aR,t8e as aS,Ime as aT,Nme as aU,WK as aV,uv as aW,K1 as aX,Xr as aY,mO as aZ,Cge as a_,eae as aa,Xh as ab,jge as ac,Ege as ad,Zge as ae,al as af,Tge as ag,Nge as ah,qie as ai,kge as aj,Lge as ak,_O as al,ore as am,Fz as an,ar as ao,$ge as ap,pn as aq,$K as ar,Hb as as,kme as at,y0 as au,rge as av,vge as aw,Kie as ax,iae as ay,Fge as az,vt as b,W1 as b$,Rh as b0,gx as b1,Kme as b2,Mn as b3,b0 as b4,hf as b5,Pme as b6,Wme as b7,c_ as b8,$me as b9,CJ as bA,AJ as bB,i8e as bC,n8e as bD,yle as bE,r8e as bF,Mle as bG,ble as bH,gle as bI,s8e as bJ,wv as bK,xle as bL,ZR as bM,GR as bN,a8e as bO,wle as bP,o8e as bQ,P6 as bR,l8e as bS,Dle as bT,J1 as bU,Gme as bV,_h as bW,CX as bX,Ume as bY,NX as bZ,px as b_,Z6 as ba,Vz as bb,Rme as bc,gl as bd,Lm as be,jme as bf,SX as bg,gc as bh,Qz as bi,e_ as bj,t0 as bk,Jz as bl,vJ as bm,op as bn,y_ as bo,mJ as bp,Wn as bq,Uh as br,G6 as bs,iJ as bt,bx as bu,pJ as bv,Jme as bw,aE as bx,Xme as by,qz as bz,Ut as c,e8e as c$,ff as c0,$A as c1,Hz as c2,_X as c3,qme as c4,Qme as c5,Ro as c6,iu as c7,nu as c8,R2 as c9,ki as cA,Nm as cB,W6 as cC,nge as cD,fn as cE,Qge as cF,Gge as cG,ts as cH,Pu as cI,di as cJ,SD as cK,Vh as cL,Q4 as cM,xf as cN,no as cO,Ta as cP,ose as cQ,is as cR,rn as cS,ji as cT,lse as cU,ii as cV,wr as cW,mc as cX,Hu as cY,ege as cZ,poe as c_,O2 as ca,zX as cb,wX as cc,Yme as cd,Hme as ce,kh as cf,Qi as cg,tge as ch,xa as ci,YP as cj,zt as ck,kt as cl,Ei as cm,o3 as cn,mr as co,KR as cp,H6 as cq,q4 as cr,wE as cs,qge as ct,zh as cu,yb as cv,ZK as cw,Vge as cx,sX as cy,pf as cz,Zh as d,Ii as d0,cb as d1,pc as d2,ma as d3,i3 as d4,Age as d5,Wie as d6,VJ as d7,Lme as d8,S_ as d9,XJ as da,E_ as db,Kt as dc,Cv as dd,u8e as de,Tle as df,c8e as dg,Ale as dh,o1 as di,Zf as e,Je as f,mF as g,zb as h,Xt as i,Ya as j,jp as k,Ba as l,Hn as m,Ige as n,$T as o,r0 as p,yc as q,Yh as r,Nx as s,Jf as t,np as u,Jr as v,r0e as w,d8e as x,eh as y,c5 as z};
|