@dcl/blog-site 0.2.3-23948667956.commit-cfe47f9 → 0.2.3-24088316758.commit-34384cf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{QueryClientProvider-mZKMZTwe.js → QueryClientProvider-DFnrqjxK.js} +1 -1
- package/assets/{SignInRedirect-CXUOqOjy.js → SignInRedirect-YsS_y43O.js} +5 -5
- package/assets/{X-3yocgepi.js → X-DQRyaTAP.js} +1 -1
- package/assets/{__federation_expose_App-CMGDAIUH.js → __federation_expose_App-BWDr6ljs.js} +1 -1
- package/assets/{__federation_fn_import-C51lglKS.js → __federation_fn_import-DsoKw508.js} +1 -1
- package/assets/__federation_shared_@dcl/{hooks-Dm9PRmKy.js → hooks-P78bsY9M.js} +3 -3
- package/assets/__federation_shared_@emotion/react-CtCvVI4H.js +1 -0
- package/assets/__federation_shared_@emotion/{styled-aZ9bk9Xh.js → styled-CtXq_gFe.js} +1 -1
- package/assets/{__federation_shared_decentraland-ui2-KxrbFOTA.js → __federation_shared_decentraland-ui2-DRl5ehN-.js} +6 -6
- package/assets/{__federation_shared_react-redux-Ckcz2edF.js → __federation_shared_react-redux-DRaqgPHP.js} +1 -1
- package/assets/{__federation_shared_react-router-dom-jUWpDOjR.js → __federation_shared_react-router-dom-ClUJIur8.js} +1 -1
- package/assets/{__federation_shared_viem-Cdp7wK0V.js → __federation_shared_viem-OkDZ_da3.js} +1 -1
- package/assets/{__federation_shared_wagmi-CHWRoybR.js → __federation_shared_wagmi-DxQyjTpB.js} +1 -1
- package/assets/{add-DHMb_tRw.js → add-BJhrLyz2.js} +1 -1
- package/assets/{all-wallets-Bo3QRxXL.js → all-wallets-BKl1d9ay.js} +1 -1
- package/assets/{app-store-BHwDXU8D.js → app-store-Cz4wx5Ml.js} +1 -1
- package/assets/{apple-BFX-plRw.js → apple-ZB0nqM0P.js} +1 -1
- package/assets/{arrow-bottom-Djx9NXV2.js → arrow-bottom-DPabveW2.js} +1 -1
- package/assets/{arrow-bottom-circle-DcJnW2eo.js → arrow-bottom-circle-qQ6xlCaO.js} +1 -1
- package/assets/{arrow-left-BS_dJGSP.js → arrow-left-D_0jfro8.js} +1 -1
- package/assets/{arrow-right-B-mwy0Iu.js → arrow-right-Bxr-_0TM.js} +1 -1
- package/assets/{arrow-top-Di1bbZG1.js → arrow-top-CcZJfPaY.js} +1 -1
- package/assets/{auto-track-pkMvCaah.js → auto-track-CXTejErn.js} +1 -1
- package/assets/{bank-B9SMq-ix.js → bank-qzSNVmpL.js} +1 -1
- package/assets/{basic-DijYF-IW.js → basic-CriAqicR.js} +1 -1
- package/assets/{biconomy-CCw3vtwR.js → biconomy-7PcFs3b0.js} +1 -1
- package/assets/{browser-CdKdszu-.js → browser-B01ZPlHW.js} +1 -1
- package/assets/{card-CQu4Eu8c.js → card-C8yazSyG.js} +1 -1
- package/assets/{ccip-AgQ5AD9v.js → ccip-D0tvzkwi.js} +1 -1
- package/assets/{checkmark-D2vezo75.js → checkmark-DEpAI8yr.js} +1 -1
- package/assets/{checkmark-bold-DriAapzP.js → checkmark-bold-CmJidmVJ.js} +1 -1
- package/assets/{chevron-bottom-CcFEOVdH.js → chevron-bottom-DWsbL4vJ.js} +1 -1
- package/assets/{chevron-left-BXS-ybhL.js → chevron-left-DLMg9i5k.js} +1 -1
- package/assets/{chevron-right-TvO5COya.js → chevron-right-BR2L5tDn.js} +1 -1
- package/assets/{chevron-top-D84SgxMg.js → chevron-top-BWtZfQ2F.js} +1 -1
- package/assets/{chrome-store-rpsfVQln.js → chrome-store-BGE1p2Hx.js} +1 -1
- package/assets/{clock-BMJ2gt7b.js → clock-B12ZBUD7.js} +1 -1
- package/assets/{close-kAWkeKAP.js → close-B54jTe2O.js} +1 -1
- package/assets/{coinPlaceholder-Dz8MKewa.js → coinPlaceholder-B5PhQfVg.js} +1 -1
- package/assets/{compass-BednEqu-.js → compass-CEs6S01I.js} +1 -1
- package/assets/{controller-D0Gc4Hsp.js → controller-n5F8mc3X.js} +2 -2
- package/assets/{copy-D7rBk-hZ.js → copy-DwrKUUfz.js} +1 -1
- package/assets/{core-Bn8Mr-tS.js → core-DPOUi4Tl.js} +3 -3
- package/assets/{createBundlerClient-DhRCLsYO.js → createBundlerClient-YqcE2yqs.js} +1 -1
- package/assets/{createClient-C9QPJaZu.js → createClient-BxHhKlNq.js} +1 -1
- package/assets/{cursor-C8UG2IDe.js → cursor-CGBFNPoh.js} +1 -1
- package/assets/{cursor-transparent-CyP0H3C5.js → cursor-transparent-D3nfFufs.js} +1 -1
- package/assets/{decimals-DedKFk8m.js → decimals-BMO-32AD.js} +1 -1
- package/assets/{decimals-B7Pm5rZk.js → decimals-D0IunObY.js} +1 -1
- package/assets/{desktop-LBcRpcZE.js → desktop-Bjkc6WkG.js} +1 -1
- package/assets/{detectExtension-C2uVeK-n.js → detectExtension-BEr9WLqO.js} +1 -1
- package/assets/{disconnect-DEBEe-yK.js → disconnect-D9dYAsxs.js} +1 -1
- package/assets/{discord-BlVFKMf0.js → discord-DZuYBrqS.js} +1 -1
- package/assets/{emotion-react.browser.esm-BzYQLDSp.js → emotion-react.browser.esm-Ce2LppU1.js} +1 -1
- package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-TsHx33zg.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-ByQDcQjl.js} +1 -1
- package/assets/{encode-DvvW4ZKt.js → encode-cHgp5mHv.js} +2 -2
- package/assets/{engine-CD7SeAap.js → engine-BVbFCTQK.js} +1 -1
- package/assets/{estimate-gas-CeHGaIbG.js → estimate-gas-DBgT8NWo.js} +3 -3
- package/assets/{estimate-l1-fee-ClMO5l7U.js → estimate-l1-fee-C2ptcVct.js} +1 -1
- package/assets/{eth_getStorageAt-BHgF2qz5.js → eth_getStorageAt-B9Y_JVAm.js} +1 -1
- package/assets/{etherscan-C_pqcV9R.js → etherscan-oUtlOsmK.js} +1 -1
- package/assets/{exclamation-triangle-R9Xq3IaG.js → exclamation-triangle-BdB5oh3a.js} +1 -1
- package/assets/{extension-DkA_7Cbg.js → extension-CjK6xfgN.js} +1 -1
- package/assets/{external-link-BPOw_fuW.js → external-link-dD0-Gy7Y.js} +1 -1
- package/assets/{extractIPFS-B4LGER25.js → extractIPFS-BN8-L65J.js} +1 -1
- package/assets/{facebook-CMZk_t1A.js → facebook-CInWYo4e.js} +1 -1
- package/assets/{farcaster-CveILPqa.js → farcaster-Dk7xCnWZ.js} +1 -1
- package/assets/{fee-data-BKBGP5kG.js → fee-data-DBS1-uI-.js} +1 -1
- package/assets/{fetchTokenMetadata-BLDHgO8L.js → fetchTokenMetadata-sBUH3xE3.js} +2 -2
- package/assets/{filters-BspTrZpX.js → filters-CQJE56FO.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-D3PrM5FE.js → get-ecosystem-wallet-info-DkhEjWQL.js} +1 -1
- package/assets/{getBalance-D7nzATjL.js → getBalance-NroDyfvQ.js} +1 -1
- package/assets/{getInstalledModules-Ck_Gj8FO.js → getInstalledModules-DFAdG78-.js} +1 -1
- package/assets/{getNFT-BcCS23O_.js → getNFT-CM6jDDoS.js} +1 -1
- package/assets/{getNFT-DXdMP0Q5.js → getNFT-CZphITDU.js} +2 -2
- package/assets/{github-DoFHEMIF.js → github-D7bNXBE_.js} +1 -1
- package/assets/{google-NTQi9GVe.js → google-C7wxpdtc.js} +1 -1
- package/assets/{help-circle-DV0uNPdn.js → help-circle-jHfnx5-M.js} +1 -1
- package/assets/{id-UAVc1FOO.js → id-B0bg6br2.js} +1 -1
- package/assets/{image-BeHBzCPG.js → image-CFkOYVVZ.js} +1 -1
- package/assets/{in-app-wallet-calls-CvFtsXP9.js → in-app-wallet-calls-CUJMAfNk.js} +1 -1
- package/assets/{index-CjuQOkbh.js → index-B6POK61z.js} +1 -1
- package/assets/{index-BozJS3za.js → index-BgKyyaW6.js} +1 -1
- package/assets/index-BjzJcZq6.js +1 -1
- package/assets/{index-DajuSfcu.js → index-BqaO8h_q.js} +2 -2
- package/assets/{index-B65z14KI.js → index-C2t4sTPE.js} +1 -1
- package/assets/{index-CgMDPZul.js → index-C9ZtSkAF.js} +1 -1
- package/assets/{index-B2OCb4Ez.js → index-CDUZj6Gh.js} +1 -1
- package/assets/{index-D6ZAha0r.js → index-CK_y9rJC.js} +3 -3
- package/assets/{index-C2hdqzGT.js → index-CgabfD28.js} +2 -2
- package/assets/index-Dot3cU3_.js +1 -0
- package/assets/{index-DeklogZX.js → index-DuUs6XE9.js} +1 -1
- package/assets/index-Dy0yjznp.js +1 -1
- package/assets/{index-DmAaXUNv.js → index-DyFSxszr.js} +1 -1
- package/assets/{index-D1lXZVQu.js → index-HwVh-q7L.js} +1 -1
- package/assets/{index-HvoTJwGm.js → index-p2T8GhRA.js} +1 -1
- package/assets/{index.es-CAXGMBEH.js → index.es-C4uogg3R.js} +1 -1
- package/assets/{index.es-C8Kfv-K1.js → index.es-DiIxomE4.js} +3 -3
- package/assets/{info-CzcA85TO.js → info-a5qnZWSp.js} +1 -1
- package/assets/{info-circle-D3Mr3R9u.js → info-circle-CtpHiT1K.js} +1 -1
- package/assets/jsx-runtime-DncYoG30.js +1 -1
- package/assets/{lightbulb-B2FZtM_8.js → lightbulb-Cedc0rYJ.js} +1 -1
- package/assets/{localBatchGatewayRequest-BIEAG3VG.js → localBatchGatewayRequest-xHNW-Ehl.js} +1 -1
- package/assets/{mail-CkhGbows.js → mail-D96xVokz.js} +1 -1
- package/assets/{mobile-1H3FtqAS.js → mobile-DsDxm8mI.js} +1 -1
- package/assets/{more-CZiQi624.js → more-BedDVxwf.js} +1 -1
- package/assets/{network-placeholder-DA2bm2rC.js → network-placeholder-CpA4BghL.js} +1 -1
- package/assets/{nftPlaceholder-C9t5Ydxp.js → nftPlaceholder-E0nNrT1f.js} +1 -1
- package/assets/{off-D8z0OQ3M.js → off-C8YtcDJA.js} +1 -1
- package/assets/{openzeppelin-ZKz6sLW9.js → openzeppelin-CQer_fI1.js} +1 -1
- package/assets/{ownerOf-D1aXOt9Q.js → ownerOf-GjaKoeq1.js} +1 -1
- package/assets/{parseNft-LjEwmOst.js → parseNft-CxF6cVbB.js} +2 -2
- package/assets/{play-store-_X5LrPwx.js → play-store-wzv988wO.js} +1 -1
- package/assets/{plus-JriDhMxt.js → plus-BOnP2W3B.js} +1 -1
- package/assets/{preload-helper-BorDCKdG.js → preload-helper-2M-6abck.js} +1 -1
- package/assets/{qr-code-DaB080BF.js → qr-code-5Zy3Jwmz.js} +1 -1
- package/assets/{qr-overlay-CGnFhcTk.js → qr-overlay-qPTQSVWY.js} +1 -1
- package/assets/{recycle-horizontal-CGeFmMrT.js → recycle-horizontal-BiLXE1ph.js} +1 -1
- package/assets/{refresh-Dgvxxw5C.js → refresh-DrIaQxXR.js} +1 -1
- package/assets/remoteEntry.js +1 -1
- package/assets/{reown-logo-CBX48aN9.js → reown-logo-C50d_2u-.js} +1 -1
- package/assets/{resolveImplementation-Cb2bL1tx.js → resolveImplementation-Bp817C6y.js} +1 -1
- package/assets/{search-DamXBOxM.js → search-CtoMI8IW.js} +1 -1
- package/assets/{secp256k1-UEF-yOzn.js → secp256k1-lKd37s6b.js} +1 -1
- package/assets/{send-BLpUSx_G.js → send-DjyS4WAU.js} +1 -1
- package/assets/{send-batch-transaction-DnH876GL.js → send-batch-transaction-DBV6UBBv.js} +1 -1
- package/assets/{send-eip712-transaction-D_FU-Avh.js → send-eip712-transaction-CI65hvCl.js} +2 -2
- package/assets/{send-gasless-transaction-MP1Q_mLW.js → send-gasless-transaction-C7lHksJD.js} +2 -2
- package/assets/{serializeTransaction-mtsVBaO6.js → serializeTransaction-6LlbmJwH.js} +1 -1
- package/assets/{session-proposal-CM3P7DaL.js → session-proposal-BJ6dUV4k.js} +1 -1
- package/assets/{session-request-Dqw67u3p.js → session-request-Cen_JpY8.js} +2 -2
- package/assets/{signing-BFeVjjPi.js → signing-BsPRCC1P.js} +3 -3
- package/assets/{swapHorizontal-Br-MZ1tO.js → swapHorizontal-DUMDblJm.js} +1 -1
- package/assets/{swapHorizontalBold-CkUNbZ1G.js → swapHorizontalBold-Du4gzczl.js} +1 -1
- package/assets/{swapHorizontalMedium-D3qEQNb5.js → swapHorizontalMedium-BkSTzo9o.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-CzzBPCtt.js → swapHorizontalRoundedBold-CQD5i-I5.js} +1 -1
- package/assets/{swapVertical-Mrn3zm_W.js → swapVertical-CjSXuBHb.js} +1 -1
- package/assets/{telegram-ZTLC9FiA.js → telegram-uAGG8XwG.js} +1 -1
- package/assets/{thirdweb-D5ezTmuN.js → thirdweb-DOoFBA7F.js} +3 -3
- package/assets/{three-dots-DYl4uQjm.js → three-dots-BWtFKrpY.js} +1 -1
- package/assets/{totalSupply-B5jHW8gx.js → totalSupply-CjCaaPZD.js} +1 -1
- package/assets/{twitch-DPLkA98Q.js → twitch-VH9Dk-Bx.js} +1 -1
- package/assets/{twitterIcon-BEY_UAyG.js → twitterIcon-Bfs32uTm.js} +1 -1
- package/assets/{uid-D00jCazq.js → uid-XfAtrElX.js} +3 -3
- package/assets/{verify-DuPdiufm.js → verify-4fUj-WRm.js} +1 -1
- package/assets/{verify-filled-CdqEW5AP.js → verify-filled-sllS8Nrv.js} +1 -1
- package/assets/{w3m-modal-BLzhBUlF.js → w3m-modal-Blb5XI95.js} +1 -1
- package/assets/{wait-for-tx-receipt-B-o5aPQ8.js → wait-for-tx-receipt-BR33kfvc.js} +1 -1
- package/assets/{wallet-CZw1g3L8.js → wallet-DuQpuU5E.js} +1 -1
- package/assets/{wallet-placeholder-OAkoJuru.js → wallet-placeholder-CERukyIC.js} +1 -1
- package/assets/{walletconnect-BJ3w7-IU.js → walletconnect-CsB9GzlO.js} +1 -1
- package/assets/{wallets-Q5RcRyG6.js → wallets-vcnqEomN.js} +5 -5
- package/assets/{warning-circle-DpDeOZKv.js → warning-circle-C8yGFMlX.js} +1 -1
- package/assets/{web-connector-CB7tpRui.js → web-connector-Jj-2yhMg.js} +3 -3
- package/assets/{webSocket-dQW3n9NM.js → webSocket-BfTFTYzP.js} +1 -1
- package/assets/{x-liJqLZUi.js → x-BXVsZnMK.js} +1 -1
- package/index.html +17 -17
- package/package.json +3 -3
- package/assets/__federation_shared_@emotion/react-AmEOkpjC.js +0 -1
- package/assets/index-Tsk25L8E.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ee,g as dn,a as Gl}from"./_commonjsHelpers-C4iS2aBk.js";import{r as Vs}from"./___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{e as Jl}from"./index-6E4L_h32.js";import{i as St}from"./inherits_browser-BlmhoU4v.js";import{w as Zl,t as Kl,c as Ql,i as Yl}from"./index-Tsk25L8E.js";import{p as Xl,a as eu}from"./hooks.module-Cpp96UEK.js";import{e as ii}from"./events-B5inrCVE.js";import{t as tu}from"./tslib.es6-DbvBTznf.js";function ru(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var zs={},cn={},si={};Object.defineProperty(si,"__esModule",{value:!0});si.walletLogo=void 0;const nu=(e,t)=>{let r;switch(e){case"standard":return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};si.walletLogo=nu;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.LINK_API_URL=void 0;oi.LINK_API_URL="https://www.walletlink.org";var X={},qs={exports:{}};qs.exports;(function(e){(function(t,r){function n(I,o){if(!I)throw new Error(o||"Assertion failed")}function i(I,o){I.super_=o;var d=function(){};d.prototype=o.prototype,I.prototype=new d,I.prototype.constructor=I}function s(I,o,d){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(I||0,o||10,d||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=Vs.Buffer}catch{}s.isBN=function(o){return o instanceof s?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===s.wordSize&&Array.isArray(o.words)},s.max=function(o,d){return o.cmp(d)>0?o:d},s.min=function(o,d){return o.cmp(d)<0?o:d},s.prototype._init=function(o,d,w){if(typeof o=="number")return this._initNumber(o,d,w);if(typeof o=="object")return this._initArray(o,d,w);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y<o.length&&(d===16?this._parseHex(o,y,w):(this._parseBase(o,d,y),w==="le"&&this._initArray(this.toArray(),d,w)))},s.prototype._initNumber=function(o,d,w){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(n(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),d,w)},s.prototype._initArray=function(o,d,w){if(n(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _,k,T=0;if(w==="be")for(y=o.length-1,_=0;y>=0;y-=3)k=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[_]|=k<<T&67108863,this.words[_+1]=k>>>26-T&67108863,T+=24,T>=26&&(T-=26,_++);else if(w==="le")for(y=0,_=0;y<o.length;y+=3)k=o[y]|o[y+1]<<8|o[y+2]<<16,this.words[_]|=k<<T&67108863,this.words[_+1]=k>>>26-T&67108863,T+=24,T>=26&&(T-=26,_++);return this._strip()};function a(I,o){var d=I.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;n(!1,"Invalid character in "+I)}function f(I,o,d){var w=a(I,d);return d-1>=o&&(w|=a(I,d-1)<<4),w}s.prototype._parseHex=function(o,d,w){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _=0,k=0,T;if(w==="be")for(y=o.length-1;y>=d;y-=2)T=f(o,d,y)<<_,this.words[k]|=T&67108863,_>=18?(_-=18,k+=1,this.words[k]|=T>>>26):_+=8;else{var b=o.length-d;for(y=b%2===0?d+1:d;y<o.length;y+=2)T=f(o,d,y)<<_,this.words[k]|=T&67108863,_>=18?(_-=18,k+=1,this.words[k]|=T>>>26):_+=8}this._strip()};function g(I,o,d,w){for(var y=0,_=0,k=Math.min(I.length,d),T=o;T<k;T++){var b=I.charCodeAt(T)-48;y*=w,b>=49?_=b-49+10:b>=17?_=b-17+10:_=b,n(b>=0&&_<w,"Invalid character"),y+=_}return y}s.prototype._parseBase=function(o,d,w){this.words=[0],this.length=1;for(var y=0,_=1;_<=67108863;_*=d)y++;y--,_=_/d|0;for(var k=o.length-w,T=k%y,b=Math.min(k,k-T)+w,u=0,S=w;S<b;S+=y)u=g(o,S,S+y,d),this.imuln(_),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(T!==0){var K=1;for(u=g(o,S,o.length,d),S=0;S<T;S++)K*=d;this.imuln(K),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function p(I,o){I.words=o.words,I.length=o.length,I.negative=o.negative,I.red=o.red}if(s.prototype._move=function(o){p(o,this)},s.prototype.clone=function(){var o=new s(null);return this.copy(o),o},s.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch{s.prototype.inspect=M}else s.prototype.inspect=M;function M(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var E=["","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"],N=[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],H=[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];s.prototype.toString=function(o,d){o=o||10,d=d|0||1;var w;if(o===16||o==="hex"){w="";for(var y=0,_=0,k=0;k<this.length;k++){var T=this.words[k],b=((T<<y|_)&16777215).toString(16);_=T>>>24-y&16777215,y+=2,y>=26&&(y-=26,k--),_!==0||k!==this.length-1?w=E[6-b.length]+b+w:w=b+w}for(_!==0&&(w=_.toString(16)+w);w.length%d!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(o===(o|0)&&o>=2&&o<=36){var u=N[o],S=H[o];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(S).toString(o);K=K.idivn(S),K.isZero()?w=J+w:w=E[u-J.length]+J+w}for(this.isZero()&&(w="0"+w);w.length%d!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},s.prototype.toJSON=function(){return this.toString(16,2)},c&&(s.prototype.toBuffer=function(o,d){return this.toArrayLike(c,o,d)}),s.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var D=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};s.prototype.toArrayLike=function(o,d,w){this._strip();var y=this.byteLength(),_=w||Math.max(1,y);n(y<=_,"byte array longer than desired length"),n(_>0,"Requested array length <= 0");var k=D(o,_),T=d==="le"?"LE":"BE";return this["_toArrayLike"+T](k,y),k},s.prototype._toArrayLikeLE=function(o,d){for(var w=0,y=0,_=0,k=0;_<this.length;_++){var T=this.words[_]<<k|y;o[w++]=T&255,w<o.length&&(o[w++]=T>>8&255),w<o.length&&(o[w++]=T>>16&255),k===6?(w<o.length&&(o[w++]=T>>24&255),y=0,k=0):(y=T>>>24,k+=2)}if(w<o.length)for(o[w++]=y;w<o.length;)o[w++]=0},s.prototype._toArrayLikeBE=function(o,d){for(var w=o.length-1,y=0,_=0,k=0;_<this.length;_++){var T=this.words[_]<<k|y;o[w--]=T&255,w>=0&&(o[w--]=T>>8&255),w>=0&&(o[w--]=T>>16&255),k===6?(w>=0&&(o[w--]=T>>24&255),y=0,k=0):(y=T>>>24,k+=2)}if(w>=0)for(o[w--]=y;w>=0;)o[w--]=0},Math.clz32?s.prototype._countBits=function(o){return 32-Math.clz32(o)}:s.prototype._countBits=function(o){var d=o,w=0;return d>=4096&&(w+=13,d>>>=13),d>=64&&(w+=7,d>>>=7),d>=8&&(w+=4,d>>>=4),d>=2&&(w+=2,d>>>=2),w+d},s.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,w=0;return d&8191||(w+=13,d>>>=13),d&127||(w+=7,d>>>=7),d&15||(w+=4,d>>>=4),d&3||(w+=2,d>>>=2),d&1||w++,w},s.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function $(I){for(var o=new Array(I.bitLength()),d=0;d<o.length;d++){var w=d/26|0,y=d%26;o[d]=I.words[w]>>>y&1}return o}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var w=this._zeroBits(this.words[d]);if(o+=w,w!==26)break}return o},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},s.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},s.prototype.ior=function(o){return n((this.negative|o.negative)===0),this.iuor(o)},s.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},s.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},s.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var w=0;w<d.length;w++)this.words[w]=this.words[w]&o.words[w];return this.length=d.length,this._strip()},s.prototype.iand=function(o){return n((this.negative|o.negative)===0),this.iuand(o)},s.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},s.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},s.prototype.iuxor=function(o){var d,w;this.length>o.length?(d=this,w=o):(d=o,w=this);for(var y=0;y<w.length;y++)this.words[y]=d.words[y]^w.words[y];if(this!==d)for(;y<d.length;y++)this.words[y]=d.words[y];return this.length=d.length,this._strip()},s.prototype.ixor=function(o){return n((this.negative|o.negative)===0),this.iuxor(o)},s.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},s.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},s.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,w=o%26;this._expand(d),w>0&&d--;for(var y=0;y<d;y++)this.words[y]=~this.words[y]&67108863;return w>0&&(this.words[y]=~this.words[y]&67108863>>26-w),this._strip()},s.prototype.notn=function(o){return this.clone().inotn(o)},s.prototype.setn=function(o,d){n(typeof o=="number"&&o>=0);var w=o/26|0,y=o%26;return this._expand(w+1),d?this.words[w]=this.words[w]|1<<y:this.words[w]=this.words[w]&~(1<<y),this._strip()},s.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var w,y;this.length>o.length?(w=this,y=o):(w=o,y=this);for(var _=0,k=0;k<y.length;k++)d=(w.words[k]|0)+(y.words[k]|0)+_,this.words[k]=d&67108863,_=d>>>26;for(;_!==0&&k<w.length;k++)d=(w.words[k]|0)+_,this.words[k]=d&67108863,_=d>>>26;if(this.length=w.length,_!==0)this.words[this.length]=_,this.length++;else if(w!==this)for(;k<w.length;k++)this.words[k]=w.words[k];return this},s.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},s.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var w=this.cmp(o);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,_;w>0?(y=this,_=o):(y=o,_=this);for(var k=0,T=0;T<_.length;T++)d=(y.words[T]|0)-(_.words[T]|0)+k,k=d>>26,this.words[T]=d&67108863;for(;k!==0&&T<y.length;T++)d=(y.words[T]|0)+k,k=d>>26,this.words[T]=d&67108863;if(k===0&&T<y.length&&y!==this)for(;T<y.length;T++)this.words[T]=y.words[T];return this.length=Math.max(this.length,T),y!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(o){return this.clone().isub(o)};function x(I,o,d){d.negative=o.negative^I.negative;var w=I.length+o.length|0;d.length=w,w=w-1|0;var y=I.words[0]|0,_=o.words[0]|0,k=y*_,T=k&67108863,b=k/67108864|0;d.words[0]=T;for(var u=1;u<w;u++){for(var S=b>>>26,K=b&67108863,J=Math.min(u,o.length-1),A=Math.max(0,u-I.length+1);A<=J;A++){var P=u-A|0;y=I.words[P]|0,_=o.words[A]|0,k=y*_+K,S+=k/67108864|0,K=k&67108863}d.words[u]=K|0,b=S|0}return b!==0?d.words[u]=b|0:d.length--,d._strip()}var L=function(o,d,w){var y=o.words,_=d.words,k=w.words,T=0,b,u,S,K=y[0]|0,J=K&8191,A=K>>>13,P=y[1]|0,W=P&8191,Z=P>>>13,le=y[2]|0,R=le&8191,C=le>>>13,z=y[3]|0,G=z&8191,se=z>>>13,ue=y[4]|0,re=ue&8191,be=ue>>>13,ht=y[5]|0,Se=ht&8191,Ee=ht>>>13,Je=y[6]|0,ve=Je&8191,Re=Je>>>13,Qe=y[7]|0,_e=Qe&8191,m=Qe>>>13,l=y[8]|0,h=l&8191,v=l>>>13,B=y[9]|0,F=B&8191,U=B>>>13,he=_[0]|0,ae=he&8191,ie=he>>>13,Me=_[1]|0,ne=Me&8191,Ce=Me>>>13,_r=_[2]|0,ke=_r&8191,Ie=_r>>>13,Er=_[3]|0,xe=Er&8191,Ae=Er>>>13,Sr=_[4]|0,Te=Sr&8191,Be=Sr>>>13,Rr=_[5]|0,Ne=Rr&8191,Le=Rr>>>13,Mr=_[6]|0,Pe=Mr&8191,Oe=Mr>>>13,Cr=_[7]|0,Fe=Cr&8191,De=Cr>>>13,kr=_[8]|0,je=kr&8191,Ue=kr>>>13,Ir=_[9]|0,He=Ir&8191,$e=Ir>>>13;w.negative=o.negative^d.negative,w.length=19,b=Math.imul(J,ae),u=Math.imul(J,ie),u=u+Math.imul(A,ae)|0,S=Math.imul(A,ie);var qt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(qt>>>26)|0,qt&=67108863,b=Math.imul(W,ae),u=Math.imul(W,ie),u=u+Math.imul(Z,ae)|0,S=Math.imul(Z,ie),b=b+Math.imul(J,ne)|0,u=u+Math.imul(J,Ce)|0,u=u+Math.imul(A,ne)|0,S=S+Math.imul(A,Ce)|0;var Gt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,b=Math.imul(R,ae),u=Math.imul(R,ie),u=u+Math.imul(C,ae)|0,S=Math.imul(C,ie),b=b+Math.imul(W,ne)|0,u=u+Math.imul(W,Ce)|0,u=u+Math.imul(Z,ne)|0,S=S+Math.imul(Z,Ce)|0,b=b+Math.imul(J,ke)|0,u=u+Math.imul(J,Ie)|0,u=u+Math.imul(A,ke)|0,S=S+Math.imul(A,Ie)|0;var Jt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(G,ae),u=Math.imul(G,ie),u=u+Math.imul(se,ae)|0,S=Math.imul(se,ie),b=b+Math.imul(R,ne)|0,u=u+Math.imul(R,Ce)|0,u=u+Math.imul(C,ne)|0,S=S+Math.imul(C,Ce)|0,b=b+Math.imul(W,ke)|0,u=u+Math.imul(W,Ie)|0,u=u+Math.imul(Z,ke)|0,S=S+Math.imul(Z,Ie)|0,b=b+Math.imul(J,xe)|0,u=u+Math.imul(J,Ae)|0,u=u+Math.imul(A,xe)|0,S=S+Math.imul(A,Ae)|0;var Zt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,b=Math.imul(re,ae),u=Math.imul(re,ie),u=u+Math.imul(be,ae)|0,S=Math.imul(be,ie),b=b+Math.imul(G,ne)|0,u=u+Math.imul(G,Ce)|0,u=u+Math.imul(se,ne)|0,S=S+Math.imul(se,Ce)|0,b=b+Math.imul(R,ke)|0,u=u+Math.imul(R,Ie)|0,u=u+Math.imul(C,ke)|0,S=S+Math.imul(C,Ie)|0,b=b+Math.imul(W,xe)|0,u=u+Math.imul(W,Ae)|0,u=u+Math.imul(Z,xe)|0,S=S+Math.imul(Z,Ae)|0,b=b+Math.imul(J,Te)|0,u=u+Math.imul(J,Be)|0,u=u+Math.imul(A,Te)|0,S=S+Math.imul(A,Be)|0;var Kt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,b=Math.imul(Se,ae),u=Math.imul(Se,ie),u=u+Math.imul(Ee,ae)|0,S=Math.imul(Ee,ie),b=b+Math.imul(re,ne)|0,u=u+Math.imul(re,Ce)|0,u=u+Math.imul(be,ne)|0,S=S+Math.imul(be,Ce)|0,b=b+Math.imul(G,ke)|0,u=u+Math.imul(G,Ie)|0,u=u+Math.imul(se,ke)|0,S=S+Math.imul(se,Ie)|0,b=b+Math.imul(R,xe)|0,u=u+Math.imul(R,Ae)|0,u=u+Math.imul(C,xe)|0,S=S+Math.imul(C,Ae)|0,b=b+Math.imul(W,Te)|0,u=u+Math.imul(W,Be)|0,u=u+Math.imul(Z,Te)|0,S=S+Math.imul(Z,Be)|0,b=b+Math.imul(J,Ne)|0,u=u+Math.imul(J,Le)|0,u=u+Math.imul(A,Ne)|0,S=S+Math.imul(A,Le)|0;var Qt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,b=Math.imul(ve,ae),u=Math.imul(ve,ie),u=u+Math.imul(Re,ae)|0,S=Math.imul(Re,ie),b=b+Math.imul(Se,ne)|0,u=u+Math.imul(Se,Ce)|0,u=u+Math.imul(Ee,ne)|0,S=S+Math.imul(Ee,Ce)|0,b=b+Math.imul(re,ke)|0,u=u+Math.imul(re,Ie)|0,u=u+Math.imul(be,ke)|0,S=S+Math.imul(be,Ie)|0,b=b+Math.imul(G,xe)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(se,xe)|0,S=S+Math.imul(se,Ae)|0,b=b+Math.imul(R,Te)|0,u=u+Math.imul(R,Be)|0,u=u+Math.imul(C,Te)|0,S=S+Math.imul(C,Be)|0,b=b+Math.imul(W,Ne)|0,u=u+Math.imul(W,Le)|0,u=u+Math.imul(Z,Ne)|0,S=S+Math.imul(Z,Le)|0,b=b+Math.imul(J,Pe)|0,u=u+Math.imul(J,Oe)|0,u=u+Math.imul(A,Pe)|0,S=S+Math.imul(A,Oe)|0;var Yt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(_e,ae),u=Math.imul(_e,ie),u=u+Math.imul(m,ae)|0,S=Math.imul(m,ie),b=b+Math.imul(ve,ne)|0,u=u+Math.imul(ve,Ce)|0,u=u+Math.imul(Re,ne)|0,S=S+Math.imul(Re,Ce)|0,b=b+Math.imul(Se,ke)|0,u=u+Math.imul(Se,Ie)|0,u=u+Math.imul(Ee,ke)|0,S=S+Math.imul(Ee,Ie)|0,b=b+Math.imul(re,xe)|0,u=u+Math.imul(re,Ae)|0,u=u+Math.imul(be,xe)|0,S=S+Math.imul(be,Ae)|0,b=b+Math.imul(G,Te)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(se,Te)|0,S=S+Math.imul(se,Be)|0,b=b+Math.imul(R,Ne)|0,u=u+Math.imul(R,Le)|0,u=u+Math.imul(C,Ne)|0,S=S+Math.imul(C,Le)|0,b=b+Math.imul(W,Pe)|0,u=u+Math.imul(W,Oe)|0,u=u+Math.imul(Z,Pe)|0,S=S+Math.imul(Z,Oe)|0,b=b+Math.imul(J,Fe)|0,u=u+Math.imul(J,De)|0,u=u+Math.imul(A,Fe)|0,S=S+Math.imul(A,De)|0;var Xt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,b=Math.imul(h,ae),u=Math.imul(h,ie),u=u+Math.imul(v,ae)|0,S=Math.imul(v,ie),b=b+Math.imul(_e,ne)|0,u=u+Math.imul(_e,Ce)|0,u=u+Math.imul(m,ne)|0,S=S+Math.imul(m,Ce)|0,b=b+Math.imul(ve,ke)|0,u=u+Math.imul(ve,Ie)|0,u=u+Math.imul(Re,ke)|0,S=S+Math.imul(Re,Ie)|0,b=b+Math.imul(Se,xe)|0,u=u+Math.imul(Se,Ae)|0,u=u+Math.imul(Ee,xe)|0,S=S+Math.imul(Ee,Ae)|0,b=b+Math.imul(re,Te)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(be,Te)|0,S=S+Math.imul(be,Be)|0,b=b+Math.imul(G,Ne)|0,u=u+Math.imul(G,Le)|0,u=u+Math.imul(se,Ne)|0,S=S+Math.imul(se,Le)|0,b=b+Math.imul(R,Pe)|0,u=u+Math.imul(R,Oe)|0,u=u+Math.imul(C,Pe)|0,S=S+Math.imul(C,Oe)|0,b=b+Math.imul(W,Fe)|0,u=u+Math.imul(W,De)|0,u=u+Math.imul(Z,Fe)|0,S=S+Math.imul(Z,De)|0,b=b+Math.imul(J,je)|0,u=u+Math.imul(J,Ue)|0,u=u+Math.imul(A,je)|0,S=S+Math.imul(A,Ue)|0;var er=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(er>>>26)|0,er&=67108863,b=Math.imul(F,ae),u=Math.imul(F,ie),u=u+Math.imul(U,ae)|0,S=Math.imul(U,ie),b=b+Math.imul(h,ne)|0,u=u+Math.imul(h,Ce)|0,u=u+Math.imul(v,ne)|0,S=S+Math.imul(v,Ce)|0,b=b+Math.imul(_e,ke)|0,u=u+Math.imul(_e,Ie)|0,u=u+Math.imul(m,ke)|0,S=S+Math.imul(m,Ie)|0,b=b+Math.imul(ve,xe)|0,u=u+Math.imul(ve,Ae)|0,u=u+Math.imul(Re,xe)|0,S=S+Math.imul(Re,Ae)|0,b=b+Math.imul(Se,Te)|0,u=u+Math.imul(Se,Be)|0,u=u+Math.imul(Ee,Te)|0,S=S+Math.imul(Ee,Be)|0,b=b+Math.imul(re,Ne)|0,u=u+Math.imul(re,Le)|0,u=u+Math.imul(be,Ne)|0,S=S+Math.imul(be,Le)|0,b=b+Math.imul(G,Pe)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(se,Pe)|0,S=S+Math.imul(se,Oe)|0,b=b+Math.imul(R,Fe)|0,u=u+Math.imul(R,De)|0,u=u+Math.imul(C,Fe)|0,S=S+Math.imul(C,De)|0,b=b+Math.imul(W,je)|0,u=u+Math.imul(W,Ue)|0,u=u+Math.imul(Z,je)|0,S=S+Math.imul(Z,Ue)|0,b=b+Math.imul(J,He)|0,u=u+Math.imul(J,$e)|0,u=u+Math.imul(A,He)|0,S=S+Math.imul(A,$e)|0;var tr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,b=Math.imul(F,ne),u=Math.imul(F,Ce),u=u+Math.imul(U,ne)|0,S=Math.imul(U,Ce),b=b+Math.imul(h,ke)|0,u=u+Math.imul(h,Ie)|0,u=u+Math.imul(v,ke)|0,S=S+Math.imul(v,Ie)|0,b=b+Math.imul(_e,xe)|0,u=u+Math.imul(_e,Ae)|0,u=u+Math.imul(m,xe)|0,S=S+Math.imul(m,Ae)|0,b=b+Math.imul(ve,Te)|0,u=u+Math.imul(ve,Be)|0,u=u+Math.imul(Re,Te)|0,S=S+Math.imul(Re,Be)|0,b=b+Math.imul(Se,Ne)|0,u=u+Math.imul(Se,Le)|0,u=u+Math.imul(Ee,Ne)|0,S=S+Math.imul(Ee,Le)|0,b=b+Math.imul(re,Pe)|0,u=u+Math.imul(re,Oe)|0,u=u+Math.imul(be,Pe)|0,S=S+Math.imul(be,Oe)|0,b=b+Math.imul(G,Fe)|0,u=u+Math.imul(G,De)|0,u=u+Math.imul(se,Fe)|0,S=S+Math.imul(se,De)|0,b=b+Math.imul(R,je)|0,u=u+Math.imul(R,Ue)|0,u=u+Math.imul(C,je)|0,S=S+Math.imul(C,Ue)|0,b=b+Math.imul(W,He)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(Z,He)|0,S=S+Math.imul(Z,$e)|0;var rr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(F,ke),u=Math.imul(F,Ie),u=u+Math.imul(U,ke)|0,S=Math.imul(U,Ie),b=b+Math.imul(h,xe)|0,u=u+Math.imul(h,Ae)|0,u=u+Math.imul(v,xe)|0,S=S+Math.imul(v,Ae)|0,b=b+Math.imul(_e,Te)|0,u=u+Math.imul(_e,Be)|0,u=u+Math.imul(m,Te)|0,S=S+Math.imul(m,Be)|0,b=b+Math.imul(ve,Ne)|0,u=u+Math.imul(ve,Le)|0,u=u+Math.imul(Re,Ne)|0,S=S+Math.imul(Re,Le)|0,b=b+Math.imul(Se,Pe)|0,u=u+Math.imul(Se,Oe)|0,u=u+Math.imul(Ee,Pe)|0,S=S+Math.imul(Ee,Oe)|0,b=b+Math.imul(re,Fe)|0,u=u+Math.imul(re,De)|0,u=u+Math.imul(be,Fe)|0,S=S+Math.imul(be,De)|0,b=b+Math.imul(G,je)|0,u=u+Math.imul(G,Ue)|0,u=u+Math.imul(se,je)|0,S=S+Math.imul(se,Ue)|0,b=b+Math.imul(R,He)|0,u=u+Math.imul(R,$e)|0,u=u+Math.imul(C,He)|0,S=S+Math.imul(C,$e)|0;var nr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(nr>>>26)|0,nr&=67108863,b=Math.imul(F,xe),u=Math.imul(F,Ae),u=u+Math.imul(U,xe)|0,S=Math.imul(U,Ae),b=b+Math.imul(h,Te)|0,u=u+Math.imul(h,Be)|0,u=u+Math.imul(v,Te)|0,S=S+Math.imul(v,Be)|0,b=b+Math.imul(_e,Ne)|0,u=u+Math.imul(_e,Le)|0,u=u+Math.imul(m,Ne)|0,S=S+Math.imul(m,Le)|0,b=b+Math.imul(ve,Pe)|0,u=u+Math.imul(ve,Oe)|0,u=u+Math.imul(Re,Pe)|0,S=S+Math.imul(Re,Oe)|0,b=b+Math.imul(Se,Fe)|0,u=u+Math.imul(Se,De)|0,u=u+Math.imul(Ee,Fe)|0,S=S+Math.imul(Ee,De)|0,b=b+Math.imul(re,je)|0,u=u+Math.imul(re,Ue)|0,u=u+Math.imul(be,je)|0,S=S+Math.imul(be,Ue)|0,b=b+Math.imul(G,He)|0,u=u+Math.imul(G,$e)|0,u=u+Math.imul(se,He)|0,S=S+Math.imul(se,$e)|0;var ir=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ir>>>26)|0,ir&=67108863,b=Math.imul(F,Te),u=Math.imul(F,Be),u=u+Math.imul(U,Te)|0,S=Math.imul(U,Be),b=b+Math.imul(h,Ne)|0,u=u+Math.imul(h,Le)|0,u=u+Math.imul(v,Ne)|0,S=S+Math.imul(v,Le)|0,b=b+Math.imul(_e,Pe)|0,u=u+Math.imul(_e,Oe)|0,u=u+Math.imul(m,Pe)|0,S=S+Math.imul(m,Oe)|0,b=b+Math.imul(ve,Fe)|0,u=u+Math.imul(ve,De)|0,u=u+Math.imul(Re,Fe)|0,S=S+Math.imul(Re,De)|0,b=b+Math.imul(Se,je)|0,u=u+Math.imul(Se,Ue)|0,u=u+Math.imul(Ee,je)|0,S=S+Math.imul(Ee,Ue)|0,b=b+Math.imul(re,He)|0,u=u+Math.imul(re,$e)|0,u=u+Math.imul(be,He)|0,S=S+Math.imul(be,$e)|0;var sr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(sr>>>26)|0,sr&=67108863,b=Math.imul(F,Ne),u=Math.imul(F,Le),u=u+Math.imul(U,Ne)|0,S=Math.imul(U,Le),b=b+Math.imul(h,Pe)|0,u=u+Math.imul(h,Oe)|0,u=u+Math.imul(v,Pe)|0,S=S+Math.imul(v,Oe)|0,b=b+Math.imul(_e,Fe)|0,u=u+Math.imul(_e,De)|0,u=u+Math.imul(m,Fe)|0,S=S+Math.imul(m,De)|0,b=b+Math.imul(ve,je)|0,u=u+Math.imul(ve,Ue)|0,u=u+Math.imul(Re,je)|0,S=S+Math.imul(Re,Ue)|0,b=b+Math.imul(Se,He)|0,u=u+Math.imul(Se,$e)|0,u=u+Math.imul(Ee,He)|0,S=S+Math.imul(Ee,$e)|0;var es=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(es>>>26)|0,es&=67108863,b=Math.imul(F,Pe),u=Math.imul(F,Oe),u=u+Math.imul(U,Pe)|0,S=Math.imul(U,Oe),b=b+Math.imul(h,Fe)|0,u=u+Math.imul(h,De)|0,u=u+Math.imul(v,Fe)|0,S=S+Math.imul(v,De)|0,b=b+Math.imul(_e,je)|0,u=u+Math.imul(_e,Ue)|0,u=u+Math.imul(m,je)|0,S=S+Math.imul(m,Ue)|0,b=b+Math.imul(ve,He)|0,u=u+Math.imul(ve,$e)|0,u=u+Math.imul(Re,He)|0,S=S+Math.imul(Re,$e)|0;var ts=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ts>>>26)|0,ts&=67108863,b=Math.imul(F,Fe),u=Math.imul(F,De),u=u+Math.imul(U,Fe)|0,S=Math.imul(U,De),b=b+Math.imul(h,je)|0,u=u+Math.imul(h,Ue)|0,u=u+Math.imul(v,je)|0,S=S+Math.imul(v,Ue)|0,b=b+Math.imul(_e,He)|0,u=u+Math.imul(_e,$e)|0,u=u+Math.imul(m,He)|0,S=S+Math.imul(m,$e)|0;var rs=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(rs>>>26)|0,rs&=67108863,b=Math.imul(F,je),u=Math.imul(F,Ue),u=u+Math.imul(U,je)|0,S=Math.imul(U,Ue),b=b+Math.imul(h,He)|0,u=u+Math.imul(h,$e)|0,u=u+Math.imul(v,He)|0,S=S+Math.imul(v,$e)|0;var ns=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ns>>>26)|0,ns&=67108863,b=Math.imul(F,He),u=Math.imul(F,$e),u=u+Math.imul(U,He)|0,S=Math.imul(U,$e);var is=(T+b|0)+((u&8191)<<13)|0;return T=(S+(u>>>13)|0)+(is>>>26)|0,is&=67108863,k[0]=qt,k[1]=Gt,k[2]=Jt,k[3]=Zt,k[4]=Kt,k[5]=Qt,k[6]=Yt,k[7]=Xt,k[8]=er,k[9]=tr,k[10]=rr,k[11]=nr,k[12]=ir,k[13]=sr,k[14]=es,k[15]=ts,k[16]=rs,k[17]=ns,k[18]=is,T!==0&&(k[19]=T,w.length++),w};Math.imul||(L=x);function O(I,o,d){d.negative=o.negative^I.negative,d.length=I.length+o.length;for(var w=0,y=0,_=0;_<d.length-1;_++){var k=y;y=0;for(var T=w&67108863,b=Math.min(_,o.length-1),u=Math.max(0,_-I.length+1);u<=b;u++){var S=_-u,K=I.words[S]|0,J=o.words[u]|0,A=K*J,P=A&67108863;k=k+(A/67108864|0)|0,P=P+T|0,T=P&67108863,k=k+(P>>>26)|0,y+=k>>>26,k&=67108863}d.words[_]=T,w=k,k=y}return w!==0?d.words[_]=w:d.length--,d._strip()}function V(I,o,d){return O(I,o,d)}s.prototype.mulTo=function(o,d){var w,y=this.length+o.length;return this.length===10&&o.length===10?w=L(this,o,d):y<63?w=x(this,o,d):y<1024?w=O(this,o,d):w=V(this,o,d),w},s.prototype.mul=function(o){var d=new s(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},s.prototype.mulf=function(o){var d=new s(null);return d.words=new Array(this.length+o.length),V(this,o,d)},s.prototype.imul=function(o){return this.clone().mulTo(o,this)},s.prototype.imuln=function(o){var d=o<0;d&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var w=0,y=0;y<this.length;y++){var _=(this.words[y]|0)*o,k=(_&67108863)+(w&67108863);w>>=26,w+=_/67108864|0,w+=k>>>26,this.words[y]=k&67108863}return w!==0&&(this.words[y]=w,this.length++),this.length=o===0?1:this.length,d?this.ineg():this},s.prototype.muln=function(o){return this.clone().imuln(o)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(o){var d=$(o);if(d.length===0)return new s(1);for(var w=this,y=0;y<d.length&&d[y]===0;y++,w=w.sqr());if(++y<d.length)for(var _=w.sqr();y<d.length;y++,_=_.sqr())d[y]!==0&&(w=w.mul(_));return w},s.prototype.iushln=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26,y=67108863>>>26-d<<26-d,_;if(d!==0){var k=0;for(_=0;_<this.length;_++){var T=this.words[_]&y,b=(this.words[_]|0)-T<<d;this.words[_]=b|k,k=T>>>26-d}k&&(this.words[_]=k,this.length++)}if(w!==0){for(_=this.length-1;_>=0;_--)this.words[_+w]=this.words[_];for(_=0;_<w;_++)this.words[_]=0;this.length+=w}return this._strip()},s.prototype.ishln=function(o){return n(this.negative===0),this.iushln(o)},s.prototype.iushrn=function(o,d,w){n(typeof o=="number"&&o>=0);var y;d?y=(d-d%26)/26:y=0;var _=o%26,k=Math.min((o-_)/26,this.length),T=67108863^67108863>>>_<<_,b=w;if(y-=k,y=Math.max(0,y),b){for(var u=0;u<k;u++)b.words[u]=this.words[u];b.length=k}if(k!==0)if(this.length>k)for(this.length-=k,u=0;u<this.length;u++)this.words[u]=this.words[u+k];else this.words[0]=0,this.length=1;var S=0;for(u=this.length-1;u>=0&&(S!==0||u>=y);u--){var K=this.words[u]|0;this.words[u]=S<<26-_|K>>>_,S=K&T}return b&&S!==0&&(b.words[b.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(o,d,w){return n(this.negative===0),this.iushrn(o,d,w)},s.prototype.shln=function(o){return this.clone().ishln(o)},s.prototype.ushln=function(o){return this.clone().iushln(o)},s.prototype.shrn=function(o){return this.clone().ishrn(o)},s.prototype.ushrn=function(o){return this.clone().iushrn(o)},s.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26,y=1<<d;if(this.length<=w)return!1;var _=this.words[w];return!!(_&y)},s.prototype.imaskn=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(d!==0&&w++,this.length=Math.min(w,this.length),d!==0){var y=67108863^67108863>>>d<<d;this.words[this.length-1]&=y}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.maskn=function(o){return this.clone().imaskn(o)},s.prototype.iaddn=function(o){return n(typeof o=="number"),n(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},s.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},s.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},s.prototype.addn=function(o){return this.clone().iaddn(o)},s.prototype.subn=function(o){return this.clone().isubn(o)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(o,d,w){var y=o.length+w,_;this._expand(y);var k,T=0;for(_=0;_<o.length;_++){k=(this.words[_+w]|0)+T;var b=(o.words[_]|0)*d;k-=b&67108863,T=(k>>26)-(b/67108864|0),this.words[_+w]=k&67108863}for(;_<this.length-w;_++)k=(this.words[_+w]|0)+T,T=k>>26,this.words[_+w]=k&67108863;if(T===0)return this._strip();for(n(T===-1),T=0,_=0;_<this.length;_++)k=-(this.words[_]|0)+T,T=k>>26,this.words[_]=k&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(o,d){var w=this.length-o.length,y=this.clone(),_=o,k=_.words[_.length-1]|0,T=this._countBits(k);w=26-T,w!==0&&(_=_.ushln(w),y.iushln(w),k=_.words[_.length-1]|0);var b=y.length-_.length,u;if(d!=="mod"){u=new s(null),u.length=b+1,u.words=new Array(u.length);for(var S=0;S<u.length;S++)u.words[S]=0}var K=y.clone()._ishlnsubmul(_,1,b);K.negative===0&&(y=K,u&&(u.words[b]=1));for(var J=b-1;J>=0;J--){var A=(y.words[_.length+J]|0)*67108864+(y.words[_.length+J-1]|0);for(A=Math.min(A/k|0,67108863),y._ishlnsubmul(_,A,J);y.negative!==0;)A--,y.negative=0,y._ishlnsubmul(_,1,J),y.isZero()||(y.negative^=1);u&&(u.words[J]=A)}return u&&u._strip(),y._strip(),d!=="div"&&w!==0&&y.iushrn(w),{div:u||null,mod:y}},s.prototype.divmod=function(o,d,w){if(n(!o.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var y,_,k;return this.negative!==0&&o.negative===0?(k=this.neg().divmod(o,d),d!=="mod"&&(y=k.div.neg()),d!=="div"&&(_=k.mod.neg(),w&&_.negative!==0&&_.iadd(o)),{div:y,mod:_}):this.negative===0&&o.negative!==0?(k=this.divmod(o.neg(),d),d!=="mod"&&(y=k.div.neg()),{div:y,mod:k.mod}):this.negative&o.negative?(k=this.neg().divmod(o.neg(),d),d!=="div"&&(_=k.mod.neg(),w&&_.negative!==0&&_.isub(o)),{div:k.div,mod:_}):o.length>this.length||this.cmp(o)<0?{div:new s(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new s(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new s(this.modrn(o.words[0]))}:this._wordDiv(o,d)},s.prototype.div=function(o){return this.divmod(o,"div",!1).div},s.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},s.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},s.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var w=d.div.negative!==0?d.mod.isub(o):d.mod,y=o.ushrn(1),_=o.andln(1),k=w.cmp(y);return k<0||_===1&&k===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},s.prototype.modrn=function(o){var d=o<0;d&&(o=-o),n(o<=67108863);for(var w=(1<<26)%o,y=0,_=this.length-1;_>=0;_--)y=(w*y+(this.words[_]|0))%o;return d?-y:y},s.prototype.modn=function(o){return this.modrn(o)},s.prototype.idivn=function(o){var d=o<0;d&&(o=-o),n(o<=67108863);for(var w=0,y=this.length-1;y>=0;y--){var _=(this.words[y]|0)+w*67108864;this.words[y]=_/o|0,w=_%o}return this._strip(),d?this.ineg():this},s.prototype.divn=function(o){return this.clone().idivn(o)},s.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var d=this,w=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new s(1),_=new s(0),k=new s(0),T=new s(1),b=0;d.isEven()&&w.isEven();)d.iushrn(1),w.iushrn(1),++b;for(var u=w.clone(),S=d.clone();!d.isZero();){for(var K=0,J=1;!(d.words[0]&J)&&K<26;++K,J<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(y.isOdd()||_.isOdd())&&(y.iadd(u),_.isub(S)),y.iushrn(1),_.iushrn(1);for(var A=0,P=1;!(w.words[0]&P)&&A<26;++A,P<<=1);if(A>0)for(w.iushrn(A);A-- >0;)(k.isOdd()||T.isOdd())&&(k.iadd(u),T.isub(S)),k.iushrn(1),T.iushrn(1);d.cmp(w)>=0?(d.isub(w),y.isub(k),_.isub(T)):(w.isub(d),k.isub(y),T.isub(_))}return{a:k,b:T,gcd:w.iushln(b)}},s.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var d=this,w=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new s(1),_=new s(0),k=w.clone();d.cmpn(1)>0&&w.cmpn(1)>0;){for(var T=0,b=1;!(d.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(d.iushrn(T);T-- >0;)y.isOdd()&&y.iadd(k),y.iushrn(1);for(var u=0,S=1;!(w.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(w.iushrn(u);u-- >0;)_.isOdd()&&_.iadd(k),_.iushrn(1);d.cmp(w)>=0?(d.isub(w),y.isub(_)):(w.isub(d),_.isub(y))}var K;return d.cmpn(1)===0?K=y:K=_,K.cmpn(0)<0&&K.iadd(o),K},s.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),w=o.clone();d.negative=0,w.negative=0;for(var y=0;d.isEven()&&w.isEven();y++)d.iushrn(1),w.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;w.isEven();)w.iushrn(1);var _=d.cmp(w);if(_<0){var k=d;d=w,w=k}else if(_===0||w.cmpn(1)===0)break;d.isub(w)}while(!0);return w.iushln(y)},s.prototype.invm=function(o){return this.egcd(o).a.umod(o)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(o){return this.words[0]&o},s.prototype.bincn=function(o){n(typeof o=="number");var d=o%26,w=(o-d)/26,y=1<<d;if(this.length<=w)return this._expand(w+1),this.words[w]|=y,this;for(var _=y,k=w;_!==0&&k<this.length;k++){var T=this.words[k]|0;T+=_,_=T>>>26,T&=67108863,this.words[k]=T}return _!==0&&(this.words[k]=_,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var w;if(this.length>1)w=1;else{d&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;w=y===o?0:y<o?-1:1}return this.negative!==0?-w|0:w},s.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},s.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,w=this.length-1;w>=0;w--){var y=this.words[w]|0,_=o.words[w]|0;if(y!==_){y<_?d=-1:y>_&&(d=1);break}}return d},s.prototype.gtn=function(o){return this.cmpn(o)===1},s.prototype.gt=function(o){return this.cmp(o)===1},s.prototype.gten=function(o){return this.cmpn(o)>=0},s.prototype.gte=function(o){return this.cmp(o)>=0},s.prototype.ltn=function(o){return this.cmpn(o)===-1},s.prototype.lt=function(o){return this.cmp(o)===-1},s.prototype.lten=function(o){return this.cmpn(o)<=0},s.prototype.lte=function(o){return this.cmp(o)<=0},s.prototype.eqn=function(o){return this.cmpn(o)===0},s.prototype.eq=function(o){return this.cmp(o)===0},s.red=function(o){return new oe(o)},s.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(o){return this.red=o,this},s.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},s.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},s.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},s.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},s.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},s.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},s.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},s.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function q(I,o){this.name=I,this.p=new s(o,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var o=new s(null);return o.words=new Array(Math.ceil(this.n/13)),o},q.prototype.ireduce=function(o){var d=o,w;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),w=d.bitLength();while(w>this.n);var y=w<this.n?-1:d.ucmp(this.p);return y===0?(d.words[0]=0,d.length=1):y>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},q.prototype.split=function(o,d){o.iushrn(this.n,0,d)},q.prototype.imulK=function(o){return o.imul(this.k)};function te(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(te,q),te.prototype.split=function(o,d){for(var w=4194303,y=Math.min(o.length,9),_=0;_<y;_++)d.words[_]=o.words[_];if(d.length=y,o.length<=9){o.words[0]=0,o.length=1;return}var k=o.words[9];for(d.words[d.length++]=k&w,_=10;_<o.length;_++){var T=o.words[_]|0;o.words[_-10]=(T&w)<<4|k>>>22,k=T}k>>>=22,o.words[_-10]=k,k===0&&o.length>10?o.length-=10:o.length-=9},te.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,w=0;w<o.length;w++){var y=o.words[w]|0;d+=y*977,o.words[w]=d&67108863,d=y*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Y,q);function Q(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Q,q);function fe(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(fe,q),fe.prototype.imulK=function(o){for(var d=0,w=0;w<o.length;w++){var y=(o.words[w]|0)*19+d,_=y&67108863;y>>>=26,o.words[w]=_,d=y}return d!==0&&(o.words[o.length++]=d),o},s._prime=function(o){if(j[o])return j[o];var d;if(o==="k256")d=new te;else if(o==="p224")d=new Y;else if(o==="p192")d=new Q;else if(o==="p25519")d=new fe;else throw new Error("Unknown prime "+o);return j[o]=d,d};function oe(I){if(typeof I=="string"){var o=s._prime(I);this.m=o.p,this.prime=o}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}oe.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},oe.prototype._verify2=function(o,d){n((o.negative|d.negative)===0,"red works only with positives"),n(o.red&&o.red===d.red,"red works only with red numbers")},oe.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(p(o,o.umod(this.m)._forceRed(this)),o)},oe.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},oe.prototype.add=function(o,d){this._verify2(o,d);var w=o.add(d);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},oe.prototype.iadd=function(o,d){this._verify2(o,d);var w=o.iadd(d);return w.cmp(this.m)>=0&&w.isub(this.m),w},oe.prototype.sub=function(o,d){this._verify2(o,d);var w=o.sub(d);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},oe.prototype.isub=function(o,d){this._verify2(o,d);var w=o.isub(d);return w.cmpn(0)<0&&w.iadd(this.m),w},oe.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},oe.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},oe.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},oe.prototype.isqr=function(o){return this.imul(o,o.clone())},oe.prototype.sqr=function(o){return this.mul(o,o)},oe.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(o,w)}for(var y=this.m.subn(1),_=0;!y.isZero()&&y.andln(1)===0;)_++,y.iushrn(1);n(!y.isZero());var k=new s(1).toRed(this),T=k.redNeg(),b=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);this.pow(u,b).cmp(T)!==0;)u.redIAdd(T);for(var S=this.pow(u,y),K=this.pow(o,y.addn(1).iushrn(1)),J=this.pow(o,y),A=_;J.cmp(k)!==0;){for(var P=J,W=0;P.cmp(k)!==0;W++)P=P.redSqr();n(W<A);var Z=this.pow(S,new s(1).iushln(A-W-1));K=K.redMul(Z),S=Z.redSqr(),J=J.redMul(S),A=W}return K},oe.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},oe.prototype.pow=function(o,d){if(d.isZero())return new s(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var w=4,y=new Array(1<<w);y[0]=new s(1).toRed(this),y[1]=o;for(var _=2;_<y.length;_++)y[_]=this.mul(y[_-1],o);var k=y[0],T=0,b=0,u=d.bitLength()%26;for(u===0&&(u=26),_=d.length-1;_>=0;_--){for(var S=d.words[_],K=u-1;K>=0;K--){var J=S>>K&1;if(k!==y[0]&&(k=this.sqr(k)),J===0&&T===0){b=0;continue}T<<=1,T|=J,b++,!(b!==w&&(_!==0||K!==0))&&(k=this.mul(k,y[T]),b=0,T=0)}u=26}return k},oe.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},oe.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},s.mont=function(o){return new pe(o)};function pe(I){oe.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(pe,oe),pe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},pe.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},pe.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var w=o.imul(d),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),k=_;return _.cmp(this.m)>=0?k=_.isub(this.m):_.cmpn(0)<0&&(k=_.iadd(this.m)),k._forceRed(this)},pe.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new s(0)._forceRed(this);var w=o.mul(d),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),k=_;return _.cmp(this.m)>=0?k=_.isub(this.m):_.cmpn(0)<0&&(k=_.iadd(this.m)),k._forceRed(this)},pe.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(e,ee)})(qs);var ai=qs.exports,fn={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.errorValues=Ft.standardErrorCodes=void 0;Ft.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};Ft.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}};var ci={},li={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ft,r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(E,N=r){if(E&&Number.isInteger(E)){const H=E.toString();if(p(t.errorValues,H))return t.errorValues[H].message;if(f(E))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return N}e.getMessageFromCode=n;function i(E){if(!Number.isInteger(E))return!1;const N=E.toString();return!!(t.errorValues[N]||f(E))}e.isValidCode=i;function s(E){var N;if(typeof E=="number")return E;if(c(E))return(N=E.code)!==null&&N!==void 0?N:E.errorCode}e.getErrorCode=s;function c(E){return typeof E=="object"&&E!==null&&(typeof E.code=="number"||typeof E.errorCode=="number")}function a(E,{shouldIncludeStack:N=!1}={}){const H={};if(E&&typeof E=="object"&&!Array.isArray(E)&&p(E,"code")&&i(E.code)){const D=E;H.code=D.code,D.message&&typeof D.message=="string"?(H.message=D.message,p(D,"data")&&(H.data=D.data)):(H.message=n(H.code),H.data={originalError:g(E)})}else H.code=t.standardErrorCodes.rpc.internal,H.message=M(E,"message")?E.message:r,H.data={originalError:g(E)};return N&&(H.stack=M(E,"stack")?E.stack:void 0),H}e.serialize=a;function f(E){return E>=-32099&&E<=-32e3}function g(E){return E&&typeof E=="object"&&!Array.isArray(E)?Object.assign({},E):E}function p(E,N){return Object.prototype.hasOwnProperty.call(E,N)}function M(E,N){return typeof E=="object"&&E!==null&&N in E&&typeof E[N]=="string"}})(li);Object.defineProperty(ci,"__esModule",{value:!0});ci.standardErrors=void 0;const et=Ft,Ja=li;ci.standardErrors={rpc:{parse:e=>dt(et.standardErrorCodes.rpc.parse,e),invalidRequest:e=>dt(et.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>dt(et.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>dt(et.standardErrorCodes.rpc.methodNotFound,e),internal:e=>dt(et.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return dt(t,e)},invalidInput:e=>dt(et.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>dt(et.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>dt(et.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>dt(et.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>dt(et.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>dt(et.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>xr(et.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>xr(et.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>xr(et.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>xr(et.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>xr(et.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>xr(et.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Qa(t,r,n)}}};function dt(e,t){const[r,n]=Za(t);return new Ka(e,r||(0,Ja.getMessageFromCode)(e),n)}function xr(e,t){const[r,n]=Za(t);return new Qa(e,r||(0,Ja.getMessageFromCode)(e),n)}function Za(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}let Ka=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}},Qa=class extends Ka{constructor(t,r,n){if(!iu(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}};function iu(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}var ui={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.isErrorResponse=void 0;function su(e){return e.errorMessage!==void 0}Jr.isErrorResponse=su;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.LIB_VERSION=void 0;Zr.LIB_VERSION="3.9.3";Object.defineProperty(ui,"__esModule",{value:!0});ui.serializeError=void 0;const ou=Jr,au=Zr,cu=Ft,lu=li;function uu(e,t){const r=(0,lu.serialize)(hu(e),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");n.searchParams.set("version",au.LIB_VERSION),n.searchParams.set("code",r.code.toString());const i=du(r.data,t);return i&&n.searchParams.set("method",i),n.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}ui.serializeError=uu;function hu(e){return typeof e=="string"?{message:e,code:cu.standardErrorCodes.rpc.internal}:(0,ou.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function du(e,t){const r=e?.method;if(r)return r;if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=Ft;Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=ci;Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=ui;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const i=li;Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return i.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}})})(fn);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ProviderType=Ze.RegExpString=Ze.IntNumber=Ze.BigIntString=Ze.AddressString=Ze.HexString=Ze.OpaqueType=void 0;function pn(){return e=>e}Ze.OpaqueType=pn;Ze.HexString=pn();Ze.AddressString=pn();Ze.BigIntString=pn();function fu(e){return Math.floor(e)}Ze.IntNumber=fu;Ze.RegExpString=pn();var Co;(function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""})(Co||(Ze.ProviderType=Co={}));var pu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.isMobileWeb=X.getLocation=X.isInIFrame=X.createQrUrl=X.getFavicon=X.range=X.isBigNumber=X.ensureParsedJSONObject=X.ensureBN=X.ensureRegExpString=X.ensureIntNumber=X.ensureBuffer=X.ensureAddressString=X.ensureEvenLengthHexString=X.ensureHexString=X.isHexString=X.prepend0x=X.strip0x=X.has0xPrefix=X.hexStringFromIntNumber=X.intNumberFromHexString=X.bigIntStringFromBN=X.hexStringFromBuffer=X.hexStringToUint8Array=X.uint8ArrayToHex=X.randomBytesHex=void 0;const $t=pu(ai),wr=fn,wt=Ze,Ya=/^[0-9]*$/,Xa=/^[a-f0-9]*$/;function gu(e){return ec(crypto.getRandomValues(new Uint8Array(e)))}X.randomBytesHex=gu;function ec(e){return[...e].map(t=>t.toString(16).padStart(2,"0")).join("")}X.uint8ArrayToHex=ec;function mu(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}X.hexStringToUint8Array=mu;function wu(e,t=!1){const r=e.toString("hex");return(0,wt.HexString)(t?`0x${r}`:r)}X.hexStringFromBuffer=wu;function yu(e){return(0,wt.BigIntString)(e.toString(10))}X.bigIntStringFromBN=yu;function bu(e){return(0,wt.IntNumber)(new $t.default(mn(e,!1),16).toNumber())}X.intNumberFromHexString=bu;function vu(e){return(0,wt.HexString)(`0x${new $t.default(e).toString(16)}`)}X.hexStringFromIntNumber=vu;function Gs(e){return e.startsWith("0x")||e.startsWith("0X")}X.has0xPrefix=Gs;function hi(e){return Gs(e)?e.slice(2):e}X.strip0x=hi;function tc(e){return Gs(e)?`0x${e.slice(2)}`:`0x${e}`}X.prepend0x=tc;function gn(e){if(typeof e!="string")return!1;const t=hi(e).toLowerCase();return Xa.test(t)}X.isHexString=gn;function rc(e,t=!1){if(typeof e=="string"){const r=hi(e).toLowerCase();if(Xa.test(r))return(0,wt.HexString)(t?`0x${r}`:r)}throw wr.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}X.ensureHexString=rc;function mn(e,t=!1){let r=rc(e,!1);return r.length%2===1&&(r=(0,wt.HexString)(`0${r}`)),t?(0,wt.HexString)(`0x${r}`):r}X.ensureEvenLengthHexString=mn;function _u(e){if(typeof e=="string"){const t=hi(e).toLowerCase();if(gn(t)&&t.length===40)return(0,wt.AddressString)(tc(t))}throw wr.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}X.ensureAddressString=_u;function Eu(e){if(Buffer.isBuffer(e))return e;if(typeof e=="string"){if(gn(e)){const t=mn(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw wr.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}X.ensureBuffer=Eu;function nc(e){if(typeof e=="number"&&Number.isInteger(e))return(0,wt.IntNumber)(e);if(typeof e=="string"){if(Ya.test(e))return(0,wt.IntNumber)(Number(e));if(gn(e))return(0,wt.IntNumber)(new $t.default(mn(e,!1),16).toNumber())}throw wr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureIntNumber=nc;function Su(e){if(e instanceof RegExp)return(0,wt.RegExpString)(e.toString());throw wr.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}X.ensureRegExpString=Su;function Ru(e){if(e!==null&&($t.default.isBN(e)||ic(e)))return new $t.default(e.toString(10),10);if(typeof e=="number")return new $t.default(nc(e));if(typeof e=="string"){if(Ya.test(e))return new $t.default(e,10);if(gn(e))return new $t.default(mn(e,!1),16)}throw wr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureBN=Ru;function Mu(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw wr.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}X.ensureParsedJSONObject=Mu;function ic(e){if(e==null||typeof e.constructor!="function")return!1;const{constructor:t}=e;return typeof t.config=="function"&&typeof t.EUCLID=="number"}X.isBigNumber=ic;function Cu(e,t){return Array.from({length:t-e},(r,n)=>e+n)}X.range=Cu;function ku(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")||n.startsWith("vbscript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`}X.getFavicon=ku;function Iu(e,t,r,n,i,s){const c=n?"parent-id":"id",a=new URLSearchParams({[c]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}X.createQrUrl=Iu;function sc(){try{return window.frameElement!==null}catch{return!1}}X.isInIFrame=sc;function xu(){try{return sc()&&window.top?window.top.location:window.location}catch{return window.location}}X.getLocation=xu;function Au(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}X.isMobileWeb=Au;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.ScopedLocalStorage=void 0;class Tu{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),r=[];for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);typeof i=="string"&&i.startsWith(t)&&r.push(i)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}}di.ScopedLocalStorage=Tu;var Hr={},wn={},yn={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.EVENTS=void 0;Kr.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.RelayAbstract=mt.APP_VERSION_KEY=mt.LOCAL_STORAGE_ADDRESSES_KEY=mt.WALLET_USER_NAME_KEY=void 0;const ko=fn;mt.WALLET_USER_NAME_KEY="walletUsername";mt.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";mt.APP_VERSION_KEY="AppVersion";class Bu{async makeEthereumJSONRPCRequest(t,r){if(!r)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(r,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw ko.standardErrors.rpc.parse({});const i=n,{error:s}=i;if(s)throw(0,ko.serializeError)(s,t.method);return i})}}mt.RelayAbstract=Bu;var Qr={},oc={exports:{}},Ps={exports:{}},bn={},fi={};fi.byteLength=Pu;fi.toByteArray=Fu;fi.fromByteArray=Uu;var At=[],gt=[],Nu=typeof Uint8Array<"u"?Uint8Array:Array,ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ar=0,Lu=ss.length;Ar<Lu;++Ar)At[Ar]=ss[Ar],gt[ss.charCodeAt(Ar)]=Ar;gt[45]=62;gt[95]=63;function ac(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Pu(e){var t=ac(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Ou(e,t,r){return(t+r)*3/4-r}function Fu(e){var t,r=ac(e),n=r[0],i=r[1],s=new Nu(Ou(e,n,i)),c=0,a=i>0?n-4:n,f;for(f=0;f<a;f+=4)t=gt[e.charCodeAt(f)]<<18|gt[e.charCodeAt(f+1)]<<12|gt[e.charCodeAt(f+2)]<<6|gt[e.charCodeAt(f+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=t&255;return i===2&&(t=gt[e.charCodeAt(f)]<<2|gt[e.charCodeAt(f+1)]>>4,s[c++]=t&255),i===1&&(t=gt[e.charCodeAt(f)]<<10|gt[e.charCodeAt(f+1)]<<4|gt[e.charCodeAt(f+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function Du(e){return At[e>>18&63]+At[e>>12&63]+At[e>>6&63]+At[e&63]}function ju(e,t,r){for(var n,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),i.push(Du(n));return i.join("")}function Uu(e){for(var t,r=e.length,n=r%3,i=[],s=16383,c=0,a=r-n;c<a;c+=s)i.push(ju(e,c,c+s>a?a:c+s));return n===1?(t=e[r-1],i.push(At[t>>2]+At[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(At[t>>10]+At[t>>4&63]+At[t<<2&63]+"=")),i.join("")}var Js={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Js.read=function(e,t,r,n,i){var s,c,a=i*8-n-1,f=(1<<a)-1,g=f>>1,p=-7,M=r?i-1:0,E=r?-1:1,N=e[t+M];for(M+=E,s=N&(1<<-p)-1,N>>=-p,p+=a;p>0;s=s*256+e[t+M],M+=E,p-=8);for(c=s&(1<<-p)-1,s>>=-p,p+=n;p>0;c=c*256+e[t+M],M+=E,p-=8);if(s===0)s=1-g;else{if(s===f)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-g}return(N?-1:1)*c*Math.pow(2,s-n)};Js.write=function(e,t,r,n,i,s){var c,a,f,g=s*8-i-1,p=(1<<g)-1,M=p>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:s-1,H=n?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,c=p):(c=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-c))<1&&(c--,f*=2),c+M>=1?t+=E/f:t+=E*Math.pow(2,1-M),t*f>=2&&(c++,f/=2),c+M>=p?(a=0,c=p):c+M>=1?(a=(t*f-1)*Math.pow(2,i),c=c+M):(a=t*Math.pow(2,M-1)*Math.pow(2,i),c=0));i>=8;e[r+N]=a&255,N+=H,a/=256,i-=8);for(c=c<<i|a,g+=i;g>0;e[r+N]=c&255,N+=H,c/=256,g-=8);e[r+N-H]|=D*128};/*!
|
|
1
|
+
import{c as ee,g as dn,a as Gl}from"./_commonjsHelpers-C4iS2aBk.js";import{r as Vs}from"./___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{e as Jl}from"./index-6E4L_h32.js";import{i as St}from"./inherits_browser-BlmhoU4v.js";import{w as Zl,t as Kl,c as Ql,i as Yl}from"./index-Dot3cU3_.js";import{p as Xl,a as eu}from"./hooks.module-Cpp96UEK.js";import{e as ii}from"./events-B5inrCVE.js";import{t as tu}from"./tslib.es6-DbvBTznf.js";function ru(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var zs={},cn={},si={};Object.defineProperty(si,"__esModule",{value:!0});si.walletLogo=void 0;const nu=(e,t)=>{let r;switch(e){case"standard":return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};si.walletLogo=nu;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.LINK_API_URL=void 0;oi.LINK_API_URL="https://www.walletlink.org";var X={},qs={exports:{}};qs.exports;(function(e){(function(t,r){function n(I,o){if(!I)throw new Error(o||"Assertion failed")}function i(I,o){I.super_=o;var d=function(){};d.prototype=o.prototype,I.prototype=new d,I.prototype.constructor=I}function s(I,o,d){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(I||0,o||10,d||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=Vs.Buffer}catch{}s.isBN=function(o){return o instanceof s?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===s.wordSize&&Array.isArray(o.words)},s.max=function(o,d){return o.cmp(d)>0?o:d},s.min=function(o,d){return o.cmp(d)<0?o:d},s.prototype._init=function(o,d,w){if(typeof o=="number")return this._initNumber(o,d,w);if(typeof o=="object")return this._initArray(o,d,w);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y<o.length&&(d===16?this._parseHex(o,y,w):(this._parseBase(o,d,y),w==="le"&&this._initArray(this.toArray(),d,w)))},s.prototype._initNumber=function(o,d,w){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(n(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),d,w)},s.prototype._initArray=function(o,d,w){if(n(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _,k,T=0;if(w==="be")for(y=o.length-1,_=0;y>=0;y-=3)k=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[_]|=k<<T&67108863,this.words[_+1]=k>>>26-T&67108863,T+=24,T>=26&&(T-=26,_++);else if(w==="le")for(y=0,_=0;y<o.length;y+=3)k=o[y]|o[y+1]<<8|o[y+2]<<16,this.words[_]|=k<<T&67108863,this.words[_+1]=k>>>26-T&67108863,T+=24,T>=26&&(T-=26,_++);return this._strip()};function a(I,o){var d=I.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;n(!1,"Invalid character in "+I)}function f(I,o,d){var w=a(I,d);return d-1>=o&&(w|=a(I,d-1)<<4),w}s.prototype._parseHex=function(o,d,w){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var _=0,k=0,T;if(w==="be")for(y=o.length-1;y>=d;y-=2)T=f(o,d,y)<<_,this.words[k]|=T&67108863,_>=18?(_-=18,k+=1,this.words[k]|=T>>>26):_+=8;else{var b=o.length-d;for(y=b%2===0?d+1:d;y<o.length;y+=2)T=f(o,d,y)<<_,this.words[k]|=T&67108863,_>=18?(_-=18,k+=1,this.words[k]|=T>>>26):_+=8}this._strip()};function g(I,o,d,w){for(var y=0,_=0,k=Math.min(I.length,d),T=o;T<k;T++){var b=I.charCodeAt(T)-48;y*=w,b>=49?_=b-49+10:b>=17?_=b-17+10:_=b,n(b>=0&&_<w,"Invalid character"),y+=_}return y}s.prototype._parseBase=function(o,d,w){this.words=[0],this.length=1;for(var y=0,_=1;_<=67108863;_*=d)y++;y--,_=_/d|0;for(var k=o.length-w,T=k%y,b=Math.min(k,k-T)+w,u=0,S=w;S<b;S+=y)u=g(o,S,S+y,d),this.imuln(_),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(T!==0){var K=1;for(u=g(o,S,o.length,d),S=0;S<T;S++)K*=d;this.imuln(K),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function p(I,o){I.words=o.words,I.length=o.length,I.negative=o.negative,I.red=o.red}if(s.prototype._move=function(o){p(o,this)},s.prototype.clone=function(){var o=new s(null);return this.copy(o),o},s.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch{s.prototype.inspect=M}else s.prototype.inspect=M;function M(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var E=["","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"],N=[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],H=[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];s.prototype.toString=function(o,d){o=o||10,d=d|0||1;var w;if(o===16||o==="hex"){w="";for(var y=0,_=0,k=0;k<this.length;k++){var T=this.words[k],b=((T<<y|_)&16777215).toString(16);_=T>>>24-y&16777215,y+=2,y>=26&&(y-=26,k--),_!==0||k!==this.length-1?w=E[6-b.length]+b+w:w=b+w}for(_!==0&&(w=_.toString(16)+w);w.length%d!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(o===(o|0)&&o>=2&&o<=36){var u=N[o],S=H[o];w="";var K=this.clone();for(K.negative=0;!K.isZero();){var J=K.modrn(S).toString(o);K=K.idivn(S),K.isZero()?w=J+w:w=E[u-J.length]+J+w}for(this.isZero()&&(w="0"+w);w.length%d!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},s.prototype.toJSON=function(){return this.toString(16,2)},c&&(s.prototype.toBuffer=function(o,d){return this.toArrayLike(c,o,d)}),s.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var D=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};s.prototype.toArrayLike=function(o,d,w){this._strip();var y=this.byteLength(),_=w||Math.max(1,y);n(y<=_,"byte array longer than desired length"),n(_>0,"Requested array length <= 0");var k=D(o,_),T=d==="le"?"LE":"BE";return this["_toArrayLike"+T](k,y),k},s.prototype._toArrayLikeLE=function(o,d){for(var w=0,y=0,_=0,k=0;_<this.length;_++){var T=this.words[_]<<k|y;o[w++]=T&255,w<o.length&&(o[w++]=T>>8&255),w<o.length&&(o[w++]=T>>16&255),k===6?(w<o.length&&(o[w++]=T>>24&255),y=0,k=0):(y=T>>>24,k+=2)}if(w<o.length)for(o[w++]=y;w<o.length;)o[w++]=0},s.prototype._toArrayLikeBE=function(o,d){for(var w=o.length-1,y=0,_=0,k=0;_<this.length;_++){var T=this.words[_]<<k|y;o[w--]=T&255,w>=0&&(o[w--]=T>>8&255),w>=0&&(o[w--]=T>>16&255),k===6?(w>=0&&(o[w--]=T>>24&255),y=0,k=0):(y=T>>>24,k+=2)}if(w>=0)for(o[w--]=y;w>=0;)o[w--]=0},Math.clz32?s.prototype._countBits=function(o){return 32-Math.clz32(o)}:s.prototype._countBits=function(o){var d=o,w=0;return d>=4096&&(w+=13,d>>>=13),d>=64&&(w+=7,d>>>=7),d>=8&&(w+=4,d>>>=4),d>=2&&(w+=2,d>>>=2),w+d},s.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,w=0;return d&8191||(w+=13,d>>>=13),d&127||(w+=7,d>>>=7),d&15||(w+=4,d>>>=4),d&3||(w+=2,d>>>=2),d&1||w++,w},s.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function $(I){for(var o=new Array(I.bitLength()),d=0;d<o.length;d++){var w=d/26|0,y=d%26;o[d]=I.words[w]>>>y&1}return o}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var w=this._zeroBits(this.words[d]);if(o+=w,w!==26)break}return o},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},s.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},s.prototype.ior=function(o){return n((this.negative|o.negative)===0),this.iuor(o)},s.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},s.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},s.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var w=0;w<d.length;w++)this.words[w]=this.words[w]&o.words[w];return this.length=d.length,this._strip()},s.prototype.iand=function(o){return n((this.negative|o.negative)===0),this.iuand(o)},s.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},s.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},s.prototype.iuxor=function(o){var d,w;this.length>o.length?(d=this,w=o):(d=o,w=this);for(var y=0;y<w.length;y++)this.words[y]=d.words[y]^w.words[y];if(this!==d)for(;y<d.length;y++)this.words[y]=d.words[y];return this.length=d.length,this._strip()},s.prototype.ixor=function(o){return n((this.negative|o.negative)===0),this.iuxor(o)},s.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},s.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},s.prototype.inotn=function(o){n(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,w=o%26;this._expand(d),w>0&&d--;for(var y=0;y<d;y++)this.words[y]=~this.words[y]&67108863;return w>0&&(this.words[y]=~this.words[y]&67108863>>26-w),this._strip()},s.prototype.notn=function(o){return this.clone().inotn(o)},s.prototype.setn=function(o,d){n(typeof o=="number"&&o>=0);var w=o/26|0,y=o%26;return this._expand(w+1),d?this.words[w]=this.words[w]|1<<y:this.words[w]=this.words[w]&~(1<<y),this._strip()},s.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var w,y;this.length>o.length?(w=this,y=o):(w=o,y=this);for(var _=0,k=0;k<y.length;k++)d=(w.words[k]|0)+(y.words[k]|0)+_,this.words[k]=d&67108863,_=d>>>26;for(;_!==0&&k<w.length;k++)d=(w.words[k]|0)+_,this.words[k]=d&67108863,_=d>>>26;if(this.length=w.length,_!==0)this.words[this.length]=_,this.length++;else if(w!==this)for(;k<w.length;k++)this.words[k]=w.words[k];return this},s.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},s.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var w=this.cmp(o);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,_;w>0?(y=this,_=o):(y=o,_=this);for(var k=0,T=0;T<_.length;T++)d=(y.words[T]|0)-(_.words[T]|0)+k,k=d>>26,this.words[T]=d&67108863;for(;k!==0&&T<y.length;T++)d=(y.words[T]|0)+k,k=d>>26,this.words[T]=d&67108863;if(k===0&&T<y.length&&y!==this)for(;T<y.length;T++)this.words[T]=y.words[T];return this.length=Math.max(this.length,T),y!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(o){return this.clone().isub(o)};function x(I,o,d){d.negative=o.negative^I.negative;var w=I.length+o.length|0;d.length=w,w=w-1|0;var y=I.words[0]|0,_=o.words[0]|0,k=y*_,T=k&67108863,b=k/67108864|0;d.words[0]=T;for(var u=1;u<w;u++){for(var S=b>>>26,K=b&67108863,J=Math.min(u,o.length-1),A=Math.max(0,u-I.length+1);A<=J;A++){var P=u-A|0;y=I.words[P]|0,_=o.words[A]|0,k=y*_+K,S+=k/67108864|0,K=k&67108863}d.words[u]=K|0,b=S|0}return b!==0?d.words[u]=b|0:d.length--,d._strip()}var L=function(o,d,w){var y=o.words,_=d.words,k=w.words,T=0,b,u,S,K=y[0]|0,J=K&8191,A=K>>>13,P=y[1]|0,W=P&8191,Z=P>>>13,le=y[2]|0,R=le&8191,C=le>>>13,z=y[3]|0,G=z&8191,se=z>>>13,ue=y[4]|0,re=ue&8191,be=ue>>>13,ht=y[5]|0,Se=ht&8191,Ee=ht>>>13,Je=y[6]|0,ve=Je&8191,Re=Je>>>13,Qe=y[7]|0,_e=Qe&8191,m=Qe>>>13,l=y[8]|0,h=l&8191,v=l>>>13,B=y[9]|0,F=B&8191,U=B>>>13,he=_[0]|0,ae=he&8191,ie=he>>>13,Me=_[1]|0,ne=Me&8191,Ce=Me>>>13,_r=_[2]|0,ke=_r&8191,Ie=_r>>>13,Er=_[3]|0,xe=Er&8191,Ae=Er>>>13,Sr=_[4]|0,Te=Sr&8191,Be=Sr>>>13,Rr=_[5]|0,Ne=Rr&8191,Le=Rr>>>13,Mr=_[6]|0,Pe=Mr&8191,Oe=Mr>>>13,Cr=_[7]|0,Fe=Cr&8191,De=Cr>>>13,kr=_[8]|0,je=kr&8191,Ue=kr>>>13,Ir=_[9]|0,He=Ir&8191,$e=Ir>>>13;w.negative=o.negative^d.negative,w.length=19,b=Math.imul(J,ae),u=Math.imul(J,ie),u=u+Math.imul(A,ae)|0,S=Math.imul(A,ie);var qt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(qt>>>26)|0,qt&=67108863,b=Math.imul(W,ae),u=Math.imul(W,ie),u=u+Math.imul(Z,ae)|0,S=Math.imul(Z,ie),b=b+Math.imul(J,ne)|0,u=u+Math.imul(J,Ce)|0,u=u+Math.imul(A,ne)|0,S=S+Math.imul(A,Ce)|0;var Gt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,b=Math.imul(R,ae),u=Math.imul(R,ie),u=u+Math.imul(C,ae)|0,S=Math.imul(C,ie),b=b+Math.imul(W,ne)|0,u=u+Math.imul(W,Ce)|0,u=u+Math.imul(Z,ne)|0,S=S+Math.imul(Z,Ce)|0,b=b+Math.imul(J,ke)|0,u=u+Math.imul(J,Ie)|0,u=u+Math.imul(A,ke)|0,S=S+Math.imul(A,Ie)|0;var Jt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,b=Math.imul(G,ae),u=Math.imul(G,ie),u=u+Math.imul(se,ae)|0,S=Math.imul(se,ie),b=b+Math.imul(R,ne)|0,u=u+Math.imul(R,Ce)|0,u=u+Math.imul(C,ne)|0,S=S+Math.imul(C,Ce)|0,b=b+Math.imul(W,ke)|0,u=u+Math.imul(W,Ie)|0,u=u+Math.imul(Z,ke)|0,S=S+Math.imul(Z,Ie)|0,b=b+Math.imul(J,xe)|0,u=u+Math.imul(J,Ae)|0,u=u+Math.imul(A,xe)|0,S=S+Math.imul(A,Ae)|0;var Zt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,b=Math.imul(re,ae),u=Math.imul(re,ie),u=u+Math.imul(be,ae)|0,S=Math.imul(be,ie),b=b+Math.imul(G,ne)|0,u=u+Math.imul(G,Ce)|0,u=u+Math.imul(se,ne)|0,S=S+Math.imul(se,Ce)|0,b=b+Math.imul(R,ke)|0,u=u+Math.imul(R,Ie)|0,u=u+Math.imul(C,ke)|0,S=S+Math.imul(C,Ie)|0,b=b+Math.imul(W,xe)|0,u=u+Math.imul(W,Ae)|0,u=u+Math.imul(Z,xe)|0,S=S+Math.imul(Z,Ae)|0,b=b+Math.imul(J,Te)|0,u=u+Math.imul(J,Be)|0,u=u+Math.imul(A,Te)|0,S=S+Math.imul(A,Be)|0;var Kt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,b=Math.imul(Se,ae),u=Math.imul(Se,ie),u=u+Math.imul(Ee,ae)|0,S=Math.imul(Ee,ie),b=b+Math.imul(re,ne)|0,u=u+Math.imul(re,Ce)|0,u=u+Math.imul(be,ne)|0,S=S+Math.imul(be,Ce)|0,b=b+Math.imul(G,ke)|0,u=u+Math.imul(G,Ie)|0,u=u+Math.imul(se,ke)|0,S=S+Math.imul(se,Ie)|0,b=b+Math.imul(R,xe)|0,u=u+Math.imul(R,Ae)|0,u=u+Math.imul(C,xe)|0,S=S+Math.imul(C,Ae)|0,b=b+Math.imul(W,Te)|0,u=u+Math.imul(W,Be)|0,u=u+Math.imul(Z,Te)|0,S=S+Math.imul(Z,Be)|0,b=b+Math.imul(J,Ne)|0,u=u+Math.imul(J,Le)|0,u=u+Math.imul(A,Ne)|0,S=S+Math.imul(A,Le)|0;var Qt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,b=Math.imul(ve,ae),u=Math.imul(ve,ie),u=u+Math.imul(Re,ae)|0,S=Math.imul(Re,ie),b=b+Math.imul(Se,ne)|0,u=u+Math.imul(Se,Ce)|0,u=u+Math.imul(Ee,ne)|0,S=S+Math.imul(Ee,Ce)|0,b=b+Math.imul(re,ke)|0,u=u+Math.imul(re,Ie)|0,u=u+Math.imul(be,ke)|0,S=S+Math.imul(be,Ie)|0,b=b+Math.imul(G,xe)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(se,xe)|0,S=S+Math.imul(se,Ae)|0,b=b+Math.imul(R,Te)|0,u=u+Math.imul(R,Be)|0,u=u+Math.imul(C,Te)|0,S=S+Math.imul(C,Be)|0,b=b+Math.imul(W,Ne)|0,u=u+Math.imul(W,Le)|0,u=u+Math.imul(Z,Ne)|0,S=S+Math.imul(Z,Le)|0,b=b+Math.imul(J,Pe)|0,u=u+Math.imul(J,Oe)|0,u=u+Math.imul(A,Pe)|0,S=S+Math.imul(A,Oe)|0;var Yt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b=Math.imul(_e,ae),u=Math.imul(_e,ie),u=u+Math.imul(m,ae)|0,S=Math.imul(m,ie),b=b+Math.imul(ve,ne)|0,u=u+Math.imul(ve,Ce)|0,u=u+Math.imul(Re,ne)|0,S=S+Math.imul(Re,Ce)|0,b=b+Math.imul(Se,ke)|0,u=u+Math.imul(Se,Ie)|0,u=u+Math.imul(Ee,ke)|0,S=S+Math.imul(Ee,Ie)|0,b=b+Math.imul(re,xe)|0,u=u+Math.imul(re,Ae)|0,u=u+Math.imul(be,xe)|0,S=S+Math.imul(be,Ae)|0,b=b+Math.imul(G,Te)|0,u=u+Math.imul(G,Be)|0,u=u+Math.imul(se,Te)|0,S=S+Math.imul(se,Be)|0,b=b+Math.imul(R,Ne)|0,u=u+Math.imul(R,Le)|0,u=u+Math.imul(C,Ne)|0,S=S+Math.imul(C,Le)|0,b=b+Math.imul(W,Pe)|0,u=u+Math.imul(W,Oe)|0,u=u+Math.imul(Z,Pe)|0,S=S+Math.imul(Z,Oe)|0,b=b+Math.imul(J,Fe)|0,u=u+Math.imul(J,De)|0,u=u+Math.imul(A,Fe)|0,S=S+Math.imul(A,De)|0;var Xt=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,b=Math.imul(h,ae),u=Math.imul(h,ie),u=u+Math.imul(v,ae)|0,S=Math.imul(v,ie),b=b+Math.imul(_e,ne)|0,u=u+Math.imul(_e,Ce)|0,u=u+Math.imul(m,ne)|0,S=S+Math.imul(m,Ce)|0,b=b+Math.imul(ve,ke)|0,u=u+Math.imul(ve,Ie)|0,u=u+Math.imul(Re,ke)|0,S=S+Math.imul(Re,Ie)|0,b=b+Math.imul(Se,xe)|0,u=u+Math.imul(Se,Ae)|0,u=u+Math.imul(Ee,xe)|0,S=S+Math.imul(Ee,Ae)|0,b=b+Math.imul(re,Te)|0,u=u+Math.imul(re,Be)|0,u=u+Math.imul(be,Te)|0,S=S+Math.imul(be,Be)|0,b=b+Math.imul(G,Ne)|0,u=u+Math.imul(G,Le)|0,u=u+Math.imul(se,Ne)|0,S=S+Math.imul(se,Le)|0,b=b+Math.imul(R,Pe)|0,u=u+Math.imul(R,Oe)|0,u=u+Math.imul(C,Pe)|0,S=S+Math.imul(C,Oe)|0,b=b+Math.imul(W,Fe)|0,u=u+Math.imul(W,De)|0,u=u+Math.imul(Z,Fe)|0,S=S+Math.imul(Z,De)|0,b=b+Math.imul(J,je)|0,u=u+Math.imul(J,Ue)|0,u=u+Math.imul(A,je)|0,S=S+Math.imul(A,Ue)|0;var er=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(er>>>26)|0,er&=67108863,b=Math.imul(F,ae),u=Math.imul(F,ie),u=u+Math.imul(U,ae)|0,S=Math.imul(U,ie),b=b+Math.imul(h,ne)|0,u=u+Math.imul(h,Ce)|0,u=u+Math.imul(v,ne)|0,S=S+Math.imul(v,Ce)|0,b=b+Math.imul(_e,ke)|0,u=u+Math.imul(_e,Ie)|0,u=u+Math.imul(m,ke)|0,S=S+Math.imul(m,Ie)|0,b=b+Math.imul(ve,xe)|0,u=u+Math.imul(ve,Ae)|0,u=u+Math.imul(Re,xe)|0,S=S+Math.imul(Re,Ae)|0,b=b+Math.imul(Se,Te)|0,u=u+Math.imul(Se,Be)|0,u=u+Math.imul(Ee,Te)|0,S=S+Math.imul(Ee,Be)|0,b=b+Math.imul(re,Ne)|0,u=u+Math.imul(re,Le)|0,u=u+Math.imul(be,Ne)|0,S=S+Math.imul(be,Le)|0,b=b+Math.imul(G,Pe)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(se,Pe)|0,S=S+Math.imul(se,Oe)|0,b=b+Math.imul(R,Fe)|0,u=u+Math.imul(R,De)|0,u=u+Math.imul(C,Fe)|0,S=S+Math.imul(C,De)|0,b=b+Math.imul(W,je)|0,u=u+Math.imul(W,Ue)|0,u=u+Math.imul(Z,je)|0,S=S+Math.imul(Z,Ue)|0,b=b+Math.imul(J,He)|0,u=u+Math.imul(J,$e)|0,u=u+Math.imul(A,He)|0,S=S+Math.imul(A,$e)|0;var tr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(tr>>>26)|0,tr&=67108863,b=Math.imul(F,ne),u=Math.imul(F,Ce),u=u+Math.imul(U,ne)|0,S=Math.imul(U,Ce),b=b+Math.imul(h,ke)|0,u=u+Math.imul(h,Ie)|0,u=u+Math.imul(v,ke)|0,S=S+Math.imul(v,Ie)|0,b=b+Math.imul(_e,xe)|0,u=u+Math.imul(_e,Ae)|0,u=u+Math.imul(m,xe)|0,S=S+Math.imul(m,Ae)|0,b=b+Math.imul(ve,Te)|0,u=u+Math.imul(ve,Be)|0,u=u+Math.imul(Re,Te)|0,S=S+Math.imul(Re,Be)|0,b=b+Math.imul(Se,Ne)|0,u=u+Math.imul(Se,Le)|0,u=u+Math.imul(Ee,Ne)|0,S=S+Math.imul(Ee,Le)|0,b=b+Math.imul(re,Pe)|0,u=u+Math.imul(re,Oe)|0,u=u+Math.imul(be,Pe)|0,S=S+Math.imul(be,Oe)|0,b=b+Math.imul(G,Fe)|0,u=u+Math.imul(G,De)|0,u=u+Math.imul(se,Fe)|0,S=S+Math.imul(se,De)|0,b=b+Math.imul(R,je)|0,u=u+Math.imul(R,Ue)|0,u=u+Math.imul(C,je)|0,S=S+Math.imul(C,Ue)|0,b=b+Math.imul(W,He)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(Z,He)|0,S=S+Math.imul(Z,$e)|0;var rr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(rr>>>26)|0,rr&=67108863,b=Math.imul(F,ke),u=Math.imul(F,Ie),u=u+Math.imul(U,ke)|0,S=Math.imul(U,Ie),b=b+Math.imul(h,xe)|0,u=u+Math.imul(h,Ae)|0,u=u+Math.imul(v,xe)|0,S=S+Math.imul(v,Ae)|0,b=b+Math.imul(_e,Te)|0,u=u+Math.imul(_e,Be)|0,u=u+Math.imul(m,Te)|0,S=S+Math.imul(m,Be)|0,b=b+Math.imul(ve,Ne)|0,u=u+Math.imul(ve,Le)|0,u=u+Math.imul(Re,Ne)|0,S=S+Math.imul(Re,Le)|0,b=b+Math.imul(Se,Pe)|0,u=u+Math.imul(Se,Oe)|0,u=u+Math.imul(Ee,Pe)|0,S=S+Math.imul(Ee,Oe)|0,b=b+Math.imul(re,Fe)|0,u=u+Math.imul(re,De)|0,u=u+Math.imul(be,Fe)|0,S=S+Math.imul(be,De)|0,b=b+Math.imul(G,je)|0,u=u+Math.imul(G,Ue)|0,u=u+Math.imul(se,je)|0,S=S+Math.imul(se,Ue)|0,b=b+Math.imul(R,He)|0,u=u+Math.imul(R,$e)|0,u=u+Math.imul(C,He)|0,S=S+Math.imul(C,$e)|0;var nr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(nr>>>26)|0,nr&=67108863,b=Math.imul(F,xe),u=Math.imul(F,Ae),u=u+Math.imul(U,xe)|0,S=Math.imul(U,Ae),b=b+Math.imul(h,Te)|0,u=u+Math.imul(h,Be)|0,u=u+Math.imul(v,Te)|0,S=S+Math.imul(v,Be)|0,b=b+Math.imul(_e,Ne)|0,u=u+Math.imul(_e,Le)|0,u=u+Math.imul(m,Ne)|0,S=S+Math.imul(m,Le)|0,b=b+Math.imul(ve,Pe)|0,u=u+Math.imul(ve,Oe)|0,u=u+Math.imul(Re,Pe)|0,S=S+Math.imul(Re,Oe)|0,b=b+Math.imul(Se,Fe)|0,u=u+Math.imul(Se,De)|0,u=u+Math.imul(Ee,Fe)|0,S=S+Math.imul(Ee,De)|0,b=b+Math.imul(re,je)|0,u=u+Math.imul(re,Ue)|0,u=u+Math.imul(be,je)|0,S=S+Math.imul(be,Ue)|0,b=b+Math.imul(G,He)|0,u=u+Math.imul(G,$e)|0,u=u+Math.imul(se,He)|0,S=S+Math.imul(se,$e)|0;var ir=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ir>>>26)|0,ir&=67108863,b=Math.imul(F,Te),u=Math.imul(F,Be),u=u+Math.imul(U,Te)|0,S=Math.imul(U,Be),b=b+Math.imul(h,Ne)|0,u=u+Math.imul(h,Le)|0,u=u+Math.imul(v,Ne)|0,S=S+Math.imul(v,Le)|0,b=b+Math.imul(_e,Pe)|0,u=u+Math.imul(_e,Oe)|0,u=u+Math.imul(m,Pe)|0,S=S+Math.imul(m,Oe)|0,b=b+Math.imul(ve,Fe)|0,u=u+Math.imul(ve,De)|0,u=u+Math.imul(Re,Fe)|0,S=S+Math.imul(Re,De)|0,b=b+Math.imul(Se,je)|0,u=u+Math.imul(Se,Ue)|0,u=u+Math.imul(Ee,je)|0,S=S+Math.imul(Ee,Ue)|0,b=b+Math.imul(re,He)|0,u=u+Math.imul(re,$e)|0,u=u+Math.imul(be,He)|0,S=S+Math.imul(be,$e)|0;var sr=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(sr>>>26)|0,sr&=67108863,b=Math.imul(F,Ne),u=Math.imul(F,Le),u=u+Math.imul(U,Ne)|0,S=Math.imul(U,Le),b=b+Math.imul(h,Pe)|0,u=u+Math.imul(h,Oe)|0,u=u+Math.imul(v,Pe)|0,S=S+Math.imul(v,Oe)|0,b=b+Math.imul(_e,Fe)|0,u=u+Math.imul(_e,De)|0,u=u+Math.imul(m,Fe)|0,S=S+Math.imul(m,De)|0,b=b+Math.imul(ve,je)|0,u=u+Math.imul(ve,Ue)|0,u=u+Math.imul(Re,je)|0,S=S+Math.imul(Re,Ue)|0,b=b+Math.imul(Se,He)|0,u=u+Math.imul(Se,$e)|0,u=u+Math.imul(Ee,He)|0,S=S+Math.imul(Ee,$e)|0;var es=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(es>>>26)|0,es&=67108863,b=Math.imul(F,Pe),u=Math.imul(F,Oe),u=u+Math.imul(U,Pe)|0,S=Math.imul(U,Oe),b=b+Math.imul(h,Fe)|0,u=u+Math.imul(h,De)|0,u=u+Math.imul(v,Fe)|0,S=S+Math.imul(v,De)|0,b=b+Math.imul(_e,je)|0,u=u+Math.imul(_e,Ue)|0,u=u+Math.imul(m,je)|0,S=S+Math.imul(m,Ue)|0,b=b+Math.imul(ve,He)|0,u=u+Math.imul(ve,$e)|0,u=u+Math.imul(Re,He)|0,S=S+Math.imul(Re,$e)|0;var ts=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ts>>>26)|0,ts&=67108863,b=Math.imul(F,Fe),u=Math.imul(F,De),u=u+Math.imul(U,Fe)|0,S=Math.imul(U,De),b=b+Math.imul(h,je)|0,u=u+Math.imul(h,Ue)|0,u=u+Math.imul(v,je)|0,S=S+Math.imul(v,Ue)|0,b=b+Math.imul(_e,He)|0,u=u+Math.imul(_e,$e)|0,u=u+Math.imul(m,He)|0,S=S+Math.imul(m,$e)|0;var rs=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(rs>>>26)|0,rs&=67108863,b=Math.imul(F,je),u=Math.imul(F,Ue),u=u+Math.imul(U,je)|0,S=Math.imul(U,Ue),b=b+Math.imul(h,He)|0,u=u+Math.imul(h,$e)|0,u=u+Math.imul(v,He)|0,S=S+Math.imul(v,$e)|0;var ns=(T+b|0)+((u&8191)<<13)|0;T=(S+(u>>>13)|0)+(ns>>>26)|0,ns&=67108863,b=Math.imul(F,He),u=Math.imul(F,$e),u=u+Math.imul(U,He)|0,S=Math.imul(U,$e);var is=(T+b|0)+((u&8191)<<13)|0;return T=(S+(u>>>13)|0)+(is>>>26)|0,is&=67108863,k[0]=qt,k[1]=Gt,k[2]=Jt,k[3]=Zt,k[4]=Kt,k[5]=Qt,k[6]=Yt,k[7]=Xt,k[8]=er,k[9]=tr,k[10]=rr,k[11]=nr,k[12]=ir,k[13]=sr,k[14]=es,k[15]=ts,k[16]=rs,k[17]=ns,k[18]=is,T!==0&&(k[19]=T,w.length++),w};Math.imul||(L=x);function O(I,o,d){d.negative=o.negative^I.negative,d.length=I.length+o.length;for(var w=0,y=0,_=0;_<d.length-1;_++){var k=y;y=0;for(var T=w&67108863,b=Math.min(_,o.length-1),u=Math.max(0,_-I.length+1);u<=b;u++){var S=_-u,K=I.words[S]|0,J=o.words[u]|0,A=K*J,P=A&67108863;k=k+(A/67108864|0)|0,P=P+T|0,T=P&67108863,k=k+(P>>>26)|0,y+=k>>>26,k&=67108863}d.words[_]=T,w=k,k=y}return w!==0?d.words[_]=w:d.length--,d._strip()}function V(I,o,d){return O(I,o,d)}s.prototype.mulTo=function(o,d){var w,y=this.length+o.length;return this.length===10&&o.length===10?w=L(this,o,d):y<63?w=x(this,o,d):y<1024?w=O(this,o,d):w=V(this,o,d),w},s.prototype.mul=function(o){var d=new s(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},s.prototype.mulf=function(o){var d=new s(null);return d.words=new Array(this.length+o.length),V(this,o,d)},s.prototype.imul=function(o){return this.clone().mulTo(o,this)},s.prototype.imuln=function(o){var d=o<0;d&&(o=-o),n(typeof o=="number"),n(o<67108864);for(var w=0,y=0;y<this.length;y++){var _=(this.words[y]|0)*o,k=(_&67108863)+(w&67108863);w>>=26,w+=_/67108864|0,w+=k>>>26,this.words[y]=k&67108863}return w!==0&&(this.words[y]=w,this.length++),this.length=o===0?1:this.length,d?this.ineg():this},s.prototype.muln=function(o){return this.clone().imuln(o)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(o){var d=$(o);if(d.length===0)return new s(1);for(var w=this,y=0;y<d.length&&d[y]===0;y++,w=w.sqr());if(++y<d.length)for(var _=w.sqr();y<d.length;y++,_=_.sqr())d[y]!==0&&(w=w.mul(_));return w},s.prototype.iushln=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26,y=67108863>>>26-d<<26-d,_;if(d!==0){var k=0;for(_=0;_<this.length;_++){var T=this.words[_]&y,b=(this.words[_]|0)-T<<d;this.words[_]=b|k,k=T>>>26-d}k&&(this.words[_]=k,this.length++)}if(w!==0){for(_=this.length-1;_>=0;_--)this.words[_+w]=this.words[_];for(_=0;_<w;_++)this.words[_]=0;this.length+=w}return this._strip()},s.prototype.ishln=function(o){return n(this.negative===0),this.iushln(o)},s.prototype.iushrn=function(o,d,w){n(typeof o=="number"&&o>=0);var y;d?y=(d-d%26)/26:y=0;var _=o%26,k=Math.min((o-_)/26,this.length),T=67108863^67108863>>>_<<_,b=w;if(y-=k,y=Math.max(0,y),b){for(var u=0;u<k;u++)b.words[u]=this.words[u];b.length=k}if(k!==0)if(this.length>k)for(this.length-=k,u=0;u<this.length;u++)this.words[u]=this.words[u+k];else this.words[0]=0,this.length=1;var S=0;for(u=this.length-1;u>=0&&(S!==0||u>=y);u--){var K=this.words[u]|0;this.words[u]=S<<26-_|K>>>_,S=K&T}return b&&S!==0&&(b.words[b.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(o,d,w){return n(this.negative===0),this.iushrn(o,d,w)},s.prototype.shln=function(o){return this.clone().ishln(o)},s.prototype.ushln=function(o){return this.clone().iushln(o)},s.prototype.shrn=function(o){return this.clone().ishrn(o)},s.prototype.ushrn=function(o){return this.clone().iushrn(o)},s.prototype.testn=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26,y=1<<d;if(this.length<=w)return!1;var _=this.words[w];return!!(_&y)},s.prototype.imaskn=function(o){n(typeof o=="number"&&o>=0);var d=o%26,w=(o-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(d!==0&&w++,this.length=Math.min(w,this.length),d!==0){var y=67108863^67108863>>>d<<d;this.words[this.length-1]&=y}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.maskn=function(o){return this.clone().imaskn(o)},s.prototype.iaddn=function(o){return n(typeof o=="number"),n(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},s.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},s.prototype.isubn=function(o){if(n(typeof o=="number"),n(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},s.prototype.addn=function(o){return this.clone().iaddn(o)},s.prototype.subn=function(o){return this.clone().isubn(o)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(o,d,w){var y=o.length+w,_;this._expand(y);var k,T=0;for(_=0;_<o.length;_++){k=(this.words[_+w]|0)+T;var b=(o.words[_]|0)*d;k-=b&67108863,T=(k>>26)-(b/67108864|0),this.words[_+w]=k&67108863}for(;_<this.length-w;_++)k=(this.words[_+w]|0)+T,T=k>>26,this.words[_+w]=k&67108863;if(T===0)return this._strip();for(n(T===-1),T=0,_=0;_<this.length;_++)k=-(this.words[_]|0)+T,T=k>>26,this.words[_]=k&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(o,d){var w=this.length-o.length,y=this.clone(),_=o,k=_.words[_.length-1]|0,T=this._countBits(k);w=26-T,w!==0&&(_=_.ushln(w),y.iushln(w),k=_.words[_.length-1]|0);var b=y.length-_.length,u;if(d!=="mod"){u=new s(null),u.length=b+1,u.words=new Array(u.length);for(var S=0;S<u.length;S++)u.words[S]=0}var K=y.clone()._ishlnsubmul(_,1,b);K.negative===0&&(y=K,u&&(u.words[b]=1));for(var J=b-1;J>=0;J--){var A=(y.words[_.length+J]|0)*67108864+(y.words[_.length+J-1]|0);for(A=Math.min(A/k|0,67108863),y._ishlnsubmul(_,A,J);y.negative!==0;)A--,y.negative=0,y._ishlnsubmul(_,1,J),y.isZero()||(y.negative^=1);u&&(u.words[J]=A)}return u&&u._strip(),y._strip(),d!=="div"&&w!==0&&y.iushrn(w),{div:u||null,mod:y}},s.prototype.divmod=function(o,d,w){if(n(!o.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var y,_,k;return this.negative!==0&&o.negative===0?(k=this.neg().divmod(o,d),d!=="mod"&&(y=k.div.neg()),d!=="div"&&(_=k.mod.neg(),w&&_.negative!==0&&_.iadd(o)),{div:y,mod:_}):this.negative===0&&o.negative!==0?(k=this.divmod(o.neg(),d),d!=="mod"&&(y=k.div.neg()),{div:y,mod:k.mod}):this.negative&o.negative?(k=this.neg().divmod(o.neg(),d),d!=="div"&&(_=k.mod.neg(),w&&_.negative!==0&&_.isub(o)),{div:k.div,mod:_}):o.length>this.length||this.cmp(o)<0?{div:new s(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new s(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new s(this.modrn(o.words[0]))}:this._wordDiv(o,d)},s.prototype.div=function(o){return this.divmod(o,"div",!1).div},s.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},s.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},s.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var w=d.div.negative!==0?d.mod.isub(o):d.mod,y=o.ushrn(1),_=o.andln(1),k=w.cmp(y);return k<0||_===1&&k===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},s.prototype.modrn=function(o){var d=o<0;d&&(o=-o),n(o<=67108863);for(var w=(1<<26)%o,y=0,_=this.length-1;_>=0;_--)y=(w*y+(this.words[_]|0))%o;return d?-y:y},s.prototype.modn=function(o){return this.modrn(o)},s.prototype.idivn=function(o){var d=o<0;d&&(o=-o),n(o<=67108863);for(var w=0,y=this.length-1;y>=0;y--){var _=(this.words[y]|0)+w*67108864;this.words[y]=_/o|0,w=_%o}return this._strip(),d?this.ineg():this},s.prototype.divn=function(o){return this.clone().idivn(o)},s.prototype.egcd=function(o){n(o.negative===0),n(!o.isZero());var d=this,w=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new s(1),_=new s(0),k=new s(0),T=new s(1),b=0;d.isEven()&&w.isEven();)d.iushrn(1),w.iushrn(1),++b;for(var u=w.clone(),S=d.clone();!d.isZero();){for(var K=0,J=1;!(d.words[0]&J)&&K<26;++K,J<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(y.isOdd()||_.isOdd())&&(y.iadd(u),_.isub(S)),y.iushrn(1),_.iushrn(1);for(var A=0,P=1;!(w.words[0]&P)&&A<26;++A,P<<=1);if(A>0)for(w.iushrn(A);A-- >0;)(k.isOdd()||T.isOdd())&&(k.iadd(u),T.isub(S)),k.iushrn(1),T.iushrn(1);d.cmp(w)>=0?(d.isub(w),y.isub(k),_.isub(T)):(w.isub(d),k.isub(y),T.isub(_))}return{a:k,b:T,gcd:w.iushln(b)}},s.prototype._invmp=function(o){n(o.negative===0),n(!o.isZero());var d=this,w=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new s(1),_=new s(0),k=w.clone();d.cmpn(1)>0&&w.cmpn(1)>0;){for(var T=0,b=1;!(d.words[0]&b)&&T<26;++T,b<<=1);if(T>0)for(d.iushrn(T);T-- >0;)y.isOdd()&&y.iadd(k),y.iushrn(1);for(var u=0,S=1;!(w.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(w.iushrn(u);u-- >0;)_.isOdd()&&_.iadd(k),_.iushrn(1);d.cmp(w)>=0?(d.isub(w),y.isub(_)):(w.isub(d),_.isub(y))}var K;return d.cmpn(1)===0?K=y:K=_,K.cmpn(0)<0&&K.iadd(o),K},s.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),w=o.clone();d.negative=0,w.negative=0;for(var y=0;d.isEven()&&w.isEven();y++)d.iushrn(1),w.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;w.isEven();)w.iushrn(1);var _=d.cmp(w);if(_<0){var k=d;d=w,w=k}else if(_===0||w.cmpn(1)===0)break;d.isub(w)}while(!0);return w.iushln(y)},s.prototype.invm=function(o){return this.egcd(o).a.umod(o)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(o){return this.words[0]&o},s.prototype.bincn=function(o){n(typeof o=="number");var d=o%26,w=(o-d)/26,y=1<<d;if(this.length<=w)return this._expand(w+1),this.words[w]|=y,this;for(var _=y,k=w;_!==0&&k<this.length;k++){var T=this.words[k]|0;T+=_,_=T>>>26,T&=67108863,this.words[k]=T}return _!==0&&(this.words[k]=_,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var w;if(this.length>1)w=1;else{d&&(o=-o),n(o<=67108863,"Number is too big");var y=this.words[0]|0;w=y===o?0:y<o?-1:1}return this.negative!==0?-w|0:w},s.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},s.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,w=this.length-1;w>=0;w--){var y=this.words[w]|0,_=o.words[w]|0;if(y!==_){y<_?d=-1:y>_&&(d=1);break}}return d},s.prototype.gtn=function(o){return this.cmpn(o)===1},s.prototype.gt=function(o){return this.cmp(o)===1},s.prototype.gten=function(o){return this.cmpn(o)>=0},s.prototype.gte=function(o){return this.cmp(o)>=0},s.prototype.ltn=function(o){return this.cmpn(o)===-1},s.prototype.lt=function(o){return this.cmp(o)===-1},s.prototype.lten=function(o){return this.cmpn(o)<=0},s.prototype.lte=function(o){return this.cmp(o)<=0},s.prototype.eqn=function(o){return this.cmpn(o)===0},s.prototype.eq=function(o){return this.cmp(o)===0},s.red=function(o){return new oe(o)},s.prototype.toRed=function(o){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(o){return this.red=o,this},s.prototype.forceRed=function(o){return n(!this.red,"Already a number in reduction context"),this._forceRed(o)},s.prototype.redAdd=function(o){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},s.prototype.redIAdd=function(o){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},s.prototype.redSub=function(o){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},s.prototype.redISub=function(o){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},s.prototype.redShl=function(o){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},s.prototype.redMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},s.prototype.redIMul=function(o){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(o){return n(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var j={k256:null,p224:null,p192:null,p25519:null};function q(I,o){this.name=I,this.p=new s(o,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var o=new s(null);return o.words=new Array(Math.ceil(this.n/13)),o},q.prototype.ireduce=function(o){var d=o,w;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),w=d.bitLength();while(w>this.n);var y=w<this.n?-1:d.ucmp(this.p);return y===0?(d.words[0]=0,d.length=1):y>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},q.prototype.split=function(o,d){o.iushrn(this.n,0,d)},q.prototype.imulK=function(o){return o.imul(this.k)};function te(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(te,q),te.prototype.split=function(o,d){for(var w=4194303,y=Math.min(o.length,9),_=0;_<y;_++)d.words[_]=o.words[_];if(d.length=y,o.length<=9){o.words[0]=0,o.length=1;return}var k=o.words[9];for(d.words[d.length++]=k&w,_=10;_<o.length;_++){var T=o.words[_]|0;o.words[_-10]=(T&w)<<4|k>>>22,k=T}k>>>=22,o.words[_-10]=k,k===0&&o.length>10?o.length-=10:o.length-=9},te.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,w=0;w<o.length;w++){var y=o.words[w]|0;d+=y*977,o.words[w]=d&67108863,d=y*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Y,q);function Q(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Q,q);function fe(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(fe,q),fe.prototype.imulK=function(o){for(var d=0,w=0;w<o.length;w++){var y=(o.words[w]|0)*19+d,_=y&67108863;y>>>=26,o.words[w]=_,d=y}return d!==0&&(o.words[o.length++]=d),o},s._prime=function(o){if(j[o])return j[o];var d;if(o==="k256")d=new te;else if(o==="p224")d=new Y;else if(o==="p192")d=new Q;else if(o==="p25519")d=new fe;else throw new Error("Unknown prime "+o);return j[o]=d,d};function oe(I){if(typeof I=="string"){var o=s._prime(I);this.m=o.p,this.prime=o}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}oe.prototype._verify1=function(o){n(o.negative===0,"red works only with positives"),n(o.red,"red works only with red numbers")},oe.prototype._verify2=function(o,d){n((o.negative|d.negative)===0,"red works only with positives"),n(o.red&&o.red===d.red,"red works only with red numbers")},oe.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(p(o,o.umod(this.m)._forceRed(this)),o)},oe.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},oe.prototype.add=function(o,d){this._verify2(o,d);var w=o.add(d);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},oe.prototype.iadd=function(o,d){this._verify2(o,d);var w=o.iadd(d);return w.cmp(this.m)>=0&&w.isub(this.m),w},oe.prototype.sub=function(o,d){this._verify2(o,d);var w=o.sub(d);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},oe.prototype.isub=function(o,d){this._verify2(o,d);var w=o.isub(d);return w.cmpn(0)<0&&w.iadd(this.m),w},oe.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},oe.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},oe.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},oe.prototype.isqr=function(o){return this.imul(o,o.clone())},oe.prototype.sqr=function(o){return this.mul(o,o)},oe.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var w=this.m.add(new s(1)).iushrn(2);return this.pow(o,w)}for(var y=this.m.subn(1),_=0;!y.isZero()&&y.andln(1)===0;)_++,y.iushrn(1);n(!y.isZero());var k=new s(1).toRed(this),T=k.redNeg(),b=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);this.pow(u,b).cmp(T)!==0;)u.redIAdd(T);for(var S=this.pow(u,y),K=this.pow(o,y.addn(1).iushrn(1)),J=this.pow(o,y),A=_;J.cmp(k)!==0;){for(var P=J,W=0;P.cmp(k)!==0;W++)P=P.redSqr();n(W<A);var Z=this.pow(S,new s(1).iushln(A-W-1));K=K.redMul(Z),S=Z.redSqr(),J=J.redMul(S),A=W}return K},oe.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},oe.prototype.pow=function(o,d){if(d.isZero())return new s(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var w=4,y=new Array(1<<w);y[0]=new s(1).toRed(this),y[1]=o;for(var _=2;_<y.length;_++)y[_]=this.mul(y[_-1],o);var k=y[0],T=0,b=0,u=d.bitLength()%26;for(u===0&&(u=26),_=d.length-1;_>=0;_--){for(var S=d.words[_],K=u-1;K>=0;K--){var J=S>>K&1;if(k!==y[0]&&(k=this.sqr(k)),J===0&&T===0){b=0;continue}T<<=1,T|=J,b++,!(b!==w&&(_!==0||K!==0))&&(k=this.mul(k,y[T]),b=0,T=0)}u=26}return k},oe.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},oe.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},s.mont=function(o){return new pe(o)};function pe(I){oe.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(pe,oe),pe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},pe.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},pe.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var w=o.imul(d),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),k=_;return _.cmp(this.m)>=0?k=_.isub(this.m):_.cmpn(0)<0&&(k=_.iadd(this.m)),k._forceRed(this)},pe.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new s(0)._forceRed(this);var w=o.mul(d),y=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(y).iushrn(this.shift),k=_;return _.cmp(this.m)>=0?k=_.isub(this.m):_.cmpn(0)<0&&(k=_.iadd(this.m)),k._forceRed(this)},pe.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(e,ee)})(qs);var ai=qs.exports,fn={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.errorValues=Ft.standardErrorCodes=void 0;Ft.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};Ft.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}};var ci={},li={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Ft,r="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function n(E,N=r){if(E&&Number.isInteger(E)){const H=E.toString();if(p(t.errorValues,H))return t.errorValues[H].message;if(f(E))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return N}e.getMessageFromCode=n;function i(E){if(!Number.isInteger(E))return!1;const N=E.toString();return!!(t.errorValues[N]||f(E))}e.isValidCode=i;function s(E){var N;if(typeof E=="number")return E;if(c(E))return(N=E.code)!==null&&N!==void 0?N:E.errorCode}e.getErrorCode=s;function c(E){return typeof E=="object"&&E!==null&&(typeof E.code=="number"||typeof E.errorCode=="number")}function a(E,{shouldIncludeStack:N=!1}={}){const H={};if(E&&typeof E=="object"&&!Array.isArray(E)&&p(E,"code")&&i(E.code)){const D=E;H.code=D.code,D.message&&typeof D.message=="string"?(H.message=D.message,p(D,"data")&&(H.data=D.data)):(H.message=n(H.code),H.data={originalError:g(E)})}else H.code=t.standardErrorCodes.rpc.internal,H.message=M(E,"message")?E.message:r,H.data={originalError:g(E)};return N&&(H.stack=M(E,"stack")?E.stack:void 0),H}e.serialize=a;function f(E){return E>=-32099&&E<=-32e3}function g(E){return E&&typeof E=="object"&&!Array.isArray(E)?Object.assign({},E):E}function p(E,N){return Object.prototype.hasOwnProperty.call(E,N)}function M(E,N){return typeof E=="object"&&E!==null&&N in E&&typeof E[N]=="string"}})(li);Object.defineProperty(ci,"__esModule",{value:!0});ci.standardErrors=void 0;const et=Ft,Ja=li;ci.standardErrors={rpc:{parse:e=>dt(et.standardErrorCodes.rpc.parse,e),invalidRequest:e=>dt(et.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>dt(et.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>dt(et.standardErrorCodes.rpc.methodNotFound,e),internal:e=>dt(et.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return dt(t,e)},invalidInput:e=>dt(et.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>dt(et.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>dt(et.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>dt(et.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>dt(et.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>dt(et.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>xr(et.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>xr(et.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>xr(et.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>xr(et.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>xr(et.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>xr(et.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Qa(t,r,n)}}};function dt(e,t){const[r,n]=Za(t);return new Ka(e,r||(0,Ja.getMessageFromCode)(e),n)}function xr(e,t){const[r,n]=Za(t);return new Qa(e,r||(0,Ja.getMessageFromCode)(e),n)}function Za(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}let Ka=class extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}},Qa=class extends Ka{constructor(t,r,n){if(!iu(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}};function iu(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}var ui={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.isErrorResponse=void 0;function su(e){return e.errorMessage!==void 0}Jr.isErrorResponse=su;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.LIB_VERSION=void 0;Zr.LIB_VERSION="3.9.3";Object.defineProperty(ui,"__esModule",{value:!0});ui.serializeError=void 0;const ou=Jr,au=Zr,cu=Ft,lu=li;function uu(e,t){const r=(0,lu.serialize)(hu(e),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");n.searchParams.set("version",au.LIB_VERSION),n.searchParams.set("code",r.code.toString());const i=du(r.data,t);return i&&n.searchParams.set("method",i),n.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:n.href})}ui.serializeError=uu;function hu(e){return typeof e=="string"?{message:e,code:cu.standardErrorCodes.rpc.internal}:(0,ou.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function du(e,t){const r=e?.method;if(r)return r;if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const t=Ft;Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return t.standardErrorCodes}});const r=ci;Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return r.standardErrors}});const n=ui;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}});const i=li;Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return i.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}})})(fn);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ProviderType=Ze.RegExpString=Ze.IntNumber=Ze.BigIntString=Ze.AddressString=Ze.HexString=Ze.OpaqueType=void 0;function pn(){return e=>e}Ze.OpaqueType=pn;Ze.HexString=pn();Ze.AddressString=pn();Ze.BigIntString=pn();function fu(e){return Math.floor(e)}Ze.IntNumber=fu;Ze.RegExpString=pn();var Co;(function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""})(Co||(Ze.ProviderType=Co={}));var pu=ee&&ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X,"__esModule",{value:!0});X.isMobileWeb=X.getLocation=X.isInIFrame=X.createQrUrl=X.getFavicon=X.range=X.isBigNumber=X.ensureParsedJSONObject=X.ensureBN=X.ensureRegExpString=X.ensureIntNumber=X.ensureBuffer=X.ensureAddressString=X.ensureEvenLengthHexString=X.ensureHexString=X.isHexString=X.prepend0x=X.strip0x=X.has0xPrefix=X.hexStringFromIntNumber=X.intNumberFromHexString=X.bigIntStringFromBN=X.hexStringFromBuffer=X.hexStringToUint8Array=X.uint8ArrayToHex=X.randomBytesHex=void 0;const $t=pu(ai),wr=fn,wt=Ze,Ya=/^[0-9]*$/,Xa=/^[a-f0-9]*$/;function gu(e){return ec(crypto.getRandomValues(new Uint8Array(e)))}X.randomBytesHex=gu;function ec(e){return[...e].map(t=>t.toString(16).padStart(2,"0")).join("")}X.uint8ArrayToHex=ec;function mu(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}X.hexStringToUint8Array=mu;function wu(e,t=!1){const r=e.toString("hex");return(0,wt.HexString)(t?`0x${r}`:r)}X.hexStringFromBuffer=wu;function yu(e){return(0,wt.BigIntString)(e.toString(10))}X.bigIntStringFromBN=yu;function bu(e){return(0,wt.IntNumber)(new $t.default(mn(e,!1),16).toNumber())}X.intNumberFromHexString=bu;function vu(e){return(0,wt.HexString)(`0x${new $t.default(e).toString(16)}`)}X.hexStringFromIntNumber=vu;function Gs(e){return e.startsWith("0x")||e.startsWith("0X")}X.has0xPrefix=Gs;function hi(e){return Gs(e)?e.slice(2):e}X.strip0x=hi;function tc(e){return Gs(e)?`0x${e.slice(2)}`:`0x${e}`}X.prepend0x=tc;function gn(e){if(typeof e!="string")return!1;const t=hi(e).toLowerCase();return Xa.test(t)}X.isHexString=gn;function rc(e,t=!1){if(typeof e=="string"){const r=hi(e).toLowerCase();if(Xa.test(r))return(0,wt.HexString)(t?`0x${r}`:r)}throw wr.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}X.ensureHexString=rc;function mn(e,t=!1){let r=rc(e,!1);return r.length%2===1&&(r=(0,wt.HexString)(`0${r}`)),t?(0,wt.HexString)(`0x${r}`):r}X.ensureEvenLengthHexString=mn;function _u(e){if(typeof e=="string"){const t=hi(e).toLowerCase();if(gn(t)&&t.length===40)return(0,wt.AddressString)(tc(t))}throw wr.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}X.ensureAddressString=_u;function Eu(e){if(Buffer.isBuffer(e))return e;if(typeof e=="string"){if(gn(e)){const t=mn(e,!1);return Buffer.from(t,"hex")}return Buffer.from(e,"utf8")}throw wr.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}X.ensureBuffer=Eu;function nc(e){if(typeof e=="number"&&Number.isInteger(e))return(0,wt.IntNumber)(e);if(typeof e=="string"){if(Ya.test(e))return(0,wt.IntNumber)(Number(e));if(gn(e))return(0,wt.IntNumber)(new $t.default(mn(e,!1),16).toNumber())}throw wr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureIntNumber=nc;function Su(e){if(e instanceof RegExp)return(0,wt.RegExpString)(e.toString());throw wr.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}X.ensureRegExpString=Su;function Ru(e){if(e!==null&&($t.default.isBN(e)||ic(e)))return new $t.default(e.toString(10),10);if(typeof e=="number")return new $t.default(nc(e));if(typeof e=="string"){if(Ya.test(e))return new $t.default(e,10);if(gn(e))return new $t.default(mn(e,!1),16)}throw wr.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}X.ensureBN=Ru;function Mu(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw wr.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}X.ensureParsedJSONObject=Mu;function ic(e){if(e==null||typeof e.constructor!="function")return!1;const{constructor:t}=e;return typeof t.config=="function"&&typeof t.EUCLID=="number"}X.isBigNumber=ic;function Cu(e,t){return Array.from({length:t-e},(r,n)=>e+n)}X.range=Cu;function ku(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")||n.startsWith("vbscript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`}X.getFavicon=ku;function Iu(e,t,r,n,i,s){const c=n?"parent-id":"id",a=new URLSearchParams({[c]:e,secret:t,server:r,v:i,chainId:s.toString()}).toString();return`${r}/#/link?${a}`}X.createQrUrl=Iu;function sc(){try{return window.frameElement!==null}catch{return!1}}X.isInIFrame=sc;function xu(){try{return sc()&&window.top?window.top.location:window.location}catch{return window.location}}X.getLocation=xu;function Au(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}X.isMobileWeb=Au;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.ScopedLocalStorage=void 0;class Tu{constructor(t){this.scope=t}setItem(t,r){localStorage.setItem(this.scopedKey(t),r)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),r=[];for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);typeof i=="string"&&i.startsWith(t)&&r.push(i)}r.forEach(n=>localStorage.removeItem(n))}scopedKey(t){return`${this.scope}:${t}`}}di.ScopedLocalStorage=Tu;var Hr={},wn={},yn={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.EVENTS=void 0;Kr.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"};var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.RelayAbstract=mt.APP_VERSION_KEY=mt.LOCAL_STORAGE_ADDRESSES_KEY=mt.WALLET_USER_NAME_KEY=void 0;const ko=fn;mt.WALLET_USER_NAME_KEY="walletUsername";mt.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";mt.APP_VERSION_KEY="AppVersion";class Bu{async makeEthereumJSONRPCRequest(t,r){if(!r)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(r,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw ko.standardErrors.rpc.parse({});const i=n,{error:s}=i;if(s)throw(0,ko.serializeError)(s,t.method);return i})}}mt.RelayAbstract=Bu;var Qr={},oc={exports:{}},Ps={exports:{}},bn={},fi={};fi.byteLength=Pu;fi.toByteArray=Fu;fi.fromByteArray=Uu;var At=[],gt=[],Nu=typeof Uint8Array<"u"?Uint8Array:Array,ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ar=0,Lu=ss.length;Ar<Lu;++Ar)At[Ar]=ss[Ar],gt[ss.charCodeAt(Ar)]=Ar;gt[45]=62;gt[95]=63;function ac(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Pu(e){var t=ac(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Ou(e,t,r){return(t+r)*3/4-r}function Fu(e){var t,r=ac(e),n=r[0],i=r[1],s=new Nu(Ou(e,n,i)),c=0,a=i>0?n-4:n,f;for(f=0;f<a;f+=4)t=gt[e.charCodeAt(f)]<<18|gt[e.charCodeAt(f+1)]<<12|gt[e.charCodeAt(f+2)]<<6|gt[e.charCodeAt(f+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=t&255;return i===2&&(t=gt[e.charCodeAt(f)]<<2|gt[e.charCodeAt(f+1)]>>4,s[c++]=t&255),i===1&&(t=gt[e.charCodeAt(f)]<<10|gt[e.charCodeAt(f+1)]<<4|gt[e.charCodeAt(f+2)]>>2,s[c++]=t>>8&255,s[c++]=t&255),s}function Du(e){return At[e>>18&63]+At[e>>12&63]+At[e>>6&63]+At[e&63]}function ju(e,t,r){for(var n,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),i.push(Du(n));return i.join("")}function Uu(e){for(var t,r=e.length,n=r%3,i=[],s=16383,c=0,a=r-n;c<a;c+=s)i.push(ju(e,c,c+s>a?a:c+s));return n===1?(t=e[r-1],i.push(At[t>>2]+At[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(At[t>>10]+At[t>>4&63]+At[t<<2&63]+"=")),i.join("")}var Js={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Js.read=function(e,t,r,n,i){var s,c,a=i*8-n-1,f=(1<<a)-1,g=f>>1,p=-7,M=r?i-1:0,E=r?-1:1,N=e[t+M];for(M+=E,s=N&(1<<-p)-1,N>>=-p,p+=a;p>0;s=s*256+e[t+M],M+=E,p-=8);for(c=s&(1<<-p)-1,s>>=-p,p+=n;p>0;c=c*256+e[t+M],M+=E,p-=8);if(s===0)s=1-g;else{if(s===f)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-g}return(N?-1:1)*c*Math.pow(2,s-n)};Js.write=function(e,t,r,n,i,s){var c,a,f,g=s*8-i-1,p=(1<<g)-1,M=p>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:s-1,H=n?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,c=p):(c=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-c))<1&&(c--,f*=2),c+M>=1?t+=E/f:t+=E*Math.pow(2,1-M),t*f>=2&&(c++,f/=2),c+M>=p?(a=0,c=p):c+M>=1?(a=(t*f-1)*Math.pow(2,i),c=c+M):(a=t*Math.pow(2,M-1)*Math.pow(2,i),c=0));i>=8;e[r+N]=a&255,N+=H,a/=256,i-=8);for(c=c<<i|a,g+=i;g>0;e[r+N]=c&255,N+=H,c/=256,g-=8);e[r+N-H]|=D*128};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
package/assets/index-BjzJcZq6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let m;if(globalThis.__federation_shared__?.default?.["react-dom"]){const{importShared:s}=await import("./__federation_fn_import-
|
|
1
|
+
let m;if(globalThis.__federation_shared__?.default?.["react-dom"]){const{importShared:s}=await import("./__federation_fn_import-DsoKw508.js");m=await s("react-dom");}else{m=await import("./index-BjzJcZq6__bundled.js");}export const i=m.i??m;export const r=m.r??m;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__fileDeps=["assets/decimals-
|
|
2
|
-
import{_ as v}from"./preload-helper-BorDCKdG.js";import{h as oe,a as T,k as de,g as B,t as V,c as me,d as pe}from"./estimate-gas-CeHGaIbG.js";import{getCachedChain as F}from"./utils-CozXUO91.js";import{importShared as O}from"./__federation_fn_import-C51lglKS.js";import{r as _,p as z,Z as K,f as Z,h as j,e as ue,m as le,j as ye,k as fe,b as we,l as Y,n as Ae,t as ve}from"./signing-BFeVjjPi.js";import{a as Ge,b as J,g as ge}from"./fee-data-BKBGP5kG.js";import{x as Q,r as he,y as X,E as x,z as Pe,A as k,B as Te,C as Le,G as Oe,H as b,I as ee,J as te,L as De,p as xe,M as Se,O as Ce,Q as _e}from"./wallets-Q5RcRyG6.js";import{R as ia}from"./wallets-Q5RcRyG6.js";import{t as Ee,p as Fe,s as Ve}from"./send-eip712-transaction-D_FU-Avh.js";import{r as D}from"./op-gas-fee-reducer-CfxMcvXl.js";import{encode as H}from"./encode-DvvW4ZKt.js";import{h as E,t as be}from"./hex-B0Rx0hII.js";import{a as Ue,i as Ie}from"./withCache-DYumIHzL.js";import{stringify as ae}from"./json-BHzNJmTy.js";const{decodeAbiParameters:Jt}=await O("viem"),Re="0xdd62ed3e",Ne=[{name:"owner",type:"address"},{name:"spender",type:"address"}],$e=[{type:"uint256"}];async function ke(e){return _({contract:e.contract,method:[Re,Ne,$e],params:[e.owner,e.spender]})}const He="0x095ea7b3",Me=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],We=[{type:"bool"}];function qe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[He,Me,We],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.spender,s.value]},value:async()=>(await t()).overrides?.value})}function Be(e){return qe({asyncParams:async()=>{let t;if("amount"in e){const{decimals:s}=await v(async()=>{const{decimals:n}=await import("./decimals-B7Pm5rZk.js");return{decimals:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),r=await s(e).catch(()=>18);t=Ge(e.amount.toString(),r)}else t=e.amountWei;return{overrides:{erc20Value:{amountWei:t,tokenAddress:e.contract.address},...e.overrides},spender:e.spender,value:t}},contract:e.contract})}const{decodeAbiParameters:Qt}=await O("viem"),ze="0xf15d424e",Ke=[{name:"signer",type:"address"}],Ze=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function je(e){return _({contract:e.contract,method:[ze,Ke,Ze],params:[e.signer]})}const Ye="0x5892e236",Je=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qe=[];function Xe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[Ye,Je,Qe],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.req,s.signature]},value:async()=>(await t()).overrides?.value})}function q(){return new Date(Date.now()+1e3*60*60*24*365*10)}function R(e){return Ee(Math.floor(e.getTime()/1e3))}const et=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function tt(e){const{account:t,contract:s,req:r}=e,n=await t.signTypedData({domain:{chainId:s.chain.id,name:"Account",verifyingContract:s.address,version:"1"},message:r,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:et}});return{req:r,signature:n}}async function at(e){const{target:t,permissions:s}=e;return{approvedTargets:s.approvedTargets==="*"?[K]:s.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:J(s.nativeTokenLimitPerTransaction?.toString()||"0"),permissionEndTimestamp:R(s.permissionEndTimestamp||q()),permissionStartTimestamp:R(s.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:R(q()),reqValidityStartTimestamp:0n,signer:t,uid:await he()}}function st(e){const{contract:t,sessionKeyAddress:s,account:r,permissions:n}=e;return Xe({async asyncParams(){const{req:a,signature:c}=await tt({account:r,contract:t,req:await at({permissions:n,target:s})});return{req:a,signature:c}},contract:t})}async function nt(e){const{accountContract:t,sessionKeyAddress:s,newPermissions:r}=e;if(!await Z(t))return!0;const a=await je({contract:t,signer:s});return!!(a.endTimestamp&&a.endTimestamp<Math.floor(Date.now()/1e3)||!rt(a.approvedTargets,r.approvedTargets)||J(r.nativeTokenLimitPerTransaction?.toString()??"0")>a.nativeTokenLimitPerTransaction)}function rt(e,t){return t==="*"&&e.length===1&&e[0]===K?!0:t!=="*"?t.map(s=>s.toLowerCase()).every(s=>e.map(r=>r.toLowerCase()).includes(s)):!1}const it=2n**96n-1n,{decodeAbiParameters:Xt}=await O("viem"),ct="0x35567e1a",ot=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],dt=[{name:"nonce",type:"uint256"}];async function mt(e){return _({contract:e.contract,method:[ct,ot,dt],params:[e.sender,e.key]})}const{decodeAbiParameters:ea}=await O("viem"),pt="0xa6193531",ut=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],lt=[{type:"bytes32"}];async function yt(e){return _({contract:e.contract,method:[pt,ut,lt],params:[e.userOp]})}const{decodeAbiParameters:ta}=await O("viem"),ft="0x22cdde4c",wt=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],At=[{type:"bytes32"}];async function vt(e){return _({contract:e.contract,method:[ft,wt,At],params:[e.userOp]})}const{concat:I,pad:S,toHex:C}=await O("viem");function Gt(e){return e.factory?I([e.factory,e.factoryData||"0x"]):"0x"}function gt(e){return I([S(C(BigInt(e.verificationGasLimit)),{size:16}),S(C(BigInt(e.callGasLimit)),{size:16})])}function ht(e){return I([S(C(BigInt(e.maxPriorityFeePerGas)),{size:16}),S(C(BigInt(e.maxFeePerGas)),{size:16})])}function Pt(e){return e.paymaster?I([e.paymaster,S(C(BigInt(e.paymasterVerificationGasLimit||0)),{size:16}),S(C(BigInt(e.paymasterPostOpGasLimit||0)),{size:16}),e.paymasterData||"0x"]):"0x"}const Tt=e=>({accountGasLimits:gt(e),callData:e.callData,gasFees:ht(e),initCode:Gt(e),nonce:BigInt(e.nonce),paymasterAndData:Pt(e),preVerificationGas:BigInt(e.preVerificationGas),sender:e.sender,signature:e.signature});async function U(e){const{userOp:t,paymasterOverride:s,client:r,chain:n,entrypointAddress:a}=e;if(s)return s(t);const c={"Content-Type":"application/json"},i=a??x,d=X(n),p={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[Pe(t),i]},y=await Ue(r)(d,{body:ae(p),headers:c,method:"POST"});if(!y.ok){const A=await y.text()||y.statusText;throw new Error(`Paymaster error: ${y.status} - ${A}`)}const m=await y.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?E(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?E(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?E(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?E(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?E(m.result.verificationGasLimit):void 0});const w=m.error?.message||m.error||y.statusText||"unknown error";throw new Error(`Paymaster error from ${d}: ${w}`)}const{concat:Lt}=await O("viem"),M=new Set,W=e=>`${e.chain.id}:${e.address}`,se=e=>{M.add(W(e))},ne=e=>{M.delete(W(e))},re=e=>M.has(W(e));async function Ot(e){const t=e.timeoutMs||12e4,s=e.intervalMs||1e3,r=Date.now()+t;for(;Date.now()<r;){const n=await Te(e);if(n)return n;await new Promise(a=>setTimeout(a,s))}throw new Error(`Timeout waiting for userOp to be mined on chain ${e.chain.id} with UserOp hash: ${e.userOpHash}`)}async function Dt(e){const{transaction:t,accountContract:s,factoryContract:r,adminAddress:n,overrides:a,sponsorGas:c,waitForDeployment:i=!0,isDeployedOverride:d}=e,p=t.chain,l=t.client,y={bundlerUrl:a?.bundlerUrl,chain:p,client:l,entrypointAddress:a?.entrypointAddress},m=k(e.overrides?.entrypointAddress||x),[w,A,G,g,f]=await Promise.all([typeof d=="boolean"?d:Z(s).then(L=>L||re(s)),H(t),D(t.gas),xt({bundlerOptions:y,chain:p,client:l,executeTx:t}),Vt({accountContract:s,chain:p,client:l,entrypointAddress:a?.entrypointAddress,getNonceOverride:a?.getAccountNonce})]),{maxFeePerGas:o,maxPriorityFeePerGas:u}=g;return m==="v0.7"?St({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i}):Ct({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i})}async function xt(e){const{executeTx:t,bundlerOptions:s,chain:r,client:n}=e;let{maxFeePerGas:a,maxPriorityFeePerGas:c}=t;const i=s?.bundlerUrl??X(r);if(Ie(i)){const d=await Le({options:s});a=d.maxFeePerGas,c=d.maxPriorityFeePerGas}else{const[d,p]=await Promise.all([D(a),D(c)]);if(d&&p)a=d,c=p;else{const l=await ge(n,r);c=p??l.maxPriorityFeePerGas??0n,a=d??l.maxFeePerGas??0n}}return{maxFeePerGas:a,maxPriorityFeePerGas:c}}async function St(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g,f;s?(f="0x",w&&await ie(n)):(g=r.address,f=await H(j({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r})),w&&se(n));const o={callData:p,callGasLimit:l??0n,factory:g,factoryData:f,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const u=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});if(u.paymaster&&u.paymasterData&&(o.paymaster=u.paymaster,o.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const L=i?.tokenPaymaster?{[i.tokenPaymaster.tokenAddress]:{stateDiff:{[de(ue([{type:"address"},{type:"uint256"}],[n.address,i.tokenPaymaster.balanceStorageSlot]))]:be(le,{size:32})}}}:void 0,h=await b({options:t,userOp:o},L);o.callGasLimit=h.callGasLimit,o.verificationGasLimit=h.verificationGasLimit,o.preVerificationGas=h.preVerificationGas,o.paymasterPostOpGasLimit=i?.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const P=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});P.paymaster&&P.paymasterData&&(o.paymaster=P.paymaster,o.paymasterData=P.paymasterData)}}else{const u=await b({options:t,userOp:o});o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...o,signature:"0x"}}async function Ct(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g;s?(g="0x",w&&await ie(n)):(g=await Ft({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r}),w&&se(n));const f={callData:p,callGasLimit:l??0n,initCode:g,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymasterAndData:"0x",preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const o=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),u="paymasterAndData"in o?o.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),o.callGasLimit&&o.verificationGasLimit&&o.preVerificationGas)f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas;else{const L=await b({options:t,userOp:f});if(f.callGasLimit=L.callGasLimit,f.verificationGasLimit=L.verificationGasLimit,f.preVerificationGas=L.preVerificationGas,u&&u!=="0x"){const h=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),P="paymasterAndData"in h?h.paymasterAndData:"0x";P&&P!=="0x"&&(f.paymasterAndData=P)}}}else{const o=await b({options:t,userOp:f});f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas}return{...f,signature:"0x"}}async function _t(e){const{userOp:t,chain:s,entrypointAddress:r,adminAccount:n}=e,a=await Et({chain:s,client:e.client,entrypointAddress:r,userOp:t});if(n.signMessage){const c=await n.signMessage({chainId:s.id,message:{raw:oe(a)},originalMessage:ae(t)});return{...t,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Et(e){const{userOp:t,chain:s,entrypointAddress:r}=e,n=k(r||x);let a;if(n==="v0.7"){const c=Tt(t);a=await vt({contract:T({address:r||te,chain:s,client:e.client}),userOp:c})}else a=await yt({contract:T({address:r||x,chain:s,client:e.client}),userOp:t});return a}async function Ft(e){const{factoryContract:t,adminAddress:s,accountSalt:r,createAccountOverride:n}=e,a=j({accountSalt:r,adminAddress:s,createAccountOverride:n,factoryContract:t});return Lt([t.address,await H(a)])}async function Vt(e){const{accountContract:t,chain:s,client:r,entrypointAddress:n,getNonceOverride:a}=e;return a?a(t):await mt({contract:T({address:n||x,chain:s,client:r}),key:Oe(),sender:t.address})}async function ie(e){const t=Date.now();for(;re(e);){if(Date.now()-t>6e4)throw ne(e),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(s=>setTimeout(s,500))}}const ce=new WeakMap,N=new WeakMap;async function aa(e,t){const{personalAccount:s,client:r}=e;if(!s)throw new Error("No personal account provided for smart account connection");const n=t,a=t.chain,c="gasless"in n?n.gasless:n.sponsorGas;if(await ye(a))return[It({chain:a,connectionOptions:e,creationOptions:t,sponsorGas:c}),a];if(n.factoryAddress&&!n.overrides?.entrypointAddress){const m=await Rt(n.factoryAddress,r,a);m&&(n.overrides={...n.overrides,entrypointAddress:m})}n.overrides?.tokenPaymaster&&!n.overrides?.entrypointAddress&&(n.overrides={...n.overrides,entrypointAddress:te});const i=n.factoryAddress??De(n.overrides?.entrypointAddress),d=T({address:i,chain:a,client:r}),p=await fe({accountAddress:n.overrides?.accountAddress,accountSalt:n.overrides?.accountSalt,adminAddress:s.address,factoryContract:d,predictAddressOverride:n.overrides?.predictAddress}).then(m=>m).catch(m=>{throw new Error(`Failed to get account address with factory contract ${d.address} on chain ID ${a.id}: ${m?.message||"unknown error"}`,{cause:m})}),l=T({address:p,chain:a,client:r}),y=await bt({...n,accountContract:l,chain:a,client:r,factoryContract:d,personalAccount:s,sponsorGas:c});if(ce.set(s,y),N.set(y,s),n.sessionKey&&await nt({accountContract:l,newPermissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address})){const m=st({account:s,contract:l,permissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address});await we({account:y,transaction:m})}return[y,a]}async function sa(e){const t=N.get(e);t&&(ce.delete(t),N.delete(e))}async function bt(e){const t=e.overrides?.tokenPaymaster;if(t&&k(e.overrides?.entrypointAddress||x)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const s=e.sponsorGas;let r=e.accountContract;const n={address:B(r.address),async onTransactionRequested(a){return e.personalAccount.onTransactionRequested?.(a)},async sendBatchTransaction(a){const c=Ae({accountContract:r,executeBatchOverride:e.overrides?.executeBatch,transactions:a});if(a.length===0)throw new Error("No transactions to send");const i=a[0];if(!i)throw new Error("No transactions to send");const d=F(i.chainId),p=await $({executeTx:c,options:{...e,accountContract:r,chain:d}});return V({chainId:d.id,client:e.client,contractAddress:a[0]?.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async sendTransaction(a){let c;if(t){await Ut({accountContract:r,erc20Paymaster:t,options:e});const l=async()=>({paymaster:t.paymasterAddress,paymasterData:"0x"});c=e.overrides?.paymaster||l}else c=e.overrides?.paymaster;a.chainId!==r.chain.id&&(r=T({address:n.address,chain:F(a.chainId),client:e.client}));const i=Y({accountContract:r,executeOverride:e.overrides?.execute,transaction:a}),d=F(a.chainId),p=await $({executeTx:i,options:{...e,accountContract:r,chain:d,overrides:{...e.overrides,paymaster:c}}});return V({chainId:d.id,client:e.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async signMessage({message:a}){if(e.overrides?.signMessage)return e.overrides.signMessage({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,message:a});const{smartAccountSignMessage:c}=await v(async()=>{const{smartAccountSignMessage:i}=await import("./signing-BFeVjjPi.js").then(d=>d.a3);return{smartAccountSignMessage:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,message:a,options:e})},async signTypedData(a){if(e.overrides?.signTypedData)return e.overrides.signTypedData({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,typedData:a});const{smartAccountSignTypedData:c}=await v(async()=>{const{smartAccountSignTypedData:i}=await import("./signing-BFeVjjPi.js").then(d=>d.a3);return{smartAccountSignTypedData:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,options:e,typedData:a})},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:s??!1}}})};return n}async function Ut(e){const{accountContract:t,erc20Paymaster:s,options:r}=e,n=s.tokenAddress,a=T({address:n,chain:t.chain,client:t.client});if(await ke({contract:a,owner:t.address,spender:s.paymasterAddress})>0n)return;const i=Be({amountWei:it-1n,contract:a,spender:s.paymasterAddress}),d=await ve({from:t.address,transaction:i}),p=Y({accountContract:t,executeOverride:r.overrides?.execute,transaction:d});await $({executeTx:p,options:{...r,overrides:{...r.overrides,tokenPaymaster:void 0}}})}function It(e){const{creationOptions:t,connectionOptions:s,chain:r}=e,n={address:B(s.personalAccount.address),async onTransactionRequested(a){return s.personalAccount.onTransactionRequested?.(a)},async sendTransaction(a){const c={chain:F(a.chainId),client:s.client,data:a.data,eip712:a.eip712,to:a.to??void 0,value:a.value??0n};let i=await Fe({account:n,transaction:c});if(e.sponsorGas&&!i.paymaster){const l=await Se({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},transaction:i});i={...i,...l}}const d=await Ve({account:n,chainId:r.id,eip712Transaction:i}),p=await Ce({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},signedTransaction:d,transaction:i});return V({chainId:r.id,client:s.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:n.address,walletType:"smart"}),{chain:r,client:s.client,transactionHash:p.transactionHash}},async signMessage({message:a}){return s.personalAccount.signMessage({message:a})},async signTypedData(a){const c=xe(a);return s.personalAccount.signTypedData(c)},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-CvFtsXP9.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:e.sponsorGas??!1}}})};return n}async function $(e){const{executeTx:t,options:s}=e;try{const r=await Dt({accountContract:s.accountContract,adminAddress:s.personalAccount.address,factoryContract:s.factoryContract,overrides:s.overrides,sponsorGas:s.sponsorGas,transaction:t}),n=await _t({adminAccount:s.personalAccount,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress,userOp:r}),a={bundlerUrl:s.overrides?.bundlerUrl,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress},c=await _e({options:a,userOp:n}),i=await Ot({...a,userOpHash:c});return V({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),transactionHash:i.transactionHash,walletAddress:s.accountContract.address,walletType:"smart"}),{chain:s.chain,client:s.client,transactionHash:i.transactionHash}}catch(r){throw me(r)&&pe({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),error:r,transactionValue:await D(t.value),walletAddress:s.accountContract.address}),r}finally{ne(s.accountContract)}}async function Rt(e,t,s){const r=T({address:e,chain:s,client:t});try{return await _({contract:r,method:"function entrypoint() public view returns (address)"})}catch{return}}export{aa as connectSmartAccount,sa as disconnectSmartAccount,Rt as getEntrypointFromFactory,ia as isSmartWallet};
|
|
1
|
+
const __vite__fileDeps=["assets/decimals-D0IunObY.js","assets/withCache-DYumIHzL.js","assets/decimals-BMO-32AD.js","assets/__federation_fn_import-DsoKw508.js","assets/signing-BsPRCC1P.js","assets/hex-B0Rx0hII.js","assets/preload-helper-2M-6abck.js","assets/fee-data-DBS1-uI-.js","assets/rpc-ti0b0r_u.js","assets/utils-CozXUO91.js","assets/json-BHzNJmTy.js","assets/op-gas-fee-reducer-CfxMcvXl.js","assets/estimate-gas-DBgT8NWo.js","assets/encode-cHgp5mHv.js","assets/in-app-wallet-calls-CUJMAfNk.js","assets/wait-for-tx-receipt-BR33kfvc.js","assets/sleep-mAKpSMLY.js","assets/send-batch-transaction-DBV6UBBv.js","assets/wallets-vcnqEomN.js","assets/store-DOLZnwHk.js","assets/publicKeyToAddress-CxEKPAKT.js","assets/utils-C7urdXtO.js","assets/events-B5inrCVE.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/index.es-D3pP9hN4.js","assets/index-nibyPLVP.js","assets/ethereum-dN7ENYl_.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{_ as v}from"./preload-helper-2M-6abck.js";import{h as oe,a as T,k as de,g as B,t as V,c as me,d as pe}from"./estimate-gas-DBgT8NWo.js";import{getCachedChain as F}from"./utils-CozXUO91.js";import{importShared as O}from"./__federation_fn_import-DsoKw508.js";import{r as _,p as z,Z as K,f as Z,h as j,e as ue,m as le,j as ye,k as fe,b as we,l as Y,n as Ae,t as ve}from"./signing-BsPRCC1P.js";import{a as Ge,b as J,g as ge}from"./fee-data-DBS1-uI-.js";import{x as Q,r as he,y as X,E as x,z as Pe,A as k,B as Te,C as Le,G as Oe,H as b,I as ee,J as te,L as De,p as xe,M as Se,O as Ce,Q as _e}from"./wallets-vcnqEomN.js";import{R as ia}from"./wallets-vcnqEomN.js";import{t as Ee,p as Fe,s as Ve}from"./send-eip712-transaction-CI65hvCl.js";import{r as D}from"./op-gas-fee-reducer-CfxMcvXl.js";import{encode as H}from"./encode-cHgp5mHv.js";import{h as E,t as be}from"./hex-B0Rx0hII.js";import{a as Ue,i as Ie}from"./withCache-DYumIHzL.js";import{stringify as ae}from"./json-BHzNJmTy.js";const{decodeAbiParameters:Jt}=await O("viem"),Re="0xdd62ed3e",Ne=[{name:"owner",type:"address"},{name:"spender",type:"address"}],$e=[{type:"uint256"}];async function ke(e){return _({contract:e.contract,method:[Re,Ne,$e],params:[e.owner,e.spender]})}const He="0x095ea7b3",Me=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],We=[{type:"bool"}];function qe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[He,Me,We],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.spender,s.value]},value:async()=>(await t()).overrides?.value})}function Be(e){return qe({asyncParams:async()=>{let t;if("amount"in e){const{decimals:s}=await v(async()=>{const{decimals:n}=await import("./decimals-D0IunObY.js");return{decimals:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),r=await s(e).catch(()=>18);t=Ge(e.amount.toString(),r)}else t=e.amountWei;return{overrides:{erc20Value:{amountWei:t,tokenAddress:e.contract.address},...e.overrides},spender:e.spender,value:t}},contract:e.contract})}const{decodeAbiParameters:Qt}=await O("viem"),ze="0xf15d424e",Ke=[{name:"signer",type:"address"}],Ze=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function je(e){return _({contract:e.contract,method:[ze,Ke,Ze],params:[e.signer]})}const Ye="0x5892e236",Je=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qe=[];function Xe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[Ye,Je,Qe],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.req,s.signature]},value:async()=>(await t()).overrides?.value})}function q(){return new Date(Date.now()+1e3*60*60*24*365*10)}function R(e){return Ee(Math.floor(e.getTime()/1e3))}const et=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function tt(e){const{account:t,contract:s,req:r}=e,n=await t.signTypedData({domain:{chainId:s.chain.id,name:"Account",verifyingContract:s.address,version:"1"},message:r,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:et}});return{req:r,signature:n}}async function at(e){const{target:t,permissions:s}=e;return{approvedTargets:s.approvedTargets==="*"?[K]:s.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:J(s.nativeTokenLimitPerTransaction?.toString()||"0"),permissionEndTimestamp:R(s.permissionEndTimestamp||q()),permissionStartTimestamp:R(s.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:R(q()),reqValidityStartTimestamp:0n,signer:t,uid:await he()}}function st(e){const{contract:t,sessionKeyAddress:s,account:r,permissions:n}=e;return Xe({async asyncParams(){const{req:a,signature:c}=await tt({account:r,contract:t,req:await at({permissions:n,target:s})});return{req:a,signature:c}},contract:t})}async function nt(e){const{accountContract:t,sessionKeyAddress:s,newPermissions:r}=e;if(!await Z(t))return!0;const a=await je({contract:t,signer:s});return!!(a.endTimestamp&&a.endTimestamp<Math.floor(Date.now()/1e3)||!rt(a.approvedTargets,r.approvedTargets)||J(r.nativeTokenLimitPerTransaction?.toString()??"0")>a.nativeTokenLimitPerTransaction)}function rt(e,t){return t==="*"&&e.length===1&&e[0]===K?!0:t!=="*"?t.map(s=>s.toLowerCase()).every(s=>e.map(r=>r.toLowerCase()).includes(s)):!1}const it=2n**96n-1n,{decodeAbiParameters:Xt}=await O("viem"),ct="0x35567e1a",ot=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],dt=[{name:"nonce",type:"uint256"}];async function mt(e){return _({contract:e.contract,method:[ct,ot,dt],params:[e.sender,e.key]})}const{decodeAbiParameters:ea}=await O("viem"),pt="0xa6193531",ut=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],lt=[{type:"bytes32"}];async function yt(e){return _({contract:e.contract,method:[pt,ut,lt],params:[e.userOp]})}const{decodeAbiParameters:ta}=await O("viem"),ft="0x22cdde4c",wt=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],At=[{type:"bytes32"}];async function vt(e){return _({contract:e.contract,method:[ft,wt,At],params:[e.userOp]})}const{concat:I,pad:S,toHex:C}=await O("viem");function Gt(e){return e.factory?I([e.factory,e.factoryData||"0x"]):"0x"}function gt(e){return I([S(C(BigInt(e.verificationGasLimit)),{size:16}),S(C(BigInt(e.callGasLimit)),{size:16})])}function ht(e){return I([S(C(BigInt(e.maxPriorityFeePerGas)),{size:16}),S(C(BigInt(e.maxFeePerGas)),{size:16})])}function Pt(e){return e.paymaster?I([e.paymaster,S(C(BigInt(e.paymasterVerificationGasLimit||0)),{size:16}),S(C(BigInt(e.paymasterPostOpGasLimit||0)),{size:16}),e.paymasterData||"0x"]):"0x"}const Tt=e=>({accountGasLimits:gt(e),callData:e.callData,gasFees:ht(e),initCode:Gt(e),nonce:BigInt(e.nonce),paymasterAndData:Pt(e),preVerificationGas:BigInt(e.preVerificationGas),sender:e.sender,signature:e.signature});async function U(e){const{userOp:t,paymasterOverride:s,client:r,chain:n,entrypointAddress:a}=e;if(s)return s(t);const c={"Content-Type":"application/json"},i=a??x,d=X(n),p={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[Pe(t),i]},y=await Ue(r)(d,{body:ae(p),headers:c,method:"POST"});if(!y.ok){const A=await y.text()||y.statusText;throw new Error(`Paymaster error: ${y.status} - ${A}`)}const m=await y.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?E(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?E(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?E(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?E(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?E(m.result.verificationGasLimit):void 0});const w=m.error?.message||m.error||y.statusText||"unknown error";throw new Error(`Paymaster error from ${d}: ${w}`)}const{concat:Lt}=await O("viem"),M=new Set,W=e=>`${e.chain.id}:${e.address}`,se=e=>{M.add(W(e))},ne=e=>{M.delete(W(e))},re=e=>M.has(W(e));async function Ot(e){const t=e.timeoutMs||12e4,s=e.intervalMs||1e3,r=Date.now()+t;for(;Date.now()<r;){const n=await Te(e);if(n)return n;await new Promise(a=>setTimeout(a,s))}throw new Error(`Timeout waiting for userOp to be mined on chain ${e.chain.id} with UserOp hash: ${e.userOpHash}`)}async function Dt(e){const{transaction:t,accountContract:s,factoryContract:r,adminAddress:n,overrides:a,sponsorGas:c,waitForDeployment:i=!0,isDeployedOverride:d}=e,p=t.chain,l=t.client,y={bundlerUrl:a?.bundlerUrl,chain:p,client:l,entrypointAddress:a?.entrypointAddress},m=k(e.overrides?.entrypointAddress||x),[w,A,G,g,f]=await Promise.all([typeof d=="boolean"?d:Z(s).then(L=>L||re(s)),H(t),D(t.gas),xt({bundlerOptions:y,chain:p,client:l,executeTx:t}),Vt({accountContract:s,chain:p,client:l,entrypointAddress:a?.entrypointAddress,getNonceOverride:a?.getAccountNonce})]),{maxFeePerGas:o,maxPriorityFeePerGas:u}=g;return m==="v0.7"?St({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i}):Ct({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i})}async function xt(e){const{executeTx:t,bundlerOptions:s,chain:r,client:n}=e;let{maxFeePerGas:a,maxPriorityFeePerGas:c}=t;const i=s?.bundlerUrl??X(r);if(Ie(i)){const d=await Le({options:s});a=d.maxFeePerGas,c=d.maxPriorityFeePerGas}else{const[d,p]=await Promise.all([D(a),D(c)]);if(d&&p)a=d,c=p;else{const l=await ge(n,r);c=p??l.maxPriorityFeePerGas??0n,a=d??l.maxFeePerGas??0n}}return{maxFeePerGas:a,maxPriorityFeePerGas:c}}async function St(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g,f;s?(f="0x",w&&await ie(n)):(g=r.address,f=await H(j({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r})),w&&se(n));const o={callData:p,callGasLimit:l??0n,factory:g,factoryData:f,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const u=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});if(u.paymaster&&u.paymasterData&&(o.paymaster=u.paymaster,o.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const L=i?.tokenPaymaster?{[i.tokenPaymaster.tokenAddress]:{stateDiff:{[de(ue([{type:"address"},{type:"uint256"}],[n.address,i.tokenPaymaster.balanceStorageSlot]))]:be(le,{size:32})}}}:void 0,h=await b({options:t,userOp:o},L);o.callGasLimit=h.callGasLimit,o.verificationGasLimit=h.verificationGasLimit,o.preVerificationGas=h.preVerificationGas,o.paymasterPostOpGasLimit=i?.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const P=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});P.paymaster&&P.paymasterData&&(o.paymaster=P.paymaster,o.paymasterData=P.paymasterData)}}else{const u=await b({options:t,userOp:o});o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...o,signature:"0x"}}async function Ct(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g;s?(g="0x",w&&await ie(n)):(g=await Ft({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r}),w&&se(n));const f={callData:p,callGasLimit:l??0n,initCode:g,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymasterAndData:"0x",preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const o=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),u="paymasterAndData"in o?o.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),o.callGasLimit&&o.verificationGasLimit&&o.preVerificationGas)f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas;else{const L=await b({options:t,userOp:f});if(f.callGasLimit=L.callGasLimit,f.verificationGasLimit=L.verificationGasLimit,f.preVerificationGas=L.preVerificationGas,u&&u!=="0x"){const h=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),P="paymasterAndData"in h?h.paymasterAndData:"0x";P&&P!=="0x"&&(f.paymasterAndData=P)}}}else{const o=await b({options:t,userOp:f});f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas}return{...f,signature:"0x"}}async function _t(e){const{userOp:t,chain:s,entrypointAddress:r,adminAccount:n}=e,a=await Et({chain:s,client:e.client,entrypointAddress:r,userOp:t});if(n.signMessage){const c=await n.signMessage({chainId:s.id,message:{raw:oe(a)},originalMessage:ae(t)});return{...t,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Et(e){const{userOp:t,chain:s,entrypointAddress:r}=e,n=k(r||x);let a;if(n==="v0.7"){const c=Tt(t);a=await vt({contract:T({address:r||te,chain:s,client:e.client}),userOp:c})}else a=await yt({contract:T({address:r||x,chain:s,client:e.client}),userOp:t});return a}async function Ft(e){const{factoryContract:t,adminAddress:s,accountSalt:r,createAccountOverride:n}=e,a=j({accountSalt:r,adminAddress:s,createAccountOverride:n,factoryContract:t});return Lt([t.address,await H(a)])}async function Vt(e){const{accountContract:t,chain:s,client:r,entrypointAddress:n,getNonceOverride:a}=e;return a?a(t):await mt({contract:T({address:n||x,chain:s,client:r}),key:Oe(),sender:t.address})}async function ie(e){const t=Date.now();for(;re(e);){if(Date.now()-t>6e4)throw ne(e),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(s=>setTimeout(s,500))}}const ce=new WeakMap,N=new WeakMap;async function aa(e,t){const{personalAccount:s,client:r}=e;if(!s)throw new Error("No personal account provided for smart account connection");const n=t,a=t.chain,c="gasless"in n?n.gasless:n.sponsorGas;if(await ye(a))return[It({chain:a,connectionOptions:e,creationOptions:t,sponsorGas:c}),a];if(n.factoryAddress&&!n.overrides?.entrypointAddress){const m=await Rt(n.factoryAddress,r,a);m&&(n.overrides={...n.overrides,entrypointAddress:m})}n.overrides?.tokenPaymaster&&!n.overrides?.entrypointAddress&&(n.overrides={...n.overrides,entrypointAddress:te});const i=n.factoryAddress??De(n.overrides?.entrypointAddress),d=T({address:i,chain:a,client:r}),p=await fe({accountAddress:n.overrides?.accountAddress,accountSalt:n.overrides?.accountSalt,adminAddress:s.address,factoryContract:d,predictAddressOverride:n.overrides?.predictAddress}).then(m=>m).catch(m=>{throw new Error(`Failed to get account address with factory contract ${d.address} on chain ID ${a.id}: ${m?.message||"unknown error"}`,{cause:m})}),l=T({address:p,chain:a,client:r}),y=await bt({...n,accountContract:l,chain:a,client:r,factoryContract:d,personalAccount:s,sponsorGas:c});if(ce.set(s,y),N.set(y,s),n.sessionKey&&await nt({accountContract:l,newPermissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address})){const m=st({account:s,contract:l,permissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address});await we({account:y,transaction:m})}return[y,a]}async function sa(e){const t=N.get(e);t&&(ce.delete(t),N.delete(e))}async function bt(e){const t=e.overrides?.tokenPaymaster;if(t&&k(e.overrides?.entrypointAddress||x)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const s=e.sponsorGas;let r=e.accountContract;const n={address:B(r.address),async onTransactionRequested(a){return e.personalAccount.onTransactionRequested?.(a)},async sendBatchTransaction(a){const c=Ae({accountContract:r,executeBatchOverride:e.overrides?.executeBatch,transactions:a});if(a.length===0)throw new Error("No transactions to send");const i=a[0];if(!i)throw new Error("No transactions to send");const d=F(i.chainId),p=await $({executeTx:c,options:{...e,accountContract:r,chain:d}});return V({chainId:d.id,client:e.client,contractAddress:a[0]?.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async sendTransaction(a){let c;if(t){await Ut({accountContract:r,erc20Paymaster:t,options:e});const l=async()=>({paymaster:t.paymasterAddress,paymasterData:"0x"});c=e.overrides?.paymaster||l}else c=e.overrides?.paymaster;a.chainId!==r.chain.id&&(r=T({address:n.address,chain:F(a.chainId),client:e.client}));const i=Y({accountContract:r,executeOverride:e.overrides?.execute,transaction:a}),d=F(a.chainId),p=await $({executeTx:i,options:{...e,accountContract:r,chain:d,overrides:{...e.overrides,paymaster:c}}});return V({chainId:d.id,client:e.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async signMessage({message:a}){if(e.overrides?.signMessage)return e.overrides.signMessage({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,message:a});const{smartAccountSignMessage:c}=await v(async()=>{const{smartAccountSignMessage:i}=await import("./signing-BsPRCC1P.js").then(d=>d.a3);return{smartAccountSignMessage:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,message:a,options:e})},async signTypedData(a){if(e.overrides?.signTypedData)return e.overrides.signTypedData({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,typedData:a});const{smartAccountSignTypedData:c}=await v(async()=>{const{smartAccountSignTypedData:i}=await import("./signing-BsPRCC1P.js").then(d=>d.a3);return{smartAccountSignTypedData:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,options:e,typedData:a})},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:s??!1}}})};return n}async function Ut(e){const{accountContract:t,erc20Paymaster:s,options:r}=e,n=s.tokenAddress,a=T({address:n,chain:t.chain,client:t.client});if(await ke({contract:a,owner:t.address,spender:s.paymasterAddress})>0n)return;const i=Be({amountWei:it-1n,contract:a,spender:s.paymasterAddress}),d=await ve({from:t.address,transaction:i}),p=Y({accountContract:t,executeOverride:r.overrides?.execute,transaction:d});await $({executeTx:p,options:{...r,overrides:{...r.overrides,tokenPaymaster:void 0}}})}function It(e){const{creationOptions:t,connectionOptions:s,chain:r}=e,n={address:B(s.personalAccount.address),async onTransactionRequested(a){return s.personalAccount.onTransactionRequested?.(a)},async sendTransaction(a){const c={chain:F(a.chainId),client:s.client,data:a.data,eip712:a.eip712,to:a.to??void 0,value:a.value??0n};let i=await Fe({account:n,transaction:c});if(e.sponsorGas&&!i.paymaster){const l=await Se({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},transaction:i});i={...i,...l}}const d=await Ve({account:n,chainId:r.id,eip712Transaction:i}),p=await Ce({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},signedTransaction:d,transaction:i});return V({chainId:r.id,client:s.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:n.address,walletType:"smart"}),{chain:r,client:s.client,transactionHash:p.transactionHash}},async signMessage({message:a}){return s.personalAccount.signMessage({message:a})},async signTypedData(a){const c=xe(a);return s.personalAccount.signTypedData(c)},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-CUJMAfNk.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:e.sponsorGas??!1}}})};return n}async function $(e){const{executeTx:t,options:s}=e;try{const r=await Dt({accountContract:s.accountContract,adminAddress:s.personalAccount.address,factoryContract:s.factoryContract,overrides:s.overrides,sponsorGas:s.sponsorGas,transaction:t}),n=await _t({adminAccount:s.personalAccount,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress,userOp:r}),a={bundlerUrl:s.overrides?.bundlerUrl,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress},c=await _e({options:a,userOp:n}),i=await Ot({...a,userOpHash:c});return V({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),transactionHash:i.transactionHash,walletAddress:s.accountContract.address,walletType:"smart"}),{chain:s.chain,client:s.client,transactionHash:i.transactionHash}}catch(r){throw me(r)&&pe({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),error:r,transactionValue:await D(t.value),walletAddress:s.accountContract.address}),r}finally{ne(s.accountContract)}}async function Rt(e,t,s){const r=T({address:e,chain:s,client:t});try{return await _({contract:r,method:"function entrypoint() public view returns (address)"})}catch{return}}export{aa as connectSmartAccount,sa as disconnectSmartAccount,Rt as getEntrypointFromFactory,ia as isSmartWallet};
|